@sgrsoft/vpe-react-sdk 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,26 @@
1
- (function(on,Oa){typeof exports=="object"&&typeof module<"u"?Oa(exports):typeof define=="function"&&define.amd?define(["exports"],Oa):(on=typeof globalThis<"u"?globalThis:on||self,Oa(on.VpeReactSdk={}))})(this,(function(on){"use strict";function Oa(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var _r={exports:{}},Oi={};var Rf;function r3(){if(Rf)return Oi;Rf=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var g in c)g!=="key"&&(d[g]=c[g])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return Oi.Fragment=i,Oi.jsx=s,Oi.jsxs=s,Oi}var Lf;function o3(){return Lf||(Lf=1,_r.exports=r3()),_r.exports}var x=o3(),Gr={exports:{}},Ni={},kr={exports:{}},Yr={};var Bf;function u3(){return Bf||(Bf=1,(function(a){function i(Q,U){var K=Q.length;Q.push(U);t:for(;0<K;){var nt=K-1>>>1,gt=Q[nt];if(0<c(gt,U))Q[nt]=U,Q[K]=gt,K=nt;else break t}}function s(Q){return Q.length===0?null:Q[0]}function o(Q){if(Q.length===0)return null;var U=Q[0],K=Q.pop();if(K!==U){Q[0]=K;t:for(var nt=0,gt=Q.length,Bt=gt>>>1;nt<Bt;){var E=2*(nt+1)-1,X=Q[E],J=E+1,W=Q[J];if(0>c(X,K))J<gt&&0>c(W,X)?(Q[nt]=W,Q[J]=K,nt=J):(Q[nt]=X,Q[E]=K,nt=E);else if(J<gt&&0>c(W,K))Q[nt]=W,Q[J]=K,nt=J;else break t}}return U}function c(Q,U){var K=Q.sortIndex-U.sortIndex;return K!==0?K:Q.id-U.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var m=[],p=[],y=1,S=null,v=3,z=!1,j=!1,L=!1,O=!1,A=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function P(Q){for(var U=s(p);U!==null;){if(U.callback===null)o(p);else if(U.startTime<=Q)o(p),U.sortIndex=U.expirationTime,i(m,U);else break;U=s(p)}}function _(Q){if(L=!1,P(Q),!j)if(s(m)!==null)j=!0,F||(F=!0,I());else{var U=s(p);U!==null&&it(_,U.startTime-Q)}}var F=!1,V=-1,N=5,tt=-1;function lt(){return O?!0:!(a.unstable_now()-tt<N)}function ot(){if(O=!1,F){var Q=a.unstable_now();tt=Q;var U=!0;try{t:{j=!1,L&&(L=!1,k(V),V=-1),z=!0;var K=v;try{e:{for(P(Q),S=s(m);S!==null&&!(S.expirationTime>Q&&lt());){var nt=S.callback;if(typeof nt=="function"){S.callback=null,v=S.priorityLevel;var gt=nt(S.expirationTime<=Q);if(Q=a.unstable_now(),typeof gt=="function"){S.callback=gt,P(Q),U=!0;break e}S===s(m)&&o(m),P(Q)}else o(m);S=s(m)}if(S!==null)U=!0;else{var Bt=s(p);Bt!==null&&it(_,Bt.startTime-Q),U=!1}}break t}finally{S=null,v=K,z=!1}U=void 0}}finally{U?I():F=!1}}}var I;if(typeof G=="function")I=function(){G(ot)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,dt=ut.port2;ut.port1.onmessage=ot,I=function(){dt.postMessage(null)}}else I=function(){A(ot,0)};function it(Q,U){V=A(function(){Q(a.unstable_now())},U)}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(Q){Q.callback=null},a.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<Q?Math.floor(1e3/Q):5},a.unstable_getCurrentPriorityLevel=function(){return v},a.unstable_next=function(Q){switch(v){case 1:case 2:case 3:var U=3;break;default:U=v}var K=v;v=U;try{return Q()}finally{v=K}},a.unstable_requestPaint=function(){O=!0},a.unstable_runWithPriority=function(Q,U){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var K=v;v=Q;try{return U()}finally{v=K}},a.unstable_scheduleCallback=function(Q,U,K){var nt=a.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?nt+K:nt):K=nt,Q){case 1:var gt=-1;break;case 2:gt=250;break;case 5:gt=1073741823;break;case 4:gt=1e4;break;default:gt=5e3}return gt=K+gt,Q={id:y++,callback:U,priorityLevel:Q,startTime:K,expirationTime:gt,sortIndex:-1},K>nt?(Q.sortIndex=K,i(p,Q),s(m)===null&&Q===s(p)&&(L?(k(V),V=-1):L=!0,it(_,K-nt))):(Q.sortIndex=gt,i(m,Q),j||z||(j=!0,F||(F=!0,I()))),Q},a.unstable_shouldYield=lt,a.unstable_wrapCallback=function(Q){var U=v;return function(){var K=v;v=U;try{return Q.apply(this,arguments)}finally{v=K}}}})(Yr)),Yr}var Vf;function c3(){return Vf||(Vf=1,kr.exports=u3()),kr.exports}var qr={exports:{}},ft={},jf;function f3(){if(jf)return ft;jf=1;var a={};var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),g=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),z=Symbol.iterator;function j(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,A={};function k(E,X,J){this.props=E,this.context=X,this.refs=A,this.updater=J||L}k.prototype.isReactComponent={},k.prototype.setState=function(E,X){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,X,"setState")},k.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=k.prototype;function P(E,X,J){this.props=E,this.context=X,this.refs=A,this.updater=J||L}var _=P.prototype=new G;_.constructor=P,O(_,k.prototype),_.isPureReactComponent=!0;var F=Array.isArray;function V(){}var N={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function lt(E,X,J){var W=J.ref;return{$$typeof:i,type:E,key:X,ref:W!==void 0?W:null,props:J}}function ot(E,X){return lt(E.type,X,E.props)}function I(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function ut(E){var X={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return X[J]})}var dt=/\/+/g;function it(E,X){return typeof E=="object"&&E!==null&&E.key!=null?ut(""+E.key):X.toString(36)}function Q(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(X){E.status==="pending"&&(E.status="fulfilled",E.value=X)},function(X){E.status==="pending"&&(E.status="rejected",E.reason=X)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,X,J,W,ct){var mt=typeof E;(mt==="undefined"||mt==="boolean")&&(E=null);var Tt=!1;if(E===null)Tt=!0;else switch(mt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(E.$$typeof){case i:case s:Tt=!0;break;case S:return Tt=E._init,U(Tt(E._payload),X,J,W,ct)}}if(Tt)return ct=ct(E),Tt=W===""?"."+it(E,0):W,F(ct)?(J="",Tt!=null&&(J=Tt.replace(dt,"$&/")+"/"),U(ct,X,J,"",function(pa){return pa})):ct!=null&&(I(ct)&&(ct=ot(ct,J+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(dt,"$&/")+"/")+Tt)),X.push(ct)),1;Tt=0;var te=W===""?".":W+":";if(F(E))for(var _t=0;_t<E.length;_t++)W=E[_t],mt=te+it(W,_t),Tt+=U(W,X,J,mt,ct);else if(_t=j(E),typeof _t=="function")for(E=_t.call(E),_t=0;!(W=E.next()).done;)W=W.value,mt=te+it(W,_t++),Tt+=U(W,X,J,mt,ct);else if(mt==="object"){if(typeof E.then=="function")return U(Q(E),X,J,W,ct);throw X=String(E),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function K(E,X,J){if(E==null)return E;var W=[],ct=0;return U(E,W,"","",function(mt){return X.call(J,mt,ct++)}),W}function nt(E){if(E._status===-1){var X=E._result;X=X(),X.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=X)}if(E._status===1)return E._result.default;throw E._result}var gt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",E);return}console.error(E)},Bt={map:K,forEach:function(E,X,J){K(E,function(){X.apply(this,arguments)},J)},count:function(E){var X=0;return K(E,function(){X++}),X},toArray:function(E){return K(E,function(X){return X})||[]},only:function(E){if(!I(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ft.Activity=v,ft.Children=Bt,ft.Component=k,ft.Fragment=o,ft.Profiler=d,ft.PureComponent=P,ft.StrictMode=c,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,ft.__COMPILER_RUNTIME={__proto__:null,c:function(E){return N.H.useMemoCache(E)}},ft.cache=function(E){return function(){return E.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(E,X,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=O({},E.props),ct=E.key;if(X!=null)for(mt in X.key!==void 0&&(ct=""+X.key),X)!tt.call(X,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&X.ref===void 0||(W[mt]=X[mt]);var mt=arguments.length-2;if(mt===1)W.children=J;else if(1<mt){for(var Tt=Array(mt),te=0;te<mt;te++)Tt[te]=arguments[te+2];W.children=Tt}return lt(E.type,ct,W)},ft.createContext=function(E){return E={$$typeof:g,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ft.createElement=function(E,X,J){var W,ct={},mt=null;if(X!=null)for(W in X.key!==void 0&&(mt=""+X.key),X)tt.call(X,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ct[W]=X[W]);var Tt=arguments.length-2;if(Tt===1)ct.children=J;else if(1<Tt){for(var te=Array(Tt),_t=0;_t<Tt;_t++)te[_t]=arguments[_t+2];ct.children=te}if(E&&E.defaultProps)for(W in Tt=E.defaultProps,Tt)ct[W]===void 0&&(ct[W]=Tt[W]);return lt(E,mt,ct)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(E){return{$$typeof:m,render:E}},ft.isValidElement=I,ft.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:nt}},ft.memo=function(E,X){return{$$typeof:y,type:E,compare:X===void 0?null:X}},ft.startTransition=function(E){var X=N.T,J={};N.T=J;try{var W=E(),ct=N.S;ct!==null&&ct(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(V,gt)}catch(mt){gt(mt)}finally{X!==null&&J.types!==null&&(X.types=J.types),N.T=X}},ft.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},ft.use=function(E){return N.H.use(E)},ft.useActionState=function(E,X,J){return N.H.useActionState(E,X,J)},ft.useCallback=function(E,X){return N.H.useCallback(E,X)},ft.useContext=function(E){return N.H.useContext(E)},ft.useDebugValue=function(){},ft.useDeferredValue=function(E,X){return N.H.useDeferredValue(E,X)},ft.useEffect=function(E,X){return N.H.useEffect(E,X)},ft.useEffectEvent=function(E){return N.H.useEffectEvent(E)},ft.useId=function(){return N.H.useId()},ft.useImperativeHandle=function(E,X,J){return N.H.useImperativeHandle(E,X,J)},ft.useInsertionEffect=function(E,X){return N.H.useInsertionEffect(E,X)},ft.useLayoutEffect=function(E,X){return N.H.useLayoutEffect(E,X)},ft.useMemo=function(E,X){return N.H.useMemo(E,X)},ft.useOptimistic=function(E,X){return N.H.useOptimistic(E,X)},ft.useReducer=function(E,X,J){return N.H.useReducer(E,X,J)},ft.useRef=function(E){return N.H.useRef(E)},ft.useState=function(E){return N.H.useState(E)},ft.useSyncExternalStore=function(E,X,J){return N.H.useSyncExternalStore(E,X,J)},ft.useTransition=function(){return N.H.useTransition()},ft.version="19.2.1",ft}var Of;function Xr(){return Of||(Of=1,qr.exports=f3()),qr.exports}var Zr={exports:{}},fe={};var Nf;function d3(){if(Nf)return fe;Nf=1;var a=Xr();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(m,p,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:m,containerInfo:p,implementation:y}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,fe.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,y)},fe.flushSync=function(m){var p=f.T,y=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=p,o.p=y,o.d.f()}},fe.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},fe.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},fe.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,S=g(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:z}):y==="script"&&o.d.X(m,{crossOrigin:S,integrity:v,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},fe.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=g(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},fe.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,S=g(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},fe.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=g(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},fe.requestFormReset=function(m){o.d.r(m)},fe.unstable_batchedUpdates=function(m,p){return m(p)},fe.useFormState=function(m,p,y){return f.H.useFormState(m,p,y)},fe.useFormStatus=function(){return f.H.useHostTransitionStatus()},fe.version="19.2.1",fe}var Hf;function h3(){if(Hf)return Zr.exports;Hf=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(i){console.error(i)}}return a(),Zr.exports=d3(),Zr.exports}var Uf;function m3(){if(Uf)return Ni;Uf=1;var a={};var i=c3(),s=Xr(),o=h3();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(c(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return p(r),t;if(u===l)return p(r),e;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=r,l=u;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,l=u;break}if(b===l){h=!0,l=r,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,l=r;break}if(b===l){h=!0,l=u,n=r;break}b=b.sibling}if(!h)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,z=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),P=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var dt=Symbol.for("react.client.reference");function it(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===dt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case F:return"Suspense";case V:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case P:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case _:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case N:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return it(t(e))}catch{}}return null}var Q=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},gt=[],Bt=-1;function E(t){return{current:t}}function X(t){0>Bt||(t.current=gt[Bt],gt[Bt]=null,Bt--)}function J(t,e){Bt++,gt[Bt]=t.current,t.current=e}var W=E(null),ct=E(null),mt=E(null),Tt=E(null);function te(t,e){switch(J(mt,e),J(ct,t),J(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?R2(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=R2(e),t=L2(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(W),J(W,t)}function _t(){X(W),X(ct),X(mt)}function pa(t){t.memoizedState!==null&&J(Tt,t);var e=W.current,n=L2(e,t.type);e!==n&&(J(ct,t),J(W,n))}function Nn(t){ct.current===t&&(X(W),X(ct)),Tt.current===t&&(X(Tt),Fl._currentValue=nt)}var el,Ss;function ee(t){if(el===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);el=e&&e[1]||"",Ss=-1<n.stack.indexOf(`
1
+ (function(on,Vi){typeof exports=="object"&&typeof module<"u"?Vi(exports):typeof define=="function"&&define.amd?define(["exports"],Vi):(on=typeof globalThis<"u"?globalThis:on||self,Vi(on.VpeReactSdk={}))})(this,(function(on){"use strict";function Vi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Hr={exports:{}},Va={};var jf;function yg(){if(jf)return Va;jf=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var m in u)m!=="key"&&(d[m]=u[m])}else d=u;return u=d.ref,{$$typeof:i,type:o,key:f,ref:u!==void 0?u:null,props:d}}return Va.Fragment=a,Va.jsx=s,Va.jsxs=s,Va}var wf;function vg(){return wf||(wf=1,Hr.exports=yg()),Hr.exports}var x=vg(),_r={exports:{}},Na={},Gr={exports:{}},kr={};var Lf;function gg(){return Lf||(Lf=1,(function(i){function a(Z,k){var Q=Z.length;Z.push(k);t:for(;0<Q;){var it=Q-1>>>1,yt=Z[it];if(0<u(yt,k))Z[it]=k,Z[Q]=yt,Q=it;else break t}}function s(Z){return Z.length===0?null:Z[0]}function o(Z){if(Z.length===0)return null;var k=Z[0],Q=Z.pop();if(Q!==k){Z[0]=Q;t:for(var it=0,yt=Z.length,wt=yt>>>1;it<wt;){var E=2*(it+1)-1,q=Z[E],J=E+1,W=Z[J];if(0>u(q,Q))J<yt&&0>u(W,q)?(Z[it]=W,Z[J]=Q,it=J):(Z[it]=q,Z[E]=Q,it=E);else if(J<yt&&0>u(W,Q))Z[it]=W,Z[J]=Q,it=J;else break t}}return k}function u(Z,k){var Q=Z.sortIndex-k.sortIndex;return Q!==0?Q:Z.id-k.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();i.unstable_now=function(){return f.now()-m}}var y=[],p=[],v=1,S=null,g=3,D=!1,O=!1,z=!1,N=!1,M=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function F(Z){for(var k=s(p);k!==null;){if(k.callback===null)o(p);else if(k.startTime<=Z)o(p),k.sortIndex=k.expirationTime,a(y,k);else break;k=s(p)}}function U(Z){if(z=!1,F(Z),!O)if(s(y)!==null)O=!0,K||(K=!0,I());else{var k=s(p);k!==null&&nt(U,k.startTime-Z)}}var K=!1,L=-1,H=5,tt=-1;function lt(){return N?!0:!(i.unstable_now()-tt<H)}function ot(){if(N=!1,K){var Z=i.unstable_now();tt=Z;var k=!0;try{t:{O=!1,z&&(z=!1,V(L),L=-1),D=!0;var Q=g;try{e:{for(F(Z),S=s(y);S!==null&&!(S.expirationTime>Z&&lt());){var it=S.callback;if(typeof it=="function"){S.callback=null,g=S.priorityLevel;var yt=it(S.expirationTime<=Z);if(Z=i.unstable_now(),typeof yt=="function"){S.callback=yt,F(Z),k=!0;break e}S===s(y)&&o(y),F(Z)}else o(y);S=s(y)}if(S!==null)k=!0;else{var wt=s(p);wt!==null&&nt(U,wt.startTime-Z),k=!1}}break t}finally{S=null,g=Q,D=!1}k=void 0}}finally{k?I():K=!1}}}var I;if(typeof _=="function")I=function(){_(ot)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,dt=ut.port2;ut.port1.onmessage=ot,I=function(){dt.postMessage(null)}}else I=function(){M(ot,0)};function nt(Z,k){L=M(function(){Z(i.unstable_now())},k)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(Z){Z.callback=null},i.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<Z?Math.floor(1e3/Z):5},i.unstable_getCurrentPriorityLevel=function(){return g},i.unstable_next=function(Z){switch(g){case 1:case 2:case 3:var k=3;break;default:k=g}var Q=g;g=k;try{return Z()}finally{g=Q}},i.unstable_requestPaint=function(){N=!0},i.unstable_runWithPriority=function(Z,k){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var Q=g;g=Z;try{return k()}finally{g=Q}},i.unstable_scheduleCallback=function(Z,k,Q){var it=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?it+Q:it):Q=it,Z){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=Q+yt,Z={id:v++,callback:k,priorityLevel:Z,startTime:Q,expirationTime:yt,sortIndex:-1},Q>it?(Z.sortIndex=Q,a(p,Z),s(y)===null&&Z===s(p)&&(z?(V(L),L=-1):z=!0,nt(U,Q-it))):(Z.sortIndex=yt,a(y,Z),O||D||(O=!0,K||(K=!0,I()))),Z},i.unstable_shouldYield=lt,i.unstable_wrapCallback=function(Z){var k=g;return function(){var Q=g;g=k;try{return Z.apply(this,arguments)}finally{g=Q}}}})(kr)),kr}var Of;function bg(){return Of||(Of=1,Gr.exports=gg()),Gr.exports}var Yr={exports:{}},ft={},Bf;function Sg(){if(Bf)return ft;Bf=1;var i={};var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),D=Symbol.iterator;function O(E){return E===null||typeof E!="object"?null:(E=D&&E[D]||E["@@iterator"],typeof E=="function"?E:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,M={};function V(E,q,J){this.props=E,this.context=q,this.refs=M,this.updater=J||z}V.prototype.isReactComponent={},V.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,q,"setState")},V.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function _(){}_.prototype=V.prototype;function F(E,q,J){this.props=E,this.context=q,this.refs=M,this.updater=J||z}var U=F.prototype=new _;U.constructor=F,N(U,V.prototype),U.isPureReactComponent=!0;var K=Array.isArray;function L(){}var H={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function lt(E,q,J){var W=J.ref;return{$$typeof:a,type:E,key:q,ref:W!==void 0?W:null,props:J}}function ot(E,q){return lt(E.type,q,E.props)}function I(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function ut(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var dt=/\/+/g;function nt(E,q){return typeof E=="object"&&E!==null&&E.key!=null?ut(""+E.key):q.toString(36)}function Z(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(L,L):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function k(E,q,J,W,ct){var mt=typeof E;(mt==="undefined"||mt==="boolean")&&(E=null);var Tt=!1;if(E===null)Tt=!0;else switch(mt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(E.$$typeof){case a:case s:Tt=!0;break;case S:return Tt=E._init,k(Tt(E._payload),q,J,W,ct)}}if(Tt)return ct=ct(E),Tt=W===""?"."+nt(E,0):W,K(ct)?(J="",Tt!=null&&(J=Tt.replace(dt,"$&/")+"/"),k(ct,q,J,"",function(pi){return pi})):ct!=null&&(I(ct)&&(ct=ot(ct,J+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(dt,"$&/")+"/")+Tt)),q.push(ct)),1;Tt=0;var te=W===""?".":W+":";if(K(E))for(var Gt=0;Gt<E.length;Gt++)W=E[Gt],mt=te+nt(W,Gt),Tt+=k(W,q,J,mt,ct);else if(Gt=O(E),typeof Gt=="function")for(E=Gt.call(E),Gt=0;!(W=E.next()).done;)W=W.value,mt=te+nt(W,Gt++),Tt+=k(W,q,J,mt,ct);else if(mt==="object"){if(typeof E.then=="function")return k(Z(E),q,J,W,ct);throw q=String(E),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function Q(E,q,J){if(E==null)return E;var W=[],ct=0;return k(E,W,"","",function(mt){return q.call(J,mt,ct++)}),W}function it(E){if(E._status===-1){var q=E._result;q=q(),q.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=q)}if(E._status===1)return E._result.default;throw E._result}var yt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=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(q))return}else if(typeof i=="object"&&typeof i.emit=="function"){i.emit("uncaughtException",E);return}console.error(E)},wt={map:Q,forEach:function(E,q,J){Q(E,function(){q.apply(this,arguments)},J)},count:function(E){var q=0;return Q(E,function(){q++}),q},toArray:function(E){return Q(E,function(q){return q})||[]},only:function(E){if(!I(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ft.Activity=g,ft.Children=wt,ft.Component=V,ft.Fragment=o,ft.Profiler=d,ft.PureComponent=F,ft.StrictMode=u,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ft.__COMPILER_RUNTIME={__proto__:null,c:function(E){return H.H.useMemoCache(E)}},ft.cache=function(E){return function(){return E.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(E,q,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=N({},E.props),ct=E.key;if(q!=null)for(mt in q.key!==void 0&&(ct=""+q.key),q)!tt.call(q,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&q.ref===void 0||(W[mt]=q[mt]);var mt=arguments.length-2;if(mt===1)W.children=J;else if(1<mt){for(var Tt=Array(mt),te=0;te<mt;te++)Tt[te]=arguments[te+2];W.children=Tt}return lt(E.type,ct,W)},ft.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ft.createElement=function(E,q,J){var W,ct={},mt=null;if(q!=null)for(W in q.key!==void 0&&(mt=""+q.key),q)tt.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ct[W]=q[W]);var Tt=arguments.length-2;if(Tt===1)ct.children=J;else if(1<Tt){for(var te=Array(Tt),Gt=0;Gt<Tt;Gt++)te[Gt]=arguments[Gt+2];ct.children=te}if(E&&E.defaultProps)for(W in Tt=E.defaultProps,Tt)ct[W]===void 0&&(ct[W]=Tt[W]);return lt(E,mt,ct)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(E){return{$$typeof:y,render:E}},ft.isValidElement=I,ft.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:it}},ft.memo=function(E,q){return{$$typeof:v,type:E,compare:q===void 0?null:q}},ft.startTransition=function(E){var q=H.T,J={};H.T=J;try{var W=E(),ct=H.S;ct!==null&&ct(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(L,yt)}catch(mt){yt(mt)}finally{q!==null&&J.types!==null&&(q.types=J.types),H.T=q}},ft.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ft.use=function(E){return H.H.use(E)},ft.useActionState=function(E,q,J){return H.H.useActionState(E,q,J)},ft.useCallback=function(E,q){return H.H.useCallback(E,q)},ft.useContext=function(E){return H.H.useContext(E)},ft.useDebugValue=function(){},ft.useDeferredValue=function(E,q){return H.H.useDeferredValue(E,q)},ft.useEffect=function(E,q){return H.H.useEffect(E,q)},ft.useEffectEvent=function(E){return H.H.useEffectEvent(E)},ft.useId=function(){return H.H.useId()},ft.useImperativeHandle=function(E,q,J){return H.H.useImperativeHandle(E,q,J)},ft.useInsertionEffect=function(E,q){return H.H.useInsertionEffect(E,q)},ft.useLayoutEffect=function(E,q){return H.H.useLayoutEffect(E,q)},ft.useMemo=function(E,q){return H.H.useMemo(E,q)},ft.useOptimistic=function(E,q){return H.H.useOptimistic(E,q)},ft.useReducer=function(E,q,J){return H.H.useReducer(E,q,J)},ft.useRef=function(E){return H.H.useRef(E)},ft.useState=function(E){return H.H.useState(E)},ft.useSyncExternalStore=function(E,q,J){return H.H.useSyncExternalStore(E,q,J)},ft.useTransition=function(){return H.H.useTransition()},ft.version="19.2.1",ft}var Vf;function qr(){return Vf||(Vf=1,Yr.exports=Sg()),Yr.exports}var Xr={exports:{}},fe={};var Nf;function xg(){if(Nf)return fe;Nf=1;var i=qr();function a(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(y,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:p,implementation:v}}var f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,fe.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return d(y,p,null,v)},fe.flushSync=function(y){var p=f.T,v=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=p,o.p=v,o.d.f()}},fe.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},fe.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},fe.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin),g=typeof p.integrity=="string"?p.integrity:void 0,D=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:g,fetchPriority:D}):v==="script"&&o.d.X(y,{crossOrigin:S,integrity:g,fetchPriority:D,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},fe.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},fe.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin);o.d.L(y,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},fe.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},fe.requestFormReset=function(y){o.d.r(y)},fe.unstable_batchedUpdates=function(y,p){return y(p)},fe.useFormState=function(y,p,v){return f.H.useFormState(y,p,v)},fe.useFormStatus=function(){return f.H.useHostTransitionStatus()},fe.version="19.2.1",fe}var Uf;function Tg(){if(Uf)return Xr.exports;Uf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Xr.exports=xg(),Xr.exports}var Hf;function Eg(){if(Hf)return Na;Hf=1;var i={};var a=bg(),s=qr(),o=Tg();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(u(188))}function v(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var c=r.alternate;if(c===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===n)return p(r),t;if(c===l)return p(r),e;c=c.sibling}throw Error(u(188))}if(n.return!==l.return)n=r,l=c;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,l=c;break}if(b===l){h=!0,l=r,n=c;break}b=b.sibling}if(!h){for(b=c.child;b;){if(b===n){h=!0,n=c,l=r;break}if(b===l){h=!0,l=c,n=r;break}b=b.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,D=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),F=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var dt=Symbol.for("react.client.reference");function nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===dt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case V:return"Profiler";case M:return"StrictMode";case K:return"Suspense";case L:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case F:return t.displayName||"Context";case _:return(t._context.displayName||"Context")+".Consumer";case U:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:nt(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return nt(t(e))}catch{}}return null}var Z=Array.isArray,k=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},yt=[],wt=-1;function E(t){return{current:t}}function q(t){0>wt||(t.current=yt[wt],yt[wt]=null,wt--)}function J(t,e){wt++,yt[wt]=t.current,t.current=e}var W=E(null),ct=E(null),mt=E(null),Tt=E(null);function te(t,e){switch(J(mt,e),J(ct,t),J(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?_v(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=_v(e),t=Gv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(W),J(W,t)}function Gt(){q(W),q(ct),q(mt)}function pi(t){t.memoizedState!==null&&J(Tt,t);var e=W.current,n=Gv(e,t.type);e!==n&&(J(ct,t),J(W,n))}function Nn(t){ct.current===t&&(q(W),q(ct)),Tt.current===t&&(q(Tt),Pl._currentValue=it)}var el,bs;function ee(t){if(el===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);el=e&&e[1]||"",bs=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+el+t+Ss}var me=!1;function Ae(t,e){if(!t||me)return"";me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(H){var B=H}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(H){B=H}t.call(Z.prototype)}}else{try{throw Error()}catch(H){B=H}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var T=h.split(`
4
- `),R=b.split(`
5
- `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===R.length)for(l=T.length-1,r=R.length-1;1<=l&&0<=r&&T[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==R[r]){var Y=`
6
- `+T[l].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=l&&0<=r);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ee(n):""}function nl(t,e){switch(t.tag){case 26:case 27:case 5:return ee(t.type);case 16:return ee("Lazy");case 13:return t.child!==e&&e!==null?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return Ae(t.type,!1);case 11:return Ae(t.type.render,!1);case 1:return Ae(t.type,!0);case 31:return ee("Activity");default:return""}}function al(t){try{var e="",n=null;do e+=nl(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
3
+ `+el+t+bs}var me=!1;function Ae(t,e){if(!t||me)return"";me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(G){var B=G}Reflect.construct(t,[],P)}else{try{P.call()}catch(G){B=G}t.call(P.prototype)}}else{try{throw Error()}catch(G){B=G}(P=t())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(G){if(G&&B&&typeof G.stack=="string")return[G.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],b=c[1];if(h&&b){var T=h.split(`
4
+ `),w=b.split(`
5
+ `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===w.length)for(l=T.length-1,r=w.length-1;1<=l&&0<=r&&T[l]!==w[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==w[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==w[r]){var Y=`
6
+ `+T[l].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=l&&0<=r);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ee(n):""}function nl(t,e){switch(t.tag){case 26:case 27:case 5:return ee(t.type);case 16:return ee("Lazy");case 13:return t.child!==e&&e!==null?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return Ae(t.type,!1);case 11:return Ae(t.type.render,!1);case 1:return Ae(t.type,!0);case 31:return ee("Activity");default:return""}}function il(t){try{var e="",n=null;do e+=nl(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var Pa=Object.prototype.hasOwnProperty,ga=i.unstable_scheduleCallback,Ja=i.unstable_cancelCallback,xs=i.unstable_shouldYield,pu=i.unstable_requestPaint,le=i.unstable_now,gu=i.unstable_getCurrentPriorityLevel,om=i.unstable_ImmediatePriority,um=i.unstable_UserBlockingPriority,Ts=i.unstable_NormalPriority,jb=i.unstable_LowPriority,cm=i.unstable_IdlePriority,Ob=i.log,Nb=i.unstable_setDisableYieldValue,il=null,ze=null;function Hn(t){if(typeof Ob=="function"&&Nb(t),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(il,t)}catch{}}var Ce=Math.clz32?Math.clz32:_b,Hb=Math.log,Ub=Math.LN2;function _b(t){return t>>>=0,t===0?32:31-(Hb(t)/Ub|0)|0}var Es=256,Ms=262144,As=4194304;function ya(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~u,l!==0?r=ya(l):(h&=b,h!==0?r=ya(h):n||(n=b&~t,n!==0&&(r=ya(n))))):(b=l&~u,b!==0?r=ya(b):h!==0?r=ya(h):n||(n=l&~t,n!==0&&(r=ya(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function ll(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gb(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 fm(){var t=As;return As<<=1,(As&62914560)===0&&(As=4194304),t}function yu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function kb(t,e,n,l,r,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,R=t.hiddenUpdates;for(n=h&~n;0<n;){var Y=31-Ce(n),Z=1<<Y;b[Y]=0,T[Y]=-1;var B=R[Y];if(B!==null)for(R[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}n&=~Z}l!==0&&dm(t,l,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function dm(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function hm(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ce(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function mm(t,e){var n=e&-e;return n=(n&42)!==0?1:vu(n),(n&(t.suspendedLanes|e))!==0?0:n}function vu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function pm(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:t3(t.type))}function gm(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var Un=Math.random().toString(36).slice(2),se="__reactFiber$"+Un,ye="__reactProps$"+Un,Ia="__reactContainer$"+Un,Su="__reactEvents$"+Un,Yb="__reactListeners$"+Un,qb="__reactHandles$"+Un,ym="__reactResources$"+Un,rl="__reactMarker$"+Un;function xu(t){delete t[se],delete t[ye],delete t[Su],delete t[Yb],delete t[qb]}function Wa(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ia]||n[se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=U2(t);t!==null;){if(n=t[se])return n;t=U2(t)}return e}t=n,n=t.parentNode}return null}function $a(t){if(t=t[se]||t[Ia]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function ti(t){var e=t[ym];return e||(e=t[ym]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ne(t){t[rl]=!0}var vm=new Set,bm={};function va(t,e){ei(t,e),ei(t+"Capture",e)}function ei(t,e){for(bm[t]=e,t=0;t<e.length;t++)vm.add(e[t])}var Xb=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]*$"),Sm={},xm={};function Zb(t){return Pa.call(xm,t)?!0:Pa.call(Sm,t)?!1:Xb.test(t)?xm[t]=!0:(Sm[t]=!0,!1)}function Cs(t,e,n){if(Zb(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ws(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function dn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Fb(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Tu(t){if(!t._valueTracker){var e=Tm(t)?"checked":"value";t._valueTracker=Fb(t,e,""+t[e])}}function Em(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Tm(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ds(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Kb=/[\n"\\]/g;function _e(t){return t.replace(Kb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Eu(t,e,n,l,r,u,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Mu(t,h,Ue(e)):n!=null?Mu(t,h,Ue(n)):l!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ue(b):t.removeAttribute("name")}function Mm(t,e,n,l,r,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Tu(t);return}n=n!=null?""+Ue(n):"",e=e!=null?""+Ue(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Tu(t)}function Mu(t,e,n){e==="number"&&Ds(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ni(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ue(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Am(t,e,n){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ue(n):""}function zm(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(Q(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ue(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Tu(t)}function ai(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Qb=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 Cm(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Qb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function wm(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&Cm(t,r,l)}else for(var u in e)e.hasOwnProperty(u)&&Cm(t,u,e[u])}function Au(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Pb=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"]]),Jb=/^[\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 Rs(t){return Jb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hn(){}var zu=null;function Cu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ii=null,li=null;function Dm(t){var e=$a(t);if(e&&(t=e.stateNode)){var n=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Eu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[ye]||null;if(!r)throw Error(c(90));Eu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Em(l)}break t;case"textarea":Am(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ni(t,!!n.multiple,e,!1)}}}var wu=!1;function Rm(t,e,n){if(wu)return t(e,n);wu=!0;try{var l=t(e);return l}finally{if(wu=!1,(ii!==null||li!==null)&&(yr(),ii&&(e=ii,t=li,li=ii=null,Dm(e),t)))for(e=0;e<t.length;e++)Dm(t[e])}}function ul(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ye]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(mn)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Du=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Du=!1}var _n=null,Ru=null,Ls=null;function Lm(){if(Ls)return Ls;var t,e=Ru,n=e.length,l,r="value"in _n?_n.value:_n.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[u-l];l++);return Ls=r.slice(t,1<l?1-l:void 0)}function Bs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Vs(){return!0}function Bm(){return!1}function ve(t){function e(n,l,r,u,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Vs:Bm,this.isPropagationStopped=Bm,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),e}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},js=ve(ba),fl=v({},ba,{view:0,detail:0}),Ib=ve(fl),Lu,Bu,dl,Os=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==dl&&(dl&&t.type==="mousemove"?(Lu=t.screenX-dl.screenX,Bu=t.screenY-dl.screenY):Bu=Lu=0,dl=t),Lu)},movementY:function(t){return"movementY"in t?t.movementY:Bu}}),Vm=ve(Os),Wb=v({},Os,{dataTransfer:0}),$b=ve(Wb),tS=v({},fl,{relatedTarget:0}),Vu=ve(tS),eS=v({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),nS=ve(eS),aS=v({},ba,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iS=ve(aS),lS=v({},ba,{data:0}),jm=ve(lS),sS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rS={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"},oS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=oS[t])?!!e[t]:!1}function ju(){return uS}var cS=v({},fl,{key:function(t){if(t.key){var e=sS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?rS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(t){return t.type==="keypress"?Bs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fS=ve(cS),dS=v({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=ve(dS),hS=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),mS=ve(hS),pS=v({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),gS=ve(pS),yS=v({},Os,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),vS=ve(yS),bS=v({},ba,{newState:0,oldState:0}),SS=ve(bS),xS=[9,13,27,32],Ou=mn&&"CompositionEvent"in window,hl=null;mn&&"documentMode"in document&&(hl=document.documentMode);var TS=mn&&"TextEvent"in window&&!hl,Nm=mn&&(!Ou||hl&&8<hl&&11>=hl),Hm=" ",Um=!1;function _m(t,e){switch(t){case"keyup":return xS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var si=!1;function ES(t,e){switch(t){case"compositionend":return Gm(e);case"keypress":return e.which!==32?null:(Um=!0,Hm);case"textInput":return t=e.data,t===Hm&&Um?null:t;default:return null}}function MS(t,e){if(si)return t==="compositionend"||!Ou&&_m(t,e)?(t=Lm(),Ls=Ru=_n=null,si=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nm&&e.locale!=="ko"?null:e.data;default:return null}}var AS={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 km(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!AS[t.type]:e==="textarea"}function Ym(t,e,n,l){ii?li?li.push(l):li=[l]:ii=l,e=Mr(e,"onChange"),0<e.length&&(n=new js("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ml=null,pl=null;function zS(t){M2(t,0)}function Ns(t){var e=ol(t);if(Em(e))return t}function qm(t,e){if(t==="change")return e}var Xm=!1;if(mn){var Nu;if(mn){var Hu="oninput"in document;if(!Hu){var Zm=document.createElement("div");Zm.setAttribute("oninput","return;"),Hu=typeof Zm.oninput=="function"}Nu=Hu}else Nu=!1;Xm=Nu&&(!document.documentMode||9<document.documentMode)}function Fm(){ml&&(ml.detachEvent("onpropertychange",Km),pl=ml=null)}function Km(t){if(t.propertyName==="value"&&Ns(pl)){var e=[];Ym(e,pl,t,Cu(t)),Rm(zS,e)}}function CS(t,e,n){t==="focusin"?(Fm(),ml=e,pl=n,ml.attachEvent("onpropertychange",Km)):t==="focusout"&&Fm()}function wS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ns(pl)}function DS(t,e){if(t==="click")return Ns(e)}function RS(t,e){if(t==="input"||t==="change")return Ns(e)}function LS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var we=typeof Object.is=="function"?Object.is:LS;function gl(t,e){if(we(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Pa.call(e,r)||!we(t[r],e[r]))return!1}return!0}function Qm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pm(t,e){var n=Qm(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Qm(n)}}function Jm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Im(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ds(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ds(t.document)}return e}function Uu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var BS=mn&&"documentMode"in document&&11>=document.documentMode,ri=null,_u=null,yl=null,Gu=!1;function Wm(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||ri==null||ri!==Ds(l)||(l=ri,"selectionStart"in l&&Uu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),yl&&gl(yl,l)||(yl=l,l=Mr(_u,"onSelect"),0<l.length&&(e=new js("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ri)))}function Sa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oi={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},ku={},$m={};mn&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function xa(t){if(ku[t])return ku[t];if(!oi[t])return t;var e=oi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in $m)return ku[t]=e[n];return t}var t1=xa("animationend"),e1=xa("animationiteration"),n1=xa("animationstart"),VS=xa("transitionrun"),jS=xa("transitionstart"),OS=xa("transitioncancel"),a1=xa("transitionend"),i1=new Map,Yu="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(" ");Yu.push("scrollEnd");function Je(t,e){i1.set(t,e),va(e,[t])}var Hs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",t);return}console.error(t)},Ge=[],ui=0,qu=0;function Us(){for(var t=ui,e=qu=ui=0;e<t;){var n=Ge[e];Ge[e++]=null;var l=Ge[e];Ge[e++]=null;var r=Ge[e];Ge[e++]=null;var u=Ge[e];if(Ge[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}u!==0&&l1(n,r,u)}}function _s(t,e,n,l){Ge[ui++]=t,Ge[ui++]=e,Ge[ui++]=n,Ge[ui++]=l,qu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Xu(t,e,n,l){return _s(t,e,n,l),Gs(t)}function Ta(t,e){return _s(t,null,null,e),Gs(t)}function l1(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-Ce(n),t=u.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),u):null}function Gs(t){if(50<_l)throw _l=0,$c=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ci={};function NS(t,e,n,l){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,n,l){return new NS(t,e,n,l)}function Zu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pn(t,e){var n=t.alternate;return n===null?(n=De(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function s1(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ks(t,e,n,l,r,u){var h=0;if(l=t,typeof t=="function")Zu(t)&&(h=1);else if(typeof t=="string")h=k6(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=De(31,n,e,r),t.elementType=lt,t.lanes=u,t;case O:return Ea(n.children,r,u,e);case A:h=8,r|=24;break;case k:return t=De(12,n,e,r|2),t.elementType=k,t.lanes=u,t;case F:return t=De(13,n,e,r),t.elementType=F,t.lanes=u,t;case V:return t=De(19,n,e,r),t.elementType=V,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:h=10;break t;case G:h=9;break t;case _:h=11;break t;case N:h=14;break t;case tt:h=16,l=null;break t}h=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=De(h,n,e,r),e.elementType=t,e.type=l,e.lanes=u,e}function Ea(t,e,n,l){return t=De(7,t,l,e),t.lanes=n,t}function Fu(t,e,n){return t=De(6,t,null,e),t.lanes=n,t}function r1(t){var e=De(18,null,null,0);return e.stateNode=t,e}function Ku(t,e,n){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var o1=new WeakMap;function ke(t,e){if(typeof t=="object"&&t!==null){var n=o1.get(t);return n!==void 0?n:(e={value:t,source:e,stack:al(e)},o1.set(t,e),e)}return{value:t,source:e,stack:al(e)}}var fi=[],di=0,Ys=null,vl=0,Ye=[],qe=0,Gn=null,an=1,ln="";function gn(t,e){fi[di++]=vl,fi[di++]=Ys,Ys=t,vl=e}function u1(t,e,n){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,Gn=t;var l=an;t=ln;var r=32-Ce(l)-1;l&=~(1<<r),n+=1;var u=32-Ce(e)+r;if(30<u){var h=r-r%5;u=(l&(1<<h)-1).toString(32),l>>=h,r-=h,an=1<<32-Ce(e)+r|n<<r|l,ln=u+t}else an=1<<u|n<<r|l,ln=t}function Qu(t){t.return!==null&&(gn(t,1),u1(t,1,0))}function Pu(t){for(;t===Ys;)Ys=fi[--di],fi[di]=null,vl=fi[--di],fi[di]=null;for(;t===Gn;)Gn=Ye[--qe],Ye[qe]=null,ln=Ye[--qe],Ye[qe]=null,an=Ye[--qe],Ye[qe]=null}function c1(t,e){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,an=e.id,ln=e.overflow,Gn=t}var re=null,Vt=null,xt=!1,kn=null,Xe=!1,Ju=Error(c(519));function Yn(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(ke(e,t)),Ju}function f1(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[se]=t,e[ye]=l,n){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(n=0;n<kl.length;n++)vt(kl[n],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),Mm(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),zm(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||w2(e.textContent,n)?(l.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),l.onScroll!=null&&vt("scroll",e),l.onScrollEnd!=null&&vt("scrollend",e),l.onClick!=null&&(e.onclick=hn),e=!0):e=!1,e||Yn(t,!0)}function d1(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:re=re.return}}function hi(t){if(t!==re)return!1;if(!xt)return d1(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||pf(t.type,t.memoizedProps)),n=!n),n&&Vt&&Yn(t),d1(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=H2(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=H2(t)}else e===27?(e=Vt,na(t.type)?(t=Sf,Sf=null,Vt=t):Vt=e):Vt=re?Fe(t.stateNode.nextSibling):null;return!0}function Ma(){Vt=re=null,xt=!1}function Iu(){var t=kn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),kn=null),t}function bl(t){kn===null?kn=[t]:kn.push(t)}var Wu=E(null),Aa=null,yn=null;function qn(t,e,n){J(Wu,e._currentValue),e._currentValue=n}function vn(t){t._currentValue=Wu.current,X(Wu)}function $u(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function tc(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),$u(u.return,n,t),l||(h=null);break t}u=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(c(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),$u(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function mi(t,e,n,l){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(c(387));if(h=h.memoizedProps,h!==null){var b=r.type;we(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===Tt.current){if(h=r.alternate,h===null)throw Error(c(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Fl):t=[Fl])}r=r.return}t!==null&&tc(e,t,n,l),e.flags|=262144}function qs(t){for(t=t.firstContext;t!==null;){if(!we(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function za(t){Aa=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return h1(Aa,t)}function Xs(t,e){return Aa===null&&za(t),h1(t,e)}function h1(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},yn===null){if(t===null)throw Error(c(308));yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else yn=yn.next=e;return n}var HS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},US=i.unstable_scheduleCallback,_S=i.unstable_NormalPriority,Kt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new HS,data:new Map,refCount:0}}function Sl(t){t.refCount--,t.refCount===0&&US(_S,function(){t.controller.abort()})}var xl=null,nc=0,pi=0,gi=null;function GS(t,e){if(xl===null){var n=xl=[];nc=0,pi=sf(),gi={status:"pending",value:void 0,then:function(l){n.push(l)}}}return nc++,e.then(m1,m1),e}function m1(){if(--nc===0&&xl!==null){gi!==null&&(gi.status="fulfilled");var t=xl;xl=null,pi=0,gi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function kS(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var p1=U.S;U.S=function(t,e){Wp=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&GS(t,e),p1!==null&&p1(t,e)};var Ca=E(null);function ac(){var t=Ca.current;return t!==null?t:Lt.pooledCache}function Zs(t,e){e===null?J(Ca,Ca.current):J(Ca,e.pool)}function g1(){var t=ac();return t===null?null:{parent:Kt._currentValue,pool:t}}var yi=Error(c(460)),ic=Error(c(474)),Fs=Error(c(542)),Ks={then:function(){}};function y1(t){return t=t.status,t==="fulfilled"||t==="rejected"}function v1(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(hn,hn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,S1(t),t;default:if(typeof e.status=="string")e.then(hn,hn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,S1(t),t}throw Da=e,yi}}function wa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Da=n,yi):n}}var Da=null;function b1(){if(Da===null)throw Error(c(459));var t=Da;return Da=null,t}function S1(t){if(t===yi||t===Fs)throw Error(c(483))}var vi=null,Tl=0;function Qs(t){var e=Tl;return Tl+=1,vi===null&&(vi=[]),v1(vi,t,e)}function El(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ps(t,e){throw e.$$typeof===z?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function x1(t){function e(w,M){if(t){var D=w.deletions;D===null?(w.deletions=[M],w.flags|=16):D.push(M)}}function n(w,M){if(!t)return null;for(;M!==null;)e(w,M),M=M.sibling;return null}function l(w){for(var M=new Map;w!==null;)w.key!==null?M.set(w.key,w):M.set(w.index,w),w=w.sibling;return M}function r(w,M){return w=pn(w,M),w.index=0,w.sibling=null,w}function u(w,M,D){return w.index=D,t?(D=w.alternate,D!==null?(D=D.index,D<M?(w.flags|=67108866,M):D):(w.flags|=67108866,M)):(w.flags|=1048576,M)}function h(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function b(w,M,D,q){return M===null||M.tag!==6?(M=Fu(D,w.mode,q),M.return=w,M):(M=r(M,D),M.return=w,M)}function T(w,M,D,q){var at=D.type;return at===O?Y(w,M,D.props.children,q,D.key):M!==null&&(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&wa(at)===M.type)?(M=r(M,D.props),El(M,D),M.return=w,M):(M=ks(D.type,D.key,D.props,null,w.mode,q),El(M,D),M.return=w,M)}function R(w,M,D,q){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=Ku(D,w.mode,q),M.return=w,M):(M=r(M,D.children||[]),M.return=w,M)}function Y(w,M,D,q,at){return M===null||M.tag!==7?(M=Ea(D,w.mode,q,at),M.return=w,M):(M=r(M,D),M.return=w,M)}function Z(w,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Fu(""+M,w.mode,D),M.return=w,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return D=ks(M.type,M.key,M.props,null,w.mode,D),El(D,M),D.return=w,D;case L:return M=Ku(M,w.mode,D),M.return=w,M;case tt:return M=wa(M),Z(w,M,D)}if(Q(M)||ut(M))return M=Ea(M,w.mode,D,null),M.return=w,M;if(typeof M.then=="function")return Z(w,Qs(M),D);if(M.$$typeof===P)return Z(w,Xs(w,M),D);Ps(w,M)}return null}function B(w,M,D,q){var at=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return at!==null?null:b(w,M,""+D,q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case j:return D.key===at?T(w,M,D,q):null;case L:return D.key===at?R(w,M,D,q):null;case tt:return D=wa(D),B(w,M,D,q)}if(Q(D)||ut(D))return at!==null?null:Y(w,M,D,q,null);if(typeof D.then=="function")return B(w,M,Qs(D),q);if(D.$$typeof===P)return B(w,M,Xs(w,D),q);Ps(w,D)}return null}function H(w,M,D,q,at){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(D)||null,b(M,w,""+q,at);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case j:return w=w.get(q.key===null?D:q.key)||null,T(M,w,q,at);case L:return w=w.get(q.key===null?D:q.key)||null,R(M,w,q,at);case tt:return q=wa(q),H(w,M,D,q,at)}if(Q(q)||ut(q))return w=w.get(D)||null,Y(M,w,q,at,null);if(typeof q.then=="function")return H(w,M,D,Qs(q),at);if(q.$$typeof===P)return H(w,M,D,Xs(M,q),at);Ps(M,q)}return null}function $(w,M,D,q){for(var at=null,Et=null,et=M,pt=M=0,St=null;et!==null&&pt<D.length;pt++){et.index>pt?(St=et,et=null):St=et.sibling;var Mt=B(w,et,D[pt],q);if(Mt===null){et===null&&(et=St);break}t&&et&&Mt.alternate===null&&e(w,et),M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt,et=St}if(pt===D.length)return n(w,et),xt&&gn(w,pt),at;if(et===null){for(;pt<D.length;pt++)et=Z(w,D[pt],q),et!==null&&(M=u(et,M,pt),Et===null?at=et:Et.sibling=et,Et=et);return xt&&gn(w,pt),at}for(et=l(et);pt<D.length;pt++)St=H(et,w,pt,D[pt],q),St!==null&&(t&&St.alternate!==null&&et.delete(St.key===null?pt:St.key),M=u(St,M,pt),Et===null?at=St:Et.sibling=St,Et=St);return t&&et.forEach(function(ra){return e(w,ra)}),xt&&gn(w,pt),at}function st(w,M,D,q){if(D==null)throw Error(c(151));for(var at=null,Et=null,et=M,pt=M=0,St=null,Mt=D.next();et!==null&&!Mt.done;pt++,Mt=D.next()){et.index>pt?(St=et,et=null):St=et.sibling;var ra=B(w,et,Mt.value,q);if(ra===null){et===null&&(et=St);break}t&&et&&ra.alternate===null&&e(w,et),M=u(ra,M,pt),Et===null?at=ra:Et.sibling=ra,Et=ra,et=St}if(Mt.done)return n(w,et),xt&&gn(w,pt),at;if(et===null){for(;!Mt.done;pt++,Mt=D.next())Mt=Z(w,Mt.value,q),Mt!==null&&(M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return xt&&gn(w,pt),at}for(et=l(et);!Mt.done;pt++,Mt=D.next())Mt=H(et,w,pt,Mt.value,q),Mt!==null&&(t&&Mt.alternate!==null&&et.delete(Mt.key===null?pt:Mt.key),M=u(Mt,M,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return t&&et.forEach(function(W6){return e(w,W6)}),xt&&gn(w,pt),at}function Rt(w,M,D,q){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 j:t:{for(var at=D.key;M!==null;){if(M.key===at){if(at=D.type,at===O){if(M.tag===7){n(w,M.sibling),q=r(M,D.props.children),q.return=w,w=q;break t}}else if(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&wa(at)===M.type){n(w,M.sibling),q=r(M,D.props),El(q,D),q.return=w,w=q;break t}n(w,M);break}else e(w,M);M=M.sibling}D.type===O?(q=Ea(D.props.children,w.mode,q,D.key),q.return=w,w=q):(q=ks(D.type,D.key,D.props,null,w.mode,q),El(q,D),q.return=w,w=q)}return h(w);case L:t:{for(at=D.key;M!==null;){if(M.key===at)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){n(w,M.sibling),q=r(M,D.children||[]),q.return=w,w=q;break t}else{n(w,M);break}else e(w,M);M=M.sibling}q=Ku(D,w.mode,q),q.return=w,w=q}return h(w);case tt:return D=wa(D),Rt(w,M,D,q)}if(Q(D))return $(w,M,D,q);if(ut(D)){if(at=ut(D),typeof at!="function")throw Error(c(150));return D=at.call(D),st(w,M,D,q)}if(typeof D.then=="function")return Rt(w,M,Qs(D),q);if(D.$$typeof===P)return Rt(w,M,Xs(w,D),q);Ps(w,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(n(w,M.sibling),q=r(M,D),q.return=w,w=q):(n(w,M),q=Fu(D,w.mode,q),q.return=w,w=q),h(w)):n(w,M)}return function(w,M,D,q){try{Tl=0;var at=Rt(w,M,D,q);return vi=null,at}catch(et){if(et===yi||et===Fs)throw et;var Et=De(29,et,null,w.mode);return Et.lanes=q,Et.return=w,Et}finally{}}}var Ra=x1(!0),T1=x1(!1),Xn=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=Gs(t),l1(t,null,n),e}return _s(t,l,e,n),Gs(t)}function Ml(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,hm(t,n)}}function rc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Al(){if(oc){var t=gi;if(t!==null)throw t}}function zl(t,e,n,l){oc=!1;var r=t.updateQueue;Xn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,R=T.next;T.next=null,h===null?u=R:h.next=R,h=T;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==h&&(b===null?Y.firstBaseUpdate=R:b.next=R,Y.lastBaseUpdate=T))}if(u!==null){var Z=r.baseState;h=0,Y=R=T=null,b=u;do{var B=b.lane&-536870913,H=B!==b.lane;if(H?(bt&B)===B:(l&B)===B){B!==0&&B===pi&&(oc=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var $=t,st=b;B=e;var Rt=n;switch(st.tag){case 1:if($=st.payload,typeof $=="function"){Z=$.call(Rt,Z,B);break t}Z=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=st.payload,B=typeof $=="function"?$.call(Rt,Z,B):$,B==null)break t;Z=v({},Z,B);break t;case 2:Xn=!0}}B=b.callback,B!==null&&(t.flags|=64,H&&(t.flags|=8192),H=r.callbacks,H===null?r.callbacks=[B]:H.push(B))}else H={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(R=Y=H,T=Z):Y=Y.next=H,h|=B;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;H=b,b=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);Y===null&&(T=Z),r.baseState=T,r.firstBaseUpdate=R,r.lastBaseUpdate=Y,u===null&&(r.shared.lanes=0),In|=h,t.lanes=h,t.memoizedState=Z}}function E1(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function M1(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)E1(n[t],e)}var bi=E(null),Js=E(0);function A1(t,e){t=Cn,J(Js,t),J(bi,e),Cn=t|e.baseLanes}function uc(){J(Js,Cn),J(bi,bi.current)}function cc(){Cn=Js.current,X(bi),X(Js)}var Re=E(null),Ze=null;function Kn(t){var e=t.alternate;J(Xt,Xt.current&1),J(Re,t),Ze===null&&(e===null||bi.current!==null||e.memoizedState!==null)&&(Ze=t)}function fc(t){J(Xt,Xt.current),J(Re,t),Ze===null&&(Ze=t)}function z1(t){t.tag===22?(J(Xt,Xt.current),J(Re,t),Ze===null&&(Ze=t)):Qn()}function Qn(){J(Xt,Xt.current),J(Re,Re.current)}function Le(t){X(Re),Ze===t&&(Ze=null),X(Xt)}var Xt=E(0);function Is(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vf(n)||bf(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bn=0,ht=null,wt=null,Qt=null,Ws=!1,Si=!1,La=!1,$s=0,Cl=0,xi=null,YS=0;function kt(){throw Error(c(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!we(t[n],e[n]))return!1;return!0}function hc(t,e,n,l,r,u){return bn=u,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?up:wc,La=!1,u=n(l,r),La=!1,Si&&(u=w1(e,n,l,r)),C1(t),u}function C1(t){U.H=Rl;var e=wt!==null&&wt.next!==null;if(bn=0,Qt=wt=ht=null,Ws=!1,Cl=0,xi=null,e)throw Error(c(300));t===null||Pt||(t=t.dependencies,t!==null&&qs(t)&&(Pt=!0))}function w1(t,e,n,l){ht=t;var r=0;do{if(Si&&(xi=null),Cl=0,Si=!1,25<=r)throw Error(c(301));if(r+=1,Qt=wt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=cp,u=e(n,l)}while(Si);return u}function qS(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?wl(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(ht.flags|=1024),e}function mc(){var t=$s!==0;return $s=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function gc(t){if(Ws){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ws=!1}bn=0,Qt=wt=ht=null,Si=!1,Cl=$s=0,xi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ht.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Zt(){if(wt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Qt===null?ht.memoizedState:Qt.next;if(e!==null)Qt=e,wt=t;else{if(t===null)throw ht.alternate===null?Error(c(467)):Error(c(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Qt===null?ht.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(t){var e=Cl;return Cl+=1,xi===null&&(xi=[]),t=v1(xi,t,e),e=ht,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?up:wc),t}function er(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wl(t);if(t.$$typeof===P)return oe(t)}throw Error(c(438,String(t)))}function yc(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ht.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=tr(),ht.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=ot;return e.index++,n}function Sn(t,e){return typeof e=="function"?e(t):e}function nr(t){var e=Zt();return vc(e,wt,t)}function vc(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var r=t.baseQueue,u=l.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,l.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,T=null,R=e,Y=!1;do{var Z=R.lane&-536870913;if(Z!==R.lane?(bt&Z)===Z:(bn&Z)===Z){var B=R.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Z===pi&&(Y=!0);else if((bn&B)===B){R=R.next,B===pi&&(Y=!0);continue}else Z={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=Z,h=u):T=T.next=Z,ht.lanes|=B,In|=B;Z=R.action,La&&n(u,Z),u=R.hasEagerState?R.eagerState:n(u,Z)}else B={lane:Z,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=B,h=u):T=T.next=B,ht.lanes|=Z,In|=Z;R=R.next}while(R!==null&&R!==e);if(T===null?h=u:T.next=b,!we(u,t.memoizedState)&&(Pt=!0,Y&&(n=gi,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,l.lastRenderedState=u}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function bc(t){var e=Zt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);we(u,e.memoizedState)||(Pt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function D1(t,e,n){var l=ht,r=Zt(),u=xt;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=e();var h=!we((wt||r).memoizedState,n);if(h&&(r.memoizedState=n,Pt=!0),r=r.queue,Tc(B1.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Ti(9,{destroy:void 0},L1.bind(null,l,r,n,e),null),Lt===null)throw Error(c(349));u||(bn&127)!==0||R1(l,e,n)}return n}function R1(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=tr(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function L1(t,e,n,l){e.value=n,e.getSnapshot=l,V1(e)&&j1(t)}function B1(t,e,n){return n(function(){V1(e)&&j1(t)})}function V1(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!we(t,n)}catch{return!0}}function j1(t){var e=Ta(t,2);e!==null&&Ee(e,t,2)}function Sc(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),La){Hn(!0);try{n()}finally{Hn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function O1(t,e,n,l){return t.baseState=n,vc(t,wt,typeof l=="function"?l:Sn)}function XS(t,e,n,l,r){if(lr(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,N1(e,u)):(u.next=n.next,e.pending=n.next=u)}}function N1(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var u=U.T,h={};U.T=h;try{var b=n(r,l),T=U.S;T!==null&&T(h,b),H1(t,e,b)}catch(R){xc(t,e,R)}finally{u!==null&&h.types!==null&&(u.types=h.types),U.T=u}}else try{u=n(r,l),H1(t,e,u)}catch(R){xc(t,e,R)}}function H1(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){U1(t,e,l)},function(l){return xc(t,e,l)}):U1(t,e,n)}function U1(t,e,n){e.status="fulfilled",e.value=n,_1(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,N1(t,n)))}function xc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,_1(e),e=e.next;while(e!==l)}t.action=null}function _1(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function G1(t,e){return e}function k1(t,e){if(xt){var n=Lt.formState;if(n!==null){t:{var l=ht;if(xt){if(Vt){e:{for(var r=Vt,u=Xe;r.nodeType!==8;){if(!u){r=null;break e}if(r=Fe(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Vt=Fe(r.nextSibling),l=r.data==="F!";break t}}Yn(l)}l=!1}l&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G1,lastRenderedState:e},n.queue=l,n=sp.bind(null,ht,l),l.dispatch=n,l=Sc(!1),u=Cc.bind(null,ht,!1,l.queue),l=pe(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=XS.bind(null,ht,r,u,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function Y1(t){var e=Zt();return q1(e,wt,t)}function q1(t,e,n){if(e=vc(t,e,G1)[0],t=nr(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=wl(e)}catch(h){throw h===yi?Fs:h}else l=e;e=Zt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,Ti(9,{destroy:void 0},ZS.bind(null,r,n),null)),[l,u,t]}function ZS(t,e){t.action=e}function X1(t){var e=Zt(),n=wt;if(n!==null)return q1(e,n,t);Zt(),e=e.memoizedState,n=Zt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ti(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ht.updateQueue,e===null&&(e=tr(),ht.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Z1(){return Zt().memoizedState}function ar(t,e,n,l){var r=pe();ht.flags|=t,r.memoizedState=Ti(1|e,{destroy:void 0},n,l===void 0?null:l)}function ir(t,e,n,l){var r=Zt();l=l===void 0?null:l;var u=r.memoizedState.inst;wt!==null&&l!==null&&dc(l,wt.memoizedState.deps)?r.memoizedState=Ti(e,u,n,l):(ht.flags|=t,r.memoizedState=Ti(1|e,u,n,l))}function F1(t,e){ar(8390656,8,t,e)}function Tc(t,e){ir(2048,8,t,e)}function FS(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=tr(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function K1(t){var e=Zt().memoizedState;return FS({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Q1(t,e){return ir(4,2,t,e)}function P1(t,e){return ir(4,4,t,e)}function J1(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function I1(t,e,n){n=n!=null?n.concat([t]):null,ir(4,4,J1.bind(null,e,t),n)}function Ec(){}function W1(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&dc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function $1(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&dc(e,l[1]))return l[0];if(l=t(),La){Hn(!0);try{t()}finally{Hn(!1)}}return n.memoizedState=[l,e],l}function Mc(t,e,n){return n===void 0||(bn&1073741824)!==0&&(bt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=t2(),ht.lanes|=t,In|=t,n)}function tp(t,e,n,l){return we(n,e)?n:bi.current!==null?(t=Mc(t,n,l),we(t,e)||(Pt=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(bt&261930)===0?(Pt=!0,t.memoizedState=n):(t=t2(),ht.lanes|=t,In|=t,e)}function ep(t,e,n,l,r){var u=K.p;K.p=u!==0&&8>u?u:8;var h=U.T,b={};U.T=b,Cc(t,!1,e,n);try{var T=r(),R=U.S;if(R!==null&&R(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=kS(T,l);Dl(t,e,Y,je(t))}else Dl(t,e,l,je(t))}catch(Z){Dl(t,e,{then:function(){},status:"rejected",reason:Z},je())}finally{K.p=u,h!==null&&b.types!==null&&(h.types=b.types),U.T=h}}function KS(){}function Ac(t,e,n,l){if(t.tag!==5)throw Error(c(476));var r=np(t).queue;ep(t,r,e,nt,n===null?KS:function(){return ap(t),n(l)})}function np(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:nt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ap(t){var e=np(t);e.next===null&&(e=t.alternate.memoizedState),Dl(t,e.next.queue,{},je())}function zc(){return oe(Fl)}function ip(){return Zt().memoizedState}function lp(){return Zt().memoizedState}function QS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=je();t=Zn(n);var l=Fn(e,t,n);l!==null&&(Ee(l,e,n),Ml(l,e,n)),e={cache:ec()},t.payload=e;return}e=e.return}}function PS(t,e,n){var l=je();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lr(t)?rp(e,n):(n=Xu(t,e,n,l),n!==null&&(Ee(n,t,l),op(n,e,l)))}function sp(t,e,n){var l=je();Dl(t,e,n,l)}function Dl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lr(t))rp(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,b=u(h,n);if(r.hasEagerState=!0,r.eagerState=b,we(b,h))return _s(t,e,r,0),Lt===null&&Us(),!1}catch{}finally{}if(n=Xu(t,e,r,l),n!==null)return Ee(n,t,l),op(n,e,l),!0}return!1}function Cc(t,e,n,l){if(l={lane:2,revertLane:sf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lr(t)){if(e)throw Error(c(479))}else e=Xu(t,n,l,2),e!==null&&Ee(e,t,2)}function lr(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function rp(t,e){Si=Ws=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function op(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,hm(t,n)}}var Rl={readContext:oe,use:er,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};Rl.useEffectEvent=kt;var up={readContext:oe,use:er,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:F1,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ar(4194308,4,J1.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ar(4194308,4,t,e)},useInsertionEffect:function(t,e){ar(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var l=t();if(La){Hn(!0);try{t()}finally{Hn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=pe();if(n!==void 0){var r=n(e);if(La){Hn(!0);try{n(e)}finally{Hn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=PS.bind(null,ht,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,n=sp.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ec,useDeferredValue:function(t,e){var n=pe();return Mc(n,t,e)},useTransition:function(){var t=Sc(!1);return t=ep.bind(null,ht,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ht,r=pe();if(xt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Lt===null)throw Error(c(349));(bt&127)!==0||R1(l,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,F1(B1.bind(null,l,u,t),[t]),l.flags|=2048,Ti(9,{destroy:void 0},L1.bind(null,l,u,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(xt){var n=ln,l=an;n=(l&~(1<<32-Ce(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=$s++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=YS++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:zc,useFormState:k1,useActionState:k1,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Cc.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:yc,useCacheRefresh:function(){return pe().memoizedState=QS.bind(null,ht)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},wc={readContext:oe,use:er,useCallback:W1,useContext:oe,useEffect:Tc,useImperativeHandle:I1,useInsertionEffect:Q1,useLayoutEffect:P1,useMemo:$1,useReducer:nr,useRef:Z1,useState:function(){return nr(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Zt();return tp(n,wt.memoizedState,t,e)},useTransition:function(){var t=nr(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:wl(t),e]},useSyncExternalStore:D1,useId:ip,useHostTransitionStatus:zc,useFormState:Y1,useActionState:Y1,useOptimistic:function(t,e){var n=Zt();return O1(n,wt,t,e)},useMemoCache:yc,useCacheRefresh:lp};wc.useEffectEvent=K1;var cp={readContext:oe,use:er,useCallback:W1,useContext:oe,useEffect:Tc,useImperativeHandle:I1,useInsertionEffect:Q1,useLayoutEffect:P1,useMemo:$1,useReducer:bc,useRef:Z1,useState:function(){return bc(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Zt();return wt===null?Mc(n,t,e):tp(n,wt.memoizedState,t,e)},useTransition:function(){var t=bc(Sn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:wl(t),e]},useSyncExternalStore:D1,useId:ip,useHostTransitionStatus:zc,useFormState:X1,useActionState:X1,useOptimistic:function(t,e){var n=Zt();return wt!==null?O1(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:yc,useCacheRefresh:lp};cp.useEffectEvent=K1;function Dc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Rc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=je(),r=Zn(l);r.payload=e,n!=null&&(r.callback=n),e=Fn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=je(),r=Zn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Fn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=je(),l=Zn(n);l.tag=2,e!=null&&(l.callback=e),e=Fn(t,l,n),e!==null&&(Ee(e,t,n),Ml(e,t,n))}};function fp(t,e,n,l,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!gl(n,l)||!gl(r,u):!0}function dp(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Rc.enqueueReplaceState(e,e.state,null)}function Ba(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function hp(t){Hs(t)}function mp(t){console.error(t)}function pp(t){Hs(t)}function sr(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function gp(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Lc(t,e,n){return n=Zn(n),n.tag=3,n.payload={element:null},n.callback=function(){sr(t,e)},n}function yp(t){return t=Zn(t),t.tag=3,t}function vp(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=l.value;t.payload=function(){return r(u)},t.callback=function(){gp(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){gp(e,n,l),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function JS(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&mi(e,n,r,!0),n=Re.current,n!==null){switch(n.tag){case 31:case 13:return Ze===null?vr():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Ks?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),nf(t,l,r)),!1;case 22:return n.flags|=65536,l===Ks?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),nf(t,l,r)),!1}throw Error(c(435,n.tag))}return nf(t,l,r),vr(),!1}if(xt)return e=Re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Ju&&(t=Error(c(422),{cause:l}),bl(ke(t,n)))):(l!==Ju&&(e=Error(c(423),{cause:l}),bl(ke(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=ke(l,n),r=Lc(t.stateNode,l,r),rc(t,r),Yt!==4&&(Yt=2)),!1;var u=Error(c(520),{cause:l});if(u=ke(u,n),Ul===null?Ul=[u]:Ul.push(u),Yt!==4&&(Yt=2),e===null)return!0;l=ke(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Lc(n.stateNode,l,t),rc(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wn===null||!Wn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=yp(r),vp(r,t,n,l),rc(n,r),!1}n=n.return}while(n!==null);return!1}var Bc=Error(c(461)),Pt=!1;function ue(t,e,n,l){e.child=t===null?T1(e,null,n,l):Ra(e,t.child,n,l)}function bp(t,e,n,l,r){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var b in l)b!=="ref"&&(h[b]=l[b])}else h=l;return za(e),l=hc(t,e,n,h,u,r),b=mc(),t!==null&&!Pt?(pc(t,e,r),xn(t,e,r)):(xt&&b&&Qu(e),e.flags|=1,ue(t,e,l,r),e.child)}function Sp(t,e,n,l,r){if(t===null){var u=n.type;return typeof u=="function"&&!Zu(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,xp(t,e,u,l,r)):(t=ks(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Gc(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:gl,n(h,l)&&t.ref===e.ref)return xn(t,e,r)}return e.flags|=1,t=pn(u,l),t.ref=e.ref,t.return=e,e.child=t}function xp(t,e,n,l,r){if(t!==null){var u=t.memoizedProps;if(gl(u,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=u,Gc(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,xn(t,e,r)}return Vc(t,e,n,l,r)}function Tp(t,e,n,l){var r=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~u}else l=0,e.child=null;return Ep(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Zs(e,u!==null?u.cachePool:null),u!==null?A1(e,u):uc(),z1(e);else return l=e.lanes=536870912,Ep(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Zs(e,u.cachePool),A1(e,u),Qn(),e.memoizedState=null):(t!==null&&Zs(e,null),uc(),Qn());return ue(t,e,r,n),e.child}function Ll(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ep(t,e,n,l,r){var u=ac();return u=u===null?null:{parent:Kt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Zs(e,null),uc(),z1(e),t!==null&&mi(t,e,l,!0),e.childLanes=r,null}function rr(t,e){return e=ur({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Mp(t,e,n){return Ra(e,t.child,null,n),t=rr(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function IS(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(l.mode==="hidden")return t=rr(e,l),e.lanes=536870912,Ll(null,t);if(fc(e),(t=Vt)?(t=N2(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=r1(t),n.return=e,e.child=n,re=e,Vt=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return rr(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(fc(e),r)if(e.flags&256)e.flags&=-257,e=Mp(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Pt||mi(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(l=Lt,l!==null&&(h=mm(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ta(t,h),Ee(l,t,h),Bc;vr(),e=Mp(t,e,n)}else t=u.treeContext,Vt=Fe(h.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&c1(e,t),e=rr(e,l),e.flags|=4096;return e}return t=pn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function or(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Vc(t,e,n,l,r){return za(e),n=hc(t,e,n,l,void 0,r),l=mc(),t!==null&&!Pt?(pc(t,e,r),xn(t,e,r)):(xt&&l&&Qu(e),e.flags|=1,ue(t,e,n,r),e.child)}function Ap(t,e,n,l,r,u){return za(e),e.updateQueue=null,n=w1(e,l,n,r),C1(t),l=mc(),t!==null&&!Pt?(pc(t,e,u),xn(t,e,u)):(xt&&l&&Qu(e),e.flags|=1,ue(t,e,n,u),e.child)}function zp(t,e,n,l,r){if(za(e),e.stateNode===null){var u=ci,h=n.contextType;typeof h=="object"&&h!==null&&(u=oe(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Rc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},lc(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?oe(h):ci,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Dc(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Rc.enqueueReplaceState(u,u.state,null),zl(e,l,u,r),Al(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,T=Ba(n,b);u.props=T;var R=u.context,Y=n.contextType;h=ci,typeof Y=="object"&&Y!==null&&(h=oe(Y));var Z=n.getDerivedStateFromProps;Y=typeof Z=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,Y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||R!==h)&&dp(e,u,l,h),Xn=!1;var B=e.memoizedState;u.state=B,zl(e,l,u,r),Al(),R=e.memoizedState,b||B!==R||Xn?(typeof Z=="function"&&(Dc(e,n,Z,l),R=e.memoizedState),(T=Xn||fp(e,n,T,l,B,R,h))?(Y||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"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),u.props=l,u.state=R,u.context=h,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,sc(t,e),h=e.memoizedProps,Y=Ba(n,h),u.props=Y,Z=e.pendingProps,B=u.context,R=n.contextType,T=ci,typeof R=="object"&&R!==null&&(T=oe(R)),b=n.getDerivedStateFromProps,(R=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Z||B!==T)&&dp(e,u,l,T),Xn=!1,B=e.memoizedState,u.state=B,zl(e,l,u,r),Al();var H=e.memoizedState;h!==Z||B!==H||Xn||t!==null&&t.dependencies!==null&&qs(t.dependencies)?(typeof b=="function"&&(Dc(e,n,b,l),H=e.memoizedState),(Y=Xn||fp(e,n,Y,l,B,H,T)||t!==null&&t.dependencies!==null&&qs(t.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,H,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,H,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=H),u.props=l,u.state=H,u.context=T,l=Y):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,or(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Ra(e,t.child,null,r),e.child=Ra(e,null,n,r)):ue(t,e,n,r),e.memoizedState=u.state,t=e.child):t=xn(t,e,r),t}function Cp(t,e,n,l){return Ma(),e.flags|=256,ue(t,e,n,l),e.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(t){return{baseLanes:t,cachePool:g1()}}function Nc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function wp(t,e,n){var l=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(r?Kn(e):Qn(),(t=Vt)?(t=N2(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=r1(t),n.return=e,e.child=n,re=e,Vt=null)):t=null,t===null)throw Yn(e);return bf(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,r?(Qn(),r=e.mode,b=ur({mode:"hidden",children:b},r),l=Ea(l,r,n,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=Oc(n),l.childLanes=Nc(t,h,n),e.memoizedState=jc,Ll(null,l)):(Kn(e),Hc(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?(Kn(e),e.flags&=-257,e=Uc(t,e,n)):e.memoizedState!==null?(Qn(),e.child=t.child,e.flags|=128,e=null):(Qn(),b=l.fallback,r=e.mode,l=ur({mode:"visible",children:l.children},r),b=Ea(b,r,n,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,Ra(e,t.child,null,n),l=e.child,l.memoizedState=Oc(n),l.childLanes=Nc(t,h,n),e.memoizedState=jc,e=Ll(null,l));else if(Kn(e),bf(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var R=h.dgst;h=R,l=Error(c(419)),l.stack="",l.digest=h,bl({value:l,source:null,stack:null}),e=Uc(t,e,n)}else if(Pt||mi(t,e,n,!1),h=(n&t.childLanes)!==0,Pt||h){if(h=Lt,h!==null&&(l=mm(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ta(t,l),Ee(h,t,l),Bc;vf(b)||vr(),e=Uc(t,e,n)}else vf(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Vt=Fe(b.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&c1(e,t),e=Hc(e,l.children),e.flags|=4096);return e}return r?(Qn(),b=l.fallback,r=e.mode,T=t.child,R=T.sibling,l=pn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,R!==null?b=pn(R,b):(b=Ea(b,r,n,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,Ll(null,l),l=e.child,b=t.child.memoizedState,b===null?b=Oc(n):(r=b.cachePool,r!==null?(T=Kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=g1(),b={baseLanes:b.baseLanes|n,cachePool:r}),l.memoizedState=b,l.childLanes=Nc(t,h,n),e.memoizedState=jc,Ll(t.child,l)):(Kn(e),n=t.child,t=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Hc(t,e){return e=ur({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ur(t,e){return t=De(22,t,null,e),t.lanes=0,t}function Uc(t,e,n){return Ra(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dp(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),$u(t.return,e,n)}function _c(t,e,n,l,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function Rp(t,e,n){var l=e.pendingProps,r=l.revealOrder,u=l.tail;l=l.children;var h=Xt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,J(Xt,h),ue(t,e,l,n),l=xt?vl:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dp(t,n,e);else if(t.tag===19)Dp(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Is(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),_c(e,!1,r,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Is(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}_c(e,!0,n,null,u,l);break;case"together":_c(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function xn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(mi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=pn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=pn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&qs(t)))}function WS(t,e,n){switch(e.tag){case 3:te(e,e.stateNode.containerInfo),qn(e,Kt,t.memoizedState.cache),Ma();break;case 27:case 5:pa(e);break;case 4:te(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,fc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?wp(t,e,n):(Kn(e),t=xn(t,e,n),t!==null?t.sibling:null);Kn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(mi(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return Rp(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,Tp(t,e,n,e.pendingProps);case 24:qn(e,Kt,t.memoizedState.cache)}return xn(t,e,n)}function Lp(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Gc(t,n)&&(e.flags&128)===0)return Pt=!1,WS(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,xt&&(e.flags&1048576)!==0&&u1(e,vl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=wa(e.elementType),e.type=t,typeof t=="function")Zu(t)?(l=Ba(t,l),e.tag=1,e=zp(null,e,t,l,n)):(e.tag=0,e=Vc(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===_){e.tag=11,e=bp(null,e,t,l,n);break t}else if(r===N){e.tag=14,e=Sp(null,e,t,l,n);break t}}throw e=it(t)||t,Error(c(306,e,""))}}return e;case 0:return Vc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Ba(l,e.pendingProps),zp(t,e,l,r,n);case 3:t:{if(te(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var u=e.memoizedState;r=u.element,sc(t,e),zl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,qn(e,Kt,l),l!==u.cache&&tc(e,[Kt],n,!0),Al(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Cp(t,e,l,n);break t}else if(l!==r){r=ke(Error(c(424)),e),bl(r),e=Cp(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=Fe(t.firstChild),re=e,xt=!0,kn=null,Xe=!0,n=T1(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ma(),l===r){e=xn(t,e,n);break t}ue(t,e,l,n)}e=e.child}return e;case 26:return or(t,e),t===null?(n=Y2(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,l=Ar(mt.current).createElement(n),l[se]=e,l[ye]=t,ce(l,n,t),ne(l),e.stateNode=l):e.memoizedState=Y2(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pa(e),t===null&&xt&&(l=e.stateNode=_2(e.type,e.pendingProps,mt.current),re=e,Xe=!0,r=Vt,na(e.type)?(Sf=r,Vt=Fe(l.firstChild)):Vt=r),ue(t,e,e.pendingProps.children,n),or(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((r=l=Vt)&&(l=w6(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,re=e,Vt=Fe(l.firstChild),Xe=!1,r=!0):r=!1),r||Yn(e)),pa(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,pf(r,u)?l=null:h!==null&&pf(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=hc(t,e,qS,null,null,n),Fl._currentValue=r),or(t,e),ue(t,e,l,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=D6(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Vt=null,t=!0):t=!1),t||Yn(e)),null;case 13:return wp(t,e,n);case 4:return te(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ra(e,null,l,n):ue(t,e,l,n),e.child;case 11:return bp(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,qn(e,e.type,l.value),ue(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,za(e),r=oe(r),l=l(r),e.flags|=1,ue(t,e,l,n),e.child;case 14:return Sp(t,e,e.type,e.pendingProps,n);case 15:return xp(t,e,e.type,e.pendingProps,n);case 19:return Rp(t,e,n);case 31:return IS(t,e,n);case 22:return Tp(t,e,n,e.pendingProps);case 24:return za(e),l=oe(Kt),t===null?(r=ac(),r===null&&(r=Lt,u=ec(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:l,cache:r},lc(e),qn(e,Kt,r)):((t.lanes&n)!==0&&(sc(t,e),zl(e,null,null,n),Al()),r=t.memoizedState,u=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),qn(e,Kt,l)):(l=u.cache,qn(e,Kt,l),l!==r.cache&&tc(e,[Kt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function Tn(t){t.flags|=4}function kc(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(i2())t.flags|=8192;else throw Da=Ks,ic}else t.flags&=-16777217}function Bp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!K2(e))if(i2())t.flags|=8192;else throw Da=Ks,ic}function cr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fm():536870912,t.lanes|=e,zi|=e)}function Bl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function $S(t,e,n){var l=e.pendingProps;switch(Pu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),vn(Kt),_t(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(hi(e)?Tn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Iu())),jt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(Tn(e),u!==null?(jt(e),Bp(e,u)):(jt(e),kc(e,r,null,l,n))):u?u!==t.memoizedState?(Tn(e),jt(e),Bp(e,u)):(jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Tn(e),jt(e),kc(e,r,t,l,n)),null;case 27:if(Nn(e),n=mt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return jt(e),null}t=W.current,hi(e)?f1(e):(t=_2(r,l,n),e.stateNode=t,Tn(e))}return jt(e),null;case 5:if(Nn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return jt(e),null}if(u=W.current,hi(e))f1(e);else{var h=Ar(mt.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}u[se]=e,u[ye]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(ce(u,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Tn(e)}}return jt(e),kc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=mt.current,hi(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=re,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[se]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||w2(t.nodeValue,n)),t||Yn(e,!0)}else t=Ar(t).createTextNode(l),t[se]=e,e.stateNode=t}return jt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=hi(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[se]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else n=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(c(558))}return jt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=hi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(c(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(c(317));r[se]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),r=!1}else r=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),cr(e,e.updateQueue),jt(e),null);case 4:return _t(),t===null&&cf(e.stateNode.containerInfo),jt(e),null;case 10:return vn(e.type),jt(e),null;case 19:if(X(Xt),l=e.memoizedState,l===null)return jt(e),null;if(r=(e.flags&128)!==0,u=l.rendering,u===null)if(r)Bl(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Is(t),u!==null){for(e.flags|=128,Bl(l,!1),t=u.updateQueue,e.updateQueue=t,cr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)s1(n,t),n=n.sibling;return J(Xt,Xt.current&1|2),xt&&gn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&le()>pr&&(e.flags|=128,r=!0,Bl(l,!1),e.lanes=4194304)}else{if(!r)if(t=Is(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,cr(e,t),Bl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!xt)return jt(e),null}else 2*le()-l.renderingStartTime>pr&&n!==536870912&&(e.flags|=128,r=!0,Bl(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=le(),t.sibling=null,n=Xt.current,J(Xt,r?n&1|2:n&1),xt&&gn(e,l.treeForkCount),t):(jt(e),null);case 22:case 23:return Le(e),cc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&cr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&X(Ca),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),vn(Kt),jt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function t6(t,e){switch(Pu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Kt),_t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Nn(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(c(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return X(Xt),null;case 4:return _t(),null;case 10:return vn(e.type),null;case 22:case 23:return Le(e),cc(),t!==null&&X(Ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Kt),null;case 25:return null;default:return null}}function Vp(t,e){switch(Pu(e),e.tag){case 3:vn(Kt),_t();break;case 26:case 27:case 5:Nn(e);break;case 4:_t();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:X(Xt);break;case 10:vn(e.type);break;case 22:case 23:Le(e),cc(),t!==null&&X(Ca);break;case 24:vn(Kt)}}function Vl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==r)}}catch(b){Ct(e,e.return,b)}}function Pn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var u=r.next;l=u;do{if((l.tag&t)===t){var h=l.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,R=b;try{R()}catch(Y){Ct(r,T,Y)}}}l=l.next}while(l!==u)}}catch(Y){Ct(e,e.return,Y)}}function jp(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{M1(e,n)}catch(l){Ct(t,t.return,l)}}}function Op(t,e,n){n.props=Ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ct(t,e,l)}}function jl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Ct(t,e,r)}}function sn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Ct(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ct(t,e,r)}else n.current=null}function Np(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Ct(t,t.return,r)}}function Yc(t,e,n){try{var l=t.stateNode;T6(l,t.type,n,e),l[ye]=e}catch(r){Ct(t,t.return,r)}}function Hp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&na(t.type)||t.tag===4}function qc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&na(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=hn));else if(l!==4&&(l===27&&na(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Xc(t,e,n),t=t.sibling;t!==null;)Xc(t,e,n),t=t.sibling}function fr(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&na(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(fr(t,e,n),t=t.sibling;t!==null;)fr(t,e,n),t=t.sibling}function Up(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ce(e,l,n),e[se]=t,e[ye]=n}catch(u){Ct(t,t.return,u)}}var En=!1,Jt=!1,Zc=!1,_p=typeof WeakSet=="function"?WeakSet:Set,ae=null;function e6(t,e){if(t=t.containerInfo,hf=Br,t=Im(t),Uu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,R=0,Y=0,Z=t,B=null;e:for(;;){for(var H;Z!==n||r!==0&&Z.nodeType!==3||(b=h+r),Z!==u||l!==0&&Z.nodeType!==3||(T=h+l),Z.nodeType===3&&(h+=Z.nodeValue.length),(H=Z.firstChild)!==null;)B=Z,Z=H;for(;;){if(Z===t)break e;if(B===n&&++R===r&&(b=h),B===u&&++Y===l&&(T=h),(H=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=H}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:t,selectionRange:n},Br=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var $=Ba(n.type,r);t=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Ct(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)yf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function Gp(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(t,n),l&4&&Vl(5,n);break;case 1:if(An(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Ct(n,n.return,h)}else{var r=Ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Ct(n,n.return,h)}}l&64&&jp(n),l&512&&jl(n,n.return);break;case 3:if(An(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{M1(t,e)}catch(h){Ct(n,n.return,h)}}break;case 27:e===null&&l&4&&Up(n);case 26:case 5:An(t,n),e===null&&l&4&&Np(n),l&512&&jl(n,n.return);break;case 12:An(t,n);break;case 31:An(t,n),l&4&&qp(t,n);break;case 13:An(t,n),l&4&&Xp(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=c6.bind(null,n),R6(t,n))));break;case 22:if(l=n.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Jt,r=En;var u=Jt;En=l,(Jt=e)&&!u?zn(t,n,(n.subtreeFlags&8772)!==0):An(t,n),En=r,Jt=u}break;case 30:break;default:An(t,n)}}function kp(t){var e=t.alternate;e!==null&&(t.alternate=null,kp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Nt=null,be=!1;function Mn(t,e,n){for(n=n.child;n!==null;)Yp(t,e,n),n=n.sibling}function Yp(t,e,n){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(il,n)}catch{}switch(n.tag){case 26:Jt||sn(n,e),Mn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||sn(n,e);var l=Nt,r=be;na(n.type)&&(Nt=n.stateNode,be=!1),Mn(t,e,n),ql(n.stateNode),Nt=l,be=r;break;case 5:Jt||sn(n,e);case 6:if(l=Nt,r=be,Nt=null,Mn(t,e,n),Nt=l,be=r,Nt!==null)if(be)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Nt.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Nt!==null&&(be?(t=Nt,j2(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ji(t)):j2(Nt,n.stateNode));break;case 4:l=Nt,r=be,Nt=n.stateNode.containerInfo,be=!0,Mn(t,e,n),Nt=l,be=r;break;case 0:case 11:case 14:case 15:Pn(2,n,e),Jt||Pn(4,n,e),Mn(t,e,n);break;case 1:Jt||(sn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Op(n,e,l)),Mn(t,e,n);break;case 21:Mn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Mn(t,e,n),Jt=l;break;default:Mn(t,e,n)}}function qp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ji(t)}catch(n){Ct(e,e.return,n)}}}function Xp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ji(t)}catch(n){Ct(e,e.return,n)}}function n6(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new _p),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new _p),e;default:throw Error(c(435,t.tag))}}function dr(t,e){var n=n6(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=f6.bind(null,t,l);l.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],u=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(na(b.type)){Nt=b.stateNode,be=!1;break t}break;case 5:Nt=b.stateNode,be=!1;break t;case 3:case 4:Nt=b.stateNode.containerInfo,be=!0;break t}b=b.return}if(Nt===null)throw Error(c(160));Yp(u,h,r),Nt=null,be=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zp(e,t),e=e.sibling}var Ie=null;function Zp(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),xe(t),l&4&&(Pn(3,t,t.return),Vl(3,t),Pn(5,t,t.return));break;case 1:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Ie;if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":u=r.getElementsByTagName("title")[0],(!u||u[rl]||u[se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(l),r.head.insertBefore(u,r.querySelector("head > title"))),ce(u,l,n),u[se]=t,ne(u),l=u;break t;case"link":var h=Z2("link","href",r).get(l+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[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)){h.splice(b,1);break e}}u=r.createElement(l),ce(u,l,n),r.head.appendChild(u);break;case"meta":if(h=Z2("meta","content",r).get(l+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[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)){h.splice(b,1);break e}}u=r.createElement(l),ce(u,l,n),r.head.appendChild(u);break;default:throw Error(c(468,l))}u[se]=t,ne(u),l=u}t.stateNode=l}else F2(r,t.type,t.stateNode);else t.stateNode=X2(r,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?F2(r,t.type,t.stateNode):X2(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Yc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),n!==null&&l&4&&Yc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),t.flags&32){r=t.stateNode;try{ai(r,"")}catch($){Ct(t,t.return,$)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,Yc(t,r,n!==null?n.memoizedProps:r)),l&1024&&(Zc=!0);break;case 6:if(Se(e,t),xe(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Ct(t,t.return,$)}}break;case 3:if(wr=null,r=Ie,Ie=zr(e.containerInfo),Se(e,t),Ie=r,xe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(e.containerInfo)}catch($){Ct(t,t.return,$)}Zc&&(Zc=!1,Fp(t));break;case 4:l=Ie,Ie=zr(t.stateNode.containerInfo),Se(e,t),xe(t),Ie=l;break;case 12:Se(e,t),xe(t);break;case 31:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 13:Se(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(mr=le()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,R=En,Y=Jt;if(En=R||r,Jt=Y||T,Se(e,t),Jt=Y,En=R,xe(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||En||Jt||Va(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var Z=T.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch($){Ct(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch($){Ct(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var H=T.stateNode;r?O2(H,!0):O2(T.stateNode,!1)}catch($){Ct(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,dr(t,n))));break;case 19:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,dr(t,l)));break;case 30:break;case 21:break;default:Se(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Hp(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var r=n.stateNode,u=qc(t);fr(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(ai(h,""),n.flags&=-33);var b=qc(t);fr(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,R=qc(t);Xc(t,R,T);break;default:throw Error(c(161))}}catch(Y){Ct(t,t.return,Y)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function An(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Gp(t,e.alternate,e),e=e.sibling}function Va(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pn(4,e,e.return),Va(e);break;case 1:sn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Op(e,e.return,n),Va(e);break;case 27:ql(e.stateNode);case 26:case 5:sn(e,e.return),Va(e);break;case 22:e.memoizedState===null&&Va(e);break;case 30:Va(e);break;default:Va(e)}t=t.sibling}}function zn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:zn(r,u,n),Vl(4,u);break;case 1:if(zn(r,u,n),l=u,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){Ct(l,l.return,R)}if(l=u,r=l.updateQueue,r!==null){var b=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)E1(T[r],b)}catch(R){Ct(l,l.return,R)}}n&&h&64&&jp(u),jl(u,u.return);break;case 27:Up(u);case 26:case 5:zn(r,u,n),n&&l===null&&h&4&&Np(u),jl(u,u.return);break;case 12:zn(r,u,n);break;case 31:zn(r,u,n),n&&h&4&&qp(r,u);break;case 13:zn(r,u,n),n&&h&4&&Xp(r,u);break;case 22:u.memoizedState===null&&zn(r,u,n),jl(u,u.return);break;case 30:break;default:zn(r,u,n)}e=e.sibling}}function Fc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Sl(n))}function Kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t))}function We(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kp(t,e,n,l),e=e.sibling}function Kp(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,l),r&2048&&Vl(9,e);break;case 1:We(t,e,n,l);break;case 3:We(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t)));break;case 12:if(r&2048){We(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ct(e,e.return,T)}}else We(t,e,n,l);break;case 31:We(t,e,n,l);break;case 13:We(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,n,l):Ol(t,e):u._visibility&2?We(t,e,n,l):(u._visibility|=2,Ei(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Fc(h,e);break;case 24:We(t,e,n,l),r&2048&&Kc(e.alternate,e);break;default:We(t,e,n,l)}}function Ei(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,T=l,R=h.flags;switch(h.tag){case 0:case 11:case 15:Ei(u,h,b,T,r),Vl(8,h);break;case 23:break;case 22:var Y=h.stateNode;h.memoizedState!==null?Y._visibility&2?Ei(u,h,b,T,r):Ol(u,h):(Y._visibility|=2,Ei(u,h,b,T,r)),r&&R&2048&&Fc(h.alternate,h);break;case 24:Ei(u,h,b,T,r),r&&R&2048&&Kc(h.alternate,h);break;default:Ei(u,h,b,T,r)}e=e.sibling}}function Ol(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:Ol(n,l),r&2048&&Fc(l.alternate,l);break;case 24:Ol(n,l),r&2048&&Kc(l.alternate,l);break;default:Ol(n,l)}e=e.sibling}}var Nl=8192;function Mi(t,e,n){if(t.subtreeFlags&Nl)for(t=t.child;t!==null;)Qp(t,e,n),t=t.sibling}function Qp(t,e,n){switch(t.tag){case 26:Mi(t,e,n),t.flags&Nl&&t.memoizedState!==null&&Y6(n,Ie,t.memoizedState,t.memoizedProps);break;case 5:Mi(t,e,n);break;case 3:case 4:var l=Ie;Ie=zr(t.stateNode.containerInfo),Mi(t,e,n),Ie=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Nl,Nl=16777216,Mi(t,e,n),Nl=l):Mi(t,e,n));break;default:Mi(t,e,n)}}function Pp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Hl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Ip(l,t)}Pp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jp(t),t=t.sibling}function Jp(t){switch(t.tag){case 0:case 11:case 15:Hl(t),t.flags&2048&&Pn(9,t,t.return);break;case 3:Hl(t);break;case 12:Hl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,hr(t)):Hl(t);break;default:Hl(t)}}function hr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ae=l,Ip(l,t)}Pp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pn(8,e,e.return),hr(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,hr(e));break;default:hr(e)}t=t.sibling}}function Ip(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:Pn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Sl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ae=l;else t:for(n=t;ae!==null;){l=ae;var r=l.sibling,u=l.return;if(kp(l),l===n){ae=null;break t}if(r!==null){r.return=u,ae=r;break t}ae=u}}}var a6={getCacheForType:function(t){var e=oe(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(Kt).controller.signal}},i6=typeof WeakMap=="function"?WeakMap:Map,At=0,Lt=null,yt=null,bt=0,zt=0,Be=null,Jn=!1,Ai=!1,Qc=!1,Cn=0,Yt=0,In=0,ja=0,Pc=0,Ve=0,zi=0,Ul=null,Te=null,Jc=!1,mr=0,Wp=0,pr=1/0,gr=null,Wn=null,Wt=0,$n=null,Ci=null,wn=0,Ic=0,Wc=null,$p=null,_l=0,$c=null;function je(){return(At&2)!==0&&bt!==0?bt&-bt:U.T!==null?sf():pm()}function t2(){if(Ve===0)if((bt&536870912)===0||xt){var t=Ms;Ms<<=1,(Ms&3932160)===0&&(Ms=262144),Ve=t}else Ve=536870912;return t=Re.current,t!==null&&(t.flags|=32),Ve}function Ee(t,e,n){(t===Lt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(wi(t,0),ta(t,bt,Ve,!1)),sl(t,n),((At&2)===0||t!==Lt)&&(t===Lt&&((At&2)===0&&(ja|=n),Yt===4&&ta(t,bt,Ve,!1)),rn(t))}function e2(t,e,n){if((At&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ll(t,e),r=l?r6(t,e):ef(t,e,!0),u=l;do{if(r===0){Ai&&!l&&ta(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!l6(n)){r=ef(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=Ul;var T=b.current.memoizedState.isDehydrated;if(T&&(wi(b,h).flags|=256),h=ef(b,h,!1),h!==2){if(Qc&&!T){b.errorRecoveryDisabledLanes|=u,ja|=u,r=4;break t}u=Te,Te=r,u!==null&&(Te===null?Te=u:Te.push.apply(Te,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){wi(t,0),ta(t,e,0,!0);break}t:{switch(l=t,u=r,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:ta(l,e,Ve,!Jn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(r=mr+300-le(),10<r)){if(ta(l,e,Ve,!Jn),zs(l,0,!0)!==0)break t;wn=e,l.timeoutHandle=B2(n2.bind(null,l,n,Te,gr,Jc,e,Ve,ja,zi,Jn,u,"Throttled",-0,0),r);break t}n2(l,n,Te,gr,Jc,e,Ve,ja,zi,Jn,u,null,-0,0)}}break}while(!0);rn(t)}function n2(t,e,n,l,r,u,h,b,T,R,Y,Z,B,H){if(t.timeoutHandle=-1,Z=e.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},Qp(e,u,Z);var $=(u&62914560)===u?mr-le():(u&4194048)===u?Wp-le():0;if($=q6(Z,$),$!==null){wn=u,t.cancelPendingCommit=$(c2.bind(null,t,e,u,n,l,r,h,b,T,Y,Z,null,B,H)),ta(t,u,h,!R);return}}c2(t,e,u,n,l,r,h,b,T)}function l6(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],u=r.getSnapshot;r=r.value;try{if(!we(u(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ta(t,e,n,l){e&=~Pc,e&=~ja,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var u=31-Ce(r),h=1<<u;l[u]=-1,r&=~h}n!==0&&dm(t,n,e)}function yr(){return(At&6)===0?(Gl(0),!1):!0}function tf(){if(yt!==null){if(zt===0)var t=yt.return;else t=yt,yn=Aa=null,gc(t),vi=null,Tl=0,t=yt;for(;t!==null;)Vp(t.alternate,t),t=t.return;yt=null}}function wi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,A6(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),wn=0,tf(),Lt=t,yt=n=pn(t.current,null),bt=e,zt=0,Be=null,Jn=!1,Ai=ll(t,e),Qc=!1,zi=Ve=Pc=ja=In=Yt=0,Te=Ul=null,Jc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-Ce(l),u=1<<r;e|=t[r],l&=~u}return Cn=e,Us(),n}function a2(t,e){ht=null,U.H=Rl,e===yi||e===Fs?(e=b1(),zt=3):e===ic?(e=b1(),zt=4):zt=e===Bc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,yt===null&&(Yt=1,sr(t,ke(e,t.current)))}function i2(){var t=Re.current;return t===null?!0:(bt&4194048)===bt?Ze===null:(bt&62914560)===bt||(bt&536870912)!==0?t===Ze:!1}function l2(){var t=U.H;return U.H=Rl,t===null?Rl:t}function s2(){var t=U.A;return U.A=a6,t}function vr(){Yt=4,Jn||(bt&4194048)!==bt&&Re.current!==null||(Ai=!0),(In&134217727)===0&&(ja&134217727)===0||Lt===null||ta(Lt,bt,Ve,!1)}function ef(t,e,n){var l=At;At|=2;var r=l2(),u=s2();(Lt!==t||bt!==e)&&(gr=null,wi(t,e)),e=!1;var h=Yt;t:do try{if(zt!==0&&yt!==null){var b=yt,T=Be;switch(zt){case 8:tf(),h=6;break t;case 3:case 2:case 9:case 6:Re.current===null&&(e=!0);var R=zt;if(zt=0,Be=null,Di(t,b,T,R),n&&Ai){h=0;break t}break;default:R=zt,zt=0,Be=null,Di(t,b,T,R)}}s6(),h=Yt;break}catch(Y){a2(t,Y)}while(!0);return e&&t.shellSuspendCounter++,yn=Aa=null,At=l,U.H=r,U.A=u,yt===null&&(Lt=null,bt=0,Us()),h}function s6(){for(;yt!==null;)r2(yt)}function r6(t,e){var n=At;At|=2;var l=l2(),r=s2();Lt!==t||bt!==e?(gr=null,pr=le()+500,wi(t,e)):Ai=ll(t,e);t:do try{if(zt!==0&&yt!==null){e=yt;var u=Be;e:switch(zt){case 1:zt=0,Be=null,Di(t,e,u,1);break;case 2:case 9:if(y1(u)){zt=0,Be=null,o2(e);break}e=function(){zt!==2&&zt!==9||Lt!==t||(zt=7),rn(t)},u.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:y1(u)?(zt=0,Be=null,o2(e)):(zt=0,Be=null,Di(t,e,u,7));break;case 5:var h=null;switch(yt.tag){case 26:h=yt.memoizedState;case 5:case 27:var b=yt;if(h?K2(h):b.stateNode.complete){zt=0,Be=null;var T=b.sibling;if(T!==null)yt=T;else{var R=b.return;R!==null?(yt=R,br(R)):yt=null}break e}}zt=0,Be=null,Di(t,e,u,5);break;case 6:zt=0,Be=null,Di(t,e,u,6);break;case 8:tf(),Yt=6;break t;default:throw Error(c(462))}}o6();break}catch(Y){a2(t,Y)}while(!0);return yn=Aa=null,U.H=l,U.A=r,At=n,yt!==null?0:(Lt=null,bt=0,Us(),Yt)}function o6(){for(;yt!==null&&!xs();)r2(yt)}function r2(t){var e=Lp(t.alternate,t,Cn);t.memoizedProps=t.pendingProps,e===null?br(t):yt=e}function o2(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ap(n,e,e.pendingProps,e.type,void 0,bt);break;case 11:e=Ap(n,e,e.pendingProps,e.type.render,e.ref,bt);break;case 5:gc(e);default:Vp(n,e),e=yt=s1(e,Cn),e=Lp(n,e,Cn)}t.memoizedProps=t.pendingProps,e===null?br(t):yt=e}function Di(t,e,n,l){yn=Aa=null,gc(e),vi=null,Tl=0;var r=e.return;try{if(JS(t,r,e,n,bt)){Yt=1,sr(t,ke(n,t.current)),yt=null;return}}catch(u){if(r!==null)throw yt=r,u;Yt=1,sr(t,ke(n,t.current)),yt=null;return}e.flags&32768?(xt||l===1?t=!0:Ai||(bt&536870912)!==0?t=!1:(Jn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Re.current,l!==null&&l.tag===13&&(l.flags|=16384))),u2(e,t)):br(e)}function br(t){var e=t;do{if((e.flags&32768)!==0){u2(e,Jn);return}t=e.return;var n=$S(e.alternate,e,Cn);if(n!==null){yt=n;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Yt===0&&(Yt=5)}function u2(t,e){do{var n=t6(t.alternate,t);if(n!==null){n.flags&=32767,yt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=n}while(t!==null);Yt=6,yt=null}function c2(t,e,n,l,r,u,h,b,T){t.cancelPendingCommit=null;do Sr();while(Wt!==0);if((At&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=qu,kb(t,n,u,h,b,T),t===Lt&&(yt=Lt=null,bt=0),Ci=e,$n=t,wn=n,Ic=u,Wc=r,$p=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,d6(Ts,function(){return p2(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,r=K.p,K.p=2,h=At,At|=4;try{e6(t,e,n)}finally{At=h,K.p=r,U.T=l}}Wt=1,f2(),d2(),h2()}}function f2(){if(Wt===1){Wt=0;var t=$n,e=Ci,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var r=At;At|=4;try{Zp(e,t);var u=mf,h=Im(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Jm(b.ownerDocument.documentElement,b)){if(T!==null&&Uu(b)){var R=T.start,Y=T.end;if(Y===void 0&&(Y=R),"selectionStart"in b)b.selectionStart=R,b.selectionEnd=Math.min(Y,b.value.length);else{var Z=b.ownerDocument||document,B=Z&&Z.defaultView||window;if(B.getSelection){var H=B.getSelection(),$=b.textContent.length,st=Math.min(T.start,$),Rt=T.end===void 0?st:Math.min(T.end,$);!H.extend&&st>Rt&&(h=Rt,Rt=st,st=h);var w=Pm(b,st),M=Pm(b,Rt);if(w&&M&&(H.rangeCount!==1||H.anchorNode!==w.node||H.anchorOffset!==w.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var D=Z.createRange();D.setStart(w.node,w.offset),H.removeAllRanges(),st>Rt?(H.addRange(D),H.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),H.addRange(D))}}}}for(Z=[],H=b;H=H.parentNode;)H.nodeType===1&&Z.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Z.length;b++){var q=Z[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Br=!!hf,mf=hf=null}finally{At=r,K.p=l,U.T=n}}t.current=e,Wt=2}}function d2(){if(Wt===2){Wt=0;var t=$n,e=Ci,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=K.p;K.p=2;var r=At;At|=4;try{Gp(t,e.alternate,e)}finally{At=r,K.p=l,U.T=n}}Wt=3}}function h2(){if(Wt===4||Wt===3){Wt=0,pu();var t=$n,e=Ci,n=wn,l=$p;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,Ci=$n=null,m2(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Wn=null),bu(n),e=e.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(il,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,r=K.p,K.p=2,U.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var b=l[h];u(b.value,{componentStack:b.stack})}}finally{U.T=e,K.p=r}}(wn&3)!==0&&Sr(),rn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===$c?_l++:(_l=0,$c=t):_l=0,Gl(0)}}function m2(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Sl(e)))}function Sr(){return f2(),d2(),h2(),p2()}function p2(){if(Wt!==5)return!1;var t=$n,e=Ic;Ic=0;var n=bu(wn),l=U.T,r=K.p;try{K.p=32>n?32:n,U.T=null,n=Wc,Wc=null;var u=$n,h=wn;if(Wt=0,Ci=$n=null,wn=0,(At&6)!==0)throw Error(c(331));var b=At;if(At|=4,Jp(u.current),Kp(u,u.current,h,n),At=b,Gl(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(il,u)}catch{}return!0}finally{K.p=r,U.T=l,m2(t,e)}}function g2(t,e,n){e=ke(n,e),e=Lc(t.stateNode,e,2),t=Fn(t,e,2),t!==null&&(sl(t,2),rn(t))}function Ct(t,e,n){if(t.tag===3)g2(t,t,n);else for(;e!==null;){if(e.tag===3){g2(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){t=ke(n,t),n=yp(2),l=Fn(e,n,2),l!==null&&(vp(n,l,e,t),sl(l,2),rn(l));break}}e=e.return}}function nf(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new i6;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Qc=!0,r.add(n),t=u6.bind(null,t,e,n),e.then(t,t))}function u6(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(bt&n)===n&&(Yt===4||Yt===3&&(bt&62914560)===bt&&300>le()-mr?(At&2)===0&&wi(t,0):Pc|=n,zi===bt&&(zi=0)),rn(t)}function y2(t,e){e===0&&(e=fm()),t=Ta(t,e),t!==null&&(sl(t,e),rn(t))}function c6(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),y2(t,n)}function f6(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),y2(t,n)}function d6(t,e){return ga(t,e)}var xr=null,Ri=null,af=!1,Tr=!1,lf=!1,ea=0;function rn(t){t!==Ri&&t.next===null&&(Ri===null?xr=Ri=t:Ri=Ri.next=t),Tr=!0,af||(af=!0,m6())}function Gl(t,e){if(!lf&&Tr){lf=!0;do for(var n=!1,l=xr;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var u=0;else{var h=l.suspendedLanes,b=l.pingedLanes;u=(1<<31-Ce(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,x2(l,u))}else u=bt,u=zs(l,l===Lt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||ll(l,u)||(n=!0,x2(l,u));l=l.next}while(n);lf=!1}}function h6(){v2()}function v2(){Tr=af=!1;var t=0;ea!==0&&M6()&&(t=ea);for(var e=le(),n=null,l=xr;l!==null;){var r=l.next,u=b2(l,e);u===0?(l.next=null,n===null?xr=r:n.next=r,r===null&&(Ri=n)):(n=l,(t!==0||(u&3)!==0)&&(Tr=!0)),l=r}Wt!==0&&Wt!==5||Gl(t),ea!==0&&(ea=0)}function b2(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Ce(u),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&l)!==0)&&(r[h]=Gb(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Lt,n=bt,n=zs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ja(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ll(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ja(l),bu(n)){case 2:case 8:n=um;break;case 32:n=Ts;break;case 268435456:n=cm;break;default:n=Ts}return l=S2.bind(null,t),n=ga(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ja(l),t.callbackPriority=2,t.callbackNode=null,2}function S2(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sr()&&t.callbackNode!==n)return null;var l=bt;return l=zs(t,t===Lt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(e2(t,l,e),b2(t,le()),t.callbackNode!=null&&t.callbackNode===n?S2.bind(null,t):null)}function x2(t,e){if(Sr())return null;e2(t,e,!0)}function m6(){z6(function(){(At&6)!==0?ga(om,h6):v2()})}function sf(){if(ea===0){var t=pi;t===0&&(t=Es,Es<<=1,(Es&261888)===0&&(Es=256)),ea=t}return ea}function T2(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Rs(""+t)}function E2(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function p6(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var u=T2((r[ye]||null).action),h=l.submitter;h&&(e=(e=h[ye]||null)?T2(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new js("action","action",null,l,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ea!==0){var T=h?E2(r,h):new FormData(r);Ac(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?E2(r,h):new FormData(r),Ac(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var rf=0;rf<Yu.length;rf++){var of=Yu[rf],g6=of.toLowerCase(),y6=of[0].toUpperCase()+of.slice(1);Je(g6,"on"+y6)}Je(t1,"onAnimationEnd"),Je(e1,"onAnimationIteration"),Je(n1,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(VS,"onTransitionRun"),Je(jS,"onTransitionStart"),Je(OS,"onTransitionCancel"),Je(a1,"onTransitionEnd"),ei("onMouseEnter",["mouseout","mouseover"]),ei("onMouseLeave",["mouseout","mouseover"]),ei("onPointerEnter",["pointerout","pointerover"]),ei("onPointerLeave",["pointerout","pointerover"]),va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),va("onBeforeInput",["compositionend","keypress","textInput","paste"]),va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),v6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function M2(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var b=l[h],T=b.instance,R=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=R;try{u(r)}catch(Y){Hs(Y)}r.currentTarget=null,u=T}else for(h=0;h<l.length;h++){if(b=l[h],T=b.instance,R=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=R;try{u(r)}catch(Y){Hs(Y)}r.currentTarget=null,u=T}}}}function vt(t,e){var n=e[Su];n===void 0&&(n=e[Su]=new Set);var l=t+"__bubble";n.has(l)||(A2(e,t,2,!1),n.add(l))}function uf(t,e,n){var l=0;e&&(l|=4),A2(n,t,l,e)}var Er="_reactListening"+Math.random().toString(36).slice(2);function cf(t){if(!t[Er]){t[Er]=!0,vm.forEach(function(n){n!=="selectionchange"&&(v6.has(n)||uf(n,!1,t),uf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Er]||(e[Er]=!0,uf("selectionchange",!1,e))}}function A2(t,e,n,l){switch(t3(e)){case 2:var r=F6;break;case 8:r=K6;break;default:r=Af}n=r.bind(null,e,n,t),r=void 0,!Du||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function ff(t,e,n,l,r){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var b=l.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=Wa(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=u=h;continue t}b=b.parentNode}}l=l.return}Rm(function(){var R=u,Y=Cu(n),Z=[];t:{var B=i1.get(t);if(B!==void 0){var H=js,$=t;switch(t){case"keypress":if(Bs(n)===0)break t;case"keydown":case"keyup":H=fS;break;case"focusin":$="focus",H=Vu;break;case"focusout":$="blur",H=Vu;break;case"beforeblur":case"afterblur":H=Vu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=$b;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=mS;break;case t1:case e1:case n1:H=nS;break;case a1:H=gS;break;case"scroll":case"scrollend":H=Ib;break;case"wheel":H=vS;break;case"copy":case"cut":case"paste":H=iS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Om;break;case"toggle":case"beforetoggle":H=SS}var st=(e&4)!==0,Rt=!st&&(t==="scroll"||t==="scrollend"),w=st?B!==null?B+"Capture":null:B;st=[];for(var M=R,D;M!==null;){var q=M;if(D=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||D===null||w===null||(q=ul(M,w),q!=null&&st.push(Yl(M,q,D))),Rt)break;M=M.return}0<st.length&&(B=new H(B,$,null,n,Y),Z.push({event:B,listeners:st}))}}if((e&7)===0){t:{if(B=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",B&&n!==zu&&($=n.relatedTarget||n.fromElement)&&(Wa($)||$[Ia]))break t;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?($=n.relatedTarget||n.toElement,H=R,$=$?Wa($):null,$!==null&&(Rt=f($),st=$.tag,$!==Rt||st!==5&&st!==27&&st!==6)&&($=null)):(H=null,$=R),H!==$)){if(st=Vm,q="onMouseLeave",w="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(st=Om,q="onPointerLeave",w="onPointerEnter",M="pointer"),Rt=H==null?B:ol(H),D=$==null?B:ol($),B=new st(q,M+"leave",H,n,Y),B.target=Rt,B.relatedTarget=D,q=null,Wa(Y)===R&&(st=new st(w,M+"enter",$,n,Y),st.target=D,st.relatedTarget=Rt,q=st),Rt=q,H&&$)e:{for(st=b6,w=H,M=$,D=0,q=w;q;q=st(q))D++;q=0;for(var at=M;at;at=st(at))q++;for(;0<D-q;)w=st(w),D--;for(;0<q-D;)M=st(M),q--;for(;D--;){if(w===M||M!==null&&w===M.alternate){st=w;break e}w=st(w),M=st(M)}st=null}else st=null;H!==null&&z2(Z,B,H,st,!1),$!==null&&Rt!==null&&z2(Z,Rt,$,st,!0)}}t:{if(B=R?ol(R):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var Et=qm;else if(km(B))if(Xm)Et=RS;else{Et=wS;var et=CS}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?R&&Au(R.elementType)&&(Et=qm):Et=DS;if(Et&&(Et=Et(t,R))){Ym(Z,Et,n,Y);break t}et&&et(t,B,R),t==="focusout"&&R&&B.type==="number"&&R.memoizedProps.value!=null&&Mu(B,"number",B.value)}switch(et=R?ol(R):window,t){case"focusin":(km(et)||et.contentEditable==="true")&&(ri=et,_u=R,yl=null);break;case"focusout":yl=_u=ri=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,Wm(Z,n,Y);break;case"selectionchange":if(BS)break;case"keydown":case"keyup":Wm(Z,n,Y)}var pt;if(Ou)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else si?_m(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Nm&&n.locale!=="ko"&&(si||St!=="onCompositionStart"?St==="onCompositionEnd"&&si&&(pt=Lm()):(_n=Y,Ru="value"in _n?_n.value:_n.textContent,si=!0)),et=Mr(R,St),0<et.length&&(St=new jm(St,t,null,n,Y),Z.push({event:St,listeners:et}),pt?St.data=pt:(pt=Gm(n),pt!==null&&(St.data=pt)))),(pt=TS?ES(t,n):MS(t,n))&&(St=Mr(R,"onBeforeInput"),0<St.length&&(et=new jm("onBeforeInput","beforeinput",null,n,Y),Z.push({event:et,listeners:St}),et.data=pt)),p6(Z,t,R,n,Y)}M2(Z,e)})}function Yl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Mr(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=ul(t,n),r!=null&&l.unshift(Yl(t,r,u)),r=ul(t,e),r!=null&&l.push(Yl(t,r,u))),t.tag===3)return l;t=t.return}return[]}function b6(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function z2(t,e,n,l,r){for(var u=e._reactName,h=[];n!==null&&n!==l;){var b=n,T=b.alternate,R=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||R===null||(T=R,r?(R=ul(n,u),R!=null&&h.unshift(Yl(n,R,T))):r||(R=ul(n,u),R!=null&&h.push(Yl(n,R,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var S6=/\r\n?/g,x6=/\u0000|\uFFFD/g;function C2(t){return(typeof t=="string"?t:""+t).replace(S6,`
9
- `).replace(x6,"")}function w2(t,e){return e=C2(e),C2(t)===e}function Dt(t,e,n,l,r,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ai(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ai(t,""+l);break;case"className":ws(t,"class",l);break;case"tabIndex":ws(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ws(t,n,l);break;case"style":wm(t,l,u);break;case"data":if(e!=="object"){ws(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Rs(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.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"?(e!=="input"&&Dt(t,e,"name",r.name,r,null),Dt(t,e,"formEncType",r.formEncType,r,null),Dt(t,e,"formMethod",r.formMethod,r,null),Dt(t,e,"formTarget",r.formTarget,r,null)):(Dt(t,e,"encType",r.encType,r,null),Dt(t,e,"method",r.method,r,null),Dt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Rs(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=hn);break;case"onScroll":l!=null&&vt("scroll",t);break;case"onScrollEnd":l!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Rs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":vt("beforetoggle",t),vt("toggle",t),Cs(t,"popover",l);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Pb.get(n)||n,Cs(t,n,l))}}function df(t,e,n,l,r,u){switch(n){case"style":wm(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ai(t,l):(typeof l=="number"||typeof l=="bigint")&&ai(t,""+l);break;case"onScroll":l!=null&&vt("scroll",t);break;case"onScrollEnd":l!=null&&vt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bm.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[ye]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Cs(t,n,l)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var l=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,u,h,n,null)}}r&&Dt(t,e,"srcSet",n.srcSet,n,null),l&&Dt(t,e,"src",n.src,n,null);return;case"input":vt("invalid",t);var b=u=h=r=null,T=null,R=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":r=Y;break;case"type":h=Y;break;case"checked":T=Y;break;case"defaultChecked":R=Y;break;case"value":u=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(c(137,e));break;default:Dt(t,e,l,Y,n,null)}}Mm(t,u,b,T,R,h,r,!1);return;case"select":vt("invalid",t),l=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":l=b;default:Dt(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!l,e!=null?ni(t,!!l,e,!1):n!=null&&ni(t,!!l,n,!0);return;case"textarea":vt("invalid",t),u=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":l=b;break;case"defaultValue":r=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(c(91));break;default:Dt(t,e,h,b,n,null)}zm(t,l,r,u);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Dt(t,e,T,l,n,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(l=0;l<kl.length;l++)vt(kl[l],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(l=n[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,R,l,n,null)}return;default:if(Au(e)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&df(t,e,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Dt(t,e,b,l,n,null))}function T6(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,T=null,R=null,Y=null;for(H in n){var Z=n[H];if(n.hasOwnProperty(H)&&Z!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=Z;default:l.hasOwnProperty(H)||Dt(t,e,H,null,l,Z)}}for(var B in l){var H=l[B];if(Z=n[B],l.hasOwnProperty(B)&&(H!=null||Z!=null))switch(B){case"type":u=H;break;case"name":r=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":h=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,e));break;default:H!==Z&&Dt(t,e,B,H,l,Z)}}Eu(t,h,b,T,R,Y,u,r);return;case"select":H=h=b=B=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":H=T;default:l.hasOwnProperty(u)||Dt(t,e,u,null,l,T)}for(r in l)if(u=l[r],T=n[r],l.hasOwnProperty(r)&&(u!=null||T!=null))switch(r){case"value":B=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==T&&Dt(t,e,r,u,l,T)}e=b,n=h,l=H,B!=null?ni(t,!!n,B,!1):!!l!=!!n&&(e!=null?ni(t,!!n,e,!0):ni(t,!!n,n?[]:"",!1));return;case"textarea":H=B=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Dt(t,e,b,null,l,r)}for(h in l)if(r=l[h],u=n[h],l.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":B=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:r!==u&&Dt(t,e,h,r,l,u)}Am(t,B,H);return;case"option":for(var $ in n)if(B=n[$],n.hasOwnProperty($)&&B!=null&&!l.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:Dt(t,e,$,null,l,B)}for(T in l)if(B=l[T],H=n[T],l.hasOwnProperty(T)&&B!==H&&(B!=null||H!=null))switch(T){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Dt(t,e,T,B,l,H)}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 st in n)B=n[st],n.hasOwnProperty(st)&&B!=null&&!l.hasOwnProperty(st)&&Dt(t,e,st,null,l,B);for(R in l)if(B=l[R],H=n[R],l.hasOwnProperty(R)&&B!==H&&(B!=null||H!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:Dt(t,e,R,B,l,H)}return;default:if(Au(e)){for(var Rt in n)B=n[Rt],n.hasOwnProperty(Rt)&&B!==void 0&&!l.hasOwnProperty(Rt)&&df(t,e,Rt,void 0,l,B);for(Y in l)B=l[Y],H=n[Y],!l.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||df(t,e,Y,B,l,H);return}}for(var w in n)B=n[w],n.hasOwnProperty(w)&&B!=null&&!l.hasOwnProperty(w)&&Dt(t,e,w,null,l,B);for(Z in l)B=l[Z],H=n[Z],!l.hasOwnProperty(Z)||B===H||B==null&&H==null||Dt(t,e,Z,B,l,H)}function D2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E6(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],u=r.transferSize,h=r.initiatorType,b=r.duration;if(u&&b&&D2(h)){for(h=0,b=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],R=T.startTime;if(R>b)break;var Y=T.transferSize,Z=T.initiatorType;Y&&D2(Z)&&(T=T.responseEnd,h+=Y*(T<b?1:(b-R)/(T-R)))}if(--l,e+=8*(u+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hf=null,mf=null;function Ar(t){return t.nodeType===9?t:t.ownerDocument}function R2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function L2(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function pf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var gf=null;function M6(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var B2=typeof setTimeout=="function"?setTimeout:void 0,A6=typeof clearTimeout=="function"?clearTimeout:void 0,V2=typeof Promise=="function"?Promise:void 0,z6=typeof queueMicrotask=="function"?queueMicrotask:typeof V2<"u"?function(t){return V2.resolve(null).then(t).catch(C6)}:B2;function C6(t){setTimeout(function(){throw t})}function na(t){return t==="head"}function j2(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),ji(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ql(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ql(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[rl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&ql(t.ownerDocument.body);n=r}while(n);ji(e)}function O2(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function yf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yf(n),xu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function w6(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[rl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Fe(t.nextSibling),t===null)break}return null}function D6(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Fe(t.nextSibling),t===null))return null;return t}function N2(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Fe(t.nextSibling),t===null))return null;return t}function vf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function R6(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Fe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sf=null;function H2(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Fe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function U2(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function _2(t,e,n){switch(e=Ar(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function ql(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xu(t)}var Ke=new Map,G2=new Set;function zr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dn=K.d;K.d={f:L6,r:B6,D:V6,C:j6,L:O6,m:N6,X:U6,S:H6,M:_6};function L6(){var t=Dn.f(),e=yr();return t||e}function B6(t){var e=$a(t);e!==null&&e.tag===5&&e.type==="form"?ap(e):Dn.r(t)}var Li=typeof document>"u"?null:document;function k2(t,e,n){var l=Li;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),G2.has(r)||(G2.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function V6(t){Dn.D(t),k2("dns-prefetch",t,null)}function j6(t,e){Dn.C(t,e),k2("preconnect",t,e)}function O6(t,e,n){Dn.L(t,e,n);var l=Li;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_e(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_e(n.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var u=r;switch(e){case"style":u=Bi(t);break;case"script":u=Vi(t)}Ke.has(u)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(u,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Xl(u))||e==="script"&&l.querySelector(Zl(u))||(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function N6(t,e){Dn.m(t,e);var n=Li;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',u=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Vi(t)}if(!Ke.has(u)&&(t=v({rel:"modulepreload",href:t},e),Ke.set(u,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zl(u)))return}l=n.createElement("link"),ce(l,"link",t),ne(l),n.head.appendChild(l)}}}function H6(t,e,n){Dn.S(t,e,n);var l=Li;if(l&&t){var r=ti(l).hoistableStyles,u=Bi(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=l.querySelector(Xl(u)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(u))&&xf(t,n);var T=h=l.createElement("link");ne(T),ce(T,"link",t),T._p=new Promise(function(R,Y){T.onload=R,T.onerror=Y}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Cr(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function U6(t,e){Dn.X(t,e);var n=Li;if(n&&t){var l=ti(n).hoistableScripts,r=Vi(t),u=l.get(r);u||(u=n.querySelector(Zl(r)),u||(t=v({src:t,async:!0},e),(e=Ke.get(r))&&Tf(t,e),u=n.createElement("script"),ne(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function _6(t,e){Dn.M(t,e);var n=Li;if(n&&t){var l=ti(n).hoistableScripts,r=Vi(t),u=l.get(r);u||(u=n.querySelector(Zl(r)),u||(t=v({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&Tf(t,e),u=n.createElement("script"),ne(u),ce(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(r,u))}}function Y2(t,e,n,l){var r=(r=mt.current)?zr(r):null;if(!r)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Bi(n.href),n=ti(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Bi(n.href);var u=ti(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Xl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ke.set(t,n),u||G6(r,t,n,h.state))),e&&l===null)throw Error(c(528,""));return h}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vi(n),n=ti(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Bi(t){return'href="'+_e(t)+'"'}function Xl(t){return'link[rel="stylesheet"]['+t+"]"}function q2(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function G6(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ce(e,"link",n),ne(e),t.head.appendChild(e))}function Vi(t){return'[src="'+_e(t)+'"]'}function Zl(t){return"script[async]"+t}function X2(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(n.href)+'"]');if(l)return e.instance=l,ne(l),l;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ne(l),ce(l,"style",r),Cr(l,n.precedence,t),e.instance=l;case"stylesheet":r=Bi(n.href);var u=t.querySelector(Xl(r));if(u)return e.state.loading|=4,e.instance=u,ne(u),u;l=q2(n),(r=Ke.get(r))&&xf(l,r),u=(t.ownerDocument||t).createElement("link"),ne(u);var h=u;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(u,"link",l),e.state.loading|=4,Cr(u,n.precedence,t),e.instance=u;case"script":return u=Vi(n.src),(r=t.querySelector(Zl(u)))?(e.instance=r,ne(r),r):(l=n,(r=Ke.get(u))&&(l=v({},n),Tf(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ne(r),ce(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Cr(l,n.precedence,t));return e.instance}function Cr(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,u=r,h=0;h<l.length;h++){var b=l[h];if(b.dataset.precedence===e)u=b;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var wr=null;function Z2(t,e,n){if(wr===null){var l=new Map,r=wr=new Map;r.set(n,l)}else r=wr,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[rl]||u[se]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var b=l.get(h);b?b.push(u):l.set(h,[u])}}return l}function F2(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function k6(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function K2(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Y6(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Bi(l.href),u=e.querySelector(Xl(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Dr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,ne(u);return}u=e.ownerDocument||e,l=q2(l),(r=Ke.get(r))&&xf(l,r),u=u.createElement("link"),ne(u);var h=u;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Dr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ef=0;function q6(t,e){return t.stylesheets&&t.count===0&&Lr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Ef===0&&(Ef=62500*E6());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Ef?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Rr=null;function Lr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Rr=new Map,e.forEach(X6,t),Rr=null,Dr.call(t))}function X6(t,e){if(!(e.state.loading&4)){var n=Rr.get(t);if(n)var l=n.get(null);else{n=new Map,Rr.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,r),n.set(h,r),this.count++,l=Dr.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Fl={$$typeof:P,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function Z6(t,e,n,l,r,u,h,b,T){this.tag=1,this.containerInfo=t,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=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Q2(t,e,n,l,r,u,h,b,T,R,Y,Z){return t=new Z6(t,e,n,h,T,R,Y,Z,b),e=1,u===!0&&(e|=24),u=De(3,null,null,e),t.current=u,u.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},lc(u),t}function P2(t){return t?(t=ci,t):ci}function J2(t,e,n,l,r,u){r=P2(r),l.context===null?l.context=r:l.pendingContext=r,l=Zn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Fn(t,l,e),n!==null&&(Ee(n,t,e),Ml(n,t,e))}function I2(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mf(t,e){I2(t,e),(t=t.alternate)&&I2(t,e)}function W2(t){if(t.tag===13||t.tag===31){var e=Ta(t,67108864);e!==null&&Ee(e,t,67108864),Mf(t,67108864)}}function $2(t){if(t.tag===13||t.tag===31){var e=je();e=vu(e);var n=Ta(t,e);n!==null&&Ee(n,t,e),Mf(t,e)}}var Br=!0;function F6(t,e,n,l){var r=U.T;U.T=null;var u=K.p;try{K.p=2,Af(t,e,n,l)}finally{K.p=u,U.T=r}}function K6(t,e,n,l){var r=U.T;U.T=null;var u=K.p;try{K.p=8,Af(t,e,n,l)}finally{K.p=u,U.T=r}}function Af(t,e,n,l){if(Br){var r=zf(l);if(r===null)ff(t,e,l,Vr,n),e3(t,l);else if(P6(r,t,e,n,l))l.stopPropagation();else if(e3(t,l),e&4&&-1<Q6.indexOf(t)){for(;r!==null;){var u=$a(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ya(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-Ce(h);b.entanglements[1]|=T,h&=~T}rn(u),(At&6)===0&&(pr=le()+500,Gl(0))}}break;case 31:case 13:b=Ta(u,2),b!==null&&Ee(b,u,2),yr(),Mf(u,2)}if(u=zf(l),u===null&&ff(t,e,l,Vr,n),u===r)break;r=u}r!==null&&l.stopPropagation()}else ff(t,e,l,null,n)}}function zf(t){return t=Cu(t),Cf(t)}var Vr=null;function Cf(t){if(Vr=null,t=Wa(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Vr=t,null}function t3(t){switch(t){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(gu()){case om:return 2;case um:return 8;case Ts:case jb:return 32;case cm:return 268435456;default:return 32}default:return 32}}var wf=!1,aa=null,ia=null,la=null,Kl=new Map,Ql=new Map,sa=[],Q6="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 e3(t,e){switch(t){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Kl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(e.pointerId)}}function Pl(t,e,n,l,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[r]},e!==null&&(e=$a(e),e!==null&&W2(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function P6(t,e,n,l,r){switch(e){case"focusin":return aa=Pl(aa,t,e,n,l,r),!0;case"dragenter":return ia=Pl(ia,t,e,n,l,r),!0;case"mouseover":return la=Pl(la,t,e,n,l,r),!0;case"pointerover":var u=r.pointerId;return Kl.set(u,Pl(Kl.get(u)||null,t,e,n,l,r)),!0;case"gotpointercapture":return u=r.pointerId,Ql.set(u,Pl(Ql.get(u)||null,t,e,n,l,r)),!0}return!1}function n3(t){var e=Wa(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,gm(t.priority,function(){$2(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,gm(t.priority,function(){$2(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function jr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=zf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);zu=l,n.target.dispatchEvent(l),zu=null}else return e=$a(n),e!==null&&W2(e),t.blockedOn=n,!1;e.shift()}return!0}function a3(t,e,n){jr(t)&&n.delete(e)}function J6(){wf=!1,aa!==null&&jr(aa)&&(aa=null),ia!==null&&jr(ia)&&(ia=null),la!==null&&jr(la)&&(la=null),Kl.forEach(a3),Ql.forEach(a3)}function Or(t,e){t.blockedOn===e&&(t.blockedOn=null,wf||(wf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,J6)))}var Nr=null;function i3(t){Nr!==t&&(Nr=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Nr===t&&(Nr=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Cf(l||n)===null)continue;break}var u=$a(n);u!==null&&(t.splice(e,3),e-=3,Ac(u,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function ji(t){function e(T){return Or(T,t)}aa!==null&&Or(aa,t),ia!==null&&Or(ia,t),la!==null&&Or(la,t),Kl.forEach(e),Ql.forEach(e);for(var n=0;n<sa.length;n++){var l=sa[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<sa.length&&(n=sa[0],n.blockedOn===null);)n3(n),n.blockedOn===null&&sa.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],u=n[l+1],h=r[ye]||null;if(typeof u=="function")h||i3(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ye]||null)b=h.formAction;else if(Cf(r)!==null)continue}else b=h.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),i3(n)}}}function l3(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!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 l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Df(t){this._internalRoot=t}Hr.prototype.render=Df.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=je();J2(n,l,t,e,null,null)},Hr.prototype.unmount=Df.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J2(t.current,2,null,t,null,null),yr(),e[Ia]=null}};function Hr(t){this._internalRoot=t}Hr.prototype.unstable_scheduleHydration=function(t){if(t){var e=pm();t={blockedOn:null,target:t,priority:e};for(var n=0;n<sa.length&&e!==0&&e<sa[n].priority;n++);sa.splice(n,0,t),n===0&&n3(t)}};var s3=s.version;if(s3!=="19.2.1")throw Error(c(527,s3,"19.2.1"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=y(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var I6={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{il=Ur.inject(I6),ze=Ur}catch{}}return Ni.createRoot=function(t,e){if(!d(t))throw Error(c(299));var n=!1,l="",r=hp,u=mp,h=pp;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Q2(t,1,!1,null,null,n,l,null,r,u,h,l3),t[Ia]=e.current,cf(t),new Df(e)},Ni.hydrateRoot=function(t,e,n){if(!d(t))throw Error(c(299));var l=!1,r="",u=hp,h=mp,b=pp,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Q2(t,1,!0,e,n??null,l,r,T,u,h,b,l3),e.context=P2(null),n=e.current,l=je(),l=vu(l),r=Zn(l),r.callback=null,Fn(n,r,l),n=l,e.current.lanes=n,sl(e,n),rn(e),t[Ia]=e.current,cf(t),new Hr(e)},Ni.version="19.2.1",Ni}var _f;function p3(){if(_f)return Gr.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(i){console.error(i)}}return a(),Gr.exports=m3(),Gr.exports}var g3=p3();const y3=Oa(g3);var C=Xr();const oa=Oa(C),v3={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},b3={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},S3={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},Gf={en:v3,ko:b3,ja:S3},x3=()=>typeof navigator<"u"&&typeof navigator.language<"u";function T3(a){const i=a.split("-")[0];return i in Gf?i:"en"}function kf(a){let i="en";a?i=a:x3()&&(i=navigator.language);const s=T3(i);return Gf[s]}kf();const E3={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},M3={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let Me={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Rn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const A3=new Date().getTime(),Yf=()=>{const a=new Date,i=d=>String(d).padStart(2,"0"),s=`${a.getFullYear()}-${i(a.getMonth()+1)}-${i(a.getDate())} ${i(a.getHours())}:${i(a.getMinutes())}:${i(a.getSeconds())}`,o=Math.floor(a.getTime()/1e3),c=new Date().getTime()-A3;return{logDate:s,logDateUnix:o,thisSec:c}};function z3(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function C3(a,i){Object.entries(i).forEach(([s,o])=>{z3(o)?(a[s]||(a[s]={}),Object.entries(o).forEach(([c,d])=>{d!=null&&(a[s][c]=d)})):o!=null&&(a[s]=o)})}function w3(a){const i=[];return a?.r1&&i.push(a.r1),a?.r2&&i.push(a.r2),a?.r3&&i.push(a.r3),i.join(" ")}function D3(a){try{const i=Rn.syncResult?.geoLocation;i&&(a.address=w3(i),a.isp=i.net||"",a.ip=Rn.syncResult?.ip||"",a.nation=i.country||"")}catch{}}const R3=async a=>{if(!a)return;const{platform:i,stage:s}=Rn,o=M3[i][s].log;try{const c=await(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:a})})).json();Rn.sync=c.result?.sync||!1,Rn.syncResult=c.result||{};const{logDate:d,logDateUnix:f}=Yf();return Me.extra.logDate=d,Me.extra.logDateUnix=f,Rn.syncResult?.geoLocation&&D3(Me.extra),c}catch(c){return console.error("MA config initialization failed:",c),null}};async function L3(a,i,s,o,c){Rn.platform=a,Rn.stage=i,C3(Me,s),o&&(Me.extra.vpePackageId=o),c&&(Me.extra.vpeKey=c),Me.extra.nation?Me.browser.country=E3[Me.extra.nation]||"Korea, Republic of":Me.browser.country="Korea, Republic of";const{logDate:d,logDateUnix:f}=Yf();Me.extra.logDate=d,Me.extra.logDateUnix=f,Me.extra.created_at=f}const B3=(a={})=>{const i={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},s={...i,...a};return a.controlBtn&&(s.controlBtn={...i.controlBtn,...a.controlBtn}),a.watermarkConfig&&(s.watermarkConfig={...i.watermarkConfig,...a.watermarkConfig}),a.captionStyle&&(s.captionStyle={...i.captionStyle,...a.captionStyle}),s.objectFit==="fill"&&(s.objectFit="stretch"),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},V3={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let qf=[];const j3=a=>{try{return atob(a)}catch(i){return console.error("Base64 decoding failed:",i),""}};class O3{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:i,appId:s,platform:o,stage:c,isDev:d=!1,language:f}){this.accessKey=i,this.appId=s||location.origin,this.platform=o,this.stage=c,this.isDev=d,this.translator=kf(f),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const i=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[i[0]],this[i[1]]].some(c=>!c))return console.warn(s),{error:this.setErrorRun(i[2])};const o=c=>(this.serverConfig=c,this.playerInfo=this.createPlayerInfo(c),this.playerInfo);try{const c=await this.performKeyCheck();if(c.code!==200)return{error:this.setErrorRun(i[3])};const d=o(c);return await L3(this.platform,this.stage,d,this.appId,this.accessKey),await R3(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(c){return console.error("VPE SDK Initialization failed:",c),{error:this.setErrorRun(i[4])}}}async performKeyCheck(){const i=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],s=this.isDev?i[0]:"",o=j3(V3[this.platform][this.stage][i[1]])+s,c=JSON.stringify([i[4],i[5]].reduce((f,g,m)=>(f[g]=[this.accessKey,this.appId][m],f),{})),d=await fetch(o,{method:i[6],headers:{[i[2]]:i[3]},body:c});if(!d.ok)throw new Error(["API","Error:",d.status,d.statusText].join(" "));return d.json()}getBrowserInfo(){const i=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(i)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(i)&&!i.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(i)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(i)&&i.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(i){const[s,o]=i.result.name.split("|"),c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,d=this.getBrowserInfo(),f=navigator.userAgentData;return{cid:i.result.cid,player_name:s,player_version:o,pricing:i.result.pricing,maUse:i.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:c?.effectiveType??"unknown",downlink:c?.downlink??null,rtt:c?.rtt??null,save_data:c?.saveData??!1},device:{platform:f?.platform??"Unknown",mobile:f?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:o,device:f?.platform??"Unknown",os:f?.platform??"Unknown",osOrigin:f?.platform??"Unknown",osVersion:f?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:d.origin,browserOrigin:d.origin,browserVersion:d.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${f?.platform??"Unknown"}&${f?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(i){const s=i.slice(-2),o=this.translator.error[s]||this.translator.error["01"],c={errorCode:i,errorMessage:o};return this.errorState=c,console.error("ncplayer : ",c),c}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(i){const s=B3(this.serverConfig.result?.options?.options),o={...s,...i??{}};return i?.controlBtn&&(o.controlBtn={...s.controlBtn,...i.controlBtn}),i?.watermarkConfig&&(o.watermarkConfig={...s.watermarkConfig,...i.watermarkConfig}),o.playlist&&!Array.isArray(o.playlist)&&(o.playlist=[{file:o.playlist}]),qf=o.playlist||[],o}getPlaylist(){return qf||[]}$t(i){const s=i.split(".");let o=this.translator;for(const c of s)if(o&&typeof o=="object"&&c in o)o=o[c];else return i;return typeof o=="string"?o:i}}const Fr=new Map;function N3(a,i){if(Fr.has(a))return Fr.get(a);const o={value:typeof i=="function"?i():i,listeners:new Set};return Fr.set(a,o),o}function Xf(a,i){const s=N3(a,i),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,d=()=>s.value,f=m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())};return[C.useSyncExternalStore(o,c,d),f]}const Kr=new Map;function H3(a,i){if(Kr.has(a))return Kr.get(a);const o={value:typeof i=="function"?i():i,listeners:new Set};return Kr.set(a,o),o}function Zf(a,i){const s=H3(a,i),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,d=()=>s.value,f=C.useCallback(m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())},[s]);return[C.useSyncExternalStore(o,c,d),f]}const U3="playerState",_3={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isHd:!1,is4k:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function qt(){const[a,i]=Zf(U3,_3),s=C.useCallback(o=>{i(c=>{const d=typeof o=="function"?o(c):o;return{...c,...d}})},[i]);return[a,s]}const G3="playerController",k3={videoEl:null,hls:null,dash:null};function $t(){const[a,i]=Zf(G3,k3),[s,o]=qt(),c=C.useCallback(_=>{i(F=>({...F,videoEl:_}))},[i]),d=C.useCallback(_=>{i(F=>({...F,hls:_}))},[i]),f=C.useCallback(_=>{i(F=>({...F,dash:_}))},[i]),g=C.useCallback(()=>{o({isUserTouch:!0})},[o]),m=C.useCallback(()=>{const _=a.videoEl;_&&_.paused&&_.play()},[a.videoEl]),p=C.useCallback(()=>{const _=a.videoEl;_&&(_.paused||_.pause())},[a.videoEl]),y=C.useCallback(_=>{const F=a.videoEl;if(!F||Number.isNaN(_))return;const V=Math.max(0,Math.min(_,F.duration||_));F.currentTime=V,o({currentTime:V})},[o,a.videoEl]),S=C.useCallback(_=>{const F=a.videoEl;if(!F||Number.isNaN(_))return;const V=Math.max(0,Math.min(100,_));F.volume=V/100,F.muted=V===0},[a.videoEl]),v=C.useCallback(_=>{const F=a.videoEl;F&&(F.muted=_)},[a.videoEl]),z=C.useCallback(_=>{const F=a.videoEl;if(!F)return;const V=F.textTracks;if(!V||V.length===0)return;const N=Math.max(0,Math.min(s.subTitleIdx??0,V.length-1));for(let tt=0;tt<V.length;tt+=1)V[tt].mode=_&&tt===N?"showing":"disabled";o({isSubtitle:_})},[s.subTitleIdx,o,a.videoEl]),j=C.useCallback(()=>{const _=a.videoEl;if(!_)return;const F=_.textTracks;if(!F||F.length===0){o({isSubtitle:!1});return}let V=!1;for(let N=0;N<F.length;N+=1)if(F[N].mode==="showing"){V=!0;break}V?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),z(!V)},[o,z,a.videoEl]),L=C.useCallback(_=>{const F=a.videoEl;if(!F)return;const V=Array.from(F.querySelectorAll("track")),N=F.textTracks;if((!N||N.length===0)&&V.length===0){o({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const tt=V.length>0?V.length-1:N.length-1,lt=Math.max(0,Math.min(_,tt));if(V.length>0)V.forEach((ot,I)=>{ot.track&&(ot.track.mode=I===lt?"showing":"disabled")});else for(let ot=0;ot<N.length;ot+=1)N[ot].mode=ot===lt?"showing":"disabled";o({isSubtitle:!0,subTitleIdx:lt}),localStorage.setItem("vpeSubtitleEnabled","Y")},[o,a.videoEl]),O=C.useCallback(()=>{const _=a.videoEl;_&&(_.muted=!_.muted)},[a.videoEl]),A=C.useCallback(()=>{const _=a.videoEl;_&&(_.paused?m():p())},[p,m,a.videoEl]),k=C.useCallback(_=>{const F=a.hls,V=a.dash;if(!F&&!V)return;if(F){if(_==="auto"){F.currentLevel=-1,o({currentLevel:-1,isAutoLevel:!0});return}F.currentLevel=_,o({currentLevel:_,isAutoLevel:!1});return}const N=_==="auto"||_===-1;V?.setAutoSwitchQualityFor&&V.setAutoSwitchQualityFor("video",N),!N&&V?.setQualityFor&&V.setQualityFor("video",_),o({currentLevel:N?-1:_,isAutoLevel:N})},[o,a.dash,a.hls]),G=C.useCallback(_=>{const F=a.videoEl;F&&(F.playbackRate=_)},[a.videoEl]),P=C.useCallback(async()=>{const _=a.videoEl;if(!_||typeof document>"u")return;const F=document;if(F.pictureInPictureElement){typeof F.exitPictureInPicture=="function"&&await F.exitPictureInPicture();return}const V=_.requestPictureInPicture;typeof V=="function"&&await V.call(_)},[a.videoEl]);return{videoEl:a.videoEl,hls:a.hls,dash:a.dash,setVideoElement:c,setHlsInstance:d,setDashInstance:f,play:m,pause:p,seekTo:y,setVolume:S,setMuted:v,setSubtitleEnabled:z,toggleSubtitle:j,toggleMute:O,togglePlay:A,useTouch:g,playBackRate:G,selectSubTitle:L,selectQualityLevel:k,togglePictureInPicture:P}}function Qr(a,i,s=!1){C.useEffect(()=>{const o=a.current;if(!o)return;const c=()=>{i({isPlaying:!0,initPlay:!0,isEnded:!1})},d=()=>{i({isPlaying:!1})},f=()=>{s||Math.round(o.currentTime)%1==0&&i({currentTime:o.currentTime,duration:o.duration})},g=()=>{if(o.buffered.length>0){const G=o.buffered.start(0),P=o.buffered.end(o.buffered.length-1);i({buffered:P,bufferedStart:G,bufferedEnd:P})}},m=()=>{const G=o.videoWidth||0,P=o.videoHeight||0;i({isHd:G>=1280,is4k:P>=2160,videoWidth:G,videoHeight:P})},p=()=>{i({isEnded:!0})},y=()=>{i({isSeeked:!0})},S=()=>{setTimeout(()=>{i({isSeeked:!1})},200)},v=()=>{i({isMuted:o.muted,isVolume:Math.round(o.volume*100)})},z=()=>{i({isLoading:!0,isWaiting:!0})},j=()=>{i({isLoading:!1}),m()},L=()=>{i({isLoading:!1}),m()},O=()=>{i({isWaiting:!0})},A=()=>{i({isWaiting:!1,isLoading:!1})},k=()=>{i({isWaiting:!0})};return o.addEventListener("play",c),o.addEventListener("pause",d),o.addEventListener("timeupdate",f),o.addEventListener("ended",p),o.addEventListener("progress",g),o.addEventListener("seeking",y),o.addEventListener("seeked",S),o.addEventListener("volumechange",v),o.addEventListener("loadstart",z),o.addEventListener("loadedmetadata",j),o.addEventListener("loadeddata",L),o.addEventListener("resize",m),o.addEventListener("waiting",O),o.addEventListener("playing",A),o.addEventListener("stalled",k),v(),()=>{o.removeEventListener("play",c),o.removeEventListener("pause",d),o.removeEventListener("timeupdate",f),o.removeEventListener("ended",p),o.removeEventListener("progress",g),o.removeEventListener("seeking",y),o.removeEventListener("seeked",S),o.removeEventListener("volumechange",v),o.removeEventListener("loadstart",z),o.removeEventListener("loadedmetadata",j),o.removeEventListener("loadeddata",L),o.removeEventListener("resize",m),o.removeEventListener("waiting",O),o.removeEventListener("playing",A),o.removeEventListener("stalled",k)}},[s,i,a])}const Y3=3,q3=3e3;function X3(a){const i=C.useRef(null),s=C.useRef(0),o=C.useRef(null),[c,d]=qt(),{setVideoElement:f,setHlsInstance:g}=$t(),m=a.hlsLib,p=a.options;return C.useEffect(()=>{const y=i.current,S=a?.src?.file;if(!(!y||!S)){if(m?.isSupported?.()){const v=new m({lowLatencyMode:p.lowLatencyMode,liveSyncDuration:p.lowLatencyMode?3:5,backBufferLength:p.lowLatencyMode?30:90,startPosition:-1});g(v),v.attachMedia(y),v.on(m.Events.MEDIA_ATTACHED,()=>{v.loadSource(S)});const z=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:Y3,j=typeof p?.retry?.interval=="number"?p.retry.interval:q3,L=O=>{if(typeof O?.details?.live=="boolean"){const A=O.details.live,k=O.details.totalduration,G=A&&typeof k=="number"&&Number.isFinite(k)&&k>0;d({isLive:A,isDvr:G})}};return v.on(m.Events.MANIFEST_PARSED,(O,A)=>{s.current=0,L(A);const k=(v.levels??[]).map((G,P)=>({index:P,width:G.width,height:G.height,bitrate:G.bitrate,name:G.name}));d({levels:k,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(m.Events.LEVEL_LOADED,(O,A)=>{s.current=0,L(A)}),v.on(m.Events.LEVEL_SWITCHED,(O,A)=>{d({currentLevel:A.level,isAutoLevel:v.autoLevelEnabled})}),v.on(m.Events.ERROR,(O,A)=>{if(A?.fatal){if(s.current<z){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,A?.type===m.ErrorTypes.MEDIA_ERROR){v.recoverMediaError();return}v.stopLoad(),v.loadSource(S),v.startLoad()},j);return}console.log("HLS 재시도 횟수 초과"),a.onError&&a.onError({evt:O,data:A}),v.destroy()}}),()=>{o.current&&(clearTimeout(o.current),o.current=null),g(null),v.destroy()}}y.src=S}},[m,a?.src?.file,a.onError,g,d]),C.useEffect(()=>{const y=i.current;if(!y||m?.isSupported?.())return;const S=()=>{const v=y.duration,z=!Number.isFinite(v)||v===1/0,j=z?Number.isFinite(v)&&v>0:!1;d({isLive:z,isDvr:j})};return y.addEventListener("loadedmetadata",S),y.addEventListener("durationchange",S),S(),()=>{y.removeEventListener("loadedmetadata",S),y.removeEventListener("durationchange",S)}},[m,d]),C.useEffect(()=>(f(i.current),()=>f(null)),[f]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=p?.playbackRate;typeof S=="number"&&(y.playbackRate=S,d({playbackRate:S}))},[p]),C.useEffect(()=>{const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=50,v=16,z=1.2,j=40,O=-Math.max(1,Math.round(S/(v*z))),A=V=>{if(V.cues)for(let N=0;N<V.cues.length;N+=1){const tt=V.cues[N];tt.line=O,tt.lineAlign="center"}},k=V=>{if(!V.cues)return;const N=y.getBoundingClientRect(),tt=N.width>0?j*2*100/N.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<V.cues.length;ot+=1){const I=V.cues[ot];I.size=lt,I.position=50,I.align="center",I.line=-3}},G=V=>{A(V),k(V)},P=Array.from(y.querySelectorAll("track")),_=V=>{const N=V.currentTarget;N?.track&&G(N.track)};P.forEach(V=>{V.addEventListener("load",_),V.track&&G(V.track)});const F=new ResizeObserver(()=>{P.forEach(V=>{V.track&&k(V.track)})});return F.observe(y),()=>{P.forEach(V=>{V.removeEventListener("load",_)}),F.disconnect()}},[p,a.src?.vtt]),Qr(i,d,c.isSeeked),C.useEffect(()=>{const y=a.src?.vtt??[],S=y.length>0,v=y.findIndex(j=>j.default),z=v>=0?v:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:z})},[a.src?.vtt,d]),C.useEffect(()=>{if(!c.isSubtitle)return;const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=new Map,v=[],z=async(L,O)=>{try{const A=await fetch(O,{mode:"cors"});if(!A.ok)return;const k=await A.blob(),G=URL.createObjectURL(k);v.push(G),S.set(L,L.src),L.src=G}catch{}},j=Array.from(y.querySelectorAll("track"));return j.forEach(L=>{L.src&&z(L,L.src)}),()=>{j.forEach(L=>{const O=S.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,c.subTitleIdx,c.isSubtitle]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=Array.from(y.querySelectorAll("track")),v=y.textTracks;if((!v||v.length===0)&&S.length===0)return;const z=c.subTitleIdx,j=c.isSubtitle,L=()=>{if(S.length>0){S.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),S.forEach((A,k)=>{A.track&&j&&k===z&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<v.length;A+=1)v[A].mode="disabled";j&&v[z]&&(v[z].mode="showing")};L();const O=()=>{L()};return S.forEach(A=>{A.addEventListener("load",O)}),()=>{S.forEach(A=>{A.removeEventListener("load",O)})}},[c.isSubtitle,c.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const y=i.current;y&&p.autostart&&y.play().catch(S=>{console.log(S),y.muted=!0,y.play()})},[p.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&c.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[c.hasSubtitle,d]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?c.initPlay?"transparent":`url(${a.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:a.src.vtt?.map(y=>x.jsx("track",{kind:"subtitles",srcLang:y.id,label:y.label,src:y.src,default:y.default},`${y.id}-${y.src}`))})})}const Z3=3,F3=3e3,K3=a=>{if(!a)return null;if(typeof a.MediaPlayer=="function"){const i=a.MediaPlayer();if(i?.create)return i.create()}if(a.MediaPlayer?.create)return a.MediaPlayer.create();if(typeof a.MediaPlayerFactory=="function"){const i=a.MediaPlayerFactory();if(i?.create)return i.create()}return null};function Q3(a){const i=C.useRef(null),s=C.useRef(0),o=C.useRef(null),[c,d]=qt(),{setVideoElement:f,setDashInstance:g}=$t(),m=a.dashLib,p=a.options;return C.useEffect(()=>{const y=i.current,S=a?.src?.file;if(!y||!S)return;const v=K3(m);if(!v){y.src=S;return}g(v),typeof v.initialize=="function"?v.initialize(y,S,!!p?.autostart):typeof v.attachView=="function"&&typeof v.attachSource=="function"?(v.attachView(y),v.attachSource(S)):y.src=S;const z=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:Z3,j=typeof p?.retry?.interval=="number"?p.retry.interval:F3,L=()=>{const N=(typeof v.getBitrateInfoListFor=="function"?v.getBitrateInfoListFor("video"):[]).map((ot,I)=>({index:typeof ot?.qualityIndex=="number"?ot.qualityIndex:I,width:ot?.width,height:ot?.height,bitrate:ot?.bitrate??ot?.bandwidth,name:ot?.name})),tt=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,lt=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;d({levels:N,currentLevel:tt,isAutoLevel:lt})},O=()=>{const V=typeof v.isDynamic=="function"?v.isDynamic():!1,N=typeof v.getDuration=="function"?v.getDuration():void 0,tt=V&&typeof N=="number"&&Number.isFinite(N)&&N>0;d({isLive:V,isDvr:tt})},A=()=>{s.current=0,L(),O()},k=()=>{const V=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,N=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;d({currentLevel:V,isAutoLevel:N})},G=(V,N)=>{if(N?.error?.fatal??N?.fatal??!0){if(s.current<z){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,typeof v.attachSource=="function"){v.attachSource(S);return}typeof v.reset=="function"&&(v.reset(),typeof v.initialize=="function"&&v.initialize(y,S,!!p?.autostart))},j);return}console.log("DASH 재시도 횟수 초과"),a.onError&&a.onError({evt:V,data:N}),typeof v.reset=="function"&&v.reset()}},P=m?.MediaPlayer?.events??m?.MediaPlayer?.Events??m?.events??m?.Events??void 0,_=[],F=(V,N)=>{!V||typeof v.on!="function"||(v.on(V,N),_.push(()=>{typeof v.off=="function"&&v.off(V,N)}))};return F(P?.STREAM_INITIALIZED??P?.MANIFEST_LOADED,A),F(P?.QUALITY_CHANGE_RENDERED??P?.QUALITY_CHANGE_REQUESTED,k),F(P?.ERROR,G),()=>{o.current&&(clearTimeout(o.current),o.current=null),_.forEach(V=>V()),g(null),typeof v.reset=="function"&&v.reset()}},[m,a?.src?.file,a.onError,g,d]),C.useEffect(()=>{const y=i.current;if(!y||!!m&&(typeof m.MediaPlayer=="function"||typeof m.MediaPlayer?.create=="function"||typeof m.MediaPlayerFactory=="function"))return;const v=()=>{const z=y.duration,j=!Number.isFinite(z)||z===1/0,L=j?Number.isFinite(z)&&z>0:!1;d({isLive:j,isDvr:L})};return y.addEventListener("loadedmetadata",v),y.addEventListener("durationchange",v),v(),()=>{y.removeEventListener("loadedmetadata",v),y.removeEventListener("durationchange",v)}},[m,d]),C.useEffect(()=>(f(i.current),()=>f(null)),[f]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=p?.playbackRate;typeof S=="number"&&(y.playbackRate=S,d({playbackRate:S}))},[p]),C.useEffect(()=>{const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=50,v=16,z=1.2,j=40,O=-Math.max(1,Math.round(S/(v*z))),A=V=>{if(V.cues)for(let N=0;N<V.cues.length;N+=1){const tt=V.cues[N];tt.line=O,tt.lineAlign="center"}},k=V=>{if(!V.cues)return;const N=y.getBoundingClientRect(),tt=N.width>0?j*2*100/N.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<V.cues.length;ot+=1){const I=V.cues[ot];I.size=lt,I.position=50,I.align="center"}},G=V=>{A(V),k(V)},P=Array.from(y.querySelectorAll("track")),_=V=>{const N=V.currentTarget;N?.track&&G(N.track)};P.forEach(V=>{V.addEventListener("load",_),V.track&&G(V.track)});const F=new ResizeObserver(()=>{P.forEach(V=>{V.track&&k(V.track)})});return F.observe(y),()=>{P.forEach(V=>{V.removeEventListener("load",_)}),F.disconnect()}},[p,a.src?.vtt]),Qr(i,d,c.isSeeked),C.useEffect(()=>{const y=a.src?.vtt??[],S=y.length>0,v=y.findIndex(j=>j.default),z=v>=0?v:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:z})},[a.src?.vtt,d]),C.useEffect(()=>{if(!c.isSubtitle)return;const y=i.current;if(!y||!a.src?.vtt?.length)return;const S=new Map,v=[],z=async(L,O)=>{try{const A=await fetch(O,{mode:"cors"});if(!A.ok)return;const k=await A.blob(),G=URL.createObjectURL(k);v.push(G),S.set(L,L.src),L.src=G}catch{}},j=Array.from(y.querySelectorAll("track"));return j.forEach(L=>{L.src&&z(L,L.src)}),()=>{j.forEach(L=>{const O=S.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,c.subTitleIdx,c.isSubtitle]),C.useEffect(()=>{const y=i.current;if(!y)return;const S=Array.from(y.querySelectorAll("track")),v=y.textTracks;if((!v||v.length===0)&&S.length===0)return;const z=c.subTitleIdx,j=c.isSubtitle,L=()=>{if(S.length>0){S.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),S.forEach((A,k)=>{A.track&&j&&k===z&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<v.length;A+=1)v[A].mode="disabled";j&&v[z]&&(v[z].mode="showing")};L();const O=()=>{L()};return S.forEach(A=>{A.addEventListener("load",O)}),()=>{S.forEach(A=>{A.removeEventListener("load",O)})}},[c.isSubtitle,c.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const y=i.current;y&&p.autostart&&y.play().catch(S=>{console.log(S),y.muted=!0,y.play()})},[p.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&c.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[c.hasSubtitle,d]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?c.initPlay?"transparent":`url(${a.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:a.src.vtt?.map(y=>x.jsx("track",{kind:"subtitles",srcLang:y.id,label:y.label,src:y.src,default:y.default},`${y.id}-${y.src}`))})})}function P3(a){const i=C.useRef(null),[s,o]=qt(),{setVideoElement:c}=$t(),d=a.options;return C.useEffect(()=>{const f=i.current,g=a?.src?.file;!f||!g||(f.src=g)},[a?.src?.file]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=m=>{a.onError&&a.onError(m)};return f.addEventListener("error",g),()=>{f.removeEventListener("error",g)}},[a.onError]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=()=>{const m=f.duration,p=!Number.isFinite(m)||m===1/0,y=p?Number.isFinite(m)&&m>0:!1;o({isLive:p,isDvr:y})};return f.addEventListener("loadedmetadata",g),f.addEventListener("durationchange",g),g(),()=>{f.removeEventListener("loadedmetadata",g),f.removeEventListener("durationchange",g)}},[o]),C.useEffect(()=>(c(i.current),()=>c(null)),[c]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=d?.playbackRate;typeof g=="number"&&(f.playbackRate=g,o({playbackRate:g}))},[d,o]),C.useEffect(()=>{const f=i.current;if(!f||!a.src?.vtt?.length)return;const g=50,m=16,p=1.2,y=40,v=-Math.max(1,Math.round(g/(m*p))),z=G=>{if(G.cues)for(let P=0;P<G.cues.length;P+=1){const _=G.cues[P];_.line=v,_.lineAlign="center"}},j=G=>{if(!G.cues)return;const P=f.getBoundingClientRect(),_=P.width>0?y*2*100/P.width:0,F=Math.max(10,Math.min(100,100-_));for(let V=0;V<G.cues.length;V+=1){const N=G.cues[V];N.size=F,N.position=50,N.align="center"}},L=G=>{z(G),j(G)},O=Array.from(f.querySelectorAll("track")),A=G=>{const P=G.currentTarget;P?.track&&L(P.track)};O.forEach(G=>{G.addEventListener("load",A),G.track&&L(G.track)});const k=new ResizeObserver(()=>{O.forEach(G=>{G.track&&j(G.track)})});return k.observe(f),()=>{O.forEach(G=>{G.removeEventListener("load",A)}),k.disconnect()}},[d,a.src?.vtt]),Qr(i,o,s.isSeeked),C.useEffect(()=>{const f=a.src?.vtt??[],g=f.length>0,m=f.findIndex(y=>y.default),p=m>=0?m:0;o({hasSubtitle:g,isSubtitle:!1,subTitleIdx:p})},[a.src?.vtt,o]),C.useEffect(()=>{if(!s.isSubtitle)return;const f=i.current;if(!f||!a.src?.vtt?.length)return;const g=new Map,m=[],p=async(S,v)=>{try{const z=await fetch(v,{mode:"cors"});if(!z.ok)return;const j=await z.blob(),L=URL.createObjectURL(j);m.push(L),g.set(S,S.src),S.src=L}catch{}},y=Array.from(f.querySelectorAll("track"));return y.forEach(S=>{S.src&&p(S,S.src)}),()=>{y.forEach(S=>{const v=g.get(S);v&&(S.src=v)}),m.forEach(S=>URL.revokeObjectURL(S))}},[a.src?.vtt,s.subTitleIdx,s.isSubtitle]),C.useEffect(()=>{const f=i.current;if(!f)return;const g=Array.from(f.querySelectorAll("track")),m=f.textTracks;if((!m||m.length===0)&&g.length===0)return;const p=s.subTitleIdx,y=s.isSubtitle,S=()=>{if(g.length>0){g.forEach(z=>{z.track&&(z.default=!1,z.track.mode="disabled")}),g.forEach((z,j)=>{z.track&&y&&j===p&&(z.default=!0,z.track.mode="showing")});return}for(let z=0;z<m.length;z+=1)m[z].mode="disabled";y&&m[p]&&(m[p].mode="showing")};S();const v=()=>{S()};return g.forEach(z=>{z.addEventListener("load",v)}),()=>{g.forEach(z=>{z.removeEventListener("load",v)})}},[s.isSubtitle,s.subTitleIdx,a.src?.vtt]),C.useEffect(()=>{const f=i.current;f&&d.autostart&&f.play().catch(g=>{console.log(g),f.muted=!0,f.play()})},[d.autostart]),C.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const g=localStorage.getItem("vpeSubtitleEnabled");g!==null&&s.hasSubtitle&&o({isSubtitle:!!g})},1e3)},[s.hasSubtitle,o]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:d?.autostart,muted:d?.muted,loop:d?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:a.src.poster?s.initPlay?"transparent":`url(${a.src.poster}) center / ${d?.objectFit??"contain"} no-repeat`:void 0,objectFit:d?.objectFit??"contain"},children:a.src.vtt?.map(f=>x.jsx("track",{kind:"subtitles",srcLang:f.id,label:f.label,src:f.src,default:f.default},`${f.id}-${f.src}`))})})}function J3(a){return x.jsx(X3,{...a})}function I3(a){return x.jsx(Q3,{...a})}function W3(a){return x.jsx(P3,{...a})}function $3(a){const i=C.useRef(null),s=C.useRef(null),o=a.hlsLib;return C.useEffect(()=>{const c=i.current,d=a?.src?.file;if(!(!c||!d)){if(o?.isSupported?.()){const f=new o({startLevel:0,autoLevelCapping:0});return f.attachMedia(c),f.on(o.Events.MEDIA_ATTACHED,()=>{f.loadSource(d)}),f.on(o.Events.MANIFEST_PARSED,()=>{f.currentLevel=0,f.autoLevelEnabled=!1}),f.on(o.Events.ERROR,(g,m)=>{a.onError&&a.onError({evt:g,data:m})}),()=>{f.destroy()}}c.src=d}},[o,a?.src?.file,a.onError]),C.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const d=()=>{const g=s.current;if(typeof g!="number"||Number.isNaN(g))return;const m=c.duration,p=Math.max(0,Math.min(g,Number.isFinite(m)?m:g));Math.abs(c.currentTime-p)>.25&&(c.currentTime=p),c.pause()};if(c.readyState>=1){d();return}const f=()=>d();return c.addEventListener("loadedmetadata",f,{once:!0}),()=>{c.removeEventListener("loadedmetadata",f)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const tg=a=>{if(!a)return null;if(typeof a.MediaPlayer=="function"){const i=a.MediaPlayer();if(i?.create)return i.create()}if(a.MediaPlayer?.create)return a.MediaPlayer.create();if(typeof a.MediaPlayerFactory=="function"){const i=a.MediaPlayerFactory();if(i?.create)return i.create()}return null},eg=a=>{if(!a.length)return 0;let i=a[0];for(let s=1;s<a.length;s+=1){const o=a[s],c=o?.bitrate??o?.bandwidth??Number.MAX_SAFE_INTEGER,d=i?.bitrate??i?.bandwidth??Number.MAX_SAFE_INTEGER;c<d&&(i=o)}return typeof i?.qualityIndex=="number"?i.qualityIndex:0};function ng(a){const i=C.useRef(null),s=C.useRef(null),o=a.dashLib;return C.useEffect(()=>{const c=i.current,d=a?.src?.file;if(!c||!d)return;const f=tg(o);if(!f){c.src=d;return}typeof f.initialize=="function"?f.initialize(c,d,!1):typeof f.attachView=="function"&&typeof f.attachSource=="function"?(f.attachView(c),f.attachSource(d)):c.src=d;const g=()=>{const v=typeof f.getBitrateInfoListFor=="function"?f.getBitrateInfoListFor("video"):[],z=eg(v);typeof f.setAutoSwitchQualityFor=="function"&&f.setAutoSwitchQualityFor("video",!1),typeof f.setQualityFor=="function"&&f.setQualityFor("video",z)},m=(v,z)=>{a.onError&&a.onError({evt:v,data:z})},p=o?.MediaPlayer?.events??o?.MediaPlayer?.Events??o?.events??o?.Events??void 0,y=[],S=(v,z)=>{!v||typeof f.on!="function"||(f.on(v,z),y.push(()=>{typeof f.off=="function"&&f.off(v,z)}))};return S(p?.STREAM_INITIALIZED??p?.MANIFEST_LOADED,g),S(p?.ERROR,m),()=>{y.forEach(v=>v()),typeof f.reset=="function"&&f.reset()}},[o,a?.src?.file,a.onError]),C.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const d=()=>{const g=s.current;if(typeof g!="number"||Number.isNaN(g))return;const m=c.duration,p=Math.max(0,Math.min(g,Number.isFinite(m)?m:g));Math.abs(c.currentTime-p)>.25&&(c.currentTime=p),c.pause()};if(c.readyState>=1){d();return}const f=()=>d();return c.addEventListener("loadedmetadata",f,{once:!0}),()=>{c.removeEventListener("loadedmetadata",f)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function ag(a){const i=C.useRef(null),s=C.useRef(null);return C.useEffect(()=>{const o=i.current,c=a?.src?.file;!o||!c||(o.src=c)},[a?.src?.file]),C.useEffect(()=>{const o=i.current;if(!o)return;const c=d=>{a.onError&&a.onError(d)};return o.addEventListener("error",c),()=>{o.removeEventListener("error",c)}},[a.onError]),C.useEffect(()=>{const o=i.current;if(!o||!a.isHovering||typeof a.previewTime!="number")return;s.current=a.previewTime;const c=()=>{const f=s.current;if(typeof f!="number"||Number.isNaN(f))return;const g=o.duration,m=Math.max(0,Math.min(f,Number.isFinite(g)?g:f));Math.abs(o.currentTime-m)>.25&&(o.currentTime=m),o.pause()};if(o.readyState>=1){c();return}const d=()=>c();return o.addEventListener("loadedmetadata",d,{once:!0}),()=>{o.removeEventListener("loadedmetadata",d)}},[a.isHovering,a.previewTime]),x.jsx(x.Fragment,{children:a?.src?.file&&x.jsx("video",{playsInline:!0,ref:i,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function Ff(a="(max-width: 768px)"){const[i,s]=C.useState({isMobile:!1,isPortrait:!1});return C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(a),c=window.matchMedia("(orientation: portrait)"),d=()=>s({isMobile:o.matches,isPortrait:c.matches});return d(),o.addEventListener("change",d),c.addEventListener("change",d),()=>{o.removeEventListener("change",d),c.removeEventListener("change",d)}},[a]),i}class ig{formatTime(i){if(!i)return"00:00";const s=Math.floor(i),o=String(Math.floor(s/3600)).padStart(2,"0"),c=String(Math.floor(s%3600/60)).padStart(2,"0"),d=String(s%60).padStart(2,"0");return o!=="00"?`${o}:${c}:${d}`:`${c}:${d}`}}const Hi=new ig,Na=a=>Math.max(0,Math.min(100,a));function Kf({color:a="#31ec2a",src:i,hlsLib:s,dashLib:o,options:c,onError:d}){const{isMobile:f}=Ff(),[g,m]=qt(),{seekTo:p}=$t(),y=o,S=typeof i?.file=="string"?i.file.split("?")[0].toLowerCase():"",v=S.endsWith(".mpd"),z=S.endsWith(".mp4"),[j,L]=C.useState(!1),[O,A]=C.useState(0),[k,G]=C.useState(0),[P,_]=C.useState(null),[F,V]=C.useState(null),[N,tt]=C.useState(null),lt=C.useRef(null),ot=C.useRef(null),I=C.useRef(null),ut=a||"#31ec2a",dt="5px",it=g.duration??0,Q=it>0?it:0,U=Q>0?(g.currentTime??0)/Q*100:0,K=Q>0?(g.buffered??0)/Q*100:0,nt=!!g.isLive,Bt=(nt&&it>0?Math.abs(it-(g.currentTime??0))<30:!1)?100:Na(O),E=P??U,X=F??E,J=N??E,W=Q>0?Q*(E/100):0,ct=P!==null,mt=g.videoWidth??0,Tt=g.videoHeight??0,te=mt>0&&Tt>0,_t=te?`${mt}/${Tt}`:"16/9",pa=te&&mt>Tt?"160px":"55px",Nn=C.useCallback(ee=>{const me=lt.current;if(!me)return null;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return null;const nl="clientX"in ee?ee.clientX:0;return Math.min(Math.max(nl-Ae.left,0),Ae.width)/Ae.width*100},[]),el=C.useCallback(ee=>{const me=lt.current;if(!me)return;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return;const nl=xs=>{const pu=xs>0?xs/2/Ae.width*100:0,le=Math.max(0,Math.min(50,pu)),gu=Math.max(le,100-le);return{minPercent:le,maxPercent:gu}},al=ot.current?.offsetWidth??0,Pa=nl(al),ga=Nn(ee);if(ga===null)return;_(Na(ga));const Ja=Math.max(Pa.minPercent,Math.min(Pa.maxPercent,ga));tt(Ja),V(Ja)},[Nn]),Ss=C.useCallback(()=>{_(null),V(null),tt(null)},[]);return C.useEffect(()=>{j||(A(U),G(K))},[j,U,K]),x.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:el,onMouseLeave:Ss,children:x.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":ut,"--seekSliderThumbColor":ut,"--rlMargin":dt},children:[x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:lt,children:x.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[ct&&!g.isLive&&!f&&x.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:_t,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Na(J)}%`,transform:"translateX(-50%)",maxWidth:pa},ref:ot,children:x.jsx(x.Fragment,{children:v&&y?x.jsx(ng,{src:i,dashLib:y,options:c,onError:d,previewTime:W,isHovering:ct}):z?x.jsx(ag,{src:i,options:c,onError:d,previewTime:W,isHovering:ct}):s?x.jsx($3,{src:i,hlsLib:s,options:c,onError:d,previewTime:W,isHovering:ct}):null})}),ct&&!g.isLive&&x.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Na(X)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:I,children:Hi.formatTime(W)})]})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${k<1?1:k>98?100:k}%`}})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${Bt<1?1:Bt}%`},children:x.jsx("div",{style:{position:"relative"},children:x.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),x.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:x.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:Bt,onPointerDown:ee=>{if(nt)return;m({isSeeked:!0}),L(!0);const me=Nn(ee);me!==null&&A(Na(me))},onPointerUp:()=>{if(nt)return;L(!1);const ee=Q*(Bt/100);p(ee)},onChange:ee=>{if(nt)return;const me=Number(ee.currentTarget.value),Ae=Number.isNaN(me)?0:me;A(Na(Ae))},disabled:nt||Q===0})})]})})}var Qf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pf=oa.createContext&&oa.createContext(Qf),lg=["attr","size","title"];function sg(a,i){if(a==null)return{};var s=rg(a,i),o,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)o=d[c],!(i.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function rg(a,i){if(a==null)return{};var s={};for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){if(i.indexOf(o)>=0)continue;s[o]=a[o]}return s}function Jl(){return Jl=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Jl.apply(this,arguments)}function Jf(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Il(a){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?Jf(Object(s),!0).forEach(function(o){og(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Jf(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function og(a,i,s){return i=ug(i),i in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a}function ug(a){var i=cg(a,"string");return typeof i=="symbol"?i:i+""}function cg(a,i){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function If(a){return a&&a.map((i,s)=>oa.createElement(i.tag,Il({key:s},i.attr),If(i.child)))}function Ht(a){return i=>oa.createElement(fg,Jl({attr:Il({},a.attr)},i),If(a.child))}function fg(a){var i=s=>{var{attr:o,size:c,title:d}=a,f=sg(a,lg),g=c||s.size||"1em",m;return s.className&&(m=s.className),a.className&&(m=(m?m+" ":"")+a.className),oa.createElement("svg",Jl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,f,{className:m,style:Il(Il({color:a.color||s.color},s.style),a.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),d&&oa.createElement("title",null,d),a.children)};return Pf!==void 0?oa.createElement(Pf.Consumer,null,s=>i(s)):i(Qf)}function dg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6 8.25h8v1.5H6zM16.5 9.75H18v-1.5h-1.5V7H15v4h1.5zM10 12.25h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},child:[]}]})(a)}function hg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"},child:[]}]})(a)}function mg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(a)}function pg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H6.83l8 8H20v2h-3.17l4.93 4.93c.15-.28.24-.59.24-.93V6c0-1.1-.9-2-2-2zM1.04 3.87l1.2 1.2C2.09 5.35 2 5.66 2 6v12c0 1.1.9 2 2 2h13.17l2.96 2.96 1.41-1.41L2.45 2.45 1.04 3.87zM8 12v2H4v-2h4zm6 4.83V18H4v-2h9.17l.83.83z"},child:[]}]})(a)}function gg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z"},child:[]},{tag:"path",attr:{d:"M10.86 15.94v-4.27h-.09L9 12.3v.69l1.01-.31v3.26zM12.25 13.44v.74c0 1.9 1.31 1.82 1.44 1.82.14 0 1.44.09 1.44-1.82v-.74c0-1.9-1.31-1.82-1.44-1.82-.14 0-1.44-.09-1.44 1.82zm2.04-.12v.97c0 .77-.21 1.03-.59 1.03s-.6-.26-.6-1.03v-.97c0-.75.22-1.01.59-1.01.38-.01.6.26.6 1.01z"},child:[]}]})(a)}function Wf(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(a)}function $f(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(a)}function yg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 5V1l-5 5 5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6h-2c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"},child:[]},{tag:"path",attr:{d:"M10.89 16h-.85v-3.26l-1.01.31v-.69l1.77-.63h.09V16zM15.17 14.24c0 .32-.03.6-.1.82s-.17.42-.29.57-.28.26-.45.33-.37.1-.59.1-.41-.03-.59-.1-.33-.18-.46-.33-.23-.34-.3-.57-.11-.5-.11-.82v-.74c0-.32.03-.6.1-.82s.17-.42.29-.57.28-.26.45-.33.37-.1.59-.1.41.03.59.1.33.18.46.33.23.34.3.57.11.5.11.82v.74zm-.85-.86c0-.19-.01-.35-.04-.48s-.07-.23-.12-.31-.11-.14-.19-.17-.16-.05-.25-.05-.18.02-.25.05-.14.09-.19.17-.09.18-.12.31-.04.29-.04.48v.97c0 .19.01.35.04.48s.07.24.12.32.11.14.19.17.16.05.25.05.18-.02.25-.05.14-.09.19-.17.09-.19.11-.32.04-.29.04-.48v-.97z"},child:[]}]})(a)}function vg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"},child:[]}]})(a)}function t0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"},child:[]}]})(a)}function e0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02S15.48 8.71 14 7.97zM3 9v6h4l5 5V4L7 9H3z"},child:[]}]})(a)}function n0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 9v6h4l5 5V4l-5 5H7z"},child:[]}]})(a)}function a0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"},child:[]}]})(a)}function i0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},child:[]}]})(a)}function bg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"},child:[]}]})(a)}function Wl(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(a)}function Ui(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(a)}function Sg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(a)}function xg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(a)}function Tg(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(a)}function l0(a){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(a)}function un(a){const i=a.noBg??!1;return x.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:i?"obtnNoBg":"obtn",children:a.children})}function Eg(a){const i=a.noPadding??!1,s=a.cap??0;return x.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:i?0:"0.5rem",paddingRight:i?0:"0.5rem",gap:s||0,position:"relative"},className:a.noBg?"obtn-group-nobg":"obtn-group",children:a.children})}function $l(a){return x.jsx(Eg,{...a,children:a.children})}const $e={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},Mg={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},s0={border:0,background:"transparent"},Ag={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)",position:"relative"},zg={flex:1},Cg={display:"flex",alignItems:"center",gap:6},wg={padding:0,display:"flex",alignItems:"center",gap:6},ts={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},tn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Ln={flex:1,justifyContent:"start",display:"flex"},Pr={display:"flex",alignItems:"center",gap:5},es={fontSize:"0.9rem",opacity:.6};function r0({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{play:f,pause:g}=$t();return x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isPlaying?o?.pause??"일시정지":o?.play??"재생"})}),x.jsx("button",{type:"button",onClick:d.isPlaying?g:f,style:$e,children:d.isEnded?x.jsx(l0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(Wf,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx($f,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function Dg({size:a=80,weight:i="fill",color:s="#ffffff",isPortrait:o=!1,isMobile:c=!1}){const[d]=qt(),[f,g]=C.useState(0),{play:m,pause:p}=$t();return C.useEffect(()=>{g(y=>y+1)},[d.isPlaying]),x.jsx("div",{className:`vpe-big-play-btn ${d.isEnded?"":"center-play-btn-anim"}`,children:x.jsx($l,{noPadding:!0,children:x.jsx(un,{children:x.jsx("button",{type:"button",style:Mg,onClick:()=>{(c||o)&&(d.isPlaying?p():m())},children:d.isEnded?x.jsx(l0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(Wf,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx($f,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})},f)}function Rg({size:a=25,weight:i="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[d]=qt(),{seekTo:f}=$t(),g=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(d.isLive&&!d.isDvr)return;const y=(d.currentTime??0)-g;f(Math.max(0,y))};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:m,style:$e,children:x.jsx(yg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function Lg({size:a=25,weight:i="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[d]=qt(),{seekTo:f}=$t(),g=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(d.isLive&&!d.isDvr)return;const p=d.currentTime??0,y=d.duration??0,S=p+g,v=Number.isFinite(y)&&y>0?Math.min(S,y):Math.max(0,S);f(v)};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:m,style:$e,children:x.jsx(gg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function Bg({color:a="#ffffff"}){const[i]=qt();return x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:a},children:Hi.formatTime(i.currentTime??0)||0})}function Vg({color:a="#ffffff"}){const[i]=qt();return x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:a},children:Hi.formatTime(i.duration??0)||0})}function jg({color:a="#ffffff"}){const[i]=qt(),{seekTo:s}=$t(),c=(i.bufferedEnd??i.buffered??0)||i.duration||0,d=!!i.isLive,g=d&&c>0?Math.abs((i.currentTime??0)-c)<10:d,m=()=>{d&&(!c||Number.isNaN(c)||s(Math.max(0,c-.1)))};return x.jsx(x.Fragment,{children:i.isLive?x.jsxs("button",{type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[x.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:g?"#ff0000":a,display:"inline-block"}}),x.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:"LIVE"})]}):x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Hi.formatTime(i.currentTime??0)||0}),x.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),x.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Hi.formatTime(i.duration??0)||0})]})})}function Og({text:a={},color:i="#ffffff"}){const[s]=qt(),{selectQualityLevel:o}=$t(),c=C.useRef(!1),d=s.currentLevel??-1,f=s.levels?.find(m=>m.index===d),g=s.isAutoLevel?a.auto:f?.name??(f?.height?`${f.height}p`:`${d}`);return x.jsxs("div",{style:{position:"relative"},children:[c.current&&x.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(-1)},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:a?.auto??"Auto"})}),[...s.levels??[]].sort((m,p)=>(p.height??0)-(m.height??0)).map(m=>{const p=m.name??(m.height?`${m.height}p`:`${m.index}`);return x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(m.index),c.current=!1},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:p})},m.index)})]})}),x.jsx("button",{type:"button",onClick:()=>{c.current=!c.current},style:{...$e,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${i}`},children:x.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:g})})]})}function Ng({color:a="#ffffff",click:i=()=>{},title:s=""}){return x.jsx(x.Fragment,{children:s&&x.jsx($l,{children:x.jsx("button",{type:"button",onClick:i,style:{border:0,background:"transparent",lineHeight:"100%",display:"flex",alignItems:"center",height:"48px"},children:x.jsxs("div",{className:"defObj",style:{paddingLeft:"0.5rem",paddingRight:"0.2rem",maxWidth:"15rem",lineHeight:"1rem",display:"flex",alignItems:"center",color:`${a}`},children:[x.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:s}),x.jsx("div",{style:{paddingTop:"2px"},children:x.jsx(Wl,{size:15})})]})})})})}function o0(a){let i=a.align=="left"?"start":a.align=="end"?"end":"center";return x.jsx("div",{style:{flex:1,display:"flex",justifyContent:i,alignItems:"center"},children:a.children})}function Hg(a){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.577 8.9v.03h1.828V5.898h-.062a47 47 0 0 0-1.766 3.001z"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm2.372 3.715.435-.714h1.71v3.93h.733v.957h-.733V11H5.405V9.888H2.5v-.971c.574-1.077 1.225-2.142 1.872-3.202m7.73-.714h1.306l-2.14 2.584L13.5 11h-1.428l-1.679-2.624-.615.7V11H8.59V5.001h1.187v2.686h.057L12.102 5z"},child:[]}]})(a)}function Ug(a){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.53 5.968h-.843v4.06h.843c1.117 0 1.622-.667 1.622-2.02 0-1.354-.51-2.04-1.622-2.04"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm5.396 3.001V11H6.209V8.43H3.687V11H2.5V5.001h1.187v2.44h2.522V5h1.187zM8.5 11V5.001h2.188c1.824 0 2.685 1.09 2.685 2.984C13.373 9.893 12.5 11 10.69 11z"},child:[]}]})(a)}function _g({size:a=25,weight:i="fill",color:s="#ffffff",options:o={},text:c={},pos:d="left"}){const[f,g]=qt(),{videoEl:m}=$t(),p=C.useRef(0),y=C.useRef(""),S=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),v=()=>{const O=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return O instanceof HTMLElement?O:null},z=O=>{if(O)if(O.classList.contains("vpe-ios-fullscreen")){g({isFullscreen:!1}),O.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=y.current;const A=document.getElementById("vpeIosFullscreenTmpDiv");A&&A.remove(),window.scrollY=p.current}else{g({isFullscreen:!0}),O.classList.add("vpe-ios-fullscreen"),p.current=window.scrollY,y.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const A=document.createElement("div");A.id="vpeIosFullscreenTmpDiv",A.style.height="120dvh",document.body.appendChild(A),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},j=()=>{if(!m)return!1;const O=m.webkitEnterFullscreen;return typeof O!="function"?!1:(O.call(m),!0)},L=()=>{if(S)if(o.iosFullscreenNativeMode){if(j())return}else{const A=document.querySelector(".vpe-root-wrap");z(A);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const O=v();O&&O.requestFullscreen?.()};return C.useEffect(()=>{const O=()=>{S&&!o.iosFullscreenNativeMode||g({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",O),O(),()=>{document.removeEventListener("fullscreenchange",O)}},[g]),x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${d}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:f.isFullscreen?c?.fullOff??"전체화면 해제":c?.fullOn??"전체화면"})}),x.jsx("button",{type:"button",onClick:L,style:$e,children:f.isFullscreen?x.jsx(xg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(Tg,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function Gg({size:a=25,color:i="#ffffff",text:s={},pos:o="left"}){const[c]=qt(),{toggleSubtitle:d}=$t();return x.jsx(x.Fragment,{children:c.hasSubtitle&&x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:c.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),x.jsx("button",{type:"button",onClick:d,style:$e,children:c.isSubtitle?x.jsx(t0,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(pg,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function kg({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{toggleMute:f}=$t(),g=d.isVolume??0;return x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:f,style:$e,children:x.jsxs(x.Fragment,{children:[(g===0||d.isMuted)&&x.jsx(a0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=5&&g<=10&&!d.isMuted&&x.jsx(n0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=11&&g<=50&&!d.isMuted&&x.jsx(e0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),g>=51&&!d.isMuted&&x.jsx(i0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function Yg({size:a=25,weight:i="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[d]=qt(),{setVolume:f,toggleMute:g}=$t(),m=d.isVolume??0,p=d.isMuted?0:m;return x.jsxs("div",{className:"VolumeBtnWrap",children:[x.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:g,style:$e,children:x.jsxs(x.Fragment,{children:[(m===0||d.isMuted)&&x.jsx(a0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=5&&m<=10&&!d.isMuted&&x.jsx(n0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=11&&m<=50&&!d.isMuted&&x.jsx(e0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=51&&!d.isMuted&&x.jsx(i0,{style:{fontSize:a,fontWeight:i,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),x.jsx("div",{className:"vslideWrap",children:x.jsx("input",{type:"range",min:0,max:100,value:p,onChange:y=>{const S=Number(y.currentTarget.value);f(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function qg({color:a="#ffffff",size:i=25,text:s={},pos:o="left"}){const[c,d]=qt(),f=c.isHd,g=c.is4k;return x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),x.jsxs("button",{type:"button",onClick:()=>{d({isSettingModal:!c.isSettingModal})},style:$e,children:[(f||g)&&x.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"14px",height:"14px"},children:f&&!g&&x.jsx(Ug,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})||g&&x.jsx(Hg,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),x.jsx(mg,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function Xg({color:a="#ffffff",size:i=25,text:s={},pos:o="left"}){const{togglePictureInPicture:c}=$t();return x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),x.jsx("button",{type:"button",onClick:()=>{c()},style:$e,children:x.jsx(hg,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function Zg(a){const{useTouch:i}=$t();return x.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${a.poster}) center / ${a.options?.objectFit||"contain"} no-repeat`},onClick:()=>{i()},onTouchStart:()=>{i()},children:x.jsx("div",{children:x.jsx($l,{noPadding:!0,children:x.jsx(r0,{size:50})})})})}function u0(a){const[i]=qt(),{poster:s,options:o}=a,c={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${o?.objectFit||"contain"} no-repeat`};return x.jsx(x.Fragment,{children:i.isLoading&&x.jsx("div",{style:c,children:x.jsx("div",{className:"ncplayer-spinner"})})})}function Fg(a){const[i,s]=qt(),{playBackRate:o,selectQualityLevel:c}=$t(),{text:d}=a,f=a.vtt??a.src?.vtt??[],g=i.currentLevel??-1,m=i.levels?.find(A=>A.index===g),p=i.isAutoLevel?m?.height?d.auto+` (${m?.height}p)`:"":m?.name??(m?.height?`${m.height}p`:`${g}`),[y,S]=C.useState(0),[v,z]=C.useState("forward"),[j,L]=C.useState(!1),O=C.useCallback(A=>{z(A>y?"forward":"back"),S(A),L(!0)},[y]);return C.useEffect(()=>{if(!j)return;const A=window.setTimeout(()=>{L(!1)},200);return()=>window.clearTimeout(A)},[j]),x.jsx("div",{className:"vpe-setting-modal",children:x.jsxs("div",{className:"vpe-setting-content",children:[x.jsxs("div",{style:Ag,children:[x.jsxs("div",{style:zg,children:[y===0&&x.jsx("div",{children:d.setting}),y>0&&x.jsx("div",{style:Cg,children:x.jsx("div",{children:x.jsxs("button",{onClick:()=>{O(0)},type:"button",style:{...s0,...wg},children:[x.jsx(bg,{style:{fontSize:"12px"},color:"#ffffff"}),x.jsxs("div",{children:[y==1&&d.quality,y==2&&d.playbackRate,y==3&&d.captions]})]})})})]}),x.jsx("div",{children:x.jsx("button",{type:"button",style:s0,onClick:()=>{s({isSettingModal:!1})},children:x.jsx(Sg,{size:25,color:"#ffffff"})})})]}),x.jsxs("div",{className:"vpe-modal-menu",children:[y===0&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[p&&x.jsxs("button",{type:"button",style:tn,className:"vpe-menu-item",onClick:()=>{O(1)},children:[x.jsx("div",{children:x.jsx(dg,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.quality}),x.jsxs("div",{style:Pr,children:[x.jsx("span",{style:es,children:p}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{O(2)},children:[x.jsx("div",{children:x.jsx(vg,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.playbackRate}),x.jsxs("div",{style:Pr,children:[x.jsxs("span",{style:es,children:[i.playbackRate,"x"]}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{O(3)},children:[x.jsx("div",{children:x.jsx(t0,{size:25,color:"#ffffff"})}),x.jsx("div",{style:Ln,children:d.captions}),x.jsxs("div",{style:Pr,children:[x.jsx(x.Fragment,{children:i.isSubtitle?x.jsx(x.Fragment,{children:f.map((A,k)=>x.jsx("span",{children:i.subTitleIdx===k&&x.jsx("span",{style:es,children:A.label})},`${A.id}-${A.src}`))}):x.jsx("span",{style:es,children:d.notUse})}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},y),y===1&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c("auto")},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isAutoLevel?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:d.auto})]}),[...i.levels??[]].sort((A,k)=>(k.height??0)-(A.height??0)).map(A=>{const k=A.name??(A.height?`${A.height}p`:`${A.index}`);return x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c(A.index)},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:!i.isAutoLevel&&i.currentLevel===A.index?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:k})]},A.index)})]},y),y===2&&x.jsx("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:(a.options?.playRateSetting??[]).map(A=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(A),s({playbackRate:A}),O(0)},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.playbackRate===A?"#ffffff":"transparent"})}),x.jsxs("div",{style:Ln,children:[A,"x"]})]},A))},y),y===3&&x.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ts,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!1})},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isSubtitle?"transparent":"#ffffff"})}),x.jsx("div",{style:Ln,children:d.notUse})]}),f.map((A,k)=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:k})},children:[x.jsx("div",{children:x.jsx(Ui,{size:15,color:i.isSubtitle&&i.subTitleIdx===k?"#ffffff":"transparent"})}),x.jsx("div",{style:Ln,children:A.label})]},`${A.id}-${A.src}`))]},y)]})]})})}const Jr=C.createContext({});function Ir(a){const i=C.useRef(null);return i.current===null&&(i.current=a()),i.current}const Wr=typeof window<"u",c0=Wr?C.useLayoutEffect:C.useEffect,ns=C.createContext(null);function $r(a,i){a.indexOf(i)===-1&&a.push(i)}function to(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const cn=(a,i,s)=>s>i?i:s<a?a:s;let eo=()=>{};const fn={},f0=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function d0(a){return typeof a=="object"&&a!==null}const h0=a=>/^0[^.\s]+$/u.test(a);function no(a){let i;return()=>(i===void 0&&(i=a()),i)}const Oe=a=>a,Kg=(a,i)=>s=>i(a(s)),_i=(...a)=>a.reduce(Kg),Gi=(a,i,s)=>{const o=i-a;return o===0?1:(s-a)/o};class ao{constructor(){this.subscriptions=[]}add(i){return $r(this.subscriptions,i),()=>to(this.subscriptions,i)}notify(i,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,o);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=a=>a*1e3,Ne=a=>a/1e3;function m0(a,i){return i?a*(1e3/i):0}const p0=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,Qg=1e-7,Pg=12;function Jg(a,i,s,o,c){let d,f,g=0;do f=i+(s-i)/2,d=p0(f,o,c)-a,d>0?s=f:i=f;while(Math.abs(d)>Qg&&++g<Pg);return f}function ki(a,i,s,o){if(a===i&&s===o)return Oe;const c=d=>Jg(d,0,1,a,s);return d=>d===0||d===1?d:p0(c(d),i,o)}const g0=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,y0=a=>i=>1-a(1-i),v0=ki(.33,1.53,.69,.99),io=y0(v0),b0=g0(io),S0=a=>(a*=2)<1?.5*io(a):.5*(2-Math.pow(2,-10*(a-1))),lo=a=>1-Math.sin(Math.acos(a)),x0=y0(lo),T0=g0(lo),Ig=ki(.42,0,1,1),Wg=ki(0,0,.58,1),E0=ki(.42,0,.58,1),$g=a=>Array.isArray(a)&&typeof a[0]!="number",M0=a=>Array.isArray(a)&&typeof a[0]=="number",ty={linear:Oe,easeIn:Ig,easeInOut:E0,easeOut:Wg,circIn:lo,circInOut:T0,circOut:x0,backIn:io,backInOut:b0,backOut:v0,anticipate:S0},ey=a=>typeof a=="string",A0=a=>{if(M0(a)){eo(a.length===4);const[i,s,o,c]=a;return ki(i,s,o,c)}else if(ey(a))return ty[a];return a},as=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ny(a,i){let s=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(p.schedule(y),a()),y(g)}const p={schedule:(y,S=!1,v=!1)=>{const j=v&&c?s:o;return S&&f.add(y),j.has(y)||j.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(g=y,c){d=!0;return}c=!0,[s,o]=[o,s],s.forEach(m),s.clear(),c=!1,d&&(d=!1,p.process(y))}};return p}const ay=40;function z0(a,i){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=as.reduce((G,P)=>(G[P]=ny(d),G),{}),{setup:g,read:m,resolveKeyframes:p,preUpdate:y,update:S,preRender:v,render:z,postRender:j}=f,L=()=>{const G=fn.useManualTiming?c.timestamp:performance.now();s=!1,fn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,ay),1)),c.timestamp=G,c.isProcessing=!0,g.process(c),m.process(c),p.process(c),y.process(c),S.process(c),v.process(c),z.process(c),j.process(c),c.isProcessing=!1,s&&i&&(o=!1,a(L))},O=()=>{s=!0,o=!0,c.isProcessing||a(L)};return{schedule:as.reduce((G,P)=>{const _=f[P];return G[P]=(F,V=!1,N=!1)=>(s||O(),_.schedule(F,V,N)),G},{}),cancel:G=>{for(let P=0;P<as.length;P++)f[as[P]].cancel(G)},state:c,steps:f}}const{schedule:Ot,cancel:Bn,state:ie,steps:so}=z0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let is;function iy(){is=void 0}const ge={now:()=>(is===void 0&&ge.set(ie.isProcessing||fn.useManualTiming?ie.timestamp:performance.now()),is),set:a=>{is=a,queueMicrotask(iy)}},C0=a=>i=>typeof i=="string"&&i.startsWith(a),w0=C0("--"),ly=C0("var(--"),ro=a=>ly(a)?sy.test(a.split("/*")[0].trim()):!1,sy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ha={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Yi={...Ha,transform:a=>cn(0,1,a)},ls={...Ha,default:1},qi=a=>Math.round(a*1e5)/1e5,oo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ry(a){return a==null}const oy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uo=(a,i)=>s=>!!(typeof s=="string"&&oy.test(s)&&s.startsWith(a)||i&&!ry(s)&&Object.prototype.hasOwnProperty.call(s,i)),D0=(a,i,s)=>o=>{if(typeof o!="string")return o;const[c,d,f,g]=o.match(oo);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},uy=a=>cn(0,255,a),co={...Ha,transform:a=>Math.round(uy(a))},ua={test:uo("rgb","red"),parse:D0("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:o=1})=>"rgba("+co.transform(a)+", "+co.transform(i)+", "+co.transform(s)+", "+qi(Yi.transform(o))+")"};function cy(a){let i="",s="",o="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const fo={test:uo("#"),parse:cy,transform:ua.transform},Xi=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Vn=Xi("deg"),nn=Xi("%"),rt=Xi("px"),fy=Xi("vh"),dy=Xi("vw"),R0={...nn,parse:a=>nn.parse(a)/100,transform:a=>nn.transform(a*100)},Ua={test:uo("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:o=1})=>"hsla("+Math.round(a)+", "+nn.transform(qi(i))+", "+nn.transform(qi(s))+", "+qi(Yi.transform(o))+")"},Ft={test:a=>ua.test(a)||fo.test(a)||Ua.test(a),parse:a=>ua.test(a)?ua.parse(a):Ua.test(a)?Ua.parse(a):fo.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ua.transform(a):Ua.transform(a),getAnimatableNone:a=>{const i=Ft.parse(a);return i.alpha=0,Ft.transform(i)}},hy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function my(a){return isNaN(a)&&typeof a=="string"&&(a.match(oo)?.length||0)+(a.match(hy)?.length||0)>0}const L0="number",B0="color",py="var",gy="var(",V0="${}",yy=/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 Zi(a){const i=a.toString(),s=[],o={color:[],number:[],var:[]},c=[];let d=0;const g=i.replace(yy,m=>(Ft.test(m)?(o.color.push(d),c.push(B0),s.push(Ft.parse(m))):m.startsWith(gy)?(o.var.push(d),c.push(py),s.push(m)):(o.number.push(d),c.push(L0),s.push(parseFloat(m))),++d,V0)).split(V0);return{values:s,split:g,indexes:o,types:c}}function j0(a){return Zi(a).values}function O0(a){const{split:i,types:s}=Zi(a),o=i.length;return c=>{let d="";for(let f=0;f<o;f++)if(d+=i[f],c[f]!==void 0){const g=s[f];g===L0?d+=qi(c[f]):g===B0?d+=Ft.transform(c[f]):d+=c[f]}return d}}const vy=a=>typeof a=="number"?0:Ft.test(a)?Ft.getAnimatableNone(a):a;function by(a){const i=j0(a);return O0(a)(i.map(vy))}const jn={test:my,parse:j0,createTransformer:O0,getAnimatableNone:by};function ho(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function Sy({hue:a,saturation:i,lightness:s,alpha:o}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const g=s<.5?s*(1+i):s+i-s*i,m=2*s-g;c=ho(m,g,a+1/3),d=ho(m,g,a),f=ho(m,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function ss(a,i){return s=>s>0?i:a}const Ut=(a,i,s)=>a+(i-a)*s,mo=(a,i,s)=>{const o=a*a,c=s*(i*i-o)+o;return c<0?0:Math.sqrt(c)},xy=[fo,ua,Ua],Ty=a=>xy.find(i=>i.test(a));function N0(a){const i=Ty(a);if(!i)return!1;let s=i.parse(a);return i===Ua&&(s=Sy(s)),s}const H0=(a,i)=>{const s=N0(a),o=N0(i);if(!s||!o)return ss(a,i);const c={...s};return d=>(c.red=mo(s.red,o.red,d),c.green=mo(s.green,o.green,d),c.blue=mo(s.blue,o.blue,d),c.alpha=Ut(s.alpha,o.alpha,d),ua.transform(c))},po=new Set(["none","hidden"]);function Ey(a,i){return po.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function My(a,i){return s=>Ut(a,i,s)}function go(a){return typeof a=="number"?My:typeof a=="string"?ro(a)?ss:Ft.test(a)?H0:Cy:Array.isArray(a)?U0:typeof a=="object"?Ft.test(a)?H0:Ay:ss}function U0(a,i){const s=[...a],o=s.length,c=a.map((d,f)=>go(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)s[f]=c[f](d);return s}}function Ay(a,i){const s={...a,...i},o={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(o[c]=go(a[c])(a[c],i[c]));return c=>{for(const d in o)s[d]=o[d](c);return s}}function zy(a,i){const s=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][o[d]],g=a.values[f]??0;s[c]=g,o[d]++}return s}const Cy=(a,i)=>{const s=jn.createTransformer(i),o=Zi(a),c=Zi(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?po.has(a)&&!c.values.length||po.has(i)&&!o.values.length?Ey(a,i):_i(U0(zy(o,c),c.values),s):ss(a,i)};function _0(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Ut(a,i,s):go(a)(a,i)}const wy=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>Ot.update(i,s),stop:()=>Bn(i),now:()=>ie.isProcessing?ie.timestamp:ge.now()}},G0=(a,i,s=10)=>{let o="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},rs=2e4;function yo(a){let i=0;const s=50;let o=a.next(i);for(;!o.done&&i<rs;)i+=s,o=a.next(i);return i>=rs?1/0:i}function Dy(a,i=100,s){const o=s({...a,keyframes:[0,i]}),c=Math.min(yo(o),rs);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Ne(c)}}const Ry=5;function k0(a,i,s){const o=Math.max(i-Ry,0);return m0(s-a(o),i-o)}const Gt={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},vo=.001;function Ly({duration:a=Gt.duration,bounce:i=Gt.bounce,velocity:s=Gt.velocity,mass:o=Gt.mass}){let c,d,f=1-i;f=cn(Gt.minDamping,Gt.maxDamping,f),a=cn(Gt.minDuration,Gt.maxDuration,Ne(a)),f<1?(c=p=>{const y=p*f,S=y*a,v=y-s,z=bo(p,f),j=Math.exp(-S);return vo-v/z*j},d=p=>{const S=p*f*a,v=S*s+s,z=Math.pow(f,2)*Math.pow(p,2)*a,j=Math.exp(-S),L=bo(Math.pow(p,2),f);return(-c(p)+vo>0?-1:1)*((v-z)*j)/L}):(c=p=>{const y=Math.exp(-p*a),S=(p-s)*a+1;return-vo+y*S},d=p=>{const y=Math.exp(-p*a),S=(s-p)*(a*a);return y*S});const g=5/a,m=Vy(c,d,g);if(a=en(a),isNaN(m))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:a};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const By=12;function Vy(a,i,s){let o=s;for(let c=1;c<By;c++)o=o-a(o)/i(o);return o}function bo(a,i){return a*Math.sqrt(1-i*i)}const jy=["duration","bounce"],Oy=["stiffness","damping","mass"];function Y0(a,i){return i.some(s=>a[s]!==void 0)}function Ny(a){let i={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...a};if(!Y0(a,Oy)&&Y0(a,jy))if(a.visualDuration){const s=a.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,d=2*cn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Gt.mass,stiffness:c,damping:d}}else{const s=Ly(a);i={...i,...s,mass:Gt.mass},i.isResolvedFromDuration=!0}return i}function os(a=Gt.visualDuration,i=Gt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],g={done:!1,value:d},{stiffness:m,damping:p,mass:y,duration:S,velocity:v,isResolvedFromDuration:z}=Ny({...s,velocity:-Ne(s.velocity||0)}),j=v||0,L=p/(2*Math.sqrt(m*y)),O=f-d,A=Ne(Math.sqrt(m/y)),k=Math.abs(O)<5;o||(o=k?Gt.restSpeed.granular:Gt.restSpeed.default),c||(c=k?Gt.restDelta.granular:Gt.restDelta.default);let G;if(L<1){const _=bo(A,L);G=F=>{const V=Math.exp(-L*A*F);return f-V*((j+L*A*O)/_*Math.sin(_*F)+O*Math.cos(_*F))}}else if(L===1)G=_=>f-Math.exp(-A*_)*(O+(j+A*O)*_);else{const _=A*Math.sqrt(L*L-1);G=F=>{const V=Math.exp(-L*A*F),N=Math.min(_*F,300);return f-V*((j+L*A*O)*Math.sinh(N)+_*O*Math.cosh(N))/_}}const P={calculatedDuration:z&&S||null,next:_=>{const F=G(_);if(z)g.done=_>=S;else{let V=_===0?j:0;L<1&&(V=_===0?en(j):k0(G,_,F));const N=Math.abs(V)<=o,tt=Math.abs(f-F)<=c;g.done=N&&tt}return g.value=g.done?f:F,g},toString:()=>{const _=Math.min(yo(P),rs),F=G0(V=>P.next(_*V).value,_,30);return _+"ms "+F},toTransition:()=>{}};return P}os.applyToOptions=a=>{const i=Dy(a,100,os);return a.ease=i.ease,a.duration=en(i.duration),a.type="keyframes",a};function So({keyframes:a,velocity:i=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:g,max:m,restDelta:p=.5,restSpeed:y}){const S=a[0],v={done:!1,value:S},z=N=>g!==void 0&&N<g||m!==void 0&&N>m,j=N=>g===void 0?m:m===void 0||Math.abs(g-N)<Math.abs(m-N)?g:m;let L=s*i;const O=S+L,A=f===void 0?O:f(O);A!==O&&(L=A-S);const k=N=>-L*Math.exp(-N/o),G=N=>A+k(N),P=N=>{const tt=k(N),lt=G(N);v.done=Math.abs(tt)<=p,v.value=v.done?A:lt};let _,F;const V=N=>{z(v.value)&&(_=N,F=os({keyframes:[v.value,j(v.value)],velocity:k0(G,N,v.value),damping:c,stiffness:d,restDelta:p,restSpeed:y}))};return V(0),{calculatedDuration:null,next:N=>{let tt=!1;return!F&&_===void 0&&(tt=!0,P(N),V(N)),_!==void 0&&N>=_?F.next(N-_):(!tt&&P(N),v)}}}function Hy(a,i,s){const o=[],c=s||fn.mix||_0,d=a.length-1;for(let f=0;f<d;f++){let g=c(a[f],a[f+1]);if(i){const m=Array.isArray(i)?i[f]||Oe:i;g=_i(m,g)}o.push(g)}return o}function Uy(a,i,{clamp:s=!0,ease:o,mixer:c}={}){const d=a.length;if(eo(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=Hy(i,o,c),m=g.length,p=y=>{if(f&&y<a[0])return i[0];let S=0;if(m>1)for(;S<a.length-2&&!(y<a[S+1]);S++);const v=Gi(a[S],a[S+1],y);return g[S](v)};return s?y=>p(cn(a[0],a[d-1],y)):p}function _y(a,i){const s=a[a.length-1];for(let o=1;o<=i;o++){const c=Gi(0,i,o);a.push(Ut(s,1,c))}}function Gy(a){const i=[0];return _y(i,a.length-1),i}function ky(a,i){return a.map(s=>s*i)}function Yy(a,i){return a.map(()=>i||E0).splice(0,a.length-1)}function Fi({duration:a=300,keyframes:i,times:s,ease:o="easeInOut"}){const c=$g(o)?o.map(A0):A0(o),d={done:!1,value:i[0]},f=ky(s&&s.length===i.length?s:Gy(i),a),g=Uy(f,i,{ease:Array.isArray(c)?c:Yy(i,c)});return{calculatedDuration:a,next:m=>(d.value=g(m),d.done=m>=a,d)}}const qy=a=>a!==null;function xo(a,{repeat:i,repeatType:s="loop"},o,c=1){const d=a.filter(qy),g=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!g||o===void 0?d[g]:o}const Xy={decay:So,inertia:So,tween:Fi,keyframes:Fi,spring:os};function q0(a){typeof a.type=="string"&&(a.type=Xy[a.type])}class To{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const Zy=a=>a/100;class Eo extends To{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;q0(i);const{type:s=Fi,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:g}=i;const m=s||Fi;m!==Fi&&typeof g[0]!="number"&&(this.mixKeyframes=_i(Zy,_0(g[0],g[1])),g=[0,100]);const p=m({...i,keyframes:g});d==="mirror"&&(this.mirroredGenerator=m({...i,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=yo(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:S,repeatType:v,repeatDelay:z,type:j,onUpdate:L,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?A<0:A>c;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,P=o;if(S){const N=Math.min(this.currentTime,c)/g;let tt=Math.floor(N),lt=N%1;!lt&&N>=1&&(lt=1),lt===1&&tt--,tt=Math.min(tt,S+1),!!(tt%2)&&(v==="reverse"?(lt=1-lt,z&&(lt-=z/g)):v==="mirror"&&(P=f)),G=cn(0,1,lt)*g}const _=k?{done:!1,value:y[0]}:P.next(G);d&&(_.value=d(_.value));let{done:F}=_;!k&&m!==null&&(F=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return V&&j!==So&&(_.value=xo(y,this.options,O,this.speed)),L&&L(_.value),V&&this.finish(),_}then(i,s){return this.finished.then(i,s)}get duration(){return Ne(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ne(i)}get time(){return Ne(this.currentTime)}set time(i){i=en(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(ge.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=wy,startTime:s}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();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=s??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(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function Fy(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ca=a=>a*180/Math.PI,Mo=a=>{const i=ca(Math.atan2(a[1],a[0]));return Ao(i)},Ky={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Mo,rotateZ:Mo,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},Ao=a=>(a=a%360,a<0&&(a+=360),a),X0=Mo,Z0=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),F0=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Qy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Z0,scaleY:F0,scale:a=>(Z0(a)+F0(a))/2,rotateX:a=>Ao(ca(Math.atan2(a[6],a[5]))),rotateY:a=>Ao(ca(Math.atan2(-a[2],a[0]))),rotateZ:X0,rotate:X0,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 zo(a){return a.includes("scale")?1:0}function Co(a,i){if(!a||a==="none")return zo(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=Qy,c=s;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Ky,c=g}if(!c)return zo(i);const d=o[i],f=c[1].split(",").map(Jy);return typeof d=="function"?d(f):f[d]}const Py=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Co(s,i)};function Jy(a){return parseFloat(a.trim())}const _a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ga=new Set(_a),K0=a=>a===Ha||a===rt,Iy=new Set(["x","y","z"]),Wy=_a.filter(a=>!Iy.has(a));function $y(a){const i=[];return Wy.forEach(s=>{const o=a.getValue(s);o!==void 0&&(i.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),i}const fa={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Co(i,"x"),y:(a,{transform:i})=>Co(i,"y")};fa.translateX=fa.x,fa.translateY=fa.y;const da=new Set;let wo=!1,Do=!1,Ro=!1;function Q0(){if(Do){const a=Array.from(da).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),s=new Map;i.forEach(o=>{const c=$y(o);c.length&&(s.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([d,f])=>{o.getValue(d)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Do=!1,wo=!1,da.forEach(a=>a.complete(Ro)),da.clear()}function P0(){da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Do=!0)})}function tv(){Ro=!0,P0(),Q0(),Ro=!1}class Lo{constructor(i,s,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(da.add(this),wo||(wo=!0,Ot.read(P0),Ot.resolveKeyframes(Q0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:o,motionValue:c}=this;if(i[0]===null){const d=c?.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&s){const g=o.readValue(s,f);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}Fy(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),da.delete(this)}cancel(){this.state==="scheduled"&&(da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ev=a=>a.startsWith("--");function nv(a,i,s){ev(i)?a.style.setProperty(i,s):a.style[i]=s}const av=no(()=>window.ScrollTimeline!==void 0),iv={};function lv(a,i){const s=no(a);return()=>iv[i]??s()}const J0=lv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ki=([a,i,s,o])=>`cubic-bezier(${a}, ${i}, ${s}, ${o})`,I0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ki([0,.65,.55,1]),circOut:Ki([.55,0,1,.45]),backIn:Ki([.31,.01,.66,-.59]),backOut:Ki([.33,1.53,.69,.99])};function W0(a,i){if(a)return typeof a=="function"?J0()?G0(a,i):"ease-out":M0(a)?Ki(a):Array.isArray(a)?a.map(s=>W0(s,i)||I0.easeOut):I0[a]}function sv(a,i,s,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:g="easeOut",times:m}={},p=void 0){const y={[i]:s};m&&(y.offset=m);const S=W0(g,c);Array.isArray(S)&&(y.easing=S);const v={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),a.animate(y,v)}function $0(a){return typeof a=="function"&&"applyToOptions"in a}function rv({type:a,...i}){return $0(a)&&J0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class ov extends To{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:g,onComplete:m}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,eo(typeof i.type!="string");const p=rv(i);this.animation=sv(s,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=xo(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(y):nv(s,o,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Ne(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Ne(i)}get time(){return Ne(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=en(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&av()?(this.animation.timeline=i,Oe):s(this)}}const td={anticipate:S0,backInOut:b0,circInOut:T0};function uv(a){return a in td}function cv(a){typeof a.ease=="string"&&uv(a.ease)&&(a.ease=td[a.ease])}const ed=10;class fv extends ov{constructor(i){cv(i),q0(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const g=new Eo({...f,autoplay:!1}),m=en(this.finishedTime??this.time);s.setWithVelocity(g.sample(m-ed).value,g.sample(m).value,ed),g.stop()}}const nd=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(jn.test(a)||a==="0")&&!a.startsWith("url("));function dv(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function hv(a,i,s,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=nd(c,i),g=nd(d,i);return!f||!g?!1:dv(a)||(s==="spring"||$0(s))&&o}function Bo(a){a.duration=0,a.type="keyframes"}const mv=new Set(["opacity","clipPath","filter","transform"]),pv=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gv(a){const{motionValue:i,name:s,repeatDelay:o,repeatType:c,damping:d,type:f}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=i.owner.getProps();return pv()&&s&&mv.has(s)&&(s!=="transform"||!p)&&!m&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const yv=40;class vv extends To{constructor({autoplay:i=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:g,name:m,motionValue:p,element:y,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const v={autoplay:i,delay:s,type:o,repeat:c,repeatDelay:d,repeatType:f,name:m,motionValue:p,element:y,...S},z=y?.KeyframeResolver||Lo;this.keyframeResolver=new z(g,(j,L,O)=>this.onKeyframesResolved(j,L,v,!O),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:g,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=ge.now(),hv(i,d,f,g)||((fn.instantAnimations||!m)&&y?.(xo(i,o,s)),i[0]=i[i.length-1],Bo(o),o.repeat=0);const v={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>yv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:i},z=!p&&gv(v)?new fv({...v,element:v.motionValue.owner.current}):new Eo(v);z.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const bv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sv(a){const i=bv.exec(a);if(!i)return[,];const[,s,o,c]=i;return[`--${s??o}`,c]}function ad(a,i,s=1){const[o,c]=Sv(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return f0(f)?parseFloat(f):f}return ro(c)?ad(c,i,s+1):c}function Vo(a,i){return a?.[i]??a?.default??a}const id=new Set(["width","height","top","left","right","bottom",..._a]),xv={test:a=>a==="auto",parse:a=>a},ld=a=>i=>i.test(a),sd=[Ha,rt,nn,Vn,dy,fy,xv],rd=a=>sd.find(ld(a));function Tv(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||h0(a):!0}const Ev=new Set(["brightness","contrast","saturate","opacity"]);function Mv(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=s.match(oo)||[];if(!o)return a;const c=s.replace(o,"");let d=Ev.has(i)?1:0;return o!==s&&(d*=100),i+"("+d+c+")"}const Av=/\b([a-z-]*)\(.*?\)/gu,jo={...jn,getAnimatableNone:a=>{const i=a.match(Av);return i?i.map(Mv).join(" "):a}},od={...Ha,transform:Math.round},Oo={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt,...{rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:ls,scaleX:ls,scaleY:ls,scaleZ:ls,skew:Vn,skewX:Vn,skewY:Vn,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Yi,originX:R0,originY:R0,originZ:rt},zIndex:od,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:od},zv={...Oo,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:jo,WebkitFilter:jo},ud=a=>zv[a];function cd(a,i){let s=ud(a);return s!==jo&&(s=jn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const Cv=new Set(["auto","none","0"]);function wv(a,i,s){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!Cv.has(d)&&Zi(d).values.length&&(c=a[o]),o++}if(c&&s)for(const d of i)a[d]=cd(s,c)}class Dv extends Lo{constructor(i,s,o,c,d){super(i,s,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let p=i[m];if(typeof p=="string"&&(p=p.trim(),ro(p))){const y=ad(p,s.current);y!==void 0&&(i[m]=y),m===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!id.has(o)||i.length!==2)return;const[c,d]=i,f=rd(c),g=rd(d);if(f!==g)if(K0(f)&&K0(g))for(let m=0;m<i.length;m++){const p=i[m];typeof p=="string"&&(i[m]=parseFloat(p))}else fa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||Tv(i[c]))&&o.push(c);o.length&&wv(i,o,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fa[o](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=fa[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,m])=>{i.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function Rv(a,i,s){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=s?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const fd=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function dd(a){return d0(a)&&"offsetHeight"in a}const hd=30,Lv=a=>!isNaN(parseFloat(a));class Bv{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ge.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Lv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new ao);const o=this.events[i].add(s);return i==="change"?()=>{o(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>hd)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,hd);return m0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ka(a,i){return new Bv(a,i)}const{schedule:No}=z0(queueMicrotask,!1),Qe={x:!1,y:!1};function md(){return Qe.x||Qe.y}function Vv(a){return a==="x"||a==="y"?Qe[a]?null:(Qe[a]=!0,()=>{Qe[a]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function pd(a,i){const s=Rv(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[s,c,()=>o.abort()]}function gd(a){return!(a.pointerType==="touch"||md())}function jv(a,i,s={}){const[o,c,d]=pd(a,s),f=g=>{if(!gd(g))return;const{target:m}=g,p=i(m,g);if(typeof p!="function"||!m)return;const y=S=>{gd(S)&&(p(S),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,c)};return o.forEach(g=>{g.addEventListener("pointerenter",f,c)}),d}const yd=(a,i)=>i?a===i?!0:yd(a,i.parentElement):!1,Ho=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,Ov=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nv(a){return Ov.has(a.tagName)||a.tabIndex!==-1}const us=new WeakSet;function vd(a){return i=>{i.key==="Enter"&&a(i)}}function Uo(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Hv=(a,i)=>{const s=a.currentTarget;if(!s)return;const o=vd(()=>{if(us.has(s))return;Uo(s,"down");const c=vd(()=>{Uo(s,"up")}),d=()=>Uo(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",o,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),i)};function bd(a){return Ho(a)&&!md()}function Uv(a,i,s={}){const[o,c,d]=pd(a,s),f=g=>{const m=g.currentTarget;if(!bd(g))return;us.add(m);const p=i(m,g),y=(z,j)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",v),us.has(m)&&us.delete(m),bd(z)&&typeof p=="function"&&p(z,{success:j})},S=z=>{y(z,m===window||m===document||s.useGlobalTarget||yd(m,z.target))},v=z=>{y(z,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",v,c)};return o.forEach(g=>{(s.useGlobalTarget?window:g).addEventListener("pointerdown",f,c),dd(g)&&(g.addEventListener("focus",p=>Hv(p,c)),!Nv(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function Sd(a){return d0(a)&&"ownerSVGElement"in a}function _v(a){return Sd(a)&&a.tagName==="svg"}const de=a=>!!(a&&a.getVelocity),Gv=[...sd,Ft,jn],kv=a=>Gv.find(ld(a)),_o=C.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function xd(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Yv(...a){return i=>{let s=!1;const o=a.map(c=>{const d=xd(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():xd(a[c],null)}}}}function qv(...a){return C.useCallback(Yv(...a),a)}class Xv extends C.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const o=s.offsetParent,c=dd(o)&&o.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Zv({children:a,isPresent:i,anchorX:s,root:o}){const c=C.useId(),d=C.useRef(null),f=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=C.useContext(_o),m=qv(d,a?.ref);return C.useInsertionEffect(()=>{const{width:p,height:y,top:S,left:v,right:z}=f.current;if(i||!d.current||!p||!y)return;const j=s==="left"?`left: ${v}`:`right: ${z}`;d.current.dataset.motionPopId=c;const L=document.createElement("style");g&&(L.nonce=g);const O=o??document.head;return O.appendChild(L),L.sheet&&L.sheet.insertRule(`
10
- [data-motion-pop-id="${c}"] {
8
+ `+l.stack}}var Fi=Object.prototype.hasOwnProperty,yi=a.unstable_scheduleCallback,Ji=a.unstable_cancelCallback,Ss=a.unstable_shouldYield,pu=a.unstable_requestPaint,le=a.unstable_now,yu=a.unstable_getCurrentPriorityLevel,vp=a.unstable_ImmediatePriority,gp=a.unstable_UserBlockingPriority,xs=a.unstable_NormalPriority,IE=a.unstable_LowPriority,bp=a.unstable_IdlePriority,WE=a.log,$E=a.unstable_setDisableYieldValue,al=null,Ce=null;function Un(t){if(typeof WE=="function"&&$E(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(al,t)}catch{}}var De=Math.clz32?Math.clz32:nM,tM=Math.log,eM=Math.LN2;function nM(t){return t>>>=0,t===0?32:31-(tM(t)/eM|0)|0}var Ts=256,Es=262144,Ms=4194304;function vi(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function As(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,c=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?r=vi(l):(h&=b,h!==0?r=vi(h):n||(n=b&~t,n!==0&&(r=vi(n))))):(b=l&~c,b!==0?r=vi(b):h!==0?r=vi(h):n||(n=l&~t,n!==0&&(r=vi(n)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:r}function ll(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function iM(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Sp(){var t=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),t}function vu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function aM(t,e,n,l,r,c){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,w=t.hiddenUpdates;for(n=h&~n;0<n;){var Y=31-De(n),P=1<<Y;b[Y]=0,T[Y]=-1;var B=w[Y];if(B!==null)for(w[Y]=null,Y=0;Y<B.length;Y++){var G=B[Y];G!==null&&(G.lane&=-536870913)}n&=~P}l!==0&&xp(t,l,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(h&~e))}function xp(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-De(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Tp(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-De(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Ep(t,e){var n=e&-e;return n=(n&42)!==0?1:gu(n),(n&(t.suspendedLanes|e))!==0?0:n}function gu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mp(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:ug(t.type))}function Ap(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var Hn=Math.random().toString(36).slice(2),se="__reactFiber$"+Hn,ve="__reactProps$"+Hn,Ii="__reactContainer$"+Hn,Su="__reactEvents$"+Hn,lM="__reactListeners$"+Hn,sM="__reactHandles$"+Hn,Cp="__reactResources$"+Hn,rl="__reactMarker$"+Hn;function xu(t){delete t[se],delete t[ve],delete t[Su],delete t[lM],delete t[sM]}function Wi(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ii]||n[se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Qv(t);t!==null;){if(n=t[se])return n;t=Qv(t)}return e}t=n,n=t.parentNode}return null}function $i(t){if(t=t[se]||t[Ii]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function ta(t){var e=t[Cp];return e||(e=t[Cp]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ne(t){t[rl]=!0}var Dp=new Set,Rp={};function gi(t,e){ea(t,e),ea(t+"Capture",e)}function ea(t,e){for(Rp[t]=e,t=0;t<e.length;t++)Dp.add(e[t])}var rM=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]*$"),zp={},jp={};function oM(t){return Fi.call(jp,t)?!0:Fi.call(zp,t)?!1:rM.test(t)?jp[t]=!0:(zp[t]=!0,!1)}function Cs(t,e,n){if(oM(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ds(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function dn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function He(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uM(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Tu(t){if(!t._valueTracker){var e=wp(t)?"checked":"value";t._valueTracker=uM(t,e,""+t[e])}}function Lp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=wp(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Rs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var cM=/[\n"\\]/g;function _e(t){return t.replace(cM,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Eu(t,e,n,l,r,c,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+He(e)):t.value!==""+He(e)&&(t.value=""+He(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Mu(t,h,He(e)):n!=null?Mu(t,h,He(n)):l!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+He(b):t.removeAttribute("name")}function Op(t,e,n,l,r,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Tu(t);return}n=n!=null?""+He(n):"",e=e!=null?""+He(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Tu(t)}function Mu(t,e,n){e==="number"&&Rs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function na(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+He(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Bp(t,e,n){if(e!=null&&(e=""+He(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+He(n):""}function Vp(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(Z(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=He(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Tu(t)}function ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fM=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 Np(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||fM.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Up(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&Np(t,r,l)}else for(var c in e)e.hasOwnProperty(c)&&Np(t,c,e[c])}function Au(t){if(t.indexOf("-")===-1)return!1;switch(t){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 dM=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"]]),hM=/^[\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 zs(t){return hM.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function hn(){}var Cu=null;function Du(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aa=null,la=null;function Hp(t){var e=$i(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(Eu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[ve]||null;if(!r)throw Error(u(90));Eu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Lp(l)}break t;case"textarea":Bp(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&na(t,!!n.multiple,e,!1)}}}var Ru=!1;function _p(t,e,n){if(Ru)return t(e,n);Ru=!0;try{var l=t(e);return l}finally{if(Ru=!1,(aa!==null||la!==null)&&(yr(),aa&&(e=aa,t=la,la=aa=null,Hp(e),t)))for(e=0;e<t.length;e++)Hp(t[e])}}function ul(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ve]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zu=!1;if(mn)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){zu=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{zu=!1}var _n=null,ju=null,js=null;function Gp(){if(js)return js;var t,e=ju,n=e.length,l,r="value"in _n?_n.value:_n.textContent,c=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[c-l];l++);return js=r.slice(t,1<l?1-l:void 0)}function ws(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ls(){return!0}function kp(){return!1}function ge(t){function e(n,l,r,c,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ls:kp,this.isPropagationStopped=kp,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Os=ge(bi),fl=g({},bi,{view:0,detail:0}),mM=ge(fl),wu,Lu,dl,Bs=g({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==dl&&(dl&&t.type==="mousemove"?(wu=t.screenX-dl.screenX,Lu=t.screenY-dl.screenY):Lu=wu=0,dl=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Lu}}),Yp=ge(Bs),pM=g({},Bs,{dataTransfer:0}),yM=ge(pM),vM=g({},fl,{relatedTarget:0}),Ou=ge(vM),gM=g({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),bM=ge(gM),SM=g({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xM=ge(SM),TM=g({},bi,{data:0}),qp=ge(TM),EM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MM={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"},AM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CM(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=AM[t])?!!e[t]:!1}function Bu(){return CM}var DM=g({},fl,{key:function(t){if(t.key){var e=EM[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ws(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?MM[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(t){return t.type==="keypress"?ws(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ws(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),RM=ge(DM),zM=g({},Bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xp=ge(zM),jM=g({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),wM=ge(jM),LM=g({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),OM=ge(LM),BM=g({},Bs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),VM=ge(BM),NM=g({},bi,{newState:0,oldState:0}),UM=ge(NM),HM=[9,13,27,32],Vu=mn&&"CompositionEvent"in window,hl=null;mn&&"documentMode"in document&&(hl=document.documentMode);var _M=mn&&"TextEvent"in window&&!hl,Kp=mn&&(!Vu||hl&&8<hl&&11>=hl),Pp=" ",Qp=!1;function Zp(t,e){switch(t){case"keyup":return HM.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sa=!1;function GM(t,e){switch(t){case"compositionend":return Fp(e);case"keypress":return e.which!==32?null:(Qp=!0,Pp);case"textInput":return t=e.data,t===Pp&&Qp?null:t;default:return null}}function kM(t,e){if(sa)return t==="compositionend"||!Vu&&Zp(t,e)?(t=Gp(),js=ju=_n=null,sa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Kp&&e.locale!=="ko"?null:e.data;default:return null}}var YM={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 Jp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!YM[t.type]:e==="textarea"}function Ip(t,e,n,l){aa?la?la.push(l):la=[l]:aa=l,e=Er(e,"onChange"),0<e.length&&(n=new Os("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ml=null,pl=null;function qM(t){Ov(t,0)}function Vs(t){var e=ol(t);if(Lp(e))return t}function Wp(t,e){if(t==="change")return e}var $p=!1;if(mn){var Nu;if(mn){var Uu="oninput"in document;if(!Uu){var ty=document.createElement("div");ty.setAttribute("oninput","return;"),Uu=typeof ty.oninput=="function"}Nu=Uu}else Nu=!1;$p=Nu&&(!document.documentMode||9<document.documentMode)}function ey(){ml&&(ml.detachEvent("onpropertychange",ny),pl=ml=null)}function ny(t){if(t.propertyName==="value"&&Vs(pl)){var e=[];Ip(e,pl,t,Du(t)),_p(qM,e)}}function XM(t,e,n){t==="focusin"?(ey(),ml=e,pl=n,ml.attachEvent("onpropertychange",ny)):t==="focusout"&&ey()}function KM(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vs(pl)}function PM(t,e){if(t==="click")return Vs(e)}function QM(t,e){if(t==="input"||t==="change")return Vs(e)}function ZM(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Re=typeof Object.is=="function"?Object.is:ZM;function yl(t,e){if(Re(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Fi.call(e,r)||!Re(t[r],e[r]))return!1}return!0}function iy(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ay(t,e){var n=iy(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=iy(n)}}function ly(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ly(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function sy(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Rs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Rs(t.document)}return e}function Hu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var FM=mn&&"documentMode"in document&&11>=document.documentMode,ra=null,_u=null,vl=null,Gu=!1;function ry(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||ra==null||ra!==Rs(l)||(l=ra,"selectionStart"in l&&Hu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vl&&yl(vl,l)||(vl=l,l=Er(_u,"onSelect"),0<l.length&&(e=new Os("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ra)))}function Si(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oa={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionrun:Si("Transition","TransitionRun"),transitionstart:Si("Transition","TransitionStart"),transitioncancel:Si("Transition","TransitionCancel"),transitionend:Si("Transition","TransitionEnd")},ku={},oy={};mn&&(oy=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function xi(t){if(ku[t])return ku[t];if(!oa[t])return t;var e=oa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in oy)return ku[t]=e[n];return t}var uy=xi("animationend"),cy=xi("animationiteration"),fy=xi("animationstart"),JM=xi("transitionrun"),IM=xi("transitionstart"),WM=xi("transitioncancel"),dy=xi("transitionend"),hy=new Map,Yu="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(" ");Yu.push("scrollEnd");function Je(t,e){hy.set(t,e),gi(e,[t])}var Ns=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof i=="object"&&typeof i.emit=="function"){i.emit("uncaughtException",t);return}console.error(t)},Ge=[],ua=0,qu=0;function Us(){for(var t=ua,e=qu=ua=0;e<t;){var n=Ge[e];Ge[e++]=null;var l=Ge[e];Ge[e++]=null;var r=Ge[e];Ge[e++]=null;var c=Ge[e];if(Ge[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}c!==0&&my(n,r,c)}}function Hs(t,e,n,l){Ge[ua++]=t,Ge[ua++]=e,Ge[ua++]=n,Ge[ua++]=l,qu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Xu(t,e,n,l){return Hs(t,e,n,l),_s(t)}function Ti(t,e){return Hs(t,null,null,e),_s(t)}function my(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,c=t.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-De(n),t=c.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),c):null}function _s(t){if(50<_l)throw _l=0,$c=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function $M(t,e,n,l){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,n,l){return new $M(t,e,n,l)}function Ku(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pn(t,e){var n=t.alternate;return n===null?(n=ze(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function py(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Gs(t,e,n,l,r,c){var h=0;if(l=t,typeof t=="function")Ku(t)&&(h=1);else if(typeof t=="string")h=a5(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=ze(31,n,e,r),t.elementType=lt,t.lanes=c,t;case N:return Ei(n.children,r,c,e);case M:h=8,r|=24;break;case V:return t=ze(12,n,e,r|2),t.elementType=V,t.lanes=c,t;case K:return t=ze(13,n,e,r),t.elementType=K,t.lanes=c,t;case L:return t=ze(19,n,e,r),t.elementType=L,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case F:h=10;break t;case _:h=9;break t;case U:h=11;break t;case H:h=14;break t;case tt:h=16,l=null;break t}h=29,n=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=ze(h,n,e,r),e.elementType=t,e.type=l,e.lanes=c,e}function Ei(t,e,n,l){return t=ze(7,t,l,e),t.lanes=n,t}function Pu(t,e,n){return t=ze(6,t,null,e),t.lanes=n,t}function yy(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function Qu(t,e,n){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var vy=new WeakMap;function ke(t,e){if(typeof t=="object"&&t!==null){var n=vy.get(t);return n!==void 0?n:(e={value:t,source:e,stack:il(e)},vy.set(t,e),e)}return{value:t,source:e,stack:il(e)}}var fa=[],da=0,ks=null,gl=0,Ye=[],qe=0,Gn=null,an=1,ln="";function yn(t,e){fa[da++]=gl,fa[da++]=ks,ks=t,gl=e}function gy(t,e,n){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,Gn=t;var l=an;t=ln;var r=32-De(l)-1;l&=~(1<<r),n+=1;var c=32-De(e)+r;if(30<c){var h=r-r%5;c=(l&(1<<h)-1).toString(32),l>>=h,r-=h,an=1<<32-De(e)+r|n<<r|l,ln=c+t}else an=1<<c|n<<r|l,ln=t}function Zu(t){t.return!==null&&(yn(t,1),gy(t,1,0))}function Fu(t){for(;t===ks;)ks=fa[--da],fa[da]=null,gl=fa[--da],fa[da]=null;for(;t===Gn;)Gn=Ye[--qe],Ye[qe]=null,ln=Ye[--qe],Ye[qe]=null,an=Ye[--qe],Ye[qe]=null}function by(t,e){Ye[qe++]=an,Ye[qe++]=ln,Ye[qe++]=Gn,an=e.id,ln=e.overflow,Gn=t}var re=null,Ot=null,xt=!1,kn=null,Xe=!1,Ju=Error(u(519));function Yn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(ke(e,t)),Ju}function Sy(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[se]=t,e[ve]=l,n){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(n=0;n<kl.length;n++)gt(kl[n],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),Op(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),Vp(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Uv(e.textContent,n)?(l.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),l.onScroll!=null&&gt("scroll",e),l.onScrollEnd!=null&&gt("scrollend",e),l.onClick!=null&&(e.onclick=hn),e=!0):e=!1,e||Yn(t,!0)}function xy(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:re=re.return}}function ha(t){if(t!==re)return!1;if(!xt)return xy(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||pf(t.type,t.memoizedProps)),n=!n),n&&Ot&&Yn(t),xy(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ot=Pv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Ot=Pv(t)}else e===27?(e=Ot,ni(t.type)?(t=Sf,Sf=null,Ot=t):Ot=e):Ot=re?Pe(t.stateNode.nextSibling):null;return!0}function Mi(){Ot=re=null,xt=!1}function Iu(){var t=kn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),kn=null),t}function bl(t){kn===null?kn=[t]:kn.push(t)}var Wu=E(null),Ai=null,vn=null;function qn(t,e,n){J(Wu,e._currentValue),e._currentValue=n}function gn(t){t._currentValue=Wu.current,q(Wu)}function $u(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function tc(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var h=r.child;c=c.firstContext;t:for(;c!==null;){var b=c;c=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){c.lanes|=n,b=c.alternate,b!==null&&(b.lanes|=n),$u(c.return,n,t),l||(h=null);break t}c=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(u(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),$u(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function ma(t,e,n,l){t=null;for(var r=e,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var b=r.type;Re(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===Tt.current){if(h=r.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Pl):t=[Pl])}r=r.return}t!==null&&tc(e,t,n,l),e.flags|=262144}function Ys(t){for(t=t.firstContext;t!==null;){if(!Re(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ci(t){Ai=t,vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Ty(Ai,t)}function qs(t,e){return Ai===null&&Ci(t),Ty(t,e)}function Ty(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},vn===null){if(t===null)throw Error(u(308));vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else vn=vn.next=e;return n}var tA=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},eA=a.unstable_scheduleCallback,nA=a.unstable_NormalPriority,Qt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new tA,data:new Map,refCount:0}}function Sl(t){t.refCount--,t.refCount===0&&eA(nA,function(){t.controller.abort()})}var xl=null,nc=0,pa=0,ya=null;function iA(t,e){if(xl===null){var n=xl=[];nc=0,pa=sf(),ya={status:"pending",value:void 0,then:function(l){n.push(l)}}}return nc++,e.then(Ey,Ey),e}function Ey(){if(--nc===0&&xl!==null){ya!==null&&(ya.status="fulfilled");var t=xl;xl=null,pa=0,ya=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function aA(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var My=k.S;k.S=function(t,e){rv=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&iA(t,e),My!==null&&My(t,e)};var Di=E(null);function ic(){var t=Di.current;return t!==null?t:Lt.pooledCache}function Xs(t,e){e===null?J(Di,Di.current):J(Di,e.pool)}function Ay(){var t=ic();return t===null?null:{parent:Qt._currentValue,pool:t}}var va=Error(u(460)),ac=Error(u(474)),Ks=Error(u(542)),Ps={then:function(){}};function Cy(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Dy(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(hn,hn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,zy(t),t;default:if(typeof e.status=="string")e.then(hn,hn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,zy(t),t}throw zi=e,va}}function Ri(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(zi=n,va):n}}var zi=null;function Ry(){if(zi===null)throw Error(u(459));var t=zi;return zi=null,t}function zy(t){if(t===va||t===Ks)throw Error(u(483))}var ga=null,Tl=0;function Qs(t){var e=Tl;return Tl+=1,ga===null&&(ga=[]),Dy(ga,t,e)}function El(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Zs(t,e){throw e.$$typeof===D?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function jy(t){function e(R,C){if(t){var j=R.deletions;j===null?(R.deletions=[C],R.flags|=16):j.push(C)}}function n(R,C){if(!t)return null;for(;C!==null;)e(R,C),C=C.sibling;return null}function l(R){for(var C=new Map;R!==null;)R.key!==null?C.set(R.key,R):C.set(R.index,R),R=R.sibling;return C}function r(R,C){return R=pn(R,C),R.index=0,R.sibling=null,R}function c(R,C,j){return R.index=j,t?(j=R.alternate,j!==null?(j=j.index,j<C?(R.flags|=67108866,C):j):(R.flags|=67108866,C)):(R.flags|=1048576,C)}function h(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function b(R,C,j,X){return C===null||C.tag!==6?(C=Pu(j,R.mode,X),C.return=R,C):(C=r(C,j),C.return=R,C)}function T(R,C,j,X){var at=j.type;return at===N?Y(R,C,j.props.children,X,j.key):C!==null&&(C.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&Ri(at)===C.type)?(C=r(C,j.props),El(C,j),C.return=R,C):(C=Gs(j.type,j.key,j.props,null,R.mode,X),El(C,j),C.return=R,C)}function w(R,C,j,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=Qu(j,R.mode,X),C.return=R,C):(C=r(C,j.children||[]),C.return=R,C)}function Y(R,C,j,X,at){return C===null||C.tag!==7?(C=Ei(j,R.mode,X,at),C.return=R,C):(C=r(C,j),C.return=R,C)}function P(R,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Pu(""+C,R.mode,j),C.return=R,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return j=Gs(C.type,C.key,C.props,null,R.mode,j),El(j,C),j.return=R,j;case z:return C=Qu(C,R.mode,j),C.return=R,C;case tt:return C=Ri(C),P(R,C,j)}if(Z(C)||ut(C))return C=Ei(C,R.mode,j,null),C.return=R,C;if(typeof C.then=="function")return P(R,Qs(C),j);if(C.$$typeof===F)return P(R,qs(R,C),j);Zs(R,C)}return null}function B(R,C,j,X){var at=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return at!==null?null:b(R,C,""+j,X);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case O:return j.key===at?T(R,C,j,X):null;case z:return j.key===at?w(R,C,j,X):null;case tt:return j=Ri(j),B(R,C,j,X)}if(Z(j)||ut(j))return at!==null?null:Y(R,C,j,X,null);if(typeof j.then=="function")return B(R,C,Qs(j),X);if(j.$$typeof===F)return B(R,C,qs(R,j),X);Zs(R,j)}return null}function G(R,C,j,X,at){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return R=R.get(j)||null,b(C,R,""+X,at);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case O:return R=R.get(X.key===null?j:X.key)||null,T(C,R,X,at);case z:return R=R.get(X.key===null?j:X.key)||null,w(C,R,X,at);case tt:return X=Ri(X),G(R,C,j,X,at)}if(Z(X)||ut(X))return R=R.get(j)||null,Y(C,R,X,at,null);if(typeof X.then=="function")return G(R,C,j,Qs(X),at);if(X.$$typeof===F)return G(R,C,j,qs(C,X),at);Zs(C,X)}return null}function $(R,C,j,X){for(var at=null,Et=null,et=C,pt=C=0,St=null;et!==null&&pt<j.length;pt++){et.index>pt?(St=et,et=null):St=et.sibling;var Mt=B(R,et,j[pt],X);if(Mt===null){et===null&&(et=St);break}t&&et&&Mt.alternate===null&&e(R,et),C=c(Mt,C,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt,et=St}if(pt===j.length)return n(R,et),xt&&yn(R,pt),at;if(et===null){for(;pt<j.length;pt++)et=P(R,j[pt],X),et!==null&&(C=c(et,C,pt),Et===null?at=et:Et.sibling=et,Et=et);return xt&&yn(R,pt),at}for(et=l(et);pt<j.length;pt++)St=G(et,R,pt,j[pt],X),St!==null&&(t&&St.alternate!==null&&et.delete(St.key===null?pt:St.key),C=c(St,C,pt),Et===null?at=St:Et.sibling=St,Et=St);return t&&et.forEach(function(ri){return e(R,ri)}),xt&&yn(R,pt),at}function st(R,C,j,X){if(j==null)throw Error(u(151));for(var at=null,Et=null,et=C,pt=C=0,St=null,Mt=j.next();et!==null&&!Mt.done;pt++,Mt=j.next()){et.index>pt?(St=et,et=null):St=et.sibling;var ri=B(R,et,Mt.value,X);if(ri===null){et===null&&(et=St);break}t&&et&&ri.alternate===null&&e(R,et),C=c(ri,C,pt),Et===null?at=ri:Et.sibling=ri,Et=ri,et=St}if(Mt.done)return n(R,et),xt&&yn(R,pt),at;if(et===null){for(;!Mt.done;pt++,Mt=j.next())Mt=P(R,Mt.value,X),Mt!==null&&(C=c(Mt,C,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return xt&&yn(R,pt),at}for(et=l(et);!Mt.done;pt++,Mt=j.next())Mt=G(et,R,pt,Mt.value,X),Mt!==null&&(t&&Mt.alternate!==null&&et.delete(Mt.key===null?pt:Mt.key),C=c(Mt,C,pt),Et===null?at=Mt:Et.sibling=Mt,Et=Mt);return t&&et.forEach(function(p5){return e(R,p5)}),xt&&yn(R,pt),at}function jt(R,C,j,X){if(typeof j=="object"&&j!==null&&j.type===N&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case O:t:{for(var at=j.key;C!==null;){if(C.key===at){if(at=j.type,at===N){if(C.tag===7){n(R,C.sibling),X=r(C,j.props.children),X.return=R,R=X;break t}}else if(C.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===tt&&Ri(at)===C.type){n(R,C.sibling),X=r(C,j.props),El(X,j),X.return=R,R=X;break t}n(R,C);break}else e(R,C);C=C.sibling}j.type===N?(X=Ei(j.props.children,R.mode,X,j.key),X.return=R,R=X):(X=Gs(j.type,j.key,j.props,null,R.mode,X),El(X,j),X.return=R,R=X)}return h(R);case z:t:{for(at=j.key;C!==null;){if(C.key===at)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){n(R,C.sibling),X=r(C,j.children||[]),X.return=R,R=X;break t}else{n(R,C);break}else e(R,C);C=C.sibling}X=Qu(j,R.mode,X),X.return=R,R=X}return h(R);case tt:return j=Ri(j),jt(R,C,j,X)}if(Z(j))return $(R,C,j,X);if(ut(j)){if(at=ut(j),typeof at!="function")throw Error(u(150));return j=at.call(j),st(R,C,j,X)}if(typeof j.then=="function")return jt(R,C,Qs(j),X);if(j.$$typeof===F)return jt(R,C,qs(R,j),X);Zs(R,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(n(R,C.sibling),X=r(C,j),X.return=R,R=X):(n(R,C),X=Pu(j,R.mode,X),X.return=R,R=X),h(R)):n(R,C)}return function(R,C,j,X){try{Tl=0;var at=jt(R,C,j,X);return ga=null,at}catch(et){if(et===va||et===Ks)throw et;var Et=ze(29,et,null,R.mode);return Et.lanes=X,Et.return=R,Et}finally{}}}var ji=jy(!0),wy=jy(!1),Xn=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=_s(t),my(t,null,n),e}return Hs(t,l,e,n),_s(t)}function Ml(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Tp(t,n)}}function rc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?r=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?r=c=e:c=c.next=e}else r=c=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Al(){if(oc){var t=ya;if(t!==null)throw t}}function Cl(t,e,n,l){oc=!1;var r=t.updateQueue;Xn=!1;var c=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,w=T.next;T.next=null,h===null?c=w:h.next=w,h=T;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==h&&(b===null?Y.firstBaseUpdate=w:b.next=w,Y.lastBaseUpdate=T))}if(c!==null){var P=r.baseState;h=0,Y=w=T=null,b=c;do{var B=b.lane&-536870913,G=B!==b.lane;if(G?(bt&B)===B:(l&B)===B){B!==0&&B===pa&&(oc=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var $=t,st=b;B=e;var jt=n;switch(st.tag){case 1:if($=st.payload,typeof $=="function"){P=$.call(jt,P,B);break t}P=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=st.payload,B=typeof $=="function"?$.call(jt,P,B):$,B==null)break t;P=g({},P,B);break t;case 2:Xn=!0}}B=b.callback,B!==null&&(t.flags|=64,G&&(t.flags|=8192),G=r.callbacks,G===null?r.callbacks=[B]:G.push(B))}else G={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(w=Y=G,T=P):Y=Y.next=G,h|=B;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;G=b,b=G.next,G.next=null,r.lastBaseUpdate=G,r.shared.pending=null}}while(!0);Y===null&&(T=P),r.baseState=T,r.firstBaseUpdate=w,r.lastBaseUpdate=Y,c===null&&(r.shared.lanes=0),In|=h,t.lanes=h,t.memoizedState=P}}function Ly(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Oy(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ly(n[t],e)}var ba=E(null),Fs=E(0);function By(t,e){t=Dn,J(Fs,t),J(ba,e),Dn=t|e.baseLanes}function uc(){J(Fs,Dn),J(ba,ba.current)}function cc(){Dn=Fs.current,q(ba),q(Fs)}var je=E(null),Ke=null;function Qn(t){var e=t.alternate;J(Xt,Xt.current&1),J(je,t),Ke===null&&(e===null||ba.current!==null||e.memoizedState!==null)&&(Ke=t)}function fc(t){J(Xt,Xt.current),J(je,t),Ke===null&&(Ke=t)}function Vy(t){t.tag===22?(J(Xt,Xt.current),J(je,t),Ke===null&&(Ke=t)):Zn()}function Zn(){J(Xt,Xt.current),J(je,je.current)}function we(t){q(je),Ke===t&&(Ke=null),q(Xt)}var Xt=E(0);function Js(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gf(n)||bf(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bn=0,ht=null,Rt=null,Zt=null,Is=!1,Sa=!1,wi=!1,Ws=0,Dl=0,xa=null,lA=0;function Yt(){throw Error(u(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Re(t[n],e[n]))return!1;return!0}function hc(t,e,n,l,r,c){return bn=c,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,k.H=t===null||t.memoizedState===null?g0:Rc,wi=!1,c=n(l,r),wi=!1,Sa&&(c=Uy(e,n,l,r)),Ny(t),c}function Ny(t){k.H=jl;var e=Rt!==null&&Rt.next!==null;if(bn=0,Zt=Rt=ht=null,Is=!1,Dl=0,xa=null,e)throw Error(u(300));t===null||Ft||(t=t.dependencies,t!==null&&Ys(t)&&(Ft=!0))}function Uy(t,e,n,l){ht=t;var r=0;do{if(Sa&&(xa=null),Dl=0,Sa=!1,25<=r)throw Error(u(301));if(r+=1,Zt=Rt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=b0,c=e(n,l)}while(Sa);return c}function sA(){var t=k.H,e=t.useState()[0];return e=typeof e.then=="function"?Rl(e):e,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(ht.flags|=1024),e}function mc(){var t=Ws!==0;return Ws=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function yc(t){if(Is){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Is=!1}bn=0,Zt=Rt=ht=null,Sa=!1,Dl=Ws=0,xa=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ht.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Kt(){if(Rt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var e=Zt===null?ht.memoizedState:Zt.next;if(e!==null)Zt=e,Rt=t;else{if(t===null)throw ht.alternate===null?Error(u(467)):Error(u(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},Zt===null?ht.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function $s(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(t){var e=Dl;return Dl+=1,xa===null&&(xa=[]),t=Dy(xa,t,e),e=ht,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,k.H=e===null||e.memoizedState===null?g0:Rc),t}function tr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Rl(t);if(t.$$typeof===F)return oe(t)}throw Error(u(438,String(t)))}function vc(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ht.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=$s(),ht.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=ot;return e.index++,n}function Sn(t,e){return typeof e=="function"?e(t):e}function er(t){var e=Kt();return gc(e,Rt,t)}function gc(t,e,n){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var r=t.baseQueue,c=l.pending;if(c!==null){if(r!==null){var h=r.next;r.next=c.next,c.next=h}e.baseQueue=r=c,l.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var b=h=null,T=null,w=e,Y=!1;do{var P=w.lane&-536870913;if(P!==w.lane?(bt&P)===P:(bn&P)===P){var B=w.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),P===pa&&(Y=!0);else if((bn&B)===B){w=w.next,B===pa&&(Y=!0);continue}else P={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},T===null?(b=T=P,h=c):T=T.next=P,ht.lanes|=B,In|=B;P=w.action,wi&&n(c,P),c=w.hasEagerState?w.eagerState:n(c,P)}else B={lane:P,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},T===null?(b=T=B,h=c):T=T.next=B,ht.lanes|=P,In|=P;w=w.next}while(w!==null&&w!==e);if(T===null?h=c:T.next=b,!Re(c,t.memoizedState)&&(Ft=!0,Y&&(n=ya,n!==null)))throw n;t.memoizedState=c,t.baseState=h,t.baseQueue=T,l.lastRenderedState=c}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function bc(t){var e=Kt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,c=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do c=t(c,h.action),h=h.next;while(h!==r);Re(c,e.memoizedState)||(Ft=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,l]}function Hy(t,e,n){var l=ht,r=Kt(),c=xt;if(c){if(n===void 0)throw Error(u(407));n=n()}else n=e();var h=!Re((Rt||r).memoizedState,n);if(h&&(r.memoizedState=n,Ft=!0),r=r.queue,Tc(ky.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,Ta(9,{destroy:void 0},Gy.bind(null,l,r,n,e),null),Lt===null)throw Error(u(349));c||(bn&127)!==0||_y(l,e,n)}return n}function _y(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=$s(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Gy(t,e,n,l){e.value=n,e.getSnapshot=l,Yy(e)&&qy(t)}function ky(t,e,n){return n(function(){Yy(e)&&qy(t)})}function Yy(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Re(t,n)}catch{return!0}}function qy(t){var e=Ti(t,2);e!==null&&Ee(e,t,2)}function Sc(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),wi){Un(!0);try{n()}finally{Un(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function Xy(t,e,n,l){return t.baseState=n,gc(t,Rt,typeof l=="function"?l:Sn)}function rA(t,e,n,l,r){if(ar(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};k.T!==null?n(!0):c.isTransition=!1,l(c),n=e.pending,n===null?(c.next=e.pending=c,Ky(e,c)):(c.next=n.next,e.pending=n.next=c)}}function Ky(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var c=k.T,h={};k.T=h;try{var b=n(r,l),T=k.S;T!==null&&T(h,b),Py(t,e,b)}catch(w){xc(t,e,w)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=n(r,l),Py(t,e,c)}catch(w){xc(t,e,w)}}function Py(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Qy(t,e,l)},function(l){return xc(t,e,l)}):Qy(t,e,n)}function Qy(t,e,n){e.status="fulfilled",e.value=n,Zy(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ky(t,n)))}function xc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Zy(e),e=e.next;while(e!==l)}t.action=null}function Zy(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Fy(t,e){return e}function Jy(t,e){if(xt){var n=Lt.formState;if(n!==null){t:{var l=ht;if(xt){if(Ot){e:{for(var r=Ot,c=Xe;r.nodeType!==8;){if(!c){r=null;break e}if(r=Pe(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){Ot=Pe(r.nextSibling),l=r.data==="F!";break t}}Yn(l)}l=!1}l&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fy,lastRenderedState:e},n.queue=l,n=p0.bind(null,ht,l),l.dispatch=n,l=Sc(!1),c=Dc.bind(null,ht,!1,l.queue),l=pe(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=rA.bind(null,ht,r,c,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function Iy(t){var e=Kt();return Wy(e,Rt,t)}function Wy(t,e,n){if(e=gc(t,e,Fy)[0],t=er(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Rl(e)}catch(h){throw h===va?Ks:h}else l=e;e=Kt();var r=e.queue,c=r.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,Ta(9,{destroy:void 0},oA.bind(null,r,n),null)),[l,c,t]}function oA(t,e){t.action=e}function $y(t){var e=Kt(),n=Rt;if(n!==null)return Wy(e,n,t);Kt(),e=e.memoizedState,n=Kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ta(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ht.updateQueue,e===null&&(e=$s(),ht.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function t0(){return Kt().memoizedState}function nr(t,e,n,l){var r=pe();ht.flags|=t,r.memoizedState=Ta(1|e,{destroy:void 0},n,l===void 0?null:l)}function ir(t,e,n,l){var r=Kt();l=l===void 0?null:l;var c=r.memoizedState.inst;Rt!==null&&l!==null&&dc(l,Rt.memoizedState.deps)?r.memoizedState=Ta(e,c,n,l):(ht.flags|=t,r.memoizedState=Ta(1|e,c,n,l))}function e0(t,e){nr(8390656,8,t,e)}function Tc(t,e){ir(2048,8,t,e)}function uA(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=$s(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function n0(t){var e=Kt().memoizedState;return uA({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function i0(t,e){return ir(4,2,t,e)}function a0(t,e){return ir(4,4,t,e)}function l0(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function s0(t,e,n){n=n!=null?n.concat([t]):null,ir(4,4,l0.bind(null,e,t),n)}function Ec(){}function r0(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&dc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function o0(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&dc(e,l[1]))return l[0];if(l=t(),wi){Un(!0);try{t()}finally{Un(!1)}}return n.memoizedState=[l,e],l}function Mc(t,e,n){return n===void 0||(bn&1073741824)!==0&&(bt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=uv(),ht.lanes|=t,In|=t,n)}function u0(t,e,n,l){return Re(n,e)?n:ba.current!==null?(t=Mc(t,n,l),Re(t,e)||(Ft=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(bt&261930)===0?(Ft=!0,t.memoizedState=n):(t=uv(),ht.lanes|=t,In|=t,e)}function c0(t,e,n,l,r){var c=Q.p;Q.p=c!==0&&8>c?c:8;var h=k.T,b={};k.T=b,Dc(t,!1,e,n);try{var T=r(),w=k.S;if(w!==null&&w(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=aA(T,l);zl(t,e,Y,Be(t))}else zl(t,e,l,Be(t))}catch(P){zl(t,e,{then:function(){},status:"rejected",reason:P},Be())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),k.T=h}}function cA(){}function Ac(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=f0(t).queue;c0(t,r,e,it,n===null?cA:function(){return d0(t),n(l)})}function f0(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function d0(t){var e=f0(t);e.next===null&&(e=t.alternate.memoizedState),zl(t,e.next.queue,{},Be())}function Cc(){return oe(Pl)}function h0(){return Kt().memoizedState}function m0(){return Kt().memoizedState}function fA(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Be();t=Kn(n);var l=Pn(e,t,n);l!==null&&(Ee(l,e,n),Ml(l,e,n)),e={cache:ec()},t.payload=e;return}e=e.return}}function dA(t,e,n){var l=Be();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ar(t)?y0(e,n):(n=Xu(t,e,n,l),n!==null&&(Ee(n,t,l),v0(n,e,l)))}function p0(t,e,n){var l=Be();zl(t,e,n,l)}function zl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ar(t))y0(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var h=e.lastRenderedState,b=c(h,n);if(r.hasEagerState=!0,r.eagerState=b,Re(b,h))return Hs(t,e,r,0),Lt===null&&Us(),!1}catch{}finally{}if(n=Xu(t,e,r,l),n!==null)return Ee(n,t,l),v0(n,e,l),!0}return!1}function Dc(t,e,n,l){if(l={lane:2,revertLane:sf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ar(t)){if(e)throw Error(u(479))}else e=Xu(t,n,l,2),e!==null&&Ee(e,t,2)}function ar(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function y0(t,e){Sa=Is=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function v0(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Tp(t,n)}}var jl={readContext:oe,use:tr,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};jl.useEffectEvent=Yt;var g0={readContext:oe,use:tr,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:e0,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,nr(4194308,4,l0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return nr(4194308,4,t,e)},useInsertionEffect:function(t,e){nr(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var l=t();if(wi){Un(!0);try{t()}finally{Un(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=pe();if(n!==void 0){var r=n(e);if(wi){Un(!0);try{n(e)}finally{Un(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=dA.bind(null,ht,t),[l.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,n=p0.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ec,useDeferredValue:function(t,e){var n=pe();return Mc(n,t,e)},useTransition:function(){var t=Sc(!1);return t=c0.bind(null,ht,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ht,r=pe();if(xt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Lt===null)throw Error(u(349));(bt&127)!==0||_y(l,e,n)}r.memoizedState=n;var c={value:n,getSnapshot:e};return r.queue=c,e0(ky.bind(null,l,c,t),[t]),l.flags|=2048,Ta(9,{destroy:void 0},Gy.bind(null,l,c,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(xt){var n=ln,l=an;n=(l&~(1<<32-De(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ws++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=lA++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:Jy,useActionState:Jy,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Dc.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:vc,useCacheRefresh:function(){return pe().memoizedState=fA.bind(null,ht)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Rc={readContext:oe,use:tr,useCallback:r0,useContext:oe,useEffect:Tc,useImperativeHandle:s0,useInsertionEffect:i0,useLayoutEffect:a0,useMemo:o0,useReducer:er,useRef:t0,useState:function(){return er(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Kt();return u0(n,Rt.memoizedState,t,e)},useTransition:function(){var t=er(Sn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Rl(t),e]},useSyncExternalStore:Hy,useId:h0,useHostTransitionStatus:Cc,useFormState:Iy,useActionState:Iy,useOptimistic:function(t,e){var n=Kt();return Xy(n,Rt,t,e)},useMemoCache:vc,useCacheRefresh:m0};Rc.useEffectEvent=n0;var b0={readContext:oe,use:tr,useCallback:r0,useContext:oe,useEffect:Tc,useImperativeHandle:s0,useInsertionEffect:i0,useLayoutEffect:a0,useMemo:o0,useReducer:bc,useRef:t0,useState:function(){return bc(Sn)},useDebugValue:Ec,useDeferredValue:function(t,e){var n=Kt();return Rt===null?Mc(n,t,e):u0(n,Rt.memoizedState,t,e)},useTransition:function(){var t=bc(Sn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Rl(t),e]},useSyncExternalStore:Hy,useId:h0,useHostTransitionStatus:Cc,useFormState:$y,useActionState:$y,useOptimistic:function(t,e){var n=Kt();return Rt!==null?Xy(n,Rt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:vc,useCacheRefresh:m0};b0.useEffectEvent=n0;function zc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var jc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Be(),r=Kn(l);r.payload=e,n!=null&&(r.callback=n),e=Pn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Be(),r=Kn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Pn(t,r,l),e!==null&&(Ee(e,t,l),Ml(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Be(),l=Kn(n);l.tag=2,e!=null&&(l.callback=e),e=Pn(t,l,n),e!==null&&(Ee(e,t,n),Ml(e,t,n))}};function S0(t,e,n,l,r,c,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,h):e.prototype&&e.prototype.isPureReactComponent?!yl(n,l)||!yl(r,c):!0}function x0(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&jc.enqueueReplaceState(e,e.state,null)}function Li(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function T0(t){Ns(t)}function E0(t){console.error(t)}function M0(t){Ns(t)}function lr(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function A0(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function wc(t,e,n){return n=Kn(n),n.tag=3,n.payload={element:null},n.callback=function(){lr(t,e)},n}function C0(t){return t=Kn(t),t.tag=3,t}function D0(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var c=l.value;t.payload=function(){return r(c)},t.callback=function(){A0(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){A0(e,n,l),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function hA(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ma(e,n,r,!0),n=je.current,n!==null){switch(n.tag){case 31:case 13:return Ke===null?vr():n.alternate===null&&qt===0&&(qt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Ps?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),nf(t,l,r)),!1;case 22:return n.flags|=65536,l===Ps?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),nf(t,l,r)),!1}throw Error(u(435,n.tag))}return nf(t,l,r),vr(),!1}if(xt)return e=je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Ju&&(t=Error(u(422),{cause:l}),bl(ke(t,n)))):(l!==Ju&&(e=Error(u(423),{cause:l}),bl(ke(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=ke(l,n),r=wc(t.stateNode,l,r),rc(t,r),qt!==4&&(qt=2)),!1;var c=Error(u(520),{cause:l});if(c=ke(c,n),Hl===null?Hl=[c]:Hl.push(c),qt!==4&&(qt=2),e===null)return!0;l=ke(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=wc(n.stateNode,l,t),rc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Wn===null||!Wn.has(c))))return n.flags|=65536,r&=-r,n.lanes|=r,r=C0(r),D0(r,t,n,l),rc(n,r),!1}n=n.return}while(n!==null);return!1}var Lc=Error(u(461)),Ft=!1;function ue(t,e,n,l){e.child=t===null?wy(e,null,n,l):ji(e,t.child,n,l)}function R0(t,e,n,l,r){n=n.render;var c=e.ref;if("ref"in l){var h={};for(var b in l)b!=="ref"&&(h[b]=l[b])}else h=l;return Ci(e),l=hc(t,e,n,h,c,r),b=mc(),t!==null&&!Ft?(pc(t,e,r),xn(t,e,r)):(xt&&b&&Zu(e),e.flags|=1,ue(t,e,l,r),e.child)}function z0(t,e,n,l,r){if(t===null){var c=n.type;return typeof c=="function"&&!Ku(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,j0(t,e,c,l,r)):(t=Gs(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Gc(t,r)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:yl,n(h,l)&&t.ref===e.ref)return xn(t,e,r)}return e.flags|=1,t=pn(c,l),t.ref=e.ref,t.return=e,e.child=t}function j0(t,e,n,l,r){if(t!==null){var c=t.memoizedProps;if(yl(c,l)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=l=c,Gc(t,r))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,xn(t,e,r)}return Oc(t,e,n,l,r)}function w0(t,e,n,l){var r=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~c}else l=0,e.child=null;return L0(t,e,c,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xs(e,c!==null?c.cachePool:null),c!==null?By(e,c):uc(),Vy(e);else return l=e.lanes=536870912,L0(t,e,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(Xs(e,c.cachePool),By(e,c),Zn(),e.memoizedState=null):(t!==null&&Xs(e,null),uc(),Zn());return ue(t,e,r,n),e.child}function wl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function L0(t,e,n,l,r){var c=ic();return c=c===null?null:{parent:Qt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Xs(e,null),uc(),Vy(e),t!==null&&ma(t,e,l,!0),e.childLanes=r,null}function sr(t,e){return e=or({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function O0(t,e,n){return ji(e,t.child,null,n),t=sr(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function mA(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(l.mode==="hidden")return t=sr(e,l),e.lanes=536870912,wl(null,t);if(fc(e),(t=Ot)?(t=Kv(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=yy(t),n.return=e,e.child=n,re=e,Ot=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return sr(e,l)}var c=t.memoizedState;if(c!==null){var h=c.dehydrated;if(fc(e),r)if(e.flags&256)e.flags&=-257,e=O0(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ft||ma(t,e,n,!1),r=(n&t.childLanes)!==0,Ft||r){if(l=Lt,l!==null&&(h=Ep(l,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ti(t,h),Ee(l,t,h),Lc;vr(),e=O0(t,e,n)}else t=c.treeContext,Ot=Pe(h.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&by(e,t),e=sr(e,l),e.flags|=4096;return e}return t=pn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function rr(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Oc(t,e,n,l,r){return Ci(e),n=hc(t,e,n,l,void 0,r),l=mc(),t!==null&&!Ft?(pc(t,e,r),xn(t,e,r)):(xt&&l&&Zu(e),e.flags|=1,ue(t,e,n,r),e.child)}function B0(t,e,n,l,r,c){return Ci(e),e.updateQueue=null,n=Uy(e,l,n,r),Ny(t),l=mc(),t!==null&&!Ft?(pc(t,e,c),xn(t,e,c)):(xt&&l&&Zu(e),e.flags|=1,ue(t,e,n,c),e.child)}function V0(t,e,n,l,r){if(Ci(e),e.stateNode===null){var c=ca,h=n.contextType;typeof h=="object"&&h!==null&&(c=oe(h)),c=new n(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=jc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},lc(e),h=n.contextType,c.context=typeof h=="object"&&h!==null?oe(h):ca,c.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(zc(e,n,h,l),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&jc.enqueueReplaceState(c,c.state,null),Cl(e,l,c,r),Al(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var b=e.memoizedProps,T=Li(n,b);c.props=T;var w=c.context,Y=n.contextType;h=ca,typeof Y=="object"&&Y!==null&&(h=oe(Y));var P=n.getDerivedStateFromProps;Y=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,Y||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||w!==h)&&x0(e,c,l,h),Xn=!1;var B=e.memoizedState;c.state=B,Cl(e,l,c,r),Al(),w=e.memoizedState,b||B!==w||Xn?(typeof P=="function"&&(zc(e,n,P,l),w=e.memoizedState),(T=Xn||S0(e,n,T,l,B,w,h))?(Y||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=w),c.props=l,c.state=w,c.context=h,l=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,sc(t,e),h=e.memoizedProps,Y=Li(n,h),c.props=Y,P=e.pendingProps,B=c.context,w=n.contextType,T=ca,typeof w=="object"&&w!==null&&(T=oe(w)),b=n.getDerivedStateFromProps,(w=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==P||B!==T)&&x0(e,c,l,T),Xn=!1,B=e.memoizedState,c.state=B,Cl(e,l,c,r),Al();var G=e.memoizedState;h!==P||B!==G||Xn||t!==null&&t.dependencies!==null&&Ys(t.dependencies)?(typeof b=="function"&&(zc(e,n,b,l),G=e.memoizedState),(Y=Xn||S0(e,n,Y,l,B,G,T)||t!==null&&t.dependencies!==null&&Ys(t.dependencies))?(w||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,G,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,G,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=G),c.props=l,c.state=G,c.context=T,l=Y):(typeof c.componentDidUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,rr(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=ji(e,t.child,null,r),e.child=ji(e,null,n,r)):ue(t,e,n,r),e.memoizedState=c.state,t=e.child):t=xn(t,e,r),t}function N0(t,e,n,l){return Mi(),e.flags|=256,ue(t,e,n,l),e.child}var Bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vc(t){return{baseLanes:t,cachePool:Ay()}}function Nc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function U0(t,e,n){var l=e.pendingProps,r=!1,c=(e.flags&128)!==0,h;if((h=c)||(h=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(r?Qn(e):Zn(),(t=Ot)?(t=Kv(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=yy(t),n.return=e,e.child=n,re=e,Ot=null)):t=null,t===null)throw Yn(e);return bf(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,r?(Zn(),r=e.mode,b=or({mode:"hidden",children:b},r),l=Ei(l,r,n,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=Vc(n),l.childLanes=Nc(t,h,n),e.memoizedState=Bc,wl(null,l)):(Qn(e),Uc(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(c)e.flags&256?(Qn(e),e.flags&=-257,e=Hc(t,e,n)):e.memoizedState!==null?(Zn(),e.child=t.child,e.flags|=128,e=null):(Zn(),b=l.fallback,r=e.mode,l=or({mode:"visible",children:l.children},r),b=Ei(b,r,n,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,ji(e,t.child,null,n),l=e.child,l.memoizedState=Vc(n),l.childLanes=Nc(t,h,n),e.memoizedState=Bc,e=wl(null,l));else if(Qn(e),bf(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var w=h.dgst;h=w,l=Error(u(419)),l.stack="",l.digest=h,bl({value:l,source:null,stack:null}),e=Hc(t,e,n)}else if(Ft||ma(t,e,n,!1),h=(n&t.childLanes)!==0,Ft||h){if(h=Lt,h!==null&&(l=Ep(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ti(t,l),Ee(h,t,l),Lc;gf(b)||vr(),e=Hc(t,e,n)}else gf(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Pe(b.nextSibling),re=e,xt=!0,kn=null,Xe=!1,t!==null&&by(e,t),e=Uc(e,l.children),e.flags|=4096);return e}return r?(Zn(),b=l.fallback,r=e.mode,T=t.child,w=T.sibling,l=pn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,w!==null?b=pn(w,b):(b=Ei(b,r,n,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,wl(null,l),l=e.child,b=t.child.memoizedState,b===null?b=Vc(n):(r=b.cachePool,r!==null?(T=Qt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Ay(),b={baseLanes:b.baseLanes|n,cachePool:r}),l.memoizedState=b,l.childLanes=Nc(t,h,n),e.memoizedState=Bc,wl(t.child,l)):(Qn(e),n=t.child,t=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Uc(t,e){return e=or({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function or(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function Hc(t,e,n){return ji(e,t.child,null,n),t=Uc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function H0(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),$u(t.return,e,n)}function _c(t,e,n,l,r,c){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:c}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=c)}function _0(t,e,n){var l=e.pendingProps,r=l.revealOrder,c=l.tail;l=l.children;var h=Xt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,J(Xt,h),ue(t,e,l,n),l=xt?gl:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&H0(t,n,e);else if(t.tag===19)H0(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Js(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),_c(e,!1,r,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Js(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}_c(e,!0,n,null,c,l);break;case"together":_c(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function xn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ma(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=pn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=pn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ys(t)))}function pA(t,e,n){switch(e.tag){case 3:te(e,e.stateNode.containerInfo),qn(e,Qt,t.memoizedState.cache),Mi();break;case 27:case 5:pi(e);break;case 4:te(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,fc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?U0(t,e,n):(Qn(e),t=xn(t,e,n),t!==null?t.sibling:null);Qn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ma(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return _0(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,w0(t,e,n,e.pendingProps);case 24:qn(e,Qt,t.memoizedState.cache)}return xn(t,e,n)}function G0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Gc(t,n)&&(e.flags&128)===0)return Ft=!1,pA(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&gy(e,gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Ri(e.elementType),e.type=t,typeof t=="function")Ku(t)?(l=Li(t,l),e.tag=1,e=V0(null,e,t,l,n)):(e.tag=0,e=Oc(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===U){e.tag=11,e=R0(null,e,t,l,n);break t}else if(r===H){e.tag=14,e=z0(null,e,t,l,n);break t}}throw e=nt(t)||t,Error(u(306,e,""))}}return e;case 0:return Oc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Li(l,e.pendingProps),V0(t,e,l,r,n);case 3:t:{if(te(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;r=c.element,sc(t,e),Cl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,qn(e,Qt,l),l!==c.cache&&tc(e,[Qt],n,!0),Al(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=N0(t,e,l,n);break t}else if(l!==r){r=ke(Error(u(424)),e),bl(r),e=N0(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ot=Pe(t.firstChild),re=e,xt=!0,kn=null,Xe=!0,n=wy(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Mi(),l===r){e=xn(t,e,n);break t}ue(t,e,l,n)}e=e.child}return e;case 26:return rr(t,e),t===null?(n=Iv(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,l=Mr(mt.current).createElement(n),l[se]=e,l[ve]=t,ce(l,n,t),ne(l),e.stateNode=l):e.memoizedState=Iv(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pi(e),t===null&&xt&&(l=e.stateNode=Zv(e.type,e.pendingProps,mt.current),re=e,Xe=!0,r=Ot,ni(e.type)?(Sf=r,Ot=Pe(l.firstChild)):Ot=r),ue(t,e,e.pendingProps.children,n),rr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((r=l=Ot)&&(l=KA(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,re=e,Ot=Pe(l.firstChild),Xe=!1,r=!0):r=!1),r||Yn(e)),pi(e),r=e.type,c=e.pendingProps,h=t!==null?t.memoizedProps:null,l=c.children,pf(r,c)?l=null:h!==null&&pf(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=hc(t,e,sA,null,null,n),Pl._currentValue=r),rr(t,e),ue(t,e,l,n),e.child;case 6:return t===null&&xt&&((t=n=Ot)&&(n=PA(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Ot=null,t=!0):t=!1),t||Yn(e)),null;case 13:return U0(t,e,n);case 4:return te(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ji(e,null,l,n):ue(t,e,l,n),e.child;case 11:return R0(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,qn(e,e.type,l.value),ue(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,Ci(e),r=oe(r),l=l(r),e.flags|=1,ue(t,e,l,n),e.child;case 14:return z0(t,e,e.type,e.pendingProps,n);case 15:return j0(t,e,e.type,e.pendingProps,n);case 19:return _0(t,e,n);case 31:return mA(t,e,n);case 22:return w0(t,e,n,e.pendingProps);case 24:return Ci(e),l=oe(Qt),t===null?(r=ic(),r===null&&(r=Lt,c=ec(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=n),r=c),e.memoizedState={parent:l,cache:r},lc(e),qn(e,Qt,r)):((t.lanes&n)!==0&&(sc(t,e),Cl(e,null,null,n),Al()),r=t.memoizedState,c=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),qn(e,Qt,l)):(l=c.cache,qn(e,Qt,l),l!==r.cache&&tc(e,[Qt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Tn(t){t.flags|=4}function kc(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(hv())t.flags|=8192;else throw zi=Ps,ac}else t.flags&=-16777217}function k0(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ng(e))if(hv())t.flags|=8192;else throw zi=Ps,ac}function ur(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Sp():536870912,t.lanes|=e,Ca|=e)}function Ll(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function yA(t,e,n){var l=e.pendingProps;switch(Fu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),gn(Qt),Gt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ha(e)?Tn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Iu())),Bt(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(Tn(e),c!==null?(Bt(e),k0(e,c)):(Bt(e),kc(e,r,null,l,n))):c?c!==t.memoizedState?(Tn(e),Bt(e),k0(e,c)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Tn(e),Bt(e),kc(e,r,t,l,n)),null;case 27:if(Nn(e),n=mt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Bt(e),null}t=W.current,ha(e)?Sy(e):(t=Zv(r,l,n),e.stateNode=t,Tn(e))}return Bt(e),null;case 5:if(Nn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Bt(e),null}if(c=W.current,ha(e))Sy(e);else{var h=Mr(mt.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}c[se]=e,c[ve]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=c;t:switch(ce(c,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Tn(e)}}return Bt(e),kc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=mt.current,ha(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=re,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[se]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Uv(t.nodeValue,n)),t||Yn(e,!0)}else t=Mr(t).createTextNode(l),t[se]=e,e.stateNode=t}return Bt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=ha(e),n!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[se]=e}else Mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else n=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Bt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ha(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(u(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[se]=e}else Mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),r=!1}else r=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ur(e,e.updateQueue),Bt(e),null);case 4:return Gt(),t===null&&cf(e.stateNode.containerInfo),Bt(e),null;case 10:return gn(e.type),Bt(e),null;case 19:if(q(Xt),l=e.memoizedState,l===null)return Bt(e),null;if(r=(e.flags&128)!==0,c=l.rendering,c===null)if(r)Ll(l,!1);else{if(qt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Js(t),c!==null){for(e.flags|=128,Ll(l,!1),t=c.updateQueue,e.updateQueue=t,ur(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)py(n,t),n=n.sibling;return J(Xt,Xt.current&1|2),xt&&yn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&le()>mr&&(e.flags|=128,r=!0,Ll(l,!1),e.lanes=4194304)}else{if(!r)if(t=Js(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,ur(e,t),Ll(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!xt)return Bt(e),null}else 2*le()-l.renderingStartTime>mr&&n!==536870912&&(e.flags|=128,r=!0,Ll(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=le(),t.sibling=null,n=Xt.current,J(Xt,r?n&1|2:n&1),xt&&yn(e,l.treeForkCount),t):(Bt(e),null);case 22:case 23:return we(e),cc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),n=e.updateQueue,n!==null&&ur(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&q(Di),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),gn(Qt),Bt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function vA(t,e){switch(Fu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gn(Qt),Gt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Nn(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(u(340));Mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Xt),null;case 4:return Gt(),null;case 10:return gn(e.type),null;case 22:case 23:return we(e),cc(),t!==null&&q(Di),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gn(Qt),null;case 25:return null;default:return null}}function Y0(t,e){switch(Fu(e),e.tag){case 3:gn(Qt),Gt();break;case 26:case 27:case 5:Nn(e);break;case 4:Gt();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:q(Xt);break;case 10:gn(e.type);break;case 22:case 23:we(e),cc(),t!==null&&q(Di);break;case 24:gn(Qt)}}function Ol(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var c=n.create,h=n.inst;l=c(),h.destroy=l}n=n.next}while(n!==r)}}catch(b){Dt(e,e.return,b)}}function Fn(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var c=r.next;l=c;do{if((l.tag&t)===t){var h=l.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,w=b;try{w()}catch(Y){Dt(r,T,Y)}}}l=l.next}while(l!==c)}}catch(Y){Dt(e,e.return,Y)}}function q0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Oy(e,n)}catch(l){Dt(t,t.return,l)}}}function X0(t,e,n){n.props=Li(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Dt(t,e,l)}}function Bl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Dt(t,e,r)}}function sn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Dt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Dt(t,e,r)}else n.current=null}function K0(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Dt(t,t.return,r)}}function Yc(t,e,n){try{var l=t.stateNode;_A(l,t.type,n,e),l[ve]=e}catch(r){Dt(t,t.return,r)}}function P0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ni(t.type)||t.tag===4}function qc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||P0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ni(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=hn));else if(l!==4&&(l===27&&ni(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Xc(t,e,n),t=t.sibling;t!==null;)Xc(t,e,n),t=t.sibling}function cr(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&ni(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(cr(t,e,n),t=t.sibling;t!==null;)cr(t,e,n),t=t.sibling}function Q0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ce(e,l,n),e[se]=t,e[ve]=n}catch(c){Dt(t,t.return,c)}}var En=!1,Jt=!1,Kc=!1,Z0=typeof WeakSet=="function"?WeakSet:Set,ie=null;function gA(t,e){if(t=t.containerInfo,hf=wr,t=sy(t),Hu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,w=0,Y=0,P=t,B=null;e:for(;;){for(var G;P!==n||r!==0&&P.nodeType!==3||(b=h+r),P!==c||l!==0&&P.nodeType!==3||(T=h+l),P.nodeType===3&&(h+=P.nodeValue.length),(G=P.firstChild)!==null;)B=P,P=G;for(;;){if(P===t)break e;if(B===n&&++w===r&&(b=h),B===c&&++Y===l&&(T=h),(G=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=G}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:t,selectionRange:n},wr=!1,ie=e;ie!==null;)if(e=ie,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ie=t;else for(;ie!==null;){switch(e=ie,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,r=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var $=Li(n.type,r);t=l.getSnapshotBeforeUpdate($,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Dt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)vf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ie=t;break}ie=e.return}}function F0(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(t,n),l&4&&Ol(5,n);break;case 1:if(An(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Dt(n,n.return,h)}else{var r=Li(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Dt(n,n.return,h)}}l&64&&q0(n),l&512&&Bl(n,n.return);break;case 3:if(An(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Oy(t,e)}catch(h){Dt(n,n.return,h)}}break;case 27:e===null&&l&4&&Q0(n);case 26:case 5:An(t,n),e===null&&l&4&&K0(n),l&512&&Bl(n,n.return);break;case 12:An(t,n);break;case 31:An(t,n),l&4&&W0(t,n);break;case 13:An(t,n),l&4&&$0(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=DA.bind(null,n),QA(t,n))));break;case 22:if(l=n.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Jt,r=En;var c=Jt;En=l,(Jt=e)&&!c?Cn(t,n,(n.subtreeFlags&8772)!==0):An(t,n),En=r,Jt=c}break;case 30:break;default:An(t,n)}}function J0(t){var e=t.alternate;e!==null&&(t.alternate=null,J0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Nt=null,be=!1;function Mn(t,e,n){for(n=n.child;n!==null;)I0(t,e,n),n=n.sibling}function I0(t,e,n){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 26:Jt||sn(n,e),Mn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||sn(n,e);var l=Nt,r=be;ni(n.type)&&(Nt=n.stateNode,be=!1),Mn(t,e,n),ql(n.stateNode),Nt=l,be=r;break;case 5:Jt||sn(n,e);case 6:if(l=Nt,r=be,Nt=null,Mn(t,e,n),Nt=l,be=r,Nt!==null)if(be)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(n.stateNode)}catch(c){Dt(n,e,c)}else try{Nt.removeChild(n.stateNode)}catch(c){Dt(n,e,c)}break;case 18:Nt!==null&&(be?(t=Nt,qv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ba(t)):qv(Nt,n.stateNode));break;case 4:l=Nt,r=be,Nt=n.stateNode.containerInfo,be=!0,Mn(t,e,n),Nt=l,be=r;break;case 0:case 11:case 14:case 15:Fn(2,n,e),Jt||Fn(4,n,e),Mn(t,e,n);break;case 1:Jt||(sn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&X0(n,e,l)),Mn(t,e,n);break;case 21:Mn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Mn(t,e,n),Jt=l;break;default:Mn(t,e,n)}}function W0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ba(t)}catch(n){Dt(e,e.return,n)}}}function $0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ba(t)}catch(n){Dt(e,e.return,n)}}function bA(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Z0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Z0),e;default:throw Error(u(435,t.tag))}}function fr(t,e){var n=bA(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=RA.bind(null,t,l);l.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],c=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(ni(b.type)){Nt=b.stateNode,be=!1;break t}break;case 5:Nt=b.stateNode,be=!1;break t;case 3:case 4:Nt=b.stateNode.containerInfo,be=!0;break t}b=b.return}if(Nt===null)throw Error(u(160));I0(c,h,r),Nt=null,be=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)tv(e,t),e=e.sibling}var Ie=null;function tv(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),xe(t),l&4&&(Fn(3,t,t.return),Ol(3,t),Fn(5,t,t.return));break;case 1:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Ie;if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":c=r.getElementsByTagName("title")[0],(!c||c[rl]||c[se]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(l),r.head.insertBefore(c,r.querySelector("head > title"))),ce(c,l,n),c[se]=t,ne(c),l=c;break t;case"link":var h=tg("link","href",r).get(l+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(c=h[b],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break e}}c=r.createElement(l),ce(c,l,n),r.head.appendChild(c);break;case"meta":if(h=tg("meta","content",r).get(l+(n.content||""))){for(b=0;b<h.length;b++)if(c=h[b],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break e}}c=r.createElement(l),ce(c,l,n),r.head.appendChild(c);break;default:throw Error(u(468,l))}c[se]=t,ne(c),l=c}t.stateNode=l}else eg(r,t.type,t.stateNode);else t.stateNode=$v(r,l,t.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?eg(r,t.type,t.stateNode):$v(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Yc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),n!==null&&l&4&&Yc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),xe(t),l&512&&(Jt||n===null||sn(n,n.return)),t.flags&32){r=t.stateNode;try{ia(r,"")}catch($){Dt(t,t.return,$)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,Yc(t,r,n!==null?n.memoizedProps:r)),l&1024&&(Kc=!0);break;case 6:if(Se(e,t),xe(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Dt(t,t.return,$)}}break;case 3:if(Dr=null,r=Ie,Ie=Ar(e.containerInfo),Se(e,t),Ie=r,xe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ba(e.containerInfo)}catch($){Dt(t,t.return,$)}Kc&&(Kc=!1,ev(t));break;case 4:l=Ie,Ie=Ar(t.stateNode.containerInfo),Se(e,t),xe(t),Ie=l;break;case 12:Se(e,t),xe(t);break;case 31:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fr(t,l)));break;case 13:Se(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hr=le()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fr(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,w=En,Y=Jt;if(En=w||r,Jt=Y||T,Se(e,t),Jt=Y,En=w,xe(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||En||Jt||Oi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(c=T.stateNode,r)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var P=T.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch($){Dt(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch($){Dt(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var G=T.stateNode;r?Xv(G,!0):Xv(T.stateNode,!1)}catch($){Dt(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,fr(t,n))));break;case 19:Se(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fr(t,l)));break;case 30:break;case 21:break;default:Se(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(P0(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,c=qc(t);cr(t,c,r);break;case 5:var h=n.stateNode;n.flags&32&&(ia(h,""),n.flags&=-33);var b=qc(t);cr(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,w=qc(t);Xc(t,w,T);break;default:throw Error(u(161))}}catch(Y){Dt(t,t.return,Y)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ev(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ev(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function An(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)F0(t,e.alternate,e),e=e.sibling}function Oi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Fn(4,e,e.return),Oi(e);break;case 1:sn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&X0(e,e.return,n),Oi(e);break;case 27:ql(e.stateNode);case 26:case 5:sn(e,e.return),Oi(e);break;case 22:e.memoizedState===null&&Oi(e);break;case 30:Oi(e);break;default:Oi(e)}t=t.sibling}}function Cn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,c=e,h=c.flags;switch(c.tag){case 0:case 11:case 15:Cn(r,c,n),Ol(4,c);break;case 1:if(Cn(r,c,n),l=c,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(w){Dt(l,l.return,w)}if(l=c,r=l.updateQueue,r!==null){var b=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)Ly(T[r],b)}catch(w){Dt(l,l.return,w)}}n&&h&64&&q0(c),Bl(c,c.return);break;case 27:Q0(c);case 26:case 5:Cn(r,c,n),n&&l===null&&h&4&&K0(c),Bl(c,c.return);break;case 12:Cn(r,c,n);break;case 31:Cn(r,c,n),n&&h&4&&W0(r,c);break;case 13:Cn(r,c,n),n&&h&4&&$0(r,c);break;case 22:c.memoizedState===null&&Cn(r,c,n),Bl(c,c.return);break;case 30:break;default:Cn(r,c,n)}e=e.sibling}}function Pc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Sl(n))}function Qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t))}function We(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nv(t,e,n,l),e=e.sibling}function nv(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,l),r&2048&&Ol(9,e);break;case 1:We(t,e,n,l);break;case 3:We(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Sl(t)));break;case 12:if(r&2048){We(t,e,n,l),t=e.stateNode;try{var c=e.memoizedProps,h=c.id,b=c.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Dt(e,e.return,T)}}else We(t,e,n,l);break;case 31:We(t,e,n,l);break;case 13:We(t,e,n,l);break;case 23:break;case 22:c=e.stateNode,h=e.alternate,e.memoizedState!==null?c._visibility&2?We(t,e,n,l):Vl(t,e):c._visibility&2?We(t,e,n,l):(c._visibility|=2,Ea(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Pc(h,e);break;case 24:We(t,e,n,l),r&2048&&Qc(e.alternate,e);break;default:We(t,e,n,l)}}function Ea(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,h=e,b=n,T=l,w=h.flags;switch(h.tag){case 0:case 11:case 15:Ea(c,h,b,T,r),Ol(8,h);break;case 23:break;case 22:var Y=h.stateNode;h.memoizedState!==null?Y._visibility&2?Ea(c,h,b,T,r):Vl(c,h):(Y._visibility|=2,Ea(c,h,b,T,r)),r&&w&2048&&Pc(h.alternate,h);break;case 24:Ea(c,h,b,T,r),r&&w&2048&&Qc(h.alternate,h);break;default:Ea(c,h,b,T,r)}e=e.sibling}}function Vl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:Vl(n,l),r&2048&&Pc(l.alternate,l);break;case 24:Vl(n,l),r&2048&&Qc(l.alternate,l);break;default:Vl(n,l)}e=e.sibling}}var Nl=8192;function Ma(t,e,n){if(t.subtreeFlags&Nl)for(t=t.child;t!==null;)iv(t,e,n),t=t.sibling}function iv(t,e,n){switch(t.tag){case 26:Ma(t,e,n),t.flags&Nl&&t.memoizedState!==null&&l5(n,Ie,t.memoizedState,t.memoizedProps);break;case 5:Ma(t,e,n);break;case 3:case 4:var l=Ie;Ie=Ar(t.stateNode.containerInfo),Ma(t,e,n),Ie=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Nl,Nl=16777216,Ma(t,e,n),Nl=l):Ma(t,e,n));break;default:Ma(t,e,n)}}function av(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ul(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ie=l,sv(l,t)}av(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lv(t),t=t.sibling}function lv(t){switch(t.tag){case 0:case 11:case 15:Ul(t),t.flags&2048&&Fn(9,t,t.return);break;case 3:Ul(t);break;case 12:Ul(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,dr(t)):Ul(t);break;default:Ul(t)}}function dr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ie=l,sv(l,t)}av(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Fn(8,e,e.return),dr(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,dr(e));break;default:dr(e)}t=t.sibling}}function sv(t,e){for(;ie!==null;){var n=ie;switch(n.tag){case 0:case 11:case 15:Fn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Sl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ie=l;else t:for(n=t;ie!==null;){l=ie;var r=l.sibling,c=l.return;if(J0(l),l===n){ie=null;break t}if(r!==null){r.return=c,ie=r;break t}ie=c}}}var SA={getCacheForType:function(t){var e=oe(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(Qt).controller.signal}},xA=typeof WeakMap=="function"?WeakMap:Map,At=0,Lt=null,vt=null,bt=0,Ct=0,Le=null,Jn=!1,Aa=!1,Zc=!1,Dn=0,qt=0,In=0,Bi=0,Fc=0,Oe=0,Ca=0,Hl=null,Te=null,Jc=!1,hr=0,rv=0,mr=1/0,pr=null,Wn=null,$t=0,$n=null,Da=null,Rn=0,Ic=0,Wc=null,ov=null,_l=0,$c=null;function Be(){return(At&2)!==0&&bt!==0?bt&-bt:k.T!==null?sf():Mp()}function uv(){if(Oe===0)if((bt&536870912)===0||xt){var t=Es;Es<<=1,(Es&3932160)===0&&(Es=262144),Oe=t}else Oe=536870912;return t=je.current,t!==null&&(t.flags|=32),Oe}function Ee(t,e,n){(t===Lt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(Ra(t,0),ti(t,bt,Oe,!1)),sl(t,n),((At&2)===0||t!==Lt)&&(t===Lt&&((At&2)===0&&(Bi|=n),qt===4&&ti(t,bt,Oe,!1)),rn(t))}function cv(t,e,n){if((At&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ll(t,e),r=l?MA(t,e):ef(t,e,!0),c=l;do{if(r===0){Aa&&!l&&ti(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!TA(n)){r=ef(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=Hl;var T=b.current.memoizedState.isDehydrated;if(T&&(Ra(b,h).flags|=256),h=ef(b,h,!1),h!==2){if(Zc&&!T){b.errorRecoveryDisabledLanes|=c,Bi|=c,r=4;break t}c=Te,Te=r,c!==null&&(Te===null?Te=c:Te.push.apply(Te,c))}r=h}if(c=!1,r!==2)continue}}if(r===1){Ra(t,0),ti(t,e,0,!0);break}t:{switch(l=t,c=r,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:ti(l,e,Oe,!Jn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=hr+300-le(),10<r)){if(ti(l,e,Oe,!Jn),As(l,0,!0)!==0)break t;Rn=e,l.timeoutHandle=kv(fv.bind(null,l,n,Te,pr,Jc,e,Oe,Bi,Ca,Jn,c,"Throttled",-0,0),r);break t}fv(l,n,Te,pr,Jc,e,Oe,Bi,Ca,Jn,c,null,-0,0)}}break}while(!0);rn(t)}function fv(t,e,n,l,r,c,h,b,T,w,Y,P,B,G){if(t.timeoutHandle=-1,P=e.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},iv(e,c,P);var $=(c&62914560)===c?hr-le():(c&4194048)===c?rv-le():0;if($=s5(P,$),$!==null){Rn=c,t.cancelPendingCommit=$(bv.bind(null,t,e,c,n,l,r,h,b,T,Y,P,null,B,G)),ti(t,c,h,!w);return}}bv(t,e,c,n,l,r,h,b,T)}function TA(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],c=r.getSnapshot;r=r.value;try{if(!Re(c(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ti(t,e,n,l){e&=~Fc,e&=~Bi,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var c=31-De(r),h=1<<c;l[c]=-1,r&=~h}n!==0&&xp(t,n,e)}function yr(){return(At&6)===0?(Gl(0),!1):!0}function tf(){if(vt!==null){if(Ct===0)var t=vt.return;else t=vt,vn=Ai=null,yc(t),ga=null,Tl=0,t=vt;for(;t!==null;)Y0(t.alternate,t),t=t.return;vt=null}}function Ra(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,YA(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Rn=0,tf(),Lt=t,vt=n=pn(t.current,null),bt=e,Ct=0,Le=null,Jn=!1,Aa=ll(t,e),Zc=!1,Ca=Oe=Fc=Bi=In=qt=0,Te=Hl=null,Jc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-De(l),c=1<<r;e|=t[r],l&=~c}return Dn=e,Us(),n}function dv(t,e){ht=null,k.H=jl,e===va||e===Ks?(e=Ry(),Ct=3):e===ac?(e=Ry(),Ct=4):Ct=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Le=e,vt===null&&(qt=1,lr(t,ke(e,t.current)))}function hv(){var t=je.current;return t===null?!0:(bt&4194048)===bt?Ke===null:(bt&62914560)===bt||(bt&536870912)!==0?t===Ke:!1}function mv(){var t=k.H;return k.H=jl,t===null?jl:t}function pv(){var t=k.A;return k.A=SA,t}function vr(){qt=4,Jn||(bt&4194048)!==bt&&je.current!==null||(Aa=!0),(In&134217727)===0&&(Bi&134217727)===0||Lt===null||ti(Lt,bt,Oe,!1)}function ef(t,e,n){var l=At;At|=2;var r=mv(),c=pv();(Lt!==t||bt!==e)&&(pr=null,Ra(t,e)),e=!1;var h=qt;t:do try{if(Ct!==0&&vt!==null){var b=vt,T=Le;switch(Ct){case 8:tf(),h=6;break t;case 3:case 2:case 9:case 6:je.current===null&&(e=!0);var w=Ct;if(Ct=0,Le=null,za(t,b,T,w),n&&Aa){h=0;break t}break;default:w=Ct,Ct=0,Le=null,za(t,b,T,w)}}EA(),h=qt;break}catch(Y){dv(t,Y)}while(!0);return e&&t.shellSuspendCounter++,vn=Ai=null,At=l,k.H=r,k.A=c,vt===null&&(Lt=null,bt=0,Us()),h}function EA(){for(;vt!==null;)yv(vt)}function MA(t,e){var n=At;At|=2;var l=mv(),r=pv();Lt!==t||bt!==e?(pr=null,mr=le()+500,Ra(t,e)):Aa=ll(t,e);t:do try{if(Ct!==0&&vt!==null){e=vt;var c=Le;e:switch(Ct){case 1:Ct=0,Le=null,za(t,e,c,1);break;case 2:case 9:if(Cy(c)){Ct=0,Le=null,vv(e);break}e=function(){Ct!==2&&Ct!==9||Lt!==t||(Ct=7),rn(t)},c.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Cy(c)?(Ct=0,Le=null,vv(e)):(Ct=0,Le=null,za(t,e,c,7));break;case 5:var h=null;switch(vt.tag){case 26:h=vt.memoizedState;case 5:case 27:var b=vt;if(h?ng(h):b.stateNode.complete){Ct=0,Le=null;var T=b.sibling;if(T!==null)vt=T;else{var w=b.return;w!==null?(vt=w,gr(w)):vt=null}break e}}Ct=0,Le=null,za(t,e,c,5);break;case 6:Ct=0,Le=null,za(t,e,c,6);break;case 8:tf(),qt=6;break t;default:throw Error(u(462))}}AA();break}catch(Y){dv(t,Y)}while(!0);return vn=Ai=null,k.H=l,k.A=r,At=n,vt!==null?0:(Lt=null,bt=0,Us(),qt)}function AA(){for(;vt!==null&&!Ss();)yv(vt)}function yv(t){var e=G0(t.alternate,t,Dn);t.memoizedProps=t.pendingProps,e===null?gr(t):vt=e}function vv(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=B0(n,e,e.pendingProps,e.type,void 0,bt);break;case 11:e=B0(n,e,e.pendingProps,e.type.render,e.ref,bt);break;case 5:yc(e);default:Y0(n,e),e=vt=py(e,Dn),e=G0(n,e,Dn)}t.memoizedProps=t.pendingProps,e===null?gr(t):vt=e}function za(t,e,n,l){vn=Ai=null,yc(e),ga=null,Tl=0;var r=e.return;try{if(hA(t,r,e,n,bt)){qt=1,lr(t,ke(n,t.current)),vt=null;return}}catch(c){if(r!==null)throw vt=r,c;qt=1,lr(t,ke(n,t.current)),vt=null;return}e.flags&32768?(xt||l===1?t=!0:Aa||(bt&536870912)!==0?t=!1:(Jn=t=!0,(l===2||l===9||l===3||l===6)&&(l=je.current,l!==null&&l.tag===13&&(l.flags|=16384))),gv(e,t)):gr(e)}function gr(t){var e=t;do{if((e.flags&32768)!==0){gv(e,Jn);return}t=e.return;var n=yA(e.alternate,e,Dn);if(n!==null){vt=n;return}if(e=e.sibling,e!==null){vt=e;return}vt=e=t}while(e!==null);qt===0&&(qt=5)}function gv(t,e){do{var n=vA(t.alternate,t);if(n!==null){n.flags&=32767,vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){vt=t;return}vt=t=n}while(t!==null);qt=6,vt=null}function bv(t,e,n,l,r,c,h,b,T){t.cancelPendingCommit=null;do br();while($t!==0);if((At&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=qu,aM(t,n,c,h,b,T),t===Lt&&(vt=Lt=null,bt=0),Da=e,$n=t,Rn=n,Ic=c,Wc=r,ov=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,zA(xs,function(){return Mv(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,r=Q.p,Q.p=2,h=At,At|=4;try{gA(t,e,n)}finally{At=h,Q.p=r,k.T=l}}$t=1,Sv(),xv(),Tv()}}function Sv(){if($t===1){$t=0;var t=$n,e=Da,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var l=Q.p;Q.p=2;var r=At;At|=4;try{tv(e,t);var c=mf,h=sy(t.containerInfo),b=c.focusedElem,T=c.selectionRange;if(h!==b&&b&&b.ownerDocument&&ly(b.ownerDocument.documentElement,b)){if(T!==null&&Hu(b)){var w=T.start,Y=T.end;if(Y===void 0&&(Y=w),"selectionStart"in b)b.selectionStart=w,b.selectionEnd=Math.min(Y,b.value.length);else{var P=b.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var G=B.getSelection(),$=b.textContent.length,st=Math.min(T.start,$),jt=T.end===void 0?st:Math.min(T.end,$);!G.extend&&st>jt&&(h=jt,jt=st,st=h);var R=ay(b,st),C=ay(b,jt);if(R&&C&&(G.rangeCount!==1||G.anchorNode!==R.node||G.anchorOffset!==R.offset||G.focusNode!==C.node||G.focusOffset!==C.offset)){var j=P.createRange();j.setStart(R.node,R.offset),G.removeAllRanges(),st>jt?(G.addRange(j),G.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),G.addRange(j))}}}}for(P=[],G=b;G=G.parentNode;)G.nodeType===1&&P.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var X=P[b];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}wr=!!hf,mf=hf=null}finally{At=r,Q.p=l,k.T=n}}t.current=e,$t=2}}function xv(){if($t===2){$t=0;var t=$n,e=Da,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var l=Q.p;Q.p=2;var r=At;At|=4;try{F0(t,e.alternate,e)}finally{At=r,Q.p=l,k.T=n}}$t=3}}function Tv(){if($t===4||$t===3){$t=0,pu();var t=$n,e=Da,n=Rn,l=ov;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,Da=$n=null,Ev(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Wn=null),bu(n),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(al,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=k.T,r=Q.p,Q.p=2,k.T=null;try{for(var c=t.onRecoverableError,h=0;h<l.length;h++){var b=l[h];c(b.value,{componentStack:b.stack})}}finally{k.T=e,Q.p=r}}(Rn&3)!==0&&br(),rn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===$c?_l++:(_l=0,$c=t):_l=0,Gl(0)}}function Ev(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Sl(e)))}function br(){return Sv(),xv(),Tv(),Mv()}function Mv(){if($t!==5)return!1;var t=$n,e=Ic;Ic=0;var n=bu(Rn),l=k.T,r=Q.p;try{Q.p=32>n?32:n,k.T=null,n=Wc,Wc=null;var c=$n,h=Rn;if($t=0,Da=$n=null,Rn=0,(At&6)!==0)throw Error(u(331));var b=At;if(At|=4,lv(c.current),nv(c,c.current,h,n),At=b,Gl(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(al,c)}catch{}return!0}finally{Q.p=r,k.T=l,Ev(t,e)}}function Av(t,e,n){e=ke(n,e),e=wc(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(sl(t,2),rn(t))}function Dt(t,e,n){if(t.tag===3)Av(t,t,n);else for(;e!==null;){if(e.tag===3){Av(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){t=ke(n,t),n=C0(2),l=Pn(e,n,2),l!==null&&(D0(n,l,e,t),sl(l,2),rn(l));break}}e=e.return}}function nf(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new xA;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Zc=!0,r.add(n),t=CA.bind(null,t,e,n),e.then(t,t))}function CA(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(bt&n)===n&&(qt===4||qt===3&&(bt&62914560)===bt&&300>le()-hr?(At&2)===0&&Ra(t,0):Fc|=n,Ca===bt&&(Ca=0)),rn(t)}function Cv(t,e){e===0&&(e=Sp()),t=Ti(t,e),t!==null&&(sl(t,e),rn(t))}function DA(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Cv(t,n)}function RA(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),Cv(t,n)}function zA(t,e){return yi(t,e)}var Sr=null,ja=null,af=!1,xr=!1,lf=!1,ei=0;function rn(t){t!==ja&&t.next===null&&(ja===null?Sr=ja=t:ja=ja.next=t),xr=!0,af||(af=!0,wA())}function Gl(t,e){if(!lf&&xr){lf=!0;do for(var n=!1,l=Sr;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var c=0;else{var h=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-De(42|t)+1)-1,c&=r&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,jv(l,c))}else c=bt,c=As(l,l===Lt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ll(l,c)||(n=!0,jv(l,c));l=l.next}while(n);lf=!1}}function jA(){Dv()}function Dv(){xr=af=!1;var t=0;ei!==0&&kA()&&(t=ei);for(var e=le(),n=null,l=Sr;l!==null;){var r=l.next,c=Rv(l,e);c===0?(l.next=null,n===null?Sr=r:n.next=r,r===null&&(ja=n)):(n=l,(t!==0||(c&3)!==0)&&(xr=!0)),l=r}$t!==0&&$t!==5||Gl(t),ei!==0&&(ei=0)}function Rv(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var h=31-De(c),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&l)!==0)&&(r[h]=iM(b,e)):T<=e&&(t.expiredLanes|=b),c&=~b}if(e=Lt,n=bt,n=As(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Ji(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ll(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ji(l),bu(n)){case 2:case 8:n=gp;break;case 32:n=xs;break;case 268435456:n=bp;break;default:n=xs}return l=zv.bind(null,t),n=yi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ji(l),t.callbackPriority=2,t.callbackNode=null,2}function zv(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(br()&&t.callbackNode!==n)return null;var l=bt;return l=As(t,t===Lt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(cv(t,l,e),Rv(t,le()),t.callbackNode!=null&&t.callbackNode===n?zv.bind(null,t):null)}function jv(t,e){if(br())return null;cv(t,e,!0)}function wA(){qA(function(){(At&6)!==0?yi(vp,jA):Dv()})}function sf(){if(ei===0){var t=pa;t===0&&(t=Ts,Ts<<=1,(Ts&261888)===0&&(Ts=256)),ei=t}return ei}function wv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:zs(""+t)}function Lv(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function LA(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var c=wv((r[ve]||null).action),h=l.submitter;h&&(e=(e=h[ve]||null)?wv(e.formAction):h.getAttribute("formAction"),e!==null&&(c=e,h=null));var b=new Os("action","action",null,l,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ei!==0){var T=h?Lv(r,h):new FormData(r);Ac(n,{pending:!0,data:T,method:r.method,action:c},null,T)}}else typeof c=="function"&&(b.preventDefault(),T=h?Lv(r,h):new FormData(r),Ac(n,{pending:!0,data:T,method:r.method,action:c},c,T))},currentTarget:r}]})}}for(var rf=0;rf<Yu.length;rf++){var of=Yu[rf],OA=of.toLowerCase(),BA=of[0].toUpperCase()+of.slice(1);Je(OA,"on"+BA)}Je(uy,"onAnimationEnd"),Je(cy,"onAnimationIteration"),Je(fy,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(JM,"onTransitionRun"),Je(IM,"onTransitionStart"),Je(WM,"onTransitionCancel"),Je(dy,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),VA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function Ov(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var h=l.length-1;0<=h;h--){var b=l[h],T=b.instance,w=b.currentTarget;if(b=b.listener,T!==c&&r.isPropagationStopped())break t;c=b,r.currentTarget=w;try{c(r)}catch(Y){Ns(Y)}r.currentTarget=null,c=T}else for(h=0;h<l.length;h++){if(b=l[h],T=b.instance,w=b.currentTarget,b=b.listener,T!==c&&r.isPropagationStopped())break t;c=b,r.currentTarget=w;try{c(r)}catch(Y){Ns(Y)}r.currentTarget=null,c=T}}}}function gt(t,e){var n=e[Su];n===void 0&&(n=e[Su]=new Set);var l=t+"__bubble";n.has(l)||(Bv(e,t,2,!1),n.add(l))}function uf(t,e,n){var l=0;e&&(l|=4),Bv(n,t,l,e)}var Tr="_reactListening"+Math.random().toString(36).slice(2);function cf(t){if(!t[Tr]){t[Tr]=!0,Dp.forEach(function(n){n!=="selectionchange"&&(VA.has(n)||uf(n,!1,t),uf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Tr]||(e[Tr]=!0,uf("selectionchange",!1,e))}}function Bv(t,e,n,l){switch(ug(e)){case 2:var r=u5;break;case 8:r=c5;break;default:r=Af}n=r.bind(null,e,n,t),r=void 0,!zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function ff(t,e,n,l,r){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var b=l.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=Wi(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=c=h;continue t}b=b.parentNode}}l=l.return}_p(function(){var w=c,Y=Du(n),P=[];t:{var B=hy.get(t);if(B!==void 0){var G=Os,$=t;switch(t){case"keypress":if(ws(n)===0)break t;case"keydown":case"keyup":G=RM;break;case"focusin":$="focus",G=Ou;break;case"focusout":$="blur",G=Ou;break;case"beforeblur":case"afterblur":G=Ou;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Yp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=yM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=wM;break;case uy:case cy:case fy:G=bM;break;case dy:G=OM;break;case"scroll":case"scrollend":G=mM;break;case"wheel":G=VM;break;case"copy":case"cut":case"paste":G=xM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Xp;break;case"toggle":case"beforetoggle":G=UM}var st=(e&4)!==0,jt=!st&&(t==="scroll"||t==="scrollend"),R=st?B!==null?B+"Capture":null:B;st=[];for(var C=w,j;C!==null;){var X=C;if(j=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||j===null||R===null||(X=ul(C,R),X!=null&&st.push(Yl(C,X,j))),jt)break;C=C.return}0<st.length&&(B=new G(B,$,null,n,Y),P.push({event:B,listeners:st}))}}if((e&7)===0){t:{if(B=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",B&&n!==Cu&&($=n.relatedTarget||n.fromElement)&&(Wi($)||$[Ii]))break t;if((G||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,G?($=n.relatedTarget||n.toElement,G=w,$=$?Wi($):null,$!==null&&(jt=f($),st=$.tag,$!==jt||st!==5&&st!==27&&st!==6)&&($=null)):(G=null,$=w),G!==$)){if(st=Yp,X="onMouseLeave",R="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(st=Xp,X="onPointerLeave",R="onPointerEnter",C="pointer"),jt=G==null?B:ol(G),j=$==null?B:ol($),B=new st(X,C+"leave",G,n,Y),B.target=jt,B.relatedTarget=j,X=null,Wi(Y)===w&&(st=new st(R,C+"enter",$,n,Y),st.target=j,st.relatedTarget=jt,X=st),jt=X,G&&$)e:{for(st=NA,R=G,C=$,j=0,X=R;X;X=st(X))j++;X=0;for(var at=C;at;at=st(at))X++;for(;0<j-X;)R=st(R),j--;for(;0<X-j;)C=st(C),X--;for(;j--;){if(R===C||C!==null&&R===C.alternate){st=R;break e}R=st(R),C=st(C)}st=null}else st=null;G!==null&&Vv(P,B,G,st,!1),$!==null&&jt!==null&&Vv(P,jt,$,st,!0)}}t:{if(B=w?ol(w):window,G=B.nodeName&&B.nodeName.toLowerCase(),G==="select"||G==="input"&&B.type==="file")var Et=Wp;else if(Jp(B))if($p)Et=QM;else{Et=KM;var et=XM}else G=B.nodeName,!G||G.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?w&&Au(w.elementType)&&(Et=Wp):Et=PM;if(Et&&(Et=Et(t,w))){Ip(P,Et,n,Y);break t}et&&et(t,B,w),t==="focusout"&&w&&B.type==="number"&&w.memoizedProps.value!=null&&Mu(B,"number",B.value)}switch(et=w?ol(w):window,t){case"focusin":(Jp(et)||et.contentEditable==="true")&&(ra=et,_u=w,vl=null);break;case"focusout":vl=_u=ra=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,ry(P,n,Y);break;case"selectionchange":if(FM)break;case"keydown":case"keyup":ry(P,n,Y)}var pt;if(Vu)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else sa?Zp(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Kp&&n.locale!=="ko"&&(sa||St!=="onCompositionStart"?St==="onCompositionEnd"&&sa&&(pt=Gp()):(_n=Y,ju="value"in _n?_n.value:_n.textContent,sa=!0)),et=Er(w,St),0<et.length&&(St=new qp(St,t,null,n,Y),P.push({event:St,listeners:et}),pt?St.data=pt:(pt=Fp(n),pt!==null&&(St.data=pt)))),(pt=_M?GM(t,n):kM(t,n))&&(St=Er(w,"onBeforeInput"),0<St.length&&(et=new qp("onBeforeInput","beforeinput",null,n,Y),P.push({event:et,listeners:St}),et.data=pt)),LA(P,t,w,n,Y)}Ov(P,e)})}function Yl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Er(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=ul(t,n),r!=null&&l.unshift(Yl(t,r,c)),r=ul(t,e),r!=null&&l.push(Yl(t,r,c))),t.tag===3)return l;t=t.return}return[]}function NA(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vv(t,e,n,l,r){for(var c=e._reactName,h=[];n!==null&&n!==l;){var b=n,T=b.alternate,w=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||w===null||(T=w,r?(w=ul(n,c),w!=null&&h.unshift(Yl(n,w,T))):r||(w=ul(n,c),w!=null&&h.push(Yl(n,w,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var UA=/\r\n?/g,HA=/\u0000|\uFFFD/g;function Nv(t){return(typeof t=="string"?t:""+t).replace(UA,`
9
+ `).replace(HA,"")}function Uv(t,e){return e=Nv(e),Nv(t)===e}function zt(t,e,n,l,r,c){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ia(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ia(t,""+l);break;case"className":Ds(t,"class",l);break;case"tabIndex":Ds(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ds(t,n,l);break;case"style":Up(t,l,c);break;case"data":if(e!=="object"){Ds(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=zs(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.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 c=="function"&&(n==="formAction"?(e!=="input"&&zt(t,e,"name",r.name,r,null),zt(t,e,"formEncType",r.formEncType,r,null),zt(t,e,"formMethod",r.formMethod,r,null),zt(t,e,"formTarget",r.formTarget,r,null)):(zt(t,e,"encType",r.encType,r,null),zt(t,e,"method",r.method,r,null),zt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=zs(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=hn);break;case"onScroll":l!=null&&gt("scroll",t);break;case"onScrollEnd":l!=null&&gt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=zs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":gt("beforetoggle",t),gt("toggle",t),Cs(t,"popover",l);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=dM.get(n)||n,Cs(t,n,l))}}function df(t,e,n,l,r,c){switch(n){case"style":Up(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ia(t,l):(typeof l=="number"||typeof l=="bigint")&&ia(t,""+l);break;case"onScroll":l!=null&&gt("scroll",t);break;case"onScrollEnd":l!=null&&gt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rp.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),c=t[ve]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,r),typeof l=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Cs(t,n,l)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var l=!1,r=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:zt(t,e,c,h,n,null)}}r&&zt(t,e,"srcSet",n.srcSet,n,null),l&&zt(t,e,"src",n.src,n,null);return;case"input":gt("invalid",t);var b=c=h=r=null,T=null,w=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":r=Y;break;case"type":h=Y;break;case"checked":T=Y;break;case"defaultChecked":w=Y;break;case"value":c=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,e));break;default:zt(t,e,l,Y,n,null)}}Op(t,c,b,T,w,h,r,!1);return;case"select":gt("invalid",t),l=h=c=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":c=b;break;case"defaultValue":h=b;break;case"multiple":l=b;default:zt(t,e,r,b,n,null)}e=c,n=h,t.multiple=!!l,e!=null?na(t,!!l,e,!1):n!=null&&na(t,!!l,n,!0);return;case"textarea":gt("invalid",t),c=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":l=b;break;case"defaultValue":r=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(u(91));break;default:zt(t,e,h,b,n,null)}Vp(t,l,r,c);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:zt(t,e,T,l,n,null)}return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(l=0;l<kl.length;l++)gt(kl[l],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in n)if(n.hasOwnProperty(w)&&(l=n[w],l!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:zt(t,e,w,l,n,null)}return;default:if(Au(e)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&df(t,e,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&zt(t,e,b,l,n,null))}function _A(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,h=null,b=null,T=null,w=null,Y=null;for(G in n){var P=n[G];if(n.hasOwnProperty(G)&&P!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(G)||zt(t,e,G,null,l,P)}}for(var B in l){var G=l[B];if(P=n[B],l.hasOwnProperty(B)&&(G!=null||P!=null))switch(B){case"type":c=G;break;case"name":r=G;break;case"checked":w=G;break;case"defaultChecked":Y=G;break;case"value":h=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,e));break;default:G!==P&&zt(t,e,B,G,l,P)}}Eu(t,h,b,T,w,Y,c,r);return;case"select":G=h=b=B=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":G=T;default:l.hasOwnProperty(c)||zt(t,e,c,null,l,T)}for(r in l)if(c=l[r],T=n[r],l.hasOwnProperty(r)&&(c!=null||T!=null))switch(r){case"value":B=c;break;case"defaultValue":b=c;break;case"multiple":h=c;default:c!==T&&zt(t,e,r,c,l,T)}e=b,n=h,l=G,B!=null?na(t,!!n,B,!1):!!l!=!!n&&(e!=null?na(t,!!n,e,!0):na(t,!!n,n?[]:"",!1));return;case"textarea":G=B=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:zt(t,e,b,null,l,r)}for(h in l)if(r=l[h],c=n[h],l.hasOwnProperty(h)&&(r!=null||c!=null))switch(h){case"value":B=r;break;case"defaultValue":G=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==c&&zt(t,e,h,r,l,c)}Bp(t,B,G);return;case"option":for(var $ in n)if(B=n[$],n.hasOwnProperty($)&&B!=null&&!l.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:zt(t,e,$,null,l,B)}for(T in l)if(B=l[T],G=n[T],l.hasOwnProperty(T)&&B!==G&&(B!=null||G!=null))switch(T){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:zt(t,e,T,B,l,G)}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 st in n)B=n[st],n.hasOwnProperty(st)&&B!=null&&!l.hasOwnProperty(st)&&zt(t,e,st,null,l,B);for(w in l)if(B=l[w],G=n[w],l.hasOwnProperty(w)&&B!==G&&(B!=null||G!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:zt(t,e,w,B,l,G)}return;default:if(Au(e)){for(var jt in n)B=n[jt],n.hasOwnProperty(jt)&&B!==void 0&&!l.hasOwnProperty(jt)&&df(t,e,jt,void 0,l,B);for(Y in l)B=l[Y],G=n[Y],!l.hasOwnProperty(Y)||B===G||B===void 0&&G===void 0||df(t,e,Y,B,l,G);return}}for(var R in n)B=n[R],n.hasOwnProperty(R)&&B!=null&&!l.hasOwnProperty(R)&&zt(t,e,R,null,l,B);for(P in l)B=l[P],G=n[P],!l.hasOwnProperty(P)||B===G||B==null&&G==null||zt(t,e,P,B,l,G)}function Hv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GA(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],c=r.transferSize,h=r.initiatorType,b=r.duration;if(c&&b&&Hv(h)){for(h=0,b=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],w=T.startTime;if(w>b)break;var Y=T.transferSize,P=T.initiatorType;Y&&Hv(P)&&(T=T.responseEnd,h+=Y*(T<b?1:(b-w)/(T-w)))}if(--l,e+=8*(c+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var hf=null,mf=null;function Mr(t){return t.nodeType===9?t:t.ownerDocument}function _v(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gv(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function pf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var yf=null;function kA(){var t=window.event;return t&&t.type==="popstate"?t===yf?!1:(yf=t,!0):(yf=null,!1)}var kv=typeof setTimeout=="function"?setTimeout:void 0,YA=typeof clearTimeout=="function"?clearTimeout:void 0,Yv=typeof Promise=="function"?Promise:void 0,qA=typeof queueMicrotask=="function"?queueMicrotask:typeof Yv<"u"?function(t){return Yv.resolve(null).then(t).catch(XA)}:kv;function XA(t){setTimeout(function(){throw t})}function ni(t){return t==="head"}function qv(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),Ba(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ql(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ql(n);for(var c=n.firstChild;c;){var h=c.nextSibling,b=c.nodeName;c[rl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&ql(t.ownerDocument.body);n=r}while(n);Ba(e)}function Xv(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function vf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vf(n),xu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function KA(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[rl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Pe(t.nextSibling),t===null)break}return null}function PA(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Pe(t.nextSibling),t===null))return null;return t}function Kv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Pe(t.nextSibling),t===null))return null;return t}function gf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function QA(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Pe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sf=null;function Pv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Pe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Qv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Zv(t,e,n){switch(e=Mr(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function ql(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xu(t)}var Qe=new Map,Fv=new Set;function Ar(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zn=Q.d;Q.d={f:ZA,r:FA,D:JA,C:IA,L:WA,m:$A,X:e5,S:t5,M:n5};function ZA(){var t=zn.f(),e=yr();return t||e}function FA(t){var e=$i(t);e!==null&&e.tag===5&&e.type==="form"?d0(e):zn.r(t)}var wa=typeof document>"u"?null:document;function Jv(t,e,n){var l=wa;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Fv.has(r)||(Fv.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function JA(t){zn.D(t),Jv("dns-prefetch",t,null)}function IA(t,e){zn.C(t,e),Jv("preconnect",t,e)}function WA(t,e,n){zn.L(t,e,n);var l=wa;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_e(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_e(n.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var c=r;switch(e){case"style":c=La(t);break;case"script":c=Oa(t)}Qe.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Qe.set(c,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Xl(c))||e==="script"&&l.querySelector(Kl(c))||(e=l.createElement("link"),ce(e,"link",t),ne(e),l.head.appendChild(e)))}}function $A(t,e){zn.m(t,e);var n=wa;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',c=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Oa(t)}if(!Qe.has(c)&&(t=g({rel:"modulepreload",href:t},e),Qe.set(c,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kl(c)))return}l=n.createElement("link"),ce(l,"link",t),ne(l),n.head.appendChild(l)}}}function t5(t,e,n){zn.S(t,e,n);var l=wa;if(l&&t){var r=ta(l).hoistableStyles,c=La(t);e=e||"default";var h=r.get(c);if(!h){var b={loading:0,preload:null};if(h=l.querySelector(Xl(c)))b.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Qe.get(c))&&xf(t,n);var T=h=l.createElement("link");ne(T),ce(T,"link",t),T._p=new Promise(function(w,Y){T.onload=w,T.onerror=Y}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Cr(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(c,h)}}}function e5(t,e){zn.X(t,e);var n=wa;if(n&&t){var l=ta(n).hoistableScripts,r=Oa(t),c=l.get(r);c||(c=n.querySelector(Kl(r)),c||(t=g({src:t,async:!0},e),(e=Qe.get(r))&&Tf(t,e),c=n.createElement("script"),ne(c),ce(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function n5(t,e){zn.M(t,e);var n=wa;if(n&&t){var l=ta(n).hoistableScripts,r=Oa(t),c=l.get(r);c||(c=n.querySelector(Kl(r)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Qe.get(r))&&Tf(t,e),c=n.createElement("script"),ne(c),ce(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function Iv(t,e,n,l){var r=(r=mt.current)?Ar(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=La(n.href),n=ta(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=La(n.href);var c=ta(r).hoistableStyles,h=c.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,h),(c=r.querySelector(Xl(t)))&&!c._p&&(h.instance=c,h.state.loading=5),Qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qe.set(t,n),c||i5(r,t,n,h.state))),e&&l===null)throw Error(u(528,""));return h}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Oa(n),n=ta(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function La(t){return'href="'+_e(t)+'"'}function Xl(t){return'link[rel="stylesheet"]['+t+"]"}function Wv(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function i5(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ce(e,"link",n),ne(e),t.head.appendChild(e))}function Oa(t){return'[src="'+_e(t)+'"]'}function Kl(t){return"script[async]"+t}function $v(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(n.href)+'"]');if(l)return e.instance=l,ne(l),l;var r=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ne(l),ce(l,"style",r),Cr(l,n.precedence,t),e.instance=l;case"stylesheet":r=La(n.href);var c=t.querySelector(Xl(r));if(c)return e.state.loading|=4,e.instance=c,ne(c),c;l=Wv(n),(r=Qe.get(r))&&xf(l,r),c=(t.ownerDocument||t).createElement("link"),ne(c);var h=c;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(c,"link",l),e.state.loading|=4,Cr(c,n.precedence,t),e.instance=c;case"script":return c=Oa(n.src),(r=t.querySelector(Kl(c)))?(e.instance=r,ne(r),r):(l=n,(r=Qe.get(c))&&(l=g({},n),Tf(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ne(r),ce(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Cr(l,n.precedence,t));return e.instance}function Cr(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,c=r,h=0;h<l.length;h++){var b=l[h];if(b.dataset.precedence===e)c=b;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Dr=null;function tg(t,e,n){if(Dr===null){var l=new Map,r=Dr=new Map;r.set(n,l)}else r=Dr,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var c=n[r];if(!(c[rl]||c[se]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(e)||"";h=t+h;var b=l.get(h);b?b.push(c):l.set(h,[c])}}return l}function eg(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function a5(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function ng(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function l5(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=La(l.href),c=e.querySelector(Xl(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Rr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,ne(c);return}c=e.ownerDocument||e,l=Wv(l),(r=Qe.get(r))&&xf(l,r),c=c.createElement("link"),ne(c);var h=c;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ce(c,"link",l),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Rr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ef=0;function s5(t,e){return t.stylesheets&&t.count===0&&jr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&jr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Ef===0&&(Ef=62500*GA());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&jr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Ef?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var zr=null;function jr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,zr=new Map,e.forEach(r5,t),zr=null,Rr.call(t))}function r5(t,e){if(!(e.state.loading&4)){var n=zr.get(t);if(n)var l=n.get(null);else{n=new Map,zr.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var h=r[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),c=n.get(h)||l,c===l&&n.set(null,r),n.set(h,r),this.count++,l=Rr.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Pl={$$typeof:F,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function o5(t,e,n,l,r,c,h,b,T){this.tag=1,this.containerInfo=t,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=vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.hiddenUpdates=vu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ig(t,e,n,l,r,c,h,b,T,w,Y,P){return t=new o5(t,e,n,h,T,w,Y,P,b),e=1,c===!0&&(e|=24),c=ze(3,null,null,e),t.current=c,c.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},lc(c),t}function ag(t){return t?(t=ca,t):ca}function lg(t,e,n,l,r,c){r=ag(r),l.context===null?l.context=r:l.pendingContext=r,l=Kn(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Pn(t,l,e),n!==null&&(Ee(n,t,e),Ml(n,t,e))}function sg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mf(t,e){sg(t,e),(t=t.alternate)&&sg(t,e)}function rg(t){if(t.tag===13||t.tag===31){var e=Ti(t,67108864);e!==null&&Ee(e,t,67108864),Mf(t,67108864)}}function og(t){if(t.tag===13||t.tag===31){var e=Be();e=gu(e);var n=Ti(t,e);n!==null&&Ee(n,t,e),Mf(t,e)}}var wr=!0;function u5(t,e,n,l){var r=k.T;k.T=null;var c=Q.p;try{Q.p=2,Af(t,e,n,l)}finally{Q.p=c,k.T=r}}function c5(t,e,n,l){var r=k.T;k.T=null;var c=Q.p;try{Q.p=8,Af(t,e,n,l)}finally{Q.p=c,k.T=r}}function Af(t,e,n,l){if(wr){var r=Cf(l);if(r===null)ff(t,e,l,Lr,n),cg(t,l);else if(d5(r,t,e,n,l))l.stopPropagation();else if(cg(t,l),e&4&&-1<f5.indexOf(t)){for(;r!==null;){var c=$i(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=vi(c.pendingLanes);if(h!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-De(h);b.entanglements[1]|=T,h&=~T}rn(c),(At&6)===0&&(mr=le()+500,Gl(0))}}break;case 31:case 13:b=Ti(c,2),b!==null&&Ee(b,c,2),yr(),Mf(c,2)}if(c=Cf(l),c===null&&ff(t,e,l,Lr,n),c===r)break;r=c}r!==null&&l.stopPropagation()}else ff(t,e,l,null,n)}}function Cf(t){return t=Du(t),Df(t)}var Lr=null;function Df(t){if(Lr=null,t=Wi(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=y(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Lr=t,null}function ug(t){switch(t){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(yu()){case vp:return 2;case gp:return 8;case xs:case IE:return 32;case bp:return 268435456;default:return 32}default:return 32}}var Rf=!1,ii=null,ai=null,li=null,Ql=new Map,Zl=new Map,si=[],f5="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 cg(t,e){switch(t){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Ql.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(e.pointerId)}}function Fl(t,e,n,l,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[r]},e!==null&&(e=$i(e),e!==null&&rg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function d5(t,e,n,l,r){switch(e){case"focusin":return ii=Fl(ii,t,e,n,l,r),!0;case"dragenter":return ai=Fl(ai,t,e,n,l,r),!0;case"mouseover":return li=Fl(li,t,e,n,l,r),!0;case"pointerover":var c=r.pointerId;return Ql.set(c,Fl(Ql.get(c)||null,t,e,n,l,r)),!0;case"gotpointercapture":return c=r.pointerId,Zl.set(c,Fl(Zl.get(c)||null,t,e,n,l,r)),!0}return!1}function fg(t){var e=Wi(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Ap(t.priority,function(){og(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,Ap(t.priority,function(){og(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Or(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Cf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Cu=l,n.target.dispatchEvent(l),Cu=null}else return e=$i(n),e!==null&&rg(e),t.blockedOn=n,!1;e.shift()}return!0}function dg(t,e,n){Or(t)&&n.delete(e)}function h5(){Rf=!1,ii!==null&&Or(ii)&&(ii=null),ai!==null&&Or(ai)&&(ai=null),li!==null&&Or(li)&&(li=null),Ql.forEach(dg),Zl.forEach(dg)}function Br(t,e){t.blockedOn===e&&(t.blockedOn=null,Rf||(Rf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,h5)))}var Vr=null;function hg(t){Vr!==t&&(Vr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Vr===t&&(Vr=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Df(l||n)===null)continue;break}var c=$i(n);c!==null&&(t.splice(e,3),e-=3,Ac(c,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function Ba(t){function e(T){return Br(T,t)}ii!==null&&Br(ii,t),ai!==null&&Br(ai,t),li!==null&&Br(li,t),Ql.forEach(e),Zl.forEach(e);for(var n=0;n<si.length;n++){var l=si[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<si.length&&(n=si[0],n.blockedOn===null);)fg(n),n.blockedOn===null&&si.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],c=n[l+1],h=r[ve]||null;if(typeof c=="function")h||hg(n);else if(h){var b=null;if(c&&c.hasAttribute("formAction")){if(r=c,h=c[ve]||null)b=h.formAction;else if(Df(r)!==null)continue}else b=h.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),hg(n)}}}function mg(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function zf(t){this._internalRoot=t}Nr.prototype.render=zf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=Be();lg(n,l,t,e,null,null)},Nr.prototype.unmount=zf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;lg(t.current,2,null,t,null,null),yr(),e[Ii]=null}};function Nr(t){this._internalRoot=t}Nr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Mp();t={blockedOn:null,target:t,priority:e};for(var n=0;n<si.length&&e!==0&&e<si[n].priority;n++);si.splice(n,0,t),n===0&&fg(t)}};var pg=s.version;if(pg!=="19.2.1")throw Error(u(527,pg,"19.2.1"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=v(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var m5={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{al=Ur.inject(m5),Ce=Ur}catch{}}return Na.createRoot=function(t,e){if(!d(t))throw Error(u(299));var n=!1,l="",r=T0,c=E0,h=M0;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=ig(t,1,!1,null,null,n,l,null,r,c,h,mg),t[Ii]=e.current,cf(t),new zf(e)},Na.hydrateRoot=function(t,e,n){if(!d(t))throw Error(u(299));var l=!1,r="",c=T0,h=E0,b=M0,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=ig(t,1,!0,e,n??null,l,r,T,c,h,b,mg),e.context=ag(null),n=e.current,l=Be(),l=gu(l),r=Kn(l),r.callback=null,Pn(n,r,l),n=l,e.current.lanes=n,sl(e,n),rn(e),t[Ii]=e.current,cf(t),new Nr(e)},Na.version="19.2.1",Na}var _f;function Mg(){if(_f)return _r.exports;_f=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),_r.exports=Eg(),_r.exports}var Ag=Mg();const Cg=Vi(Ag);var A=qr();const oi=Vi(A),Dg={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},Rg={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},zg={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},Gf={en:Dg,ko:Rg,ja:zg},jg=()=>typeof navigator<"u"&&typeof navigator.language<"u";function wg(i){const a=i.split("-")[0];return a in Gf?a:"en"}function kf(i){let a="en";i?a=i:jg()&&(a=navigator.language);const s=wg(a);return Gf[s]}kf();const Lg={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},Og={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let Me={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},jn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const Bg=new Date().getTime(),Yf=()=>{const i=new Date,a=d=>String(d).padStart(2,"0"),s=`${i.getFullYear()}-${a(i.getMonth()+1)}-${a(i.getDate())} ${a(i.getHours())}:${a(i.getMinutes())}:${a(i.getSeconds())}`,o=Math.floor(i.getTime()/1e3),u=new Date().getTime()-Bg;return{logDate:s,logDateUnix:o,thisSec:u}};function Vg(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Ng(i,a){Object.entries(a).forEach(([s,o])=>{Vg(o)?(i[s]||(i[s]={}),Object.entries(o).forEach(([u,d])=>{d!=null&&(i[s][u]=d)})):o!=null&&(i[s]=o)})}function Ug(i){const a=[];return i?.r1&&a.push(i.r1),i?.r2&&a.push(i.r2),i?.r3&&a.push(i.r3),a.join(" ")}function Hg(i){try{const a=jn.syncResult?.geoLocation;a&&(i.address=Ug(a),i.isp=a.net||"",i.ip=jn.syncResult?.ip||"",i.nation=a.country||"")}catch{}}const _g=async i=>{if(!i)return;const{platform:a,stage:s}=jn,o=Og[a][s].log;try{const u=await(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:i})})).json();jn.sync=u.result?.sync||!1,jn.syncResult=u.result||{};const{logDate:d,logDateUnix:f}=Yf();return Me.extra.logDate=d,Me.extra.logDateUnix=f,jn.syncResult?.geoLocation&&Hg(Me.extra),u}catch(u){return console.error("MA config initialization failed:",u),null}};async function Gg(i,a,s,o,u){jn.platform=i,jn.stage=a,Ng(Me,s),o&&(Me.extra.vpePackageId=o),u&&(Me.extra.vpeKey=u),Me.extra.nation?Me.browser.country=Lg[Me.extra.nation]||"Korea, Republic of":Me.browser.country="Korea, Republic of";const{logDate:d,logDateUnix:f}=Yf();Me.extra.logDate=d,Me.extra.logDateUnix=f,Me.extra.created_at=f}const kg=(i={})=>{const a={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},s={...a,...i};return i.controlBtn&&(s.controlBtn={...a.controlBtn,...i.controlBtn}),i.watermarkConfig&&(s.watermarkConfig={...a.watermarkConfig,...i.watermarkConfig}),i.captionStyle&&(s.captionStyle={...a.captionStyle,...i.captionStyle}),s.objectFit==="fill"&&(s.objectFit="stretch"),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},Yg={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let qf=[];const qg=i=>{try{return atob(i)}catch(a){return console.error("Base64 decoding failed:",a),""}};class Xg{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:a,appId:s,platform:o,stage:u,isDev:d=!1,language:f}){this.accessKey=a,this.appId=s||location.origin,this.platform=o,this.stage=u,this.isDev=d,this.translator=kf(f),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const a=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[a[0]],this[a[1]]].some(u=>!u))return console.warn(s),{error:this.setErrorRun(a[2])};const o=u=>(this.serverConfig=u,this.playerInfo=this.createPlayerInfo(u),this.playerInfo);try{const u=await this.performKeyCheck();if(u.code!==200)return{error:this.setErrorRun(a[3])};const d=o(u);return await Gg(this.platform,this.stage,d,this.appId,this.accessKey),await _g(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(u){return console.error("VPE SDK Initialization failed:",u),{error:this.setErrorRun(a[4])}}}async performKeyCheck(){const a=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],s=this.isDev?a[0]:"",o=qg(Yg[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((f,m,y)=>(f[m]=[this.accessKey,this.appId][y],f),{})),d=await fetch(o,{method:a[6],headers:{[a[2]]:a[3]},body:u});if(!d.ok)throw new Error(["API","Error:",d.status,d.statusText].join(" "));return d.json()}getBrowserInfo(){const a=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(a)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(a)&&!a.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(a)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(a)&&a.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(a){const[s,o]=a.result.name.split("|"),u=navigator.connection||navigator.mozConnection||navigator.webkitConnection,d=this.getBrowserInfo(),f=navigator.userAgentData;return{cid:a.result.cid,player_name:s,player_version:o,pricing:a.result.pricing,maUse:a.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:u?.effectiveType??"unknown",downlink:u?.downlink??null,rtt:u?.rtt??null,save_data:u?.saveData??!1},device:{platform:f?.platform??"Unknown",mobile:f?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:o,device:f?.platform??"Unknown",os:f?.platform??"Unknown",osOrigin:f?.platform??"Unknown",osVersion:f?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:d.origin,browserOrigin:d.origin,browserVersion:d.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${f?.platform??"Unknown"}&${f?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(a){const s=a.slice(-2),o=this.translator.error[s]||this.translator.error["01"],u={errorCode:a,errorMessage:o};return this.errorState=u,console.error("ncplayer : ",u),u}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){const s=kg(this.serverConfig.result?.options?.options),o={...s,...a??{}};return a?.controlBtn&&(o.controlBtn={...s.controlBtn,...a.controlBtn}),a?.watermarkConfig&&(o.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),o.playlist&&!Array.isArray(o.playlist)&&(o.playlist=[{file:o.playlist}]),qf=o.playlist||[],o}getPlaylist(){return qf||[]}$t(a){const s=a.split(".");let o=this.translator;for(const u of s)if(o&&typeof o=="object"&&u in o)o=o[u];else return a;return typeof o=="string"?o:a}}const Kr=new Map,Xf=A.createContext(null);let Kf=0;function Kg(i,a){if(Kr.has(i))return Kr.get(i);const o={value:typeof a=="function"?a():a,listeners:new Set};return Kr.set(i,o),o}function Pg({scopeId:i,children:a}){const s=A.useRef(null);s.current||(Kf+=1,s.current=`sdk-${Kf}`);const o=i??s.current;return A.createElement(Xf.Provider,{value:o},a)}function Qg(){return A.useContext(Xf)}function Pf(i,a){const s=Qg(),o=s?`${s}:${i}`:i,u=Kg(o,a),d=v=>(u.listeners.add(v),()=>u.listeners.delete(v)),f=()=>u.value,m=()=>u.value,y=A.useCallback(v=>{u.value=typeof v=="function"?v(u.value):v,u.listeners.forEach(S=>S())},[u]);return[A.useSyncExternalStore(d,f,m),y]}const Pr=new Map,Qf=A.createContext(null);let Zf=0;function Zg(i,a){if(Pr.has(i))return Pr.get(i);const o={value:typeof a=="function"?a():a,listeners:new Set};return Pr.set(i,o),o}function Fg({scopeId:i,children:a}){const s=A.useRef(null);s.current||(Zf+=1,s.current=`vpe-${Zf}`);const o=i??s.current;return A.createElement(Qf.Provider,{value:o},a)}function Jg(){return A.useContext(Qf)}function Ff(i,a){const s=Jg(),o=s?`${s}:${i}`:i,u=Zg(o,a),d=v=>(u.listeners.add(v),()=>u.listeners.delete(v)),f=()=>u.value,m=()=>u.value,y=A.useCallback(v=>{u.value=typeof v=="function"?v(u.value):v,u.listeners.forEach(S=>S())},[u]);return[A.useSyncExternalStore(d,f,m),y]}const Ig="playerState",Wg={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isHd:!1,is4k:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,isSeekOverlayVisible:!1,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function Ut(){const[i,a]=Ff(Ig,Wg),s=A.useCallback(o=>{a(u=>{const d=typeof o=="function"?o(u):o,f={...u,...d},m=Object.keys(d);for(const y of m)if(!Object.is(u[y],f[y]))return f;return u})},[a]);return[i,s]}const $g="playerController",t1={videoEl:null,hls:null,dash:null};function It(){const[i,a]=Ff($g,t1),[s,o]=Ut(),u=A.useCallback(U=>{a(K=>({...K,videoEl:U}))},[a]),d=A.useCallback(U=>{a(K=>({...K,hls:U}))},[a]),f=A.useCallback(U=>{a(K=>({...K,dash:U}))},[a]),m=A.useCallback(()=>{o({isUserTouch:!0})},[o]),y=A.useCallback(()=>{const U=i.videoEl;U&&U.paused&&U.play()},[i.videoEl]),p=A.useCallback(()=>{const U=i.videoEl;U&&(U.paused||U.pause())},[i.videoEl]),v=A.useCallback(U=>{const K=i.videoEl;if(!K||Number.isNaN(U))return;const L=Math.max(0,Math.min(U,K.duration||U));K.currentTime=L,o({currentTime:L})},[o,i.videoEl]),S=A.useCallback(U=>{const K=i.videoEl;if(!K||Number.isNaN(U))return;const L=Math.max(0,Math.min(100,U));K.volume=L/100,K.muted=L===0},[i.videoEl]),g=A.useCallback(U=>{const K=i.videoEl;K&&(K.muted=U)},[i.videoEl]),D=A.useCallback(U=>{const K=i.videoEl;if(!K)return;const L=K.textTracks;if(!L||L.length===0)return;const H=Math.max(0,Math.min(s.subTitleIdx??0,L.length-1));for(let tt=0;tt<L.length;tt+=1)L[tt].mode=U&&tt===H?"showing":"disabled";o({isSubtitle:U})},[s.subTitleIdx,o,i.videoEl]),O=A.useCallback(()=>{const U=i.videoEl;if(!U)return;const K=U.textTracks;if(!K||K.length===0){o({isSubtitle:!1});return}let L=!1;for(let H=0;H<K.length;H+=1)if(K[H].mode==="showing"){L=!0;break}L?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),D(!L)},[o,D,i.videoEl]),z=A.useCallback(U=>{const K=i.videoEl;if(!K)return;const L=Array.from(K.querySelectorAll("track")),H=K.textTracks;if((!H||H.length===0)&&L.length===0){o({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const tt=L.length>0?L.length-1:H.length-1,lt=Math.max(0,Math.min(U,tt));if(L.length>0)L.forEach((ot,I)=>{ot.track&&(ot.track.mode=I===lt?"showing":"disabled")});else for(let ot=0;ot<H.length;ot+=1)H[ot].mode=ot===lt?"showing":"disabled";o({isSubtitle:!0,subTitleIdx:lt}),localStorage.setItem("vpeSubtitleEnabled","Y")},[o,i.videoEl]),N=A.useCallback(()=>{const U=i.videoEl;U&&(U.muted=!U.muted)},[i.videoEl]),M=A.useCallback(()=>{const U=i.videoEl;U&&(U.paused?y():p())},[p,y,i.videoEl]),V=A.useCallback(U=>{const K=i.hls,L=i.dash;if(!K&&!L)return;if(K){if(U==="auto"){K.currentLevel=-1,o({currentLevel:-1,isAutoLevel:!0});return}K.currentLevel=U,o({currentLevel:U,isAutoLevel:!1});return}const H=U==="auto"||U===-1;L?.setAutoSwitchQualityFor&&L.setAutoSwitchQualityFor("video",H),!H&&L?.setQualityFor&&L.setQualityFor("video",U),o({currentLevel:H?-1:U,isAutoLevel:H})},[o,i.dash,i.hls]),_=A.useCallback(U=>{const K=i.videoEl;K&&(K.playbackRate=U)},[i.videoEl]),F=A.useCallback(async()=>{const U=i.videoEl;if(!U||typeof document>"u")return;const K=document;if(K.pictureInPictureElement){typeof K.exitPictureInPicture=="function"&&await K.exitPictureInPicture();return}const L=U.requestPictureInPicture;typeof L=="function"&&await L.call(U)},[i.videoEl]);return{videoEl:i.videoEl,hls:i.hls,dash:i.dash,setVideoElement:u,setHlsInstance:d,setDashInstance:f,play:y,pause:p,seekTo:v,setVolume:S,setMuted:g,setSubtitleEnabled:D,toggleSubtitle:O,toggleMute:N,togglePlay:M,useTouch:m,playBackRate:_,selectSubTitle:z,selectQualityLevel:V,togglePictureInPicture:F}}function Qr(i,a,s=!1,o=!0){A.useEffect(()=>{const u=i.current;if(!u)return;const d=typeof document>"u"?null:document,f=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},m=()=>{a({isPlaying:!1})},y=()=>{s||Math.round(u.currentTime)%1==0&&a({currentTime:u.currentTime,duration:u.duration})},p=()=>{if(u.buffered.length>0){const K=u.buffered.start(0),L=u.buffered.end(u.buffered.length-1);a({buffered:L,bufferedStart:K,bufferedEnd:L})}},v=()=>{const K=u.videoWidth||0,L=u.videoHeight||0;a({isHd:K>=1280,is4k:L>=2160,videoWidth:K,videoHeight:L})},S=()=>{a({isEnded:!0})},g=()=>{a({isSeeked:!0})},D=()=>{setTimeout(()=>{a({isSeeked:!1})},200)},O=()=>{a({isMuted:u.muted,isVolume:Math.round(u.volume*100)})},z=()=>{a({isLoading:!0,isWaiting:!0})},N=()=>{a({isLoading:!1}),v()},M=()=>{a({isLoading:!1}),v()},V=()=>{a({isWaiting:!0})},_=()=>{a({isWaiting:!1,isLoading:!1})},F=()=>{a({isWaiting:!0})},U=()=>{!d||!o||d.hidden&&!u.paused&&u.pause()};return u.addEventListener("play",f),u.addEventListener("pause",m),u.addEventListener("timeupdate",y),u.addEventListener("ended",S),u.addEventListener("progress",p),u.addEventListener("seeking",g),u.addEventListener("seeked",D),u.addEventListener("volumechange",O),u.addEventListener("loadstart",z),u.addEventListener("loadedmetadata",N),u.addEventListener("loadeddata",M),u.addEventListener("resize",v),u.addEventListener("waiting",V),u.addEventListener("playing",_),u.addEventListener("stalled",F),d?.addEventListener("visibilitychange",U),O(),()=>{u.removeEventListener("play",f),u.removeEventListener("pause",m),u.removeEventListener("timeupdate",y),u.removeEventListener("ended",S),u.removeEventListener("progress",p),u.removeEventListener("seeking",g),u.removeEventListener("seeked",D),u.removeEventListener("volumechange",O),u.removeEventListener("loadstart",z),u.removeEventListener("loadedmetadata",N),u.removeEventListener("loadeddata",M),u.removeEventListener("resize",v),u.removeEventListener("waiting",V),u.removeEventListener("playing",_),u.removeEventListener("stalled",F),d?.removeEventListener("visibilitychange",U)}},[o,s,a,i])}const e1=3,n1=3e3;function i1(i){const a=A.useRef(null),s=A.useRef(0),o=A.useRef(null),[u,d]=Ut(),{setVideoElement:f,setHlsInstance:m}=It(),y=i.hlsLib,p=i.options;return A.useEffect(()=>{const v=a.current,S=i?.src?.file;if(!(!v||!S)){if(y?.isSupported?.()){const g=new y({lowLatencyMode:p.lowLatencyMode,liveSyncDuration:p.lowLatencyMode?3:5,backBufferLength:p.lowLatencyMode?30:90,startPosition:-1});m(g),g.attachMedia(v),g.on(y.Events.MEDIA_ATTACHED,()=>{g.loadSource(S)});const D=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:e1,O=typeof p?.retry?.interval=="number"?p.retry.interval:n1,z=N=>{if(typeof N?.details?.live=="boolean"){const M=N.details.live,V=N.details.totalduration,_=M&&typeof V=="number"&&Number.isFinite(V)&&V>0;d({isLive:M,isDvr:_})}};return g.on(y.Events.MANIFEST_PARSED,(N,M)=>{s.current=0,z(M);const V=(g.levels??[]).map((_,F)=>({index:F,width:_.width,height:_.height,bitrate:_.bitrate,name:_.name}));d({levels:V,currentLevel:g.currentLevel,isAutoLevel:g.autoLevelEnabled})}),g.on(y.Events.LEVEL_LOADED,(N,M)=>{s.current=0,z(M)}),g.on(y.Events.LEVEL_SWITCHED,(N,M)=>{d({currentLevel:M.level,isAutoLevel:g.autoLevelEnabled})}),g.on(y.Events.ERROR,(N,M)=>{if(M?.fatal){if(s.current<D){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,M?.type===y.ErrorTypes.MEDIA_ERROR){g.recoverMediaError();return}g.stopLoad(),g.loadSource(S),g.startLoad()},O);return}console.log("HLS 재시도 횟수 초과"),i.onError&&i.onError({evt:N,data:M}),g.destroy()}}),()=>{o.current&&(clearTimeout(o.current),o.current=null),m(null),g.destroy()}}v.src=S}},[y,i?.src?.file,i.onError,m,d]),A.useEffect(()=>{const v=a.current;if(!v||y?.isSupported?.())return;const S=()=>{const g=v.duration,D=!Number.isFinite(g)||g===1/0,O=D?Number.isFinite(g)&&g>0:!1;d({isLive:D,isDvr:O})};return v.addEventListener("loadedmetadata",S),v.addEventListener("durationchange",S),S(),()=>{v.removeEventListener("loadedmetadata",S),v.removeEventListener("durationchange",S)}},[y,d]),A.useEffect(()=>(f(a.current),()=>f(null)),[f]),A.useEffect(()=>{const v=a.current;if(!v)return;const S=p?.playbackRate;typeof S=="number"&&(v.playbackRate=S,d({playbackRate:S}))},[p]),A.useEffect(()=>{const v=a.current;if(!v||!i.src?.vtt?.length)return;const S=50,g=16,D=1.2,O=40,N=-Math.max(1,Math.round(S/(g*D))),M=L=>{if(L.cues)for(let H=0;H<L.cues.length;H+=1){const tt=L.cues[H];tt.line=N,tt.lineAlign="center"}},V=L=>{if(!L.cues)return;const H=v.getBoundingClientRect(),tt=H.width>0?O*2*100/H.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<L.cues.length;ot+=1){const I=L.cues[ot];I.size=lt,I.position=50,I.align="center",I.line=-3}},_=L=>{M(L),V(L)},F=Array.from(v.querySelectorAll("track")),U=L=>{const H=L.currentTarget;H?.track&&_(H.track)};F.forEach(L=>{L.addEventListener("load",U),L.track&&_(L.track)});const K=new ResizeObserver(()=>{F.forEach(L=>{L.track&&V(L.track)})});return K.observe(v),()=>{F.forEach(L=>{L.removeEventListener("load",U)}),K.disconnect()}},[p,i.src?.vtt]),Qr(a,d,u.isSeeked,p?.autoPause),A.useEffect(()=>{const v=i.src?.vtt??[],S=v.length>0,g=v.findIndex(O=>O.default),D=g>=0?g:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:D})},[i.src?.vtt,d]),A.useEffect(()=>{if(!u.isSubtitle)return;const v=a.current;if(!v||!i.src?.vtt?.length)return;const S=new Map,g=[],D=async(z,N)=>{try{const M=await fetch(N,{mode:"cors"});if(!M.ok)return;const V=await M.blob(),_=URL.createObjectURL(V);g.push(_),S.set(z,z.src),z.src=_}catch{}},O=Array.from(v.querySelectorAll("track"));return O.forEach(z=>{z.src&&D(z,z.src)}),()=>{O.forEach(z=>{const N=S.get(z);N&&(z.src=N)}),g.forEach(z=>URL.revokeObjectURL(z))}},[i.src?.vtt,u.subTitleIdx,u.isSubtitle]),A.useEffect(()=>{const v=a.current;if(!v)return;const S=Array.from(v.querySelectorAll("track")),g=v.textTracks;if((!g||g.length===0)&&S.length===0)return;const D=u.subTitleIdx,O=u.isSubtitle,z=()=>{if(S.length>0){S.forEach(M=>{M.track&&(M.default=!1,M.track.mode="disabled")}),S.forEach((M,V)=>{M.track&&O&&V===D&&(M.default=!0,M.track.mode="showing")});return}for(let M=0;M<g.length;M+=1)g[M].mode="disabled";O&&g[D]&&(g[D].mode="showing")};z();const N=()=>{z()};return S.forEach(M=>{M.addEventListener("load",N)}),()=>{S.forEach(M=>{M.removeEventListener("load",N)})}},[u.isSubtitle,u.subTitleIdx,i.src?.vtt]),A.useEffect(()=>{const v=a.current;v&&p.autostart&&v.play().catch(S=>{console.log(S),v.muted=!0,v.play()})},[p.autostart]),A.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[u.hasSubtitle,d]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:i.src.poster?u.initPlay?"transparent":`url(${i.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:i.src.vtt?.map(v=>x.jsx("track",{kind:"subtitles",srcLang:v.id,label:v.label,src:v.src,default:v.default},`${v.id}-${v.src}`))})})}const a1=3,l1=3e3,s1=i=>{if(!i)return null;if(typeof i.MediaPlayer=="function"){const a=i.MediaPlayer();if(a?.create)return a.create()}if(i.MediaPlayer?.create)return i.MediaPlayer.create();if(typeof i.MediaPlayerFactory=="function"){const a=i.MediaPlayerFactory();if(a?.create)return a.create()}return null};function r1(i){const a=A.useRef(null),s=A.useRef(0),o=A.useRef(null),[u,d]=Ut(),{setVideoElement:f,setDashInstance:m}=It(),y=i.dashLib,p=i.options;return A.useEffect(()=>{const v=a.current,S=i?.src?.file;if(!v||!S)return;const g=s1(y);if(!g){v.src=S;return}m(g),typeof g.initialize=="function"?g.initialize(v,S,!!p?.autostart):typeof g.attachView=="function"&&typeof g.attachSource=="function"?(g.attachView(v),g.attachSource(S)):v.src=S;const D=typeof p?.retry?.maxRetry=="number"?p.retry.maxRetry:a1,O=typeof p?.retry?.interval=="number"?p.retry.interval:l1,z=()=>{const H=(typeof g.getBitrateInfoListFor=="function"?g.getBitrateInfoListFor("video"):[]).map((ot,I)=>({index:typeof ot?.qualityIndex=="number"?ot.qualityIndex:I,width:ot?.width,height:ot?.height,bitrate:ot?.bitrate??ot?.bandwidth,name:ot?.name})),tt=typeof g.getQualityFor=="function"?g.getQualityFor("video"):-1,lt=typeof g.getAutoSwitchQualityFor=="function"?g.getAutoSwitchQualityFor("video"):!0;d({levels:H,currentLevel:tt,isAutoLevel:lt})},N=()=>{const L=typeof g.isDynamic=="function"?g.isDynamic():!1,H=typeof g.getDuration=="function"?g.getDuration():void 0,tt=L&&typeof H=="number"&&Number.isFinite(H)&&H>0;d({isLive:L,isDvr:tt})},M=()=>{s.current=0,z(),N()},V=()=>{const L=typeof g.getQualityFor=="function"?g.getQualityFor("video"):-1,H=typeof g.getAutoSwitchQualityFor=="function"?g.getAutoSwitchQualityFor("video"):!0;d({currentLevel:L,isAutoLevel:H})},_=(L,H)=>{if(H?.error?.fatal??H?.fatal??!0){if(s.current<D){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{if(o.current=null,typeof g.attachSource=="function"){g.attachSource(S);return}typeof g.reset=="function"&&(g.reset(),typeof g.initialize=="function"&&g.initialize(v,S,!!p?.autostart))},O);return}console.log("DASH 재시도 횟수 초과"),i.onError&&i.onError({evt:L,data:H}),typeof g.reset=="function"&&g.reset()}},F=y?.MediaPlayer?.events??y?.MediaPlayer?.Events??y?.events??y?.Events??void 0,U=[],K=(L,H)=>{!L||typeof g.on!="function"||(g.on(L,H),U.push(()=>{typeof g.off=="function"&&g.off(L,H)}))};return K(F?.STREAM_INITIALIZED??F?.MANIFEST_LOADED,M),K(F?.QUALITY_CHANGE_RENDERED??F?.QUALITY_CHANGE_REQUESTED,V),K(F?.ERROR,_),()=>{o.current&&(clearTimeout(o.current),o.current=null),U.forEach(L=>L()),m(null),typeof g.reset=="function"&&g.reset()}},[y,i?.src?.file,i.onError,m,d]),A.useEffect(()=>{const v=a.current;if(!v||!!y&&(typeof y.MediaPlayer=="function"||typeof y.MediaPlayer?.create=="function"||typeof y.MediaPlayerFactory=="function"))return;const g=()=>{const D=v.duration,O=!Number.isFinite(D)||D===1/0,z=O?Number.isFinite(D)&&D>0:!1;d({isLive:O,isDvr:z})};return v.addEventListener("loadedmetadata",g),v.addEventListener("durationchange",g),g(),()=>{v.removeEventListener("loadedmetadata",g),v.removeEventListener("durationchange",g)}},[y,d]),A.useEffect(()=>(f(a.current),()=>f(null)),[f]),A.useEffect(()=>{const v=a.current;if(!v)return;const S=p?.playbackRate;typeof S=="number"&&(v.playbackRate=S,d({playbackRate:S}))},[p]),A.useEffect(()=>{const v=a.current;if(!v||!i.src?.vtt?.length)return;const S=50,g=16,D=1.2,O=40,N=-Math.max(1,Math.round(S/(g*D))),M=L=>{if(L.cues)for(let H=0;H<L.cues.length;H+=1){const tt=L.cues[H];tt.line=N,tt.lineAlign="center"}},V=L=>{if(!L.cues)return;const H=v.getBoundingClientRect(),tt=H.width>0?O*2*100/H.width:0,lt=Math.max(10,Math.min(100,100-tt));for(let ot=0;ot<L.cues.length;ot+=1){const I=L.cues[ot];I.size=lt,I.position=50,I.align="center"}},_=L=>{M(L),V(L)},F=Array.from(v.querySelectorAll("track")),U=L=>{const H=L.currentTarget;H?.track&&_(H.track)};F.forEach(L=>{L.addEventListener("load",U),L.track&&_(L.track)});const K=new ResizeObserver(()=>{F.forEach(L=>{L.track&&V(L.track)})});return K.observe(v),()=>{F.forEach(L=>{L.removeEventListener("load",U)}),K.disconnect()}},[p,i.src?.vtt]),Qr(a,d,u.isSeeked,p?.autoPause),A.useEffect(()=>{const v=i.src?.vtt??[],S=v.length>0,g=v.findIndex(O=>O.default),D=g>=0?g:0;d({hasSubtitle:S,isSubtitle:!1,subTitleIdx:D})},[i.src?.vtt,d]),A.useEffect(()=>{if(!u.isSubtitle)return;const v=a.current;if(!v||!i.src?.vtt?.length)return;const S=new Map,g=[],D=async(z,N)=>{try{const M=await fetch(N,{mode:"cors"});if(!M.ok)return;const V=await M.blob(),_=URL.createObjectURL(V);g.push(_),S.set(z,z.src),z.src=_}catch{}},O=Array.from(v.querySelectorAll("track"));return O.forEach(z=>{z.src&&D(z,z.src)}),()=>{O.forEach(z=>{const N=S.get(z);N&&(z.src=N)}),g.forEach(z=>URL.revokeObjectURL(z))}},[i.src?.vtt,u.subTitleIdx,u.isSubtitle]),A.useEffect(()=>{const v=a.current;if(!v)return;const S=Array.from(v.querySelectorAll("track")),g=v.textTracks;if((!g||g.length===0)&&S.length===0)return;const D=u.subTitleIdx,O=u.isSubtitle,z=()=>{if(S.length>0){S.forEach(M=>{M.track&&(M.default=!1,M.track.mode="disabled")}),S.forEach((M,V)=>{M.track&&O&&V===D&&(M.default=!0,M.track.mode="showing")});return}for(let M=0;M<g.length;M+=1)g[M].mode="disabled";O&&g[D]&&(g[D].mode="showing")};z();const N=()=>{z()};return S.forEach(M=>{M.addEventListener("load",N)}),()=>{S.forEach(M=>{M.removeEventListener("load",N)})}},[u.isSubtitle,u.subTitleIdx,i.src?.vtt]),A.useEffect(()=>{const v=a.current;v&&p.autostart&&v.play().catch(S=>{console.log(S),v.muted=!0,v.play()})},[p.autostart]),A.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&d({isSubtitle:!!S})},1e3)},[u.hasSubtitle,d]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:p?.autostart,muted:p?.muted,loop:p?.repeat,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:i.src.poster?u.initPlay?"transparent":`url(${i.src.poster}) center / ${p?.objectFit??"contain"} no-repeat`:void 0,objectFit:p?.objectFit??"contain"},children:i.src.vtt?.map(v=>x.jsx("track",{kind:"subtitles",srcLang:v.id,label:v.label,src:v.src,default:v.default},`${v.id}-${v.src}`))})})}function o1(i){const a=A.useRef(null),[s,o]=Ut(),{setVideoElement:u}=It(),d=i.options;return A.useEffect(()=>{const f=a.current,m=i?.src?.file;!f||!m||(f.src=m)},[i?.src?.file]),A.useEffect(()=>{const f=a.current;if(!f)return;const m=y=>{i.onError&&i.onError(y)};return f.addEventListener("error",m),()=>{f.removeEventListener("error",m)}},[i.onError]),A.useEffect(()=>{const f=a.current;if(!f)return;const m=()=>{const y=f.duration,p=!Number.isFinite(y)||y===1/0,v=p?Number.isFinite(y)&&y>0:!1;o({isLive:p,isDvr:v})};return f.addEventListener("loadedmetadata",m),f.addEventListener("durationchange",m),m(),()=>{f.removeEventListener("loadedmetadata",m),f.removeEventListener("durationchange",m)}},[o]),A.useEffect(()=>(u(a.current),()=>u(null)),[u]),A.useEffect(()=>{const f=a.current;if(!f)return;const m=d?.playbackRate;typeof m=="number"&&(f.playbackRate=m,o({playbackRate:m}))},[d,o]),A.useEffect(()=>{const f=a.current;if(!f||!i.src?.vtt?.length)return;const m=50,y=16,p=1.2,v=40,g=-Math.max(1,Math.round(m/(y*p))),D=_=>{if(_.cues)for(let F=0;F<_.cues.length;F+=1){const U=_.cues[F];U.line=g,U.lineAlign="center"}},O=_=>{if(!_.cues)return;const F=f.getBoundingClientRect(),U=F.width>0?v*2*100/F.width:0,K=Math.max(10,Math.min(100,100-U));for(let L=0;L<_.cues.length;L+=1){const H=_.cues[L];H.size=K,H.position=50,H.align="center"}},z=_=>{D(_),O(_)},N=Array.from(f.querySelectorAll("track")),M=_=>{const F=_.currentTarget;F?.track&&z(F.track)};N.forEach(_=>{_.addEventListener("load",M),_.track&&z(_.track)});const V=new ResizeObserver(()=>{N.forEach(_=>{_.track&&O(_.track)})});return V.observe(f),()=>{N.forEach(_=>{_.removeEventListener("load",M)}),V.disconnect()}},[d,i.src?.vtt]),Qr(a,o,s.isSeeked,d?.autoPause),A.useEffect(()=>{const f=i.src?.vtt??[],m=f.length>0,y=f.findIndex(v=>v.default),p=y>=0?y:0;o({hasSubtitle:m,isSubtitle:!1,subTitleIdx:p})},[i.src?.vtt,o]),A.useEffect(()=>{if(!s.isSubtitle)return;const f=a.current;if(!f||!i.src?.vtt?.length)return;const m=new Map,y=[],p=async(S,g)=>{try{const D=await fetch(g,{mode:"cors"});if(!D.ok)return;const O=await D.blob(),z=URL.createObjectURL(O);y.push(z),m.set(S,S.src),S.src=z}catch{}},v=Array.from(f.querySelectorAll("track"));return v.forEach(S=>{S.src&&p(S,S.src)}),()=>{v.forEach(S=>{const g=m.get(S);g&&(S.src=g)}),y.forEach(S=>URL.revokeObjectURL(S))}},[i.src?.vtt,s.subTitleIdx,s.isSubtitle]),A.useEffect(()=>{const f=a.current;if(!f)return;const m=Array.from(f.querySelectorAll("track")),y=f.textTracks;if((!y||y.length===0)&&m.length===0)return;const p=s.subTitleIdx,v=s.isSubtitle,S=()=>{if(m.length>0){m.forEach(D=>{D.track&&(D.default=!1,D.track.mode="disabled")}),m.forEach((D,O)=>{D.track&&v&&O===p&&(D.default=!0,D.track.mode="showing")});return}for(let D=0;D<y.length;D+=1)y[D].mode="disabled";v&&y[p]&&(y[p].mode="showing")};S();const g=()=>{S()};return m.forEach(D=>{D.addEventListener("load",g)}),()=>{m.forEach(D=>{D.removeEventListener("load",g)})}},[s.isSubtitle,s.subTitleIdx,i.src?.vtt]),A.useEffect(()=>{const f=a.current;f&&d.autostart&&f.play().catch(m=>{console.log(m),f.muted=!0,f.play()})},[d.autostart]),A.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const m=localStorage.getItem("vpeSubtitleEnabled");m!==null&&s.hasSubtitle&&o({isSubtitle:!!m})},1e3)},[s.hasSubtitle,o]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:d?.autostart,muted:d?.muted,loop:d?.repeat,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:i.src.poster?s.initPlay?"transparent":`url(${i.src.poster}) center / ${d?.objectFit??"contain"} no-repeat`:void 0,objectFit:d?.objectFit??"contain"},children:i.src.vtt?.map(f=>x.jsx("track",{kind:"subtitles",srcLang:f.id,label:f.label,src:f.src,default:f.default},`${f.id}-${f.src}`))})})}function u1(i){return x.jsx(i1,{...i})}function c1(i){return x.jsx(r1,{...i})}function f1(i){return x.jsx(o1,{...i})}function d1(i){const a=A.useRef(null),s=A.useRef(null),o=i.hlsLib;return A.useEffect(()=>{const u=a.current,d=i?.src?.file;if(!(!u||!d)){if(o?.isSupported?.()){const f=new o({startLevel:0,autoLevelCapping:0});return f.attachMedia(u),f.on(o.Events.MEDIA_ATTACHED,()=>{f.loadSource(d)}),f.on(o.Events.MANIFEST_PARSED,()=>{f.currentLevel=0,f.autoLevelEnabled=!1}),f.on(o.Events.ERROR,(m,y)=>{i.onError&&i.onError({evt:m,data:y})}),()=>{f.destroy()}}u.src=d}},[o,i?.src?.file,i.onError]),A.useEffect(()=>{const u=a.current;if(!u||!i.isHovering||typeof i.previewTime!="number")return;s.current=i.previewTime;const d=()=>{const m=s.current;if(typeof m!="number"||Number.isNaN(m))return;const y=u.duration,p=Math.max(0,Math.min(m,Number.isFinite(y)?y:m));Math.abs(u.currentTime-p)>.25&&(u.currentTime=p),u.pause()};if(u.readyState>=1){d();return}const f=()=>d();return u.addEventListener("loadedmetadata",f,{once:!0}),()=>{u.removeEventListener("loadedmetadata",f)}},[i.isHovering,i.previewTime]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const h1=i=>{if(!i)return null;if(typeof i.MediaPlayer=="function"){const a=i.MediaPlayer();if(a?.create)return a.create()}if(i.MediaPlayer?.create)return i.MediaPlayer.create();if(typeof i.MediaPlayerFactory=="function"){const a=i.MediaPlayerFactory();if(a?.create)return a.create()}return null},m1=i=>{if(!i.length)return 0;let a=i[0];for(let s=1;s<i.length;s+=1){const o=i[s],u=o?.bitrate??o?.bandwidth??Number.MAX_SAFE_INTEGER,d=a?.bitrate??a?.bandwidth??Number.MAX_SAFE_INTEGER;u<d&&(a=o)}return typeof a?.qualityIndex=="number"?a.qualityIndex:0};function p1(i){const a=A.useRef(null),s=A.useRef(null),o=i.dashLib;return A.useEffect(()=>{const u=a.current,d=i?.src?.file;if(!u||!d)return;const f=h1(o);if(!f){u.src=d;return}typeof f.initialize=="function"?f.initialize(u,d,!1):typeof f.attachView=="function"&&typeof f.attachSource=="function"?(f.attachView(u),f.attachSource(d)):u.src=d;const m=()=>{const g=typeof f.getBitrateInfoListFor=="function"?f.getBitrateInfoListFor("video"):[],D=m1(g);typeof f.setAutoSwitchQualityFor=="function"&&f.setAutoSwitchQualityFor("video",!1),typeof f.setQualityFor=="function"&&f.setQualityFor("video",D)},y=(g,D)=>{i.onError&&i.onError({evt:g,data:D})},p=o?.MediaPlayer?.events??o?.MediaPlayer?.Events??o?.events??o?.Events??void 0,v=[],S=(g,D)=>{!g||typeof f.on!="function"||(f.on(g,D),v.push(()=>{typeof f.off=="function"&&f.off(g,D)}))};return S(p?.STREAM_INITIALIZED??p?.MANIFEST_LOADED,m),S(p?.ERROR,y),()=>{v.forEach(g=>g()),typeof f.reset=="function"&&f.reset()}},[o,i?.src?.file,i.onError]),A.useEffect(()=>{const u=a.current;if(!u||!i.isHovering||typeof i.previewTime!="number")return;s.current=i.previewTime;const d=()=>{const m=s.current;if(typeof m!="number"||Number.isNaN(m))return;const y=u.duration,p=Math.max(0,Math.min(m,Number.isFinite(y)?y:m));Math.abs(u.currentTime-p)>.25&&(u.currentTime=p),u.pause()};if(u.readyState>=1){d();return}const f=()=>d();return u.addEventListener("loadedmetadata",f,{once:!0}),()=>{u.removeEventListener("loadedmetadata",f)}},[i.isHovering,i.previewTime]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function y1(i){const a=A.useRef(null),s=A.useRef(null);return A.useEffect(()=>{const o=a.current,u=i?.src?.file;!o||!u||(o.src=u)},[i?.src?.file]),A.useEffect(()=>{const o=a.current;if(!o)return;const u=d=>{i.onError&&i.onError(d)};return o.addEventListener("error",u),()=>{o.removeEventListener("error",u)}},[i.onError]),A.useEffect(()=>{const o=a.current;if(!o||!i.isHovering||typeof i.previewTime!="number")return;s.current=i.previewTime;const u=()=>{const f=s.current;if(typeof f!="number"||Number.isNaN(f))return;const m=o.duration,y=Math.max(0,Math.min(f,Number.isFinite(m)?m:f));Math.abs(o.currentTime-y)>.25&&(o.currentTime=y),o.pause()};if(o.readyState>=1){u();return}const d=()=>u();return o.addEventListener("loadedmetadata",d,{once:!0}),()=>{o.removeEventListener("loadedmetadata",d)}},[i.isHovering,i.previewTime]),x.jsx(x.Fragment,{children:i?.src?.file&&x.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function Jf(i="(max-width: 768px)"){const[a,s]=A.useState({isMobile:!1,isPortrait:!1});return A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(i),u=window.matchMedia("(orientation: portrait)"),d=()=>s({isMobile:o.matches,isPortrait:u.matches});return d(),o.addEventListener("change",d),u.addEventListener("change",d),()=>{o.removeEventListener("change",d),u.removeEventListener("change",d)}},[i]),a}class v1{formatTime(a){if(!a)return"00:00";const s=Math.floor(a),o=String(Math.floor(s/3600)).padStart(2,"0"),u=String(Math.floor(s%3600/60)).padStart(2,"0"),d=String(s%60).padStart(2,"0");return o!=="00"?`${o}:${u}:${d}`:`${u}:${d}`}}const Ua=new v1,Ni=i=>Math.max(0,Math.min(100,i));function If({color:i="#31ec2a",src:a,hlsLib:s,dashLib:o,options:u,onError:d}){const{isMobile:f}=Jf(),[m,y]=Ut(),{seekTo:p}=It(),v=o,S=typeof a?.file=="string"?a.file.split("?")[0].toLowerCase():"",g=S.endsWith(".mpd"),D=S.endsWith(".mp4"),[O,z]=A.useState(!1),[N,M]=A.useState(0),[V,_]=A.useState(0),[F,U]=A.useState(null),[K,L]=A.useState(null),[H,tt]=A.useState(null),lt=A.useRef(null),ot=A.useRef(null),I=A.useRef(null),ut=i||"#31ec2a",dt="5px",nt=m.duration??0,Z=nt>0?nt:0,k=Z>0?(m.currentTime??0)/Z*100:0,Q=Z>0?(m.buffered??0)/Z*100:0,it=!!m.isLive,wt=(it&&nt>0?Math.abs(nt-(m.currentTime??0))<30:!1)?100:Ni(N),E=F??k,q=K??E,J=H??E,W=Z>0?Z*(E/100):0,ct=F!==null,mt=m.videoWidth??0,Tt=m.videoHeight??0,te=mt>0&&Tt>0,Gt=te?`${mt}/${Tt}`:"16/9",pi=te&&mt>Tt?"160px":"55px",Nn=A.useCallback(ee=>{const me=lt.current;if(!me)return null;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return null;const nl="clientX"in ee?ee.clientX:0;return Math.min(Math.max(nl-Ae.left,0),Ae.width)/Ae.width*100},[]),el=A.useCallback(ee=>{const me=lt.current;if(!me)return;const Ae=me.getBoundingClientRect();if(Ae.width<=0)return;const nl=Ss=>{const pu=Ss>0?Ss/2/Ae.width*100:0,le=Math.max(0,Math.min(50,pu)),yu=Math.max(le,100-le);return{minPercent:le,maxPercent:yu}},il=ot.current?.offsetWidth??0,Fi=nl(il),yi=Nn(ee);if(yi===null)return;U(Ni(yi));const Ji=Math.max(Fi.minPercent,Math.min(Fi.maxPercent,yi));tt(Ji),L(Ji)},[Nn]),bs=A.useCallback(()=>{U(null),L(null),tt(null)},[]);return A.useEffect(()=>{O||(M(k),_(Q))},[O,k,Q]),A.useEffect(()=>{console.log("options",u),console.log("options",u.seekingPreview)},[u]),m.isSeekOverlayVisible?null:x.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:el,onMouseLeave:bs,children:x.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":ut,"--seekSliderThumbColor":ut,"--rlMargin":dt},children:[x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:lt,children:x.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[ct&&!m.isLive&&!f&&u.seekingPreview&&x.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:Gt,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ni(J)}%`,transform:"translateX(-50%)",maxWidth:pi},ref:ot,children:x.jsx(x.Fragment,{children:g&&v?x.jsx(p1,{src:a,dashLib:v,options:u,onError:d,previewTime:W,isHovering:ct}):D?x.jsx(y1,{src:a,options:u,onError:d,previewTime:W,isHovering:ct}):s?x.jsx(d1,{src:a,hlsLib:s,options:u,onError:d,previewTime:W,isHovering:ct}):null})}),ct&&!m.isLive&&x.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Ni(q)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:I,children:Ua.formatTime(W)})]})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${V<1?1:V>98?100:V}%`}})}),x.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:x.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${wt<1?1:wt}%`},children:x.jsx("div",{style:{position:"relative"},children:x.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),x.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:x.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:wt,onPointerDown:ee=>{if(it)return;y({isSeeked:!0}),z(!0);const me=Nn(ee);me!==null&&M(Ni(me))},onPointerUp:()=>{if(it)return;z(!1);const ee=Z*(wt/100);p(ee)},onChange:ee=>{if(it)return;const me=Number(ee.currentTarget.value),Ae=Number.isNaN(me)?0:me;M(Ni(Ae))},disabled:it||Z===0})})]})})}var Wf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},$f=oi.createContext&&oi.createContext(Wf),g1=["attr","size","title"];function b1(i,a){if(i==null)return{};var s=S1(i,a),o,u;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(u=0;u<d.length;u++)o=d[u],!(a.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(s[o]=i[o])}return s}function S1(i,a){if(i==null)return{};var s={};for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){if(a.indexOf(o)>=0)continue;s[o]=i[o]}return s}function Jl(){return Jl=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[o]=s[o])}return i},Jl.apply(this,arguments)}function td(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);a&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,o)}return s}function Il(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?td(Object(s),!0).forEach(function(o){x1(i,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):td(Object(s)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(s,o))})}return i}function x1(i,a,s){return a=T1(a),a in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s,i}function T1(i){var a=E1(i,"string");return typeof a=="symbol"?a:a+""}function E1(i,a){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var o=s.call(i,a);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function ed(i){return i&&i.map((a,s)=>oi.createElement(a.tag,Il({key:s},a.attr),ed(a.child)))}function Ht(i){return a=>oi.createElement(M1,Jl({attr:Il({},i.attr)},a),ed(i.child))}function M1(i){var a=s=>{var{attr:o,size:u,title:d}=i,f=b1(i,g1),m=u||s.size||"1em",y;return s.className&&(y=s.className),i.className&&(y=(y?y+" ":"")+i.className),oi.createElement("svg",Jl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,f,{className:y,style:Il(Il({color:i.color||s.color},s.style),i.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),d&&oi.createElement("title",null,d),i.children)};return $f!==void 0?oi.createElement($f.Consumer,null,s=>a(s)):a(Wf)}function A1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6 8.25h8v1.5H6zM16.5 9.75H18v-1.5h-1.5V7H15v4h1.5zM10 12.25h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},child:[]}]})(i)}function C1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"},child:[]}]})(i)}function D1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(i)}function R1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H6.83l8 8H20v2h-3.17l4.93 4.93c.15-.28.24-.59.24-.93V6c0-1.1-.9-2-2-2zM1.04 3.87l1.2 1.2C2.09 5.35 2 5.66 2 6v12c0 1.1.9 2 2 2h13.17l2.96 2.96 1.41-1.41L2.45 2.45 1.04 3.87zM8 12v2H4v-2h4zm6 4.83V18H4v-2h9.17l.83.83z"},child:[]}]})(i)}function z1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z"},child:[]},{tag:"path",attr:{d:"M10.86 15.94v-4.27h-.09L9 12.3v.69l1.01-.31v3.26zM12.25 13.44v.74c0 1.9 1.31 1.82 1.44 1.82.14 0 1.44.09 1.44-1.82v-.74c0-1.9-1.31-1.82-1.44-1.82-.14 0-1.44-.09-1.44 1.82zm2.04-.12v.97c0 .77-.21 1.03-.59 1.03s-.6-.26-.6-1.03v-.97c0-.75.22-1.01.59-1.01.38-.01.6.26.6 1.01z"},child:[]}]})(i)}function nd(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(i)}function id(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(i)}function j1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 5V1l-5 5 5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6h-2c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"},child:[]},{tag:"path",attr:{d:"M10.89 16h-.85v-3.26l-1.01.31v-.69l1.77-.63h.09V16zM15.17 14.24c0 .32-.03.6-.1.82s-.17.42-.29.57-.28.26-.45.33-.37.1-.59.1-.41-.03-.59-.1-.33-.18-.46-.33-.23-.34-.3-.57-.11-.5-.11-.82v-.74c0-.32.03-.6.1-.82s.17-.42.29-.57.28-.26.45-.33.37-.1.59-.1.41.03.59.1.33.18.46.33.23.34.3.57.11.5.11.82v.74zm-.85-.86c0-.19-.01-.35-.04-.48s-.07-.23-.12-.31-.11-.14-.19-.17-.16-.05-.25-.05-.18.02-.25.05-.14.09-.19.17-.09.18-.12.31-.04.29-.04.48v.97c0 .19.01.35.04.48s.07.24.12.32.11.14.19.17.16.05.25.05.18-.02.25-.05.14-.09.19-.17.09-.19.11-.32.04-.29.04-.48v-.97z"},child:[]}]})(i)}function w1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"},child:[]}]})(i)}function ad(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"},child:[]}]})(i)}function ld(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02S15.48 8.71 14 7.97zM3 9v6h4l5 5V4L7 9H3z"},child:[]}]})(i)}function sd(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 9v6h4l5 5V4l-5 5H7z"},child:[]}]})(i)}function rd(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"},child:[]}]})(i)}function od(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},child:[]}]})(i)}function ud(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"},child:[]}]})(i)}function Wl(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(i)}function Ha(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(i)}function L1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(i)}function O1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(i)}function B1(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(i)}function cd(i){return Ht({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(i)}function un(i){const a=i.noBg??!1;return x.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:i.children})}function V1(i){const a=i.noPadding??!1,s=i.cap??0,o={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative"};return x.jsx("div",{style:{...o,...i.style??{}},className:i.noBg?"obtn-group-nobg":"obtn-group",children:i.children})}function Zr(i){return x.jsx(V1,{...i})}const $e={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},N1={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},fd={border:0,background:"transparent"},U1={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)",position:"relative"},H1={flex:1},_1={display:"flex",alignItems:"center",gap:6},G1={padding:0,display:"flex",alignItems:"center",gap:6},$l={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},tn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},wn={flex:1,justifyContent:"start",display:"flex"},Fr={display:"flex",alignItems:"center",gap:5},ts={fontSize:"0.9rem",opacity:.6};function dd({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:u="left"}){const[d]=Ut(),{play:f,pause:m}=It();return d.isSeekOverlayVisible?null:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isPlaying?o?.pause??"일시정지":o?.play??"재생"})}),x.jsx("button",{type:"button",onClick:d.isPlaying?m:f,style:$e,children:d.isEnded?x.jsx(cd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(nd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(id,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function k1({size:i=80,weight:a="fill",color:s="#ffffff",isPortrait:o=!1,isMobile:u=!1}){const[d]=Ut(),[f,m]=A.useState(0),{play:y,pause:p}=It();return A.useEffect(()=>{m(v=>v+1)},[d.isPlaying]),d.isSeekOverlayVisible?null:x.jsx("div",{className:`vpe-big-play-btn ${d.isEnded?"":"center-play-btn-anim"}`,children:x.jsx(Zr,{noPadding:!0,children:x.jsx(un,{children:x.jsx("button",{type:"button",style:N1,onClick:()=>{(u||o)&&(d.isPlaying?p():y())},children:d.isEnded?x.jsx(cd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(x.Fragment,{children:d.isPlaying?x.jsx(nd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(id,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})},f)}function Y1({size:i=25,weight:a="fill",color:s="#ffffff",pos:o="left",options:u={}}){const[d]=Ut(),{seekTo:f}=It(),m=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(d.isSeekOverlayVisible)return null;const y=()=>{if(d.isLive&&!d.isDvr)return;const v=(d.currentTime??0)-m;f(Math.max(0,v))};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:y,style:$e,children:x.jsx(j1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function q1({size:i=25,weight:a="fill",color:s="#ffffff",pos:o="left",options:u={}}){const[d]=Ut(),{seekTo:f}=It(),m=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(d.isSeekOverlayVisible)return null;const y=()=>{if(d.isLive&&!d.isDvr)return;const p=d.currentTime??0,v=d.duration??0,S=p+m,g=Number.isFinite(v)&&v>0?Math.min(S,v):Math.max(0,S);f(g)};return x.jsx(un,{noBg:!0,children:x.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:x.jsx("button",{type:"button",onClick:y,style:$e,children:x.jsx(z1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function X1({color:i="#ffffff"}){const[a]=Ut();return a.isSeekOverlayVisible?null:x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:i},children:Ua.formatTime(a.currentTime??0)||0})}function K1({color:i="#ffffff"}){const[a]=Ut();return a.isSeekOverlayVisible?null:x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:i},children:Ua.formatTime(a.duration??0)||0})}function P1({color:i="#ffffff"}){const[a]=Ut(),{seekTo:s}=It();if(a.isSeekOverlayVisible)return null;const u=(a.bufferedEnd??a.buffered??0)||a.duration||0,d=!!a.isLive,m=d&&u>0?Math.abs((a.currentTime??0)-u)<10:d,y=()=>{d&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return x.jsx(x.Fragment,{children:a.isLive?x.jsxs("button",{type:"button",onClick:y,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[x.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:m?"#ff0000":i,display:"inline-block"}}),x.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:"LIVE"})]}):x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Ua.formatTime(a.currentTime??0)||0}),x.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),x.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Ua.formatTime(a.duration??0)||0})]})})}function Q1({text:i={},color:a="#ffffff"}){const[s]=Ut(),{selectQualityLevel:o}=It(),u=A.useRef(!1),d=s.currentLevel??-1,f=s.levels?.find(y=>y.index===d),m=s.isAutoLevel?i.auto:f?.name??(f?.height?`${f.height}p`:`${d}`);return s.isSeekOverlayVisible?null:x.jsxs("div",{style:{position:"relative"},children:[u.current&&x.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:x.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(-1)},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:i?.auto??"Auto"})}),[...s.levels??[]].sort((y,p)=>(p.height??0)-(y.height??0)).map(y=>{const p=y.name??(y.height?`${y.height}p`:`${y.index}`);return x.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(y.index),u.current=!1},children:x.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:p})},y.index)})]})}),x.jsx("button",{type:"button",onClick:()=>{u.current=!u.current},style:{...$e,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${a}`},children:x.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:m})})]})}function Z1({color:i="#ffffff",title:a="",profileImage:s="",profileName:o="",createdAt:u=""}){return x.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${i}`,gap:10,padding:"0.4rem"},children:[x.jsx("div",{children:x.jsx("img",{src:s,alt:o,style:{borderRadius:"100%",width:50,height:50,objectFit:"cover",border:"1px solid transparent"}})}),x.jsxs("div",{style:{flex:1},children:[x.jsx("div",{style:{marginBottom:"0.2rem"},children:a}),x.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.8rem",opacity:.5},children:[x.jsx("div",{children:o}),x.jsx("div",{children:u})]})]})]})}function hd(i){const s={flex:1,display:"flex",justifyContent:i.align?i.align=="left"?"start":i.align=="right"?"end":"center":"start",alignItems:"center"};return x.jsx("div",{style:{...s,...i.style??{}},children:i.children})}function F1(i){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.577 8.9v.03h1.828V5.898h-.062a47 47 0 0 0-1.766 3.001z"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm2.372 3.715.435-.714h1.71v3.93h.733v.957h-.733V11H5.405V9.888H2.5v-.971c.574-1.077 1.225-2.142 1.872-3.202m7.73-.714h1.306l-2.14 2.584L13.5 11h-1.428l-1.679-2.624-.615.7V11H8.59V5.001h1.187v2.686h.057L12.102 5z"},child:[]}]})(i)}function J1(i){return Ht({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.53 5.968h-.843v4.06h.843c1.117 0 1.622-.667 1.622-2.02 0-1.354-.51-2.04-1.622-2.04"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm5.396 3.001V11H6.209V8.43H3.687V11H2.5V5.001h1.187v2.44h2.522V5h1.187zM8.5 11V5.001h2.188c1.824 0 2.685 1.09 2.685 2.984C13.373 9.893 12.5 11 10.69 11z"},child:[]}]})(i)}function I1({size:i=25,weight:a="fill",color:s="#ffffff",options:o={},text:u={},pos:d="left"}){const[f,m]=Ut(),{videoEl:y}=It(),p=A.useRef(0),v=A.useRef(""),S=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),g=()=>{const N=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return N instanceof HTMLElement?N:null},D=N=>{if(N)if(N.classList.contains("vpe-ios-fullscreen")){m({isFullscreen:!1}),N.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=v.current;const M=document.getElementById("vpeIosFullscreenTmpDiv");M&&M.remove(),window.scrollY=p.current}else{m({isFullscreen:!0}),N.classList.add("vpe-ios-fullscreen"),p.current=window.scrollY,v.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const M=document.createElement("div");M.id="vpeIosFullscreenTmpDiv",M.style.height="120dvh",document.body.appendChild(M),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},O=()=>{if(!y)return!1;const N=y.webkitEnterFullscreen;return typeof N!="function"?!1:(N.call(y),!0)},z=()=>{if(S)if(o.iosFullscreenNativeMode){if(O())return}else{const M=document.querySelector(".vpe-root-wrap");D(M);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const N=g();N&&N.requestFullscreen?.()};return A.useEffect(()=>{const N=()=>{S&&!o.iosFullscreenNativeMode||m({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",N),N(),()=>{document.removeEventListener("fullscreenchange",N)}},[m]),f.isSeekOverlayVisible?null:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${d}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:f.isFullscreen?u?.fullOff??"전체화면 해제":u?.fullOn??"전체화면"})}),x.jsx("button",{type:"button",onClick:z,style:$e,children:f.isFullscreen?x.jsx(O1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(B1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function W1({size:i=25,color:a="#ffffff",text:s={},pos:o="left"}){const[u]=Ut(),{toggleSubtitle:d}=It();return u.isSeekOverlayVisible?null:x.jsx(x.Fragment,{children:u.hasSubtitle&&x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),x.jsx("button",{type:"button",onClick:d,style:$e,children:u.isSubtitle?x.jsx(ad,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):x.jsx(R1,{style:{fontSize:i,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function $1({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:u="left"}){const[d]=Ut(),{toggleMute:f}=It(),m=d.isVolume??0;return d.isSeekOverlayVisible?null:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:f,style:$e,children:x.jsxs(x.Fragment,{children:[(m===0||d.isMuted)&&x.jsx(rd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=5&&m<=10&&!d.isMuted&&x.jsx(sd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=11&&m<=50&&!d.isMuted&&x.jsx(ld,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),m>=51&&!d.isMuted&&x.jsx(od,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function tb({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:u="left"}){const[d]=Ut(),{setVolume:f,toggleMute:m}=It(),y=d.isVolume??0,p=d.isMuted?0:y;return d.isSeekOverlayVisible?null:x.jsxs("div",{className:"VolumeBtnWrap",children:[x.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:d.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),x.jsx("button",{type:"button",onClick:m,style:$e,children:x.jsxs(x.Fragment,{children:[(y===0||d.isMuted)&&x.jsx(rd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=5&&y<=10&&!d.isMuted&&x.jsx(sd,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=11&&y<=50&&!d.isMuted&&x.jsx(ld,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=51&&!d.isMuted&&x.jsx(od,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),x.jsx("div",{className:"vslideWrap",children:x.jsx("input",{type:"range",min:0,max:100,value:p,onChange:v=>{const S=Number(v.currentTarget.value);f(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function eb({color:i="#ffffff",size:a=25,text:s={},pos:o="left"}){const[u,d]=Ut(),f=u.isHd,m=u.is4k;return u.isSeekOverlayVisible?null:x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),x.jsxs("button",{type:"button",onClick:()=>{d({isSettingModal:!u.isSettingModal})},style:$e,children:[(f||m)&&x.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"16px",height:"13px",borderRadius:"2px"},children:f&&!m&&x.jsx(J1,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-2px",marginTop:"-4px"}})||m&&x.jsx(F1,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),x.jsx(D1,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function nb({color:i="#ffffff",size:a=25,text:s={},pos:o="left"}){const{togglePictureInPicture:u}=It(),[d]=Ut();return d.isSeekOverlayVisible?null:x.jsx(x.Fragment,{children:x.jsx(un,{noBg:!0,children:x.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[x.jsx("div",{className:"vpe-popver",children:x.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),x.jsx("button",{type:"button",onClick:()=>{u()},style:$e,children:x.jsx(C1,{style:{fontSize:a,color:i,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function ib(i){const{useTouch:a}=It();return x.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${i.poster}) center / ${i.options?.objectFit||"contain"} no-repeat`},onClick:()=>{a()},onTouchStart:()=>{a()},children:x.jsx("div",{children:x.jsx(Zr,{noPadding:!0,children:x.jsx(dd,{size:50})})})})}function md(i){const[a]=Ut(),{poster:s,options:o}=i,u={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${o?.objectFit||"contain"} no-repeat`};return x.jsx(x.Fragment,{children:a.isLoading&&x.jsx("div",{style:u,children:x.jsx("div",{className:"ncplayer-spinner"})})})}const pd=()=>({lastTapTime:0,count:0,timer:null});function ab({seekSeconds:i=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:o}){const{seekTo:u,videoEl:d}=It(),[,f]=Ut(),[m,y]=A.useState(null),[p,v]=A.useState(null),S=A.useRef({left:null,right:null}),g=A.useRef({left:pd(),right:pd()});A.useEffect(()=>()=>{f({isSeekOverlayVisible:!1});const{left:M,right:V}=g.current;M.timer&&window.clearTimeout(M.timer),V.timer&&window.clearTimeout(V.timer);const{left:_,right:F}=S.current;_&&window.clearTimeout(_),F&&window.clearTimeout(F)},[f]),A.useEffect(()=>{f({isSeekOverlayVisible:m!==null||p!==null})},[m,p,f]);const D=(M,V)=>{const _=Math.floor(V/2);if(_<=0){M=="left"?y(null):v(null);return}const F=_*i*(M=="left"?-1:1);M=="left"?y(F):v(F);const U=S.current;U[M]&&window.clearTimeout(U[M]),U[M]=window.setTimeout(()=>{M=="left"?y(null):v(null),U[M]=null},s+200)},O=(M,V)=>{if(!d||V<=0)return;const _=d.currentTime||0,F=V*i*(M=="left"?-1:1);u(_+F)},z=M=>{const V=g.current[M],_=Date.now(),F=_-V.lastTapTime<=a;V.count=F?V.count+1:1,V.lastTapTime=_,D(M,V.count),V.timer&&window.clearTimeout(V.timer),V.timer=window.setTimeout(()=>{const U=Math.floor(V.count/2);if(V.count=0,V.timer=null,U<=0){o?.(M);return}O(M,U)},s)},N=M=>V=>{V.preventDefault(),V.stopPropagation(),z(M)};return x.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"20%",height:"calc(100% - 44%)"},children:[x.jsx("style",{children:`
10
+ @keyframes vpe-fade-in-left {
11
+ from { opacity: 0; transform: translateX(-6px); }
12
+ to { opacity: 1; transform: translateX(0); }
13
+ }
14
+ @keyframes vpe-fade-in-right {
15
+ from { opacity: 0; transform: translateX(6px); }
16
+ to { opacity: 1; transform: translateX(0); }
17
+ }
18
+ `}),m!==null&&x.jsxs("div",{style:{position:"absolute",left:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[x.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:x.jsx(ud,{style:{fontSize:"0.95rem"}})}),x.jsx("div",{children:m>0?`+${m}s`:`${m}s`})]}),p!==null&&x.jsxs("div",{style:{position:"absolute",right:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[x.jsx("div",{children:p>0?`+${p}s`:`${p}s`}),x.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:x.jsx(Wl,{style:{fontSize:"0.95rem"}})})]}),x.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:N("left")}),x.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:N("right")})]})}function lb(i){const[a,s]=Ut(),{playBackRate:o,selectQualityLevel:u}=It(),{text:d}=i,f=i.vtt??i.src?.vtt??[],m=a.currentLevel??-1,y=a.levels?.find(M=>M.index===m),p=a.isAutoLevel?y?.height?d.auto+` (${y?.height}p)`:"":y?.name??(y?.height?`${y.height}p`:`${m}`),[v,S]=A.useState(0),[g,D]=A.useState("forward"),[O,z]=A.useState(!1),N=A.useCallback(M=>{D(M>v?"forward":"back"),S(M),z(!0)},[v]);return A.useEffect(()=>{if(!O)return;const M=window.setTimeout(()=>{z(!1)},200);return()=>window.clearTimeout(M)},[O]),x.jsx("div",{className:"vpe-setting-modal",children:x.jsxs("div",{className:"vpe-setting-content",children:[x.jsxs("div",{style:U1,children:[x.jsxs("div",{style:H1,children:[v===0&&x.jsx("div",{children:d.setting}),v>0&&x.jsx("div",{style:_1,children:x.jsx("div",{children:x.jsxs("button",{onClick:()=>{N(0)},type:"button",style:{...fd,...G1},children:[x.jsx(ud,{style:{fontSize:"12px"},color:"#ffffff"}),x.jsxs("div",{children:[v==1&&d.quality,v==2&&d.playbackRate,v==3&&d.captions]})]})})})]}),x.jsx("div",{children:x.jsx("button",{type:"button",style:fd,onClick:()=>{s({isSettingModal:!1})},children:x.jsx(L1,{size:25,color:"#ffffff"})})})]}),x.jsxs("div",{className:"vpe-modal-menu",children:[v===0&&x.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${g}`:""}`,style:$l,children:[p&&x.jsxs("button",{type:"button",style:tn,className:"vpe-menu-item",onClick:()=>{N(1)},children:[x.jsx("div",{children:x.jsx(A1,{size:25,color:"#ffffff"})}),x.jsx("div",{style:wn,children:d.quality}),x.jsxs("div",{style:Fr,children:[x.jsx("span",{style:ts,children:p}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{N(2)},children:[x.jsx("div",{children:x.jsx(w1,{size:25,color:"#ffffff"})}),x.jsx("div",{style:wn,children:d.playbackRate}),x.jsxs("div",{style:Fr,children:[x.jsxs("span",{style:ts,children:[a.playbackRate,"x"]}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{N(3)},children:[x.jsx("div",{children:x.jsx(ad,{size:25,color:"#ffffff"})}),x.jsx("div",{style:wn,children:d.captions}),x.jsxs("div",{style:Fr,children:[x.jsx(x.Fragment,{children:a.isSubtitle?x.jsx(x.Fragment,{children:f.map((M,V)=>x.jsx("span",{children:a.subTitleIdx===V&&x.jsx("span",{style:ts,children:M.label})},`${M.id}-${M.src}`))}):x.jsx("span",{style:ts,children:d.notUse})}),x.jsx(Wl,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},v),v===1&&x.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${g}`:""}`,style:$l,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{u("auto")},children:[x.jsx("div",{children:x.jsx(Ha,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),x.jsx("div",{style:wn,children:d.auto})]}),[...a.levels??[]].sort((M,V)=>(V.height??0)-(M.height??0)).map(M=>{const V=M.name??(M.height?`${M.height}p`:`${M.index}`);return x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{u(M.index)},children:[x.jsx("div",{children:x.jsx(Ha,{size:15,color:!a.isAutoLevel&&a.currentLevel===M.index?"#ffffff":"transparent"})}),x.jsx("div",{style:wn,children:V})]},M.index)})]},v),v===2&&x.jsx("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${g}`:""}`,style:$l,children:(i.options?.playRateSetting??[]).map(M=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(M),s({playbackRate:M}),N(0)},children:[x.jsx("div",{children:x.jsx(Ha,{size:15,color:a.playbackRate===M?"#ffffff":"transparent"})}),x.jsxs("div",{style:wn,children:[M,"x"]})]},M))},v),v===3&&x.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${g}`:""}`,style:$l,children:[x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!1})},children:[x.jsx("div",{children:x.jsx(Ha,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),x.jsx("div",{style:wn,children:d.notUse})]}),f.map((M,V)=>x.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:V})},children:[x.jsx("div",{children:x.jsx(Ha,{size:15,color:a.isSubtitle&&a.subTitleIdx===V?"#ffffff":"transparent"})}),x.jsx("div",{style:wn,children:M.label})]},`${M.id}-${M.src}`))]},v)]})]})})}const yd=10,sb=i=>!i||!(i instanceof HTMLElement)?!1:i.isContentEditable?!0:i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement,rb=()=>typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),vd=i=>{if(!i||!(i instanceof HTMLElement))return null;const a=i.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},ob=(i,a,s)=>{if(i)if(i.classList.contains("vpe-ios-fullscreen")){i.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=s.current;const o=document.getElementById("vpeIosFullscreenTmpDiv");o&&o.remove(),window.scrollY=a.current}else{i.classList.add("vpe-ios-fullscreen"),a.current=window.scrollY,s.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const o=document.createElement("div");o.id="vpeIosFullscreenTmpDiv",o.style.height="120dvh",document.body.appendChild(o),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},ub=(i={})=>{if(!i.keyboardShortcut)return;const a=A.useRef(null),s=A.useRef(0),o=A.useRef("");A.useEffect(()=>{const u=d=>{a.current=vd(d.target)??a.current};return a.current=document.querySelector(".vpe-root-wrap")??a.current,window.addEventListener("pointerdown",u,!0),window.addEventListener("mousedown",u,!0),window.addEventListener("touchstart",u,!0),()=>{window.removeEventListener("pointerdown",u,!0),window.removeEventListener("mousedown",u,!0),window.removeEventListener("touchstart",u,!0)}},[]),A.useEffect(()=>{const u=d=>{if(d.defaultPrevented||d.metaKey||d.ctrlKey||d.altKey||sb(d.target))return;const f=vd(d.target)??a.current??document.querySelector(".vpe-root-wrap");if(!f)return;const m=f.querySelector("video");if(m instanceof HTMLVideoElement)switch(d.key){case" ":case"Spacebar":case"Space":{d.preventDefault(),m.paused?m.play():m.pause();break}case"ArrowRight":{const y=Math.max(0,Math.min(m.currentTime+yd,m.duration||m.currentTime));m.currentTime=y;break}case"ArrowLeft":{const y=Math.max(0,Math.min(m.currentTime-yd,m.duration||m.currentTime));m.currentTime=y;break}case"ㄹ":case"f":case"F":{if(rb()){const p=m.webkitEnterFullscreen;if(typeof p=="function"){p.call(m);break}ob(f,s,o);break}if(document.fullscreenElement){document.exitFullscreen?.();break}const y=f.querySelector(".vpe-fullscreen-target")||f;y instanceof HTMLElement&&y.requestFullscreen?.();break}case"ㅡ":case"m":case"M":{m.muted=!m.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[])},Jr=A.createContext({});function Ir(i){const a=A.useRef(null);return a.current===null&&(a.current=i()),a.current}const Wr=typeof window<"u",gd=Wr?A.useLayoutEffect:A.useEffect,es=A.createContext(null);function $r(i,a){i.indexOf(a)===-1&&i.push(a)}function to(i,a){const s=i.indexOf(a);s>-1&&i.splice(s,1)}const cn=(i,a,s)=>s>a?a:s<i?i:s;let eo=()=>{};const fn={},bd=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function Sd(i){return typeof i=="object"&&i!==null}const xd=i=>/^0[^.\s]+$/u.test(i);function no(i){let a;return()=>(a===void 0&&(a=i()),a)}const Ve=i=>i,cb=(i,a)=>s=>a(i(s)),_a=(...i)=>i.reduce(cb),Ga=(i,a,s)=>{const o=a-i;return o===0?1:(s-i)/o};class io{constructor(){this.subscriptions=[]}add(a){return $r(this.subscriptions,a),()=>to(this.subscriptions,a)}notify(a,s,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,o);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=i=>i*1e3,Ne=i=>i/1e3;function Td(i,a){return a?i*(1e3/a):0}const Ed=(i,a,s)=>(((1-3*s+3*a)*i+(3*s-6*a))*i+3*a)*i,fb=1e-7,db=12;function hb(i,a,s,o,u){let d,f,m=0;do f=a+(s-a)/2,d=Ed(f,o,u)-i,d>0?s=f:a=f;while(Math.abs(d)>fb&&++m<db);return f}function ka(i,a,s,o){if(i===a&&s===o)return Ve;const u=d=>hb(d,0,1,i,s);return d=>d===0||d===1?d:Ed(u(d),a,o)}const Md=i=>a=>a<=.5?i(2*a)/2:(2-i(2*(1-a)))/2,Ad=i=>a=>1-i(1-a),Cd=ka(.33,1.53,.69,.99),ao=Ad(Cd),Dd=Md(ao),Rd=i=>(i*=2)<1?.5*ao(i):.5*(2-Math.pow(2,-10*(i-1))),lo=i=>1-Math.sin(Math.acos(i)),zd=Ad(lo),jd=Md(lo),mb=ka(.42,0,1,1),pb=ka(0,0,.58,1),wd=ka(.42,0,.58,1),yb=i=>Array.isArray(i)&&typeof i[0]!="number",Ld=i=>Array.isArray(i)&&typeof i[0]=="number",vb={linear:Ve,easeIn:mb,easeInOut:wd,easeOut:pb,circIn:lo,circInOut:jd,circOut:zd,backIn:ao,backInOut:Dd,backOut:Cd,anticipate:Rd},gb=i=>typeof i=="string",Od=i=>{if(Ld(i)){eo(i.length===4);const[a,s,o,u]=i;return ka(a,s,o,u)}else if(gb(i))return vb[i];return i},ns=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bb(i,a){let s=new Set,o=new Set,u=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(p.schedule(v),i()),v(m)}const p={schedule:(v,S=!1,g=!1)=>{const O=g&&u?s:o;return S&&f.add(v),O.has(v)||O.add(v),v},cancel:v=>{o.delete(v),f.delete(v)},process:v=>{if(m=v,u){d=!0;return}u=!0,[s,o]=[o,s],s.forEach(y),s.clear(),u=!1,d&&(d=!1,p.process(v))}};return p}const Sb=40;function Bd(i,a){let s=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ns.reduce((_,F)=>(_[F]=bb(d),_),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:S,preRender:g,render:D,postRender:O}=f,z=()=>{const _=fn.useManualTiming?u.timestamp:performance.now();s=!1,fn.useManualTiming||(u.delta=o?1e3/60:Math.max(Math.min(_-u.timestamp,Sb),1)),u.timestamp=_,u.isProcessing=!0,m.process(u),y.process(u),p.process(u),v.process(u),S.process(u),g.process(u),D.process(u),O.process(u),u.isProcessing=!1,s&&a&&(o=!1,i(z))},N=()=>{s=!0,o=!0,u.isProcessing||i(z)};return{schedule:ns.reduce((_,F)=>{const U=f[F];return _[F]=(K,L=!1,H=!1)=>(s||N(),U.schedule(K,L,H)),_},{}),cancel:_=>{for(let F=0;F<ns.length;F++)f[ns[F]].cancel(_)},state:u,steps:f}}const{schedule:Vt,cancel:Ln,state:ae,steps:so}=Bd(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0);let is;function xb(){is=void 0}const ye={now:()=>(is===void 0&&ye.set(ae.isProcessing||fn.useManualTiming?ae.timestamp:performance.now()),is),set:i=>{is=i,queueMicrotask(xb)}},Vd=i=>a=>typeof a=="string"&&a.startsWith(i),Nd=Vd("--"),Tb=Vd("var(--"),ro=i=>Tb(i)?Eb.test(i.split("/*")[0].trim()):!1,Eb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ui={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Ya={...Ui,transform:i=>cn(0,1,i)},as={...Ui,default:1},qa=i=>Math.round(i*1e5)/1e5,oo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mb(i){return i==null}const Ab=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uo=(i,a)=>s=>!!(typeof s=="string"&&Ab.test(s)&&s.startsWith(i)||a&&!Mb(s)&&Object.prototype.hasOwnProperty.call(s,a)),Ud=(i,a,s)=>o=>{if(typeof o!="string")return o;const[u,d,f,m]=o.match(oo);return{[i]:parseFloat(u),[a]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},Cb=i=>cn(0,255,i),co={...Ui,transform:i=>Math.round(Cb(i))},ui={test:uo("rgb","red"),parse:Ud("red","green","blue"),transform:({red:i,green:a,blue:s,alpha:o=1})=>"rgba("+co.transform(i)+", "+co.transform(a)+", "+co.transform(s)+", "+qa(Ya.transform(o))+")"};function Db(i){let a="",s="",o="",u="";return i.length>5?(a=i.substring(1,3),s=i.substring(3,5),o=i.substring(5,7),u=i.substring(7,9)):(a=i.substring(1,2),s=i.substring(2,3),o=i.substring(3,4),u=i.substring(4,5),a+=a,s+=s,o+=o,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const fo={test:uo("#"),parse:Db,transform:ui.transform},Xa=i=>({test:a=>typeof a=="string"&&a.endsWith(i)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${i}`}),On=Xa("deg"),nn=Xa("%"),rt=Xa("px"),Rb=Xa("vh"),zb=Xa("vw"),Hd={...nn,parse:i=>nn.parse(i)/100,transform:i=>nn.transform(i*100)},Hi={test:uo("hsl","hue"),parse:Ud("hue","saturation","lightness"),transform:({hue:i,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(i)+", "+nn.transform(qa(a))+", "+nn.transform(qa(s))+", "+qa(Ya.transform(o))+")"},Pt={test:i=>ui.test(i)||fo.test(i)||Hi.test(i),parse:i=>ui.test(i)?ui.parse(i):Hi.test(i)?Hi.parse(i):fo.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ui.transform(i):Hi.transform(i),getAnimatableNone:i=>{const a=Pt.parse(i);return a.alpha=0,Pt.transform(a)}},jb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wb(i){return isNaN(i)&&typeof i=="string"&&(i.match(oo)?.length||0)+(i.match(jb)?.length||0)>0}const _d="number",Gd="color",Lb="var",Ob="var(",kd="${}",Bb=/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 Ka(i){const a=i.toString(),s=[],o={color:[],number:[],var:[]},u=[];let d=0;const m=a.replace(Bb,y=>(Pt.test(y)?(o.color.push(d),u.push(Gd),s.push(Pt.parse(y))):y.startsWith(Ob)?(o.var.push(d),u.push(Lb),s.push(y)):(o.number.push(d),u.push(_d),s.push(parseFloat(y))),++d,kd)).split(kd);return{values:s,split:m,indexes:o,types:u}}function Yd(i){return Ka(i).values}function qd(i){const{split:a,types:s}=Ka(i),o=a.length;return u=>{let d="";for(let f=0;f<o;f++)if(d+=a[f],u[f]!==void 0){const m=s[f];m===_d?d+=qa(u[f]):m===Gd?d+=Pt.transform(u[f]):d+=u[f]}return d}}const Vb=i=>typeof i=="number"?0:Pt.test(i)?Pt.getAnimatableNone(i):i;function Nb(i){const a=Yd(i);return qd(i)(a.map(Vb))}const Bn={test:wb,parse:Yd,createTransformer:qd,getAnimatableNone:Nb};function ho(i,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(a-i)*6*s:s<1/2?a:s<2/3?i+(a-i)*(2/3-s)*6:i}function Ub({hue:i,saturation:a,lightness:s,alpha:o}){i/=360,a/=100,s/=100;let u=0,d=0,f=0;if(!a)u=d=f=s;else{const m=s<.5?s*(1+a):s+a-s*a,y=2*s-m;u=ho(y,m,i+1/3),d=ho(y,m,i),f=ho(y,m,i-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function ls(i,a){return s=>s>0?a:i}const _t=(i,a,s)=>i+(a-i)*s,mo=(i,a,s)=>{const o=i*i,u=s*(a*a-o)+o;return u<0?0:Math.sqrt(u)},Hb=[fo,ui,Hi],_b=i=>Hb.find(a=>a.test(i));function Xd(i){const a=_b(i);if(!a)return!1;let s=a.parse(i);return a===Hi&&(s=Ub(s)),s}const Kd=(i,a)=>{const s=Xd(i),o=Xd(a);if(!s||!o)return ls(i,a);const u={...s};return d=>(u.red=mo(s.red,o.red,d),u.green=mo(s.green,o.green,d),u.blue=mo(s.blue,o.blue,d),u.alpha=_t(s.alpha,o.alpha,d),ui.transform(u))},po=new Set(["none","hidden"]);function Gb(i,a){return po.has(i)?s=>s<=0?i:a:s=>s>=1?a:i}function kb(i,a){return s=>_t(i,a,s)}function yo(i){return typeof i=="number"?kb:typeof i=="string"?ro(i)?ls:Pt.test(i)?Kd:Xb:Array.isArray(i)?Pd:typeof i=="object"?Pt.test(i)?Kd:Yb:ls}function Pd(i,a){const s=[...i],o=s.length,u=i.map((d,f)=>yo(d)(d,a[f]));return d=>{for(let f=0;f<o;f++)s[f]=u[f](d);return s}}function Yb(i,a){const s={...i,...a},o={};for(const u in s)i[u]!==void 0&&a[u]!==void 0&&(o[u]=yo(i[u])(i[u],a[u]));return u=>{for(const d in o)s[d]=o[d](u);return s}}function qb(i,a){const s=[],o={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const d=a.types[u],f=i.indexes[d][o[d]],m=i.values[f]??0;s[u]=m,o[d]++}return s}const Xb=(i,a)=>{const s=Bn.createTransformer(a),o=Ka(i),u=Ka(a);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?po.has(i)&&!u.values.length||po.has(a)&&!o.values.length?Gb(i,a):_a(Pd(qb(o,u),u.values),s):ls(i,a)};function Qd(i,a,s){return typeof i=="number"&&typeof a=="number"&&typeof s=="number"?_t(i,a,s):yo(i)(i,a)}const Kb=i=>{const a=({timestamp:s})=>i(s);return{start:(s=!0)=>Vt.update(a,s),stop:()=>Ln(a),now:()=>ae.isProcessing?ae.timestamp:ye.now()}},Zd=(i,a,s=10)=>{let o="";const u=Math.max(Math.round(a/s),2);for(let d=0;d<u;d++)o+=Math.round(i(d/(u-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},ss=2e4;function vo(i){let a=0;const s=50;let o=i.next(a);for(;!o.done&&a<ss;)a+=s,o=i.next(a);return a>=ss?1/0:a}function Pb(i,a=100,s){const o=s({...i,keyframes:[0,a]}),u=Math.min(vo(o),ss);return{type:"keyframes",ease:d=>o.next(u*d).value/a,duration:Ne(u)}}const Qb=5;function Fd(i,a,s){const o=Math.max(a-Qb,0);return Td(s-i(o),a-o)}const kt={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},go=.001;function Zb({duration:i=kt.duration,bounce:a=kt.bounce,velocity:s=kt.velocity,mass:o=kt.mass}){let u,d,f=1-a;f=cn(kt.minDamping,kt.maxDamping,f),i=cn(kt.minDuration,kt.maxDuration,Ne(i)),f<1?(u=p=>{const v=p*f,S=v*i,g=v-s,D=bo(p,f),O=Math.exp(-S);return go-g/D*O},d=p=>{const S=p*f*i,g=S*s+s,D=Math.pow(f,2)*Math.pow(p,2)*i,O=Math.exp(-S),z=bo(Math.pow(p,2),f);return(-u(p)+go>0?-1:1)*((g-D)*O)/z}):(u=p=>{const v=Math.exp(-p*i),S=(p-s)*i+1;return-go+v*S},d=p=>{const v=Math.exp(-p*i),S=(s-p)*(i*i);return v*S});const m=5/i,y=Jb(u,d,m);if(i=en(i),isNaN(y))return{stiffness:kt.stiffness,damping:kt.damping,duration:i};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:i}}}const Fb=12;function Jb(i,a,s){let o=s;for(let u=1;u<Fb;u++)o=o-i(o)/a(o);return o}function bo(i,a){return i*Math.sqrt(1-a*a)}const Ib=["duration","bounce"],Wb=["stiffness","damping","mass"];function Jd(i,a){return a.some(s=>i[s]!==void 0)}function $b(i){let a={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...i};if(!Jd(i,Wb)&&Jd(i,Ib))if(i.visualDuration){const s=i.visualDuration,o=2*Math.PI/(s*1.2),u=o*o,d=2*cn(.05,1,1-(i.bounce||0))*Math.sqrt(u);a={...a,mass:kt.mass,stiffness:u,damping:d}}else{const s=Zb(i);a={...a,...s,mass:kt.mass},a.isResolvedFromDuration=!0}return a}function rs(i=kt.visualDuration,a=kt.bounce){const s=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:a}:i;let{restSpeed:o,restDelta:u}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:S,velocity:g,isResolvedFromDuration:D}=$b({...s,velocity:-Ne(s.velocity||0)}),O=g||0,z=p/(2*Math.sqrt(y*v)),N=f-d,M=Ne(Math.sqrt(y/v)),V=Math.abs(N)<5;o||(o=V?kt.restSpeed.granular:kt.restSpeed.default),u||(u=V?kt.restDelta.granular:kt.restDelta.default);let _;if(z<1){const U=bo(M,z);_=K=>{const L=Math.exp(-z*M*K);return f-L*((O+z*M*N)/U*Math.sin(U*K)+N*Math.cos(U*K))}}else if(z===1)_=U=>f-Math.exp(-M*U)*(N+(O+M*N)*U);else{const U=M*Math.sqrt(z*z-1);_=K=>{const L=Math.exp(-z*M*K),H=Math.min(U*K,300);return f-L*((O+z*M*N)*Math.sinh(H)+U*N*Math.cosh(H))/U}}const F={calculatedDuration:D&&S||null,next:U=>{const K=_(U);if(D)m.done=U>=S;else{let L=U===0?O:0;z<1&&(L=U===0?en(O):Fd(_,U,K));const H=Math.abs(L)<=o,tt=Math.abs(f-K)<=u;m.done=H&&tt}return m.value=m.done?f:K,m},toString:()=>{const U=Math.min(vo(F),ss),K=Zd(L=>F.next(U*L).value,U,30);return U+"ms "+K},toTransition:()=>{}};return F}rs.applyToOptions=i=>{const a=Pb(i,100,rs);return i.ease=a.ease,i.duration=en(a.duration),i.type="keyframes",i};function So({keyframes:i,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:v}){const S=i[0],g={done:!1,value:S},D=H=>m!==void 0&&H<m||y!==void 0&&H>y,O=H=>m===void 0?y:y===void 0||Math.abs(m-H)<Math.abs(y-H)?m:y;let z=s*a;const N=S+z,M=f===void 0?N:f(N);M!==N&&(z=M-S);const V=H=>-z*Math.exp(-H/o),_=H=>M+V(H),F=H=>{const tt=V(H),lt=_(H);g.done=Math.abs(tt)<=p,g.value=g.done?M:lt};let U,K;const L=H=>{D(g.value)&&(U=H,K=rs({keyframes:[g.value,O(g.value)],velocity:Fd(_,H,g.value),damping:u,stiffness:d,restDelta:p,restSpeed:v}))};return L(0),{calculatedDuration:null,next:H=>{let tt=!1;return!K&&U===void 0&&(tt=!0,F(H),L(H)),U!==void 0&&H>=U?K.next(H-U):(!tt&&F(H),g)}}}function tS(i,a,s){const o=[],u=s||fn.mix||Qd,d=i.length-1;for(let f=0;f<d;f++){let m=u(i[f],i[f+1]);if(a){const y=Array.isArray(a)?a[f]||Ve:a;m=_a(y,m)}o.push(m)}return o}function eS(i,a,{clamp:s=!0,ease:o,mixer:u}={}){const d=i.length;if(eo(d===a.length),d===1)return()=>a[0];if(d===2&&a[0]===a[1])return()=>a[1];const f=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),a=[...a].reverse());const m=tS(a,o,u),y=m.length,p=v=>{if(f&&v<i[0])return a[0];let S=0;if(y>1)for(;S<i.length-2&&!(v<i[S+1]);S++);const g=Ga(i[S],i[S+1],v);return m[S](g)};return s?v=>p(cn(i[0],i[d-1],v)):p}function nS(i,a){const s=i[i.length-1];for(let o=1;o<=a;o++){const u=Ga(0,a,o);i.push(_t(s,1,u))}}function iS(i){const a=[0];return nS(a,i.length-1),a}function aS(i,a){return i.map(s=>s*a)}function lS(i,a){return i.map(()=>a||wd).splice(0,i.length-1)}function Pa({duration:i=300,keyframes:a,times:s,ease:o="easeInOut"}){const u=yb(o)?o.map(Od):Od(o),d={done:!1,value:a[0]},f=aS(s&&s.length===a.length?s:iS(a),i),m=eS(f,a,{ease:Array.isArray(u)?u:lS(a,u)});return{calculatedDuration:i,next:y=>(d.value=m(y),d.done=y>=i,d)}}const sS=i=>i!==null;function xo(i,{repeat:a,repeatType:s="loop"},o,u=1){const d=i.filter(sS),m=u<0||a&&s!=="loop"&&a%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const rS={decay:So,inertia:So,tween:Pa,keyframes:Pa,spring:rs};function Id(i){typeof i.type=="string"&&(i.type=rS[i.type])}class To{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const oS=i=>i/100;class Eo extends To{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Id(a);const{type:s=Pa,repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=a;let{keyframes:m}=a;const y=s||Pa;y!==Pa&&typeof m[0]!="number"&&(this.mixKeyframes=_a(oS,Qd(m[0],m[1])),m=[0,100]);const p=y({...a,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...a,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=vo(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+u,this.totalDuration=this.resolvedDuration*(o+1)-u,this.generator=p}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:o,totalDuration:u,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:S,repeatType:g,repeatDelay:D,type:O,onUpdate:z,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const M=this.currentTime-p*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?M<0:M>u;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let _=this.currentTime,F=o;if(S){const H=Math.min(this.currentTime,u)/m;let tt=Math.floor(H),lt=H%1;!lt&&H>=1&&(lt=1),lt===1&&tt--,tt=Math.min(tt,S+1),!!(tt%2)&&(g==="reverse"?(lt=1-lt,D&&(lt-=D/m)):g==="mirror"&&(F=f)),_=cn(0,1,lt)*m}const U=V?{done:!1,value:v[0]}:F.next(_);d&&(U.value=d(U.value));let{done:K}=U;!V&&y!==null&&(K=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return L&&O!==So&&(U.value=xo(v,this.options,N,this.speed)),z&&z(U.value),L&&this.finish(),U}then(a,s){return this.finished.then(a,s)}get duration(){return Ne(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ne(a)}get time(){return Ne(this.currentTime)}set time(a){a=en(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(ye.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=Kb,startTime:s}=this.options;this.driver||(this.driver=a(u=>this.tick(u))),this.options.onPlay?.();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=s??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(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function uS(i){for(let a=1;a<i.length;a++)i[a]??(i[a]=i[a-1])}const ci=i=>i*180/Math.PI,Mo=i=>{const a=ci(Math.atan2(i[1],i[0]));return Ao(a)},cS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Mo,rotateZ:Mo,skewX:i=>ci(Math.atan(i[1])),skewY:i=>ci(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Ao=i=>(i=i%360,i<0&&(i+=360),i),Wd=Mo,$d=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),th=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),fS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$d,scaleY:th,scale:i=>($d(i)+th(i))/2,rotateX:i=>Ao(ci(Math.atan2(i[6],i[5]))),rotateY:i=>Ao(ci(Math.atan2(-i[2],i[0]))),rotateZ:Wd,rotate:Wd,skewX:i=>ci(Math.atan(i[4])),skewY:i=>ci(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Co(i){return i.includes("scale")?1:0}function Do(i,a){if(!i||i==="none")return Co(a);const s=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(s)o=fS,u=s;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=cS,u=m}if(!u)return Co(a);const d=o[a],f=u[1].split(",").map(hS);return typeof d=="function"?d(f):f[d]}const dS=(i,a)=>{const{transform:s="none"}=getComputedStyle(i);return Do(s,a)};function hS(i){return parseFloat(i.trim())}const _i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gi=new Set(_i),eh=i=>i===Ui||i===rt,mS=new Set(["x","y","z"]),pS=_i.filter(i=>!mS.has(i));function yS(i){const a=[];return pS.forEach(s=>{const o=i.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const fi={width:({x:i},{paddingLeft:a="0",paddingRight:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),height:({y:i},{paddingTop:a="0",paddingBottom:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),top:(i,{top:a})=>parseFloat(a),left:(i,{left:a})=>parseFloat(a),bottom:({y:i},{top:a})=>parseFloat(a)+(i.max-i.min),right:({x:i},{left:a})=>parseFloat(a)+(i.max-i.min),x:(i,{transform:a})=>Do(a,"x"),y:(i,{transform:a})=>Do(a,"y")};fi.translateX=fi.x,fi.translateY=fi.y;const di=new Set;let Ro=!1,zo=!1,jo=!1;function nh(){if(zo){const i=Array.from(di).filter(o=>o.needsMeasurement),a=new Set(i.map(o=>o.element)),s=new Map;a.forEach(o=>{const u=yS(o);u.length&&(s.set(o,u),o.render())}),i.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const u=s.get(o);u&&u.forEach(([d,f])=>{o.getValue(d)?.set(f)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}zo=!1,Ro=!1,di.forEach(i=>i.complete(jo)),di.clear()}function ih(){di.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(zo=!0)})}function vS(){jo=!0,ih(),nh(),jo=!1}class wo{constructor(a,s,o,u,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(di.add(this),Ro||(Ro=!0,Vt.read(ih),Vt.resolveKeyframes(nh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:u}=this;if(a[0]===null){const d=u?.get(),f=a[a.length-1];if(d!==void 0)a[0]=d;else if(o&&s){const m=o.readValue(s,f);m!=null&&(a[0]=m)}a[0]===void 0&&(a[0]=f),u&&d===void 0&&u.set(a[0])}uS(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),di.delete(this)}cancel(){this.state==="scheduled"&&(di.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const gS=i=>i.startsWith("--");function bS(i,a,s){gS(a)?i.style.setProperty(a,s):i.style[a]=s}const SS=no(()=>window.ScrollTimeline!==void 0),xS={};function TS(i,a){const s=no(i);return()=>xS[a]??s()}const ah=TS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qa=([i,a,s,o])=>`cubic-bezier(${i}, ${a}, ${s}, ${o})`,lh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qa([0,.65,.55,1]),circOut:Qa([.55,0,1,.45]),backIn:Qa([.31,.01,.66,-.59]),backOut:Qa([.33,1.53,.69,.99])};function sh(i,a){if(i)return typeof i=="function"?ah()?Zd(i,a):"ease-out":Ld(i)?Qa(i):Array.isArray(i)?i.map(s=>sh(s,a)||lh.easeOut):lh[i]}function ES(i,a,s,{delay:o=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[a]:s};y&&(v.offset=y);const S=sh(m,u);Array.isArray(S)&&(v.easing=S);const g={delay:o,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(g.pseudoElement=p),i.animate(v,g)}function rh(i){return typeof i=="function"&&"applyToOptions"in i}function MS({type:i,...a}){return rh(i)&&ah()?i.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class AS extends To{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:o,keyframes:u,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=a;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=a,eo(typeof a.type!="string");const p=MS(a);this.animation=ES(s,o,u,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=xo(u,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(v):bS(s,o,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return Ne(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ne(a)}get time(){return Ne(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=en(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&SS()?(this.animation.timeline=a,Ve):s(this)}}const oh={anticipate:Rd,backInOut:Dd,circInOut:jd};function CS(i){return i in oh}function DS(i){typeof i.ease=="string"&&CS(i.ease)&&(i.ease=oh[i.ease])}const uh=10;class RS extends AS{constructor(a){DS(a),Id(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:u,element:d,...f}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const m=new Eo({...f,autoplay:!1}),y=en(this.finishedTime??this.time);s.setWithVelocity(m.sample(y-uh).value,m.sample(y).value,uh),m.stop()}}const ch=(i,a)=>a==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Bn.test(i)||i==="0")&&!i.startsWith("url("));function zS(i){const a=i[0];if(i.length===1)return!0;for(let s=0;s<i.length;s++)if(i[s]!==a)return!0}function jS(i,a,s,o){const u=i[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const d=i[i.length-1],f=ch(u,a),m=ch(d,a);return!f||!m?!1:zS(i)||(s==="spring"||rh(s))&&o}function Lo(i){i.duration=0,i.type="keyframes"}const wS=new Set(["opacity","clipPath","filter","transform"]),LS=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function OS(i){const{motionValue:a,name:s,repeatDelay:o,repeatType:u,damping:d,type:f}=i;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=a.owner.getProps();return LS()&&s&&wS.has(s)&&(s!=="transform"||!p)&&!y&&!o&&u!=="mirror"&&d!==0&&f!=="inertia"}const BS=40;class VS extends To{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:v,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const g={autoplay:a,delay:s,type:o,repeat:u,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:v,...S},D=v?.KeyframeResolver||wo;this.keyframeResolver=new D(m,(O,z,N)=>this.onKeyframesResolved(O,z,g,!N),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,o,u){this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:v}=o;this.resolvedAt=ye.now(),jS(a,d,f,m)||((fn.instantAnimations||!y)&&v?.(xo(a,o,s)),a[0]=a[a.length-1],Lo(o),o.repeat=0);const g={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>BS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},D=!p&&OS(g)?new RS({...g,element:g.motionValue.owner.current}):new Eo(g);D.finished.then(()=>this.notifyFinished()).catch(Ve),this.pendingTimeline&&(this.stopTimeline=D.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=D}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const NS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function US(i){const a=NS.exec(i);if(!a)return[,];const[,s,o,u]=a;return[`--${s??o}`,u]}function fh(i,a,s=1){const[o,u]=US(i);if(!o)return;const d=window.getComputedStyle(a).getPropertyValue(o);if(d){const f=d.trim();return bd(f)?parseFloat(f):f}return ro(u)?fh(u,a,s+1):u}function Oo(i,a){return i?.[a]??i?.default??i}const dh=new Set(["width","height","top","left","right","bottom",..._i]),HS={test:i=>i==="auto",parse:i=>i},hh=i=>a=>a.test(i),mh=[Ui,rt,nn,On,zb,Rb,HS],ph=i=>mh.find(hh(i));function _S(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||xd(i):!0}const GS=new Set(["brightness","contrast","saturate","opacity"]);function kS(i){const[a,s]=i.slice(0,-1).split("(");if(a==="drop-shadow")return i;const[o]=s.match(oo)||[];if(!o)return i;const u=s.replace(o,"");let d=GS.has(a)?1:0;return o!==s&&(d*=100),a+"("+d+u+")"}const YS=/\b([a-z-]*)\(.*?\)/gu,Bo={...Bn,getAnimatableNone:i=>{const a=i.match(YS);return a?a.map(kS).join(" "):i}},yh={...Ui,transform:Math.round},Vo={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt,...{rotate:On,rotateX:On,rotateY:On,rotateZ:On,scale:as,scaleX:as,scaleY:as,scaleZ:as,skew:On,skewX:On,skewY:On,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Ya,originX:Hd,originY:Hd,originZ:rt},zIndex:yh,fillOpacity:Ya,strokeOpacity:Ya,numOctaves:yh},qS={...Vo,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:Bo,WebkitFilter:Bo},vh=i=>qS[i];function gh(i,a){let s=vh(i);return s!==Bo&&(s=Bn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const XS=new Set(["auto","none","0"]);function KS(i,a,s){let o=0,u;for(;o<i.length&&!u;){const d=i[o];typeof d=="string"&&!XS.has(d)&&Ka(d).values.length&&(u=i[o]),o++}if(u&&s)for(const d of a)i[d]=gh(s,u)}class PS extends wo{constructor(a,s,o,u,d){super(a,s,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let p=a[y];if(typeof p=="string"&&(p=p.trim(),ro(p))){const v=fh(p,s.current);v!==void 0&&(a[y]=v),y===a.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!dh.has(o)||a.length!==2)return;const[u,d]=a,f=ph(u),m=ph(d);if(f!==m)if(eh(f)&&eh(m))for(let y=0;y<a.length;y++){const p=a[y];typeof p=="string"&&(a[y]=parseFloat(p))}else fi[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,o=[];for(let u=0;u<a.length;u++)(a[u]===null||_S(a[u]))&&o.push(u);o.length&&KS(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fi[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(o,u).jump(u,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=fi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,y])=>{a.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function QS(i,a,s){if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const u=s?.[i]??o.querySelectorAll(i);return u?Array.from(u):[]}return Array.from(i)}const bh=(i,a)=>a&&typeof i=="number"?a.transform(i):i;function Sh(i){return Sd(i)&&"offsetHeight"in i}const xh=30,ZS=i=>!isNaN(parseFloat(i));class FS{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const u=ye.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=ye.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=ZS(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new io);const o=this.events[a].add(s);return a==="change"?()=>{o(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>xh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,xh);return Td(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ki(i,a){return new FS(i,a)}const{schedule:No}=Bd(queueMicrotask,!1),Ze={x:!1,y:!1};function Th(){return Ze.x||Ze.y}function JS(i){return i==="x"||i==="y"?Ze[i]?null:(Ze[i]=!0,()=>{Ze[i]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function Eh(i,a){const s=QS(i),o=new AbortController,u={passive:!0,...a,signal:o.signal};return[s,u,()=>o.abort()]}function Mh(i){return!(i.pointerType==="touch"||Th())}function IS(i,a,s={}){const[o,u,d]=Eh(i,s),f=m=>{if(!Mh(m))return;const{target:y}=m,p=a(y,m);if(typeof p!="function"||!y)return;const v=S=>{Mh(S)&&(p(S),y.removeEventListener("pointerleave",v))};y.addEventListener("pointerleave",v,u)};return o.forEach(m=>{m.addEventListener("pointerenter",f,u)}),d}const Ah=(i,a)=>a?i===a?!0:Ah(i,a.parentElement):!1,Uo=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,WS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $S(i){return WS.has(i.tagName)||i.tabIndex!==-1}const os=new WeakSet;function Ch(i){return a=>{a.key==="Enter"&&i(a)}}function Ho(i,a){i.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const tx=(i,a)=>{const s=i.currentTarget;if(!s)return;const o=Ch(()=>{if(os.has(s))return;Ho(s,"down");const u=Ch(()=>{Ho(s,"up")}),d=()=>Ho(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",d,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function Dh(i){return Uo(i)&&!Th()}function ex(i,a,s={}){const[o,u,d]=Eh(i,s),f=m=>{const y=m.currentTarget;if(!Dh(m))return;os.add(y);const p=a(y,m),v=(D,O)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",g),os.has(y)&&os.delete(y),Dh(D)&&typeof p=="function"&&p(D,{success:O})},S=D=>{v(D,y===window||y===document||s.useGlobalTarget||Ah(y,D.target))},g=D=>{v(D,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",g,u)};return o.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,u),Sh(m)&&(m.addEventListener("focus",p=>tx(p,u)),!$S(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Rh(i){return Sd(i)&&"ownerSVGElement"in i}function nx(i){return Rh(i)&&i.tagName==="svg"}const de=i=>!!(i&&i.getVelocity),ix=[...mh,Pt,Bn],ax=i=>ix.find(hh(i)),_o=A.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function zh(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function lx(...i){return a=>{let s=!1;const o=i.map(u=>{const d=zh(u,a);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let u=0;u<o.length;u++){const d=o[u];typeof d=="function"?d():zh(i[u],null)}}}}function sx(...i){return A.useCallback(lx(...i),i)}class rx extends A.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const o=s.offsetParent,u=Sh(o)&&o.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=u-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ox({children:i,isPresent:a,anchorX:s,root:o}){const u=A.useId(),d=A.useRef(null),f=A.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=A.useContext(_o),y=sx(d,i?.ref);return A.useInsertionEffect(()=>{const{width:p,height:v,top:S,left:g,right:D}=f.current;if(a||!d.current||!p||!v)return;const O=s==="left"?`left: ${g}`:`right: ${D}`;d.current.dataset.motionPopId=u;const z=document.createElement("style");m&&(z.nonce=m);const N=o??document.head;return N.appendChild(z),z.sheet&&z.sheet.insertRule(`
19
+ [data-motion-pop-id="${u}"] {
11
20
  position: absolute !important;
12
21
  width: ${p}px !important;
13
- height: ${y}px !important;
14
- ${j}px !important;
22
+ height: ${v}px !important;
23
+ ${O}px !important;
15
24
  top: ${S}px !important;
16
25
  }
17
- `),()=>{O.contains(L)&&O.removeChild(L)}},[i]),x.jsx(Xv,{isPresent:i,childRef:d,sizeRef:f,children:C.cloneElement(a,{ref:m})})}const Fv=({children:a,initial:i,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:f,anchorX:g,root:m})=>{const p=Ir(Kv),y=C.useId();let S=!0,v=C.useMemo(()=>(S=!1,{id:y,initial:i,isPresent:s,custom:c,onExitComplete:z=>{p.set(z,!0);for(const j of p.values())if(!j)return;o&&o()},register:z=>(p.set(z,!1),()=>p.delete(z))}),[s,p,o]);return d&&S&&(v={...v}),C.useMemo(()=>{p.forEach((z,j)=>p.set(j,!1))},[s]),C.useEffect(()=>{!s&&!p.size&&o&&o()},[s]),f==="popLayout"&&(a=x.jsx(Zv,{isPresent:s,anchorX:g,root:m,children:a})),x.jsx(ns.Provider,{value:v,children:a})};function Kv(){return new Map}function Td(a=!0){const i=C.useContext(ns);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=i,d=C.useId();C.useEffect(()=>{if(a)return c(d)},[a]);const f=C.useCallback(()=>a&&o&&o(d),[d,o,a]);return!s&&o?[!1,f]:[!0]}const cs=a=>a.key||"";function Ed(a){const i=[];return C.Children.forEach(a,s=>{C.isValidElement(s)&&i.push(s)}),i}const Qv=({children:a,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:g="left",root:m})=>{const[p,y]=Td(f),S=C.useMemo(()=>Ed(a),[a]),v=f&&!p?[]:S.map(cs),z=C.useRef(!0),j=C.useRef(S),L=Ir(()=>new Map),[O,A]=C.useState(S),[k,G]=C.useState(S);c0(()=>{z.current=!1,j.current=S;for(let F=0;F<k.length;F++){const V=cs(k[F]);v.includes(V)?L.delete(V):L.get(V)!==!0&&L.set(V,!1)}},[k,v.length,v.join("-")]);const P=[];if(S!==O){let F=[...S];for(let V=0;V<k.length;V++){const N=k[V],tt=cs(N);v.includes(tt)||(F.splice(V,0,N),P.push(N))}return d==="wait"&&P.length&&(F=P),G(Ed(F)),A(S),null}const{forceRender:_}=C.useContext(Jr);return x.jsx(x.Fragment,{children:k.map(F=>{const V=cs(F),N=f&&!p?!1:S===k||v.includes(V),tt=()=>{if(L.has(V))L.set(V,!0);else return;let lt=!0;L.forEach(ot=>{ot||(lt=!1)}),lt&&(_?.(),G(j.current),f&&y?.(),o&&o())};return x.jsx(Fv,{isPresent:N,initial:!z.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:N?void 0:tt,anchorX:g,children:F},V)})})},Md=C.createContext({strict:!1}),Ad={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"]},Ya={};for(const a in Ad)Ya[a]={isEnabled:i=>Ad[a].some(s=>!!i[s])};function Pv(a){for(const i in a)Ya[i]={...Ya[i],...a[i]}}const Jv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fs(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Jv.has(a)}let zd=a=>!fs(a);function Iv(a){typeof a=="function"&&(zd=i=>i.startsWith("on")?!fs(i):a(i))}try{Iv(require("@emotion/is-prop-valid").default)}catch{}function Wv(a,i,s){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(zd(c)||s===!0&&fs(c)||!i&&!fs(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const ds=C.createContext({});function hs(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Qi(a){return typeof a=="string"||Array.isArray(a)}const Go=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...Go];function ms(a){return hs(a.animate)||ko.some(i=>Qi(a[i]))}function Cd(a){return!!(ms(a)||a.variants)}function $v(a,i){if(ms(a)){const{initial:s,animate:o}=a;return{initial:s===!1||Qi(s)?s:void 0,animate:Qi(o)?o:void 0}}return a.inherit!==!1?i:{}}function t4(a){const{initial:i,animate:s}=$v(a,C.useContext(ds));return C.useMemo(()=>({initial:i,animate:s}),[wd(i),wd(s)])}function wd(a){return Array.isArray(a)?a.join(" "):a}function Dd(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Pi={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(rt.test(a))a=parseFloat(a);else return a;const s=Dd(a,i.target.x),o=Dd(a,i.target.y);return`${s}% ${o}%`}},e4={correct:(a,{treeScale:i,projectionDelta:s})=>{const o=a,c=jn.parse(a);if(c.length>5)return o;const d=jn.createTransformer(a),f=typeof c[0]!="number"?1:0,g=s.x.scale*i.x,m=s.y.scale*i.y;c[0+f]/=g,c[1+f]/=m;const p=Ut(g,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},Yo={borderRadius:{...Pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pi,borderTopRightRadius:Pi,borderBottomLeftRadius:Pi,borderBottomRightRadius:Pi,boxShadow:e4};function Rd(a,{layout:i,layoutId:s}){return Ga.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Yo[a]||a==="opacity")}const n4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a4=_a.length;function i4(a,i,s){let o="",c=!0;for(let d=0;d<a4;d++){const f=_a[d],g=a[f];if(g===void 0)continue;let m=!0;if(typeof g=="number"?m=g===(f.startsWith("scale")?1:0):m=parseFloat(g)===0,!m||s){const p=fd(g,Oo[f]);if(!m){c=!1;const y=n4[f]||f;o+=`${y}(${p}) `}s&&(i[f]=p)}}return o=o.trim(),s?o=s(i,c?"":o):c&&(o="none"),o}function qo(a,i,s){const{style:o,vars:c,transformOrigin:d}=a;let f=!1,g=!1;for(const m in i){const p=i[m];if(Ga.has(m)){f=!0;continue}else if(w0(m)){c[m]=p;continue}else{const y=fd(p,Oo[m]);m.startsWith("origin")?(g=!0,d[m]=y):o[m]=y}}if(i.transform||(f||s?o.transform=i4(i,a.transform,s):o.transform&&(o.transform="none")),g){const{originX:m="50%",originY:p="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${p} ${y}`}}const Xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ld(a,i,s){for(const o in i)!de(i[o])&&!Rd(o,s)&&(a[o]=i[o])}function l4({transformTemplate:a},i){return C.useMemo(()=>{const s=Xo();return qo(s,i,a),Object.assign({},s.vars,s.style)},[i])}function s4(a,i){const s=a.style||{},o={};return Ld(o,s,a),Object.assign(o,l4(a,i)),o}function r4(a,i){const s={},o=s4(a,i);return a.drag&&a.dragListener!==!1&&(s.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)&&(s.tabIndex=0),s.style=o,s}const o4={offset:"stroke-dashoffset",array:"stroke-dasharray"},u4={offset:"strokeDashoffset",array:"strokeDasharray"};function c4(a,i,s=1,o=0,c=!0){a.pathLength=1;const d=c?o4:u4;a[d.offset]=rt.transform(-o);const f=rt.transform(i),g=rt.transform(s);a[d.array]=`${f} ${g}`}function Bd(a,{attrX:i,attrY:s,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...g},m,p,y){if(qo(a,g,p),m){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:S,style:v}=a;S.transform&&(v.transform=S.transform,delete S.transform),(v.transform||S.transformOrigin)&&(v.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),v.transform&&(v.transformBox=y?.transformBox??"fill-box",delete S.transformBox),i!==void 0&&(S.x=i),s!==void 0&&(S.y=s),o!==void 0&&(S.scale=o),c!==void 0&&c4(S,c,d,f,!1)}const Vd=()=>({...Xo(),attrs:{}}),jd=a=>typeof a=="string"&&a.toLowerCase()==="svg";function f4(a,i,s,o){const c=C.useMemo(()=>{const d=Vd();return Bd(d,i,jd(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Ld(d,a.style,a),c.style={...d,...c.style}}return c}const d4=["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 Zo(a){return typeof a!="string"||a.includes("-")?!1:!!(d4.indexOf(a)>-1||/[A-Z]/u.test(a))}function h4(a,i,s,{latestValues:o},c,d=!1){const g=(Zo(a)?f4:r4)(i,o,c,a),m=Wv(i,typeof a=="string",d),p=a!==C.Fragment?{...m,...g,ref:s}:{},{children:y}=i,S=C.useMemo(()=>de(y)?y.get():y,[y]);return C.createElement(a,{...p,children:S})}function Od(a){const i=[{},{}];return a?.values.forEach((s,o)=>{i[0][o]=s.get(),i[1][o]=s.getVelocity()}),i}function Fo(a,i,s,o){if(typeof i=="function"){const[c,d]=Od(o);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=Od(o);i=i(s!==void 0?s:a.custom,c,d)}return i}function ps(a){return de(a)?a.get():a}function m4({scrapeMotionValuesFromProps:a,createRenderState:i},s,o,c){return{latestValues:p4(s,o,c,a),renderState:i()}}function p4(a,i,s,o){const c={},d=o(a,{});for(const v in d)c[v]=ps(d[v]);let{initial:f,animate:g}=a;const m=ms(a),p=Cd(a);i&&p&&!m&&a.inherit!==!1&&(f===void 0&&(f=i.initial),g===void 0&&(g=i.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const S=y?g:f;if(S&&typeof S!="boolean"&&!hs(S)){const v=Array.isArray(S)?S:[S];for(let z=0;z<v.length;z++){const j=Fo(a,v[z]);if(j){const{transitionEnd:L,transition:O,...A}=j;for(const k in A){let G=A[k];if(Array.isArray(G)){const P=y?G.length-1:0;G=G[P]}G!==null&&(c[k]=G)}for(const k in L)c[k]=L[k]}}}return c}const Nd=a=>(i,s)=>{const o=C.useContext(ds),c=C.useContext(ns),d=()=>m4(a,i,o,c);return s?d():Ir(d)};function Ko(a,i,s){const{style:o}=a,c={};for(const d in o)(de(o[d])||i.style&&de(i.style[d])||Rd(d,a)||s?.getValue(d)?.liveStyle!==void 0)&&(c[d]=o[d]);return c}const g4=Nd({scrapeMotionValuesFromProps:Ko,createRenderState:Xo});function Hd(a,i,s){const o=Ko(a,i,s);for(const c in a)if(de(a[c])||de(i[c])){const d=_a.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}const y4=Nd({scrapeMotionValuesFromProps:Hd,createRenderState:Vd}),v4=Symbol.for("motionComponentSymbol");function qa(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function b4(a,i,s){return C.useCallback(o=>{o&&a.onMount&&a.onMount(o),i&&(o?i.mount(o):i.unmount()),s&&(typeof s=="function"?s(o):qa(s)&&(s.current=o))},[i])}const Qo=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ud="data-"+Qo("framerAppearId"),_d=C.createContext({});function S4(a,i,s,o,c){const{visualElement:d}=C.useContext(ds),f=C.useContext(Md),g=C.useContext(ns),m=C.useContext(_o).reducedMotion,p=C.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:i,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:m}));const y=p.current,S=C.useContext(_d);y&&!y.projection&&c&&(y.type==="html"||y.type==="svg")&&x4(p.current,s,c,S);const v=C.useRef(!1);C.useInsertionEffect(()=>{y&&v.current&&y.update(s,g)});const z=s[Ud],j=C.useRef(!!z&&!window.MotionHandoffIsComplete?.(z)&&window.MotionHasOptimisedAnimation?.(z));return c0(()=>{y&&(v.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),j.current&&y.animationState&&y.animationState.animateChanges())}),C.useEffect(()=>{y&&(!j.current&&y.animationState&&y.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(z)}),j.current=!1),y.enteringChildren=void 0)}),y}function x4(a,i,s,o){const{layoutId:c,layout:d,drag:f,dragConstraints:g,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:Gd(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||g&&qa(g),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function Gd(a){if(a)return a.options.allowProjection!==!1?a.projection:Gd(a.parent)}function Po(a,{forwardMotionProps:i=!1}={},s,o){s&&Pv(s);const c=Zo(a)?y4:g4;function d(g,m){let p;const y={...C.useContext(_o),...g,layoutId:T4(g)},{isStatic:S}=y,v=t4(g),z=c(g,S);if(!S&&Wr){E4();const j=M4(y);p=j.MeasureLayout,v.visualElement=S4(a,z,y,o,j.ProjectionNode)}return x.jsxs(ds.Provider,{value:v,children:[p&&v.visualElement?x.jsx(p,{visualElement:v.visualElement,...y}):null,h4(a,g,b4(z,v.visualElement,m),z,S,i)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=C.forwardRef(d);return f[v4]=a,f}function T4({layoutId:a}){const i=C.useContext(Jr).id;return i&&a!==void 0?i+"-"+a:a}function E4(a,i){C.useContext(Md).strict}function M4(a){const{drag:i,layout:s}=Ya;if(!i&&!s)return{};const o={...i,...s};return{MeasureLayout:i?.isEnabled(a)||s?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function A4(a,i){if(typeof Proxy>"u")return Po;const s=new Map,o=(d,f)=>Po(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,Po(f,void 0,a,i)),s.get(f))})}function kd({top:a,left:i,right:s,bottom:o}){return{x:{min:i,max:s},y:{min:a,max:o}}}function z4({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function C4(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Jo(a){return a===void 0||a===1}function Io({scale:a,scaleX:i,scaleY:s}){return!Jo(a)||!Jo(i)||!Jo(s)}function ha(a){return Io(a)||Yd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Yd(a){return qd(a.x)||qd(a.y)}function qd(a){return a&&a!=="0%"}function gs(a,i,s){const o=a-s,c=i*o;return s+c}function Xd(a,i,s,o,c){return c!==void 0&&(a=gs(a,c,o)),gs(a,s,o)+i}function Wo(a,i=0,s=1,o,c){a.min=Xd(a.min,i,s,o,c),a.max=Xd(a.max,i,s,o,c)}function Zd(a,{x:i,y:s}){Wo(a.x,i.translate,i.scale,i.originPoint),Wo(a.y,s.translate,s.scale,s.originPoint)}const Fd=.999999999999,Kd=1.0000000000001;function w4(a,i,s,o=!1){const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let g=0;g<c;g++){d=s[g],f=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Za(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Zd(a,f)),o&&ha(d.latestValues)&&Za(a,d.latestValues))}i.x<Kd&&i.x>Fd&&(i.x=1),i.y<Kd&&i.y>Fd&&(i.y=1)}function Xa(a,i){a.min=a.min+i,a.max=a.max+i}function Qd(a,i,s,o,c=.5){const d=Ut(a.min,a.max,c);Wo(a,i,s,d,o)}function Za(a,i){Qd(a.x,i.x,i.scaleX,i.scale,i.originX),Qd(a.y,i.y,i.scaleY,i.scale,i.originY)}function Pd(a,i){return kd(C4(a.getBoundingClientRect(),i))}function D4(a,i,s){const o=Pd(a,s),{scroll:c}=i;return c&&(Xa(o.x,c.offset.x),Xa(o.y,c.offset.y)),o}const Jd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fa=()=>({x:Jd(),y:Jd()}),Id=()=>({min:0,max:0}),It=()=>({x:Id(),y:Id()}),$o={current:null},Wd={current:!1};function R4(){if(Wd.current=!0,!!Wr)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>$o.current=a.matches;a.addEventListener("change",i),i()}else $o.current=!1}const L4=new WeakMap;function B4(a,i,s){for(const o in i){const c=i[o],d=s[o];if(de(c))a.addValue(o,c);else if(de(d))a.addValue(o,ka(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,ka(f!==void 0?f:c,{owner:a}))}}for(const o in s)i[o]===void 0&&a.removeValue(o);return i}const $d=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V4{scrapeMotionValuesFromProps(i,s,o){return{}}constructor({parent:i,props:s,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 v=ge.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Ot.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=p,this.parent=i,this.props=s,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=ms(s),this.isVariantNode=Cd(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:y,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in S){const z=S[v];m[v]!==void 0&&de(z)&&z.set(m[v])}}mount(i){this.current=i,L4.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),Wd.current||R4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$o.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Bn(this.notifyUpdate),Bn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const o=Ga.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Ya){const s=Ya[i];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<$d.length;o++){const c=$d[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=B4(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const o=this.values.get(i);s!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&s!==void 0&&(o=ka(s===null?void 0:s,{owner:this}),this.addValue(i,o)),o}readValue(i,s){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(f0(o)||h0(o))?o=parseFloat(o):!kv(o)&&jn.test(s)&&(o=cd(i,s)),this.setBaseTarget(i,de(o)?o.get():o)),de(o)?o.get():o}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const d=Fo(this.props,s,this.presenceContext?.custom);d&&(o=d[i])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!de(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new ao),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){No.render(this.render)}}class th extends V4{constructor(){super(...arguments),this.KeyframeResolver=Dv}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:o}){delete s[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;de(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function eh(a,{style:i,vars:s},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c?.applyProjectionStyles(d,o);for(f in s)d.setProperty(f,s[f])}function j4(a){return window.getComputedStyle(a)}class O4 extends th{constructor(){super(...arguments),this.type="html",this.renderInstance=eh}readValueFromInstance(i,s){if(Ga.has(s))return this.projection?.isProjecting?zo(s):Py(i,s);{const o=j4(i),c=(w0(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Pd(i,s)}build(i,s,o){qo(i,s,o.transformTemplate)}scrapeMotionValuesFromProps(i,s,o){return Ko(i,s,o)}}const nh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N4(a,i,s,o){eh(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(nh.has(c)?c:Qo(c),i.attrs[c])}class H4 extends th{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ga.has(s)){const o=ud(s);return o&&o.default||0}return s=nh.has(s)?s:Qo(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,o){return Hd(i,s,o)}build(i,s,o){Bd(i,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,s,o,c){N4(i,s,o,c)}mount(i){this.isSVGTag=jd(i.tagName),super.mount(i)}}const U4=(a,i)=>Zo(a)?new H4(i):new O4(i,{allowProjection:a!==C.Fragment});function Ka(a,i,s){const o=a.getProps();return Fo(o,i,s!==void 0?s:o.custom,a)}const tu=a=>Array.isArray(a);function _4(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,ka(s))}function G4(a){return tu(a)?a[a.length-1]||0:a}function k4(a,i){const s=Ka(a,i);let{transitionEnd:o={},transition:c={},...d}=s||{};d={...d,...o};for(const f in d){const g=G4(d[f]);_4(a,f,g)}}function Y4(a){return!!(de(a)&&a.add)}function eu(a,i){const s=a.getValue("willChange");if(Y4(s))return s.add(i);if(!s&&fn.WillChange){const o=new fn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function ah(a){return a.props[Ud]}const q4=a=>a!==null;function X4(a,{repeat:i,repeatType:s="loop"},o){const c=a.filter(q4),d=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[d]}const Z4={type:"spring",stiffness:500,damping:25,restSpeed:10},F4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),K4={type:"keyframes",duration:.8},Q4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P4=(a,{keyframes:i})=>i.length>2?K4:Ga.has(a)?a.startsWith("scale")?F4(i[1]):Z4:Q4;function J4({when:a,delay:i,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:g,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const nu=(a,i,s,o={},c,d)=>f=>{const g=Vo(o,a)||{},m=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-en(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-p,onUpdate:v=>{i.set(v),g.onUpdate&&g.onUpdate(v)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:d?void 0:c};J4(g)||Object.assign(y,P4(a,y)),y.duration&&(y.duration=en(y.duration)),y.repeatDelay&&(y.repeatDelay=en(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let S=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Bo(y),y.delay===0&&(S=!0)),(fn.instantAnimations||fn.skipAnimations)&&(S=!0,Bo(y),y.delay=0),y.allowFlatten=!g.type&&!g.ease,S&&!d&&i.get()!==void 0){const v=X4(y.keyframes,g);if(v!==void 0){Ot.update(()=>{y.onUpdate(v),y.onComplete()});return}}return g.isSync?new Eo(y):new vv(y)};function I4({protectedKeys:a,needsAnimating:i},s){const o=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,o}function ih(a,i,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:d=a.getDefaultTransition(),transitionEnd:f,...g}=i;o&&(d=o);const m=[],p=c&&a.animationState&&a.animationState.getState()[c];for(const y in g){const S=a.getValue(y,a.latestValues[y]??null),v=g[y];if(v===void 0||p&&I4(p,y))continue;const z={delay:s,...Vo(d||{},y)},j=S.get();if(j!==void 0&&!S.isAnimating&&!Array.isArray(v)&&v===j&&!z.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const A=ah(a);if(A){const k=window.MotionHandoffAnimation(A,y,Ot);k!==null&&(z.startTime=k,L=!0)}}eu(a,y),S.start(nu(y,S,v,a.shouldReduceMotion&&id.has(y)?{type:!1}:z,a,L));const O=S.animation;O&&m.push(O)}return f&&Promise.all(m).then(()=>{Ot.update(()=>{f&&k4(a,f)})}),m}function lh(a,i,s,o=0,c=1){const d=Array.from(a).sort((p,y)=>p.sortNodePosition(y)).indexOf(i),f=a.size,g=(f-1)*o;return typeof s=="function"?s(d,f):c===1?d*o:g-d*o}function au(a,i,s={}){const o=Ka(a,i,s.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const d=o?()=>Promise.all(ih(a,o,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:S}=c;return W4(a,i,m,p,y,S,s)}:()=>Promise.resolve(),{when:g}=c;if(g){const[m,p]=g==="beforeChildren"?[d,f]:[f,d];return m().then(()=>p())}else return Promise.all([d(),f(s.delay)])}function W4(a,i,s=0,o=0,c=0,d=1,f){const g=[];for(const m of a.variantChildren)m.notify("AnimationStart",i),g.push(au(m,i,{...f,delay:s+(typeof o=="function"?0:o)+lh(a.variantChildren,m,o,c,d)}).then(()=>m.notify("AnimationComplete",i)));return Promise.all(g)}function $4(a,i,s={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>au(a,d,s));o=Promise.all(c)}else if(typeof i=="string")o=au(a,i,s);else{const c=typeof i=="function"?Ka(a,i,s.custom):i;o=Promise.all(ih(a,c,s))}return o.then(()=>{a.notify("AnimationComplete",i)})}function sh(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let o=0;o<s;o++)if(i[o]!==a[o])return!1;return!0}const t5=ko.length;function rh(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?rh(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<t5;s++){const o=ko[s],c=a.props[o];(Qi(c)||c===!1)&&(i[o]=c)}return i}const e5=[...Go].reverse(),n5=Go.length;function a5(a){return i=>Promise.all(i.map(({animation:s,options:o})=>$4(a,s,o)))}function i5(a){let i=a5(a),s=oh(),o=!0;const c=m=>(p,y)=>{const S=Ka(a,y,m==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:v,transitionEnd:z,...j}=S;p={...p,...j,...z}}return p};function d(m){i=m(a)}function f(m){const{props:p}=a,y=rh(a.parent)||{},S=[],v=new Set;let z={},j=1/0;for(let O=0;O<n5;O++){const A=e5[O],k=s[A],G=p[A]!==void 0?p[A]:y[A],P=Qi(G),_=A===m?k.isActive:null;_===!1&&(j=O);let F=G===y[A]&&G!==p[A]&&P;if(F&&o&&a.manuallyAnimateOnMount&&(F=!1),k.protectedKeys={...z},!k.isActive&&_===null||!G&&!k.prevProp||hs(G)||typeof G=="boolean")continue;const V=l5(k.prevProp,G);let N=V||A===m&&k.isActive&&!F&&P||O>j&&P,tt=!1;const lt=Array.isArray(G)?G:[G];let ot=lt.reduce(c(A),{});_===!1&&(ot={});const{prevResolvedValues:I={}}=k,ut={...I,...ot},dt=U=>{N=!0,v.has(U)&&(tt=!0,v.delete(U)),k.needsAnimating[U]=!0;const K=a.getValue(U);K&&(K.liveStyle=!1)};for(const U in ut){const K=ot[U],nt=I[U];if(z.hasOwnProperty(U))continue;let gt=!1;tu(K)&&tu(nt)?gt=!sh(K,nt):gt=K!==nt,gt?K!=null?dt(U):v.add(U):K!==void 0&&v.has(U)?dt(U):k.protectedKeys[U]=!0}k.prevProp=G,k.prevResolvedValues=ot,k.isActive&&(z={...z,...ot}),o&&a.blockInitialAnimation&&(N=!1);const it=F&&V;N&&(!it||tt)&&S.push(...lt.map(U=>{const K={type:A};if(typeof U=="string"&&o&&!it&&a.manuallyAnimateOnMount&&a.parent){const{parent:nt}=a,gt=Ka(nt,U);if(nt.enteringChildren&&gt){const{delayChildren:Bt}=gt.transition||{};K.delay=lh(nt.enteringChildren,a,Bt)}}return{animation:U,options:K}}))}if(v.size){const O={};if(typeof p.initial!="boolean"){const A=Ka(a,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(O.transition=A.transition)}v.forEach(A=>{const k=a.getBaseTarget(A),G=a.getValue(A);G&&(G.liveStyle=!0),O[A]=k??null}),S.push({animation:O})}let L=!!S.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(L=!1),o=!1,L?i(S):Promise.resolve()}function g(m,p){if(s[m].isActive===p)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(m,p)),s[m].isActive=p;const y=f(m);for(const S in s)s[S].protectedKeys={};return y}return{animateChanges:f,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=oh()}}}function l5(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!sh(i,a):!1}function ma(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oh(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}class On{constructor(i){this.isMounted=!1,this.node=i}update(){}}class s5 extends On{constructor(i){super(i),i.animationState||(i.animationState=i5(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();hs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let r5=0;class o5 extends On{constructor(){super(...arguments),this.id=r5++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const u5={animation:{Feature:s5},exit:{Feature:o5}};function Ji(a,i,s,o={passive:!0}){return a.addEventListener(i,s,o),()=>a.removeEventListener(i,s)}function Ii(a){return{point:{x:a.pageX,y:a.pageY}}}const c5=a=>i=>Ho(i)&&a(i,Ii(i));function Wi(a,i,s,o){return Ji(a,i,c5(s),o)}const uh=1e-4,f5=1-uh,d5=1+uh,ch=.01,h5=0-ch,m5=0+ch;function he(a){return a.max-a.min}function p5(a,i,s){return Math.abs(a-i)<=s}function fh(a,i,s,o=.5){a.origin=o,a.originPoint=Ut(i.min,i.max,a.origin),a.scale=he(s)/he(i),a.translate=Ut(s.min,s.max,a.origin)-a.originPoint,(a.scale>=f5&&a.scale<=d5||isNaN(a.scale))&&(a.scale=1),(a.translate>=h5&&a.translate<=m5||isNaN(a.translate))&&(a.translate=0)}function $i(a,i,s,o){fh(a.x,i.x,s.x,o?o.originX:void 0),fh(a.y,i.y,s.y,o?o.originY:void 0)}function dh(a,i,s){a.min=s.min+i.min,a.max=a.min+he(i)}function g5(a,i,s){dh(a.x,i.x,s.x),dh(a.y,i.y,s.y)}function hh(a,i,s){a.min=i.min-s.min,a.max=a.min+he(i)}function ys(a,i,s){hh(a.x,i.x,s.x),hh(a.y,i.y,s.y)}function He(a){return[a("x"),a("y")]}const mh=({current:a})=>a?a.ownerDocument.defaultView:null,ph=(a,i)=>Math.abs(a-i);function y5(a,i){const s=ph(a.x,i.x),o=ph(a.y,i.y);return Math.sqrt(s**2+o**2)}class gh{constructor(i,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=lu(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,j=y5(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!j)return;const{point:L}=v,{timestamp:O}=ie;this.history.push({...L,timestamp:O});const{onStart:A,onMove:k}=this.handlers;z||(A&&A(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,v)},this.handlePointerMove=(v,z)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=iu(z,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(v,z)=>{this.end();const{onEnd:j,onSessionEnd:L,resumeAnimation:O}=this.handlers;if(this.dragSnapToOrigin&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=lu(v.type==="pointercancel"?this.lastMoveEventInfo:iu(z,this.transformPagePoint),this.history);this.startEvent&&j&&j(v,A),L&&L(v,A)},!Ho(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const g=Ii(i),m=iu(g,this.transformPagePoint),{point:p}=m,{timestamp:y}=ie;this.history=[{...p,timestamp:y}];const{onSessionStart:S}=s;S&&S(i,lu(m,this.history)),this.removeListeners=_i(Wi(this.contextWindow,"pointermove",this.handlePointerMove),Wi(this.contextWindow,"pointerup",this.handlePointerUp),Wi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Bn(this.updatePoint)}}function iu(a,i){return i?{point:i(a.point)}:a}function yh(a,i){return{x:a.x-i.x,y:a.y-i.y}}function lu({point:a},i){return{point:a,delta:yh(a,vh(i)),offset:yh(a,v5(i)),velocity:b5(i,.1)}}function v5(a){return a[0]}function vh(a){return a[a.length-1]}function b5(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,o=null;const c=vh(a);for(;s>=0&&(o=a[s],!(c.timestamp-o.timestamp>en(i)));)s--;if(!o)return{x:0,y:0};const d=Ne(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function S5(a,{min:i,max:s},o){return i!==void 0&&a<i?a=o?Ut(i,a,o.min):Math.max(a,i):s!==void 0&&a>s&&(a=o?Ut(s,a,o.max):Math.min(a,s)),a}function bh(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function x5(a,{top:i,left:s,bottom:o,right:c}){return{x:bh(a.x,s,c),y:bh(a.y,i,o)}}function Sh(a,i){let s=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,o]=[o,s]),{min:s,max:o}}function T5(a,i){return{x:Sh(a.x,i.x),y:Sh(a.y,i.y)}}function E5(a,i){let s=.5;const o=he(a),c=he(i);return c>o?s=Gi(i.min,i.max-o,a.min):o>c&&(s=Gi(a.min,a.max-c,i.min)),cn(0,1,s)}function M5(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const su=.35;function A5(a=su){return a===!1?a=0:a===!0&&(a=su),{x:xh(a,"left","right"),y:xh(a,"top","bottom")}}function xh(a,i,s){return{min:Th(a,i),max:Th(a,s)}}function Th(a,i){return typeof a=="number"?a:a[i]||0}const z5=new WeakMap;class C5{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ii(S).point)},f=(S,v)=>{const{drag:z,dragPropagation:j,onDragStart:L}=this.getProps();if(z&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vv(z),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),He(A=>{let k=this.getAxisMotionValue(A).get()||0;if(nn.test(k)){const{projection:G}=this.visualElement;if(G&&G.layout){const P=G.layout.layoutBox[A];P&&(k=he(P)*(parseFloat(k)/100))}}this.originPoint[A]=k}),L&&Ot.postRender(()=>L(S,v)),eu(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},g=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v;const{dragPropagation:z,dragDirectionLock:j,onDirectionLock:L,onDrag:O}=this.getProps();if(!z&&!this.openDragLock)return;const{offset:A}=v;if(j&&this.currentDirection===null){this.currentDirection=w5(A),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),O&&O(S,v)},m=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v,this.stop(S,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>He(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new gh(i,{onSessionStart:d,onStart:f,onMove:g,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:mh(this.visualElement)})}stop(i,s){const o=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Ot.postRender(()=>g(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,o){const{drag:c}=this.getProps();if(!o||!vs(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=S5(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&qa(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=x5(o.layoutBox,i):this.constraints=!1,this.elastic=A5(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&He(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=M5(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!qa(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=D4(o,c.root,this.visualElement.getTransformPagePoint());let f=T5(c.layout.layoutBox,d);if(s){const g=s(z4(f));this.hasMutatedConstraints=!!g,g&&(f=kd(g))}return f}startAnimation(i){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),m=this.constraints||{},p=He(y=>{if(!vs(y,s,this.currentDirection))return;let S=m&&m[y]||{};f&&(S={min:0,max:0});const v=c?200:1e6,z=c?40:1e7,j={type:"inertia",velocity:o?i[y]:0,bounceStiffness:v,bounceDamping:z,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(y,j)});return Promise.all(p).then(g)}startAxisValueAnimation(i,s){const o=this.getAxisMotionValue(i);return eu(this.visualElement,i),o.start(nu(i,o,0,s,this.visualElement,!1))}stopAnimation(){He(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){He(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){He(s=>{const{drag:o}=this.getProps();if(!vs(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:g}=c.layout.layoutBox[s];d.set(i[s]-Ut(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!qa(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};He(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const m=g.get();c[f]=E5({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),He(f=>{if(!vs(f,i,null))return;const g=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];g.set(Ut(m,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;z5.set(this.visualElement,this);const i=this.visualElement.current,s=Wi(i,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();qa(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ot.read(o);const f=Ji(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(He(y=>{const S=this.getAxisMotionValue(y);S&&(this.originPoint[y]+=m[y].translate,S.set(S.get()+m[y].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=su,dragMomentum:g=!0}=i;return{...i,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:g}}}function vs(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function w5(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class D5 extends On{constructor(i){super(i),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new C5(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eh=a=>(i,s)=>{a&&Ot.postRender(()=>a(i,s))};class R5 extends On{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(i){this.session=new gh(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mh(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Eh(i),onStart:Eh(s),onMove:o,onEnd:(d,f)=>{delete this.session,c&&Ot.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Wi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ru=!1;class L5 extends C.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),o&&o.register&&c&&o.register(d),ru&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,ru=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ot.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),No.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=i;ru=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Mh(a){const[i,s]=Td(),o=C.useContext(Jr);return x.jsx(L5,{...a,layoutGroup:o,switchLayoutGroup:C.useContext(_d),isPresent:i,safeToRemove:s})}function B5(a,i,s){const o=de(a)?a:ka(a);return o.start(nu("",o,i,s)),o.animation}const V5=(a,i)=>a.depth-i.depth;class j5{constructor(){this.children=[],this.isDirty=!1}add(i){$r(this.children,i),this.isDirty=!0}remove(i){to(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(V5),this.isDirty=!1,this.children.forEach(i)}}function O5(a,i){const s=ge.now(),o=({timestamp:c})=>{const d=c-s;d>=i&&(Bn(o),a(d-i))};return Ot.setup(o,!0),()=>Bn(o)}const Ah=["TopLeft","TopRight","BottomLeft","BottomRight"],N5=Ah.length,zh=a=>typeof a=="string"?parseFloat(a):a,Ch=a=>typeof a=="number"||rt.test(a);function H5(a,i,s,o,c,d){c?(a.opacity=Ut(0,s.opacity??1,U5(o)),a.opacityExit=Ut(i.opacity??1,0,_5(o))):d&&(a.opacity=Ut(i.opacity??1,s.opacity??1,o));for(let f=0;f<N5;f++){const g=`border${Ah[f]}Radius`;let m=wh(i,g),p=wh(s,g);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Ch(m)===Ch(p)?(a[g]=Math.max(Ut(zh(m),zh(p),o),0),(nn.test(p)||nn.test(m))&&(a[g]+="%")):a[g]=p}(i.rotate||s.rotate)&&(a.rotate=Ut(i.rotate||0,s.rotate||0,o))}function wh(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const U5=Dh(0,.5,x0),_5=Dh(.5,.95,Oe);function Dh(a,i,s){return o=>o<a?0:o>i?1:s(Gi(a,i,o))}function Rh(a,i){a.min=i.min,a.max=i.max}function Pe(a,i){Rh(a.x,i.x),Rh(a.y,i.y)}function Lh(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function Bh(a,i,s,o,c){return a-=i,a=gs(a,1/s,o),c!==void 0&&(a=gs(a,1/c,o)),a}function G5(a,i=0,s=1,o=.5,c,d=a,f=a){if(nn.test(i)&&(i=parseFloat(i),i=Ut(f.min,f.max,i/100)-f.min),typeof i!="number")return;let g=Ut(d.min,d.max,o);a===d&&(g-=i),a.min=Bh(a.min,i,s,g,c),a.max=Bh(a.max,i,s,g,c)}function Vh(a,i,[s,o,c],d,f){G5(a,i[s],i[o],i[c],i.scale,d,f)}const k5=["x","scaleX","originX"],Y5=["y","scaleY","originY"];function jh(a,i,s,o){Vh(a.x,i,k5,s?s.x:void 0,o?o.x:void 0),Vh(a.y,i,Y5,s?s.y:void 0,o?o.y:void 0)}function Oh(a){return a.translate===0&&a.scale===1}function Nh(a){return Oh(a.x)&&Oh(a.y)}function Hh(a,i){return a.min===i.min&&a.max===i.max}function q5(a,i){return Hh(a.x,i.x)&&Hh(a.y,i.y)}function Uh(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function _h(a,i){return Uh(a.x,i.x)&&Uh(a.y,i.y)}function Gh(a){return he(a.x)/he(a.y)}function kh(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class X5{constructor(){this.members=[]}add(i){$r(this.members,i),i.scheduleRender()}remove(i){if(to(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let o;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(i,s){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.instance&&o.scheduleRender(),i.scheduleRender(),i.resumeFrom=o,s&&(i.resumeFrom.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:o}=i;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Z5(a,i,s){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=s?.z||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:y,rotateX:S,rotateY:v,skewX:z,skewY:j}=s;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),S&&(o+=`rotateX(${S}deg) `),v&&(o+=`rotateY(${v}deg) `),z&&(o+=`skewX(${z}deg) `),j&&(o+=`skewY(${j}deg) `)}const g=a.x.scale*i.x,m=a.y.scale*i.y;return(g!==1||m!==1)&&(o+=`scale(${g}, ${m})`),o||"none"}const ou=["","X","Y","Z"],F5=1e3;let K5=0;function uu(a,i,s,o){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function Yh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=ah(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",Ot,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Yh(o)}function qh({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},g=i?.()){this.id=K5++,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(J5),this.nodes.forEach(tb),this.nodes.forEach(eb),this.nodes.forEach(I5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new j5)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new ao),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const m=this.eventHandlers.get(f);m&&m.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Sd(f)&&!_v(f),this.instance=f;const{layoutId:g,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||g)&&(this.isLayoutDirty=!0),a){let y,S=0;const v=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{S=window.innerWidth}),a(f,()=>{const z=window.innerWidth;z!==S&&(S=z,this.root.updateBlockedByResize=!0,y&&y(),y=O5(v,250),bs.hasAnimatedSinceResize&&(bs.hasAnimatedSinceResize=!1,this.nodes.forEach(Fh)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:S,hasRelativeLayoutChanged:v,layout:z})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||sb,{onLayoutAnimationStart:L,onLayoutAnimationComplete:O}=p.getProps(),A=!this.targetLayout||!_h(this.targetLayout,z),k=!S&&v;if(this.options.layoutRoot||this.resumeFrom||k||S&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Vo(j,"layout"),onPlay:L,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(y,k)}else S||Fh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=z})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bn(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(nb),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const S=this.path[y];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:g,layout:m}=this.options;if(g===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($5),this.nodes.forEach(Q5),this.nodes.forEach(P5)):this.nodes.forEach(Zh),this.clearAllSnapshots();const g=ge.now();ie.delta=cn(0,1e3/60,g-ie.timestamp),ie.timestamp=g,ie.isProcessing=!0,so.update.process(ie),so.preRender.process(ie),so.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,No.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(W5),this.sharedNodes.forEach(ab)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Nh(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||ha(this.latestValues)||y)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let m=this.removeElementScroll(g);return f&&(m=this.removeTransform(m)),rb(m),{animationId:this.root.animationId,measuredBox:g,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return It();const g=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ob))){const{scroll:p}=this.root;p&&(Xa(g.x,p.offset.x),Xa(g.y,p.offset.y))}return g}removeElementScroll(f){const g=It();if(Pe(g,f),this.scroll?.wasRoot)return g;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:y,options:S}=p;p!==this.root&&y&&S.layoutScroll&&(y.wasRoot&&Pe(g,f),Xa(g.x,y.offset.x),Xa(g.y,y.offset.y))}return g}applyTransform(f,g=!1){const m=It();Pe(m,f);for(let p=0;p<this.path.length;p++){const y=this.path[p];!g&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Za(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),ha(y.latestValues)&&Za(m,y.latestValues)}return ha(this.latestValues)&&Za(m,this.latestValues),m}removeTransform(f){const g=It();Pe(g,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!ha(p.latestValues))continue;Io(p.latestValues)&&p.updateSnapshot();const y=It(),S=p.measurePageBox();Pe(y,S),jh(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return ha(this.latestValues)&&jh(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==g;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:S}=this.options;if(!this.layout||!(y||S))return;this.resolvedRelativeTargetAt=ie.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pe(this.target,this.layout.layoutBox),Zd(this.target,this.targetDelta)):Pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Io(this.parent.latestValues)||Yd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,g,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),ys(this.relativeTargetOrigin,g,m),Pe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),g=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(m=!1),m)return;const{layout:p,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||!(p||y))return;Pe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,v=this.treeScale.y;w4(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=It());const{target:z}=f;if(!z){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lh(this.prevProjectionDelta.x,this.projectionDelta.x),Lh(this.prevProjectionDelta.y,this.projectionDelta.y)),$i(this.projectionDelta,this.layoutCorrected,z,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==v||!kh(this.projectionDelta.x,this.prevProjectionDelta.x)||!kh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",z))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fa(),this.projectionDelta=Fa(),this.projectionDeltaWithTransform=Fa()}setAnimationOrigin(f,g=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},S=Fa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const v=It(),z=m?m.source:void 0,j=this.layout?this.layout.source:void 0,L=z!==j,O=this.getStack(),A=!O||O.members.length<=1,k=!!(L&&!A&&this.options.crossfade===!0&&!this.path.some(lb));this.animationProgress=0;let G;this.mixTargetDelta=P=>{const _=P/1e3;Kh(S.x,f.x,_),Kh(S.y,f.y,_),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ys(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ib(this.relativeTarget,this.relativeTargetOrigin,v,_),G&&q5(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=It()),Pe(G,this.relativeTarget)),L&&(this.animationValues=y,H5(y,p,this.latestValues,_,k,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{bs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ka(0)),this.currentAnimation=B5(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:m,layout:p,latestValues:y}=f;if(!(!g||!m||!p)){if(this!==f&&this.layout&&p&&Wh(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||It();const S=he(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+S;const v=he(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+v}Pe(g,m),Za(g,y),$i(this.projectionDeltaWithTransform,this.layoutCorrected,g,y)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new X5),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(g=!0),!g)return;const p={};m.z&&uu("z",f,p,this.animationValues);for(let y=0;y<ou.length;y++)uu(`rotate${ou[y]}`,f,p,this.animationValues),uu(`skew${ou[y]}`,f,p,this.animationValues);f.render();for(const y in p)f.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=ps(g?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=ps(g?.pointerEvents)||""),this.hasProjected&&!ha(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=Z5(this.projectionDeltaWithTransform,this.treeScale,y);m&&(S=m(y,S)),f.transform=S;const{x:v,y:z}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${z.origin*100}% 0`,p.animationValues?f.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in Yo){if(y[j]===void 0)continue;const{correct:L,applyTo:O,isCSSVariable:A}=Yo[j],k=S==="none"?y[j]:L(y[j],p);if(O){const G=O.length;for(let P=0;P<G;P++)f[O[P]]=k}else A?this.options.visualElement.renderState.vars[j]=k:f[j]=k}this.options.layoutId&&(f.pointerEvents=p===this?ps(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(Xh),this.root.sharedNodes.clear()}}}function Q5(a){a.updateLayout()}function P5(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=a.layout,{animationType:c}=a.options,d=i.source!==a.layout.source;c==="size"?He(y=>{const S=d?i.measuredBox[y]:i.layoutBox[y],v=he(S);S.min=s[y].min,S.max=S.min+v}):Wh(c,i.layoutBox,s)&&He(y=>{const S=d?i.measuredBox[y]:i.layoutBox[y],v=he(s[y]);S.max=S.min+v,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[y].max=a.relativeTarget[y].min+v)});const f=Fa();$i(f,s,i.layoutBox);const g=Fa();d?$i(g,a.applyTransform(o,!0),i.measuredBox):$i(g,s,i.layoutBox);const m=!Nh(f);let p=!1;if(!a.resumeFrom){const y=a.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:S,layout:v}=y;if(S&&v){const z=It();ys(z,i.layoutBox,S.layoutBox);const j=It();ys(j,s,v.layoutBox),_h(z,j)||(p=!0),y.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=z,a.relativeParent=y)}}}a.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:g,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:s}=a.options;s&&s()}a.options.transition=void 0}function J5(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 I5(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function W5(a){a.clearSnapshot()}function Xh(a){a.clearMeasurements()}function Zh(a){a.isLayoutDirty=!1}function $5(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Fh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function tb(a){a.resolveTargetDelta()}function eb(a){a.calcProjection()}function nb(a){a.resetSkewAndRotation()}function ab(a){a.removeLeadSnapshot()}function Kh(a,i,s){a.translate=Ut(i.translate,0,s),a.scale=Ut(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Qh(a,i,s,o){a.min=Ut(i.min,s.min,o),a.max=Ut(i.max,s.max,o)}function ib(a,i,s,o){Qh(a.x,i.x,s.x,o),Qh(a.y,i.y,s.y,o)}function lb(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const sb={duration:.45,ease:[.4,0,.1,1]},Ph=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Jh=Ph("applewebkit/")&&!Ph("chrome/")?Math.round:Oe;function Ih(a){a.min=Jh(a.min),a.max=Jh(a.max)}function rb(a){Ih(a.x),Ih(a.y)}function Wh(a,i,s){return a==="position"||a==="preserve-aspect"&&!p5(Gh(i),Gh(s),.2)}function ob(a){return a!==a.root&&a.scroll?.wasRoot}const ub=qh({attachResizeListener:(a,i)=>Ji(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cu={current:void 0},$h=qh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!cu.current){const a=new ub({});a.mount(window),a.setOptions({layoutScroll:!0}),cu.current=a}return cu.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),cb={pan:{Feature:R5},drag:{Feature:D5,ProjectionNode:$h,MeasureLayout:Mh}};function tm(a,i,s){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=o[c];d&&Ot.postRender(()=>d(i,Ii(i)))}class fb extends On{mount(){const{current:i}=this.node;i&&(this.unmount=jv(i,(s,o)=>(tm(this.node,o,"Start"),c=>tm(this.node,c,"End"))))}unmount(){}}class db extends On{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=_i(Ji(this.node.current,"focus",()=>this.onFocus()),Ji(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function em(a,i,s){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=o[c];d&&Ot.postRender(()=>d(i,Ii(i)))}class hb extends On{mount(){const{current:i}=this.node;i&&(this.unmount=Uv(i,(s,o)=>(em(this.node,o,"Start"),(c,{success:d})=>em(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fu=new WeakMap,du=new WeakMap,mb=a=>{const i=fu.get(a.target);i&&i(a)},pb=a=>{a.forEach(mb)};function gb({root:a,...i}){const s=a||document;du.has(s)||du.set(s,{});const o=du.get(s),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(pb,{root:a,...i})),o[c]}function yb(a,i,s){const o=gb(i);return fu.set(a,s),o.observe(a),()=>{fu.delete(a),o.unobserve(a)}}const vb={some:0,all:1};class bb extends On{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:vb[c]},g=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:S}=this.node.getProps(),v=p?y:S;v&&v(m)};return yb(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(Sb(i,s))&&this.startObserver()}unmount(){}}function Sb({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const xb={...u5,...{inView:{Feature:bb},tap:{Feature:hb},focus:{Feature:db},hover:{Feature:fb}},...cb,...{layout:{ProjectionNode:$h,MeasureLayout:Mh}}},Tb=A4(xb,U4);function Eb(a="(max-width: 768px)"){const[i,s]=C.useState({isMobile:!1,isPortrait:!1});return C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=navigator?.userAgent??"",c=/iPhone|Android/i.test(o),d=window.matchMedia(a),f=window.matchMedia("(orientation: portrait)"),g=()=>s({isMobile:d.matches||c,isPortrait:f.matches});return g(),d.addEventListener("change",g),f.addEventListener("change",g),()=>{d.removeEventListener("change",g),f.removeEventListener("change",g)}},[a]),i}const nm={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{items:["MetaBtn"]},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{items:["MetaBtn"]},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},am={vod:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"]}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},live:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"]}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]}},im={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"]}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Mb=768,tl={pc:{live:nm.live,vod:nm.vod},mobile:{live:am.live,vod:am.vod},fullscreen:{live:im.live,vod:im.vod}},Ab={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function zb(a){const[i,s]=Xf("isActive",!1),o=C.useRef(null),c=C.useRef(!1),d=C.useRef(!1),f=C.useRef(0),g=a.options?.controlActiveTime||3e3,[m]=qt(),{isMobile:p,isPortrait:y}=Eb(),{togglePlay:S,useTouch:v}=$t(),[z,j]=C.useState(!1),L=(()=>{const I=a.layout??tl,ut=E=>!E||typeof E!="object"?!1:"top"in E||"upper"in E||"center"in E||"lower"in E||"bottom"in E||"order"in E,dt=E=>!E||typeof E!="object"?!1:"live"in E||"vod"in E,it=(E,X)=>{const J=dt(E)?E:E?{live:E,vod:E}:void 0,W=J?.live??X?.live,ct=J?.vod??X?.vod;if(!(!W&&!ct))return{live:W,vod:ct}},Q=(E,X)=>{if(E)return(X?E.live:E.vod)??E.vod??E.live};if(ut(I))return I;const U=I,K={pc:it(tl.pc),mobile:it(tl.mobile),fullscreen:it(tl.fullscreen)},nt={pc:it(U.pc,K.pc),mobile:it(U.mobile,K.mobile),fullscreen:it(U.fullscreen,K.fullscreen),breakpoint:U.breakpoint},gt=m.isFullscreen&&nt.fullscreen?"fullscreen":null,Bt=(gt?nt[gt]:void 0)??(z?nt.mobile:nt.pc)??nt.pc??nt.mobile??nt.fullscreen;return Q(Bt,!!m.isLive)??Ab})(),O=d.current||m.isEnded,A=()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},k=()=>{A(),o.current=window.setTimeout(()=>{s(!1),c.current=!0,o.current=null},g)},G=()=>{c.current=!1,f.current=Date.now(),i||s(!0),k()},P=()=>{c.current||G()};C.useEffect(()=>{if(typeof window>"u")return;const I=a.layout??tl;if((K=>!K||typeof K!="object"?!1:"top"in K||"upper"in K||"center"in K||"lower"in K||"bottom"in K||"order"in K)(I)){j(!1);return}const it=I.breakpoint??Mb,Q=window.matchMedia(`(max-width: ${it}px)`),U=()=>j(Q.matches||p);return U(),typeof Q.addEventListener=="function"?(Q.addEventListener("change",U),()=>Q.removeEventListener("change",U)):(Q.addListener(U),()=>Q.removeListener(U))},[a.layout,p]);const _=I=>[I.top,I.upper,I.center,I.lower,I.bottom].some(dt=>dt?.some(it=>(it.items?.length?it.items:["Blank"]).includes("SeekBar"))??!1),F=(I,ut)=>{if(typeof I!="string")return C.isValidElement(I)?C.cloneElement(I,{pos:ut}):I;switch(I){case"PlayBtn":return x.jsx(r0,{isMobile:p,isPortrait:y,pos:ut,text:{play:a.t?.("common.play")??"재생",pause:a.t?.("common.pause")??"일시정지"}});case"VolumeBtn":return x.jsx(Yg,{isMobile:p,isPortrait:y,pos:ut,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"MuteBtn":return x.jsx(kg,{isMobile:p,isPortrait:y,pos:ut,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"CurrentTimeBtn":return x.jsx(Bg,{isMobile:p,isPortrait:y,pos:ut});case"DurationBtn":return x.jsx(Vg,{isMobile:p,isPortrait:y,pos:ut});case"TimeBtn":return x.jsx(jg,{isMobile:p,isPortrait:y,pos:ut});case"SubtitleBtn":return x.jsx(Gg,{isMobile:p,isPortrait:y,pos:ut,text:{captionOn:a.t?.("common.captionOn")??"자막켜기",captionOff:a.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return x.jsx(_g,{isMobile:p,isPortrait:y,pos:ut,options:a.options,text:{fullOn:a.t?.("common.fullOn")??"전체화면",fullOff:a.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return x.jsx(Xg,{isMobile:p,isPortrait:y,pos:ut,options:a.options,text:{miniPlayer:a.t?.("common.miniPlayer")??"미니플레이어"}});case"SkipBackBtn":return x.jsx(Rg,{isMobile:p,isPortrait:y,pos:ut,options:a.options});case"SkipForwardBtn":return x.jsx(Lg,{isMobile:p,isPortrait:y,pos:ut,options:a.options});case"MetaBtn":return x.jsx(Ng,{title:a.metaTitle??"",isMobile:p,isPortrait:y,pos:ut});case"BigPlayBtn":return O?x.jsx(Dg,{isMobile:p,isPortrait:y}):null;case"SeekBar":return x.jsx(Kf,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options,pos:ut});case"LevelSelectBtn":return x.jsx(Og,{options:a.options,text:{auto:a.t?.("common.auto")??"자동"}});case"SettingBtn":return x.jsx(qg,{isMobile:p,isPortrait:y,pos:ut,text:{setting:a.t?.("common.setting")??"설정"}});case"Blank":return x.jsx(o0,{});default:return null}},V=(I,ut,dt,it)=>{const Q=I.key??`${ut}-${it??0}`,K=(I.items?.length?I.items:["Blank"]).map((nt,gt)=>{const Bt=F(nt,dt);return Bt?x.jsx(C.Fragment,{children:Bt},`${ut}-${Q}-${nt}-${gt}`):null}).filter(nt=>nt!==null);return K.length?I.wrapper==="Blank"?x.jsx(o0,{align:I?.align,children:K},`${ut}-${Q}`):I.wrapper==="Group"?x.jsx($l,{noPadding:!(K.length>1),cap:I.cap,children:K},`${ut}-${Q}`):x.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:K},`${ut}-${Q}`):null},N=(I,ut)=>{if(!I?.length)return null;if(ut!=="bottom")return I.map((it,Q)=>V(it,ut,void 0,Q));let dt="left";return I.map((it,Q)=>{const U=it.items?.length?it.items:["Blank"],K=it.wrapper==="Blank"||U.includes("Blank"),nt=V(it,ut,dt,Q);return K&&(dt="right"),nt})},tt=!_(L),lt=L.order??["top","upper","center","seekbar","lower","bottom"],ot=()=>tt?x.jsx("div",{children:x.jsx(Kf,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options})}):null;return C.useEffect(()=>{p&&(d.current=!0)},[p]),x.jsxs(x.Fragment,{children:[m.isLoading&&x.jsx(u0,{poster:a.poster,options:a.options}),m.isWaiting&&x.jsx(u0,{}),m.isSettingModal&&x.jsx(Fg,{text:{setting:a.t?.("common.setting")??"세팅",auto:a.t?.("common.auto")??"자동",notUse:a.t?.("common.notUse")??"사용안함",quality:a.t?.("settings.quality")??"해상도",autoplay:a.t?.("settings.autoplay")??"자동재생",playbackRate:a.t?.("settings.playbackRate")??"재생 속도",captions:a.t?.("settings.captions")??"자막"},vtt:a.src?.vtt,options:a.options}),!m.isLoading&&x.jsx(x.Fragment,{children:m.initPlay?x.jsx("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{v(),A(),k()},onMouseEnter:()=>{P()},onMouseMove:()=>{G()},onTouchStart:()=>{v(),A(),k()},onMouseLeave:()=>{A(),k(),c.current=!1},children:x.jsx(Qv,{children:(i||m.isEnded)&&x.jsx(Tb.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.75rem",cursor:"default"},children:lt.map(I=>I==="top"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:N(L.top,"top")},"layout-top"):I==="upper"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:N(L.upper,"upper")},"layout-upper"):I==="center"?x.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!y&&S(),d.current=!0},onMouseLeave:()=>{d.current=!1},children:N(L.center,"center")},"layout-center"):I==="seekbar"?x.jsx("div",{children:x.jsx(C.Fragment,{children:ot()})},"layout-seekbar"):I==="lower"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:N(L.lower,"lower")},"layout-lower"):I==="bottom"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:N(L.bottom,"bottom")},"layout-bottom"):null)})})}):x.jsx(Zg,{poster:a.poster,options:a.options})})]})}const Cb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20style='position:%20absolute;%20width:%200;%20height:%200'%20aria-hidden='true'%20id='__SVG_SPRITE_NODE__'%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='setting'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-538%20-1762)%20translate(325%201754)%20translate(205)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M10%2014.317c-2.38%200-4.318-1.937-4.318-4.318C5.682%207.62%207.62%205.682%2010%205.682S14.318%207.621%2014.318%2010c0%202.38-1.938%204.318-4.318%204.318zm6.519-5.746c-.171-.784-.483-1.512-.904-2.167L17.232%204.1l-.007-.007-.94-.94-.386-.387-2.306%201.617c-.653-.42-1.382-.732-2.165-.903L10.943.715H9.057L8.572%203.48c-.786.171-1.512.482-2.167.903L4.101%202.766l-.412.415-.914.912-.007.007%201.617%202.304c-.42.655-.733%201.383-.905%202.167l-2.766.486V10.942l2.766.487c.172.783.484%201.512.905%202.166l-1.617%202.302.413.415.911.913.01.009%202.303-1.619c.655.422%201.381.732%202.167.905l.485%202.766h1.886l.485-2.766c.783-.173%201.512-.483%202.165-.905l2.306%201.619.009-.01.937-.94.387-.387-1.617-2.302c.42-.654.733-1.383.904-2.166l2.767-.487V9.057l-2.767-.486z'%20transform='translate(-538%20-1762)%20translate(325%201754)%20translate(205)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='full-view'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M15%2015L10.357%2015%2010.357%2017.143%2017.143%2017.143%2017.143%2010.357%2015%2010.357zM0%200L0%206.786%202.143%206.786%202.143%202.143%206.793%202.143%206.793%200zM10.357%200L10.357%202.143%2015%202.143%2015%206.786%2017.143%206.786%2017.143%200zM2.143%2015L2.143%2010.357%200%2010.357%200%2017.143%206.793%2017.143%206.793%2015z'%20transform='translate(-661%20-1762)%20translate(325%201754)%20translate(205)%20translate(123)%20translate(8%208)%20translate(1.429%201.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='basic-view'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.5%2012.5L17.143%2012.5%2017.143%2010.357%2010.357%2010.357%2010.357%2017.143%2012.5%2017.143zM6.786%206.786L6.786%200%204.643%200%204.643%204.643%200%204.643%200%206.786zM17.143%206.786L17.143%204.643%2012.5%204.643%2012.5%200%2010.357%200%2010.357%206.786zM4.643%2012.5L4.643%2017.143%206.786%2017.143%206.786%2010.357%200%2010.357%200%2012.5z'%20transform='translate(-702%20-1762)%20translate(325%201754)%20translate(205)%20translate(164)%20translate(8%208)%20translate(1.429%201.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='caption0'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M17.143%202.5H2.857C1.674%202.5.714%203.46.714%204.643v10.714c0%201.184.96%202.143%202.143%202.143h14.286c1.183%200%202.143-.96%202.143-2.143V4.643c0-1.184-.96-2.143-2.143-2.143zM3.57%204.643h11.636l-2.786%202.143h-3.85v2.143h1.065L6.85%2011.07H5V12.5l-2.143%201.643V5.357c0-.394.32-.714.714-.714zM16.43%2015.357H4.793l2.786-2.143H10V11.35l3.15-2.421H15V7.5l2.143-1.643v8.786c0%20.394-.32.714-.714.714z'%20transform='translate(-579%20-1762)%20translate(325%201754)%20translate(205)%20translate(41)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M5%206.786H7.143V8.928999999999998H5zM11.429%2011.071H15V13.213999999999999H11.429z'%20transform='translate(-579%20-1762)%20translate(325%201754)%20translate(205)%20translate(41)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='caption1'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M17.143%202.5H2.857C1.674%202.5.714%203.46.714%204.643v10.714c0%201.184.96%202.143%202.143%202.143h14.286c1.183%200%202.143-.96%202.143-2.143V4.643c0-1.184-.96-2.143-2.143-2.143zm0%2012.143c0%20.394-.32.714-.714.714H3.57c-.394%200-.714-.32-.714-.714V5.357c0-.394.32-.714.714-.714H16.43c.394%200%20.714.32.714.714v9.286z'%20transform='translate(-620%20-1762)%20translate(325%201754)%20translate(205)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3cpath%20d='M8.571%206.786H15V8.928999999999998H8.571zM5%206.786H7.143V8.928999999999998H5zM5%2011.071H10V13.213999999999999H5zM11.429%2011.071H15V13.213999999999999H11.429z'%20transform='translate(-620%20-1762)%20translate(325%201754)%20translate(205)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='close'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M10.912%202.293L7.132%206.073%203.353%202.293%202.293%203.353%206.072%207.133%202.293%2010.912%203.353%2011.973%207.132%208.193%2010.912%2011.973%2011.972%2010.912%208.193%207.133%2011.972%203.353z'%20transform='translate(-967%20-1848)%20translate(360%201720)%20translate(240%20110)%20translate(367%2018)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20200%20200'%20id='error0'%3e%3cdefs%3e%3cpath%20id='error0_vf42l8pu4a'%20d='M0%200L126%200%20126%20126%200%20126z'%3e%3c/path%3e%3cpath%20id='error0_rks5mj93dc'%20d='M0%20126L136%20126%20136%200%200%200z'%3e%3c/path%3e%3cpath%20id='error0_2raz0xr19e'%20d='M63%200C28.206%200%200%2028.206%200%2063s28.206%2063%2063%2063%2063-28.206%2063-63'%3e%3c/path%3e%3cpath%20id='error0_arf9x60eqg'%20d='M0.045%200.045L43%200.045%2043%2043%200.045%2043z'%3e%3c/path%3e%3cpath%20id='error0_qune5idx7i'%20d='M0.045%200.046L43%200.046%2043%2043%200.045%2043z'%3e%3c/path%3e%3c/defs%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M0%200H200V200H0z'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)'%3e%3cg%3e%3cmask%20id='error0_5gm69u4e3b'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_vf42l8pu4a'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23394252'%20d='M126%2063c0%2034.794-28.206%2063-63%2063S0%2097.794%200%2063%2028.206%200%2063%200s63%2028.206%2063%2063'%20mask='url(%23error0_5gm69u4e3b)'%3e%3c/path%3e%3c/g%3e%3cpath%20fill='%23838D9E'%20d='M103.606%2028.416H22.081c-1.45%200-2.627%201.156-2.627%202.583v65.984c0%201.426%201.177%202.582%202.627%202.582h81.525c1.45%200%202.627-1.156%202.627-2.582V30.999c0-1.427-1.177-2.583-2.627-2.583'%3e%3c/path%3e%3cmask%20id='error0_l1rycuavtd'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_rks5mj93dc'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23656C79'%20d='M27.669%2092.606L101.258%2092.606%20101.258%2090.113%2027.669%2090.113z'%20mask='url(%23error0_l1rycuavtd)'%3e%3c/path%3e%3cpath%20fill='%23323740'%20d='M31.329%2091.36c0%202.004-1.625%203.63-3.63%203.63-2.004%200-3.63-1.626-3.63-3.63%200-2.005%201.626-3.63%203.63-3.63%202.005%200%203.63%201.625%203.63%203.63'%20mask='url(%23error0_l1rycuavtd)'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)'%3e%3cmask%20id='error0_bbt3gcsxof'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_2raz0xr19e'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23333'%20d='M131%20104.522c0%2011.862-9.616%2021.478-21.478%2021.478-11.861%200-21.477-9.616-21.477-21.478%200-11.86%209.616-21.477%2021.477-21.477%2011.862%200%2021.478%209.616%2021.478%2021.477'%20mask='url(%23error0_bbt3gcsxof)'%20opacity='.2'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23323740'%20d='M46.033%2022.974c0-12.499-10.132-22.63-22.63-22.63C10.902.343.77%2010.474.77%2022.973c0%2012.5%2010.132%2022.631%2022.631%2022.631%2012.5%200%2022.631-10.132%2022.631-22.63'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)'%3e%3c/path%3e%3cpath%20fill='%23838D9E'%20d='M17.416%2034.777L17.416%2011.171%2035.243%2022.971z'%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)'%3e%3c/path%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)%20translate(53%2046)'%3e%3cmask%20id='error0_6837smyffh'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_arf9x60eqg'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23394252'%20d='M43%2021.522C43%2033.384%2033.384%2043%2021.522%2043%209.661%2043%20.045%2033.384.045%2021.522.045%209.662%209.661.045%2021.522.045%2033.384.045%2043%209.661%2043%2021.522'%20mask='url(%23error0_6837smyffh)'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(-700%20-4511)%20translate(360%204395)%20translate(289%20116)%20translate(51)%20translate(37%2037)%20translate(40%2037)%20translate(53%2046)'%3e%3cmask%20id='error0_vtacl4ykgj'%20fill='%23fff'%3e%3cuse%20xlink:href='%23error0_qune5idx7i'%3e%3c/use%3e%3c/mask%3e%3cpath%20fill='%23ACB2BD'%20d='M21.523%2037.573c-3.476%200-6.685-1.117-9.313-2.995L34.578%2012.21c1.878%202.628%202.994%205.837%202.994%209.312%200%208.864-7.186%2016.051-16.05%2016.051m-16.05-16.05c0-8.864%207.186-16.05%2016.05-16.05%203.477%200%206.686%201.117%209.314%202.995L8.466%2030.835C6.59%2028.208%205.472%2025%205.472%2021.522M21.523.046C9.663.046.047%209.661.047%2021.522.046%2033.385%209.662%2043%2021.523%2043%2033.385%2043%2043%2033.385%2043%2021.522%2043%209.662%2033.385.046%2021.523.046'%20mask='url(%23error0_vtacl4ykgj)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='license'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-rule='nonzero'%20d='M12.5%202c.552%200%201%20.448%201%201v3.504H12V6.5H2v4h5.429V12H1.5c-.513%200-.936-.386-.993-.883L.5%2011V3c0-.552.448-1%201-1zM12%203.5H2V5h10V3.5z'%20transform='translate(-941%20-874)%20translate(926%20822)%20translate(5%2045)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M13.24%2010.12c-.09-.155-.09-.345%200-.5l.2-.365c.073-.133.081-.292.023-.432-.059-.14-.177-.246-.323-.288l-.395-.115c-.164-.048-.292-.176-.34-.34l-.115-.395c-.042-.146-.148-.264-.288-.323-.14-.058-.299-.05-.432.023l-.365.2c-.155.09-.345.09-.5%200l-.36-.2c-.133-.073-.292-.081-.432-.023-.14.059-.246.177-.288.323l-.12.395c-.048.164-.176.292-.34.34l-.395.115c-.146.047-.263.16-.315.304-.053.145-.036.305.045.436l.195.365c.09.155.09.345%200%20.5l-.195.36c-.073.132-.082.29-.025.43.058.14.175.247.32.29l.395.12c.143.041.26.144.32.28L8.88%2013l1.12.5.575-1.275.135-.07c.155-.09.345-.09.5%200l.135.07.57%201.275%201.14-.5-.625-1.4c.059-.135.174-.238.315-.28l.395-.12c.146-.042.264-.148.323-.288.058-.14.05-.299-.023-.432l-.2-.36zm-2.275.76c-.552%200-1-.448-1-1s.448-1%201-1%201%20.448%201%201-.448%201-1%201z'%20transform='translate(-941%20-874)%20translate(926%20822)%20translate(5%2045)%20translate(10%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20159%2026'%20id='ncp'%3e%3cg%20fill='%23FFF'%20fill-rule='evenodd'%3e%3cpath%20d='M62.524%2015.01c1.874%200%203.025%201.099%203.322%202.69h-1.642c-.271-.725-.763-1.216-1.68-1.216-1.267%200-2.017%201.112-2.017%202.624%200%201.5.75%202.625%202.017%202.625.917%200%201.409-.492%201.68-1.23h1.642c-.297%201.603-1.448%202.703-3.322%202.703-2.12%200-3.697-1.668-3.697-4.098%200-2.43%201.577-4.098%203.697-4.098M67.032%2015.14h1.655v6.476h3.697v1.46h-5.352zM76.465%2016.484c-1.254%200-2.068%201.072-2.068%202.624%200%201.551.814%202.624%202.068%202.624%201.267%200%202.094-1.073%202.094-2.624%200-1.552-.827-2.624-2.094-2.624m0%206.722c-2.21%200-3.749-1.732-3.749-4.098%200-2.379%201.539-4.098%203.749-4.098s3.762%201.72%203.762%204.098c0%202.366-1.552%204.098-3.762%204.098M81.313%2019.883V15.14h1.655v4.575c0%201.357.594%202.004%201.641%202.004%201.048%200%201.642-.647%201.642-2.004V15.14h1.654v4.743c0%202.185-1.305%203.323-3.296%203.323-1.977%200-3.296-1.138-3.296-3.323M92.129%2021.616c1.512%200%202.34-.97%202.34-2.508%200-1.551-.828-2.52-2.34-2.52H91.03v5.028h1.099zm-2.74-6.477h2.804c2.405%200%203.917%201.551%203.917%203.969%200%202.417-1.512%203.969-3.917%203.969h-2.805v-7.938zM102.386%2016.549h-1.487v2.365h1.487c.853%200%201.267-.491%201.267-1.177%200-.71-.414-1.188-1.267-1.188zm-1.487%203.774v2.754h-1.641v-7.938h3.231c1.681%200%202.792.905%202.792%202.598%200%201.681-1.11%202.586-2.792%202.586h-1.59zM106.467%2015.14h1.654v6.476h3.697v1.46h-5.351zM115.44%2019.767h1.938l-.969-2.637-.97%202.637zm1.81-4.628l3.037%207.937h-1.68l-.711-1.913h-2.973l-.698%201.913h-1.655l3.038-7.937h1.641zM119.881%2015.14h6.774v1.447h-2.56v6.49h-1.667v-6.49h-2.547zM127.817%2023.076V15.14h5.287v1.447h-3.646v2.017h3.374v1.434h-3.374v3.038zM137.736%2016.484c-1.254%200-2.068%201.072-2.068%202.624%200%201.551.814%202.624%202.068%202.624%201.267%200%202.094-1.073%202.094-2.624%200-1.552-.827-2.624-2.094-2.624m0%206.722c-2.21%200-3.748-1.732-3.748-4.098%200-2.379%201.538-4.098%203.748-4.098s3.762%201.72%203.762%204.098c0%202.366-1.551%204.098-3.762%204.098M144.35%2018.759h1.525c.827%200%201.254-.44%201.254-1.1%200-.671-.427-1.11-1.254-1.11h-1.525v2.21zm0%201.358v2.96h-1.642v-7.938h3.27c1.668%200%202.78.892%202.78%202.52%200%201.268-.698%202.07-1.81%202.34l2.094%203.077h-1.861l-1.965-2.96h-.866zM153.744%2023.076l-1.965-5.184v5.184h-1.551V15.14h1.964l2.12%205.597%202.108-5.597h1.938v7.936h-1.563v-5.184l-1.927%205.184z'%3e%3c/path%3e%3cg%3e%3cpath%20d='M.122%2024.725h23.317V1.396H.122zM38.553%2025.871c7.071.002%2012.806-5.73%2012.807-12.802C51.362%205.996%2045.63.262%2038.558.26%2031.486.258%2025.752%205.99%2025.75%2013.063c0%207.072%205.73%2012.807%2012.803%2012.808z'%3e%3c/path%3e%3c/g%3e%3cg%3e%3cpath%20d='M71.513%207.877l.882-2.465.882%202.465h-1.764zm-.51-4.95l-3.094%207.89h2.63l.373-1.045h2.966l.373%201.044h2.63l-3.094-7.89h-2.784zM87.826%207.819h3.597V5.924h-3.597V4.86h3.636V2.926h-6.15v7.89h6.227V8.882h-3.713zM80.014%208.114l-1.857-5.188h-2.63l3.095%207.89h2.785l3.094-7.89h-2.63zM64.544%207.149l-2.94-4.223h-2.436v7.89h2.553V6.593l2.94%204.223h2.436v-7.89h-2.553zM96.567%206.6h-1.354V4.937h1.354a.831.831%200%200%201%200%201.663zm1.718%201.51l.24-.1c.916-.385%201.383-1.215%201.383-2.269%200-.997-.364-1.734-1.08-2.192-.667-.425-1.531-.623-2.72-.623h-3.331v7.89h2.475V8.611h.89l1.508%202.205h2.63L98.285%208.11z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20190.15%2031.38'%20id='ncp_c'%3e%3cdefs%3e%3cstyle%3e%23ncp_c%20.cls-1{fill:none;}%23ncp_c%20.cls-2{fill:%23fff;}%23ncp_c%20.cls-3{clip-path:url(%23ncp_c_clip-path);}%23ncp_c%20.cls-4{clip-path:url(%23ncp_c_clip-path-2);}%20%3c/style%3e%3cclipPath%20id='ncp_c_clip-path'%3e%3ccircle%20class='cls-1'%20cx='46.29'%20cy='15.69'%20r='15.38'%3e%3c/circle%3e%3c/clipPath%3e%3cclipPath%20id='ncp_c_clip-path-2'%3e%3crect%20class='cls-1'%20x='0.15'%20y='1.68'%20width='28'%20height='28.01'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3cpath%20class='cls-2'%20d='M75.07,18a3.78,3.78,0,0,1,4,3.23h-2a2,2,0,0,0-2-1.46c-1.52,0-2.42,1.34-2.42,3.15s.9,3.15,2.42,3.15a2,2,0,0,0,2-1.47h2a3.78,3.78,0,0,1-4,3.24c-2.54,0-4.44-2-4.44-4.92S72.53,18,75.07,18Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M80.49,18.18h2V26h4.44v1.76H80.49Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M91.81,27.86c-2.65,0-4.5-2.08-4.5-4.92S89.16,18,91.81,18s4.52,2.07,4.52,4.92S94.47,27.86,91.81,27.86Zm0-8.07c-1.5,0-2.48,1.29-2.48,3.15s1,3.15,2.48,3.15,2.52-1.28,2.52-3.15S93.33,19.79,91.81,19.79Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M97.64,23.87V18.18h2v5.49c0,1.63.72,2.41,2,2.41s2-.78,2-2.41V18.18h2v5.69a4,4,0,1,1-7.91,0Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M107.33,18.18h3.37a4.41,4.41,0,0,1,4.7,4.76,4.41,4.41,0,0,1-4.7,4.77h-3.37ZM110.62,26c1.82,0,2.81-1.16,2.81-3s-1-3-2.81-3H109.3v6Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M121.15,24.4v3.31h-2V18.18h3.88c2,0,3.36,1.08,3.36,3.12s-1.34,3.1-3.36,3.1Zm1.79-4.53h-1.79v2.84h1.79a1.42,1.42,0,1,0,0-2.84Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M127.84,18.18h2V26h4.44v1.76h-6.42Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M140.78,18.18l3.65,9.53h-2l-.85-2.3H138l-.84,2.3h-2l3.64-9.53Zm-2.17,5.56h2.33l-1.16-3.17Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M144,18.18h8.13v1.74H149v7.79h-2V19.92H144Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M153.47,27.71V18.18h6.35v1.74h-4.38v2.42h4.06v1.72h-4.06v3.65Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M165.38,27.86c-2.65,0-4.5-2.08-4.5-4.92s1.85-4.92,4.5-4.92,4.52,2.07,4.52,4.92S168,27.86,165.38,27.86Zm0-8.07c-1.5,0-2.48,1.29-2.48,3.15s1,3.15,2.48,3.15,2.52-1.28,2.52-3.15S166.91,19.79,165.38,19.79Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M173.33,24.15v3.56h-2V18.18h3.93c2,0,3.34,1.07,3.34,3a2.68,2.68,0,0,1-2.17,2.8l2.51,3.7h-2.24l-2.35-3.56Zm0-1.63h1.83c1,0,1.5-.52,1.5-1.31s-.51-1.34-1.5-1.34h-1.83Z'%3e%3c/path%3e%3cpath%20class='cls-2'%20d='M184.61,27.71l-2.36-6.23v6.23h-1.87V18.18h2.36l2.55,6.72,2.53-6.72h2.33v9.53h-1.88V21.48L186,27.71Z'%3e%3c/path%3e%3cg%20class='cls-3'%3e%3cimage%20width='33'%20height='32'%20transform='translate(29.69%20-0.6)'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAACXBIWXMAAAsSAAALEgHS3X78AAAF3klEQVRYR22X/5LjuA2EvwYheWZvty6XpO7B83p5hVRSuWTnxpaEzh+gZO9VOEPLskj8aDRASPz9b4YCDsDATt9/IowJkv8QbAQHsLM4+eTgL/uvjFr5+fiVrHcGX4AEFswCStDACDPYJQ7EJ+JT4r/Ad4lshTvwAWz0eAcewEKwIwSIn7zyXTvvXvnqldULX4+/IgaDt7k3gAGaVwYARghhxEMCQEDYZHt/gPZpxAfwL+BgsYCFb4abF1YPvrFy84p8Y9QXBgEOWo6AgakXA8Z8FhSwIdLwm8RBQ5Ct/Lz9mLMNk5I3w0KyIN6dDC8kCfWG/AYEaCqygB10o8fAtIFGhCHVuN8MewNM3mpj153kMY2BXcVCsNZgQcgwLMLBcDCc4AS3EjumUmNFS55DhlJrK8z/G9kfPz5MR+8GwiKdDA+yFmLGGDNhL85QmACPRmZezaAMh6Ao7GBXm3OfevOX2jhjJt04iQQmnSwk6cFSeRnpeq6zAQb2kxNtYDZXdKJUQLBJDILvMguwu8g/14ZnKoZWxHopkweiwyCPDgOB2Z8KmTxgoTPjoMUz7wMowoOSSYtDxWLY5ObEl9pgxqxjKywhawrQJNyZAZ5eneMkJI3GHzgxg/oSNAAR+FqVoY32LtC03K5e7mpYL840tJKxhZ29jAFekKK/s0yNBhvrab4xj0nRRllE17CDYENsdCY/ve3npwheroW0T1HmzCxev/+wpQ3CEPP3B0UJQhfDz9WnAa/M78LbGXNe80K9SzT0x0ThLFJ+OiAaiZOqg6ZBopoPe5ncC59DtGfPVXgB7eAEVqQd10nGP6ztDec/u0wY7vOKIF6j9RRSLzJONOZVBdonCAZNpTLNh8mnH2Nxlh3k1jCsq4hFPz1P0fMkNZ12Zznv30RN5cc0xujaA7joTHlxzMZ+Sgn6OOzkbmkzsHP6FBdIeolevEwhBq4VvHSGuCtk72lt3QYUQTDsCxsLHheXWlo8jTirW9B140ebX+cVKRXSGaKT3L1H7mP6xwO9sb0ZNj2NyhaqS0Dn+tOQntliPGjjVqyuDb5UaFLDWIVm4QubUruTcKF9naJTA5KeKLwiw0CXIRMpDazT6Kf5z5HExaEzuHP6qWHM3zCk51lh1N4BaKEblZ5i5QLWAbz1mtnKncbaS4fIScjdAmDKUIhH9I4Tgfv0N8x4gRTOvrBnzPs5CdCCNIC1DTgLFwE6iIlAOC4EoI1ZZpasbm4sk1zpi5BnCIRILPM8Gcek8gqOF8SYPIFO1wKf1fVADmQz1IvHNGBXc+J+GvGId4IiMKWVwFi3i1iyOLQiBnKjsytRJKrEMbACVRAzTTtFZxVovl514q6uQJ9Sh8WQW7TisLHWDorW6WaLOtSISAEODiWBJtaz3gnMzAp1h4K7kbleHWyGWuZirrKdRvyW37jVzsHKSmHekGaeCz65YQ1W94H/oZWfAnBQDJYQWEQNFOqygdsYHxhRMgez45b4VNcKEPmP5RfevXHXjdJ5AnbGnMm6kaTN72q4H0BFtjdAVoegoohiVs7q5uhKZyYicHNxJ3hUcA+R/17/xL12bsfGXV+4+cC+IWpWPPOphaxizMLzqWR18O0wh5KbgnAXOrmbIw8w7qbW/Qq1Yw765aeYFdlB7uMnfg/YtHVylfEU1C1g5/v3sbJUQ+tYKItPzFcnuHBAMM+PYc5MqzC2OTCHu3s5BA9iEjPIihvjuLPHAhZSUZg+Vk4oRVTxGMtkejAISsUjxJu6BfRsXClhm8qiSlcYgn4JSroV3mZBTMZbp1ztqDZ2gqK690OT+UEpmnwaJGJYJMG7kgVQFVJ31AIq2oFNLWO3OSoomXslHzm4K8Ei+ywokHAE8oHt63yQoouy2vv+E6uDnJ4hUCZhOBC7RLkN2Ax2UIjDYrfYA0JFUhyRJLp1jqsbm4qGGZthMQw3BSuDGwNZLIp+pi6970qOY4dITHHYfCI+DA+DCf65JD8/+pXwINgiOEbAGPwPpJUnmU7jmgEAAAAASUVORK5CYII='%3e%3c/image%3e%3c/g%3e%3cg%20class='cls-4'%3e%3cimage%20width='29'%20height='29'%20transform='translate(-0.31%201.4)'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAACXBIWXMAAAsSAAALEgHS3X78AAAENklEQVRIS32XXW7kNhCEv2rS68VuEOQUOXduk8vkJVnEPzNiVx66qZGNRQgTkklJ1V1VbHL0+59/eBqmYRkAZCMADCQiWSSLRZK8ceNNd+6s6locSlYshFCYQTAVEItvMRkBv8YTv+k78xV46m6BDCEIgwDhhjcmK6g9I0jqQdUQAKkkgBQQBzC5xxvwxItemIt+gQIcnd+GKgg3jLCyvi0IxCRYcj2vCg7B0sJaQPISrwySf+IH32Iyf4R4TvNMAV7bQCd8tYruYGGBDSuaIUT/4VhAjXvcSA1yvpN85TXuzKRoWIbgmuUVyyR5zgSByBOkgB7cFGDiqHfuuiGSf+OFLyHmXebJBZz9mgzSR3h11nctotEss6hoJSCyuvzokViGuGMFNyVxIA5tiuiPVRDqvJNsPUvHpXxoqgBBqqnStRewIknMTXfuuhMhE53NEh+adclSZaaQkITlDi5xuLPv7ACUZzc0A0mSxBFwtBmiQXJnfTHHbjpnek4qFlq/onR9CMBaYJFAksypxYhybjRD00kgpER2RUxFSdSSUexMLiB7LBK0quPHcyrXzCclw2LIhFUGcrlRZOkqI5vApMyho2hTsnTU/NU88PEqTkCA6Rbc3g8aR1ckFWVqLXa0Q+KIDmZ/8JpN7Ax5MHE2M7/HG8/AF4mnrCiGDTlQrBbYXdbMEYvhApKSkFlRwZ70bsCtMcDFGfFVB0PmSYuQiY5K4+CqUwgIMyTWWKXtSWuSW1fgUVcb2OJc8xITzGh3lXFA2yyuAiAgVR8VnPodWqS2ubZR9rVp9iNDOob5S7whB6EoQ5kKYEfYW48x6dJHDbQp38FUplvf1vEn5prPcZA5mCxgdKEQdrRuwhjh1i85zqyNwmQcZ3DbjCeIL3p3a3oTCORHuVNT7navDVJyH3eG4R6XNSw3/VcT8QC+AIKZX+JAHpCJIyjJ1YCAVZuyxaFkiFPLoOYkzvX80HTfX5cLgJhDSXpUhdlBWm04ATodKiD0oPoWqyj+GdjZd9o+rzNDoEVaKGvXROpi0RkrWUqWhbVwHKQWbtN4u/WTUX/exMxzSe1dw2eGVp70YqGoI4gxVmKS9UHLS4bu/w2PAlFTc98ZOI8Ocm1dBl+o88X6Vp0NJbPieJTR7db97N43N65gvkbNjxQmOSKR+7xnkSR3LXCQSm46OICMRbg29ACWPoGdSDvQPaYq+MZk10+7Nuaa9xlgapFUEbD2weta+i7U1uzlHuBRCuffos+5te5uY9W+ahiG1dmpv3OLO7Z4UxWEQ9mmuoB+xoIP4zMl+kCBZBKfpW3rk32/NV3KYqcZSRlvLeF/KK4I5l9RPykQDJJ3HUzDsBmqQ9lr3KouA+86eMrgFgeRUYDncvED55Njr8t1HpQJ9ilhUS+8qxc+yWoGDup6i3VmWif6Td3OiI9NlwGZ/wBaygtRu0bsNQAAAABJRU5ErkJggg=='%3e%3c/image%3e%3c/g%3e%3cpath%20class='cls-2'%20d='M85.26,3.51,81.54,13H84.7l.45-1.26h3.56L89.16,13h3.15L88.6,3.51Zm.61,6,1.06-3,1.06,3Z'%3e%3c/path%3e%3cpolygon%20class='cls-2'%20points='105.46%209.39%20109.78%209.39%20109.78%207.11%20105.46%207.11%20105.46%205.83%20109.82%205.83%20109.82%203.51%20102.44%203.51%20102.44%2012.99%20109.91%2012.99%20109.91%2010.66%20105.46%2010.66%20105.46%209.39'%3e%3c/polygon%3e%3cpolygon%20class='cls-2'%20points='96.08%209.74%2093.85%203.51%2090.69%203.51%2094.4%2012.99%2097.75%2012.99%20101.46%203.51%2098.31%203.51%2096.08%209.74'%3e%3c/polygon%3e%3cpolygon%20class='cls-2'%20points='77.5%208.58%2073.97%203.51%2071.05%203.51%2071.05%2012.99%2074.11%2012.99%2074.11%207.92%2077.64%2012.99%2080.56%2012.99%2080.56%203.51%2077.5%203.51%2077.5%208.58'%3e%3c/polygon%3e%3cpath%20class='cls-2'%20d='M118,9.74l.29-.12A2.75,2.75,0,0,0,120,6.89a2.91,2.91,0,0,0-1.29-2.63,6,6,0,0,0-3.27-.75h-4V13h3V10.34h1.07L117.25,13h3.16ZM116,7.93h-1.62v-2H116a1,1,0,0,1,0,2Z'%3e%3c/path%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='next'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.143.436H14.286000000000001V14.707H12.143zM.714.429C.32.429%200%20.749%200%201.143V14c0%20.394.32.714.714.714.143-.002.283-.046.4-.128l9.579-6.429c.204-.131.327-.357.327-.6%200-.242-.123-.468-.327-.6L1.114.53c-.12-.072-.26-.107-.4-.1z'%20transform='translate(-374%20-1762)%20translate(325%201754)%20translate(41)%20translate(8%208)%20translate(2.857%202.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036%2036'%20id='next2'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23ff0024'%20fill-rule='nonzero'%3e%3cpath%20d='M21.857.784H25.714V26.473H21.857zM1.286.771C.576.771%200%201.347%200%202.057V25.2c0%20.71.576%201.286%201.286%201.286.257-.004.508-.084.72-.232l17.241-11.571c.367-.237.588-.644.588-1.08%200-.437-.221-.843-.588-1.08L2.006.95c-.217-.129-.468-.192-.72-.18z'%20transform='translate(-782%20-3039)%20translate(360%202790)%20translate(286%20125)%20translate(114%20102)%20translate(22%2022)%20translate(5.143%204.371)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='out-link'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M10.005%2011.5L10.005%209.208%2011.5%209.208%2011.5%2011.375%2011.5%2013%202.625%2013%201%2013%201%202.5%202.625%202.5%204.792%202.5%204.792%203.999%202.5%203.999%202.5%2011.5z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3cpath%20d='M11.5%201L5.5%201%205.5%202.5%2010.44%202.5%206.293%206.646%207.354%207.707%2011.5%203.561%2011.5%208.5%2013%208.5%2013%202.5%2013%201z'%20transform='translate(-941%20-841)%20translate(926%20822)%20translate(5%2012)%20translate(10%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2022'%20id='pause'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2022L22%2022%2022%200%200%200z'%20transform='translate(-808%20-1761)%20translate(325%201754)%20translate(476)%20translate(7%207)'%3e%3c/path%3e%3cpath%20d='M5.277%2019.643L8.42%2019.643%208.42%202.357%205.277%202.357zM13.58%2019.643L16.723%2019.643%2016.723%202.357%2013.58%202.357z'%20transform='translate(-808%20-1761)%20translate(325%201754)%20translate(476)%20translate(7%207)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2022%2022'%20id='play'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1.014%200C.46%200%20.009.444%200%20.998v16.861c.009.554.46.998%201.014.998.172%200%20.342-.044.495-.126l15.25-8.415c.324-.178.525-.518.525-.887%200-.37-.201-.71-.525-.888L1.51.11C1.355.034%201.185-.004%201.014%200z'%20transform='translate(-767%20-1761)%20translate(325%201754)%20translate(435)%20translate(7%207)%20translate(3.143%201.571)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='prev'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cpath%20d='M12.143.436H14.286000000000001V14.707H12.143zM.714.429C.32.429%200%20.749%200%201.143V14c0%20.394.32.714.714.714.143-.002.283-.046.4-.128l9.579-6.429c.204-.131.327-.357.327-.6%200-.242-.123-.468-.327-.6L1.114.53c-.12-.072-.26-.107-.4-.1z'%20transform='translate(-333%20-1762)%20translate(325%201754)%20matrix(-1%200%200%201%2036%200)%20translate(8%208)%20translate(2.857%202.429)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036%2036'%20id='replay'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2036L36%2036%2036%200%200%200z'%20transform='translate(-782%20-4058)%20translate(360%203860)%20translate(389%20176)%20translate(11)%20translate(22%2022)'%3e%3c/path%3e%3cpath%20d='M30.978%2012.843l-3.343%201.93c.824%201.537%201.293%203.29%201.293%205.156%200%206.035-4.892%2010.929-10.928%2010.929-6.035%200-10.929-4.894-10.929-10.929%200-5.187%203.617-9.52%208.461-10.64v4.16l10.536-6.081-10.536-6.082v4.08C8.545%206.542%203.214%2012.604%203.214%2019.929c0%208.166%206.62%2014.786%2014.786%2014.786%208.167%200%2014.785-6.62%2014.785-14.786%200-2.568-.655-4.982-1.807-7.086'%20transform='translate(-782%20-4058)%20translate(360%203860)%20translate(389%20176)%20translate(11)%20translate(22%2022)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-before'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-953%20-2000)%20translate(938%201984)%20translate(15%2016)'%3e%3c/path%3e%3cpath%20d='M3.97%207L8.97%2012%2010.03%2010.94%206.087%206.997%2010.027%203.058%208.97%202z'%20transform='translate(-953%20-2000)%20translate(938%201984)%20translate(15%2016)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-check'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-951%20-2132)%20translate(938%201984)%20translate(1%2056)%20translate(0%2078)%20translate(12%2014)'%3e%3c/path%3e%3cpath%20d='M6.133%209.879L2.111%205.99%201.013%207.05%205.036%2010.94%206.133%2012%207.231%2010.94%2013.448%204.929%2012.351%203.868z'%20transform='translate(-951%20-2132)%20translate(938%201984)%20translate(1%2056)%20translate(0%2078)%20translate(12%2014)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%20id='setting-more'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2014L14%2014%2014%200%200%200z'%20transform='translate(-1099%20-1599)%20translate(938%201538)%20translate(1%2012)%20translate(0%2033)%20translate(160%2016)'%3e%3c/path%3e%3cpath%20d='M10.031%207L5.031%202%203.97%203.061%207.913%207.003%203.973%2010.943%205.031%2012z'%20transform='translate(-1099%20-1599)%20translate(938%201538)%20translate(1%2012)%20translate(0%2033)%20translate(160%2016)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2018'%20id='up'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%20fill-rule='nonzero'%3e%3cg%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M6.939%204.5L2.478%200.039%203.842%20-1.325%209.666%204.499%203.842%2010.325%202.478%208.962z'%20transform='translate(-293%20-57)%20translate(58%2050)%20translate(119)%20translate(116%207)%20translate(2.929%204.5)%20rotate(90%206.072%204.5)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume0'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-415%20-1762)%20translate(325%201754)%20translate(82)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.408%202.079%204.362%204.587H0v9.398h4.362l3.046%202.508%202.325%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM18.571%207.593L17.309%206.331%2015.616%208.024%2013.924%206.331%2012.662%207.593%2014.354%209.286%2012.662%2010.978%2013.924%2012.241%2015.616%2010.549%2017.309%2012.241%2018.571%2010.978%2016.879%209.286z'%20transform='translate(-415%20-1762)%20translate(325%201754)%20translate(82)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume1'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.407%202.079%204.362%204.587H0v9.398h4.362l3.045%202.508%202.326%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM13.984%2013.01l-1.18-1.34c.685-.604%201.077-1.473%201.077-2.384%200-.912-.392-1.782-1.078-2.386l1.181-1.34c1.07.944%201.683%202.302%201.683%203.726s-.613%202.782-1.683%203.724'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3cpath%20fill-opacity='.3'%20d='M15.903%2015.19l-1.18-1.34c1.311-1.155%202.063-2.819%202.063-4.564s-.752-3.41-2.063-4.565l1.18-1.34c1.696%201.495%202.668%203.647%202.668%205.905%200%202.258-.972%204.41-2.668%205.904'%20transform='translate(-456%20-1839)%20translate(325%201831)%20translate(123)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20id='volume2'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill-opacity='0'%20d='M0%2020L20%2020%2020%200%200%200z'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)'%3e%3c/path%3e%3cg%3e%3cpath%20d='M9.733.163L7.407%202.079%204.362%204.587H0v9.398h4.362l3.045%202.508%202.326%201.915c.463.382%201.162.052%201.162-.549V.712c0-.6-.699-.93-1.162-.549zM13.984%2013.01l-1.18-1.34c.685-.604%201.077-1.473%201.077-2.384%200-.912-.392-1.782-1.078-2.386l1.181-1.34c1.07.944%201.683%202.302%201.683%203.726s-.613%202.782-1.683%203.724'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3cpath%20d='M15.903%2015.19l-1.18-1.34c1.311-1.155%202.063-2.819%202.063-4.564s-.752-3.41-2.063-4.565l1.18-1.34c1.696%201.495%202.668%203.647%202.668%205.905%200%202.258-.972%204.41-2.668%205.904'%20transform='translate(-497%20-1762)%20translate(325%201754)%20translate(164)%20translate(8%208)%20translate(.714%20.714)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='pip'%3e%3cpath%20d='M0%200h24v24H0V0z'%20fill='none'/%3e%3cpath%20d='M19%2011h-8v6h8v-6zm4%208V4.98C23%203.88%2022.1%203%2021%203H3c-1.1%200-2%20.88-2%201.98V19c0%201.1.9%202%202%202h18c1.1%200%202-.9%202-2zm-2%20.02H3V4.97h18v14.05z'/%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='subtitles'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM56,128H72a8,8,0,0,1,0,16H56a8,8,0,0,1,0-16Zm96,48H56a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm48,0H184a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H104a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3csymbol%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20id='subtitlesOff'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20fill='%23FFF'%3e%3cpath%20d='M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM48,136a8,8,0,0,1,8-8H72a8,8,0,0,1,0,16H56A8,8,0,0,1,48,136Zm160,0a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16h96A8,8,0,0,1,208,136Zm-48,32a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16h96A8,8,0,0,1,160,168Zm48,0a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16h16A8,8,0,0,1,208,168Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/symbol%3e%3c/svg%3e";function lm(a){const{accessKey:i,platform:s="pub",stage:o="prod",isDev:c=!1,hls:d,dashjs:f,options:g,layout:m}=a,[p,y]=C.useState(null),[S,v]=C.useState([]),[z,j]=C.useState(!1),[L,O]=Xf("playerOptions",g??{}),[A,k]=C.useState(""),[G,P]=C.useState({errorCode:null,errorMessage:null,errorTitle:null}),[_,F]=C.useState(!1),V=0,N=typeof window<"u"&&window.location.host||"local";C.useEffect(()=>{if(!i)return;const dt=new O3({accessKey:i,appId:N,platform:s,stage:o,isDev:c});y(dt)},[i,N,s,o,c]),C.useEffect(()=>{if(!p||z)return;(async()=>{if(await p.initialize(),p.isInitialized()){const it=p.getValidatedOptions(g);O(it),v(it?.playlist||[]),j(!0)}})()},[p,z,g,O]),C.useEffect(()=>{const dt=globalThis;d&&(dt.Hls=d),f&&(dt.dashjs=f)},[d,f]),C.useEffect(()=>{const dt=S?.[V]?.file;if(!dt){k("");return}const it=dt.toLowerCase();it.endsWith(".m3u8")?k("hls"):it.endsWith(".mpd")?k("dash"):it.endsWith(".mp4")?k("mp4"):k("")},[S,V]),C.useEffect(()=>{if(!p||!A)return;const dt=globalThis,it=d??dt.Hls,Q=f??dt.dashjs;if(A==="hls"&&!it){const U=p.setErrorRun("E0015");F(!0),P({errorCode:U?.errorCode,errorMessage:U?.errorMessage?.desc,errorTitle:U?.errorMessage?.title})}if(A==="dash"&&!Q){const U=p.setErrorRun("E0016");F(!0),P({errorCode:U?.errorCode,errorMessage:U?.errorMessage?.desc,errorTitle:U?.errorMessage?.title})}},[A,p,d,f]);const tt=dt=>{if(!dt||typeof dt!="object")return;const it=dt;if(it?.evt=="hlsError"&&it?.data?.type=="networkError"){const Q=p.setErrorRun("E0004");F(!0),P({errorCode:Q?.errorCode,errorMessage:Q?.errorMessage?.desc,errorTitle:Q?.errorMessage?.title})}},lt=S?.[V],ot=d??globalThis.Hls,I=f??globalThis.dashjs,ut=()=>{if(!lt)return null;switch(A){case"hls":return x.jsx(J3,{src:lt,hlsLib:ot,options:L,onError:dt=>tt(dt)});case"dash":return x.jsx(I3,{src:lt,dashLib:I,options:L});case"mp4":return x.jsx(W3,{src:lt,options:L});default:return null}};return x.jsx("div",{style:{position:"relative",maxHeight:"100dvh",width:"100%",height:"100%",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},className:"vpe-root-wrap",children:_?x.jsxs("div",{style:{width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:L?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[x.jsx("div",{style:{background:`url(${lt.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),x.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"rgba(0,0,0,0.69)"},children:x.jsxs("div",{style:{textAlign:"center"},children:[x.jsx("div",{children:x.jsx("svg",{width:"128",height:"128","aria-hidden":"true",children:x.jsx("use",{href:`${Cb}#error0`})})}),x.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:x.jsx("strong",{children:G?.errorMessage})}),G?.errorCode&&x.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",G.errorCode,")"]})]})})]}):x.jsxs(x.Fragment,{children:[x.jsx(zb,{src:lt,hlsLib:ot,dashLib:I,options:L,poster:lt?.poster,layout:m,metaTitle:lt?.description?.title,t:dt=>p?.$t(dt)??dt}),x.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:L?.aspectRatio||"16/9"},children:ut()})]})})}const sm=globalThis;sm.process||(sm.process={env:{}});let rm,hu;const wb=(()=>{if(typeof document>"u")return"";const a=[];document.currentScript instanceof HTMLScriptElement&&a.push(document.currentScript),a.push(...Array.from(document.getElementsByTagName("script")));for(const i of a)if(i.src)try{const o=new URL(i.src,window.location.href).searchParams.get("accessKey");if(o)return o}catch{continue}return""})();function Db(a){return a||wb}const Rb=a=>!a||typeof a!="object"?!1:"options"in a||"layout"in a||"platform"in a||"stage"in a||"hls"in a||"dashjs"in a||"accessKey"in a;function Lb(a){if(!a)return;const i=globalThis,s=typeof a=="object"&&a!==null&&("MediaPlayer"in a||"MediaPlayerFactory"in a),o=typeof a=="function"||typeof a=="object"&&a!==null&&("isSupported"in a||"Events"in a);if(s&&!o){i.dashjs=a;return}if(o&&!s){i.Hls=a;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function Bb(a){return typeof a!="string"||a.startsWith("#")||a.startsWith(".")||a.startsWith("[")||a.includes(" ")||a.includes(">")||a.includes(":")?a:typeof document<"u"&&document.getElementById(a)?`#${a}`:a}function Vb(a){return x.jsx(lm,{...a})}function mu(a,i,s={}){const o=typeof i=="string"?i:i?.accessKey,c=typeof i=="string"?s:i??{},d=Rb(c)?c:{options:c},f=Db(o);if(!f)throw new Error("accessKey를 찾을 수 없습니다.");const g=typeof a=="string"?document.querySelector(a):a;if(!g)throw new Error("지정한 타겟을 찾을 수 없습니다.");const m=document.createElement("div");g.appendChild(m);const p=y3.createRoot(m),y={...d,layout:d.layout??rm,platform:d.platform??hu?.platform,stage:d.stage??hu?.stage},S=(z={})=>{p.render(x.jsx(lm,{...y,...z,accessKey:f}))};return S(),{destroy:()=>{p.unmount(),m.parentNode&&m.parentNode.removeChild(m)},container:m,render:S}}class Qa{destroy;container;render;static use(i){return Lb(i),Qa}static layout(i){return rm=i,Qa}static config(i){return hu=i,Qa}constructor(i,s,o={}){const c=mu(Bb(i),s,o);this.destroy=c.destroy,this.container=c.container,this.render=c.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:mu},window.ncplayer=Qa),on.Ncplayer=Qa,on.VpePlayer=Vb,on.setup=mu,on.useDeviceState=Ff,Object.defineProperty(on,Symbol.toStringTag,{value:"Module"})}));
26
+ `),()=>{N.contains(z)&&N.removeChild(z)}},[a]),x.jsx(rx,{isPresent:a,childRef:d,sizeRef:f,children:A.cloneElement(i,{ref:y})})}const ux=({children:i,initial:a,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:d,mode:f,anchorX:m,root:y})=>{const p=Ir(cx),v=A.useId();let S=!0,g=A.useMemo(()=>(S=!1,{id:v,initial:a,isPresent:s,custom:u,onExitComplete:D=>{p.set(D,!0);for(const O of p.values())if(!O)return;o&&o()},register:D=>(p.set(D,!1),()=>p.delete(D))}),[s,p,o]);return d&&S&&(g={...g}),A.useMemo(()=>{p.forEach((D,O)=>p.set(O,!1))},[s]),A.useEffect(()=>{!s&&!p.size&&o&&o()},[s]),f==="popLayout"&&(i=x.jsx(ox,{isPresent:s,anchorX:m,root:y,children:i})),x.jsx(es.Provider,{value:g,children:i})};function cx(){return new Map}function jh(i=!0){const a=A.useContext(es);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:u}=a,d=A.useId();A.useEffect(()=>{if(i)return u(d)},[i]);const f=A.useCallback(()=>i&&o&&o(d),[d,o,i]);return!s&&o?[!1,f]:[!0]}const us=i=>i.key||"";function wh(i){const a=[];return A.Children.forEach(i,s=>{A.isValidElement(s)&&a.push(s)}),a}const fx=({children:i,custom:a,initial:s=!0,onExitComplete:o,presenceAffectsLayout:u=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",root:y})=>{const[p,v]=jh(f),S=A.useMemo(()=>wh(i),[i]),g=f&&!p?[]:S.map(us),D=A.useRef(!0),O=A.useRef(S),z=Ir(()=>new Map),[N,M]=A.useState(S),[V,_]=A.useState(S);gd(()=>{D.current=!1,O.current=S;for(let K=0;K<V.length;K++){const L=us(V[K]);g.includes(L)?z.delete(L):z.get(L)!==!0&&z.set(L,!1)}},[V,g.length,g.join("-")]);const F=[];if(S!==N){let K=[...S];for(let L=0;L<V.length;L++){const H=V[L],tt=us(H);g.includes(tt)||(K.splice(L,0,H),F.push(H))}return d==="wait"&&F.length&&(K=F),_(wh(K)),M(S),null}const{forceRender:U}=A.useContext(Jr);return x.jsx(x.Fragment,{children:V.map(K=>{const L=us(K),H=f&&!p?!1:S===V||g.includes(L),tt=()=>{if(z.has(L))z.set(L,!0);else return;let lt=!0;z.forEach(ot=>{ot||(lt=!1)}),lt&&(U?.(),_(O.current),f&&v?.(),o&&o())};return x.jsx(ux,{isPresent:H,initial:!D.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:d,root:y,onExitComplete:H?void 0:tt,anchorX:m,children:K},L)})})},Lh=A.createContext({strict:!1}),Oh={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"]},Yi={};for(const i in Oh)Yi[i]={isEnabled:a=>Oh[i].some(s=>!!a[s])};function dx(i){for(const a in i)Yi[a]={...Yi[a],...i[a]}}const hx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function cs(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||hx.has(i)}let Bh=i=>!cs(i);function mx(i){typeof i=="function"&&(Bh=a=>a.startsWith("on")?!cs(a):i(a))}try{mx(require("@emotion/is-prop-valid").default)}catch{}function px(i,a,s){const o={};for(const u in i)u==="values"&&typeof i.values=="object"||(Bh(u)||s===!0&&cs(u)||!a&&!cs(u)||i.draggable&&u.startsWith("onDrag"))&&(o[u]=i[u]);return o}const fs=A.createContext({});function ds(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Za(i){return typeof i=="string"||Array.isArray(i)}const Go=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...Go];function hs(i){return ds(i.animate)||ko.some(a=>Za(i[a]))}function Vh(i){return!!(hs(i)||i.variants)}function yx(i,a){if(hs(i)){const{initial:s,animate:o}=i;return{initial:s===!1||Za(s)?s:void 0,animate:Za(o)?o:void 0}}return i.inherit!==!1?a:{}}function vx(i){const{initial:a,animate:s}=yx(i,A.useContext(fs));return A.useMemo(()=>({initial:a,animate:s}),[Nh(a),Nh(s)])}function Nh(i){return Array.isArray(i)?i.join(" "):i}function Uh(i,a){return a.max===a.min?0:i/(a.max-a.min)*100}const Fa={correct:(i,a)=>{if(!a.target)return i;if(typeof i=="string")if(rt.test(i))i=parseFloat(i);else return i;const s=Uh(i,a.target.x),o=Uh(i,a.target.y);return`${s}% ${o}%`}},gx={correct:(i,{treeScale:a,projectionDelta:s})=>{const o=i,u=Bn.parse(i);if(u.length>5)return o;const d=Bn.createTransformer(i),f=typeof u[0]!="number"?1:0,m=s.x.scale*a.x,y=s.y.scale*a.y;u[0+f]/=m,u[1+f]/=y;const p=_t(m,y,.5);return typeof u[2+f]=="number"&&(u[2+f]/=p),typeof u[3+f]=="number"&&(u[3+f]/=p),d(u)}},Yo={borderRadius:{...Fa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fa,borderTopRightRadius:Fa,borderBottomLeftRadius:Fa,borderBottomRightRadius:Fa,boxShadow:gx};function Hh(i,{layout:a,layoutId:s}){return Gi.has(i)||i.startsWith("origin")||(a||s!==void 0)&&(!!Yo[i]||i==="opacity")}const bx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sx=_i.length;function xx(i,a,s){let o="",u=!0;for(let d=0;d<Sx;d++){const f=_i[d],m=i[f];if(m===void 0)continue;let y=!0;if(typeof m=="number"?y=m===(f.startsWith("scale")?1:0):y=parseFloat(m)===0,!y||s){const p=bh(m,Vo[f]);if(!y){u=!1;const v=bx[f]||f;o+=`${v}(${p}) `}s&&(a[f]=p)}}return o=o.trim(),s?o=s(a,u?"":o):u&&(o="none"),o}function qo(i,a,s){const{style:o,vars:u,transformOrigin:d}=i;let f=!1,m=!1;for(const y in a){const p=a[y];if(Gi.has(y)){f=!0;continue}else if(Nd(y)){u[y]=p;continue}else{const v=bh(p,Vo[y]);y.startsWith("origin")?(m=!0,d[y]=v):o[y]=v}}if(a.transform||(f||s?o.transform=xx(a,i.transform,s):o.transform&&(o.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=d;o.transformOrigin=`${y} ${p} ${v}`}}const Xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _h(i,a,s){for(const o in a)!de(a[o])&&!Hh(o,s)&&(i[o]=a[o])}function Tx({transformTemplate:i},a){return A.useMemo(()=>{const s=Xo();return qo(s,a,i),Object.assign({},s.vars,s.style)},[a])}function Ex(i,a){const s=i.style||{},o={};return _h(o,s,i),Object.assign(o,Tx(i,a)),o}function Mx(i,a){const s={},o=Ex(i,a);return i.drag&&i.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(s.tabIndex=0),s.style=o,s}const Ax={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cx={offset:"strokeDashoffset",array:"strokeDasharray"};function Dx(i,a,s=1,o=0,u=!0){i.pathLength=1;const d=u?Ax:Cx;i[d.offset]=rt.transform(-o);const f=rt.transform(a),m=rt.transform(s);i[d.array]=`${f} ${m}`}function Gh(i,{attrX:a,attrY:s,attrScale:o,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...m},y,p,v){if(qo(i,m,p),y){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:S,style:g}=i;S.transform&&(g.transform=S.transform,delete S.transform),(g.transform||S.transformOrigin)&&(g.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),g.transform&&(g.transformBox=v?.transformBox??"fill-box",delete S.transformBox),a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),o!==void 0&&(S.scale=o),u!==void 0&&Dx(S,u,d,f,!1)}const kh=()=>({...Xo(),attrs:{}}),Yh=i=>typeof i=="string"&&i.toLowerCase()==="svg";function Rx(i,a,s,o){const u=A.useMemo(()=>{const d=kh();return Gh(d,a,Yh(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[a]);if(i.style){const d={};_h(d,i.style,i),u.style={...d,...u.style}}return u}const zx=["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 Ko(i){return typeof i!="string"||i.includes("-")?!1:!!(zx.indexOf(i)>-1||/[A-Z]/u.test(i))}function jx(i,a,s,{latestValues:o},u,d=!1){const m=(Ko(i)?Rx:Mx)(a,o,u,i),y=px(a,typeof i=="string",d),p=i!==A.Fragment?{...y,...m,ref:s}:{},{children:v}=a,S=A.useMemo(()=>de(v)?v.get():v,[v]);return A.createElement(i,{...p,children:S})}function qh(i){const a=[{},{}];return i?.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function Po(i,a,s,o){if(typeof a=="function"){const[u,d]=qh(o);a=a(s!==void 0?s:i.custom,u,d)}if(typeof a=="string"&&(a=i.variants&&i.variants[a]),typeof a=="function"){const[u,d]=qh(o);a=a(s!==void 0?s:i.custom,u,d)}return a}function ms(i){return de(i)?i.get():i}function wx({scrapeMotionValuesFromProps:i,createRenderState:a},s,o,u){return{latestValues:Lx(s,o,u,i),renderState:a()}}function Lx(i,a,s,o){const u={},d=o(i,{});for(const g in d)u[g]=ms(d[g]);let{initial:f,animate:m}=i;const y=hs(i),p=Vh(i);a&&p&&!y&&i.inherit!==!1&&(f===void 0&&(f=a.initial),m===void 0&&(m=a.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const S=v?m:f;if(S&&typeof S!="boolean"&&!ds(S)){const g=Array.isArray(S)?S:[S];for(let D=0;D<g.length;D++){const O=Po(i,g[D]);if(O){const{transitionEnd:z,transition:N,...M}=O;for(const V in M){let _=M[V];if(Array.isArray(_)){const F=v?_.length-1:0;_=_[F]}_!==null&&(u[V]=_)}for(const V in z)u[V]=z[V]}}}return u}const Xh=i=>(a,s)=>{const o=A.useContext(fs),u=A.useContext(es),d=()=>wx(i,a,o,u);return s?d():Ir(d)};function Qo(i,a,s){const{style:o}=i,u={};for(const d in o)(de(o[d])||a.style&&de(a.style[d])||Hh(d,i)||s?.getValue(d)?.liveStyle!==void 0)&&(u[d]=o[d]);return u}const Ox=Xh({scrapeMotionValuesFromProps:Qo,createRenderState:Xo});function Kh(i,a,s){const o=Qo(i,a,s);for(const u in i)if(de(i[u])||de(a[u])){const d=_i.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=i[u]}return o}const Bx=Xh({scrapeMotionValuesFromProps:Kh,createRenderState:kh}),Vx=Symbol.for("motionComponentSymbol");function qi(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function Nx(i,a,s){return A.useCallback(o=>{o&&i.onMount&&i.onMount(o),a&&(o?a.mount(o):a.unmount()),s&&(typeof s=="function"?s(o):qi(s)&&(s.current=o))},[a])}const Zo=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ph="data-"+Zo("framerAppearId"),Qh=A.createContext({});function Ux(i,a,s,o,u){const{visualElement:d}=A.useContext(fs),f=A.useContext(Lh),m=A.useContext(es),y=A.useContext(_o).reducedMotion,p=A.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(i,{visualState:a,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y}));const v=p.current,S=A.useContext(Qh);v&&!v.projection&&u&&(v.type==="html"||v.type==="svg")&&Hx(p.current,s,u,S);const g=A.useRef(!1);A.useInsertionEffect(()=>{v&&g.current&&v.update(s,m)});const D=s[Ph],O=A.useRef(!!D&&!window.MotionHandoffIsComplete?.(D)&&window.MotionHasOptimisedAnimation?.(D));return gd(()=>{v&&(g.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),O.current&&v.animationState&&v.animationState.animateChanges())}),A.useEffect(()=>{v&&(!O.current&&v.animationState&&v.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(D)}),O.current=!1),v.enteringChildren=void 0)}),v}function Hx(i,a,s,o){const{layoutId:u,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=a;i.projection=new s(i.latestValues,a["data-framer-portal-id"]?void 0:Zh(i.parent)),i.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!f||m&&qi(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:y,layoutRoot:p})}function Zh(i){if(i)return i.options.allowProjection!==!1?i.projection:Zh(i.parent)}function Fo(i,{forwardMotionProps:a=!1}={},s,o){s&&dx(s);const u=Ko(i)?Bx:Ox;function d(m,y){let p;const v={...A.useContext(_o),...m,layoutId:_x(m)},{isStatic:S}=v,g=vx(m),D=u(m,S);if(!S&&Wr){Gx();const O=kx(v);p=O.MeasureLayout,g.visualElement=Ux(i,D,v,o,O.ProjectionNode)}return x.jsxs(fs.Provider,{value:g,children:[p&&g.visualElement?x.jsx(p,{visualElement:g.visualElement,...v}):null,jx(i,m,Nx(D,g.visualElement,y),D,S,a)]})}d.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const f=A.forwardRef(d);return f[Vx]=i,f}function _x({layoutId:i}){const a=A.useContext(Jr).id;return a&&i!==void 0?a+"-"+i:i}function Gx(i,a){A.useContext(Lh).strict}function kx(i){const{drag:a,layout:s}=Yi;if(!a&&!s)return{};const o={...a,...s};return{MeasureLayout:a?.isEnabled(i)||s?.isEnabled(i)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Yx(i,a){if(typeof Proxy>"u")return Fo;const s=new Map,o=(d,f)=>Fo(d,f,i,a),u=(d,f)=>o(d,f);return new Proxy(u,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,Fo(f,void 0,i,a)),s.get(f))})}function Fh({top:i,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:i,max:o}}}function qx({x:i,y:a}){return{top:a.min,right:i.max,bottom:a.max,left:i.min}}function Xx(i,a){if(!a)return i;const s=a({x:i.left,y:i.top}),o=a({x:i.right,y:i.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Jo(i){return i===void 0||i===1}function Io({scale:i,scaleX:a,scaleY:s}){return!Jo(i)||!Jo(a)||!Jo(s)}function hi(i){return Io(i)||Jh(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Jh(i){return Ih(i.x)||Ih(i.y)}function Ih(i){return i&&i!=="0%"}function ps(i,a,s){const o=i-s,u=a*o;return s+u}function Wh(i,a,s,o,u){return u!==void 0&&(i=ps(i,u,o)),ps(i,s,o)+a}function Wo(i,a=0,s=1,o,u){i.min=Wh(i.min,a,s,o,u),i.max=Wh(i.max,a,s,o,u)}function $h(i,{x:a,y:s}){Wo(i.x,a.translate,a.scale,a.originPoint),Wo(i.y,s.translate,s.scale,s.originPoint)}const tm=.999999999999,em=1.0000000000001;function Kx(i,a,s,o=!1){const u=s.length;if(!u)return;a.x=a.y=1;let d,f;for(let m=0;m<u;m++){d=s[m],f=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ki(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,$h(i,f)),o&&hi(d.latestValues)&&Ki(i,d.latestValues))}a.x<em&&a.x>tm&&(a.x=1),a.y<em&&a.y>tm&&(a.y=1)}function Xi(i,a){i.min=i.min+a,i.max=i.max+a}function nm(i,a,s,o,u=.5){const d=_t(i.min,i.max,u);Wo(i,a,s,d,o)}function Ki(i,a){nm(i.x,a.x,a.scaleX,a.scale,a.originX),nm(i.y,a.y,a.scaleY,a.scale,a.originY)}function im(i,a){return Fh(Xx(i.getBoundingClientRect(),a))}function Px(i,a,s){const o=im(i,s),{scroll:u}=a;return u&&(Xi(o.x,u.offset.x),Xi(o.y,u.offset.y)),o}const am=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pi=()=>({x:am(),y:am()}),lm=()=>({min:0,max:0}),Wt=()=>({x:lm(),y:lm()}),$o={current:null},sm={current:!1};function Qx(){if(sm.current=!0,!!Wr)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),a=()=>$o.current=i.matches;i.addEventListener("change",a),a()}else $o.current=!1}const Zx=new WeakMap;function Fx(i,a,s){for(const o in a){const u=a[o],d=s[o];if(de(u))i.addValue(o,u);else if(de(d))i.addValue(o,ki(u,{owner:i}));else if(d!==u)if(i.hasValue(o)){const f=i.getValue(o);f.liveStyle===!0?f.jump(u):f.hasAnimated||f.set(u)}else{const f=i.getStaticValue(o);i.addValue(o,ki(f!==void 0?f:u,{owner:i}))}}for(const o in s)a[o]===void 0&&i.removeValue(o);return a}const rm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Jx{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:u,blockInitialAnimation:d,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 g=ye.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Vt.render(this.render,!1,!0))};const{latestValues:y,renderState:p}=f;this.latestValues=y,this.baseTarget={...y},this.initialValues=s.initial?{...y}:{},this.renderState=p,this.parent=a,this.props=s,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=hs(s),this.isVariantNode=Vh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const g in S){const D=S[g];y[g]!==void 0&&de(D)&&D.set(y[g])}}mount(a){this.current=a,Zx.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),sm.current||Qx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$o.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ln(this.notifyUpdate),Ln(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const o=Gi.has(a);o&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),d&&d(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Yi){const s=Yi[a];if(!s)continue;const{isEnabled:o,Feature:u}=s;if(!this.features[a]&&u&&o(this.props)&&(this.features[a]=new u(this)),this.features[a]){const d=this.features[a];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<rm.length;o++){const u=rm[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,f=a[d];f&&(this.propEventSubscriptions[u]=this.on(u,f))}this.prevMotionValues=Fx(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=ki(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(bd(o)||xd(o))?o=parseFloat(o):!ax(o)&&Bn.test(s)&&(o=gh(a,s)),this.setBaseTarget(a,de(o)?o.get():o)),de(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const d=Po(this.props,s,this.presenceContext?.custom);d&&(o=d[a])}if(s&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!de(u)?u:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new io),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){No.render(this.render)}}class om extends Jx{constructor(){super(...arguments),this.KeyframeResolver=PS}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){return a.style?a.style[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;de(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function um(i,{style:a,vars:s},o,u){const d=i.style;let f;for(f in a)d[f]=a[f];u?.applyProjectionStyles(d,o);for(f in s)d.setProperty(f,s[f])}function Ix(i){return window.getComputedStyle(i)}class Wx extends om{constructor(){super(...arguments),this.type="html",this.renderInstance=um}readValueFromInstance(a,s){if(Gi.has(s))return this.projection?.isProjecting?Co(s):dS(a,s);{const o=Ix(a),u=(Nd(s)?o.getPropertyValue(s):o[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:s}){return im(a,s)}build(a,s,o){qo(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Qo(a,s,o)}}const cm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $x(i,a,s,o){um(i,a,void 0,o);for(const u in a.attrs)i.setAttribute(cm.has(u)?u:Zo(u),a.attrs[u])}class tT extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Gi.has(s)){const o=vh(s);return o&&o.default||0}return s=cm.has(s)?s:Zo(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return Kh(a,s,o)}build(a,s,o){Gh(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,u){$x(a,s,o,u)}mount(a){this.isSVGTag=Yh(a.tagName),super.mount(a)}}const eT=(i,a)=>Ko(i)?new tT(a):new Wx(a,{allowProjection:i!==A.Fragment});function Qi(i,a,s){const o=i.getProps();return Po(o,a,s!==void 0?s:o.custom,i)}const tu=i=>Array.isArray(i);function nT(i,a,s){i.hasValue(a)?i.getValue(a).set(s):i.addValue(a,ki(s))}function iT(i){return tu(i)?i[i.length-1]||0:i}function aT(i,a){const s=Qi(i,a);let{transitionEnd:o={},transition:u={},...d}=s||{};d={...d,...o};for(const f in d){const m=iT(d[f]);nT(i,f,m)}}function lT(i){return!!(de(i)&&i.add)}function eu(i,a){const s=i.getValue("willChange");if(lT(s))return s.add(a);if(!s&&fn.WillChange){const o=new fn.WillChange("auto");i.addValue("willChange",o),o.add(a)}}function fm(i){return i.props[Ph]}const sT=i=>i!==null;function rT(i,{repeat:a,repeatType:s="loop"},o){const u=i.filter(sT),d=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[d]}const oT={type:"spring",stiffness:500,damping:25,restSpeed:10},uT=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),cT={type:"keyframes",duration:.8},fT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dT=(i,{keyframes:a})=>a.length>2?cT:Gi.has(i)?i.startsWith("scale")?uT(a[1]):oT:fT;function hT({when:i,delay:a,delayChildren:s,staggerChildren:o,staggerDirection:u,repeat:d,repeatType:f,repeatDelay:m,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const nu=(i,a,s,o={},u,d)=>f=>{const m=Oo(o,i)||{},y=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-en(y);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...m,delay:-p,onUpdate:g=>{a.set(g),m.onUpdate&&m.onUpdate(g)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:i,motionValue:a,element:d?void 0:u};hT(m)||Object.assign(v,dT(i,v)),v.duration&&(v.duration=en(v.duration)),v.repeatDelay&&(v.repeatDelay=en(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Lo(v),v.delay===0&&(S=!0)),(fn.instantAnimations||fn.skipAnimations)&&(S=!0,Lo(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,S&&!d&&a.get()!==void 0){const g=rT(v.keyframes,m);if(g!==void 0){Vt.update(()=>{v.onUpdate(g),v.onComplete()});return}}return m.isSync?new Eo(v):new VS(v)};function mT({protectedKeys:i,needsAnimating:a},s){const o=i.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function dm(i,a,{delay:s=0,transitionOverride:o,type:u}={}){let{transition:d=i.getDefaultTransition(),transitionEnd:f,...m}=a;o&&(d=o);const y=[],p=u&&i.animationState&&i.animationState.getState()[u];for(const v in m){const S=i.getValue(v,i.latestValues[v]??null),g=m[v];if(g===void 0||p&&mT(p,v))continue;const D={delay:s,...Oo(d||{},v)},O=S.get();if(O!==void 0&&!S.isAnimating&&!Array.isArray(g)&&g===O&&!D.velocity)continue;let z=!1;if(window.MotionHandoffAnimation){const M=fm(i);if(M){const V=window.MotionHandoffAnimation(M,v,Vt);V!==null&&(D.startTime=V,z=!0)}}eu(i,v),S.start(nu(v,S,g,i.shouldReduceMotion&&dh.has(v)?{type:!1}:D,i,z));const N=S.animation;N&&y.push(N)}return f&&Promise.all(y).then(()=>{Vt.update(()=>{f&&aT(i,f)})}),y}function hm(i,a,s,o=0,u=1){const d=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(a),f=i.size,m=(f-1)*o;return typeof s=="function"?s(d,f):u===1?d*o:m-d*o}function iu(i,a,s={}){const o=Qi(i,a,s.type==="exit"?i.presenceContext?.custom:void 0);let{transition:u=i.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(u=s.transitionOverride);const d=o?()=>Promise.all(dm(i,o,s)):()=>Promise.resolve(),f=i.variantChildren&&i.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:S}=u;return pT(i,a,y,p,v,S,s)}:()=>Promise.resolve(),{when:m}=u;if(m){const[y,p]=m==="beforeChildren"?[d,f]:[f,d];return y().then(()=>p())}else return Promise.all([d(),f(s.delay)])}function pT(i,a,s=0,o=0,u=0,d=1,f){const m=[];for(const y of i.variantChildren)y.notify("AnimationStart",a),m.push(iu(y,a,{...f,delay:s+(typeof o=="function"?0:o)+hm(i.variantChildren,y,o,u,d)}).then(()=>y.notify("AnimationComplete",a)));return Promise.all(m)}function yT(i,a,s={}){i.notify("AnimationStart",a);let o;if(Array.isArray(a)){const u=a.map(d=>iu(i,d,s));o=Promise.all(u)}else if(typeof a=="string")o=iu(i,a,s);else{const u=typeof a=="function"?Qi(i,a,s.custom):a;o=Promise.all(dm(i,u,s))}return o.then(()=>{i.notify("AnimationComplete",a)})}function mm(i,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==i.length)return!1;for(let o=0;o<s;o++)if(a[o]!==i[o])return!1;return!0}const vT=ko.length;function pm(i){if(!i)return;if(!i.isControllingVariants){const s=i.parent?pm(i.parent)||{}:{};return i.props.initial!==void 0&&(s.initial=i.props.initial),s}const a={};for(let s=0;s<vT;s++){const o=ko[s],u=i.props[o];(Za(u)||u===!1)&&(a[o]=u)}return a}const gT=[...Go].reverse(),bT=Go.length;function ST(i){return a=>Promise.all(a.map(({animation:s,options:o})=>yT(i,s,o)))}function xT(i){let a=ST(i),s=ym(),o=!0;const u=y=>(p,v)=>{const S=Qi(i,v,y==="exit"?i.presenceContext?.custom:void 0);if(S){const{transition:g,transitionEnd:D,...O}=S;p={...p,...O,...D}}return p};function d(y){a=y(i)}function f(y){const{props:p}=i,v=pm(i.parent)||{},S=[],g=new Set;let D={},O=1/0;for(let N=0;N<bT;N++){const M=gT[N],V=s[M],_=p[M]!==void 0?p[M]:v[M],F=Za(_),U=M===y?V.isActive:null;U===!1&&(O=N);let K=_===v[M]&&_!==p[M]&&F;if(K&&o&&i.manuallyAnimateOnMount&&(K=!1),V.protectedKeys={...D},!V.isActive&&U===null||!_&&!V.prevProp||ds(_)||typeof _=="boolean")continue;const L=TT(V.prevProp,_);let H=L||M===y&&V.isActive&&!K&&F||N>O&&F,tt=!1;const lt=Array.isArray(_)?_:[_];let ot=lt.reduce(u(M),{});U===!1&&(ot={});const{prevResolvedValues:I={}}=V,ut={...I,...ot},dt=k=>{H=!0,g.has(k)&&(tt=!0,g.delete(k)),V.needsAnimating[k]=!0;const Q=i.getValue(k);Q&&(Q.liveStyle=!1)};for(const k in ut){const Q=ot[k],it=I[k];if(D.hasOwnProperty(k))continue;let yt=!1;tu(Q)&&tu(it)?yt=!mm(Q,it):yt=Q!==it,yt?Q!=null?dt(k):g.add(k):Q!==void 0&&g.has(k)?dt(k):V.protectedKeys[k]=!0}V.prevProp=_,V.prevResolvedValues=ot,V.isActive&&(D={...D,...ot}),o&&i.blockInitialAnimation&&(H=!1);const nt=K&&L;H&&(!nt||tt)&&S.push(...lt.map(k=>{const Q={type:M};if(typeof k=="string"&&o&&!nt&&i.manuallyAnimateOnMount&&i.parent){const{parent:it}=i,yt=Qi(it,k);if(it.enteringChildren&&yt){const{delayChildren:wt}=yt.transition||{};Q.delay=hm(it.enteringChildren,i,wt)}}return{animation:k,options:Q}}))}if(g.size){const N={};if(typeof p.initial!="boolean"){const M=Qi(i,Array.isArray(p.initial)?p.initial[0]:p.initial);M&&M.transition&&(N.transition=M.transition)}g.forEach(M=>{const V=i.getBaseTarget(M),_=i.getValue(M);_&&(_.liveStyle=!0),N[M]=V??null}),S.push({animation:N})}let z=!!S.length;return o&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(z=!1),o=!1,z?a(S):Promise.resolve()}function m(y,p){if(s[y].isActive===p)return Promise.resolve();i.variantChildren?.forEach(S=>S.animationState?.setActive(y,p)),s[y].isActive=p;const v=f(y);for(const S in s)s[S].protectedKeys={};return v}return{animateChanges:f,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=ym()}}}function TT(i,a){return typeof a=="string"?a!==i:Array.isArray(a)?!mm(a,i):!1}function mi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ym(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}class Vn{constructor(a){this.isMounted=!1,this.node=a}update(){}}class ET extends Vn{constructor(a){super(a),a.animationState||(a.animationState=xT(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();ds(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let MT=0;class AT extends Vn{constructor(){super(...arguments),this.id=MT++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;const u=this.node.animationState.setActive("exit",!a);s&&!a&&u.then(()=>{s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const CT={animation:{Feature:ET},exit:{Feature:AT}};function Ja(i,a,s,o={passive:!0}){return i.addEventListener(a,s,o),()=>i.removeEventListener(a,s)}function Ia(i){return{point:{x:i.pageX,y:i.pageY}}}const DT=i=>a=>Uo(a)&&i(a,Ia(a));function Wa(i,a,s,o){return Ja(i,a,DT(s),o)}const vm=1e-4,RT=1-vm,zT=1+vm,gm=.01,jT=0-gm,wT=0+gm;function he(i){return i.max-i.min}function LT(i,a,s){return Math.abs(i-a)<=s}function bm(i,a,s,o=.5){i.origin=o,i.originPoint=_t(a.min,a.max,i.origin),i.scale=he(s)/he(a),i.translate=_t(s.min,s.max,i.origin)-i.originPoint,(i.scale>=RT&&i.scale<=zT||isNaN(i.scale))&&(i.scale=1),(i.translate>=jT&&i.translate<=wT||isNaN(i.translate))&&(i.translate=0)}function $a(i,a,s,o){bm(i.x,a.x,s.x,o?o.originX:void 0),bm(i.y,a.y,s.y,o?o.originY:void 0)}function Sm(i,a,s){i.min=s.min+a.min,i.max=i.min+he(a)}function OT(i,a,s){Sm(i.x,a.x,s.x),Sm(i.y,a.y,s.y)}function xm(i,a,s){i.min=a.min-s.min,i.max=i.min+he(a)}function ys(i,a,s){xm(i.x,a.x,s.x),xm(i.y,a.y,s.y)}function Ue(i){return[i("x"),i("y")]}const Tm=({current:i})=>i?i.ownerDocument.defaultView:null,Em=(i,a)=>Math.abs(i-a);function BT(i,a){const s=Em(i.x,a.x),o=Em(i.y,a.y);return Math.sqrt(s**2+o**2)}class Mm{constructor(a,s,{transformPagePoint:o,contextWindow:u=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=lu(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,O=BT(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!O)return;const{point:z}=g,{timestamp:N}=ae;this.history.push({...z,timestamp:N});const{onStart:M,onMove:V}=this.handlers;D||(M&&M(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,g)},this.handlePointerMove=(g,D)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=au(D,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(g,D)=>{this.end();const{onEnd:O,onSessionEnd:z,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=lu(g.type==="pointercancel"?this.lastMoveEventInfo:au(D,this.transformPagePoint),this.history);this.startEvent&&O&&O(g,M),z&&z(g,M)},!Uo(a))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=u||window;const m=Ia(a),y=au(m,this.transformPagePoint),{point:p}=y,{timestamp:v}=ae;this.history=[{...p,timestamp:v}];const{onSessionStart:S}=s;S&&S(a,lu(y,this.history)),this.removeListeners=_a(Wa(this.contextWindow,"pointermove",this.handlePointerMove),Wa(this.contextWindow,"pointerup",this.handlePointerUp),Wa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Ln(this.updatePoint)}}function au(i,a){return a?{point:a(i.point)}:i}function Am(i,a){return{x:i.x-a.x,y:i.y-a.y}}function lu({point:i},a){return{point:i,delta:Am(i,Cm(a)),offset:Am(i,VT(a)),velocity:NT(a,.1)}}function VT(i){return i[0]}function Cm(i){return i[i.length-1]}function NT(i,a){if(i.length<2)return{x:0,y:0};let s=i.length-1,o=null;const u=Cm(i);for(;s>=0&&(o=i[s],!(u.timestamp-o.timestamp>en(a)));)s--;if(!o)return{x:0,y:0};const d=Ne(u.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(u.x-o.x)/d,y:(u.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function UT(i,{min:a,max:s},o){return a!==void 0&&i<a?i=o?_t(a,i,o.min):Math.max(i,a):s!==void 0&&i>s&&(i=o?_t(s,i,o.max):Math.min(i,s)),i}function Dm(i,a,s){return{min:a!==void 0?i.min+a:void 0,max:s!==void 0?i.max+s-(i.max-i.min):void 0}}function HT(i,{top:a,left:s,bottom:o,right:u}){return{x:Dm(i.x,s,u),y:Dm(i.y,a,o)}}function Rm(i,a){let s=a.min-i.min,o=a.max-i.max;return a.max-a.min<i.max-i.min&&([s,o]=[o,s]),{min:s,max:o}}function _T(i,a){return{x:Rm(i.x,a.x),y:Rm(i.y,a.y)}}function GT(i,a){let s=.5;const o=he(i),u=he(a);return u>o?s=Ga(a.min,a.max-o,i.min):o>u&&(s=Ga(i.min,i.max-u,a.min)),cn(0,1,s)}function kT(i,a){const s={};return a.min!==void 0&&(s.min=a.min-i.min),a.max!==void 0&&(s.max=a.max-i.min),s}const su=.35;function YT(i=su){return i===!1?i=0:i===!0&&(i=su),{x:zm(i,"left","right"),y:zm(i,"top","bottom")}}function zm(i,a,s){return{min:jm(i,a),max:jm(i,s)}}function jm(i,a){return typeof i=="number"?i:i[a]||0}const qT=new WeakMap;class XT{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const d=S=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ia(S).point)},f=(S,g)=>{const{drag:D,dragPropagation:O,onDragStart:z}=this.getProps();if(D&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JS(D),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ue(M=>{let V=this.getAxisMotionValue(M).get()||0;if(nn.test(V)){const{projection:_}=this.visualElement;if(_&&_.layout){const F=_.layout.layoutBox[M];F&&(V=he(F)*(parseFloat(V)/100))}}this.originPoint[M]=V}),z&&Vt.postRender(()=>z(S,g)),eu(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},m=(S,g)=>{this.latestPointerEvent=S,this.latestPanInfo=g;const{dragPropagation:D,dragDirectionLock:O,onDirectionLock:z,onDrag:N}=this.getProps();if(!D&&!this.openDragLock)return;const{offset:M}=g;if(O&&this.currentDirection===null){this.currentDirection=KT(M),this.currentDirection!==null&&z&&z(this.currentDirection);return}this.updateAxis("x",g.point,M),this.updateAxis("y",g.point,M),this.visualElement.render(),N&&N(S,g)},y=(S,g)=>{this.latestPointerEvent=S,this.latestPanInfo=g,this.stop(S,g),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ue(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new Mm(a,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Tm(this.visualElement)})}stop(a,s){const o=a||this.latestPointerEvent,u=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!u||!o)return;const{velocity:f}=u;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Vt.postRender(()=>m(o,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,o){const{drag:u}=this.getProps();if(!o||!vs(a,u,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(f=UT(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;a&&qi(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=HT(o.layoutBox,a):this.constraints=!1,this.elastic=YT(s),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ue(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=kT(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!qi(a))return!1;const o=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=Px(o,u.root,this.visualElement.getTransformPagePoint());let f=_T(u.layout.layoutBox,d);if(s){const m=s(qx(f));this.hasMutatedConstraints=!!m,m&&(f=Fh(m))}return f}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=Ue(v=>{if(!vs(v,s,this.currentDirection))return;let S=y&&y[v]||{};f&&(S={min:0,max:0});const g=u?200:1e6,D=u?40:1e7,O={type:"inertia",velocity:o?a[v]:0,bounceStiffness:g,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,O)});return Promise.all(p).then(m)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return eu(this.visualElement,a),o.start(nu(a,o,0,s,this.visualElement,!1))}stopAnimation(){Ue(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Ue(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),u=o[s];return u||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){Ue(s=>{const{drag:o}=this.getProps();if(!vs(s,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(s);if(u&&u.layout){const{min:f,max:m}=u.layout.layoutBox[s];d.set(a[s]-_t(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!qi(s)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Ue(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();u[f]=GT({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ue(f=>{if(!vs(f,a,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(_t(y,p,u[f]))})}addListeners(){if(!this.visualElement.current)return;qT.set(this.visualElement,this);const a=this.visualElement.current,s=Wa(a,"pointerdown",y=>{const{drag:p,dragListener:v=!0}=this.getProps();p&&v&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();qi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,d=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Vt.read(o);const f=Ja(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ue(v=>{const S=this.getAxisMotionValue(v);S&&(this.originPoint[v]+=y[v].translate,S.set(S.get()+y[v].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),m&&m()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=su,dragMomentum:m=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function vs(i,a,s){return(a===!0||a===i)&&(s===null||s===i)}function KT(i,a=10){let s=null;return Math.abs(i.y)>a?s="y":Math.abs(i.x)>a&&(s="x"),s}class PT extends Vn{constructor(a){super(a),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new XT(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const wm=i=>(a,s)=>{i&&Vt.postRender(()=>i(a,s))};class QT extends Vn{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(a){this.session=new Mm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:wm(a),onStart:wm(s),onMove:o,onEnd:(d,f)=>{delete this.session,u&&Vt.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=Wa(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const gs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ru=!1;class ZT extends A.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:u}=this.props,{projection:d}=a;d&&(s.group&&s.group.add(d),o&&o.register&&u&&o.register(d),ru&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),gs.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:u,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,ru=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==d?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||Vt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),No.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:u}=a;ru=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Lm(i){const[a,s]=jh(),o=A.useContext(Jr);return x.jsx(ZT,{...i,layoutGroup:o,switchLayoutGroup:A.useContext(Qh),isPresent:a,safeToRemove:s})}function FT(i,a,s){const o=de(i)?i:ki(i);return o.start(nu("",o,a,s)),o.animation}const JT=(i,a)=>i.depth-a.depth;class IT{constructor(){this.children=[],this.isDirty=!1}add(a){$r(this.children,a),this.isDirty=!0}remove(a){to(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(JT),this.isDirty=!1,this.children.forEach(a)}}function WT(i,a){const s=ye.now(),o=({timestamp:u})=>{const d=u-s;d>=a&&(Ln(o),i(d-a))};return Vt.setup(o,!0),()=>Ln(o)}const Om=["TopLeft","TopRight","BottomLeft","BottomRight"],$T=Om.length,Bm=i=>typeof i=="string"?parseFloat(i):i,Vm=i=>typeof i=="number"||rt.test(i);function tE(i,a,s,o,u,d){u?(i.opacity=_t(0,s.opacity??1,eE(o)),i.opacityExit=_t(a.opacity??1,0,nE(o))):d&&(i.opacity=_t(a.opacity??1,s.opacity??1,o));for(let f=0;f<$T;f++){const m=`border${Om[f]}Radius`;let y=Nm(a,m),p=Nm(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Vm(y)===Vm(p)?(i[m]=Math.max(_t(Bm(y),Bm(p),o),0),(nn.test(p)||nn.test(y))&&(i[m]+="%")):i[m]=p}(a.rotate||s.rotate)&&(i.rotate=_t(a.rotate||0,s.rotate||0,o))}function Nm(i,a){return i[a]!==void 0?i[a]:i.borderRadius}const eE=Um(0,.5,zd),nE=Um(.5,.95,Ve);function Um(i,a,s){return o=>o<i?0:o>a?1:s(Ga(i,a,o))}function Hm(i,a){i.min=a.min,i.max=a.max}function Fe(i,a){Hm(i.x,a.x),Hm(i.y,a.y)}function _m(i,a){i.translate=a.translate,i.scale=a.scale,i.originPoint=a.originPoint,i.origin=a.origin}function Gm(i,a,s,o,u){return i-=a,i=ps(i,1/s,o),u!==void 0&&(i=ps(i,1/u,o)),i}function iE(i,a=0,s=1,o=.5,u,d=i,f=i){if(nn.test(a)&&(a=parseFloat(a),a=_t(f.min,f.max,a/100)-f.min),typeof a!="number")return;let m=_t(d.min,d.max,o);i===d&&(m-=a),i.min=Gm(i.min,a,s,m,u),i.max=Gm(i.max,a,s,m,u)}function km(i,a,[s,o,u],d,f){iE(i,a[s],a[o],a[u],a.scale,d,f)}const aE=["x","scaleX","originX"],lE=["y","scaleY","originY"];function Ym(i,a,s,o){km(i.x,a,aE,s?s.x:void 0,o?o.x:void 0),km(i.y,a,lE,s?s.y:void 0,o?o.y:void 0)}function qm(i){return i.translate===0&&i.scale===1}function Xm(i){return qm(i.x)&&qm(i.y)}function Km(i,a){return i.min===a.min&&i.max===a.max}function sE(i,a){return Km(i.x,a.x)&&Km(i.y,a.y)}function Pm(i,a){return Math.round(i.min)===Math.round(a.min)&&Math.round(i.max)===Math.round(a.max)}function Qm(i,a){return Pm(i.x,a.x)&&Pm(i.y,a.y)}function Zm(i){return he(i.x)/he(i.y)}function Fm(i,a){return i.translate===a.translate&&i.scale===a.scale&&i.originPoint===a.originPoint}class rE{constructor(){this.members=[]}add(a){$r(this.members,a),a.scheduleRender()}remove(a){if(to(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){const s=this.members.findIndex(u=>a===u);if(s===0)return!1;let o;for(let u=s;u>=0;u--){const d=this.members[u];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(a,s){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.instance&&o.scheduleRender(),a.scheduleRender(),a.resumeFrom=o,s&&(a.resumeFrom.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:u}=a.options;u===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:o}=a;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oE(i,a,s){let o="";const u=i.x.translate/a.x,d=i.y.translate/a.y,f=s?.z||0;if((u||d||f)&&(o=`translate3d(${u}px, ${d}px, ${f}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:S,rotateY:g,skewX:D,skewY:O}=s;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),S&&(o+=`rotateX(${S}deg) `),g&&(o+=`rotateY(${g}deg) `),D&&(o+=`skewX(${D}deg) `),O&&(o+=`skewY(${O}deg) `)}const m=i.x.scale*a.x,y=i.y.scale*a.y;return(m!==1||y!==1)&&(o+=`scale(${m}, ${y})`),o||"none"}const ou=["","X","Y","Z"],uE=1e3;let cE=0;function uu(i,a,s,o){const{latestValues:u}=a;u[i]&&(s[i]=u[i],a.setStaticValue(i,0),o&&(o[i]=0))}function Jm(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:a}=i.options;if(!a)return;const s=fm(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(s,"transform",Vt,!(u||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&Jm(o)}function Im({attachResizeListener:i,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(f={},m=a?.()){this.id=cE++,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(hE),this.nodes.forEach(vE),this.nodes.forEach(gE),this.nodes.forEach(mE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new IT)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new io),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Rh(f)&&!nx(f),this.instance=f;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),i){let v,S=0;const g=()=>this.root.updateBlockedByResize=!1;Vt.read(()=>{S=window.innerWidth}),i(f,()=>{const D=window.innerWidth;D!==S&&(S=D,this.root.updateBlockedByResize=!0,v&&v(),v=WT(g,250),gs.hasAnimatedSinceResize&&(gs.hasAnimatedSinceResize=!1,this.nodes.forEach(tp)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:g,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||p.getDefaultTransition()||EE,{onLayoutAnimationStart:z,onLayoutAnimationComplete:N}=p.getProps(),M=!this.targetLayout||!Qm(this.targetLayout,D),V=!S&&g;if(this.options.layoutRoot||this.resumeFrom||V||S&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...Oo(O,"layout"),onPlay:z,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(v,V)}else S||tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ln(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(bE),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach($m);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yE),this.nodes.forEach(fE),this.nodes.forEach(dE)):this.nodes.forEach($m),this.clearAllSnapshots();const m=ye.now();ae.delta=cn(0,1e3/60,m-ae.timestamp),ae.timestamp=m,ae.isProcessing=!0,so.update.process(ae),so.preRender.process(ae),so.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,No.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pE),this.sharedNodes.forEach(SE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!Xm(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||hi(this.latestValues)||v)&&(u(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),ME(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return Wt();const m=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AE))){const{scroll:p}=this.root;p&&(Xi(m.x,p.offset.x),Xi(m.y,p.offset.y))}return m}removeElementScroll(f){const m=Wt();if(Fe(m,f),this.scroll?.wasRoot)return m;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:S}=p;p!==this.root&&v&&S.layoutScroll&&(v.wasRoot&&Fe(m,f),Xi(m.x,v.offset.x),Xi(m.y,v.offset.y))}return m}applyTransform(f,m=!1){const y=Wt();Fe(y,f);for(let p=0;p<this.path.length;p++){const v=this.path[p];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ki(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),hi(v.latestValues)&&Ki(y,v.latestValues)}return hi(this.latestValues)&&Ki(y,this.latestValues),y}removeTransform(f){const m=Wt();Fe(m,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!hi(p.latestValues))continue;Io(p.latestValues)&&p.updateSnapshot();const v=Wt(),S=p.measurePageBox();Fe(v,S),Ym(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return hi(this.latestValues)&&Ym(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=ae.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),OT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),$h(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Io(this.parent.latestValues)||Jh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),ys(this.relativeTargetOrigin,m,y),Fe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Fe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,g=this.treeScale.y;Kx(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Wt());const{target:D}=f;if(!D){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_m(this.prevProjectionDelta.x,this.projectionDelta.x),_m(this.prevProjectionDelta.y,this.projectionDelta.y)),$a(this.projectionDelta,this.layoutCorrected,D,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==g||!Fm(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",D))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pi(),this.projectionDelta=Pi(),this.projectionDeltaWithTransform=Pi()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},S=Pi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const g=Wt(),D=y?y.source:void 0,O=this.layout?this.layout.source:void 0,z=D!==O,N=this.getStack(),M=!N||N.members.length<=1,V=!!(z&&!M&&this.options.crossfade===!0&&!this.path.some(TE));this.animationProgress=0;let _;this.mixTargetDelta=F=>{const U=F/1e3;ep(S.x,f.x,U),ep(S.y,f.y,U),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ys(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xE(this.relativeTarget,this.relativeTargetOrigin,g,U),_&&sE(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Wt()),Fe(_,this.relativeTarget)),z&&(this.animationValues=v,tE(v,p,this.latestValues,U,V,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ln(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{gs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ki(0)),this.currentAnimation=FT(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&sp(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Wt();const S=he(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+S;const g=he(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+g}Fe(m,y),Ki(m,v),$a(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new rE),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&uu("z",f,p,this.animationValues);for(let v=0;v<ou.length;v++)uu(`rotate${ou[v]}`,f,p,this.animationValues),uu(`skew${ou[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=ms(m?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=ms(m?.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=oE(this.projectionDeltaWithTransform,this.treeScale,v);y&&(S=y(v,S)),f.transform=S;const{x:g,y:D}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${D.origin*100}% 0`,p.animationValues?f.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const O in Yo){if(v[O]===void 0)continue;const{correct:z,applyTo:N,isCSSVariable:M}=Yo[O],V=S==="none"?v[O]:z(v[O],p);if(N){const _=N.length;for(let F=0;F<_;F++)f[N[F]]=V}else M?this.options.visualElement.renderState.vars[O]=V:f[O]=V}this.options.layoutId&&(f.pointerEvents=p===this?ms(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(Wm),this.root.sharedNodes.clear()}}}function fE(i){i.updateLayout()}function dE(i){const a=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&a&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=i.layout,{animationType:u}=i.options,d=a.source!==i.layout.source;u==="size"?Ue(v=>{const S=d?a.measuredBox[v]:a.layoutBox[v],g=he(S);S.min=s[v].min,S.max=S.min+g}):sp(u,a.layoutBox,s)&&Ue(v=>{const S=d?a.measuredBox[v]:a.layoutBox[v],g=he(s[v]);S.max=S.min+g,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+g)});const f=Pi();$a(f,s,a.layoutBox);const m=Pi();d?$a(m,i.applyTransform(o,!0),a.measuredBox):$a(m,s,a.layoutBox);const y=!Xm(f);let p=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:g}=v;if(S&&g){const D=Wt();ys(D,a.layoutBox,S.layoutBox);const O=Wt();ys(O,s,g.layoutBox),Qm(D,O)||(p=!0),v.options.layoutRoot&&(i.relativeTarget=O,i.relativeTargetOrigin=D,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:m,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function hE(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function mE(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function pE(i){i.clearSnapshot()}function Wm(i){i.clearMeasurements()}function $m(i){i.isLayoutDirty=!1}function yE(i){const{visualElement:a}=i.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),i.resetTransform()}function tp(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function vE(i){i.resolveTargetDelta()}function gE(i){i.calcProjection()}function bE(i){i.resetSkewAndRotation()}function SE(i){i.removeLeadSnapshot()}function ep(i,a,s){i.translate=_t(a.translate,0,s),i.scale=_t(a.scale,1,s),i.origin=a.origin,i.originPoint=a.originPoint}function np(i,a,s,o){i.min=_t(a.min,s.min,o),i.max=_t(a.max,s.max,o)}function xE(i,a,s,o){np(i.x,a.x,s.x,o),np(i.y,a.y,s.y,o)}function TE(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const EE={duration:.45,ease:[.4,0,.1,1]},ip=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),ap=ip("applewebkit/")&&!ip("chrome/")?Math.round:Ve;function lp(i){i.min=ap(i.min),i.max=ap(i.max)}function ME(i){lp(i.x),lp(i.y)}function sp(i,a,s){return i==="position"||i==="preserve-aspect"&&!LT(Zm(a),Zm(s),.2)}function AE(i){return i!==i.root&&i.scroll?.wasRoot}const CE=Im({attachResizeListener:(i,a)=>Ja(i,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cu={current:void 0},rp=Im({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!cu.current){const i=new CE({});i.mount(window),i.setOptions({layoutScroll:!0}),cu.current=i}return cu.current},resetTransform:(i,a)=>{i.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),DE={pan:{Feature:QT},drag:{Feature:PT,ProjectionNode:rp,MeasureLayout:Lm}};function op(i,a,s){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,d=o[u];d&&Vt.postRender(()=>d(a,Ia(a)))}class RE extends Vn{mount(){const{current:a}=this.node;a&&(this.unmount=IS(a,(s,o)=>(op(this.node,o,"Start"),u=>op(this.node,u,"End"))))}unmount(){}}class zE extends Vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=_a(Ja(this.node.current,"focus",()=>this.onFocus()),Ja(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function up(i,a,s){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),d=o[u];d&&Vt.postRender(()=>d(a,Ia(a)))}class jE extends Vn{mount(){const{current:a}=this.node;a&&(this.unmount=ex(a,(s,o)=>(up(this.node,o,"Start"),(u,{success:d})=>up(this.node,u,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fu=new WeakMap,du=new WeakMap,wE=i=>{const a=fu.get(i.target);a&&a(i)},LE=i=>{i.forEach(wE)};function OE({root:i,...a}){const s=i||document;du.has(s)||du.set(s,{});const o=du.get(s),u=JSON.stringify(a);return o[u]||(o[u]=new IntersectionObserver(LE,{root:i,...a})),o[u]}function BE(i,a,s){const o=OE(a);return fu.set(i,s),o.observe(i),()=>{fu.delete(i),o.unobserve(i)}}const VE={some:0,all:1};class NE extends Vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:u="some",once:d}=a,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:VE[u]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:S}=this.node.getProps(),g=p?v:S;g&&g(y)};return BE(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(UE(a,s))&&this.startObserver()}unmount(){}}function UE({viewport:i={}},{viewport:a={}}={}){return s=>i[s]!==a[s]}const HE={...CT,...{inView:{Feature:NE},tap:{Feature:jE},focus:{Feature:zE},hover:{Feature:RE}},...DE,...{layout:{ProjectionNode:rp,MeasureLayout:Lm}}},_E=Yx(HE,eT);function GE(i="(max-width: 768px)"){const[a,s]=A.useState({isMobile:!1,isPortrait:!1});return A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=navigator?.userAgent??"",u=/iPhone|Android/i.test(o),d=window.matchMedia(i),f=window.matchMedia("(orientation: portrait)"),m=()=>s({isMobile:d.matches||u,isPortrait:f.matches});return m(),d.addEventListener("change",m),f.addEventListener("change",m),()=>{d.removeEventListener("change",m),f.removeEventListener("change",m)}},[i]),a}const cp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[{items:["MetaDesc"]}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},fp={vod:{order:["top","upper","center","lower","bottom","seekbar"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},live:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]}},dp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},kE=768,tl={pc:{live:cp.live,vod:cp.vod},mobile:{live:fp.live,vod:fp.vod},fullscreen:{live:dp.live,vod:dp.vod}},YE={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function qE(i){const[a,s]=Pf("isActive",!1),o=A.useRef(null),u=A.useRef(!1),d=A.useRef(!1),f=A.useRef(0),m=i.options?.controlActiveTime||3e3,[y]=Ut(),{isMobile:p,isPortrait:v}=GE(),{togglePlay:S,useTouch:g}=It(),[D,O]=A.useState(!1),z=(()=>{const I=i.layout??tl,ut=E=>!E||typeof E!="object"?!1:"top"in E||"upper"in E||"center"in E||"lower"in E||"bottom"in E||"order"in E,dt=E=>!E||typeof E!="object"?!1:"live"in E||"vod"in E,nt=(E,q)=>{const J=dt(E)?E:E?{live:E,vod:E}:void 0,W=J?.live??q?.live,ct=J?.vod??q?.vod;if(!(!W&&!ct))return{live:W,vod:ct}},Z=(E,q)=>{if(E)return(q?E.live:E.vod)??E.vod??E.live};if(ut(I))return I;const k=I,Q={pc:nt(tl.pc),mobile:nt(tl.mobile),fullscreen:nt(tl.fullscreen)},it={pc:nt(k.pc,Q.pc),mobile:nt(k.mobile,Q.mobile),fullscreen:nt(k.fullscreen,Q.fullscreen),breakpoint:k.breakpoint},yt=y.isFullscreen&&it.fullscreen?"fullscreen":null,wt=(yt?it[yt]:void 0)??(D?it.mobile:it.pc)??it.pc??it.mobile??it.fullscreen;return Z(wt,!!y.isLive)??YE})(),N=d.current||y.isEnded,M=()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},V=()=>{M(),o.current=window.setTimeout(()=>{s(!1),u.current=!0,o.current=null},m)},_=()=>{u.current=!1,f.current=Date.now(),a||s(!0),V()},F=()=>{u.current||_()};A.useEffect(()=>{if(typeof window>"u")return;const I=i.layout??tl;if((Q=>!Q||typeof Q!="object"?!1:"top"in Q||"upper"in Q||"center"in Q||"lower"in Q||"bottom"in Q||"order"in Q)(I)){O(!1);return}const nt=I.breakpoint??kE,Z=window.matchMedia(`(max-width: ${nt}px)`),k=()=>O(Z.matches||p);return k(),typeof Z.addEventListener=="function"?(Z.addEventListener("change",k),()=>Z.removeEventListener("change",k)):(Z.addListener(k),()=>Z.removeListener(k))},[i.layout,p]);const U=I=>[I.top,I.upper,I.center,I.lower,I.bottom].some(dt=>dt?.some(nt=>(nt.items?.length?nt.items:["Blank"]).includes("SeekBar"))??!1),K=(I,ut)=>{if(typeof I!="string")return A.isValidElement(I)?A.cloneElement(I,{pos:ut}):I;switch(I){case"PlayBtn":return x.jsx(dd,{isMobile:p,isPortrait:v,pos:ut,text:{play:i.t?.("common.play")??"재생",pause:i.t?.("common.pause")??"일시정지"}});case"VolumeBtn":return x.jsx(tb,{isMobile:p,isPortrait:v,pos:ut,text:{muteOn:i.t?.("common.muteOn")??"음소거",muteOff:i.t?.("common.muteOff")??"음소거 해제"}});case"MuteBtn":return x.jsx($1,{isMobile:p,isPortrait:v,pos:ut,text:{muteOn:i.t?.("common.muteOn")??"음소거",muteOff:i.t?.("common.muteOff")??"음소거 해제"}});case"CurrentTimeBtn":return x.jsx(X1,{isMobile:p,isPortrait:v,pos:ut});case"DurationBtn":return x.jsx(K1,{isMobile:p,isPortrait:v,pos:ut});case"TimeBtn":return x.jsx(P1,{isMobile:p,isPortrait:v,pos:ut});case"SubtitleBtn":return x.jsx(W1,{isMobile:p,isPortrait:v,pos:ut,text:{captionOn:i.t?.("common.captionOn")??"자막켜기",captionOff:i.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return x.jsx(I1,{isMobile:p,isPortrait:v,pos:ut,options:i.options,text:{fullOn:i.t?.("common.fullOn")??"전체화면",fullOff:i.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return x.jsx(nb,{isMobile:p,isPortrait:v,pos:ut,options:i.options,text:{miniPlayer:i.t?.("common.miniPlayer")??"미니플레이어"}});case"SkipBackBtn":return x.jsx(Y1,{isMobile:p,isPortrait:v,pos:ut,options:i.options});case"SkipForwardBtn":return x.jsx(q1,{isMobile:p,isPortrait:v,pos:ut,options:i.options});case"MetaDesc":return x.jsx(Z1,{title:i.metaTitle??"",profileImage:i.profileImage??"",profileName:i.profileName??"",createdAt:i.createdAt??"",isMobile:p,isPortrait:v,pos:ut});case"BigPlayBtn":return N?x.jsx(k1,{isMobile:p,isPortrait:v}):null;case"SeekBar":return x.jsx(If,{src:i.src,hlsLib:i.hlsLib,dashLib:i.dashLib,options:i.options,pos:ut});case"LevelSelectBtn":return x.jsx(Q1,{options:i.options,text:{auto:i.t?.("common.auto")??"자동"}});case"SettingBtn":return x.jsx(eb,{isMobile:p,isPortrait:v,pos:ut,text:{setting:i.t?.("common.setting")??"설정"}});case"Blank":return x.jsx(hd,{});default:return null}},L=(I,ut,dt,nt)=>{const Z=I.key??`${ut}-${nt??0}`,Q=(I.items?.length?I.items:["Blank"]).map((wt,E)=>{const q=K(wt,dt);return q?x.jsx(A.Fragment,{children:q},`${ut}-${Z}-${wt}-${E}`):null}).filter(wt=>wt!==null);if(!Q.length)return null;if(I.wrapper==="Blank")return x.jsx(hd,{align:I?.align,style:I?.style,children:Q},`${ut}-${Z}`);if(I.wrapper==="Group")return x.jsx(Zr,{noPadding:!(Q.length>1),cap:I.cap,style:I?.style,children:Q},`${ut}-${Z}`);const yt={display:"flex",alignItems:"center",justifyContent:I?.align?I?.align=="left"?"start":I?.align=="right"?"end":"center":"start",width:"100%",flex:1};return x.jsx("div",{style:{...yt,...I?.style},children:Q},`${ut}-${Z}`)},H=(I,ut)=>{if(!I?.length)return null;if(ut!=="bottom")return I.map((nt,Z)=>L(nt,ut,void 0,Z));let dt="left";return I.map((nt,Z)=>{const k=nt.items?.length?nt.items:["Blank"],Q=nt.wrapper==="Blank"||k.includes("Blank"),it=L(nt,ut,dt,Z);return Q&&(dt="right"),it})},tt=!U(z),lt=z.order??["top","upper","center","seekbar","lower","bottom"],ot=()=>tt?x.jsx("div",{children:x.jsx(If,{src:i.src,hlsLib:i.hlsLib,dashLib:i.dashLib,options:i.options})}):null;return A.useEffect(()=>{p&&(d.current=!0)},[p]),x.jsxs(x.Fragment,{children:[y.isLoading&&x.jsx(md,{poster:i.poster,options:i.options}),y.isWaiting&&x.jsx(md,{}),y.isSettingModal&&x.jsx(lb,{text:{setting:i.t?.("common.setting")??"세팅",auto:i.t?.("common.auto")??"자동",notUse:i.t?.("common.notUse")??"사용안함",quality:i.t?.("settings.quality")??"해상도",autoplay:i.t?.("settings.autoplay")??"자동재생",playbackRate:i.t?.("settings.playbackRate")??"재생 속도",captions:i.t?.("settings.captions")??"자막"},vtt:i.src?.vtt,options:i.options}),!y.isLoading&&x.jsx(x.Fragment,{children:y.initPlay?x.jsxs("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{g(),M(),V()},onMouseEnter:()=>{F()},onMouseMove:()=>{_()},onTouchStart:()=>{g(),M(),V()},onMouseLeave:()=>{M(),V(),u.current=!1},children:[p&&x.jsx(ab,{onSingleTap:()=>{s(!0),M(),V()}}),x.jsx(fx,{children:(a||y.isEnded)&&x.jsx(_E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.75rem",cursor:"default",background:"linear-gradient(to bottom,rgba(0,0,0,0.24) 0%,rgba(0,0,0,0.24) 3%,rgba(0,0,0,0) 70%,rgba(0,0,0,0.3) 90%,rgba(0,0,0,0.7) 100%)"},children:lt.map(I=>I==="top"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:H(z.top,"top")},"layout-top"):I==="upper"?x.jsx("div",{style:{display:"flex",alignItems:"center"},children:H(z.upper,"upper")},"layout-upper"):I==="center"?x.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!v&&S(),d.current=!0},onMouseLeave:()=>{d.current=!1},children:H(z.center,"center")},"layout-center"):I==="seekbar"?x.jsx("div",{children:x.jsx(A.Fragment,{children:ot()})},"layout-seekbar"):I==="lower"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:H(z.lower,"lower")},"layout-lower"):I==="bottom"?x.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:H(z.bottom,"bottom")},"layout-bottom"):null)})})]}):x.jsx(ib,{poster:i.poster,options:i.options})})]})}let hp=0;function XE(i){const{accessKey:a,platform:s="pub",stage:o="prod",isDev:u=!1,hls:d,dashjs:f,options:m,layout:y}=i,[p,v]=A.useState(null),[S,g]=A.useState([]),[D,O]=A.useState(!1),[z,N]=Pf("playerOptions",m??{}),[M,V]=A.useState(""),[_,F]=A.useState({errorCode:null,errorMessage:null,errorTitle:null}),[U,K]=A.useState(!1),L=0,H=typeof window<"u"&&window.location.host||"local";A.useEffect(()=>{if(!a)return;const dt=new Xg({accessKey:a,appId:H,platform:s,stage:o,isDev:u});v(dt)},[a,H,s,o,u]),A.useEffect(()=>{if(!p||D||U)return;(async()=>{if(await p.initialize(),p.isInitialized()){const nt=p.getValidatedOptions(m);N(nt),g(nt?.playlist||[]),O(!0)}else{const nt=p.setErrorRun("E0001");K(!0),F({errorCode:nt?.errorCode,errorMessage:nt?.errorMessage?.desc,errorTitle:nt?.errorMessage?.title});return}})()},[p,D,m,N]),A.useEffect(()=>{const dt=globalThis;d&&(dt.Hls=d),f&&(dt.dashjs=f)},[d,f]),A.useEffect(()=>{const dt=S?.[L]?.file;if(!dt){V("");return}const nt=dt.toLowerCase();nt.endsWith(".m3u8")?V("hls"):nt.endsWith(".mpd")?V("dash"):nt.endsWith(".mp4")?V("mp4"):V("")},[S,L]),A.useEffect(()=>{if(!p||!M)return;const dt=globalThis,nt=d??dt.Hls,Z=f??dt.dashjs;if(M==="hls"&&!nt){const k=p.setErrorRun("E0015");K(!0),F({errorCode:k?.errorCode,errorMessage:k?.errorMessage?.desc,errorTitle:k?.errorMessage?.title})}if(M==="dash"&&!Z){const k=p.setErrorRun("E0016");K(!0),F({errorCode:k?.errorCode,errorMessage:k?.errorMessage?.desc,errorTitle:k?.errorMessage?.title})}},[M,p,d,f]);const tt=dt=>{if(!dt||typeof dt!="object")return;const nt=dt;if(nt?.evt=="hlsError"&&nt?.data?.type=="networkError"){const Z=p.setErrorRun("E0004");K(!0),F({errorCode:Z?.errorCode,errorMessage:Z?.errorMessage?.desc,errorTitle:Z?.errorMessage?.title})}},lt=S?.[L],ot=d??globalThis.Hls,I=f??globalThis.dashjs,ut=()=>{if(!lt)return null;switch(M){case"hls":return x.jsx(u1,{src:lt,hlsLib:ot,options:z,onError:dt=>tt(dt)});case"dash":return x.jsx(c1,{src:lt,dashLib:I,options:z});case"mp4":return x.jsx(f1,{src:lt,options:z});default:return null}};return ub(z),x.jsx("div",{style:{position:"relative",maxHeight:"100dvh",width:"100%",height:"100%",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},className:"vpe-root-wrap",children:U?x.jsxs("div",{style:{width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:z?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[x.jsx("div",{style:{background:`url(${lt?.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),x.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"rgba(0,0,0,0.69)"},children:x.jsxs("div",{style:{textAlign:"center"},children:[x.jsx("div",{children:x.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),x.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:x.jsx("strong",{children:_?.errorMessage})}),_?.errorCode&&x.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",_.errorCode,")"]})]})})]}):x.jsxs(x.Fragment,{children:[z.controls&&x.jsx(qE,{src:lt,hlsLib:ot,dashLib:I,options:z,poster:lt?.poster,layout:y,metaTitle:lt?.description?.title,profileImage:lt?.description?.profile_image,profileName:lt?.description?.profile_name,createdAt:lt?.description?.created_at,t:dt=>p?.$t(dt)??dt}),x.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:z?.aspectRatio||"16/9"},children:ut()})]})})}function mp(i){const a=A.useRef("");return a.current||(hp+=1,a.current=`vpe-${hp}`),x.jsx(Pg,{scopeId:a.current,children:x.jsx(Fg,{scopeId:a.current,children:x.jsx(XE,{...i})})})}const pp=globalThis;pp.process||(pp.process={env:{}});let yp,hu;const KE=(()=>{if(typeof document>"u")return"";const i=[];document.currentScript instanceof HTMLScriptElement&&i.push(document.currentScript),i.push(...Array.from(document.getElementsByTagName("script")));for(const a of i)if(a.src)try{const o=new URL(a.src,window.location.href).searchParams.get("access_key");if(o)return o}catch{continue}return""})();function PE(i){return i||KE}const QE=i=>!i||typeof i!="object"?!1:"options"in i||"layout"in i||"platform"in i||"stage"in i||"hls"in i||"dashjs"in i||"accessKey"in i;function ZE(i){if(!i)return;const a=globalThis,s=typeof i=="object"&&i!==null&&("MediaPlayer"in i||"MediaPlayerFactory"in i),o=typeof i=="function"||typeof i=="object"&&i!==null&&("isSupported"in i||"Events"in i);if(s&&!o){a.dashjs=i;return}if(o&&!s){a.Hls=i;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function FE(i){return typeof i!="string"||i.startsWith("#")||i.startsWith(".")||i.startsWith("[")||i.includes(" ")||i.includes(">")||i.includes(":")?i:typeof document<"u"&&document.getElementById(i)?`#${i}`:i}function JE(i){return x.jsx(mp,{...i})}function mu(i,a,s={}){const o=typeof a=="string"?a:a?.accessKey,u=typeof a=="string"?s:a??{},d=QE(u)?u:{options:u},f=PE(o);if(!f)throw new Error("accessKey를 찾을 수 없습니다.");const m=typeof i=="string"?document.querySelector(i):i;if(!m)throw new Error("지정한 타겟을 찾을 수 없습니다.");const y=document.createElement("div");m.appendChild(y);const p=Cg.createRoot(y),v={...d,layout:d.layout??yp,platform:d.platform??hu?.platform,stage:d.stage??hu?.stage},S=(D={})=>{p.render(x.jsx(mp,{...v,...D,accessKey:f}))};return S(),{destroy:()=>{p.unmount(),y.parentNode&&y.parentNode.removeChild(y)},container:y,render:S}}class Zi{destroy;container;render;static use(a){return ZE(a),Zi}static layout(a){return yp=a,Zi}static config(a){return hu=a,Zi}constructor(a,s,o={}){const u=mu(FE(a),s,o);this.destroy=u.destroy,this.container=u.container,this.render=u.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:mu},window.ncplayer=Zi),on.Ncplayer=Zi,on.VpePlayer=JE,on.setup=mu,on.useDeviceState=Jf,Object.defineProperty(on,Symbol.toStringTag,{value:"Module"})}));