@sgrsoft/vpe-react-sdk 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/dist/vpe-react-sdk.es.js +11983 -10205
- package/dist/vpe-react-sdk.umd.js +593 -12
- package/package.json +6 -5
- package/dist/vpe-react-sdk.css +0 -1
|
@@ -1,17 +1,598 @@
|
|
|
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&<());){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(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
1
|
+
(function(yn,ki){typeof exports=="object"&&typeof module<"u"?ki(exports):typeof define=="function"&&define.amd?define(["exports"],ki):(yn=typeof globalThis<"u"?globalThis:yn||self,ki(yn.VpeReactSdk={}))})(this,(function(yn){"use strict";function ki(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kr={exports:{}},ka={};var Gf;function jv(){if(Gf)return ka;Gf=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return ka.Fragment=a,ka.jsx=s,ka.jsxs=s,ka}var Yf;function zv(){return Yf||(Yf=1,Kr.exports=jv()),Kr.exports}var b=zv(),Fr={exports:{}},mt={},qf;function Bv(){if(qf)return mt;qf=1;var n={};var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),A=Symbol.iterator;function j(M){return M===null||typeof M!="object"?null:(M=A&&M[A]||M["@@iterator"],typeof M=="function"?M:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,C={};function U(M,N,I){this.props=M,this.context=N,this.refs=C,this.updater=I||L}U.prototype.isReactComponent={},U.prototype.setState=function(M,N){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,N,"setState")},U.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function V(){}V.prototype=U.prototype;function K(M,N,I){this.props=M,this.context=N,this.refs=C,this.updater=I||L}var Q=K.prototype=new V;Q.constructor=K,H(Q,U.prototype),Q.isPureReactComponent=!0;var J=Array.isArray;function Y(){}var k={H:null,A:null,T:null,S:null},st=Object.prototype.hasOwnProperty;function bt(M,N,I){var tt=I.ref;return{$$typeof:a,type:M,key:N,ref:tt!==void 0?tt:null,props:I}}function pt(M,N){return bt(M.type,N,M.props)}function dt(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function Z(M){var N={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(I){return N[I]})}var et=/\/+/g;function lt(M,N){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):N.toString(36)}function F(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(Y,Y):(M.status="pending",M.then(function(N){M.status==="pending"&&(M.status="fulfilled",M.value=N)},function(N){M.status==="pending"&&(M.status="rejected",M.reason=N)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function D(M,N,I,tt,ut){var W=typeof M;(W==="undefined"||W==="boolean")&&(M=null);var ht=!1;if(M===null)ht=!0;else switch(W){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(M.$$typeof){case a:case s:ht=!0;break;case S:return ht=M._init,D(ht(M._payload),N,I,tt,ut)}}if(ht)return ut=ut(M),ht=tt===""?"."+lt(M,0):tt,J(ut)?(I="",ht!=null&&(I=ht.replace(et,"$&/")+"/"),D(ut,N,I,"",function(ue){return ue})):ut!=null&&(dt(ut)&&(ut=pt(ut,I+(ut.key==null||M&&M.key===ut.key?"":(""+ut.key).replace(et,"$&/")+"/")+ht)),N.push(ut)),1;ht=0;var Ut=tt===""?".":tt+":";if(J(M))for(var Rt=0;Rt<M.length;Rt++)tt=M[Rt],W=Ut+lt(tt,Rt),ht+=D(tt,N,I,W,ut);else if(Rt=j(M),typeof Rt=="function")for(M=Rt.call(M),Rt=0;!(tt=M.next()).done;)tt=tt.value,W=Ut+lt(tt,Rt++),ht+=D(tt,N,I,W,ut);else if(W==="object"){if(typeof M.then=="function")return D(F(M),N,I,tt,ut);throw N=String(M),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return ht}function G(M,N,I){if(M==null)return M;var tt=[],ut=0;return D(M,tt,"","",function(W){return N.call(I,W,ut++)}),tt}function $(M){if(M._status===-1){var N=M._result;N=N(),N.then(function(I){(M._status===0||M._status===-1)&&(M._status=1,M._result=I)},function(I){(M._status===0||M._status===-1)&&(M._status=2,M._result=I)}),M._status===-1&&(M._status=0,M._result=N)}if(M._status===1)return M._result.default;throw M._result}var nt=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(N))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",M);return}console.error(M)},yt={map:G,forEach:function(M,N,I){G(M,function(){N.apply(this,arguments)},I)},count:function(M){var N=0;return G(M,function(){N++}),N},toArray:function(M){return G(M,function(N){return N})||[]},only:function(M){if(!dt(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return mt.Activity=v,mt.Children=yt,mt.Component=U,mt.Fragment=r,mt.Profiler=f,mt.PureComponent=K,mt.StrictMode=u,mt.Suspense=g,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,mt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return k.H.useMemoCache(M)}},mt.cache=function(M){return function(){return M.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(M,N,I){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var tt=H({},M.props),ut=M.key;if(N!=null)for(W in N.key!==void 0&&(ut=""+N.key),N)!st.call(N,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&N.ref===void 0||(tt[W]=N[W]);var W=arguments.length-2;if(W===1)tt.children=I;else if(1<W){for(var ht=Array(W),Ut=0;Ut<W;Ut++)ht[Ut]=arguments[Ut+2];tt.children=ht}return bt(M.type,ut,tt)},mt.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},mt.createElement=function(M,N,I){var tt,ut={},W=null;if(N!=null)for(tt in N.key!==void 0&&(W=""+N.key),N)st.call(N,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ut[tt]=N[tt]);var ht=arguments.length-2;if(ht===1)ut.children=I;else if(1<ht){for(var Ut=Array(ht),Rt=0;Rt<ht;Rt++)Ut[Rt]=arguments[Rt+2];ut.children=Ut}if(M&&M.defaultProps)for(tt in ht=M.defaultProps,ht)ut[tt]===void 0&&(ut[tt]=ht[tt]);return bt(M,W,ut)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(M){return{$$typeof:y,render:M}},mt.isValidElement=dt,mt.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:$}},mt.memo=function(M,N){return{$$typeof:p,type:M,compare:N===void 0?null:N}},mt.startTransition=function(M){var N=k.T,I={};k.T=I;try{var tt=M(),ut=k.S;ut!==null&&ut(I,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(Y,nt)}catch(W){nt(W)}finally{N!==null&&I.types!==null&&(N.types=I.types),k.T=N}},mt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},mt.use=function(M){return k.H.use(M)},mt.useActionState=function(M,N,I){return k.H.useActionState(M,N,I)},mt.useCallback=function(M,N){return k.H.useCallback(M,N)},mt.useContext=function(M){return k.H.useContext(M)},mt.useDebugValue=function(){},mt.useDeferredValue=function(M,N){return k.H.useDeferredValue(M,N)},mt.useEffect=function(M,N){return k.H.useEffect(M,N)},mt.useEffectEvent=function(M){return k.H.useEffectEvent(M)},mt.useId=function(){return k.H.useId()},mt.useImperativeHandle=function(M,N,I){return k.H.useImperativeHandle(M,N,I)},mt.useInsertionEffect=function(M,N){return k.H.useInsertionEffect(M,N)},mt.useLayoutEffect=function(M,N){return k.H.useLayoutEffect(M,N)},mt.useMemo=function(M,N){return k.H.useMemo(M,N)},mt.useOptimistic=function(M,N){return k.H.useOptimistic(M,N)},mt.useReducer=function(M,N,I){return k.H.useReducer(M,N,I)},mt.useRef=function(M){return k.H.useRef(M)},mt.useState=function(M){return k.H.useState(M)},mt.useSyncExternalStore=function(M,N,I){return k.H.useSyncExternalStore(M,N,I)},mt.useTransition=function(){return k.H.useTransition()},mt.version="19.2.1",mt}var Pf;function Qr(){return Pf||(Pf=1,Fr.exports=Bv()),Fr.exports}var T=Qr();const mi=ki(T);var Zr={exports:{}},Ga={},Ir={exports:{}},Jr={};var Xf;function Ov(){return Xf||(Xf=1,(function(n){function a(F,D){var G=F.length;F.push(D);t:for(;0<G;){var $=G-1>>>1,nt=F[$];if(0<u(nt,D))F[$]=D,F[G]=nt,G=$;else break t}}function s(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var D=F[0],G=F.pop();if(G!==D){F[0]=G;t:for(var $=0,nt=F.length,yt=nt>>>1;$<yt;){var M=2*($+1)-1,N=F[M],I=M+1,tt=F[I];if(0>u(N,G))I<nt&&0>u(tt,N)?(F[$]=tt,F[I]=G,$=I):(F[$]=N,F[M]=G,$=M);else if(I<nt&&0>u(tt,G))F[$]=tt,F[I]=G,$=I;else break t}}return D}function u(F,D){var G=F.sortIndex-D.sortIndex;return G!==0?G:F.id-D.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],g=[],p=1,S=null,v=3,A=!1,j=!1,L=!1,H=!1,C=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function K(F){for(var D=s(g);D!==null;){if(D.callback===null)r(g);else if(D.startTime<=F)r(g),D.sortIndex=D.expirationTime,a(y,D);else break;D=s(g)}}function Q(F){if(L=!1,K(F),!j)if(s(y)!==null)j=!0,J||(J=!0,dt());else{var D=s(g);D!==null&<(Q,D.startTime-F)}}var J=!1,Y=-1,k=5,st=-1;function bt(){return H?!0:!(n.unstable_now()-st<k)}function pt(){if(H=!1,J){var F=n.unstable_now();st=F;var D=!0;try{t:{j=!1,L&&(L=!1,U(Y),Y=-1),A=!0;var G=v;try{e:{for(K(F),S=s(y);S!==null&&!(S.expirationTime>F&&bt());){var $=S.callback;if(typeof $=="function"){S.callback=null,v=S.priorityLevel;var nt=$(S.expirationTime<=F);if(F=n.unstable_now(),typeof nt=="function"){S.callback=nt,K(F),D=!0;break e}S===s(y)&&r(y),K(F)}else r(y);S=s(y)}if(S!==null)D=!0;else{var yt=s(g);yt!==null&<(Q,yt.startTime-F),D=!1}}break t}finally{S=null,v=G,A=!1}D=void 0}}finally{D?dt():J=!1}}}var dt;if(typeof V=="function")dt=function(){V(pt)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,et=Z.port2;Z.port1.onmessage=pt,dt=function(){et.postMessage(null)}}else dt=function(){C(pt,0)};function lt(F,D){Y=C(function(){F(n.unstable_now())},D)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(F){F.callback=null},n.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<F?Math.floor(1e3/F):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(F){switch(v){case 1:case 2:case 3:var D=3;break;default:D=v}var G=v;v=D;try{return F()}finally{v=G}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(F,D){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var G=v;v=F;try{return D()}finally{v=G}},n.unstable_scheduleCallback=function(F,D,G){var $=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?$+G:$):G=$,F){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=G+nt,F={id:p++,callback:D,priorityLevel:F,startTime:G,expirationTime:nt,sortIndex:-1},G>$?(F.sortIndex=G,a(g,F),s(y)===null&&F===s(g)&&(L?(U(Y),Y=-1):L=!0,lt(Q,G-$))):(F.sortIndex=nt,a(y,F),j||A||(j=!0,J||(J=!0,dt()))),F},n.unstable_shouldYield=bt,n.unstable_wrapCallback=function(F){var D=v;return function(){var G=v;v=D;try{return F.apply(this,arguments)}finally{v=G}}}})(Jr)),Jr}var Kf;function Lv(){return Kf||(Kf=1,Ir.exports=Ov()),Ir.exports}var Wr={exports:{}},pe={};var Ff;function Vv(){if(Ff)return pe;Ff=1;var n=Qr();function a(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)g+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={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 f(y,g,p){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:g,implementation:p}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pe.createPortal=function(y,g){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(y,g,null,p)},pe.flushSync=function(y){var g=d.T,p=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=g,r.p=p,r.d.f()}},pe.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},pe.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},pe.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var p=g.as,S=h(p,g.crossOrigin),v=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;p==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:A}):p==="script"&&r.d.X(y,{crossOrigin:S,integrity:v,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},pe.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var p=h(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},pe.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var p=g.as,S=h(p,g.crossOrigin);r.d.L(y,p,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},pe.preloadModule=function(y,g){if(typeof y=="string")if(g){var p=h(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},pe.requestFormReset=function(y){r.d.r(y)},pe.unstable_batchedUpdates=function(y,g){return y(g)},pe.useFormState=function(y,g,p){return d.H.useFormState(y,g,p)},pe.useFormStatus=function(){return d.H.useHostTransitionStatus()},pe.version="19.2.1",pe}var Qf;function Nv(){if(Qf)return Wr.exports;Qf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Wr.exports=Vv(),Wr.exports}var Zf;function Uv(){if(Zf)return Ga;Zf=1;var n={};var a=Lv(),s=Qr(),r=Nv();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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 f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function h(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 g(t){if(d(t)!==t)throw Error(u(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var i=t,l=e;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){i=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return g(o),t;if(c===l)return g(o),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=o,l=c;else{for(var m=!1,x=o.child;x;){if(x===i){m=!0,i=o,l=c;break}if(x===l){m=!0,l=o,i=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===i){m=!0,i=c,l=o;break}if(x===l){m=!0,l=c,i=o;break}x=x.sibling}if(!m)throw Error(u(189))}}if(i.alternate!==l)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?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,A=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),bt=Symbol.for("react.activity"),pt=Symbol.for("react.memo_cache_sentinel"),dt=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=dt&&t[dt]||t["@@iterator"],typeof t=="function"?t:null)}var et=Symbol.for("react.client.reference");function lt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===et?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case U:return"Profiler";case C:return"StrictMode";case J:return"Suspense";case Y:return"SuspenseList";case bt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case K:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:lt(t.type)||"Memo";case st:e=t._payload,t=t._init;try{return lt(t(e))}catch{}}return null}var F=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},nt=[],yt=-1;function M(t){return{current:t}}function N(t){0>yt||(t.current=nt[yt],nt[yt]=null,yt--)}function I(t,e){yt++,nt[yt]=t.current,t.current=e}var tt=M(null),ut=M(null),W=M(null),ht=M(null);function Ut(t,e){switch(I(W,e),I(ut,t),I(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?$g(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=$g(e),t=tv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(tt),I(tt,t)}function Rt(){N(tt),N(ut),N(W)}function ue(t){t.memoizedState!==null&&I(ht,t);var e=tt.current,i=tv(e,t.type);e!==i&&(I(ut,t),I(tt,i))}function cn(t){ut.current===t&&(N(tt),N(ut)),ht.current===t&&(N(ht),Wl._currentValue=$)}var fn,ta;function nn(t){if(fn===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);fn=e&&e[1]||"",ta=-1<i.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+fn+t+ta}var at=!1;function gt(t,e){if(!t||at)return"";at=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(_){var O=_}Reflect.construct(t,[],X)}else{try{X.call()}catch(_){O=_}t.call(X.prototype)}}else{try{throw Error()}catch(_){O=_}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(_){if(_&&O&&typeof _.stack=="string")return[_.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var E=m.split(`
|
|
4
|
+
`),B=x.split(`
|
|
5
|
+
`);for(o=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===E.length||o===B.length)for(l=E.length-1,o=B.length-1;1<=l&&0<=o&&E[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(E[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||E[l]!==B[o]){var q=`
|
|
6
|
+
`+E[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{at=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?nn(i):""}function Ht(t,e){switch(t.tag){case 26:case 27:case 5:return nn(t.type);case 16:return nn("Lazy");case 13:return t.child!==e&&e!==null?nn("Suspense Fallback"):nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return gt(t.type,!1);case 11:return gt(t.type.render,!1);case 1:return gt(t.type,!0);case 31:return nn("Activity");default:return""}}function Kt(t){try{var e="",i=null;do e+=Ht(t,i),i=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
|
-
|
|
8
|
+
`+l.stack}}var qe=Object.prototype.hasOwnProperty,ea=a.unstable_scheduleCallback,xi=a.unstable_cancelCallback,Cs=a.unstable_shouldYield,ws=a.unstable_requestPaint,ve=a.unstable_now,ul=a.unstable_getCurrentPriorityLevel,Ds=a.unstable_ImmediatePriority,Bp=a.unstable_UserBlockingPriority,Rs=a.unstable_NormalPriority,CM=a.unstable_LowPriority,Op=a.unstable_IdlePriority,wM=a.log,DM=a.unstable_setDisableYieldValue,cl=null,je=null;function qn(t){if(typeof wM=="function"&&DM(t),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(cl,t)}catch{}}var ze=Math.clz32?Math.clz32:zM,RM=Math.log,jM=Math.LN2;function zM(t){return t>>>=0,t===0?32:31-(RM(t)/jM|0)|0}var js=256,zs=262144,Bs=4194304;function Ti(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 Os(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=Ti(l):(m&=x,m!==0?o=Ti(m):i||(i=x&~t,i!==0&&(o=Ti(i))))):(x=l&~c,x!==0?o=Ti(x):m!==0?o=Ti(m):i||(i=l&~t,i!==0&&(o=Ti(i)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:o}function fl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function BM(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 Lp(){var t=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),t}function Du(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function dl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function OM(t,e,i,l,o,c){var m=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,E=t.expirationTimes,B=t.hiddenUpdates;for(i=m&~i;0<i;){var q=31-ze(i),X=1<<q;x[q]=0,E[q]=-1;var O=B[q];if(O!==null)for(B[q]=null,q=0;q<O.length;q++){var _=O[q];_!==null&&(_.lane&=-536870913)}i&=~X}l!==0&&Vp(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function Vp(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ze(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Np(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-ze(i),o=1<<l;o&e|t[l]&e&&(t[l]|=e),i&=~o}}function Up(t,e){var i=e&-e;return i=(i&42)!==0?1:Ru(i),(i&(t.suspendedLanes|e))!==0?0:i}function Ru(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 ju(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Hp(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:Ev(t.type))}function _p(t,e){var i=G.p;try{return G.p=t,e()}finally{G.p=i}}var Pn=Math.random().toString(36).slice(2),ce="__reactFiber$"+Pn,xe="__reactProps$"+Pn,na="__reactContainer$"+Pn,zu="__reactEvents$"+Pn,LM="__reactListeners$"+Pn,VM="__reactHandles$"+Pn,kp="__reactResources$"+Pn,hl="__reactMarker$"+Pn;function Bu(t){delete t[ce],delete t[xe],delete t[zu],delete t[LM],delete t[VM]}function ia(t){var e=t[ce];if(e)return e;for(var i=t.parentNode;i;){if(e=i[na]||i[ce]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=rv(t);t!==null;){if(i=t[ce])return i;t=rv(t)}return e}t=i,i=t.parentNode}return null}function aa(t){if(t=t[ce]||t[na]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ml(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function la(t){var e=t[kp];return e||(e=t[kp]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[hl]=!0}var Gp=new Set,Yp={};function Ei(t,e){sa(t,e),sa(t+"Capture",e)}function sa(t,e){for(Yp[t]=e,t=0;t<e.length;t++)Gp.add(e[t])}var NM=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]*$"),qp={},Pp={};function UM(t){return qe.call(Pp,t)?!0:qe.call(qp,t)?!1:NM.test(t)?Pp[t]=!0:(qp[t]=!0,!1)}function Ls(t,e,i){if(UM(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){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,""+i)}}function Vs(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function bn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function Pe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function HM(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ou(t){if(!t._valueTracker){var e=Xp(t)?"checked":"value";t._valueTracker=HM(t,e,""+t[e])}}function Kp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=Xp(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ns(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 _M=/[\n"\\]/g;function Xe(t){return t.replace(_M,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lu(t,e,i,l,o,c,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Pe(e)):t.value!==""+Pe(e)&&(t.value=""+Pe(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Vu(t,m,Pe(e)):i!=null?Vu(t,m,Pe(i)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Pe(x):t.removeAttribute("name")}function Fp(t,e,i,l,o,c,m,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Ou(t);return}i=i!=null?""+Pe(i):"",e=e!=null?""+Pe(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Ou(t)}function Vu(t,e,i){e==="number"&&Ns(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ra(t,e,i,l){if(t=t.options,e){e={};for(var o=0;o<i.length;o++)e["$"+i[o]]=!0;for(i=0;i<t.length;i++)o=e.hasOwnProperty("$"+t[i].value),t[i].selected!==o&&(t[i].selected=o),o&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Pe(i),e=null,o=0;o<t.length;o++){if(t[o].value===i){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Qp(t,e,i){if(e!=null&&(e=""+Pe(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Pe(i):""}function Zp(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(F(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Pe(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Ou(t)}function oa(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var kM=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 Ip(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||kM.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Jp(t,e,i){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&i[o]!==l&&Ip(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&Ip(t,c,e[c])}function Nu(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 GM=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"]]),YM=/^[\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 Us(t){return YM.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var Uu=null;function Hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ua=null,ca=null;function Wp(t){var e=aa(t);if(e&&(t=e.stateNode)){var i=t[xe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Xe(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var o=l[xe]||null;if(!o)throw Error(u(90));Lu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&Kp(l)}break t;case"textarea":Qp(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&ra(t,!!i.multiple,e,!1)}}}var _u=!1;function $p(t,e,i){if(_u)return t(e,i);_u=!0;try{var l=t(e);return l}finally{if(_u=!1,(ua!==null||ca!==null)&&(Mr(),ua&&(e=ua,t=ca,ca=ua=null,Wp(e),t)))for(e=0;e<t.length;e++)Wp(t[e])}}function pl(t,e){var i=t.stateNode;if(i===null)return null;var l=i[xe]||null;if(l===null)return null;i=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(i&&typeof i!="function")throw Error(u(231,e,typeof i));return i}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=!1;if(xn)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){ku=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{ku=!1}var Xn=null,Gu=null,Hs=null;function t0(){if(Hs)return Hs;var t,e=Gu,i=e.length,l,o="value"in Xn?Xn.value:Xn.textContent,c=o.length;for(t=0;t<i&&e[t]===o[t];t++);var m=i-t;for(l=1;l<=m&&e[i-l]===o[c-l];l++);return Hs=o.slice(t,1<l?1-l:void 0)}function _s(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 ks(){return!0}function e0(){return!1}function Te(t){function e(i,l,o,c,m){this._reactName=i,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ks:e0,this.isPropagationStopped=e0,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ks)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),e}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Te(Mi),gl=v({},Mi,{view:0,detail:0}),qM=Te(gl),Yu,qu,vl,Ys=v({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,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!==vl&&(vl&&t.type==="mousemove"?(Yu=t.screenX-vl.screenX,qu=t.screenY-vl.screenY):qu=Yu=0,vl=t),Yu)},movementY:function(t){return"movementY"in t?t.movementY:qu}}),n0=Te(Ys),PM=v({},Ys,{dataTransfer:0}),XM=Te(PM),KM=v({},gl,{relatedTarget:0}),Pu=Te(KM),FM=v({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),QM=Te(FM),ZM=v({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),IM=Te(ZM),JM=v({},Mi,{data:0}),i0=Te(JM),WM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$M={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"},tA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eA(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=tA[t])?!!e[t]:!1}function Xu(){return eA}var nA=v({},gl,{key:function(t){if(t.key){var e=WM[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=_s(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$M[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(t){return t.type==="keypress"?_s(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_s(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iA=Te(nA),aA=v({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a0=Te(aA),lA=v({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),sA=Te(lA),rA=v({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oA=Te(rA),uA=v({},Ys,{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}),cA=Te(uA),fA=v({},Mi,{newState:0,oldState:0}),dA=Te(fA),hA=[9,13,27,32],Ku=xn&&"CompositionEvent"in window,bl=null;xn&&"documentMode"in document&&(bl=document.documentMode);var mA=xn&&"TextEvent"in window&&!bl,l0=xn&&(!Ku||bl&&8<bl&&11>=bl),s0=" ",r0=!1;function o0(t,e){switch(t){case"keyup":return hA.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fa=!1;function pA(t,e){switch(t){case"compositionend":return u0(e);case"keypress":return e.which!==32?null:(r0=!0,s0);case"textInput":return t=e.data,t===s0&&r0?null:t;default:return null}}function yA(t,e){if(fa)return t==="compositionend"||!Ku&&o0(t,e)?(t=t0(),Hs=Gu=Xn=null,fa=!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 l0&&e.locale!=="ko"?null:e.data;default:return null}}var gA={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 c0(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!gA[t.type]:e==="textarea"}function f0(t,e,i,l){ua?ca?ca.push(l):ca=[l]:ua=l,e=zr(e,"onChange"),0<e.length&&(i=new Gs("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var Sl=null,xl=null;function vA(t){Fg(t,0)}function qs(t){var e=ml(t);if(Kp(e))return t}function d0(t,e){if(t==="change")return e}var h0=!1;if(xn){var Fu;if(xn){var Qu="oninput"in document;if(!Qu){var m0=document.createElement("div");m0.setAttribute("oninput","return;"),Qu=typeof m0.oninput=="function"}Fu=Qu}else Fu=!1;h0=Fu&&(!document.documentMode||9<document.documentMode)}function p0(){Sl&&(Sl.detachEvent("onpropertychange",y0),xl=Sl=null)}function y0(t){if(t.propertyName==="value"&&qs(xl)){var e=[];f0(e,xl,t,Hu(t)),$p(vA,e)}}function bA(t,e,i){t==="focusin"?(p0(),Sl=e,xl=i,Sl.attachEvent("onpropertychange",y0)):t==="focusout"&&p0()}function SA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qs(xl)}function xA(t,e){if(t==="click")return qs(e)}function TA(t,e){if(t==="input"||t==="change")return qs(e)}function EA(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Be=typeof Object.is=="function"?Object.is:EA;function Tl(t,e){if(Be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var o=i[l];if(!qe.call(e,o)||!Be(t[o],e[o]))return!1}return!0}function g0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function v0(t,e){var i=g0(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=g0(i)}}function b0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?b0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function S0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ns(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Ns(t.document)}return e}function Zu(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 MA=xn&&"documentMode"in document&&11>=document.documentMode,da=null,Iu=null,El=null,Ju=!1;function x0(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ju||da==null||da!==Ns(l)||(l=da,"selectionStart"in l&&Zu(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}),El&&Tl(El,l)||(El=l,l=zr(Iu,"onSelect"),0<l.length&&(e=new Gs("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=da)))}function Ai(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ha={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionrun:Ai("Transition","TransitionRun"),transitionstart:Ai("Transition","TransitionStart"),transitioncancel:Ai("Transition","TransitionCancel"),transitionend:Ai("Transition","TransitionEnd")},Wu={},T0={};xn&&(T0=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Ci(t){if(Wu[t])return Wu[t];if(!ha[t])return t;var e=ha[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in T0)return Wu[t]=e[i];return t}var E0=Ci("animationend"),M0=Ci("animationiteration"),A0=Ci("animationstart"),AA=Ci("transitionrun"),CA=Ci("transitionstart"),wA=Ci("transitioncancel"),C0=Ci("transitionend"),w0=new Map,$u="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(" ");$u.push("scrollEnd");function an(t,e){w0.set(t,e),Ei(e,[t])}var Ps=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 n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",t);return}console.error(t)},Ke=[],ma=0,tc=0;function Xs(){for(var t=ma,e=tc=ma=0;e<t;){var i=Ke[e];Ke[e++]=null;var l=Ke[e];Ke[e++]=null;var o=Ke[e];Ke[e++]=null;var c=Ke[e];if(Ke[e++]=null,l!==null&&o!==null){var m=l.pending;m===null?o.next=o:(o.next=m.next,m.next=o),l.pending=o}c!==0&&D0(i,o,c)}}function Ks(t,e,i,l){Ke[ma++]=t,Ke[ma++]=e,Ke[ma++]=i,Ke[ma++]=l,tc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ec(t,e,i,l){return Ks(t,e,i,l),Fs(t)}function wi(t,e){return Ks(t,null,null,e),Fs(t)}function D0(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var o=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-ze(i),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=i|536870912),c):null}function Fs(t){if(50<Xl)throw Xl=0,ff=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var pa={};function DA(t,e,i,l){this.tag=t,this.key=i,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 Oe(t,e,i,l){return new DA(t,e,i,l)}function nc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tn(t,e){var i=t.alternate;return i===null?(i=Oe(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function R0(t,e){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Qs(t,e,i,l,o,c){var m=0;if(l=t,typeof t=="function")nc(t)&&(m=1);else if(typeof t=="string")m=O5(t,i,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case bt:return t=Oe(31,i,e,o),t.elementType=bt,t.lanes=c,t;case H:return Di(i.children,o,c,e);case C:m=8,o|=24;break;case U:return t=Oe(12,i,e,o|2),t.elementType=U,t.lanes=c,t;case J:return t=Oe(13,i,e,o),t.elementType=J,t.lanes=c,t;case Y:return t=Oe(19,i,e,o),t.elementType=Y,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:m=10;break t;case V:m=9;break t;case Q:m=11;break t;case k:m=14;break t;case st:m=16,l=null;break t}m=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Oe(m,i,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Di(t,e,i,l){return t=Oe(7,t,l,e),t.lanes=i,t}function ic(t,e,i){return t=Oe(6,t,null,e),t.lanes=i,t}function j0(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function ac(t,e,i){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var z0=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var i=z0.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Kt(e)},z0.set(t,e),e)}return{value:t,source:e,stack:Kt(e)}}var ya=[],ga=0,Zs=null,Ml=0,Qe=[],Ze=0,Kn=null,dn=1,hn="";function En(t,e){ya[ga++]=Ml,ya[ga++]=Zs,Zs=t,Ml=e}function B0(t,e,i){Qe[Ze++]=dn,Qe[Ze++]=hn,Qe[Ze++]=Kn,Kn=t;var l=dn;t=hn;var o=32-ze(l)-1;l&=~(1<<o),i+=1;var c=32-ze(e)+o;if(30<c){var m=o-o%5;c=(l&(1<<m)-1).toString(32),l>>=m,o-=m,dn=1<<32-ze(e)+o|i<<o|l,hn=c+t}else dn=1<<c|i<<o|l,hn=t}function lc(t){t.return!==null&&(En(t,1),B0(t,1,0))}function sc(t){for(;t===Zs;)Zs=ya[--ga],ya[ga]=null,Ml=ya[--ga],ya[ga]=null;for(;t===Kn;)Kn=Qe[--Ze],Qe[Ze]=null,hn=Qe[--Ze],Qe[Ze]=null,dn=Qe[--Ze],Qe[Ze]=null}function O0(t,e){Qe[Ze++]=dn,Qe[Ze++]=hn,Qe[Ze++]=Kn,dn=e.id,hn=e.overflow,Kn=t}var fe=null,_t=null,At=!1,Fn=null,Ie=!1,rc=Error(u(519));function Qn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(Fe(e,t)),rc}function L0(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ce]=t,e[xe]=l,i){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(i=0;i<Fl.length;i++)Tt(Fl[i],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),Fp(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),Zp(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||Jg(e.textContent,i)?(l.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),l.onScroll!=null&&Tt("scroll",e),l.onScrollEnd!=null&&Tt("scrollend",e),l.onClick!=null&&(e.onclick=Sn),e=!0):e=!1,e||Qn(t,!0)}function V0(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:fe=fe.return}}function va(t){if(t!==fe)return!1;if(!At)return V0(t),At=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Cf(t.type,t.memoizedProps)),i=!i),i&&_t&&Qn(t),V0(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sv(t)}else e===27?(e=_t,oi(t.type)?(t=zf,zf=null,_t=t):_t=e):_t=fe?We(t.stateNode.nextSibling):null;return!0}function Ri(){_t=fe=null,At=!1}function oc(){var t=Fn;return t!==null&&(Ce===null?Ce=t:Ce.push.apply(Ce,t),Fn=null),t}function Al(t){Fn===null?Fn=[t]:Fn.push(t)}var uc=M(null),ji=null,Mn=null;function Zn(t,e,i){I(uc,e._currentValue),e._currentValue=i}function An(t){t._currentValue=uc.current,N(uc)}function cc(t,e,i){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===i)break;t=t.return}}function fc(t,e,i,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var E=0;E<e.length;E++)if(x.context===e[E]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),cc(c.return,i,t),l||(m=null);break t}c=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(u(341));m.lanes|=i,c=m.alternate,c!==null&&(c.lanes|=i),cc(m,i,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function ba(t,e,i,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(u(387));if(m=m.memoizedProps,m!==null){var x=o.type;Be(o.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(o===ht.current){if(m=o.alternate,m===null)throw Error(u(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Wl):t=[Wl])}o=o.return}t!==null&&fc(e,t,i,l),e.flags|=262144}function Is(t){for(t=t.firstContext;t!==null;){if(!Be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zi(t){ji=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function de(t){return N0(ji,t)}function Js(t,e){return ji===null&&zi(t),N0(t,e)}function N0(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Mn===null){if(t===null)throw Error(u(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Mn=Mn.next=e;return i}var RA=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},jA=a.unstable_scheduleCallback,zA=a.unstable_NormalPriority,$t={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new RA,data:new Map,refCount:0}}function Cl(t){t.refCount--,t.refCount===0&&jA(zA,function(){t.controller.abort()})}var wl=null,hc=0,Sa=0,xa=null;function BA(t,e){if(wl===null){var i=wl=[];hc=0,Sa=gf(),xa={status:"pending",value:void 0,then:function(l){i.push(l)}}}return hc++,e.then(U0,U0),e}function U0(){if(--hc===0&&wl!==null){xa!==null&&(xa.status="fulfilled");var t=wl;wl=null,Sa=0,xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function OA(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<i.length;o++)(0,i[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),l}var H0=D.S;D.S=function(t,e){xg=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&BA(t,e),H0!==null&&H0(t,e)};var Bi=M(null);function mc(){var t=Bi.current;return t!==null?t:Vt.pooledCache}function Ws(t,e){e===null?I(Bi,Bi.current):I(Bi,e.pool)}function _0(){var t=mc();return t===null?null:{parent:$t._currentValue,pool:t}}var Ta=Error(u(460)),pc=Error(u(474)),$s=Error(u(542)),tr={then:function(){}};function k0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function G0(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(Sn,Sn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,q0(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,q0(t),t}throw Li=e,Ta}}function Oi(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Li=i,Ta):i}}var Li=null;function Y0(){if(Li===null)throw Error(u(459));var t=Li;return Li=null,t}function q0(t){if(t===Ta||t===$s)throw Error(u(483))}var Ea=null,Dl=0;function er(t){var e=Dl;return Dl+=1,Ea===null&&(Ea=[]),G0(Ea,t,e)}function Rl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function nr(t,e){throw e.$$typeof===A?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function P0(t){function e(R,w){if(t){var z=R.deletions;z===null?(R.deletions=[w],R.flags|=16):z.push(w)}}function i(R,w){if(!t)return null;for(;w!==null;)e(R,w),w=w.sibling;return null}function l(R){for(var w=new Map;R!==null;)R.key!==null?w.set(R.key,R):w.set(R.index,R),R=R.sibling;return w}function o(R,w){return R=Tn(R,w),R.index=0,R.sibling=null,R}function c(R,w,z){return R.index=z,t?(z=R.alternate,z!==null?(z=z.index,z<w?(R.flags|=67108866,w):z):(R.flags|=67108866,w)):(R.flags|=1048576,w)}function m(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function x(R,w,z,P){return w===null||w.tag!==6?(w=ic(z,R.mode,P),w.return=R,w):(w=o(w,z),w.return=R,w)}function E(R,w,z,P){var ot=z.type;return ot===H?q(R,w,z.props.children,P,z.key):w!==null&&(w.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&Oi(ot)===w.type)?(w=o(w,z.props),Rl(w,z),w.return=R,w):(w=Qs(z.type,z.key,z.props,null,R.mode,P),Rl(w,z),w.return=R,w)}function B(R,w,z,P){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=ac(z,R.mode,P),w.return=R,w):(w=o(w,z.children||[]),w.return=R,w)}function q(R,w,z,P,ot){return w===null||w.tag!==7?(w=Di(z,R.mode,P,ot),w.return=R,w):(w=o(w,z),w.return=R,w)}function X(R,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ic(""+w,R.mode,z),w.return=R,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j:return z=Qs(w.type,w.key,w.props,null,R.mode,z),Rl(z,w),z.return=R,z;case L:return w=ac(w,R.mode,z),w.return=R,w;case st:return w=Oi(w),X(R,w,z)}if(F(w)||Z(w))return w=Di(w,R.mode,z,null),w.return=R,w;if(typeof w.then=="function")return X(R,er(w),z);if(w.$$typeof===K)return X(R,Js(R,w),z);nr(R,w)}return null}function O(R,w,z,P){var ot=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ot!==null?null:x(R,w,""+z,P);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===ot?E(R,w,z,P):null;case L:return z.key===ot?B(R,w,z,P):null;case st:return z=Oi(z),O(R,w,z,P)}if(F(z)||Z(z))return ot!==null?null:q(R,w,z,P,null);if(typeof z.then=="function")return O(R,w,er(z),P);if(z.$$typeof===K)return O(R,w,Js(R,z),P);nr(R,z)}return null}function _(R,w,z,P,ot){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return R=R.get(z)||null,x(w,R,""+P,ot);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return R=R.get(P.key===null?z:P.key)||null,E(w,R,P,ot);case L:return R=R.get(P.key===null?z:P.key)||null,B(w,R,P,ot);case st:return P=Oi(P),_(R,w,z,P,ot)}if(F(P)||Z(P))return R=R.get(z)||null,q(w,R,P,ot,null);if(typeof P.then=="function")return _(R,w,z,er(P),ot);if(P.$$typeof===K)return _(R,w,z,Js(w,P),ot);nr(w,P)}return null}function it(R,w,z,P){for(var ot=null,Ct=null,rt=w,St=w=0,Mt=null;rt!==null&&St<z.length;St++){rt.index>St?(Mt=rt,rt=null):Mt=rt.sibling;var wt=O(R,rt,z[St],P);if(wt===null){rt===null&&(rt=Mt);break}t&&rt&&wt.alternate===null&&e(R,rt),w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt,rt=Mt}if(St===z.length)return i(R,rt),At&&En(R,St),ot;if(rt===null){for(;St<z.length;St++)rt=X(R,z[St],P),rt!==null&&(w=c(rt,w,St),Ct===null?ot=rt:Ct.sibling=rt,Ct=rt);return At&&En(R,St),ot}for(rt=l(rt);St<z.length;St++)Mt=_(rt,R,St,z[St],P),Mt!==null&&(t&&Mt.alternate!==null&&rt.delete(Mt.key===null?St:Mt.key),w=c(Mt,w,St),Ct===null?ot=Mt:Ct.sibling=Mt,Ct=Mt);return t&&rt.forEach(function(hi){return e(R,hi)}),At&&En(R,St),ot}function ct(R,w,z,P){if(z==null)throw Error(u(151));for(var ot=null,Ct=null,rt=w,St=w=0,Mt=null,wt=z.next();rt!==null&&!wt.done;St++,wt=z.next()){rt.index>St?(Mt=rt,rt=null):Mt=rt.sibling;var hi=O(R,rt,wt.value,P);if(hi===null){rt===null&&(rt=Mt);break}t&&rt&&hi.alternate===null&&e(R,rt),w=c(hi,w,St),Ct===null?ot=hi:Ct.sibling=hi,Ct=hi,rt=Mt}if(wt.done)return i(R,rt),At&&En(R,St),ot;if(rt===null){for(;!wt.done;St++,wt=z.next())wt=X(R,wt.value,P),wt!==null&&(w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt);return At&&En(R,St),ot}for(rt=l(rt);!wt.done;St++,wt=z.next())wt=_(rt,R,St,wt.value,P),wt!==null&&(t&&wt.alternate!==null&&rt.delete(wt.key===null?St:wt.key),w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt);return t&&rt.forEach(function(P5){return e(R,P5)}),At&&En(R,St),ot}function Lt(R,w,z,P){if(typeof z=="object"&&z!==null&&z.type===H&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:t:{for(var ot=z.key;w!==null;){if(w.key===ot){if(ot=z.type,ot===H){if(w.tag===7){i(R,w.sibling),P=o(w,z.props.children),P.return=R,R=P;break t}}else if(w.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&Oi(ot)===w.type){i(R,w.sibling),P=o(w,z.props),Rl(P,z),P.return=R,R=P;break t}i(R,w);break}else e(R,w);w=w.sibling}z.type===H?(P=Di(z.props.children,R.mode,P,z.key),P.return=R,R=P):(P=Qs(z.type,z.key,z.props,null,R.mode,P),Rl(P,z),P.return=R,R=P)}return m(R);case L:t:{for(ot=z.key;w!==null;){if(w.key===ot)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){i(R,w.sibling),P=o(w,z.children||[]),P.return=R,R=P;break t}else{i(R,w);break}else e(R,w);w=w.sibling}P=ac(z,R.mode,P),P.return=R,R=P}return m(R);case st:return z=Oi(z),Lt(R,w,z,P)}if(F(z))return it(R,w,z,P);if(Z(z)){if(ot=Z(z),typeof ot!="function")throw Error(u(150));return z=ot.call(z),ct(R,w,z,P)}if(typeof z.then=="function")return Lt(R,w,er(z),P);if(z.$$typeof===K)return Lt(R,w,Js(R,z),P);nr(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(i(R,w.sibling),P=o(w,z),P.return=R,R=P):(i(R,w),P=ic(z,R.mode,P),P.return=R,R=P),m(R)):i(R,w)}return function(R,w,z,P){try{Dl=0;var ot=Lt(R,w,z,P);return Ea=null,ot}catch(rt){if(rt===Ta||rt===$s)throw rt;var Ct=Oe(29,rt,null,R.mode);return Ct.lanes=P,Ct.return=R,Ct}finally{}}}var Vi=P0(!0),X0=P0(!1),In=!1;function yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(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 Jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=Fs(t),D0(t,null,i),e}return Ks(t,l,e,i),Fs(t)}function jl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Np(t,i)}}function vc(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var m={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,i=i.next}while(i!==null);c===null?o=c=e:c=c.next=e}else o=c=e;i={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var bc=!1;function zl(){if(bc){var t=xa;if(t!==null)throw t}}function Bl(t,e,i,l){bc=!1;var o=t.updateQueue;In=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var E=x,B=E.next;E.next=null,m===null?c=B:m.next=B,m=E;var q=t.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==m&&(x===null?q.firstBaseUpdate=B:x.next=B,q.lastBaseUpdate=E))}if(c!==null){var X=o.baseState;m=0,q=B=E=null,x=c;do{var O=x.lane&-536870913,_=O!==x.lane;if(_?(Et&O)===O:(l&O)===O){O!==0&&O===Sa&&(bc=!0),q!==null&&(q=q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var it=t,ct=x;O=e;var Lt=i;switch(ct.tag){case 1:if(it=ct.payload,typeof it=="function"){X=it.call(Lt,X,O);break t}X=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ct.payload,O=typeof it=="function"?it.call(Lt,X,O):it,O==null)break t;X=v({},X,O);break t;case 2:In=!0}}O=x.callback,O!==null&&(t.flags|=64,_&&(t.flags|=8192),_=o.callbacks,_===null?o.callbacks=[O]:_.push(O))}else _={lane:O,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(B=q=_,E=X):q=q.next=_,m|=O;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;_=x,x=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(!0);q===null&&(E=X),o.baseState=E,o.firstBaseUpdate=B,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),ii|=m,t.lanes=m,t.memoizedState=X}}function K0(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function F0(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)K0(i[t],e)}var Ma=M(null),ir=M(0);function Q0(t,e){t=Ln,I(ir,t),I(Ma,e),Ln=t|e.baseLanes}function Sc(){I(ir,Ln),I(Ma,Ma.current)}function xc(){Ln=ir.current,N(Ma),N(ir)}var Le=M(null),Je=null;function $n(t){var e=t.alternate;I(It,It.current&1),I(Le,t),Je===null&&(e===null||Ma.current!==null||e.memoizedState!==null)&&(Je=t)}function Tc(t){I(It,It.current),I(Le,t),Je===null&&(Je=t)}function Z0(t){t.tag===22?(I(It,It.current),I(Le,t),Je===null&&(Je=t)):ti()}function ti(){I(It,It.current),I(Le,Le.current)}function Ve(t){N(Le),Je===t&&(Je=null),N(It)}var It=M(0);function ar(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Rf(i)||jf(i)))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 Cn=0,vt=null,Bt=null,te=null,lr=!1,Aa=!1,Ni=!1,sr=0,Ol=0,Ca=null,LA=0;function Qt(){throw Error(u(321))}function Ec(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Be(t[i],e[i]))return!1;return!0}function Mc(t,e,i,l,o,c){return Cn=c,vt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?By:_c,Ni=!1,c=i(l,o),Ni=!1,Aa&&(c=J0(e,i,l,o)),I0(t),c}function I0(t){D.H=Nl;var e=Bt!==null&&Bt.next!==null;if(Cn=0,te=Bt=vt=null,lr=!1,Ol=0,Ca=null,e)throw Error(u(300));t===null||ee||(t=t.dependencies,t!==null&&Is(t)&&(ee=!0))}function J0(t,e,i,l){vt=t;var o=0;do{if(Aa&&(Ca=null),Ol=0,Aa=!1,25<=o)throw Error(u(301));if(o+=1,te=Bt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Oy,c=e(i,l)}while(Aa);return c}function VA(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?Ll(e):e,t=t.useState()[0],(Bt!==null?Bt.memoizedState:null)!==t&&(vt.flags|=1024),e}function Ac(){var t=sr!==0;return sr=0,t}function Cc(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function wc(t){if(lr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}lr=!1}Cn=0,te=Bt=vt=null,Aa=!1,Ol=sr=0,Ca=null}function be(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?vt.memoizedState=te=t:te=te.next=t,te}function Jt(){if(Bt===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=Bt.next;var e=te===null?vt.memoizedState:te.next;if(e!==null)te=e,Bt=t;else{if(t===null)throw vt.alternate===null?Error(u(467)):Error(u(310));Bt=t,t={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},te===null?vt.memoizedState=te=t:te=te.next=t}return te}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(t){var e=Ol;return Ol+=1,Ca===null&&(Ca=[]),t=G0(Ca,t,e),e=vt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?By:_c),t}function or(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ll(t);if(t.$$typeof===K)return de(t)}throw Error(u(438,String(t)))}function Dc(t){var e=null,i=vt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=vt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=rr(),vt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=pt;return e.index++,i}function wn(t,e){return typeof e=="function"?e(t):e}function ur(t){var e=Jt();return Rc(e,Bt,t)}function Rc(t,e,i){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=i;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=m=null,E=null,B=e,q=!1;do{var X=B.lane&-536870913;if(X!==B.lane?(Et&X)===X:(Cn&X)===X){var O=B.revertLane;if(O===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),X===Sa&&(q=!0);else if((Cn&O)===O){B=B.next,O===Sa&&(q=!0);continue}else X={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=X,m=c):E=E.next=X,vt.lanes|=O,ii|=O;X=B.action,Ni&&i(c,X),c=B.hasEagerState?B.eagerState:i(c,X)}else O={lane:X,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=O,m=c):E=E.next=O,vt.lanes|=X,ii|=X;B=B.next}while(B!==null&&B!==e);if(E===null?m=c:E.next=x,!Be(c,t.memoizedState)&&(ee=!0,q&&(i=xa,i!==null)))throw i;t.memoizedState=c,t.baseState=m,t.baseQueue=E,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function jc(t){var e=Jt(),i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=t;var l=i.dispatch,o=i.pending,c=e.memoizedState;if(o!==null){i.pending=null;var m=o=o.next;do c=t(c,m.action),m=m.next;while(m!==o);Be(c,e.memoizedState)||(ee=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function W0(t,e,i){var l=vt,o=Jt(),c=At;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var m=!Be((Bt||o).memoizedState,i);if(m&&(o.memoizedState=i,ee=!0),o=o.queue,Oc(ey.bind(null,l,o,t),[t]),o.getSnapshot!==e||m||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,wa(9,{destroy:void 0},ty.bind(null,l,o,i,e),null),Vt===null)throw Error(u(349));c||(Cn&127)!==0||$0(l,e,i)}return i}function $0(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=vt.updateQueue,e===null?(e=rr(),vt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function ty(t,e,i,l){e.value=i,e.getSnapshot=l,ny(e)&&iy(t)}function ey(t,e,i){return i(function(){ny(e)&&iy(t)})}function ny(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Be(t,i)}catch{return!0}}function iy(t){var e=wi(t,2);e!==null&&we(e,t,2)}function zc(t){var e=be();if(typeof t=="function"){var i=t;if(t=i(),Ni){qn(!0);try{i()}finally{qn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:t},e}function ay(t,e,i,l){return t.baseState=i,Rc(t,Bt,typeof l=="function"?l:wn)}function NA(t,e,i,l,o){if(dr(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,ly(e,c)):(c.next=i.next,e.pending=i.next=c)}}function ly(t,e){var i=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=D.T,m={};D.T=m;try{var x=i(o,l),E=D.S;E!==null&&E(m,x),sy(t,e,x)}catch(B){Bc(t,e,B)}finally{c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}else try{c=i(o,l),sy(t,e,c)}catch(B){Bc(t,e,B)}}function sy(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){ry(t,e,l)},function(l){return Bc(t,e,l)}):ry(t,e,i)}function ry(t,e,i){e.status="fulfilled",e.value=i,oy(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,ly(t,i)))}function Bc(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,oy(e),e=e.next;while(e!==l)}t.action=null}function oy(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function uy(t,e){return e}function cy(t,e){if(At){var i=Vt.formState;if(i!==null){t:{var l=vt;if(At){if(_t){e:{for(var o=_t,c=Ie;o.nodeType!==8;){if(!c){o=null;break e}if(o=We(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){_t=We(o.nextSibling),l=o.data==="F!";break t}}Qn(l)}l=!1}l&&(e=i[0])}}return i=be(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uy,lastRenderedState:e},i.queue=l,i=Ry.bind(null,vt,l),l.dispatch=i,l=zc(!1),c=Hc.bind(null,vt,!1,l.queue),l=be(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,i=NA.bind(null,vt,o,c,i),o.dispatch=i,l.memoizedState=t,[e,i,!1]}function fy(t){var e=Jt();return dy(e,Bt,t)}function dy(t,e,i){if(e=Rc(t,e,uy)[0],t=ur(wn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ll(e)}catch(m){throw m===Ta?$s:m}else l=e;e=Jt();var o=e.queue,c=o.dispatch;return i!==e.memoizedState&&(vt.flags|=2048,wa(9,{destroy:void 0},UA.bind(null,o,i),null)),[l,c,t]}function UA(t,e){t.action=e}function hy(t){var e=Jt(),i=Bt;if(i!==null)return dy(e,i,t);Jt(),e=e.memoizedState,i=Jt();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function wa(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=vt.updateQueue,e===null&&(e=rr(),vt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function my(){return Jt().memoizedState}function cr(t,e,i,l){var o=be();vt.flags|=t,o.memoizedState=wa(1|e,{destroy:void 0},i,l===void 0?null:l)}function fr(t,e,i,l){var o=Jt();l=l===void 0?null:l;var c=o.memoizedState.inst;Bt!==null&&l!==null&&Ec(l,Bt.memoizedState.deps)?o.memoizedState=wa(e,c,i,l):(vt.flags|=t,o.memoizedState=wa(1|e,c,i,l))}function py(t,e){cr(8390656,8,t,e)}function Oc(t,e){fr(2048,8,t,e)}function HA(t){vt.flags|=4;var e=vt.updateQueue;if(e===null)e=rr(),vt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function yy(t){var e=Jt().memoizedState;return HA({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function gy(t,e){return fr(4,2,t,e)}function vy(t,e){return fr(4,4,t,e)}function by(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Sy(t,e,i){i=i!=null?i.concat([t]):null,fr(4,4,by.bind(null,e,t),i)}function Lc(){}function xy(t,e){var i=Jt();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Ec(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Ty(t,e){var i=Jt();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Ec(e,l[1]))return l[0];if(l=t(),Ni){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l}function Vc(t,e,i){return i===void 0||(Cn&1073741824)!==0&&(Et&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Eg(),vt.lanes|=t,ii|=t,i)}function Ey(t,e,i,l){return Be(i,e)?i:Ma.current!==null?(t=Vc(t,i,l),Be(t,e)||(ee=!0),t):(Cn&42)===0||(Cn&1073741824)!==0&&(Et&261930)===0?(ee=!0,t.memoizedState=i):(t=Eg(),vt.lanes|=t,ii|=t,e)}function My(t,e,i,l,o){var c=G.p;G.p=c!==0&&8>c?c:8;var m=D.T,x={};D.T=x,Hc(t,!1,e,i);try{var E=o(),B=D.S;if(B!==null&&B(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=OA(E,l);Vl(t,e,q,He(t))}else Vl(t,e,l,He(t))}catch(X){Vl(t,e,{then:function(){},status:"rejected",reason:X},He())}finally{G.p=c,m!==null&&x.types!==null&&(m.types=x.types),D.T=m}}function _A(){}function Nc(t,e,i,l){if(t.tag!==5)throw Error(u(476));var o=Ay(t).queue;My(t,o,e,$,i===null?_A:function(){return Cy(t),i(l)})}function Ay(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:$},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Cy(t){var e=Ay(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},He())}function Uc(){return de(Wl)}function wy(){return Jt().memoizedState}function Dy(){return Jt().memoizedState}function kA(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=He();t=Jn(i);var l=Wn(e,t,i);l!==null&&(we(l,e,i),jl(l,e,i)),e={cache:dc()},t.payload=e;return}e=e.return}}function GA(t,e,i){var l=He();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},dr(t)?jy(e,i):(i=ec(t,e,i,l),i!==null&&(we(i,t,l),zy(i,e,l)))}function Ry(t,e,i){var l=He();Vl(t,e,i,l)}function Vl(t,e,i,l){var o={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(dr(t))jy(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,x=c(m,i);if(o.hasEagerState=!0,o.eagerState=x,Be(x,m))return Ks(t,e,o,0),Vt===null&&Xs(),!1}catch{}finally{}if(i=ec(t,e,o,l),i!==null)return we(i,t,l),zy(i,e,l),!0}return!1}function Hc(t,e,i,l){if(l={lane:2,revertLane:gf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},dr(t)){if(e)throw Error(u(479))}else e=ec(t,i,l,2),e!==null&&we(e,t,2)}function dr(t){var e=t.alternate;return t===vt||e!==null&&e===vt}function jy(t,e){Aa=lr=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function zy(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Np(t,i)}}var Nl={readContext:de,use:or,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};Nl.useEffectEvent=Qt;var By={readContext:de,use:or,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:de,useEffect:py,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,cr(4194308,4,by.bind(null,e,t),i)},useLayoutEffect:function(t,e){return cr(4194308,4,t,e)},useInsertionEffect:function(t,e){cr(4,2,t,e)},useMemo:function(t,e){var i=be();e=e===void 0?null:e;var l=t();if(Ni){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=be();if(i!==void 0){var o=i(e);if(Ni){qn(!0);try{i(e)}finally{qn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=GA.bind(null,vt,t),[l.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=zc(t);var e=t.queue,i=Ry.bind(null,vt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Lc,useDeferredValue:function(t,e){var i=be();return Vc(i,t,e)},useTransition:function(){var t=zc(!1);return t=My.bind(null,vt,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=vt,o=be();if(At){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),Vt===null)throw Error(u(349));(Et&127)!==0||$0(l,e,i)}o.memoizedState=i;var c={value:i,getSnapshot:e};return o.queue=c,py(ey.bind(null,l,c,t),[t]),l.flags|=2048,wa(9,{destroy:void 0},ty.bind(null,l,c,i,e),null),i},useId:function(){var t=be(),e=Vt.identifierPrefix;if(At){var i=hn,l=dn;i=(l&~(1<<32-ze(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=sr++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=LA++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:cy,useActionState:cy,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Hc.bind(null,vt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Dc,useCacheRefresh:function(){return be().memoizedState=kA.bind(null,vt)},useEffectEvent:function(t){var e=be(),i={impl:t};return e.memoizedState=i,function(){if((Dt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},_c={readContext:de,use:or,useCallback:xy,useContext:de,useEffect:Oc,useImperativeHandle:Sy,useInsertionEffect:gy,useLayoutEffect:vy,useMemo:Ty,useReducer:ur,useRef:my,useState:function(){return ur(wn)},useDebugValue:Lc,useDeferredValue:function(t,e){var i=Jt();return Ey(i,Bt.memoizedState,t,e)},useTransition:function(){var t=ur(wn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:Ll(t),e]},useSyncExternalStore:W0,useId:wy,useHostTransitionStatus:Uc,useFormState:fy,useActionState:fy,useOptimistic:function(t,e){var i=Jt();return ay(i,Bt,t,e)},useMemoCache:Dc,useCacheRefresh:Dy};_c.useEffectEvent=yy;var Oy={readContext:de,use:or,useCallback:xy,useContext:de,useEffect:Oc,useImperativeHandle:Sy,useInsertionEffect:gy,useLayoutEffect:vy,useMemo:Ty,useReducer:jc,useRef:my,useState:function(){return jc(wn)},useDebugValue:Lc,useDeferredValue:function(t,e){var i=Jt();return Bt===null?Vc(i,t,e):Ey(i,Bt.memoizedState,t,e)},useTransition:function(){var t=jc(wn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:Ll(t),e]},useSyncExternalStore:W0,useId:wy,useHostTransitionStatus:Uc,useFormState:hy,useActionState:hy,useOptimistic:function(t,e){var i=Jt();return Bt!==null?ay(i,Bt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:Dy};Oy.useEffectEvent=yy;function kc(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:v({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Gc={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=He(),o=Jn(l);o.payload=e,i!=null&&(o.callback=i),e=Wn(t,o,l),e!==null&&(we(e,t,l),jl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=He(),o=Jn(l);o.tag=1,o.payload=e,i!=null&&(o.callback=i),e=Wn(t,o,l),e!==null&&(we(e,t,l),jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=He(),l=Jn(i);l.tag=2,e!=null&&(l.callback=e),e=Wn(t,l,i),e!==null&&(we(e,t,i),jl(e,t,i))}};function Ly(t,e,i,l,o,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,m):e.prototype&&e.prototype.isPureReactComponent?!Tl(i,l)||!Tl(o,c):!0}function Vy(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&Gc.enqueueReplaceState(e,e.state,null)}function Ui(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=v({},i));for(var o in t)i[o]===void 0&&(i[o]=t[o])}return i}function Ny(t){Ps(t)}function Uy(t){console.error(t)}function Hy(t){Ps(t)}function hr(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function _y(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yc(t,e,i){return i=Jn(i),i.tag=3,i.payload={element:null},i.callback=function(){hr(t,e)},i}function ky(t){return t=Jn(t),t.tag=3,t}function Gy(t,e,i,l){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){_y(e,i,l)}}var m=i.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){_y(e,i,l),typeof o!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function YA(t,e,i,l,o){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&ba(e,i,o,!0),i=Le.current,i!==null){switch(i.tag){case 31:case 13:return Je===null?Ar():i.alternate===null&&Zt===0&&(Zt=3),i.flags&=-257,i.flags|=65536,i.lanes=o,l===tr?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),mf(t,l,o)),!1;case 22:return i.flags|=65536,l===tr?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),mf(t,l,o)),!1}throw Error(u(435,i.tag))}return mf(t,l,o),Ar(),!1}if(At)return e=Le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==rc&&(t=Error(u(422),{cause:l}),Al(Fe(t,i)))):(l!==rc&&(e=Error(u(423),{cause:l}),Al(Fe(e,i))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Fe(l,i),o=Yc(t.stateNode,l,o),vc(t,o),Zt!==4&&(Zt=2)),!1;var c=Error(u(520),{cause:l});if(c=Fe(c,i),Pl===null?Pl=[c]:Pl.push(c),Zt!==4&&(Zt=2),e===null)return!0;l=Fe(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=o&-o,i.lanes|=t,t=Yc(i.stateNode,l,t),vc(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ai===null||!ai.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=ky(o),Gy(o,t,i,l),vc(i,o),!1}i=i.return}while(i!==null);return!1}var qc=Error(u(461)),ee=!1;function he(t,e,i,l){e.child=t===null?X0(e,null,i,l):Vi(e,t.child,i,l)}function Yy(t,e,i,l,o){i=i.render;var c=e.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return zi(e),l=Mc(t,e,i,m,c,o),x=Ac(),t!==null&&!ee?(Cc(t,e,o),Dn(t,e,o)):(At&&x&&lc(e),e.flags|=1,he(t,e,l,o),e.child)}function qy(t,e,i,l,o){if(t===null){var c=i.type;return typeof c=="function"&&!nc(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,Py(t,e,c,l,o)):(t=Qs(i.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Jc(t,o)){var m=c.memoizedProps;if(i=i.compare,i=i!==null?i:Tl,i(m,l)&&t.ref===e.ref)return Dn(t,e,o)}return e.flags|=1,t=Tn(c,l),t.ref=e.ref,t.return=e,e.child=t}function Py(t,e,i,l,o){if(t!==null){var c=t.memoizedProps;if(Tl(c,l)&&t.ref===e.ref)if(ee=!1,e.pendingProps=l=c,Jc(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Dn(t,e,o)}return Pc(t,e,i,l,o)}function Xy(t,e,i,l){var o=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|i:i,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,e.child=null;return Ky(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ws(e,c!==null?c.cachePool:null),c!==null?Q0(e,c):Sc(),Z0(e);else return l=e.lanes=536870912,Ky(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Ws(e,c.cachePool),Q0(e,c),ti(),e.memoizedState=null):(t!==null&&Ws(e,null),Sc(),ti());return he(t,e,o,i),e.child}function Ul(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ky(t,e,i,l,o){var c=mc();return c=c===null?null:{parent:$t._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Ws(e,null),Sc(),Z0(e),t!==null&&ba(t,e,l,!0),e.childLanes=o,null}function mr(t,e){return e=yr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fy(t,e,i){return Vi(e,t.child,null,i),t=mr(e,e.pendingProps),t.flags|=2,Ve(e),e.memoizedState=null,t}function qA(t,e,i){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(l.mode==="hidden")return t=mr(e,l),e.lanes=536870912,Ul(null,t);if(Tc(e),(t=_t)?(t=lv(t,Ie),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=j0(t),i.return=e,e.child=i,fe=e,_t=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return mr(e,l)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Tc(e),o)if(e.flags&256)e.flags&=-257,e=Fy(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(ee||ba(t,e,i,!1),o=(i&t.childLanes)!==0,ee||o){if(l=Vt,l!==null&&(m=Up(l,i),m!==0&&m!==c.retryLane))throw c.retryLane=m,wi(t,m),we(l,t,m),qc;Ar(),e=Fy(t,e,i)}else t=c.treeContext,_t=We(m.nextSibling),fe=e,At=!0,Fn=null,Ie=!1,t!==null&&O0(e,t),e=mr(e,l),e.flags|=4096;return e}return t=Tn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function pr(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Pc(t,e,i,l,o){return zi(e),i=Mc(t,e,i,l,void 0,o),l=Ac(),t!==null&&!ee?(Cc(t,e,o),Dn(t,e,o)):(At&&l&&lc(e),e.flags|=1,he(t,e,i,o),e.child)}function Qy(t,e,i,l,o,c){return zi(e),e.updateQueue=null,i=J0(e,l,i,o),I0(t),l=Ac(),t!==null&&!ee?(Cc(t,e,c),Dn(t,e,c)):(At&&l&&lc(e),e.flags|=1,he(t,e,i,c),e.child)}function Zy(t,e,i,l,o){if(zi(e),e.stateNode===null){var c=pa,m=i.contextType;typeof m=="object"&&m!==null&&(c=de(m)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},yc(e),m=i.contextType,c.context=typeof m=="object"&&m!==null?de(m):pa,c.state=e.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(kc(e,i,m,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Gc.enqueueReplaceState(c,c.state,null),Bl(e,l,c,o),zl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,E=Ui(i,x);c.props=E;var B=c.context,q=i.contextType;m=pa,typeof q=="object"&&q!==null&&(m=de(q));var X=i.getDerivedStateFromProps;q=typeof X=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||B!==m)&&Vy(e,c,l,m),In=!1;var O=e.memoizedState;c.state=O,Bl(e,l,c,o),zl(),B=e.memoizedState,x||O!==B||In?(typeof X=="function"&&(kc(e,i,X,l),B=e.memoizedState),(E=In||Ly(e,i,E,l,O,B,m))?(q||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=B),c.props=l,c.state=B,c.context=m,l=E):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,gc(t,e),m=e.memoizedProps,q=Ui(i,m),c.props=q,X=e.pendingProps,O=c.context,B=i.contextType,E=pa,typeof B=="object"&&B!==null&&(E=de(B)),x=i.getDerivedStateFromProps,(B=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==X||O!==E)&&Vy(e,c,l,E),In=!1,O=e.memoizedState,c.state=O,Bl(e,l,c,o),zl();var _=e.memoizedState;m!==X||O!==_||In||t!==null&&t.dependencies!==null&&Is(t.dependencies)?(typeof x=="function"&&(kc(e,i,x,l),_=e.memoizedState),(q=In||Ly(e,i,q,l,O,_,E)||t!==null&&t.dependencies!==null&&Is(t.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,_,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,_,E)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=_),c.props=l,c.state=_,c.context=E,l=q):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,pr(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Vi(e,t.child,null,o),e.child=Vi(e,null,i,o)):he(t,e,i,o),e.memoizedState=c.state,t=e.child):t=Dn(t,e,o),t}function Iy(t,e,i,l){return Ri(),e.flags|=256,he(t,e,i,l),e.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(t){return{baseLanes:t,cachePool:_0()}}function Fc(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ue),t}function Jy(t,e,i){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:(It.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(o?$n(e):ti(),(t=_t)?(t=lv(t,Ie),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=j0(t),i.return=e,e.child=i,fe=e,_t=null)):t=null,t===null)throw Qn(e);return jf(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ti(),o=e.mode,x=yr({mode:"hidden",children:x},o),l=Di(l,o,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Kc(i),l.childLanes=Fc(t,m,i),e.memoizedState=Xc,Ul(null,l)):($n(e),Qc(e,x))}var E=t.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(c)e.flags&256?($n(e),e.flags&=-257,e=Zc(t,e,i)):e.memoizedState!==null?(ti(),e.child=t.child,e.flags|=128,e=null):(ti(),x=l.fallback,o=e.mode,l=yr({mode:"visible",children:l.children},o),x=Di(x,o,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Vi(e,t.child,null,i),l=e.child,l.memoizedState=Kc(i),l.childLanes=Fc(t,m,i),e.memoizedState=Xc,e=Ul(null,l));else if($n(e),jf(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var B=m.dgst;m=B,l=Error(u(419)),l.stack="",l.digest=m,Al({value:l,source:null,stack:null}),e=Zc(t,e,i)}else if(ee||ba(t,e,i,!1),m=(i&t.childLanes)!==0,ee||m){if(m=Vt,m!==null&&(l=Up(m,i),l!==0&&l!==E.retryLane))throw E.retryLane=l,wi(t,l),we(m,t,l),qc;Rf(x)||Ar(),e=Zc(t,e,i)}else Rf(x)?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,_t=We(x.nextSibling),fe=e,At=!0,Fn=null,Ie=!1,t!==null&&O0(e,t),e=Qc(e,l.children),e.flags|=4096);return e}return o?(ti(),x=l.fallback,o=e.mode,E=t.child,B=E.sibling,l=Tn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,B!==null?x=Tn(B,x):(x=Di(x,o,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ul(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Kc(i):(o=x.cachePool,o!==null?(E=$t._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=_0(),x={baseLanes:x.baseLanes|i,cachePool:o}),l.memoizedState=x,l.childLanes=Fc(t,m,i),e.memoizedState=Xc,Ul(t.child,l)):($n(e),i=t.child,t=i.sibling,i=Tn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=i,e.memoizedState=null,i)}function Qc(t,e){return e=yr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yr(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function Zc(t,e,i){return Vi(e,t.child,null,i),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wy(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),cc(t.return,e,i)}function Ic(t,e,i,l,o,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:o,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=i,m.tailMode=o,m.treeForkCount=c)}function $y(t,e,i){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var m=It.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,I(It,m),he(t,e,l,i),l=At?Ml:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wy(t,i,e);else if(t.tag===19)Wy(t,i,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(o){case"forwards":for(i=e.child,o=null;i!==null;)t=i.alternate,t!==null&&ar(t)===null&&(o=i),i=i.sibling;i=o,i===null?(o=e.child,e.child=null):(o=i.sibling,i.sibling=null),Ic(e,!1,o,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&ar(t)===null){e.child=o;break}t=o.sibling,o.sibling=i,i=o,o=t}Ic(e,!0,i,null,c,l);break;case"together":Ic(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Dn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ii|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(ba(t,e,i,!1),(i&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,i=Tn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=Tn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Is(t)))}function PA(t,e,i){switch(e.tag){case 3:Ut(e,e.stateNode.containerInfo),Zn(e,$t,t.memoizedState.cache),Ri();break;case 27:case 5:ue(e);break;case 4:Ut(e,e.stateNode.containerInfo);break;case 10:Zn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Tc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($n(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Jy(t,e,i):($n(e),t=Dn(t,e,i),t!==null?t.sibling:null);$n(e);break;case 19:var o=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(ba(t,e,i,!1),l=(i&e.childLanes)!==0),o){if(l)return $y(t,e,i);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(It,It.current),l)break;return null;case 22:return e.lanes=0,Xy(t,e,i,e.pendingProps);case 24:Zn(e,$t,t.memoizedState.cache)}return Dn(t,e,i)}function tg(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Jc(t,i)&&(e.flags&128)===0)return ee=!1,PA(t,e,i);ee=(t.flags&131072)!==0}else ee=!1,At&&(e.flags&1048576)!==0&&B0(e,Ml,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Oi(e.elementType),e.type=t,typeof t=="function")nc(t)?(l=Ui(t,l),e.tag=1,e=Zy(null,e,t,l,i)):(e.tag=0,e=Pc(null,e,t,l,i));else{if(t!=null){var o=t.$$typeof;if(o===Q){e.tag=11,e=Yy(null,e,t,l,i);break t}else if(o===k){e.tag=14,e=qy(null,e,t,l,i);break t}}throw e=lt(t)||t,Error(u(306,e,""))}}return e;case 0:return Pc(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,o=Ui(l,e.pendingProps),Zy(t,e,l,o,i);case 3:t:{if(Ut(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,gc(t,e),Bl(e,l,null,i);var m=e.memoizedState;if(l=m.cache,Zn(e,$t,l),l!==c.cache&&fc(e,[$t],i,!0),zl(),l=m.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Iy(t,e,l,i);break t}else if(l!==o){o=Fe(Error(u(424)),e),Al(o),e=Iy(t,e,l,i);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(_t=We(t.firstChild),fe=e,At=!0,Fn=null,Ie=!0,i=X0(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ri(),l===o){e=Dn(t,e,i);break t}he(t,e,l,i)}e=e.child}return e;case 26:return pr(t,e),t===null?(i=fv(e.type,null,e.pendingProps,null))?e.memoizedState=i:At||(i=e.type,t=e.pendingProps,l=Br(W.current).createElement(i),l[ce]=e,l[xe]=t,me(l,i,t),se(l),e.stateNode=l):e.memoizedState=fv(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ue(e),t===null&&At&&(l=e.stateNode=ov(e.type,e.pendingProps,W.current),fe=e,Ie=!0,o=_t,oi(e.type)?(zf=o,_t=We(l.firstChild)):_t=o),he(t,e,e.pendingProps.children,i),pr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((o=l=_t)&&(l=S5(l,e.type,e.pendingProps,Ie),l!==null?(e.stateNode=l,fe=e,_t=We(l.firstChild),Ie=!1,o=!0):o=!1),o||Qn(e)),ue(e),o=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,l=c.children,Cf(o,c)?l=null:m!==null&&Cf(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=Mc(t,e,VA,null,null,i),Wl._currentValue=o),pr(t,e),he(t,e,l,i),e.child;case 6:return t===null&&At&&((t=i=_t)&&(i=x5(i,e.pendingProps,Ie),i!==null?(e.stateNode=i,fe=e,_t=null,t=!0):t=!1),t||Qn(e)),null;case 13:return Jy(t,e,i);case 4:return Ut(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Vi(e,null,l,i):he(t,e,l,i),e.child;case 11:return Yy(t,e,e.type,e.pendingProps,i);case 7:return he(t,e,e.pendingProps,i),e.child;case 8:return he(t,e,e.pendingProps.children,i),e.child;case 12:return he(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,Zn(e,e.type,l.value),he(t,e,l.children,i),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,zi(e),o=de(o),l=l(o),e.flags|=1,he(t,e,l,i),e.child;case 14:return qy(t,e,e.type,e.pendingProps,i);case 15:return Py(t,e,e.type,e.pendingProps,i);case 19:return $y(t,e,i);case 31:return qA(t,e,i);case 22:return Xy(t,e,i,e.pendingProps);case 24:return zi(e),l=de($t),t===null?(o=mc(),o===null&&(o=Vt,c=dc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),e.memoizedState={parent:l,cache:o},yc(e),Zn(e,$t,o)):((t.lanes&i)!==0&&(gc(t,e),Bl(e,null,null,i),zl()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Zn(e,$t,l)):(l=c.cache,Zn(e,$t,l),l!==o.cache&&fc(e,[$t],i,!0))),he(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Rn(t){t.flags|=4}function Wc(t,e,i,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(wg())t.flags|=8192;else throw Li=tr,pc}else t.flags&=-16777217}function eg(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yv(e))if(wg())t.flags|=8192;else throw Li=tr,pc}function gr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Lp():536870912,t.lanes|=e,za|=e)}function Hl(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function kt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function XA(t,e,i){var l=e.pendingProps;switch(sc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(e),null;case 1:return kt(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),An($t),Rt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(va(e)?Rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,oc())),kt(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Rn(e),c!==null?(kt(e),eg(e,c)):(kt(e),Wc(e,o,null,l,i))):c?c!==t.memoizedState?(Rn(e),kt(e),eg(e,c)):(kt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Rn(e),kt(e),Wc(e,o,t,l,i)),null;case 27:if(cn(e),i=W.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return kt(e),null}t=tt.current,va(e)?L0(e):(t=ov(o,l,i),e.stateNode=t,Rn(e))}return kt(e),null;case 5:if(cn(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return kt(e),null}if(c=tt.current,va(e))L0(e);else{var m=Br(W.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?m.createElement(o,{is:l.is}):m.createElement(o)}}c[ce]=e,c[xe]=l;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(me(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Rn(e)}}return kt(e),Wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=W.current,va(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,o=fe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ce]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Jg(t.nodeValue,i)),t||Qn(e,!0)}else t=Br(t).createTextNode(l),t[ce]=e,e.stateNode=t}return kt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=va(e),i!==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[ce]=e}else Ri(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),t=!1}else i=oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Ve(e),e):(Ve(e),null);if((e.flags&128)!==0)throw Error(u(558))}return kt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=va(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(u(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ce]=e}else Ri(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),o=!1}else o=oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ve(e),e):(Ve(e),null)}return Ve(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),gr(e,e.updateQueue),kt(e),null);case 4:return Rt(),t===null&&xf(e.stateNode.containerInfo),kt(e),null;case 10:return An(e.type),kt(e),null;case 19:if(N(It),l=e.memoizedState,l===null)return kt(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Hl(l,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=ar(t),c!==null){for(e.flags|=128,Hl(l,!1),t=c.updateQueue,e.updateQueue=t,gr(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)R0(i,t),i=i.sibling;return I(It,It.current&1|2),At&&En(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Tr&&(e.flags|=128,o=!0,Hl(l,!1),e.lanes=4194304)}else{if(!o)if(t=ar(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,gr(e,t),Hl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!At)return kt(e),null}else 2*ve()-l.renderingStartTime>Tr&&i!==536870912&&(e.flags|=128,o=!0,Hl(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=ve(),t.sibling=null,i=It.current,I(It,o?i&1|2:i&1),At&&En(e,l.treeForkCount),t):(kt(e),null);case 22:case 23:return Ve(e),xc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(kt(e),e.subtreeFlags&6&&(e.flags|=8192)):kt(e),i=e.updateQueue,i!==null&&gr(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&N(Bi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),An($t),kt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function KA(t,e){switch(sc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return An($t),Rt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return cn(e),null;case 31:if(e.memoizedState!==null){if(Ve(e),e.alternate===null)throw Error(u(340));Ri()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ri()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(It),null;case 4:return Rt(),null;case 10:return An(e.type),null;case 22:case 23:return Ve(e),xc(),t!==null&&N(Bi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return An($t),null;case 25:return null;default:return null}}function ng(t,e){switch(sc(e),e.tag){case 3:An($t),Rt();break;case 26:case 27:case 5:cn(e);break;case 4:Rt();break;case 31:e.memoizedState!==null&&Ve(e);break;case 13:Ve(e);break;case 19:N(It);break;case 10:An(e.type);break;case 22:case 23:Ve(e),xc(),t!==null&&N(Bi);break;case 24:An($t)}}function _l(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var o=l.next;i=o;do{if((i.tag&t)===t){l=void 0;var c=i.create,m=i.inst;l=c(),m.destroy=l}i=i.next}while(i!==o)}}catch(x){zt(e,e.return,x)}}function ei(t,e,i){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=e;var E=i,B=x;try{B()}catch(q){zt(o,E,q)}}}l=l.next}while(l!==c)}}catch(q){zt(e,e.return,q)}}function ig(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{F0(e,i)}catch(l){zt(t,t.return,l)}}}function ag(t,e,i){i.props=Ui(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){zt(t,e,l)}}function kl(t,e){try{var i=t.ref;if(i!==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 i=="function"?t.refCleanup=i(l):i.current=l}}catch(o){zt(t,e,o)}}function mn(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(o){zt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){zt(t,e,o)}else i.current=null}function lg(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(o){zt(t,t.return,o)}}function $c(t,e,i){try{var l=t.stateNode;m5(l,t.type,i,e),l[xe]=e}catch(o){zt(t,t.return,o)}}function sg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function tf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||sg(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&&oi(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 ef(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=Sn));else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(ef(t,e,i),t=t.sibling;t!==null;)ef(t,e,i),t=t.sibling}function vr(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(vr(t,e,i),t=t.sibling;t!==null;)vr(t,e,i),t=t.sibling}function rg(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);me(e,l,i),e[ce]=t,e[xe]=i}catch(c){zt(t,t.return,c)}}var jn=!1,ne=!1,nf=!1,og=typeof WeakSet=="function"?WeakSet:Set,re=null;function FA(t,e){if(t=t.containerInfo,Mf=_r,t=S0(t),Zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var m=0,x=-1,E=-1,B=0,q=0,X=t,O=null;e:for(;;){for(var _;X!==i||o!==0&&X.nodeType!==3||(x=m+o),X!==c||l!==0&&X.nodeType!==3||(E=m+l),X.nodeType===3&&(m+=X.nodeValue.length),(_=X.firstChild)!==null;)O=X,X=_;for(;;){if(X===t)break e;if(O===i&&++B===o&&(x=m),O===c&&++q===l&&(E=m),(_=X.nextSibling)!==null)break;X=O,O=X.parentNode}X=_}i=x===-1||E===-1?null:{start:x,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(Af={focusedElem:t,selectionRange:i},_r=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,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(i=0;i<t.length;i++)o=t[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,o=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var it=Ui(i.type,o);t=l.getSnapshotBeforeUpdate(it,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(ct){zt(i,i.return,ct)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Df(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Df(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,re=t;break}re=e.return}}function ug(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Bn(t,i),l&4&&_l(5,i);break;case 1:if(Bn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(m){zt(i,i.return,m)}else{var o=Ui(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){zt(i,i.return,m)}}l&64&&ig(i),l&512&&kl(i,i.return);break;case 3:if(Bn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{F0(t,e)}catch(m){zt(i,i.return,m)}}break;case 27:e===null&&l&4&&rg(i);case 26:case 5:Bn(t,i),e===null&&l&4&&lg(i),l&512&&kl(i,i.return);break;case 12:Bn(t,i);break;case 31:Bn(t,i),l&4&&dg(t,i);break;case 13:Bn(t,i),l&4&&hg(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=n5.bind(null,i),T5(t,i))));break;case 22:if(l=i.memoizedState!==null||jn,!l){e=e!==null&&e.memoizedState!==null||ne,o=jn;var c=ne;jn=l,(ne=e)&&!c?On(t,i,(i.subtreeFlags&8772)!==0):Bn(t,i),jn=o,ne=c}break;case 30:break;default:Bn(t,i)}}function cg(t){var e=t.alternate;e!==null&&(t.alternate=null,cg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Bu(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 qt=null,Ee=!1;function zn(t,e,i){for(i=i.child;i!==null;)fg(t,e,i),i=i.sibling}function fg(t,e,i){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(cl,i)}catch{}switch(i.tag){case 26:ne||mn(i,e),zn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ne||mn(i,e);var l=qt,o=Ee;oi(i.type)&&(qt=i.stateNode,Ee=!1),zn(t,e,i),Zl(i.stateNode),qt=l,Ee=o;break;case 5:ne||mn(i,e);case 6:if(l=qt,o=Ee,qt=null,zn(t,e,i),qt=l,Ee=o,qt!==null)if(Ee)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(i.stateNode)}catch(c){zt(i,e,c)}else try{qt.removeChild(i.stateNode)}catch(c){zt(i,e,c)}break;case 18:qt!==null&&(Ee?(t=qt,iv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),_a(t)):iv(qt,i.stateNode));break;case 4:l=qt,o=Ee,qt=i.stateNode.containerInfo,Ee=!0,zn(t,e,i),qt=l,Ee=o;break;case 0:case 11:case 14:case 15:ei(2,i,e),ne||ei(4,i,e),zn(t,e,i);break;case 1:ne||(mn(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&ag(i,e,l)),zn(t,e,i);break;case 21:zn(t,e,i);break;case 22:ne=(l=ne)||i.memoizedState!==null,zn(t,e,i),ne=l;break;default:zn(t,e,i)}}function dg(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_a(t)}catch(i){zt(e,e.return,i)}}}function hg(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_a(t)}catch(i){zt(e,e.return,i)}}function QA(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new og),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new og),e;default:throw Error(u(435,t.tag))}}function br(t,e){var i=QA(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var o=i5.bind(null,t,l);l.then(o,o)}})}function Me(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(oi(x.type)){qt=x.stateNode,Ee=!1;break t}break;case 5:qt=x.stateNode,Ee=!1;break t;case 3:case 4:qt=x.stateNode.containerInfo,Ee=!0;break t}x=x.return}if(qt===null)throw Error(u(160));fg(c,m,o),qt=null,Ee=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)mg(e,t),e=e.sibling}var ln=null;function mg(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),Ae(t),l&4&&(ei(3,t,t.return),_l(3,t),ei(5,t,t.return));break;case 1:Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),l&64&&jn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var o=ln;if(Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[hl]||c[ce]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),me(c,l,i),c[ce]=t,se(c),l=c;break t;case"link":var m=mv("link","href",o).get(l+(i.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[x],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){m.splice(x,1);break e}}c=o.createElement(l),me(c,l,i),o.head.appendChild(c);break;case"meta":if(m=mv("meta","content",o).get(l+(i.content||""))){for(x=0;x<m.length;x++)if(c=m[x],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){m.splice(x,1);break e}}c=o.createElement(l),me(c,l,i),o.head.appendChild(c);break;default:throw Error(u(468,l))}c[ce]=t,se(c),l=c}t.stateNode=l}else pv(o,t.type,t.stateNode);else t.stateNode=hv(o,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?pv(o,t.type,t.stateNode):hv(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&$c(t,t.memoizedProps,i.memoizedProps)}break;case 27:Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),i!==null&&l&4&&$c(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),t.flags&32){o=t.stateNode;try{oa(o,"")}catch(it){zt(t,t.return,it)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,$c(t,o,i!==null?i.memoizedProps:o)),l&1024&&(nf=!0);break;case 6:if(Me(e,t),Ae(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(it){zt(t,t.return,it)}}break;case 3:if(Vr=null,o=ln,ln=Or(e.containerInfo),Me(e,t),ln=o,Ae(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{_a(e.containerInfo)}catch(it){zt(t,t.return,it)}nf&&(nf=!1,pg(t));break;case 4:l=ln,ln=Or(t.stateNode.containerInfo),Me(e,t),Ae(t),ln=l;break;case 12:Me(e,t),Ae(t);break;case 31:Me(e,t),Ae(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 13:Me(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xr=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 22:o=t.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,B=jn,q=ne;if(jn=B||o,ne=q||E,Me(e,t),ne=q,jn=B,Ae(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(i===null||E||jn||ne||Hi(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){E=i=e;try{if(c=E.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var X=E.memoizedProps.style,O=X!=null&&X.hasOwnProperty("display")?X.display:null;x.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(it){zt(E,E.return,it)}}}else if(e.tag===6){if(i===null){E=e;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(it){zt(E,E.return,it)}}}else if(e.tag===18){if(i===null){E=e;try{var _=E.stateNode;o?av(_,!0):av(E.stateNode,!1)}catch(it){zt(E,E.return,it)}}}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;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,br(t,i))));break;case 19:Me(e,t),Ae(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 30:break;case 21:break;default:Me(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(sg(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,c=tf(t);vr(t,c,o);break;case 5:var m=i.stateNode;i.flags&32&&(oa(m,""),i.flags&=-33);var x=tf(t);vr(t,x,m);break;case 3:case 4:var E=i.stateNode.containerInfo,B=tf(t);ef(t,B,E);break;default:throw Error(u(161))}}catch(q){zt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;pg(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ug(t,e.alternate,e),e=e.sibling}function Hi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ei(4,e,e.return),Hi(e);break;case 1:mn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&ag(e,e.return,i),Hi(e);break;case 27:Zl(e.stateNode);case 26:case 5:mn(e,e.return),Hi(e);break;case 22:e.memoizedState===null&&Hi(e);break;case 30:Hi(e);break;default:Hi(e)}t=t.sibling}}function On(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:On(o,c,i),_l(4,c);break;case 1:if(On(o,c,i),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){zt(l,l.return,B)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)K0(E[o],x)}catch(B){zt(l,l.return,B)}}i&&m&64&&ig(c),kl(c,c.return);break;case 27:rg(c);case 26:case 5:On(o,c,i),i&&l===null&&m&4&&lg(c),kl(c,c.return);break;case 12:On(o,c,i);break;case 31:On(o,c,i),i&&m&4&&dg(o,c);break;case 13:On(o,c,i),i&&m&4&&hg(o,c);break;case 22:c.memoizedState===null&&On(o,c,i),kl(c,c.return);break;case 30:break;default:On(o,c,i)}e=e.sibling}}function af(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Cl(i))}function lf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t))}function sn(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yg(t,e,i,l),e=e.sibling}function yg(t,e,i,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:sn(t,e,i,l),o&2048&&_l(9,e);break;case 1:sn(t,e,i,l);break;case 3:sn(t,e,i,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t)));break;case 12:if(o&2048){sn(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(E){zt(e,e.return,E)}}else sn(t,e,i,l);break;case 31:sn(t,e,i,l);break;case 13:sn(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?sn(t,e,i,l):Gl(t,e):c._visibility&2?sn(t,e,i,l):(c._visibility|=2,Da(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&af(m,e);break;case 24:sn(t,e,i,l),o&2048&&lf(e.alternate,e);break;default:sn(t,e,i,l)}}function Da(t,e,i,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,x=i,E=l,B=m.flags;switch(m.tag){case 0:case 11:case 15:Da(c,m,x,E,o),_l(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?Da(c,m,x,E,o):Gl(c,m):(q._visibility|=2,Da(c,m,x,E,o)),o&&B&2048&&af(m.alternate,m);break;case 24:Da(c,m,x,E,o),o&&B&2048&&lf(m.alternate,m);break;default:Da(c,m,x,E,o)}e=e.sibling}}function Gl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,o=l.flags;switch(l.tag){case 22:Gl(i,l),o&2048&&af(l.alternate,l);break;case 24:Gl(i,l),o&2048&&lf(l.alternate,l);break;default:Gl(i,l)}e=e.sibling}}var Yl=8192;function Ra(t,e,i){if(t.subtreeFlags&Yl)for(t=t.child;t!==null;)gg(t,e,i),t=t.sibling}function gg(t,e,i){switch(t.tag){case 26:Ra(t,e,i),t.flags&Yl&&t.memoizedState!==null&&L5(i,ln,t.memoizedState,t.memoizedProps);break;case 5:Ra(t,e,i);break;case 3:case 4:var l=ln;ln=Or(t.stateNode.containerInfo),Ra(t,e,i),ln=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Yl,Yl=16777216,Ra(t,e,i),Yl=l):Ra(t,e,i));break;default:Ra(t,e,i)}}function vg(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 ql(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];re=l,Sg(l,t)}vg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bg(t),t=t.sibling}function bg(t){switch(t.tag){case 0:case 11:case 15:ql(t),t.flags&2048&&ei(9,t,t.return);break;case 3:ql(t);break;case 12:ql(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Sr(t)):ql(t);break;default:ql(t)}}function Sr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];re=l,Sg(l,t)}vg(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ei(8,e,e.return),Sr(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,Sr(e));break;default:Sr(e)}t=t.sibling}}function Sg(t,e){for(;re!==null;){var i=re;switch(i.tag){case 0:case 11:case 15:ei(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,re=l;else t:for(i=t;re!==null;){l=re;var o=l.sibling,c=l.return;if(cg(l),l===i){re=null;break t}if(o!==null){o.return=c,re=o;break t}re=c}}}var ZA={getCacheForType:function(t){var e=de($t),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return de($t).controller.signal}},IA=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Vt=null,xt=null,Et=0,jt=0,Ne=null,ni=!1,ja=!1,sf=!1,Ln=0,Zt=0,ii=0,_i=0,rf=0,Ue=0,za=0,Pl=null,Ce=null,of=!1,xr=0,xg=0,Tr=1/0,Er=null,ai=null,le=0,li=null,Ba=null,Vn=0,uf=0,cf=null,Tg=null,Xl=0,ff=null;function He(){return(Dt&2)!==0&&Et!==0?Et&-Et:D.T!==null?gf():Hp()}function Eg(){if(Ue===0)if((Et&536870912)===0||At){var t=zs;zs<<=1,(zs&3932160)===0&&(zs=262144),Ue=t}else Ue=536870912;return t=Le.current,t!==null&&(t.flags|=32),Ue}function we(t,e,i){(t===Vt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(Oa(t,0),si(t,Et,Ue,!1)),dl(t,i),((Dt&2)===0||t!==Vt)&&(t===Vt&&((Dt&2)===0&&(_i|=i),Zt===4&&si(t,Et,Ue,!1)),pn(t))}function Mg(t,e,i){if((Dt&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||fl(t,e),o=l?$A(t,e):hf(t,e,!0),c=l;do{if(o===0){ja&&!l&&si(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!JA(i)){o=hf(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;o=Pl;var E=x.current.memoizedState.isDehydrated;if(E&&(Oa(x,m).flags|=256),m=hf(x,m,!1),m!==2){if(sf&&!E){x.errorRecoveryDisabledLanes|=c,_i|=c,o=4;break t}c=Ce,Ce=o,c!==null&&(Ce===null?Ce=c:Ce.push.apply(Ce,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Oa(t,0),si(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:si(l,e,Ue,!ni);break t;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=xr+300-ve(),10<o)){if(si(l,e,Ue,!ni),Os(l,0,!0)!==0)break t;Vn=e,l.timeoutHandle=ev(Ag.bind(null,l,i,Ce,Er,of,e,Ue,_i,za,ni,c,"Throttled",-0,0),o);break t}Ag(l,i,Ce,Er,of,e,Ue,_i,za,ni,c,null,-0,0)}}break}while(!0);pn(t)}function Ag(t,e,i,l,o,c,m,x,E,B,q,X,O,_){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},gg(e,c,X);var it=(c&62914560)===c?xr-ve():(c&4194048)===c?xg-ve():0;if(it=V5(X,it),it!==null){Vn=c,t.cancelPendingCommit=it(Og.bind(null,t,e,c,i,l,o,m,x,E,q,X,null,O,_)),si(t,c,m,!B);return}}Og(t,e,c,i,l,o,m,x,E)}function JA(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var o=i[l],c=o.getSnapshot;o=o.value;try{if(!Be(c(),o))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;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 si(t,e,i,l){e&=~rf,e&=~_i,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-ze(o),m=1<<c;l[c]=-1,o&=~m}i!==0&&Vp(t,i,e)}function Mr(){return(Dt&6)===0?(Kl(0),!1):!0}function df(){if(xt!==null){if(jt===0)var t=xt.return;else t=xt,Mn=ji=null,wc(t),Ea=null,Dl=0,t=xt;for(;t!==null;)ng(t.alternate,t),t=t.return;xt=null}}function Oa(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,g5(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Vn=0,df(),Vt=t,xt=i=Tn(t.current,null),Et=e,jt=0,Ne=null,ni=!1,ja=fl(t,e),sf=!1,za=Ue=rf=_i=ii=Zt=0,Ce=Pl=null,of=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-ze(l),c=1<<o;e|=t[o],l&=~c}return Ln=e,Xs(),i}function Cg(t,e){vt=null,D.H=Nl,e===Ta||e===$s?(e=Y0(),jt=3):e===pc?(e=Y0(),jt=4):jt=e===qc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ne=e,xt===null&&(Zt=1,hr(t,Fe(e,t.current)))}function wg(){var t=Le.current;return t===null?!0:(Et&4194048)===Et?Je===null:(Et&62914560)===Et||(Et&536870912)!==0?t===Je:!1}function Dg(){var t=D.H;return D.H=Nl,t===null?Nl:t}function Rg(){var t=D.A;return D.A=ZA,t}function Ar(){Zt=4,ni||(Et&4194048)!==Et&&Le.current!==null||(ja=!0),(ii&134217727)===0&&(_i&134217727)===0||Vt===null||si(Vt,Et,Ue,!1)}function hf(t,e,i){var l=Dt;Dt|=2;var o=Dg(),c=Rg();(Vt!==t||Et!==e)&&(Er=null,Oa(t,e)),e=!1;var m=Zt;t:do try{if(jt!==0&&xt!==null){var x=xt,E=Ne;switch(jt){case 8:df(),m=6;break t;case 3:case 2:case 9:case 6:Le.current===null&&(e=!0);var B=jt;if(jt=0,Ne=null,La(t,x,E,B),i&&ja){m=0;break t}break;default:B=jt,jt=0,Ne=null,La(t,x,E,B)}}WA(),m=Zt;break}catch(q){Cg(t,q)}while(!0);return e&&t.shellSuspendCounter++,Mn=ji=null,Dt=l,D.H=o,D.A=c,xt===null&&(Vt=null,Et=0,Xs()),m}function WA(){for(;xt!==null;)jg(xt)}function $A(t,e){var i=Dt;Dt|=2;var l=Dg(),o=Rg();Vt!==t||Et!==e?(Er=null,Tr=ve()+500,Oa(t,e)):ja=fl(t,e);t:do try{if(jt!==0&&xt!==null){e=xt;var c=Ne;e:switch(jt){case 1:jt=0,Ne=null,La(t,e,c,1);break;case 2:case 9:if(k0(c)){jt=0,Ne=null,zg(e);break}e=function(){jt!==2&&jt!==9||Vt!==t||(jt=7),pn(t)},c.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:k0(c)?(jt=0,Ne=null,zg(e)):(jt=0,Ne=null,La(t,e,c,7));break;case 5:var m=null;switch(xt.tag){case 26:m=xt.memoizedState;case 5:case 27:var x=xt;if(m?yv(m):x.stateNode.complete){jt=0,Ne=null;var E=x.sibling;if(E!==null)xt=E;else{var B=x.return;B!==null?(xt=B,Cr(B)):xt=null}break e}}jt=0,Ne=null,La(t,e,c,5);break;case 6:jt=0,Ne=null,La(t,e,c,6);break;case 8:df(),Zt=6;break t;default:throw Error(u(462))}}t5();break}catch(q){Cg(t,q)}while(!0);return Mn=ji=null,D.H=l,D.A=o,Dt=i,xt!==null?0:(Vt=null,Et=0,Xs(),Zt)}function t5(){for(;xt!==null&&!Cs();)jg(xt)}function jg(t){var e=tg(t.alternate,t,Ln);t.memoizedProps=t.pendingProps,e===null?Cr(t):xt=e}function zg(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Qy(i,e,e.pendingProps,e.type,void 0,Et);break;case 11:e=Qy(i,e,e.pendingProps,e.type.render,e.ref,Et);break;case 5:wc(e);default:ng(i,e),e=xt=R0(e,Ln),e=tg(i,e,Ln)}t.memoizedProps=t.pendingProps,e===null?Cr(t):xt=e}function La(t,e,i,l){Mn=ji=null,wc(e),Ea=null,Dl=0;var o=e.return;try{if(YA(t,o,e,i,Et)){Zt=1,hr(t,Fe(i,t.current)),xt=null;return}}catch(c){if(o!==null)throw xt=o,c;Zt=1,hr(t,Fe(i,t.current)),xt=null;return}e.flags&32768?(At||l===1?t=!0:ja||(Et&536870912)!==0?t=!1:(ni=t=!0,(l===2||l===9||l===3||l===6)&&(l=Le.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bg(e,t)):Cr(e)}function Cr(t){var e=t;do{if((e.flags&32768)!==0){Bg(e,ni);return}t=e.return;var i=XA(e.alternate,e,Ln);if(i!==null){xt=i;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Zt===0&&(Zt=5)}function Bg(t,e){do{var i=KA(t.alternate,t);if(i!==null){i.flags&=32767,xt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=i}while(t!==null);Zt=6,xt=null}function Og(t,e,i,l,o,c,m,x,E){t.cancelPendingCommit=null;do wr();while(le!==0);if((Dt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=tc,OM(t,i,c,m,x,E),t===Vt&&(xt=Vt=null,Et=0),Ba=e,li=t,Vn=i,uf=c,cf=o,Tg=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,a5(Rs,function(){return Hg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,o=G.p,G.p=2,m=Dt,Dt|=4;try{FA(t,e,i)}finally{Dt=m,G.p=o,D.T=l}}le=1,Lg(),Vg(),Ng()}}function Lg(){if(le===1){le=0;var t=li,e=Ba,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var l=G.p;G.p=2;var o=Dt;Dt|=4;try{mg(e,t);var c=Af,m=S0(t.containerInfo),x=c.focusedElem,E=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&b0(x.ownerDocument.documentElement,x)){if(E!==null&&Zu(x)){var B=E.start,q=E.end;if(q===void 0&&(q=B),"selectionStart"in x)x.selectionStart=B,x.selectionEnd=Math.min(q,x.value.length);else{var X=x.ownerDocument||document,O=X&&X.defaultView||window;if(O.getSelection){var _=O.getSelection(),it=x.textContent.length,ct=Math.min(E.start,it),Lt=E.end===void 0?ct:Math.min(E.end,it);!_.extend&&ct>Lt&&(m=Lt,Lt=ct,ct=m);var R=v0(x,ct),w=v0(x,Lt);if(R&&w&&(_.rangeCount!==1||_.anchorNode!==R.node||_.anchorOffset!==R.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var z=X.createRange();z.setStart(R.node,R.offset),_.removeAllRanges(),ct>Lt?(_.addRange(z),_.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),_.addRange(z))}}}}for(X=[],_=x;_=_.parentNode;)_.nodeType===1&&X.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var P=X[x];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}_r=!!Mf,Af=Mf=null}finally{Dt=o,G.p=l,D.T=i}}t.current=e,le=2}}function Vg(){if(le===2){le=0;var t=li,e=Ba,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var l=G.p;G.p=2;var o=Dt;Dt|=4;try{ug(t,e.alternate,e)}finally{Dt=o,G.p=l,D.T=i}}le=3}}function Ng(){if(le===4||le===3){le=0,ws();var t=li,e=Ba,i=Vn,l=Tg;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,Ba=li=null,Ug(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(ai=null),ju(i),e=e.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=D.T,o=G.p,G.p=2,D.T=null;try{for(var c=t.onRecoverableError,m=0;m<l.length;m++){var x=l[m];c(x.value,{componentStack:x.stack})}}finally{D.T=e,G.p=o}}(Vn&3)!==0&&wr(),pn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===ff?Xl++:(Xl=0,ff=t):Xl=0,Kl(0)}}function Ug(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Cl(e)))}function wr(){return Lg(),Vg(),Ng(),Hg()}function Hg(){if(le!==5)return!1;var t=li,e=uf;uf=0;var i=ju(Vn),l=D.T,o=G.p;try{G.p=32>i?32:i,D.T=null,i=cf,cf=null;var c=li,m=Vn;if(le=0,Ba=li=null,Vn=0,(Dt&6)!==0)throw Error(u(331));var x=Dt;if(Dt|=4,bg(c.current),yg(c,c.current,m,i),Dt=x,Kl(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(cl,c)}catch{}return!0}finally{G.p=o,D.T=l,Ug(t,e)}}function _g(t,e,i){e=Fe(i,e),e=Yc(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(dl(t,2),pn(t))}function zt(t,e,i){if(t.tag===3)_g(t,t,i);else for(;e!==null;){if(e.tag===3){_g(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ai===null||!ai.has(l))){t=Fe(i,t),i=ky(2),l=Wn(e,i,2),l!==null&&(Gy(i,l,e,t),dl(l,2),pn(l));break}}e=e.return}}function mf(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new IA;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(i)||(sf=!0,o.add(i),t=e5.bind(null,t,e,i),e.then(t,t))}function e5(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Vt===t&&(Et&i)===i&&(Zt===4||Zt===3&&(Et&62914560)===Et&&300>ve()-xr?(Dt&2)===0&&Oa(t,0):rf|=i,za===Et&&(za=0)),pn(t)}function kg(t,e){e===0&&(e=Lp()),t=wi(t,e),t!==null&&(dl(t,e),pn(t))}function n5(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),kg(t,i)}function i5(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(i=o.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),kg(t,i)}function a5(t,e){return ea(t,e)}var Dr=null,Va=null,pf=!1,Rr=!1,yf=!1,ri=0;function pn(t){t!==Va&&t.next===null&&(Va===null?Dr=Va=t:Va=Va.next=t),Rr=!0,pf||(pf=!0,s5())}function Kl(t,e){if(!yf&&Rr){yf=!0;do for(var i=!1,l=Dr;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var m=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-ze(42|t)+1)-1,c&=o&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Pg(l,c))}else c=Et,c=Os(l,l===Vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||fl(l,c)||(i=!0,Pg(l,c));l=l.next}while(i);yf=!1}}function l5(){Gg()}function Gg(){Rr=pf=!1;var t=0;ri!==0&&y5()&&(t=ri);for(var e=ve(),i=null,l=Dr;l!==null;){var o=l.next,c=Yg(l,e);c===0?(l.next=null,i===null?Dr=o:i.next=o,o===null&&(Va=i)):(i=l,(t!==0||(c&3)!==0)&&(Rr=!0)),l=o}le!==0&&le!==5||Kl(t),ri!==0&&(ri=0)}function Yg(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-ze(c),x=1<<m,E=o[m];E===-1?((x&i)===0||(x&l)!==0)&&(o[m]=BM(x,e)):E<=e&&(t.expiredLanes|=x),c&=~x}if(e=Vt,i=Et,i=Os(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&xi(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||fl(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&xi(l),ju(i)){case 2:case 8:i=Bp;break;case 32:i=Rs;break;case 268435456:i=Op;break;default:i=Rs}return l=qg.bind(null,t),i=ea(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&xi(l),t.callbackPriority=2,t.callbackNode=null,2}function qg(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wr()&&t.callbackNode!==i)return null;var l=Et;return l=Os(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Mg(t,l,e),Yg(t,ve()),t.callbackNode!=null&&t.callbackNode===i?qg.bind(null,t):null)}function Pg(t,e){if(wr())return null;Mg(t,e,!0)}function s5(){v5(function(){(Dt&6)!==0?ea(Ds,l5):Gg()})}function gf(){if(ri===0){var t=Sa;t===0&&(t=js,js<<=1,(js&261888)===0&&(js=256)),ri=t}return ri}function Xg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Us(""+t)}function Kg(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function r5(t,e,i,l,o){if(e==="submit"&&i&&i.stateNode===o){var c=Xg((o[xe]||null).action),m=l.submitter;m&&(e=(e=m[xe]||null)?Xg(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var x=new Gs("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ri!==0){var E=m?Kg(o,m):new FormData(o);Nc(i,{pending:!0,data:E,method:o.method,action:c},null,E)}}else typeof c=="function"&&(x.preventDefault(),E=m?Kg(o,m):new FormData(o),Nc(i,{pending:!0,data:E,method:o.method,action:c},c,E))},currentTarget:o}]})}}for(var vf=0;vf<$u.length;vf++){var bf=$u[vf],o5=bf.toLowerCase(),u5=bf[0].toUpperCase()+bf.slice(1);an(o5,"on"+u5)}an(E0,"onAnimationEnd"),an(M0,"onAnimationIteration"),an(A0,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(AA,"onTransitionRun"),an(CA,"onTransitionStart"),an(wA,"onTransitionCancel"),an(C0,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fl="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(" "),c5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fl));function Fg(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,B=x.currentTarget;if(x=x.listener,E!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=B;try{c(o)}catch(q){Ps(q)}o.currentTarget=null,c=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,B=x.currentTarget,x=x.listener,E!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=B;try{c(o)}catch(q){Ps(q)}o.currentTarget=null,c=E}}}}function Tt(t,e){var i=e[zu];i===void 0&&(i=e[zu]=new Set);var l=t+"__bubble";i.has(l)||(Qg(e,t,2,!1),i.add(l))}function Sf(t,e,i){var l=0;e&&(l|=4),Qg(i,t,l,e)}var jr="_reactListening"+Math.random().toString(36).slice(2);function xf(t){if(!t[jr]){t[jr]=!0,Gp.forEach(function(i){i!=="selectionchange"&&(c5.has(i)||Sf(i,!1,t),Sf(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jr]||(e[jr]=!0,Sf("selectionchange",!1,e))}}function Qg(t,e,i,l){switch(Ev(e)){case 2:var o=H5;break;case 8:o=_5;break;default:o=Nf}i=o.bind(null,e,i,t),o=void 0,!ku||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,i,{capture:!0,passive:o}):t.addEventListener(e,i,!0):o!==void 0?t.addEventListener(e,i,{passive:o}):t.addEventListener(e,i,!1)}function Tf(t,e,i,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===o)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=ia(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=c=m;continue t}x=x.parentNode}}l=l.return}$p(function(){var B=c,q=Hu(i),X=[];t:{var O=w0.get(t);if(O!==void 0){var _=Gs,it=t;switch(t){case"keypress":if(_s(i)===0)break t;case"keydown":case"keyup":_=iA;break;case"focusin":it="focus",_=Pu;break;case"focusout":it="blur",_=Pu;break;case"beforeblur":case"afterblur":_=Pu;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=n0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=XM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=sA;break;case E0:case M0:case A0:_=QM;break;case C0:_=oA;break;case"scroll":case"scrollend":_=qM;break;case"wheel":_=cA;break;case"copy":case"cut":case"paste":_=IM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=a0;break;case"toggle":case"beforetoggle":_=dA}var ct=(e&4)!==0,Lt=!ct&&(t==="scroll"||t==="scrollend"),R=ct?O!==null?O+"Capture":null:O;ct=[];for(var w=B,z;w!==null;){var P=w;if(z=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||z===null||R===null||(P=pl(w,R),P!=null&&ct.push(Ql(w,P,z))),Lt)break;w=w.return}0<ct.length&&(O=new _(O,it,null,i,q),X.push({event:O,listeners:ct}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",O&&i!==Uu&&(it=i.relatedTarget||i.fromElement)&&(ia(it)||it[na]))break t;if((_||O)&&(O=q.window===q?q:(O=q.ownerDocument)?O.defaultView||O.parentWindow:window,_?(it=i.relatedTarget||i.toElement,_=B,it=it?ia(it):null,it!==null&&(Lt=d(it),ct=it.tag,it!==Lt||ct!==5&&ct!==27&&ct!==6)&&(it=null)):(_=null,it=B),_!==it)){if(ct=n0,P="onMouseLeave",R="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(ct=a0,P="onPointerLeave",R="onPointerEnter",w="pointer"),Lt=_==null?O:ml(_),z=it==null?O:ml(it),O=new ct(P,w+"leave",_,i,q),O.target=Lt,O.relatedTarget=z,P=null,ia(q)===B&&(ct=new ct(R,w+"enter",it,i,q),ct.target=z,ct.relatedTarget=Lt,P=ct),Lt=P,_&&it)e:{for(ct=f5,R=_,w=it,z=0,P=R;P;P=ct(P))z++;P=0;for(var ot=w;ot;ot=ct(ot))P++;for(;0<z-P;)R=ct(R),z--;for(;0<P-z;)w=ct(w),P--;for(;z--;){if(R===w||w!==null&&R===w.alternate){ct=R;break e}R=ct(R),w=ct(w)}ct=null}else ct=null;_!==null&&Zg(X,O,_,ct,!1),it!==null&&Lt!==null&&Zg(X,Lt,it,ct,!0)}}t:{if(O=B?ml(B):window,_=O.nodeName&&O.nodeName.toLowerCase(),_==="select"||_==="input"&&O.type==="file")var Ct=d0;else if(c0(O))if(h0)Ct=TA;else{Ct=SA;var rt=bA}else _=O.nodeName,!_||_.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?B&&Nu(B.elementType)&&(Ct=d0):Ct=xA;if(Ct&&(Ct=Ct(t,B))){f0(X,Ct,i,q);break t}rt&&rt(t,O,B),t==="focusout"&&B&&O.type==="number"&&B.memoizedProps.value!=null&&Vu(O,"number",O.value)}switch(rt=B?ml(B):window,t){case"focusin":(c0(rt)||rt.contentEditable==="true")&&(da=rt,Iu=B,El=null);break;case"focusout":El=Iu=da=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,x0(X,i,q);break;case"selectionchange":if(MA)break;case"keydown":case"keyup":x0(X,i,q)}var St;if(Ku)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else fa?o0(t,i)&&(Mt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Mt="onCompositionStart");Mt&&(l0&&i.locale!=="ko"&&(fa||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&fa&&(St=t0()):(Xn=q,Gu="value"in Xn?Xn.value:Xn.textContent,fa=!0)),rt=zr(B,Mt),0<rt.length&&(Mt=new i0(Mt,t,null,i,q),X.push({event:Mt,listeners:rt}),St?Mt.data=St:(St=u0(i),St!==null&&(Mt.data=St)))),(St=mA?pA(t,i):yA(t,i))&&(Mt=zr(B,"onBeforeInput"),0<Mt.length&&(rt=new i0("onBeforeInput","beforeinput",null,i,q),X.push({event:rt,listeners:Mt}),rt.data=St)),r5(X,t,B,i,q)}Fg(X,e)})}function Ql(t,e,i){return{instance:t,listener:e,currentTarget:i}}function zr(t,e){for(var i=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=pl(t,i),o!=null&&l.unshift(Ql(t,o,c)),o=pl(t,e),o!=null&&l.push(Ql(t,o,c))),t.tag===3)return l;t=t.return}return[]}function f5(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Zg(t,e,i,l,o){for(var c=e._reactName,m=[];i!==null&&i!==l;){var x=i,E=x.alternate,B=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||B===null||(E=B,o?(B=pl(i,c),B!=null&&m.unshift(Ql(i,B,E))):o||(B=pl(i,c),B!=null&&m.push(Ql(i,B,E)))),i=i.return}m.length!==0&&t.push({event:e,listeners:m})}var d5=/\r\n?/g,h5=/\u0000|\uFFFD/g;function Ig(t){return(typeof t=="string"?t:""+t).replace(d5,`
|
|
9
|
+
`).replace(h5,"")}function Jg(t,e){return e=Ig(e),Ig(t)===e}function Ot(t,e,i,l,o,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||oa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&oa(t,""+l);break;case"className":Vs(t,"class",l);break;case"tabIndex":Vs(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(t,i,l);break;case"style":Jp(t,l,c);break;case"data":if(e!=="object"){Vs(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Us(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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"&&(i==="formAction"?(e!=="input"&&Ot(t,e,"name",o.name,o,null),Ot(t,e,"formEncType",o.formEncType,o,null),Ot(t,e,"formMethod",o.formMethod,o,null),Ot(t,e,"formTarget",o.formTarget,o,null)):(Ot(t,e,"encType",o.encType,o,null),Ot(t,e,"method",o.method,o,null),Ot(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Us(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Sn);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}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}i=Us(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+l):t.removeAttribute(i);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(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),Ls(t,"popover",l);break;case"xlinkActuate":bn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":bn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":bn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":bn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":bn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":bn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":bn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":bn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":bn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ls(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=GM.get(i)||i,Ls(t,i,l))}}function Ef(t,e,i,l,o,c){switch(i){case"style":Jp(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}break;case"children":typeof l=="string"?oa(t,l):(typeof l=="number"||typeof l=="bigint")&&oa(t,""+l);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yp.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),e=i.slice(2,o?i.length-7:void 0),c=t[xe]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,o);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Ls(t,i,l)}}}function me(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var l=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var m=i[c];if(m!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,c,m,i,null)}}o&&Ot(t,e,"srcSet",i.srcSet,i,null),l&&Ot(t,e,"src",i.src,i,null);return;case"input":Tt("invalid",t);var x=c=m=o=null,E=null,B=null;for(l in i)if(i.hasOwnProperty(l)){var q=i[l];if(q!=null)switch(l){case"name":o=q;break;case"type":m=q;break;case"checked":E=q;break;case"defaultChecked":B=q;break;case"value":c=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,e));break;default:Ot(t,e,l,q,i,null)}}Fp(t,c,x,E,B,m,o,!1);return;case"select":Tt("invalid",t),l=m=c=null;for(o in i)if(i.hasOwnProperty(o)&&(x=i[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:Ot(t,e,o,x,i,null)}e=c,i=m,t.multiple=!!l,e!=null?ra(t,!!l,e,!1):i!=null&&ra(t,!!l,i,!0);return;case"textarea":Tt("invalid",t),c=o=l=null;for(m in i)if(i.hasOwnProperty(m)&&(x=i[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Ot(t,e,m,x,i,null)}Zp(t,l,o,c);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(l=i[E],l!=null))switch(E){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,E,l,i,null)}return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(l=0;l<Fl.length;l++)Tt(Fl[l],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("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(B in i)if(i.hasOwnProperty(B)&&(l=i[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,B,l,i,null)}return;default:if(Nu(e)){for(q in i)i.hasOwnProperty(q)&&(l=i[q],l!==void 0&&Ef(t,e,q,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Ot(t,e,x,l,i,null))}function m5(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,x=null,E=null,B=null,q=null;for(_ in i){var X=i[_];if(i.hasOwnProperty(_)&&X!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":E=X;default:l.hasOwnProperty(_)||Ot(t,e,_,null,l,X)}}for(var O in l){var _=l[O];if(X=i[O],l.hasOwnProperty(O)&&(_!=null||X!=null))switch(O){case"type":c=_;break;case"name":o=_;break;case"checked":B=_;break;case"defaultChecked":q=_;break;case"value":m=_;break;case"defaultValue":x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:_!==X&&Ot(t,e,O,_,l,X)}}Lu(t,m,x,E,B,q,c,o);return;case"select":_=m=x=O=null;for(c in i)if(E=i[c],i.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":_=E;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,E)}for(o in l)if(c=l[o],E=i[o],l.hasOwnProperty(o)&&(c!=null||E!=null))switch(o){case"value":O=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==E&&Ot(t,e,o,c,l,E)}e=x,i=m,l=_,O!=null?ra(t,!!i,O,!1):!!l!=!!i&&(e!=null?ra(t,!!i,e,!0):ra(t,!!i,i?[]:"",!1));return;case"textarea":_=O=null;for(x in i)if(o=i[x],i.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ot(t,e,x,null,l,o)}for(m in l)if(o=l[m],c=i[m],l.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":O=o;break;case"defaultValue":_=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Ot(t,e,m,o,l,c)}Qp(t,O,_);return;case"option":for(var it in i)if(O=i[it],i.hasOwnProperty(it)&&O!=null&&!l.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Ot(t,e,it,null,l,O)}for(E in l)if(O=l[E],_=i[E],l.hasOwnProperty(E)&&O!==_&&(O!=null||_!=null))switch(E){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ot(t,e,E,O,l,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ct in i)O=i[ct],i.hasOwnProperty(ct)&&O!=null&&!l.hasOwnProperty(ct)&&Ot(t,e,ct,null,l,O);for(B in l)if(O=l[B],_=i[B],l.hasOwnProperty(B)&&O!==_&&(O!=null||_!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:Ot(t,e,B,O,l,_)}return;default:if(Nu(e)){for(var Lt in i)O=i[Lt],i.hasOwnProperty(Lt)&&O!==void 0&&!l.hasOwnProperty(Lt)&&Ef(t,e,Lt,void 0,l,O);for(q in l)O=l[q],_=i[q],!l.hasOwnProperty(q)||O===_||O===void 0&&_===void 0||Ef(t,e,q,O,l,_);return}}for(var R in i)O=i[R],i.hasOwnProperty(R)&&O!=null&&!l.hasOwnProperty(R)&&Ot(t,e,R,null,l,O);for(X in l)O=l[X],_=i[X],!l.hasOwnProperty(X)||O===_||O==null&&_==null||Ot(t,e,X,O,l,_)}function Wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p5(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var o=i[l],c=o.transferSize,m=o.initiatorType,x=o.duration;if(c&&x&&Wg(m)){for(m=0,x=o.responseEnd,l+=1;l<i.length;l++){var E=i[l],B=E.startTime;if(B>x)break;var q=E.transferSize,X=E.initiatorType;q&&Wg(X)&&(E=E.responseEnd,m+=q*(E<x?1:(x-B)/(E-B)))}if(--l,e+=8*(c+m)/(o.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 Mf=null,Af=null;function Br(t){return t.nodeType===9?t:t.ownerDocument}function $g(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 tv(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 Cf(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 wf=null;function y5(){var t=window.event;return t&&t.type==="popstate"?t===wf?!1:(wf=t,!0):(wf=null,!1)}var ev=typeof setTimeout=="function"?setTimeout:void 0,g5=typeof clearTimeout=="function"?clearTimeout:void 0,nv=typeof Promise=="function"?Promise:void 0,v5=typeof queueMicrotask=="function"?queueMicrotask:typeof nv<"u"?function(t){return nv.resolve(null).then(t).catch(b5)}:ev;function b5(t){setTimeout(function(){throw t})}function oi(t){return t==="head"}function iv(t,e){var i=e,l=0;do{var o=i.nextSibling;if(t.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(o),_a(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Zl(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Zl(i);for(var c=i.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[hl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=m}}else i==="body"&&Zl(t.ownerDocument.body);i=o}while(i);_a(e)}function av(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Df(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Df(i),Bu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function S5(t,e,i,l){for(;t.nodeType===1;){var o=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[hl])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!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=We(t.nextSibling),t===null)break}return null}function x5(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=We(t.nextSibling),t===null))return null;return t}function lv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=We(t.nextSibling),t===null))return null;return t}function Rf(t){return t.data==="$?"||t.data==="$~"}function jf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function T5(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function We(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 zf=null;function sv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return We(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function rv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function ov(t,e,i){switch(e=Br(i),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 Zl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bu(t)}var $e=new Map,uv=new Set;function Or(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Nn=G.d;G.d={f:E5,r:M5,D:A5,C:C5,L:w5,m:D5,X:j5,S:R5,M:z5};function E5(){var t=Nn.f(),e=Mr();return t||e}function M5(t){var e=aa(t);e!==null&&e.tag===5&&e.type==="form"?Cy(e):Nn.r(t)}var Na=typeof document>"u"?null:document;function cv(t,e,i){var l=Na;if(l&&typeof e=="string"&&e){var o=Xe(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),uv.has(o)||(uv.add(o),t={rel:t,crossOrigin:i,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),me(e,"link",t),se(e),l.head.appendChild(e)))}}function A5(t){Nn.D(t),cv("dns-prefetch",t,null)}function C5(t,e){Nn.C(t,e),cv("preconnect",t,e)}function w5(t,e,i){Nn.L(t,e,i);var l=Na;if(l&&t&&e){var o='link[rel="preload"][as="'+Xe(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Xe(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Xe(i.imageSizes)+'"]')):o+='[href="'+Xe(t)+'"]';var c=o;switch(e){case"style":c=Ua(t);break;case"script":c=Ha(t)}$e.has(c)||(t=v({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),$e.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Il(c))||e==="script"&&l.querySelector(Jl(c))||(e=l.createElement("link"),me(e,"link",t),se(e),l.head.appendChild(e)))}}function D5(t,e){Nn.m(t,e);var i=Na;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Xe(l)+'"][href="'+Xe(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ha(t)}if(!$e.has(c)&&(t=v({rel:"modulepreload",href:t},e),$e.set(c,t),i.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Jl(c)))return}l=i.createElement("link"),me(l,"link",t),se(l),i.head.appendChild(l)}}}function R5(t,e,i){Nn.S(t,e,i);var l=Na;if(l&&t){var o=la(l).hoistableStyles,c=Ua(t);e=e||"default";var m=o.get(c);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(Il(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},i),(i=$e.get(c))&&Bf(t,i);var E=m=l.createElement("link");se(E),me(E,"link",t),E._p=new Promise(function(B,q){E.onload=B,E.onerror=q}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Lr(m,e,l)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(c,m)}}}function j5(t,e){Nn.X(t,e);var i=Na;if(i&&t){var l=la(i).hoistableScripts,o=Ha(t),c=l.get(o);c||(c=i.querySelector(Jl(o)),c||(t=v({src:t,async:!0},e),(e=$e.get(o))&&Of(t,e),c=i.createElement("script"),se(c),me(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function z5(t,e){Nn.M(t,e);var i=Na;if(i&&t){var l=la(i).hoistableScripts,o=Ha(t),c=l.get(o);c||(c=i.querySelector(Jl(o)),c||(t=v({src:t,async:!0,type:"module"},e),(e=$e.get(o))&&Of(t,e),c=i.createElement("script"),se(c),me(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function fv(t,e,i,l){var o=(o=W.current)?Or(o):null;if(!o)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ua(i.href),i=la(o).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ua(i.href);var c=la(o).hoistableStyles,m=c.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=o.querySelector(Il(t)))&&!c._p&&(m.instance=c,m.state.loading=5),$e.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},$e.set(t,i),c||B5(o,t,i,m.state))),e&&l===null)throw Error(u(528,""));return m}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ha(i),i=la(o).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function Ua(t){return'href="'+Xe(t)+'"'}function Il(t){return'link[rel="stylesheet"]['+t+"]"}function dv(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function B5(t,e,i,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}),me(e,"link",i),se(e),t.head.appendChild(e))}function Ha(t){return'[src="'+Xe(t)+'"]'}function Jl(t){return"script[async]"+t}function hv(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Xe(i.href)+'"]');if(l)return e.instance=l,se(l),l;var o=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),se(l),me(l,"style",o),Lr(l,i.precedence,t),e.instance=l;case"stylesheet":o=Ua(i.href);var c=t.querySelector(Il(o));if(c)return e.state.loading|=4,e.instance=c,se(c),c;l=dv(i),(o=$e.get(o))&&Bf(l,o),c=(t.ownerDocument||t).createElement("link"),se(c);var m=c;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),me(c,"link",l),e.state.loading|=4,Lr(c,i.precedence,t),e.instance=c;case"script":return c=Ha(i.src),(o=t.querySelector(Jl(c)))?(e.instance=o,se(o),o):(l=i,(o=$e.get(c))&&(l=v({},i),Of(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),se(o),me(o,"link",l),t.head.appendChild(o),e.instance=o);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,Lr(l,i.precedence,t));return e.instance}function Lr(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===e)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Bf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Of(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vr=null;function mv(t,e,i){if(Vr===null){var l=new Map,o=Vr=new Map;o.set(i,l)}else o=Vr,l=o.get(i),l||(l=new Map,o.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),o=0;o<i.length;o++){var c=i[o];if(!(c[hl]||c[ce]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var x=l.get(m);x?x.push(c):l.set(m,[c])}}return l}function pv(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function O5(t,e,i){if(i===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 yv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function L5(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Ua(l.href),c=e.querySelector(Il(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nr.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,se(c);return}c=e.ownerDocument||e,l=dv(l),(o=$e.get(o))&&Bf(l,o),c=c.createElement("link"),se(c);var m=c;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),me(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Nr.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Lf=0;function V5(t,e){return t.stylesheets&&t.count===0&&Hr(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Hr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Lf===0&&(Lf=62500*p5());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Hr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Lf?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Nr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ur=null;function Hr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ur=new Map,e.forEach(N5,t),Ur=null,Nr.call(t))}function N5(t,e){if(!(e.state.loading&4)){var i=Ur.get(t);if(i)var l=i.get(null);else{i=new Map,Ur.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(i.set(m.dataset.precedence,m),l=m)}l&&i.set(null,l)}o=e.instance,m=o.getAttribute("data-precedence"),c=i.get(m)||l,c===l&&i.set(null,o),i.set(m,o),this.count++,l=Nr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Wl={$$typeof:K,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function U5(t,e,i,l,o,c,m,x,E){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=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function gv(t,e,i,l,o,c,m,x,E,B,q,X){return t=new U5(t,e,i,m,E,B,q,X,x),e=1,c===!0&&(e|=24),c=Oe(3,null,null,e),t.current=c,c.stateNode=t,e=dc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},yc(c),t}function vv(t){return t?(t=pa,t):pa}function bv(t,e,i,l,o,c){o=vv(o),l.context===null?l.context=o:l.pendingContext=o,l=Jn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Wn(t,l,e),i!==null&&(we(i,t,e),jl(i,t,e))}function Sv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Vf(t,e){Sv(t,e),(t=t.alternate)&&Sv(t,e)}function xv(t){if(t.tag===13||t.tag===31){var e=wi(t,67108864);e!==null&&we(e,t,67108864),Vf(t,67108864)}}function Tv(t){if(t.tag===13||t.tag===31){var e=He();e=Ru(e);var i=wi(t,e);i!==null&&we(i,t,e),Vf(t,e)}}var _r=!0;function H5(t,e,i,l){var o=D.T;D.T=null;var c=G.p;try{G.p=2,Nf(t,e,i,l)}finally{G.p=c,D.T=o}}function _5(t,e,i,l){var o=D.T;D.T=null;var c=G.p;try{G.p=8,Nf(t,e,i,l)}finally{G.p=c,D.T=o}}function Nf(t,e,i,l){if(_r){var o=Uf(l);if(o===null)Tf(t,e,l,kr,i),Mv(t,l);else if(G5(o,t,e,i,l))l.stopPropagation();else if(Mv(t,l),e&4&&-1<k5.indexOf(t)){for(;o!==null;){var c=aa(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Ti(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-ze(m);x.entanglements[1]|=E,m&=~E}pn(c),(Dt&6)===0&&(Tr=ve()+500,Kl(0))}}break;case 31:case 13:x=wi(c,2),x!==null&&we(x,c,2),Mr(),Vf(c,2)}if(c=Uf(l),c===null&&Tf(t,e,l,kr,i),c===o)break;o=c}o!==null&&l.stopPropagation()}else Tf(t,e,l,null,i)}}function Uf(t){return t=Hu(t),Hf(t)}var kr=null;function Hf(t){if(kr=null,t=ia(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=h(e),t!==null)return t;t=null}else if(i===31){if(t=y(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return kr=t,null}function Ev(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(ul()){case Ds:return 2;case Bp:return 8;case Rs:case CM:return 32;case Op:return 268435456;default:return 32}default:return 32}}var _f=!1,ui=null,ci=null,fi=null,$l=new Map,ts=new Map,di=[],k5="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 Mv(t,e){switch(t){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":$l.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ts.delete(e.pointerId)}}function es(t,e,i,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=aa(e),e!==null&&xv(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function G5(t,e,i,l,o){switch(e){case"focusin":return ui=es(ui,t,e,i,l,o),!0;case"dragenter":return ci=es(ci,t,e,i,l,o),!0;case"mouseover":return fi=es(fi,t,e,i,l,o),!0;case"pointerover":var c=o.pointerId;return $l.set(c,es($l.get(c)||null,t,e,i,l,o)),!0;case"gotpointercapture":return c=o.pointerId,ts.set(c,es(ts.get(c)||null,t,e,i,l,o)),!0}return!1}function Av(t){var e=ia(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=h(i),e!==null){t.blockedOn=e,_p(t.priority,function(){Tv(i)});return}}else if(e===31){if(e=y(i),e!==null){t.blockedOn=e,_p(t.priority,function(){Tv(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Uf(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Uu=l,i.target.dispatchEvent(l),Uu=null}else return e=aa(i),e!==null&&xv(e),t.blockedOn=i,!1;e.shift()}return!0}function Cv(t,e,i){Gr(t)&&i.delete(e)}function Y5(){_f=!1,ui!==null&&Gr(ui)&&(ui=null),ci!==null&&Gr(ci)&&(ci=null),fi!==null&&Gr(fi)&&(fi=null),$l.forEach(Cv),ts.forEach(Cv)}function Yr(t,e){t.blockedOn===e&&(t.blockedOn=null,_f||(_f=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Y5)))}var qr=null;function wv(t){qr!==t&&(qr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){qr===t&&(qr=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Hf(l||i)===null)continue;break}var c=aa(i);c!==null&&(t.splice(e,3),e-=3,Nc(c,{pending:!0,data:o,method:i.method,action:l},l,o))}}))}function _a(t){function e(E){return Yr(E,t)}ui!==null&&Yr(ui,t),ci!==null&&Yr(ci,t),fi!==null&&Yr(fi,t),$l.forEach(e),ts.forEach(e);for(var i=0;i<di.length;i++){var l=di[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<di.length&&(i=di[0],i.blockedOn===null);)Av(i),i.blockedOn===null&&di.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var o=i[l],c=i[l+1],m=o[xe]||null;if(typeof c=="function")m||wv(i);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[xe]||null)x=m.formAction;else if(Hf(o)!==null)continue}else x=m.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),wv(i)}}}function Dv(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(i,20)}function i(){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,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function kf(t){this._internalRoot=t}Pr.prototype.render=kf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=He();bv(i,l,t,e,null,null)},Pr.prototype.unmount=kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bv(t.current,2,null,t,null,null),Mr(),e[na]=null}};function Pr(t){this._internalRoot=t}Pr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Hp();t={blockedOn:null,target:t,priority:e};for(var i=0;i<di.length&&e!==0&&e<di[i].priority;i++);di.splice(i,0,t),i===0&&Av(t)}};var Rv=s.version;if(Rv!=="19.2.1")throw Error(u(527,Rv,"19.2.1"));G.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=p(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var q5={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xr.isDisabled&&Xr.supportsFiber)try{cl=Xr.inject(q5),je=Xr}catch{}}return Ga.createRoot=function(t,e){if(!f(t))throw Error(u(299));var i=!1,l="",o=Ny,c=Uy,m=Hy;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=gv(t,1,!1,null,null,i,l,null,o,c,m,Dv),t[na]=e.current,xf(t),new kf(e)},Ga.hydrateRoot=function(t,e,i){if(!f(t))throw Error(u(299));var l=!1,o="",c=Ny,m=Uy,x=Hy,E=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),e=gv(t,1,!0,e,i??null,l,o,E,c,m,x,Dv),e.context=vv(null),i=e.current,l=He(),l=Ru(l),o=Jn(l),o.callback=null,Wn(i,o,l),i=l,e.current.lanes=i,dl(e,i),pn(e),t[na]=e.current,xf(t),new Pr(e)},Ga.version="19.2.1",Ga}var If;function Hv(){if(If)return Zr.exports;If=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Zr.exports=Uv(),Zr.exports}var _v=Hv();const kv=ki(_v),Jf={en:{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"}},ko:{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:"예정"}},ja:{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:"予定"}}},Gv=()=>typeof navigator<"u"&&typeof navigator.language<"u";function Yv(n){const a=n.split("-")[0];return a in Jf?a:"en"}function $r(n){let a="en";n?a=n:Gv()&&(a=navigator.language);const s=Yv(a);return Jf[s]}$r();const qv={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"},Pv={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 De={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Un={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const Xv=new Date().getTime(),Wf=()=>{const n=new Date,a=f=>String(f).padStart(2,"0"),s=`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())} ${a(n.getHours())}:${a(n.getMinutes())}:${a(n.getSeconds())}`,r=Math.floor(n.getTime()/1e3),u=new Date().getTime()-Xv;return{logDate:s,logDateUnix:r,thisSec:u}};function Kv(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Fv(n,a){Object.entries(a).forEach(([s,r])=>{Kv(r)?(n[s]||(n[s]={}),Object.entries(r).forEach(([u,f])=>{f!=null&&(n[s][u]=f)})):r!=null&&(n[s]=r)})}function Qv(n){const a=[];return n?.r1&&a.push(n.r1),n?.r2&&a.push(n.r2),n?.r3&&a.push(n.r3),a.join(" ")}function Zv(n){try{const a=Un.syncResult?.geoLocation;a&&(n.address=Qv(a),n.isp=a.net||"",n.ip=Un.syncResult?.ip||"",n.nation=a.country||"")}catch{}}const Iv=async n=>{if(!n)return;const{platform:a,stage:s}=Un,r=Pv[a][s].log;try{const f=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:n})})).json();Un.sync=f.result?.sync||!1,Un.syncResult=f.result||{};const{logDate:d,logDateUnix:h}=Wf();return De.extra.logDate=d,De.extra.logDateUnix=h,Un.syncResult?.geoLocation&&Zv(De.extra),f}catch(u){return console.error("MA config initialization failed:",u),null}};async function Jv(n,a,s,r,u){Un.platform=n,Un.stage=a,Fv(De,s),r&&(De.extra.vpePackageId=r),u&&(De.extra.vpeKey=u),De.extra.nation?De.browser.country=qv[De.extra.nation]||"Korea, Republic of":De.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=Wf();De.extra.logDate=f,De.extra.logDateUnix=d,De.extra.created_at=d}const Wv=(n={})=>{const a={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!0,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,seekingPreview:!0,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,iosFullscreenNativeMode:!0,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,...n};return n.controlBtn&&(s.controlBtn={...a.controlBtn,...n.controlBtn}),n.watermarkConfig&&(s.watermarkConfig={...a.watermarkConfig,...n.watermarkConfig}),n.captionStyle&&(s.captionStyle={...a.captionStyle,...n.captionStyle}),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},$v={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let $f=[];const t1=n=>{try{return atob(n)}catch(a){return console.error("Base64 decoding failed:",a),""}};class e1{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator=$r();errorState;constructor({accessKey:a,appId:s,platform:r,stage:u,isDev:f=!1,language:d}){this.accessKey=a,this.appId=s||location.origin,this.platform=r,this.stage=u,this.isDev=f,this.updateTranslator(d),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(f=>!f))return console.warn(s),{error:this.setErrorRun(a[2])};const u=f=>(this.serverConfig=f,this.playerInfo=this.createPlayerInfo(f),this.playerInfo);try{const f=await this.performKeyCheck();if(f.code!==200)return{error:this.setErrorRun(a[3])};const d=u(f);return await Jv(this.platform,this.stage,d,this.appId,this.accessKey),await Iv(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(f){return console.error("VPE SDK Initialization failed:",f),{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]:"",r=t1($v[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((d,h,y)=>(d[h]=[this.accessKey,this.appId][y],d),{})),f=await fetch(r,{method:a[6],headers:{[a[2]]:a[3]},body:u});if(!f.ok)throw new Error(["API","Error:",f.status,f.statusText].join(" "));return f.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,r]=a.result.name.split("|"),u=navigator.connection||navigator.mozConnection||navigator.webkitConnection,f=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:a.result.cid,player_name:s,player_version:r,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:d?.platform??"Unknown",mobile:d?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:r,device:d?.platform??"Unknown",os:d?.platform??"Unknown",osOrigin:d?.platform??"Unknown",osVersion:d?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:f.origin,browserOrigin:f.origin,browserVersion:f.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${d?.platform??"Unknown"}&${d?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(a){const s=a.slice(-2),r=this.translator.error[s]||this.translator.error["01"],u={errorCode:a,errorMessage:r};return this.errorState=u,console.error("ncplayer : ",u),u}updateTranslator(a){this.translator=$r(a)}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){const s=Wv(this.serverConfig.result?.options),r={...s,...a??{}};return r?.lang&&(r?.lang=="auto"||this.updateTranslator(r.lang)),a?.controlBtn&&(r.controlBtn={...s.controlBtn,...a.controlBtn}),a?.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),$f=r.playlist||[],r}getPlaylist(){return $f||[]}async playerStateReport(a){a.type}$t(a){const s=a.split(".");let r=this.translator;for(const u of s)if(r&&typeof r=="object"&&u in r)r=r[u];else return a;return typeof r=="string"?r:a}async hlsPaser(a){const s=[];if(!a||a.indexOf(".m3u8")===-1)return s;const r=(d,h)=>{try{return new URL(h,d).toString()}catch{return h}},u=d=>{const h=d.match(/RESOLUTION=(\d+)x(\d+)/);if(h)return`${h[2]}p`;const y=d.match(/BANDWIDTH=(\d+)/);return y?`${Math.round(Number(y[1])/1e3)}kbps`:"auto"},f=d=>{const h=d.split(/\r?\n/).map(y=>y.trim()).filter(y=>y.length>0);for(let y=0;y<h.length;y+=1){const g=h[y];if(g.startsWith("#EXT-X-STREAM-INF")){const p=h[y+1];p&&!p.startsWith("#")&&(s.push({quality:u(g),url:r(a,p),levelIndex:s.length}),y+=1)}}};try{const d=await fetch(a);if(!d.ok)return s;const h=await d.text();return h&&f(h),s}catch(d){return console.error("HLS 파싱 실패:",d),s}}}const to=new Map,td=T.createContext(null);let ed=0;function n1(n,a){if(to.has(n))return to.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return to.set(n,r),r}function i1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(ed+=1,s.current=`sdk-${ed}`);const r=n??s.current;return T.createElement(td.Provider,{value:r},a)}function a1(){return T.useContext(td)}function nd(n,a){const s=a1(),r=s?`${s}:${n}`:n,u=n1(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,y=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),y]}const eo=new Map,id=T.createContext(null);let ad=0;function l1(n,a){if(eo.has(n))return eo.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return eo.set(n,r),r}function s1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(ad+=1,s.current=`vpe-${ad}`);const r=n??s.current;return T.createElement(id.Provider,{value:r},a)}function r1(){return T.useContext(id)}function ld(n,a){const s=r1(),r=s?`${s}:${n}`:n,u=l1(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,y=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),y]}const o1="playerState",u1={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,pidx:0,playlistCnt:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function Gt(){const[n,a]=ld(o1,u1),s=T.useCallback(r=>{a(u=>{const f=typeof r=="function"?r(u):r,d={...u,...f},h=Object.keys(f);for(const y of h)if(!Object.is(u[y],d[y]))return d;return u})},[a]);return[n,s]}const c1="playerController",f1={videoEl:null,hls:null,dash:null};function ie(){const[n,a]=ld(c1,f1),[s,r]=Gt(),u=T.useRef(0),f=T.useRef(""),d=T.useCallback(Z=>{a(et=>({...et,videoEl:Z}))},[a]),h=T.useCallback(Z=>{a(et=>({...et,hls:Z}))},[a]),y=T.useCallback(Z=>{a(et=>({...et,dash:Z}))},[a]),g=T.useCallback(()=>{r({isUserTouch:!0})},[r]),p=T.useCallback(()=>{const Z=n.videoEl;Z&&Z.paused&&Z.play()},[n.videoEl]),S=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.paused||Z.pause())},[n.videoEl]),v=T.useCallback(Z=>{const et=n.videoEl;if(!et||Number.isNaN(Z))return;const lt=Math.max(0,Math.min(Z,et.duration||Z));et.currentTime=lt,r({currentTime:lt,isEnded:!1})},[r,n.videoEl]),A=T.useCallback(Z=>{const et=n.videoEl;if(!et||Number.isNaN(Z))return;const lt=Math.max(0,Math.min(100,Z));et.volume=lt/100,et.muted=lt===0},[n.videoEl]),j=T.useCallback(Z=>{const et=n.videoEl;et&&(et.muted=Z)},[n.videoEl]),L=T.useCallback(Z=>{const et=n.videoEl;if(!et)return;const lt=et.textTracks;if(!lt||lt.length===0)return;const F=Math.max(0,Math.min(s.subTitleIdx??0,lt.length-1));for(let D=0;D<lt.length;D+=1)lt[D].mode=Z&&D===F?"showing":"disabled";r({isSubtitle:Z})},[s.subTitleIdx,r,n.videoEl]),H=T.useCallback(()=>{const Z=n.videoEl;if(!Z)return;const et=Z.textTracks;if(!et||et.length===0){r({isSubtitle:!1});return}let lt=!1;for(let F=0;F<et.length;F+=1)if(et[F].mode==="showing"){lt=!0;break}lt?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),L(!lt)},[r,L,n.videoEl]),C=T.useCallback(Z=>{const et=n.videoEl;if(!et)return;const lt=Array.from(et.querySelectorAll("track")),F=et.textTracks;if((!F||F.length===0)&<.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const D=lt.length>0?lt.length-1:F.length-1,G=Math.max(0,Math.min(Z,D));if(lt.length>0)lt.forEach(($,nt)=>{$.track&&($.track.mode=nt===G?"showing":"disabled")});else for(let $=0;$<F.length;$+=1)F[$].mode=$===G?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:G}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,n.videoEl]),U=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.muted=!Z.muted)},[n.videoEl]),V=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.paused?p():S())},[S,p,n.videoEl]),K=T.useCallback(Z=>{const et=n.hls,lt=n.dash;if(!et&&!lt)return;if(et){if(Z==="auto"){et.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}et.currentLevel=Z,r({currentLevel:Z,isAutoLevel:!1});return}const F=Z==="auto"||Z===-1;lt?.setAutoSwitchQualityFor&<.setAutoSwitchQualityFor("video",F),!F&<?.setQualityFor&<.setQualityFor("video",Z),r({currentLevel:F?-1:Z,isAutoLevel:F})},[r,n.dash,n.hls]),Q=T.useCallback(Z=>{const et=n.videoEl;et&&(et.playbackRate=Z)},[n.videoEl]),J=T.useCallback(async()=>{const Z=n.videoEl;if(!Z||typeof document>"u")return;const et=document;if(et.pictureInPictureElement){typeof et.exitPictureInPicture=="function"&&await et.exitPictureInPicture();return}const lt=Z.requestPictureInPicture;typeof lt=="function"&&await lt.call(Z)},[n.videoEl]),Y=T.useCallback(()=>{if(typeof document>"u")return null;const Z=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return Z instanceof HTMLElement?Z:null},[]),k=T.useCallback((Z,et)=>{if(!Z||typeof document>"u")return;if(!(et??!Z.classList.contains("vpe-ios-fullscreen"))){r({isFullscreen:!1}),Z.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=f.current;const D=document.getElementById("vpeIosFullscreenTmpDiv");D&&D.remove(),window.scrollY=u.current;return}r({isFullscreen:!0}),Z.classList.add("vpe-ios-fullscreen"),u.current=window.scrollY,f.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const F=document.createElement("div");F.id="vpeIosFullscreenTmpDiv",F.style.height="120dvh",document.body.appendChild(F),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[r]),st=T.useCallback(()=>{const Z=n.videoEl;if(!Z)return!1;const et=Z.webkitEnterFullscreen;return typeof et!="function"?!1:(et.call(Z),!0)},[n.videoEl]),bt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Z?.iosFullscreenNativeMode){if(st())return}else{const F=document.querySelector(".vpe-root-wrap");k(F,!0);return}if(typeof document>"u"||document.fullscreenElement)return;const lt=Y();lt&<.requestFullscreen?.()},[st,Y,k]),pt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent)&&!Z?.iosFullscreenNativeMode){const lt=document.querySelector(".vpe-root-wrap");k(lt,!1);return}typeof document>"u"||document.fullscreenElement&&document.exitFullscreen?.()},[k]),dt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Z?.iosFullscreenNativeMode){if(st())return}else{const F=document.querySelector(".vpe-root-wrap");k(F);return}if(typeof document>"u")return;if(document.fullscreenElement){document.exitFullscreen?.();return}const lt=Y();lt&<.requestFullscreen?.()},[st,Y,k]);return{videoEl:n.videoEl,hls:n.hls,dash:n.dash,setVideoElement:d,setHlsInstance:h,setDashInstance:y,play:p,pause:S,seekTo:v,setVolume:A,setMuted:j,setSubtitleEnabled:L,toggleSubtitle:H,toggleMute:U,togglePlay:V,useTouch:g,playBackRate:Q,selectSubTitle:C,selectQualityLevel:K,togglePictureInPicture:J,toggleFullscreen:dt,fullscreenOn:bt,fullscreenOff:pt}}const d1=()=>{};function no(n,a,s=!1,r=!0,u=d1){T.useEffect(()=>{const f=n.current;if(!f)return;const d=typeof document>"u"?null:document,h=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},y=()=>{a({isPlaying:!1})},g=()=>{s||Math.round(f.currentTime)%1==0&&(a({currentTime:f.currentTime,duration:f.duration}),u("timeupdate",{currentTime:f.currentTime,duration:f.duration}))},p=()=>{if(f.buffered.length>0){const Y=f.buffered.start(0),k=f.buffered.end(f.buffered.length-1);a({buffered:k,bufferedStart:Y,bufferedEnd:k})}},S=()=>{const Y=f.videoWidth||0,k=f.videoHeight||0;a({isHd:Y>=1280,is4k:k>=2160,videoWidth:Y,videoHeight:k})},v=()=>{a({isEnded:!0}),u("ended")},A=()=>{a({isSeeked:!0}),u("seeking",{currentTime:f.currentTime})},j=()=>{setTimeout(()=>{a({isSeeked:!1}),u("seeked",{currentTime:f.currentTime})},200)},L=()=>{a({isMuted:f.muted,isVolume:Math.round(f.volume*100)}),u("volumechange",{isMuted:f.muted,isVolume:Math.round(f.volume*100)})},H=()=>{a({isLoading:!0,isWaiting:!0})},C=()=>{a({isLoading:!1}),S()},U=()=>{a({isLoading:!1}),S()},V=()=>{a({isWaiting:!0})},K=()=>{a({isWaiting:!1,isLoading:!1})},Q=()=>{a({isWaiting:!0})},J=()=>{!d||!r||d.hidden&&!f.paused&&f.pause()};return f.addEventListener("play",h),f.addEventListener("pause",y),f.addEventListener("timeupdate",g),f.addEventListener("ended",v),f.addEventListener("progress",p),f.addEventListener("seeking",A),f.addEventListener("seeked",j),f.addEventListener("volumechange",L),f.addEventListener("loadstart",H),f.addEventListener("loadedmetadata",C),f.addEventListener("loadeddata",U),f.addEventListener("resize",S),f.addEventListener("waiting",V),f.addEventListener("playing",K),f.addEventListener("stalled",Q),d?.addEventListener("visibilitychange",J),L(),()=>{f.removeEventListener("play",h),f.removeEventListener("pause",y),f.removeEventListener("timeupdate",g),f.removeEventListener("ended",v),f.removeEventListener("progress",p),f.removeEventListener("seeking",A),f.removeEventListener("seeked",j),f.removeEventListener("volumechange",L),f.removeEventListener("loadstart",H),f.removeEventListener("loadedmetadata",C),f.removeEventListener("loadeddata",U),f.removeEventListener("resize",S),f.removeEventListener("waiting",V),f.removeEventListener("playing",K),f.removeEventListener("stalled",Q),d?.removeEventListener("visibilitychange",J)}},[r,s,a,n])}const h1=3,m1=3e3;function p1(n){const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=Gt(),{setVideoElement:d,setHlsInstance:h}=ie(),y=n.hlsLib,g=n.options;return T.useEffect(()=>{const p=a.current,S=n?.src?.file;if(!(!p||!S)){if(y?.isSupported?.()){const v=new y({lowLatencyMode:g.lowLatencyMode,liveSyncDuration:g.lowLatencyMode?3:5,backBufferLength:g.lowLatencyMode?30:90,startPosition:-1});h(v),v.attachMedia(p),v.on(y.Events.MEDIA_ATTACHED,()=>{v.loadSource(S)});const A=typeof g?.retry?.maxRetry=="number"?g.retry.maxRetry:h1,j=typeof g?.retry?.interval=="number"?g.retry.interval:m1,L=H=>{if(typeof H?.details?.live=="boolean"){const C=H.details.live,U=H.details.totalduration,V=C&&typeof U=="number"&&Number.isFinite(U)&&U>0;f({isLive:C,isDvr:V})}};return v.on(y.Events.MANIFEST_PARSED,(H,C)=>{s.current=0,L(C);const U=(v.levels??[]).map((V,K)=>({index:K,width:V.width,height:V.height,bitrate:V.bitrate,name:V.name}));f({levels:U,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(y.Events.LEVEL_LOADED,(H,C)=>{s.current=0,L(C)}),v.on(y.Events.LEVEL_SWITCHED,(H,C)=>{f({currentLevel:C.level,isAutoLevel:v.autoLevelEnabled})}),v.on(y.Events.ERROR,(H,C)=>{if(C?.fatal){if(s.current<A){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,C?.type===y.ErrorTypes.MEDIA_ERROR){v.recoverMediaError();return}v.stopLoad(),v.loadSource(S),v.startLoad()},j);return}console.log("HLS 재시도 횟수 초과"),n.onError&&n.onError({evt:H,data:C}),v.destroy()}}),()=>{r.current&&(clearTimeout(r.current),r.current=null),h(null),v.destroy()}}p.src=S}},[y,n?.src?.file,n.onError,h,f]),T.useEffect(()=>{const p=a.current;if(!p||y?.isSupported?.())return;const S=()=>{const v=p.duration,A=!Number.isFinite(v)||v===1/0,j=A?Number.isFinite(v)&&v>0:!1;f({isLive:A,isDvr:j})};return p.addEventListener("loadedmetadata",S),p.addEventListener("durationchange",S),S(),()=>{p.removeEventListener("loadedmetadata",S),p.removeEventListener("durationchange",S)}},[y,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=g?.playbackRate;typeof S=="number"&&(p.playbackRate=S,f({playbackRate:S}))},[g]),T.useEffect(()=>{const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=50,v=16,A=1.2,j=40,H=-Math.max(1,Math.round(S/(v*A))),C=Y=>{if(Y.cues)for(let k=0;k<Y.cues.length;k+=1){const st=Y.cues[k];st.line=H,st.lineAlign="center"}},U=Y=>{if(!Y.cues)return;const k=p.getBoundingClientRect(),st=k.width>0?j*2*100/k.width:0,bt=Math.max(10,Math.min(100,100-st));for(let pt=0;pt<Y.cues.length;pt+=1){const dt=Y.cues[pt];dt.size=bt,dt.position=50,dt.align="center",dt.line=-3}},V=Y=>{C(Y),U(Y)},K=Array.from(p.querySelectorAll("track")),Q=Y=>{const k=Y.currentTarget;k?.track&&V(k.track)};K.forEach(Y=>{Y.addEventListener("load",Q),Y.track&&V(Y.track)});const J=new ResizeObserver(()=>{K.forEach(Y=>{Y.track&&U(Y.track)})});return J.observe(p),()=>{K.forEach(Y=>{Y.removeEventListener("load",Q)}),J.disconnect()}},[g,n.src?.vtt]),no(a,f,u.isSeeked,g?.autoPause,n.emitEvent),T.useEffect(()=>{const p=n.src?.vtt??[],S=p.length>0,v=p.findIndex(j=>j.default),A=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:A})},[n.src?.vtt,f]),T.useEffect(()=>{if(!u.isSubtitle)return;const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=new Map,v=[],A=async(L,H)=>{try{const C=await fetch(H,{mode:"cors"});if(!C.ok)return;const U=await C.blob(),V=URL.createObjectURL(U);v.push(V),S.set(L,L.src),L.src=V}catch{}},j=Array.from(p.querySelectorAll("track"));return j.forEach(L=>{L.src&&A(L,L.src)}),()=>{j.forEach(L=>{const H=S.get(L);H&&(L.src=H)}),v.forEach(L=>URL.revokeObjectURL(L))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&S.length===0)return;const A=u.subTitleIdx,j=u.isSubtitle,L=()=>{if(S.length>0){S.forEach(C=>{C.track&&(C.default=!1,C.track.mode="disabled")}),S.forEach((C,U)=>{C.track&&j&&U===A&&(C.default=!0,C.track.mode="showing")});return}for(let C=0;C<v.length;C+=1)v[C].mode="disabled";j&&v[A]&&(v[A].mode="showing")};L();const H=()=>{L()};return S.forEach(C=>{C.addEventListener("load",H)}),()=>{S.forEach(C=>{C.removeEventListener("load",H)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const p=a.current;p&&g.autostart&&p.play().catch(S=>{console.log(S),p.muted=!0,p.play()})},[g.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,className:"vpe-video-dom",controls:!1,autoPlay:g?.autostart,muted:g?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:n.src.vtt?.map(p=>b.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}const y1=3,g1=3e3,v1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null};function b1(n){const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=Gt(),{setVideoElement:d,setDashInstance:h}=ie(),y=n.dashLib,g=n.options;return T.useEffect(()=>{const p=a.current,S=n?.src?.file;if(!p||!S)return;const v=v1(y);if(!v){p.src=S;return}h(v),typeof v.initialize=="function"?v.initialize(p,S,!!g?.autostart):typeof v.attachView=="function"&&typeof v.attachSource=="function"?(v.attachView(p),v.attachSource(S)):p.src=S;const A=typeof g?.retry?.maxRetry=="number"?g.retry.maxRetry:y1,j=typeof g?.retry?.interval=="number"?g.retry.interval:g1,L=()=>{const k=(typeof v.getBitrateInfoListFor=="function"?v.getBitrateInfoListFor("video"):[]).map((pt,dt)=>({index:typeof pt?.qualityIndex=="number"?pt.qualityIndex:dt,width:pt?.width,height:pt?.height,bitrate:pt?.bitrate??pt?.bandwidth,name:pt?.name})),st=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,bt=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({levels:k,currentLevel:st,isAutoLevel:bt})},H=()=>{const Y=typeof v.isDynamic=="function"?v.isDynamic():!1,k=typeof v.getDuration=="function"?v.getDuration():void 0,st=Y&&typeof k=="number"&&Number.isFinite(k)&&k>0;f({isLive:Y,isDvr:st})},C=()=>{s.current=0,L(),H()},U=()=>{const Y=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,k=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({currentLevel:Y,isAutoLevel:k})},V=(Y,k)=>{if(k?.error?.fatal??k?.fatal??!0){if(s.current<A){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,typeof v.attachSource=="function"){v.attachSource(S);return}typeof v.reset=="function"&&(v.reset(),typeof v.initialize=="function"&&v.initialize(p,S,!!g?.autostart))},j);return}console.log("DASH 재시도 횟수 초과"),n.onError&&n.onError({evt:Y,data:k}),typeof v.reset=="function"&&v.reset()}},K=y?.MediaPlayer?.events??y?.MediaPlayer?.Events??y?.events??y?.Events??void 0,Q=[],J=(Y,k)=>{!Y||typeof v.on!="function"||(v.on(Y,k),Q.push(()=>{typeof v.off=="function"&&v.off(Y,k)}))};return J(K?.STREAM_INITIALIZED??K?.MANIFEST_LOADED,C),J(K?.QUALITY_CHANGE_RENDERED??K?.QUALITY_CHANGE_REQUESTED,U),J(K?.ERROR,V),()=>{r.current&&(clearTimeout(r.current),r.current=null),Q.forEach(Y=>Y()),h(null),typeof v.reset=="function"&&v.reset()}},[y,n?.src?.file,n.onError,h,f]),T.useEffect(()=>{const p=a.current;if(!p||!!y&&(typeof y.MediaPlayer=="function"||typeof y.MediaPlayer?.create=="function"||typeof y.MediaPlayerFactory=="function"))return;const v=()=>{const A=p.duration,j=!Number.isFinite(A)||A===1/0,L=j?Number.isFinite(A)&&A>0:!1;f({isLive:j,isDvr:L})};return p.addEventListener("loadedmetadata",v),p.addEventListener("durationchange",v),v(),()=>{p.removeEventListener("loadedmetadata",v),p.removeEventListener("durationchange",v)}},[y,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=g?.playbackRate;typeof S=="number"&&(p.playbackRate=S,f({playbackRate:S}))},[g]),T.useEffect(()=>{const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=50,v=16,A=1.2,j=40,H=-Math.max(1,Math.round(S/(v*A))),C=Y=>{if(Y.cues)for(let k=0;k<Y.cues.length;k+=1){const st=Y.cues[k];st.line=H,st.lineAlign="center"}},U=Y=>{if(!Y.cues)return;const k=p.getBoundingClientRect(),st=k.width>0?j*2*100/k.width:0,bt=Math.max(10,Math.min(100,100-st));for(let pt=0;pt<Y.cues.length;pt+=1){const dt=Y.cues[pt];dt.size=bt,dt.position=50,dt.align="center"}},V=Y=>{C(Y),U(Y)},K=Array.from(p.querySelectorAll("track")),Q=Y=>{const k=Y.currentTarget;k?.track&&V(k.track)};K.forEach(Y=>{Y.addEventListener("load",Q),Y.track&&V(Y.track)});const J=new ResizeObserver(()=>{K.forEach(Y=>{Y.track&&U(Y.track)})});return J.observe(p),()=>{K.forEach(Y=>{Y.removeEventListener("load",Q)}),J.disconnect()}},[g,n.src?.vtt]),no(a,f,u.isSeeked,g?.autoPause,n.emitEvent),T.useEffect(()=>{const p=n.src?.vtt??[],S=p.length>0,v=p.findIndex(j=>j.default),A=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:A})},[n.src?.vtt,f]),T.useEffect(()=>{if(!u.isSubtitle)return;const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=new Map,v=[],A=async(L,H)=>{try{const C=await fetch(H,{mode:"cors"});if(!C.ok)return;const U=await C.blob(),V=URL.createObjectURL(U);v.push(V),S.set(L,L.src),L.src=V}catch{}},j=Array.from(p.querySelectorAll("track"));return j.forEach(L=>{L.src&&A(L,L.src)}),()=>{j.forEach(L=>{const H=S.get(L);H&&(L.src=H)}),v.forEach(L=>URL.revokeObjectURL(L))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&S.length===0)return;const A=u.subTitleIdx,j=u.isSubtitle,L=()=>{if(S.length>0){S.forEach(C=>{C.track&&(C.default=!1,C.track.mode="disabled")}),S.forEach((C,U)=>{C.track&&j&&U===A&&(C.default=!0,C.track.mode="showing")});return}for(let C=0;C<v.length;C+=1)v[C].mode="disabled";j&&v[A]&&(v[A].mode="showing")};L();const H=()=>{L()};return S.forEach(C=>{C.addEventListener("load",H)}),()=>{S.forEach(C=>{C.removeEventListener("load",H)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const p=a.current;p&&g.autostart&&p.play().catch(S=>{console.log(S),p.muted=!0,p.play()})},[g.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{className:"vpe-video-dom",playsInline:!0,ref:a,controls:!1,autoPlay:g?.autostart,muted:g?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:n.src.vtt?.map(p=>b.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}function S1(n){const a=T.useRef(null),[s,r]=Gt(),{setVideoElement:u}=ie(),f=n.options;return T.useEffect(()=>{const d=a.current,h=n?.src?.file;!d||!h||(d.src=h)},[n?.src?.file]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=y=>{n.onError&&n.onError(y)};return d.addEventListener("error",h),()=>{d.removeEventListener("error",h)}},[n.onError]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=()=>{const y=d.duration,g=!Number.isFinite(y)||y===1/0,p=g?Number.isFinite(y)&&y>0:!1;r({isLive:g,isDvr:p})};return d.addEventListener("loadedmetadata",h),d.addEventListener("durationchange",h),h(),()=>{d.removeEventListener("loadedmetadata",h),d.removeEventListener("durationchange",h)}},[r]),T.useEffect(()=>(u(a.current),()=>u(null)),[u]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=f?.playbackRate;typeof h=="number"&&(d.playbackRate=h,r({playbackRate:h}))},[f,r]),T.useEffect(()=>{const d=a.current;if(!d||!n.src?.vtt?.length)return;const h=50,y=16,g=1.2,p=40,v=-Math.max(1,Math.round(h/(y*g))),A=V=>{if(V.cues)for(let K=0;K<V.cues.length;K+=1){const Q=V.cues[K];Q.line=v,Q.lineAlign="center"}},j=V=>{if(!V.cues)return;const K=d.getBoundingClientRect(),Q=K.width>0?p*2*100/K.width:0,J=Math.max(10,Math.min(100,100-Q));for(let Y=0;Y<V.cues.length;Y+=1){const k=V.cues[Y];k.size=J,k.position=50,k.align="center"}},L=V=>{A(V),j(V)},H=Array.from(d.querySelectorAll("track")),C=V=>{const K=V.currentTarget;K?.track&&L(K.track)};H.forEach(V=>{V.addEventListener("load",C),V.track&&L(V.track)});const U=new ResizeObserver(()=>{H.forEach(V=>{V.track&&j(V.track)})});return U.observe(d),()=>{H.forEach(V=>{V.removeEventListener("load",C)}),U.disconnect()}},[f,n.src?.vtt]),no(a,r,s.isSeeked,f?.autoPause,n.emitEvent),T.useEffect(()=>{const d=n.src?.vtt??[],h=d.length>0,y=d.findIndex(p=>p.default),g=y>=0?y:0;r({hasSubtitle:h,isSubtitle:!1,subTitleIdx:g})},[n.src?.vtt,r]),T.useEffect(()=>{if(!s.isSubtitle)return;const d=a.current;if(!d||!n.src?.vtt?.length)return;const h=new Map,y=[],g=async(S,v)=>{try{const A=await fetch(v,{mode:"cors"});if(!A.ok)return;const j=await A.blob(),L=URL.createObjectURL(j);y.push(L),h.set(S,S.src),S.src=L}catch{}},p=Array.from(d.querySelectorAll("track"));return p.forEach(S=>{S.src&&g(S,S.src)}),()=>{p.forEach(S=>{const v=h.get(S);v&&(S.src=v)}),y.forEach(S=>URL.revokeObjectURL(S))}},[n.src?.vtt,s.subTitleIdx,s.isSubtitle]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=Array.from(d.querySelectorAll("track")),y=d.textTracks;if((!y||y.length===0)&&h.length===0)return;const g=s.subTitleIdx,p=s.isSubtitle,S=()=>{if(h.length>0){h.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),h.forEach((A,j)=>{A.track&&p&&j===g&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<y.length;A+=1)y[A].mode="disabled";p&&y[g]&&(y[g].mode="showing")};S();const v=()=>{S()};return h.forEach(A=>{A.addEventListener("load",v)}),()=>{h.forEach(A=>{A.removeEventListener("load",v)})}},[s.isSubtitle,s.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const d=a.current;d&&f.autostart&&d.play().catch(h=>{console.log(h),d.muted=!0,d.play()})},[f.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const h=localStorage.getItem("vpeSubtitleEnabled");h!==null&&s.hasSubtitle&&r({isSubtitle:!!h})},1e3)},[s.hasSubtitle,r]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,className:"vpe-video-dom",ref:a,controls:!1,autoPlay:f?.autostart,muted:f?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?s.initPlay?"transparent":`url(${n.src.poster}) center / ${f?.objectFit??"contain"} no-repeat`:void 0,objectFit:f?.objectFit??"contain"},children:n.src.vtt?.map(d=>b.jsx("track",{kind:"subtitles",srcLang:d.id,label:d.label,src:d.src,default:d.default},`${d.id}-${d.src}`))})})}function x1(n){return b.jsx(p1,{...n})}function T1(n){return b.jsx(b1,{...n})}function E1(n){return b.jsx(S1,{...n})}function M1(n){const a=T.useRef(null),s=T.useRef(null),r=n.hlsLib;return T.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!(!u||!f)){if(r?.isSupported?.()){const d=new r({startLevel:0,autoLevelCapping:0});return d.attachMedia(u),d.on(r.Events.MEDIA_ATTACHED,()=>{d.loadSource(f)}),d.on(r.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(r.Events.ERROR,(h,y)=>{n.onError&&n.onError({evt:h,data:y})}),()=>{d.destroy()}}u.src=f}},[r,n?.src?.file,n.onError]),T.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const h=s.current;if(typeof h!="number"||Number.isNaN(h))return;const y=u.duration,g=Math.max(0,Math.min(h,Number.isFinite(y)?y:h));Math.abs(u.currentTime-g)>.25&&(u.currentTime=g),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const A1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null},C1=n=>{if(!n.length)return 0;let a=n[0];for(let s=1;s<n.length;s+=1){const r=n[s],u=r?.bitrate??r?.bandwidth??Number.MAX_SAFE_INTEGER,f=a?.bitrate??a?.bandwidth??Number.MAX_SAFE_INTEGER;u<f&&(a=r)}return typeof a?.qualityIndex=="number"?a.qualityIndex:0};function w1(n){const a=T.useRef(null),s=T.useRef(null),r=n.dashLib;return T.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!u||!f)return;const d=A1(r);if(!d){u.src=f;return}typeof d.initialize=="function"?d.initialize(u,f,!1):typeof d.attachView=="function"&&typeof d.attachSource=="function"?(d.attachView(u),d.attachSource(f)):u.src=f;const h=()=>{const v=typeof d.getBitrateInfoListFor=="function"?d.getBitrateInfoListFor("video"):[],A=C1(v);typeof d.setAutoSwitchQualityFor=="function"&&d.setAutoSwitchQualityFor("video",!1),typeof d.setQualityFor=="function"&&d.setQualityFor("video",A)},y=(v,A)=>{n.onError&&n.onError({evt:v,data:A})},g=r?.MediaPlayer?.events??r?.MediaPlayer?.Events??r?.events??r?.Events??void 0,p=[],S=(v,A)=>{!v||typeof d.on!="function"||(d.on(v,A),p.push(()=>{typeof d.off=="function"&&d.off(v,A)}))};return S(g?.STREAM_INITIALIZED??g?.MANIFEST_LOADED,h),S(g?.ERROR,y),()=>{p.forEach(v=>v()),typeof d.reset=="function"&&d.reset()}},[r,n?.src?.file,n.onError]),T.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const h=s.current;if(typeof h!="number"||Number.isNaN(h))return;const y=u.duration,g=Math.max(0,Math.min(h,Number.isFinite(y)?y:h));Math.abs(u.currentTime-g)>.25&&(u.currentTime=g),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function D1(n){const a=T.useRef(null),s=T.useRef(null);return T.useEffect(()=>{const r=a.current,u=n?.src?.file;!r||!u||(r.src=u)},[n?.src?.file]),T.useEffect(()=>{const r=a.current;if(!r)return;const u=f=>{n.onError&&n.onError(f)};return r.addEventListener("error",u),()=>{r.removeEventListener("error",u)}},[n.onError]),T.useEffect(()=>{const r=a.current;if(!r||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const u=()=>{const d=s.current;if(typeof d!="number"||Number.isNaN(d))return;const h=r.duration,y=Math.max(0,Math.min(d,Number.isFinite(h)?h:d));Math.abs(r.currentTime-y)>.25&&(r.currentTime=y),r.pause()};if(r.readyState>=1){u();return}const f=()=>u();return r.addEventListener("loadedmetadata",f,{once:!0}),()=>{r.removeEventListener("loadedmetadata",f)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function sd(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(n),u=window.matchMedia("(orientation: portrait)"),f=()=>s({isMobile:r.matches,isPortrait:u.matches});return f(),r.addEventListener("change",f),u.addEventListener("change",f),()=>{r.removeEventListener("change",f),u.removeEventListener("change",f)}},[n]),a}class R1{formatTime(a){if(!a)return"00:00";const s=Math.floor(a),r=String(Math.floor(s/3600)).padStart(2,"0"),u=String(Math.floor(s%3600/60)).padStart(2,"0"),f=String(s%60).padStart(2,"0");return r!=="00"?`${r}:${u}:${f}`:`${u}:${f}`}}const Ya=new R1,Gi=n=>Math.max(0,Math.min(100,n));function rd({color:n="#31ec2a",src:a,hlsLib:s,dashLib:r,options:u,onError:f,seekingPreview:d=!0}){const{isMobile:h}=sd(),[y,g]=Gt(),{seekTo:p}=ie(),S=r,v=typeof a?.file=="string"?a.file.split("?")[0].toLowerCase():"",A=v.endsWith(".mpd"),j=v.endsWith(".mp4"),[L,H]=T.useState(!1),[C,U]=T.useState(0),[V,K]=T.useState(0),[Q,J]=T.useState(null),[Y,k]=T.useState(null),[st,bt]=T.useState(null),pt=T.useRef(null),dt=T.useRef(null),Z=T.useRef(null),et=n||"#31ec2a",lt="5px",F=y.duration??0,D=F>0?F:0,G=D>0?(y.currentTime??0)/D*100:0,$=D>0?(y.buffered??0)/D*100:0,nt=!!y.isLive,M=(nt&&F>0?Math.abs(F-(y.currentTime??0))<30:!1)?100:Gi(C),N=Q??G,I=Y??N,tt=st??N,ut=D>0?D*(N/100):0,W=Q!==null,ht=y.videoWidth??0,Ut=y.videoHeight??0,Rt=ht>0&&Ut>0,ue=Rt?`${ht}/${Ut}`:"16/9",cn=Rt&&ht>Ut?"160px":"55px",fn=T.useCallback(at=>{const gt=pt.current;if(!gt)return null;const Ht=gt.getBoundingClientRect();if(Ht.width<=0)return null;const Kt="clientX"in at?at.clientX:0;return Math.min(Math.max(Kt-Ht.left,0),Ht.width)/Ht.width*100},[]),ta=T.useCallback(at=>{const gt=pt.current;if(!gt)return;const Ht=gt.getBoundingClientRect();if(Ht.width<=0)return;const Kt=ws=>{const ve=ws>0?ws/2/Ht.width*100:0,ul=Math.max(0,Math.min(50,ve)),Ds=Math.max(ul,100-ul);return{minPercent:ul,maxPercent:Ds}},qe=dt.current?.offsetWidth??0,ea=Kt(qe),xi=fn(at);if(xi===null)return;J(Gi(xi));const Cs=Math.max(ea.minPercent,Math.min(ea.maxPercent,xi));bt(Cs),k(Cs)},[fn]),nn=T.useCallback(()=>{J(null),k(null),bt(null)},[]);return T.useEffect(()=>{L||(U(G),K($))},[L,G,$]),T.useEffect(()=>{},[u]),y.isSeekOverlayVisible?null:b.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:ta,onMouseLeave:nn,children:b.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":et,"--seekSliderThumbColor":et,"--rlMargin":lt},children:[b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:pt,children:b.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[W&&!y.isLive&&!h&&d&&b.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:ue,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Gi(tt)}%`,transform:"translateX(-50%)",maxWidth:cn},ref:dt,children:b.jsx(b.Fragment,{children:A&&S?b.jsx(w1,{src:a,dashLib:S,options:u,onError:f,previewTime:ut,isHovering:W}):j?b.jsx(D1,{src:a,options:u,onError:f,previewTime:ut,isHovering:W}):s?b.jsx(M1,{src:a,hlsLib:s,options:u,onError:f,previewTime:ut,isHovering:W}):null})}),W&&!y.isLive&&b.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Gi(I)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:Z,children:Ya.formatTime(ut)})]})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:b.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}%`}})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:b.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${M<1?1:M}%`},children:b.jsx("div",{style:{position:"relative"},children:b.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),b.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:b.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:M,onPointerDown:at=>{if(nt)return;g({isSeeked:!0}),H(!0);const gt=fn(at);gt!==null&&U(Gi(gt))},onPointerUp:()=>{if(nt)return;H(!1);const at=D*(M/100);p(at)},onChange:at=>{if(nt)return;const gt=Number(at.currentTarget.value),Ht=Number.isNaN(gt)?0:gt;U(Gi(Ht))},disabled:nt||D===0})})]})})}var od={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ud=mi.createContext&&mi.createContext(od),j1=["attr","size","title"];function z1(n,a){if(n==null)return{};var s=B1(n,a),r,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(u=0;u<f.length;u++)r=f[u],!(a.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(s[r]=n[r])}return s}function B1(n,a){if(n==null)return{};var s={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a.indexOf(r)>=0)continue;s[r]=n[r]}return s}function ns(){return ns=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])}return n},ns.apply(this,arguments)}function cd(n,a){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),s.push.apply(s,r)}return s}function is(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?cd(Object(s),!0).forEach(function(r){O1(n,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):cd(Object(s)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(s,r))})}return n}function O1(n,a,s){return a=L1(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function L1(n){var a=V1(n,"string");return typeof a=="symbol"?a:a+""}function V1(n,a){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var r=s.call(n,a);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function fd(n){return n&&n.map((a,s)=>mi.createElement(a.tag,is({key:s},a.attr),fd(a.child)))}function Nt(n){return a=>mi.createElement(N1,ns({attr:is({},n.attr)},a),fd(n.child))}function N1(n){var a=s=>{var{attr:r,size:u,title:f}=n,d=z1(n,j1),h=u||s.size||"1em",y;return s.className&&(y=s.className),n.className&&(y=(y?y+" ":"")+n.className),mi.createElement("svg",ns({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,r,d,{className:y,style:is(is({color:n.color||s.color},s.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),f&&mi.createElement("title",null,f),n.children)};return ud!==void 0?mi.createElement(ud.Consumer,null,s=>a(s)):a(od)}function U1(n){return Nt({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:[]}]})(n)}function H1(n){return Nt({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:[]}]})(n)}function _1(n){return Nt({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:[]}]})(n)}function k1(n){return Nt({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:[]}]})(n)}function G1(n){return Nt({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:[]}]})(n)}function dd(n){return Nt({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:[]}]})(n)}function hd(n){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(n)}function Y1(n){return Nt({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:[]}]})(n)}function md(n){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m6 18 8.5-6L6 6v12zM16 6v12h2V6h-2z"},child:[]}]})(n)}function pd(n){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6h2v12H6zm3.5 6 8.5 6V6z"},child:[]}]})(n)}function q1(n){return Nt({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:[]}]})(n)}function yd(n){return Nt({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:[]}]})(n)}function gd(n){return Nt({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:[]}]})(n)}function vd(n){return Nt({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:[]}]})(n)}function bd(n){return Nt({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:[]}]})(n)}function Sd(n){return Nt({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:[]}]})(n)}function xd(n){return Nt({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:[]}]})(n)}function as(n){return Nt({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:[]}]})(n)}function qa(n){return Nt({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:[]}]})(n)}function P1(n){return Nt({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:[]}]})(n)}function X1(n){return Nt({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:[]}]})(n)}function K1(n){return Nt({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:[]}]})(n)}function Td(n){return Nt({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:[]}]})(n)}function Re(n){const a=n.noBg??!1;return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
|
|
10
|
+
|
|
11
|
+
.obtn {
|
|
12
|
+
aspect-ratio: 1/1;
|
|
13
|
+
height: 100%;
|
|
14
|
+
border-radius: 500px;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
padding:0.5em;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.obtnNoBg {
|
|
22
|
+
aspect-ratio: 1/1;
|
|
23
|
+
height: 100%;
|
|
24
|
+
border-radius: 500px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding:0.5em;
|
|
29
|
+
}
|
|
30
|
+
.obtnNoBg:hover {
|
|
31
|
+
background-color: rgba(37, 37, 37, 0.45);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
`}),b.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:n.children})]})}function F1(n){const a=n.noPadding??!1,s=n.cap??0,r={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative"};return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.obtn-group {
|
|
38
|
+
background-color: rgba(37, 37, 37, 0.45);
|
|
39
|
+
height: 100%;
|
|
40
|
+
border-radius: 500px;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
backdrop-filter: blur(5px);
|
|
45
|
+
padding-left: 0.5rem;
|
|
46
|
+
padding-right: 0.5rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.obtn-group-nobg:hover {
|
|
50
|
+
background-color: rgba(37, 37, 37, 0.45);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.obtn-group-nobg {
|
|
54
|
+
height: 100%;
|
|
55
|
+
border-radius: 500px;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
padding-left: 0.5rem;
|
|
60
|
+
padding-right: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.obtn-group:hover {
|
|
64
|
+
background-color: rgba(37, 37, 37, 0.65);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tra200 {
|
|
68
|
+
transition: all 0.2s ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
`}),b.jsx("div",{style:{...r,...n.style??{}},className:n.noBg?"obtn-group-nobg":"obtn-group",children:n.children})]})}function Pa(n){return b.jsx(F1,{...n})}const _e={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},Q1={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},Ed={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer",zoom:.5},Md={border:0,background:"transparent"},Z1={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"},I1={flex:1},J1={display:"flex",alignItems:"center",gap:6},W1={padding:0,display:"flex",alignItems:"center",gap:6},ls={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},rn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Hn={flex:1,justifyContent:"start",display:"flex"},io={display:"flex",alignItems:"center",gap:5},ss={fontSize:"0.9rem",opacity:.6};function Ad({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{play:d,pause:h}=ie();return f.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?r?.pause??"일시정지":r?.play??"재생"})}),b.jsx("button",{type:"button",onClick:f.isPlaying?h:d,style:_e,children:f.isEnded?b.jsx(Td,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:f.isPlaying?b.jsx(dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(hd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function $1({size:n=80,weight:a="fill",color:s="#ffffff",isPortrait:r=!1,isMobile:u=!1,next:f=()=>{},prev:d=()=>{},pidx:h=0,playlistCnt:y=0}){const[g]=Gt(),[p,S]=T.useState(0),{play:v,pause:A}=ie();return T.useEffect(()=>{S(j=>j+1)},[g.isPlaying]),g.isSeekOverlayVisible?null:b.jsxs("div",{className:`vpe-big-play-btn ${g.isEnded?"":"center-play-btn-anim"}`,children:[u&&y>1&&b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{disabled:h===0,type:"button",style:Ed,onClick:()=>{d()},children:b.jsx(pd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})}),b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{type:"button",style:Q1,onClick:()=>{(u||r)&&(g.isPlaying?A():v())},children:g.isEnded?b.jsx(Td,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:g.isPlaying?b.jsx(dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(hd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}),u&&y>1&&b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{type:"button",disabled:h===y-1,style:Ed,onClick:()=>{f()},children:b.jsx(md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})]},p)}function tb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,next:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",style:_e,disabled:u===f-1,onClick:()=>{d()},children:b.jsx(md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function eb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",disabled:u===0,onClick:()=>{d()},style:_e,children:b.jsx(pd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function nb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Gt(),{seekTo:d}=ie(),h=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const y=()=>{if(f.isLive&&!f.isDvr)return;const p=(f.currentTime??0)-h;d(Math.max(0,p))};return b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:y,style:_e,children:b.jsx(Y1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function ib({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Gt(),{seekTo:d}=ie(),h=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const y=()=>{if(f.isLive&&!f.isDvr)return;const g=f.currentTime??0,p=f.duration??0,S=g+h,v=Number.isFinite(p)&&p>0?Math.min(S,p):Math.max(0,S);d(v)};return b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:y,style:_e,children:b.jsx(G1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function ab({color:n="#ffffff"}){const[a]=Gt();return a.isSeekOverlayVisible?null:b.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:n},children:Ya.formatTime(a.currentTime??0)||0})}function lb({color:n="#ffffff"}){const[a]=Gt();return a.isSeekOverlayVisible?null:b.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:n},children:Ya.formatTime(a.duration??0)||0})}function sb({color:n="#ffffff"}){const[a]=Gt(),{seekTo:s}=ie();if(a.isSeekOverlayVisible)return null;const u=(a.bufferedEnd??a.buffered??0)||a.duration||0,f=!!a.isLive,h=f&&u>0?Math.abs((a.currentTime??0)-u)<10:f,y=()=>{f&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return b.jsx(b.Fragment,{children:a.isLive?b.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:[b.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:h?"#ff0000":n,display:"inline-block"}}),b.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"})]}):b.jsxs(b.Fragment,{children:[b.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:Ya.formatTime(a.currentTime??0)||0}),b.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),b.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:Ya.formatTime(a.duration??0)||0})]})})}function rb({text:n={},color:a="#ffffff"}){const[s]=Gt(),{selectQualityLevel:r}=ie(),u=T.useRef(!1),f=s.currentLevel??-1,d=s.levels?.find(y=>y.index===f),h=s.isAutoLevel?n.auto:d?.name??(d?.height?`${d.height}p`:`${f}`);return s.isSeekOverlayVisible?null:b.jsxs("div",{style:{position:"relative"},children:[u.current&&b.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:b.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[b.jsx("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(-1)},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:n?.auto??"Auto"})}),[...s.levels??[]].sort((y,g)=>(g.height??0)-(y.height??0)).map(y=>{const g=y.name??(y.height?`${y.height}p`:`${y.index}`);return b.jsx("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(y.index),u.current=!1},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:g})},y.index)})]})}),b.jsx("button",{type:"button",onClick:()=>{u.current=!u.current},style:{..._e,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${a}`},children:b.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:h})})]})}function ob({color:n="#ffffff",title:a="",profileImage:s="",profileName:r="",createdAt:u=""}){return b.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${n}`,gap:10,padding:"0.4rem"},children:[s&&b.jsx("div",{children:b.jsx("img",{src:s,alt:r,style:{borderRadius:"100%",width:50,height:50,objectFit:"cover",border:"1px solid transparent"}})}),b.jsxs("div",{style:{flex:1},children:[b.jsx("div",{style:{marginBottom:"0.2rem"},children:a}),b.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.8rem",opacity:.5},children:[b.jsx("div",{children:r}),b.jsx("div",{children:u})]})]})]})}function Cd(n){const s={flex:1,display:"flex",justifyContent:n.align?n.align=="left"?"start":n.align=="right"?"end":"center":"start",alignItems:"center"};return b.jsx("div",{style:{...s,...n.style??{}},children:n.children})}function ub(n){return Nt({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:[]}]})(n)}function cb(n){return Nt({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:[]}]})(n)}function fb({size:n=25,weight:a="fill",color:s="#ffffff",options:r={},text:u={},pos:f="left"}){const[d,h]=Gt(),{toggleFullscreen:y}=ie(),g=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);return T.useEffect(()=>{const p=()=>{g&&!r.iosFullscreenNativeMode||h({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",p),p(),()=>{document.removeEventListener("fullscreenchange",p)}},[h]),d.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?u?.fullOff??"전체화면 해제":u?.fullOn??"전체화면"})}),b.jsx("button",{type:"button",onClick:()=>y(r),style:_e,children:d.isFullscreen?b.jsx(X1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(K1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function db({size:n=25,color:a="#ffffff",text:s={},pos:r="left"}){const[u]=Gt(),{toggleSubtitle:f}=ie();return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:u.hasSubtitle&&b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),b.jsx("button",{type:"button",onClick:f,style:_e,children:u.isSubtitle?b.jsx(yd,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(k1,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function hb({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{toggleMute:d}=ie(),h=f.isVolume??0;return f.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:d,style:_e,children:b.jsxs(b.Fragment,{children:[(h===0||f.isMuted)&&b.jsx(bd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=5&&h<=10&&!f.isMuted&&b.jsx(vd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=11&&h<=50&&!f.isMuted&&b.jsx(gd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=51&&!f.isMuted&&b.jsx(Sd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function mb({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{setVolume:d,toggleMute:h}=ie(),y=f.isVolume??0,g=f.isMuted?0:y;return f.isSeekOverlayVisible?null:b.jsxs("div",{className:"VolumeBtnWrap",children:[b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:h,style:_e,children:b.jsxs(b.Fragment,{children:[(y===0||f.isMuted)&&b.jsx(bd,{style:{fontSize:n,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&&!f.isMuted&&b.jsx(vd,{style:{fontSize:n,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&&!f.isMuted&&b.jsx(gd,{style:{fontSize:n,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&&!f.isMuted&&b.jsx(Sd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),b.jsx("div",{className:"vslideWrap",children:b.jsx("input",{type:"range",min:0,max:100,value:g,onChange:p=>{const S=Number(p.currentTarget.value);d(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function pb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const[u,f]=Gt(),d=u.isHd,h=u.is4k;return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),b.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!u.isSettingModal})},style:_e,children:[(d||h)&&b.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"16px",height:"13px",borderRadius:"2px"},children:d&&!h&&b.jsx(cb,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-2px",marginTop:"-4px"}})||h&&b.jsx(ub,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),b.jsx(_1,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function yb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const{togglePictureInPicture:u}=ie(),[f]=Gt();return f.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),b.jsx("button",{type:"button",onClick:()=>{u()},style:_e,children:b.jsx(H1,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function gb(n){const{useTouch:a}=ie();return b.jsx("div",{style:{position:"absolute",zIndex:2,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.2)",display:"flex",alignItems:"center",justifyContent:"center",background:`url(${n.poster}) center / ${n.options?.objectFit||"contain"} no-repeat`},onClick:()=>{a()},onTouchStart:()=>{a()},children:b.jsx("div",{children:b.jsx(Pa,{noPadding:!0,children:b.jsx(Ad,{size:80})})})})}function ao(n){const[a]=Gt(),{poster:s,options:r}=n,u={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${r?.objectFit||"contain"} no-repeat`};return b.jsx(b.Fragment,{children:a.isLoading&&b.jsx("div",{style:u,children:b.jsx("div",{className:"ncplayer-spinner"})})})}const wd=()=>({lastTapTime:0,count:0,timer:null});function vb({seekSeconds:n=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:r}){const{seekTo:u,videoEl:f}=ie(),[,d]=Gt(),[h,y]=T.useState(null),[g,p]=T.useState(null),S=T.useRef({left:null,right:null}),v=T.useRef({left:wd(),right:wd()});T.useEffect(()=>()=>{d({isSeekOverlayVisible:!1});const{left:C,right:U}=v.current;C.timer&&window.clearTimeout(C.timer),U.timer&&window.clearTimeout(U.timer);const{left:V,right:K}=S.current;V&&window.clearTimeout(V),K&&window.clearTimeout(K)},[d]),T.useEffect(()=>{d({isSeekOverlayVisible:h!==null||g!==null})},[h,g,d]);const A=(C,U)=>{const V=Math.floor(U/2);if(V<=0){C=="left"?y(null):p(null);return}const K=V*n*(C=="left"?-1:1);C=="left"?y(K):p(K);const Q=S.current;Q[C]&&window.clearTimeout(Q[C]),Q[C]=window.setTimeout(()=>{C=="left"?y(null):p(null),Q[C]=null},s+200)},j=(C,U)=>{if(!f||U<=0)return;const V=f.currentTime||0,K=U*n*(C=="left"?-1:1);u(V+K)},L=C=>{const U=v.current[C],V=Date.now(),K=V-U.lastTapTime<=a;U.count=K?U.count+1:1,U.lastTapTime=V,A(C,U.count),U.timer&&window.clearTimeout(U.timer),U.timer=window.setTimeout(()=>{const Q=Math.floor(U.count/2);if(U.count=0,U.timer=null,Q<=0){r?.(C);return}j(C,Q)},s)},H=C=>U=>{U.preventDefault(),U.stopPropagation(),L(C)};return b.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"20%",height:"calc(100% - 44%)"},children:[b.jsx("style",{children:`
|
|
72
|
+
@keyframes vpe-fade-in-left {
|
|
73
|
+
from { opacity: 0; transform: translateX(-6px); }
|
|
74
|
+
to { opacity: 1; transform: translateX(0); }
|
|
75
|
+
}
|
|
76
|
+
@keyframes vpe-fade-in-right {
|
|
77
|
+
from { opacity: 0; transform: translateX(6px); }
|
|
78
|
+
to { opacity: 1; transform: translateX(0); }
|
|
79
|
+
}
|
|
80
|
+
`}),h!==null&&b.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:[b.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:b.jsx(xd,{style:{fontSize:"0.95rem"}})}),b.jsx("div",{children:h>0?`+${h}s`:`${h}s`})]}),g!==null&&b.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:[b.jsx("div",{children:g>0?`+${g}s`:`${g}s`}),b.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:b.jsx(as,{style:{fontSize:"0.95rem"}})})]}),b.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:H("left")}),b.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:H("right")})]})}function bb(n){const[a,s]=Gt(),{playBackRate:r,selectQualityLevel:u}=ie(),{text:f}=n,d=n.vtt??n.src?.vtt??[],h=a.currentLevel??-1,y=a.levels?.find(C=>C.index===h),g=a.isAutoLevel?y?.height?f.auto+` (${y?.height}p)`:"":y?.name??(y?.height?`${y.height}p`:`${h}`),[p,S]=T.useState(0),[v,A]=T.useState("forward"),[j,L]=T.useState(!1),H=T.useCallback(C=>{A(C>p?"forward":"back"),S(C),L(!0)},[p]);return T.useEffect(()=>{if(!j)return;const C=window.setTimeout(()=>{L(!1)},200);return()=>window.clearTimeout(C)},[j]),b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
|
|
81
|
+
|
|
82
|
+
.tra200 {
|
|
83
|
+
transition: all 0.2s ease;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes vpe-setting-fadein {
|
|
87
|
+
from {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
to {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes vpe-setting-slidein {
|
|
96
|
+
from {
|
|
97
|
+
transform: translateY(24px);
|
|
98
|
+
}
|
|
99
|
+
to {
|
|
100
|
+
transform: translateY(0);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@keyframes vpe-menu-slidein {
|
|
105
|
+
from {
|
|
106
|
+
opacity: 0;
|
|
107
|
+
transform: translateX(var(--vpe-menu-slide-from));
|
|
108
|
+
}
|
|
109
|
+
to {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
transform: translateX(0);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.vpe-setting-modal{
|
|
116
|
+
position: fixed;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
right: 0;
|
|
120
|
+
bottom: 0;
|
|
121
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
122
|
+
display: flex;
|
|
123
|
+
|
|
124
|
+
z-index: 1000;
|
|
125
|
+
opacity: 0;
|
|
126
|
+
animation: vpe-setting-fadein 0.2s ease forwards;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.vpe-setting-modal .vpe-setting-content{
|
|
130
|
+
min-width: 320px;
|
|
131
|
+
min-height: 40dvh;
|
|
132
|
+
background-color: #4c4c4c;
|
|
133
|
+
color:#ffffff;
|
|
134
|
+
transform: translateY(24px);
|
|
135
|
+
animation: vpe-setting-slidein 0.25s ease forwards;
|
|
136
|
+
border-radius: 15px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vpe-setting-modal button{
|
|
140
|
+
color:#ffffff;
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.vpe-modal-menu{
|
|
145
|
+
position: relative;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.vpe-modal-menu-panel{
|
|
150
|
+
animation: vpe-menu-slidein 0.2s ease;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.vpe-modal-menu-forward{
|
|
154
|
+
--vpe-menu-slide-from: 24px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.vpe-modal-menu-back{
|
|
158
|
+
--vpe-menu-slide-from: -24px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
`}),b.jsx("div",{className:"vpe-setting-modal",children:b.jsxs("div",{className:"vpe-setting-content",children:[b.jsxs("div",{style:Z1,children:[b.jsxs("div",{style:I1,children:[p===0&&b.jsx("div",{children:f.setting}),p>0&&b.jsx("div",{style:J1,children:b.jsx("div",{children:b.jsxs("button",{onClick:()=>{H(0)},type:"button",style:{...Md,...W1},children:[b.jsx(xd,{style:{fontSize:"12px"},color:"#ffffff"}),b.jsxs("div",{children:[p==1&&f.quality,p==2&&f.playbackRate,p==3&&f.captions]})]})})})]}),b.jsx("div",{children:b.jsx("button",{type:"button",style:Md,onClick:()=>{s({isSettingModal:!1})},children:b.jsx(P1,{size:25,color:"#ffffff"})})})]}),b.jsxs("div",{className:"vpe-modal-menu",children:[p===0&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[g&&b.jsxs("button",{type:"button",style:rn,className:"vpe-menu-item",onClick:()=>{H(1)},children:[b.jsx("div",{children:b.jsx(U1,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.quality}),b.jsxs("div",{style:io,children:[b.jsx("span",{style:ss,children:g}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{H(2)},children:[b.jsx("div",{children:b.jsx(q1,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.playbackRate}),b.jsxs("div",{style:io,children:[b.jsxs("span",{style:ss,children:[a.playbackRate,"x"]}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{H(3)},children:[b.jsx("div",{children:b.jsx(yd,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.captions}),b.jsxs("div",{style:io,children:[b.jsx(b.Fragment,{children:a.isSubtitle?b.jsx(b.Fragment,{children:d.map((C,U)=>b.jsx("span",{children:a.subTitleIdx===U&&b.jsx("span",{style:ss,children:C.label})},`${C.id}-${C.src}`))}):b.jsx("span",{style:ss,children:f.notUse})}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},p),p===1&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{u("auto")},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:f.auto})]}),[...a.levels??[]].sort((C,U)=>(U.height??0)-(C.height??0)).map(C=>{const U=C.name??(C.height?`${C.height}p`:`${C.index}`);return b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{u(C.index)},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:!a.isAutoLevel&&a.currentLevel===C.index?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:U})]},C.index)})]},p),p===2&&b.jsx("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:(n.options?.playRateSetting??[]).map(C=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(C),s({playbackRate:C}),H(0)},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.playbackRate===C?"#ffffff":"transparent"})}),b.jsxs("div",{style:Hn,children:[C,"x"]})]},C))},p),p===3&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{s({isSubtitle:!1})},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),b.jsx("div",{style:Hn,children:f.notUse})]}),d.map((C,U)=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:U})},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isSubtitle&&a.subTitleIdx===U?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:C.label})]},`${C.id}-${C.src}`))]},p)]})]})})]})}function Sb(){return b.jsx(b.Fragment,{children:b.jsx("style",{children:`
|
|
162
|
+
|
|
163
|
+
*,
|
|
164
|
+
*::before,
|
|
165
|
+
*::after {
|
|
166
|
+
box-sizing: border-box;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.vpe-ios-fullscreen{
|
|
170
|
+
position: fixed;
|
|
171
|
+
top: 0;
|
|
172
|
+
left: 0;
|
|
173
|
+
right: 0;
|
|
174
|
+
bottom: 0;
|
|
175
|
+
z-index: 9999999;
|
|
176
|
+
max-height: 100dvh;
|
|
177
|
+
max-width: 100dvw;
|
|
178
|
+
width:100dvw;
|
|
179
|
+
height:100dvh;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
@media (max-width: 768px) {
|
|
185
|
+
|
|
186
|
+
video::cue {
|
|
187
|
+
font-size: 1rem;
|
|
188
|
+
line-height: 1;
|
|
189
|
+
text-shadow: 0 2px 6px rgba(0,0,0,0.8);
|
|
190
|
+
background: rgba(0,0,0,0.6);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
.obtn, .obtn-group, .obtn-group-nobg, .obtn-group-nobg {
|
|
195
|
+
zoom:0.8;
|
|
196
|
+
font-family: -apple-system,
|
|
197
|
+
BlinkMacSystemFont,
|
|
198
|
+
"Apple SD Gothic Neo",
|
|
199
|
+
system-ui,
|
|
200
|
+
"Helvetica Neue",
|
|
201
|
+
Arial,
|
|
202
|
+
sans-serif;
|
|
203
|
+
}
|
|
204
|
+
.seekSliderWrapper{
|
|
205
|
+
font-family: -apple-system,
|
|
206
|
+
BlinkMacSystemFont,
|
|
207
|
+
"Apple SD Gothic Neo",
|
|
208
|
+
system-ui,
|
|
209
|
+
"Helvetica Neue",
|
|
210
|
+
Arial,
|
|
211
|
+
sans-serif;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.vpe-big-play-btn{
|
|
215
|
+
zoom:0.7
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.center-play-btn-anim {
|
|
219
|
+
display: inline-flex;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.vpe-setting-modal{
|
|
223
|
+
min-width: 100%;
|
|
224
|
+
width:100%;
|
|
225
|
+
|
|
226
|
+
justify-content: center;
|
|
227
|
+
align-items: end;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.vpe-setting-modal .vpe-setting-content{
|
|
231
|
+
width:100%;
|
|
232
|
+
border-bottom-right-radius: 0;
|
|
233
|
+
border-bottom-left-radius: 0;
|
|
234
|
+
padding:0.5rem
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.seekSliderThumbVideo{
|
|
238
|
+
width: 8em;
|
|
239
|
+
top: -7em
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
@media (min-width: 768px) {
|
|
243
|
+
|
|
244
|
+
video::cue {
|
|
245
|
+
font-size: 1.5rem;
|
|
246
|
+
color: #fff;
|
|
247
|
+
background: rgba(0,0,0,0.65);
|
|
248
|
+
line-height: 0.5;
|
|
249
|
+
text-shadow: 0 2px 6px rgba(0,0,0,0.8);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.obtn, .obtn-group, .obtn-group-nobg, .obtn-group-nobg {
|
|
253
|
+
zoom:0.8
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.center-play-btn-anim {
|
|
257
|
+
display: inline-flex;
|
|
258
|
+
animation-delay: 0.5s;
|
|
259
|
+
animation: center-play-btn 1.6s ease forwards;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.vpe-setting-modal{
|
|
263
|
+
min-width: 520px;
|
|
264
|
+
align-items: center;
|
|
265
|
+
justify-content: center;
|
|
266
|
+
height: 100%;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vpe-setting-modal .vpe-setting-content{
|
|
270
|
+
|
|
271
|
+
padding:0.5rem
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.seekSliderThumbVideo{
|
|
275
|
+
width: 12em;
|
|
276
|
+
top: -9em
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@keyframes center-play-btn {
|
|
281
|
+
0% {
|
|
282
|
+
opacity: 0;
|
|
283
|
+
transform: scale(0.8);
|
|
284
|
+
}
|
|
285
|
+
12.5% {
|
|
286
|
+
opacity: 1;
|
|
287
|
+
transform: scale(1);
|
|
288
|
+
}
|
|
289
|
+
75% {
|
|
290
|
+
opacity: 1;
|
|
291
|
+
transform: scale(1);
|
|
292
|
+
}
|
|
293
|
+
100% {
|
|
294
|
+
opacity: 0;
|
|
295
|
+
transform: scale(0.5);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
input[type="range"] {
|
|
301
|
+
-webkit-appearance: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* Chrome / Safari / Edge */
|
|
305
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
306
|
+
-webkit-appearance: none;
|
|
307
|
+
appearance: none;
|
|
308
|
+
background: #ffffff; /* 파란색 */
|
|
309
|
+
border-radius: 50%;
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
border: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.seekSliderWrapper .seekSliderBg{
|
|
315
|
+
height:5px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.seekSliderWrapper:hover .seekSliderBg{
|
|
319
|
+
height:8px;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.seekSlider::-webkit-slider-thumb {
|
|
323
|
+
-webkit-appearance: none;
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
height:10px;
|
|
326
|
+
width:10px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.seekSlider::-moz-range-thumb {
|
|
330
|
+
-webkit-appearance: none;
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
height:10px;
|
|
333
|
+
width:10px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.tra200{
|
|
337
|
+
transition: all 0.2s ease;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.seekSlider {
|
|
341
|
+
--seekSliderThumbScale: 1; /* 기본 스케일 */
|
|
342
|
+
background-color: transparent !important;
|
|
343
|
+
transition: all 0.2s ease;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.seekSlider::-webkit-slider-thumb {
|
|
347
|
+
-webkit-appearance: none;
|
|
348
|
+
appearance: none;
|
|
349
|
+
background: transparent !important;
|
|
350
|
+
width: 12px;
|
|
351
|
+
height: 12px;
|
|
352
|
+
border-radius: 50%;
|
|
353
|
+
cursor: pointer;
|
|
354
|
+
border: none;
|
|
355
|
+
transform: scale(var(--seekSliderThumbScale));
|
|
356
|
+
transition: transform 0.15s ease;
|
|
357
|
+
}
|
|
358
|
+
.seekSliderWrapper:hover .seekSlider::-webkit-slider-thumb {
|
|
359
|
+
/*background: var(--seekSliderColor) !important;*/
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Hover 시 input 전체에 hover를 걸어서 thumb 확대 */
|
|
363
|
+
.seekSlider:hover::-webkit-slider-thumb {
|
|
364
|
+
--seekSliderThumbScale: 1.4;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.seekSliderWrapper .seekSliderThumb{
|
|
368
|
+
width: 14px;
|
|
369
|
+
height: 14px;
|
|
370
|
+
min-width: 14px;
|
|
371
|
+
min-height: 14px;
|
|
372
|
+
|
|
373
|
+
border-radius: 50%
|
|
374
|
+
}
|
|
375
|
+
.seekSliderWrapper:hover .seekSliderThumb{
|
|
376
|
+
/*display: none;*/
|
|
377
|
+
width: 18px;
|
|
378
|
+
height: 18px;
|
|
379
|
+
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.seekSliderWrapper .seekSliderThumbTime{
|
|
383
|
+
opacity: 0;
|
|
384
|
+
}
|
|
385
|
+
.seekSliderWrapper:hover .seekSliderThumbTime{
|
|
386
|
+
opacity: 1;
|
|
387
|
+
}
|
|
388
|
+
.seekSliderWrapper .seekSliderThumbVideo{
|
|
389
|
+
opacity: 0;
|
|
390
|
+
}
|
|
391
|
+
.seekSliderWrapper:hover .seekSliderThumbVideo{
|
|
392
|
+
opacity: 1;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.defObj {
|
|
396
|
+
display: inline-flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
margin: 0;
|
|
399
|
+
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.VolumSlide {
|
|
403
|
+
|
|
404
|
+
width:100%;
|
|
405
|
+
height:5px;
|
|
406
|
+
background-color: #ffffff;
|
|
407
|
+
border-radius: 50px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.VolumSlide::-webkit-slider-thumb {
|
|
411
|
+
-webkit-appearance: none;
|
|
412
|
+
background-color: #ffffff;
|
|
413
|
+
width:14px;
|
|
414
|
+
height: 14px;
|
|
415
|
+
border-radius: 100%;
|
|
416
|
+
cursor: pointer;
|
|
417
|
+
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.VolumSlide::-moz-range-thumb {
|
|
421
|
+
background-color: #ffffff;
|
|
422
|
+
width:14px;
|
|
423
|
+
height: 14px;
|
|
424
|
+
border-radius: 100%;
|
|
425
|
+
cursor: pointer;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.VolumeBtnWrap {
|
|
429
|
+
min-width: 50px;
|
|
430
|
+
display: flex;
|
|
431
|
+
justify-content: center;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.VolumeBtnWrap:hover {
|
|
435
|
+
aspect-ratio: unset;
|
|
436
|
+
padding-right: 0.8rem;
|
|
437
|
+
padding-left: 0.8rem;
|
|
438
|
+
|
|
439
|
+
}
|
|
440
|
+
.VolumeBtnWrap .vslideWrap{
|
|
441
|
+
display: flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
width: 0;
|
|
444
|
+
opacity: 0;
|
|
445
|
+
overflow: hidden;
|
|
446
|
+
transform: scaleX(0);
|
|
447
|
+
transform-origin: left;
|
|
448
|
+
transition: width 0.1s ease, opacity 0.1s ease, transform 0.1s ease;
|
|
449
|
+
pointer-events: none;
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
}
|
|
453
|
+
.VolumeBtnWrap:hover .vslideWrap{
|
|
454
|
+
width: 5rem;
|
|
455
|
+
opacity: 1;
|
|
456
|
+
transform: scaleX(1);
|
|
457
|
+
pointer-events: auto;
|
|
458
|
+
padding-right: 0.3rem;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.VolumeBtnWrap .VolumSlide{
|
|
462
|
+
opacity: 0;
|
|
463
|
+
}
|
|
464
|
+
.VolumeBtnWrap:hover .VolumSlide{
|
|
465
|
+
opacity: 1;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.VolumeBtnWrap{
|
|
469
|
+
display: flex;
|
|
470
|
+
gap:5px;
|
|
471
|
+
padding-left: 0.5rem;
|
|
472
|
+
padding-right: 0.3rem;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.VolumSlide{
|
|
476
|
+
height:5px;
|
|
477
|
+
width:100%;
|
|
478
|
+
border-radius: 50px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
.ncplayer-spinner,
|
|
484
|
+
.ncplayer-spinner:after{
|
|
485
|
+
border-radius:50%;
|
|
486
|
+
width:6em;
|
|
487
|
+
height:6em
|
|
488
|
+
}
|
|
489
|
+
.ncplayer-spinner{
|
|
490
|
+
font-size:10px;
|
|
491
|
+
position:absolute;
|
|
492
|
+
top:calc(50% - 3em);
|
|
493
|
+
left:calc(50% - 3em);
|
|
494
|
+
|
|
495
|
+
text-indent:-9999em;
|
|
496
|
+
border-top:.5em solid hsla(0,0%,100%,.2);
|
|
497
|
+
border-right:.5em solid hsla(0,0%,100%,.2);
|
|
498
|
+
border-bottom:.5em solid hsla(0,0%,100%,.2);
|
|
499
|
+
border-left:.5em solid #fff;
|
|
500
|
+
transform:translateZ(0);
|
|
501
|
+
-webkit-animation:load8 1.1s linear infinite;
|
|
502
|
+
animation:load8 1.1s linear infinite;
|
|
503
|
+
z-index:3
|
|
504
|
+
}
|
|
505
|
+
.ios-safe {
|
|
506
|
+
top: calc(50% - (3em + 10px) + env(safe-area-inset-top)) !important;
|
|
507
|
+
left: calc(50% - (3em + 5px)) !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
@-webkit-keyframes load8{
|
|
511
|
+
0%{
|
|
512
|
+
transform:rotate(0deg)
|
|
513
|
+
}
|
|
514
|
+
to{
|
|
515
|
+
transform:rotate(1turn)
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
@keyframes load8{
|
|
519
|
+
0%{
|
|
520
|
+
transform:rotate(0deg)
|
|
521
|
+
}
|
|
522
|
+
to{
|
|
523
|
+
transform:rotate(1turn)
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.vpe-menu-item{
|
|
528
|
+
background-color: transparent;
|
|
529
|
+
font-weight: 600;
|
|
530
|
+
}
|
|
531
|
+
.vpe-menu-item:hover{
|
|
532
|
+
background-color: rgba(255, 255, 255, 0.4);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
.vpe-popover-wrap{
|
|
537
|
+
position: relative;
|
|
538
|
+
}
|
|
539
|
+
.vpe-popover-wrap .vpe-popver{
|
|
540
|
+
position: absolute;
|
|
541
|
+
bottom:320%;
|
|
542
|
+
min-width: 120px;
|
|
543
|
+
display: none;
|
|
544
|
+
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.vpe-popover-wrap:hover .vpe-popver{
|
|
548
|
+
/*display: flex;*/
|
|
549
|
+
align-items: center;
|
|
550
|
+
justify-content: center;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
.vpe-popover-wrap.vp-left .vpe-popver{
|
|
555
|
+
left:-100%;
|
|
556
|
+
}
|
|
557
|
+
.vpe-popover-wrap.vp-right .vpe-popver{
|
|
558
|
+
left:-200%;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
.vpe-popover-wrap:hover .vpe-popver .vpe-popver-text{
|
|
565
|
+
color:#ffffff;
|
|
566
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
|
|
567
|
+
background-color: rgba(0, 0, 0, 0.63);
|
|
568
|
+
border-radius: 10px;
|
|
569
|
+
text-align: center;
|
|
570
|
+
padding:10px 15px;
|
|
571
|
+
font-size:13px
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.vpe-big-play-btn{
|
|
575
|
+
display:flex;
|
|
576
|
+
align-items: center;
|
|
577
|
+
gap:3rem;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.obtn button[disabled]{
|
|
581
|
+
opacity: 0.3;
|
|
582
|
+
cursor: not-allowed;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.vpe-popover-wrap button[disabled]{
|
|
586
|
+
opacity: 0.3;
|
|
587
|
+
cursor: not-allowed;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
`})})}const Dd=10,xb=n=>!n||!(n instanceof HTMLElement)?!1:n.isContentEditable?!0:n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement,Tb=()=>typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),Rd=n=>{if(!n||!(n instanceof HTMLElement))return null;const a=n.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},Eb=(n,a,s)=>{if(n)if(n.classList.contains("vpe-ios-fullscreen")){n.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=s.current;const r=document.getElementById("vpeIosFullscreenTmpDiv");r&&r.remove(),window.scrollY=a.current}else{n.classList.add("vpe-ios-fullscreen"),a.current=window.scrollY,s.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const r=document.createElement("div");r.id="vpeIosFullscreenTmpDiv",r.style.height="120dvh",document.body.appendChild(r),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},Mb=(n={})=>{const a=T.useRef(null),s=T.useRef(0),r=T.useRef("");T.useEffect(()=>{const u=f=>{a.current=Rd(f.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)}},[n.keyboardShortcut]),T.useEffect(()=>{const u=f=>{if(f.defaultPrevented||f.metaKey||f.ctrlKey||f.altKey||xb(f.target))return;const d=Rd(f.target)??a.current??document.querySelector(".vpe-root-wrap");if(!d)return;const h=d.querySelector("video");if(h instanceof HTMLVideoElement&&n.keyboardShortcut)switch(f.key){case" ":case"Spacebar":case"Space":{f.preventDefault(),h.paused?h.play():h.pause();break}case"ArrowRight":{const y=Math.max(0,Math.min(h.currentTime+Dd,h.duration||h.currentTime));h.currentTime=y;break}case"ArrowLeft":{const y=Math.max(0,Math.min(h.currentTime-Dd,h.duration||h.currentTime));h.currentTime=y;break}case"ㄹ":case"f":case"F":{if(Tb()){const g=h.webkitEnterFullscreen;if(typeof g=="function"){g.call(h);break}Eb(d,s,r);break}if(document.fullscreenElement){document.exitFullscreen?.();break}const y=d.querySelector(".vpe-fullscreen-target")||d;y instanceof HTMLElement&&y.requestFullscreen?.();break}case"ㅡ":case"m":case"M":{h.muted=!h.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n.keyboardShortcut])},lo=T.createContext({});function so(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const ro=typeof window<"u",jd=ro?T.useLayoutEffect:T.useEffect,rs=T.createContext(null);function oo(n,a){n.indexOf(a)===-1&&n.push(a)}function uo(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const gn=(n,a,s)=>s>a?a:s<n?n:s;let co=()=>{};const vn={},zd=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Bd(n){return typeof n=="object"&&n!==null}const Od=n=>/^0[^.\s]+$/u.test(n);function fo(n){let a;return()=>(a===void 0&&(a=n()),a)}const ke=n=>n,Ab=(n,a)=>s=>a(n(s)),Xa=(...n)=>n.reduce(Ab),Ka=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class ho{constructor(){this.subscriptions=[]}add(a){return oo(this.subscriptions,a),()=>uo(this.subscriptions,a)}notify(a,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(a,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const on=n=>n*1e3,Ge=n=>n/1e3;function Ld(n,a){return a?n*(1e3/a):0}const Vd=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,Cb=1e-7,wb=12;function Db(n,a,s,r,u){let f,d,h=0;do d=a+(s-a)/2,f=Vd(d,r,u)-n,f>0?s=d:a=d;while(Math.abs(f)>Cb&&++h<wb);return d}function Fa(n,a,s,r){if(n===a&&s===r)return ke;const u=f=>Db(f,0,1,n,s);return f=>f===0||f===1?f:Vd(u(f),a,r)}const Nd=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Ud=n=>a=>1-n(1-a),Hd=Fa(.33,1.53,.69,.99),mo=Ud(Hd),_d=Nd(mo),kd=n=>(n*=2)<1?.5*mo(n):.5*(2-Math.pow(2,-10*(n-1))),po=n=>1-Math.sin(Math.acos(n)),Gd=Ud(po),Yd=Nd(po),Rb=Fa(.42,0,1,1),jb=Fa(0,0,.58,1),qd=Fa(.42,0,.58,1),zb=n=>Array.isArray(n)&&typeof n[0]!="number",Pd=n=>Array.isArray(n)&&typeof n[0]=="number",Bb={linear:ke,easeIn:Rb,easeInOut:qd,easeOut:jb,circIn:po,circInOut:Yd,circOut:Gd,backIn:mo,backInOut:_d,backOut:Hd,anticipate:kd},Ob=n=>typeof n=="string",Xd=n=>{if(Pd(n)){co(n.length===4);const[a,s,r,u]=n;return Fa(a,s,r,u)}else if(Ob(n))return Bb[n];return n},os=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Lb(n,a){let s=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function y(p){d.has(p)&&(g.schedule(p),n()),p(h)}const g={schedule:(p,S=!1,v=!1)=>{const j=v&&u?s:r;return S&&d.add(p),j.has(p)||j.add(p),p},cancel:p=>{r.delete(p),d.delete(p)},process:p=>{if(h=p,u){f=!0;return}u=!0,[s,r]=[r,s],s.forEach(y),s.clear(),u=!1,f&&(f=!1,g.process(p))}};return g}const Vb=40;function Kd(n,a){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=os.reduce((V,K)=>(V[K]=Lb(f),V),{}),{setup:h,read:y,resolveKeyframes:g,preUpdate:p,update:S,preRender:v,render:A,postRender:j}=d,L=()=>{const V=vn.useManualTiming?u.timestamp:performance.now();s=!1,vn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(V-u.timestamp,Vb),1)),u.timestamp=V,u.isProcessing=!0,h.process(u),y.process(u),g.process(u),p.process(u),S.process(u),v.process(u),A.process(u),j.process(u),u.isProcessing=!1,s&&a&&(r=!1,n(L))},H=()=>{s=!0,r=!0,u.isProcessing||n(L)};return{schedule:os.reduce((V,K)=>{const Q=d[K];return V[K]=(J,Y=!1,k=!1)=>(s||H(),Q.schedule(J,Y,k)),V},{}),cancel:V=>{for(let K=0;K<os.length;K++)d[os[K]].cancel(V)},state:u,steps:d}}const{schedule:Yt,cancel:_n,state:oe,steps:yo}=Kd(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let us;function Nb(){us=void 0}const Se={now:()=>(us===void 0&&Se.set(oe.isProcessing||vn.useManualTiming?oe.timestamp:performance.now()),us),set:n=>{us=n,queueMicrotask(Nb)}},Fd=n=>a=>typeof a=="string"&&a.startsWith(n),Qd=Fd("--"),Ub=Fd("var(--"),go=n=>Ub(n)?Hb.test(n.split("/*")[0].trim()):!1,Hb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Qa={...Yi,transform:n=>gn(0,1,n)},cs={...Yi,default:1},Za=n=>Math.round(n*1e5)/1e5,vo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _b(n){return n==null}const kb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bo=(n,a)=>s=>!!(typeof s=="string"&&kb.test(s)&&s.startsWith(n)||a&&!_b(s)&&Object.prototype.hasOwnProperty.call(s,a)),Zd=(n,a,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(vo);return{[n]:parseFloat(u),[a]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},Gb=n=>gn(0,255,n),So={...Yi,transform:n=>Math.round(Gb(n))},pi={test:bo("rgb","red"),parse:Zd("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+So.transform(n)+", "+So.transform(a)+", "+So.transform(s)+", "+Za(Qa.transform(r))+")"};function Yb(n){let a="",s="",r="",u="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),a+=a,s+=s,r+=r,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const xo={test:bo("#"),parse:Yb,transform:pi.transform},Ia=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),kn=Ia("deg"),un=Ia("%"),ft=Ia("px"),qb=Ia("vh"),Pb=Ia("vw"),Id={...un,parse:n=>un.parse(n)/100,transform:n=>un.transform(n*100)},qi={test:bo("hsl","hue"),parse:Zd("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+un.transform(Za(a))+", "+un.transform(Za(s))+", "+Za(Qa.transform(r))+")"},Wt={test:n=>pi.test(n)||xo.test(n)||qi.test(n),parse:n=>pi.test(n)?pi.parse(n):qi.test(n)?qi.parse(n):xo.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?pi.transform(n):qi.transform(n),getAnimatableNone:n=>{const a=Wt.parse(n);return a.alpha=0,Wt.transform(a)}},Xb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kb(n){return isNaN(n)&&typeof n=="string"&&(n.match(vo)?.length||0)+(n.match(Xb)?.length||0)>0}const Jd="number",Wd="color",Fb="var",Qb="var(",$d="${}",Zb=/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 Ja(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=a.replace(Zb,y=>(Wt.test(y)?(r.color.push(f),u.push(Wd),s.push(Wt.parse(y))):y.startsWith(Qb)?(r.var.push(f),u.push(Fb),s.push(y)):(r.number.push(f),u.push(Jd),s.push(parseFloat(y))),++f,$d)).split($d);return{values:s,split:h,indexes:r,types:u}}function th(n){return Ja(n).values}function eh(n){const{split:a,types:s}=Ja(n),r=a.length;return u=>{let f="";for(let d=0;d<r;d++)if(f+=a[d],u[d]!==void 0){const h=s[d];h===Jd?f+=Za(u[d]):h===Wd?f+=Wt.transform(u[d]):f+=u[d]}return f}}const Ib=n=>typeof n=="number"?0:Wt.test(n)?Wt.getAnimatableNone(n):n;function Jb(n){const a=th(n);return eh(n)(a.map(Ib))}const Gn={test:Kb,parse:th,createTransformer:eh,getAnimatableNone:Jb};function To(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function Wb({hue:n,saturation:a,lightness:s,alpha:r}){n/=360,a/=100,s/=100;let u=0,f=0,d=0;if(!a)u=f=d=s;else{const h=s<.5?s*(1+a):s+a-s*a,y=2*s-h;u=To(y,h,n+1/3),f=To(y,h,n),d=To(y,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function fs(n,a){return s=>s>0?a:n}const Pt=(n,a,s)=>n+(a-n)*s,Eo=(n,a,s)=>{const r=n*n,u=s*(a*a-r)+r;return u<0?0:Math.sqrt(u)},$b=[xo,pi,qi],tS=n=>$b.find(a=>a.test(n));function nh(n){const a=tS(n);if(!a)return!1;let s=a.parse(n);return a===qi&&(s=Wb(s)),s}const ih=(n,a)=>{const s=nh(n),r=nh(a);if(!s||!r)return fs(n,a);const u={...s};return f=>(u.red=Eo(s.red,r.red,f),u.green=Eo(s.green,r.green,f),u.blue=Eo(s.blue,r.blue,f),u.alpha=Pt(s.alpha,r.alpha,f),pi.transform(u))},Mo=new Set(["none","hidden"]);function eS(n,a){return Mo.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function nS(n,a){return s=>Pt(n,a,s)}function Ao(n){return typeof n=="number"?nS:typeof n=="string"?go(n)?fs:Wt.test(n)?ih:lS:Array.isArray(n)?ah:typeof n=="object"?Wt.test(n)?ih:iS:fs}function ah(n,a){const s=[...n],r=s.length,u=n.map((f,d)=>Ao(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function iS(n,a){const s={...n,...a},r={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(r[u]=Ao(n[u])(n[u],a[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function aS(n,a){const s=[],r={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const f=a.types[u],d=n.indexes[f][r[f]],h=n.values[d]??0;s[u]=h,r[f]++}return s}const lS=(n,a)=>{const s=Gn.createTransformer(a),r=Ja(n),u=Ja(a);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Mo.has(n)&&!u.values.length||Mo.has(a)&&!r.values.length?eS(n,a):Xa(ah(aS(r,u),u.values),s):fs(n,a)};function lh(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Pt(n,a,s):Ao(n)(n,a)}const sS=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>Yt.update(a,s),stop:()=>_n(a),now:()=>oe.isProcessing?oe.timestamp:Se.now()}},sh=(n,a,s=10)=>{let r="";const u=Math.max(Math.round(a/s),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ds=2e4;function Co(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<ds;)a+=s,r=n.next(a);return a>=ds?1/0:a}function rS(n,a=100,s){const r=s({...n,keyframes:[0,a]}),u=Math.min(Co(r),ds);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Ge(u)}}const oS=5;function rh(n,a,s){const r=Math.max(a-oS,0);return Ld(s-n(r),a-r)}const Ft={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},wo=.001;function uS({duration:n=Ft.duration,bounce:a=Ft.bounce,velocity:s=Ft.velocity,mass:r=Ft.mass}){let u,f,d=1-a;d=gn(Ft.minDamping,Ft.maxDamping,d),n=gn(Ft.minDuration,Ft.maxDuration,Ge(n)),d<1?(u=g=>{const p=g*d,S=p*n,v=p-s,A=Do(g,d),j=Math.exp(-S);return wo-v/A*j},f=g=>{const S=g*d*n,v=S*s+s,A=Math.pow(d,2)*Math.pow(g,2)*n,j=Math.exp(-S),L=Do(Math.pow(g,2),d);return(-u(g)+wo>0?-1:1)*((v-A)*j)/L}):(u=g=>{const p=Math.exp(-g*n),S=(g-s)*n+1;return-wo+p*S},f=g=>{const p=Math.exp(-g*n),S=(s-g)*(n*n);return p*S});const h=5/n,y=fS(u,f,h);if(n=on(n),isNaN(y))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:n};{const g=Math.pow(y,2)*r;return{stiffness:g,damping:d*2*Math.sqrt(r*g),duration:n}}}const cS=12;function fS(n,a,s){let r=s;for(let u=1;u<cS;u++)r=r-n(r)/a(r);return r}function Do(n,a){return n*Math.sqrt(1-a*a)}const dS=["duration","bounce"],hS=["stiffness","damping","mass"];function oh(n,a){return a.some(s=>n[s]!==void 0)}function mS(n){let a={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...n};if(!oh(n,hS)&&oh(n,dS))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*gn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Ft.mass,stiffness:u,damping:f}}else{const s=uS(n);a={...a,...s,mass:Ft.mass},a.isResolvedFromDuration=!0}return a}function hs(n=Ft.visualDuration,a=Ft.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:y,damping:g,mass:p,duration:S,velocity:v,isResolvedFromDuration:A}=mS({...s,velocity:-Ge(s.velocity||0)}),j=v||0,L=g/(2*Math.sqrt(y*p)),H=d-f,C=Ge(Math.sqrt(y/p)),U=Math.abs(H)<5;r||(r=U?Ft.restSpeed.granular:Ft.restSpeed.default),u||(u=U?Ft.restDelta.granular:Ft.restDelta.default);let V;if(L<1){const Q=Do(C,L);V=J=>{const Y=Math.exp(-L*C*J);return d-Y*((j+L*C*H)/Q*Math.sin(Q*J)+H*Math.cos(Q*J))}}else if(L===1)V=Q=>d-Math.exp(-C*Q)*(H+(j+C*H)*Q);else{const Q=C*Math.sqrt(L*L-1);V=J=>{const Y=Math.exp(-L*C*J),k=Math.min(Q*J,300);return d-Y*((j+L*C*H)*Math.sinh(k)+Q*H*Math.cosh(k))/Q}}const K={calculatedDuration:A&&S||null,next:Q=>{const J=V(Q);if(A)h.done=Q>=S;else{let Y=Q===0?j:0;L<1&&(Y=Q===0?on(j):rh(V,Q,J));const k=Math.abs(Y)<=r,st=Math.abs(d-J)<=u;h.done=k&&st}return h.value=h.done?d:J,h},toString:()=>{const Q=Math.min(Co(K),ds),J=sh(Y=>K.next(Q*Y).value,Q,30);return Q+"ms "+J},toTransition:()=>{}};return K}hs.applyToOptions=n=>{const a=rS(n,100,hs);return n.ease=a.ease,n.duration=on(a.duration),n.type="keyframes",n};function Ro({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:y,restDelta:g=.5,restSpeed:p}){const S=n[0],v={done:!1,value:S},A=k=>h!==void 0&&k<h||y!==void 0&&k>y,j=k=>h===void 0?y:y===void 0||Math.abs(h-k)<Math.abs(y-k)?h:y;let L=s*a;const H=S+L,C=d===void 0?H:d(H);C!==H&&(L=C-S);const U=k=>-L*Math.exp(-k/r),V=k=>C+U(k),K=k=>{const st=U(k),bt=V(k);v.done=Math.abs(st)<=g,v.value=v.done?C:bt};let Q,J;const Y=k=>{A(v.value)&&(Q=k,J=hs({keyframes:[v.value,j(v.value)],velocity:rh(V,k,v.value),damping:u,stiffness:f,restDelta:g,restSpeed:p}))};return Y(0),{calculatedDuration:null,next:k=>{let st=!1;return!J&&Q===void 0&&(st=!0,K(k),Y(k)),Q!==void 0&&k>=Q?J.next(k-Q):(!st&&K(k),v)}}}function pS(n,a,s){const r=[],u=s||vn.mix||lh,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(a){const y=Array.isArray(a)?a[d]||ke:a;h=Xa(y,h)}r.push(h)}return r}function yS(n,a,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(co(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=pS(a,r,u),y=h.length,g=p=>{if(d&&p<n[0])return a[0];let S=0;if(y>1)for(;S<n.length-2&&!(p<n[S+1]);S++);const v=Ka(n[S],n[S+1],p);return h[S](v)};return s?p=>g(gn(n[0],n[f-1],p)):g}function gS(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const u=Ka(0,a,r);n.push(Pt(s,1,u))}}function vS(n){const a=[0];return gS(a,n.length-1),a}function bS(n,a){return n.map(s=>s*a)}function SS(n,a){return n.map(()=>a||qd).splice(0,n.length-1)}function Wa({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const u=zb(r)?r.map(Xd):Xd(r),f={done:!1,value:a[0]},d=bS(s&&s.length===a.length?s:vS(a),n),h=yS(d,a,{ease:Array.isArray(u)?u:SS(a,u)});return{calculatedDuration:n,next:y=>(f.value=h(y),f.done=y>=n,f)}}const xS=n=>n!==null;function jo(n,{repeat:a,repeatType:s="loop"},r,u=1){const f=n.filter(xS),h=u<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const TS={decay:Ro,inertia:Ro,tween:Wa,keyframes:Wa,spring:hs};function uh(n){typeof n.type=="string"&&(n.type=TS[n.type])}class zo{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 ES=n=>n/100;class Bo extends zo{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!==Se.now()&&this.tick(Se.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;uh(a);const{type:s=Wa,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:h}=a;const y=s||Wa;y!==Wa&&typeof h[0]!="number"&&(this.mixKeyframes=Xa(ES,lh(h[0],h[1])),h=[0,100]);const g=y({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=y({...a,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Co(g));const{calculatedDuration:p}=g;this.calculatedDuration=p,this.resolvedDuration=p+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=g}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:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:p,repeat:S,repeatType:v,repeatDelay:A,type:j,onUpdate:L,finalKeyframe:H}=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 C=this.currentTime-g*(this.playbackSpeed>=0?1:-1),U=this.playbackSpeed>=0?C<0:C>u;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let V=this.currentTime,K=r;if(S){const k=Math.min(this.currentTime,u)/h;let st=Math.floor(k),bt=k%1;!bt&&k>=1&&(bt=1),bt===1&&st--,st=Math.min(st,S+1),!!(st%2)&&(v==="reverse"?(bt=1-bt,A&&(bt-=A/h)):v==="mirror"&&(K=d)),V=gn(0,1,bt)*h}const Q=U?{done:!1,value:p[0]}:K.next(V);f&&(Q.value=f(Q.value));let{done:J}=Q;!U&&y!==null&&(J=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&J);return Y&&j!==Ro&&(Q.value=jo(p,this.options,H,this.speed)),L&&L(Q.value),Y&&this.finish(),Q}then(a,s){return this.finished.then(a,s)}get duration(){return Ge(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ge(a)}get time(){return Ge(this.currentTime)}set time(a){a=on(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(Se.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Ge(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=sS,startTime:s}=this.options;this.driver||(this.driver=a(u=>this.tick(u))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),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(Se.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 MS(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const yi=n=>n*180/Math.PI,Oo=n=>{const a=yi(Math.atan2(n[1],n[0]));return Lo(a)},AS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Oo,rotateZ:Oo,skewX:n=>yi(Math.atan(n[1])),skewY:n=>yi(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Lo=n=>(n=n%360,n<0&&(n+=360),n),ch=Oo,fh=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),dh=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),CS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fh,scaleY:dh,scale:n=>(fh(n)+dh(n))/2,rotateX:n=>Lo(yi(Math.atan2(n[6],n[5]))),rotateY:n=>Lo(yi(Math.atan2(-n[2],n[0]))),rotateZ:ch,rotate:ch,skewX:n=>yi(Math.atan(n[4])),skewY:n=>yi(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Vo(n){return n.includes("scale")?1:0}function No(n,a){if(!n||n==="none")return Vo(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=CS,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=AS,u=h}if(!u)return Vo(a);const f=r[a],d=u[1].split(",").map(DS);return typeof f=="function"?f(d):d[f]}const wS=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return No(s,a)};function DS(n){return parseFloat(n.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Pi),hh=n=>n===Yi||n===ft,RS=new Set(["x","y","z"]),jS=Pi.filter(n=>!RS.has(n));function zS(n){const a=[];return jS.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const gi={width:({x:n},{paddingLeft:a="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),height:({y:n},{paddingTop:a="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>No(a,"x"),y:(n,{transform:a})=>No(a,"y")};gi.translateX=gi.x,gi.translateY=gi.y;const vi=new Set;let Uo=!1,Ho=!1,_o=!1;function mh(){if(Ho){const n=Array.from(vi).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const u=zS(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ho=!1,Uo=!1,vi.forEach(n=>n.complete(_o)),vi.clear()}function ph(){vi.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Ho=!0)})}function BS(){_o=!0,ph(),mh(),_o=!1}class ko{constructor(a,s,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),Uo||(Uo=!0,Yt.read(ph),Yt.resolveKeyframes(mh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:u}=this;if(a[0]===null){const f=u?.get(),d=a[a.length-1];if(f!==void 0)a[0]=f;else if(r&&s){const h=r.readValue(s,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),u&&f===void 0&&u.set(a[0])}MS(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const OS=n=>n.startsWith("--");function LS(n,a,s){OS(a)?n.style.setProperty(a,s):n.style[a]=s}const VS=fo(()=>window.ScrollTimeline!==void 0),NS={};function US(n,a){const s=fo(n);return()=>NS[a]??s()}const yh=US(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$a=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,gh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$a([0,.65,.55,1]),circOut:$a([.55,0,1,.45]),backIn:$a([.31,.01,.66,-.59]),backOut:$a([.33,1.53,.69,.99])};function vh(n,a){if(n)return typeof n=="function"?yh()?sh(n,a):"ease-out":Pd(n)?$a(n):Array.isArray(n)?n.map(s=>vh(s,a)||gh.easeOut):gh[n]}function HS(n,a,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:y}={},g=void 0){const p={[a]:s};y&&(p.offset=y);const S=vh(h,u);Array.isArray(S)&&(p.easing=S);const v={delay:r,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return g&&(v.pseudoElement=g),n.animate(p,v)}function bh(n){return typeof n=="function"&&"applyToOptions"in n}function _S({type:n,...a}){return bh(n)&&yh()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class kS extends zo{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:y}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,co(typeof a.type!="string");const g=_S(a);this.animation=HS(s,r,u,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const p=jo(u,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(p):LS(s,r,p),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 Ge(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ge(a)}get time(){return Ge(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=on(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&&VS()?(this.animation.timeline=a,ke):s(this)}}const Sh={anticipate:kd,backInOut:_d,circInOut:Yd};function GS(n){return n in Sh}function YS(n){typeof n.ease=="string"&&GS(n.ease)&&(n.ease=Sh[n.ease])}const xh=10;class qS extends kS{constructor(a){YS(a),uh(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new Bo({...d,autoplay:!1}),y=on(this.finishedTime??this.time);s.setWithVelocity(h.sample(y-xh).value,h.sample(y).value,xh),h.stop()}}const Th=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Gn.test(n)||n==="0")&&!n.startsWith("url("));function PS(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function XS(n,a,s,r){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const f=n[n.length-1],d=Th(u,a),h=Th(f,a);return!d||!h?!1:PS(n)||(s==="spring"||bh(s))&&r}function Go(n){n.duration=0,n.type="keyframes"}const KS=new Set(["opacity","clipPath","filter","transform"]),FS=fo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function QS(n){const{motionValue:a,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:g}=a.owner.getProps();return FS()&&s&&KS.has(s)&&(s!=="transform"||!g)&&!y&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const ZS=40;class IS extends zo{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:y,motionValue:g,element:p,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Se.now();const v={autoplay:a,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:y,motionValue:g,element:p,...S},A=p?.KeyframeResolver||ko;this.keyframeResolver=new A(h,(j,L,H)=>this.onKeyframesResolved(j,L,v,!H),y,g,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,r,u){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:y,isHandoff:g,onUpdate:p}=r;this.resolvedAt=Se.now(),XS(a,f,d,h)||((vn.instantAnimations||!y)&&p?.(jo(a,r,s)),a[0]=a[a.length-1],Go(r),r.repeat=0);const v={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>ZS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:a},A=!g&&QS(v)?new qS({...v,element:v.motionValue.owner.current}):new Bo(v);A.finished.then(()=>this.notifyFinished()).catch(ke),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}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(),BS()),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 JS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WS(n){const a=JS.exec(n);if(!a)return[,];const[,s,r,u]=a;return[`--${s??r}`,u]}function Eh(n,a,s=1){const[r,u]=WS(n);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return zd(d)?parseFloat(d):d}return go(u)?Eh(u,a,s+1):u}function Yo(n,a){return n?.[a]??n?.default??n}const Mh=new Set(["width","height","top","left","right","bottom",...Pi]),$S={test:n=>n==="auto",parse:n=>n},Ah=n=>a=>a.test(n),Ch=[Yi,ft,un,kn,Pb,qb,$S],wh=n=>Ch.find(Ah(n));function tx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Od(n):!0}const ex=new Set(["brightness","contrast","saturate","opacity"]);function nx(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(vo)||[];if(!r)return n;const u=s.replace(r,"");let f=ex.has(a)?1:0;return r!==s&&(f*=100),a+"("+f+u+")"}const ix=/\b([a-z-]*)\(.*?\)/gu,qo={...Gn,getAnimatableNone:n=>{const a=n.match(ix);return a?a.map(nx).join(" "):n}},Dh={...Yi,transform:Math.round},Po={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,radius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,backgroundPositionX:ft,backgroundPositionY:ft,...{rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:cs,scaleX:cs,scaleY:cs,scaleZ:cs,skew:kn,skewX:kn,skewY:kn,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:Qa,originX:Id,originY:Id,originZ:ft},zIndex:Dh,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Dh},ax={...Po,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:qo,WebkitFilter:qo},Rh=n=>ax[n];function jh(n,a){let s=Rh(n);return s!==qo&&(s=Gn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const lx=new Set(["auto","none","0"]);function sx(n,a,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!lx.has(f)&&Ja(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of a)n[f]=jh(s,u)}class rx extends ko{constructor(a,s,r,u,f){super(a,s,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let g=a[y];if(typeof g=="string"&&(g=g.trim(),go(g))){const p=Eh(g,s.current);p!==void 0&&(a[y]=p),y===a.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Mh.has(r)||a.length!==2)return;const[u,f]=a,d=wh(u),h=wh(f);if(d!==h)if(hh(d)&&hh(h))for(let y=0;y<a.length;y++){const g=a[y];typeof g=="string"&&(a[y]=parseFloat(g))}else gi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||tx(a[u]))&&r.push(u);r.length&&sx(a,r,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gi[r](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(r,u).jump(u,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=gi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,y])=>{a.getValue(h).set(y)}),this.resolveNoneKeyframes()}}function ox(n,a,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=s?.[n]??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n)}const zh=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Bh(n){return Bd(n)&&"offsetHeight"in n}const Oh=30,ux=n=>!isNaN(parseFloat(n));class cx{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=Se.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=Se.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=ux(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 ho);const r=this.events[a].add(s);return a==="change"?()=>{r(),Yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}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=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Oh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Oh);return Ld(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(n,a){return new cx(n,a)}const{schedule:Xo}=Kd(queueMicrotask,!1),tn={x:!1,y:!1};function Lh(){return tn.x||tn.y}function fx(n){return n==="x"||n==="y"?tn[n]?null:(tn[n]=!0,()=>{tn[n]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}function Vh(n,a){const s=ox(n),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[s,u,()=>r.abort()]}function Nh(n){return!(n.pointerType==="touch"||Lh())}function dx(n,a,s={}){const[r,u,f]=Vh(n,s),d=h=>{if(!Nh(h))return;const{target:y}=h,g=a(y,h);if(typeof g!="function"||!y)return;const p=S=>{Nh(S)&&(g(S),y.removeEventListener("pointerleave",p))};y.addEventListener("pointerleave",p,u)};return r.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const Uh=(n,a)=>a?n===a?!0:Uh(n,a.parentElement):!1,Ko=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,hx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mx(n){return hx.has(n.tagName)||n.tabIndex!==-1}const ms=new WeakSet;function Hh(n){return a=>{a.key==="Enter"&&n(a)}}function Fo(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const px=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=Hh(()=>{if(ms.has(s))return;Fo(s,"down");const u=Hh(()=>{Fo(s,"up")}),f=()=>Fo(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",f,a)});s.addEventListener("keydown",r,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),a)};function _h(n){return Ko(n)&&!Lh()}function yx(n,a,s={}){const[r,u,f]=Vh(n,s),d=h=>{const y=h.currentTarget;if(!_h(h))return;ms.add(y);const g=a(y,h),p=(A,j)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",v),ms.has(y)&&ms.delete(y),_h(A)&&typeof g=="function"&&g(A,{success:j})},S=A=>{p(A,y===window||y===document||s.useGlobalTarget||Uh(y,A.target))},v=A=>{p(A,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",v,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Bh(h)&&(h.addEventListener("focus",g=>px(g,u)),!mx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function kh(n){return Bd(n)&&"ownerSVGElement"in n}function gx(n){return kh(n)&&n.tagName==="svg"}const ye=n=>!!(n&&n.getVelocity),vx=[...Ch,Wt,Gn],bx=n=>vx.find(Ah(n)),Qo=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Gh(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Sx(...n){return a=>{let s=!1;const r=n.map(u=>{const f=Gh(u,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Gh(n[u],null)}}}}function xx(...n){return T.useCallback(Sx(...n),n)}class Tx extends T.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Bh(r)&&r.offsetWidth||0,f=this.props.sizeRef.current;f.height=s.offsetHeight||0,f.width=s.offsetWidth||0,f.top=s.offsetTop,f.left=s.offsetLeft,f.right=u-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ex({children:n,isPresent:a,anchorX:s,root:r}){const u=T.useId(),f=T.useRef(null),d=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=T.useContext(Qo),y=xx(f,n?.ref);return T.useInsertionEffect(()=>{const{width:g,height:p,top:S,left:v,right:A}=d.current;if(a||!f.current||!g||!p)return;const j=s==="left"?`left: ${v}`:`right: ${A}`;f.current.dataset.motionPopId=u;const L=document.createElement("style");h&&(L.nonce=h);const H=r??document.head;return H.appendChild(L),L.sheet&&L.sheet.insertRule(`
|
|
591
|
+
[data-motion-pop-id="${u}"] {
|
|
11
592
|
position: absolute !important;
|
|
12
|
-
width: ${
|
|
13
|
-
height: ${
|
|
593
|
+
width: ${g}px !important;
|
|
594
|
+
height: ${p}px !important;
|
|
14
595
|
${j}px !important;
|
|
15
596
|
top: ${S}px !important;
|
|
16
597
|
}
|
|
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&>){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"})}));
|
|
598
|
+
`),()=>{H.contains(L)&&H.removeChild(L)}},[a]),b.jsx(Tx,{isPresent:a,childRef:f,sizeRef:d,children:T.cloneElement(n,{ref:y})})}const Mx=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,root:y})=>{const g=so(Ax),p=T.useId();let S=!0,v=T.useMemo(()=>(S=!1,{id:p,initial:a,isPresent:s,custom:u,onExitComplete:A=>{g.set(A,!0);for(const j of g.values())if(!j)return;r&&r()},register:A=>(g.set(A,!1),()=>g.delete(A))}),[s,g,r]);return f&&S&&(v={...v}),T.useMemo(()=>{g.forEach((A,j)=>g.set(j,!1))},[s]),T.useEffect(()=>{!s&&!g.size&&r&&r()},[s]),d==="popLayout"&&(n=b.jsx(Ex,{isPresent:s,anchorX:h,root:y,children:n})),b.jsx(rs.Provider,{value:v,children:n})};function Ax(){return new Map}function Yh(n=!0){const a=T.useContext(rs);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=a,f=T.useId();T.useEffect(()=>{if(n)return u(f)},[n]);const d=T.useCallback(()=>n&&r&&r(f),[f,r,n]);return!s&&r?[!1,d]:[!0]}const ps=n=>n.key||"";function qh(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const Cx=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",root:y})=>{const[g,p]=Yh(d),S=T.useMemo(()=>qh(n),[n]),v=d&&!g?[]:S.map(ps),A=T.useRef(!0),j=T.useRef(S),L=so(()=>new Map),[H,C]=T.useState(S),[U,V]=T.useState(S);jd(()=>{A.current=!1,j.current=S;for(let J=0;J<U.length;J++){const Y=ps(U[J]);v.includes(Y)?L.delete(Y):L.get(Y)!==!0&&L.set(Y,!1)}},[U,v.length,v.join("-")]);const K=[];if(S!==H){let J=[...S];for(let Y=0;Y<U.length;Y++){const k=U[Y],st=ps(k);v.includes(st)||(J.splice(Y,0,k),K.push(k))}return f==="wait"&&K.length&&(J=K),V(qh(J)),C(S),null}const{forceRender:Q}=T.useContext(lo);return b.jsx(b.Fragment,{children:U.map(J=>{const Y=ps(J),k=d&&!g?!1:S===U||v.includes(Y),st=()=>{if(L.has(Y))L.set(Y,!0);else return;let bt=!0;L.forEach(pt=>{pt||(bt=!1)}),bt&&(Q?.(),V(j.current),d&&p?.(),r&&r())};return b.jsx(Mx,{isPresent:k,initial:!A.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:f,root:y,onExitComplete:k?void 0:st,anchorX:h,children:J},Y)})})},Ph=T.createContext({strict:!1}),Xh={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"]},Fi={};for(const n in Xh)Fi[n]={isEnabled:a=>Xh[n].some(s=>!!a[s])};function wx(n){for(const a in n)Fi[a]={...Fi[a],...n[a]}}const Dx=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 ys(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Dx.has(n)}let Kh=n=>!ys(n);function Rx(n){typeof n=="function"&&(Kh=a=>a.startsWith("on")?!ys(a):n(a))}try{Rx(require("@emotion/is-prop-valid").default)}catch{}function jx(n,a,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(Kh(u)||s===!0&&ys(u)||!a&&!ys(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const gs=T.createContext({});function vs(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function tl(n){return typeof n=="string"||Array.isArray(n)}const Zo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Io=["initial",...Zo];function bs(n){return vs(n.animate)||Io.some(a=>tl(n[a]))}function Fh(n){return!!(bs(n)||n.variants)}function zx(n,a){if(bs(n)){const{initial:s,animate:r}=n;return{initial:s===!1||tl(s)?s:void 0,animate:tl(r)?r:void 0}}return n.inherit!==!1?a:{}}function Bx(n){const{initial:a,animate:s}=zx(n,T.useContext(gs));return T.useMemo(()=>({initial:a,animate:s}),[Qh(a),Qh(s)])}function Qh(n){return Array.isArray(n)?n.join(" "):n}function Zh(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const el={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(ft.test(n))n=parseFloat(n);else return n;const s=Zh(n,a.target.x),r=Zh(n,a.target.y);return`${s}% ${r}%`}},Ox={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,u=Gn.parse(n);if(u.length>5)return r;const f=Gn.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,y=s.y.scale*a.y;u[0+d]/=h,u[1+d]/=y;const g=Pt(h,y,.5);return typeof u[2+d]=="number"&&(u[2+d]/=g),typeof u[3+d]=="number"&&(u[3+d]/=g),f(u)}},Jo={borderRadius:{...el,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:el,borderTopRightRadius:el,borderBottomLeftRadius:el,borderBottomRightRadius:el,boxShadow:Ox};function Ih(n,{layout:a,layoutId:s}){return Xi.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Jo[n]||n==="opacity")}const Lx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vx=Pi.length;function Nx(n,a,s){let r="",u=!0;for(let f=0;f<Vx;f++){const d=Pi[f],h=n[d];if(h===void 0)continue;let y=!0;if(typeof h=="number"?y=h===(d.startsWith("scale")?1:0):y=parseFloat(h)===0,!y||s){const g=zh(h,Po[d]);if(!y){u=!1;const p=Lx[d]||d;r+=`${p}(${g}) `}s&&(a[d]=g)}}return r=r.trim(),s?r=s(a,u?"":r):u&&(r="none"),r}function Wo(n,a,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const y in a){const g=a[y];if(Xi.has(y)){d=!0;continue}else if(Qd(y)){u[y]=g;continue}else{const p=zh(g,Po[y]);y.startsWith("origin")?(h=!0,f[y]=p):r[y]=p}}if(a.transform||(d||s?r.transform=Nx(a,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:y="50%",originY:g="50%",originZ:p=0}=f;r.transformOrigin=`${y} ${g} ${p}`}}const $o=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jh(n,a,s){for(const r in a)!ye(a[r])&&!Ih(r,s)&&(n[r]=a[r])}function Ux({transformTemplate:n},a){return T.useMemo(()=>{const s=$o();return Wo(s,a,n),Object.assign({},s.vars,s.style)},[a])}function Hx(n,a){const s=n.style||{},r={};return Jh(r,s,n),Object.assign(r,Ux(n,a)),r}function _x(n,a){const s={},r=Hx(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gx={offset:"strokeDashoffset",array:"strokeDasharray"};function Yx(n,a,s=1,r=0,u=!0){n.pathLength=1;const f=u?kx:Gx;n[f.offset]=ft.transform(-r);const d=ft.transform(a),h=ft.transform(s);n[f.array]=`${d} ${h}`}function Wh(n,{attrX:a,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},y,g,p){if(Wo(n,h,g),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:v}=n;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=p?.transformBox??"fill-box",delete S.transformBox),a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),r!==void 0&&(S.scale=r),u!==void 0&&Yx(S,u,f,d,!1)}const $h=()=>({...$o(),attrs:{}}),tm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function qx(n,a,s,r){const u=T.useMemo(()=>{const f=$h();return Wh(f,a,tm(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};Jh(f,n.style,n),u.style={...f,...u.style}}return u}const Px=["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 tu(n){return typeof n!="string"||n.includes("-")?!1:!!(Px.indexOf(n)>-1||/[A-Z]/u.test(n))}function Xx(n,a,s,{latestValues:r},u,f=!1){const h=(tu(n)?qx:_x)(a,r,u,n),y=jx(a,typeof n=="string",f),g=n!==T.Fragment?{...y,...h,ref:s}:{},{children:p}=a,S=T.useMemo(()=>ye(p)?p.get():p,[p]);return T.createElement(n,{...g,children:S})}function em(n){const a=[{},{}];return n?.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function eu(n,a,s,r){if(typeof a=="function"){const[u,f]=em(r);a=a(s!==void 0?s:n.custom,u,f)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,f]=em(r);a=a(s!==void 0?s:n.custom,u,f)}return a}function Ss(n){return ye(n)?n.get():n}function Kx({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,u){return{latestValues:Fx(s,r,u,n),renderState:a()}}function Fx(n,a,s,r){const u={},f=r(n,{});for(const v in f)u[v]=Ss(f[v]);let{initial:d,animate:h}=n;const y=bs(n),g=Fh(n);a&&g&&!y&&n.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let p=s?s.initial===!1:!1;p=p||d===!1;const S=p?h:d;if(S&&typeof S!="boolean"&&!vs(S)){const v=Array.isArray(S)?S:[S];for(let A=0;A<v.length;A++){const j=eu(n,v[A]);if(j){const{transitionEnd:L,transition:H,...C}=j;for(const U in C){let V=C[U];if(Array.isArray(V)){const K=p?V.length-1:0;V=V[K]}V!==null&&(u[U]=V)}for(const U in L)u[U]=L[U]}}}return u}const nm=n=>(a,s)=>{const r=T.useContext(gs),u=T.useContext(rs),f=()=>Kx(n,a,r,u);return s?f():so(f)};function nu(n,a,s){const{style:r}=n,u={};for(const f in r)(ye(r[f])||a.style&&ye(a.style[f])||Ih(f,n)||s?.getValue(f)?.liveStyle!==void 0)&&(u[f]=r[f]);return u}const Qx=nm({scrapeMotionValuesFromProps:nu,createRenderState:$o});function im(n,a,s){const r=nu(n,a,s);for(const u in n)if(ye(n[u])||ye(a[u])){const f=Pi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}const Zx=nm({scrapeMotionValuesFromProps:im,createRenderState:$h}),Ix=Symbol.for("motionComponentSymbol");function Qi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Jx(n,a,s){return T.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),s&&(typeof s=="function"?s(r):Qi(s)&&(s.current=r))},[a])}const iu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),am="data-"+iu("framerAppearId"),lm=T.createContext({});function Wx(n,a,s,r,u){const{visualElement:f}=T.useContext(gs),d=T.useContext(Ph),h=T.useContext(rs),y=T.useContext(Qo).reducedMotion,g=T.useRef(null);r=r||d.renderer,!g.current&&r&&(g.current=r(n,{visualState:a,parent:f,props:s,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:y}));const p=g.current,S=T.useContext(lm);p&&!p.projection&&u&&(p.type==="html"||p.type==="svg")&&$x(g.current,s,u,S);const v=T.useRef(!1);T.useInsertionEffect(()=>{p&&v.current&&p.update(s,h)});const A=s[am],j=T.useRef(!!A&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return jd(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),j.current&&p.animationState&&p.animationState.animateChanges())}),T.useEffect(()=>{p&&(!j.current&&p.animationState&&p.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),j.current=!1),p.enteringChildren=void 0)}),p}function $x(n,a,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:y,layoutRoot:g,layoutCrossfade:p}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:sm(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&Qi(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:y,layoutRoot:g})}function sm(n){if(n)return n.options.allowProjection!==!1?n.projection:sm(n.parent)}function au(n,{forwardMotionProps:a=!1}={},s,r){s&&wx(s);const u=tu(n)?Zx:Qx;function f(h,y){let g;const p={...T.useContext(Qo),...h,layoutId:tT(h)},{isStatic:S}=p,v=Bx(h),A=u(h,S);if(!S&&ro){eT();const j=nT(p);g=j.MeasureLayout,v.visualElement=Wx(n,A,p,r,j.ProjectionNode)}return b.jsxs(gs.Provider,{value:v,children:[g&&v.visualElement?b.jsx(g,{visualElement:v.visualElement,...p}):null,Xx(n,h,Jx(A,v.visualElement,y),A,S,a)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const d=T.forwardRef(f);return d[Ix]=n,d}function tT({layoutId:n}){const a=T.useContext(lo).id;return a&&n!==void 0?a+"-"+n:n}function eT(n,a){T.useContext(Ph).strict}function nT(n){const{drag:a,layout:s}=Fi;if(!a&&!s)return{};const r={...a,...s};return{MeasureLayout:a?.isEnabled(n)||s?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iT(n,a){if(typeof Proxy>"u")return au;const s=new Map,r=(f,d)=>au(f,d,n,a),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,au(d,void 0,n,a)),s.get(d))})}function rm({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function aT({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function lT(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function lu(n){return n===void 0||n===1}function su({scale:n,scaleX:a,scaleY:s}){return!lu(n)||!lu(a)||!lu(s)}function bi(n){return su(n)||om(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function om(n){return um(n.x)||um(n.y)}function um(n){return n&&n!=="0%"}function xs(n,a,s){const r=n-s,u=a*r;return s+u}function cm(n,a,s,r,u){return u!==void 0&&(n=xs(n,u,r)),xs(n,s,r)+a}function ru(n,a=0,s=1,r,u){n.min=cm(n.min,a,s,r,u),n.max=cm(n.max,a,s,r,u)}function fm(n,{x:a,y:s}){ru(n.x,a.translate,a.scale,a.originPoint),ru(n.y,s.translate,s.scale,s.originPoint)}const dm=.999999999999,hm=1.0000000000001;function sT(n,a,s,r=!1){const u=s.length;if(!u)return;a.x=a.y=1;let f,d;for(let h=0;h<u;h++){f=s[h],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ii(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,fm(n,d)),r&&bi(f.latestValues)&&Ii(n,f.latestValues))}a.x<hm&&a.x>dm&&(a.x=1),a.y<hm&&a.y>dm&&(a.y=1)}function Zi(n,a){n.min=n.min+a,n.max=n.max+a}function mm(n,a,s,r,u=.5){const f=Pt(n.min,n.max,u);ru(n,a,s,f,r)}function Ii(n,a){mm(n.x,a.x,a.scaleX,a.scale,a.originX),mm(n.y,a.y,a.scaleY,a.scale,a.originY)}function pm(n,a){return rm(lT(n.getBoundingClientRect(),a))}function rT(n,a,s){const r=pm(n,s),{scroll:u}=a;return u&&(Zi(r.x,u.offset.x),Zi(r.y,u.offset.y)),r}const ym=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ji=()=>({x:ym(),y:ym()}),gm=()=>({min:0,max:0}),ae=()=>({x:gm(),y:gm()}),ou={current:null},vm={current:!1};function oT(){if(vm.current=!0,!!ro)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>ou.current=n.matches;n.addEventListener("change",a),a()}else ou.current=!1}const uT=new WeakMap;function cT(n,a,s){for(const r in a){const u=a[r],f=s[r];if(ye(u))n.addValue(r,u);else if(ye(f))n.addValue(r,Ki(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(r);n.addValue(r,Ki(d!==void 0?d:u,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const bm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fT{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ko,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=Se.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Yt.render(this.render,!1,!0))};const{latestValues:y,renderState:g}=d;this.latestValues=y,this.baseTarget={...y},this.initialValues=s.initial?{...y}:{},this.renderState=g,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bs(s),this.isVariantNode=Fh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:p,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in S){const A=S[v];y[v]!==void 0&&ye(A)&&A.set(y[v])}}mount(a){this.current=a,uT.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,r)=>this.bindToMotionValue(r,s)),vm.current||oT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ou.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_n(this.notifyUpdate),_n(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 r=Xi.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),f&&f(),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 Fi){const s=Fi[a];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[a]&&u&&r(this.props)&&(this.features[a]=new u(this)),this.features[a]){const f=this.features[a];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}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 r=0;r<bm.length;r++){const u=bm[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=a[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=cT(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 r=this.values.get(a);s!==r&&(r&&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 r=this.values.get(a);return r===void 0&&s!==void 0&&(r=Ki(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(zd(r)||Od(r))?r=parseFloat(r):!bx(r)&&Gn.test(s)&&(r=jh(a,s)),this.setBaseTarget(a,ye(r)?r.get():r)),ye(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=eu(this.props,s,this.presenceContext?.custom);f&&(r=f[a])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ye(u)?u:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new ho),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Xo.render(this.render)}}class Sm extends fT{constructor(){super(...arguments),this.KeyframeResolver=rx}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:r}){delete s[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ye(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function xm(n,{style:a,vars:s},r,u){const f=n.style;let d;for(d in a)f[d]=a[d];u?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function dT(n){return window.getComputedStyle(n)}class hT extends Sm{constructor(){super(...arguments),this.type="html",this.renderInstance=xm}readValueFromInstance(a,s){if(Xi.has(s))return this.projection?.isProjecting?Vo(s):wS(a,s);{const r=dT(a),u=(Qd(s)?r.getPropertyValue(s):r[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:s}){return pm(a,s)}build(a,s,r){Wo(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return nu(a,s,r)}}const Tm=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 mT(n,a,s,r){xm(n,a,void 0,r);for(const u in a.attrs)n.setAttribute(Tm.has(u)?u:iu(u),a.attrs[u])}class pT extends Sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Xi.has(s)){const r=Rh(s);return r&&r.default||0}return s=Tm.has(s)?s:iu(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return im(a,s,r)}build(a,s,r){Wh(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,u){mT(a,s,r,u)}mount(a){this.isSVGTag=tm(a.tagName),super.mount(a)}}const yT=(n,a)=>tu(n)?new pT(a):new hT(a,{allowProjection:n!==T.Fragment});function Wi(n,a,s){const r=n.getProps();return eu(r,a,s!==void 0?s:r.custom,n)}const uu=n=>Array.isArray(n);function gT(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ki(s))}function vT(n){return uu(n)?n[n.length-1]||0:n}function bT(n,a){const s=Wi(n,a);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const h=vT(f[d]);gT(n,d,h)}}function ST(n){return!!(ye(n)&&n.add)}function cu(n,a){const s=n.getValue("willChange");if(ST(s))return s.add(a);if(!s&&vn.WillChange){const r=new vn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function Em(n){return n.props[am]}const xT=n=>n!==null;function TT(n,{repeat:a,repeatType:s="loop"},r){const u=n.filter(xT),f=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[f]}const ET={type:"spring",stiffness:500,damping:25,restSpeed:10},MT=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),AT={type:"keyframes",duration:.8},CT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wT=(n,{keyframes:a})=>a.length>2?AT:Xi.has(n)?n.startsWith("scale")?MT(a[1]):ET:CT;function DT({when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:y,elapsed:g,...p}){return!!Object.keys(p).length}const fu=(n,a,s,r={},u,f)=>d=>{const h=Yo(r,n)||{},y=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-on(y);const p={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-g,onUpdate:v=>{a.set(v),h.onUpdate&&h.onUpdate(v)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:f?void 0:u};DT(h)||Object.assign(p,wT(n,p)),p.duration&&(p.duration=on(p.duration)),p.repeatDelay&&(p.repeatDelay=on(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let S=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Go(p),p.delay===0&&(S=!0)),(vn.instantAnimations||vn.skipAnimations)&&(S=!0,Go(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,S&&!f&&a.get()!==void 0){const v=TT(p.keyframes,h);if(v!==void 0){Yt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return h.isSync?new Bo(p):new IS(p)};function RT({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function Mm(n,a,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:d,...h}=a;r&&(f=r);const y=[],g=u&&n.animationState&&n.animationState.getState()[u];for(const p in h){const S=n.getValue(p,n.latestValues[p]??null),v=h[p];if(v===void 0||g&&RT(g,p))continue;const A={delay:s,...Yo(f||{},p)},j=S.get();if(j!==void 0&&!S.isAnimating&&!Array.isArray(v)&&v===j&&!A.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const C=Em(n);if(C){const U=window.MotionHandoffAnimation(C,p,Yt);U!==null&&(A.startTime=U,L=!0)}}cu(n,p),S.start(fu(p,S,v,n.shouldReduceMotion&&Mh.has(p)?{type:!1}:A,n,L));const H=S.animation;H&&y.push(H)}return d&&Promise.all(y).then(()=>{Yt.update(()=>{d&&bT(n,d)})}),y}function Am(n,a,s,r=0,u=1){const f=Array.from(n).sort((g,p)=>g.sortNodePosition(p)).indexOf(a),d=n.size,h=(d-1)*r;return typeof s=="function"?s(f,d):u===1?f*r:h-f*r}function du(n,a,s={}){const r=Wi(n,a,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(Mm(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:p,staggerDirection:S}=u;return jT(n,a,y,g,p,S,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[y,g]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>g())}else return Promise.all([f(),d(s.delay)])}function jT(n,a,s=0,r=0,u=0,f=1,d){const h=[];for(const y of n.variantChildren)y.notify("AnimationStart",a),h.push(du(y,a,{...d,delay:s+(typeof r=="function"?0:r)+Am(n.variantChildren,y,r,u,f)}).then(()=>y.notify("AnimationComplete",a)));return Promise.all(h)}function zT(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>du(n,f,s));r=Promise.all(u)}else if(typeof a=="string")r=du(n,a,s);else{const u=typeof a=="function"?Wi(n,a,s.custom):a;r=Promise.all(Mm(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}function Cm(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(a[r]!==n[r])return!1;return!0}const BT=Io.length;function wm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?wm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<BT;s++){const r=Io[s],u=n.props[r];(tl(u)||u===!1)&&(a[r]=u)}return a}const OT=[...Zo].reverse(),LT=Zo.length;function VT(n){return a=>Promise.all(a.map(({animation:s,options:r})=>zT(n,s,r)))}function NT(n){let a=VT(n),s=Dm(),r=!0;const u=y=>(g,p)=>{const S=Wi(n,p,y==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:v,transitionEnd:A,...j}=S;g={...g,...j,...A}}return g};function f(y){a=y(n)}function d(y){const{props:g}=n,p=wm(n.parent)||{},S=[],v=new Set;let A={},j=1/0;for(let H=0;H<LT;H++){const C=OT[H],U=s[C],V=g[C]!==void 0?g[C]:p[C],K=tl(V),Q=C===y?U.isActive:null;Q===!1&&(j=H);let J=V===p[C]&&V!==g[C]&&K;if(J&&r&&n.manuallyAnimateOnMount&&(J=!1),U.protectedKeys={...A},!U.isActive&&Q===null||!V&&!U.prevProp||vs(V)||typeof V=="boolean")continue;const Y=UT(U.prevProp,V);let k=Y||C===y&&U.isActive&&!J&&K||H>j&&K,st=!1;const bt=Array.isArray(V)?V:[V];let pt=bt.reduce(u(C),{});Q===!1&&(pt={});const{prevResolvedValues:dt={}}=U,Z={...dt,...pt},et=D=>{k=!0,v.has(D)&&(st=!0,v.delete(D)),U.needsAnimating[D]=!0;const G=n.getValue(D);G&&(G.liveStyle=!1)};for(const D in Z){const G=pt[D],$=dt[D];if(A.hasOwnProperty(D))continue;let nt=!1;uu(G)&&uu($)?nt=!Cm(G,$):nt=G!==$,nt?G!=null?et(D):v.add(D):G!==void 0&&v.has(D)?et(D):U.protectedKeys[D]=!0}U.prevProp=V,U.prevResolvedValues=pt,U.isActive&&(A={...A,...pt}),r&&n.blockInitialAnimation&&(k=!1);const lt=J&&Y;k&&(!lt||st)&&S.push(...bt.map(D=>{const G={type:C};if(typeof D=="string"&&r&&!lt&&n.manuallyAnimateOnMount&&n.parent){const{parent:$}=n,nt=Wi($,D);if($.enteringChildren&&nt){const{delayChildren:yt}=nt.transition||{};G.delay=Am($.enteringChildren,n,yt)}}return{animation:D,options:G}}))}if(v.size){const H={};if(typeof g.initial!="boolean"){const C=Wi(n,Array.isArray(g.initial)?g.initial[0]:g.initial);C&&C.transition&&(H.transition=C.transition)}v.forEach(C=>{const U=n.getBaseTarget(C),V=n.getValue(C);V&&(V.liveStyle=!0),H[C]=U??null}),S.push({animation:H})}let L=!!S.length;return r&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(L=!1),r=!1,L?a(S):Promise.resolve()}function h(y,g){if(s[y].isActive===g)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(y,g)),s[y].isActive=g;const p=d(y);for(const S in s)s[S].protectedKeys={};return p}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Dm()}}}function UT(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!Cm(a,n):!1}function Si(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dm(){return{animate:Si(!0),whileInView:Si(),whileHover:Si(),whileTap:Si(),whileDrag:Si(),whileFocus:Si(),exit:Si()}}class Yn{constructor(a){this.isMounted=!1,this.node=a}update(){}}class HT extends Yn{constructor(a){super(a),a.animationState||(a.animationState=NT(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();vs(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 _T=0;class kT extends Yn{constructor(){super(...arguments),this.id=_T++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)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 GT={animation:{Feature:HT},exit:{Feature:kT}};function nl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function il(n){return{point:{x:n.pageX,y:n.pageY}}}const YT=n=>a=>Ko(a)&&n(a,il(a));function al(n,a,s,r){return nl(n,a,YT(s),r)}const Rm=1e-4,qT=1-Rm,PT=1+Rm,jm=.01,XT=0-jm,KT=0+jm;function ge(n){return n.max-n.min}function FT(n,a,s){return Math.abs(n-a)<=s}function zm(n,a,s,r=.5){n.origin=r,n.originPoint=Pt(a.min,a.max,n.origin),n.scale=ge(s)/ge(a),n.translate=Pt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=qT&&n.scale<=PT||isNaN(n.scale))&&(n.scale=1),(n.translate>=XT&&n.translate<=KT||isNaN(n.translate))&&(n.translate=0)}function ll(n,a,s,r){zm(n.x,a.x,s.x,r?r.originX:void 0),zm(n.y,a.y,s.y,r?r.originY:void 0)}function Bm(n,a,s){n.min=s.min+a.min,n.max=n.min+ge(a)}function QT(n,a,s){Bm(n.x,a.x,s.x),Bm(n.y,a.y,s.y)}function Om(n,a,s){n.min=a.min-s.min,n.max=n.min+ge(a)}function Ts(n,a,s){Om(n.x,a.x,s.x),Om(n.y,a.y,s.y)}function Ye(n){return[n("x"),n("y")]}const Lm=({current:n})=>n?n.ownerDocument.defaultView:null,Vm=(n,a)=>Math.abs(n-a);function ZT(n,a){const s=Vm(n.x,a.x),r=Vm(n.y,a.y);return Math.sqrt(s**2+r**2)}class Nm{constructor(a,s,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=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=mu(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,j=ZT(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!j)return;const{point:L}=v,{timestamp:H}=oe;this.history.push({...L,timestamp:H});const{onStart:C,onMove:U}=this.handlers;A||(C&&C(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,v)},this.handlePointerMove=(v,A)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=hu(A,this.transformPagePoint),Yt.update(this.updatePoint,!0)},this.handlePointerUp=(v,A)=>{this.end();const{onEnd:j,onSessionEnd:L,resumeAnimation:H}=this.handlers;if(this.dragSnapToOrigin&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=mu(v.type==="pointercancel"?this.lastMoveEventInfo:hu(A,this.transformPagePoint),this.history);this.startEvent&&j&&j(v,C),L&&L(v,C)},!Ko(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const h=il(a),y=hu(h,this.transformPagePoint),{point:g}=y,{timestamp:p}=oe;this.history=[{...g,timestamp:p}];const{onSessionStart:S}=s;S&&S(a,mu(y,this.history)),this.removeListeners=Xa(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),_n(this.updatePoint)}}function hu(n,a){return a?{point:a(n.point)}:n}function Um(n,a){return{x:n.x-a.x,y:n.y-a.y}}function mu({point:n},a){return{point:n,delta:Um(n,Hm(a)),offset:Um(n,IT(a)),velocity:JT(a,.1)}}function IT(n){return n[0]}function Hm(n){return n[n.length-1]}function JT(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Hm(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>on(a)));)s--;if(!r)return{x:0,y:0};const f=Ge(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function WT(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?Pt(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?Pt(s,n,r.max):Math.min(n,s)),n}function _m(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function $T(n,{top:a,left:s,bottom:r,right:u}){return{x:_m(n.x,s,u),y:_m(n.y,a,r)}}function km(n,a){let s=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function tE(n,a){return{x:km(n.x,a.x),y:km(n.y,a.y)}}function eE(n,a){let s=.5;const r=ge(n),u=ge(a);return u>r?s=Ka(a.min,a.max-r,n.min):r>u&&(s=Ka(n.min,n.max-u,a.min)),gn(0,1,s)}function nE(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const pu=.35;function iE(n=pu){return n===!1?n=0:n===!0&&(n=pu),{x:Gm(n,"left","right"),y:Gm(n,"top","bottom")}}function Gm(n,a,s){return{min:Ym(n,a),max:Ym(n,s)}}function Ym(n,a){return typeof n=="number"?n:n[a]||0}const aE=new WeakMap;class lE{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=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=S=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(il(S).point)},d=(S,v)=>{const{drag:A,dragPropagation:j,onDragStart:L}=this.getProps();if(A&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fx(A),!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),Ye(C=>{let U=this.getAxisMotionValue(C).get()||0;if(un.test(U)){const{projection:V}=this.visualElement;if(V&&V.layout){const K=V.layout.layoutBox[C];K&&(U=ge(K)*(parseFloat(U)/100))}}this.originPoint[C]=U}),L&&Yt.postRender(()=>L(S,v)),cu(this.visualElement,"transform");const{animationState:H}=this.visualElement;H&&H.setActive("whileDrag",!0)},h=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v;const{dragPropagation:A,dragDirectionLock:j,onDirectionLock:L,onDrag:H}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:C}=v;if(j&&this.currentDirection===null){this.currentDirection=sE(C),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),H&&H(S,v)},y=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v,this.stop(S,v),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Ye(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Nm(a,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:Lm(this.visualElement)})}stop(a,s){const r=a||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Yt.postRender(()=>h(r,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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,r){const{drag:u}=this.getProps();if(!r||!Es(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=WT(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),r=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&&r?this.constraints=$T(r.layoutBox,a):this.constraints=!1,this.elastic=iE(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ye(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=nE(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!Qi(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=rT(r,u.root,this.visualElement.getTransformPagePoint());let d=tE(u.layout.layoutBox,f);if(s){const h=s(aT(d));this.hasMutatedConstraints=!!h,h&&(d=rm(h))}return d}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),y=this.constraints||{},g=Ye(p=>{if(!Es(p,s,this.currentDirection))return;let S=y&&y[p]||{};d&&(S={min:0,max:0});const v=u?200:1e6,A=u?40:1e7,j={type:"inertia",velocity:r?a[p]:0,bounceStiffness:v,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...S};return this.startAxisValueAnimation(p,j)});return Promise.all(g).then(h)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return cu(this.visualElement,a),r.start(fu(a,r,0,s,this.visualElement,!1))}stopAnimation(){Ye(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Ye(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Ye(s=>{const{drag:r}=this.getProps();if(!Es(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s];f.set(a[s]-Pt(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Qi(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Ye(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const y=h.get();u[d]=eE({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ye(d=>{if(!Es(d,a,null))return;const h=this.getAxisMotionValue(d),{min:y,max:g}=this.constraints[d];h.set(Pt(y,g,u[d]))})}addListeners(){if(!this.visualElement.current)return;aE.set(this.visualElement,this);const a=this.visualElement.current,s=al(a,"pointerdown",y=>{const{drag:g,dragListener:p=!0}=this.getProps();g&&p&&this.start(y)}),r=()=>{const{dragConstraints:y}=this.getProps();Qi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Yt.read(r);const d=nl(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ye(p=>{const S=this.getAxisMotionValue(p);S&&(this.originPoint[p]+=y[p].translate,S.set(S.get()+y[p].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=pu,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Es(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function sE(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class rE extends Yn{constructor(a){super(a),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new lE(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const qm=n=>(a,s)=>{n&&Yt.postRender(()=>n(a,s))};class oE extends Yn{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(a){this.session=new Nm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:qm(a),onStart:qm(s),onMove:r,onEnd:(f,d)=>{delete this.session,u&&Yt.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=al(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 Ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yu=!1;class uE extends T.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=a;f&&(s.group&&s.group.add(f),r&&r.register&&u&&r.register(f),yu&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,yu=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||Yt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Xo.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=a;yu=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Pm(n){const[a,s]=Yh(),r=T.useContext(lo);return b.jsx(uE,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(lm),isPresent:a,safeToRemove:s})}function cE(n,a,s){const r=ye(n)?n:Ki(n);return r.start(fu("",r,a,s)),r.animation}const fE=(n,a)=>n.depth-a.depth;class dE{constructor(){this.children=[],this.isDirty=!1}add(a){oo(this.children,a),this.isDirty=!0}remove(a){uo(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fE),this.isDirty=!1,this.children.forEach(a)}}function hE(n,a){const s=Se.now(),r=({timestamp:u})=>{const f=u-s;f>=a&&(_n(r),n(f-a))};return Yt.setup(r,!0),()=>_n(r)}const Xm=["TopLeft","TopRight","BottomLeft","BottomRight"],mE=Xm.length,Km=n=>typeof n=="string"?parseFloat(n):n,Fm=n=>typeof n=="number"||ft.test(n);function pE(n,a,s,r,u,f){u?(n.opacity=Pt(0,s.opacity??1,yE(r)),n.opacityExit=Pt(a.opacity??1,0,gE(r))):f&&(n.opacity=Pt(a.opacity??1,s.opacity??1,r));for(let d=0;d<mE;d++){const h=`border${Xm[d]}Radius`;let y=Qm(a,h),g=Qm(s,h);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||Fm(y)===Fm(g)?(n[h]=Math.max(Pt(Km(y),Km(g),r),0),(un.test(g)||un.test(y))&&(n[h]+="%")):n[h]=g}(a.rotate||s.rotate)&&(n.rotate=Pt(a.rotate||0,s.rotate||0,r))}function Qm(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const yE=Zm(0,.5,Gd),gE=Zm(.5,.95,ke);function Zm(n,a,s){return r=>r<n?0:r>a?1:s(Ka(n,a,r))}function Im(n,a){n.min=a.min,n.max=a.max}function en(n,a){Im(n.x,a.x),Im(n.y,a.y)}function Jm(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Wm(n,a,s,r,u){return n-=a,n=xs(n,1/s,r),u!==void 0&&(n=xs(n,1/u,r)),n}function vE(n,a=0,s=1,r=.5,u,f=n,d=n){if(un.test(a)&&(a=parseFloat(a),a=Pt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=Pt(f.min,f.max,r);n===f&&(h-=a),n.min=Wm(n.min,a,s,h,u),n.max=Wm(n.max,a,s,h,u)}function $m(n,a,[s,r,u],f,d){vE(n,a[s],a[r],a[u],a.scale,f,d)}const bE=["x","scaleX","originX"],SE=["y","scaleY","originY"];function tp(n,a,s,r){$m(n.x,a,bE,s?s.x:void 0,r?r.x:void 0),$m(n.y,a,SE,s?s.y:void 0,r?r.y:void 0)}function ep(n){return n.translate===0&&n.scale===1}function np(n){return ep(n.x)&&ep(n.y)}function ip(n,a){return n.min===a.min&&n.max===a.max}function xE(n,a){return ip(n.x,a.x)&&ip(n.y,a.y)}function ap(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function lp(n,a){return ap(n.x,a.x)&&ap(n.y,a.y)}function sp(n){return ge(n.x)/ge(n.y)}function rp(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class TE{constructor(){this.members=[]}add(a){oo(this.members,a),a.scheduleRender()}remove(a){if(uo(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 r;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){r=f;break}}return r?(this.promote(r),!0):!1}promote(a,s){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,s&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:u}=a.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:r}=a;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EE(n,a,s){let r="";const u=n.x.translate/a.x,f=n.y.translate/a.y,d=s?.z||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:g,rotate:p,rotateX:S,rotateY:v,skewX:A,skewY:j}=s;g&&(r=`perspective(${g}px) ${r}`),p&&(r+=`rotate(${p}deg) `),S&&(r+=`rotateX(${S}deg) `),v&&(r+=`rotateY(${v}deg) `),A&&(r+=`skewX(${A}deg) `),j&&(r+=`skewY(${j}deg) `)}const h=n.x.scale*a.x,y=n.y.scale*a.y;return(h!==1||y!==1)&&(r+=`scale(${h}, ${y})`),r||"none"}const gu=["","X","Y","Z"],ME=1e3;let AE=0;function vu(n,a,s,r){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),r&&(r[n]=0))}function op(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Em(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Yt,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&op(r)}function up({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=a?.()){this.id=AE++,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(DE),this.nodes.forEach(BE),this.nodes.forEach(OE),this.nodes.forEach(RE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new dE)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new ho),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const y=this.eventHandlers.get(d);y&&y.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=kh(d)&&!gx(d),this.instance=d;const{layoutId:h,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||h)&&(this.isLayoutDirty=!0),n){let p,S=0;const v=()=>this.root.updateBlockedByResize=!1;Yt.read(()=>{S=window.innerWidth}),n(d,()=>{const A=window.innerWidth;A!==S&&(S=A,this.root.updateBlockedByResize=!0,p&&p(),p=hE(v,250),Ms.hasAnimatedSinceResize&&(Ms.hasAnimatedSinceResize=!1,this.nodes.forEach(dp)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||y)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeLayoutChanged:v,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||HE,{onLayoutAnimationStart:L,onLayoutAnimationComplete:H}=g.getProps(),C=!this.targetLayout||!lp(this.targetLayout,A),U=!S&&v;if(this.options.layoutRoot||this.resumeFrom||U||S&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const V={...Yo(j,"layout"),onPlay:L,onComplete:H};(g.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V),this.setAnimationOrigin(p,U)}else S||dp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_n(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(LE),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&op(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const S=this.path[p];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:h,layout:y}=this.options;if(h===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zE),this.nodes.forEach(CE),this.nodes.forEach(wE)):this.nodes.forEach(fp),this.clearAllSnapshots();const h=Se.now();oe.delta=gn(0,1e3/60,h-oe.timestamp),oe.timestamp=h,oe.isProcessing=!0,yo.update.process(oe),yo.preRender.process(oe),yo.render.process(oe),oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jE),this.sharedNodes.forEach(VE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ge(this.snapshot.measuredBox.x)&&!ge(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 d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!np(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,p=g!==this.prevTransformTemplateValue;d&&this.instance&&(h||bi(this.latestValues)||p)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let y=this.removeElementScroll(h);return d&&(y=this.removeTransform(y)),_E(y),{animationId:this.root.animationId,measuredBox:h,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ae();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kE))){const{scroll:g}=this.root;g&&(Zi(h.x,g.offset.x),Zi(h.y,g.offset.y))}return h}removeElementScroll(d){const h=ae();if(en(h,d),this.scroll?.wasRoot)return h;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:p,options:S}=g;g!==this.root&&p&&S.layoutScroll&&(p.wasRoot&&en(h,d),Zi(h.x,p.offset.x),Zi(h.y,p.offset.y))}return h}applyTransform(d,h=!1){const y=ae();en(y,d);for(let g=0;g<this.path.length;g++){const p=this.path[g];!h&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ii(y,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),bi(p.latestValues)&&Ii(y,p.latestValues)}return bi(this.latestValues)&&Ii(y,this.latestValues),y}removeTransform(d){const h=ae();en(h,d);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!g.instance||!bi(g.latestValues))continue;su(g.latestValues)&&g.updateSnapshot();const p=ae(),S=g.measurePageBox();en(p,S),tp(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,p)}return bi(this.latestValues)&&tp(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==h;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:S}=this.options;if(!this.layout||!(p||S))return;this.resolvedRelativeTargetAt=oe.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=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):en(this.target,this.layout.layoutBox),fm(this.target,this.targetDelta)):en(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||su(this.parent.latestValues)||om(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Ts(this.relativeTargetOrigin,h,y),en(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===oe.timestamp&&(y=!1),y)return;const{layout:g,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||p))return;en(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,v=this.treeScale.y;sT(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ae());const{target:A}=d;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jm(this.prevProjectionDelta.x,this.projectionDelta.x),Jm(this.prevProjectionDelta.y,this.projectionDelta.y)),ll(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==v||!rp(this.projectionDelta.x,this.prevProjectionDelta.x)||!rp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ji(),this.projectionDelta=Ji(),this.projectionDeltaWithTransform=Ji()}setAnimationOrigin(d,h=!1){const y=this.snapshot,g=y?y.latestValues:{},p={...this.latestValues},S=Ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const v=ae(),A=y?y.source:void 0,j=this.layout?this.layout.source:void 0,L=A!==j,H=this.getStack(),C=!H||H.members.length<=1,U=!!(L&&!C&&this.options.crossfade===!0&&!this.path.some(UE));this.animationProgress=0;let V;this.mixTargetDelta=K=>{const Q=K/1e3;hp(S.x,d.x,Q),hp(S.y,d.y,Q),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NE(this.relativeTarget,this.relativeTargetOrigin,v,Q),V&&xE(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=ae()),en(V,this.relativeTarget)),L&&(this.animationValues=p,pE(p,g,this.latestValues,Q,U,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yt.update(()=>{Ms.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ki(0)),this.currentAnimation=cE(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ME),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:y,layout:g,latestValues:p}=d;if(!(!h||!y||!g)){if(this!==d&&this.layout&&g&&vp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){y=this.target||ae();const S=ge(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+S;const v=ge(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+v}en(h,y),Ii(h,p),ll(this.projectionDeltaWithTransform,this.layoutCorrected,h,p)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new TE),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:y}={}){const g=this.getStack();g&&g.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(h=!0),!h)return;const g={};y.z&&vu("z",d,g,this.animationValues);for(let p=0;p<gu.length;p++)vu(`rotate${gu[p]}`,d,g,this.animationValues),vu(`skew${gu[p]}`,d,g,this.animationValues);d.render();for(const p in g)d.setStaticValue(p,g[p]),this.animationValues&&(this.animationValues[p]=g[p]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Ss(h?.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ss(h?.pointerEvents)||""),this.hasProjected&&!bi(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const p=g.animationValues||g.latestValues;this.applyTransformsToTarget();let S=EE(this.projectionDeltaWithTransform,this.treeScale,p);y&&(S=y(p,S)),d.transform=S;const{x:v,y:A}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${A.origin*100}% 0`,g.animationValues?d.opacity=g===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=g===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in Jo){if(p[j]===void 0)continue;const{correct:L,applyTo:H,isCSSVariable:C}=Jo[j],U=S==="none"?p[j]:L(p[j],g);if(H){const V=H.length;for(let K=0;K<V;K++)d[H[K]]=U}else C?this.options.visualElement.renderState.vars[j]=U:d[j]=U}this.options.layoutId&&(d.pointerEvents=g===this?Ss(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(cp),this.root.sharedNodes.clear()}}}function CE(n){n.updateLayout()}function wE(n){const a=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=n.layout,{animationType:u}=n.options,f=a.source!==n.layout.source;u==="size"?Ye(p=>{const S=f?a.measuredBox[p]:a.layoutBox[p],v=ge(S);S.min=s[p].min,S.max=S.min+v}):vp(u,a.layoutBox,s)&&Ye(p=>{const S=f?a.measuredBox[p]:a.layoutBox[p],v=ge(s[p]);S.max=S.min+v,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[p].max=n.relativeTarget[p].min+v)});const d=Ji();ll(d,s,a.layoutBox);const h=Ji();f?ll(h,n.applyTransform(r,!0),a.measuredBox):ll(h,s,a.layoutBox);const y=!np(d);let g=!1;if(!n.resumeFrom){const p=n.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:v}=p;if(S&&v){const A=ae();Ts(A,a.layoutBox,S.layoutBox);const j=ae();Ts(j,s,v.layoutBox),lp(A,j)||(g=!0),p.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=A,n.relativeParent=p)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:h,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function DE(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function RE(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function jE(n){n.clearSnapshot()}function cp(n){n.clearMeasurements()}function fp(n){n.isLayoutDirty=!1}function zE(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function dp(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function BE(n){n.resolveTargetDelta()}function OE(n){n.calcProjection()}function LE(n){n.resetSkewAndRotation()}function VE(n){n.removeLeadSnapshot()}function hp(n,a,s){n.translate=Pt(a.translate,0,s),n.scale=Pt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function mp(n,a,s,r){n.min=Pt(a.min,s.min,r),n.max=Pt(a.max,s.max,r)}function NE(n,a,s,r){mp(n.x,a.x,s.x,r),mp(n.y,a.y,s.y,r)}function UE(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const HE={duration:.45,ease:[.4,0,.1,1]},pp=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),yp=pp("applewebkit/")&&!pp("chrome/")?Math.round:ke;function gp(n){n.min=yp(n.min),n.max=yp(n.max)}function _E(n){gp(n.x),gp(n.y)}function vp(n,a,s){return n==="position"||n==="preserve-aspect"&&!FT(sp(a),sp(s),.2)}function kE(n){return n!==n.root&&n.scroll?.wasRoot}const GE=up({attachResizeListener:(n,a)=>nl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bu={current:void 0},bp=up({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!bu.current){const n=new GE({});n.mount(window),n.setOptions({layoutScroll:!0}),bu.current=n}return bu.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),YE={pan:{Feature:oE},drag:{Feature:rE,ProjectionNode:bp,MeasureLayout:Pm}};function Sp(n,a,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=r[u];f&&Yt.postRender(()=>f(a,il(a)))}class qE extends Yn{mount(){const{current:a}=this.node;a&&(this.unmount=dx(a,(s,r)=>(Sp(this.node,r,"Start"),u=>Sp(this.node,u,"End"))))}unmount(){}}class PE extends Yn{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=Xa(nl(this.node.current,"focus",()=>this.onFocus()),nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xp(n,a,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=r[u];f&&Yt.postRender(()=>f(a,il(a)))}class XE extends Yn{mount(){const{current:a}=this.node;a&&(this.unmount=yx(a,(s,r)=>(xp(this.node,r,"Start"),(u,{success:f})=>xp(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Su=new WeakMap,xu=new WeakMap,KE=n=>{const a=Su.get(n.target);a&&a(n)},FE=n=>{n.forEach(KE)};function QE({root:n,...a}){const s=n||document;xu.has(s)||xu.set(s,{});const r=xu.get(s),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(FE,{root:n,...a})),r[u]}function ZE(n,a,s){const r=QE(a);return Su.set(n,s),r.observe(n),()=>{Su.delete(n),r.unobserve(n)}}const IE={some:0,all:1};class JE extends Yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:f}=a,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:IE[u]},h=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:p,onViewportLeave:S}=this.node.getProps(),v=g?p:S;v&&v(y)};return ZE(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(WE(a,s))&&this.startObserver()}unmount(){}}function WE({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const $E={...GT,...{inView:{Feature:JE},tap:{Feature:XE},focus:{Feature:PE},hover:{Feature:qE}},...YE,...{layout:{ProjectionNode:bp,MeasureLayout:Pm}}},tM=iT($E,yT);function eM(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=navigator?.userAgent??"",u=/iPhone|Android/i.test(r),f=window.matchMedia(n),d=window.matchMedia("(orientation: portrait)"),h=()=>s({isMobile:f.matches||u,isPortrait:d.matches});return h(),f.addEventListener("change",h),d.addEventListener("change",h),()=>{f.removeEventListener("change",h),d.removeEventListener("change",h)}},[n]),a}const Tp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[{items:["MetaDesc"]}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],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","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Ep={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"}]}},Mp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],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","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Tu=new Map,Eu=new Map,Mu=new Map,Au=new Map,sl=new Map;function nM(n,a){Tu.set(n,a)}function iM(n){Tu.delete(n)}function Xt(n){return Tu.get(n)}function aM(n,a){Eu.set(n,a)}function lM(n){Eu.delete(n)}function Ap(n){return Eu.get(n)}function sM(n,a){Mu.set(n,a)}function rM(n){Mu.delete(n)}function Cp(n){return Mu.get(n)}function oM(n,a){Au.set(n,a)}function uM(n){Au.delete(n)}function As(n){return Au.get(n)}function cM(n,a,s){const r=sl.get(n)??new Map,u=r.get(a)??new Set;u.add(s),r.set(a,u),sl.set(n,r)}function fM(n,a,s){const r=sl.get(n);if(!r)return;const u=r.get(a);u&&(u.delete(s),u.size===0&&r.delete(a),r.size===0&&sl.delete(n))}function wp(n,a){const s=sl.get(n);if(!s)return;new Set([...s.get(a.type)??[],...s.get("*")??[]]).forEach(u=>u(a))}const dM=768,rl={pc:{live:Tp.live,vod:Tp.vod},mobile:{live:Ep.live,vod:Ep.vod},fullscreen:{live:Mp.live,vod:Mp.vod}},hM={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 mM(n){const[a,s]=nd("isActive",!1),r=T.useRef(null),u=T.useRef(!1),f=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),y=n.options?.controlActiveTime||3e3,[g]=Gt(),{isMobile:p,isPortrait:S}=eM(),v=ie(),{togglePlay:A,useTouch:j}=v,[L,H]=T.useState(!1),C=(()=>{const D=n.layout??rl,G=W=>!W||typeof W!="object"?!1:"top"in W||"upper"in W||"center"in W||"lower"in W||"bottom"in W||"order"in W,$=W=>!W||typeof W!="object"?!1:"live"in W||"vod"in W,nt=(W,ht)=>{const Ut=$(W)?W:W?{live:W,vod:W}:void 0,Rt=Ut?.live??ht?.live,ue=Ut?.vod??ht?.vod;if(!(!Rt&&!ue))return{live:Rt,vod:ue}},yt=(W,ht)=>{if(W)return(ht?W.live:W.vod)??W.vod??W.live};if(G(D))return D;const M=D,N={pc:nt(rl.pc),mobile:nt(rl.mobile),fullscreen:nt(rl.fullscreen)},I={pc:nt(M.pc,N.pc),mobile:nt(M.mobile,N.mobile),fullscreen:nt(M.fullscreen,N.fullscreen),breakpoint:M.breakpoint},tt=g.isFullscreen&&I.fullscreen?"fullscreen":null,ut=(tt?I[tt]:void 0)??(L?I.mobile:I.pc)??I.pc??I.mobile??I.fullscreen;return yt(ut,!!g.isLive)??hM})(),U=f.current||g.isEnded,V=T.useCallback(()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},[]),K=T.useCallback(()=>{V(),r.current=window.setTimeout(()=>{s(!1),u.current=!0,r.current=null},y)},[V,s,y]),Q=T.useCallback(()=>{u.current=!1,d.current=Date.now(),s(!0),K()},[s,K]),J=T.useCallback(()=>{V(),u.current=!0,s(!1)},[V,s]),Y=T.useMemo(()=>({...v,next:n.next,prev:n.prev}),[v,n.next,n.prev]);T.useEffect(()=>{const D=n.scopeId;if(D)return nM(D,Y),()=>iM(D)},[n.scopeId,Y]),T.useEffect(()=>{const D=n.scopeId;if(D)return aM(D,Q),()=>lM(D)},[n.scopeId,Q]),T.useEffect(()=>{const D=n.scopeId;if(D)return sM(D,J),()=>rM(D)},[n.scopeId,J]);const k=()=>{u.current=!1,d.current=Date.now(),a||s(!0),K()},st=()=>{u.current||k()};T.useEffect(()=>{if(typeof window>"u")return;const D=n.layout??rl;if((N=>!N||typeof N!="object"?!1:"top"in N||"upper"in N||"center"in N||"lower"in N||"bottom"in N||"order"in N)(D)){H(!1);return}const nt=D.breakpoint??dM,yt=window.matchMedia(`(max-width: ${nt}px)`),M=()=>H(yt.matches||p);return M(),typeof yt.addEventListener=="function"?(yt.addEventListener("change",M),()=>yt.removeEventListener("change",M)):(yt.addListener(M),()=>yt.removeListener(M))},[n.layout,p]);const bt=D=>[D.top,D.upper,D.center,D.lower,D.bottom].some($=>$?.some(nt=>(nt.items?.length?nt.items:["Blank"]).includes("SeekBar"))??!1),pt=(D,G)=>{if(typeof D!="string")return T.isValidElement(D)?T.cloneElement(D,{pos:G}):D;switch(D){case"PlayBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(Ad,{isMobile:p,isPortrait:S,pos:G,text:{play:n.t?.("common.play")??"재생",pause:n.t?.("common.pause")??"일시정지"},options:n.options})});case"VolumeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(mb,{isMobile:p,isPortrait:S,pos:G,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"MuteBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(hb,{isMobile:p,isPortrait:S,pos:G,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"CurrentTimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(ab,{isMobile:p,isPortrait:S,pos:G})});case"DurationBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(lb,{isMobile:p,isPortrait:S,pos:G})});case"TimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(sb,{isMobile:p,isPortrait:S,pos:G})});case"SubtitleBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.subtitle||g.hasSubtitle&&b.jsx(db,{isMobile:p,isPortrait:S,pos:G,text:{captionOn:n.t?.("common.captionOn")??"자막켜기",captionOff:n.t?.("common.captionOff")??"자막 끄기"}})});case"FullscreenBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.fullscreen&&b.jsx(fb,{isMobile:p,isPortrait:S,pos:G,options:n.options,text:{fullOn:n.t?.("common.fullOn")??"전체화면",fullOff:n.t?.("common.fullOff")??"전체화면 해제"}})});case"PipBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.pictureInPicture&&b.jsx(yb,{isMobile:p,isPortrait:S,pos:G,options:n.options,text:{miniPlayer:n.t?.("common.miniPlayer")??"미니플레이어"}})});case"PrevBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(eb,{isMobile:p,isPortrait:S,pos:G,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:n.prev})});case"NextBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(tb,{isMobile:p,isPortrait:S,pos:G,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,next:n.next})});case"SkipBackBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipBack")},children:b.jsx(nb,{isMobile:p,isPortrait:S,pos:G,options:n.options})});case"SkipForwardBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipForward")},children:b.jsx(ib,{isMobile:p,isPortrait:S,pos:G,options:n.options})});case"MetaDesc":return b.jsx(b.Fragment,{children:!n.options?.descriptionNotVisible&&b.jsx(ob,{title:n.metaTitle??"",profileImage:n.profileImage??"",profileName:n.profileName??"",createdAt:n.createdAt??"",isMobile:p,isPortrait:S,pos:G})});case"BigPlayBtn":return U?b.jsx($1,{isMobile:p,isPortrait:S,next:n.next,prev:n.prev,pidx:n.pidx,playlistCnt:n.playlistCnt}):null;case"SeekBar":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(rd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,pos:G,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview})});case"LevelSelectBtn":return b.jsx(rb,{options:n.options,text:{auto:n.t?.("common.auto")??"자동"}});case"SettingBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.setting&&b.jsx(pb,{isMobile:p,isPortrait:S,pos:G,text:{setting:n.t?.("common.setting")??"설정"}})});case"Blank":return b.jsx(Cd,{});default:return null}},dt=(D,G,$,nt)=>{const yt=D.key??`${G}-${nt??0}`,N=(D.items?.length?D.items:["Blank"]).map((ut,W)=>{const ht=pt(ut,$);return ht?b.jsx(T.Fragment,{children:ht},`${G}-${yt}-${ut}-${W}`):null}).filter(ut=>ut!==null);if(!N.length)return null;if(D.wrapper==="Blank")return b.jsx(Cd,{align:D?.align,style:D?.style,children:N},`${G}-${yt}`);if(D.wrapper==="Group")return b.jsx(Pa,{noPadding:!(N.length>1),cap:D.cap,style:D?.style,children:N},`${G}-${yt}`);const tt={display:"flex",alignItems:"center",justifyContent:D?.align?D?.align=="left"?"start":D?.align=="right"?"end":"center":"start",width:"100%",flex:1};return b.jsx("div",{style:{...tt,...D?.style},children:N},`${G}-${yt}`)},Z=(D,G)=>{if(!D?.length)return null;if(G!=="bottom")return D.map((nt,yt)=>dt(nt,G,void 0,yt));let $="left";return D.map((nt,yt)=>{const M=nt.items?.length?nt.items:["Blank"],N=nt.wrapper==="Blank"||M.includes("Blank"),I=dt(nt,G,$,yt);return N&&($="right"),I})},et=!bt(C),lt=C.order??["top","upper","center","seekbar","lower","bottom"],F=()=>et?b.jsx("div",{children:b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(rd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview})})}):null;return T.useEffect(()=>{p&&(f.current=!0)},[p]),T.useEffect(()=>{if(h.current===null){h.current=a;return}h.current!==a&&(h.current=a,n.onControlBarActiveChange?.(a))},[a,n.onControlBarActiveChange]),b.jsxs(b.Fragment,{children:[g.isLoading&&b.jsx(ao,{poster:n.poster,options:n.options}),g.isWaiting&&b.jsx(ao,{}),g.isSettingModal&&b.jsx(bb,{text:{setting:n.t?.("common.setting")??"세팅",auto:n.t?.("common.auto")??"자동",notUse:n.t?.("common.notUse")??"사용안함",quality:n.t?.("settings.quality")??"해상도",autoplay:n.t?.("settings.autoplay")??"자동재생",playbackRate:n.t?.("settings.playbackRate")??"재생 속도",captions:n.t?.("settings.captions")??"자막"},vtt:n.src?.vtt,options:n.options}),!g.isLoading&&b.jsx(b.Fragment,{children:g.initPlay?b.jsxs("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{j(),V(),K()},onMouseEnter:()=>{st()},onMouseMove:()=>{k()},onTouchStart:()=>{j(),V(),K()},onMouseLeave:()=>{V(),K(),u.current=!1},children:[p&&b.jsx(vb,{onSingleTap:()=>{s(!0),V(),K()}}),b.jsx(Cx,{children:(a||g.isEnded)&&b.jsx(tM.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(D=>D==="top"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(C.top,"top")},"layout-top"):D==="upper"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(C.upper,"upper")},"layout-upper"):D==="center"?b.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!S&&A(),f.current=!0},onMouseLeave:()=>{f.current=!1},children:Z(C.center,"center")},"layout-center"):D==="seekbar"?b.jsx("div",{children:b.jsx(T.Fragment,{children:F()})},"layout-seekbar"):D==="lower"?b.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(C.lower,"lower")},"layout-lower"):D==="bottom"?b.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(C.bottom,"bottom")},"layout-bottom"):null)})})]}):b.jsx(gb,{poster:n.poster,options:n.options})})]})}const pM=["stateChange","ready","play","pause","ended","fullscreen","fullscreenExit","loadingStart","loadingEnd","bufferingStart","bufferingEnd","seeking","seeked","waiting","volumechange","timeupdate","controlbarActive","controlbarDeactive","next","prev","skipForward","skipBack","playlistChange","error"],yM=n=>pM.includes(n);let Dp=0;function gM({onEvent:n,isInitialized:a,playlist:s,pidx:r,onStateSnapshot:u,vpe:f,scopeId:d}){const[h]=Gt(),y=T.useRef(null),g=T.useRef(null),p=T.useRef(!1),S=T.useCallback((v,A,j)=>{const L=h??{};f?.playerStateReport&&f.playerStateReport({type:v,state:L,prevState:j,data:A});const H={type:v,state:L,prevState:j,data:A};n&&n(H),d&&wp(d,H)},[n,h,f,d]);return T.useEffect(()=>{u&&u(h??{})},[h,u]),T.useEffect(()=>{const v=h??{},A=y.current;y.current=v,A&&A!==v&&(S("stateChange",void 0,A),A.isPlaying!==v.isPlaying&&typeof v.isPlaying=="boolean"&&S(v.isPlaying?"play":"pause",void 0,A),A.isFullscreen!==v.isFullscreen&&typeof v.isFullscreen=="boolean"&&S(v.isFullscreen?"fullscreen":"fullscreenExit",void 0,A),A.isLoading!==v.isLoading&&typeof v.isLoading=="boolean"&&S(v.isLoading?"loadingStart":"loadingEnd",void 0,A),A.isWaiting!==v.isWaiting&&typeof v.isWaiting=="boolean"&&S(v.isWaiting?"bufferingStart":"bufferingEnd",void 0,A))},[h,S]),T.useEffect(()=>{!a||p.current||(p.current=!0,S("ready",{playlist:s}))},[a,s.length,S]),T.useEffect(()=>{const v=g.current;if(g.current=r,v===null||v===r)return;const A={from:v,to:r,total:s.length,item:s[r]};S("playlistChange",A),S(r>v?"next":"prev",A)},[r,s,S]),null}function vM(n){const{accessKey:a,platform:s="pub",stage:r="prod",isDev:u=!1,hls:f,dashjs:d,options:h,layout:y,scopeId:g}=n,[p,S]=T.useState(null),[v,A]=T.useState([]),[j,L]=T.useState(!1),[H,C]=nd("playerOptions",h??{}),[U,V]=T.useState(""),[K,Q]=T.useState({errorCode:null,errorMessage:null,errorTitle:null}),[J,Y]=T.useState(!1),[k,st]=T.useState(!1),[bt,pt]=T.useState(0),[dt,Z]=T.useState(0),et=T.useRef(null),lt=T.useRef(null),F=T.useRef(null),D=T.useRef(null),G=typeof window<"u"&&window.location.host||"local";T.useEffect(()=>{if(!a)return;const at=new e1({accessKey:a,appId:G,platform:s,stage:r,isDev:u});S(at)},[a,G,s,r,u]);const $=T.useCallback((at,gt,Ht)=>{const Kt=D.current??{};p?.playerStateReport&&p.playerStateReport({type:at,state:Kt,prevState:Ht,data:gt});const qe={type:at,state:Kt,prevState:Ht,data:gt};n.onEvent&&n.onEvent(qe),g&&wp(g,qe)},[n.onEvent,p,g]),nt=T.useCallback((at,gt)=>{if(yM(at)){if(at==="ended"){if(v.length>1)dt<v.length-1?(st(!0),fn(5)):H.loop&&Z(0);else if(H.loop&&g){const Ht=Xt(g),Kt=Ht?.seekTo,qe=Ht?.play;Kt&&Kt(0),qe&&qe()}}$(at,gt)}},[$,dt,H.loop,v.length,g,st,k]),yt=T.useCallback((at,gt)=>{Y(!0),Q(at),$("error",{...gt,...at})},[$]);T.useEffect(()=>{if(!p||j||J)return;(async()=>{if(await p.initialize(),p.isInitialized()){const gt=p.getValidatedOptions(h);C(gt),A(gt?.playlist||[]),L(!0)}else{const gt=p.setErrorRun("E0001");yt({errorCode:gt?.errorCode,errorMessage:gt?.errorMessage?.desc,errorTitle:gt?.errorMessage?.title});return}})()},[p,j,h,C,yt,J]),T.useEffect(()=>{const at=globalThis;f&&(at.Hls=f),d&&(at.dashjs=d)},[f,d]),T.useEffect(()=>{const at=v?.[dt]?.file;if(!at){V("");return}const gt=at.toLowerCase();gt.endsWith(".m3u8")?V("hls"):gt.endsWith(".mpd")?V("dash"):gt.endsWith(".mp4")?V("mp4"):V("")},[v,dt]),T.useEffect(()=>{if(!p||!U)return;const at=globalThis,gt=f??at.Hls,Ht=d??at.dashjs;if(U==="hls"&&!gt){const Kt=p.setErrorRun("E0015");yt({errorCode:Kt?.errorCode,errorMessage:Kt?.errorMessage?.desc,errorTitle:Kt?.errorMessage?.title})}if(U==="dash"&&!Ht){const Kt=p.setErrorRun("E0016");yt({errorCode:Kt?.errorCode,errorMessage:Kt?.errorMessage?.desc,errorTitle:Kt?.errorMessage?.title})}},[U,p,f,d,yt]);const M=T.useCallback(at=>{if(!at||typeof at!="object"||!p)return;const gt=at;if(gt?.evt=="hlsError"&>?.data?.type=="networkError"){const Ht=p.setErrorRun("E0004");yt({errorCode:Ht?.errorCode,errorMessage:Ht?.errorMessage?.desc,errorTitle:Ht?.errorMessage?.title})}},[p,yt]),N=v?.[dt],I=v?.length>1?v[(dt+1)%v.length]:v?.[dt],tt=f??globalThis.Hls,ut=d??globalThis.dashjs,W=()=>{if(!N)return null;switch(U){case"hls":return b.jsx(x1,{src:N,hlsLib:tt,options:H,onError:M,emitEvent:nt});case"dash":return b.jsx(T1,{src:N,dashLib:ut,options:H,onError:M,emitEvent:nt});case"mp4":return b.jsx(E1,{src:N,options:H,onError:M,emitEvent:nt});default:return null}};Mb(H);const ht=T.useCallback(()=>{const at=lt.current;at&&(at.style.display="")},[]),Ut=T.useCallback(()=>{const at=lt.current;at&&(at.style.display="none")},[]);T.useEffect(()=>{if(g)return oM(g,{show:ht,hide:Ut}),()=>uM(g)},[g,ht,Ut]);const Rt=T.useCallback(at=>{D.current=at},[]);T.useEffect(()=>{v.length!==0&&dt>v.length-1&&Z(v.length-1)},[dt,v.length]);const ue=T.useCallback(()=>{et.current&&(clearInterval(et.current),et.current=null)},[]),cn=T.useCallback(()=>{Z(at=>(st(!1),v.length===0?at:Math.min(at+1,v.length-1)))},[v.length]);T.useEffect(()=>ue,[ue]);const fn=T.useCallback((at=1)=>{if(at>1){const gt=Math.max(1,Math.floor(at));pt(gt),ue(),et.current=setInterval(()=>{pt(Ht=>{const Kt=Math.max(0,Ht-1);return Kt===0&&(ue(),cn()),Kt})},1e3)}else pt(0),ue(),cn()},[cn,ue]),ta=T.useCallback(()=>{Z(at=>Math.max(0,at-1))},[v.length]),nn=T.useCallback(at=>{at==="skipForward"?$("skipForward"):at==="skipBack"&&$("skipBack")},[$]);return b.jsxs("div",{ref:F,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:[b.jsx(gM,{onEvent:n.onEvent,isInitialized:j,playlist:v,pidx:dt,onStateSnapshot:Rt,vpe:p,scopeId:g}),J?b.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:H?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[b.jsx("div",{style:{background:`url(${N?.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),b.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:b.jsxs("div",{style:{textAlign:"center"},children:[b.jsx("div",{children:b.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),b.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:b.jsx("strong",{children:K?.errorMessage})}),K?.errorCode&&b.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",K.errorCode,")"]})]})})]}):j?b.jsxs(b.Fragment,{children:[H.controls&&b.jsx("div",{ref:lt,children:b.jsx(mM,{src:N,hlsLib:tt,dashLib:ut,options:H,poster:N?.poster,layout:y,scopeId:g,next:fn,prev:ta,onAction:nn,onControlBarActiveChange:at=>{$(at?"controlbarActive":"controlbarDeactive")},pidx:dt,playlistCnt:v?.length||0,metaTitle:N?.description?.title,profileImage:N?.description?.profile_image,profileName:N?.description?.profile_name,createdAt:N?.description?.created_at,t:at=>p?.$t(at)??at})}),k&&b.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:30,backgroundColor:"rgba(0,0,0,0.69)"},children:b.jsxs("div",{children:[b.jsx("div",{style:{background:`url(${I?.poster}) center / cover no-repeat`,width:"11em",aspectRatio:H?.aspectRatio||"16/9",backgroundColor:"#000000",borderRadius:"5px",border:"2px solid rgba(255,255,255,0.5)"}}),b.jsx("div",{style:{textAlign:"center",fontSize:"0.8rem",letterSpacing:"-1",fontWeight:"bold",paddingTop:"1rem"},children:p.$t("alternative.nextPlay").replace("{timeTxt}",bt)})]})}),b.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:H?.aspectRatio||"16/9"},children:W()})]}):b.jsx(ao,{poster:N?.poster,options:H})]})}const Cu=T.forwardRef((n,a)=>{const s=T.useRef("");s.current||(Dp+=1,s.current=`vpe-${Dp}`);const r=n.scopeId??s.current;return T.useImperativeHandle(a,()=>({play:()=>{Xt(r)?.play?.()},pause:()=>{Xt(r)?.pause?.()},mute:()=>{const f=Xt(r)?.toggleMute;typeof f=="function"&&f(!0)},prev:()=>{const f=Xt(r)?.prev;typeof f=="function"&&f()},next:()=>{const f=Xt(r)?.next;typeof f=="function"&&f()},fullscreen:()=>{const f=Xt(r)?.toggleFullscreen;typeof f=="function"&&f()},fullscreenOn:()=>{const f=Xt(r)?.fullscreenOn;typeof f=="function"&&f()},fullScreenOff:()=>{const f=Xt(r)?.fullscreenOff;typeof f=="function"&&f()},pip:()=>{const f=Xt(r)?.togglePictureInPicture;typeof f=="function"&&f()},volume:(u=1)=>{const d=Xt(r)?.setVolume;typeof d=="function"&&d(u*100)},uiHidden:()=>{const u=As(r);u&&u.hide()},uiVisible:()=>{const u=As(r);u&&u.show()},currentTime:(u=0)=>{const d=Xt(r)?.seekTo;typeof d=="function"&&d(u)},controlBarActive:()=>{const u=Ap(r);u&&u()},controlBarDeactive:()=>{const u=Cp(r);u&&u()}}),[r]),b.jsx(i1,{scopeId:r,children:b.jsxs(s1,{scopeId:r,children:[b.jsx(Sb,{}),b.jsx(vM,{...n,scopeId:r})]})})});Cu.displayName="ncplayer";const Rp=globalThis;Rp.process||(Rp.process={env:{}});let jp,ol,bM=0;function SM(n){switch(n){case"player.vpe.naverncp.com":return{platform:"pub",stage:"prod"};case"player.beta-vpe.naverncp.com":return{platform:"pub",stage:"beta"};case"player.vpe.gov-ntruss.com":return{platform:"gov",stage:"prod"};case"player.beta-vpe.gov-ntruss.com":return{platform:"gov",stage:"beta"};default:return{platform:"pub",stage:"prod"}}}const xM=(()=>{if(typeof document>"u")return"";const n=[];document.currentScript instanceof HTMLScriptElement&&n.push(document.currentScript),n.push(...Array.from(document.getElementsByTagName("script")));for(const a of n)if(a.src)try{const s=new URL(a.src,window.location.href);if(!ol){const u=SM(s.hostname);u&&(ol=u)}const r=s.searchParams.get("access_key");if(r)return r}catch{continue}return""})();function TM(n){return n||xM}const EM=n=>!n||typeof n!="object"?!1:"options"in n||"layout"in n||"platform"in n||"stage"in n||"hls"in n||"dashjs"in n||"accessKey"in n;function MM(n){if(!n)return;const a=globalThis,s=typeof n=="object"&&n!==null&&("MediaPlayer"in n||"MediaPlayerFactory"in n),r=typeof n=="function"||typeof n=="object"&&n!==null&&("isSupported"in n||"Events"in n);if(s&&!r){a.dashjs=n;return}if(r&&!s){a.Hls=n;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function AM(n){return typeof n!="string"||n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.includes(" ")||n.includes(">")||n.includes(":")?n:typeof document<"u"&&document.getElementById(n)?`#${n}`:n}const zp=T.forwardRef((n,a)=>b.jsx(Cu,{...n,ref:a}));zp.displayName="VpePlayer";function wu(n,a,s={}){const r=typeof a=="string"?a:a?.accessKey,u=typeof a=="string"?s:a??{},f=EM(u)?u:{options:u},d=TM(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const h=typeof n=="string"?document.querySelector(n):n;if(!h)throw new Error("지정한 타겟을 찾을 수 없습니다.");const y=document.createElement("div");h.appendChild(y);const g=kv.createRoot(y),p=f.scopeId??`vpe-${bM+=1}`,S={...f,scopeId:p,layout:f.layout??jp,platform:f.platform??ol?.platform,stage:f.stage??ol?.stage},v=(j={})=>{g.render(b.jsx(Cu,{...S,...j,accessKey:d}))};return v(),{destroy:()=>{g.unmount(),y.parentNode&&y.parentNode.removeChild(y)},container:y,render:v,scopeId:p}}class $i{destroy;container;render;scopeId;static use(a){return MM(a),$i}static layout(a){return jp=a,$i}static config(a){return ol=a,$i}constructor(a,s,r={}){const u=wu(AM(a),s,r);this.destroy=u.destroy,this.container=u.container,this.render=u.render,this.scopeId=u.scopeId}play(){const a=Xt(this.scopeId);if(a?.play){a.play();return}}pause(){const a=Xt(this.scopeId);if(a?.pause){a.pause();return}}mute(){const s=Xt(this.scopeId)?.toggleMute;if(typeof s=="function"){s(!0);return}}prev(){const s=Xt(this.scopeId)?.prev;if(typeof s=="function"){s();return}}next(){const s=Xt(this.scopeId)?.next;if(typeof s=="function"){s();return}}fullscreen(){const s=Xt(this.scopeId)?.toggleFullscreen;if(typeof s=="function"){s();return}}fullscreenOn(){const s=Xt(this.scopeId)?.fullscreenOn;if(typeof s=="function"){s();return}}fullScreenOff(){const s=Xt(this.scopeId)?.fullscreenOff;if(typeof s=="function"){s();return}}pip(){const s=Xt(this.scopeId)?.togglePictureInPicture;if(typeof s=="function"){s();return}}volume(a=1){const r=Xt(this.scopeId)?.setVolume;if(typeof r=="function"){r(a*100);return}}uiHidden(){const a=As(this.scopeId);a&&a.hide()}uiVisible(){const a=As(this.scopeId);a&&a.show()}currentTime(a=0){const r=Xt(this.scopeId)?.seekTo;if(typeof r=="function"){r(a);return}}controlBarActive(){const a=Ap(this.scopeId);a&&a()}controlBarDeactive(){const a=Cp(this.scopeId);a&&a()}on(a,s){if(!(!a||typeof s!="function"))return cM(this.scopeId,a,s),()=>fM(this.scopeId,a,s)}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:wu},window.ncplayer=$i),yn.Ncplayer=$i,yn.VpePlayer=zp,yn.setup=wu,yn.useDeviceState=sd,Object.defineProperty(yn,Symbol.toStringTag,{value:"Module"})}));
|