@sgrsoft/vpe-react-sdk 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
- (function(Xe,tn){typeof exports=="object"&&typeof module!="undefined"?tn(exports):typeof define=="function"&&define.amd?define(["exports"],tn):(Xe=typeof globalThis!="undefined"?globalThis:Xe||self,tn(Xe.VpeReactSdk={}))})(this,(function(Xe){"use strict";var K3=Object.defineProperty;var Q3=(Xe,tn,Li)=>tn in Xe?K3(Xe,tn,{enumerable:!0,configurable:!0,writable:!0,value:Li}):Xe[tn]=Li;var $e=(Xe,tn,Li)=>Q3(Xe,typeof tn!="symbol"?tn+"":tn,Li);var Ny;function tn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Li={exports:{}},Ol={};var Yd;function b1(){if(Yd)return Ol;Yd=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 Ol.Fragment=a,Ol.jsx=s,Ol.jsxs=s,Ol}var Pd;function S1(){return Pd||(Pd=1,Li.exports=b1()),Li.exports}var v=S1(),Fo={exports:{}},Mt={},qd;function x1(){if(qd)return Mt;qd=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"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),M=Symbol.iterator;function V(E){return E===null||typeof E!="object"?null:(E=M&&E[M]||E["@@iterator"],typeof E=="function"?E:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,Y={};function X(E,H,I){this.props=E,this.context=H,this.refs=Y,this.updater=I||w}X.prototype.isReactComponent={},X.prototype.setState=function(E,H){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,H,"setState")},X.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function A(){}A.prototype=X.prototype;function Z(E,H,I){this.props=E,this.context=H,this.refs=Y,this.updater=I||w}var R=Z.prototype=new A;R.constructor=Z,z(R,X.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function j(){}var D={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function K(E,H,I){var nt=I.ref;return{$$typeof:a,type:E,key:H,ref:nt!==void 0?nt:null,props:I}}function tt(E,H){return K(E.type,H,E.props)}function at(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function L(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(I){return H[I]})}var k=/\/+/g;function W(E,H){return typeof E=="object"&&E!==null&&E.key!=null?L(""+E.key):H.toString(36)}function _(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(j,j):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function N(E,H,I,nt,ct){var ot=typeof E;(ot==="undefined"||ot==="boolean")&&(E=null);var ft=!1;if(E===null)ft=!0;else switch(ot){case"bigint":case"string":case"number":ft=!0;break;case"object":switch(E.$$typeof){case a:case s:ft=!0;break;case S:return ft=E._init,N(ft(E._payload),H,I,nt,ct)}}if(ft)return ct=ct(E),ft=nt===""?"."+W(E,0):nt,O(ct)?(I="",ft!=null&&(I=ft.replace(k,"$&/")+"/"),N(ct,H,I,"",function(At){return At})):ct!=null&&(at(ct)&&(ct=tt(ct,I+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(k,"$&/")+"/")+ft)),H.push(ct)),1;ft=0;var bt=nt===""?".":nt+":";if(O(E))for(var xt=0;xt<E.length;xt++)nt=E[xt],ot=bt+W(nt,xt),ft+=N(nt,H,I,ot,ct);else if(xt=V(E),typeof xt=="function")for(E=xt.call(E),xt=0;!(nt=E.next()).done;)nt=nt.value,ot=bt+W(nt,xt++),ft+=N(nt,H,I,ot,ct);else if(ot==="object"){if(typeof E.then=="function")return N(_(E),H,I,nt,ct);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ft}function G(E,H,I){if(E==null)return E;var nt=[],ct=0;return N(E,nt,"","",function(ot){return H.call(I,ot,ct++)}),nt}function rt(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(I){(E._status===0||E._status===-1)&&(E._status=1,E._result=I)},function(I){(E._status===0||E._status===-1)&&(E._status=2,E._result=I)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var st=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",E);return}console.error(E)},yt={map:G,forEach:function(E,H,I){G(E,function(){H.apply(this,arguments)},I)},count:function(E){var H=0;return G(E,function(){H++}),H},toArray:function(E){return G(E,function(H){return H})||[]},only:function(E){if(!at(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Mt.Activity=b,Mt.Children=yt,Mt.Component=X,Mt.Fragment=r,Mt.Profiler=f,Mt.PureComponent=Z,Mt.StrictMode=u,Mt.Suspense=y,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Mt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return D.H.useMemoCache(E)}},Mt.cache=function(E){return function(){return E.apply(null,arguments)}},Mt.cacheSignal=function(){return null},Mt.cloneElement=function(E,H,I){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var nt=z({},E.props),ct=E.key;if(H!=null)for(ot in H.key!==void 0&&(ct=""+H.key),H)!J.call(H,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&H.ref===void 0||(nt[ot]=H[ot]);var ot=arguments.length-2;if(ot===1)nt.children=I;else if(1<ot){for(var ft=Array(ot),bt=0;bt<ot;bt++)ft[bt]=arguments[bt+2];nt.children=ft}return K(E.type,ct,nt)},Mt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},Mt.createElement=function(E,H,I){var nt,ct={},ot=null;if(H!=null)for(nt in H.key!==void 0&&(ot=""+H.key),H)J.call(H,nt)&&nt!=="key"&&nt!=="__self"&&nt!=="__source"&&(ct[nt]=H[nt]);var ft=arguments.length-2;if(ft===1)ct.children=I;else if(1<ft){for(var bt=Array(ft),xt=0;xt<ft;xt++)bt[xt]=arguments[xt+2];ct.children=bt}if(E&&E.defaultProps)for(nt in ft=E.defaultProps,ft)ct[nt]===void 0&&(ct[nt]=ft[nt]);return K(E,ot,ct)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function(E){return{$$typeof:m,render:E}},Mt.isValidElement=at,Mt.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:rt}},Mt.memo=function(E,H){return{$$typeof:p,type:E,compare:H===void 0?null:H}},Mt.startTransition=function(E){var H=D.T,I={};D.T=I;try{var nt=E(),ct=D.S;ct!==null&&ct(I,nt),typeof nt=="object"&&nt!==null&&typeof nt.then=="function"&&nt.then(j,st)}catch(ot){st(ot)}finally{H!==null&&I.types!==null&&(H.types=I.types),D.T=H}},Mt.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Mt.use=function(E){return D.H.use(E)},Mt.useActionState=function(E,H,I){return D.H.useActionState(E,H,I)},Mt.useCallback=function(E,H){return D.H.useCallback(E,H)},Mt.useContext=function(E){return D.H.useContext(E)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function(E,H){return D.H.useDeferredValue(E,H)},Mt.useEffect=function(E,H){return D.H.useEffect(E,H)},Mt.useEffectEvent=function(E){return D.H.useEffectEvent(E)},Mt.useId=function(){return D.H.useId()},Mt.useImperativeHandle=function(E,H,I){return D.H.useImperativeHandle(E,H,I)},Mt.useInsertionEffect=function(E,H){return D.H.useInsertionEffect(E,H)},Mt.useLayoutEffect=function(E,H){return D.H.useLayoutEffect(E,H)},Mt.useMemo=function(E,H){return D.H.useMemo(E,H)},Mt.useOptimistic=function(E,H){return D.H.useOptimistic(E,H)},Mt.useReducer=function(E,H,I){return D.H.useReducer(E,H,I)},Mt.useRef=function(E){return D.H.useRef(E)},Mt.useState=function(E){return D.H.useState(E)},Mt.useSyncExternalStore=function(E,H,I){return D.H.useSyncExternalStore(E,H,I)},Mt.useTransition=function(){return D.H.useTransition()},Mt.version="19.2.1",Mt}var Fd;function Xo(){return Fd||(Fd=1,Fo.exports=x1()),Fo.exports}var T=Xo();const ma=tn(T);var Ko={exports:{}},Nl={},Qo={exports:{}},Zo={};var Xd;function T1(){return Xd||(Xd=1,(function(n){function a(_,N){var G=_.length;_.push(N);t:for(;0<G;){var rt=G-1>>>1,st=_[rt];if(0<u(st,N))_[rt]=N,_[G]=st,G=rt;else break t}}function s(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var N=_[0],G=_.pop();if(G!==N){_[0]=G;t:for(var rt=0,st=_.length,yt=st>>>1;rt<yt;){var E=2*(rt+1)-1,H=_[E],I=E+1,nt=_[I];if(0>u(H,G))I<st&&0>u(nt,H)?(_[rt]=nt,_[I]=G,rt=I):(_[rt]=H,_[E]=G,rt=E);else if(I<st&&0>u(nt,G))_[rt]=nt,_[I]=G,rt=I;else break t}}return N}function u(_,N){var G=_.sortIndex-N.sortIndex;return G!==0?G:_.id-N.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 m=[],y=[],p=1,S=null,b=3,M=!1,V=!1,w=!1,z=!1,Y=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate!="undefined"?setImmediate:null;function Z(_){for(var N=s(y);N!==null;){if(N.callback===null)r(y);else if(N.startTime<=_)r(y),N.sortIndex=N.expirationTime,a(m,N);else break;N=s(y)}}function R(_){if(w=!1,Z(_),!V)if(s(m)!==null)V=!0,O||(O=!0,at());else{var N=s(y);N!==null&&W(R,N.startTime-_)}}var O=!1,j=-1,D=5,J=-1;function K(){return z?!0:!(n.unstable_now()-J<D)}function tt(){if(z=!1,O){var _=n.unstable_now();J=_;var N=!0;try{t:{V=!1,w&&(w=!1,X(j),j=-1),M=!0;var G=b;try{e:{for(Z(_),S=s(m);S!==null&&!(S.expirationTime>_&&K());){var rt=S.callback;if(typeof rt=="function"){S.callback=null,b=S.priorityLevel;var st=rt(S.expirationTime<=_);if(_=n.unstable_now(),typeof st=="function"){S.callback=st,Z(_),N=!0;break e}S===s(m)&&r(m),Z(_)}else r(m);S=s(m)}if(S!==null)N=!0;else{var yt=s(y);yt!==null&&W(R,yt.startTime-_),N=!1}}break t}finally{S=null,b=G,M=!1}N=void 0}}finally{N?at():O=!1}}}var at;if(typeof A=="function")at=function(){A(tt)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,k=L.port2;L.port1.onmessage=tt,at=function(){k.postMessage(null)}}else at=function(){Y(tt,0)};function W(_,N){j=Y(function(){_(n.unstable_now())},N)}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(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(_){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var G=b;b=N;try{return _()}finally{b=G}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(_,N){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var G=b;b=_;try{return N()}finally{b=G}},n.unstable_scheduleCallback=function(_,N,G){var rt=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?rt+G:rt):G=rt,_){case 1:var st=-1;break;case 2:st=250;break;case 5:st=1073741823;break;case 4:st=1e4;break;default:st=5e3}return st=G+st,_={id:p++,callback:N,priorityLevel:_,startTime:G,expirationTime:st,sortIndex:-1},G>rt?(_.sortIndex=G,a(y,_),s(m)===null&&_===s(y)&&(w?(X(j),j=-1):w=!0,W(R,G-rt))):(_.sortIndex=st,a(m,_),V||M||(V=!0,O||(O=!0,at()))),_},n.unstable_shouldYield=K,n.unstable_wrapCallback=function(_){var N=b;return function(){var G=b;b=N;try{return _.apply(this,arguments)}finally{b=G}}}})(Zo)),Zo}var Kd;function E1(){return Kd||(Kd=1,Qo.exports=T1()),Qo.exports}var Io={exports:{}},Ge={};var Qd;function M1(){if(Qd)return Ge;Qd=1;var n=Xo();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)y+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+y+" 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(m,y,p){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:m,containerInfo:y,implementation:p}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ge.createPortal=function(m,y){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(m,y,null,p)},Ge.flushSync=function(m){var y=d.T,p=r.p;try{if(d.T=null,r.p=2,m)return m()}finally{d.T=y,r.p=p,r.d.f()}},Ge.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(m,y))},Ge.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Ge.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var p=y.as,S=h(p,y.crossOrigin),b=typeof y.integrity=="string"?y.integrity:void 0,M=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;p==="style"?r.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:M}):p==="script"&&r.d.X(m,{crossOrigin:S,integrity:b,fetchPriority:M,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ge.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var p=h(y.as,y.crossOrigin);r.d.M(m,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(m)},Ge.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var p=y.as,S=h(p,y.crossOrigin);r.d.L(m,p,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ge.preloadModule=function(m,y){if(typeof m=="string")if(y){var p=h(y.as,y.crossOrigin);r.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(m)},Ge.requestFormReset=function(m){r.d.r(m)},Ge.unstable_batchedUpdates=function(m,y){return m(y)},Ge.useFormState=function(m,y,p){return d.H.useFormState(m,y,p)},Ge.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ge.version="19.2.1",Ge}var Zd;function A1(){if(Zd)return Io.exports;Zd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Io.exports=M1(),Io.exports}var Id;function w1(){if(Id)return Nl;Id=1;var n={};var a=E1(),s=Xo(),r=A1();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 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 y(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 y(o),t;if(c===l)return y(o),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=o,l=c;else{for(var g=!1,x=o.child;x;){if(x===i){g=!0,i=o,l=c;break}if(x===l){g=!0,l=o,i=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===i){g=!0,i=c,l=o;break}if(x===l){g=!0,l=c,i=o;break}x=x.sibling}if(!g)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 b=Object.assign,M=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function L(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var k=Symbol.for("react.client.reference");function W(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===k?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case X:return"Profiler";case Y:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case Z:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case R:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case D:return e=t.displayName||null,e!==null?e:W(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return W(t(e))}catch(i){}}return null}var _=Array.isArray,N=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,rt={pending:!1,data:null,method:null,action:null},st=[],yt=-1;function E(t){return{current:t}}function H(t){0>yt||(t.current=st[yt],st[yt]=null,yt--)}function I(t,e){yt++,st[yt]=t.current,t.current=e}var nt=E(null),ct=E(null),ot=E(null),ft=E(null);function bt(t,e){switch(I(ot,e),I(ct,t),I(nt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Yv(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Yv(e),t=Pv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(nt),I(nt,t)}function xt(){H(nt),H(ct),H(ot)}function At(t){t.memoizedState!==null&&I(ft,t);var e=nt.current,i=Pv(e,t.type);e!==i&&(I(ct,t),I(nt,i))}function je(t){ct.current===t&&(H(nt),H(ct)),ft.current===t&&(H(ft),Zs._currentValue=rt)}var Se,se;function me(t){if(Se===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Se=e&&e[1]||"",se=-1<i.stack.indexOf(`
1
+ (function(Xe,en){typeof exports=="object"&&typeof module!="undefined"?en(exports):typeof define=="function"&&define.amd?define(["exports"],en):(Xe=typeof globalThis!="undefined"?globalThis:Xe||self,en(Xe.VpeReactSdk={}))})(this,(function(Xe){"use strict";var a3=Object.defineProperty;var l3=(Xe,en,Li)=>en in Xe?a3(Xe,en,{enumerable:!0,configurable:!0,writable:!0,value:Li}):Xe[en]=Li;var tn=(Xe,en,Li)=>l3(Xe,typeof en!="symbol"?en+"":en,Li);var Gy;function en(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Li={exports:{}},Ll={};var qd;function M1(){if(qd)return Ll;qd=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 Ll.Fragment=a,Ll.jsx=s,Ll.jsxs=s,Ll}var Fd;function A1(){return Fd||(Fd=1,Li.exports=M1()),Li.exports}var v=A1(),Fo={exports:{}},Mt={},Xd;function w1(){if(Xd)return Mt;Xd=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"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),M=Symbol.iterator;function D(E){return E===null||typeof E!="object"?null:(E=M&&E[M]||E["@@iterator"],typeof E=="function"?E:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,H={};function F(E,k,J){this.props=E,this.context=k,this.refs=H,this.updater=J||C}F.prototype.isReactComponent={},F.prototype.setState=function(E,k){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,k,"setState")},F.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function A(){}A.prototype=F.prototype;function K(E,k,J){this.props=E,this.context=k,this.refs=H,this.updater=J||C}var w=K.prototype=new A;w.constructor=K,j(w,F.prototype),w.isPureReactComponent=!0;var N=Array.isArray;function V(){}var B={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function Z(E,k,J){var nt=J.ref;return{$$typeof:a,type:E,key:k,ref:nt!==void 0?nt:null,props:J}}function tt(E,k){return Z(E.type,k,E.props)}function at(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function L(E){var k={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return k[J]})}var G=/\/+/g;function W(E,k){return typeof E=="object"&&E!==null&&E.key!=null?L(""+E.key):k.toString(36)}function _(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(k){E.status==="pending"&&(E.status="fulfilled",E.value=k)},function(k){E.status==="pending"&&(E.status="rejected",E.reason=k)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,k,J,nt,ct){var ot=typeof E;(ot==="undefined"||ot==="boolean")&&(E=null);var ft=!1;if(E===null)ft=!0;else switch(ot){case"bigint":case"string":case"number":ft=!0;break;case"object":switch(E.$$typeof){case a:case s:ft=!0;break;case S:return ft=E._init,O(ft(E._payload),k,J,nt,ct)}}if(ft)return ct=ct(E),ft=nt===""?"."+W(E,0):nt,N(ct)?(J="",ft!=null&&(J=ft.replace(G,"$&/")+"/"),O(ct,k,J,"",function(At){return At})):ct!=null&&(at(ct)&&(ct=tt(ct,J+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(G,"$&/")+"/")+ft)),k.push(ct)),1;ft=0;var St=nt===""?".":nt+":";if(N(E))for(var Tt=0;Tt<E.length;Tt++)nt=E[Tt],ot=St+W(nt,Tt),ft+=O(nt,k,J,ot,ct);else if(Tt=D(E),typeof Tt=="function")for(E=Tt.call(E),Tt=0;!(nt=E.next()).done;)nt=nt.value,ot=St+W(nt,Tt++),ft+=O(nt,k,J,ot,ct);else if(ot==="object"){if(typeof E.then=="function")return O(_(E),k,J,nt,ct);throw k=String(E),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ft}function Y(E,k,J){if(E==null)return E;var nt=[],ct=0;return O(E,nt,"","",function(ot){return k.call(J,ot,ct++)}),nt}function rt(E){if(E._status===-1){var k=E._result;k=k(),k.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=k)}if(E._status===1)return E._result.default;throw E._result}var st=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=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(k))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",E);return}console.error(E)},pt={map:Y,forEach:function(E,k,J){Y(E,function(){k.apply(this,arguments)},J)},count:function(E){var k=0;return Y(E,function(){k++}),k},toArray:function(E){return Y(E,function(k){return k})||[]},only:function(E){if(!at(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Mt.Activity=b,Mt.Children=pt,Mt.Component=F,Mt.Fragment=r,Mt.Profiler=f,Mt.PureComponent=K,Mt.StrictMode=u,Mt.Suspense=y,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Mt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return B.H.useMemoCache(E)}},Mt.cache=function(E){return function(){return E.apply(null,arguments)}},Mt.cacheSignal=function(){return null},Mt.cloneElement=function(E,k,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var nt=j({},E.props),ct=E.key;if(k!=null)for(ot in k.key!==void 0&&(ct=""+k.key),k)!Q.call(k,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&k.ref===void 0||(nt[ot]=k[ot]);var ot=arguments.length-2;if(ot===1)nt.children=J;else if(1<ot){for(var ft=Array(ot),St=0;St<ot;St++)ft[St]=arguments[St+2];nt.children=ft}return Z(E.type,ct,nt)},Mt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},Mt.createElement=function(E,k,J){var nt,ct={},ot=null;if(k!=null)for(nt in k.key!==void 0&&(ot=""+k.key),k)Q.call(k,nt)&&nt!=="key"&&nt!=="__self"&&nt!=="__source"&&(ct[nt]=k[nt]);var ft=arguments.length-2;if(ft===1)ct.children=J;else if(1<ft){for(var St=Array(ft),Tt=0;Tt<ft;Tt++)St[Tt]=arguments[Tt+2];ct.children=St}if(E&&E.defaultProps)for(nt in ft=E.defaultProps,ft)ct[nt]===void 0&&(ct[nt]=ft[nt]);return Z(E,ot,ct)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function(E){return{$$typeof:m,render:E}},Mt.isValidElement=at,Mt.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:rt}},Mt.memo=function(E,k){return{$$typeof:p,type:E,compare:k===void 0?null:k}},Mt.startTransition=function(E){var k=B.T,J={};B.T=J;try{var nt=E(),ct=B.S;ct!==null&&ct(J,nt),typeof nt=="object"&&nt!==null&&typeof nt.then=="function"&&nt.then(V,st)}catch(ot){st(ot)}finally{k!==null&&J.types!==null&&(k.types=J.types),B.T=k}},Mt.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Mt.use=function(E){return B.H.use(E)},Mt.useActionState=function(E,k,J){return B.H.useActionState(E,k,J)},Mt.useCallback=function(E,k){return B.H.useCallback(E,k)},Mt.useContext=function(E){return B.H.useContext(E)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function(E,k){return B.H.useDeferredValue(E,k)},Mt.useEffect=function(E,k){return B.H.useEffect(E,k)},Mt.useEffectEvent=function(E){return B.H.useEffectEvent(E)},Mt.useId=function(){return B.H.useId()},Mt.useImperativeHandle=function(E,k,J){return B.H.useImperativeHandle(E,k,J)},Mt.useInsertionEffect=function(E,k){return B.H.useInsertionEffect(E,k)},Mt.useLayoutEffect=function(E,k){return B.H.useLayoutEffect(E,k)},Mt.useMemo=function(E,k){return B.H.useMemo(E,k)},Mt.useOptimistic=function(E,k){return B.H.useOptimistic(E,k)},Mt.useReducer=function(E,k,J){return B.H.useReducer(E,k,J)},Mt.useRef=function(E){return B.H.useRef(E)},Mt.useState=function(E){return B.H.useState(E)},Mt.useSyncExternalStore=function(E,k,J){return B.H.useSyncExternalStore(E,k,J)},Mt.useTransition=function(){return B.H.useTransition()},Mt.version="19.2.4",Mt}var Kd;function Xo(){return Kd||(Kd=1,Fo.exports=w1()),Fo.exports}var T=Xo();const ya=en(T);var Ko={exports:{}},Vl={},Qo={exports:{}},Zo={};var Qd;function C1(){return Qd||(Qd=1,(function(n){function a(_,O){var Y=_.length;_.push(O);t:for(;0<Y;){var rt=Y-1>>>1,st=_[rt];if(0<u(st,O))_[rt]=O,_[Y]=st,Y=rt;else break t}}function s(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var O=_[0],Y=_.pop();if(Y!==O){_[0]=Y;t:for(var rt=0,st=_.length,pt=st>>>1;rt<pt;){var E=2*(rt+1)-1,k=_[E],J=E+1,nt=_[J];if(0>u(k,Y))J<st&&0>u(nt,k)?(_[rt]=nt,_[J]=Y,rt=J):(_[rt]=k,_[E]=Y,rt=E);else if(J<st&&0>u(nt,Y))_[rt]=nt,_[J]=Y,rt=J;else break t}}return O}function u(_,O){var Y=_.sortIndex-O.sortIndex;return Y!==0?Y:_.id-O.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 m=[],y=[],p=1,S=null,b=3,M=!1,D=!1,C=!1,j=!1,H=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate!="undefined"?setImmediate:null;function K(_){for(var O=s(y);O!==null;){if(O.callback===null)r(y);else if(O.startTime<=_)r(y),O.sortIndex=O.expirationTime,a(m,O);else break;O=s(y)}}function w(_){if(C=!1,K(_),!D)if(s(m)!==null)D=!0,N||(N=!0,at());else{var O=s(y);O!==null&&W(w,O.startTime-_)}}var N=!1,V=-1,B=5,Q=-1;function Z(){return j?!0:!(n.unstable_now()-Q<B)}function tt(){if(j=!1,N){var _=n.unstable_now();Q=_;var O=!0;try{t:{D=!1,C&&(C=!1,F(V),V=-1),M=!0;var Y=b;try{e:{for(K(_),S=s(m);S!==null&&!(S.expirationTime>_&&Z());){var rt=S.callback;if(typeof rt=="function"){S.callback=null,b=S.priorityLevel;var st=rt(S.expirationTime<=_);if(_=n.unstable_now(),typeof st=="function"){S.callback=st,K(_),O=!0;break e}S===s(m)&&r(m),K(_)}else r(m);S=s(m)}if(S!==null)O=!0;else{var pt=s(y);pt!==null&&W(w,pt.startTime-_),O=!1}}break t}finally{S=null,b=Y,M=!1}O=void 0}}finally{O?at():N=!1}}}var at;if(typeof A=="function")at=function(){A(tt)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,G=L.port2;L.port1.onmessage=tt,at=function(){G.postMessage(null)}}else at=function(){H(tt,0)};function W(_,O){V=H(function(){_(n.unstable_now())},O)}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(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(_){switch(b){case 1:case 2:case 3:var O=3;break;default:O=b}var Y=b;b=O;try{return _()}finally{b=Y}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(_,O){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Y=b;b=_;try{return O()}finally{b=Y}},n.unstable_scheduleCallback=function(_,O,Y){var rt=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?rt+Y:rt):Y=rt,_){case 1:var st=-1;break;case 2:st=250;break;case 5:st=1073741823;break;case 4:st=1e4;break;default:st=5e3}return st=Y+st,_={id:p++,callback:O,priorityLevel:_,startTime:Y,expirationTime:st,sortIndex:-1},Y>rt?(_.sortIndex=Y,a(y,_),s(m)===null&&_===s(y)&&(C?(F(V),V=-1):C=!0,W(w,Y-rt))):(_.sortIndex=st,a(m,_),D||M||(D=!0,N||(N=!0,at()))),_},n.unstable_shouldYield=Z,n.unstable_wrapCallback=function(_){var O=b;return function(){var Y=b;b=O;try{return _.apply(this,arguments)}finally{b=Y}}}})(Zo)),Zo}var Zd;function R1(){return Zd||(Zd=1,Qo.exports=C1()),Qo.exports}var Io={exports:{}},Ge={};var Id;function D1(){if(Id)return Ge;Id=1;var n=Xo();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)y+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+y+" 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(m,y,p){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:m,containerInfo:y,implementation:p}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ge.createPortal=function(m,y){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(m,y,null,p)},Ge.flushSync=function(m){var y=d.T,p=r.p;try{if(d.T=null,r.p=2,m)return m()}finally{d.T=y,r.p=p,r.d.f()}},Ge.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(m,y))},Ge.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Ge.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var p=y.as,S=h(p,y.crossOrigin),b=typeof y.integrity=="string"?y.integrity:void 0,M=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;p==="style"?r.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:M}):p==="script"&&r.d.X(m,{crossOrigin:S,integrity:b,fetchPriority:M,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ge.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var p=h(y.as,y.crossOrigin);r.d.M(m,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(m)},Ge.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var p=y.as,S=h(p,y.crossOrigin);r.d.L(m,p,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ge.preloadModule=function(m,y){if(typeof m=="string")if(y){var p=h(y.as,y.crossOrigin);r.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(m)},Ge.requestFormReset=function(m){r.d.r(m)},Ge.unstable_batchedUpdates=function(m,y){return m(y)},Ge.useFormState=function(m,y,p){return d.H.useFormState(m,y,p)},Ge.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ge.version="19.2.4",Ge}var Jd;function j1(){if(Jd)return Io.exports;Jd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Io.exports=D1(),Io.exports}var Wd;function B1(){if(Wd)return Vl;Wd=1;var n={};var a=R1(),s=Xo(),r=j1();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 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 y(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 y(o),t;if(c===l)return y(o),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=o,l=c;else{for(var g=!1,x=o.child;x;){if(x===i){g=!0,i=o,l=c;break}if(x===l){g=!0,l=o,i=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===i){g=!0,i=c,l=o;break}if(x===l){g=!0,l=c,i=o;break}x=x.sibling}if(!g)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 b=Object.assign,M=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),K=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function L(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var G=Symbol.for("react.client.reference");function W(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===G?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case F:return"Profiler";case H:return"StrictMode";case N:return"Suspense";case V:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case K:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case w:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return e=t.displayName||null,e!==null?e:W(t.type)||"Memo";case Q:e=t._payload,t=t._init;try{return W(t(e))}catch(i){}}return null}var _=Array.isArray,O=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},st=[],pt=-1;function E(t){return{current:t}}function k(t){0>pt||(t.current=st[pt],st[pt]=null,pt--)}function J(t,e){pt++,st[pt]=t.current,t.current=e}var nt=E(null),ct=E(null),ot=E(null),ft=E(null);function St(t,e){switch(J(ot,e),J(ct,t),J(nt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kv(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kv(e),t=Qv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}k(nt),J(nt,t)}function Tt(){k(nt),k(ct),k(ot)}function At(t){t.memoizedState!==null&&J(ft,t);var e=nt.current,i=Qv(e,t.type);e!==i&&(J(ct,t),J(nt,i))}function De(t){ct.current===t&&(k(nt),k(ct)),ft.current===t&&(k(ft),Qs._currentValue=rt)}var Se,se;function me(t){if(Se===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Se=e&&e[1]||"",se=-1<i.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Se+t+se}var nn=!1;function De(t,e){if(!t||nn)return"";nn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(Q){var F=Q}Reflect.construct(t,[],it)}else{try{it.call()}catch(Q){F=Q}t.call(it.prototype)}}else{try{throw Error()}catch(Q){F=Q}(it=t())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(Q){if(Q&&F&&typeof Q.stack=="string")return[Q.stack,F.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(),g=c[0],x=c[1];if(g&&x){var C=g.split(`
3
+ `+Se+t+se}var nn=!1;function je(t,e){if(!t||nn)return"";nn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(I){var X=I}Reflect.construct(t,[],it)}else{try{it.call()}catch(I){X=I}t.call(it.prototype)}}else{try{throw Error()}catch(I){X=I}(it=t())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(I){if(I&&X&&typeof I.stack=="string")return[I.stack,X.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(),g=c[0],x=c[1];if(g&&x){var R=g.split(`
4
4
  `),q=x.split(`
5
- `);for(o=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;o<q.length&&!q[o].includes("DetermineComponentFrameRoot");)o++;if(l===C.length||o===q.length)for(l=C.length-1,o=q.length-1;1<=l&&0<=o&&C[l]!==q[o];)o--;for(;1<=l&&0<=o;l--,o--)if(C[l]!==q[o]){if(l!==1||o!==1)do if(l--,o--,0>o||C[l]!==q[o]){var $=`
6
- `+C[l].replace(" at new "," at ");return t.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",t.displayName)),$}while(1<=l&&0<=o);break}}}finally{nn=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?me(i):""}function hn(t,e){switch(t.tag){case 26:case 27:case 5:return me(t.type);case 16:return me("Lazy");case 13:return t.child!==e&&e!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return De(t.type,!1);case 11:return De(t.type.render,!1);case 1:return De(t.type,!0);case 31:return me("Activity");default:return""}}function Dt(t){try{var e="",i=null;do e+=hn(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
5
+ `);for(o=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;o<q.length&&!q[o].includes("DetermineComponentFrameRoot");)o++;if(l===R.length||o===q.length)for(l=R.length-1,o=q.length-1;1<=l&&0<=o&&R[l]!==q[o];)o--;for(;1<=l&&0<=o;l--,o--)if(R[l]!==q[o]){if(l!==1||o!==1)do if(l--,o--,0>o||R[l]!==q[o]){var $=`
6
+ `+R[l].replace(" at new "," at ");return t.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",t.displayName)),$}while(1<=l&&0<=o);break}}}finally{nn=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?me(i):""}function hn(t,e){switch(t.tag){case 26:case 27:case 5:return me(t.type);case 16:return me("Lazy");case 13:return t.child!==e&&e!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return je(t.type,!1);case 11:return je(t.type.render,!1);case 1:return je(t.type,!0);case 31:return me("Activity");default:return""}}function jt(t){try{var e="",i=null;do e+=hn(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 Be=Object.prototype.hasOwnProperty,xe=a.unstable_scheduleCallback,Te=a.unstable_cancelCallback,ze=a.unstable_shouldYield,Pe=a.unstable_requestPaint,fe=a.unstable_now,Xn=a.unstable_getCurrentPriorityLevel,lt=a.unstable_ImmediatePriority,Tt=a.unstable_UserBlockingPriority,Xt=a.unstable_NormalPriority,jt=a.unstable_LowPriority,Ht=a.unstable_IdlePriority,ne=a.log,Jt=a.unstable_setDisableYieldValue,Yt=null,wt=null;function ye(t){if(typeof ne=="function"&&Jt(t),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Yt,t)}catch(e){}}var re=Math.clz32?Math.clz32:yn,mn=Math.log,Kn=Math.LN2;function yn(t){return t>>>=0,t===0?32:31-(mn(t)/Kn|0)|0}var jn=256,Dn=262144,pn=4194304;function qe(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 gn(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=qe(l):(g&=x,g!==0?o=qe(g):i||(i=x&~t,i!==0&&(o=qe(i))))):(x=l&~c,x!==0?o=qe(x):g!==0?o=qe(g):i||(i=l&~t,i!==0&&(o=qe(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 Bt(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Fe(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 Ve(){var t=pn;return pn<<=1,(pn&62914560)===0&&(pn=4194304),t}function Ze(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function an(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ei(t,e,i,l,o,c){var g=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,C=t.expirationTimes,q=t.hiddenUpdates;for(i=g&~i;0<i;){var $=31-re(i),it=1<<$;x[$]=0,C[$]=-1;var F=q[$];if(F!==null)for(q[$]=null,$=0;$<F.length;$++){var Q=F[$];Q!==null&&(Q.lane&=-536870913)}i&=~it}l!==0&&Qn(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function Qn(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-re(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Gi(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-re(i),o=1<<l;o&e|t[l]&e&&(t[l]|=e),i&=~o}}function Yi(t,e){var i=e&-e;return i=(i&42)!==0?1:fi(i),(i&(t.suspendedLanes|e))!==0?0:i}function fi(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 di(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pi(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:d1(t.type))}function ut(t,e){var i=G.p;try{return G.p=t,e()}finally{G.p=i}}var dt=Math.random().toString(36).slice(2),ht="__reactFiber$"+dt,pt="__reactProps$"+dt,kt="__reactContainer$"+dt,Wt="__reactEvents$"+dt,Bn="__reactListeners$"+dt,Pt="__reactHandles$"+dt,ni="__reactResources$"+dt,ln="__reactMarker$"+dt;function zn(t){delete t[ht],delete t[pt],delete t[Wt],delete t[Bn],delete t[Pt]}function Ln(t){var e=t[ht];if(e)return e;for(var i=t.parentNode;i;){if(e=i[kt]||i[ht]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Iv(t);t!==null;){if(i=t[ht])return i;t=Iv(t)}return e}t=i,i=t.parentNode}return null}function Vn(t){if(t=t[ht]||t[kt]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function qi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function hi(t){var e=t[ni];return e||(e=t[ni]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function pe(t){t[ln]=!0}var ls=new Set,ss={};function ii(t,e){mi(t,e),mi(t+"Capture",e)}function mi(t,e){for(ss[t]=e,t=0;t<e.length;t++)ls.add(e[t])}var Br=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]*$"),rs={},os={};function zr(t){return Be.call(os,t)?!0:Be.call(rs,t)?!1:Br.test(t)?os[t]=!0:(rs[t]=!0,!1)}function xa(t,e,i){if(zr(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 Ta(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 On(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 Ie(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function us(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Lr(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l!="undefined"&&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(g){i=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function tl(t){if(!t._valueTracker){var e=us(t)?"checked":"value";t._valueTracker=Lr(t,e,""+t[e])}}function cs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=us(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ea(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}var Vr=/[\n"\\]/g;function Je(t){return t.replace(Vr,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function el(t,e,i,l,o,c,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ie(e)):t.value!==""+Ie(e)&&(t.value=""+Ie(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?yi(t,g,Ie(e)):i!=null?yi(t,g,Ie(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=""+Ie(x):t.removeAttribute("name")}function fs(t,e,i,l,o,c,g,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)){tl(t);return}i=i!=null?""+Ie(i):"",e=e!=null?""+Ie(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l!=null?l:o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),tl(t)}function yi(t,e,i){e==="number"&&Ea(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function nl(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=""+Ie(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 Uy(t,e,i){if(e!=null&&(e=""+Ie(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ie(i):""}function _y(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(_(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Ie(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),tl(t)}function il(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var YA=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 Hy(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||YA.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function ky(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&&Hy(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&Hy(t,c,e[c])}function Uc(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 PA=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"]]),qA=/^[\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 Or(t){return qA.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pi(){}var _c=null;function Hc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var al=null,ll=null;function Gy(t){var e=Vn(t);if(e&&(t=e.stateNode)){var i=t[pt]||null;t:switch(t=e.stateNode,e.type){case"input":if(el(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="'+Je(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var o=l[pt]||null;if(!o)throw Error(u(90));el(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&&cs(l)}break t;case"textarea":Uy(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&nl(t,!!i.multiple,e,!1)}}}var kc=!1;function Yy(t,e,i){if(kc)return t(e,i);kc=!0;try{var l=t(e);return l}finally{if(kc=!1,(al!==null||ll!==null)&&(Eo(),al&&(e=al,t=ll,ll=al=null,Gy(e),t)))for(e=0;e<t.length;e++)Gy(t[e])}}function ds(t,e){var i=t.stateNode;if(i===null)return null;var l=i[pt]||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 gi=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Gc=!1;if(gi)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch(t){Gc=!1}var Fi=null,Yc=null,Nr=null;function Py(){if(Nr)return Nr;var t,e=Yc,i=e.length,l,o="value"in Fi?Fi.value:Fi.textContent,c=o.length;for(t=0;t<i&&e[t]===o[t];t++);var g=i-t;for(l=1;l<=g&&e[i-l]===o[c-l];l++);return Nr=o.slice(t,1<l?1-l:void 0)}function Ur(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 _r(){return!0}function qy(){return!1}function sn(t){function e(i,l,o,c,g){this._reactName=i,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=g,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)?_r:qy,this.isPropagationStopped=qy,this}return b(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=_r)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),e}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=sn(Ma),ms=b({},Ma,{view:0,detail:0}),FA=sn(ms),Pc,qc,ys,kr=b({},ms,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xc,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!==ys&&(ys&&t.type==="mousemove"?(Pc=t.screenX-ys.screenX,qc=t.screenY-ys.screenY):qc=Pc=0,ys=t),Pc)},movementY:function(t){return"movementY"in t?t.movementY:qc}}),Fy=sn(kr),XA=b({},kr,{dataTransfer:0}),KA=sn(XA),QA=b({},ms,{relatedTarget:0}),Fc=sn(QA),ZA=b({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),IA=sn(ZA),JA=b({},Ma,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),WA=sn(JA),$A=b({},Ma,{data:0}),Xy=sn($A),t5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e5={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"},n5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i5(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=n5[t])?!!e[t]:!1}function Xc(){return i5}var a5=b({},ms,{key:function(t){if(t.key){var e=t5[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ur(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?e5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xc,charCode:function(t){return t.type==="keypress"?Ur(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ur(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),l5=sn(a5),s5=b({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ky=sn(s5),r5=b({},ms,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xc}),o5=sn(r5),u5=b({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),c5=sn(u5),f5=b({},kr,{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}),d5=sn(f5),h5=b({},Ma,{newState:0,oldState:0}),m5=sn(h5),y5=[9,13,27,32],Kc=gi&&"CompositionEvent"in window,ps=null;gi&&"documentMode"in document&&(ps=document.documentMode);var p5=gi&&"TextEvent"in window&&!ps,Qy=gi&&(!Kc||ps&&8<ps&&11>=ps),Zy=" ",Iy=!1;function Jy(t,e){switch(t){case"keyup":return y5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wy(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sl=!1;function g5(t,e){switch(t){case"compositionend":return Wy(e);case"keypress":return e.which!==32?null:(Iy=!0,Zy);case"textInput":return t=e.data,t===Zy&&Iy?null:t;default:return null}}function v5(t,e){if(sl)return t==="compositionend"||!Kc&&Jy(t,e)?(t=Py(),Nr=Yc=Fi=null,sl=!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 Qy&&e.locale!=="ko"?null:e.data;default:return null}}var b5={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 $y(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!b5[t.type]:e==="textarea"}function tp(t,e,i,l){al?ll?ll.push(l):ll=[l]:al=l,e=Do(e,"onChange"),0<e.length&&(i=new Hr("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var gs=null,vs=null;function S5(t){Nv(t,0)}function Gr(t){var e=qi(t);if(cs(e))return t}function ep(t,e){if(t==="change")return e}var np=!1;if(gi){var Qc;if(gi){var Zc="oninput"in document;if(!Zc){var ip=document.createElement("div");ip.setAttribute("oninput","return;"),Zc=typeof ip.oninput=="function"}Qc=Zc}else Qc=!1;np=Qc&&(!document.documentMode||9<document.documentMode)}function ap(){gs&&(gs.detachEvent("onpropertychange",lp),vs=gs=null)}function lp(t){if(t.propertyName==="value"&&Gr(vs)){var e=[];tp(e,vs,t,Hc(t)),Yy(S5,e)}}function x5(t,e,i){t==="focusin"?(ap(),gs=e,vs=i,gs.attachEvent("onpropertychange",lp)):t==="focusout"&&ap()}function T5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gr(vs)}function E5(t,e){if(t==="click")return Gr(e)}function M5(t,e){if(t==="input"||t==="change")return Gr(e)}function A5(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vn=typeof Object.is=="function"?Object.is:A5;function bs(t,e){if(vn(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(!Be.call(e,o)||!vn(t[o],e[o]))return!1}return!0}function sp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rp(t,e){var i=sp(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=sp(i)}}function op(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?op(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function up(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ea(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch(l){i=!1}if(i)t=e.contentWindow;else break;e=Ea(t.document)}return e}function Ic(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 w5=gi&&"documentMode"in document&&11>=document.documentMode,rl=null,Jc=null,Ss=null,Wc=!1;function cp(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Wc||rl==null||rl!==Ea(l)||(l=rl,"selectionStart"in l&&Ic(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}),Ss&&bs(Ss,l)||(Ss=l,l=Do(Jc,"onSelect"),0<l.length&&(e=new Hr("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=rl)))}function Aa(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ol={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},$c={},fp={};gi&&(fp=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function wa(t){if($c[t])return $c[t];if(!ol[t])return t;var e=ol[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in fp)return $c[t]=e[i];return t}var dp=wa("animationend"),hp=wa("animationiteration"),mp=wa("animationstart"),C5=wa("transitionrun"),R5=wa("transitionstart"),j5=wa("transitioncancel"),yp=wa("transitionend"),pp=new Map,tf="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(" ");tf.push("scrollEnd");function Zn(t,e){pp.set(t,e),ii(e,[t])}var Yr=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)},Nn=[],ul=0,ef=0;function Pr(){for(var t=ul,e=ef=ul=0;e<t;){var i=Nn[e];Nn[e++]=null;var l=Nn[e];Nn[e++]=null;var o=Nn[e];Nn[e++]=null;var c=Nn[e];if(Nn[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}c!==0&&gp(i,o,c)}}function qr(t,e,i,l){Nn[ul++]=t,Nn[ul++]=e,Nn[ul++]=i,Nn[ul++]=l,ef|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function nf(t,e,i,l){return qr(t,e,i,l),Fr(t)}function Ca(t,e){return qr(t,null,null,e),Fr(t)}function gp(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-re(i),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=i|536870912),c):null}function Fr(t){if(50<Ys)throw Ys=0,dd=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var cl={};function D5(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 bn(t,e,i,l){return new D5(t,e,i,l)}function af(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vi(t,e){var i=t.alternate;return i===null?(i=bn(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 vp(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 Xr(t,e,i,l,o,c){var g=0;if(l=t,typeof t=="function")af(t)&&(g=1);else if(typeof t=="string")g=O3(t,i,nt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case K:return t=bn(31,i,e,o),t.elementType=K,t.lanes=c,t;case z:return Ra(i.children,o,c,e);case Y:g=8,o|=24;break;case X:return t=bn(12,i,e,o|2),t.elementType=X,t.lanes=c,t;case O:return t=bn(13,i,e,o),t.elementType=O,t.lanes=c,t;case j:return t=bn(19,i,e,o),t.elementType=j,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:g=10;break t;case A:g=9;break t;case R:g=11;break t;case D:g=14;break t;case J:g=16,l=null;break t}g=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=bn(g,i,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Ra(t,e,i,l){return t=bn(7,t,l,e),t.lanes=i,t}function lf(t,e,i){return t=bn(6,t,null,e),t.lanes=i,t}function bp(t){var e=bn(18,null,null,0);return e.stateNode=t,e}function sf(t,e,i){return e=bn(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Sp=new WeakMap;function Un(t,e){if(typeof t=="object"&&t!==null){var i=Sp.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Dt(e)},Sp.set(t,e),e)}return{value:t,source:e,stack:Dt(e)}}var fl=[],dl=0,Kr=null,xs=0,_n=[],Hn=0,Xi=null,ai=1,li="";function bi(t,e){fl[dl++]=xs,fl[dl++]=Kr,Kr=t,xs=e}function xp(t,e,i){_n[Hn++]=ai,_n[Hn++]=li,_n[Hn++]=Xi,Xi=t;var l=ai;t=li;var o=32-re(l)-1;l&=~(1<<o),i+=1;var c=32-re(e)+o;if(30<c){var g=o-o%5;c=(l&(1<<g)-1).toString(32),l>>=g,o-=g,ai=1<<32-re(e)+o|i<<o|l,li=c+t}else ai=1<<c|i<<o|l,li=t}function rf(t){t.return!==null&&(bi(t,1),xp(t,1,0))}function of(t){for(;t===Kr;)Kr=fl[--dl],fl[dl]=null,xs=fl[--dl],fl[dl]=null;for(;t===Xi;)Xi=_n[--Hn],_n[Hn]=null,li=_n[--Hn],_n[Hn]=null,ai=_n[--Hn],_n[Hn]=null}function Tp(t,e){_n[Hn++]=ai,_n[Hn++]=li,_n[Hn++]=Xi,ai=e.id,li=e.overflow,Xi=t}var Ue=null,ie=null,Nt=!1,Ki=null,kn=!1,uf=Error(u(519));function Qi(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(Un(e,t)),uf}function Ep(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ht]=t,e[pt]=l,i){case"dialog":Lt("cancel",e),Lt("close",e);break;case"iframe":case"object":case"embed":Lt("load",e);break;case"video":case"audio":for(i=0;i<qs.length;i++)Lt(qs[i],e);break;case"source":Lt("error",e);break;case"img":case"image":case"link":Lt("error",e),Lt("load",e);break;case"details":Lt("toggle",e);break;case"input":Lt("invalid",e),fs(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Lt("invalid",e);break;case"textarea":Lt("invalid",e),_y(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||kv(e.textContent,i)?(l.popover!=null&&(Lt("beforetoggle",e),Lt("toggle",e)),l.onScroll!=null&&Lt("scroll",e),l.onScrollEnd!=null&&Lt("scrollend",e),l.onClick!=null&&(e.onclick=pi),e=!0):e=!1,e||Qi(t,!0)}function Mp(t){for(Ue=t.return;Ue;)switch(Ue.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Ue=Ue.return}}function hl(t){if(t!==Ue)return!1;if(!Nt)return Mp(t),Nt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Cd(t.type,t.memoizedProps)),i=!i),i&&ie&&Qi(t),Mp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));ie=Zv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));ie=Zv(t)}else e===27?(e=ie,oa(t.type)?(t=zd,zd=null,ie=t):ie=e):ie=Ue?Yn(t.stateNode.nextSibling):null;return!0}function ja(){ie=Ue=null,Nt=!1}function cf(){var t=Ki;return t!==null&&(cn===null?cn=t:cn.push.apply(cn,t),Ki=null),t}function Ts(t){Ki===null?Ki=[t]:Ki.push(t)}var ff=E(null),Da=null,Si=null;function Zi(t,e,i){I(ff,e._currentValue),e._currentValue=i}function xi(t){t._currentValue=ff.current,H(ff)}function df(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 hf(t,e,i,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var C=0;C<e.length;C++)if(x.context===e[C]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),df(c.return,i,t),l||(g=null);break t}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=i,c=g.alternate,c!==null&&(c.lanes|=i),df(g,i,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function ml(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 g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var x=o.type;vn(o.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(o===ft.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Zs):t=[Zs])}o=o.return}t!==null&&hf(e,t,i,l),e.flags|=262144}function Qr(t){for(t=t.firstContext;t!==null;){if(!vn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ba(t){Da=t,Si=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function _e(t){return Ap(Da,t)}function Zr(t,e){return Da===null&&Ba(t),Ap(t,e)}function Ap(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Si===null){if(t===null)throw Error(u(308));Si=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Si=Si.next=e;return i}var B5=typeof AbortController!="undefined"?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()})}},z5=a.unstable_scheduleCallback,L5=a.unstable_NormalPriority,Ee={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return{controller:new B5,data:new Map,refCount:0}}function Es(t){t.refCount--,t.refCount===0&&z5(L5,function(){t.controller.abort()})}var Ms=null,yf=0,yl=0,pl=null;function V5(t,e){if(Ms===null){var i=Ms=[];yf=0,yl=vd(),pl={status:"pending",value:void 0,then:function(l){i.push(l)}}}return yf++,e.then(wp,wp),e}function wp(){if(--yf===0&&Ms!==null){pl!==null&&(pl.status="fulfilled");var t=Ms;Ms=null,yl=0,pl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function O5(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 Cp=N.S;N.S=function(t,e){cv=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&V5(t,e),Cp!==null&&Cp(t,e)};var za=E(null);function pf(){var t=za.current;return t!==null?t:$t.pooledCache}function Ir(t,e){e===null?I(za,za.current):I(za,e.pool)}function Rp(){var t=pf();return t===null?null:{parent:Ee._currentValue,pool:t}}var gl=Error(u(460)),gf=Error(u(474)),Jr=Error(u(542)),Wr={then:function(){}};function jp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Dp(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(pi,pi),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,zp(t),t;default:if(typeof e.status=="string")e.then(pi,pi);else{if(t=$t,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,zp(t),t}throw Va=e,gl}}function La(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,gl):i}}var Va=null;function Bp(){if(Va===null)throw Error(u(459));var t=Va;return Va=null,t}function zp(t){if(t===gl||t===Jr)throw Error(u(483))}var vl=null,As=0;function $r(t){var e=As;return As+=1,vl===null&&(vl=[]),Dp(vl,t,e)}function ws(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function to(t,e){throw e.$$typeof===M?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Lp(t){function e(U,B){if(t){var P=U.deletions;P===null?(U.deletions=[B],U.flags|=16):P.push(B)}}function i(U,B){if(!t)return null;for(;B!==null;)e(U,B),B=B.sibling;return null}function l(U){for(var B=new Map;U!==null;)U.key!==null?B.set(U.key,U):B.set(U.index,U),U=U.sibling;return B}function o(U,B){return U=vi(U,B),U.index=0,U.sibling=null,U}function c(U,B,P){return U.index=P,t?(P=U.alternate,P!==null?(P=P.index,P<B?(U.flags|=67108866,B):P):(U.flags|=67108866,B)):(U.flags|=1048576,B)}function g(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function x(U,B,P,et){return B===null||B.tag!==6?(B=lf(P,U.mode,et),B.return=U,B):(B=o(B,P),B.return=U,B)}function C(U,B,P,et){var vt=P.type;return vt===z?$(U,B,P.props.children,et,P.key):B!==null&&(B.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===J&&La(vt)===B.type)?(B=o(B,P.props),ws(B,P),B.return=U,B):(B=Xr(P.type,P.key,P.props,null,U.mode,et),ws(B,P),B.return=U,B)}function q(U,B,P,et){return B===null||B.tag!==4||B.stateNode.containerInfo!==P.containerInfo||B.stateNode.implementation!==P.implementation?(B=sf(P,U.mode,et),B.return=U,B):(B=o(B,P.children||[]),B.return=U,B)}function $(U,B,P,et,vt){return B===null||B.tag!==7?(B=Ra(P,U.mode,et,vt),B.return=U,B):(B=o(B,P),B.return=U,B)}function it(U,B,P){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=lf(""+B,U.mode,P),B.return=U,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case V:return P=Xr(B.type,B.key,B.props,null,U.mode,P),ws(P,B),P.return=U,P;case w:return B=sf(B,U.mode,P),B.return=U,B;case J:return B=La(B),it(U,B,P)}if(_(B)||L(B))return B=Ra(B,U.mode,P,null),B.return=U,B;if(typeof B.then=="function")return it(U,$r(B),P);if(B.$$typeof===Z)return it(U,Zr(U,B),P);to(U,B)}return null}function F(U,B,P,et){var vt=B!==null?B.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return vt!==null?null:x(U,B,""+P,et);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case V:return P.key===vt?C(U,B,P,et):null;case w:return P.key===vt?q(U,B,P,et):null;case J:return P=La(P),F(U,B,P,et)}if(_(P)||L(P))return vt!==null?null:$(U,B,P,et,null);if(typeof P.then=="function")return F(U,B,$r(P),et);if(P.$$typeof===Z)return F(U,B,Zr(U,P),et);to(U,P)}return null}function Q(U,B,P,et,vt){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return U=U.get(P)||null,x(B,U,""+et,vt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case V:return U=U.get(et.key===null?P:et.key)||null,C(B,U,et,vt);case w:return U=U.get(et.key===null?P:et.key)||null,q(B,U,et,vt);case J:return et=La(et),Q(U,B,P,et,vt)}if(_(et)||L(et))return U=U.get(P)||null,$(B,U,et,vt,null);if(typeof et.then=="function")return Q(U,B,P,$r(et),vt);if(et.$$typeof===Z)return Q(U,B,P,Zr(B,et),vt);to(B,et)}return null}function mt(U,B,P,et){for(var vt=null,Ut=null,gt=B,Rt=B=0,Ot=null;gt!==null&&Rt<P.length;Rt++){gt.index>Rt?(Ot=gt,gt=null):Ot=gt.sibling;var _t=F(U,gt,P[Rt],et);if(_t===null){gt===null&&(gt=Ot);break}t&&gt&&_t.alternate===null&&e(U,gt),B=c(_t,B,Rt),Ut===null?vt=_t:Ut.sibling=_t,Ut=_t,gt=Ot}if(Rt===P.length)return i(U,gt),Nt&&bi(U,Rt),vt;if(gt===null){for(;Rt<P.length;Rt++)gt=it(U,P[Rt],et),gt!==null&&(B=c(gt,B,Rt),Ut===null?vt=gt:Ut.sibling=gt,Ut=gt);return Nt&&bi(U,Rt),vt}for(gt=l(gt);Rt<P.length;Rt++)Ot=Q(gt,U,Rt,P[Rt],et),Ot!==null&&(t&&Ot.alternate!==null&&gt.delete(Ot.key===null?Rt:Ot.key),B=c(Ot,B,Rt),Ut===null?vt=Ot:Ut.sibling=Ot,Ut=Ot);return t&&gt.forEach(function(ha){return e(U,ha)}),Nt&&bi(U,Rt),vt}function St(U,B,P,et){if(P==null)throw Error(u(151));for(var vt=null,Ut=null,gt=B,Rt=B=0,Ot=null,_t=P.next();gt!==null&&!_t.done;Rt++,_t=P.next()){gt.index>Rt?(Ot=gt,gt=null):Ot=gt.sibling;var ha=F(U,gt,_t.value,et);if(ha===null){gt===null&&(gt=Ot);break}t&&gt&&ha.alternate===null&&e(U,gt),B=c(ha,B,Rt),Ut===null?vt=ha:Ut.sibling=ha,Ut=ha,gt=Ot}if(_t.done)return i(U,gt),Nt&&bi(U,Rt),vt;if(gt===null){for(;!_t.done;Rt++,_t=P.next())_t=it(U,_t.value,et),_t!==null&&(B=c(_t,B,Rt),Ut===null?vt=_t:Ut.sibling=_t,Ut=_t);return Nt&&bi(U,Rt),vt}for(gt=l(gt);!_t.done;Rt++,_t=P.next())_t=Q(gt,U,Rt,_t.value,et),_t!==null&&(t&&_t.alternate!==null&&gt.delete(_t.key===null?Rt:_t.key),B=c(_t,B,Rt),Ut===null?vt=_t:Ut.sibling=_t,Ut=_t);return t&&gt.forEach(function(X3){return e(U,X3)}),Nt&&bi(U,Rt),vt}function Zt(U,B,P,et){if(typeof P=="object"&&P!==null&&P.type===z&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case V:t:{for(var vt=P.key;B!==null;){if(B.key===vt){if(vt=P.type,vt===z){if(B.tag===7){i(U,B.sibling),et=o(B,P.props.children),et.return=U,U=et;break t}}else if(B.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===J&&La(vt)===B.type){i(U,B.sibling),et=o(B,P.props),ws(et,P),et.return=U,U=et;break t}i(U,B);break}else e(U,B);B=B.sibling}P.type===z?(et=Ra(P.props.children,U.mode,et,P.key),et.return=U,U=et):(et=Xr(P.type,P.key,P.props,null,U.mode,et),ws(et,P),et.return=U,U=et)}return g(U);case w:t:{for(vt=P.key;B!==null;){if(B.key===vt)if(B.tag===4&&B.stateNode.containerInfo===P.containerInfo&&B.stateNode.implementation===P.implementation){i(U,B.sibling),et=o(B,P.children||[]),et.return=U,U=et;break t}else{i(U,B);break}else e(U,B);B=B.sibling}et=sf(P,U.mode,et),et.return=U,U=et}return g(U);case J:return P=La(P),Zt(U,B,P,et)}if(_(P))return mt(U,B,P,et);if(L(P)){if(vt=L(P),typeof vt!="function")throw Error(u(150));return P=vt.call(P),St(U,B,P,et)}if(typeof P.then=="function")return Zt(U,B,$r(P),et);if(P.$$typeof===Z)return Zt(U,B,Zr(U,P),et);to(U,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,B!==null&&B.tag===6?(i(U,B.sibling),et=o(B,P),et.return=U,U=et):(i(U,B),et=lf(P,U.mode,et),et.return=U,U=et),g(U)):i(U,B)}return function(U,B,P,et){try{As=0;var vt=Zt(U,B,P,et);return vl=null,vt}catch(gt){if(gt===gl||gt===Jr)throw gt;var Ut=bn(29,gt,null,U.mode);return Ut.lanes=et,Ut.return=U,Ut}finally{}}}var Oa=Lp(!0),Vp=Lp(!1),Ii=!1;function vf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bf(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 Ji(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Gt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=Fr(t),gp(t,null,i),e}return qr(t,l,e,i),Fr(t)}function Cs(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,Gi(t,i)}}function Sf(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 g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,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 xf=!1;function Rs(){if(xf){var t=pl;if(t!==null)throw t}}function js(t,e,i,l){xf=!1;var o=t.updateQueue;Ii=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var C=x,q=C.next;C.next=null,g===null?c=q:g.next=q,g=C;var $=t.alternate;$!==null&&($=$.updateQueue,x=$.lastBaseUpdate,x!==g&&(x===null?$.firstBaseUpdate=q:x.next=q,$.lastBaseUpdate=C))}if(c!==null){var it=o.baseState;g=0,$=q=C=null,x=c;do{var F=x.lane&-536870913,Q=F!==x.lane;if(Q?(Vt&F)===F:(l&F)===F){F!==0&&F===yl&&(xf=!0),$!==null&&($=$.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var mt=t,St=x;F=e;var Zt=i;switch(St.tag){case 1:if(mt=St.payload,typeof mt=="function"){it=mt.call(Zt,it,F);break t}it=mt;break t;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=St.payload,F=typeof mt=="function"?mt.call(Zt,it,F):mt,F==null)break t;it=b({},it,F);break t;case 2:Ii=!0}}F=x.callback,F!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=o.callbacks,Q===null?o.callbacks=[F]:Q.push(F))}else Q={lane:F,tag:x.tag,payload:x.payload,callback:x.callback,next:null},$===null?(q=$=Q,C=it):$=$.next=Q,g|=F;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;Q=x,x=Q.next,Q.next=null,o.lastBaseUpdate=Q,o.shared.pending=null}}while(!0);$===null&&(C=it),o.baseState=C,o.firstBaseUpdate=q,o.lastBaseUpdate=$,c===null&&(o.shared.lanes=0),ia|=g,t.lanes=g,t.memoizedState=it}}function Op(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Np(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Op(i[t],e)}var bl=E(null),eo=E(0);function Up(t,e){t=Di,I(eo,t),I(bl,e),Di=t|e.baseLanes}function Tf(){I(eo,Di),I(bl,bl.current)}function Ef(){Di=eo.current,H(bl),H(eo)}var Sn=E(null),Gn=null;function $i(t){var e=t.alternate;I(ge,ge.current&1),I(Sn,t),Gn===null&&(e===null||bl.current!==null||e.memoizedState!==null)&&(Gn=t)}function Mf(t){I(ge,ge.current),I(Sn,t),Gn===null&&(Gn=t)}function _p(t){t.tag===22?(I(ge,ge.current),I(Sn,t),Gn===null&&(Gn=t)):ta()}function ta(){I(ge,ge.current),I(Sn,Sn.current)}function xn(t){H(Sn),Gn===t&&(Gn=null),H(ge)}var ge=E(0);function no(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Dd(i)||Bd(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 Ti=0,Ct=null,Kt=null,Me=null,io=!1,Sl=!1,Na=!1,ao=0,Ds=0,xl=null,N5=0;function de(){throw Error(u(321))}function Af(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!vn(t[i],e[i]))return!1;return!0}function wf(t,e,i,l,o,c){return Ti=c,Ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?xg:Gf,Na=!1,c=i(l,o),Na=!1,Sl&&(c=kp(e,i,l,o)),Hp(t),c}function Hp(t){N.H=Ls;var e=Kt!==null&&Kt.next!==null;if(Ti=0,Me=Kt=Ct=null,io=!1,Ds=0,xl=null,e)throw Error(u(300));t===null||Ae||(t=t.dependencies,t!==null&&Qr(t)&&(Ae=!0))}function kp(t,e,i,l){Ct=t;var o=0;do{if(Sl&&(xl=null),Ds=0,Sl=!1,25<=o)throw Error(u(301));if(o+=1,Me=Kt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}N.H=Tg,c=e(i,l)}while(Sl);return c}function U5(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Bs(e):e,t=t.useState()[0],(Kt!==null?Kt.memoizedState:null)!==t&&(Ct.flags|=1024),e}function Cf(){var t=ao!==0;return ao=0,t}function Rf(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function jf(t){if(io){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}io=!1}Ti=0,Me=Kt=Ct=null,Sl=!1,Ds=ao=0,xl=null}function We(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?Ct.memoizedState=Me=t:Me=Me.next=t,Me}function ve(){if(Kt===null){var t=Ct.alternate;t=t!==null?t.memoizedState:null}else t=Kt.next;var e=Me===null?Ct.memoizedState:Me.next;if(e!==null)Me=e,Kt=t;else{if(t===null)throw Ct.alternate===null?Error(u(467)):Error(u(310));Kt=t,t={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Me===null?Ct.memoizedState=Me=t:Me=Me.next=t}return Me}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(t){var e=Ds;return Ds+=1,xl===null&&(xl=[]),t=Dp(xl,t,e),e=Ct,(Me===null?e.memoizedState:Me.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?xg:Gf),t}function so(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Bs(t);if(t.$$typeof===Z)return _e(t)}throw Error(u(438,String(t)))}function Df(t){var e=null,i=Ct.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=Ct.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=lo(),Ct.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]=tt;return e.index++,i}function Ei(t,e){return typeof e=="function"?e(t):e}function ro(t){var e=ve();return Bf(e,Kt,t)}function Bf(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 g=o.next;o.next=c.next,c.next=g}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=g=null,C=null,q=e,$=!1;do{var it=q.lane&-536870913;if(it!==q.lane?(Vt&it)===it:(Ti&it)===it){var F=q.revertLane;if(F===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),it===yl&&($=!0);else if((Ti&F)===F){q=q.next,F===yl&&($=!0);continue}else it={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(x=C=it,g=c):C=C.next=it,Ct.lanes|=F,ia|=F;it=q.action,Na&&i(c,it),c=q.hasEagerState?q.eagerState:i(c,it)}else F={lane:it,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(x=C=F,g=c):C=C.next=F,Ct.lanes|=it,ia|=it;q=q.next}while(q!==null&&q!==e);if(C===null?g=c:C.next=x,!vn(c,t.memoizedState)&&(Ae=!0,$&&(i=pl,i!==null)))throw i;t.memoizedState=c,t.baseState=g,t.baseQueue=C,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function zf(t){var e=ve(),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 g=o=o.next;do c=t(c,g.action),g=g.next;while(g!==o);vn(c,e.memoizedState)||(Ae=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function Gp(t,e,i){var l=Ct,o=ve(),c=Nt;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var g=!vn((Kt||o).memoizedState,i);if(g&&(o.memoizedState=i,Ae=!0),o=o.queue,Of(qp.bind(null,l,o,t),[t]),o.getSnapshot!==e||g||Me!==null&&Me.memoizedState.tag&1){if(l.flags|=2048,Tl(9,{destroy:void 0},Pp.bind(null,l,o,i,e),null),$t===null)throw Error(u(349));c||(Ti&127)!==0||Yp(l,e,i)}return i}function Yp(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=Ct.updateQueue,e===null?(e=lo(),Ct.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Pp(t,e,i,l){e.value=i,e.getSnapshot=l,Fp(e)&&Xp(t)}function qp(t,e,i){return i(function(){Fp(e)&&Xp(t)})}function Fp(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!vn(t,i)}catch(l){return!0}}function Xp(t){var e=Ca(t,2);e!==null&&fn(e,t,2)}function Lf(t){var e=We();if(typeof t=="function"){var i=t;if(t=i(),Na){ye(!0);try{i()}finally{ye(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:t},e}function Kp(t,e,i,l){return t.baseState=i,Bf(t,Kt,typeof l=="function"?l:Ei)}function _5(t,e,i,l,o){if(co(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(g){c.listeners.push(g)}};N.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,Qp(e,c)):(c.next=i.next,e.pending=i.next=c)}}function Qp(t,e){var i=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=N.T,g={};N.T=g;try{var x=i(o,l),C=N.S;C!==null&&C(g,x),Zp(t,e,x)}catch(q){Vf(t,e,q)}finally{c!==null&&g.types!==null&&(c.types=g.types),N.T=c}}else try{c=i(o,l),Zp(t,e,c)}catch(q){Vf(t,e,q)}}function Zp(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Ip(t,e,l)},function(l){return Vf(t,e,l)}):Ip(t,e,i)}function Ip(t,e,i){e.status="fulfilled",e.value=i,Jp(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Qp(t,i)))}function Vf(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,Jp(e),e=e.next;while(e!==l)}t.action=null}function Jp(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Wp(t,e){return e}function $p(t,e){if(Nt){var i=$t.formState;if(i!==null){t:{var l=Ct;if(Nt){if(ie){e:{for(var o=ie,c=kn;o.nodeType!==8;){if(!c){o=null;break e}if(o=Yn(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){ie=Yn(o.nextSibling),l=o.data==="F!";break t}}Qi(l)}l=!1}l&&(e=i[0])}}return i=We(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wp,lastRenderedState:e},i.queue=l,i=vg.bind(null,Ct,l),l.dispatch=i,l=Lf(!1),c=kf.bind(null,Ct,!1,l.queue),l=We(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,i=_5.bind(null,Ct,o,c,i),o.dispatch=i,l.memoizedState=t,[e,i,!1]}function tg(t){var e=ve();return eg(e,Kt,t)}function eg(t,e,i){if(e=Bf(t,e,Wp)[0],t=ro(Ei)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Bs(e)}catch(g){throw g===gl?Jr:g}else l=e;e=ve();var o=e.queue,c=o.dispatch;return i!==e.memoizedState&&(Ct.flags|=2048,Tl(9,{destroy:void 0},H5.bind(null,o,i),null)),[l,c,t]}function H5(t,e){t.action=e}function ng(t){var e=ve(),i=Kt;if(i!==null)return eg(e,i,t);ve(),e=e.memoizedState,i=ve();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Tl(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=Ct.updateQueue,e===null&&(e=lo(),Ct.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 ig(){return ve().memoizedState}function oo(t,e,i,l){var o=We();Ct.flags|=t,o.memoizedState=Tl(1|e,{destroy:void 0},i,l===void 0?null:l)}function uo(t,e,i,l){var o=ve();l=l===void 0?null:l;var c=o.memoizedState.inst;Kt!==null&&l!==null&&Af(l,Kt.memoizedState.deps)?o.memoizedState=Tl(e,c,i,l):(Ct.flags|=t,o.memoizedState=Tl(1|e,c,i,l))}function ag(t,e){oo(8390656,8,t,e)}function Of(t,e){uo(2048,8,t,e)}function k5(t){Ct.flags|=4;var e=Ct.updateQueue;if(e===null)e=lo(),Ct.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function lg(t){var e=ve().memoizedState;return k5({ref:e,nextImpl:t}),function(){if((Gt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function sg(t,e){return uo(4,2,t,e)}function rg(t,e){return uo(4,4,t,e)}function og(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 ug(t,e,i){i=i!=null?i.concat([t]):null,uo(4,4,og.bind(null,e,t),i)}function Nf(){}function cg(t,e){var i=ve();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Af(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function fg(t,e){var i=ve();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Af(e,l[1]))return l[0];if(l=t(),Na){ye(!0);try{t()}finally{ye(!1)}}return i.memoizedState=[l,e],l}function Uf(t,e,i){return i===void 0||(Ti&1073741824)!==0&&(Vt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=dv(),Ct.lanes|=t,ia|=t,i)}function dg(t,e,i,l){return vn(i,e)?i:bl.current!==null?(t=Uf(t,i,l),vn(t,e)||(Ae=!0),t):(Ti&42)===0||(Ti&1073741824)!==0&&(Vt&261930)===0?(Ae=!0,t.memoizedState=i):(t=dv(),Ct.lanes|=t,ia|=t,e)}function hg(t,e,i,l,o){var c=G.p;G.p=c!==0&&8>c?c:8;var g=N.T,x={};N.T=x,kf(t,!1,e,i);try{var C=o(),q=N.S;if(q!==null&&q(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var $=O5(C,l);zs(t,e,$,Mn(t))}else zs(t,e,l,Mn(t))}catch(it){zs(t,e,{then:function(){},status:"rejected",reason:it},Mn())}finally{G.p=c,g!==null&&x.types!==null&&(g.types=x.types),N.T=g}}function G5(){}function _f(t,e,i,l){if(t.tag!==5)throw Error(u(476));var o=mg(t).queue;hg(t,o,e,rt,i===null?G5:function(){return yg(t),i(l)})}function mg(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rt,baseState:rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:rt},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yg(t){var e=mg(t);e.next===null&&(e=t.alternate.memoizedState),zs(t,e.next.queue,{},Mn())}function Hf(){return _e(Zs)}function pg(){return ve().memoizedState}function gg(){return ve().memoizedState}function Y5(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Mn();t=Ji(i);var l=Wi(e,t,i);l!==null&&(fn(l,e,i),Cs(l,e,i)),e={cache:mf()},t.payload=e;return}e=e.return}}function P5(t,e,i){var l=Mn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},co(t)?bg(e,i):(i=nf(t,e,i,l),i!==null&&(fn(i,t,l),Sg(i,e,l)))}function vg(t,e,i){var l=Mn();zs(t,e,i,l)}function zs(t,e,i,l){var o={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(co(t))bg(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,x=c(g,i);if(o.hasEagerState=!0,o.eagerState=x,vn(x,g))return qr(t,e,o,0),$t===null&&Pr(),!1}catch(C){}finally{}if(i=nf(t,e,o,l),i!==null)return fn(i,t,l),Sg(i,e,l),!0}return!1}function kf(t,e,i,l){if(l={lane:2,revertLane:vd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},co(t)){if(e)throw Error(u(479))}else e=nf(t,i,l,2),e!==null&&fn(e,t,2)}function co(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function bg(t,e){Sl=io=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Sg(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Gi(t,i)}}var Ls={readContext:_e,use:so,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useLayoutEffect:de,useInsertionEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useSyncExternalStore:de,useId:de,useHostTransitionStatus:de,useFormState:de,useActionState:de,useOptimistic:de,useMemoCache:de,useCacheRefresh:de};Ls.useEffectEvent=de;var xg={readContext:_e,use:so,useCallback:function(t,e){return We().memoizedState=[t,e===void 0?null:e],t},useContext:_e,useEffect:ag,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,oo(4194308,4,og.bind(null,e,t),i)},useLayoutEffect:function(t,e){return oo(4194308,4,t,e)},useInsertionEffect:function(t,e){oo(4,2,t,e)},useMemo:function(t,e){var i=We();e=e===void 0?null:e;var l=t();if(Na){ye(!0);try{t()}finally{ye(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=We();if(i!==void 0){var o=i(e);if(Na){ye(!0);try{i(e)}finally{ye(!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=P5.bind(null,Ct,t),[l.memoizedState,t]},useRef:function(t){var e=We();return t={current:t},e.memoizedState=t},useState:function(t){t=Lf(t);var e=t.queue,i=vg.bind(null,Ct,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Nf,useDeferredValue:function(t,e){var i=We();return Uf(i,t,e)},useTransition:function(){var t=Lf(!1);return t=hg.bind(null,Ct,t.queue,!0,!1),We().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=Ct,o=We();if(Nt){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),$t===null)throw Error(u(349));(Vt&127)!==0||Yp(l,e,i)}o.memoizedState=i;var c={value:i,getSnapshot:e};return o.queue=c,ag(qp.bind(null,l,c,t),[t]),l.flags|=2048,Tl(9,{destroy:void 0},Pp.bind(null,l,c,i,e),null),i},useId:function(){var t=We(),e=$t.identifierPrefix;if(Nt){var i=li,l=ai;i=(l&~(1<<32-re(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=ao++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=N5++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Hf,useFormState:$p,useActionState:$p,useOptimistic:function(t){var e=We();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=kf.bind(null,Ct,!0,i),i.dispatch=e,[t,e]},useMemoCache:Df,useCacheRefresh:function(){return We().memoizedState=Y5.bind(null,Ct)},useEffectEvent:function(t){var e=We(),i={impl:t};return e.memoizedState=i,function(){if((Gt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},Gf={readContext:_e,use:so,useCallback:cg,useContext:_e,useEffect:Of,useImperativeHandle:ug,useInsertionEffect:sg,useLayoutEffect:rg,useMemo:fg,useReducer:ro,useRef:ig,useState:function(){return ro(Ei)},useDebugValue:Nf,useDeferredValue:function(t,e){var i=ve();return dg(i,Kt.memoizedState,t,e)},useTransition:function(){var t=ro(Ei)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Bs(t),e]},useSyncExternalStore:Gp,useId:pg,useHostTransitionStatus:Hf,useFormState:tg,useActionState:tg,useOptimistic:function(t,e){var i=ve();return Kp(i,Kt,t,e)},useMemoCache:Df,useCacheRefresh:gg};Gf.useEffectEvent=lg;var Tg={readContext:_e,use:so,useCallback:cg,useContext:_e,useEffect:Of,useImperativeHandle:ug,useInsertionEffect:sg,useLayoutEffect:rg,useMemo:fg,useReducer:zf,useRef:ig,useState:function(){return zf(Ei)},useDebugValue:Nf,useDeferredValue:function(t,e){var i=ve();return Kt===null?Uf(i,t,e):dg(i,Kt.memoizedState,t,e)},useTransition:function(){var t=zf(Ei)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Bs(t),e]},useSyncExternalStore:Gp,useId:pg,useHostTransitionStatus:Hf,useFormState:ng,useActionState:ng,useOptimistic:function(t,e){var i=ve();return Kt!==null?Kp(i,Kt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Df,useCacheRefresh:gg};Tg.useEffectEvent=lg;function Yf(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:b({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Pf={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Mn(),o=Ji(l);o.payload=e,i!=null&&(o.callback=i),e=Wi(t,o,l),e!==null&&(fn(e,t,l),Cs(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Mn(),o=Ji(l);o.tag=1,o.payload=e,i!=null&&(o.callback=i),e=Wi(t,o,l),e!==null&&(fn(e,t,l),Cs(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Mn(),l=Ji(i);l.tag=2,e!=null&&(l.callback=e),e=Wi(t,l,i),e!==null&&(fn(e,t,i),Cs(e,t,i))}};function Eg(t,e,i,l,o,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!bs(i,l)||!bs(o,c):!0}function Mg(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&&Pf.enqueueReplaceState(e,e.state,null)}function Ua(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=b({},i));for(var o in t)i[o]===void 0&&(i[o]=t[o])}return i}function Ag(t){Yr(t)}function wg(t){console.error(t)}function Cg(t){Yr(t)}function fo(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Rg(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 qf(t,e,i){return i=Ji(i),i.tag=3,i.payload={element:null},i.callback=function(){fo(t,e)},i}function jg(t){return t=Ji(t),t.tag=3,t}function Dg(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(){Rg(e,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Rg(e,i,l),typeof o!="function"&&(aa===null?aa=new Set([this]):aa.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function q5(t,e,i,l,o){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&ml(e,i,o,!0),i=Sn.current,i!==null){switch(i.tag){case 31:case 13:return Gn===null?Mo():i.alternate===null&&he===0&&(he=3),i.flags&=-257,i.flags|=65536,i.lanes=o,l===Wr?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),yd(t,l,o)),!1;case 22:return i.flags|=65536,l===Wr?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)),yd(t,l,o)),!1}throw Error(u(435,i.tag))}return yd(t,l,o),Mo(),!1}if(Nt)return e=Sn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==uf&&(t=Error(u(422),{cause:l}),Ts(Un(t,i)))):(l!==uf&&(e=Error(u(423),{cause:l}),Ts(Un(e,i))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Un(l,i),o=qf(t.stateNode,l,o),Sf(t,o),he!==4&&(he=2)),!1;var c=Error(u(520),{cause:l});if(c=Un(c,i),Gs===null?Gs=[c]:Gs.push(c),he!==4&&(he=2),e===null)return!0;l=Un(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=o&-o,i.lanes|=t,t=qf(i.stateNode,l,t),Sf(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"&&(aa===null||!aa.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=jg(o),Dg(o,t,i,l),Sf(i,o),!1}i=i.return}while(i!==null);return!1}var Ff=Error(u(461)),Ae=!1;function He(t,e,i,l){e.child=t===null?Vp(e,null,i,l):Oa(e,t.child,i,l)}function Bg(t,e,i,l,o){i=i.render;var c=e.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return Ba(e),l=wf(t,e,i,g,c,o),x=Cf(),t!==null&&!Ae?(Rf(t,e,o),Mi(t,e,o)):(Nt&&x&&rf(e),e.flags|=1,He(t,e,l,o),e.child)}function zg(t,e,i,l,o){if(t===null){var c=i.type;return typeof c=="function"&&!af(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,Lg(t,e,c,l,o)):(t=Xr(i.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!$f(t,o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:bs,i(g,l)&&t.ref===e.ref)return Mi(t,e,o)}return e.flags|=1,t=vi(c,l),t.ref=e.ref,t.return=e,e.child=t}function Lg(t,e,i,l,o){if(t!==null){var c=t.memoizedProps;if(bs(c,l)&&t.ref===e.ref)if(Ae=!1,e.pendingProps=l=c,$f(t,o))(t.flags&131072)!==0&&(Ae=!0);else return e.lanes=t.lanes,Mi(t,e,o)}return Xf(t,e,i,l,o)}function Vg(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 Og(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ir(e,c!==null?c.cachePool:null),c!==null?Up(e,c):Tf(),_p(e);else return l=e.lanes=536870912,Og(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Ir(e,c.cachePool),Up(e,c),ta(),e.memoizedState=null):(t!==null&&Ir(e,null),Tf(),ta());return He(t,e,o,i),e.child}function Vs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Og(t,e,i,l,o){var c=pf();return c=c===null?null:{parent:Ee._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Ir(e,null),Tf(),_p(e),t!==null&&ml(t,e,l,!0),e.childLanes=o,null}function ho(t,e){return e=yo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ng(t,e,i){return Oa(e,t.child,null,i),t=ho(e,e.pendingProps),t.flags|=2,xn(e),e.memoizedState=null,t}function F5(t,e,i){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Nt){if(l.mode==="hidden")return t=ho(e,l),e.lanes=536870912,Vs(null,t);if(Mf(e),(t=ie)?(t=Qv(t,kn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xi!==null?{id:ai,overflow:li}:null,retryLane:536870912,hydrationErrors:null},i=bp(t),i.return=e,e.child=i,Ue=e,ie=null)):t=null,t===null)throw Qi(e);return e.lanes=536870912,null}return ho(e,l)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(Mf(e),o)if(e.flags&256)e.flags&=-257,e=Ng(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ae||ml(t,e,i,!1),o=(i&t.childLanes)!==0,Ae||o){if(l=$t,l!==null&&(g=Yi(l,i),g!==0&&g!==c.retryLane))throw c.retryLane=g,Ca(t,g),fn(l,t,g),Ff;Mo(),e=Ng(t,e,i)}else t=c.treeContext,ie=Yn(g.nextSibling),Ue=e,Nt=!0,Ki=null,kn=!1,t!==null&&Tp(e,t),e=ho(e,l),e.flags|=4096;return e}return t=vi(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mo(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 Xf(t,e,i,l,o){return Ba(e),i=wf(t,e,i,l,void 0,o),l=Cf(),t!==null&&!Ae?(Rf(t,e,o),Mi(t,e,o)):(Nt&&l&&rf(e),e.flags|=1,He(t,e,i,o),e.child)}function Ug(t,e,i,l,o,c){return Ba(e),e.updateQueue=null,i=kp(e,l,i,o),Hp(t),l=Cf(),t!==null&&!Ae?(Rf(t,e,c),Mi(t,e,c)):(Nt&&l&&rf(e),e.flags|=1,He(t,e,i,c),e.child)}function _g(t,e,i,l,o){if(Ba(e),e.stateNode===null){var c=cl,g=i.contextType;typeof g=="object"&&g!==null&&(c=_e(g)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Pf,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},vf(e),g=i.contextType,c.context=typeof g=="object"&&g!==null?_e(g):cl,c.state=e.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Yf(e,i,g,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Pf.enqueueReplaceState(c,c.state,null),js(e,l,c,o),Rs(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,C=Ua(i,x);c.props=C;var q=c.context,$=i.contextType;g=cl,typeof $=="object"&&$!==null&&(g=_e($));var it=i.getDerivedStateFromProps;$=typeof it=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||q!==g)&&Mg(e,c,l,g),Ii=!1;var F=e.memoizedState;c.state=F,js(e,l,c,o),Rs(),q=e.memoizedState,x||F!==q||Ii?(typeof it=="function"&&(Yf(e,i,it,l),q=e.memoizedState),(C=Ii||Eg(e,i,C,l,F,q,g))?($||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=q),c.props=l,c.state=q,c.context=g,l=C):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,bf(t,e),g=e.memoizedProps,$=Ua(i,g),c.props=$,it=e.pendingProps,F=c.context,q=i.contextType,C=cl,typeof q=="object"&&q!==null&&(C=_e(q)),x=i.getDerivedStateFromProps,(q=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==it||F!==C)&&Mg(e,c,l,C),Ii=!1,F=e.memoizedState,c.state=F,js(e,l,c,o),Rs();var Q=e.memoizedState;g!==it||F!==Q||Ii||t!==null&&t.dependencies!==null&&Qr(t.dependencies)?(typeof x=="function"&&(Yf(e,i,x,l),Q=e.memoizedState),($=Ii||Eg(e,i,$,l,F,Q,C)||t!==null&&t.dependencies!==null&&Qr(t.dependencies))?(q||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,Q,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,Q,C)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&F===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&F===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=Q),c.props=l,c.state=Q,c.context=C,l=$):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&F===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&F===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,mo(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=Oa(e,t.child,null,o),e.child=Oa(e,null,i,o)):He(t,e,i,o),e.memoizedState=c.state,t=e.child):t=Mi(t,e,o),t}function Hg(t,e,i,l){return ja(),e.flags|=256,He(t,e,i,l),e.child}var Kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qf(t){return{baseLanes:t,cachePool:Rp()}}function Zf(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=En),t}function kg(t,e,i){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(ge.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Nt){if(o?$i(e):ta(),(t=ie)?(t=Qv(t,kn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xi!==null?{id:ai,overflow:li}:null,retryLane:536870912,hydrationErrors:null},i=bp(t),i.return=e,e.child=i,Ue=e,ie=null)):t=null,t===null)throw Qi(e);return Bd(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ta(),o=e.mode,x=yo({mode:"hidden",children:x},o),l=Ra(l,o,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Qf(i),l.childLanes=Zf(t,g,i),e.memoizedState=Kf,Vs(null,l)):($i(e),If(e,x))}var C=t.memoizedState;if(C!==null&&(x=C.dehydrated,x!==null)){if(c)e.flags&256?($i(e),e.flags&=-257,e=Jf(t,e,i)):e.memoizedState!==null?(ta(),e.child=t.child,e.flags|=128,e=null):(ta(),x=l.fallback,o=e.mode,l=yo({mode:"visible",children:l.children},o),x=Ra(x,o,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Oa(e,t.child,null,i),l=e.child,l.memoizedState=Qf(i),l.childLanes=Zf(t,g,i),e.memoizedState=Kf,e=Vs(null,l));else if($i(e),Bd(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var q=g.dgst;g=q,l=Error(u(419)),l.stack="",l.digest=g,Ts({value:l,source:null,stack:null}),e=Jf(t,e,i)}else if(Ae||ml(t,e,i,!1),g=(i&t.childLanes)!==0,Ae||g){if(g=$t,g!==null&&(l=Yi(g,i),l!==0&&l!==C.retryLane))throw C.retryLane=l,Ca(t,l),fn(g,t,l),Ff;Dd(x)||Mo(),e=Jf(t,e,i)}else Dd(x)?(e.flags|=192,e.child=t.child,e=null):(t=C.treeContext,ie=Yn(x.nextSibling),Ue=e,Nt=!0,Ki=null,kn=!1,t!==null&&Tp(e,t),e=If(e,l.children),e.flags|=4096);return e}return o?(ta(),x=l.fallback,o=e.mode,C=t.child,q=C.sibling,l=vi(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,q!==null?x=vi(q,x):(x=Ra(x,o,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Vs(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Qf(i):(o=x.cachePool,o!==null?(C=Ee._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Rp(),x={baseLanes:x.baseLanes|i,cachePool:o}),l.memoizedState=x,l.childLanes=Zf(t,g,i),e.memoizedState=Kf,Vs(t.child,l)):($i(e),i=t.child,t=i.sibling,i=vi(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=i,e.memoizedState=null,i)}function If(t,e){return e=yo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yo(t,e){return t=bn(22,t,null,e),t.lanes=0,t}function Jf(t,e,i){return Oa(e,t.child,null,i),t=If(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gg(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),df(t.return,e,i)}function Wf(t,e,i,l,o,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:o,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=o,g.treeForkCount=c)}function Yg(t,e,i){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var g=ge.current,x=(g&2)!==0;if(x?(g=g&1|2,e.flags|=128):g&=1,I(ge,g),He(t,e,l,i),l=Nt?xs:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gg(t,i,e);else if(t.tag===19)Gg(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&&no(t)===null&&(o=i),i=i.sibling;i=o,i===null?(o=e.child,e.child=null):(o=i.sibling,i.sibling=null),Wf(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&&no(t)===null){e.child=o;break}t=o.sibling,o.sibling=i,i=o,o=t}Wf(e,!0,i,null,c,l);break;case"together":Wf(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Mi(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ia|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(ml(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=vi(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=vi(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function $f(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Qr(t)))}function X5(t,e,i){switch(e.tag){case 3:bt(e,e.stateNode.containerInfo),Zi(e,Ee,t.memoizedState.cache),ja();break;case 27:case 5:At(e);break;case 4:bt(e,e.stateNode.containerInfo);break;case 10:Zi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Mf(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($i(e),e.flags|=128,null):(i&e.child.childLanes)!==0?kg(t,e,i):($i(e),t=Mi(t,e,i),t!==null?t.sibling:null);$i(e);break;case 19:var o=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(ml(t,e,i,!1),l=(i&e.childLanes)!==0),o){if(l)return Yg(t,e,i);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(ge,ge.current),l)break;return null;case 22:return e.lanes=0,Vg(t,e,i,e.pendingProps);case 24:Zi(e,Ee,t.memoizedState.cache)}return Mi(t,e,i)}function Pg(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ae=!0;else{if(!$f(t,i)&&(e.flags&128)===0)return Ae=!1,X5(t,e,i);Ae=(t.flags&131072)!==0}else Ae=!1,Nt&&(e.flags&1048576)!==0&&xp(e,xs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=La(e.elementType),e.type=t,typeof t=="function")af(t)?(l=Ua(t,l),e.tag=1,e=_g(null,e,t,l,i)):(e.tag=0,e=Xf(null,e,t,l,i));else{if(t!=null){var o=t.$$typeof;if(o===R){e.tag=11,e=Bg(null,e,t,l,i);break t}else if(o===D){e.tag=14,e=zg(null,e,t,l,i);break t}}throw e=W(t)||t,Error(u(306,e,""))}}return e;case 0:return Xf(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,o=Ua(l,e.pendingProps),_g(t,e,l,o,i);case 3:t:{if(bt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,bf(t,e),js(e,l,null,i);var g=e.memoizedState;if(l=g.cache,Zi(e,Ee,l),l!==c.cache&&hf(e,[Ee],i,!0),Rs(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Hg(t,e,l,i);break t}else if(l!==o){o=Un(Error(u(424)),e),Ts(o),e=Hg(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(ie=Yn(t.firstChild),Ue=e,Nt=!0,Ki=null,kn=!0,i=Vp(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ja(),l===o){e=Mi(t,e,i);break t}He(t,e,l,i)}e=e.child}return e;case 26:return mo(t,e),t===null?(i=t1(e.type,null,e.pendingProps,null))?e.memoizedState=i:Nt||(i=e.type,t=e.pendingProps,l=Bo(ot.current).createElement(i),l[ht]=e,l[pt]=t,ke(l,i,t),pe(l),e.stateNode=l):e.memoizedState=t1(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return At(e),t===null&&Nt&&(l=e.stateNode=Jv(e.type,e.pendingProps,ot.current),Ue=e,kn=!0,o=ie,oa(e.type)?(zd=o,ie=Yn(l.firstChild)):ie=o),He(t,e,e.pendingProps.children,i),mo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Nt&&((o=l=ie)&&(l=T3(l,e.type,e.pendingProps,kn),l!==null?(e.stateNode=l,Ue=e,ie=Yn(l.firstChild),kn=!1,o=!0):o=!1),o||Qi(e)),At(e),o=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Cd(o,c)?l=null:g!==null&&Cd(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=wf(t,e,U5,null,null,i),Zs._currentValue=o),mo(t,e),He(t,e,l,i),e.child;case 6:return t===null&&Nt&&((t=i=ie)&&(i=E3(i,e.pendingProps,kn),i!==null?(e.stateNode=i,Ue=e,ie=null,t=!0):t=!1),t||Qi(e)),null;case 13:return kg(t,e,i);case 4:return bt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Oa(e,null,l,i):He(t,e,l,i),e.child;case 11:return Bg(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,Zi(e,e.type,l.value),He(t,e,l.children,i),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Ba(e),o=_e(o),l=l(o),e.flags|=1,He(t,e,l,i),e.child;case 14:return zg(t,e,e.type,e.pendingProps,i);case 15:return Lg(t,e,e.type,e.pendingProps,i);case 19:return Yg(t,e,i);case 31:return F5(t,e,i);case 22:return Vg(t,e,i,e.pendingProps);case 24:return Ba(e),l=_e(Ee),t===null?(o=pf(),o===null&&(o=$t,c=mf(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),e.memoizedState={parent:l,cache:o},vf(e),Zi(e,Ee,o)):((t.lanes&i)!==0&&(bf(t,e),js(e,null,null,i),Rs()),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),Zi(e,Ee,l)):(l=c.cache,Zi(e,Ee,l),l!==o.cache&&hf(e,[Ee],i,!0))),He(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Ai(t){t.flags|=4}function td(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(pv())t.flags|=8192;else throw Va=Wr,gf}else t.flags&=-16777217}function qg(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!l1(e))if(pv())t.flags|=8192;else throw Va=Wr,gf}function po(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ve():536870912,t.lanes|=e,wl|=e)}function Os(t,e){if(!Nt)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 ae(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 K5(t,e,i){var l=e.pendingProps;switch(of(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(e),null;case 1:return ae(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),xi(Ee),xt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(hl(e)?Ai(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,cf())),ae(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Ai(e),c!==null?(ae(e),qg(e,c)):(ae(e),td(e,o,null,l,i))):c?c!==t.memoizedState?(Ai(e),ae(e),qg(e,c)):(ae(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Ai(e),ae(e),td(e,o,t,l,i)),null;case 27:if(je(e),i=ot.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return ae(e),null}t=nt.current,hl(e)?Ep(e):(t=Jv(o,l,i),e.stateNode=t,Ai(e))}return ae(e),null;case 5:if(je(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return ae(e),null}if(c=nt.current,hl(e))Ep(e);else{var g=Bo(ot.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}c[ht]=e,c[pt]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(ke(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&&Ai(e)}}return ae(e),td(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ot.current,hl(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,o=Ue,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ht]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||kv(t.nodeValue,i)),t||Qi(e,!0)}else t=Bo(t).createTextNode(l),t[ht]=e,e.stateNode=t}return ae(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=hl(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[ht]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ae(e),t=!1}else i=cf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(xn(e),e):(xn(e),null);if((e.flags&128)!==0)throw Error(u(558))}return ae(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=hl(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[ht]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ae(e),o=!1}else o=cf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(xn(e),e):(xn(e),null)}return xn(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),po(e,e.updateQueue),ae(e),null);case 4:return xt(),t===null&&Td(e.stateNode.containerInfo),ae(e),null;case 10:return xi(e.type),ae(e),null;case 19:if(H(ge),l=e.memoizedState,l===null)return ae(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Os(l,!1);else{if(he!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=no(t),c!==null){for(e.flags|=128,Os(l,!1),t=c.updateQueue,e.updateQueue=t,po(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)vp(i,t),i=i.sibling;return I(ge,ge.current&1|2),Nt&&bi(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&fe()>xo&&(e.flags|=128,o=!0,Os(l,!1),e.lanes=4194304)}else{if(!o)if(t=no(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,po(e,t),Os(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Nt)return ae(e),null}else 2*fe()-l.renderingStartTime>xo&&i!==536870912&&(e.flags|=128,o=!0,Os(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=fe(),t.sibling=null,i=ge.current,I(ge,o?i&1|2:i&1),Nt&&bi(e,l.treeForkCount),t):(ae(e),null);case 22:case 23:return xn(e),Ef(),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&&(ae(e),e.subtreeFlags&6&&(e.flags|=8192)):ae(e),i=e.updateQueue,i!==null&&po(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&&H(za),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),xi(Ee),ae(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Q5(t,e){switch(of(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xi(Ee),xt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return je(e),null;case 31:if(e.memoizedState!==null){if(xn(e),e.alternate===null)throw Error(u(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(xn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(ge),null;case 4:return xt(),null;case 10:return xi(e.type),null;case 22:case 23:return xn(e),Ef(),t!==null&&H(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return xi(Ee),null;case 25:return null;default:return null}}function Fg(t,e){switch(of(e),e.tag){case 3:xi(Ee),xt();break;case 26:case 27:case 5:je(e);break;case 4:xt();break;case 31:e.memoizedState!==null&&xn(e);break;case 13:xn(e);break;case 19:H(ge);break;case 10:xi(e.type);break;case 22:case 23:xn(e),Ef(),t!==null&&H(za);break;case 24:xi(Ee)}}function Ns(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,g=i.inst;l=c(),g.destroy=l}i=i.next}while(i!==o)}}catch(x){Ft(e,e.return,x)}}function ea(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 g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=e;var C=i,q=x;try{q()}catch($){Ft(o,C,$)}}}l=l.next}while(l!==c)}}catch($){Ft(e,e.return,$)}}function Xg(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Np(e,i)}catch(l){Ft(t,t.return,l)}}}function Kg(t,e,i){i.props=Ua(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){Ft(t,e,l)}}function Us(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){Ft(t,e,o)}}function si(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(o){Ft(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){Ft(t,e,o)}else i.current=null}function Qg(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){Ft(t,t.return,o)}}function ed(t,e,i){try{var l=t.stateNode;p3(l,t.type,i,e),l[pt]=e}catch(o){Ft(t,t.return,o)}}function Zg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oa(t.type)||t.tag===4}function nd(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Zg(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&&oa(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 id(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=pi));else if(l!==4&&(l===27&&oa(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(id(t,e,i),t=t.sibling;t!==null;)id(t,e,i),t=t.sibling}function go(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&&oa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(go(t,e,i),t=t.sibling;t!==null;)go(t,e,i),t=t.sibling}function Ig(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ke(e,l,i),e[ht]=t,e[pt]=i}catch(c){Ft(t,t.return,c)}}var wi=!1,we=!1,ad=!1,Jg=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Z5(t,e){if(t=t.containerInfo,Ad=_o,t=up(t),Ic(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(St){i=null;break t}var g=0,x=-1,C=-1,q=0,$=0,it=t,F=null;e:for(;;){for(var Q;it!==i||o!==0&&it.nodeType!==3||(x=g+o),it!==c||l!==0&&it.nodeType!==3||(C=g+l),it.nodeType===3&&(g+=it.nodeValue.length),(Q=it.firstChild)!==null;)F=it,it=Q;for(;;){if(it===t)break e;if(F===i&&++q===o&&(x=g),F===c&&++$===l&&(C=g),(Q=it.nextSibling)!==null)break;it=F,F=it.parentNode}it=Q}i=x===-1||C===-1?null:{start:x,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(wd={focusedElem:t,selectionRange:i},_o=!1,Oe=e;Oe!==null;)if(e=Oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Oe=t;else for(;Oe!==null;){switch(e=Oe,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 mt=Ua(i.type,o);t=l.getSnapshotBeforeUpdate(mt,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(St){Ft(i,i.return,St)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)jd(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":jd(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,Oe=t;break}Oe=e.return}}function Wg(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ri(t,i),l&4&&Ns(5,i);break;case 1:if(Ri(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(g){Ft(i,i.return,g)}else{var o=Ua(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Ft(i,i.return,g)}}l&64&&Xg(i),l&512&&Us(i,i.return);break;case 3:if(Ri(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{Np(t,e)}catch(g){Ft(i,i.return,g)}}break;case 27:e===null&&l&4&&Ig(i);case 26:case 5:Ri(t,i),e===null&&l&4&&Qg(i),l&512&&Us(i,i.return);break;case 12:Ri(t,i);break;case 31:Ri(t,i),l&4&&ev(t,i);break;case 13:Ri(t,i),l&4&&nv(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=a3.bind(null,i),M3(t,i))));break;case 22:if(l=i.memoizedState!==null||wi,!l){e=e!==null&&e.memoizedState!==null||we,o=wi;var c=we;wi=l,(we=e)&&!c?ji(t,i,(i.subtreeFlags&8772)!==0):Ri(t,i),wi=o,we=c}break;case 30:break;default:Ri(t,i)}}function $g(t){var e=t.alternate;e!==null&&(t.alternate=null,$g(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&zn(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 oe=null,rn=!1;function Ci(t,e,i){for(i=i.child;i!==null;)tv(t,e,i),i=i.sibling}function tv(t,e,i){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Yt,i)}catch(c){}switch(i.tag){case 26:we||si(i,e),Ci(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:we||si(i,e);var l=oe,o=rn;oa(i.type)&&(oe=i.stateNode,rn=!1),Ci(t,e,i),Xs(i.stateNode),oe=l,rn=o;break;case 5:we||si(i,e);case 6:if(l=oe,o=rn,oe=null,Ci(t,e,i),oe=l,rn=o,oe!==null)if(rn)try{(oe.nodeType===9?oe.body:oe.nodeName==="HTML"?oe.ownerDocument.body:oe).removeChild(i.stateNode)}catch(c){Ft(i,e,c)}else try{oe.removeChild(i.stateNode)}catch(c){Ft(i,e,c)}break;case 18:oe!==null&&(rn?(t=oe,Xv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Vl(t)):Xv(oe,i.stateNode));break;case 4:l=oe,o=rn,oe=i.stateNode.containerInfo,rn=!0,Ci(t,e,i),oe=l,rn=o;break;case 0:case 11:case 14:case 15:ea(2,i,e),we||ea(4,i,e),Ci(t,e,i);break;case 1:we||(si(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Kg(i,e,l)),Ci(t,e,i);break;case 21:Ci(t,e,i);break;case 22:we=(l=we)||i.memoizedState!==null,Ci(t,e,i),we=l;break;default:Ci(t,e,i)}}function ev(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Vl(t)}catch(i){Ft(e,e.return,i)}}}function nv(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Vl(t)}catch(i){Ft(e,e.return,i)}}function I5(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Jg),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Jg),e;default:throw Error(u(435,t.tag))}}function vo(t,e){var i=I5(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var o=l3.bind(null,t,l);l.then(o,o)}})}function on(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=t,g=e,x=g;t:for(;x!==null;){switch(x.tag){case 27:if(oa(x.type)){oe=x.stateNode,rn=!1;break t}break;case 5:oe=x.stateNode,rn=!1;break t;case 3:case 4:oe=x.stateNode.containerInfo,rn=!0;break t}x=x.return}if(oe===null)throw Error(u(160));tv(c,g,o),oe=null,rn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)iv(e,t),e=e.sibling}var In=null;function iv(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:on(e,t),un(t),l&4&&(ea(3,t,t.return),Ns(3,t),ea(5,t,t.return));break;case 1:on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),l&64&&wi&&(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=In;if(on(e,t),un(t),l&512&&(we||i===null||si(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[ln]||c[ht]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),ke(c,l,i),c[ht]=t,pe(c),l=c;break t;case"link":var g=i1("link","href",o).get(l+(i.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=o.createElement(l),ke(c,l,i),o.head.appendChild(c);break;case"meta":if(g=i1("meta","content",o).get(l+(i.content||""))){for(x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=o.createElement(l),ke(c,l,i),o.head.appendChild(c);break;default:throw Error(u(468,l))}c[ht]=t,pe(c),l=c}t.stateNode=l}else a1(o,t.type,t.stateNode);else t.stateNode=n1(o,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?a1(o,t.type,t.stateNode):n1(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ed(t,t.memoizedProps,i.memoizedProps)}break;case 27:on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),i!==null&&l&4&&ed(t,t.memoizedProps,i.memoizedProps);break;case 5:if(on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),t.flags&32){o=t.stateNode;try{il(o,"")}catch(mt){Ft(t,t.return,mt)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,ed(t,o,i!==null?i.memoizedProps:o)),l&1024&&(ad=!0);break;case 6:if(on(e,t),un(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(mt){Ft(t,t.return,mt)}}break;case 3:if(Vo=null,o=In,In=zo(e.containerInfo),on(e,t),In=o,un(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Vl(e.containerInfo)}catch(mt){Ft(t,t.return,mt)}ad&&(ad=!1,av(t));break;case 4:l=In,In=zo(t.stateNode.containerInfo),on(e,t),un(t),In=l;break;case 12:on(e,t),un(t);break;case 31:on(e,t),un(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 13:on(e,t),un(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(So=fe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 22:o=t.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,q=wi,$=we;if(wi=q||o,we=$||C,on(e,t),we=$,wi=q,un(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(i===null||C||wi||we||_a(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){C=i=e;try{if(c=C.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=C.stateNode;var it=C.memoizedProps.style,F=it!=null&&it.hasOwnProperty("display")?it.display:null;x.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(mt){Ft(C,C.return,mt)}}}else if(e.tag===6){if(i===null){C=e;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(mt){Ft(C,C.return,mt)}}}else if(e.tag===18){if(i===null){C=e;try{var Q=C.stateNode;o?Kv(Q,!0):Kv(C.stateNode,!1)}catch(mt){Ft(C,C.return,mt)}}}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,vo(t,i))));break;case 19:on(e,t),un(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 30:break;case 21:break;default:on(e,t),un(t)}}function un(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(Zg(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,c=nd(t);go(t,c,o);break;case 5:var g=i.stateNode;i.flags&32&&(il(g,""),i.flags&=-33);var x=nd(t);go(t,x,g);break;case 3:case 4:var C=i.stateNode.containerInfo,q=nd(t);id(t,q,C);break;default:throw Error(u(161))}}catch($){Ft(t,t.return,$)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function av(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;av(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ri(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Wg(t,e.alternate,e),e=e.sibling}function _a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ea(4,e,e.return),_a(e);break;case 1:si(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Kg(e,e.return,i),_a(e);break;case 27:Xs(e.stateNode);case 26:case 5:si(e,e.return),_a(e);break;case 22:e.memoizedState===null&&_a(e);break;case 30:_a(e);break;default:_a(e)}t=t.sibling}}function ji(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:ji(o,c,i),Ns(4,c);break;case 1:if(ji(o,c,i),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(q){Ft(l,l.return,q)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Op(C[o],x)}catch(q){Ft(l,l.return,q)}}i&&g&64&&Xg(c),Us(c,c.return);break;case 27:Ig(c);case 26:case 5:ji(o,c,i),i&&l===null&&g&4&&Qg(c),Us(c,c.return);break;case 12:ji(o,c,i);break;case 31:ji(o,c,i),i&&g&4&&ev(o,c);break;case 13:ji(o,c,i),i&&g&4&&nv(o,c);break;case 22:c.memoizedState===null&&ji(o,c,i),Us(c,c.return);break;case 30:break;default:ji(o,c,i)}e=e.sibling}}function ld(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&&Es(i))}function sd(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Es(t))}function Jn(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lv(t,e,i,l),e=e.sibling}function lv(t,e,i,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Jn(t,e,i,l),o&2048&&Ns(9,e);break;case 1:Jn(t,e,i,l);break;case 3:Jn(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&&Es(t)));break;case 12:if(o&2048){Jn(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(C){Ft(e,e.return,C)}}else Jn(t,e,i,l);break;case 31:Jn(t,e,i,l);break;case 13:Jn(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?Jn(t,e,i,l):_s(t,e):c._visibility&2?Jn(t,e,i,l):(c._visibility|=2,El(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&ld(g,e);break;case 24:Jn(t,e,i,l),o&2048&&sd(e.alternate,e);break;default:Jn(t,e,i,l)}}function El(t,e,i,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,x=i,C=l,q=g.flags;switch(g.tag){case 0:case 11:case 15:El(c,g,x,C,o),Ns(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?El(c,g,x,C,o):_s(c,g):($._visibility|=2,El(c,g,x,C,o)),o&&q&2048&&ld(g.alternate,g);break;case 24:El(c,g,x,C,o),o&&q&2048&&sd(g.alternate,g);break;default:El(c,g,x,C,o)}e=e.sibling}}function _s(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:_s(i,l),o&2048&&ld(l.alternate,l);break;case 24:_s(i,l),o&2048&&sd(l.alternate,l);break;default:_s(i,l)}e=e.sibling}}var Hs=8192;function Ml(t,e,i){if(t.subtreeFlags&Hs)for(t=t.child;t!==null;)sv(t,e,i),t=t.sibling}function sv(t,e,i){switch(t.tag){case 26:Ml(t,e,i),t.flags&Hs&&t.memoizedState!==null&&N3(i,In,t.memoizedState,t.memoizedProps);break;case 5:Ml(t,e,i);break;case 3:case 4:var l=In;In=zo(t.stateNode.containerInfo),Ml(t,e,i),In=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Hs,Hs=16777216,Ml(t,e,i),Hs=l):Ml(t,e,i));break;default:Ml(t,e,i)}}function rv(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 ks(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];Oe=l,uv(l,t)}rv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ov(t),t=t.sibling}function ov(t){switch(t.tag){case 0:case 11:case 15:ks(t),t.flags&2048&&ea(9,t,t.return);break;case 3:ks(t);break;case 12:ks(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,bo(t)):ks(t);break;default:ks(t)}}function bo(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];Oe=l,uv(l,t)}rv(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ea(8,e,e.return),bo(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,bo(e));break;default:bo(e)}t=t.sibling}}function uv(t,e){for(;Oe!==null;){var i=Oe;switch(i.tag){case 0:case 11:case 15:ea(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:Es(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Oe=l;else t:for(i=t;Oe!==null;){l=Oe;var o=l.sibling,c=l.return;if($g(l),l===i){Oe=null;break t}if(o!==null){o.return=c,Oe=o;break t}Oe=c}}}var J5={getCacheForType:function(t){var e=_e(Ee),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return _e(Ee).controller.signal}},W5=typeof WeakMap=="function"?WeakMap:Map,Gt=0,$t=null,zt=null,Vt=0,qt=0,Tn=null,na=!1,Al=!1,rd=!1,Di=0,he=0,ia=0,Ha=0,od=0,En=0,wl=0,Gs=null,cn=null,ud=!1,So=0,cv=0,xo=1/0,To=null,aa=null,Le=0,la=null,Cl=null,Bi=0,cd=0,fd=null,fv=null,Ys=0,dd=null;function Mn(){return(Gt&2)!==0&&Vt!==0?Vt&-Vt:N.T!==null?vd():Pi()}function dv(){if(En===0)if((Vt&536870912)===0||Nt){var t=Dn;Dn<<=1,(Dn&3932160)===0&&(Dn=262144),En=t}else En=536870912;return t=Sn.current,t!==null&&(t.flags|=32),En}function fn(t,e,i){(t===$t&&(qt===2||qt===9)||t.cancelPendingCommit!==null)&&(Rl(t,0),sa(t,Vt,En,!1)),an(t,i),((Gt&2)===0||t!==$t)&&(t===$t&&((Gt&2)===0&&(Ha|=i),he===4&&sa(t,Vt,En,!1)),ri(t))}function hv(t,e,i){if((Gt&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||Bt(t,e),o=l?e3(t,e):md(t,e,!0),c=l;do{if(o===0){Al&&!l&&sa(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!$5(i)){o=md(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var x=t;o=Gs;var C=x.current.memoizedState.isDehydrated;if(C&&(Rl(x,g).flags|=256),g=md(x,g,!1),g!==2){if(rd&&!C){x.errorRecoveryDisabledLanes|=c,Ha|=c,o=4;break t}c=cn,cn=o,c!==null&&(cn===null?cn=c:cn.push.apply(cn,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){Rl(t,0),sa(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:sa(l,e,En,!na);break t;case 2:cn=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=So+300-fe(),10<o)){if(sa(l,e,En,!na),gn(l,0,!0)!==0)break t;Bi=e,l.timeoutHandle=qv(mv.bind(null,l,i,cn,To,ud,e,En,Ha,wl,na,c,"Throttled",-0,0),o);break t}mv(l,i,cn,To,ud,e,En,Ha,wl,na,c,null,-0,0)}}break}while(!0);ri(t)}function mv(t,e,i,l,o,c,g,x,C,q,$,it,F,Q){if(t.timeoutHandle=-1,it=e.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pi},sv(e,c,it);var mt=(c&62914560)===c?So-fe():(c&4194048)===c?cv-fe():0;if(mt=U3(it,mt),mt!==null){Bi=c,t.cancelPendingCommit=mt(Tv.bind(null,t,e,c,i,l,o,g,x,C,$,it,null,F,Q)),sa(t,c,g,!q);return}}Tv(t,e,c,i,l,o,g,x,C)}function $5(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(!vn(c(),o))return!1}catch(g){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 sa(t,e,i,l){e&=~od,e&=~Ha,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-re(o),g=1<<c;l[c]=-1,o&=~g}i!==0&&Qn(t,i,e)}function Eo(){return(Gt&6)===0?(Ps(0),!1):!0}function hd(){if(zt!==null){if(qt===0)var t=zt.return;else t=zt,Si=Da=null,jf(t),vl=null,As=0,t=zt;for(;t!==null;)Fg(t.alternate,t),t=t.return;zt=null}}function Rl(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,b3(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Bi=0,hd(),$t=t,zt=i=vi(t.current,null),Vt=e,qt=0,Tn=null,na=!1,Al=Bt(t,e),rd=!1,wl=En=od=Ha=ia=he=0,cn=Gs=null,ud=!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-re(l),c=1<<o;e|=t[o],l&=~c}return Di=e,Pr(),i}function yv(t,e){Ct=null,N.H=Ls,e===gl||e===Jr?(e=Bp(),qt=3):e===gf?(e=Bp(),qt=4):qt=e===Ff?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Tn=e,zt===null&&(he=1,fo(t,Un(e,t.current)))}function pv(){var t=Sn.current;return t===null?!0:(Vt&4194048)===Vt?Gn===null:(Vt&62914560)===Vt||(Vt&536870912)!==0?t===Gn:!1}function gv(){var t=N.H;return N.H=Ls,t===null?Ls:t}function vv(){var t=N.A;return N.A=J5,t}function Mo(){he=4,na||(Vt&4194048)!==Vt&&Sn.current!==null||(Al=!0),(ia&134217727)===0&&(Ha&134217727)===0||$t===null||sa($t,Vt,En,!1)}function md(t,e,i){var l=Gt;Gt|=2;var o=gv(),c=vv();($t!==t||Vt!==e)&&(To=null,Rl(t,e)),e=!1;var g=he;t:do try{if(qt!==0&&zt!==null){var x=zt,C=Tn;switch(qt){case 8:hd(),g=6;break t;case 3:case 2:case 9:case 6:Sn.current===null&&(e=!0);var q=qt;if(qt=0,Tn=null,jl(t,x,C,q),i&&Al){g=0;break t}break;default:q=qt,qt=0,Tn=null,jl(t,x,C,q)}}t3(),g=he;break}catch($){yv(t,$)}while(!0);return e&&t.shellSuspendCounter++,Si=Da=null,Gt=l,N.H=o,N.A=c,zt===null&&($t=null,Vt=0,Pr()),g}function t3(){for(;zt!==null;)bv(zt)}function e3(t,e){var i=Gt;Gt|=2;var l=gv(),o=vv();$t!==t||Vt!==e?(To=null,xo=fe()+500,Rl(t,e)):Al=Bt(t,e);t:do try{if(qt!==0&&zt!==null){e=zt;var c=Tn;e:switch(qt){case 1:qt=0,Tn=null,jl(t,e,c,1);break;case 2:case 9:if(jp(c)){qt=0,Tn=null,Sv(e);break}e=function(){qt!==2&&qt!==9||$t!==t||(qt=7),ri(t)},c.then(e,e);break t;case 3:qt=7;break t;case 4:qt=5;break t;case 7:jp(c)?(qt=0,Tn=null,Sv(e)):(qt=0,Tn=null,jl(t,e,c,7));break;case 5:var g=null;switch(zt.tag){case 26:g=zt.memoizedState;case 5:case 27:var x=zt;if(g?l1(g):x.stateNode.complete){qt=0,Tn=null;var C=x.sibling;if(C!==null)zt=C;else{var q=x.return;q!==null?(zt=q,Ao(q)):zt=null}break e}}qt=0,Tn=null,jl(t,e,c,5);break;case 6:qt=0,Tn=null,jl(t,e,c,6);break;case 8:hd(),he=6;break t;default:throw Error(u(462))}}n3();break}catch($){yv(t,$)}while(!0);return Si=Da=null,N.H=l,N.A=o,Gt=i,zt!==null?0:($t=null,Vt=0,Pr(),he)}function n3(){for(;zt!==null&&!ze();)bv(zt)}function bv(t){var e=Pg(t.alternate,t,Di);t.memoizedProps=t.pendingProps,e===null?Ao(t):zt=e}function Sv(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Ug(i,e,e.pendingProps,e.type,void 0,Vt);break;case 11:e=Ug(i,e,e.pendingProps,e.type.render,e.ref,Vt);break;case 5:jf(e);default:Fg(i,e),e=zt=vp(e,Di),e=Pg(i,e,Di)}t.memoizedProps=t.pendingProps,e===null?Ao(t):zt=e}function jl(t,e,i,l){Si=Da=null,jf(e),vl=null,As=0;var o=e.return;try{if(q5(t,o,e,i,Vt)){he=1,fo(t,Un(i,t.current)),zt=null;return}}catch(c){if(o!==null)throw zt=o,c;he=1,fo(t,Un(i,t.current)),zt=null;return}e.flags&32768?(Nt||l===1?t=!0:Al||(Vt&536870912)!==0?t=!1:(na=t=!0,(l===2||l===9||l===3||l===6)&&(l=Sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),xv(e,t)):Ao(e)}function Ao(t){var e=t;do{if((e.flags&32768)!==0){xv(e,na);return}t=e.return;var i=K5(e.alternate,e,Di);if(i!==null){zt=i;return}if(e=e.sibling,e!==null){zt=e;return}zt=e=t}while(e!==null);he===0&&(he=5)}function xv(t,e){do{var i=Q5(t.alternate,t);if(i!==null){i.flags&=32767,zt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){zt=t;return}zt=t=i}while(t!==null);he=6,zt=null}function Tv(t,e,i,l,o,c,g,x,C){t.cancelPendingCommit=null;do wo();while(Le!==0);if((Gt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=ef,ei(t,i,c,g,x,C),t===$t&&(zt=$t=null,Vt=0),Cl=e,la=t,Bi=i,cd=c,fd=o,fv=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s3(Xt,function(){return Cv(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,o=G.p,G.p=2,g=Gt,Gt|=4;try{Z5(t,e,i)}finally{Gt=g,G.p=o,N.T=l}}Le=1,Ev(),Mv(),Av()}}function Ev(){if(Le===1){Le=0;var t=la,e=Cl,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=N.T,N.T=null;var l=G.p;G.p=2;var o=Gt;Gt|=4;try{iv(e,t);var c=wd,g=up(t.containerInfo),x=c.focusedElem,C=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&op(x.ownerDocument.documentElement,x)){if(C!==null&&Ic(x)){var q=C.start,$=C.end;if($===void 0&&($=q),"selectionStart"in x)x.selectionStart=q,x.selectionEnd=Math.min($,x.value.length);else{var it=x.ownerDocument||document,F=it&&it.defaultView||window;if(F.getSelection){var Q=F.getSelection(),mt=x.textContent.length,St=Math.min(C.start,mt),Zt=C.end===void 0?St:Math.min(C.end,mt);!Q.extend&&St>Zt&&(g=Zt,Zt=St,St=g);var U=rp(x,St),B=rp(x,Zt);if(U&&B&&(Q.rangeCount!==1||Q.anchorNode!==U.node||Q.anchorOffset!==U.offset||Q.focusNode!==B.node||Q.focusOffset!==B.offset)){var P=it.createRange();P.setStart(U.node,U.offset),Q.removeAllRanges(),St>Zt?(Q.addRange(P),Q.extend(B.node,B.offset)):(P.setEnd(B.node,B.offset),Q.addRange(P))}}}}for(it=[],Q=x;Q=Q.parentNode;)Q.nodeType===1&&it.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<it.length;x++){var et=it[x];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}_o=!!Ad,wd=Ad=null}finally{Gt=o,G.p=l,N.T=i}}t.current=e,Le=2}}function Mv(){if(Le===2){Le=0;var t=la,e=Cl,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=N.T,N.T=null;var l=G.p;G.p=2;var o=Gt;Gt|=4;try{Wg(t,e.alternate,e)}finally{Gt=o,G.p=l,N.T=i}}Le=3}}function Av(){if(Le===4||Le===3){Le=0,Pe();var t=la,e=Cl,i=Bi,l=fv;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Le=5:(Le=0,Cl=la=null,wv(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(aa=null),di(i),e=e.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Yt,e,void 0,(e.current.flags&128)===128)}catch(C){}if(l!==null){e=N.T,o=G.p,G.p=2,N.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{N.T=e,G.p=o}}(Bi&3)!==0&&wo(),ri(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===dd?Ys++:(Ys=0,dd=t):Ys=0,Ps(0)}}function wv(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Es(e)))}function wo(){return Ev(),Mv(),Av(),Cv()}function Cv(){if(Le!==5)return!1;var t=la,e=cd;cd=0;var i=di(Bi),l=N.T,o=G.p;try{G.p=32>i?32:i,N.T=null,i=fd,fd=null;var c=la,g=Bi;if(Le=0,Cl=la=null,Bi=0,(Gt&6)!==0)throw Error(u(331));var x=Gt;if(Gt|=4,ov(c.current),lv(c,c.current,g,i),Gt=x,Ps(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Yt,c)}catch(C){}return!0}finally{G.p=o,N.T=l,wv(t,e)}}function Rv(t,e,i){e=Un(i,e),e=qf(t.stateNode,e,2),t=Wi(t,e,2),t!==null&&(an(t,2),ri(t))}function Ft(t,e,i){if(t.tag===3)Rv(t,t,i);else for(;e!==null;){if(e.tag===3){Rv(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(aa===null||!aa.has(l))){t=Un(i,t),i=jg(2),l=Wi(e,i,2),l!==null&&(Dg(i,l,e,t),an(l,2),ri(l));break}}e=e.return}}function yd(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new W5;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)||(rd=!0,o.add(i),t=i3.bind(null,t,e,i),e.then(t,t))}function i3(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,$t===t&&(Vt&i)===i&&(he===4||he===3&&(Vt&62914560)===Vt&&300>fe()-So?(Gt&2)===0&&Rl(t,0):od|=i,wl===Vt&&(wl=0)),ri(t)}function jv(t,e){e===0&&(e=Ve()),t=Ca(t,e),t!==null&&(an(t,e),ri(t))}function a3(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),jv(t,i)}function l3(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),jv(t,i)}function s3(t,e){return xe(t,e)}var Co=null,Dl=null,pd=!1,Ro=!1,gd=!1,ra=0;function ri(t){t!==Dl&&t.next===null&&(Dl===null?Co=Dl=t:Dl=Dl.next=t),Ro=!0,pd||(pd=!0,o3())}function Ps(t,e){if(!gd&&Ro){gd=!0;do for(var i=!1,l=Co;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-re(42|t)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Lv(l,c))}else c=Vt,c=gn(l,l===$t?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Bt(l,c)||(i=!0,Lv(l,c));l=l.next}while(i);gd=!1}}function r3(){Dv()}function Dv(){Ro=pd=!1;var t=0;ra!==0&&v3()&&(t=ra);for(var e=fe(),i=null,l=Co;l!==null;){var o=l.next,c=Bv(l,e);c===0?(l.next=null,i===null?Co=o:i.next=o,o===null&&(Dl=i)):(i=l,(t!==0||(c&3)!==0)&&(Ro=!0)),l=o}Le!==0&&Le!==5||Ps(t),ra!==0&&(ra=0)}function Bv(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-re(c),x=1<<g,C=o[g];C===-1?((x&i)===0||(x&l)!==0)&&(o[g]=Fe(x,e)):C<=e&&(t.expiredLanes|=x),c&=~x}if(e=$t,i=Vt,i=gn(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(qt===2||qt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Te(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Bt(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&Te(l),di(i)){case 2:case 8:i=Tt;break;case 32:i=Xt;break;case 268435456:i=Ht;break;default:i=Xt}return l=zv.bind(null,t),i=xe(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&Te(l),t.callbackPriority=2,t.callbackNode=null,2}function zv(t,e){if(Le!==0&&Le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wo()&&t.callbackNode!==i)return null;var l=Vt;return l=gn(t,t===$t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(hv(t,l,e),Bv(t,fe()),t.callbackNode!=null&&t.callbackNode===i?zv.bind(null,t):null)}function Lv(t,e){if(wo())return null;hv(t,e,!0)}function o3(){S3(function(){(Gt&6)!==0?xe(lt,r3):Dv()})}function vd(){if(ra===0){var t=yl;t===0&&(t=jn,jn<<=1,(jn&261888)===0&&(jn=256)),ra=t}return ra}function Vv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Or(""+t)}function Ov(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 u3(t,e,i,l,o){if(e==="submit"&&i&&i.stateNode===o){var c=Vv((o[pt]||null).action),g=l.submitter;g&&(e=(e=g[pt]||null)?Vv(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var x=new Hr("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ra!==0){var C=g?Ov(o,g):new FormData(o);_f(i,{pending:!0,data:C,method:o.method,action:c},null,C)}}else typeof c=="function"&&(x.preventDefault(),C=g?Ov(o,g):new FormData(o),_f(i,{pending:!0,data:C,method:o.method,action:c},c,C))},currentTarget:o}]})}}for(var bd=0;bd<tf.length;bd++){var Sd=tf[bd],c3=Sd.toLowerCase(),f3=Sd[0].toUpperCase()+Sd.slice(1);Zn(c3,"on"+f3)}Zn(dp,"onAnimationEnd"),Zn(hp,"onAnimationIteration"),Zn(mp,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(C5,"onTransitionRun"),Zn(R5,"onTransitionStart"),Zn(j5,"onTransitionCancel"),Zn(yp,"onTransitionEnd"),mi("onMouseEnter",["mouseout","mouseover"]),mi("onMouseLeave",["mouseout","mouseover"]),mi("onPointerEnter",["pointerout","pointerover"]),mi("onPointerLeave",["pointerout","pointerover"]),ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qs="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(" "),d3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qs));function Nv(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 g=l.length-1;0<=g;g--){var x=l[g],C=x.instance,q=x.currentTarget;if(x=x.listener,C!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=q;try{c(o)}catch($){Yr($)}o.currentTarget=null,c=C}else for(g=0;g<l.length;g++){if(x=l[g],C=x.instance,q=x.currentTarget,x=x.listener,C!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=q;try{c(o)}catch($){Yr($)}o.currentTarget=null,c=C}}}}function Lt(t,e){var i=e[Wt];i===void 0&&(i=e[Wt]=new Set);var l=t+"__bubble";i.has(l)||(Uv(e,t,2,!1),i.add(l))}function xd(t,e,i){var l=0;e&&(l|=4),Uv(i,t,l,e)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Td(t){if(!t[jo]){t[jo]=!0,ls.forEach(function(i){i!=="selectionchange"&&(d3.has(i)||xd(i,!1,t),xd(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jo]||(e[jo]=!0,xd("selectionchange",!1,e))}}function Uv(t,e,i,l){switch(d1(e)){case 2:var o=k3;break;case 8:o=G3;break;default:o=Ud}i=o.bind(null,e,i,t),o=void 0,!Gc||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 Ed(t,e,i,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=l.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=Ln(x),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){l=c=g;continue t}x=x.parentNode}}l=l.return}Yy(function(){var q=c,$=Hc(i),it=[];t:{var F=pp.get(t);if(F!==void 0){var Q=Hr,mt=t;switch(t){case"keypress":if(Ur(i)===0)break t;case"keydown":case"keyup":Q=l5;break;case"focusin":mt="focus",Q=Fc;break;case"focusout":mt="blur",Q=Fc;break;case"beforeblur":case"afterblur":Q=Fc;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":Q=Fy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=KA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=o5;break;case dp:case hp:case mp:Q=IA;break;case yp:Q=c5;break;case"scroll":case"scrollend":Q=FA;break;case"wheel":Q=d5;break;case"copy":case"cut":case"paste":Q=WA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Ky;break;case"toggle":case"beforetoggle":Q=m5}var St=(e&4)!==0,Zt=!St&&(t==="scroll"||t==="scrollend"),U=St?F!==null?F+"Capture":null:F;St=[];for(var B=q,P;B!==null;){var et=B;if(P=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||P===null||U===null||(et=ds(B,U),et!=null&&St.push(Fs(B,et,P))),Zt)break;B=B.return}0<St.length&&(F=new Q(F,mt,null,i,$),it.push({event:F,listeners:St}))}}if((e&7)===0){t:{if(F=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",F&&i!==_c&&(mt=i.relatedTarget||i.fromElement)&&(Ln(mt)||mt[kt]))break t;if((Q||F)&&(F=$.window===$?$:(F=$.ownerDocument)?F.defaultView||F.parentWindow:window,Q?(mt=i.relatedTarget||i.toElement,Q=q,mt=mt?Ln(mt):null,mt!==null&&(Zt=d(mt),St=mt.tag,mt!==Zt||St!==5&&St!==27&&St!==6)&&(mt=null)):(Q=null,mt=q),Q!==mt)){if(St=Fy,et="onMouseLeave",U="onMouseEnter",B="mouse",(t==="pointerout"||t==="pointerover")&&(St=Ky,et="onPointerLeave",U="onPointerEnter",B="pointer"),Zt=Q==null?F:qi(Q),P=mt==null?F:qi(mt),F=new St(et,B+"leave",Q,i,$),F.target=Zt,F.relatedTarget=P,et=null,Ln($)===q&&(St=new St(U,B+"enter",mt,i,$),St.target=P,St.relatedTarget=Zt,et=St),Zt=et,Q&&mt)e:{for(St=h3,U=Q,B=mt,P=0,et=U;et;et=St(et))P++;et=0;for(var vt=B;vt;vt=St(vt))et++;for(;0<P-et;)U=St(U),P--;for(;0<et-P;)B=St(B),et--;for(;P--;){if(U===B||B!==null&&U===B.alternate){St=U;break e}U=St(U),B=St(B)}St=null}else St=null;Q!==null&&_v(it,F,Q,St,!1),mt!==null&&Zt!==null&&_v(it,Zt,mt,St,!0)}}t:{if(F=q?qi(q):window,Q=F.nodeName&&F.nodeName.toLowerCase(),Q==="select"||Q==="input"&&F.type==="file")var Ut=ep;else if($y(F))if(np)Ut=M5;else{Ut=T5;var gt=x5}else Q=F.nodeName,!Q||Q.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?q&&Uc(q.elementType)&&(Ut=ep):Ut=E5;if(Ut&&(Ut=Ut(t,q))){tp(it,Ut,i,$);break t}gt&&gt(t,F,q),t==="focusout"&&q&&F.type==="number"&&q.memoizedProps.value!=null&&yi(F,"number",F.value)}switch(gt=q?qi(q):window,t){case"focusin":($y(gt)||gt.contentEditable==="true")&&(rl=gt,Jc=q,Ss=null);break;case"focusout":Ss=Jc=rl=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,cp(it,i,$);break;case"selectionchange":if(w5)break;case"keydown":case"keyup":cp(it,i,$)}var Rt;if(Kc)t:{switch(t){case"compositionstart":var Ot="onCompositionStart";break t;case"compositionend":Ot="onCompositionEnd";break t;case"compositionupdate":Ot="onCompositionUpdate";break t}Ot=void 0}else sl?Jy(t,i)&&(Ot="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ot="onCompositionStart");Ot&&(Qy&&i.locale!=="ko"&&(sl||Ot!=="onCompositionStart"?Ot==="onCompositionEnd"&&sl&&(Rt=Py()):(Fi=$,Yc="value"in Fi?Fi.value:Fi.textContent,sl=!0)),gt=Do(q,Ot),0<gt.length&&(Ot=new Xy(Ot,t,null,i,$),it.push({event:Ot,listeners:gt}),Rt?Ot.data=Rt:(Rt=Wy(i),Rt!==null&&(Ot.data=Rt)))),(Rt=p5?g5(t,i):v5(t,i))&&(Ot=Do(q,"onBeforeInput"),0<Ot.length&&(gt=new Xy("onBeforeInput","beforeinput",null,i,$),it.push({event:gt,listeners:Ot}),gt.data=Rt)),u3(it,t,q,i,$)}Nv(it,e)})}function Fs(t,e,i){return{instance:t,listener:e,currentTarget:i}}function Do(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=ds(t,i),o!=null&&l.unshift(Fs(t,o,c)),o=ds(t,e),o!=null&&l.push(Fs(t,o,c))),t.tag===3)return l;t=t.return}return[]}function h3(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function _v(t,e,i,l,o){for(var c=e._reactName,g=[];i!==null&&i!==l;){var x=i,C=x.alternate,q=x.stateNode;if(x=x.tag,C!==null&&C===l)break;x!==5&&x!==26&&x!==27||q===null||(C=q,o?(q=ds(i,c),q!=null&&g.unshift(Fs(i,q,C))):o||(q=ds(i,c),q!=null&&g.push(Fs(i,q,C)))),i=i.return}g.length!==0&&t.push({event:e,listeners:g})}var m3=/\r\n?/g,y3=/\u0000|\uFFFD/g;function Hv(t){return(typeof t=="string"?t:""+t).replace(m3,`
9
- `).replace(y3,"")}function kv(t,e){return e=Hv(e),Hv(t)===e}function Qt(t,e,i,l,o,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||il(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&il(t,""+l);break;case"className":Ta(t,"class",l);break;case"tabIndex":Ta(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ta(t,i,l);break;case"style":ky(t,l,c);break;case"data":if(e!=="object"){Ta(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=Or(""+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"&&Qt(t,e,"name",o.name,o,null),Qt(t,e,"formEncType",o.formEncType,o,null),Qt(t,e,"formMethod",o.formMethod,o,null),Qt(t,e,"formTarget",o.formTarget,o,null)):(Qt(t,e,"encType",o.encType,o,null),Qt(t,e,"method",o.method,o,null),Qt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Or(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=pi);break;case"onScroll":l!=null&&Lt("scroll",t);break;case"onScrollEnd":l!=null&&Lt("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=Or(""+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":Lt("beforetoggle",t),Lt("toggle",t),xa(t,"popover",l);break;case"xlinkActuate":On(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":On(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":On(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":On(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":On(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":On(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":On(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":On(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":On(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xa(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=PA.get(i)||i,xa(t,i,l))}}function Md(t,e,i,l,o,c){switch(i){case"style":ky(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"?il(t,l):(typeof l=="number"||typeof l=="bigint")&&il(t,""+l);break;case"onScroll":l!=null&&Lt("scroll",t);break;case"onScrollEnd":l!=null&&Lt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ss.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[pt]||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,""):xa(t,i,l)}}}function ke(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",t),Lt("load",t);var l=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var g=i[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Qt(t,e,c,g,i,null)}}o&&Qt(t,e,"srcSet",i.srcSet,i,null),l&&Qt(t,e,"src",i.src,i,null);return;case"input":Lt("invalid",t);var x=c=g=o=null,C=null,q=null;for(l in i)if(i.hasOwnProperty(l)){var $=i[l];if($!=null)switch(l){case"name":o=$;break;case"type":g=$;break;case"checked":C=$;break;case"defaultChecked":q=$;break;case"value":c=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(u(137,e));break;default:Qt(t,e,l,$,i,null)}}fs(t,c,x,C,q,g,o,!1);return;case"select":Lt("invalid",t),l=g=c=null;for(o in i)if(i.hasOwnProperty(o)&&(x=i[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Qt(t,e,o,x,i,null)}e=c,i=g,t.multiple=!!l,e!=null?nl(t,!!l,e,!1):i!=null&&nl(t,!!l,i,!0);return;case"textarea":Lt("invalid",t),c=o=l=null;for(g in i)if(i.hasOwnProperty(g)&&(x=i[g],x!=null))switch(g){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:Qt(t,e,g,x,i,null)}_y(t,l,o,c);return;case"option":for(C in i)if(i.hasOwnProperty(C)&&(l=i[C],l!=null))switch(C){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qt(t,e,C,l,i,null)}return;case"dialog":Lt("beforetoggle",t),Lt("toggle",t),Lt("cancel",t),Lt("close",t);break;case"iframe":case"object":Lt("load",t);break;case"video":case"audio":for(l=0;l<qs.length;l++)Lt(qs[l],t);break;case"image":Lt("error",t),Lt("load",t);break;case"details":Lt("toggle",t);break;case"embed":case"source":case"link":Lt("error",t),Lt("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(q in i)if(i.hasOwnProperty(q)&&(l=i[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Qt(t,e,q,l,i,null)}return;default:if(Uc(e)){for($ in i)i.hasOwnProperty($)&&(l=i[$],l!==void 0&&Md(t,e,$,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Qt(t,e,x,l,i,null))}function p3(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,g=null,x=null,C=null,q=null,$=null;for(Q in i){var it=i[Q];if(i.hasOwnProperty(Q)&&it!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":C=it;default:l.hasOwnProperty(Q)||Qt(t,e,Q,null,l,it)}}for(var F in l){var Q=l[F];if(it=i[F],l.hasOwnProperty(F)&&(Q!=null||it!=null))switch(F){case"type":c=Q;break;case"name":o=Q;break;case"checked":q=Q;break;case"defaultChecked":$=Q;break;case"value":g=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(u(137,e));break;default:Q!==it&&Qt(t,e,F,Q,l,it)}}el(t,g,x,C,q,$,c,o);return;case"select":Q=g=x=F=null;for(c in i)if(C=i[c],i.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":Q=C;default:l.hasOwnProperty(c)||Qt(t,e,c,null,l,C)}for(o in l)if(c=l[o],C=i[o],l.hasOwnProperty(o)&&(c!=null||C!=null))switch(o){case"value":F=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==C&&Qt(t,e,o,c,l,C)}e=x,i=g,l=Q,F!=null?nl(t,!!i,F,!1):!!l!=!!i&&(e!=null?nl(t,!!i,e,!0):nl(t,!!i,i?[]:"",!1));return;case"textarea":Q=F=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:Qt(t,e,x,null,l,o)}for(g in l)if(o=l[g],c=i[g],l.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":F=o;break;case"defaultValue":Q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Qt(t,e,g,o,l,c)}Uy(t,F,Q);return;case"option":for(var mt in i)if(F=i[mt],i.hasOwnProperty(mt)&&F!=null&&!l.hasOwnProperty(mt))switch(mt){case"selected":t.selected=!1;break;default:Qt(t,e,mt,null,l,F)}for(C in l)if(F=l[C],Q=i[C],l.hasOwnProperty(C)&&F!==Q&&(F!=null||Q!=null))switch(C){case"selected":t.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Qt(t,e,C,F,l,Q)}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 i)F=i[St],i.hasOwnProperty(St)&&F!=null&&!l.hasOwnProperty(St)&&Qt(t,e,St,null,l,F);for(q in l)if(F=l[q],Q=i[q],l.hasOwnProperty(q)&&F!==Q&&(F!=null||Q!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(u(137,e));break;default:Qt(t,e,q,F,l,Q)}return;default:if(Uc(e)){for(var Zt in i)F=i[Zt],i.hasOwnProperty(Zt)&&F!==void 0&&!l.hasOwnProperty(Zt)&&Md(t,e,Zt,void 0,l,F);for($ in l)F=l[$],Q=i[$],!l.hasOwnProperty($)||F===Q||F===void 0&&Q===void 0||Md(t,e,$,F,l,Q);return}}for(var U in i)F=i[U],i.hasOwnProperty(U)&&F!=null&&!l.hasOwnProperty(U)&&Qt(t,e,U,null,l,F);for(it in l)F=l[it],Q=i[it],!l.hasOwnProperty(it)||F===Q||F==null&&Q==null||Qt(t,e,it,F,l,Q)}function Gv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g3(){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,g=o.initiatorType,x=o.duration;if(c&&x&&Gv(g)){for(g=0,x=o.responseEnd,l+=1;l<i.length;l++){var C=i[l],q=C.startTime;if(q>x)break;var $=C.transferSize,it=C.initiatorType;$&&Gv(it)&&(C=C.responseEnd,g+=$*(C<x?1:(x-q)/(C-q)))}if(--l,e+=8*(c+g)/(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 Ad=null,wd=null;function Bo(t){return t.nodeType===9?t:t.ownerDocument}function Yv(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 Pv(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 Cd(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 Rd=null;function v3(){var t=window.event;return t&&t.type==="popstate"?t===Rd?!1:(Rd=t,!0):(Rd=null,!1)}var qv=typeof setTimeout=="function"?setTimeout:void 0,b3=typeof clearTimeout=="function"?clearTimeout:void 0,Fv=typeof Promise=="function"?Promise:void 0,S3=typeof queueMicrotask=="function"?queueMicrotask:typeof Fv!="undefined"?function(t){return Fv.resolve(null).then(t).catch(x3)}:qv;function x3(t){setTimeout(function(){throw t})}function oa(t){return t==="head"}function Xv(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),Vl(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Xs(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Xs(i);for(var c=i.firstChild;c;){var g=c.nextSibling,x=c.nodeName;c[ln]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=g}}else i==="body"&&Xs(t.ownerDocument.body);i=o}while(i);Vl(e)}function Kv(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 jd(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":jd(i),zn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function T3(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[ln])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=Yn(t.nextSibling),t===null)break}return null}function E3(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Yn(t.nextSibling),t===null))return null;return t}function Qv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Yn(t.nextSibling),t===null))return null;return t}function Dd(t){return t.data==="$?"||t.data==="$~"}function Bd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function M3(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 Yn(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 zd=null;function Zv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Yn(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Iv(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 Jv(t,e,i){switch(e=Bo(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 Xs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);zn(t)}var Pn=new Map,Wv=new Set;function zo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zi=G.d;G.d={f:A3,r:w3,D:C3,C:R3,L:j3,m:D3,X:z3,S:B3,M:L3};function A3(){var t=zi.f(),e=Eo();return t||e}function w3(t){var e=Vn(t);e!==null&&e.tag===5&&e.type==="form"?yg(e):zi.r(t)}var Bl=typeof document=="undefined"?null:document;function $v(t,e,i){var l=Bl;if(l&&typeof e=="string"&&e){var o=Je(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),Wv.has(o)||(Wv.add(o),t={rel:t,crossOrigin:i,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),ke(e,"link",t),pe(e),l.head.appendChild(e)))}}function C3(t){zi.D(t),$v("dns-prefetch",t,null)}function R3(t,e){zi.C(t,e),$v("preconnect",t,e)}function j3(t,e,i){zi.L(t,e,i);var l=Bl;if(l&&t&&e){var o='link[rel="preload"][as="'+Je(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Je(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Je(i.imageSizes)+'"]')):o+='[href="'+Je(t)+'"]';var c=o;switch(e){case"style":c=zl(t);break;case"script":c=Ll(t)}Pn.has(c)||(t=b({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Pn.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Ks(c))||e==="script"&&l.querySelector(Qs(c))||(e=l.createElement("link"),ke(e,"link",t),pe(e),l.head.appendChild(e)))}}function D3(t,e){zi.m(t,e);var i=Bl;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Je(l)+'"][href="'+Je(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ll(t)}if(!Pn.has(c)&&(t=b({rel:"modulepreload",href:t},e),Pn.set(c,t),i.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Qs(c)))return}l=i.createElement("link"),ke(l,"link",t),pe(l),i.head.appendChild(l)}}}function B3(t,e,i){zi.S(t,e,i);var l=Bl;if(l&&t){var o=hi(l).hoistableStyles,c=zl(t);e=e||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(Ks(c)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Pn.get(c))&&Ld(t,i);var C=g=l.createElement("link");pe(C),ke(C,"link",t),C._p=new Promise(function(q,$){C.onload=q,C.onerror=$}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Lo(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function z3(t,e){zi.X(t,e);var i=Bl;if(i&&t){var l=hi(i).hoistableScripts,o=Ll(t),c=l.get(o);c||(c=i.querySelector(Qs(o)),c||(t=b({src:t,async:!0},e),(e=Pn.get(o))&&Vd(t,e),c=i.createElement("script"),pe(c),ke(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function L3(t,e){zi.M(t,e);var i=Bl;if(i&&t){var l=hi(i).hoistableScripts,o=Ll(t),c=l.get(o);c||(c=i.querySelector(Qs(o)),c||(t=b({src:t,async:!0,type:"module"},e),(e=Pn.get(o))&&Vd(t,e),c=i.createElement("script"),pe(c),ke(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function t1(t,e,i,l){var o=(o=ot.current)?zo(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=zl(i.href),i=hi(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=zl(i.href);var c=hi(o).hoistableStyles,g=c.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=o.querySelector(Ks(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Pn.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},Pn.set(t,i),c||V3(o,t,i,g.state))),e&&l===null)throw Error(u(528,""));return g}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=Ll(i),i=hi(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 zl(t){return'href="'+Je(t)+'"'}function Ks(t){return'link[rel="stylesheet"]['+t+"]"}function e1(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function V3(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}),ke(e,"link",i),pe(e),t.head.appendChild(e))}function Ll(t){return'[src="'+Je(t)+'"]'}function Qs(t){return"script[async]"+t}function n1(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Je(i.href)+'"]');if(l)return e.instance=l,pe(l),l;var o=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),pe(l),ke(l,"style",o),Lo(l,i.precedence,t),e.instance=l;case"stylesheet":o=zl(i.href);var c=t.querySelector(Ks(o));if(c)return e.state.loading|=4,e.instance=c,pe(c),c;l=e1(i),(o=Pn.get(o))&&Ld(l,o),c=(t.ownerDocument||t).createElement("link"),pe(c);var g=c;return g._p=new Promise(function(x,C){g.onload=x,g.onerror=C}),ke(c,"link",l),e.state.loading|=4,Lo(c,i.precedence,t),e.instance=c;case"script":return c=Ll(i.src),(o=t.querySelector(Qs(c)))?(e.instance=o,pe(o),o):(l=i,(o=Pn.get(c))&&(l=b({},i),Vd(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),pe(o),ke(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,Lo(l,i.precedence,t));return e.instance}function Lo(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,g=0;g<l.length;g++){var x=l[g];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 Ld(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Vd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vo=null;function i1(t,e,i){if(Vo===null){var l=new Map,o=Vo=new Map;o.set(i,l)}else o=Vo,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[ln]||c[ht]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function a1(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function O3(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 l1(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function N3(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=zl(l.href),c=e.querySelector(Ks(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Oo.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,pe(c);return}c=e.ownerDocument||e,l=e1(l),(o=Pn.get(o))&&Ld(l,o),c=c.createElement("link"),pe(c);var g=c;g._p=new Promise(function(x,C){g.onload=x,g.onerror=C}),ke(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=Oo.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Od=0;function U3(t,e){return t.stylesheets&&t.count===0&&Uo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Uo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Od===0&&(Od=62500*g3());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Uo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Od?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Oo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var No=null;function Uo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,No=new Map,e.forEach(_3,t),No=null,Oo.call(t))}function _3(t,e){if(!(e.state.loading&4)){var i=No.get(t);if(i)var l=i.get(null);else{i=new Map,No.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),c=i.get(g)||l,c===l&&i.set(null,o),i.set(g,o),this.count++,l=Oo.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 Zs={$$typeof:Z,Provider:null,Consumer:null,_currentValue:rt,_currentValue2:rt,_threadCount:0};function H3(t,e,i,l,o,c,g,x,C){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=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function s1(t,e,i,l,o,c,g,x,C,q,$,it){return t=new H3(t,e,i,g,C,q,$,it,x),e=1,c===!0&&(e|=24),c=bn(3,null,null,e),t.current=c,c.stateNode=t,e=mf(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},vf(c),t}function r1(t){return t?(t=cl,t):cl}function o1(t,e,i,l,o,c){o=r1(o),l.context===null?l.context=o:l.pendingContext=o,l=Ji(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Wi(t,l,e),i!==null&&(fn(i,t,e),Cs(i,t,e))}function u1(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Nd(t,e){u1(t,e),(t=t.alternate)&&u1(t,e)}function c1(t){if(t.tag===13||t.tag===31){var e=Ca(t,67108864);e!==null&&fn(e,t,67108864),Nd(t,67108864)}}function f1(t){if(t.tag===13||t.tag===31){var e=Mn();e=fi(e);var i=Ca(t,e);i!==null&&fn(i,t,e),Nd(t,e)}}var _o=!0;function k3(t,e,i,l){var o=N.T;N.T=null;var c=G.p;try{G.p=2,Ud(t,e,i,l)}finally{G.p=c,N.T=o}}function G3(t,e,i,l){var o=N.T;N.T=null;var c=G.p;try{G.p=8,Ud(t,e,i,l)}finally{G.p=c,N.T=o}}function Ud(t,e,i,l){if(_o){var o=_d(l);if(o===null)Ed(t,e,l,Ho,i),h1(t,l);else if(P3(o,t,e,i,l))l.stopPropagation();else if(h1(t,l),e&4&&-1<Y3.indexOf(t)){for(;o!==null;){var c=Vn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=qe(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var C=1<<31-re(g);x.entanglements[1]|=C,g&=~C}ri(c),(Gt&6)===0&&(xo=fe()+500,Ps(0))}}break;case 31:case 13:x=Ca(c,2),x!==null&&fn(x,c,2),Eo(),Nd(c,2)}if(c=_d(l),c===null&&Ed(t,e,l,Ho,i),c===o)break;o=c}o!==null&&l.stopPropagation()}else Ed(t,e,l,null,i)}}function _d(t){return t=Hc(t),Hd(t)}var Ho=null;function Hd(t){if(Ho=null,t=Ln(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=m(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 Ho=t,null}function d1(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(Xn()){case lt:return 2;case Tt:return 8;case Xt:case jt:return 32;case Ht:return 268435456;default:return 32}default:return 32}}var kd=!1,ua=null,ca=null,fa=null,Is=new Map,Js=new Map,da=[],Y3="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 h1(t,e){switch(t){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":Is.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(e.pointerId)}}function Ws(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=Vn(e),e!==null&&c1(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function P3(t,e,i,l,o){switch(e){case"focusin":return ua=Ws(ua,t,e,i,l,o),!0;case"dragenter":return ca=Ws(ca,t,e,i,l,o),!0;case"mouseover":return fa=Ws(fa,t,e,i,l,o),!0;case"pointerover":var c=o.pointerId;return Is.set(c,Ws(Is.get(c)||null,t,e,i,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Js.set(c,Ws(Js.get(c)||null,t,e,i,l,o)),!0}return!1}function m1(t){var e=Ln(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,ut(t.priority,function(){f1(i)});return}}else if(e===31){if(e=m(i),e!==null){t.blockedOn=e,ut(t.priority,function(){f1(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 ko(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=_d(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);_c=l,i.target.dispatchEvent(l),_c=null}else return e=Vn(i),e!==null&&c1(e),t.blockedOn=i,!1;e.shift()}return!0}function y1(t,e,i){ko(t)&&i.delete(e)}function q3(){kd=!1,ua!==null&&ko(ua)&&(ua=null),ca!==null&&ko(ca)&&(ca=null),fa!==null&&ko(fa)&&(fa=null),Is.forEach(y1),Js.forEach(y1)}function Go(t,e){t.blockedOn===e&&(t.blockedOn=null,kd||(kd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,q3)))}var Yo=null;function p1(t){Yo!==t&&(Yo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Yo===t&&(Yo=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(Hd(l||i)===null)continue;break}var c=Vn(i);c!==null&&(t.splice(e,3),e-=3,_f(c,{pending:!0,data:o,method:i.method,action:l},l,o))}}))}function Vl(t){function e(C){return Go(C,t)}ua!==null&&Go(ua,t),ca!==null&&Go(ca,t),fa!==null&&Go(fa,t),Is.forEach(e),Js.forEach(e);for(var i=0;i<da.length;i++){var l=da[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<da.length&&(i=da[0],i.blockedOn===null);)m1(i),i.blockedOn===null&&da.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],g=o[pt]||null;if(typeof c=="function")g||p1(i);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[pt]||null)x=g.formAction;else if(Hd(o)!==null)continue}else x=g.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),p1(i)}}}function g1(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},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 Gd(t){this._internalRoot=t}Po.prototype.render=Gd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=Mn();o1(i,l,t,e,null,null)},Po.prototype.unmount=Gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;o1(t.current,2,null,t,null,null),Eo(),e[kt]=null}};function Po(t){this._internalRoot=t}Po.prototype.unstable_scheduleHydration=function(t){if(t){var e=Pi();t={blockedOn:null,target:t,priority:e};for(var i=0;i<da.length&&e!==0&&e<da[i].priority;i++);da.splice(i,0,t),i===0&&m1(t)}};var v1=s.version;if(v1!=="19.2.1")throw Error(u(527,v1,"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 F3={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qo.isDisabled&&qo.supportsFiber)try{Yt=qo.inject(F3),wt=qo}catch(t){}}return Nl.createRoot=function(t,e){if(!f(t))throw Error(u(299));var i=!1,l="",o=Ag,c=wg,g=Cg;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&&(g=e.onRecoverableError)),e=s1(t,1,!1,null,null,i,l,null,o,c,g,g1),t[kt]=e.current,Td(t),new Gd(e)},Nl.hydrateRoot=function(t,e,i){if(!f(t))throw Error(u(299));var l=!1,o="",c=Ag,g=wg,x=Cg,C=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&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),e=s1(t,1,!0,e,i!=null?i:null,l,o,C,c,g,x,g1),e.context=r1(null),i=e.current,l=Mn(),l=fi(l),o=Ji(l),o.callback=null,Wi(i,o,l),i=l,e.current.lanes=i,an(e,i),ri(e),t[kt]=e.current,Td(t),new Po(e)},Nl.version="19.2.1",Nl}var Jd;function C1(){if(Jd)return Ko.exports;Jd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ko.exports=w1(),Ko.exports}var R1=C1();const j1=tn(R1),Wd={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)"},17:{title:"Player Startup Failed",desc:"This feature requires the Standard plan."}},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)"},17:{title:"플레이어 구동 실패",desc:"Standard 요금제가 필요한 기능입니다."}},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)"},17:{title:"プレーヤーの起動に失敗しました",desc:"この機能にはStandardプランが必要です。"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}}},D1=()=>typeof navigator!="undefined"&&typeof navigator.language!="undefined";function B1(n){const a=n.split("-")[0];return a in Wd?a:"en"}function Jo(n){let a="en";n?a=n:D1()&&(a=navigator.language);const s=B1(a);return Wd[s]}Jo();const z1={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"},L1={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 dn={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Vi={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const V1=new Date().getTime(),$d=()=>{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()-V1;return{logDate:s,logDateUnix:r,thisSec:u}};function O1(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function N1(n,a){Object.entries(a).forEach(([s,r])=>{O1(r)?(n[s]||(n[s]={}),Object.entries(r).forEach(([u,f])=>{f!=null&&(n[s][u]=f)})):r!=null&&(n[s]=r)})}function U1(n){const a=[];return n!=null&&n.r1&&a.push(n.r1),n!=null&&n.r2&&a.push(n.r2),n!=null&&n.r3&&a.push(n.r3),a.join(" ")}function _1(n){var a,s;try{const r=(a=Vi.syncResult)==null?void 0:a.geoLocation;r&&(n.address=U1(r),n.isp=r.net||"",n.ip=((s=Vi.syncResult)==null?void 0:s.ip)||"",n.nation=r.country||"")}catch(r){}}const H1=async n=>{var u,f;if(!n)return;const{platform:a,stage:s}=Vi,r=L1[a][s].log;try{const h=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:n})})).json();Vi.sync=((u=h.result)==null?void 0:u.sync)||!1,Vi.syncResult=h.result||{};const{logDate:m,logDateUnix:y}=$d();return dn.extra.logDate=m,dn.extra.logDateUnix=y,(f=Vi.syncResult)!=null&&f.geoLocation&&_1(dn.extra),h}catch(d){return console.error("MA config initialization failed:",d),null}};async function k1(n,a,s,r,u){Vi.platform=n,Vi.stage=a,N1(dn,s),r&&(dn.extra.vpePackageId=r),u&&(dn.extra.vpeKey=u),dn.extra.nation?dn.browser.country=z1[dn.extra.nation]||"Korea, Republic of":dn.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=$d();dn.extra.logDate=f,dn.extra.logDateUnix=d,dn.extra.created_at=d}const G1=(n={},a)=>{var u;const s={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};if(a!=="pay")return{...s,...Y1};const r={...s,...n};return n.controlBtn&&(r.controlBtn={...s.controlBtn,...n.controlBtn}),n.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...n.watermarkConfig}),n.captionStyle&&(r.captionStyle={...s.captionStyle,...n.captionStyle}),((u=r.controlBtn)==null?void 0:u.progressBar)===void 0&&(r.controlBtn.progressBar=!0),r},Y1={free:!0,startMutedInfoNotVisible:!1,lowLatencyMode:!1,progressBarColor:"#009dff",playRateSetting:[.5,.75,1,1.5,2],descriptionNotVisible:!0,seekingPreview:!1,controlActiveTime:1500,ui:"all",token:"",setStartTime:null,controlBtn:{play:!0,fullscreen:!0,volume:!0,times:!0,setting:!1,pictureInPicture:!1,progressBar:!0}},P1={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let th=[];const q1=n=>{try{return atob(n)}catch(a){return console.error("Base64 decoding failed:",a),""}};class F1{constructor({accessKey:a,appId:s,platform:r,stage:u,isDev:f=!1,language:d}){$e(this,"serverConfig",{});$e(this,"playerInfo",null);$e(this,"accessKey");$e(this,"appId");$e(this,"platform");$e(this,"stage");$e(this,"isDev");$e(this,"translator",Jo());$e(this,"errorState");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(){var f;const a=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[a[0]],this[a[1]]].some(d=>!d))return console.warn(s),{error:this.setErrorRun(a[2])};const u=d=>(this.serverConfig=d,this.playerInfo=this.createPlayerInfo(d),this.playerInfo);try{const d=await this.performKeyCheck();if(d.code!==200)return{error:this.setErrorRun(a[3])};const h=u(d);return await k1(this.platform,this.stage,h,this.appId,this.accessKey),await H1(this.accessKey),{options:(f=this.serverConfig.result)==null?void 0:f.options,playerInfo:h}}catch(d){return console.error("VPE SDK Initialization failed:",d),{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=q1(P1[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((d,h,m)=>(d[h]=[this.accessKey,this.appId][m],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){var h,m,y,p,S,b,M,V,w,z,Y,X,A,Z,R;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:((h=a.result.options)==null?void 0:h.maUse)==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:(m=u==null?void 0:u.effectiveType)!=null?m:"unknown",downlink:(y=u==null?void 0:u.downlink)!=null?y:null,rtt:(p=u==null?void 0:u.rtt)!=null?p:null,save_data:(S=u==null?void 0:u.saveData)!=null?S:!1},device:{platform:(b=d==null?void 0:d.platform)!=null?b:"Unknown",mobile:(M=d==null?void 0:d.mobile)!=null?M:!1,memory:(V=navigator.deviceMemory)!=null?V:null,processor:(w=navigator.hardwareConcurrency)!=null?w:null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:r,device:(z=d==null?void 0:d.platform)!=null?z:"Unknown",os:(Y=d==null?void 0:d.platform)!=null?Y:"Unknown",osOrigin:(X=d==null?void 0:d.platform)!=null?X:"Unknown",osVersion:(A=d==null?void 0:d.platformVersion)!=null?A:"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}&${(Z=d==null?void 0:d.platform)!=null?Z:"Unknown"}&${(R=d==null?void 0:d.platformVersion)!=null?R:"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=Jo(a)}getErrorState(){return this.errorState}isPaidTier(){var a;return((a=this.serverConfig.result)==null?void 0:a.pricing)==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){var u,f,d;const s=G1((u=this.serverConfig.result)==null?void 0:u.options,(f=this.serverConfig.result)==null?void 0:f.pricing);((d=this.serverConfig.result)==null?void 0:d.pricing)!=="pay"&&(a={...a,...s});const r={...s,...a!=null?a:{}};return r!=null&&r.lang&&((r==null?void 0:r.lang)=="auto"||this.updateTranslator(r.lang)),a!=null&&a.controlBtn&&(r.controlBtn={...s.controlBtn,...a.controlBtn}),a!=null&&a.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),th=r.playlist||[],r}getPlaylist(){return th||[]}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(m){return h}},u=d=>{const h=d.match(/RESOLUTION=(\d+)x(\d+)/);if(h)return`${h[2]}p`;const m=d.match(/BANDWIDTH=(\d+)/);return m?`${Math.round(Number(m[1])/1e3)}kbps`:"auto"},f=d=>{const h=d.split(/\r?\n/).map(m=>m.trim()).filter(m=>m.length>0);for(let m=0;m<h.length;m+=1){const y=h[m];if(y.startsWith("#EXT-X-STREAM-INF")){const p=h[m+1];p&&!p.startsWith("#")&&(s.push({quality:u(y),url:r(a,p),levelIndex:s.length}),m+=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 Wo=new Map,eh=T.createContext(null);let nh=0;function $o(n,a){if(Wo.has(n))return Wo.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return Wo.set(n,r),r}function X1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(nh+=1,s.current=`sdk-${nh}`);const r=n!=null?n:s.current;return T.createElement(eh.Provider,{value:r},a)}function K1(){return T.useContext(eh)}function ka(n,a){const s=K1(),r=s?`${s}:${n}`:n,u=$o(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,m=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),m]}function Wn(n,a,s){const r=n?`${n}:${a}`:a,u=$o(r);u.value=typeof s=="function"?s(u.value):s,u.listeners.forEach(f=>f())}function tu(n,a){const s=n?`${n}:${a}`:a;return $o(s).value}const eu=n=>typeof n=="object"&&n!==null,$s=n=>eu(n)?"top"in n||"upper"in n||"center"in n||"lower"in n||"bottom"in n||"order"in n:!1,tr=n=>eu(n)?"live"in n||"vod"in n:!1,nu=n=>eu(n)?"pc"in n||"mobile"in n||"fullscreen"in n||"breakpoint"in n:!1,Ul=(n,a)=>typeof a!="undefined"?a:n,Q1=(n,a)=>typeof a!="undefined"?a:n,iu=(n,a)=>n?a?{top:Ul(n.top,a.top),upper:Ul(n.upper,a.upper),center:Ul(n.center,a.center),lower:Ul(n.lower,a.lower),bottom:Ul(n.bottom,a.bottom),order:Q1(n.order,a.order)}:n:a,ih=n=>{if(n){if(tr(n))return n;if($s(n))return{live:n,vod:n}}},er=(n,a)=>{const s=ih(n),r=ih(a);return s?r?{live:iu(s.live,r.live),vod:iu(s.vod,r.vod)}:s:r},ah=n=>{if(n){if(nu(n))return n;if(tr(n)||$s(n))return{pc:n,mobile:n,fullscreen:n}}},Z1=(n,a)=>{var s;return n?a?{pc:er(n.pc,a.pc),mobile:er(n.mobile,a.mobile),fullscreen:er(n.fullscreen,a.fullscreen),breakpoint:(s=a.breakpoint)!=null?s:n.breakpoint}:n:a},au=(n,a)=>{if(!n)return a;if(!a)return n;const s=nu(n),r=nu(a);if(s||r){const u=s?n:ah(n),f=r?a:ah(a);return Z1(u,f)}return tr(n)||tr(a)?er(n,a):$s(n)||$s(a)?iu(n,a):a},lu=new Map,lh=T.createContext(null);let sh=0;function I1(n,a){if(lu.has(n))return lu.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return lu.set(n,r),r}function J1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(sh+=1,s.current=`vpe-${sh}`);const r=n!=null?n:s.current;return T.createElement(lh.Provider,{value:r},a)}function W1(){return T.useContext(lh)}function rh(n,a){const s=W1(),r=s?`${s}:${n}`:n,u=I1(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,m=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),m]}const $1="playerState",tb={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,subtitleTracks:[],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 te(){const[n,a]=rh($1,tb),s=T.useCallback(r=>{a(u=>{const f=typeof r=="function"?r(u):r,d={...u,...f},h=Object.keys(f);for(const m of h)if(!Object.is(u[m],d[m]))return d;return u})},[a]);return[n,s]}const eb="playerController",nb={videoEl:null,hls:null,dash:null};function Ce(){const[n,a]=rh(eb,nb),[s,r]=te(),u=T.useRef(0),f=T.useRef(""),d=T.useCallback(L=>{a(k=>({...k,videoEl:L}))},[a]),h=T.useCallback(L=>{a(k=>({...k,hls:L}))},[a]),m=T.useCallback(L=>{a(k=>({...k,dash:L}))},[a]),y=T.useCallback(()=>{r({isUserTouch:!0})},[r]),p=T.useCallback(()=>{const L=n.videoEl;L&&L.paused&&L.play()},[n.videoEl]),S=T.useCallback(()=>{const L=n.videoEl;L&&(L.paused||L.pause())},[n.videoEl]),b=T.useCallback(L=>{const k=n.videoEl;if(!k||Number.isNaN(L))return;const W=Math.max(0,Math.min(L,k.duration||L));k.currentTime=W,r({currentTime:W,isEnded:!1})},[r,n.videoEl]),M=T.useCallback(L=>{const k=n.videoEl;if(!k||Number.isNaN(L))return;const W=Math.max(0,Math.min(100,L));k.volume=W/100,k.muted=W===0},[n.videoEl]),V=T.useCallback(L=>{const k=n.videoEl;k&&(k.muted=L)},[n.videoEl]),w=T.useCallback(L=>{var N;const k=n.videoEl;if(!k)return;const W=k.textTracks;if(!W||W.length===0)return;const _=Math.max(0,Math.min((N=s.subTitleIdx)!=null?N:0,W.length-1));for(let G=0;G<W.length;G+=1)W[G].mode=L&&G===_?"showing":"disabled";r({isSubtitle:L})},[s.subTitleIdx,r,n.videoEl]),z=T.useCallback(()=>{const L=n.videoEl;if(!L)return;const k=L.textTracks;if(!k||k.length===0){r({isSubtitle:!1});return}let W=!1;for(let _=0;_<k.length;_+=1)if(k[_].mode==="showing"){W=!0;break}W?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),w(!W)},[r,w,n.videoEl]),Y=T.useCallback(L=>{const k=n.videoEl;if(!k)return;const W=Array.from(k.querySelectorAll("track")),_=k.textTracks;if((!_||_.length===0)&&W.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const N=W.length>0?W.length-1:_.length-1,G=Math.max(0,Math.min(L,N));if(W.length>0)W.forEach((rt,st)=>{rt.track&&(rt.track.mode=st===G?"showing":"disabled")});else for(let rt=0;rt<_.length;rt+=1)_[rt].mode=rt===G?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:G}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,n.videoEl]),X=T.useCallback(()=>{const L=n.videoEl;L&&(L.muted=!L.muted)},[n.videoEl]),A=T.useCallback(()=>{const L=n.videoEl;L&&(L.paused?p():S())},[S,p,n.videoEl]),Z=T.useCallback(L=>{const k=n.hls,W=n.dash;if(!k&&!W)return;if(k){if(L==="auto"){k.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}k.currentLevel=L,r({currentLevel:L,isAutoLevel:!1});return}const _=L==="auto"||L===-1;W!=null&&W.setAutoSwitchQualityFor&&W.setAutoSwitchQualityFor("video",_),!_&&(W!=null&&W.setQualityFor)&&W.setQualityFor("video",L),r({currentLevel:_?-1:L,isAutoLevel:_})},[r,n.dash,n.hls]),R=T.useCallback(L=>{const k=n.videoEl;k&&(k.playbackRate=L)},[n.videoEl]),O=T.useCallback(async()=>{const L=n.videoEl;if(!L||typeof document=="undefined")return;const k=document;if(k.pictureInPictureElement){typeof k.exitPictureInPicture=="function"&&await k.exitPictureInPicture();return}const W=L.requestPictureInPicture;typeof W=="function"&&await W.call(L)},[n.videoEl]),j=T.useCallback(()=>{if(typeof document=="undefined")return null;const L=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return L instanceof HTMLElement?L:null},[]),D=T.useCallback((L,k)=>{if(!L||typeof document=="undefined")return;if(!(k!=null?k:!L.classList.contains("vpe-ios-fullscreen"))){r({isFullscreen:!1}),L.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=f.current;const N=document.getElementById("vpeIosFullscreenTmpDiv");N&&N.remove(),window.scrollY=u.current;return}r({isFullscreen:!0}),L.classList.add("vpe-ios-fullscreen"),u.current=window.scrollY,f.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const _=document.createElement("div");_.id="vpeIosFullscreenTmpDiv",_.style.height="120dvh",document.body.appendChild(_),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[r]),J=T.useCallback(()=>{const L=n.videoEl;if(!L)return!1;const k=L.webkitEnterFullscreen;return typeof k!="function"?!1:(k.call(L),!0)},[n.videoEl]),K=T.useCallback(L=>{var _;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(L!=null&&L.iosFullscreenNativeMode){if(J())return}else{const N=document.querySelector(".vpe-root-wrap");D(N,!0);return}if(typeof document=="undefined"||document.fullscreenElement)return;const W=j();W&&((_=W.requestFullscreen)==null||_.call(W))},[J,j,D]),tt=T.useCallback(L=>{var W;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent)&&!(L!=null&&L.iosFullscreenNativeMode)){const _=document.querySelector(".vpe-root-wrap");D(_,!1);return}typeof document!="undefined"&&document.fullscreenElement&&((W=document.exitFullscreen)==null||W.call(document))},[D]),at=T.useCallback(L=>{var _,N;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(L!=null&&L.iosFullscreenNativeMode){if(J())return}else{const G=document.querySelector(".vpe-root-wrap");D(G);return}if(typeof document=="undefined")return;if(document.fullscreenElement){(_=document.exitFullscreen)==null||_.call(document);return}const W=j();W&&((N=W.requestFullscreen)==null||N.call(W))},[J,j,D]);return{videoEl:n.videoEl,hls:n.hls,dash:n.dash,setVideoElement:d,setHlsInstance:h,setDashInstance:m,play:p,pause:S,seekTo:b,setVolume:M,setMuted:V,setSubtitleEnabled:w,toggleSubtitle:z,toggleMute:X,togglePlay:A,useTouch:y,playBackRate:R,selectSubTitle:Y,selectQualityLevel:Z,togglePictureInPicture:O,toggleFullscreen:at,fullscreenOn:K,fullscreenOff:tt}}const ib=()=>{};function nr(n,a,s=!1,r=!0,u=ib){T.useEffect(()=>{const f=n.current;if(!f)return;const d=typeof document=="undefined"?null:document,h=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},m=()=>{a({isPlaying:!1})},y=()=>{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 j=f.buffered.start(0),D=f.buffered.end(f.buffered.length-1);a({buffered:D,bufferedStart:j,bufferedEnd:D})}},S=()=>{const j=f.videoWidth||0,D=f.videoHeight||0;a({isHd:j>=1280,is4k:D>=2160,videoWidth:j,videoHeight:D})},b=()=>{a({isEnded:!0}),u("ended")},M=()=>{a({isSeeked:!0}),u("seeking",{currentTime:f.currentTime})},V=()=>{setTimeout(()=>{a({isSeeked:!1}),u("seeked",{currentTime:f.currentTime})},200)},w=()=>{a({isMuted:f.muted,isVolume:Math.round(f.volume*100)}),u("volumechange",{isMuted:f.muted,isVolume:Math.round(f.volume*100)})},z=()=>{a({isLoading:!0,isWaiting:!0})},Y=()=>{a({isLoading:!1}),S()},X=()=>{a({isLoading:!1}),S()},A=()=>{a({isWaiting:!0})},Z=()=>{a({isWaiting:!1,isLoading:!1})},R=()=>{a({isWaiting:!0})},O=()=>{!d||!r||d.hidden&&!f.paused&&f.pause()};return f.addEventListener("play",h),f.addEventListener("pause",m),f.addEventListener("timeupdate",y),f.addEventListener("ended",b),f.addEventListener("progress",p),f.addEventListener("seeking",M),f.addEventListener("seeked",V),f.addEventListener("volumechange",w),f.addEventListener("loadstart",z),f.addEventListener("loadedmetadata",Y),f.addEventListener("loadeddata",X),f.addEventListener("resize",S),f.addEventListener("waiting",A),f.addEventListener("playing",Z),f.addEventListener("stalled",R),d==null||d.addEventListener("visibilitychange",O),w(),()=>{f.removeEventListener("play",h),f.removeEventListener("pause",m),f.removeEventListener("timeupdate",y),f.removeEventListener("ended",b),f.removeEventListener("progress",p),f.removeEventListener("seeking",M),f.removeEventListener("seeked",V),f.removeEventListener("volumechange",w),f.removeEventListener("loadstart",z),f.removeEventListener("loadedmetadata",Y),f.removeEventListener("loadeddata",X),f.removeEventListener("resize",S),f.removeEventListener("waiting",A),f.removeEventListener("playing",Z),f.removeEventListener("stalled",R),d==null||d.removeEventListener("visibilitychange",O)}},[r,s,a,n])}const ab=3,lb=3e3;function sb(n){var S,b,M,V,w,z,Y,X,A,Z;const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),u=T.useRef(null),[f,d]=te(),{setVideoElement:h,setHlsInstance:m}=Ce(),y=n.hlsLib,p=n.options;return T.useEffect(()=>{var j,D,J,K;const R=a.current,O=(j=n==null?void 0:n.src)==null?void 0:j.file;if(!(!R||!O)){if((D=y==null?void 0:y.isSupported)!=null&&D.call(y)){const tt=new y({lowLatencyMode:p.lowLatencyMode,liveSyncDuration:p.lowLatencyMode?3:null,backBufferLength:p.lowLatencyMode?30:null,debug:!1});u.current=tt,m(tt),tt.attachMedia(R),tt.on(y.Events.MEDIA_ATTACHED,()=>{tt.loadSource(O)});const at=typeof((J=p==null?void 0:p.retry)==null?void 0:J.maxRetry)=="number"?p.retry.maxRetry:ab,L=typeof((K=p==null?void 0:p.retry)==null?void 0:K.interval)=="number"?p.retry.interval:lb,k=W=>{var _;if(typeof((_=W==null?void 0:W.details)==null?void 0:_.live)=="boolean"){const N=W.details.live,G=W.details.totalduration,rt=N&&typeof G=="number"&&Number.isFinite(G)&&G>0;d({isLive:N,isDvr:rt})}};return tt.on(y.Events.MANIFEST_PARSED,(W,_)=>{var G,rt,st,yt;s.current=0,k(_);const N=((G=tt.levels)!=null?G:[]).map((E,H)=>({index:H,width:E.width,height:E.height,bitrate:E.bitrate,name:E.name}));if(d({levels:N,currentLevel:tt.currentLevel,isAutoLevel:tt.autoLevelEnabled}),!((st=(rt=n.src)==null?void 0:rt.vtt)!=null&&st.length)){const E=(yt=tt.subtitleTracks)!=null?yt:[],H=E.map((I,nt)=>{var ct,ot,ft;return{label:(ot=(ct=I==null?void 0:I.name)!=null?ct:I==null?void 0:I.lang)!=null?ot:`Track ${nt+1}`,id:(ft=I==null?void 0:I.lang)!=null?ft:String(nt),default:!!(I!=null&&I.default||I!=null&&I.autoselect)}});d(I=>{var bt,xt;if(!(E.length>0))return{hasSubtitle:!1,isSubtitle:!1,subTitleIdx:0,subtitleTracks:[]};const ct=(bt=E.findIndex(At=>At.default||At.autoselect))!=null?bt:-1,ot=ct>=0?ct:0;return{hasSubtitle:!0,subTitleIdx:Math.min(Math.max((xt=I.subTitleIdx)!=null?xt:ot,0),E.length-1),subtitleTracks:H}})}}),tt.on(y.Events.LEVEL_LOADED,(W,_)=>{s.current=0,k(_)}),tt.on(y.Events.LEVEL_SWITCHED,(W,_)=>{d({currentLevel:_.level,isAutoLevel:tt.autoLevelEnabled})}),tt.on(y.Events.SUBTITLE_TRACKS_UPDATED,(W,_)=>{var rt,st,yt,E;if((st=(rt=n.src)==null?void 0:rt.vtt)!=null&&st.length)return;const N=(E=(yt=_==null?void 0:_.subtitleTracks)!=null?yt:tt.subtitleTracks)!=null?E:[],G=N.map((H,I)=>{var nt,ct,ot;return{label:(ct=(nt=H==null?void 0:H.name)!=null?nt:H==null?void 0:H.lang)!=null?ct:`Track ${I+1}`,id:(ot=H==null?void 0:H.lang)!=null?ot:String(I),default:!!(H!=null&&H.default||H!=null&&H.autoselect)}});d(H=>{var ft,bt;if(!(N.length>0))return{hasSubtitle:!1,isSubtitle:!1,subTitleIdx:0,subtitleTracks:[]};const nt=(ft=N.findIndex(xt=>xt.default||xt.autoselect))!=null?ft:-1,ct=nt>=0?nt:0;return{hasSubtitle:!0,subTitleIdx:Math.min(Math.max((bt=H.subTitleIdx)!=null?bt:ct,0),N.length-1),subtitleTracks:G}})}),tt.on(y.Events.SUBTITLE_TRACK_SWITCH,(W,_)=>{var G,rt;if((rt=(G=n.src)==null?void 0:G.vtt)!=null&&rt.length)return;const N=typeof(_==null?void 0:_.id)=="number"?_.id:tt.subtitleTrack;typeof N=="number"&&d({subTitleIdx:N,hasSubtitle:!0})}),tt.on(y.Events.ERROR,(W,_)=>{if(_!=null&&_.fatal){if(s.current<at){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,(_==null?void 0:_.type)===y.ErrorTypes.MEDIA_ERROR){tt.recoverMediaError();return}tt.stopLoad(),tt.loadSource(O),tt.startLoad()},L);return}console.log("HLS 재시도 횟수 초과"),n.onError&&n.onError({evt:W,data:_}),tt.destroy()}}),()=>{r.current&&(clearTimeout(r.current),r.current=null),m(null),u.current=null,tt.destroy()}}R.src=O,R.load()}},[y,(S=n==null?void 0:n.src)==null?void 0:S.file,n.onError,m,d]),T.useEffect(()=>{const R=a.current;if(!R)return;const O=j=>{n.onError&&n.onError(j)};return R.addEventListener("error",O),()=>{R.removeEventListener("error",O)}},[n.onError]),T.useEffect(()=>{var j;const R=a.current;if(!R||(j=y==null?void 0:y.isSupported)!=null&&j.call(y))return;const O=()=>{const D=R.duration,J=!Number.isFinite(D)||D===1/0,K=J?Number.isFinite(D)&&D>0:!1;d({isLive:J,isDvr:K})};return R.addEventListener("loadedmetadata",O),R.addEventListener("durationchange",O),O(),()=>{R.removeEventListener("loadedmetadata",O),R.removeEventListener("durationchange",O)}},[y,d]),T.useEffect(()=>(h(a.current),()=>h(null)),[h]),T.useEffect(()=>{const R=a.current;if(!R)return;const O=p==null?void 0:p.playbackRate;typeof O=="number"&&(R.playbackRate=O,d({playbackRate:O}))},[p]),T.useEffect(()=>{var G,rt;const R=a.current;if(!R||!((rt=(G=n.src)==null?void 0:G.vtt)!=null&&rt.length))return;const O=50,j=16,D=1.2,J=40,tt=-Math.max(1,Math.round(O/(j*D))),at=st=>{if(st.cues)for(let yt=0;yt<st.cues.length;yt+=1){const E=st.cues[yt];E.line=tt,E.lineAlign="center"}},L=st=>{if(!st.cues)return;const yt=R.getBoundingClientRect(),E=yt.width>0?J*2*100/yt.width:0,H=Math.max(10,Math.min(100,100-E));for(let I=0;I<st.cues.length;I+=1){const nt=st.cues[I];nt.size=H,nt.position=50,nt.align="center",nt.line=-3}},k=st=>{at(st),L(st)},W=Array.from(R.querySelectorAll("track")),_=st=>{const yt=st.currentTarget;yt!=null&&yt.track&&k(yt.track)};W.forEach(st=>{st.addEventListener("load",_),st.track&&k(st.track)});const N=new ResizeObserver(()=>{W.forEach(st=>{st.track&&L(st.track)})});return N.observe(R),()=>{W.forEach(st=>{st.removeEventListener("load",_)}),N.disconnect()}},[p,(b=n.src)==null?void 0:b.vtt]),nr(a,d,f.isSeeked,p==null?void 0:p.autoPause,n.emitEvent),T.useEffect(()=>{var J,K;const R=(K=(J=n.src)==null?void 0:J.vtt)!=null?K:[],O=R.length>0,j=R.findIndex(tt=>tt.default),D=j>=0?j:0;d({hasSubtitle:O,isSubtitle:!1,subTitleIdx:D,subtitleTracks:R})},[(M=n.src)==null?void 0:M.vtt,d]),T.useEffect(()=>{var K,tt;if(!f.isSubtitle)return;const R=a.current;if(!R||!((tt=(K=n.src)==null?void 0:K.vtt)!=null&&tt.length))return;const O=new Map,j=[],D=async(at,L)=>{try{const k=await fetch(L,{mode:"cors"});if(!k.ok)return;const W=await k.blob(),_=URL.createObjectURL(W);j.push(_),O.set(at,at.src),at.src=_}catch(k){}},J=Array.from(R.querySelectorAll("track"));return J.forEach(at=>{at.src&&D(at,at.src)}),()=>{J.forEach(at=>{const L=O.get(at);L&&(at.src=L)}),j.forEach(at=>URL.revokeObjectURL(at))}},[(V=n.src)==null?void 0:V.vtt,f.subTitleIdx,f.isSubtitle]),T.useEffect(()=>{var J,K,tt,at;const R=u.current;if(!R||(K=(J=n.src)==null?void 0:J.vtt)!=null&&K.length)return;const O=(tt=R.subtitleTracks)!=null?tt:[];if(!(O.length>0))return;const D=Math.min(Math.max((at=f.subTitleIdx)!=null?at:0,0),O.length-1);R.subtitleDisplay=!!f.isSubtitle,R.subtitleTrack=f.isSubtitle?D:-1},[f.isSubtitle,f.subTitleIdx,(w=n.src)==null?void 0:w.vtt]),T.useEffect(()=>{const R=a.current;if(!R)return;const O=Array.from(R.querySelectorAll("track")),j=R.textTracks;if((!j||j.length===0)&&O.length===0)return;const D=f.subTitleIdx,J=f.isSubtitle,K=()=>{if(O.length>0){O.forEach(at=>{at.track&&(at.default=!1,at.track.mode="disabled")}),O.forEach((at,L)=>{at.track&&J&&L===D&&(at.default=!0,at.track.mode="showing")});return}for(let at=0;at<j.length;at+=1)j[at].mode="disabled";J&&j[D]&&(j[D].mode="showing")};K();const tt=()=>{K()};return O.forEach(at=>{at.addEventListener("load",tt)}),()=>{O.forEach(at=>{at.removeEventListener("load",tt)})}},[f.isSubtitle,f.subTitleIdx,(z=n.src)==null?void 0:z.vtt]),T.useEffect(()=>{const R=a.current;R&&p.autostart&&R.play().catch(O=>{console.log(O),R.muted=!0,R.play()})},[p.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const O=localStorage.getItem("vpeSubtitleEnabled");O!==null&&f.hasSubtitle&&d({isSubtitle:!!O})},1e3)},[f.hasSubtitle,d]),v.jsx(v.Fragment,{children:((Y=n==null?void 0:n.src)==null?void 0:Y.file)&&v.jsx("video",{playsInline:!0,ref:a,className:"vpe-video-dom",controls:!1,autoPlay:p==null?void 0:p.autostart,muted:p==null?void 0:p.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?f.initPlay?"transparent":`url(${n.src.poster}) center / ${(X=p==null?void 0:p.objectFit)!=null?X:"contain"} no-repeat`:void 0,objectFit:(A=p==null?void 0:p.objectFit)!=null?A:"contain"},children:(Z=n.src.vtt)==null?void 0:Z.map(R=>v.jsx("track",{kind:"subtitles",srcLang:R.id,label:R.label,src:R.src,default:R.default},`${R.id}-${R.src}`))})})}const rb=3,ob=3e3,ub=n=>{var a;if(!n)return null;if(typeof n.MediaPlayer=="function"){const s=n.MediaPlayer();if(s!=null&&s.create)return s.create()}if((a=n.MediaPlayer)!=null&&a.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const s=n.MediaPlayerFactory();if(s!=null&&s.create)return s.create()}return null};function cb(n){var p,S,b,M,V,w,z,Y,X;const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=te(),{setVideoElement:d,setDashInstance:h}=Ce(),m=n.dashLib,y=n.options;return T.useEffect(()=>{var _,N,G,rt,st,yt,E,H,I,nt,ct;const A=a.current,Z=(_=n==null?void 0:n.src)==null?void 0:_.file;if(!A||!Z)return;const R=ub(m);if(!R){A.src=Z;return}h(R),typeof R.initialize=="function"?R.initialize(A,Z,!!(y!=null&&y.autostart)):typeof R.attachView=="function"&&typeof R.attachSource=="function"?(R.attachView(A),R.attachSource(Z)):A.src=Z;const O=typeof((N=y==null?void 0:y.retry)==null?void 0:N.maxRetry)=="number"?y.retry.maxRetry:rb,j=typeof((G=y==null?void 0:y.retry)==null?void 0:G.interval)=="number"?y.retry.interval:ob,D=()=>{const ft=(typeof R.getBitrateInfoListFor=="function"?R.getBitrateInfoListFor("video"):[]).map((At,je)=>{var Se;return{index:typeof(At==null?void 0:At.qualityIndex)=="number"?At.qualityIndex:je,width:At==null?void 0:At.width,height:At==null?void 0:At.height,bitrate:(Se=At==null?void 0:At.bitrate)!=null?Se:At==null?void 0:At.bandwidth,name:At==null?void 0:At.name}}),bt=typeof R.getQualityFor=="function"?R.getQualityFor("video"):-1,xt=typeof R.getAutoSwitchQualityFor=="function"?R.getAutoSwitchQualityFor("video"):!0;f({levels:ft,currentLevel:bt,isAutoLevel:xt})},J=()=>{const ot=typeof R.isDynamic=="function"?R.isDynamic():!1,ft=typeof R.getDuration=="function"?R.getDuration():void 0,bt=ot&&typeof ft=="number"&&Number.isFinite(ft)&&ft>0;f({isLive:ot,isDvr:bt})},K=()=>{s.current=0,D(),J()},tt=()=>{const ot=typeof R.getQualityFor=="function"?R.getQualityFor("video"):-1,ft=typeof R.getAutoSwitchQualityFor=="function"?R.getAutoSwitchQualityFor("video"):!0;f({currentLevel:ot,isAutoLevel:ft})},at=(ot,ft)=>{var xt,At,je;if((je=(At=(xt=ft==null?void 0:ft.error)==null?void 0:xt.fatal)!=null?At:ft==null?void 0:ft.fatal)==null||je){if(s.current<O){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,typeof R.attachSource=="function"){R.attachSource(Z);return}typeof R.reset=="function"&&(R.reset(),typeof R.initialize=="function"&&R.initialize(A,Z,!!(y!=null&&y.autostart)))},j);return}console.log("DASH 재시도 횟수 초과"),n.onError&&n.onError({evt:ot,data:ft}),typeof R.reset=="function"&&R.reset()}},L=(I=(H=(E=(yt=(rt=m==null?void 0:m.MediaPlayer)==null?void 0:rt.events)!=null?yt:(st=m==null?void 0:m.MediaPlayer)==null?void 0:st.Events)!=null?E:m==null?void 0:m.events)!=null?H:m==null?void 0:m.Events)!=null?I:void 0,k=[],W=(ot,ft)=>{!ot||typeof R.on!="function"||(R.on(ot,ft),k.push(()=>{typeof R.off=="function"&&R.off(ot,ft)}))};return W((nt=L==null?void 0:L.STREAM_INITIALIZED)!=null?nt:L==null?void 0:L.MANIFEST_LOADED,K),W((ct=L==null?void 0:L.QUALITY_CHANGE_RENDERED)!=null?ct:L==null?void 0:L.QUALITY_CHANGE_REQUESTED,tt),W(L==null?void 0:L.ERROR,at),()=>{r.current&&(clearTimeout(r.current),r.current=null),k.forEach(ot=>ot()),h(null),typeof R.reset=="function"&&R.reset()}},[m,(p=n==null?void 0:n.src)==null?void 0:p.file,n.onError,h,f]),T.useEffect(()=>{var O;const A=a.current;if(!A||!!m&&(typeof m.MediaPlayer=="function"||typeof((O=m.MediaPlayer)==null?void 0:O.create)=="function"||typeof m.MediaPlayerFactory=="function"))return;const R=()=>{const j=A.duration,D=!Number.isFinite(j)||j===1/0,J=D?Number.isFinite(j)&&j>0:!1;f({isLive:D,isDvr:J})};return A.addEventListener("loadedmetadata",R),A.addEventListener("durationchange",R),R(),()=>{A.removeEventListener("loadedmetadata",R),A.removeEventListener("durationchange",R)}},[m,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const A=a.current;if(!A)return;const Z=y==null?void 0:y.playbackRate;typeof Z=="number"&&(A.playbackRate=Z,f({playbackRate:Z}))},[y]),T.useEffect(()=>{var _,N;const A=a.current;if(!A||!((N=(_=n.src)==null?void 0:_.vtt)!=null&&N.length))return;const Z=50,R=16,O=1.2,j=40,J=-Math.max(1,Math.round(Z/(R*O))),K=G=>{if(G.cues)for(let rt=0;rt<G.cues.length;rt+=1){const st=G.cues[rt];st.line=J,st.lineAlign="center"}},tt=G=>{if(!G.cues)return;const rt=A.getBoundingClientRect(),st=rt.width>0?j*2*100/rt.width:0,yt=Math.max(10,Math.min(100,100-st));for(let E=0;E<G.cues.length;E+=1){const H=G.cues[E];H.size=yt,H.position=50,H.align="center"}},at=G=>{K(G),tt(G)},L=Array.from(A.querySelectorAll("track")),k=G=>{const rt=G.currentTarget;rt!=null&&rt.track&&at(rt.track)};L.forEach(G=>{G.addEventListener("load",k),G.track&&at(G.track)});const W=new ResizeObserver(()=>{L.forEach(G=>{G.track&&tt(G.track)})});return W.observe(A),()=>{L.forEach(G=>{G.removeEventListener("load",k)}),W.disconnect()}},[y,(S=n.src)==null?void 0:S.vtt]),nr(a,f,u.isSeeked,y==null?void 0:y.autoPause,n.emitEvent),T.useEffect(()=>{var j,D;const A=(D=(j=n.src)==null?void 0:j.vtt)!=null?D:[],Z=A.length>0,R=A.findIndex(J=>J.default),O=R>=0?R:0;f({hasSubtitle:Z,isSubtitle:!1,subTitleIdx:O})},[(b=n.src)==null?void 0:b.vtt,f]),T.useEffect(()=>{var D,J;if(!u.isSubtitle)return;const A=a.current;if(!A||!((J=(D=n.src)==null?void 0:D.vtt)!=null&&J.length))return;const Z=new Map,R=[],O=async(K,tt)=>{try{const at=await fetch(tt,{mode:"cors"});if(!at.ok)return;const L=await at.blob(),k=URL.createObjectURL(L);R.push(k),Z.set(K,K.src),K.src=k}catch(at){}},j=Array.from(A.querySelectorAll("track"));return j.forEach(K=>{K.src&&O(K,K.src)}),()=>{j.forEach(K=>{const tt=Z.get(K);tt&&(K.src=tt)}),R.forEach(K=>URL.revokeObjectURL(K))}},[(M=n.src)==null?void 0:M.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const A=a.current;if(!A)return;const Z=Array.from(A.querySelectorAll("track")),R=A.textTracks;if((!R||R.length===0)&&Z.length===0)return;const O=u.subTitleIdx,j=u.isSubtitle,D=()=>{if(Z.length>0){Z.forEach(K=>{K.track&&(K.default=!1,K.track.mode="disabled")}),Z.forEach((K,tt)=>{K.track&&j&&tt===O&&(K.default=!0,K.track.mode="showing")});return}for(let K=0;K<R.length;K+=1)R[K].mode="disabled";j&&R[O]&&(R[O].mode="showing")};D();const J=()=>{D()};return Z.forEach(K=>{K.addEventListener("load",J)}),()=>{Z.forEach(K=>{K.removeEventListener("load",J)})}},[u.isSubtitle,u.subTitleIdx,(V=n.src)==null?void 0:V.vtt]),T.useEffect(()=>{const A=a.current;A&&y.autostart&&A.play().catch(Z=>{console.log(Z),A.muted=!0,A.play()})},[y.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const Z=localStorage.getItem("vpeSubtitleEnabled");Z!==null&&u.hasSubtitle&&f({isSubtitle:!!Z})},1e3)},[u.hasSubtitle,f]),v.jsx(v.Fragment,{children:((w=n==null?void 0:n.src)==null?void 0:w.file)&&v.jsx("video",{className:"vpe-video-dom",playsInline:!0,ref:a,controls:!1,autoPlay:y==null?void 0:y.autostart,muted:y==null?void 0:y.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 / ${(z=y==null?void 0:y.objectFit)!=null?z:"contain"} no-repeat`:void 0,objectFit:(Y=y==null?void 0:y.objectFit)!=null?Y:"contain"},children:(X=n.src.vtt)==null?void 0:X.map(A=>v.jsx("track",{kind:"subtitles",srcLang:A.id,label:A.label,src:A.src,default:A.default},`${A.id}-${A.src}`))})})}function fb(n){var d,h,m,y,p,S,b,M,V;const a=T.useRef(null),[s,r]=te(),{setVideoElement:u}=Ce(),f=n.options;return T.useEffect(()=>{var Y;const w=a.current,z=(Y=n==null?void 0:n.src)==null?void 0:Y.file;!w||!z||(w.src=z)},[(d=n==null?void 0:n.src)==null?void 0:d.file]),T.useEffect(()=>{const w=a.current;if(!w)return;const z=Y=>{n.onError&&n.onError(Y)};return w.addEventListener("error",z),()=>{w.removeEventListener("error",z)}},[n.onError]),T.useEffect(()=>{const w=a.current;if(!w)return;const z=()=>{const Y=w.duration,X=!Number.isFinite(Y)||Y===1/0,A=X?Number.isFinite(Y)&&Y>0:!1;r({isLive:X,isDvr:A})};return w.addEventListener("loadedmetadata",z),w.addEventListener("durationchange",z),z(),()=>{w.removeEventListener("loadedmetadata",z),w.removeEventListener("durationchange",z)}},[r]),T.useEffect(()=>(u(a.current),()=>u(null)),[u]),T.useEffect(()=>{const w=a.current;if(!w)return;const z=f==null?void 0:f.playbackRate;typeof z=="number"&&(w.playbackRate=z,r({playbackRate:z}))},[f,r]),T.useEffect(()=>{var at,L;const w=a.current;if(!w||!((L=(at=n.src)==null?void 0:at.vtt)!=null&&L.length))return;const z=50,Y=16,X=1.2,A=40,R=-Math.max(1,Math.round(z/(Y*X))),O=k=>{if(k.cues)for(let W=0;W<k.cues.length;W+=1){const _=k.cues[W];_.line=R,_.lineAlign="center"}},j=k=>{if(!k.cues)return;const W=w.getBoundingClientRect(),_=W.width>0?A*2*100/W.width:0,N=Math.max(10,Math.min(100,100-_));for(let G=0;G<k.cues.length;G+=1){const rt=k.cues[G];rt.size=N,rt.position=50,rt.align="center"}},D=k=>{O(k),j(k)},J=Array.from(w.querySelectorAll("track")),K=k=>{const W=k.currentTarget;W!=null&&W.track&&D(W.track)};J.forEach(k=>{k.addEventListener("load",K),k.track&&D(k.track)});const tt=new ResizeObserver(()=>{J.forEach(k=>{k.track&&j(k.track)})});return tt.observe(w),()=>{J.forEach(k=>{k.removeEventListener("load",K)}),tt.disconnect()}},[f,(h=n.src)==null?void 0:h.vtt]),nr(a,r,s.isSeeked,f==null?void 0:f.autoPause,n.emitEvent),T.useEffect(()=>{var A,Z;const w=(Z=(A=n.src)==null?void 0:A.vtt)!=null?Z:[],z=w.length>0,Y=w.findIndex(R=>R.default),X=Y>=0?Y:0;r({hasSubtitle:z,isSubtitle:!1,subTitleIdx:X})},[(m=n.src)==null?void 0:m.vtt,r]),T.useEffect(()=>{var Z,R;if(!s.isSubtitle)return;const w=a.current;if(!w||!((R=(Z=n.src)==null?void 0:Z.vtt)!=null&&R.length))return;const z=new Map,Y=[],X=async(O,j)=>{try{const D=await fetch(j,{mode:"cors"});if(!D.ok)return;const J=await D.blob(),K=URL.createObjectURL(J);Y.push(K),z.set(O,O.src),O.src=K}catch(D){}},A=Array.from(w.querySelectorAll("track"));return A.forEach(O=>{O.src&&X(O,O.src)}),()=>{A.forEach(O=>{const j=z.get(O);j&&(O.src=j)}),Y.forEach(O=>URL.revokeObjectURL(O))}},[(y=n.src)==null?void 0:y.vtt,s.subTitleIdx,s.isSubtitle]),T.useEffect(()=>{const w=a.current;if(!w)return;const z=Array.from(w.querySelectorAll("track")),Y=w.textTracks;if((!Y||Y.length===0)&&z.length===0)return;const X=s.subTitleIdx,A=s.isSubtitle,Z=()=>{if(z.length>0){z.forEach(O=>{O.track&&(O.default=!1,O.track.mode="disabled")}),z.forEach((O,j)=>{O.track&&A&&j===X&&(O.default=!0,O.track.mode="showing")});return}for(let O=0;O<Y.length;O+=1)Y[O].mode="disabled";A&&Y[X]&&(Y[X].mode="showing")};Z();const R=()=>{Z()};return z.forEach(O=>{O.addEventListener("load",R)}),()=>{z.forEach(O=>{O.removeEventListener("load",R)})}},[s.isSubtitle,s.subTitleIdx,(p=n.src)==null?void 0:p.vtt]),T.useEffect(()=>{const w=a.current;w&&f.autostart&&w.play().catch(z=>{console.log(z),w.muted=!0,w.play()})},[f.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const z=localStorage.getItem("vpeSubtitleEnabled");z!==null&&s.hasSubtitle&&r({isSubtitle:!!z})},1e3)},[s.hasSubtitle,r]),v.jsx(v.Fragment,{children:((S=n==null?void 0:n.src)==null?void 0:S.file)&&v.jsx("video",{playsInline:!0,className:"vpe-video-dom",ref:a,controls:!1,autoPlay:f==null?void 0:f.autostart,muted:f==null?void 0: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 / ${(b=f==null?void 0:f.objectFit)!=null?b:"contain"} no-repeat`:void 0,objectFit:(M=f==null?void 0:f.objectFit)!=null?M:"contain"},children:(V=n.src.vtt)==null?void 0:V.map(w=>v.jsx("track",{kind:"subtitles",srcLang:w.id,label:w.label,src:w.src,default:w.default},`${w.id}-${w.src}`))})})}const db="com.apple.fps",hb="com.apple.fps.1_0",mb=n=>["application/vnd.apple.mpegurl","application/x-mpegURL"].some(s=>{const r=n.canPlayType(s);return r==="probably"||r==="maybe"}),oh=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},yb=n=>{const a=new Uint16Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},pb=n=>{if(n instanceof Uint8Array)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(typeof TextEncoder!="undefined")return new TextEncoder().encode(n);const a=new Uint8Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},gb=n=>{if(typeof TextDecoder!="undefined")return new TextDecoder("utf-8").decode(n);let a="";for(let s=0;s<n.length;s+=1)a+=String.fromCharCode(n[s]);return a},vb=n=>{let a="";if(typeof TextDecoder!="undefined")try{a=new TextDecoder("utf-16le").decode(n)}catch(s){a=""}return(!a||!a.includes("skd://"))&&(a=gb(n)),a.replace(/\u0000/g,"").trim()},bb=n=>{var r;if(!n)return"";const s=n.replace(/^<+|>+$/g,"").match(/skd:\/\/([^>"\s?#]+)/);return(r=s==null?void 0:s[1])!=null?r:""},Sb=n=>{try{return new URL(n).hostname}catch(a){const s=document.createElement("a");return s.href=n,s.hostname}},xb=(n,a,s)=>{const r=yb(a),u=new ArrayBuffer(n.byteLength+4+r.byteLength+4+s.byteLength),f=new DataView(u);let d=0;new Uint8Array(u,d,n.byteLength).set(n),d+=n.byteLength,f.setUint32(d,r.byteLength,!0),d+=4;const m=new Uint16Array(u,d,r.length);return m.set(r),d+=m.byteLength,f.setUint32(d,s.byteLength,!0),d+=4,new Uint8Array(u,d,s.byteLength).set(s),new Uint8Array(u)},su=n=>{const a=n.replace(/[\r\n\s]/g,""),s=typeof atob=="function"?atob(a):"",r=new Uint8Array(s.length);for(let u=0;u<s.length;u+=1)r[u]=s.charCodeAt(u);return r},Tb=n=>{const a=n instanceof Uint8Array?n:new Uint8Array(n);let s="";for(let r=0;r<a.length;r+=1)s+=String.fromCharCode(a[r]);return typeof btoa=="function"?btoa(s):""};function Eb(n){var b,M,V,w,z,Y,X,A,Z,R,O;const a=T.useRef(null),s=T.useRef(null),r=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),d=T.useRef([]),h=T.useRef(0),[m,y]=te(),{setVideoElement:p}=Ce(),S=n.options;return T.useEffect(()=>{var N,G,rt;const j=a.current,D=(G=(N=n==null?void 0:n.src)==null?void 0:N.drm)==null?void 0:G[db],J=(rt=n==null?void 0:n.src)==null?void 0:rt.file;if(!j||!J||!(D!=null&&D.licenseUri)||!(D!=null&&D.certificateUri))return;const K=j;if(typeof K.webkitSetMediaKeys!="function")return;let tt=!1;const at=st=>{n.onError&&n.onError(st)},L=async()=>{var I,nt,ct,ot;const st=oh(D.certificateRequestHeader),yt=await fetch(D.certificateUri,{method:"GET",headers:st});if(!yt.ok)throw new Error(`FairPlay certificate request failed (${yt.status})`);const E=(I=yt.headers.get("content-type"))!=null?I:"";if(E.includes("application/json")||E.includes("text")){const ft=await yt.text();try{const bt=JSON.parse(ft),xt=(ot=(ct=(nt=bt==null?void 0:bt.certificate)!=null?nt:bt==null?void 0:bt.data)!=null?ct:bt==null?void 0:bt.body)!=null?ot:"";if(xt)return su(xt)}catch(bt){}if(ft)return su(ft)}const H=await yt.arrayBuffer();return new Uint8Array(H)},k=async(st,yt)=>{var ot,ft,bt,xt,At;const E=oh(D.licenseRequestHeader),H=Tb(st),I=new URLSearchParams({spc:H,assetId:yt,contentId:yt}).toString(),nt=await fetch(D.licenseUri,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...E},body:I});if(!nt.ok)throw new Error(`FairPlay license request failed (${nt.status})`);const ct=(ot=nt.headers.get("content-type"))!=null?ot:"";if(ct.includes("application/json")||ct.includes("text")){const je=await nt.text();let Se=je.trim();try{const se=JSON.parse(je);Se=(At=(xt=(bt=(ft=se==null?void 0:se.ckc)!=null?ft:se==null?void 0:se.license)!=null?bt:se==null?void 0:se.data)!=null?xt:se==null?void 0:se.body)!=null?At:""}catch(se){}if(Se)return su(Se).buffer}return nt.arrayBuffer()},W=st=>{if(!f.current||!u.current)throw new Error("FairPlay initData/certificate missing");const yt=xb(f.current,st,u.current),E=K.webkitKeys.createSession("video/mp4",yt);E.contentId=st,s.current=E,E.addEventListener("webkitkeymessage",async H=>{var I;try{const nt=H==null?void 0:H.message;if(!nt)throw new Error("FairPlay key message missing");const ct=await k(nt instanceof Uint8Array?nt:(I=nt.buffer)!=null?I:nt,st);E.update(new Uint8Array(ct))}catch(nt){at(nt)}}),E.addEventListener("webkitkeyadded",()=>{r.current=!1}),E.addEventListener("webkitkeyerror",()=>{const H=h.current+1,I=d.current[H];if(I){h.current=H;try{E!=null&&E.close&&E.close()}catch(nt){}W(I);return}at(new Error("FairPlay key session error"))})},_=async st=>{var E;if(tt||r.current||s.current)return;const yt=st==null?void 0:st.initData;if(yt){r.current=!0;try{K.webkitKeys||K.webkitSetMediaKeys(new window.WebKitMediaKeys(hb));const H=await L();u.current=H;const I=pb(yt);if(f.current=I,!I.length)throw new Error("FairPlay initData is empty");const nt=vb(I),ct=bb(nt),ot=[S==null?void 0:S.fairplayContentId,ct?`skd://${ct}`:"",ct,Sb(nt),nt].filter(xt=>!!xt),ft=Array.from(new Set(ot));d.current=ft,h.current=0;const bt=(E=ft[0])!=null?E:"";W(bt)}catch(H){at(H)}finally{r.current=!1}}};return j.addEventListener("webkitneedkey",_),()=>{var st;if(tt=!0,r.current=!1,j.removeEventListener("webkitneedkey",_),(st=s.current)!=null&&st.close)try{s.current.close()}catch(yt){}s.current=null}},[(b=n==null?void 0:n.src)==null?void 0:b.drm,(M=n==null?void 0:n.src)==null?void 0:M.file,n.onError]),T.useEffect(()=>{var J;const j=a.current,D=(J=n==null?void 0:n.src)==null?void 0:J.file;!j||!D||(mb(j)||n.onError&&n.onError(new Error("Native HLS not supported")),j.src=D,j.load())},[(V=n==null?void 0:n.src)==null?void 0:V.file,n.onError]),T.useEffect(()=>{const j=a.current;if(!j)return;const D=J=>{n.onError&&n.onError(J)};return j.addEventListener("error",D),()=>{j.removeEventListener("error",D)}},[n.onError]),T.useEffect(()=>{const j=a.current;if(!j)return;const D=()=>{const J=j.duration,K=!Number.isFinite(J)||J===1/0,tt=K?Number.isFinite(J)&&J>0:!1;y({isLive:K,isDvr:tt})};return j.addEventListener("loadedmetadata",D),j.addEventListener("durationchange",D),D(),()=>{j.removeEventListener("loadedmetadata",D),j.removeEventListener("durationchange",D)}},[y]),T.useEffect(()=>(p(a.current),()=>p(null)),[p]),T.useEffect(()=>{const j=a.current;j&&j.setAttribute("webkit-playsinline","true")},[]),T.useEffect(()=>{const j=a.current;if(!j)return;const D=S==null?void 0:S.playbackRate;typeof D=="number"&&(j.playbackRate=D,y({playbackRate:D}))},[S,y]),T.useEffect(()=>{var st,yt;const j=a.current;if(!j||!((yt=(st=n.src)==null?void 0:st.vtt)!=null&&yt.length))return;const D=50,J=16,K=1.2,tt=40,L=-Math.max(1,Math.round(D/(J*K))),k=E=>{if(E.cues)for(let H=0;H<E.cues.length;H+=1){const I=E.cues[H];I.line=L,I.lineAlign="center"}},W=E=>{if(!E.cues)return;const H=j.getBoundingClientRect(),I=H.width>0?tt*2*100/H.width:0,nt=Math.max(10,Math.min(100,100-I));for(let ct=0;ct<E.cues.length;ct+=1){const ot=E.cues[ct];ot.size=nt,ot.position=50,ot.align="center",ot.line=-3}},_=E=>{k(E),W(E)},N=Array.from(j.querySelectorAll("track")),G=E=>{const H=E.currentTarget;H!=null&&H.track&&_(H.track)};N.forEach(E=>{E.addEventListener("load",G),E.track&&_(E.track)});const rt=new ResizeObserver(()=>{N.forEach(E=>{E.track&&W(E.track)})});return rt.observe(j),()=>{N.forEach(E=>{E.removeEventListener("load",G)}),rt.disconnect()}},[S,(w=n.src)==null?void 0:w.vtt]),nr(a,y,m.isSeeked,S==null?void 0:S.autoPause,n.emitEvent),T.useEffect(()=>{var tt,at;const j=(at=(tt=n.src)==null?void 0:tt.vtt)!=null?at:[],D=j.length>0,J=j.findIndex(L=>L.default),K=J>=0?J:0;y({hasSubtitle:D,isSubtitle:!1,subTitleIdx:K})},[(z=n.src)==null?void 0:z.vtt,y]),T.useEffect(()=>{var at,L;if(!m.isSubtitle)return;const j=a.current;if(!j||!((L=(at=n.src)==null?void 0:at.vtt)!=null&&L.length))return;const D=new Map,J=[],K=async(k,W)=>{try{const _=await fetch(W,{mode:"cors"});if(!_.ok)return;const N=await _.blob(),G=URL.createObjectURL(N);J.push(G),D.set(k,k.src),k.src=G}catch(_){}},tt=Array.from(j.querySelectorAll("track"));return tt.forEach(k=>{k.src&&K(k,k.src)}),()=>{tt.forEach(k=>{const W=D.get(k);W&&(k.src=W)}),J.forEach(k=>URL.revokeObjectURL(k))}},[(Y=n.src)==null?void 0:Y.vtt,m.subTitleIdx,m.isSubtitle]),T.useEffect(()=>{const j=a.current;if(!j)return;const D=Array.from(j.querySelectorAll("track")),J=j.textTracks;if((!J||J.length===0)&&D.length===0)return;const K=m.subTitleIdx,tt=m.isSubtitle,at=()=>{if(D.length>0){D.forEach(k=>{k.track&&(k.default=!1,k.track.mode="disabled")}),D.forEach((k,W)=>{k.track&&tt&&W===K&&(k.default=!0,k.track.mode="showing")});return}for(let k=0;k<J.length;k+=1)J[k].mode="disabled";tt&&J[K]&&(J[K].mode="showing")};at();const L=()=>{at()};return D.forEach(k=>{k.addEventListener("load",L)}),()=>{D.forEach(k=>{k.removeEventListener("load",L)})}},[m.isSubtitle,m.subTitleIdx,(X=n.src)==null?void 0:X.vtt]),T.useEffect(()=>{const j=a.current;j&&S.autostart&&j.play().catch(D=>{console.log(D),j.muted=!0,j.play()})},[S.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const D=localStorage.getItem("vpeSubtitleEnabled");D!==null&&m.hasSubtitle&&y({isSubtitle:!!D})},1e3)},[m.hasSubtitle,y]),v.jsx(v.Fragment,{children:((A=n==null?void 0:n.src)==null?void 0:A.file)&&v.jsx("video",{playsInline:!0,className:"vpe-video-dom vpe-safari-video",ref:a,controls:!1,autoPlay:S==null?void 0:S.autostart,muted:S==null?void 0:S.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?m.initPlay?"transparent":`url(${n.src.poster}) center / ${(Z=S==null?void 0:S.objectFit)!=null?Z:"contain"} no-repeat`:void 0,objectFit:(R=S==null?void 0:S.objectFit)!=null?R:"contain"},children:(O=n.src.vtt)==null?void 0:O.map(j=>v.jsx("track",{kind:"subtitles",srcLang:j.id,label:j.label,src:j.src,default:j.default},`${j.id}-${j.src}`))})})}function Mb(n){return v.jsx(sb,{...n})}function Ab(n){return v.jsx(cb,{...n})}function wb(n){return v.jsx(fb,{...n})}function Cb(n){return v.jsx(Eb,{...n})}function Rb(n){var u,f;const a=T.useRef(null),s=T.useRef(null),r=n.hlsLib;return T.useEffect(()=>{var m,y;const d=a.current,h=(m=n==null?void 0:n.src)==null?void 0:m.file;if(!(!d||!h)){if((y=r==null?void 0:r.isSupported)!=null&&y.call(r)){const p=new r({startLevel:0,autoLevelCapping:0});return p.attachMedia(d),p.on(r.Events.MEDIA_ATTACHED,()=>{p.loadSource(h)}),p.on(r.Events.MANIFEST_PARSED,()=>{p.currentLevel=0,p.autoLevelEnabled=!1}),p.on(r.Events.ERROR,(S,b)=>{n.onError&&n.onError({evt:S,data:b})}),()=>{p.destroy()}}d.src=h}},[r,(u=n==null?void 0:n.src)==null?void 0:u.file,n.onError]),T.useEffect(()=>{const d=a.current;if(!d||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const h=()=>{const y=s.current;if(typeof y!="number"||Number.isNaN(y))return;const p=d.duration,S=Math.max(0,Math.min(y,Number.isFinite(p)?p:y));Math.abs(d.currentTime-S)>.25&&(d.currentTime=S),d.pause()};if(d.readyState>=1){h();return}const m=()=>h();return d.addEventListener("loadedmetadata",m,{once:!0}),()=>{d.removeEventListener("loadedmetadata",m)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((f=n==null?void 0:n.src)==null?void 0:f.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const jb=n=>{var a;if(!n)return null;if(typeof n.MediaPlayer=="function"){const s=n.MediaPlayer();if(s!=null&&s.create)return s.create()}if((a=n.MediaPlayer)!=null&&a.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const s=n.MediaPlayerFactory();if(s!=null&&s.create)return s.create()}return null},Db=n=>{var s,r,u,f;if(!n.length)return 0;let a=n[0];for(let d=1;d<n.length;d+=1){const h=n[d],m=(r=(s=h==null?void 0:h.bitrate)!=null?s:h==null?void 0:h.bandwidth)!=null?r:Number.MAX_SAFE_INTEGER,y=(f=(u=a==null?void 0:a.bitrate)!=null?u:a==null?void 0:a.bandwidth)!=null?f:Number.MAX_SAFE_INTEGER;m<y&&(a=h)}return typeof(a==null?void 0:a.qualityIndex)=="number"?a.qualityIndex:0};function Bb(n){var u,f;const a=T.useRef(null),s=T.useRef(null),r=n.dashLib;return T.useEffect(()=>{var V,w,z,Y,X,A,Z,R;const d=a.current,h=(V=n==null?void 0:n.src)==null?void 0:V.file;if(!d||!h)return;const m=jb(r);if(!m){d.src=h;return}typeof m.initialize=="function"?m.initialize(d,h,!1):typeof m.attachView=="function"&&typeof m.attachSource=="function"?(m.attachView(d),m.attachSource(h)):d.src=h;const y=()=>{const O=typeof m.getBitrateInfoListFor=="function"?m.getBitrateInfoListFor("video"):[],j=Db(O);typeof m.setAutoSwitchQualityFor=="function"&&m.setAutoSwitchQualityFor("video",!1),typeof m.setQualityFor=="function"&&m.setQualityFor("video",j)},p=(O,j)=>{n.onError&&n.onError({evt:O,data:j})},S=(Z=(A=(X=(Y=(w=r==null?void 0:r.MediaPlayer)==null?void 0:w.events)!=null?Y:(z=r==null?void 0:r.MediaPlayer)==null?void 0:z.Events)!=null?X:r==null?void 0:r.events)!=null?A:r==null?void 0:r.Events)!=null?Z:void 0,b=[],M=(O,j)=>{!O||typeof m.on!="function"||(m.on(O,j),b.push(()=>{typeof m.off=="function"&&m.off(O,j)}))};return M((R=S==null?void 0:S.STREAM_INITIALIZED)!=null?R:S==null?void 0:S.MANIFEST_LOADED,y),M(S==null?void 0:S.ERROR,p),()=>{b.forEach(O=>O()),typeof m.reset=="function"&&m.reset()}},[r,(u=n==null?void 0:n.src)==null?void 0:u.file,n.onError]),T.useEffect(()=>{const d=a.current;if(!d||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const h=()=>{const y=s.current;if(typeof y!="number"||Number.isNaN(y))return;const p=d.duration,S=Math.max(0,Math.min(y,Number.isFinite(p)?p:y));Math.abs(d.currentTime-S)>.25&&(d.currentTime=S),d.pause()};if(d.readyState>=1){h();return}const m=()=>h();return d.addEventListener("loadedmetadata",m,{once:!0}),()=>{d.removeEventListener("loadedmetadata",m)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((f=n==null?void 0:n.src)==null?void 0:f.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function zb(n){var r,u;const a=T.useRef(null),s=T.useRef(null);return T.useEffect(()=>{var h;const f=a.current,d=(h=n==null?void 0:n.src)==null?void 0:h.file;!f||!d||(f.src=d)},[(r=n==null?void 0:n.src)==null?void 0:r.file]),T.useEffect(()=>{const f=a.current;if(!f)return;const d=h=>{n.onError&&n.onError(h)};return f.addEventListener("error",d),()=>{f.removeEventListener("error",d)}},[n.onError]),T.useEffect(()=>{const f=a.current;if(!f||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const d=()=>{const m=s.current;if(typeof m!="number"||Number.isNaN(m))return;const y=f.duration,p=Math.max(0,Math.min(m,Number.isFinite(y)?y:m));Math.abs(f.currentTime-p)>.25&&(f.currentTime=p),f.pause()};if(f.readyState>=1){d();return}const h=()=>d();return f.addEventListener("loadedmetadata",h,{once:!0}),()=>{f.removeEventListener("loadedmetadata",h)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((u=n==null?void 0:n.src)==null?void 0:u.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function ru(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window=="undefined"||!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 Lb{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 _l=new Lb,Ga=n=>Math.max(0,Math.min(100,n));function uh({color:n="#31ec2a",src:a,hlsLib:s,dashLib:r,options:u,onError:f,seekingPreview:d=!0}){var nn,De,hn,Dt,Be,xe;const{isMobile:h}=ru(),[m,y]=te(),{seekTo:p}=Ce(),S=r,b=typeof(a==null?void 0:a.file)=="string"?a.file.split("?")[0].toLowerCase():"",M=b.endsWith(".mpd"),V=b.endsWith(".mp4"),[w,z]=T.useState(!1),[Y,X]=T.useState(0),[A,Z]=T.useState(0),[R,O]=T.useState(null),[j,D]=T.useState(null),[J,K]=T.useState(null),tt=T.useRef(null),at=T.useRef(null),L=T.useRef(null),k=n||"#31ec2a",W="5px",_=(nn=m.duration)!=null?nn:0,N=_>0?_:0,G=N>0?((De=m.currentTime)!=null?De:0)/N*100:0,rt=N>0?((hn=m.buffered)!=null?hn:0)/N*100:0,st=!!m.isLive,E=(st&&_>0?Math.abs(_-((Dt=m.currentTime)!=null?Dt:0))<30:!1)?100:Ga(Y),H=R!=null?R:G,I=j!=null?j:H,nt=J!=null?J:H,ct=N>0?N*(H/100):0,ot=R!==null,ft=(Be=m.videoWidth)!=null?Be:0,bt=(xe=m.videoHeight)!=null?xe:0,xt=ft>0&&bt>0,At=xt?`${ft}/${bt}`:"16/9",je=xt&&ft>bt?"160px":"55px",Se=T.useCallback(Te=>{const ze=tt.current;if(!ze)return null;const Pe=ze.getBoundingClientRect();if(Pe.width<=0)return null;const fe="clientX"in Te?Te.clientX:0;return Math.min(Math.max(fe-Pe.left,0),Pe.width)/Pe.width*100},[]),se=T.useCallback(Te=>{var jt,Ht;const ze=tt.current;if(!ze)return;const Pe=ze.getBoundingClientRect();if(Pe.width<=0)return;const fe=ne=>{const Jt=ne>0?ne/2/Pe.width*100:0,Yt=Math.max(0,Math.min(50,Jt)),wt=Math.max(Yt,100-Yt);return{minPercent:Yt,maxPercent:wt}},Xn=(Ht=(jt=at.current)==null?void 0:jt.offsetWidth)!=null?Ht:0,lt=fe(Xn),Tt=Se(Te);if(Tt===null)return;O(Ga(Tt));const Xt=Math.max(lt.minPercent,Math.min(lt.maxPercent,Tt));K(Xt),D(Xt)},[Se]),me=T.useCallback(()=>{O(null),D(null),K(null)},[]);return T.useEffect(()=>{w||(X(G),Z(rt))},[w,G,rt]),T.useEffect(()=>{},[u]),m.isSeekOverlayVisible?null:v.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"10px",paddingTop:"10px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:se,onMouseLeave:me,children:v.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":k,"--seekSliderThumbColor":k,"--rlMargin":W},children:[v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:tt,children:v.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[ot&&!m.isLive&&!h&&d&&v.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:At,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ga(nt)}%`,transform:"translateX(-50%)",maxWidth:je},ref:at,children:v.jsx(v.Fragment,{children:M&&S?v.jsx(Bb,{src:a,dashLib:S,options:u,onError:f,previewTime:ct,isHovering:ot}):V?v.jsx(zb,{src:a,options:u,onError:f,previewTime:ct,isHovering:ot}):s?v.jsx(Rb,{src:a,hlsLib:s,options:u,onError:f,previewTime:ct,isHovering:ot}):null})}),ot&&!m.isLive&&!h&&v.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Ga(I)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:L,children:_l.formatTime(ct)})]})}),v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:v.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${A<1?1:A>98?100:A}%`}})}),v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:v.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${E<1?1:E}%`},children:v.jsx("div",{style:{position:"relative"},children:v.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),v.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:v.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:E,onPointerDown:Te=>{if(st)return;y({isSeeked:!0}),z(!0);const ze=Se(Te);ze!==null&&X(Ga(ze))},onPointerUp:()=>{if(st)return;z(!1);const Te=N*(E/100);p(Te)},onChange:Te=>{if(st)return;const ze=Number(Te.currentTarget.value),Pe=Number.isNaN(ze)?0:ze;X(Ga(Pe))},disabled:st||N===0})})]})})}var ch={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fh=ma.createContext&&ma.createContext(ch),Vb=["attr","size","title"];function Ob(n,a){if(n==null)return{};var s=Nb(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 Nb(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 ir(){return ir=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},ir.apply(this,arguments)}function dh(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 ar(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?dh(Object(s),!0).forEach(function(r){Ub(n,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):dh(Object(s)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(s,r))})}return n}function Ub(n,a,s){return a=_b(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function _b(n){var a=Hb(n,"string");return typeof a=="symbol"?a:a+""}function Hb(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 hh(n){return n&&n.map((a,s)=>ma.createElement(a.tag,ar({key:s},a.attr),hh(a.child)))}function It(n){return a=>ma.createElement(kb,ir({attr:ar({},n.attr)},a),hh(n.child))}function kb(n){var a=s=>{var{attr:r,size:u,title:f}=n,d=Ob(n,Vb),h=u||s.size||"1em",m;return s.className&&(m=s.className),n.className&&(m=(m?m+" ":"")+n.className),ma.createElement("svg",ir({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,r,d,{className:m,style:ar(ar({color:n.color||s.color},s.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),f&&ma.createElement("title",null,f),n.children)};return fh!==void 0?ma.createElement(fh.Consumer,null,s=>a(s)):a(ch)}function Gb(n){return It({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 Yb(n){return It({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 Pb(n){return It({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 qb(n){return It({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 Fb(n){return It({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 mh(n){return It({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 ou(n){return It({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 Xb(n){return It({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 yh(n){return It({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 ph(n){return It({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 Kb(n){return It({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 gh(n){return It({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 vh(n){return It({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 bh(n){return It({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 Sh(n){return It({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 xh(n){return It({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 Th(n){return It({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 lr(n){return It({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 Hl(n){return It({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 Qb(n){return It({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 Zb(n){return It({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 Ib(n){return It({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 Eh(n){return It({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 Ke(n){var s;const a=(s=n.noBg)!=null?s:!1;return v.jsx(v.Fragment,{children:v.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:n.children})})}const An={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},Jb={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},Mh={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer",zoom:.9},Ah={border:0,background:"transparent",cursor:"pointer"},Wb={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"},$b={flex:1},tS={display:"flex",alignItems:"center",gap:6},eS={padding:0,display:"flex",alignItems:"center",gap:6,cursor:"pointer"},sr={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},Oi={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Ni={flex:1,justifyContent:"start",display:"flex"},uu={display:"flex",alignItems:"center",gap:5},rr={fontSize:"0.9rem",opacity:.6};function nS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var m,y;const[f]=te(),{play:d,pause:h}=Ce();return f.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?(m=r==null?void 0:r.pause)!=null?m:"일시정지":(y=r==null?void 0:r.play)!=null?y:"재생"})}),v.jsx("button",{type:"button",onClick:f.isPlaying?h:d,style:An,children:f.isEnded?v.jsx(Eh,{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)"}}):v.jsx(v.Fragment,{children:f.isPlaying?v.jsx(mh,{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)"}}):v.jsx(ou,{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 iS(n){var u,f,d;const a=(u=n.noPadding)!=null?u:!1,s=(f=n.cap)!=null?f:0,r={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative",marginLeft:"0.2rem",marginRight:"0.2rem"};return v.jsx(v.Fragment,{children:v.jsx("div",{style:{...r,...(d=n.style)!=null?d:{}},className:n.noBg?"obtn-group-nobg":"obtn-group",children:n.children})})}function kl(n){return v.jsx(iS,{...n})}function aS({size:n="3rem",weight:a="fill",color:s="#ffffff",isPortrait:r=!1,isMobile:u=!1,next:f=()=>{},prev:d=()=>{},pidx:h=0,playlistCnt:m=0,isAnimationComplete:y=!1}){const[p]=te(),[S,b]=T.useState(0),{play:M,pause:V}=Ce();if(T.useEffect(()=>{u||b(z=>z+1)},[u,p.isPlaying]),p.isSeekOverlayVisible)return null;const w=!u&&!p.isEnded;return v.jsxs("div",{className:`vpe-big-play-btn ${w?"center-play-btn-anim":""}`,children:[u&&m>1&&v.jsx(kl,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{disabled:h===0,type:"button",style:Mh,onClick:()=>{y&&d()},children:v.jsx(ph,{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)"}})})})}),v.jsx(kl,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{type:"button",style:Jb,onClick:()=>{(u||r)&&(p.isPlaying?V():M())},children:p.isEnded?v.jsx(Eh,{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)"}}):v.jsx(v.Fragment,{children:p.isPlaying?v.jsx(mh,{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)"}}):v.jsx(ou,{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&&m>1&&v.jsx(kl,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{type:"button",disabled:h===m-1,style:Mh,onClick:()=>{y&&f()},children:v.jsx(yh,{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)"}})})})})]},w?S:0)}function lS({color:n="#ffffff"}){var y,p,S,b,M;const[a]=te(),{seekTo:s}=Ce();if(a.isSeekOverlayVisible)return null;const u=((p=(y=a.bufferedEnd)!=null?y:a.buffered)!=null?p:0)||a.duration||0,f=!!a.isLive,h=f&&u>0?Math.abs(((S=a.currentTime)!=null?S:0)-u)<10:f,m=()=>{f&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return v.jsx(v.Fragment,{children:a.isLive?v.jsxs("button",{type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",lineHeight:"0.4rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[v.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:h?"#ff0000":n,display:"inline-block"}}),v.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"})]}):v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"0.5rem",lineHeight:"0.4rem",minWidth:"60px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",fontSize:"0.8rem"},children:_l.formatTime((b=a.currentTime)!=null?b:0)||0}),v.jsx("div",{className:"defObj",style:{fontSize:"0.8rem",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),v.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"0.5rem",minWidth:"60px",display:"flex",lineHeight:"0.4rem",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",fontSize:"0.8rem"},children:_l.formatTime((M=a.duration)!=null?M:0)||0})]})})}function sS({color:n="#ffffff"}){var s;const[a]=te();return a.isSeekOverlayVisible?null:v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",justifyContent:"center",lineHeight:"0.4rem",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:_l.formatTime((s=a.currentTime)!=null?s:0)||0})}function rS({color:n="#ffffff"}){var s;const[a]=te();return a.isSeekOverlayVisible?null:v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",lineHeight:"0.4rem",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:_l.formatTime((s=a.duration)!=null?s:0)||0})}function oS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=te(),{seekTo:d}=Ce(),h=typeof(u==null?void 0:u.skipSeconds)=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const m=()=>{var S;if(f.isLive&&!f.isDvr)return;const p=((S=f.currentTime)!=null?S:0)-h;d(Math.max(0,p))};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",onClick:m,style:An,children:v.jsx(Xb,{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 uS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=te(),{seekTo:d}=Ce(),h=typeof(u==null?void 0:u.skipSeconds)=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const m=()=>{var M,V;if(f.isLive&&!f.isDvr)return;const y=(M=f.currentTime)!=null?M:0,p=(V=f.duration)!=null?V:0,S=y+h,b=Number.isFinite(p)&&p>0?Math.min(S,p):Math.max(0,S);d(b)};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",onClick:m,style:An,children:v.jsx(Fb,{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 wh({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{}}){return v.jsx(v.Fragment,{children:f>1&&v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",disabled:u===0,onClick:()=>{d()},style:An,children:v.jsx(ph,{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 Ch({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,next:d=()=>{}}){return v.jsx(v.Fragment,{children:f>1&&v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",style:An,disabled:u===f-1,onClick:()=>{d()},children:v.jsx(yh,{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 cS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{},next:h=()=>{}}){return v.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[v.jsx(wh,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,prev:d}),v.jsx(Ch,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,next:h})]})}function fS({color:n="#ffffff",title:a="",profileImage:s="",profileName:r="",createdAt:u=""}){return v.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${n}`,gap:10,padding:"0.4rem"},children:[s&&v.jsx("div",{children:v.jsx("img",{src:s,alt:r,style:{borderRadius:"100%",width:35,height:35,objectFit:"cover",border:"1px solid transparent"}})}),v.jsxs("div",{style:{flex:1},children:[v.jsx("div",{style:{marginBottom:"0.2rem",fontSize:"0.9rem"},children:a}),v.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.7rem",opacity:.5},children:[v.jsx("div",{children:r}),v.jsx("div",{children:u})]})]})]})}function Rh(n){var r;const s={flex:1,display:"flex",justifyContent:n.align?n.align=="left"?"start":n.align=="right"?"end":"center":"start",alignItems:"center"};return v.jsx("div",{style:{...s,...(r=n.style)!=null?r:{}},children:n.children})}function dS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",options:r={},text:u={},pos:f="left"}){var p,S;const[d,h]=te(),{toggleFullscreen:m}=Ce(),y=typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);return T.useEffect(()=>{const b=()=>{y&&!r.iosFullscreenNativeMode||h({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",b),b(),()=>{document.removeEventListener("fullscreenchange",b)}},[h]),d.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?(p=u==null?void 0:u.fullOff)!=null?p:"전체화면 해제":(S=u==null?void 0:u.fullOn)!=null?S:"전체화면"})}),v.jsx("button",{type:"button",onClick:()=>m(r),style:An,children:d.isFullscreen?v.jsx(Zb,{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)"}}):v.jsx(Ib,{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 hS({size:n="1.5rem",color:a="#ffffff",text:s={},pos:r="left"}){var d,h;const[u]=te(),{toggleSubtitle:f}=Ce();return u.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:u.hasSubtitle&&v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?(d=s==null?void 0:s.captionOff)!=null?d:"자막끄기":(h=s==null?void 0:s.captionOn)!=null?h:"자막켜기"})}),v.jsx("button",{type:"button",onClick:f,style:An,children:u.isSubtitle?v.jsx(gh,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):v.jsx(qb,{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 mS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var p,S,b;const[f]=te(),{setVolume:d,toggleMute:h}=Ce(),m=(p=f.isVolume)!=null?p:0,y=f.isMuted?0:m;return f.isSeekOverlayVisible?null:v.jsxs("div",{className:"VolumeBtnWrap",children:[v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isMuted?(S=r==null?void 0:r.muteOff)!=null?S:"음소거 해제":(b=r==null?void 0:r.muteOn)!=null?b:"음소거"})}),v.jsx("button",{type:"button",onClick:h,style:An,children:v.jsxs(v.Fragment,{children:[(m===0||f.isMuted)&&v.jsx(Sh,{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)"}}),m>=5&&m<=10&&!f.isMuted&&v.jsx(bh,{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)"}}),m>=11&&m<=50&&!f.isMuted&&v.jsx(vh,{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)"}}),m>=51&&!f.isMuted&&v.jsx(xh,{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)"}})]})})]}),v.jsx("div",{className:"vslideWrap",children:v.jsx("input",{type:"range",min:0,max:100,value:y,onChange:M=>{const V=Number(M.currentTarget.value);d(Number.isNaN(V)?0:V)},className:"VolumSlide"})})]})}function yS(n){return It({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 pS(n){return It({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 gS({color:n="#ffffff",size:a="1.5rem",text:s={},pos:r="left"}){var y;const[u,f]=te(),{isMobile:d}=ru(),h=u.isHd,m=u.is4k;return u.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:(y=s==null?void 0:s.setting)!=null?y:"설정"})}),v.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!u.isSettingModal})},style:An,children:[(h||m)&&v.jsx("div",{style:{position:"absolute",right:"-8px",top:"-5px",backgroundColor:"#ffffff",padding:0,height:"10px",borderRadius:"5px"},children:h&&!m&&!d&&v.jsx(pS,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})||m&&!d&&v.jsx(yS,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})}),v.jsx(Pb,{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 vS({color:n="#ffffff",size:a="1.5rem",text:s={},pos:r="left",options:u}){var y,p,S;const{togglePictureInPicture:f}=Ce(),[d]=te(),h=(p=(y=u==null?void 0:u.override)==null?void 0:y.pip)!=null?p:void 0,m=T.useRef(!1);return d.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:(S=s==null?void 0:s.miniPlayer)!=null?S:"미니플레이어"})}),v.jsx("button",{type:"button",onClick:()=>{var b,M;if(h){m.current?(b=h==null?void 0:h.off)==null||b.call(h):(M=h==null?void 0:h.on)==null||M.call(h),m.current=!m.current;return}f()},style:An,children:v.jsx(Yb,{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 jh({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var m,y,p;const[f]=te(),{toggleMute:d}=Ce(),h=(m=f.isVolume)!=null?m:0;return f.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isMuted?(y=r==null?void 0:r.muteOff)!=null?y:"음소거 해제":(p=r==null?void 0:r.muteOn)!=null?p:"음소거"})}),v.jsx("button",{type:"button",onClick:d,style:An,children:v.jsxs(v.Fragment,{children:[(h===0||f.isMuted)&&v.jsx(Sh,{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&&v.jsx(bh,{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&&v.jsx(vh,{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&&v.jsx(xh,{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 bS(n){return It({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 248L288 96v85.334C138.666 202.667 85.333 309.334 64 416c53.333-74.666 117.333-108.802 224-108.802v87.469L448 248z"},child:[]}]})(n)}function SS({size:n="1.5rem",color:a="#ffffff",pos:s="left"}){const r=async()=>{const u={url:location.href};try{if(!navigator.share){await navigator.clipboard.writeText(u.url),alert("공유 기능이 없어 링크를 클립보드에 복사했어요.");return}await navigator.share(u)}catch(f){console.log("share failed/canceled:",f)}};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${s}`,children:v.jsx("button",{type:"button",onClick:()=>{r()},style:An,children:v.jsx(v.Fragment,{children:v.jsx(bS,{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 xS(n){return It({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.74,14.47c0-2.04,0.51-3.93,1.52-5.66s2.38-3.1,4.11-4.11s3.61-1.51,5.64-1.51c1.52,0,2.98,0.3,4.37,0.89
8
+ `+l.stack}}var Be=Object.prototype.hasOwnProperty,xe=a.unstable_scheduleCallback,Te=a.unstable_cancelCallback,ze=a.unstable_shouldYield,Pe=a.unstable_requestPaint,fe=a.unstable_now,Xn=a.unstable_getCurrentPriorityLevel,lt=a.unstable_ImmediatePriority,Et=a.unstable_UserBlockingPriority,Xt=a.unstable_NormalPriority,Dt=a.unstable_LowPriority,kt=a.unstable_IdlePriority,ie=a.log,Jt=a.unstable_setDisableYieldValue,Yt=null,wt=null;function ye(t){if(typeof ie=="function"&&Jt(t),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Yt,t)}catch(e){}}var re=Math.clz32?Math.clz32:yn,mn=Math.log,Kn=Math.LN2;function yn(t){return t>>>=0,t===0?32:31-(mn(t)/Kn|0)|0}var Dn=256,jn=262144,pn=4194304;function qe(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 gn(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=qe(l):(g&=x,g!==0?o=qe(g):i||(i=x&~t,i!==0&&(o=qe(i))))):(x=l&~c,x!==0?o=qe(x):g!==0?o=qe(g):i||(i=l&~t,i!==0&&(o=qe(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 Bt(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Fe(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 Ve(){var t=pn;return pn<<=1,(pn&62914560)===0&&(pn=4194304),t}function Ie(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function an(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ei(t,e,i,l,o,c){var g=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,R=t.expirationTimes,q=t.hiddenUpdates;for(i=g&~i;0<i;){var $=31-re(i),it=1<<$;x[$]=0,R[$]=-1;var X=q[$];if(X!==null)for(q[$]=null,$=0;$<X.length;$++){var I=X[$];I!==null&&(I.lane&=-536870913)}i&=~it}l!==0&&Qn(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function Qn(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-re(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Yi(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-re(i),o=1<<l;o&e|t[l]&e&&(t[l]|=e),i&=~o}}function Pi(t,e){var i=e&-e;return i=(i&42)!==0?1:fi(i),(i&(t.suspendedLanes|e))!==0?0:i}function fi(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 di(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qi(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:g1(t.type))}function ut(t,e){var i=Y.p;try{return Y.p=t,e()}finally{Y.p=i}}var dt=Math.random().toString(36).slice(2),ht="__reactFiber$"+dt,gt="__reactProps$"+dt,Ht="__reactContainer$"+dt,Wt="__reactEvents$"+dt,Bn="__reactListeners$"+dt,Pt="__reactHandles$"+dt,ni="__reactResources$"+dt,ln="__reactMarker$"+dt;function zn(t){delete t[ht],delete t[gt],delete t[Wt],delete t[Bn],delete t[Pt]}function Ln(t){var e=t[ht];if(e)return e;for(var i=t.parentNode;i;){if(e=i[Ht]||i[ht]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=e1(t);t!==null;){if(i=t[ht])return i;t=e1(t)}return e}t=i,i=t.parentNode}return null}function Vn(t){if(t=t[ht]||t[Ht]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function hi(t){var e=t[ni];return e||(e=t[ni]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function pe(t){t[ln]=!0}var as=new Set,ls={};function ii(t,e){mi(t,e),mi(t+"Capture",e)}function mi(t,e){for(ls[t]=e,t=0;t<e.length;t++)as.add(e[t])}var Br=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]*$"),ss={},rs={};function zr(t){return Be.call(rs,t)?!0:Be.call(ss,t)?!1:Br.test(t)?rs[t]=!0:(ss[t]=!0,!1)}function xa(t,e,i){if(zr(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 Ta(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 On(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 Je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function os(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Lr(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l!="undefined"&&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(g){i=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wa(t){if(!t._valueTracker){var e=os(t)?"checked":"value";t._valueTracker=Lr(t,e,""+t[e])}}function us(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=os(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ea(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}var Vr=/[\n"\\]/g;function We(t){return t.replace(Vr,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $a(t,e,i,l,o,c,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Je(e)):t.value!==""+Je(e)&&(t.value=""+Je(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?yi(t,g,Je(e)):i!=null?yi(t,g,Je(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=""+Je(x):t.removeAttribute("name")}function cs(t,e,i,l,o,c,g,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)){Wa(t);return}i=i!=null?""+Je(i):"",e=e!=null?""+Je(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l!=null?l:o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),Wa(t)}function yi(t,e,i){e==="number"&&Ea(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function tl(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=""+Je(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 Yy(t,e,i){if(e!=null&&(e=""+Je(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Je(i):""}function Py(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(_(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Je(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Wa(t)}function el(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var $A=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 qy(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||$A.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Fy(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&&qy(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&qy(t,c,e[c])}function kc(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 t5=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"]]),e5=/^[\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 Or(t){return e5.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pi(){}var Hc=null;function Gc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var nl=null,il=null;function Xy(t){var e=Vn(t);if(e&&(t=e.stateNode)){var i=t[gt]||null;t:switch(t=e.stateNode,e.type){case"input":if($a(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="'+We(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var o=l[gt]||null;if(!o)throw Error(u(90));$a(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&&us(l)}break t;case"textarea":Yy(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&tl(t,!!i.multiple,e,!1)}}}var Yc=!1;function Ky(t,e,i){if(Yc)return t(e,i);Yc=!0;try{var l=t(e);return l}finally{if(Yc=!1,(nl!==null||il!==null)&&(Eo(),nl&&(e=nl,t=il,il=nl=null,Xy(e),t)))for(e=0;e<t.length;e++)Xy(t[e])}}function fs(t,e){var i=t.stateNode;if(i===null)return null;var l=i[gt]||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 gi=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Pc=!1;if(gi)try{var ds={};Object.defineProperty(ds,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch(t){Pc=!1}var Xi=null,qc=null,Nr=null;function Qy(){if(Nr)return Nr;var t,e=qc,i=e.length,l,o="value"in Xi?Xi.value:Xi.textContent,c=o.length;for(t=0;t<i&&e[t]===o[t];t++);var g=i-t;for(l=1;l<=g&&e[i-l]===o[c-l];l++);return Nr=o.slice(t,1<l?1-l:void 0)}function Ur(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 _r(){return!0}function Zy(){return!1}function sn(t){function e(i,l,o,c,g){this._reactName=i,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=g,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)?_r:Zy,this.isPropagationStopped=Zy,this}return b(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=_r)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),e}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kr=sn(Ma),hs=b({},Ma,{view:0,detail:0}),n5=sn(hs),Fc,Xc,ms,Hr=b({},hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,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!==ms&&(ms&&t.type==="mousemove"?(Fc=t.screenX-ms.screenX,Xc=t.screenY-ms.screenY):Xc=Fc=0,ms=t),Fc)},movementY:function(t){return"movementY"in t?t.movementY:Xc}}),Iy=sn(Hr),i5=b({},Hr,{dataTransfer:0}),a5=sn(i5),l5=b({},hs,{relatedTarget:0}),Kc=sn(l5),s5=b({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),r5=sn(s5),o5=b({},Ma,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),u5=sn(o5),c5=b({},Ma,{data:0}),Jy=sn(c5),f5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d5={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"},h5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m5(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=h5[t])?!!e[t]:!1}function Qc(){return m5}var y5=b({},hs,{key:function(t){if(t.key){var e=f5[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ur(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?d5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(t){return t.type==="keypress"?Ur(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ur(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),p5=sn(y5),g5=b({},Hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wy=sn(g5),v5=b({},hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),b5=sn(v5),S5=b({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),x5=sn(S5),T5=b({},Hr,{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}),E5=sn(T5),M5=b({},Ma,{newState:0,oldState:0}),A5=sn(M5),w5=[9,13,27,32],Zc=gi&&"CompositionEvent"in window,ys=null;gi&&"documentMode"in document&&(ys=document.documentMode);var C5=gi&&"TextEvent"in window&&!ys,$y=gi&&(!Zc||ys&&8<ys&&11>=ys),tp=" ",ep=!1;function np(t,e){switch(t){case"keyup":return w5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ip(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var al=!1;function R5(t,e){switch(t){case"compositionend":return ip(e);case"keypress":return e.which!==32?null:(ep=!0,tp);case"textInput":return t=e.data,t===tp&&ep?null:t;default:return null}}function D5(t,e){if(al)return t==="compositionend"||!Zc&&np(t,e)?(t=Qy(),Nr=qc=Xi=null,al=!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 $y&&e.locale!=="ko"?null:e.data;default:return null}}var j5={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 ap(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!j5[t.type]:e==="textarea"}function lp(t,e,i,l){nl?il?il.push(l):il=[l]:nl=l,e=jo(e,"onChange"),0<e.length&&(i=new kr("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var ps=null,gs=null;function B5(t){Gv(t,0)}function Gr(t){var e=Fi(t);if(us(e))return t}function sp(t,e){if(t==="change")return e}var rp=!1;if(gi){var Ic;if(gi){var Jc="oninput"in document;if(!Jc){var op=document.createElement("div");op.setAttribute("oninput","return;"),Jc=typeof op.oninput=="function"}Ic=Jc}else Ic=!1;rp=Ic&&(!document.documentMode||9<document.documentMode)}function up(){ps&&(ps.detachEvent("onpropertychange",cp),gs=ps=null)}function cp(t){if(t.propertyName==="value"&&Gr(gs)){var e=[];lp(e,gs,t,Gc(t)),Ky(B5,e)}}function z5(t,e,i){t==="focusin"?(up(),ps=e,gs=i,ps.attachEvent("onpropertychange",cp)):t==="focusout"&&up()}function L5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gr(gs)}function V5(t,e){if(t==="click")return Gr(e)}function O5(t,e){if(t==="input"||t==="change")return Gr(e)}function N5(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vn=typeof Object.is=="function"?Object.is:N5;function vs(t,e){if(vn(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(!Be.call(e,o)||!vn(t[o],e[o]))return!1}return!0}function fp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dp(t,e){var i=fp(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=fp(i)}}function hp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?hp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ea(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch(l){i=!1}if(i)t=e.contentWindow;else break;e=Ea(t.document)}return e}function Wc(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 U5=gi&&"documentMode"in document&&11>=document.documentMode,ll=null,$c=null,bs=null,tf=!1;function yp(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;tf||ll==null||ll!==Ea(l)||(l=ll,"selectionStart"in l&&Wc(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}),bs&&vs(bs,l)||(bs=l,l=jo($c,"onSelect"),0<l.length&&(e=new kr("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=ll)))}function Aa(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var sl={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},ef={},pp={};gi&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function wa(t){if(ef[t])return ef[t];if(!sl[t])return t;var e=sl[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in pp)return ef[t]=e[i];return t}var gp=wa("animationend"),vp=wa("animationiteration"),bp=wa("animationstart"),_5=wa("transitionrun"),k5=wa("transitionstart"),H5=wa("transitioncancel"),Sp=wa("transitionend"),xp=new Map,nf="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(" ");nf.push("scrollEnd");function Zn(t,e){xp.set(t,e),ii(e,[t])}var Yr=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)},Nn=[],rl=0,af=0;function Pr(){for(var t=rl,e=af=rl=0;e<t;){var i=Nn[e];Nn[e++]=null;var l=Nn[e];Nn[e++]=null;var o=Nn[e];Nn[e++]=null;var c=Nn[e];if(Nn[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}c!==0&&Tp(i,o,c)}}function qr(t,e,i,l){Nn[rl++]=t,Nn[rl++]=e,Nn[rl++]=i,Nn[rl++]=l,af|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function lf(t,e,i,l){return qr(t,e,i,l),Fr(t)}function Ca(t,e){return qr(t,null,null,e),Fr(t)}function Tp(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-re(i),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=i|536870912),c):null}function Fr(t){if(50<Gs)throw Gs=0,md=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ol={};function G5(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 bn(t,e,i,l){return new G5(t,e,i,l)}function sf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vi(t,e){var i=t.alternate;return i===null?(i=bn(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 Ep(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 Xr(t,e,i,l,o,c){var g=0;if(l=t,typeof t=="function")sf(t)&&(g=1);else if(typeof t=="string")g=Xw(t,i,nt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=bn(31,i,e,o),t.elementType=Z,t.lanes=c,t;case j:return Ra(i.children,o,c,e);case H:g=8,o|=24;break;case F:return t=bn(12,i,e,o|2),t.elementType=F,t.lanes=c,t;case N:return t=bn(13,i,e,o),t.elementType=N,t.lanes=c,t;case V:return t=bn(19,i,e,o),t.elementType=V,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:g=10;break t;case A:g=9;break t;case w:g=11;break t;case B:g=14;break t;case Q:g=16,l=null;break t}g=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=bn(g,i,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Ra(t,e,i,l){return t=bn(7,t,l,e),t.lanes=i,t}function rf(t,e,i){return t=bn(6,t,null,e),t.lanes=i,t}function Mp(t){var e=bn(18,null,null,0);return e.stateNode=t,e}function of(t,e,i){return e=bn(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ap=new WeakMap;function Un(t,e){if(typeof t=="object"&&t!==null){var i=Ap.get(t);return i!==void 0?i:(e={value:t,source:e,stack:jt(e)},Ap.set(t,e),e)}return{value:t,source:e,stack:jt(e)}}var ul=[],cl=0,Kr=null,Ss=0,_n=[],kn=0,Ki=null,ai=1,li="";function bi(t,e){ul[cl++]=Ss,ul[cl++]=Kr,Kr=t,Ss=e}function wp(t,e,i){_n[kn++]=ai,_n[kn++]=li,_n[kn++]=Ki,Ki=t;var l=ai;t=li;var o=32-re(l)-1;l&=~(1<<o),i+=1;var c=32-re(e)+o;if(30<c){var g=o-o%5;c=(l&(1<<g)-1).toString(32),l>>=g,o-=g,ai=1<<32-re(e)+o|i<<o|l,li=c+t}else ai=1<<c|i<<o|l,li=t}function uf(t){t.return!==null&&(bi(t,1),wp(t,1,0))}function cf(t){for(;t===Kr;)Kr=ul[--cl],ul[cl]=null,Ss=ul[--cl],ul[cl]=null;for(;t===Ki;)Ki=_n[--kn],_n[kn]=null,li=_n[--kn],_n[kn]=null,ai=_n[--kn],_n[kn]=null}function Cp(t,e){_n[kn++]=ai,_n[kn++]=li,_n[kn++]=Ki,ai=e.id,li=e.overflow,Ki=t}var Ue=null,ae=null,Nt=!1,Qi=null,Hn=!1,ff=Error(u(519));function Zi(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xs(Un(e,t)),ff}function Rp(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ht]=t,e[gt]=l,i){case"dialog":Lt("cancel",e),Lt("close",e);break;case"iframe":case"object":case"embed":Lt("load",e);break;case"video":case"audio":for(i=0;i<Ps.length;i++)Lt(Ps[i],e);break;case"source":Lt("error",e);break;case"img":case"image":case"link":Lt("error",e),Lt("load",e);break;case"details":Lt("toggle",e);break;case"input":Lt("invalid",e),cs(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Lt("invalid",e);break;case"textarea":Lt("invalid",e),Py(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||Fv(e.textContent,i)?(l.popover!=null&&(Lt("beforetoggle",e),Lt("toggle",e)),l.onScroll!=null&&Lt("scroll",e),l.onScrollEnd!=null&&Lt("scrollend",e),l.onClick!=null&&(e.onclick=pi),e=!0):e=!1,e||Zi(t,!0)}function Dp(t){for(Ue=t.return;Ue;)switch(Ue.tag){case 5:case 31:case 13:Hn=!1;return;case 27:case 3:Hn=!0;return;default:Ue=Ue.return}}function fl(t){if(t!==Ue)return!1;if(!Nt)return Dp(t),Nt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Dd(t.type,t.memoizedProps)),i=!i),i&&ae&&Zi(t),Dp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));ae=t1(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));ae=t1(t)}else e===27?(e=ae,ua(t.type)?(t=Vd,Vd=null,ae=t):ae=e):ae=Ue?Yn(t.stateNode.nextSibling):null;return!0}function Da(){ae=Ue=null,Nt=!1}function df(){var t=Qi;return t!==null&&(cn===null?cn=t:cn.push.apply(cn,t),Qi=null),t}function xs(t){Qi===null?Qi=[t]:Qi.push(t)}var hf=E(null),ja=null,Si=null;function Ii(t,e,i){J(hf,e._currentValue),e._currentValue=i}function xi(t){t._currentValue=hf.current,k(hf)}function mf(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 yf(t,e,i,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var R=0;R<e.length;R++)if(x.context===e[R]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),mf(c.return,i,t),l||(g=null);break t}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=i,c=g.alternate,c!==null&&(c.lanes|=i),mf(g,i,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function dl(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 g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var x=o.type;vn(o.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(o===ft.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Qs):t=[Qs])}o=o.return}t!==null&&yf(e,t,i,l),e.flags|=262144}function Qr(t){for(t=t.firstContext;t!==null;){if(!vn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ba(t){ja=t,Si=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function _e(t){return jp(ja,t)}function Zr(t,e){return ja===null&&Ba(t),jp(t,e)}function jp(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Si===null){if(t===null)throw Error(u(308));Si=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Si=Si.next=e;return i}var Y5=typeof AbortController!="undefined"?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()})}},P5=a.unstable_scheduleCallback,q5=a.unstable_NormalPriority,Ee={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pf(){return{controller:new Y5,data:new Map,refCount:0}}function Ts(t){t.refCount--,t.refCount===0&&P5(q5,function(){t.controller.abort()})}var Es=null,gf=0,hl=0,ml=null;function F5(t,e){if(Es===null){var i=Es=[];gf=0,hl=Sd(),ml={status:"pending",value:void 0,then:function(l){i.push(l)}}}return gf++,e.then(Bp,Bp),e}function Bp(){if(--gf===0&&Es!==null){ml!==null&&(ml.status="fulfilled");var t=Es;Es=null,hl=0,ml=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X5(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 zp=O.S;O.S=function(t,e){yv=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&F5(t,e),zp!==null&&zp(t,e)};var za=E(null);function vf(){var t=za.current;return t!==null?t:$t.pooledCache}function Ir(t,e){e===null?J(za,za.current):J(za,e.pool)}function Lp(){var t=vf();return t===null?null:{parent:Ee._currentValue,pool:t}}var yl=Error(u(460)),bf=Error(u(474)),Jr=Error(u(542)),Wr={then:function(){}};function Vp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Op(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(pi,pi),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Up(t),t;default:if(typeof e.status=="string")e.then(pi,pi);else{if(t=$t,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,Up(t),t}throw Va=e,yl}}function La(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,yl):i}}var Va=null;function Np(){if(Va===null)throw Error(u(459));var t=Va;return Va=null,t}function Up(t){if(t===yl||t===Jr)throw Error(u(483))}var pl=null,Ms=0;function $r(t){var e=Ms;return Ms+=1,pl===null&&(pl=[]),Op(pl,t,e)}function As(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function to(t,e){throw e.$$typeof===M?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function _p(t){function e(U,z){if(t){var P=U.deletions;P===null?(U.deletions=[z],U.flags|=16):P.push(z)}}function i(U,z){if(!t)return null;for(;z!==null;)e(U,z),z=z.sibling;return null}function l(U){for(var z=new Map;U!==null;)U.key!==null?z.set(U.key,U):z.set(U.index,U),U=U.sibling;return z}function o(U,z){return U=vi(U,z),U.index=0,U.sibling=null,U}function c(U,z,P){return U.index=P,t?(P=U.alternate,P!==null?(P=P.index,P<z?(U.flags|=67108866,z):P):(U.flags|=67108866,z)):(U.flags|=1048576,z)}function g(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function x(U,z,P,et){return z===null||z.tag!==6?(z=rf(P,U.mode,et),z.return=U,z):(z=o(z,P),z.return=U,z)}function R(U,z,P,et){var bt=P.type;return bt===j?$(U,z,P.props.children,et,P.key):z!==null&&(z.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Q&&La(bt)===z.type)?(z=o(z,P.props),As(z,P),z.return=U,z):(z=Xr(P.type,P.key,P.props,null,U.mode,et),As(z,P),z.return=U,z)}function q(U,z,P,et){return z===null||z.tag!==4||z.stateNode.containerInfo!==P.containerInfo||z.stateNode.implementation!==P.implementation?(z=of(P,U.mode,et),z.return=U,z):(z=o(z,P.children||[]),z.return=U,z)}function $(U,z,P,et,bt){return z===null||z.tag!==7?(z=Ra(P,U.mode,et,bt),z.return=U,z):(z=o(z,P),z.return=U,z)}function it(U,z,P){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=rf(""+z,U.mode,P),z.return=U,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case D:return P=Xr(z.type,z.key,z.props,null,U.mode,P),As(P,z),P.return=U,P;case C:return z=of(z,U.mode,P),z.return=U,z;case Q:return z=La(z),it(U,z,P)}if(_(z)||L(z))return z=Ra(z,U.mode,P,null),z.return=U,z;if(typeof z.then=="function")return it(U,$r(z),P);if(z.$$typeof===K)return it(U,Zr(U,z),P);to(U,z)}return null}function X(U,z,P,et){var bt=z!==null?z.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return bt!==null?null:x(U,z,""+P,et);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case D:return P.key===bt?R(U,z,P,et):null;case C:return P.key===bt?q(U,z,P,et):null;case Q:return P=La(P),X(U,z,P,et)}if(_(P)||L(P))return bt!==null?null:$(U,z,P,et,null);if(typeof P.then=="function")return X(U,z,$r(P),et);if(P.$$typeof===K)return X(U,z,Zr(U,P),et);to(U,P)}return null}function I(U,z,P,et,bt){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return U=U.get(P)||null,x(z,U,""+et,bt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case D:return U=U.get(et.key===null?P:et.key)||null,R(z,U,et,bt);case C:return U=U.get(et.key===null?P:et.key)||null,q(z,U,et,bt);case Q:return et=La(et),I(U,z,P,et,bt)}if(_(et)||L(et))return U=U.get(P)||null,$(z,U,et,bt,null);if(typeof et.then=="function")return I(U,z,P,$r(et),bt);if(et.$$typeof===K)return I(U,z,P,Zr(z,et),bt);to(z,et)}return null}function mt(U,z,P,et){for(var bt=null,Ut=null,vt=z,Rt=z=0,Ot=null;vt!==null&&Rt<P.length;Rt++){vt.index>Rt?(Ot=vt,vt=null):Ot=vt.sibling;var _t=X(U,vt,P[Rt],et);if(_t===null){vt===null&&(vt=Ot);break}t&&vt&&_t.alternate===null&&e(U,vt),z=c(_t,z,Rt),Ut===null?bt=_t:Ut.sibling=_t,Ut=_t,vt=Ot}if(Rt===P.length)return i(U,vt),Nt&&bi(U,Rt),bt;if(vt===null){for(;Rt<P.length;Rt++)vt=it(U,P[Rt],et),vt!==null&&(z=c(vt,z,Rt),Ut===null?bt=vt:Ut.sibling=vt,Ut=vt);return Nt&&bi(U,Rt),bt}for(vt=l(vt);Rt<P.length;Rt++)Ot=I(vt,U,Rt,P[Rt],et),Ot!==null&&(t&&Ot.alternate!==null&&vt.delete(Ot.key===null?Rt:Ot.key),z=c(Ot,z,Rt),Ut===null?bt=Ot:Ut.sibling=Ot,Ut=Ot);return t&&vt.forEach(function(ma){return e(U,ma)}),Nt&&bi(U,Rt),bt}function xt(U,z,P,et){if(P==null)throw Error(u(151));for(var bt=null,Ut=null,vt=z,Rt=z=0,Ot=null,_t=P.next();vt!==null&&!_t.done;Rt++,_t=P.next()){vt.index>Rt?(Ot=vt,vt=null):Ot=vt.sibling;var ma=X(U,vt,_t.value,et);if(ma===null){vt===null&&(vt=Ot);break}t&&vt&&ma.alternate===null&&e(U,vt),z=c(ma,z,Rt),Ut===null?bt=ma:Ut.sibling=ma,Ut=ma,vt=Ot}if(_t.done)return i(U,vt),Nt&&bi(U,Rt),bt;if(vt===null){for(;!_t.done;Rt++,_t=P.next())_t=it(U,_t.value,et),_t!==null&&(z=c(_t,z,Rt),Ut===null?bt=_t:Ut.sibling=_t,Ut=_t);return Nt&&bi(U,Rt),bt}for(vt=l(vt);!_t.done;Rt++,_t=P.next())_t=I(vt,U,Rt,_t.value,et),_t!==null&&(t&&_t.alternate!==null&&vt.delete(_t.key===null?Rt:_t.key),z=c(_t,z,Rt),Ut===null?bt=_t:Ut.sibling=_t,Ut=_t);return t&&vt.forEach(function(i3){return e(U,i3)}),Nt&&bi(U,Rt),bt}function Zt(U,z,P,et){if(typeof P=="object"&&P!==null&&P.type===j&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case D:t:{for(var bt=P.key;z!==null;){if(z.key===bt){if(bt=P.type,bt===j){if(z.tag===7){i(U,z.sibling),et=o(z,P.props.children),et.return=U,U=et;break t}}else if(z.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Q&&La(bt)===z.type){i(U,z.sibling),et=o(z,P.props),As(et,P),et.return=U,U=et;break t}i(U,z);break}else e(U,z);z=z.sibling}P.type===j?(et=Ra(P.props.children,U.mode,et,P.key),et.return=U,U=et):(et=Xr(P.type,P.key,P.props,null,U.mode,et),As(et,P),et.return=U,U=et)}return g(U);case C:t:{for(bt=P.key;z!==null;){if(z.key===bt)if(z.tag===4&&z.stateNode.containerInfo===P.containerInfo&&z.stateNode.implementation===P.implementation){i(U,z.sibling),et=o(z,P.children||[]),et.return=U,U=et;break t}else{i(U,z);break}else e(U,z);z=z.sibling}et=of(P,U.mode,et),et.return=U,U=et}return g(U);case Q:return P=La(P),Zt(U,z,P,et)}if(_(P))return mt(U,z,P,et);if(L(P)){if(bt=L(P),typeof bt!="function")throw Error(u(150));return P=bt.call(P),xt(U,z,P,et)}if(typeof P.then=="function")return Zt(U,z,$r(P),et);if(P.$$typeof===K)return Zt(U,z,Zr(U,P),et);to(U,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,z!==null&&z.tag===6?(i(U,z.sibling),et=o(z,P),et.return=U,U=et):(i(U,z),et=rf(P,U.mode,et),et.return=U,U=et),g(U)):i(U,z)}return function(U,z,P,et){try{Ms=0;var bt=Zt(U,z,P,et);return pl=null,bt}catch(vt){if(vt===yl||vt===Jr)throw vt;var Ut=bn(29,vt,null,U.mode);return Ut.lanes=et,Ut.return=U,Ut}}}var Oa=_p(!0),kp=_p(!1),Ji=!1;function Sf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(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 Wi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function $i(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Gt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=Fr(t),Tp(t,null,i),e}return qr(t,l,e,i),Fr(t)}function ws(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,Yi(t,i)}}function Tf(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 g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,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 Ef=!1;function Cs(){if(Ef){var t=ml;if(t!==null)throw t}}function Rs(t,e,i,l){Ef=!1;var o=t.updateQueue;Ji=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var R=x,q=R.next;R.next=null,g===null?c=q:g.next=q,g=R;var $=t.alternate;$!==null&&($=$.updateQueue,x=$.lastBaseUpdate,x!==g&&(x===null?$.firstBaseUpdate=q:x.next=q,$.lastBaseUpdate=R))}if(c!==null){var it=o.baseState;g=0,$=q=R=null,x=c;do{var X=x.lane&-536870913,I=X!==x.lane;if(I?(Vt&X)===X:(l&X)===X){X!==0&&X===hl&&(Ef=!0),$!==null&&($=$.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var mt=t,xt=x;X=e;var Zt=i;switch(xt.tag){case 1:if(mt=xt.payload,typeof mt=="function"){it=mt.call(Zt,it,X);break t}it=mt;break t;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=xt.payload,X=typeof mt=="function"?mt.call(Zt,it,X):mt,X==null)break t;it=b({},it,X);break t;case 2:Ji=!0}}X=x.callback,X!==null&&(t.flags|=64,I&&(t.flags|=8192),I=o.callbacks,I===null?o.callbacks=[X]:I.push(X))}else I={lane:X,tag:x.tag,payload:x.payload,callback:x.callback,next:null},$===null?(q=$=I,R=it):$=$.next=I,g|=X;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;I=x,x=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);$===null&&(R=it),o.baseState=R,o.firstBaseUpdate=q,o.lastBaseUpdate=$,c===null&&(o.shared.lanes=0),aa|=g,t.lanes=g,t.memoizedState=it}}function Hp(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Gp(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Hp(i[t],e)}var gl=E(null),eo=E(0);function Yp(t,e){t=ji,J(eo,t),J(gl,e),ji=t|e.baseLanes}function Mf(){J(eo,ji),J(gl,gl.current)}function Af(){ji=eo.current,k(gl),k(eo)}var Sn=E(null),Gn=null;function ta(t){var e=t.alternate;J(ge,ge.current&1),J(Sn,t),Gn===null&&(e===null||gl.current!==null||e.memoizedState!==null)&&(Gn=t)}function wf(t){J(ge,ge.current),J(Sn,t),Gn===null&&(Gn=t)}function Pp(t){t.tag===22?(J(ge,ge.current),J(Sn,t),Gn===null&&(Gn=t)):ea()}function ea(){J(ge,ge.current),J(Sn,Sn.current)}function xn(t){k(Sn),Gn===t&&(Gn=null),k(ge)}var ge=E(0);function no(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||zd(i)||Ld(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 Ti=0,Ct=null,Kt=null,Me=null,io=!1,vl=!1,Na=!1,ao=0,Ds=0,bl=null,K5=0;function de(){throw Error(u(321))}function Cf(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!vn(t[i],e[i]))return!1;return!0}function Rf(t,e,i,l,o,c){return Ti=c,Ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,O.H=t===null||t.memoizedState===null?wg:Pf,Na=!1,c=i(l,o),Na=!1,vl&&(c=Fp(e,i,l,o)),qp(t),c}function qp(t){O.H=zs;var e=Kt!==null&&Kt.next!==null;if(Ti=0,Me=Kt=Ct=null,io=!1,Ds=0,bl=null,e)throw Error(u(300));t===null||Ae||(t=t.dependencies,t!==null&&Qr(t)&&(Ae=!0))}function Fp(t,e,i,l){Ct=t;var o=0;do{if(vl&&(bl=null),Ds=0,vl=!1,25<=o)throw Error(u(301));if(o+=1,Me=Kt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=Cg,c=e(i,l)}while(vl);return c}function Q5(){var t=O.H,e=t.useState()[0];return e=typeof e.then=="function"?js(e):e,t=t.useState()[0],(Kt!==null?Kt.memoizedState:null)!==t&&(Ct.flags|=1024),e}function Df(){var t=ao!==0;return ao=0,t}function jf(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Bf(t){if(io){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}io=!1}Ti=0,Me=Kt=Ct=null,vl=!1,Ds=ao=0,bl=null}function $e(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?Ct.memoizedState=Me=t:Me=Me.next=t,Me}function ve(){if(Kt===null){var t=Ct.alternate;t=t!==null?t.memoizedState:null}else t=Kt.next;var e=Me===null?Ct.memoizedState:Me.next;if(e!==null)Me=e,Kt=t;else{if(t===null)throw Ct.alternate===null?Error(u(467)):Error(u(310));Kt=t,t={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Me===null?Ct.memoizedState=Me=t:Me=Me.next=t}return Me}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(t){var e=Ds;return Ds+=1,bl===null&&(bl=[]),t=Op(bl,t,e),e=Ct,(Me===null?e.memoizedState:Me.next)===null&&(e=e.alternate,O.H=e===null||e.memoizedState===null?wg:Pf),t}function so(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return js(t);if(t.$$typeof===K)return _e(t)}throw Error(u(438,String(t)))}function zf(t){var e=null,i=Ct.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=Ct.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=lo(),Ct.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]=tt;return e.index++,i}function Ei(t,e){return typeof e=="function"?e(t):e}function ro(t){var e=ve();return Lf(e,Kt,t)}function Lf(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 g=o.next;o.next=c.next,c.next=g}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=g=null,R=null,q=e,$=!1;do{var it=q.lane&-536870913;if(it!==q.lane?(Vt&it)===it:(Ti&it)===it){var X=q.revertLane;if(X===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),it===hl&&($=!0);else if((Ti&X)===X){q=q.next,X===hl&&($=!0);continue}else it={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(x=R=it,g=c):R=R.next=it,Ct.lanes|=X,aa|=X;it=q.action,Na&&i(c,it),c=q.hasEagerState?q.eagerState:i(c,it)}else X={lane:it,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(x=R=X,g=c):R=R.next=X,Ct.lanes|=it,aa|=it;q=q.next}while(q!==null&&q!==e);if(R===null?g=c:R.next=x,!vn(c,t.memoizedState)&&(Ae=!0,$&&(i=ml,i!==null)))throw i;t.memoizedState=c,t.baseState=g,t.baseQueue=R,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Vf(t){var e=ve(),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 g=o=o.next;do c=t(c,g.action),g=g.next;while(g!==o);vn(c,e.memoizedState)||(Ae=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function Xp(t,e,i){var l=Ct,o=ve(),c=Nt;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var g=!vn((Kt||o).memoizedState,i);if(g&&(o.memoizedState=i,Ae=!0),o=o.queue,Uf(Zp.bind(null,l,o,t),[t]),o.getSnapshot!==e||g||Me!==null&&Me.memoizedState.tag&1){if(l.flags|=2048,Sl(9,{destroy:void 0},Qp.bind(null,l,o,i,e),null),$t===null)throw Error(u(349));c||(Ti&127)!==0||Kp(l,e,i)}return i}function Kp(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=Ct.updateQueue,e===null?(e=lo(),Ct.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Qp(t,e,i,l){e.value=i,e.getSnapshot=l,Ip(e)&&Jp(t)}function Zp(t,e,i){return i(function(){Ip(e)&&Jp(t)})}function Ip(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!vn(t,i)}catch(l){return!0}}function Jp(t){var e=Ca(t,2);e!==null&&fn(e,t,2)}function Of(t){var e=$e();if(typeof t=="function"){var i=t;if(t=i(),Na){ye(!0);try{i()}finally{ye(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:t},e}function Wp(t,e,i,l){return t.baseState=i,Lf(t,Kt,typeof l=="function"?l:Ei)}function Z5(t,e,i,l,o){if(co(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(g){c.listeners.push(g)}};O.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,$p(e,c)):(c.next=i.next,e.pending=i.next=c)}}function $p(t,e){var i=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=O.T,g={};O.T=g;try{var x=i(o,l),R=O.S;R!==null&&R(g,x),tg(t,e,x)}catch(q){Nf(t,e,q)}finally{c!==null&&g.types!==null&&(c.types=g.types),O.T=c}}else try{c=i(o,l),tg(t,e,c)}catch(q){Nf(t,e,q)}}function tg(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){eg(t,e,l)},function(l){return Nf(t,e,l)}):eg(t,e,i)}function eg(t,e,i){e.status="fulfilled",e.value=i,ng(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,$p(t,i)))}function Nf(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,ng(e),e=e.next;while(e!==l)}t.action=null}function ng(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ig(t,e){return e}function ag(t,e){if(Nt){var i=$t.formState;if(i!==null){t:{var l=Ct;if(Nt){if(ae){e:{for(var o=ae,c=Hn;o.nodeType!==8;){if(!c){o=null;break e}if(o=Yn(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){ae=Yn(o.nextSibling),l=o.data==="F!";break t}}Zi(l)}l=!1}l&&(e=i[0])}}return i=$e(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ig,lastRenderedState:e},i.queue=l,i=Eg.bind(null,Ct,l),l.dispatch=i,l=Of(!1),c=Yf.bind(null,Ct,!1,l.queue),l=$e(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,i=Z5.bind(null,Ct,o,c,i),o.dispatch=i,l.memoizedState=t,[e,i,!1]}function lg(t){var e=ve();return sg(e,Kt,t)}function sg(t,e,i){if(e=Lf(t,e,ig)[0],t=ro(Ei)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=js(e)}catch(g){throw g===yl?Jr:g}else l=e;e=ve();var o=e.queue,c=o.dispatch;return i!==e.memoizedState&&(Ct.flags|=2048,Sl(9,{destroy:void 0},I5.bind(null,o,i),null)),[l,c,t]}function I5(t,e){t.action=e}function rg(t){var e=ve(),i=Kt;if(i!==null)return sg(e,i,t);ve(),e=e.memoizedState,i=ve();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Sl(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=Ct.updateQueue,e===null&&(e=lo(),Ct.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 og(){return ve().memoizedState}function oo(t,e,i,l){var o=$e();Ct.flags|=t,o.memoizedState=Sl(1|e,{destroy:void 0},i,l===void 0?null:l)}function uo(t,e,i,l){var o=ve();l=l===void 0?null:l;var c=o.memoizedState.inst;Kt!==null&&l!==null&&Cf(l,Kt.memoizedState.deps)?o.memoizedState=Sl(e,c,i,l):(Ct.flags|=t,o.memoizedState=Sl(1|e,c,i,l))}function ug(t,e){oo(8390656,8,t,e)}function Uf(t,e){uo(2048,8,t,e)}function J5(t){Ct.flags|=4;var e=Ct.updateQueue;if(e===null)e=lo(),Ct.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function cg(t){var e=ve().memoizedState;return J5({ref:e,nextImpl:t}),function(){if((Gt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function fg(t,e){return uo(4,2,t,e)}function dg(t,e){return uo(4,4,t,e)}function hg(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 mg(t,e,i){i=i!=null?i.concat([t]):null,uo(4,4,hg.bind(null,e,t),i)}function _f(){}function yg(t,e){var i=ve();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Cf(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function pg(t,e){var i=ve();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Cf(e,l[1]))return l[0];if(l=t(),Na){ye(!0);try{t()}finally{ye(!1)}}return i.memoizedState=[l,e],l}function kf(t,e,i){return i===void 0||(Ti&1073741824)!==0&&(Vt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=gv(),Ct.lanes|=t,aa|=t,i)}function gg(t,e,i,l){return vn(i,e)?i:gl.current!==null?(t=kf(t,i,l),vn(t,e)||(Ae=!0),t):(Ti&42)===0||(Ti&1073741824)!==0&&(Vt&261930)===0?(Ae=!0,t.memoizedState=i):(t=gv(),Ct.lanes|=t,aa|=t,e)}function vg(t,e,i,l,o){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=O.T,x={};O.T=x,Yf(t,!1,e,i);try{var R=o(),q=O.S;if(q!==null&&q(x,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=X5(R,l);Bs(t,e,$,Mn(t))}else Bs(t,e,l,Mn(t))}catch(it){Bs(t,e,{then:function(){},status:"rejected",reason:it},Mn())}finally{Y.p=c,g!==null&&x.types!==null&&(g.types=x.types),O.T=g}}function W5(){}function Hf(t,e,i,l){if(t.tag!==5)throw Error(u(476));var o=bg(t).queue;vg(t,o,e,rt,i===null?W5:function(){return Sg(t),i(l)})}function bg(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rt,baseState:rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:rt},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Sg(t){var e=bg(t);e.next===null&&(e=t.alternate.memoizedState),Bs(t,e.next.queue,{},Mn())}function Gf(){return _e(Qs)}function xg(){return ve().memoizedState}function Tg(){return ve().memoizedState}function $5(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Mn();t=Wi(i);var l=$i(e,t,i);l!==null&&(fn(l,e,i),ws(l,e,i)),e={cache:pf()},t.payload=e;return}e=e.return}}function tw(t,e,i){var l=Mn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},co(t)?Mg(e,i):(i=lf(t,e,i,l),i!==null&&(fn(i,t,l),Ag(i,e,l)))}function Eg(t,e,i){var l=Mn();Bs(t,e,i,l)}function Bs(t,e,i,l){var o={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(co(t))Mg(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,x=c(g,i);if(o.hasEagerState=!0,o.eagerState=x,vn(x,g))return qr(t,e,o,0),$t===null&&Pr(),!1}catch(R){}if(i=lf(t,e,o,l),i!==null)return fn(i,t,l),Ag(i,e,l),!0}return!1}function Yf(t,e,i,l){if(l={lane:2,revertLane:Sd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},co(t)){if(e)throw Error(u(479))}else e=lf(t,i,l,2),e!==null&&fn(e,t,2)}function co(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function Mg(t,e){vl=io=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Ag(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Yi(t,i)}}var zs={readContext:_e,use:so,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useLayoutEffect:de,useInsertionEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useSyncExternalStore:de,useId:de,useHostTransitionStatus:de,useFormState:de,useActionState:de,useOptimistic:de,useMemoCache:de,useCacheRefresh:de};zs.useEffectEvent=de;var wg={readContext:_e,use:so,useCallback:function(t,e){return $e().memoizedState=[t,e===void 0?null:e],t},useContext:_e,useEffect:ug,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,oo(4194308,4,hg.bind(null,e,t),i)},useLayoutEffect:function(t,e){return oo(4194308,4,t,e)},useInsertionEffect:function(t,e){oo(4,2,t,e)},useMemo:function(t,e){var i=$e();e=e===void 0?null:e;var l=t();if(Na){ye(!0);try{t()}finally{ye(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=$e();if(i!==void 0){var o=i(e);if(Na){ye(!0);try{i(e)}finally{ye(!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=tw.bind(null,Ct,t),[l.memoizedState,t]},useRef:function(t){var e=$e();return t={current:t},e.memoizedState=t},useState:function(t){t=Of(t);var e=t.queue,i=Eg.bind(null,Ct,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:_f,useDeferredValue:function(t,e){var i=$e();return kf(i,t,e)},useTransition:function(){var t=Of(!1);return t=vg.bind(null,Ct,t.queue,!0,!1),$e().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=Ct,o=$e();if(Nt){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),$t===null)throw Error(u(349));(Vt&127)!==0||Kp(l,e,i)}o.memoizedState=i;var c={value:i,getSnapshot:e};return o.queue=c,ug(Zp.bind(null,l,c,t),[t]),l.flags|=2048,Sl(9,{destroy:void 0},Qp.bind(null,l,c,i,e),null),i},useId:function(){var t=$e(),e=$t.identifierPrefix;if(Nt){var i=li,l=ai;i=(l&~(1<<32-re(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=ao++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=K5++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Gf,useFormState:ag,useActionState:ag,useOptimistic:function(t){var e=$e();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Yf.bind(null,Ct,!0,i),i.dispatch=e,[t,e]},useMemoCache:zf,useCacheRefresh:function(){return $e().memoizedState=$5.bind(null,Ct)},useEffectEvent:function(t){var e=$e(),i={impl:t};return e.memoizedState=i,function(){if((Gt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},Pf={readContext:_e,use:so,useCallback:yg,useContext:_e,useEffect:Uf,useImperativeHandle:mg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:pg,useReducer:ro,useRef:og,useState:function(){return ro(Ei)},useDebugValue:_f,useDeferredValue:function(t,e){var i=ve();return gg(i,Kt.memoizedState,t,e)},useTransition:function(){var t=ro(Ei)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:js(t),e]},useSyncExternalStore:Xp,useId:xg,useHostTransitionStatus:Gf,useFormState:lg,useActionState:lg,useOptimistic:function(t,e){var i=ve();return Wp(i,Kt,t,e)},useMemoCache:zf,useCacheRefresh:Tg};Pf.useEffectEvent=cg;var Cg={readContext:_e,use:so,useCallback:yg,useContext:_e,useEffect:Uf,useImperativeHandle:mg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:pg,useReducer:Vf,useRef:og,useState:function(){return Vf(Ei)},useDebugValue:_f,useDeferredValue:function(t,e){var i=ve();return Kt===null?kf(i,t,e):gg(i,Kt.memoizedState,t,e)},useTransition:function(){var t=Vf(Ei)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:js(t),e]},useSyncExternalStore:Xp,useId:xg,useHostTransitionStatus:Gf,useFormState:rg,useActionState:rg,useOptimistic:function(t,e){var i=ve();return Kt!==null?Wp(i,Kt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:zf,useCacheRefresh:Tg};Cg.useEffectEvent=cg;function qf(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:b({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Ff={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Mn(),o=Wi(l);o.payload=e,i!=null&&(o.callback=i),e=$i(t,o,l),e!==null&&(fn(e,t,l),ws(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Mn(),o=Wi(l);o.tag=1,o.payload=e,i!=null&&(o.callback=i),e=$i(t,o,l),e!==null&&(fn(e,t,l),ws(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Mn(),l=Wi(i);l.tag=2,e!=null&&(l.callback=e),e=$i(t,l,i),e!==null&&(fn(e,t,i),ws(e,t,i))}};function Rg(t,e,i,l,o,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!vs(i,l)||!vs(o,c):!0}function Dg(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&&Ff.enqueueReplaceState(e,e.state,null)}function Ua(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=b({},i));for(var o in t)i[o]===void 0&&(i[o]=t[o])}return i}function jg(t){Yr(t)}function Bg(t){console.error(t)}function zg(t){Yr(t)}function fo(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Lg(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 Xf(t,e,i){return i=Wi(i),i.tag=3,i.payload={element:null},i.callback=function(){fo(t,e)},i}function Vg(t){return t=Wi(t),t.tag=3,t}function Og(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(){Lg(e,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Lg(e,i,l),typeof o!="function"&&(la===null?la=new Set([this]):la.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function ew(t,e,i,l,o){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&dl(e,i,o,!0),i=Sn.current,i!==null){switch(i.tag){case 31:case 13:return Gn===null?Mo():i.alternate===null&&he===0&&(he=3),i.flags&=-257,i.flags|=65536,i.lanes=o,l===Wr?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),gd(t,l,o)),!1;case 22:return i.flags|=65536,l===Wr?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)),gd(t,l,o)),!1}throw Error(u(435,i.tag))}return gd(t,l,o),Mo(),!1}if(Nt)return e=Sn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==ff&&(t=Error(u(422),{cause:l}),xs(Un(t,i)))):(l!==ff&&(e=Error(u(423),{cause:l}),xs(Un(e,i))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Un(l,i),o=Xf(t.stateNode,l,o),Tf(t,o),he!==4&&(he=2)),!1;var c=Error(u(520),{cause:l});if(c=Un(c,i),Hs===null?Hs=[c]:Hs.push(c),he!==4&&(he=2),e===null)return!0;l=Un(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=o&-o,i.lanes|=t,t=Xf(i.stateNode,l,t),Tf(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"&&(la===null||!la.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=Vg(o),Og(o,t,i,l),Tf(i,o),!1}i=i.return}while(i!==null);return!1}var Kf=Error(u(461)),Ae=!1;function ke(t,e,i,l){e.child=t===null?kp(e,null,i,l):Oa(e,t.child,i,l)}function Ng(t,e,i,l,o){i=i.render;var c=e.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return Ba(e),l=Rf(t,e,i,g,c,o),x=Df(),t!==null&&!Ae?(jf(t,e,o),Mi(t,e,o)):(Nt&&x&&uf(e),e.flags|=1,ke(t,e,l,o),e.child)}function Ug(t,e,i,l,o){if(t===null){var c=i.type;return typeof c=="function"&&!sf(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,_g(t,e,c,l,o)):(t=Xr(i.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!ed(t,o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:vs,i(g,l)&&t.ref===e.ref)return Mi(t,e,o)}return e.flags|=1,t=vi(c,l),t.ref=e.ref,t.return=e,e.child=t}function _g(t,e,i,l,o){if(t!==null){var c=t.memoizedProps;if(vs(c,l)&&t.ref===e.ref)if(Ae=!1,e.pendingProps=l=c,ed(t,o))(t.flags&131072)!==0&&(Ae=!0);else return e.lanes=t.lanes,Mi(t,e,o)}return Qf(t,e,i,l,o)}function kg(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 Hg(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ir(e,c!==null?c.cachePool:null),c!==null?Yp(e,c):Mf(),Pp(e);else return l=e.lanes=536870912,Hg(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Ir(e,c.cachePool),Yp(e,c),ea(),e.memoizedState=null):(t!==null&&Ir(e,null),Mf(),ea());return ke(t,e,o,i),e.child}function Ls(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hg(t,e,i,l,o){var c=vf();return c=c===null?null:{parent:Ee._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Ir(e,null),Mf(),Pp(e),t!==null&&dl(t,e,l,!0),e.childLanes=o,null}function ho(t,e){return e=yo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gg(t,e,i){return Oa(e,t.child,null,i),t=ho(e,e.pendingProps),t.flags|=2,xn(e),e.memoizedState=null,t}function nw(t,e,i){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Nt){if(l.mode==="hidden")return t=ho(e,l),e.lanes=536870912,Ls(null,t);if(wf(e),(t=ae)?(t=$v(t,Hn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ki!==null?{id:ai,overflow:li}:null,retryLane:536870912,hydrationErrors:null},i=Mp(t),i.return=e,e.child=i,Ue=e,ae=null)):t=null,t===null)throw Zi(e);return e.lanes=536870912,null}return ho(e,l)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(wf(e),o)if(e.flags&256)e.flags&=-257,e=Gg(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ae||dl(t,e,i,!1),o=(i&t.childLanes)!==0,Ae||o){if(l=$t,l!==null&&(g=Pi(l,i),g!==0&&g!==c.retryLane))throw c.retryLane=g,Ca(t,g),fn(l,t,g),Kf;Mo(),e=Gg(t,e,i)}else t=c.treeContext,ae=Yn(g.nextSibling),Ue=e,Nt=!0,Qi=null,Hn=!1,t!==null&&Cp(e,t),e=ho(e,l),e.flags|=4096;return e}return t=vi(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mo(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 Qf(t,e,i,l,o){return Ba(e),i=Rf(t,e,i,l,void 0,o),l=Df(),t!==null&&!Ae?(jf(t,e,o),Mi(t,e,o)):(Nt&&l&&uf(e),e.flags|=1,ke(t,e,i,o),e.child)}function Yg(t,e,i,l,o,c){return Ba(e),e.updateQueue=null,i=Fp(e,l,i,o),qp(t),l=Df(),t!==null&&!Ae?(jf(t,e,c),Mi(t,e,c)):(Nt&&l&&uf(e),e.flags|=1,ke(t,e,i,c),e.child)}function Pg(t,e,i,l,o){if(Ba(e),e.stateNode===null){var c=ol,g=i.contextType;typeof g=="object"&&g!==null&&(c=_e(g)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ff,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Sf(e),g=i.contextType,c.context=typeof g=="object"&&g!==null?_e(g):ol,c.state=e.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(qf(e,i,g,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Ff.enqueueReplaceState(c,c.state,null),Rs(e,l,c,o),Cs(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,R=Ua(i,x);c.props=R;var q=c.context,$=i.contextType;g=ol,typeof $=="object"&&$!==null&&(g=_e($));var it=i.getDerivedStateFromProps;$=typeof it=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||q!==g)&&Dg(e,c,l,g),Ji=!1;var X=e.memoizedState;c.state=X,Rs(e,l,c,o),Cs(),q=e.memoizedState,x||X!==q||Ji?(typeof it=="function"&&(qf(e,i,it,l),q=e.memoizedState),(R=Ji||Rg(e,i,R,l,X,q,g))?($||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=q),c.props=l,c.state=q,c.context=g,l=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,xf(t,e),g=e.memoizedProps,$=Ua(i,g),c.props=$,it=e.pendingProps,X=c.context,q=i.contextType,R=ol,typeof q=="object"&&q!==null&&(R=_e(q)),x=i.getDerivedStateFromProps,(q=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==it||X!==R)&&Dg(e,c,l,R),Ji=!1,X=e.memoizedState,c.state=X,Rs(e,l,c,o),Cs();var I=e.memoizedState;g!==it||X!==I||Ji||t!==null&&t.dependencies!==null&&Qr(t.dependencies)?(typeof x=="function"&&(qf(e,i,x,l),I=e.memoizedState),($=Ji||Rg(e,i,$,l,X,I,R)||t!==null&&t.dependencies!==null&&Qr(t.dependencies))?(q||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,I,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,I,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&X===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&X===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=I),c.props=l,c.state=I,c.context=R,l=$):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&X===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&X===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,mo(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=Oa(e,t.child,null,o),e.child=Oa(e,null,i,o)):ke(t,e,i,o),e.memoizedState=c.state,t=e.child):t=Mi(t,e,o),t}function qg(t,e,i,l){return Da(),e.flags|=256,ke(t,e,i,l),e.child}var Zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function If(t){return{baseLanes:t,cachePool:Lp()}}function Jf(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=En),t}function Fg(t,e,i){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(ge.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Nt){if(o?ta(e):ea(),(t=ae)?(t=$v(t,Hn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ki!==null?{id:ai,overflow:li}:null,retryLane:536870912,hydrationErrors:null},i=Mp(t),i.return=e,e.child=i,Ue=e,ae=null)):t=null,t===null)throw Zi(e);return Ld(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ea(),o=e.mode,x=yo({mode:"hidden",children:x},o),l=Ra(l,o,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=If(i),l.childLanes=Jf(t,g,i),e.memoizedState=Zf,Ls(null,l)):(ta(e),Wf(e,x))}var R=t.memoizedState;if(R!==null&&(x=R.dehydrated,x!==null)){if(c)e.flags&256?(ta(e),e.flags&=-257,e=$f(t,e,i)):e.memoizedState!==null?(ea(),e.child=t.child,e.flags|=128,e=null):(ea(),x=l.fallback,o=e.mode,l=yo({mode:"visible",children:l.children},o),x=Ra(x,o,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Oa(e,t.child,null,i),l=e.child,l.memoizedState=If(i),l.childLanes=Jf(t,g,i),e.memoizedState=Zf,e=Ls(null,l));else if(ta(e),Ld(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var q=g.dgst;g=q,l=Error(u(419)),l.stack="",l.digest=g,xs({value:l,source:null,stack:null}),e=$f(t,e,i)}else if(Ae||dl(t,e,i,!1),g=(i&t.childLanes)!==0,Ae||g){if(g=$t,g!==null&&(l=Pi(g,i),l!==0&&l!==R.retryLane))throw R.retryLane=l,Ca(t,l),fn(g,t,l),Kf;zd(x)||Mo(),e=$f(t,e,i)}else zd(x)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,ae=Yn(x.nextSibling),Ue=e,Nt=!0,Qi=null,Hn=!1,t!==null&&Cp(e,t),e=Wf(e,l.children),e.flags|=4096);return e}return o?(ea(),x=l.fallback,o=e.mode,R=t.child,q=R.sibling,l=vi(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,q!==null?x=vi(q,x):(x=Ra(x,o,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ls(null,l),l=e.child,x=t.child.memoizedState,x===null?x=If(i):(o=x.cachePool,o!==null?(R=Ee._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Lp(),x={baseLanes:x.baseLanes|i,cachePool:o}),l.memoizedState=x,l.childLanes=Jf(t,g,i),e.memoizedState=Zf,Ls(t.child,l)):(ta(e),i=t.child,t=i.sibling,i=vi(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=i,e.memoizedState=null,i)}function Wf(t,e){return e=yo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yo(t,e){return t=bn(22,t,null,e),t.lanes=0,t}function $f(t,e,i){return Oa(e,t.child,null,i),t=Wf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Xg(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),mf(t.return,e,i)}function td(t,e,i,l,o,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:o,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=o,g.treeForkCount=c)}function Kg(t,e,i){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var g=ge.current,x=(g&2)!==0;if(x?(g=g&1|2,e.flags|=128):g&=1,J(ge,g),ke(t,e,l,i),l=Nt?Ss:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xg(t,i,e);else if(t.tag===19)Xg(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&&no(t)===null&&(o=i),i=i.sibling;i=o,i===null?(o=e.child,e.child=null):(o=i.sibling,i.sibling=null),td(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&&no(t)===null){e.child=o;break}t=o.sibling,o.sibling=i,i=o,o=t}td(e,!0,i,null,c,l);break;case"together":td(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Mi(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),aa|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(dl(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=vi(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=vi(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function ed(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Qr(t)))}function iw(t,e,i){switch(e.tag){case 3:St(e,e.stateNode.containerInfo),Ii(e,Ee,t.memoizedState.cache),Da();break;case 27:case 5:At(e);break;case 4:St(e,e.stateNode.containerInfo);break;case 10:Ii(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,wf(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(ta(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Fg(t,e,i):(ta(e),t=Mi(t,e,i),t!==null?t.sibling:null);ta(e);break;case 19:var o=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(dl(t,e,i,!1),l=(i&e.childLanes)!==0),o){if(l)return Kg(t,e,i);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(ge,ge.current),l)break;return null;case 22:return e.lanes=0,kg(t,e,i,e.pendingProps);case 24:Ii(e,Ee,t.memoizedState.cache)}return Mi(t,e,i)}function Qg(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ae=!0;else{if(!ed(t,i)&&(e.flags&128)===0)return Ae=!1,iw(t,e,i);Ae=(t.flags&131072)!==0}else Ae=!1,Nt&&(e.flags&1048576)!==0&&wp(e,Ss,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=La(e.elementType),e.type=t,typeof t=="function")sf(t)?(l=Ua(t,l),e.tag=1,e=Pg(null,e,t,l,i)):(e.tag=0,e=Qf(null,e,t,l,i));else{if(t!=null){var o=t.$$typeof;if(o===w){e.tag=11,e=Ng(null,e,t,l,i);break t}else if(o===B){e.tag=14,e=Ug(null,e,t,l,i);break t}}throw e=W(t)||t,Error(u(306,e,""))}}return e;case 0:return Qf(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,o=Ua(l,e.pendingProps),Pg(t,e,l,o,i);case 3:t:{if(St(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,xf(t,e),Rs(e,l,null,i);var g=e.memoizedState;if(l=g.cache,Ii(e,Ee,l),l!==c.cache&&yf(e,[Ee],i,!0),Cs(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=qg(t,e,l,i);break t}else if(l!==o){o=Un(Error(u(424)),e),xs(o),e=qg(t,e,l,i);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ae=Yn(t.firstChild),Ue=e,Nt=!0,Qi=null,Hn=!0,i=kp(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Da(),l===o){e=Mi(t,e,i);break t}ke(t,e,l,i)}e=e.child}return e;case 26:return mo(t,e),t===null?(i=l1(e.type,null,e.pendingProps,null))?e.memoizedState=i:Nt||(i=e.type,t=e.pendingProps,l=Bo(ot.current).createElement(i),l[ht]=e,l[gt]=t,He(l,i,t),pe(l),e.stateNode=l):e.memoizedState=l1(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return At(e),t===null&&Nt&&(l=e.stateNode=n1(e.type,e.pendingProps,ot.current),Ue=e,Hn=!0,o=ae,ua(e.type)?(Vd=o,ae=Yn(l.firstChild)):ae=o),ke(t,e,e.pendingProps.children,i),mo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Nt&&((o=l=ae)&&(l=Lw(l,e.type,e.pendingProps,Hn),l!==null?(e.stateNode=l,Ue=e,ae=Yn(l.firstChild),Hn=!1,o=!0):o=!1),o||Zi(e)),At(e),o=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Dd(o,c)?l=null:g!==null&&Dd(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=Rf(t,e,Q5,null,null,i),Qs._currentValue=o),mo(t,e),ke(t,e,l,i),e.child;case 6:return t===null&&Nt&&((t=i=ae)&&(i=Vw(i,e.pendingProps,Hn),i!==null?(e.stateNode=i,Ue=e,ae=null,t=!0):t=!1),t||Zi(e)),null;case 13:return Fg(t,e,i);case 4:return St(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Oa(e,null,l,i):ke(t,e,l,i),e.child;case 11:return Ng(t,e,e.type,e.pendingProps,i);case 7:return ke(t,e,e.pendingProps,i),e.child;case 8:return ke(t,e,e.pendingProps.children,i),e.child;case 12:return ke(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,Ii(e,e.type,l.value),ke(t,e,l.children,i),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Ba(e),o=_e(o),l=l(o),e.flags|=1,ke(t,e,l,i),e.child;case 14:return Ug(t,e,e.type,e.pendingProps,i);case 15:return _g(t,e,e.type,e.pendingProps,i);case 19:return Kg(t,e,i);case 31:return nw(t,e,i);case 22:return kg(t,e,i,e.pendingProps);case 24:return Ba(e),l=_e(Ee),t===null?(o=vf(),o===null&&(o=$t,c=pf(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),e.memoizedState={parent:l,cache:o},Sf(e),Ii(e,Ee,o)):((t.lanes&i)!==0&&(xf(t,e),Rs(e,null,null,i),Cs()),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),Ii(e,Ee,l)):(l=c.cache,Ii(e,Ee,l),l!==o.cache&&yf(e,[Ee],i,!0))),ke(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Ai(t){t.flags|=4}function nd(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(xv())t.flags|=8192;else throw Va=Wr,bf}else t.flags&=-16777217}function Zg(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!c1(e))if(xv())t.flags|=8192;else throw Va=Wr,bf}function po(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ve():536870912,t.lanes|=e,Ml|=e)}function Vs(t,e){if(!Nt)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 le(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 aw(t,e,i){var l=e.pendingProps;switch(cf(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(e),null;case 1:return le(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),xi(Ee),Tt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(fl(e)?Ai(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,df())),le(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Ai(e),c!==null?(le(e),Zg(e,c)):(le(e),nd(e,o,null,l,i))):c?c!==t.memoizedState?(Ai(e),le(e),Zg(e,c)):(le(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Ai(e),le(e),nd(e,o,t,l,i)),null;case 27:if(De(e),i=ot.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return le(e),null}t=nt.current,fl(e)?Rp(e):(t=n1(o,l,i),e.stateNode=t,Ai(e))}return le(e),null;case 5:if(De(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return le(e),null}if(c=nt.current,fl(e))Rp(e);else{var g=Bo(ot.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}c[ht]=e,c[gt]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(He(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&&Ai(e)}}return le(e),nd(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Ai(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ot.current,fl(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,o=Ue,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ht]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Fv(t.nodeValue,i)),t||Zi(e,!0)}else t=Bo(t).createTextNode(l),t[ht]=e,e.stateNode=t}return le(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=fl(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[ht]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;le(e),t=!1}else i=df(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(xn(e),e):(xn(e),null);if((e.flags&128)!==0)throw Error(u(558))}return le(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=fl(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[ht]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;le(e),o=!1}else o=df(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(xn(e),e):(xn(e),null)}return xn(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),po(e,e.updateQueue),le(e),null);case 4:return Tt(),t===null&&Md(e.stateNode.containerInfo),le(e),null;case 10:return xi(e.type),le(e),null;case 19:if(k(ge),l=e.memoizedState,l===null)return le(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Vs(l,!1);else{if(he!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=no(t),c!==null){for(e.flags|=128,Vs(l,!1),t=c.updateQueue,e.updateQueue=t,po(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Ep(i,t),i=i.sibling;return J(ge,ge.current&1|2),Nt&&bi(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&fe()>xo&&(e.flags|=128,o=!0,Vs(l,!1),e.lanes=4194304)}else{if(!o)if(t=no(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,po(e,t),Vs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Nt)return le(e),null}else 2*fe()-l.renderingStartTime>xo&&i!==536870912&&(e.flags|=128,o=!0,Vs(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=fe(),t.sibling=null,i=ge.current,J(ge,o?i&1|2:i&1),Nt&&bi(e,l.treeForkCount),t):(le(e),null);case 22:case 23:return xn(e),Af(),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&&(le(e),e.subtreeFlags&6&&(e.flags|=8192)):le(e),i=e.updateQueue,i!==null&&po(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&&k(za),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),xi(Ee),le(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function lw(t,e){switch(cf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xi(Ee),Tt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return De(e),null;case 31:if(e.memoizedState!==null){if(xn(e),e.alternate===null)throw Error(u(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(xn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return k(ge),null;case 4:return Tt(),null;case 10:return xi(e.type),null;case 22:case 23:return xn(e),Af(),t!==null&&k(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return xi(Ee),null;case 25:return null;default:return null}}function Ig(t,e){switch(cf(e),e.tag){case 3:xi(Ee),Tt();break;case 26:case 27:case 5:De(e);break;case 4:Tt();break;case 31:e.memoizedState!==null&&xn(e);break;case 13:xn(e);break;case 19:k(ge);break;case 10:xi(e.type);break;case 22:case 23:xn(e),Af(),t!==null&&k(za);break;case 24:xi(Ee)}}function Os(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,g=i.inst;l=c(),g.destroy=l}i=i.next}while(i!==o)}}catch(x){Ft(e,e.return,x)}}function na(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 g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=e;var R=i,q=x;try{q()}catch($){Ft(o,R,$)}}}l=l.next}while(l!==c)}}catch($){Ft(e,e.return,$)}}function Jg(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Gp(e,i)}catch(l){Ft(t,t.return,l)}}}function Wg(t,e,i){i.props=Ua(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){Ft(t,e,l)}}function Ns(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){Ft(t,e,o)}}function si(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(o){Ft(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){Ft(t,e,o)}else i.current=null}function $g(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){Ft(t,t.return,o)}}function id(t,e,i){try{var l=t.stateNode;Cw(l,t.type,i,e),l[gt]=e}catch(o){Ft(t,t.return,o)}}function tv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ua(t.type)||t.tag===4}function ad(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||tv(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&&ua(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 ld(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=pi));else if(l!==4&&(l===27&&ua(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(ld(t,e,i),t=t.sibling;t!==null;)ld(t,e,i),t=t.sibling}function go(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&&ua(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(go(t,e,i),t=t.sibling;t!==null;)go(t,e,i),t=t.sibling}function ev(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);He(e,l,i),e[ht]=t,e[gt]=i}catch(c){Ft(t,t.return,c)}}var wi=!1,we=!1,sd=!1,nv=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function sw(t,e){if(t=t.containerInfo,Cd=_o,t=mp(t),Wc(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(xt){i=null;break t}var g=0,x=-1,R=-1,q=0,$=0,it=t,X=null;e:for(;;){for(var I;it!==i||o!==0&&it.nodeType!==3||(x=g+o),it!==c||l!==0&&it.nodeType!==3||(R=g+l),it.nodeType===3&&(g+=it.nodeValue.length),(I=it.firstChild)!==null;)X=it,it=I;for(;;){if(it===t)break e;if(X===i&&++q===o&&(x=g),X===c&&++$===l&&(R=g),(I=it.nextSibling)!==null)break;it=X,X=it.parentNode}it=I}i=x===-1||R===-1?null:{start:x,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(Rd={focusedElem:t,selectionRange:i},_o=!1,Oe=e;Oe!==null;)if(e=Oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Oe=t;else for(;Oe!==null;){switch(e=Oe,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 mt=Ua(i.type,o);t=l.getSnapshotBeforeUpdate(mt,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(xt){Ft(i,i.return,xt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Bd(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Bd(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,Oe=t;break}Oe=e.return}}function iv(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ri(t,i),l&4&&Os(5,i);break;case 1:if(Ri(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(g){Ft(i,i.return,g)}else{var o=Ua(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Ft(i,i.return,g)}}l&64&&Jg(i),l&512&&Ns(i,i.return);break;case 3:if(Ri(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{Gp(t,e)}catch(g){Ft(i,i.return,g)}}break;case 27:e===null&&l&4&&ev(i);case 26:case 5:Ri(t,i),e===null&&l&4&&$g(i),l&512&&Ns(i,i.return);break;case 12:Ri(t,i);break;case 31:Ri(t,i),l&4&&sv(t,i);break;case 13:Ri(t,i),l&4&&rv(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=yw.bind(null,i),Ow(t,i))));break;case 22:if(l=i.memoizedState!==null||wi,!l){e=e!==null&&e.memoizedState!==null||we,o=wi;var c=we;wi=l,(we=e)&&!c?Di(t,i,(i.subtreeFlags&8772)!==0):Ri(t,i),wi=o,we=c}break;case 30:break;default:Ri(t,i)}}function av(t){var e=t.alternate;e!==null&&(t.alternate=null,av(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&zn(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 oe=null,rn=!1;function Ci(t,e,i){for(i=i.child;i!==null;)lv(t,e,i),i=i.sibling}function lv(t,e,i){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Yt,i)}catch(c){}switch(i.tag){case 26:we||si(i,e),Ci(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:we||si(i,e);var l=oe,o=rn;ua(i.type)&&(oe=i.stateNode,rn=!1),Ci(t,e,i),Fs(i.stateNode),oe=l,rn=o;break;case 5:we||si(i,e);case 6:if(l=oe,o=rn,oe=null,Ci(t,e,i),oe=l,rn=o,oe!==null)if(rn)try{(oe.nodeType===9?oe.body:oe.nodeName==="HTML"?oe.ownerDocument.body:oe).removeChild(i.stateNode)}catch(c){Ft(i,e,c)}else try{oe.removeChild(i.stateNode)}catch(c){Ft(i,e,c)}break;case 18:oe!==null&&(rn?(t=oe,Jv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),zl(t)):Jv(oe,i.stateNode));break;case 4:l=oe,o=rn,oe=i.stateNode.containerInfo,rn=!0,Ci(t,e,i),oe=l,rn=o;break;case 0:case 11:case 14:case 15:na(2,i,e),we||na(4,i,e),Ci(t,e,i);break;case 1:we||(si(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Wg(i,e,l)),Ci(t,e,i);break;case 21:Ci(t,e,i);break;case 22:we=(l=we)||i.memoizedState!==null,Ci(t,e,i),we=l;break;default:Ci(t,e,i)}}function sv(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{zl(t)}catch(i){Ft(e,e.return,i)}}}function rv(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{zl(t)}catch(i){Ft(e,e.return,i)}}function rw(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new nv),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new nv),e;default:throw Error(u(435,t.tag))}}function vo(t,e){var i=rw(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var o=pw.bind(null,t,l);l.then(o,o)}})}function on(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=t,g=e,x=g;t:for(;x!==null;){switch(x.tag){case 27:if(ua(x.type)){oe=x.stateNode,rn=!1;break t}break;case 5:oe=x.stateNode,rn=!1;break t;case 3:case 4:oe=x.stateNode.containerInfo,rn=!0;break t}x=x.return}if(oe===null)throw Error(u(160));lv(c,g,o),oe=null,rn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ov(e,t),e=e.sibling}var In=null;function ov(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:on(e,t),un(t),l&4&&(na(3,t,t.return),Os(3,t),na(5,t,t.return));break;case 1:on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),l&64&&wi&&(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=In;if(on(e,t),un(t),l&512&&(we||i===null||si(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[ln]||c[ht]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),He(c,l,i),c[ht]=t,pe(c),l=c;break t;case"link":var g=o1("link","href",o).get(l+(i.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=o.createElement(l),He(c,l,i),o.head.appendChild(c);break;case"meta":if(g=o1("meta","content",o).get(l+(i.content||""))){for(x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=o.createElement(l),He(c,l,i),o.head.appendChild(c);break;default:throw Error(u(468,l))}c[ht]=t,pe(c),l=c}t.stateNode=l}else u1(o,t.type,t.stateNode);else t.stateNode=r1(o,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?u1(o,t.type,t.stateNode):r1(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&id(t,t.memoizedProps,i.memoizedProps)}break;case 27:on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),i!==null&&l&4&&id(t,t.memoizedProps,i.memoizedProps);break;case 5:if(on(e,t),un(t),l&512&&(we||i===null||si(i,i.return)),t.flags&32){o=t.stateNode;try{el(o,"")}catch(mt){Ft(t,t.return,mt)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,id(t,o,i!==null?i.memoizedProps:o)),l&1024&&(sd=!0);break;case 6:if(on(e,t),un(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(mt){Ft(t,t.return,mt)}}break;case 3:if(Vo=null,o=In,In=zo(e.containerInfo),on(e,t),In=o,un(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{zl(e.containerInfo)}catch(mt){Ft(t,t.return,mt)}sd&&(sd=!1,uv(t));break;case 4:l=In,In=zo(t.stateNode.containerInfo),on(e,t),un(t),In=l;break;case 12:on(e,t),un(t);break;case 31:on(e,t),un(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 13:on(e,t),un(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(So=fe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 22:o=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,q=wi,$=we;if(wi=q||o,we=$||R,on(e,t),we=$,wi=q,un(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(i===null||R||wi||we||_a(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){R=i=e;try{if(c=R.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=R.stateNode;var it=R.memoizedProps.style,X=it!=null&&it.hasOwnProperty("display")?it.display:null;x.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(mt){Ft(R,R.return,mt)}}}else if(e.tag===6){if(i===null){R=e;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(mt){Ft(R,R.return,mt)}}}else if(e.tag===18){if(i===null){R=e;try{var I=R.stateNode;o?Wv(I,!0):Wv(R.stateNode,!1)}catch(mt){Ft(R,R.return,mt)}}}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,vo(t,i))));break;case 19:on(e,t),un(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,vo(t,l)));break;case 30:break;case 21:break;default:on(e,t),un(t)}}function un(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(tv(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,c=ad(t);go(t,c,o);break;case 5:var g=i.stateNode;i.flags&32&&(el(g,""),i.flags&=-33);var x=ad(t);go(t,x,g);break;case 3:case 4:var R=i.stateNode.containerInfo,q=ad(t);ld(t,q,R);break;default:throw Error(u(161))}}catch($){Ft(t,t.return,$)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function uv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;uv(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ri(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)iv(t,e.alternate,e),e=e.sibling}function _a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:na(4,e,e.return),_a(e);break;case 1:si(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Wg(e,e.return,i),_a(e);break;case 27:Fs(e.stateNode);case 26:case 5:si(e,e.return),_a(e);break;case 22:e.memoizedState===null&&_a(e);break;case 30:_a(e);break;default:_a(e)}t=t.sibling}}function Di(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:Di(o,c,i),Os(4,c);break;case 1:if(Di(o,c,i),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(q){Ft(l,l.return,q)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Hp(R[o],x)}catch(q){Ft(l,l.return,q)}}i&&g&64&&Jg(c),Ns(c,c.return);break;case 27:ev(c);case 26:case 5:Di(o,c,i),i&&l===null&&g&4&&$g(c),Ns(c,c.return);break;case 12:Di(o,c,i);break;case 31:Di(o,c,i),i&&g&4&&sv(o,c);break;case 13:Di(o,c,i),i&&g&4&&rv(o,c);break;case 22:c.memoizedState===null&&Di(o,c,i),Ns(c,c.return);break;case 30:break;default:Di(o,c,i)}e=e.sibling}}function rd(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&&Ts(i))}function od(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ts(t))}function Jn(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cv(t,e,i,l),e=e.sibling}function cv(t,e,i,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Jn(t,e,i,l),o&2048&&Os(9,e);break;case 1:Jn(t,e,i,l);break;case 3:Jn(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&&Ts(t)));break;case 12:if(o&2048){Jn(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Ft(e,e.return,R)}}else Jn(t,e,i,l);break;case 31:Jn(t,e,i,l);break;case 13:Jn(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?Jn(t,e,i,l):Us(t,e):c._visibility&2?Jn(t,e,i,l):(c._visibility|=2,xl(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&rd(g,e);break;case 24:Jn(t,e,i,l),o&2048&&od(e.alternate,e);break;default:Jn(t,e,i,l)}}function xl(t,e,i,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,x=i,R=l,q=g.flags;switch(g.tag){case 0:case 11:case 15:xl(c,g,x,R,o),Os(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?xl(c,g,x,R,o):Us(c,g):($._visibility|=2,xl(c,g,x,R,o)),o&&q&2048&&rd(g.alternate,g);break;case 24:xl(c,g,x,R,o),o&&q&2048&&od(g.alternate,g);break;default:xl(c,g,x,R,o)}e=e.sibling}}function Us(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:Us(i,l),o&2048&&rd(l.alternate,l);break;case 24:Us(i,l),o&2048&&od(l.alternate,l);break;default:Us(i,l)}e=e.sibling}}var _s=8192;function Tl(t,e,i){if(t.subtreeFlags&_s)for(t=t.child;t!==null;)fv(t,e,i),t=t.sibling}function fv(t,e,i){switch(t.tag){case 26:Tl(t,e,i),t.flags&_s&&t.memoizedState!==null&&Kw(i,In,t.memoizedState,t.memoizedProps);break;case 5:Tl(t,e,i);break;case 3:case 4:var l=In;In=zo(t.stateNode.containerInfo),Tl(t,e,i),In=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=_s,_s=16777216,Tl(t,e,i),_s=l):Tl(t,e,i));break;default:Tl(t,e,i)}}function dv(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 ks(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];Oe=l,mv(l,t)}dv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hv(t),t=t.sibling}function hv(t){switch(t.tag){case 0:case 11:case 15:ks(t),t.flags&2048&&na(9,t,t.return);break;case 3:ks(t);break;case 12:ks(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,bo(t)):ks(t);break;default:ks(t)}}function bo(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];Oe=l,mv(l,t)}dv(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:na(8,e,e.return),bo(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,bo(e));break;default:bo(e)}t=t.sibling}}function mv(t,e){for(;Oe!==null;){var i=Oe;switch(i.tag){case 0:case 11:case 15:na(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:Ts(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Oe=l;else t:for(i=t;Oe!==null;){l=Oe;var o=l.sibling,c=l.return;if(av(l),l===i){Oe=null;break t}if(o!==null){o.return=c,Oe=o;break t}Oe=c}}}var ow={getCacheForType:function(t){var e=_e(Ee),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return _e(Ee).controller.signal}},uw=typeof WeakMap=="function"?WeakMap:Map,Gt=0,$t=null,zt=null,Vt=0,qt=0,Tn=null,ia=!1,El=!1,ud=!1,ji=0,he=0,aa=0,ka=0,cd=0,En=0,Ml=0,Hs=null,cn=null,fd=!1,So=0,yv=0,xo=1/0,To=null,la=null,Le=0,sa=null,Al=null,Bi=0,dd=0,hd=null,pv=null,Gs=0,md=null;function Mn(){return(Gt&2)!==0&&Vt!==0?Vt&-Vt:O.T!==null?Sd():qi()}function gv(){if(En===0)if((Vt&536870912)===0||Nt){var t=jn;jn<<=1,(jn&3932160)===0&&(jn=262144),En=t}else En=536870912;return t=Sn.current,t!==null&&(t.flags|=32),En}function fn(t,e,i){(t===$t&&(qt===2||qt===9)||t.cancelPendingCommit!==null)&&(wl(t,0),ra(t,Vt,En,!1)),an(t,i),((Gt&2)===0||t!==$t)&&(t===$t&&((Gt&2)===0&&(ka|=i),he===4&&ra(t,Vt,En,!1)),ri(t))}function vv(t,e,i){if((Gt&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||Bt(t,e),o=l?dw(t,e):pd(t,e,!0),c=l;do{if(o===0){El&&!l&&ra(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!cw(i)){o=pd(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var x=t;o=Hs;var R=x.current.memoizedState.isDehydrated;if(R&&(wl(x,g).flags|=256),g=pd(x,g,!1),g!==2){if(ud&&!R){x.errorRecoveryDisabledLanes|=c,ka|=c,o=4;break t}c=cn,cn=o,c!==null&&(cn===null?cn=c:cn.push.apply(cn,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){wl(t,0),ra(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:ra(l,e,En,!ia);break t;case 2:cn=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=So+300-fe(),10<o)){if(ra(l,e,En,!ia),gn(l,0,!0)!==0)break t;Bi=e,l.timeoutHandle=Zv(bv.bind(null,l,i,cn,To,fd,e,En,ka,Ml,ia,c,"Throttled",-0,0),o);break t}bv(l,i,cn,To,fd,e,En,ka,Ml,ia,c,null,-0,0)}}break}while(!0);ri(t)}function bv(t,e,i,l,o,c,g,x,R,q,$,it,X,I){if(t.timeoutHandle=-1,it=e.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pi},fv(e,c,it);var mt=(c&62914560)===c?So-fe():(c&4194048)===c?yv-fe():0;if(mt=Qw(it,mt),mt!==null){Bi=c,t.cancelPendingCommit=mt(Cv.bind(null,t,e,c,i,l,o,g,x,R,$,it,null,X,I)),ra(t,c,g,!q);return}}Cv(t,e,c,i,l,o,g,x,R)}function cw(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(!vn(c(),o))return!1}catch(g){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 ra(t,e,i,l){e&=~cd,e&=~ka,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-re(o),g=1<<c;l[c]=-1,o&=~g}i!==0&&Qn(t,i,e)}function Eo(){return(Gt&6)===0?(Ys(0),!1):!0}function yd(){if(zt!==null){if(qt===0)var t=zt.return;else t=zt,Si=ja=null,Bf(t),pl=null,Ms=0,t=zt;for(;t!==null;)Ig(t.alternate,t),t=t.return;zt=null}}function wl(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,jw(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Bi=0,yd(),$t=t,zt=i=vi(t.current,null),Vt=e,qt=0,Tn=null,ia=!1,El=Bt(t,e),ud=!1,Ml=En=cd=ka=aa=he=0,cn=Hs=null,fd=!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-re(l),c=1<<o;e|=t[o],l&=~c}return ji=e,Pr(),i}function Sv(t,e){Ct=null,O.H=zs,e===yl||e===Jr?(e=Np(),qt=3):e===bf?(e=Np(),qt=4):qt=e===Kf?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Tn=e,zt===null&&(he=1,fo(t,Un(e,t.current)))}function xv(){var t=Sn.current;return t===null?!0:(Vt&4194048)===Vt?Gn===null:(Vt&62914560)===Vt||(Vt&536870912)!==0?t===Gn:!1}function Tv(){var t=O.H;return O.H=zs,t===null?zs:t}function Ev(){var t=O.A;return O.A=ow,t}function Mo(){he=4,ia||(Vt&4194048)!==Vt&&Sn.current!==null||(El=!0),(aa&134217727)===0&&(ka&134217727)===0||$t===null||ra($t,Vt,En,!1)}function pd(t,e,i){var l=Gt;Gt|=2;var o=Tv(),c=Ev();($t!==t||Vt!==e)&&(To=null,wl(t,e)),e=!1;var g=he;t:do try{if(qt!==0&&zt!==null){var x=zt,R=Tn;switch(qt){case 8:yd(),g=6;break t;case 3:case 2:case 9:case 6:Sn.current===null&&(e=!0);var q=qt;if(qt=0,Tn=null,Cl(t,x,R,q),i&&El){g=0;break t}break;default:q=qt,qt=0,Tn=null,Cl(t,x,R,q)}}fw(),g=he;break}catch($){Sv(t,$)}while(!0);return e&&t.shellSuspendCounter++,Si=ja=null,Gt=l,O.H=o,O.A=c,zt===null&&($t=null,Vt=0,Pr()),g}function fw(){for(;zt!==null;)Mv(zt)}function dw(t,e){var i=Gt;Gt|=2;var l=Tv(),o=Ev();$t!==t||Vt!==e?(To=null,xo=fe()+500,wl(t,e)):El=Bt(t,e);t:do try{if(qt!==0&&zt!==null){e=zt;var c=Tn;e:switch(qt){case 1:qt=0,Tn=null,Cl(t,e,c,1);break;case 2:case 9:if(Vp(c)){qt=0,Tn=null,Av(e);break}e=function(){qt!==2&&qt!==9||$t!==t||(qt=7),ri(t)},c.then(e,e);break t;case 3:qt=7;break t;case 4:qt=5;break t;case 7:Vp(c)?(qt=0,Tn=null,Av(e)):(qt=0,Tn=null,Cl(t,e,c,7));break;case 5:var g=null;switch(zt.tag){case 26:g=zt.memoizedState;case 5:case 27:var x=zt;if(g?c1(g):x.stateNode.complete){qt=0,Tn=null;var R=x.sibling;if(R!==null)zt=R;else{var q=x.return;q!==null?(zt=q,Ao(q)):zt=null}break e}}qt=0,Tn=null,Cl(t,e,c,5);break;case 6:qt=0,Tn=null,Cl(t,e,c,6);break;case 8:yd(),he=6;break t;default:throw Error(u(462))}}hw();break}catch($){Sv(t,$)}while(!0);return Si=ja=null,O.H=l,O.A=o,Gt=i,zt!==null?0:($t=null,Vt=0,Pr(),he)}function hw(){for(;zt!==null&&!ze();)Mv(zt)}function Mv(t){var e=Qg(t.alternate,t,ji);t.memoizedProps=t.pendingProps,e===null?Ao(t):zt=e}function Av(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Yg(i,e,e.pendingProps,e.type,void 0,Vt);break;case 11:e=Yg(i,e,e.pendingProps,e.type.render,e.ref,Vt);break;case 5:Bf(e);default:Ig(i,e),e=zt=Ep(e,ji),e=Qg(i,e,ji)}t.memoizedProps=t.pendingProps,e===null?Ao(t):zt=e}function Cl(t,e,i,l){Si=ja=null,Bf(e),pl=null,Ms=0;var o=e.return;try{if(ew(t,o,e,i,Vt)){he=1,fo(t,Un(i,t.current)),zt=null;return}}catch(c){if(o!==null)throw zt=o,c;he=1,fo(t,Un(i,t.current)),zt=null;return}e.flags&32768?(Nt||l===1?t=!0:El||(Vt&536870912)!==0?t=!1:(ia=t=!0,(l===2||l===9||l===3||l===6)&&(l=Sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),wv(e,t)):Ao(e)}function Ao(t){var e=t;do{if((e.flags&32768)!==0){wv(e,ia);return}t=e.return;var i=aw(e.alternate,e,ji);if(i!==null){zt=i;return}if(e=e.sibling,e!==null){zt=e;return}zt=e=t}while(e!==null);he===0&&(he=5)}function wv(t,e){do{var i=lw(t.alternate,t);if(i!==null){i.flags&=32767,zt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){zt=t;return}zt=t=i}while(t!==null);he=6,zt=null}function Cv(t,e,i,l,o,c,g,x,R){t.cancelPendingCommit=null;do wo();while(Le!==0);if((Gt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=af,ei(t,i,c,g,x,R),t===$t&&(zt=$t=null,Vt=0),Al=e,sa=t,Bi=i,dd=c,hd=o,pv=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,gw(Xt,function(){return zv(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,o=Y.p,Y.p=2,g=Gt,Gt|=4;try{sw(t,e,i)}finally{Gt=g,Y.p=o,O.T=l}}Le=1,Rv(),Dv(),jv()}}function Rv(){if(Le===1){Le=0;var t=sa,e=Al,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=O.T,O.T=null;var l=Y.p;Y.p=2;var o=Gt;Gt|=4;try{ov(e,t);var c=Rd,g=mp(t.containerInfo),x=c.focusedElem,R=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&hp(x.ownerDocument.documentElement,x)){if(R!==null&&Wc(x)){var q=R.start,$=R.end;if($===void 0&&($=q),"selectionStart"in x)x.selectionStart=q,x.selectionEnd=Math.min($,x.value.length);else{var it=x.ownerDocument||document,X=it&&it.defaultView||window;if(X.getSelection){var I=X.getSelection(),mt=x.textContent.length,xt=Math.min(R.start,mt),Zt=R.end===void 0?xt:Math.min(R.end,mt);!I.extend&&xt>Zt&&(g=Zt,Zt=xt,xt=g);var U=dp(x,xt),z=dp(x,Zt);if(U&&z&&(I.rangeCount!==1||I.anchorNode!==U.node||I.anchorOffset!==U.offset||I.focusNode!==z.node||I.focusOffset!==z.offset)){var P=it.createRange();P.setStart(U.node,U.offset),I.removeAllRanges(),xt>Zt?(I.addRange(P),I.extend(z.node,z.offset)):(P.setEnd(z.node,z.offset),I.addRange(P))}}}}for(it=[],I=x;I=I.parentNode;)I.nodeType===1&&it.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<it.length;x++){var et=it[x];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}_o=!!Cd,Rd=Cd=null}finally{Gt=o,Y.p=l,O.T=i}}t.current=e,Le=2}}function Dv(){if(Le===2){Le=0;var t=sa,e=Al,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=O.T,O.T=null;var l=Y.p;Y.p=2;var o=Gt;Gt|=4;try{iv(t,e.alternate,e)}finally{Gt=o,Y.p=l,O.T=i}}Le=3}}function jv(){if(Le===4||Le===3){Le=0,Pe();var t=sa,e=Al,i=Bi,l=pv;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Le=5:(Le=0,Al=sa=null,Bv(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(la=null),di(i),e=e.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Yt,e,void 0,(e.current.flags&128)===128)}catch(R){}if(l!==null){e=O.T,o=Y.p,Y.p=2,O.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{O.T=e,Y.p=o}}(Bi&3)!==0&&wo(),ri(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===md?Gs++:(Gs=0,md=t):Gs=0,Ys(0)}}function Bv(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ts(e)))}function wo(){return Rv(),Dv(),jv(),zv()}function zv(){if(Le!==5)return!1;var t=sa,e=dd;dd=0;var i=di(Bi),l=O.T,o=Y.p;try{Y.p=32>i?32:i,O.T=null,i=hd,hd=null;var c=sa,g=Bi;if(Le=0,Al=sa=null,Bi=0,(Gt&6)!==0)throw Error(u(331));var x=Gt;if(Gt|=4,hv(c.current),cv(c,c.current,g,i),Gt=x,Ys(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Yt,c)}catch(R){}return!0}finally{Y.p=o,O.T=l,Bv(t,e)}}function Lv(t,e,i){e=Un(i,e),e=Xf(t.stateNode,e,2),t=$i(t,e,2),t!==null&&(an(t,2),ri(t))}function Ft(t,e,i){if(t.tag===3)Lv(t,t,i);else for(;e!==null;){if(e.tag===3){Lv(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(la===null||!la.has(l))){t=Un(i,t),i=Vg(2),l=$i(e,i,2),l!==null&&(Og(i,l,e,t),an(l,2),ri(l));break}}e=e.return}}function gd(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new uw;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)||(ud=!0,o.add(i),t=mw.bind(null,t,e,i),e.then(t,t))}function mw(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,$t===t&&(Vt&i)===i&&(he===4||he===3&&(Vt&62914560)===Vt&&300>fe()-So?(Gt&2)===0&&wl(t,0):cd|=i,Ml===Vt&&(Ml=0)),ri(t)}function Vv(t,e){e===0&&(e=Ve()),t=Ca(t,e),t!==null&&(an(t,e),ri(t))}function yw(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),Vv(t,i)}function pw(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),Vv(t,i)}function gw(t,e){return xe(t,e)}var Co=null,Rl=null,vd=!1,Ro=!1,bd=!1,oa=0;function ri(t){t!==Rl&&t.next===null&&(Rl===null?Co=Rl=t:Rl=Rl.next=t),Ro=!0,vd||(vd=!0,bw())}function Ys(t,e){if(!bd&&Ro){bd=!0;do for(var i=!1,l=Co;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-re(42|t)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,_v(l,c))}else c=Vt,c=gn(l,l===$t?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Bt(l,c)||(i=!0,_v(l,c));l=l.next}while(i);bd=!1}}function vw(){Ov()}function Ov(){Ro=vd=!1;var t=0;oa!==0&&Dw()&&(t=oa);for(var e=fe(),i=null,l=Co;l!==null;){var o=l.next,c=Nv(l,e);c===0?(l.next=null,i===null?Co=o:i.next=o,o===null&&(Rl=i)):(i=l,(t!==0||(c&3)!==0)&&(Ro=!0)),l=o}Le!==0&&Le!==5||Ys(t),oa!==0&&(oa=0)}function Nv(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-re(c),x=1<<g,R=o[g];R===-1?((x&i)===0||(x&l)!==0)&&(o[g]=Fe(x,e)):R<=e&&(t.expiredLanes|=x),c&=~x}if(e=$t,i=Vt,i=gn(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(qt===2||qt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Te(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Bt(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&Te(l),di(i)){case 2:case 8:i=Et;break;case 32:i=Xt;break;case 268435456:i=kt;break;default:i=Xt}return l=Uv.bind(null,t),i=xe(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&Te(l),t.callbackPriority=2,t.callbackNode=null,2}function Uv(t,e){if(Le!==0&&Le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wo()&&t.callbackNode!==i)return null;var l=Vt;return l=gn(t,t===$t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(vv(t,l,e),Nv(t,fe()),t.callbackNode!=null&&t.callbackNode===i?Uv.bind(null,t):null)}function _v(t,e){if(wo())return null;vv(t,e,!0)}function bw(){Bw(function(){(Gt&6)!==0?xe(lt,vw):Ov()})}function Sd(){if(oa===0){var t=hl;t===0&&(t=Dn,Dn<<=1,(Dn&261888)===0&&(Dn=256)),oa=t}return oa}function kv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Or(""+t)}function Hv(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 Sw(t,e,i,l,o){if(e==="submit"&&i&&i.stateNode===o){var c=kv((o[gt]||null).action),g=l.submitter;g&&(e=(e=g[gt]||null)?kv(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var x=new kr("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(oa!==0){var R=g?Hv(o,g):new FormData(o);Hf(i,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(x.preventDefault(),R=g?Hv(o,g):new FormData(o),Hf(i,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var xd=0;xd<nf.length;xd++){var Td=nf[xd],xw=Td.toLowerCase(),Tw=Td[0].toUpperCase()+Td.slice(1);Zn(xw,"on"+Tw)}Zn(gp,"onAnimationEnd"),Zn(vp,"onAnimationIteration"),Zn(bp,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(_5,"onTransitionRun"),Zn(k5,"onTransitionStart"),Zn(H5,"onTransitionCancel"),Zn(Sp,"onTransitionEnd"),mi("onMouseEnter",["mouseout","mouseover"]),mi("onMouseLeave",["mouseout","mouseover"]),mi("onPointerEnter",["pointerout","pointerover"]),mi("onPointerLeave",["pointerout","pointerover"]),ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ps="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(" "),Ew=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ps));function Gv(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 g=l.length-1;0<=g;g--){var x=l[g],R=x.instance,q=x.currentTarget;if(x=x.listener,R!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=q;try{c(o)}catch($){Yr($)}o.currentTarget=null,c=R}else for(g=0;g<l.length;g++){if(x=l[g],R=x.instance,q=x.currentTarget,x=x.listener,R!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=q;try{c(o)}catch($){Yr($)}o.currentTarget=null,c=R}}}}function Lt(t,e){var i=e[Wt];i===void 0&&(i=e[Wt]=new Set);var l=t+"__bubble";i.has(l)||(Yv(e,t,2,!1),i.add(l))}function Ed(t,e,i){var l=0;e&&(l|=4),Yv(i,t,l,e)}var Do="_reactListening"+Math.random().toString(36).slice(2);function Md(t){if(!t[Do]){t[Do]=!0,as.forEach(function(i){i!=="selectionchange"&&(Ew.has(i)||Ed(i,!1,t),Ed(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Do]||(e[Do]=!0,Ed("selectionchange",!1,e))}}function Yv(t,e,i,l){switch(g1(e)){case 2:var o=Jw;break;case 8:o=Ww;break;default:o=kd}i=o.bind(null,e,i,t),o=void 0,!Pc||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 Ad(t,e,i,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=l.return;g!==null;){var R=g.tag;if((R===3||R===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=Ln(x),g===null)return;if(R=g.tag,R===5||R===6||R===26||R===27){l=c=g;continue t}x=x.parentNode}}l=l.return}Ky(function(){var q=c,$=Gc(i),it=[];t:{var X=xp.get(t);if(X!==void 0){var I=kr,mt=t;switch(t){case"keypress":if(Ur(i)===0)break t;case"keydown":case"keyup":I=p5;break;case"focusin":mt="focus",I=Kc;break;case"focusout":mt="blur",I=Kc;break;case"beforeblur":case"afterblur":I=Kc;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":I=Iy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=a5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=b5;break;case gp:case vp:case bp:I=r5;break;case Sp:I=x5;break;case"scroll":case"scrollend":I=n5;break;case"wheel":I=E5;break;case"copy":case"cut":case"paste":I=u5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Wy;break;case"toggle":case"beforetoggle":I=A5}var xt=(e&4)!==0,Zt=!xt&&(t==="scroll"||t==="scrollend"),U=xt?X!==null?X+"Capture":null:X;xt=[];for(var z=q,P;z!==null;){var et=z;if(P=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||P===null||U===null||(et=fs(z,U),et!=null&&xt.push(qs(z,et,P))),Zt)break;z=z.return}0<xt.length&&(X=new I(X,mt,null,i,$),it.push({event:X,listeners:xt}))}}if((e&7)===0){t:{if(X=t==="mouseover"||t==="pointerover",I=t==="mouseout"||t==="pointerout",X&&i!==Hc&&(mt=i.relatedTarget||i.fromElement)&&(Ln(mt)||mt[Ht]))break t;if((I||X)&&(X=$.window===$?$:(X=$.ownerDocument)?X.defaultView||X.parentWindow:window,I?(mt=i.relatedTarget||i.toElement,I=q,mt=mt?Ln(mt):null,mt!==null&&(Zt=d(mt),xt=mt.tag,mt!==Zt||xt!==5&&xt!==27&&xt!==6)&&(mt=null)):(I=null,mt=q),I!==mt)){if(xt=Iy,et="onMouseLeave",U="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(xt=Wy,et="onPointerLeave",U="onPointerEnter",z="pointer"),Zt=I==null?X:Fi(I),P=mt==null?X:Fi(mt),X=new xt(et,z+"leave",I,i,$),X.target=Zt,X.relatedTarget=P,et=null,Ln($)===q&&(xt=new xt(U,z+"enter",mt,i,$),xt.target=P,xt.relatedTarget=Zt,et=xt),Zt=et,I&&mt)e:{for(xt=Mw,U=I,z=mt,P=0,et=U;et;et=xt(et))P++;et=0;for(var bt=z;bt;bt=xt(bt))et++;for(;0<P-et;)U=xt(U),P--;for(;0<et-P;)z=xt(z),et--;for(;P--;){if(U===z||z!==null&&U===z.alternate){xt=U;break e}U=xt(U),z=xt(z)}xt=null}else xt=null;I!==null&&Pv(it,X,I,xt,!1),mt!==null&&Zt!==null&&Pv(it,Zt,mt,xt,!0)}}t:{if(X=q?Fi(q):window,I=X.nodeName&&X.nodeName.toLowerCase(),I==="select"||I==="input"&&X.type==="file")var Ut=sp;else if(ap(X))if(rp)Ut=O5;else{Ut=L5;var vt=z5}else I=X.nodeName,!I||I.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?q&&kc(q.elementType)&&(Ut=sp):Ut=V5;if(Ut&&(Ut=Ut(t,q))){lp(it,Ut,i,$);break t}vt&&vt(t,X,q),t==="focusout"&&q&&X.type==="number"&&q.memoizedProps.value!=null&&yi(X,"number",X.value)}switch(vt=q?Fi(q):window,t){case"focusin":(ap(vt)||vt.contentEditable==="true")&&(ll=vt,$c=q,bs=null);break;case"focusout":bs=$c=ll=null;break;case"mousedown":tf=!0;break;case"contextmenu":case"mouseup":case"dragend":tf=!1,yp(it,i,$);break;case"selectionchange":if(U5)break;case"keydown":case"keyup":yp(it,i,$)}var Rt;if(Zc)t:{switch(t){case"compositionstart":var Ot="onCompositionStart";break t;case"compositionend":Ot="onCompositionEnd";break t;case"compositionupdate":Ot="onCompositionUpdate";break t}Ot=void 0}else al?np(t,i)&&(Ot="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ot="onCompositionStart");Ot&&($y&&i.locale!=="ko"&&(al||Ot!=="onCompositionStart"?Ot==="onCompositionEnd"&&al&&(Rt=Qy()):(Xi=$,qc="value"in Xi?Xi.value:Xi.textContent,al=!0)),vt=jo(q,Ot),0<vt.length&&(Ot=new Jy(Ot,t,null,i,$),it.push({event:Ot,listeners:vt}),Rt?Ot.data=Rt:(Rt=ip(i),Rt!==null&&(Ot.data=Rt)))),(Rt=C5?R5(t,i):D5(t,i))&&(Ot=jo(q,"onBeforeInput"),0<Ot.length&&(vt=new Jy("onBeforeInput","beforeinput",null,i,$),it.push({event:vt,listeners:Ot}),vt.data=Rt)),Sw(it,t,q,i,$)}Gv(it,e)})}function qs(t,e,i){return{instance:t,listener:e,currentTarget:i}}function jo(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=fs(t,i),o!=null&&l.unshift(qs(t,o,c)),o=fs(t,e),o!=null&&l.push(qs(t,o,c))),t.tag===3)return l;t=t.return}return[]}function Mw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Pv(t,e,i,l,o){for(var c=e._reactName,g=[];i!==null&&i!==l;){var x=i,R=x.alternate,q=x.stateNode;if(x=x.tag,R!==null&&R===l)break;x!==5&&x!==26&&x!==27||q===null||(R=q,o?(q=fs(i,c),q!=null&&g.unshift(qs(i,q,R))):o||(q=fs(i,c),q!=null&&g.push(qs(i,q,R)))),i=i.return}g.length!==0&&t.push({event:e,listeners:g})}var Aw=/\r\n?/g,ww=/\u0000|\uFFFD/g;function qv(t){return(typeof t=="string"?t:""+t).replace(Aw,`
9
+ `).replace(ww,"")}function Fv(t,e){return e=qv(e),qv(t)===e}function Qt(t,e,i,l,o,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||el(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&el(t,""+l);break;case"className":Ta(t,"class",l);break;case"tabIndex":Ta(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ta(t,i,l);break;case"style":Fy(t,l,c);break;case"data":if(e!=="object"){Ta(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=Or(""+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"&&Qt(t,e,"name",o.name,o,null),Qt(t,e,"formEncType",o.formEncType,o,null),Qt(t,e,"formMethod",o.formMethod,o,null),Qt(t,e,"formTarget",o.formTarget,o,null)):(Qt(t,e,"encType",o.encType,o,null),Qt(t,e,"method",o.method,o,null),Qt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Or(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=pi);break;case"onScroll":l!=null&&Lt("scroll",t);break;case"onScrollEnd":l!=null&&Lt("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=Or(""+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":Lt("beforetoggle",t),Lt("toggle",t),xa(t,"popover",l);break;case"xlinkActuate":On(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":On(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":On(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":On(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":On(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":On(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":On(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":On(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":On(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xa(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=t5.get(i)||i,xa(t,i,l))}}function wd(t,e,i,l,o,c){switch(i){case"style":Fy(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"?el(t,l):(typeof l=="number"||typeof l=="bigint")&&el(t,""+l);break;case"onScroll":l!=null&&Lt("scroll",t);break;case"onScrollEnd":l!=null&&Lt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ls.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[gt]||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,""):xa(t,i,l)}}}function He(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",t),Lt("load",t);var l=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var g=i[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Qt(t,e,c,g,i,null)}}o&&Qt(t,e,"srcSet",i.srcSet,i,null),l&&Qt(t,e,"src",i.src,i,null);return;case"input":Lt("invalid",t);var x=c=g=o=null,R=null,q=null;for(l in i)if(i.hasOwnProperty(l)){var $=i[l];if($!=null)switch(l){case"name":o=$;break;case"type":g=$;break;case"checked":R=$;break;case"defaultChecked":q=$;break;case"value":c=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(u(137,e));break;default:Qt(t,e,l,$,i,null)}}cs(t,c,x,R,q,g,o,!1);return;case"select":Lt("invalid",t),l=g=c=null;for(o in i)if(i.hasOwnProperty(o)&&(x=i[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Qt(t,e,o,x,i,null)}e=c,i=g,t.multiple=!!l,e!=null?tl(t,!!l,e,!1):i!=null&&tl(t,!!l,i,!0);return;case"textarea":Lt("invalid",t),c=o=l=null;for(g in i)if(i.hasOwnProperty(g)&&(x=i[g],x!=null))switch(g){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:Qt(t,e,g,x,i,null)}Py(t,l,o,c);return;case"option":for(R in i)i.hasOwnProperty(R)&&(l=i[R],l!=null)&&(R==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Qt(t,e,R,l,i,null));return;case"dialog":Lt("beforetoggle",t),Lt("toggle",t),Lt("cancel",t),Lt("close",t);break;case"iframe":case"object":Lt("load",t);break;case"video":case"audio":for(l=0;l<Ps.length;l++)Lt(Ps[l],t);break;case"image":Lt("error",t),Lt("load",t);break;case"details":Lt("toggle",t);break;case"embed":case"source":case"link":Lt("error",t),Lt("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(q in i)if(i.hasOwnProperty(q)&&(l=i[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Qt(t,e,q,l,i,null)}return;default:if(kc(e)){for($ in i)i.hasOwnProperty($)&&(l=i[$],l!==void 0&&wd(t,e,$,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Qt(t,e,x,l,i,null))}function Cw(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,g=null,x=null,R=null,q=null,$=null;for(I in i){var it=i[I];if(i.hasOwnProperty(I)&&it!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":R=it;default:l.hasOwnProperty(I)||Qt(t,e,I,null,l,it)}}for(var X in l){var I=l[X];if(it=i[X],l.hasOwnProperty(X)&&(I!=null||it!=null))switch(X){case"type":c=I;break;case"name":o=I;break;case"checked":q=I;break;case"defaultChecked":$=I;break;case"value":g=I;break;case"defaultValue":x=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,e));break;default:I!==it&&Qt(t,e,X,I,l,it)}}$a(t,g,x,R,q,$,c,o);return;case"select":I=g=x=X=null;for(c in i)if(R=i[c],i.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":I=R;default:l.hasOwnProperty(c)||Qt(t,e,c,null,l,R)}for(o in l)if(c=l[o],R=i[o],l.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":X=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==R&&Qt(t,e,o,c,l,R)}e=x,i=g,l=I,X!=null?tl(t,!!i,X,!1):!!l!=!!i&&(e!=null?tl(t,!!i,e,!0):tl(t,!!i,i?[]:"",!1));return;case"textarea":I=X=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:Qt(t,e,x,null,l,o)}for(g in l)if(o=l[g],c=i[g],l.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":X=o;break;case"defaultValue":I=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Qt(t,e,g,o,l,c)}Yy(t,X,I);return;case"option":for(var mt in i)X=i[mt],i.hasOwnProperty(mt)&&X!=null&&!l.hasOwnProperty(mt)&&(mt==="selected"?t.selected=!1:Qt(t,e,mt,null,l,X));for(R in l)X=l[R],I=i[R],l.hasOwnProperty(R)&&X!==I&&(X!=null||I!=null)&&(R==="selected"?t.selected=X&&typeof X!="function"&&typeof X!="symbol":Qt(t,e,R,X,l,I));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 xt in i)X=i[xt],i.hasOwnProperty(xt)&&X!=null&&!l.hasOwnProperty(xt)&&Qt(t,e,xt,null,l,X);for(q in l)if(X=l[q],I=i[q],l.hasOwnProperty(q)&&X!==I&&(X!=null||I!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,e));break;default:Qt(t,e,q,X,l,I)}return;default:if(kc(e)){for(var Zt in i)X=i[Zt],i.hasOwnProperty(Zt)&&X!==void 0&&!l.hasOwnProperty(Zt)&&wd(t,e,Zt,void 0,l,X);for($ in l)X=l[$],I=i[$],!l.hasOwnProperty($)||X===I||X===void 0&&I===void 0||wd(t,e,$,X,l,I);return}}for(var U in i)X=i[U],i.hasOwnProperty(U)&&X!=null&&!l.hasOwnProperty(U)&&Qt(t,e,U,null,l,X);for(it in l)X=l[it],I=i[it],!l.hasOwnProperty(it)||X===I||X==null&&I==null||Qt(t,e,it,X,l,I)}function Xv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rw(){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,g=o.initiatorType,x=o.duration;if(c&&x&&Xv(g)){for(g=0,x=o.responseEnd,l+=1;l<i.length;l++){var R=i[l],q=R.startTime;if(q>x)break;var $=R.transferSize,it=R.initiatorType;$&&Xv(it)&&(R=R.responseEnd,g+=$*(R<x?1:(x-q)/(R-q)))}if(--l,e+=8*(c+g)/(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 Cd=null,Rd=null;function Bo(t){return t.nodeType===9?t:t.ownerDocument}function Kv(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 Qv(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 Dd(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 jd=null;function Dw(){var t=window.event;return t&&t.type==="popstate"?t===jd?!1:(jd=t,!0):(jd=null,!1)}var Zv=typeof setTimeout=="function"?setTimeout:void 0,jw=typeof clearTimeout=="function"?clearTimeout:void 0,Iv=typeof Promise=="function"?Promise:void 0,Bw=typeof queueMicrotask=="function"?queueMicrotask:typeof Iv!="undefined"?function(t){return Iv.resolve(null).then(t).catch(zw)}:Zv;function zw(t){setTimeout(function(){throw t})}function ua(t){return t==="head"}function Jv(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),zl(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Fs(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Fs(i);for(var c=i.firstChild;c;){var g=c.nextSibling,x=c.nodeName;c[ln]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=g}}else i==="body"&&Fs(t.ownerDocument.body);i=o}while(i);zl(e)}function Wv(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 Bd(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":Bd(i),zn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Lw(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[ln])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=Yn(t.nextSibling),t===null)break}return null}function Vw(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Yn(t.nextSibling),t===null))return null;return t}function $v(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Yn(t.nextSibling),t===null))return null;return t}function zd(t){return t.data==="$?"||t.data==="$~"}function Ld(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ow(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 Yn(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 Vd=null;function t1(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Yn(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function e1(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 n1(t,e,i){switch(e=Bo(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 Fs(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);zn(t)}var Pn=new Map,i1=new Set;function zo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zi=Y.d;Y.d={f:Nw,r:Uw,D:_w,C:kw,L:Hw,m:Gw,X:Pw,S:Yw,M:qw};function Nw(){var t=zi.f(),e=Eo();return t||e}function Uw(t){var e=Vn(t);e!==null&&e.tag===5&&e.type==="form"?Sg(e):zi.r(t)}var Dl=typeof document=="undefined"?null:document;function a1(t,e,i){var l=Dl;if(l&&typeof e=="string"&&e){var o=We(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),i1.has(o)||(i1.add(o),t={rel:t,crossOrigin:i,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),He(e,"link",t),pe(e),l.head.appendChild(e)))}}function _w(t){zi.D(t),a1("dns-prefetch",t,null)}function kw(t,e){zi.C(t,e),a1("preconnect",t,e)}function Hw(t,e,i){zi.L(t,e,i);var l=Dl;if(l&&t&&e){var o='link[rel="preload"][as="'+We(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+We(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+We(i.imageSizes)+'"]')):o+='[href="'+We(t)+'"]';var c=o;switch(e){case"style":c=jl(t);break;case"script":c=Bl(t)}Pn.has(c)||(t=b({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Pn.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Xs(c))||e==="script"&&l.querySelector(Ks(c))||(e=l.createElement("link"),He(e,"link",t),pe(e),l.head.appendChild(e)))}}function Gw(t,e){zi.m(t,e);var i=Dl;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+We(l)+'"][href="'+We(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Bl(t)}if(!Pn.has(c)&&(t=b({rel:"modulepreload",href:t},e),Pn.set(c,t),i.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ks(c)))return}l=i.createElement("link"),He(l,"link",t),pe(l),i.head.appendChild(l)}}}function Yw(t,e,i){zi.S(t,e,i);var l=Dl;if(l&&t){var o=hi(l).hoistableStyles,c=jl(t);e=e||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(Xs(c)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Pn.get(c))&&Od(t,i);var R=g=l.createElement("link");pe(R),He(R,"link",t),R._p=new Promise(function(q,$){R.onload=q,R.onerror=$}),R.addEventListener("load",function(){x.loading|=1}),R.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Lo(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function Pw(t,e){zi.X(t,e);var i=Dl;if(i&&t){var l=hi(i).hoistableScripts,o=Bl(t),c=l.get(o);c||(c=i.querySelector(Ks(o)),c||(t=b({src:t,async:!0},e),(e=Pn.get(o))&&Nd(t,e),c=i.createElement("script"),pe(c),He(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function qw(t,e){zi.M(t,e);var i=Dl;if(i&&t){var l=hi(i).hoistableScripts,o=Bl(t),c=l.get(o);c||(c=i.querySelector(Ks(o)),c||(t=b({src:t,async:!0,type:"module"},e),(e=Pn.get(o))&&Nd(t,e),c=i.createElement("script"),pe(c),He(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function l1(t,e,i,l){var o=(o=ot.current)?zo(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=jl(i.href),i=hi(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=jl(i.href);var c=hi(o).hoistableStyles,g=c.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=o.querySelector(Xs(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Pn.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},Pn.set(t,i),c||Fw(o,t,i,g.state))),e&&l===null)throw Error(u(528,""));return g}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=Bl(i),i=hi(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 jl(t){return'href="'+We(t)+'"'}function Xs(t){return'link[rel="stylesheet"]['+t+"]"}function s1(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Fw(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}),He(e,"link",i),pe(e),t.head.appendChild(e))}function Bl(t){return'[src="'+We(t)+'"]'}function Ks(t){return"script[async]"+t}function r1(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+We(i.href)+'"]');if(l)return e.instance=l,pe(l),l;var o=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),pe(l),He(l,"style",o),Lo(l,i.precedence,t),e.instance=l;case"stylesheet":o=jl(i.href);var c=t.querySelector(Xs(o));if(c)return e.state.loading|=4,e.instance=c,pe(c),c;l=s1(i),(o=Pn.get(o))&&Od(l,o),c=(t.ownerDocument||t).createElement("link"),pe(c);var g=c;return g._p=new Promise(function(x,R){g.onload=x,g.onerror=R}),He(c,"link",l),e.state.loading|=4,Lo(c,i.precedence,t),e.instance=c;case"script":return c=Bl(i.src),(o=t.querySelector(Ks(c)))?(e.instance=o,pe(o),o):(l=i,(o=Pn.get(c))&&(l=b({},i),Nd(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),pe(o),He(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,Lo(l,i.precedence,t));return e.instance}function Lo(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,g=0;g<l.length;g++){var x=l[g];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 Od(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Nd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vo=null;function o1(t,e,i){if(Vo===null){var l=new Map,o=Vo=new Map;o.set(i,l)}else o=Vo,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[ln]||c[ht]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function u1(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function Xw(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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 c1(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Kw(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=jl(l.href),c=e.querySelector(Xs(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Oo.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,pe(c);return}c=e.ownerDocument||e,l=s1(l),(o=Pn.get(o))&&Od(l,o),c=c.createElement("link"),pe(c);var g=c;g._p=new Promise(function(x,R){g.onload=x,g.onerror=R}),He(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=Oo.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Ud=0;function Qw(t,e){return t.stylesheets&&t.count===0&&Uo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Uo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Ud===0&&(Ud=62500*Rw());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Uo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Ud?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Oo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var No=null;function Uo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,No=new Map,e.forEach(Zw,t),No=null,Oo.call(t))}function Zw(t,e){if(!(e.state.loading&4)){var i=No.get(t);if(i)var l=i.get(null);else{i=new Map,No.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),c=i.get(g)||l,c===l&&i.set(null,o),i.set(g,o),this.count++,l=Oo.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 Qs={$$typeof:K,Provider:null,Consumer:null,_currentValue:rt,_currentValue2:rt,_threadCount:0};function Iw(t,e,i,l,o,c,g,x,R){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=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function f1(t,e,i,l,o,c,g,x,R,q,$,it){return t=new Iw(t,e,i,g,R,q,$,it,x),e=1,c===!0&&(e|=24),c=bn(3,null,null,e),t.current=c,c.stateNode=t,e=pf(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},Sf(c),t}function d1(t){return t?(t=ol,t):ol}function h1(t,e,i,l,o,c){o=d1(o),l.context===null?l.context=o:l.pendingContext=o,l=Wi(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=$i(t,l,e),i!==null&&(fn(i,t,e),ws(i,t,e))}function m1(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function _d(t,e){m1(t,e),(t=t.alternate)&&m1(t,e)}function y1(t){if(t.tag===13||t.tag===31){var e=Ca(t,67108864);e!==null&&fn(e,t,67108864),_d(t,67108864)}}function p1(t){if(t.tag===13||t.tag===31){var e=Mn();e=fi(e);var i=Ca(t,e);i!==null&&fn(i,t,e),_d(t,e)}}var _o=!0;function Jw(t,e,i,l){var o=O.T;O.T=null;var c=Y.p;try{Y.p=2,kd(t,e,i,l)}finally{Y.p=c,O.T=o}}function Ww(t,e,i,l){var o=O.T;O.T=null;var c=Y.p;try{Y.p=8,kd(t,e,i,l)}finally{Y.p=c,O.T=o}}function kd(t,e,i,l){if(_o){var o=Hd(l);if(o===null)Ad(t,e,l,ko,i),v1(t,l);else if(t3(o,t,e,i,l))l.stopPropagation();else if(v1(t,l),e&4&&-1<$w.indexOf(t)){for(;o!==null;){var c=Vn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=qe(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var R=1<<31-re(g);x.entanglements[1]|=R,g&=~R}ri(c),(Gt&6)===0&&(xo=fe()+500,Ys(0))}}break;case 31:case 13:x=Ca(c,2),x!==null&&fn(x,c,2),Eo(),_d(c,2)}if(c=Hd(l),c===null&&Ad(t,e,l,ko,i),c===o)break;o=c}o!==null&&l.stopPropagation()}else Ad(t,e,l,null,i)}}function Hd(t){return t=Gc(t),Gd(t)}var ko=null;function Gd(t){if(ko=null,t=Ln(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=m(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 ko=t,null}function g1(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(Xn()){case lt:return 2;case Et:return 8;case Xt:case Dt:return 32;case kt:return 268435456;default:return 32}default:return 32}}var Yd=!1,ca=null,fa=null,da=null,Zs=new Map,Is=new Map,ha=[],$w="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 v1(t,e){switch(t){case"focusin":case"focusout":ca=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":Zs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Is.delete(e.pointerId)}}function Js(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=Vn(e),e!==null&&y1(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function t3(t,e,i,l,o){switch(e){case"focusin":return ca=Js(ca,t,e,i,l,o),!0;case"dragenter":return fa=Js(fa,t,e,i,l,o),!0;case"mouseover":return da=Js(da,t,e,i,l,o),!0;case"pointerover":var c=o.pointerId;return Zs.set(c,Js(Zs.get(c)||null,t,e,i,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Is.set(c,Js(Is.get(c)||null,t,e,i,l,o)),!0}return!1}function b1(t){var e=Ln(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,ut(t.priority,function(){p1(i)});return}}else if(e===31){if(e=m(i),e!==null){t.blockedOn=e,ut(t.priority,function(){p1(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 Ho(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Hd(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Hc=l,i.target.dispatchEvent(l),Hc=null}else return e=Vn(i),e!==null&&y1(e),t.blockedOn=i,!1;e.shift()}return!0}function S1(t,e,i){Ho(t)&&i.delete(e)}function e3(){Yd=!1,ca!==null&&Ho(ca)&&(ca=null),fa!==null&&Ho(fa)&&(fa=null),da!==null&&Ho(da)&&(da=null),Zs.forEach(S1),Is.forEach(S1)}function Go(t,e){t.blockedOn===e&&(t.blockedOn=null,Yd||(Yd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,e3)))}var Yo=null;function x1(t){Yo!==t&&(Yo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Yo===t&&(Yo=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(Gd(l||i)===null)continue;break}var c=Vn(i);c!==null&&(t.splice(e,3),e-=3,Hf(c,{pending:!0,data:o,method:i.method,action:l},l,o))}}))}function zl(t){function e(R){return Go(R,t)}ca!==null&&Go(ca,t),fa!==null&&Go(fa,t),da!==null&&Go(da,t),Zs.forEach(e),Is.forEach(e);for(var i=0;i<ha.length;i++){var l=ha[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ha.length&&(i=ha[0],i.blockedOn===null);)b1(i),i.blockedOn===null&&ha.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],g=o[gt]||null;if(typeof c=="function")g||x1(i);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[gt]||null)x=g.formAction;else if(Gd(o)!==null)continue}else x=g.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),x1(i)}}}function T1(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},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 Pd(t){this._internalRoot=t}Po.prototype.render=Pd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=Mn();h1(i,l,t,e,null,null)},Po.prototype.unmount=Pd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;h1(t.current,2,null,t,null,null),Eo(),e[Ht]=null}};function Po(t){this._internalRoot=t}Po.prototype.unstable_scheduleHydration=function(t){if(t){var e=qi();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ha.length&&e!==0&&e<ha[i].priority;i++);ha.splice(i,0,t),i===0&&b1(t)}};var E1=s.version;if(E1!=="19.2.4")throw Error(u(527,E1,"19.2.4"));Y.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 n3={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qo.isDisabled&&qo.supportsFiber)try{Yt=qo.inject(n3),wt=qo}catch(t){}}return Vl.createRoot=function(t,e){if(!f(t))throw Error(u(299));var i=!1,l="",o=jg,c=Bg,g=zg;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&&(g=e.onRecoverableError)),e=f1(t,1,!1,null,null,i,l,null,o,c,g,T1),t[Ht]=e.current,Md(t),new Pd(e)},Vl.hydrateRoot=function(t,e,i){if(!f(t))throw Error(u(299));var l=!1,o="",c=jg,g=Bg,x=zg,R=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&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),e=f1(t,1,!0,e,i!=null?i:null,l,o,R,c,g,x,T1),e.context=d1(null),i=e.current,l=Mn(),l=fi(l),o=Wi(l),o.callback=null,$i(i,o,l),i=l,e.current.lanes=i,an(e,i),ri(e),t[Ht]=e.current,Md(t),new Po(e)},Vl.version="19.2.4",Vl}var $d;function z1(){if($d)return Ko.exports;$d=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ko.exports=B1(),Ko.exports}var L1=z1();const V1=en(L1),th={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)"},17:{title:"Player Startup Failed",desc:"This feature requires the Standard plan."}},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)"},17:{title:"플레이어 구동 실패",desc:"Standard 요금제가 필요한 기능입니다."}},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)"},17:{title:"プレーヤーの起動に失敗しました",desc:"この機能にはStandardプランが必要です。"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}}},O1=()=>typeof navigator!="undefined"&&typeof navigator.language!="undefined";function N1(n){const a=n.split("-")[0];return a in th?a:"en"}function Jo(n){let a="en";n?a=n:O1()&&(a=navigator.language);const s=N1(a);return th[s]}Jo();const U1={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"},_1={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 dn={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Vi={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const k1=new Date().getTime(),eh=()=>{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()-k1;return{logDate:s,logDateUnix:r,thisSec:u}};function H1(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function G1(n,a){Object.entries(a).forEach(([s,r])=>{H1(r)?(n[s]||(n[s]={}),Object.entries(r).forEach(([u,f])=>{f!=null&&(n[s][u]=f)})):r!=null&&(n[s]=r)})}function Y1(n){const a=[];return n!=null&&n.r1&&a.push(n.r1),n!=null&&n.r2&&a.push(n.r2),n!=null&&n.r3&&a.push(n.r3),a.join(" ")}function P1(n){var a,s;try{const r=(a=Vi.syncResult)==null?void 0:a.geoLocation;r&&(n.address=Y1(r),n.isp=r.net||"",n.ip=((s=Vi.syncResult)==null?void 0:s.ip)||"",n.nation=r.country||"")}catch(r){}}const q1=async n=>{var u,f;if(!n)return;const{platform:a,stage:s}=Vi,r=_1[a][s].log;try{const h=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:n})})).json();Vi.sync=((u=h.result)==null?void 0:u.sync)||!1,Vi.syncResult=h.result||{};const{logDate:m,logDateUnix:y}=eh();return dn.extra.logDate=m,dn.extra.logDateUnix=y,(f=Vi.syncResult)!=null&&f.geoLocation&&P1(dn.extra),h}catch(d){return console.error("MA config initialization failed:",d),null}};async function F1(n,a,s,r,u){Vi.platform=n,Vi.stage=a,G1(dn,s),r&&(dn.extra.vpePackageId=r),u&&(dn.extra.vpeKey=u),dn.extra.nation?dn.browser.country=U1[dn.extra.nation]||"Korea, Republic of":dn.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=eh();dn.extra.logDate=f,dn.extra.logDateUnix=d,dn.extra.created_at=d}const X1=(n={},a)=>{var u;const s={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};if(a!=="pay")return{...s,...K1};const r={...s,...n};return n.controlBtn&&(r.controlBtn={...s.controlBtn,...n.controlBtn}),n.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...n.watermarkConfig}),n.captionStyle&&(r.captionStyle={...s.captionStyle,...n.captionStyle}),((u=r.controlBtn)==null?void 0:u.progressBar)===void 0&&(r.controlBtn.progressBar=!0),r},K1={free:!0,startMutedInfoNotVisible:!1,lowLatencyMode:!1,progressBarColor:"#009dff",playRateSetting:[.5,.75,1,1.5,2],descriptionNotVisible:!0,seekingPreview:!1,controlActiveTime:1500,ui:"all",token:"",setStartTime:null,controlBtn:{play:!0,fullscreen:!0,volume:!0,times:!0,setting:!1,pictureInPicture:!1,progressBar:!0}},Q1={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let nh=[];const Z1=n=>{try{return atob(n)}catch(a){return console.error("Base64 decoding failed:",a),""}};class I1{constructor({accessKey:a,appId:s,platform:r,stage:u,isDev:f=!1,language:d}){tn(this,"serverConfig",{});tn(this,"playerInfo",null);tn(this,"accessKey");tn(this,"appId");tn(this,"platform");tn(this,"stage");tn(this,"isDev");tn(this,"translator",Jo());tn(this,"errorState");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(){var f;const a=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[a[0]],this[a[1]]].some(d=>!d))return console.warn(s),{error:this.setErrorRun(a[2])};const u=d=>(this.serverConfig=d,this.playerInfo=this.createPlayerInfo(d),this.playerInfo);try{const d=await this.performKeyCheck();if(d.code!==200)return{error:this.setErrorRun(a[3])};const h=u(d);return await F1(this.platform,this.stage,h,this.appId,this.accessKey),await q1(this.accessKey),{options:(f=this.serverConfig.result)==null?void 0:f.options,playerInfo:h}}catch(d){return console.error("VPE SDK Initialization failed:",d),{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=Z1(Q1[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((d,h,m)=>(d[h]=[this.accessKey,this.appId][m],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){var h,m,y,p,S,b,M,D,C,j,H,F,A,K,w;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:((h=a.result.options)==null?void 0:h.maUse)==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:(m=u==null?void 0:u.effectiveType)!=null?m:"unknown",downlink:(y=u==null?void 0:u.downlink)!=null?y:null,rtt:(p=u==null?void 0:u.rtt)!=null?p:null,save_data:(S=u==null?void 0:u.saveData)!=null?S:!1},device:{platform:(b=d==null?void 0:d.platform)!=null?b:"Unknown",mobile:(M=d==null?void 0:d.mobile)!=null?M:!1,memory:(D=navigator.deviceMemory)!=null?D:null,processor:(C=navigator.hardwareConcurrency)!=null?C:null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:r,device:(j=d==null?void 0:d.platform)!=null?j:"Unknown",os:(H=d==null?void 0:d.platform)!=null?H:"Unknown",osOrigin:(F=d==null?void 0:d.platform)!=null?F:"Unknown",osVersion:(A=d==null?void 0:d.platformVersion)!=null?A:"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}&${(K=d==null?void 0:d.platform)!=null?K:"Unknown"}&${(w=d==null?void 0:d.platformVersion)!=null?w:"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=Jo(a)}getErrorState(){return this.errorState}isPaidTier(){var a;return((a=this.serverConfig.result)==null?void 0:a.pricing)==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){var u,f,d;const s=X1((u=this.serverConfig.result)==null?void 0:u.options,(f=this.serverConfig.result)==null?void 0:f.pricing);((d=this.serverConfig.result)==null?void 0:d.pricing)!=="pay"&&(a={...a,...s});const r={...s,...a!=null?a:{}};return r!=null&&r.lang&&((r==null?void 0:r.lang)=="auto"||this.updateTranslator(r.lang)),a!=null&&a.controlBtn&&(r.controlBtn={...s.controlBtn,...a.controlBtn}),a!=null&&a.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),nh=r.playlist||[],r}getPlaylist(){return nh||[]}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(m){return h}},u=d=>{const h=d.match(/RESOLUTION=(\d+)x(\d+)/);if(h)return`${h[2]}p`;const m=d.match(/BANDWIDTH=(\d+)/);return m?`${Math.round(Number(m[1])/1e3)}kbps`:"auto"},f=d=>{const h=d.split(/\r?\n/).map(m=>m.trim()).filter(m=>m.length>0);for(let m=0;m<h.length;m+=1){const y=h[m];if(y.startsWith("#EXT-X-STREAM-INF")){const p=h[m+1];p&&!p.startsWith("#")&&(s.push({quality:u(y),url:r(a,p),levelIndex:s.length}),m+=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 Wo=new Map,ih=T.createContext(null);let ah=0;function $o(n,a){if(Wo.has(n))return Wo.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return Wo.set(n,r),r}function J1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(ah+=1,s.current=`sdk-${ah}`);const r=n!=null?n:s.current;return T.createElement(ih.Provider,{value:r},a)}function W1(){return T.useContext(ih)}function Ha(n,a){const s=W1(),r=s?`${s}:${n}`:n,u=$o(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,m=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),m]}function Wn(n,a,s){const r=n?`${n}:${a}`:a,u=$o(r);u.value=typeof s=="function"?s(u.value):s,u.listeners.forEach(f=>f())}function tu(n,a){const s=n?`${n}:${a}`:a;return $o(s).value}const eu=n=>typeof n=="object"&&n!==null,Ws=n=>eu(n)?"top"in n||"upper"in n||"center"in n||"lower"in n||"bottom"in n||"order"in n:!1,$s=n=>eu(n)?"live"in n||"vod"in n:!1,nu=n=>eu(n)?"pc"in n||"mobile"in n||"fullscreen"in n||"breakpoint"in n:!1,Ol=(n,a)=>typeof a!="undefined"?a:n,$1=(n,a)=>typeof a!="undefined"?a:n,iu=(n,a)=>n?a?{top:Ol(n.top,a.top),upper:Ol(n.upper,a.upper),center:Ol(n.center,a.center),lower:Ol(n.lower,a.lower),bottom:Ol(n.bottom,a.bottom),order:$1(n.order,a.order)}:n:a,lh=n=>{if(n){if($s(n))return n;if(Ws(n))return{live:n,vod:n}}},tr=(n,a)=>{const s=lh(n),r=lh(a);return s?r?{live:iu(s.live,r.live),vod:iu(s.vod,r.vod)}:s:r},sh=n=>{if(n){if(nu(n))return n;if($s(n)||Ws(n))return{pc:n,mobile:n,fullscreen:n}}},tb=(n,a)=>{var s;return n?a?{pc:tr(n.pc,a.pc),mobile:tr(n.mobile,a.mobile),fullscreen:tr(n.fullscreen,a.fullscreen),breakpoint:(s=a.breakpoint)!=null?s:n.breakpoint}:n:a},au=(n,a)=>{if(!n)return a;if(!a)return n;const s=nu(n),r=nu(a);if(s||r){const u=s?n:sh(n),f=r?a:sh(a);return tb(u,f)}return $s(n)||$s(a)?tr(n,a):Ws(n)||Ws(a)?iu(n,a):a},lu=new Map,rh=T.createContext(null);let oh=0;function eb(n,a){if(lu.has(n))return lu.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return lu.set(n,r),r}function nb({scopeId:n,children:a}){const s=T.useRef(null);s.current||(oh+=1,s.current=`vpe-${oh}`);const r=n!=null?n:s.current;return T.createElement(rh.Provider,{value:r},a)}function ib(){return T.useContext(rh)}function uh(n,a){const s=ib(),r=s?`${s}:${n}`:n,u=eb(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,m=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),m]}const ab="playerState",lb={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,subtitleTracks:[],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 ee(){const[n,a]=uh(ab,lb),s=T.useCallback(r=>{a(u=>{const f=typeof r=="function"?r(u):r,d={...u,...f},h=Object.keys(f);for(const m of h)if(!Object.is(u[m],d[m]))return d;return u})},[a]);return[n,s]}const sb="playerController",rb={videoEl:null,hls:null,dash:null};function Ce(){const[n,a]=uh(sb,rb),[s,r]=ee(),u=T.useRef(0),f=T.useRef(""),d=T.useCallback(L=>{a(G=>({...G,videoEl:L}))},[a]),h=T.useCallback(L=>{a(G=>({...G,hls:L}))},[a]),m=T.useCallback(L=>{a(G=>({...G,dash:L}))},[a]),y=T.useCallback(()=>{r({isUserTouch:!0})},[r]),p=T.useCallback(()=>{const L=n.videoEl;L&&L.paused&&L.play()},[n.videoEl]),S=T.useCallback(()=>{const L=n.videoEl;L&&(L.paused||L.pause())},[n.videoEl]),b=T.useCallback(L=>{const G=n.videoEl;if(!G||Number.isNaN(L))return;const W=Math.max(0,Math.min(L,G.duration||L));G.currentTime=W,r({currentTime:W,isEnded:!1})},[r,n.videoEl]),M=T.useCallback(L=>{const G=n.videoEl;if(!G||Number.isNaN(L))return;const W=Math.max(0,Math.min(100,L));G.volume=W/100,G.muted=W===0},[n.videoEl]),D=T.useCallback(L=>{const G=n.videoEl;G&&(G.muted=L)},[n.videoEl]),C=T.useCallback(L=>{var O;const G=n.videoEl;if(!G)return;const W=G.textTracks;if(!W||W.length===0)return;const _=Math.max(0,Math.min((O=s.subTitleIdx)!=null?O:0,W.length-1));for(let Y=0;Y<W.length;Y+=1)W[Y].mode=L&&Y===_?"showing":"disabled";r({isSubtitle:L})},[s.subTitleIdx,r,n.videoEl]),j=T.useCallback(()=>{const L=n.videoEl;if(!L)return;const G=L.textTracks;if(!G||G.length===0){r({isSubtitle:!1});return}let W=!1;for(let _=0;_<G.length;_+=1)if(G[_].mode==="showing"){W=!0;break}W?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),C(!W)},[r,C,n.videoEl]),H=T.useCallback(L=>{const G=n.videoEl;if(!G)return;const W=Array.from(G.querySelectorAll("track")),_=G.textTracks;if((!_||_.length===0)&&W.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const O=W.length>0?W.length-1:_.length-1,Y=Math.max(0,Math.min(L,O));if(W.length>0)W.forEach((rt,st)=>{rt.track&&(rt.track.mode=st===Y?"showing":"disabled")});else for(let rt=0;rt<_.length;rt+=1)_[rt].mode=rt===Y?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:Y}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,n.videoEl]),F=T.useCallback(()=>{const L=n.videoEl;L&&(L.muted=!L.muted)},[n.videoEl]),A=T.useCallback(()=>{const L=n.videoEl;L&&(L.paused?p():S())},[S,p,n.videoEl]),K=T.useCallback(L=>{const G=n.hls,W=n.dash;if(!G&&!W)return;if(G){if(L==="auto"){G.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}G.currentLevel=L,r({currentLevel:L,isAutoLevel:!1});return}const _=L==="auto"||L===-1;W!=null&&W.setAutoSwitchQualityFor&&W.setAutoSwitchQualityFor("video",_),!_&&(W!=null&&W.setQualityFor)&&W.setQualityFor("video",L),r({currentLevel:_?-1:L,isAutoLevel:_})},[r,n.dash,n.hls]),w=T.useCallback(L=>{const G=n.videoEl;G&&(G.playbackRate=L)},[n.videoEl]),N=T.useCallback(async()=>{const L=n.videoEl;if(!L||typeof document=="undefined")return;const G=document;if(G.pictureInPictureElement){typeof G.exitPictureInPicture=="function"&&await G.exitPictureInPicture();return}const W=L.requestPictureInPicture;typeof W=="function"&&await W.call(L)},[n.videoEl]),V=T.useCallback(()=>{if(typeof document=="undefined")return null;const L=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return L instanceof HTMLElement?L:null},[]),B=T.useCallback((L,G)=>{if(!L||typeof document=="undefined")return;if(!(G!=null?G:!L.classList.contains("vpe-ios-fullscreen"))){r({isFullscreen:!1}),L.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=f.current;const O=document.getElementById("vpeIosFullscreenTmpDiv");O&&O.remove(),window.scrollY=u.current;return}r({isFullscreen:!0}),L.classList.add("vpe-ios-fullscreen"),u.current=window.scrollY,f.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const _=document.createElement("div");_.id="vpeIosFullscreenTmpDiv",_.style.height="120dvh",document.body.appendChild(_),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[r]),Q=T.useCallback(()=>{const L=n.videoEl;if(!L)return!1;const G=L.webkitEnterFullscreen;return typeof G!="function"?!1:(G.call(L),!0)},[n.videoEl]),Z=T.useCallback(L=>{var _;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(L!=null&&L.iosFullscreenNativeMode){if(Q())return}else{const O=document.querySelector(".vpe-root-wrap");B(O,!0);return}if(typeof document=="undefined"||document.fullscreenElement)return;const W=V();W&&((_=W.requestFullscreen)==null||_.call(W))},[Q,V,B]),tt=T.useCallback(L=>{var W;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent)&&!(L!=null&&L.iosFullscreenNativeMode)){const _=document.querySelector(".vpe-root-wrap");B(_,!1);return}typeof document!="undefined"&&document.fullscreenElement&&((W=document.exitFullscreen)==null||W.call(document))},[B]),at=T.useCallback(L=>{var _,O;if(typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(L!=null&&L.iosFullscreenNativeMode){if(Q())return}else{const Y=document.querySelector(".vpe-root-wrap");B(Y);return}if(typeof document=="undefined")return;if(document.fullscreenElement){(_=document.exitFullscreen)==null||_.call(document);return}const W=V();W&&((O=W.requestFullscreen)==null||O.call(W))},[Q,V,B]);return{videoEl:n.videoEl,hls:n.hls,dash:n.dash,setVideoElement:d,setHlsInstance:h,setDashInstance:m,play:p,pause:S,seekTo:b,setVolume:M,setMuted:D,setSubtitleEnabled:C,toggleSubtitle:j,toggleMute:F,togglePlay:A,useTouch:y,playBackRate:w,selectSubTitle:H,selectQualityLevel:K,togglePictureInPicture:N,toggleFullscreen:at,fullscreenOn:Z,fullscreenOff:tt}}const ob=()=>{};function er(n,a,s=!1,r=!0,u=ob){T.useEffect(()=>{const f=n.current;if(!f)return;const d=typeof document=="undefined"?null:document,h=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},m=()=>{a({isPlaying:!1})},y=()=>{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 V=f.buffered.start(0),B=f.buffered.end(f.buffered.length-1);a({buffered:B,bufferedStart:V,bufferedEnd:B})}},S=()=>{const V=f.videoWidth||0,B=f.videoHeight||0;a({isHd:V>=1280,is4k:B>=2160,videoWidth:V,videoHeight:B})},b=()=>{a({isEnded:!0}),u("ended")},M=()=>{a({isSeeked:!0}),u("seeking",{currentTime:f.currentTime})},D=()=>{setTimeout(()=>{a({isSeeked:!1}),u("seeked",{currentTime:f.currentTime})},200)},C=()=>{a({isMuted:f.muted,isVolume:Math.round(f.volume*100)}),u("volumechange",{isMuted:f.muted,isVolume:Math.round(f.volume*100)})},j=()=>{a({isLoading:!0,isWaiting:!0})},H=()=>{a({isLoading:!1}),S()},F=()=>{a({isLoading:!1}),S()},A=()=>{a({isWaiting:!0})},K=()=>{a({isWaiting:!1,isLoading:!1})},w=()=>{a({isWaiting:!0})},N=()=>{!d||!r||d.hidden&&!f.paused&&f.pause()};return f.addEventListener("play",h),f.addEventListener("pause",m),f.addEventListener("timeupdate",y),f.addEventListener("ended",b),f.addEventListener("progress",p),f.addEventListener("seeking",M),f.addEventListener("seeked",D),f.addEventListener("volumechange",C),f.addEventListener("loadstart",j),f.addEventListener("loadedmetadata",H),f.addEventListener("loadeddata",F),f.addEventListener("resize",S),f.addEventListener("waiting",A),f.addEventListener("playing",K),f.addEventListener("stalled",w),d==null||d.addEventListener("visibilitychange",N),C(),()=>{f.removeEventListener("play",h),f.removeEventListener("pause",m),f.removeEventListener("timeupdate",y),f.removeEventListener("ended",b),f.removeEventListener("progress",p),f.removeEventListener("seeking",M),f.removeEventListener("seeked",D),f.removeEventListener("volumechange",C),f.removeEventListener("loadstart",j),f.removeEventListener("loadedmetadata",H),f.removeEventListener("loadeddata",F),f.removeEventListener("resize",S),f.removeEventListener("waiting",A),f.removeEventListener("playing",K),f.removeEventListener("stalled",w),d==null||d.removeEventListener("visibilitychange",N)}},[r,s,a,n])}const ub=3,cb=3e3;function fb(n){var S,b,M,D,C,j,H,F,A,K;const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),u=T.useRef(null),[f,d]=ee(),{setVideoElement:h,setHlsInstance:m}=Ce(),y=n.hlsLib,p=n.options;return T.useEffect(()=>{var V,B,Q,Z;const w=a.current,N=(V=n==null?void 0:n.src)==null?void 0:V.file;if(!(!w||!N)){if((B=y==null?void 0:y.isSupported)!=null&&B.call(y)){const tt=new y({lowLatencyMode:p.lowLatencyMode,liveSyncDuration:p.lowLatencyMode?3:null,backBufferLength:p.lowLatencyMode?30:null,debug:!1});u.current=tt,m(tt),tt.attachMedia(w),tt.on(y.Events.MEDIA_ATTACHED,()=>{tt.loadSource(N)});const at=typeof((Q=p==null?void 0:p.retry)==null?void 0:Q.maxRetry)=="number"?p.retry.maxRetry:ub,L=typeof((Z=p==null?void 0:p.retry)==null?void 0:Z.interval)=="number"?p.retry.interval:cb,G=W=>{var _;if(typeof((_=W==null?void 0:W.details)==null?void 0:_.live)=="boolean"){const O=W.details.live,Y=W.details.totalduration,rt=O&&typeof Y=="number"&&Number.isFinite(Y)&&Y>0;d({isLive:O,isDvr:rt})}};return tt.on(y.Events.MANIFEST_PARSED,(W,_)=>{var Y,rt,st,pt;s.current=0,G(_);const O=((Y=tt.levels)!=null?Y:[]).map((E,k)=>({index:k,width:E.width,height:E.height,bitrate:E.bitrate,name:E.name}));if(d({levels:O,currentLevel:tt.currentLevel,isAutoLevel:tt.autoLevelEnabled}),!((st=(rt=n.src)==null?void 0:rt.vtt)!=null&&st.length)){const E=(pt=tt.subtitleTracks)!=null?pt:[],k=E.map((J,nt)=>{var ct,ot,ft;return{label:(ot=(ct=J==null?void 0:J.name)!=null?ct:J==null?void 0:J.lang)!=null?ot:`Track ${nt+1}`,id:(ft=J==null?void 0:J.lang)!=null?ft:String(nt),default:!!(J!=null&&J.default||J!=null&&J.autoselect)}});d(J=>{var St,Tt;if(!(E.length>0))return{hasSubtitle:!1,isSubtitle:!1,subTitleIdx:0,subtitleTracks:[]};const ct=(St=E.findIndex(At=>At.default||At.autoselect))!=null?St:-1,ot=ct>=0?ct:0;return{hasSubtitle:!0,subTitleIdx:Math.min(Math.max((Tt=J.subTitleIdx)!=null?Tt:ot,0),E.length-1),subtitleTracks:k}})}}),tt.on(y.Events.LEVEL_LOADED,(W,_)=>{s.current=0,G(_)}),tt.on(y.Events.LEVEL_SWITCHED,(W,_)=>{d({currentLevel:_.level,isAutoLevel:tt.autoLevelEnabled})}),tt.on(y.Events.SUBTITLE_TRACKS_UPDATED,(W,_)=>{var rt,st,pt,E;if((st=(rt=n.src)==null?void 0:rt.vtt)!=null&&st.length)return;const O=(E=(pt=_==null?void 0:_.subtitleTracks)!=null?pt:tt.subtitleTracks)!=null?E:[],Y=O.map((k,J)=>{var nt,ct,ot;return{label:(ct=(nt=k==null?void 0:k.name)!=null?nt:k==null?void 0:k.lang)!=null?ct:`Track ${J+1}`,id:(ot=k==null?void 0:k.lang)!=null?ot:String(J),default:!!(k!=null&&k.default||k!=null&&k.autoselect)}});d(k=>{var ft,St;if(!(O.length>0))return{hasSubtitle:!1,isSubtitle:!1,subTitleIdx:0,subtitleTracks:[]};const nt=(ft=O.findIndex(Tt=>Tt.default||Tt.autoselect))!=null?ft:-1,ct=nt>=0?nt:0;return{hasSubtitle:!0,subTitleIdx:Math.min(Math.max((St=k.subTitleIdx)!=null?St:ct,0),O.length-1),subtitleTracks:Y}})}),tt.on(y.Events.SUBTITLE_TRACK_SWITCH,(W,_)=>{var Y,rt;if((rt=(Y=n.src)==null?void 0:Y.vtt)!=null&&rt.length)return;const O=typeof(_==null?void 0:_.id)=="number"?_.id:tt.subtitleTrack;typeof O=="number"&&d({subTitleIdx:O,hasSubtitle:!0})}),tt.on(y.Events.ERROR,(W,_)=>{if(_!=null&&_.fatal){if(s.current<at){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,(_==null?void 0:_.type)===y.ErrorTypes.MEDIA_ERROR){tt.recoverMediaError();return}tt.stopLoad(),tt.loadSource(N),tt.startLoad()},L);return}console.log("HLS 재시도 횟수 초과"),n.onError&&n.onError({evt:W,data:_}),tt.destroy()}}),()=>{r.current&&(clearTimeout(r.current),r.current=null),m(null),u.current=null,tt.destroy()}}w.src=N,w.load()}},[y,(S=n==null?void 0:n.src)==null?void 0:S.file,n.onError,m,d]),T.useEffect(()=>{const w=a.current;if(!w)return;const N=V=>{n.onError&&n.onError(V)};return w.addEventListener("error",N),()=>{w.removeEventListener("error",N)}},[n.onError]),T.useEffect(()=>{var V;const w=a.current;if(!w||(V=y==null?void 0:y.isSupported)!=null&&V.call(y))return;const N=()=>{const B=w.duration,Q=!Number.isFinite(B)||B===1/0,Z=Q?Number.isFinite(B)&&B>0:!1;d({isLive:Q,isDvr:Z})};return w.addEventListener("loadedmetadata",N),w.addEventListener("durationchange",N),N(),()=>{w.removeEventListener("loadedmetadata",N),w.removeEventListener("durationchange",N)}},[y,d]),T.useEffect(()=>(h(a.current),()=>h(null)),[h]),T.useEffect(()=>{const w=a.current;if(!w)return;const N=p==null?void 0:p.playbackRate;typeof N=="number"&&(w.playbackRate=N,d({playbackRate:N}))},[p]),T.useEffect(()=>{var Y,rt;const w=a.current;if(!w||!((rt=(Y=n.src)==null?void 0:Y.vtt)!=null&&rt.length))return;const N=50,V=16,B=1.2,Q=40,tt=-Math.max(1,Math.round(N/(V*B))),at=st=>{if(st.cues)for(let pt=0;pt<st.cues.length;pt+=1){const E=st.cues[pt];E.line=tt,E.lineAlign="center"}},L=st=>{if(!st.cues)return;const pt=w.getBoundingClientRect(),E=pt.width>0?Q*2*100/pt.width:0,k=Math.max(10,Math.min(100,100-E));for(let J=0;J<st.cues.length;J+=1){const nt=st.cues[J];nt.size=k,nt.position=50,nt.align="center",nt.line=-3}},G=st=>{at(st),L(st)},W=Array.from(w.querySelectorAll("track")),_=st=>{const pt=st.currentTarget;pt!=null&&pt.track&&G(pt.track)};W.forEach(st=>{st.addEventListener("load",_),st.track&&G(st.track)});const O=new ResizeObserver(()=>{W.forEach(st=>{st.track&&L(st.track)})});return O.observe(w),()=>{W.forEach(st=>{st.removeEventListener("load",_)}),O.disconnect()}},[p,(b=n.src)==null?void 0:b.vtt]),er(a,d,f.isSeeked,p==null?void 0:p.autoPause,n.emitEvent),T.useEffect(()=>{var Q,Z;const w=(Z=(Q=n.src)==null?void 0:Q.vtt)!=null?Z:[],N=w.length>0,V=w.findIndex(tt=>tt.default),B=V>=0?V:0;d({hasSubtitle:N,isSubtitle:!1,subTitleIdx:B,subtitleTracks:w})},[(M=n.src)==null?void 0:M.vtt,d]),T.useEffect(()=>{var Z,tt;if(!f.isSubtitle)return;const w=a.current;if(!w||!((tt=(Z=n.src)==null?void 0:Z.vtt)!=null&&tt.length))return;const N=new Map,V=[],B=async(at,L)=>{try{const G=await fetch(L,{mode:"cors"});if(!G.ok)return;const W=await G.blob(),_=URL.createObjectURL(W);V.push(_),N.set(at,at.src),at.src=_}catch(G){}},Q=Array.from(w.querySelectorAll("track"));return Q.forEach(at=>{at.src&&B(at,at.src)}),()=>{Q.forEach(at=>{const L=N.get(at);L&&(at.src=L)}),V.forEach(at=>URL.revokeObjectURL(at))}},[(D=n.src)==null?void 0:D.vtt,f.subTitleIdx,f.isSubtitle]),T.useEffect(()=>{var Q,Z,tt,at;const w=u.current;if(!w||(Z=(Q=n.src)==null?void 0:Q.vtt)!=null&&Z.length)return;const N=(tt=w.subtitleTracks)!=null?tt:[];if(!(N.length>0))return;const B=Math.min(Math.max((at=f.subTitleIdx)!=null?at:0,0),N.length-1);w.subtitleDisplay=!!f.isSubtitle,w.subtitleTrack=f.isSubtitle?B:-1},[f.isSubtitle,f.subTitleIdx,(C=n.src)==null?void 0:C.vtt]),T.useEffect(()=>{const w=a.current;if(!w)return;const N=Array.from(w.querySelectorAll("track")),V=w.textTracks;if((!V||V.length===0)&&N.length===0)return;const B=f.subTitleIdx,Q=f.isSubtitle,Z=()=>{if(N.length>0){N.forEach(at=>{at.track&&(at.default=!1,at.track.mode="disabled")}),N.forEach((at,L)=>{at.track&&Q&&L===B&&(at.default=!0,at.track.mode="showing")});return}for(let at=0;at<V.length;at+=1)V[at].mode="disabled";Q&&V[B]&&(V[B].mode="showing")};Z();const tt=()=>{Z()};return N.forEach(at=>{at.addEventListener("load",tt)}),()=>{N.forEach(at=>{at.removeEventListener("load",tt)})}},[f.isSubtitle,f.subTitleIdx,(j=n.src)==null?void 0:j.vtt]),T.useEffect(()=>{const w=a.current;w&&p.autostart&&w.play().catch(N=>{console.log(N),w.muted=!0,w.play()})},[p.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const N=localStorage.getItem("vpeSubtitleEnabled");N!==null&&f.hasSubtitle&&d({isSubtitle:!!N})},1e3)},[f.hasSubtitle,d]),v.jsx(v.Fragment,{children:((H=n==null?void 0:n.src)==null?void 0:H.file)&&v.jsx("video",{playsInline:!0,ref:a,className:"vpe-video-dom",controls:!1,autoPlay:p==null?void 0:p.autostart,muted:p==null?void 0:p.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?f.initPlay?"transparent":`url(${n.src.poster}) center / ${(F=p==null?void 0:p.objectFit)!=null?F:"contain"} no-repeat`:void 0,objectFit:(A=p==null?void 0:p.objectFit)!=null?A:"contain"},children:(K=n.src.vtt)==null?void 0:K.map(w=>v.jsx("track",{kind:"subtitles",srcLang:w.id,label:w.label,src:w.src,default:w.default},`${w.id}-${w.src}`))})})}const db=3,hb=3e3,mb=n=>{var a;if(!n)return null;if(typeof n.MediaPlayer=="function"){const s=n.MediaPlayer();if(s!=null&&s.create)return s.create()}if((a=n.MediaPlayer)!=null&&a.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const s=n.MediaPlayerFactory();if(s!=null&&s.create)return s.create()}return null};function yb(n){var p,S,b,M,D,C,j,H,F;const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=ee(),{setVideoElement:d,setDashInstance:h}=Ce(),m=n.dashLib,y=n.options;return T.useEffect(()=>{var _,O,Y,rt,st,pt,E,k,J,nt,ct;const A=a.current,K=(_=n==null?void 0:n.src)==null?void 0:_.file;if(!A||!K)return;const w=mb(m);if(!w){A.src=K;return}h(w),typeof w.initialize=="function"?w.initialize(A,K,!!(y!=null&&y.autostart)):typeof w.attachView=="function"&&typeof w.attachSource=="function"?(w.attachView(A),w.attachSource(K)):A.src=K;const N=typeof((O=y==null?void 0:y.retry)==null?void 0:O.maxRetry)=="number"?y.retry.maxRetry:db,V=typeof((Y=y==null?void 0:y.retry)==null?void 0:Y.interval)=="number"?y.retry.interval:hb,B=()=>{const ft=(typeof w.getBitrateInfoListFor=="function"?w.getBitrateInfoListFor("video"):[]).map((At,De)=>{var Se;return{index:typeof(At==null?void 0:At.qualityIndex)=="number"?At.qualityIndex:De,width:At==null?void 0:At.width,height:At==null?void 0:At.height,bitrate:(Se=At==null?void 0:At.bitrate)!=null?Se:At==null?void 0:At.bandwidth,name:At==null?void 0:At.name}}),St=typeof w.getQualityFor=="function"?w.getQualityFor("video"):-1,Tt=typeof w.getAutoSwitchQualityFor=="function"?w.getAutoSwitchQualityFor("video"):!0;f({levels:ft,currentLevel:St,isAutoLevel:Tt})},Q=()=>{const ot=typeof w.isDynamic=="function"?w.isDynamic():!1,ft=typeof w.getDuration=="function"?w.getDuration():void 0,St=ot&&typeof ft=="number"&&Number.isFinite(ft)&&ft>0;f({isLive:ot,isDvr:St})},Z=()=>{s.current=0,B(),Q()},tt=()=>{const ot=typeof w.getQualityFor=="function"?w.getQualityFor("video"):-1,ft=typeof w.getAutoSwitchQualityFor=="function"?w.getAutoSwitchQualityFor("video"):!0;f({currentLevel:ot,isAutoLevel:ft})},at=(ot,ft)=>{var Tt,At,De;if((De=(At=(Tt=ft==null?void 0:ft.error)==null?void 0:Tt.fatal)!=null?At:ft==null?void 0:ft.fatal)==null||De){if(s.current<N){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,typeof w.attachSource=="function"){w.attachSource(K);return}typeof w.reset=="function"&&(w.reset(),typeof w.initialize=="function"&&w.initialize(A,K,!!(y!=null&&y.autostart)))},V);return}console.log("DASH 재시도 횟수 초과"),n.onError&&n.onError({evt:ot,data:ft}),typeof w.reset=="function"&&w.reset()}},L=(J=(k=(E=(pt=(rt=m==null?void 0:m.MediaPlayer)==null?void 0:rt.events)!=null?pt:(st=m==null?void 0:m.MediaPlayer)==null?void 0:st.Events)!=null?E:m==null?void 0:m.events)!=null?k:m==null?void 0:m.Events)!=null?J:void 0,G=[],W=(ot,ft)=>{!ot||typeof w.on!="function"||(w.on(ot,ft),G.push(()=>{typeof w.off=="function"&&w.off(ot,ft)}))};return W((nt=L==null?void 0:L.STREAM_INITIALIZED)!=null?nt:L==null?void 0:L.MANIFEST_LOADED,Z),W((ct=L==null?void 0:L.QUALITY_CHANGE_RENDERED)!=null?ct:L==null?void 0:L.QUALITY_CHANGE_REQUESTED,tt),W(L==null?void 0:L.ERROR,at),()=>{r.current&&(clearTimeout(r.current),r.current=null),G.forEach(ot=>ot()),h(null),typeof w.reset=="function"&&w.reset()}},[m,(p=n==null?void 0:n.src)==null?void 0:p.file,n.onError,h,f]),T.useEffect(()=>{var N;const A=a.current;if(!A||!!m&&(typeof m.MediaPlayer=="function"||typeof((N=m.MediaPlayer)==null?void 0:N.create)=="function"||typeof m.MediaPlayerFactory=="function"))return;const w=()=>{const V=A.duration,B=!Number.isFinite(V)||V===1/0,Q=B?Number.isFinite(V)&&V>0:!1;f({isLive:B,isDvr:Q})};return A.addEventListener("loadedmetadata",w),A.addEventListener("durationchange",w),w(),()=>{A.removeEventListener("loadedmetadata",w),A.removeEventListener("durationchange",w)}},[m,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const A=a.current;if(!A)return;const K=y==null?void 0:y.playbackRate;typeof K=="number"&&(A.playbackRate=K,f({playbackRate:K}))},[y]),T.useEffect(()=>{var _,O;const A=a.current;if(!A||!((O=(_=n.src)==null?void 0:_.vtt)!=null&&O.length))return;const K=50,w=16,N=1.2,V=40,Q=-Math.max(1,Math.round(K/(w*N))),Z=Y=>{if(Y.cues)for(let rt=0;rt<Y.cues.length;rt+=1){const st=Y.cues[rt];st.line=Q,st.lineAlign="center"}},tt=Y=>{if(!Y.cues)return;const rt=A.getBoundingClientRect(),st=rt.width>0?V*2*100/rt.width:0,pt=Math.max(10,Math.min(100,100-st));for(let E=0;E<Y.cues.length;E+=1){const k=Y.cues[E];k.size=pt,k.position=50,k.align="center"}},at=Y=>{Z(Y),tt(Y)},L=Array.from(A.querySelectorAll("track")),G=Y=>{const rt=Y.currentTarget;rt!=null&&rt.track&&at(rt.track)};L.forEach(Y=>{Y.addEventListener("load",G),Y.track&&at(Y.track)});const W=new ResizeObserver(()=>{L.forEach(Y=>{Y.track&&tt(Y.track)})});return W.observe(A),()=>{L.forEach(Y=>{Y.removeEventListener("load",G)}),W.disconnect()}},[y,(S=n.src)==null?void 0:S.vtt]),er(a,f,u.isSeeked,y==null?void 0:y.autoPause,n.emitEvent),T.useEffect(()=>{var V,B;const A=(B=(V=n.src)==null?void 0:V.vtt)!=null?B:[],K=A.length>0,w=A.findIndex(Q=>Q.default),N=w>=0?w:0;f({hasSubtitle:K,isSubtitle:!1,subTitleIdx:N})},[(b=n.src)==null?void 0:b.vtt,f]),T.useEffect(()=>{var B,Q;if(!u.isSubtitle)return;const A=a.current;if(!A||!((Q=(B=n.src)==null?void 0:B.vtt)!=null&&Q.length))return;const K=new Map,w=[],N=async(Z,tt)=>{try{const at=await fetch(tt,{mode:"cors"});if(!at.ok)return;const L=await at.blob(),G=URL.createObjectURL(L);w.push(G),K.set(Z,Z.src),Z.src=G}catch(at){}},V=Array.from(A.querySelectorAll("track"));return V.forEach(Z=>{Z.src&&N(Z,Z.src)}),()=>{V.forEach(Z=>{const tt=K.get(Z);tt&&(Z.src=tt)}),w.forEach(Z=>URL.revokeObjectURL(Z))}},[(M=n.src)==null?void 0:M.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const A=a.current;if(!A)return;const K=Array.from(A.querySelectorAll("track")),w=A.textTracks;if((!w||w.length===0)&&K.length===0)return;const N=u.subTitleIdx,V=u.isSubtitle,B=()=>{if(K.length>0){K.forEach(Z=>{Z.track&&(Z.default=!1,Z.track.mode="disabled")}),K.forEach((Z,tt)=>{Z.track&&V&&tt===N&&(Z.default=!0,Z.track.mode="showing")});return}for(let Z=0;Z<w.length;Z+=1)w[Z].mode="disabled";V&&w[N]&&(w[N].mode="showing")};B();const Q=()=>{B()};return K.forEach(Z=>{Z.addEventListener("load",Q)}),()=>{K.forEach(Z=>{Z.removeEventListener("load",Q)})}},[u.isSubtitle,u.subTitleIdx,(D=n.src)==null?void 0:D.vtt]),T.useEffect(()=>{const A=a.current;A&&y.autostart&&A.play().catch(K=>{console.log(K),A.muted=!0,A.play()})},[y.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const K=localStorage.getItem("vpeSubtitleEnabled");K!==null&&u.hasSubtitle&&f({isSubtitle:!!K})},1e3)},[u.hasSubtitle,f]),v.jsx(v.Fragment,{children:((C=n==null?void 0:n.src)==null?void 0:C.file)&&v.jsx("video",{className:"vpe-video-dom",playsInline:!0,ref:a,controls:!1,autoPlay:y==null?void 0:y.autostart,muted:y==null?void 0:y.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 / ${(j=y==null?void 0:y.objectFit)!=null?j:"contain"} no-repeat`:void 0,objectFit:(H=y==null?void 0:y.objectFit)!=null?H:"contain"},children:(F=n.src.vtt)==null?void 0:F.map(A=>v.jsx("track",{kind:"subtitles",srcLang:A.id,label:A.label,src:A.src,default:A.default},`${A.id}-${A.src}`))})})}function pb(n){var d,h,m,y,p,S,b,M,D;const a=T.useRef(null),[s,r]=ee(),{setVideoElement:u}=Ce(),f=n.options;return T.useEffect(()=>{var H;const C=a.current,j=(H=n==null?void 0:n.src)==null?void 0:H.file;!C||!j||(C.src=j)},[(d=n==null?void 0:n.src)==null?void 0:d.file]),T.useEffect(()=>{const C=a.current;if(!C)return;const j=H=>{n.onError&&n.onError(H)};return C.addEventListener("error",j),()=>{C.removeEventListener("error",j)}},[n.onError]),T.useEffect(()=>{const C=a.current;if(!C)return;const j=()=>{const H=C.duration,F=!Number.isFinite(H)||H===1/0,A=F?Number.isFinite(H)&&H>0:!1;r({isLive:F,isDvr:A})};return C.addEventListener("loadedmetadata",j),C.addEventListener("durationchange",j),j(),()=>{C.removeEventListener("loadedmetadata",j),C.removeEventListener("durationchange",j)}},[r]),T.useEffect(()=>(u(a.current),()=>u(null)),[u]),T.useEffect(()=>{const C=a.current;if(!C)return;const j=f==null?void 0:f.playbackRate;typeof j=="number"&&(C.playbackRate=j,r({playbackRate:j}))},[f,r]),T.useEffect(()=>{var at,L;const C=a.current;if(!C||!((L=(at=n.src)==null?void 0:at.vtt)!=null&&L.length))return;const j=50,H=16,F=1.2,A=40,w=-Math.max(1,Math.round(j/(H*F))),N=G=>{if(G.cues)for(let W=0;W<G.cues.length;W+=1){const _=G.cues[W];_.line=w,_.lineAlign="center"}},V=G=>{if(!G.cues)return;const W=C.getBoundingClientRect(),_=W.width>0?A*2*100/W.width:0,O=Math.max(10,Math.min(100,100-_));for(let Y=0;Y<G.cues.length;Y+=1){const rt=G.cues[Y];rt.size=O,rt.position=50,rt.align="center"}},B=G=>{N(G),V(G)},Q=Array.from(C.querySelectorAll("track")),Z=G=>{const W=G.currentTarget;W!=null&&W.track&&B(W.track)};Q.forEach(G=>{G.addEventListener("load",Z),G.track&&B(G.track)});const tt=new ResizeObserver(()=>{Q.forEach(G=>{G.track&&V(G.track)})});return tt.observe(C),()=>{Q.forEach(G=>{G.removeEventListener("load",Z)}),tt.disconnect()}},[f,(h=n.src)==null?void 0:h.vtt]),er(a,r,s.isSeeked,f==null?void 0:f.autoPause,n.emitEvent),T.useEffect(()=>{var A,K;const C=(K=(A=n.src)==null?void 0:A.vtt)!=null?K:[],j=C.length>0,H=C.findIndex(w=>w.default),F=H>=0?H:0;r({hasSubtitle:j,isSubtitle:!1,subTitleIdx:F})},[(m=n.src)==null?void 0:m.vtt,r]),T.useEffect(()=>{var K,w;if(!s.isSubtitle)return;const C=a.current;if(!C||!((w=(K=n.src)==null?void 0:K.vtt)!=null&&w.length))return;const j=new Map,H=[],F=async(N,V)=>{try{const B=await fetch(V,{mode:"cors"});if(!B.ok)return;const Q=await B.blob(),Z=URL.createObjectURL(Q);H.push(Z),j.set(N,N.src),N.src=Z}catch(B){}},A=Array.from(C.querySelectorAll("track"));return A.forEach(N=>{N.src&&F(N,N.src)}),()=>{A.forEach(N=>{const V=j.get(N);V&&(N.src=V)}),H.forEach(N=>URL.revokeObjectURL(N))}},[(y=n.src)==null?void 0:y.vtt,s.subTitleIdx,s.isSubtitle]),T.useEffect(()=>{const C=a.current;if(!C)return;const j=Array.from(C.querySelectorAll("track")),H=C.textTracks;if((!H||H.length===0)&&j.length===0)return;const F=s.subTitleIdx,A=s.isSubtitle,K=()=>{if(j.length>0){j.forEach(N=>{N.track&&(N.default=!1,N.track.mode="disabled")}),j.forEach((N,V)=>{N.track&&A&&V===F&&(N.default=!0,N.track.mode="showing")});return}for(let N=0;N<H.length;N+=1)H[N].mode="disabled";A&&H[F]&&(H[F].mode="showing")};K();const w=()=>{K()};return j.forEach(N=>{N.addEventListener("load",w)}),()=>{j.forEach(N=>{N.removeEventListener("load",w)})}},[s.isSubtitle,s.subTitleIdx,(p=n.src)==null?void 0:p.vtt]),T.useEffect(()=>{const C=a.current;C&&f.autostart&&C.play().catch(j=>{console.log(j),C.muted=!0,C.play()})},[f.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const j=localStorage.getItem("vpeSubtitleEnabled");j!==null&&s.hasSubtitle&&r({isSubtitle:!!j})},1e3)},[s.hasSubtitle,r]),v.jsx(v.Fragment,{children:((S=n==null?void 0:n.src)==null?void 0:S.file)&&v.jsx("video",{playsInline:!0,className:"vpe-video-dom",ref:a,controls:!1,autoPlay:f==null?void 0:f.autostart,muted:f==null?void 0: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 / ${(b=f==null?void 0:f.objectFit)!=null?b:"contain"} no-repeat`:void 0,objectFit:(M=f==null?void 0:f.objectFit)!=null?M:"contain"},children:(D=n.src.vtt)==null?void 0:D.map(C=>v.jsx("track",{kind:"subtitles",srcLang:C.id,label:C.label,src:C.src,default:C.default},`${C.id}-${C.src}`))})})}const gb="com.apple.fps",vb="com.apple.fps.1_0",bb=n=>["application/vnd.apple.mpegurl","application/x-mpegURL"].some(s=>{const r=n.canPlayType(s);return r==="probably"||r==="maybe"}),ch=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},Sb=n=>{const a=new Uint16Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},xb=n=>{if(n instanceof Uint8Array)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(typeof TextEncoder!="undefined")return new TextEncoder().encode(n);const a=new Uint8Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},Tb=n=>{if(typeof TextDecoder!="undefined")return new TextDecoder("utf-8").decode(n);let a="";for(let s=0;s<n.length;s+=1)a+=String.fromCharCode(n[s]);return a},Eb=n=>{let a="";if(typeof TextDecoder!="undefined")try{a=new TextDecoder("utf-16le").decode(n)}catch(s){a=""}return(!a||!a.includes("skd://"))&&(a=Tb(n)),a.replace(/\u0000/g,"").trim()},Mb=n=>{var r;if(!n)return"";const s=n.replace(/^<+|>+$/g,"").match(/skd:\/\/([^>"\s?#]+)/);return(r=s==null?void 0:s[1])!=null?r:""},Ab=n=>{try{return new URL(n).hostname}catch(a){const s=document.createElement("a");return s.href=n,s.hostname}},wb=(n,a,s)=>{const r=Sb(a),u=new ArrayBuffer(n.byteLength+4+r.byteLength+4+s.byteLength),f=new DataView(u);let d=0;new Uint8Array(u,d,n.byteLength).set(n),d+=n.byteLength,f.setUint32(d,r.byteLength,!0),d+=4;const m=new Uint16Array(u,d,r.length);return m.set(r),d+=m.byteLength,f.setUint32(d,s.byteLength,!0),d+=4,new Uint8Array(u,d,s.byteLength).set(s),new Uint8Array(u)},su=n=>{const a=n.replace(/[\r\n\s]/g,""),s=typeof atob=="function"?atob(a):"",r=new Uint8Array(s.length);for(let u=0;u<s.length;u+=1)r[u]=s.charCodeAt(u);return r},Cb=n=>{const a=n instanceof Uint8Array?n:new Uint8Array(n);let s="";for(let r=0;r<a.length;r+=1)s+=String.fromCharCode(a[r]);return typeof btoa=="function"?btoa(s):""};function Rb(n){var b,M,D,C,j,H,F,A,K,w,N;const a=T.useRef(null),s=T.useRef(null),r=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),d=T.useRef([]),h=T.useRef(0),[m,y]=ee(),{setVideoElement:p}=Ce(),S=n.options;return T.useEffect(()=>{var O,Y,rt;const V=a.current,B=(Y=(O=n==null?void 0:n.src)==null?void 0:O.drm)==null?void 0:Y[gb],Q=(rt=n==null?void 0:n.src)==null?void 0:rt.file;if(!V||!Q||!(B!=null&&B.licenseUri)||!(B!=null&&B.certificateUri))return;const Z=V;if(typeof Z.webkitSetMediaKeys!="function")return;let tt=!1;const at=st=>{n.onError&&n.onError(st)},L=async()=>{var J,nt,ct,ot;const st=ch(B.certificateRequestHeader),pt=await fetch(B.certificateUri,{method:"GET",headers:st});if(!pt.ok)throw new Error(`FairPlay certificate request failed (${pt.status})`);const E=(J=pt.headers.get("content-type"))!=null?J:"";if(E.includes("application/json")||E.includes("text")){const ft=await pt.text();try{const St=JSON.parse(ft),Tt=(ot=(ct=(nt=St==null?void 0:St.certificate)!=null?nt:St==null?void 0:St.data)!=null?ct:St==null?void 0:St.body)!=null?ot:"";if(Tt)return su(Tt)}catch(St){}if(ft)return su(ft)}const k=await pt.arrayBuffer();return new Uint8Array(k)},G=async(st,pt)=>{var ot,ft,St,Tt,At;const E=ch(B.licenseRequestHeader),k=Cb(st),J=new URLSearchParams({spc:k,assetId:pt,contentId:pt}).toString(),nt=await fetch(B.licenseUri,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...E},body:J});if(!nt.ok)throw new Error(`FairPlay license request failed (${nt.status})`);const ct=(ot=nt.headers.get("content-type"))!=null?ot:"";if(ct.includes("application/json")||ct.includes("text")){const De=await nt.text();let Se=De.trim();try{const se=JSON.parse(De);Se=(At=(Tt=(St=(ft=se==null?void 0:se.ckc)!=null?ft:se==null?void 0:se.license)!=null?St:se==null?void 0:se.data)!=null?Tt:se==null?void 0:se.body)!=null?At:""}catch(se){}if(Se)return su(Se).buffer}return nt.arrayBuffer()},W=st=>{if(!f.current||!u.current)throw new Error("FairPlay initData/certificate missing");const pt=wb(f.current,st,u.current),E=Z.webkitKeys.createSession("video/mp4",pt);E.contentId=st,s.current=E,E.addEventListener("webkitkeymessage",async k=>{var J;try{const nt=k==null?void 0:k.message;if(!nt)throw new Error("FairPlay key message missing");const ct=await G(nt instanceof Uint8Array?nt:(J=nt.buffer)!=null?J:nt,st);E.update(new Uint8Array(ct))}catch(nt){at(nt)}}),E.addEventListener("webkitkeyadded",()=>{r.current=!1}),E.addEventListener("webkitkeyerror",()=>{const k=h.current+1,J=d.current[k];if(J){h.current=k;try{E!=null&&E.close&&E.close()}catch(nt){}W(J);return}at(new Error("FairPlay key session error"))})},_=async st=>{var E;if(tt||r.current||s.current)return;const pt=st==null?void 0:st.initData;if(pt){r.current=!0;try{Z.webkitKeys||Z.webkitSetMediaKeys(new window.WebKitMediaKeys(vb));const k=await L();u.current=k;const J=xb(pt);if(f.current=J,!J.length)throw new Error("FairPlay initData is empty");const nt=Eb(J),ct=Mb(nt),ot=[S==null?void 0:S.fairplayContentId,ct?`skd://${ct}`:"",ct,Ab(nt),nt].filter(Tt=>!!Tt),ft=Array.from(new Set(ot));d.current=ft,h.current=0;const St=(E=ft[0])!=null?E:"";W(St)}catch(k){at(k)}finally{r.current=!1}}};return V.addEventListener("webkitneedkey",_),()=>{var st;if(tt=!0,r.current=!1,V.removeEventListener("webkitneedkey",_),(st=s.current)!=null&&st.close)try{s.current.close()}catch(pt){}s.current=null}},[(b=n==null?void 0:n.src)==null?void 0:b.drm,(M=n==null?void 0:n.src)==null?void 0:M.file,n.onError]),T.useEffect(()=>{var Q;const V=a.current,B=(Q=n==null?void 0:n.src)==null?void 0:Q.file;!V||!B||(bb(V)||n.onError&&n.onError(new Error("Native HLS not supported")),V.src=B,V.load())},[(D=n==null?void 0:n.src)==null?void 0:D.file,n.onError]),T.useEffect(()=>{const V=a.current;if(!V)return;const B=Q=>{n.onError&&n.onError(Q)};return V.addEventListener("error",B),()=>{V.removeEventListener("error",B)}},[n.onError]),T.useEffect(()=>{const V=a.current;if(!V)return;const B=()=>{const Q=V.duration,Z=!Number.isFinite(Q)||Q===1/0,tt=Z?Number.isFinite(Q)&&Q>0:!1;y({isLive:Z,isDvr:tt})};return V.addEventListener("loadedmetadata",B),V.addEventListener("durationchange",B),B(),()=>{V.removeEventListener("loadedmetadata",B),V.removeEventListener("durationchange",B)}},[y]),T.useEffect(()=>(p(a.current),()=>p(null)),[p]),T.useEffect(()=>{const V=a.current;V&&V.setAttribute("webkit-playsinline","true")},[]),T.useEffect(()=>{const V=a.current;if(!V)return;const B=S==null?void 0:S.playbackRate;typeof B=="number"&&(V.playbackRate=B,y({playbackRate:B}))},[S,y]),T.useEffect(()=>{var st,pt;const V=a.current;if(!V||!((pt=(st=n.src)==null?void 0:st.vtt)!=null&&pt.length))return;const B=50,Q=16,Z=1.2,tt=40,L=-Math.max(1,Math.round(B/(Q*Z))),G=E=>{if(E.cues)for(let k=0;k<E.cues.length;k+=1){const J=E.cues[k];J.line=L,J.lineAlign="center"}},W=E=>{if(!E.cues)return;const k=V.getBoundingClientRect(),J=k.width>0?tt*2*100/k.width:0,nt=Math.max(10,Math.min(100,100-J));for(let ct=0;ct<E.cues.length;ct+=1){const ot=E.cues[ct];ot.size=nt,ot.position=50,ot.align="center",ot.line=-3}},_=E=>{G(E),W(E)},O=Array.from(V.querySelectorAll("track")),Y=E=>{const k=E.currentTarget;k!=null&&k.track&&_(k.track)};O.forEach(E=>{E.addEventListener("load",Y),E.track&&_(E.track)});const rt=new ResizeObserver(()=>{O.forEach(E=>{E.track&&W(E.track)})});return rt.observe(V),()=>{O.forEach(E=>{E.removeEventListener("load",Y)}),rt.disconnect()}},[S,(C=n.src)==null?void 0:C.vtt]),er(a,y,m.isSeeked,S==null?void 0:S.autoPause,n.emitEvent),T.useEffect(()=>{var tt,at;const V=(at=(tt=n.src)==null?void 0:tt.vtt)!=null?at:[],B=V.length>0,Q=V.findIndex(L=>L.default),Z=Q>=0?Q:0;y({hasSubtitle:B,isSubtitle:!1,subTitleIdx:Z})},[(j=n.src)==null?void 0:j.vtt,y]),T.useEffect(()=>{var at,L;if(!m.isSubtitle)return;const V=a.current;if(!V||!((L=(at=n.src)==null?void 0:at.vtt)!=null&&L.length))return;const B=new Map,Q=[],Z=async(G,W)=>{try{const _=await fetch(W,{mode:"cors"});if(!_.ok)return;const O=await _.blob(),Y=URL.createObjectURL(O);Q.push(Y),B.set(G,G.src),G.src=Y}catch(_){}},tt=Array.from(V.querySelectorAll("track"));return tt.forEach(G=>{G.src&&Z(G,G.src)}),()=>{tt.forEach(G=>{const W=B.get(G);W&&(G.src=W)}),Q.forEach(G=>URL.revokeObjectURL(G))}},[(H=n.src)==null?void 0:H.vtt,m.subTitleIdx,m.isSubtitle]),T.useEffect(()=>{const V=a.current;if(!V)return;const B=Array.from(V.querySelectorAll("track")),Q=V.textTracks;if((!Q||Q.length===0)&&B.length===0)return;const Z=m.subTitleIdx,tt=m.isSubtitle,at=()=>{if(B.length>0){B.forEach(G=>{G.track&&(G.default=!1,G.track.mode="disabled")}),B.forEach((G,W)=>{G.track&&tt&&W===Z&&(G.default=!0,G.track.mode="showing")});return}for(let G=0;G<Q.length;G+=1)Q[G].mode="disabled";tt&&Q[Z]&&(Q[Z].mode="showing")};at();const L=()=>{at()};return B.forEach(G=>{G.addEventListener("load",L)}),()=>{B.forEach(G=>{G.removeEventListener("load",L)})}},[m.isSubtitle,m.subTitleIdx,(F=n.src)==null?void 0:F.vtt]),T.useEffect(()=>{const V=a.current;V&&S.autostart&&V.play().catch(B=>{console.log(B),V.muted=!0,V.play()})},[S.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const B=localStorage.getItem("vpeSubtitleEnabled");B!==null&&m.hasSubtitle&&y({isSubtitle:!!B})},1e3)},[m.hasSubtitle,y]),v.jsx(v.Fragment,{children:((A=n==null?void 0:n.src)==null?void 0:A.file)&&v.jsx("video",{playsInline:!0,className:"vpe-video-dom vpe-safari-video",ref:a,controls:!1,autoPlay:S==null?void 0:S.autostart,muted:S==null?void 0:S.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?m.initPlay?"transparent":`url(${n.src.poster}) center / ${(K=S==null?void 0:S.objectFit)!=null?K:"contain"} no-repeat`:void 0,objectFit:(w=S==null?void 0:S.objectFit)!=null?w:"contain"},children:(N=n.src.vtt)==null?void 0:N.map(V=>v.jsx("track",{kind:"subtitles",srcLang:V.id,label:V.label,src:V.src,default:V.default},`${V.id}-${V.src}`))})})}function Db(n){return v.jsx(fb,{...n})}function jb(n){return v.jsx(yb,{...n})}function Bb(n){return v.jsx(pb,{...n})}function zb(n){return v.jsx(Rb,{...n})}function Lb(n){var u,f;const a=T.useRef(null),s=T.useRef(null),r=n.hlsLib;return T.useEffect(()=>{var m,y;const d=a.current,h=(m=n==null?void 0:n.src)==null?void 0:m.file;if(!(!d||!h)){if((y=r==null?void 0:r.isSupported)!=null&&y.call(r)){const p=new r({startLevel:0,autoLevelCapping:0});return p.attachMedia(d),p.on(r.Events.MEDIA_ATTACHED,()=>{p.loadSource(h)}),p.on(r.Events.MANIFEST_PARSED,()=>{p.currentLevel=0,p.autoLevelEnabled=!1}),p.on(r.Events.ERROR,(S,b)=>{n.onError&&n.onError({evt:S,data:b})}),()=>{p.destroy()}}d.src=h}},[r,(u=n==null?void 0:n.src)==null?void 0:u.file,n.onError]),T.useEffect(()=>{const d=a.current;if(!d||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const h=()=>{const y=s.current;if(typeof y!="number"||Number.isNaN(y))return;const p=d.duration,S=Math.max(0,Math.min(y,Number.isFinite(p)?p:y));Math.abs(d.currentTime-S)>.25&&(d.currentTime=S),d.pause()};if(d.readyState>=1){h();return}const m=()=>h();return d.addEventListener("loadedmetadata",m,{once:!0}),()=>{d.removeEventListener("loadedmetadata",m)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((f=n==null?void 0:n.src)==null?void 0:f.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const Vb=n=>{var a;if(!n)return null;if(typeof n.MediaPlayer=="function"){const s=n.MediaPlayer();if(s!=null&&s.create)return s.create()}if((a=n.MediaPlayer)!=null&&a.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const s=n.MediaPlayerFactory();if(s!=null&&s.create)return s.create()}return null},Ob=n=>{var s,r,u,f;if(!n.length)return 0;let a=n[0];for(let d=1;d<n.length;d+=1){const h=n[d],m=(r=(s=h==null?void 0:h.bitrate)!=null?s:h==null?void 0:h.bandwidth)!=null?r:Number.MAX_SAFE_INTEGER,y=(f=(u=a==null?void 0:a.bitrate)!=null?u:a==null?void 0:a.bandwidth)!=null?f:Number.MAX_SAFE_INTEGER;m<y&&(a=h)}return typeof(a==null?void 0:a.qualityIndex)=="number"?a.qualityIndex:0};function Nb(n){var u,f;const a=T.useRef(null),s=T.useRef(null),r=n.dashLib;return T.useEffect(()=>{var D,C,j,H,F,A,K,w;const d=a.current,h=(D=n==null?void 0:n.src)==null?void 0:D.file;if(!d||!h)return;const m=Vb(r);if(!m){d.src=h;return}typeof m.initialize=="function"?m.initialize(d,h,!1):typeof m.attachView=="function"&&typeof m.attachSource=="function"?(m.attachView(d),m.attachSource(h)):d.src=h;const y=()=>{const N=typeof m.getBitrateInfoListFor=="function"?m.getBitrateInfoListFor("video"):[],V=Ob(N);typeof m.setAutoSwitchQualityFor=="function"&&m.setAutoSwitchQualityFor("video",!1),typeof m.setQualityFor=="function"&&m.setQualityFor("video",V)},p=(N,V)=>{n.onError&&n.onError({evt:N,data:V})},S=(K=(A=(F=(H=(C=r==null?void 0:r.MediaPlayer)==null?void 0:C.events)!=null?H:(j=r==null?void 0:r.MediaPlayer)==null?void 0:j.Events)!=null?F:r==null?void 0:r.events)!=null?A:r==null?void 0:r.Events)!=null?K:void 0,b=[],M=(N,V)=>{!N||typeof m.on!="function"||(m.on(N,V),b.push(()=>{typeof m.off=="function"&&m.off(N,V)}))};return M((w=S==null?void 0:S.STREAM_INITIALIZED)!=null?w:S==null?void 0:S.MANIFEST_LOADED,y),M(S==null?void 0:S.ERROR,p),()=>{b.forEach(N=>N()),typeof m.reset=="function"&&m.reset()}},[r,(u=n==null?void 0:n.src)==null?void 0:u.file,n.onError]),T.useEffect(()=>{const d=a.current;if(!d||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const h=()=>{const y=s.current;if(typeof y!="number"||Number.isNaN(y))return;const p=d.duration,S=Math.max(0,Math.min(y,Number.isFinite(p)?p:y));Math.abs(d.currentTime-S)>.25&&(d.currentTime=S),d.pause()};if(d.readyState>=1){h();return}const m=()=>h();return d.addEventListener("loadedmetadata",m,{once:!0}),()=>{d.removeEventListener("loadedmetadata",m)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((f=n==null?void 0:n.src)==null?void 0:f.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function Ub(n){var r,u;const a=T.useRef(null),s=T.useRef(null);return T.useEffect(()=>{var h;const f=a.current,d=(h=n==null?void 0:n.src)==null?void 0:h.file;!f||!d||(f.src=d)},[(r=n==null?void 0:n.src)==null?void 0:r.file]),T.useEffect(()=>{const f=a.current;if(!f)return;const d=h=>{n.onError&&n.onError(h)};return f.addEventListener("error",d),()=>{f.removeEventListener("error",d)}},[n.onError]),T.useEffect(()=>{const f=a.current;if(!f||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const d=()=>{const m=s.current;if(typeof m!="number"||Number.isNaN(m))return;const y=f.duration,p=Math.max(0,Math.min(m,Number.isFinite(y)?y:m));Math.abs(f.currentTime-p)>.25&&(f.currentTime=p),f.pause()};if(f.readyState>=1){d();return}const h=()=>d();return f.addEventListener("loadedmetadata",h,{once:!0}),()=>{f.removeEventListener("loadedmetadata",h)}},[n.isHovering,n.previewTime]),v.jsx(v.Fragment,{children:((u=n==null?void 0:n.src)==null?void 0:u.file)&&v.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function ru(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window=="undefined"||!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 _b{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 Nl=new _b,Ga=n=>Math.max(0,Math.min(100,n));function fh({color:n="#31ec2a",src:a,hlsLib:s,dashLib:r,options:u,onError:f,seekingPreview:d=!0}){var nn,je,hn,jt,Be,xe;const{isMobile:h}=ru(),[m,y]=ee(),{seekTo:p}=Ce(),S=r,b=typeof(a==null?void 0:a.file)=="string"?a.file.split("?")[0].toLowerCase():"",M=b.endsWith(".mpd"),D=b.endsWith(".mp4"),[C,j]=T.useState(!1),[H,F]=T.useState(0),[A,K]=T.useState(0),[w,N]=T.useState(null),[V,B]=T.useState(null),[Q,Z]=T.useState(null),tt=T.useRef(null),at=T.useRef(null),L=T.useRef(null),G=n||"#31ec2a",W="5px",_=(nn=m.duration)!=null?nn:0,O=_>0?_:0,Y=O>0?((je=m.currentTime)!=null?je:0)/O*100:0,rt=O>0?((hn=m.buffered)!=null?hn:0)/O*100:0,st=!!m.isLive,E=(st&&_>0?Math.abs(_-((jt=m.currentTime)!=null?jt:0))<30:!1)?100:Ga(H),k=w!=null?w:Y,J=V!=null?V:k,nt=Q!=null?Q:k,ct=O>0?O*(k/100):0,ot=w!==null,ft=(Be=m.videoWidth)!=null?Be:0,St=(xe=m.videoHeight)!=null?xe:0,Tt=ft>0&&St>0,At=Tt?`${ft}/${St}`:"16/9",De=Tt&&ft>St?"160px":"55px",Se=T.useCallback(Te=>{const ze=tt.current;if(!ze)return null;const Pe=ze.getBoundingClientRect();if(Pe.width<=0)return null;const fe="clientX"in Te?Te.clientX:0;return Math.min(Math.max(fe-Pe.left,0),Pe.width)/Pe.width*100},[]),se=T.useCallback(Te=>{var Dt,kt;const ze=tt.current;if(!ze)return;const Pe=ze.getBoundingClientRect();if(Pe.width<=0)return;const fe=ie=>{const Jt=ie>0?ie/2/Pe.width*100:0,Yt=Math.max(0,Math.min(50,Jt)),wt=Math.max(Yt,100-Yt);return{minPercent:Yt,maxPercent:wt}},Xn=(kt=(Dt=at.current)==null?void 0:Dt.offsetWidth)!=null?kt:0,lt=fe(Xn),Et=Se(Te);if(Et===null)return;N(Ga(Et));const Xt=Math.max(lt.minPercent,Math.min(lt.maxPercent,Et));Z(Xt),B(Xt)},[Se]),me=T.useCallback(()=>{N(null),B(null),Z(null)},[]);return T.useEffect(()=>{C||(F(Y),K(rt))},[C,Y,rt]),T.useEffect(()=>{},[u]),m.isSeekOverlayVisible?null:v.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"10px",paddingTop:"10px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:se,onMouseLeave:me,children:v.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":G,"--seekSliderThumbColor":G,"--rlMargin":W},children:[v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:tt,children:v.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[ot&&!m.isLive&&!h&&d&&v.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:At,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ga(nt)}%`,transform:"translateX(-50%)",maxWidth:De},ref:at,children:v.jsx(v.Fragment,{children:M&&S?v.jsx(Nb,{src:a,dashLib:S,options:u,onError:f,previewTime:ct,isHovering:ot}):D?v.jsx(Ub,{src:a,options:u,onError:f,previewTime:ct,isHovering:ot}):s?v.jsx(Lb,{src:a,hlsLib:s,options:u,onError:f,previewTime:ct,isHovering:ot}):null})}),ot&&!m.isLive&&!h&&v.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Ga(J)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:L,children:Nl.formatTime(ct)})]})}),v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:v.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${A<1?1:A>98?100:A}%`}})}),v.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:v.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${E<1?1:E}%`},children:v.jsx("div",{style:{position:"relative"},children:v.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),v.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:v.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:E,onPointerDown:Te=>{if(st)return;y({isSeeked:!0}),j(!0);const ze=Se(Te);ze!==null&&F(Ga(ze))},onPointerUp:()=>{if(st)return;j(!1);const Te=O*(E/100);p(Te)},onChange:Te=>{if(st)return;const ze=Number(Te.currentTarget.value),Pe=Number.isNaN(ze)?0:ze;F(Ga(Pe))},disabled:st||O===0})})]})})}var dh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hh=ya.createContext&&ya.createContext(dh),kb=["attr","size","title"];function Hb(n,a){if(n==null)return{};var s=Gb(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 Gb(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 nr(){return nr=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},nr.apply(this,arguments)}function mh(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 ir(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?mh(Object(s),!0).forEach(function(r){Yb(n,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):mh(Object(s)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(s,r))})}return n}function Yb(n,a,s){return a=Pb(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function Pb(n){var a=qb(n,"string");return typeof a=="symbol"?a:a+""}function qb(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 yh(n){return n&&n.map((a,s)=>ya.createElement(a.tag,ir({key:s},a.attr),yh(a.child)))}function It(n){return a=>ya.createElement(Fb,nr({attr:ir({},n.attr)},a),yh(n.child))}function Fb(n){var a=s=>{var{attr:r,size:u,title:f}=n,d=Hb(n,kb),h=u||s.size||"1em",m;return s.className&&(m=s.className),n.className&&(m=(m?m+" ":"")+n.className),ya.createElement("svg",nr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,r,d,{className:m,style:ir(ir({color:n.color||s.color},s.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),f&&ya.createElement("title",null,f),n.children)};return hh!==void 0?ya.createElement(hh.Consumer,null,s=>a(s)):a(dh)}function Xb(n){return It({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 Kb(n){return It({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 Qb(n){return It({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 Zb(n){return It({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 Ib(n){return It({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 ph(n){return It({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 ou(n){return It({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 Jb(n){return It({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 gh(n){return It({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 vh(n){return It({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 Wb(n){return It({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 bh(n){return It({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 Sh(n){return It({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 xh(n){return It({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 Th(n){return It({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 Eh(n){return It({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 Mh(n){return It({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 ar(n){return It({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 Ul(n){return It({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 $b(n){return It({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 tS(n){return It({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 eS(n){return It({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 Ah(n){return It({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 Ke(n){var s;const a=(s=n.noBg)!=null?s:!1;return v.jsx(v.Fragment,{children:v.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:n.children})})}const An={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},nS={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},wh={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer",zoom:.9},Ch={border:0,background:"transparent",cursor:"pointer"},iS={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"},aS={flex:1},lS={display:"flex",alignItems:"center",gap:6},sS={padding:0,display:"flex",alignItems:"center",gap:6,cursor:"pointer"},lr={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},Oi={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Ni={flex:1,justifyContent:"start",display:"flex"},uu={display:"flex",alignItems:"center",gap:5},sr={fontSize:"0.9rem",opacity:.6};function rS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var m,y;const[f]=ee(),{play:d,pause:h}=Ce();return f.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?(m=r==null?void 0:r.pause)!=null?m:"일시정지":(y=r==null?void 0:r.play)!=null?y:"재생"})}),v.jsx("button",{type:"button",onClick:f.isPlaying?h:d,style:An,children:f.isEnded?v.jsx(Ah,{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)"}}):v.jsx(v.Fragment,{children:f.isPlaying?v.jsx(ph,{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)"}}):v.jsx(ou,{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 oS(n){var u,f,d;const a=(u=n.noPadding)!=null?u:!1,s=(f=n.cap)!=null?f:0,r={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative",marginLeft:"0.2rem",marginRight:"0.2rem"};return v.jsx(v.Fragment,{children:v.jsx("div",{style:{...r,...(d=n.style)!=null?d:{}},className:n.noBg?"obtn-group-nobg":"obtn-group",children:n.children})})}function _l(n){return v.jsx(oS,{...n})}function uS({size:n="3rem",weight:a="fill",color:s="#ffffff",isPortrait:r=!1,isMobile:u=!1,next:f=()=>{},prev:d=()=>{},pidx:h=0,playlistCnt:m=0,isAnimationComplete:y=!1}){const[p]=ee(),[S,b]=T.useState(0),{play:M,pause:D}=Ce();if(T.useEffect(()=>{u||b(j=>j+1)},[u,p.isPlaying]),p.isSeekOverlayVisible)return null;const C=!u&&!p.isEnded;return v.jsxs("div",{className:`vpe-big-play-btn ${C?"center-play-btn-anim":""}`,children:[u&&m>1&&v.jsx(_l,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{disabled:h===0,type:"button",style:wh,onClick:()=>{y&&d()},children:v.jsx(vh,{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)"}})})})}),v.jsx(_l,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{type:"button",style:nS,onClick:()=>{(u||r)&&(p.isPlaying?D():M())},children:p.isEnded?v.jsx(Ah,{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)"}}):v.jsx(v.Fragment,{children:p.isPlaying?v.jsx(ph,{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)"}}):v.jsx(ou,{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&&m>1&&v.jsx(_l,{noPadding:!0,children:v.jsx(Ke,{children:v.jsx("button",{type:"button",disabled:h===m-1,style:wh,onClick:()=>{y&&f()},children:v.jsx(gh,{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)"}})})})})]},C?S:0)}function cS({color:n="#ffffff"}){var y,p,S,b,M;const[a]=ee(),{seekTo:s}=Ce();if(a.isSeekOverlayVisible)return null;const u=((p=(y=a.bufferedEnd)!=null?y:a.buffered)!=null?p:0)||a.duration||0,f=!!a.isLive,h=f&&u>0?Math.abs(((S=a.currentTime)!=null?S:0)-u)<10:f,m=()=>{f&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return v.jsx(v.Fragment,{children:a.isLive?v.jsxs("button",{type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",lineHeight:"0.4rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[v.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:h?"#ff0000":n,display:"inline-block"}}),v.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"})]}):v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"0.5rem",lineHeight:"0.4rem",minWidth:"60px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",fontSize:"0.8rem"},children:Nl.formatTime((b=a.currentTime)!=null?b:0)||0}),v.jsx("div",{className:"defObj",style:{fontSize:"0.8rem",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),v.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"0.5rem",minWidth:"60px",display:"flex",lineHeight:"0.4rem",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",fontSize:"0.8rem"},children:Nl.formatTime((M=a.duration)!=null?M:0)||0})]})})}function fS({color:n="#ffffff"}){var s;const[a]=ee();return a.isSeekOverlayVisible?null:v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",justifyContent:"center",lineHeight:"0.4rem",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:Nl.formatTime((s=a.currentTime)!=null?s:0)||0})}function dS({color:n="#ffffff"}){var s;const[a]=ee();return a.isSeekOverlayVisible?null:v.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",lineHeight:"0.4rem",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:Nl.formatTime((s=a.duration)!=null?s:0)||0})}function hS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=ee(),{seekTo:d}=Ce(),h=typeof(u==null?void 0:u.skipSeconds)=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const m=()=>{var S;if(f.isLive&&!f.isDvr)return;const p=((S=f.currentTime)!=null?S:0)-h;d(Math.max(0,p))};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",onClick:m,style:An,children:v.jsx(Jb,{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 mS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=ee(),{seekTo:d}=Ce(),h=typeof(u==null?void 0:u.skipSeconds)=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const m=()=>{var M,D;if(f.isLive&&!f.isDvr)return;const y=(M=f.currentTime)!=null?M:0,p=(D=f.duration)!=null?D:0,S=y+h,b=Number.isFinite(p)&&p>0?Math.min(S,p):Math.max(0,S);d(b)};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",onClick:m,style:An,children:v.jsx(Ib,{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 Rh({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{}}){return v.jsx(v.Fragment,{children:f>1&&v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",disabled:u===0,onClick:()=>{d()},style:An,children:v.jsx(vh,{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 Dh({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,next:d=()=>{}}){return v.jsx(v.Fragment,{children:f>1&&v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:v.jsx("button",{type:"button",style:An,disabled:u===f-1,onClick:()=>{d()},children:v.jsx(gh,{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 yS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{},next:h=()=>{}}){return v.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[v.jsx(Rh,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,prev:d}),v.jsx(Dh,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,next:h})]})}function pS({color:n="#ffffff",title:a="",profileImage:s="",profileName:r="",createdAt:u=""}){return v.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${n}`,gap:10,padding:"0.4rem"},children:[s&&v.jsx("div",{children:v.jsx("img",{src:s,alt:r,style:{borderRadius:"100%",width:35,height:35,objectFit:"cover",border:"1px solid transparent"}})}),v.jsxs("div",{style:{flex:1},children:[v.jsx("div",{style:{marginBottom:"0.2rem",fontSize:"0.9rem"},children:a}),v.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.7rem",opacity:.5},children:[v.jsx("div",{children:r}),v.jsx("div",{children:u})]})]})]})}function jh(n){var r;const s={flex:1,display:"flex",justifyContent:n.align?n.align=="left"?"start":n.align=="right"?"end":"center":"start",alignItems:"center"};return v.jsx("div",{style:{...s,...(r=n.style)!=null?r:{}},children:n.children})}function gS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",options:r={},text:u={},pos:f="left"}){var p,S;const[d,h]=ee(),{toggleFullscreen:m}=Ce(),y=typeof navigator!="undefined"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);return T.useEffect(()=>{const b=()=>{y&&!r.iosFullscreenNativeMode||h({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",b),b(),()=>{document.removeEventListener("fullscreenchange",b)}},[h]),d.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?(p=u==null?void 0:u.fullOff)!=null?p:"전체화면 해제":(S=u==null?void 0:u.fullOn)!=null?S:"전체화면"})}),v.jsx("button",{type:"button",onClick:()=>m(r),style:An,children:d.isFullscreen?v.jsx(tS,{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)"}}):v.jsx(eS,{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 vS({size:n="1.5rem",color:a="#ffffff",text:s={},pos:r="left"}){var d,h;const[u]=ee(),{toggleSubtitle:f}=Ce();return u.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:u.hasSubtitle&&v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?(d=s==null?void 0:s.captionOff)!=null?d:"자막끄기":(h=s==null?void 0:s.captionOn)!=null?h:"자막켜기"})}),v.jsx("button",{type:"button",onClick:f,style:An,children:u.isSubtitle?v.jsx(bh,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):v.jsx(Zb,{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 bS({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var p,S,b;const[f]=ee(),{setVolume:d,toggleMute:h}=Ce(),m=(p=f.isVolume)!=null?p:0,y=f.isMuted?0:m;return f.isSeekOverlayVisible?null:v.jsxs("div",{className:"VolumeBtnWrap",children:[v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isMuted?(S=r==null?void 0:r.muteOff)!=null?S:"음소거 해제":(b=r==null?void 0:r.muteOn)!=null?b:"음소거"})}),v.jsx("button",{type:"button",onClick:h,style:An,children:v.jsxs(v.Fragment,{children:[(m===0||f.isMuted)&&v.jsx(Th,{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)"}}),m>=5&&m<=10&&!f.isMuted&&v.jsx(xh,{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)"}}),m>=11&&m<=50&&!f.isMuted&&v.jsx(Sh,{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)"}}),m>=51&&!f.isMuted&&v.jsx(Eh,{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)"}})]})})]}),v.jsx("div",{className:"vslideWrap",children:v.jsx("input",{type:"range",min:0,max:100,value:y,onChange:M=>{const D=Number(M.currentTarget.value);d(Number.isNaN(D)?0:D)},className:"VolumSlide"})})]})}function SS(n){return It({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 xS(n){return It({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 TS({color:n="#ffffff",size:a="1.5rem",text:s={},pos:r="left"}){var y;const[u,f]=ee(),{isMobile:d}=ru(),h=u.isHd,m=u.is4k;return u.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:(y=s==null?void 0:s.setting)!=null?y:"설정"})}),v.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!u.isSettingModal})},style:An,children:[(h||m)&&v.jsx("div",{style:{position:"absolute",right:"-8px",top:"-5px",backgroundColor:"#ffffff",padding:0,height:"10px",borderRadius:"5px"},children:h&&!m&&!d&&v.jsx(xS,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})||m&&!d&&v.jsx(SS,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})}),v.jsx(Qb,{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 ES({color:n="#ffffff",size:a="1.5rem",text:s={},pos:r="left",options:u}){var y,p,S;const{togglePictureInPicture:f}=Ce(),[d]=ee(),h=(p=(y=u==null?void 0:u.override)==null?void 0:y.pip)!=null?p:void 0,m=T.useRef(!1);return d.isSeekOverlayVisible?null:v.jsx(v.Fragment,{children:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:(S=s==null?void 0:s.miniPlayer)!=null?S:"미니플레이어"})}),v.jsx("button",{type:"button",onClick:()=>{var b,M;if(h){m.current?(b=h==null?void 0:h.off)==null||b.call(h):(M=h==null?void 0:h.on)==null||M.call(h),m.current=!m.current;return}f()},style:An,children:v.jsx(Kb,{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 Bh({size:n="1.5rem",weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){var m,y,p;const[f]=ee(),{toggleMute:d}=Ce(),h=(m=f.isVolume)!=null?m:0;return f.isSeekOverlayVisible?null:v.jsx(Ke,{noBg:!0,children:v.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[v.jsx("div",{className:"vpe-popver",children:v.jsx("div",{className:"vpe-popver-text",children:f.isMuted?(y=r==null?void 0:r.muteOff)!=null?y:"음소거 해제":(p=r==null?void 0:r.muteOn)!=null?p:"음소거"})}),v.jsx("button",{type:"button",onClick:d,style:An,children:v.jsxs(v.Fragment,{children:[(h===0||f.isMuted)&&v.jsx(Th,{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&&v.jsx(xh,{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&&v.jsx(Sh,{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&&v.jsx(Eh,{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 MS(n){return It({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 248L288 96v85.334C138.666 202.667 85.333 309.334 64 416c53.333-74.666 117.333-108.802 224-108.802v87.469L448 248z"},child:[]}]})(n)}function AS({size:n="1.5rem",color:a="#ffffff",pos:s="left"}){const r=async()=>{const u={url:location.href};try{if(!navigator.share){await navigator.clipboard.writeText(u.url),alert("공유 기능이 없어 링크를 클립보드에 복사했어요.");return}await navigator.share(u)}catch(f){console.log("share failed/canceled:",f)}};return v.jsx(Ke,{noBg:!0,children:v.jsx("div",{className:`vpe-popover-wrap vp-${s}`,children:v.jsx("button",{type:"button",onClick:()=>{r()},style:An,children:v.jsx(v.Fragment,{children:v.jsx(MS,{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 wS(n){return It({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.74,14.47c0-2.04,0.51-3.93,1.52-5.66s2.38-3.1,4.11-4.11s3.61-1.51,5.64-1.51c1.52,0,2.98,0.3,4.37,0.89
10
10
  s2.58,1.4,3.59,2.4s1.81,2.2,2.4,3.6s0.89,2.85,0.89,4.39c0,1.52-0.3,2.98-0.89,4.37s-1.4,2.59-2.4,3.59s-2.2,1.8-3.59,2.39
11
11
  s-2.84,0.89-4.37,0.89c-1.53,0-3-0.3-4.39-0.89s-2.59-1.4-3.6-2.4s-1.8-2.2-2.4-3.58S3.74,16,3.74,14.47z M6.22,14.47
12
12
  c0,2.37,0.86,4.43,2.59,6.18c1.73,1.73,3.79,2.59,6.2,2.59c1.58,0,3.05-0.39,4.39-1.18s2.42-1.85,3.21-3.2s1.19-2.81,1.19-4.39
13
13
  s-0.4-3.05-1.19-4.4s-1.86-2.42-3.21-3.21s-2.81-1.18-4.39-1.18s-3.05,0.39-4.39,1.18S8.2,8.72,7.4,10.07S6.22,12.89,6.22,14.47z
14
14
  M9.51,14.46c0-0.23,0.08-0.43,0.24-0.59s0.36-0.24,0.59-0.24h3.79V7.81c0-0.23,0.08-0.43,0.24-0.59s0.36-0.24,0.59-0.24
15
15
  s0.43,0.08,0.59,0.24s0.24,0.36,0.24,0.59v6.67c0,0.23-0.08,0.43-0.24,0.59s-0.36,0.24-0.59,0.24c-0.1,0-0.16,0-0.19-0.01h-4.44
16
- c-0.23,0-0.43-0.08-0.59-0.25C9.59,14.88,9.51,14.68,9.51,14.46z`},child:[]}]})(n)}function TS(n){var f;const{useTouch:a,play:s}=Ce(),[r,u]=T.useState(!1);return T.useEffect(()=>{const d=window.requestAnimationFrame(()=>{u(!0)});return()=>window.cancelAnimationFrame(d)},[]),v.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 / ${((f=n.options)==null?void 0:f.objectFit)||"contain"} no-repeat`,cursor:"default",opacity:r?1:0,transition:"opacity 200ms ease"},onClick:()=>{a(),s()},children:v.jsx("div",{className:"vpe-big-play-btn",style:{transform:"scale(1)"},children:v.jsx(kl,{noPadding:!0,children:v.jsx(Ke,{noBg:!0,children:v.jsx(ou,{style:{fontSize:"3rem",color:"#fff",cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function ES(n){const{options:a,startTime:s,text:r}=n,u=T.useRef(null),f=MS(s),[d,h]=T.useState(!1),m={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",top:0,left:0,position:"absolute",zIndex:1,aspectRatio:(a==null?void 0:a.aspectRatio)||"16/9",transition:"opacity 200ms ease"},y={position:"absolute",left:"2rem",bottom:"2rem",backgroundColor:"rgba(0,0,0,0.5)",borderRadius:"10px",padding:"10px 10px",lineHeight:"1.5rem",fontSize:"0.9rem",display:"flex",alignItems:"center",gap:"10px",opacity:d?1:0,transition:"opacity 300ms ease"};return T.useEffect(()=>{const p=window.setTimeout(()=>{h(!0)},500);return()=>window.clearTimeout(p)},[]),v.jsx("div",{style:m,children:v.jsx("div",{ref:u,style:{width:"100%",height:"100%",position:"relative"},children:v.jsxs("div",{style:y,className:"vpe-startTime-cardStyle",children:[v.jsx("div",{children:v.jsx(xS,{style:{fontSize:"2rem"}})}),v.jsxs("div",{children:[v.jsx("div",{children:r}),v.jsx("div",{children:f})]})]})})})}function MS(n){if(!n)return"";const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const s=a.getFullYear(),r=String(a.getMonth()+1).padStart(2,"0"),u=String(a.getDate()).padStart(2,"0"),f=a.getHours(),d=f>=12?"PM":"AM",h=f%12||12,m=String(h).padStart(2,"0"),y=String(a.getMinutes()).padStart(2,"0");return`${s}.${r}.${u} ${d} ${m}:${y}`}function AS(n){var h,m,y,p,S,b;const{options:a}=n,s=T.useRef(null),r=T.useRef(null),[u,f]=T.useState({top:0,left:0}),d={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",top:0,left:0,position:"absolute",zIndex:1,aspectRatio:(a==null?void 0:a.aspectRatio)||"16/9",transition:"opacity 200ms ease"};return T.useEffect(()=>{var Z,R,O;if(!(a!=null&&a.visibleWatermark)){f({top:0,left:0});return}const M=((Z=a==null?void 0:a.watermarkConfig)==null?void 0:Z.randPosition)===!0,V=()=>{const j=s.current,D=r.current;if(!j||!D)return null;const J=Math.max(0,j.clientWidth-D.offsetWidth),K=Math.max(0,j.clientHeight-D.offsetHeight);return{maxLeft:J,maxTop:K,width:j.clientWidth,height:j.clientHeight}},w=()=>{const j=V();if(!j)return;const D=Math.random()*j.maxLeft,J=Math.random()*j.maxTop;f({top:J,left:D})},z=()=>{var at,L,k,W;const j=V();if(!j)return;const D=Math.min(100,Math.max(0,Number((L=(at=a==null?void 0:a.watermarkConfig)==null?void 0:at.x)!=null?L:0))),J=Math.min(100,Math.max(0,Number((W=(k=a==null?void 0:a.watermarkConfig)==null?void 0:k.y)!=null?W:0))),K=Math.min(j.maxLeft,D/100*j.width),tt=Math.min(j.maxTop,J/100*j.height);f({top:tt,left:K})};if(!M){const j=window.requestAnimationFrame(z);return window.addEventListener("resize",z),()=>{window.cancelAnimationFrame(j),window.removeEventListener("resize",z)}}const Y=Math.max(0,Number((O=(R=a==null?void 0:a.watermarkConfig)==null?void 0:R.randPositionInterVal)!=null?O:3e3)),X=window.requestAnimationFrame(w),A=window.setInterval(w,Y);return window.addEventListener("resize",w),()=>{window.cancelAnimationFrame(X),window.clearInterval(A),window.removeEventListener("resize",w)}},[a==null?void 0:a.watermarkText,a==null?void 0:a.aspectRatio,a==null?void 0:a.visibleWatermark,(h=a==null?void 0:a.watermarkConfig)==null?void 0:h.randPosition,(m=a==null?void 0:a.watermarkConfig)==null?void 0:m.randPositionInterVal,(y=a==null?void 0:a.watermarkConfig)==null?void 0:y.x,(p=a==null?void 0:a.watermarkConfig)==null?void 0:p.y]),a!=null&&a.visibleWatermark?v.jsx("div",{style:d,children:v.jsx("div",{ref:s,style:{width:"100%",height:"100%",position:"relative"},children:v.jsx("span",{className:"ncplayer-tw-text-flot",ref:r,style:{position:"absolute",top:u.top,left:u.left,opacity:(b=(S=a==null?void 0:a.watermarkConfig)==null?void 0:S.opacity)!=null?b:.2,fontSize:"clamp(0.6rem , 0.8rem, 14px)"},children:(a==null?void 0:a.watermarkText)||"NAVER CLOUD PLATFORM"})})}):null}function cu(n){const[a]=te(),[s,r]=T.useState(!1),{poster:u,options:f}=n,d={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${u}) center / ${(f==null?void 0:f.objectFit)||"contain"} no-repeat`,aspectRatio:(f==null?void 0:f.aspectRatio)||"16/9",opacity:s?1:0,transition:"opacity 200ms ease",pointerEvents:s?"auto":"none"};return T.useEffect(()=>{if(!a.isLoading){r(!1);return}const h=window.setTimeout(()=>{r(!0)},300);return()=>window.clearTimeout(h)},[a.isLoading]),v.jsx(v.Fragment,{children:a.isLoading&&v.jsx("div",{style:d,children:v.jsx("div",{className:"ncplayer-spinner"})})})}const Dh=()=>({lastTapTime:0,count:0,timer:null});function wS({seekSeconds:n=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:r}){const{seekTo:u,videoEl:f}=Ce(),[,d]=te(),[h,m]=T.useState(null),[y,p]=T.useState(null),S=T.useRef({left:null,right:null}),b=T.useRef({left:Dh(),right:Dh()});T.useEffect(()=>()=>{d({isSeekOverlayVisible:!1});const{left:Y,right:X}=b.current;Y.timer&&window.clearTimeout(Y.timer),X.timer&&window.clearTimeout(X.timer);const{left:A,right:Z}=S.current;A&&window.clearTimeout(A),Z&&window.clearTimeout(Z)},[d]),T.useEffect(()=>{d({isSeekOverlayVisible:h!==null||y!==null})},[h,y,d]);const M=(Y,X)=>{const A=Math.floor(X/2);if(A<=0){Y=="left"?m(null):p(null);return}const Z=A*n*(Y=="left"?-1:1);Y=="left"?m(Z):p(Z);const R=S.current;R[Y]&&window.clearTimeout(R[Y]),R[Y]=window.setTimeout(()=>{Y=="left"?m(null):p(null),R[Y]=null},s+200)},V=(Y,X)=>{if(!f||X<=0)return;const A=f.currentTime||0,Z=X*n*(Y=="left"?-1:1);u(A+Z)},w=Y=>{const X=b.current[Y],A=Date.now(),Z=A-X.lastTapTime<=a;X.count=Z?X.count+1:1,X.lastTapTime=A,M(Y,X.count),X.timer&&window.clearTimeout(X.timer),X.timer=window.setTimeout(()=>{const R=Math.floor(X.count/2);if(X.count=0,X.timer=null,R<=0){r==null||r(Y);return}V(Y,R)},s)},z=Y=>X=>{X.preventDefault(),X.stopPropagation(),w(Y)};return v.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"22%",height:"calc(100% - 52%)"},children:[v.jsx("style",{children:`
16
+ c-0.23,0-0.43-0.08-0.59-0.25C9.59,14.88,9.51,14.68,9.51,14.46z`},child:[]}]})(n)}function CS(n){var f;const{useTouch:a,play:s}=Ce(),[r,u]=T.useState(!1);return T.useEffect(()=>{const d=window.requestAnimationFrame(()=>{u(!0)});return()=>window.cancelAnimationFrame(d)},[]),v.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 / ${((f=n.options)==null?void 0:f.objectFit)||"contain"} no-repeat`,cursor:"default",opacity:r?1:0,transition:"opacity 200ms ease"},onClick:()=>{a(),s()},children:v.jsx("div",{className:"vpe-big-play-btn",style:{transform:"scale(1)"},children:v.jsx(_l,{noPadding:!0,children:v.jsx(Ke,{noBg:!0,children:v.jsx(ou,{style:{fontSize:"3rem",color:"#fff",cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function RS(n){const{options:a,startTime:s,text:r}=n,u=T.useRef(null),f=DS(s),[d,h]=T.useState(!1),m={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",top:0,left:0,position:"absolute",zIndex:1,aspectRatio:(a==null?void 0:a.aspectRatio)||"16/9",transition:"opacity 200ms ease"},y={position:"absolute",left:"2rem",bottom:"2rem",backgroundColor:"rgba(0,0,0,0.5)",borderRadius:"10px",padding:"10px 10px",lineHeight:"1.5rem",fontSize:"0.9rem",display:"flex",alignItems:"center",gap:"10px",opacity:d?1:0,transition:"opacity 300ms ease"};return T.useEffect(()=>{const p=window.setTimeout(()=>{h(!0)},500);return()=>window.clearTimeout(p)},[]),v.jsx("div",{style:m,children:v.jsx("div",{ref:u,style:{width:"100%",height:"100%",position:"relative"},children:v.jsxs("div",{style:y,className:"vpe-startTime-cardStyle",children:[v.jsx("div",{children:v.jsx(wS,{style:{fontSize:"2rem"}})}),v.jsxs("div",{children:[v.jsx("div",{children:r}),v.jsx("div",{children:f})]})]})})})}function DS(n){if(!n)return"";const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const s=a.getFullYear(),r=String(a.getMonth()+1).padStart(2,"0"),u=String(a.getDate()).padStart(2,"0"),f=a.getHours(),d=f>=12?"PM":"AM",h=f%12||12,m=String(h).padStart(2,"0"),y=String(a.getMinutes()).padStart(2,"0");return`${s}.${r}.${u} ${d} ${m}:${y}`}function jS(n){var h,m,y,p,S,b;const{options:a}=n,s=T.useRef(null),r=T.useRef(null),[u,f]=T.useState({top:0,left:0}),d={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",top:0,left:0,position:"absolute",zIndex:1,aspectRatio:(a==null?void 0:a.aspectRatio)||"16/9",transition:"opacity 200ms ease"};return T.useEffect(()=>{var K,w,N;if(!(a!=null&&a.visibleWatermark)){f({top:0,left:0});return}const M=((K=a==null?void 0:a.watermarkConfig)==null?void 0:K.randPosition)===!0,D=()=>{const V=s.current,B=r.current;if(!V||!B)return null;const Q=Math.max(0,V.clientWidth-B.offsetWidth),Z=Math.max(0,V.clientHeight-B.offsetHeight);return{maxLeft:Q,maxTop:Z,width:V.clientWidth,height:V.clientHeight}},C=()=>{const V=D();if(!V)return;const B=Math.random()*V.maxLeft,Q=Math.random()*V.maxTop;f({top:Q,left:B})},j=()=>{var at,L,G,W;const V=D();if(!V)return;const B=Math.min(100,Math.max(0,Number((L=(at=a==null?void 0:a.watermarkConfig)==null?void 0:at.x)!=null?L:0))),Q=Math.min(100,Math.max(0,Number((W=(G=a==null?void 0:a.watermarkConfig)==null?void 0:G.y)!=null?W:0))),Z=Math.min(V.maxLeft,B/100*V.width),tt=Math.min(V.maxTop,Q/100*V.height);f({top:tt,left:Z})};if(!M){const V=window.requestAnimationFrame(j);return window.addEventListener("resize",j),()=>{window.cancelAnimationFrame(V),window.removeEventListener("resize",j)}}const H=Math.max(0,Number((N=(w=a==null?void 0:a.watermarkConfig)==null?void 0:w.randPositionInterVal)!=null?N:3e3)),F=window.requestAnimationFrame(C),A=window.setInterval(C,H);return window.addEventListener("resize",C),()=>{window.cancelAnimationFrame(F),window.clearInterval(A),window.removeEventListener("resize",C)}},[a==null?void 0:a.watermarkText,a==null?void 0:a.aspectRatio,a==null?void 0:a.visibleWatermark,(h=a==null?void 0:a.watermarkConfig)==null?void 0:h.randPosition,(m=a==null?void 0:a.watermarkConfig)==null?void 0:m.randPositionInterVal,(y=a==null?void 0:a.watermarkConfig)==null?void 0:y.x,(p=a==null?void 0:a.watermarkConfig)==null?void 0:p.y]),a!=null&&a.visibleWatermark?v.jsx("div",{style:d,children:v.jsx("div",{ref:s,style:{width:"100%",height:"100%",position:"relative"},children:v.jsx("span",{className:"ncplayer-tw-text-flot",ref:r,style:{position:"absolute",top:u.top,left:u.left,opacity:(b=(S=a==null?void 0:a.watermarkConfig)==null?void 0:S.opacity)!=null?b:.2,fontSize:"clamp(0.6rem , 0.8rem, 14px)"},children:(a==null?void 0:a.watermarkText)||"NAVER CLOUD PLATFORM"})})}):null}function cu(n){const[a]=ee(),[s,r]=T.useState(!1),{poster:u,options:f}=n,d={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${u}) center / ${(f==null?void 0:f.objectFit)||"contain"} no-repeat`,aspectRatio:(f==null?void 0:f.aspectRatio)||"16/9",opacity:s?1:0,transition:"opacity 200ms ease",pointerEvents:s?"auto":"none"};return T.useEffect(()=>{if(!a.isLoading){r(!1);return}const h=window.setTimeout(()=>{r(!0)},300);return()=>window.clearTimeout(h)},[a.isLoading]),v.jsx(v.Fragment,{children:a.isLoading&&v.jsx("div",{style:d,children:v.jsx("div",{className:"ncplayer-spinner"})})})}const zh=()=>({lastTapTime:0,count:0,timer:null});function BS({seekSeconds:n=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:r}){const{seekTo:u,videoEl:f}=Ce(),[,d]=ee(),[h,m]=T.useState(null),[y,p]=T.useState(null),S=T.useRef({left:null,right:null}),b=T.useRef({left:zh(),right:zh()});T.useEffect(()=>()=>{d({isSeekOverlayVisible:!1});const{left:H,right:F}=b.current;H.timer&&window.clearTimeout(H.timer),F.timer&&window.clearTimeout(F.timer);const{left:A,right:K}=S.current;A&&window.clearTimeout(A),K&&window.clearTimeout(K)},[d]),T.useEffect(()=>{d({isSeekOverlayVisible:h!==null||y!==null})},[h,y,d]);const M=(H,F)=>{const A=Math.floor(F/2);if(A<=0){H=="left"?m(null):p(null);return}const K=A*n*(H=="left"?-1:1);H=="left"?m(K):p(K);const w=S.current;w[H]&&window.clearTimeout(w[H]),w[H]=window.setTimeout(()=>{H=="left"?m(null):p(null),w[H]=null},s+200)},D=(H,F)=>{if(!f||F<=0)return;const A=f.currentTime||0,K=F*n*(H=="left"?-1:1);u(A+K)},C=H=>{const F=b.current[H],A=Date.now(),K=A-F.lastTapTime<=a;F.count=K?F.count+1:1,F.lastTapTime=A,M(H,F.count),F.timer&&window.clearTimeout(F.timer),F.timer=window.setTimeout(()=>{const w=Math.floor(F.count/2);if(F.count=0,F.timer=null,w<=0){r==null||r(H);return}D(H,w)},s)},j=H=>F=>{F.preventDefault(),F.stopPropagation(),C(H)};return v.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"22%",height:"calc(100% - 52%)"},children:[v.jsx("style",{children:`
17
17
  @keyframes vpe-fade-in-left {
18
18
  from { opacity: 0; transform: translateX(-6px); }
19
19
  to { opacity: 1; transform: translateX(0); }
@@ -22,7 +22,7 @@ Error generating stack: `+l.message+`
22
22
  from { opacity: 0; transform: translateX(6px); }
23
23
  to { opacity: 1; transform: translateX(0); }
24
24
  }
25
- `}),h!==null&&v.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:[v.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:v.jsx(Th,{style:{fontSize:"0.95rem"}})},`left-arrow-${h}`),v.jsx("div",{children:h>0?`+${h}s`:`${h}s`})]}),y!==null&&v.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:[v.jsx("div",{children:y>0?`+${y}s`:`${y}s`}),v.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:v.jsx(lr,{style:{fontSize:"0.95rem"}})},`right-arrow-${y}`)]}),v.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"20%",pointerEvents:"auto",cursor:"default"},onTouchEnd:z("left")}),v.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"20%",pointerEvents:"auto",cursor:"default"},onTouchEnd:z("right")})]})}function CS(n){var A,Z,R,O,j,D,J,K,tt,at;const[a,s]=te(),{playBackRate:r,selectQualityLevel:u}=Ce(),{text:f}=n,d=(O=(R=(Z=n.vtt)!=null?Z:(A=n.src)==null?void 0:A.vtt)!=null?R:a.subtitleTracks)!=null?O:[],h=(j=a.currentLevel)!=null?j:-1,m=(D=a.levels)==null?void 0:D.find(L=>L.index===h),[y,p]=T.useState(null);T.useEffect(()=>{var k,W,_,N;const L=(N=(_=(W=(k=a.levels)==null?void 0:k.find(G=>G.index===a.currentLevel))==null?void 0:W.height)!=null?_:m==null?void 0:m.height)!=null?N:null;L&&L!==y&&p(L)},[y,m==null?void 0:m.height,a.currentLevel,a.levels]);const S=a.isAutoLevel?y?f.auto+` (${y}p)`:f.auto:m!=null&&m.height?`${m.height}p`:(J=m==null?void 0:m.name)!=null?J:`${h}`,[b,M]=T.useState(0),[V,w]=T.useState("forward"),[z,Y]=T.useState(!1),X=T.useCallback(L=>{w(L>b?"forward":"back"),M(L),Y(!0)},[b]);return T.useEffect(()=>{if(!z)return;const L=window.setTimeout(()=>{Y(!1)},200);return()=>window.clearTimeout(L)},[z]),v.jsx(v.Fragment,{children:v.jsx("div",{className:"vpe-setting-modal",children:v.jsxs("div",{className:"vpe-setting-content",children:[v.jsxs("div",{style:Wb,children:[v.jsxs("div",{style:$b,children:[b===0&&v.jsx("div",{children:f.setting}),b>0&&v.jsx("div",{style:tS,children:v.jsx("div",{children:v.jsxs("button",{onClick:()=>{X(0)},type:"button",style:{...Ah,...eS},children:[v.jsx(Th,{style:{fontSize:"12px"},color:"#ffffff"}),v.jsxs("div",{children:[b==1&&f.quality,b==2&&f.playbackRate,b==3&&f.captions]})]})})})]}),v.jsx("div",{children:v.jsx("button",{type:"button",style:Ah,onClick:()=>{s({isSettingModal:!1})},children:v.jsx(Qb,{size:25,color:"#ffffff"})})})]}),v.jsxs("div",{className:"vpe-modal-menu",children:[b===0&&v.jsxs("div",{className:`vpe-modal-menu-panel ${z?`vpe-modal-menu-${V}`:""}`,style:sr,children:[S&&v.jsxs("button",{type:"button",style:Oi,className:"vpe-menu-item",onClick:()=>{X(1)},children:[v.jsx("div",{children:v.jsx(Gb,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.quality}),v.jsxs("div",{style:uu,children:[v.jsx("span",{style:rr,children:S}),v.jsx(lr,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{X(2)},children:[v.jsx("div",{children:v.jsx(Kb,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.playbackRate}),v.jsxs("div",{style:uu,children:[v.jsxs("span",{style:rr,children:[a.playbackRate,"x"]}),v.jsx(lr,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{X(3)},children:[v.jsx("div",{children:v.jsx(gh,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.captions}),v.jsxs("div",{style:uu,children:[v.jsx(v.Fragment,{children:a.isSubtitle?v.jsx(v.Fragment,{children:d.map((L,k)=>v.jsx("span",{children:a.subTitleIdx===k&&v.jsx("span",{style:rr,children:L.label})},`${L.id}-${L.src}`))}):v.jsx("span",{style:rr,children:f.notUse})}),v.jsx(lr,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},b),b===1&&v.jsxs("div",{className:`vpe-modal-menu-panel ${z?`vpe-modal-menu-${V}`:""}`,style:sr,children:[v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{u("auto")},children:[v.jsx("div",{children:v.jsx(Hl,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:f.auto})]}),[...(K=a.levels)!=null?K:[]].sort((L,k)=>{var W,_;return((W=k.height)!=null?W:0)-((_=L.height)!=null?_:0)}).map(L=>{var W;const k=L.height?`${L.height}p`:(W=L.name)!=null?W:`${L.index}`;return v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{u(L.index)},children:[v.jsx("div",{children:v.jsx(Hl,{size:15,color:!a.isAutoLevel&&a.currentLevel===L.index?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:k})]},L.index)})]},b),b===2&&v.jsx("div",{className:`vpe-modal-menu-panel ${z?`vpe-modal-menu-${V}`:""}`,style:sr,children:((at=(tt=n.options)==null?void 0:tt.playRateSetting)!=null?at:[]).map(L=>v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{r(L),s({playbackRate:L}),X(0)},children:[v.jsx("div",{children:v.jsx(Hl,{size:15,color:a.playbackRate===L?"#ffffff":"transparent"})}),v.jsxs("div",{style:Ni,children:[L,"x"]})]},L))},b),b===3&&v.jsxs("div",{className:`vpe-modal-menu-panel ${z?`vpe-modal-menu-${V}`:""}`,style:sr,children:[v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{s({isSubtitle:!1})},children:[v.jsx("div",{children:v.jsx(Hl,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),v.jsx("div",{style:Ni,children:f.notUse})]}),d.map((L,k)=>v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{s({isSubtitle:!0,subTitleIdx:k})},children:[v.jsx("div",{children:v.jsx(Hl,{size:15,color:a.isSubtitle&&a.subTitleIdx===k?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:L.label})]},`${L.id}-${L.src}`))]},b)]})]})})})}function RS(){return v.jsx(v.Fragment,{children:v.jsx("style",{children:`
25
+ `}),h!==null&&v.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:[v.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:v.jsx(Mh,{style:{fontSize:"0.95rem"}})},`left-arrow-${h}`),v.jsx("div",{children:h>0?`+${h}s`:`${h}s`})]}),y!==null&&v.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:[v.jsx("div",{children:y>0?`+${y}s`:`${y}s`}),v.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:v.jsx(ar,{style:{fontSize:"0.95rem"}})},`right-arrow-${y}`)]}),v.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"20%",pointerEvents:"auto",cursor:"default"},onTouchEnd:j("left")}),v.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"20%",pointerEvents:"auto",cursor:"default"},onTouchEnd:j("right")})]})}function zS(n){var A,K,w,N,V,B,Q,Z,tt,at;const[a,s]=ee(),{playBackRate:r,selectQualityLevel:u}=Ce(),{text:f}=n,d=(N=(w=(K=n.vtt)!=null?K:(A=n.src)==null?void 0:A.vtt)!=null?w:a.subtitleTracks)!=null?N:[],h=(V=a.currentLevel)!=null?V:-1,m=(B=a.levels)==null?void 0:B.find(L=>L.index===h),[y,p]=T.useState(null);T.useEffect(()=>{var G,W,_,O;const L=(O=(_=(W=(G=a.levels)==null?void 0:G.find(Y=>Y.index===a.currentLevel))==null?void 0:W.height)!=null?_:m==null?void 0:m.height)!=null?O:null;L&&L!==y&&p(L)},[y,m==null?void 0:m.height,a.currentLevel,a.levels]);const S=a.isAutoLevel?y?f.auto+` (${y}p)`:f.auto:m!=null&&m.height?`${m.height}p`:(Q=m==null?void 0:m.name)!=null?Q:`${h}`,[b,M]=T.useState(0),[D,C]=T.useState("forward"),[j,H]=T.useState(!1),F=T.useCallback(L=>{C(L>b?"forward":"back"),M(L),H(!0)},[b]);return T.useEffect(()=>{if(!j)return;const L=window.setTimeout(()=>{H(!1)},200);return()=>window.clearTimeout(L)},[j]),v.jsx(v.Fragment,{children:v.jsx("div",{className:"vpe-setting-modal",children:v.jsxs("div",{className:"vpe-setting-content",children:[v.jsxs("div",{style:iS,children:[v.jsxs("div",{style:aS,children:[b===0&&v.jsx("div",{children:f.setting}),b>0&&v.jsx("div",{style:lS,children:v.jsx("div",{children:v.jsxs("button",{onClick:()=>{F(0)},type:"button",style:{...Ch,...sS},children:[v.jsx(Mh,{style:{fontSize:"12px"},color:"#ffffff"}),v.jsxs("div",{children:[b==1&&f.quality,b==2&&f.playbackRate,b==3&&f.captions]})]})})})]}),v.jsx("div",{children:v.jsx("button",{type:"button",style:Ch,onClick:()=>{s({isSettingModal:!1})},children:v.jsx($b,{size:25,color:"#ffffff"})})})]}),v.jsxs("div",{className:"vpe-modal-menu",children:[b===0&&v.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${D}`:""}`,style:lr,children:[S&&v.jsxs("button",{type:"button",style:Oi,className:"vpe-menu-item",onClick:()=>{F(1)},children:[v.jsx("div",{children:v.jsx(Xb,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.quality}),v.jsxs("div",{style:uu,children:[v.jsx("span",{style:sr,children:S}),v.jsx(ar,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{F(2)},children:[v.jsx("div",{children:v.jsx(Wb,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.playbackRate}),v.jsxs("div",{style:uu,children:[v.jsxs("span",{style:sr,children:[a.playbackRate,"x"]}),v.jsx(ar,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{F(3)},children:[v.jsx("div",{children:v.jsx(bh,{size:25,color:"#ffffff"})}),v.jsx("div",{style:Ni,children:f.captions}),v.jsxs("div",{style:uu,children:[v.jsx(v.Fragment,{children:a.isSubtitle?v.jsx(v.Fragment,{children:d.map((L,G)=>v.jsx("span",{children:a.subTitleIdx===G&&v.jsx("span",{style:sr,children:L.label})},`${L.id}-${L.src}`))}):v.jsx("span",{style:sr,children:f.notUse})}),v.jsx(ar,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},b),b===1&&v.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${D}`:""}`,style:lr,children:[v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{u("auto")},children:[v.jsx("div",{children:v.jsx(Ul,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:f.auto})]}),[...(Z=a.levels)!=null?Z:[]].sort((L,G)=>{var W,_;return((W=G.height)!=null?W:0)-((_=L.height)!=null?_:0)}).map(L=>{var W;const G=L.height?`${L.height}p`:(W=L.name)!=null?W:`${L.index}`;return v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{u(L.index)},children:[v.jsx("div",{children:v.jsx(Ul,{size:15,color:!a.isAutoLevel&&a.currentLevel===L.index?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:G})]},L.index)})]},b),b===2&&v.jsx("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${D}`:""}`,style:lr,children:((at=(tt=n.options)==null?void 0:tt.playRateSetting)!=null?at:[]).map(L=>v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{r(L),s({playbackRate:L}),F(0)},children:[v.jsx("div",{children:v.jsx(Ul,{size:15,color:a.playbackRate===L?"#ffffff":"transparent"})}),v.jsxs("div",{style:Ni,children:[L,"x"]})]},L))},b),b===3&&v.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${D}`:""}`,style:lr,children:[v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{s({isSubtitle:!1})},children:[v.jsx("div",{children:v.jsx(Ul,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),v.jsx("div",{style:Ni,children:f.notUse})]}),d.map((L,G)=>v.jsxs("button",{type:"button",className:"vpe-menu-item",style:Oi,onClick:()=>{s({isSubtitle:!0,subTitleIdx:G})},children:[v.jsx("div",{children:v.jsx(Ul,{size:15,color:a.isSubtitle&&a.subTitleIdx===G?"#ffffff":"transparent"})}),v.jsx("div",{style:Ni,children:L.label})]},`${L.id}-${L.src}`))]},b)]})]})})})}function LS(){return v.jsx(v.Fragment,{children:v.jsx("style",{children:`
26
26
 
27
27
  *,
28
28
  *::before,
@@ -627,12 +627,12 @@ Error generating stack: `+l.message+`
627
627
  --vpe-menu-slide-from: -24px;
628
628
  }
629
629
 
630
- `})})}const Bh=10,jS=n=>!n||!(n instanceof HTMLElement)?!1:n.isContentEditable?!0:n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement,DS=()=>typeof navigator=="undefined"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),zh=n=>{if(!n||!(n instanceof HTMLElement))return null;const a=n.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},BS=(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"})}},zS=(n={})=>{const a=T.useRef(null),s=T.useRef(0),r=T.useRef("");T.useEffect(()=>{var f;const u=d=>{var h;a.current=(h=zh(d.target))!=null?h:a.current};return a.current=(f=document.querySelector(".vpe-root-wrap"))!=null?f: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=>{var m,y,p,S;if(f.defaultPrevented||f.metaKey||f.ctrlKey||f.altKey||jS(f.target))return;const d=(y=(m=zh(f.target))!=null?m:a.current)!=null?y: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 b=Math.max(0,Math.min(h.currentTime+Bh,h.duration||h.currentTime));h.currentTime=b;break}case"ArrowLeft":{const b=Math.max(0,Math.min(h.currentTime-Bh,h.duration||h.currentTime));h.currentTime=b;break}case"ㄹ":case"f":case"F":{if(DS()){const M=h.webkitEnterFullscreen;if(typeof M=="function"){M.call(h);break}BS(d,s,r);break}if(document.fullscreenElement){(p=document.exitFullscreen)==null||p.call(document);break}const b=d.querySelector(".vpe-fullscreen-target")||d;b instanceof HTMLElement&&((S=b.requestFullscreen)==null||S.call(b));break}case"ㅡ":case"m":case"M":{h.muted=!h.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n.keyboardShortcut])},fu=T.createContext({});function du(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const hu=typeof window!="undefined",Lh=hu?T.useLayoutEffect:T.useEffect,or=T.createContext(null);function mu(n,a){n.indexOf(a)===-1&&n.push(a)}function yu(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const oi=(n,a,s)=>s>a?a:s<n?n:s;let pu=()=>{};const ui={},Vh=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Oh(n){return typeof n=="object"&&n!==null}const Nh=n=>/^0[^.\s]+$/u.test(n);function gu(n){let a;return()=>(a===void 0&&(a=n()),a)}const wn=n=>n,LS=(n,a)=>s=>a(n(s)),Gl=(...n)=>n.reduce(LS),Yl=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class vu{constructor(){this.subscriptions=[]}add(a){return mu(this.subscriptions,a),()=>yu(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 $n=n=>n*1e3,Cn=n=>n/1e3;function Uh(n,a){return a?n*(1e3/a):0}const _h=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,VS=1e-7,OS=12;function NS(n,a,s,r,u){let f,d,h=0;do d=a+(s-a)/2,f=_h(d,r,u)-n,f>0?s=d:a=d;while(Math.abs(f)>VS&&++h<OS);return d}function Pl(n,a,s,r){if(n===a&&s===r)return wn;const u=f=>NS(f,0,1,n,s);return f=>f===0||f===1?f:_h(u(f),a,r)}const Hh=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,kh=n=>a=>1-n(1-a),Gh=Pl(.33,1.53,.69,.99),bu=kh(Gh),Yh=Hh(bu),Ph=n=>(n*=2)<1?.5*bu(n):.5*(2-Math.pow(2,-10*(n-1))),Su=n=>1-Math.sin(Math.acos(n)),qh=kh(Su),Fh=Hh(Su),US=Pl(.42,0,1,1),_S=Pl(0,0,.58,1),Xh=Pl(.42,0,.58,1),HS=n=>Array.isArray(n)&&typeof n[0]!="number",Kh=n=>Array.isArray(n)&&typeof n[0]=="number",kS={linear:wn,easeIn:US,easeInOut:Xh,easeOut:_S,circIn:Su,circInOut:Fh,circOut:qh,backIn:bu,backInOut:Yh,backOut:Gh,anticipate:Ph},GS=n=>typeof n=="string",Qh=n=>{if(Kh(n)){pu(n.length===4);const[a,s,r,u]=n;return Pl(a,s,r,u)}else if(GS(n))return kS[n];return n},ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function YS(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 m(p){d.has(p)&&(y.schedule(p),n()),p(h)}const y={schedule:(p,S=!1,b=!1)=>{const V=b&&u?s:r;return S&&d.add(p),V.has(p)||V.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(m),s.clear(),u=!1,f&&(f=!1,y.process(p))}};return y}const PS=40;function Zh(n,a){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=ur.reduce((A,Z)=>(A[Z]=YS(f),A),{}),{setup:h,read:m,resolveKeyframes:y,preUpdate:p,update:S,preRender:b,render:M,postRender:V}=d,w=()=>{const A=ui.useManualTiming?u.timestamp:performance.now();s=!1,ui.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(A-u.timestamp,PS),1)),u.timestamp=A,u.isProcessing=!0,h.process(u),m.process(u),y.process(u),p.process(u),S.process(u),b.process(u),M.process(u),V.process(u),u.isProcessing=!1,s&&a&&(r=!1,n(w))},z=()=>{s=!0,r=!0,u.isProcessing||n(w)};return{schedule:ur.reduce((A,Z)=>{const R=d[Z];return A[Z]=(O,j=!1,D=!1)=>(s||z(),R.schedule(O,j,D)),A},{}),cancel:A=>{for(let Z=0;Z<ur.length;Z++)d[ur[Z]].cancel(A)},state:u,steps:d}}const{schedule:le,cancel:Ui,state:Ne,steps:xu}=Zh(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:wn,!0);let cr;function qS(){cr=void 0}const en={now:()=>(cr===void 0&&en.set(Ne.isProcessing||ui.useManualTiming?Ne.timestamp:performance.now()),cr),set:n=>{cr=n,queueMicrotask(qS)}},Ih=n=>a=>typeof a=="string"&&a.startsWith(n),Jh=Ih("--"),FS=Ih("var(--"),Tu=n=>FS(n)?XS.test(n.split("/*")[0].trim()):!1,XS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ya={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ql={...Ya,transform:n=>oi(0,1,n)},fr={...Ya,default:1},Fl=n=>Math.round(n*1e5)/1e5,Eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KS(n){return n==null}const QS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mu=(n,a)=>s=>!!(typeof s=="string"&&QS.test(s)&&s.startsWith(n)||a&&!KS(s)&&Object.prototype.hasOwnProperty.call(s,a)),Wh=(n,a,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(Eu);return{[n]:parseFloat(u),[a]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},ZS=n=>oi(0,255,n),Au={...Ya,transform:n=>Math.round(ZS(n))},ya={test:Mu("rgb","red"),parse:Wh("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+Au.transform(n)+", "+Au.transform(a)+", "+Au.transform(s)+", "+Fl(ql.transform(r))+")"};function IS(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 wu={test:Mu("#"),parse:IS,transform:ya.transform},Xl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),_i=Xl("deg"),ti=Xl("%"),Et=Xl("px"),JS=Xl("vh"),WS=Xl("vw"),$h={...ti,parse:n=>ti.parse(n)/100,transform:n=>ti.transform(n*100)},Pa={test:Mu("hsl","hue"),parse:Wh("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+ti.transform(Fl(a))+", "+ti.transform(Fl(s))+", "+Fl(ql.transform(r))+")"},be={test:n=>ya.test(n)||wu.test(n)||Pa.test(n),parse:n=>ya.test(n)?ya.parse(n):Pa.test(n)?Pa.parse(n):wu.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?ya.transform(n):Pa.transform(n),getAnimatableNone:n=>{const a=be.parse(n);return a.alpha=0,be.transform(a)}},$S=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tx(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(Eu))==null?void 0:a.length)||0)+(((s=n.match($S))==null?void 0:s.length)||0)>0}const tm="number",em="color",ex="var",nx="var(",nm="${}",ix=/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 Kl(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=a.replace(ix,m=>(be.test(m)?(r.color.push(f),u.push(em),s.push(be.parse(m))):m.startsWith(nx)?(r.var.push(f),u.push(ex),s.push(m)):(r.number.push(f),u.push(tm),s.push(parseFloat(m))),++f,nm)).split(nm);return{values:s,split:h,indexes:r,types:u}}function im(n){return Kl(n).values}function am(n){const{split:a,types:s}=Kl(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===tm?f+=Fl(u[d]):h===em?f+=be.transform(u[d]):f+=u[d]}return f}}const ax=n=>typeof n=="number"?0:be.test(n)?be.getAnimatableNone(n):n;function lx(n){const a=im(n);return am(n)(a.map(ax))}const Hi={test:tx,parse:im,createTransformer:am,getAnimatableNone:lx};function Cu(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 sx({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,m=2*s-h;u=Cu(m,h,n+1/3),f=Cu(m,h,n),d=Cu(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function dr(n,a){return s=>s>0?a:n}const ue=(n,a,s)=>n+(a-n)*s,Ru=(n,a,s)=>{const r=n*n,u=s*(a*a-r)+r;return u<0?0:Math.sqrt(u)},rx=[wu,ya,Pa],ox=n=>rx.find(a=>a.test(n));function lm(n){const a=ox(n);if(!a)return!1;let s=a.parse(n);return a===Pa&&(s=sx(s)),s}const sm=(n,a)=>{const s=lm(n),r=lm(a);if(!s||!r)return dr(n,a);const u={...s};return f=>(u.red=Ru(s.red,r.red,f),u.green=Ru(s.green,r.green,f),u.blue=Ru(s.blue,r.blue,f),u.alpha=ue(s.alpha,r.alpha,f),ya.transform(u))},ju=new Set(["none","hidden"]);function ux(n,a){return ju.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function cx(n,a){return s=>ue(n,a,s)}function Du(n){return typeof n=="number"?cx:typeof n=="string"?Tu(n)?dr:be.test(n)?sm:hx:Array.isArray(n)?rm:typeof n=="object"?be.test(n)?sm:fx:dr}function rm(n,a){const s=[...n],r=s.length,u=n.map((f,d)=>Du(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function fx(n,a){const s={...n,...a},r={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(r[u]=Du(n[u])(n[u],a[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function dx(n,a){var u;const s=[],r={color:0,var:0,number:0};for(let f=0;f<a.values.length;f++){const d=a.types[f],h=n.indexes[d][r[d]],m=(u=n.values[h])!=null?u:0;s[f]=m,r[d]++}return s}const hx=(n,a)=>{const s=Hi.createTransformer(a),r=Kl(n),u=Kl(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?ju.has(n)&&!u.values.length||ju.has(a)&&!r.values.length?ux(n,a):Gl(rm(dx(r,u),u.values),s):dr(n,a)};function om(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?ue(n,a,s):Du(n)(n,a)}const mx=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>le.update(a,s),stop:()=>Ui(a),now:()=>Ne.isProcessing?Ne.timestamp:en.now()}},um=(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)})`},hr=2e4;function Bu(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<hr;)a+=s,r=n.next(a);return a>=hr?1/0:a}function yx(n,a=100,s){const r=s({...n,keyframes:[0,a]}),u=Math.min(Bu(r),hr);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Cn(u)}}const px=5;function cm(n,a,s){const r=Math.max(a-px,0);return Uh(s-n(r),a-r)}const ce={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},zu=.001;function gx({duration:n=ce.duration,bounce:a=ce.bounce,velocity:s=ce.velocity,mass:r=ce.mass}){let u,f,d=1-a;d=oi(ce.minDamping,ce.maxDamping,d),n=oi(ce.minDuration,ce.maxDuration,Cn(n)),d<1?(u=y=>{const p=y*d,S=p*n,b=p-s,M=Lu(y,d),V=Math.exp(-S);return zu-b/M*V},f=y=>{const S=y*d*n,b=S*s+s,M=Math.pow(d,2)*Math.pow(y,2)*n,V=Math.exp(-S),w=Lu(Math.pow(y,2),d);return(-u(y)+zu>0?-1:1)*((b-M)*V)/w}):(u=y=>{const p=Math.exp(-y*n),S=(y-s)*n+1;return-zu+p*S},f=y=>{const p=Math.exp(-y*n),S=(s-y)*(n*n);return p*S});const h=5/n,m=bx(u,f,h);if(n=$n(n),isNaN(m))return{stiffness:ce.stiffness,damping:ce.damping,duration:n};{const y=Math.pow(m,2)*r;return{stiffness:y,damping:d*2*Math.sqrt(r*y),duration:n}}}const vx=12;function bx(n,a,s){let r=s;for(let u=1;u<vx;u++)r=r-n(r)/a(r);return r}function Lu(n,a){return n*Math.sqrt(1-a*a)}const Sx=["duration","bounce"],xx=["stiffness","damping","mass"];function fm(n,a){return a.some(s=>n[s]!==void 0)}function Tx(n){let a={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...n};if(!fm(n,xx)&&fm(n,Sx))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*oi(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:ce.mass,stiffness:u,damping:f}}else{const s=gx(n);a={...a,...s,mass:ce.mass},a.isResolvedFromDuration=!0}return a}function mr(n=ce.visualDuration,a=ce.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:m,damping:y,mass:p,duration:S,velocity:b,isResolvedFromDuration:M}=Tx({...s,velocity:-Cn(s.velocity||0)}),V=b||0,w=y/(2*Math.sqrt(m*p)),z=d-f,Y=Cn(Math.sqrt(m/p)),X=Math.abs(z)<5;r||(r=X?ce.restSpeed.granular:ce.restSpeed.default),u||(u=X?ce.restDelta.granular:ce.restDelta.default);let A;if(w<1){const R=Lu(Y,w);A=O=>{const j=Math.exp(-w*Y*O);return d-j*((V+w*Y*z)/R*Math.sin(R*O)+z*Math.cos(R*O))}}else if(w===1)A=R=>d-Math.exp(-Y*R)*(z+(V+Y*z)*R);else{const R=Y*Math.sqrt(w*w-1);A=O=>{const j=Math.exp(-w*Y*O),D=Math.min(R*O,300);return d-j*((V+w*Y*z)*Math.sinh(D)+R*z*Math.cosh(D))/R}}const Z={calculatedDuration:M&&S||null,next:R=>{const O=A(R);if(M)h.done=R>=S;else{let j=R===0?V:0;w<1&&(j=R===0?$n(V):cm(A,R,O));const D=Math.abs(j)<=r,J=Math.abs(d-O)<=u;h.done=D&&J}return h.value=h.done?d:O,h},toString:()=>{const R=Math.min(Bu(Z),hr),O=um(j=>Z.next(R*j).value,R,30);return R+"ms "+O},toTransition:()=>{}};return Z}mr.applyToOptions=n=>{const a=yx(n,100,mr);return n.ease=a.ease,n.duration=$n(a.duration),n.type="keyframes",n};function Vu({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:m,restDelta:y=.5,restSpeed:p}){const S=n[0],b={done:!1,value:S},M=D=>h!==void 0&&D<h||m!==void 0&&D>m,V=D=>h===void 0?m:m===void 0||Math.abs(h-D)<Math.abs(m-D)?h:m;let w=s*a;const z=S+w,Y=d===void 0?z:d(z);Y!==z&&(w=Y-S);const X=D=>-w*Math.exp(-D/r),A=D=>Y+X(D),Z=D=>{const J=X(D),K=A(D);b.done=Math.abs(J)<=y,b.value=b.done?Y:K};let R,O;const j=D=>{M(b.value)&&(R=D,O=mr({keyframes:[b.value,V(b.value)],velocity:cm(A,D,b.value),damping:u,stiffness:f,restDelta:y,restSpeed:p}))};return j(0),{calculatedDuration:null,next:D=>{let J=!1;return!O&&R===void 0&&(J=!0,Z(D),j(D)),R!==void 0&&D>=R?O.next(D-R):(!J&&Z(D),b)}}}function Ex(n,a,s){const r=[],u=s||ui.mix||om,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(a){const m=Array.isArray(a)?a[d]||wn:a;h=Gl(m,h)}r.push(h)}return r}function Mx(n,a,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(pu(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=Ex(a,r,u),m=h.length,y=p=>{if(d&&p<n[0])return a[0];let S=0;if(m>1)for(;S<n.length-2&&!(p<n[S+1]);S++);const b=Yl(n[S],n[S+1],p);return h[S](b)};return s?p=>y(oi(n[0],n[f-1],p)):y}function Ax(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const u=Yl(0,a,r);n.push(ue(s,1,u))}}function wx(n){const a=[0];return Ax(a,n.length-1),a}function Cx(n,a){return n.map(s=>s*a)}function Rx(n,a){return n.map(()=>a||Xh).splice(0,n.length-1)}function Ql({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const u=HS(r)?r.map(Qh):Qh(r),f={done:!1,value:a[0]},d=Cx(s&&s.length===a.length?s:wx(a),n),h=Mx(d,a,{ease:Array.isArray(u)?u:Rx(a,u)});return{calculatedDuration:n,next:m=>(f.value=h(m),f.done=m>=n,f)}}const jx=n=>n!==null;function Ou(n,{repeat:a,repeatType:s="loop"},r,u=1){const f=n.filter(jx),h=u<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const Dx={decay:Vu,inertia:Vu,tween:Ql,keyframes:Ql,spring:mr};function dm(n){typeof n.type=="string"&&(n.type=Dx[n.type])}class Nu{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 Bx=n=>n/100;class Uu extends Nu{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,u;const{motionValue:s}=this.options;s&&s.updatedAt!==en.now()&&this.tick(en.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(r=this.options).onStop)==null||u.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;dm(a);const{type:s=Ql,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:h}=a;const m=s||Ql;m!==Ql&&typeof h[0]!="number"&&(this.mixKeyframes=Gl(Bx,om(h[0],h[1])),h=[0,100]);const y=m({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=Bu(y));const{calculatedDuration:p}=y;this.calculatedDuration=p,this.resolvedDuration=p+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=y}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:m}=this;if(this.startTime===null)return r.next(0);const{delay:y=0,keyframes:p,repeat:S,repeatType:b,repeatDelay:M,type:V,onUpdate:w,finalKeyframe:z}=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 Y=this.currentTime-y*(this.playbackSpeed>=0?1:-1),X=this.playbackSpeed>=0?Y<0:Y>u;this.currentTime=Math.max(Y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,Z=r;if(S){const D=Math.min(this.currentTime,u)/h;let J=Math.floor(D),K=D%1;!K&&D>=1&&(K=1),K===1&&J--,J=Math.min(J,S+1),!!(J%2)&&(b==="reverse"?(K=1-K,M&&(K-=M/h)):b==="mirror"&&(Z=d)),A=oi(0,1,K)*h}const R=X?{done:!1,value:p[0]}:Z.next(A);f&&(R.value=f(R.value));let{done:O}=R;!X&&m!==null&&(O=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return j&&V!==Vu&&(R.value=Ou(p,this.options,z,this.speed)),w&&w(R.value),j&&this.finish(),R}then(a,s){return this.finished.then(a,s)}get duration(){return Cn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Cn(a)}get time(){return Cn(this.currentTime)}set time(a){var s;a=$n(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),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(en.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Cn(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:a=mx,startTime:s}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);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!=null?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(en.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.call(a)}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){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function zx(n){var a;for(let s=1;s<n.length;s++)(a=n[s])!=null||(n[s]=n[s-1])}const pa=n=>n*180/Math.PI,_u=n=>{const a=pa(Math.atan2(n[1],n[0]));return Hu(a)},Lx={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:_u,rotateZ:_u,skewX:n=>pa(Math.atan(n[1])),skewY:n=>pa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Hu=n=>(n=n%360,n<0&&(n+=360),n),hm=_u,mm=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ym=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Vx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mm,scaleY:ym,scale:n=>(mm(n)+ym(n))/2,rotateX:n=>Hu(pa(Math.atan2(n[6],n[5]))),rotateY:n=>Hu(pa(Math.atan2(-n[2],n[0]))),rotateZ:hm,rotate:hm,skewX:n=>pa(Math.atan(n[4])),skewY:n=>pa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function ku(n){return n.includes("scale")?1:0}function Gu(n,a){if(!n||n==="none")return ku(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=Vx,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Lx,u=h}if(!u)return ku(a);const f=r[a],d=u[1].split(",").map(Nx);return typeof f=="function"?f(d):d[f]}const Ox=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return Gu(s,a)};function Nx(n){return parseFloat(n.trim())}const qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fa=new Set(qa),pm=n=>n===Ya||n===Et,Ux=new Set(["x","y","z"]),_x=qa.filter(n=>!Ux.has(n));function Hx(n){const a=[];return _x.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const ga={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})=>Gu(a,"x"),y:(n,{transform:a})=>Gu(a,"y")};ga.translateX=ga.x,ga.translateY=ga.y;const va=new Set;let Yu=!1,Pu=!1,qu=!1;function gm(){if(Pu){const n=Array.from(va).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const u=Hx(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])=>{var h;(h=r.getValue(f))==null||h.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pu=!1,Yu=!1,va.forEach(n=>n.complete(qu)),va.clear()}function vm(){va.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Pu=!0)})}function kx(){qu=!0,vm(),gm(),qu=!1}class Fu{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?(va.add(this),Yu||(Yu=!0,le.read(vm),le.resolveKeyframes(gm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:u}=this;if(a[0]===null){const f=u==null?void 0: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])}zx(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),va.delete(this)}cancel(){this.state==="scheduled"&&(va.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Gx=n=>n.startsWith("--");function Yx(n,a,s){Gx(a)?n.style.setProperty(a,s):n.style[a]=s}const Px=gu(()=>window.ScrollTimeline!==void 0),qx={};function Fx(n,a){const s=gu(n);return()=>{var r;return(r=qx[a])!=null?r:s()}}const bm=Fx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),Zl=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,Sm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function xm(n,a){if(n)return typeof n=="function"?bm()?um(n,a):"ease-out":Kh(n)?Zl(n):Array.isArray(n)?n.map(s=>xm(s,a)||Sm.easeOut):Sm[n]}function Xx(n,a,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:m}={},y=void 0){const p={[a]:s};m&&(p.offset=m);const S=xm(h,u);Array.isArray(S)&&(p.easing=S);const b={delay:r,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return y&&(b.pseudoElement=y),n.animate(p,b)}function Tm(n){return typeof n=="function"&&"applyToOptions"in n}function Kx({type:n,...a}){var s,r;return Tm(n)&&bm()?n.applyToOptions(a):((s=a.duration)!=null||(a.duration=300),(r=a.ease)!=null||(a.ease="easeOut"),a)}class Qx extends Nu{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:m}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,pu(typeof a.type!="string");const y=Kx(a);this.animation=Xx(s,r,u,y,f),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const p=Ou(u,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(p):Yx(s,r,p),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,s;(s=(a=this.animation).finish)==null||s.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}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(){var a,s;this.isPseudoElement||(s=(a=this.animation).commitStyles)==null||s.call(a)}get duration(){var s,r;const a=((r=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:r.call(s).duration)||0;return Cn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Cn(a)}get time(){return Cn(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=$n(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}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&Px()?(this.animation.timeline=a,wn):s(this)}}const Em={anticipate:Ph,backInOut:Yh,circInOut:Fh};function Zx(n){return n in Em}function Ix(n){typeof n.ease=="string"&&Zx(n.ease)&&(n.ease=Em[n.ease])}const Mm=10;class Jx extends Qx{constructor(a){Ix(a),dm(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){var y;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 Uu({...d,autoplay:!1}),m=$n((y=this.finishedTime)!=null?y:this.time);s.setWithVelocity(h.sample(m-Mm).value,h.sample(m).value,Mm),h.stop()}}const Am=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Hi.test(n)||n==="0")&&!n.startsWith("url("));function Wx(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 $x(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=Am(u,a),h=Am(f,a);return!d||!h?!1:Wx(n)||(s==="spring"||Tm(s))&&r}function Xu(n){n.duration=0,n.type="keyframes"}const tT=new Set(["opacity","clipPath","filter","transform"]),eT=gu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nT(n){var p;const{motionValue:a,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(((p=a==null?void 0:a.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:y}=a.owner.getProps();return eT()&&s&&tT.has(s)&&(s!=="transform"||!y)&&!m&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const iT=40;class aT extends Nu{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:m,motionValue:y,element:p,...S}){var V;super(),this.stop=()=>{var w,z;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(z=this.keyframeResolver)==null||z.cancel()},this.createdAt=en.now();const b={autoplay:a,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:m,motionValue:y,element:p,...S},M=(p==null?void 0:p.KeyframeResolver)||Fu;this.keyframeResolver=new M(h,(w,z,Y)=>this.onKeyframesResolved(w,z,b,!Y),m,y,p),(V=this.keyframeResolver)==null||V.scheduleResolve()}onKeyframesResolved(a,s,r,u){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:m,isHandoff:y,onUpdate:p}=r;this.resolvedAt=en.now(),$x(a,f,d,h)||((ui.instantAnimations||!m)&&(p==null||p(Ou(a,r,s))),a[0]=a[a.length-1],Xu(r),r.repeat=0);const b={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>iT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:a},M=!y&&nT(b)?new Jx({...b,element:b.motionValue.owner.current}):new Uu(b);M.finished.then(()=>this.notifyFinished()).catch(wn),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),kx()),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(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}const lT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sT(n){const a=lT.exec(n);if(!a)return[,];const[,s,r,u]=a;return[`--${s!=null?s:r}`,u]}function wm(n,a,s=1){const[r,u]=sT(n);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return Vh(d)?parseFloat(d):d}return Tu(u)?wm(u,a,s+1):u}function Ku(n,a){var s,r;return(r=(s=n==null?void 0:n[a])!=null?s:n==null?void 0:n.default)!=null?r:n}const Cm=new Set(["width","height","top","left","right","bottom",...qa]),rT={test:n=>n==="auto",parse:n=>n},Rm=n=>a=>a.test(n),jm=[Ya,Et,ti,_i,WS,JS,rT],Dm=n=>jm.find(Rm(n));function oT(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Nh(n):!0}const uT=new Set(["brightness","contrast","saturate","opacity"]);function cT(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(Eu)||[];if(!r)return n;const u=s.replace(r,"");let f=uT.has(a)?1:0;return r!==s&&(f*=100),a+"("+f+u+")"}const fT=/\b([a-z-]*)\(.*?\)/gu,Qu={...Hi,getAnimatableNone:n=>{const a=n.match(fT);return a?a.map(cT).join(" "):n}},Bm={...Ya,transform:Math.round},Zu={borderWidth:Et,borderTopWidth:Et,borderRightWidth:Et,borderBottomWidth:Et,borderLeftWidth:Et,borderRadius:Et,radius:Et,borderTopLeftRadius:Et,borderTopRightRadius:Et,borderBottomRightRadius:Et,borderBottomLeftRadius:Et,width:Et,maxWidth:Et,height:Et,maxHeight:Et,top:Et,right:Et,bottom:Et,left:Et,padding:Et,paddingTop:Et,paddingRight:Et,paddingBottom:Et,paddingLeft:Et,margin:Et,marginTop:Et,marginRight:Et,marginBottom:Et,marginLeft:Et,backgroundPositionX:Et,backgroundPositionY:Et,...{rotate:_i,rotateX:_i,rotateY:_i,rotateZ:_i,scale:fr,scaleX:fr,scaleY:fr,scaleZ:fr,skew:_i,skewX:_i,skewY:_i,distance:Et,translateX:Et,translateY:Et,translateZ:Et,x:Et,y:Et,z:Et,perspective:Et,transformPerspective:Et,opacity:ql,originX:$h,originY:$h,originZ:Et},zIndex:Bm,fillOpacity:ql,strokeOpacity:ql,numOctaves:Bm},dT={...Zu,color:be,backgroundColor:be,outlineColor:be,fill:be,stroke:be,borderColor:be,borderTopColor:be,borderRightColor:be,borderBottomColor:be,borderLeftColor:be,filter:Qu,WebkitFilter:Qu},zm=n=>dT[n];function Lm(n,a){let s=zm(n);return s!==Qu&&(s=Hi),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const hT=new Set(["auto","none","0"]);function mT(n,a,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!hT.has(f)&&Kl(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of a)n[f]=Lm(s,u)}class yT extends Fu{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 m=0;m<a.length;m++){let y=a[m];if(typeof y=="string"&&(y=y.trim(),Tu(y))){const p=wm(y,s.current);p!==void 0&&(a[m]=p),m===a.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Cm.has(r)||a.length!==2)return;const[u,f]=a,d=Dm(u),h=Dm(f);if(d!==h)if(pm(d)&&pm(h))for(let m=0;m<a.length;m++){const y=a[m];typeof y=="string"&&(a[m]=parseFloat(y))}else ga[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||oT(a[u]))&&r.push(u);r.length&&mT(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=ga[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(){var h;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]=ga[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,y])=>{a.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function pT(n,a,s){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const f=(r=s==null?void 0:s[n])!=null?r:u.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}const Vm=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Om(n){return Oh(n)&&"offsetHeight"in n}const Nm=30,gT=n=>!isNaN(parseFloat(n));class vT{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const u=en.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=en.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=gT(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 vu);const r=this.events[a].add(s);return a==="change"?()=>{r(),le.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(){var a;(a=this.events.change)==null||a.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=en.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Nm)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Nm);return Uh(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(){var a,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xa(n,a){return new vT(n,a)}const{schedule:Iu}=Zh(queueMicrotask,!1),qn={x:!1,y:!1};function Um(){return qn.x||qn.y}function bT(n){return n==="x"||n==="y"?qn[n]?null:(qn[n]=!0,()=>{qn[n]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}function _m(n,a){const s=pT(n),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[s,u,()=>r.abort()]}function Hm(n){return!(n.pointerType==="touch"||Um())}function ST(n,a,s={}){const[r,u,f]=_m(n,s),d=h=>{if(!Hm(h))return;const{target:m}=h,y=a(m,h);if(typeof y!="function"||!m)return;const p=S=>{Hm(S)&&(y(S),m.removeEventListener("pointerleave",p))};m.addEventListener("pointerleave",p,u)};return r.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const km=(n,a)=>a?n===a?!0:km(n,a.parentElement):!1,Ju=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,xT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TT(n){return xT.has(n.tagName)||n.tabIndex!==-1}const yr=new WeakSet;function Gm(n){return a=>{a.key==="Enter"&&n(a)}}function Wu(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const ET=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=Gm(()=>{if(yr.has(s))return;Wu(s,"down");const u=Gm(()=>{Wu(s,"up")}),f=()=>Wu(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 Ym(n){return Ju(n)&&!Um()}function MT(n,a,s={}){const[r,u,f]=_m(n,s),d=h=>{const m=h.currentTarget;if(!Ym(h))return;yr.add(m);const y=a(m,h),p=(M,V)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),yr.has(m)&&yr.delete(m),Ym(M)&&typeof y=="function"&&y(M,{success:V})},S=M=>{p(M,m===window||m===document||s.useGlobalTarget||km(m,M.target))},b=M=>{p(M,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",b,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Om(h)&&(h.addEventListener("focus",y=>ET(y,u)),!TT(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Pm(n){return Oh(n)&&"ownerSVGElement"in n}function AT(n){return Pm(n)&&n.tagName==="svg"}const Ye=n=>!!(n&&n.getVelocity),wT=[...jm,be,Hi],CT=n=>wT.find(Rm(n)),$u=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function qm(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function RT(...n){return a=>{let s=!1;const r=n.map(u=>{const f=qm(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():qm(n[u],null)}}}}function jT(...n){return T.useCallback(RT(...n),n)}class DT extends T.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Om(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 BT({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($u),m=jT(f,n==null?void 0:n.ref);return T.useInsertionEffect(()=>{const{width:y,height:p,top:S,left:b,right:M}=d.current;if(a||!f.current||!y||!p)return;const V=s==="left"?`left: ${b}`:`right: ${M}`;f.current.dataset.motionPopId=u;const w=document.createElement("style");h&&(w.nonce=h);const z=r!=null?r:document.head;return z.appendChild(w),w.sheet&&w.sheet.insertRule(`
631
- [data-motion-pop-id="${u}"] {
630
+ `})})}const Lh=10,VS=n=>!n||!(n instanceof HTMLElement)?!1:n.isContentEditable?!0:n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement,OS=()=>typeof navigator=="undefined"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),Vh=n=>{if(!n||!(n instanceof HTMLElement))return null;const a=n.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},NS=(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"})}},US=(n={})=>{const a=T.useRef(null),s=T.useRef(0),r=T.useRef("");T.useEffect(()=>{var f;const u=d=>{var h;a.current=(h=Vh(d.target))!=null?h:a.current};return a.current=(f=document.querySelector(".vpe-root-wrap"))!=null?f: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=>{var m,y,p,S;if(f.defaultPrevented||f.metaKey||f.ctrlKey||f.altKey||VS(f.target))return;const d=(y=(m=Vh(f.target))!=null?m:a.current)!=null?y: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 b=Math.max(0,Math.min(h.currentTime+Lh,h.duration||h.currentTime));h.currentTime=b;break}case"ArrowLeft":{const b=Math.max(0,Math.min(h.currentTime-Lh,h.duration||h.currentTime));h.currentTime=b;break}case"ㄹ":case"f":case"F":{if(OS()){const M=h.webkitEnterFullscreen;if(typeof M=="function"){M.call(h);break}NS(d,s,r);break}if(document.fullscreenElement){(p=document.exitFullscreen)==null||p.call(document);break}const b=d.querySelector(".vpe-fullscreen-target")||d;b instanceof HTMLElement&&((S=b.requestFullscreen)==null||S.call(b));break}case"ㅡ":case"m":case"M":{h.muted=!h.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n.keyboardShortcut])},fu=T.createContext({});function du(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const Oh=typeof window!="undefined",Nh=Oh?T.useLayoutEffect:T.useEffect,rr=T.createContext(null);function hu(n,a){n.indexOf(a)===-1&&n.push(a)}function mu(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const $n=(n,a,s)=>s>a?a:s<n?n:s;let yu=()=>{};const oi={},Uh=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function _h(n){return typeof n=="object"&&n!==null}const kh=n=>/^0[^.\s]+$/u.test(n);function pu(n){let a;return()=>(a===void 0&&(a=n()),a)}const wn=n=>n,_S=(n,a)=>s=>a(n(s)),kl=(...n)=>n.reduce(_S),Hl=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class gu{constructor(){this.subscriptions=[]}add(a){return hu(this.subscriptions,a),()=>mu(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 ui=n=>n*1e3,Cn=n=>n/1e3;function Hh(n,a){return a?n*(1e3/a):0}const Gh=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,kS=1e-7,HS=12;function GS(n,a,s,r,u){let f,d,h=0;do d=a+(s-a)/2,f=Gh(d,r,u)-n,f>0?s=d:a=d;while(Math.abs(f)>kS&&++h<HS);return d}function Gl(n,a,s,r){if(n===a&&s===r)return wn;const u=f=>GS(f,0,1,n,s);return f=>f===0||f===1?f:Gh(u(f),a,r)}const Yh=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Ph=n=>a=>1-n(1-a),qh=Gl(.33,1.53,.69,.99),vu=Ph(qh),Fh=Yh(vu),Xh=n=>(n*=2)<1?.5*vu(n):.5*(2-Math.pow(2,-10*(n-1))),bu=n=>1-Math.sin(Math.acos(n)),Kh=Ph(bu),Qh=Yh(bu),YS=Gl(.42,0,1,1),PS=Gl(0,0,.58,1),Zh=Gl(.42,0,.58,1),qS=n=>Array.isArray(n)&&typeof n[0]!="number",Ih=n=>Array.isArray(n)&&typeof n[0]=="number",FS={linear:wn,easeIn:YS,easeInOut:Zh,easeOut:PS,circIn:bu,circInOut:Qh,circOut:Kh,backIn:vu,backInOut:Fh,backOut:qh,anticipate:Xh},XS=n=>typeof n=="string",Jh=n=>{if(Ih(n)){yu(n.length===4);const[a,s,r,u]=n;return Gl(a,s,r,u)}else if(XS(n))return FS[n];return n},or=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KS(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 m(p){d.has(p)&&(y.schedule(p),n()),p(h)}const y={schedule:(p,S=!1,b=!1)=>{const D=b&&u?s:r;return S&&d.add(p),D.has(p)||D.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(m),s.clear(),u=!1,f&&(f=!1,y.process(p))}};return y}const QS=40;function Wh(n,a){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=or.reduce((A,K)=>(A[K]=KS(f),A),{}),{setup:h,read:m,resolveKeyframes:y,preUpdate:p,update:S,preRender:b,render:M,postRender:D}=d,C=()=>{const A=oi.useManualTiming?u.timestamp:performance.now();s=!1,oi.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(A-u.timestamp,QS),1)),u.timestamp=A,u.isProcessing=!0,h.process(u),m.process(u),y.process(u),p.process(u),S.process(u),b.process(u),M.process(u),D.process(u),u.isProcessing=!1,s&&a&&(r=!1,n(C))},j=()=>{s=!0,r=!0,u.isProcessing||n(C)};return{schedule:or.reduce((A,K)=>{const w=d[K];return A[K]=(N,V=!1,B=!1)=>(s||j(),w.schedule(N,V,B)),A},{}),cancel:A=>{for(let K=0;K<or.length;K++)d[or[K]].cancel(A)},state:u,steps:d}}const{schedule:te,cancel:Ui,state:Ne,steps:Su}=Wh(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:wn,!0);let ur;function ZS(){ur=void 0}const Qe={now:()=>(ur===void 0&&Qe.set(Ne.isProcessing||oi.useManualTiming?Ne.timestamp:performance.now()),ur),set:n=>{ur=n,queueMicrotask(ZS)}},$h=n=>a=>typeof a=="string"&&a.startsWith(n),tm=$h("--"),IS=$h("var(--"),xu=n=>IS(n)?JS.test(n.split("/*")[0].trim()):!1,JS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function em(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Ya={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Yl={...Ya,transform:n=>$n(0,1,n)},cr={...Ya,default:1},Pl=n=>Math.round(n*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WS(n){return n==null}const $S=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eu=(n,a)=>s=>!!(typeof s=="string"&&$S.test(s)&&s.startsWith(n)||a&&!WS(s)&&Object.prototype.hasOwnProperty.call(s,a)),nm=(n,a,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(Tu);return{[n]:parseFloat(u),[a]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},tx=n=>$n(0,255,n),Mu={...Ya,transform:n=>Math.round(tx(n))},pa={test:Eu("rgb","red"),parse:nm("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+Mu.transform(n)+", "+Mu.transform(a)+", "+Mu.transform(s)+", "+Pl(Yl.transform(r))+")"};function ex(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 Au={test:Eu("#"),parse:ex,transform:pa.transform},ql=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),_i=ql("deg"),ti=ql("%"),yt=ql("px"),nx=ql("vh"),ix=ql("vw"),im={...ti,parse:n=>ti.parse(n)/100,transform:n=>ti.transform(n*100)},Pa={test:Eu("hsl","hue"),parse:nm("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+ti.transform(Pl(a))+", "+ti.transform(Pl(s))+", "+Pl(Yl.transform(r))+")"},be={test:n=>pa.test(n)||Au.test(n)||Pa.test(n),parse:n=>pa.test(n)?pa.parse(n):Pa.test(n)?Pa.parse(n):Au.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?pa.transform(n):Pa.transform(n),getAnimatableNone:n=>{const a=be.parse(n);return a.alpha=0,be.transform(a)}},ax=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lx(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(Tu))==null?void 0:a.length)||0)+(((s=n.match(ax))==null?void 0:s.length)||0)>0}const am="number",lm="color",sx="var",rx="var(",sm="${}",ox=/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 Fl(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=a.replace(ox,m=>(be.test(m)?(r.color.push(f),u.push(lm),s.push(be.parse(m))):m.startsWith(rx)?(r.var.push(f),u.push(sx),s.push(m)):(r.number.push(f),u.push(am),s.push(parseFloat(m))),++f,sm)).split(sm);return{values:s,split:h,indexes:r,types:u}}function rm(n){return Fl(n).values}function om(n){const{split:a,types:s}=Fl(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===am?f+=Pl(u[d]):h===lm?f+=be.transform(u[d]):f+=u[d]}return f}}const ux=n=>typeof n=="number"?0:be.test(n)?be.getAnimatableNone(n):n;function cx(n){const a=rm(n);return om(n)(a.map(ux))}const ki={test:lx,parse:rm,createTransformer:om,getAnimatableNone:cx};function wu(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 fx({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,m=2*s-h;u=wu(m,h,n+1/3),f=wu(m,h,n),d=wu(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function fr(n,a){return s=>s>0?a:n}const ue=(n,a,s)=>n+(a-n)*s,Cu=(n,a,s)=>{const r=n*n,u=s*(a*a-r)+r;return u<0?0:Math.sqrt(u)},dx=[Au,pa,Pa],hx=n=>dx.find(a=>a.test(n));function um(n){const a=hx(n);if(!a)return!1;let s=a.parse(n);return a===Pa&&(s=fx(s)),s}const cm=(n,a)=>{const s=um(n),r=um(a);if(!s||!r)return fr(n,a);const u={...s};return f=>(u.red=Cu(s.red,r.red,f),u.green=Cu(s.green,r.green,f),u.blue=Cu(s.blue,r.blue,f),u.alpha=ue(s.alpha,r.alpha,f),pa.transform(u))},Ru=new Set(["none","hidden"]);function mx(n,a){return Ru.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function yx(n,a){return s=>ue(n,a,s)}function Du(n){return typeof n=="number"?yx:typeof n=="string"?xu(n)?fr:be.test(n)?cm:vx:Array.isArray(n)?fm:typeof n=="object"?be.test(n)?cm:px:fr}function fm(n,a){const s=[...n],r=s.length,u=n.map((f,d)=>Du(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function px(n,a){const s={...n,...a},r={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(r[u]=Du(n[u])(n[u],a[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function gx(n,a){var u;const s=[],r={color:0,var:0,number:0};for(let f=0;f<a.values.length;f++){const d=a.types[f],h=n.indexes[d][r[d]],m=(u=n.values[h])!=null?u:0;s[f]=m,r[d]++}return s}const vx=(n,a)=>{const s=ki.createTransformer(a),r=Fl(n),u=Fl(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?Ru.has(n)&&!u.values.length||Ru.has(a)&&!r.values.length?mx(n,a):kl(fm(gx(r,u),u.values),s):fr(n,a)};function dm(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?ue(n,a,s):Du(n)(n,a)}const bx=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>te.update(a,s),stop:()=>Ui(a),now:()=>Ne.isProcessing?Ne.timestamp:Qe.now()}},hm=(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)})`},dr=2e4;function ju(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<dr;)a+=s,r=n.next(a);return a>=dr?1/0:a}function Sx(n,a=100,s){const r=s({...n,keyframes:[0,a]}),u=Math.min(ju(r),dr);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Cn(u)}}const xx=5;function mm(n,a,s){const r=Math.max(a-xx,0);return Hh(s-n(r),a-r)}const ce={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},Bu=.001;function Tx({duration:n=ce.duration,bounce:a=ce.bounce,velocity:s=ce.velocity,mass:r=ce.mass}){let u,f,d=1-a;d=$n(ce.minDamping,ce.maxDamping,d),n=$n(ce.minDuration,ce.maxDuration,Cn(n)),d<1?(u=y=>{const p=y*d,S=p*n,b=p-s,M=zu(y,d),D=Math.exp(-S);return Bu-b/M*D},f=y=>{const S=y*d*n,b=S*s+s,M=Math.pow(d,2)*Math.pow(y,2)*n,D=Math.exp(-S),C=zu(Math.pow(y,2),d);return(-u(y)+Bu>0?-1:1)*((b-M)*D)/C}):(u=y=>{const p=Math.exp(-y*n),S=(y-s)*n+1;return-Bu+p*S},f=y=>{const p=Math.exp(-y*n),S=(s-y)*(n*n);return p*S});const h=5/n,m=Mx(u,f,h);if(n=ui(n),isNaN(m))return{stiffness:ce.stiffness,damping:ce.damping,duration:n};{const y=Math.pow(m,2)*r;return{stiffness:y,damping:d*2*Math.sqrt(r*y),duration:n}}}const Ex=12;function Mx(n,a,s){let r=s;for(let u=1;u<Ex;u++)r=r-n(r)/a(r);return r}function zu(n,a){return n*Math.sqrt(1-a*a)}const Ax=["duration","bounce"],wx=["stiffness","damping","mass"];function ym(n,a){return a.some(s=>n[s]!==void 0)}function Cx(n){let a={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...n};if(!ym(n,wx)&&ym(n,Ax))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*$n(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:ce.mass,stiffness:u,damping:f}}else{const s=Tx(n);a={...a,...s,mass:ce.mass},a.isResolvedFromDuration=!0}return a}function hr(n=ce.visualDuration,a=ce.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:m,damping:y,mass:p,duration:S,velocity:b,isResolvedFromDuration:M}=Cx({...s,velocity:-Cn(s.velocity||0)}),D=b||0,C=y/(2*Math.sqrt(m*p)),j=d-f,H=Cn(Math.sqrt(m/p)),F=Math.abs(j)<5;r||(r=F?ce.restSpeed.granular:ce.restSpeed.default),u||(u=F?ce.restDelta.granular:ce.restDelta.default);let A;if(C<1){const w=zu(H,C);A=N=>{const V=Math.exp(-C*H*N);return d-V*((D+C*H*j)/w*Math.sin(w*N)+j*Math.cos(w*N))}}else if(C===1)A=w=>d-Math.exp(-H*w)*(j+(D+H*j)*w);else{const w=H*Math.sqrt(C*C-1);A=N=>{const V=Math.exp(-C*H*N),B=Math.min(w*N,300);return d-V*((D+C*H*j)*Math.sinh(B)+w*j*Math.cosh(B))/w}}const K={calculatedDuration:M&&S||null,next:w=>{const N=A(w);if(M)h.done=w>=S;else{let V=w===0?D:0;C<1&&(V=w===0?ui(D):mm(A,w,N));const B=Math.abs(V)<=r,Q=Math.abs(d-N)<=u;h.done=B&&Q}return h.value=h.done?d:N,h},toString:()=>{const w=Math.min(ju(K),dr),N=hm(V=>K.next(w*V).value,w,30);return w+"ms "+N},toTransition:()=>{}};return K}hr.applyToOptions=n=>{const a=Sx(n,100,hr);return n.ease=a.ease,n.duration=ui(a.duration),n.type="keyframes",n};function Lu({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:m,restDelta:y=.5,restSpeed:p}){const S=n[0],b={done:!1,value:S},M=B=>h!==void 0&&B<h||m!==void 0&&B>m,D=B=>h===void 0?m:m===void 0||Math.abs(h-B)<Math.abs(m-B)?h:m;let C=s*a;const j=S+C,H=d===void 0?j:d(j);H!==j&&(C=H-S);const F=B=>-C*Math.exp(-B/r),A=B=>H+F(B),K=B=>{const Q=F(B),Z=A(B);b.done=Math.abs(Q)<=y,b.value=b.done?H:Z};let w,N;const V=B=>{M(b.value)&&(w=B,N=hr({keyframes:[b.value,D(b.value)],velocity:mm(A,B,b.value),damping:u,stiffness:f,restDelta:y,restSpeed:p}))};return V(0),{calculatedDuration:null,next:B=>{let Q=!1;return!N&&w===void 0&&(Q=!0,K(B),V(B)),w!==void 0&&B>=w?N.next(B-w):(!Q&&K(B),b)}}}function Rx(n,a,s){const r=[],u=s||oi.mix||dm,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(a){const m=Array.isArray(a)?a[d]||wn:a;h=kl(m,h)}r.push(h)}return r}function Dx(n,a,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(yu(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=Rx(a,r,u),m=h.length,y=p=>{if(d&&p<n[0])return a[0];let S=0;if(m>1)for(;S<n.length-2&&!(p<n[S+1]);S++);const b=Hl(n[S],n[S+1],p);return h[S](b)};return s?p=>y($n(n[0],n[f-1],p)):y}function jx(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const u=Hl(0,a,r);n.push(ue(s,1,u))}}function Bx(n){const a=[0];return jx(a,n.length-1),a}function zx(n,a){return n.map(s=>s*a)}function Lx(n,a){return n.map(()=>a||Zh).splice(0,n.length-1)}function Xl({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const u=qS(r)?r.map(Jh):Jh(r),f={done:!1,value:a[0]},d=zx(s&&s.length===a.length?s:Bx(a),n),h=Dx(d,a,{ease:Array.isArray(u)?u:Lx(a,u)});return{calculatedDuration:n,next:m=>(f.value=h(m),f.done=m>=n,f)}}const Vx=n=>n!==null;function Vu(n,{repeat:a,repeatType:s="loop"},r,u=1){const f=n.filter(Vx),h=u<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const Ox={decay:Lu,inertia:Lu,tween:Xl,keyframes:Xl,spring:hr};function pm(n){typeof n.type=="string"&&(n.type=Ox[n.type])}class Ou{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 Nx=n=>n/100;class Nu extends Ou{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,u;const{motionValue:s}=this.options;s&&s.updatedAt!==Qe.now()&&this.tick(Qe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(r=this.options).onStop)==null||u.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;pm(a);const{type:s=Xl,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:h}=a;const m=s||Xl;m!==Xl&&typeof h[0]!="number"&&(this.mixKeyframes=kl(Nx,dm(h[0],h[1])),h=[0,100]);const y=m({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=ju(y));const{calculatedDuration:p}=y;this.calculatedDuration=p,this.resolvedDuration=p+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=y}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:m}=this;if(this.startTime===null)return r.next(0);const{delay:y=0,keyframes:p,repeat:S,repeatType:b,repeatDelay:M,type:D,onUpdate:C,finalKeyframe:j}=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 H=this.currentTime-y*(this.playbackSpeed>=0?1:-1),F=this.playbackSpeed>=0?H<0:H>u;this.currentTime=Math.max(H,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,K=r;if(S){const B=Math.min(this.currentTime,u)/h;let Q=Math.floor(B),Z=B%1;!Z&&B>=1&&(Z=1),Z===1&&Q--,Q=Math.min(Q,S+1),Q%2&&(b==="reverse"?(Z=1-Z,M&&(Z-=M/h)):b==="mirror"&&(K=d)),A=$n(0,1,Z)*h}const w=F?{done:!1,value:p[0]}:K.next(A);f&&(w.value=f(w.value));let{done:N}=w;!F&&m!==null&&(N=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return V&&D!==Lu&&(w.value=Vu(p,this.options,j,this.speed)),C&&C(w.value),V&&this.finish(),w}then(a,s){return this.finished.then(a,s)}get duration(){return Cn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Cn(a)}get time(){return Cn(this.currentTime)}set time(a){var s;a=ui(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),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Qe.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Cn(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:a=bx,startTime:s}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);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!=null?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(Qe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.call(a)}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){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function Ux(n){var a;for(let s=1;s<n.length;s++)(a=n[s])!=null||(n[s]=n[s-1])}const ga=n=>n*180/Math.PI,Uu=n=>{const a=ga(Math.atan2(n[1],n[0]));return _u(a)},_x={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Uu,rotateZ:Uu,skewX:n=>ga(Math.atan(n[1])),skewY:n=>ga(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},_u=n=>(n=n%360,n<0&&(n+=360),n),gm=Uu,vm=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),bm=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),kx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vm,scaleY:bm,scale:n=>(vm(n)+bm(n))/2,rotateX:n=>_u(ga(Math.atan2(n[6],n[5]))),rotateY:n=>_u(ga(Math.atan2(-n[2],n[0]))),rotateZ:gm,rotate:gm,skewX:n=>ga(Math.atan(n[4])),skewY:n=>ga(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function ku(n){return n.includes("scale")?1:0}function Hu(n,a){if(!n||n==="none")return ku(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=kx,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_x,u=h}if(!u)return ku(a);const f=r[a],d=u[1].split(",").map(Gx);return typeof f=="function"?f(d):d[f]}const Hx=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return Hu(s,a)};function Gx(n){return parseFloat(n.trim())}const qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fa=new Set(qa),Sm=n=>n===Ya||n===yt,Yx=new Set(["x","y","z"]),Px=qa.filter(n=>!Yx.has(n));function qx(n){const a=[];return Px.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const Hi={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})=>Hu(a,"x"),y:(n,{transform:a})=>Hu(a,"y")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const va=new Set;let Gu=!1,Yu=!1,Pu=!1;function xm(){if(Yu){const n=Array.from(va).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const u=qx(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])=>{var h;(h=r.getValue(f))==null||h.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yu=!1,Gu=!1,va.forEach(n=>n.complete(Pu)),va.clear()}function Tm(){va.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Yu=!0)})}function Fx(){Pu=!0,Tm(),xm(),Pu=!1}class qu{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?(va.add(this),Gu||(Gu=!0,te.read(Tm),te.resolveKeyframes(xm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:u}=this;if(a[0]===null){const f=u==null?void 0: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])}Ux(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),va.delete(this)}cancel(){this.state==="scheduled"&&(va.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xx=n=>n.startsWith("--");function Kx(n,a,s){Xx(a)?n.style.setProperty(a,s):n.style[a]=s}const Qx=pu(()=>window.ScrollTimeline!==void 0),Zx={};function Ix(n,a){const s=pu(n);return()=>{var r;return(r=Zx[a])!=null?r:s()}}const Em=Ix(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),Kl=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,Mm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function Am(n,a){if(n)return typeof n=="function"?Em()?hm(n,a):"ease-out":Ih(n)?Kl(n):Array.isArray(n)?n.map(s=>Am(s,a)||Mm.easeOut):Mm[n]}function Jx(n,a,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:m}={},y=void 0){const p={[a]:s};m&&(p.offset=m);const S=Am(h,u);Array.isArray(S)&&(p.easing=S);const b={delay:r,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return y&&(b.pseudoElement=y),n.animate(p,b)}function wm(n){return typeof n=="function"&&"applyToOptions"in n}function Wx({type:n,...a}){var s,r;return wm(n)&&Em()?n.applyToOptions(a):((s=a.duration)!=null||(a.duration=300),(r=a.ease)!=null||(a.ease="easeOut"),a)}class $x extends Ou{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,yu(typeof a.type!="string");const y=Wx(a);this.animation=Jx(s,r,u,y,f),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const p=Vu(u,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(p):Kx(s,r,p),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,s;(s=(a=this.animation).finish)==null||s.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}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(){var s,r,u;const a=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((u=(r=this.animation).commitStyles)==null||u.call(r))}get duration(){var s,r;const a=((r=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:r.call(s).duration)||0;return Cn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Cn(a)}get time(){return Cn(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ui(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(){var a;return(a=this.manualStartTime)!=null?a:Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&Qx()?(this.animation.timeline=a,wn):s(this)}}const Cm={anticipate:Xh,backInOut:Fh,circInOut:Qh};function tT(n){return n in Cm}function eT(n){typeof n.ease=="string"&&tT(n.ease)&&(n.ease=Cm[n.ease])}const Fu=10;class nT extends $x{constructor(a){eT(a),pm(a),super(a),a.startTime!==void 0&&(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 Nu({...d,autoplay:!1}),m=Math.max(Fu,Qe.now()-this.startTime),y=$n(0,Fu,m-Fu);s.setWithVelocity(h.sample(Math.max(0,m-y)).value,h.sample(m).value,y),h.stop()}}const Rm=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ki.test(n)||n==="0")&&!n.startsWith("url("));function iT(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 aT(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=Rm(u,a),h=Rm(f,a);return!d||!h?!1:iT(n)||(s==="spring"||wm(s))&&r}function Xu(n){n.duration=0,n.type="keyframes"}const lT=new Set(["opacity","clipPath","filter","transform"]),sT=pu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rT(n){var p;const{motionValue:a,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(((p=a==null?void 0:a.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:y}=a.owner.getProps();return sT()&&s&&lT.has(s)&&(s!=="transform"||!y)&&!m&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const oT=40;class uT extends Ou{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:m,motionValue:y,element:p,...S}){var D;super(),this.stop=()=>{var C,j;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=Qe.now();const b={autoplay:a,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:m,motionValue:y,element:p,...S},M=(p==null?void 0:p.KeyframeResolver)||qu;this.keyframeResolver=new M(h,(C,j,H)=>this.onKeyframesResolved(C,j,b,!H),m,y,p),(D=this.keyframeResolver)==null||D.scheduleResolve()}onKeyframesResolved(a,s,r,u){var j,H;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:m,isHandoff:y,onUpdate:p}=r;this.resolvedAt=Qe.now(),aT(a,f,d,h)||((oi.instantAnimations||!m)&&(p==null||p(Vu(a,r,s))),a[0]=a[a.length-1],Xu(r),r.repeat=0);const b={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>oT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:a},M=!y&&rT(b),D=(H=(j=b.motionValue)==null?void 0:j.owner)==null?void 0:H.current,C=M?new nT({...b,element:D}):new Nu(b);C.finished.then(()=>{this.notifyFinished()}).catch(wn),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),Fx()),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(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function Dm(n,a,s,r=0,u=1){const f=Array.from(n).sort((y,p)=>y.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}const cT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fT(n){const a=cT.exec(n);if(!a)return[,];const[,s,r,u]=a;return[`--${s!=null?s:r}`,u]}function jm(n,a,s=1){const[r,u]=fT(n);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return Uh(d)?parseFloat(d):d}return xu(u)?jm(u,a,s+1):u}const dT={type:"spring",stiffness:500,damping:25,restSpeed:10},hT=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),mT={type:"keyframes",duration:.8},yT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pT=(n,{keyframes:a})=>a.length>2?mT:Fa.has(n)?n.startsWith("scale")?hT(a[1]):dT:yT,gT=n=>n!==null;function vT(n,{repeat:a,repeatType:s="loop"},r){const u=n.filter(gT),f=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[f]}function Ku(n,a){var s,r;return(r=(s=n==null?void 0:n[a])!=null?s:n==null?void 0:n.default)!=null?r:n}function bT({when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:m,elapsed:y,...p}){return!!Object.keys(p).length}const Qu=(n,a,s,r={},u,f)=>d=>{const h=Ku(r,n)||{},m=h.delay||r.delay||0;let{elapsed:y=0}=r;y=y-ui(m);const p={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-y,onUpdate:b=>{a.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:f?void 0:u};bT(h)||Object.assign(p,pT(n,p)),p.duration&&(p.duration=ui(p.duration)),p.repeatDelay&&(p.repeatDelay=ui(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let S=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Xu(p),p.delay===0&&(S=!0)),(oi.instantAnimations||oi.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(S=!0,Xu(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,S&&!f&&a.get()!==void 0){const b=vT(p.keyframes,h);if(b!==void 0){te.update(()=>{p.onUpdate(b),p.onComplete()});return}}return h.isSync?new Nu(p):new uT(p)};function Bm(n){const a=[{},{}];return n==null||n.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function Zu(n,a,s,r){if(typeof a=="function"){const[u,f]=Bm(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]=Bm(r);a=a(s!==void 0?s:n.custom,u,f)}return a}function Xa(n,a,s){const r=n.getProps();return Zu(r,a,s!==void 0?s:r.custom,n)}const zm=new Set(["width","height","top","left","right","bottom",...qa]),Lm=30,ST=n=>!isNaN(parseFloat(n));class xT{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const u=Qe.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=Qe.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=ST(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 gu);const r=this.events[a].add(s);return a==="change"?()=>{r(),te.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(){var a;(a=this.events.change)==null||a.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=Qe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Lm)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Lm);return Hh(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(){var a,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ka(n,a){return new xT(n,a)}const Iu=n=>Array.isArray(n);function TT(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ka(s))}function ET(n){return Iu(n)?n[n.length-1]||0:n}function MT(n,a){const s=Xa(n,a);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const h=ET(f[d]);TT(n,d,h)}}const Ye=n=>!!(n&&n.getVelocity);function AT(n){return!!(Ye(n)&&n.add)}function Ju(n,a){const s=n.getValue("willChange");if(AT(s))return s.add(a);if(!s&&oi.WillChange){const r=new oi.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function Wu(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const Vm="data-"+Wu("framerAppearId");function Om(n){return n.props[Vm]}function wT({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function Nm(n,a,{delay:s=0,transitionOverride:r,type:u}={}){var S;let{transition:f=n.getDefaultTransition(),transitionEnd:d,...h}=a;const m=f==null?void 0:f.reduceMotion;r&&(f=r);const y=[],p=u&&n.animationState&&n.animationState.getState()[u];for(const b in h){const M=n.getValue(b,(S=n.latestValues[b])!=null?S:null),D=h[b];if(D===void 0||p&&wT(p,b))continue;const C={delay:s,...Ku(f||{},b)},j=M.get();if(j!==void 0&&!M.isAnimating&&!Array.isArray(D)&&D===j&&!C.velocity)continue;let H=!1;if(window.MotionHandoffAnimation){const K=Om(n);if(K){const w=window.MotionHandoffAnimation(K,b,te);w!==null&&(C.startTime=w,H=!0)}}Ju(n,b);const F=m!=null?m:n.shouldReduceMotion;M.start(Qu(b,M,D,F&&zm.has(b)?{type:!1}:C,n,H));const A=M.animation;A&&y.push(A)}return d&&Promise.all(y).then(()=>{te.update(()=>{d&&MT(n,d)})}),y}function $u(n,a,s={}){var m;const r=Xa(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(Nm(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:S,staggerDirection:b}=u;return CT(n,a,y,p,S,b,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[y,p]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>p())}else return Promise.all([f(),d(s.delay)])}function CT(n,a,s=0,r=0,u=0,f=1,d){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push($u(m,a,{...d,delay:s+(typeof r=="function"?0:r)+Dm(n.variantChildren,m,r,u,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function RT(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>$u(n,f,s));r=Promise.all(u)}else if(typeof a=="string")r=$u(n,a,s);else{const u=typeof a=="function"?Xa(n,a,s.custom):a;r=Promise.all(Nm(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}const DT={test:n=>n==="auto",parse:n=>n},Um=n=>a=>a.test(n),_m=[Ya,yt,ti,_i,ix,nx,DT],km=n=>_m.find(Um(n));function jT(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||kh(n):!0}const BT=new Set(["brightness","contrast","saturate","opacity"]);function zT(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(Tu)||[];if(!r)return n;const u=s.replace(r,"");let f=BT.has(a)?1:0;return r!==s&&(f*=100),a+"("+f+u+")"}const LT=/\b([a-z-]*)\(.*?\)/gu,tc={...ki,getAnimatableNone:n=>{const a=n.match(LT);return a?a.map(zT).join(" "):n}},Hm={...Ya,transform:Math.round},ec={borderWidth:yt,borderTopWidth:yt,borderRightWidth:yt,borderBottomWidth:yt,borderLeftWidth:yt,borderRadius:yt,borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomRightRadius:yt,borderBottomLeftRadius:yt,width:yt,maxWidth:yt,height:yt,maxHeight:yt,top:yt,right:yt,bottom:yt,left:yt,inset:yt,insetBlock:yt,insetBlockStart:yt,insetBlockEnd:yt,insetInline:yt,insetInlineStart:yt,insetInlineEnd:yt,padding:yt,paddingTop:yt,paddingRight:yt,paddingBottom:yt,paddingLeft:yt,paddingBlock:yt,paddingBlockStart:yt,paddingBlockEnd:yt,paddingInline:yt,paddingInlineStart:yt,paddingInlineEnd:yt,margin:yt,marginTop:yt,marginRight:yt,marginBottom:yt,marginLeft:yt,marginBlock:yt,marginBlockStart:yt,marginBlockEnd:yt,marginInline:yt,marginInlineStart:yt,marginInlineEnd:yt,fontSize:yt,backgroundPositionX:yt,backgroundPositionY:yt,...{rotate:_i,rotateX:_i,rotateY:_i,rotateZ:_i,scale:cr,scaleX:cr,scaleY:cr,scaleZ:cr,skew:_i,skewX:_i,skewY:_i,distance:yt,translateX:yt,translateY:yt,translateZ:yt,x:yt,y:yt,z:yt,perspective:yt,transformPerspective:yt,opacity:Yl,originX:im,originY:im,originZ:yt},zIndex:Hm,fillOpacity:Yl,strokeOpacity:Yl,numOctaves:Hm},VT={...ec,color:be,backgroundColor:be,outlineColor:be,fill:be,stroke:be,borderColor:be,borderTopColor:be,borderRightColor:be,borderBottomColor:be,borderLeftColor:be,filter:tc,WebkitFilter:tc},Gm=n=>VT[n];function Ym(n,a){let s=Gm(n);return s!==tc&&(s=ki),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const OT=new Set(["auto","none","0"]);function NT(n,a,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!OT.has(f)&&Fl(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of a)n[f]=Ym(s,u)}class UT extends qu{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 p=0;p<a.length;p++){let S=a[p];if(typeof S=="string"&&(S=S.trim(),xu(S))){const b=jm(S,s.current);b!==void 0&&(a[p]=b),p===a.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!zm.has(r)||a.length!==2)return;const[u,f]=a,d=km(u),h=km(f),m=em(u),y=em(f);if(m!==y&&Hi[r]){this.needsMeasurement=!0;return}if(d!==h)if(Sm(d)&&Sm(h))for(let p=0;p<a.length;p++){const S=a[p];typeof S=="string"&&(a[p]=parseFloat(S))}else Hi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||jT(a[u]))&&r.push(u);r.length&&NT(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=Hi[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(){var h;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]=Hi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,y])=>{a.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function _T(n,a,s){var r;if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const f=(r=s==null?void 0:s[n])!=null?r:u.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n).filter(u=>u!=null)}const Pm=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function nc(n){return _h(n)&&"offsetHeight"in n}const{schedule:ic}=Wh(queueMicrotask,!1),qn={x:!1,y:!1};function qm(){return qn.x||qn.y}function kT(n){return n==="x"||n==="y"?qn[n]?null:(qn[n]=!0,()=>{qn[n]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}function Fm(n,a){const s=_T(n),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[s,u,()=>r.abort()]}function Xm(n){return!(n.pointerType==="touch"||qm())}function HT(n,a,s={}){const[r,u,f]=Fm(n,s),d=h=>{if(!Xm(h))return;const{target:m}=h,y=a(m,h);if(typeof y!="function"||!m)return;const p=S=>{Xm(S)&&(y(S),m.removeEventListener("pointerleave",p))};m.addEventListener("pointerleave",p,u)};return r.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const Km=(n,a)=>a?n===a?!0:Km(n,a.parentElement):!1,ac=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,GT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YT(n){return GT.has(n.tagName)||n.isContentEditable===!0}const PT=new Set(["INPUT","SELECT","TEXTAREA"]);function qT(n){return PT.has(n.tagName)||n.isContentEditable===!0}const mr=new WeakSet;function Qm(n){return a=>{a.key==="Enter"&&n(a)}}function lc(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const FT=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=Qm(()=>{if(mr.has(s))return;lc(s,"down");const u=Qm(()=>{lc(s,"up")}),f=()=>lc(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 Zm(n){return ac(n)&&!qm()}function XT(n,a,s={}){const[r,u,f]=Fm(n,s),d=h=>{const m=h.currentTarget;if(!Zm(h))return;mr.add(m);const y=a(m,h),p=(M,D)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),mr.has(m)&&mr.delete(m),Zm(M)&&typeof y=="function"&&y(M,{success:D})},S=M=>{p(M,m===window||m===document||s.useGlobalTarget||Km(m,M.target))},b=M=>{p(M,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",b,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),nc(h)&&(h.addEventListener("focus",y=>FT(y,u)),!YT(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Im(n){return _h(n)&&"ownerSVGElement"in n}function KT(n){return Im(n)&&n.tagName==="svg"}const QT=[..._m,be,ki],ZT=n=>QT.find(Um(n)),Jm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qa=()=>({x:Jm(),y:Jm()}),Wm=()=>({min:0,max:0}),Re=()=>({x:Wm(),y:Wm()}),sc={current:null},$m={current:!1},IT=typeof window!="undefined";function JT(){if($m.current=!0,!!IT)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>sc.current=n.matches;n.addEventListener("change",a),a()}else sc.current=!1}const WT=new WeakMap;function yr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ql(n){return typeof n=="string"||Array.isArray(n)}const rc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oc=["initial",...rc];function pr(n){return yr(n.animate)||oc.some(a=>Ql(n[a]))}function t0(n){return!!(pr(n)||n.variants)}function $T(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,Ka(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,Ka(d!==void 0?d:u,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const e0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let gr={};function n0(n){gr=n}function tE(){return gr}class eE{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:d,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qu,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 M=Qe.now();this.renderScheduledAt<M&&(this.renderScheduledAt=M,te.render(this.render,!1,!0))};const{latestValues:y,renderState:p}=h;this.latestValues=y,this.baseTarget={...y},this.initialValues=s.initial?{...y}:{},this.renderState=p,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=pr(s),this.isVariantNode=t0(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const M in b){const D=b[M];y[M]!==void 0&&Ye(D)&&D.set(y[M])}}mount(a){var s,r;this.current=a,WT.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((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($m.current||JT(),this.shouldReduceMotion=sc.current),this.shouldSkipAnimations=(s=this.skipAnimationsConfig)!=null?s:!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),Ui(this.notifyUpdate),Ui(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const r=this.features[s];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){var s;this.children.add(a),(s=this.enteringChildren)!=null||(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=Fa.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window!="undefined"&&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 gr){const s=gr[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):Re()}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<e0.length;r++){const u=e0[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=$T(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=Ka(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){var u;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(u=this.getBaseTargetFromProps(this.props,a))!=null?u:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(Uh(r)||kh(r))?r=parseFloat(r):!ZT(r)&&ki.test(s)&&(r=Ym(a,s)),this.setBaseTarget(a,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var f;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const d=Zu(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);d&&(r=d[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 gu),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){ic.render(this.render)}}class i0 extends eE{constructor(){super(...arguments),this.KeyframeResolver=UT}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const r=a.style;return r?r[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}`)}))}}class Gi{constructor(a){this.isMounted=!1,this.node=a}update(){}}function a0({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function nE({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function iE(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 uc(n){return n===void 0||n===1}function cc({scale:n,scaleX:a,scaleY:s}){return!uc(n)||!uc(a)||!uc(s)}function ba(n){return cc(n)||l0(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function l0(n){return s0(n.x)||s0(n.y)}function s0(n){return n&&n!=="0%"}function vr(n,a,s){const r=n-s,u=a*r;return s+u}function r0(n,a,s,r,u){return u!==void 0&&(n=vr(n,u,r)),vr(n,s,r)+a}function fc(n,a=0,s=1,r,u){n.min=r0(n.min,a,s,r,u),n.max=r0(n.max,a,s,r,u)}function o0(n,{x:a,y:s}){fc(n.x,a.translate,a.scale,a.originPoint),fc(n.y,s.translate,s.scale,s.originPoint)}const u0=.999999999999,c0=1.0000000000001;function aE(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:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ia(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,o0(n,d)),r&&ba(f.latestValues)&&Ia(n,f.latestValues))}a.x<c0&&a.x>u0&&(a.x=1),a.y<c0&&a.y>u0&&(a.y=1)}function Za(n,a){n.min=n.min+a,n.max=n.max+a}function f0(n,a,s,r,u=.5){const f=ue(n.min,n.max,u);fc(n,a,s,f,r)}function Ia(n,a){f0(n.x,a.x,a.scaleX,a.scale,a.originX),f0(n.y,a.y,a.scaleY,a.scale,a.originY)}function d0(n,a){return a0(iE(n.getBoundingClientRect(),a))}function lE(n,a,s){const r=d0(n,s),{scroll:u}=a;return u&&(Za(r.x,u.offset.x),Za(r.y,u.offset.y)),r}const sE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rE=qa.length;function oE(n,a,s){let r="",u=!0;for(let f=0;f<rE;f++){const d=qa[f],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(d.startsWith("scale")?1:0);else{const y=parseFloat(h);m=d.startsWith("scale")?y===1:y===0}if(!m||s){const y=Pm(h,ec[d]);if(!m){u=!1;const p=sE[d]||d;r+=`${p}(${y}) `}s&&(a[d]=y)}}return r=r.trim(),s?r=s(a,u?"":r):u&&(r="none"),r}function dc(n,a,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const m in a){const y=a[m];if(Fa.has(m)){d=!0;continue}else if(tm(m)){u[m]=y;continue}else{const p=Pm(y,ec[m]);m.startsWith("origin")?(h=!0,f[m]=p):r[m]=p}}if(a.transform||(d||s?r.transform=oE(a,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:y="50%",originZ:p=0}=f;r.transformOrigin=`${m} ${y} ${p}`}}function h0(n,{style:a,vars:s},r,u){const f=n.style;let d;for(d in a)f[d]=a[d];u==null||u.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function m0(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Zl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(yt.test(n))n=parseFloat(n);else return n;const s=m0(n,a.target.x),r=m0(n,a.target.y);return`${s}% ${r}%`}},uE={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,u=ki.parse(n);if(u.length>5)return r;const f=ki.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;u[0+d]/=h,u[1+d]/=m;const y=ue(h,m,.5);return typeof u[2+d]=="number"&&(u[2+d]/=y),typeof u[3+d]=="number"&&(u[3+d]/=y),f(u)}},hc={borderRadius:{...Zl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zl,borderTopRightRadius:Zl,borderBottomLeftRadius:Zl,borderBottomRightRadius:Zl,boxShadow:uE};function y0(n,{layout:a,layoutId:s}){return Fa.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!hc[n]||n==="opacity")}function mc(n,a,s){var d;const r=n.style,u=a==null?void 0:a.style,f={};if(!r)return f;for(const h in r)(Ye(r[h])||u&&Ye(u[h])||y0(h,n)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=r[h]);return f}function cE(n){return window.getComputedStyle(n)}class fE extends i0{constructor(){super(...arguments),this.type="html",this.renderInstance=h0}readValueFromInstance(a,s){var r;if(Fa.has(s))return(r=this.projection)!=null&&r.isProjecting?ku(s):Hx(a,s);{const u=cE(a),f=(tm(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(a,{transformPagePoint:s}){return d0(a,s)}build(a,s,r){dc(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return mc(a,s,r)}}const dE={offset:"stroke-dashoffset",array:"stroke-dasharray"},hE={offset:"strokeDashoffset",array:"strokeDasharray"};function mE(n,a,s=1,r=0,u=!0){n.pathLength=1;const f=u?dE:hE;n[f.offset]=`${-r}`,n[f.array]=`${a} ${s}`}const yE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function p0(n,{attrX:a,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},m,y,p){var M,D;if(dc(n,h,y),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:b}=n;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=(M=S.transformOrigin)!=null?M:"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=(D=p==null?void 0:p.transformBox)!=null?D:"fill-box",delete S.transformBox);for(const C of yE)S[C]!==void 0&&(b[C]=S[C],delete S[C]);a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),r!==void 0&&(S.scale=r),u!==void 0&&mE(S,u,f,d,!1)}const g0=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"]),v0=n=>typeof n=="string"&&n.toLowerCase()==="svg";function pE(n,a,s,r){h0(n,a,void 0,r);for(const u in a.attrs)n.setAttribute(g0.has(u)?u:Wu(u),a.attrs[u])}function b0(n,a,s){const r=mc(n,a,s);for(const u in n)if(Ye(n[u])||Ye(a[u])){const f=qa.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}class gE extends i0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Fa.has(s)){const r=Gm(s);return r&&r.default||0}return s=g0.has(s)?s:Wu(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return b0(a,s,r)}build(a,s,r){p0(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,u){pE(a,s,r,u)}mount(a){this.isSVGTag=v0(a.tagName),super.mount(a)}}const vE=oc.length;function S0(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?S0(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<vE;s++){const r=oc[s],u=n.props[r];(Ql(u)||u===!1)&&(a[r]=u)}return a}function x0(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 bE=[...rc].reverse(),SE=rc.length;function xE(n){return a=>Promise.all(a.map(({animation:s,options:r})=>RT(n,s,r)))}function TE(n){let a=xE(n),s=T0(),r=!0;const u=m=>(y,p)=>{var b;const S=Xa(n,p,m==="exit"?(b=n.presenceContext)==null?void 0:b.custom:void 0);if(S){const{transition:M,transitionEnd:D,...C}=S;y={...y,...C,...D}}return y};function f(m){a=m(n)}function d(m){const{props:y}=n,p=S0(n.parent)||{},S=[],b=new Set;let M={},D=1/0;for(let j=0;j<SE;j++){const H=bE[j],F=s[H],A=y[H]!==void 0?y[H]:p[H],K=Ql(A),w=H===m?F.isActive:null;w===!1&&(D=j);let N=A===p[H]&&A!==y[H]&&K;if(N&&r&&n.manuallyAnimateOnMount&&(N=!1),F.protectedKeys={...M},!F.isActive&&w===null||!A&&!F.prevProp||yr(A)||typeof A=="boolean")continue;const V=EE(F.prevProp,A);let B=V||H===m&&F.isActive&&!N&&K||j>D&&K,Q=!1;const Z=Array.isArray(A)?A:[A];let tt=Z.reduce(u(H),{});w===!1&&(tt={});const{prevResolvedValues:at={}}=F,L={...at,...tt},G=O=>{B=!0,b.has(O)&&(Q=!0,b.delete(O)),F.needsAnimating[O]=!0;const Y=n.getValue(O);Y&&(Y.liveStyle=!1)};for(const O in L){const Y=tt[O],rt=at[O];if(M.hasOwnProperty(O))continue;let st=!1;Iu(Y)&&Iu(rt)?st=!x0(Y,rt):st=Y!==rt,st?Y!=null?G(O):b.add(O):Y!==void 0&&b.has(O)?G(O):F.protectedKeys[O]=!0}F.prevProp=A,F.prevResolvedValues=tt,F.isActive&&(M={...M,...tt}),r&&n.blockInitialAnimation&&(B=!1);const W=N&&V;B&&(!W||Q)&&S.push(...Z.map(O=>{const Y={type:H};if(typeof O=="string"&&r&&!W&&n.manuallyAnimateOnMount&&n.parent){const{parent:rt}=n,st=Xa(rt,O);if(rt.enteringChildren&&st){const{delayChildren:pt}=st.transition||{};Y.delay=Dm(rt.enteringChildren,n,pt)}}return{animation:O,options:Y}}))}if(b.size){const j={};if(typeof y.initial!="boolean"){const H=Xa(n,Array.isArray(y.initial)?y.initial[0]:y.initial);H&&H.transition&&(j.transition=H.transition)}b.forEach(H=>{const F=n.getBaseTarget(H),A=n.getValue(H);A&&(A.liveStyle=!0),j[H]=F!=null?F:null}),S.push({animation:j})}let C=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(C=!1),r=!1,C?a(S):Promise.resolve()}function h(m,y){var S;if(s[m].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(b=>{var M;return(M=b.animationState)==null?void 0:M.setActive(m,y)}),s[m].isActive=y;const p=d(m);for(const b in s)s[b].protectedKeys={};return p}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=T0()}}}function EE(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!x0(a,n):!1}function Sa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function T0(){return{animate:Sa(!0),whileInView:Sa(),whileHover:Sa(),whileTap:Sa(),whileDrag:Sa(),whileFocus:Sa(),exit:Sa()}}function E0(n,a){n.min=a.min,n.max=a.max}function Fn(n,a){E0(n.x,a.x),E0(n.y,a.y)}function M0(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const A0=1e-4,ME=1-A0,AE=1+A0,w0=.01,wE=0-w0,CE=0+w0;function Ze(n){return n.max-n.min}function RE(n,a,s){return Math.abs(n-a)<=s}function C0(n,a,s,r=.5){n.origin=r,n.originPoint=ue(a.min,a.max,n.origin),n.scale=Ze(s)/Ze(a),n.translate=ue(s.min,s.max,n.origin)-n.originPoint,(n.scale>=ME&&n.scale<=AE||isNaN(n.scale))&&(n.scale=1),(n.translate>=wE&&n.translate<=CE||isNaN(n.translate))&&(n.translate=0)}function Il(n,a,s,r){C0(n.x,a.x,s.x,r?r.originX:void 0),C0(n.y,a.y,s.y,r?r.originY:void 0)}function R0(n,a,s){n.min=s.min+a.min,n.max=n.min+Ze(a)}function DE(n,a,s){R0(n.x,a.x,s.x),R0(n.y,a.y,s.y)}function D0(n,a,s){n.min=a.min-s.min,n.max=n.min+Ze(a)}function br(n,a,s){D0(n.x,a.x,s.x),D0(n.y,a.y,s.y)}function j0(n,a,s,r,u){return n-=a,n=vr(n,1/s,r),u!==void 0&&(n=vr(n,1/u,r)),n}function jE(n,a=0,s=1,r=.5,u,f=n,d=n){if(ti.test(a)&&(a=parseFloat(a),a=ue(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=ue(f.min,f.max,r);n===f&&(h-=a),n.min=j0(n.min,a,s,h,u),n.max=j0(n.max,a,s,h,u)}function B0(n,a,[s,r,u],f,d){jE(n,a[s],a[r],a[u],a.scale,f,d)}const BE=["x","scaleX","originX"],zE=["y","scaleY","originY"];function z0(n,a,s,r){B0(n.x,a,BE,s?s.x:void 0,r?r.x:void 0),B0(n.y,a,zE,s?s.y:void 0,r?r.y:void 0)}function L0(n){return n.translate===0&&n.scale===1}function V0(n){return L0(n.x)&&L0(n.y)}function O0(n,a){return n.min===a.min&&n.max===a.max}function LE(n,a){return O0(n.x,a.x)&&O0(n.y,a.y)}function N0(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function U0(n,a){return N0(n.x,a.x)&&N0(n.y,a.y)}function _0(n){return Ze(n.x)/Ze(n.y)}function k0(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function Rn(n){return[n("x"),n("y")]}function VE(n,a,s){let r="";const u=n.x.translate/a.x,f=n.y.translate/a.y,d=(s==null?void 0: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:y,rotate:p,rotateX:S,rotateY:b,skewX:M,skewY:D}=s;y&&(r=`perspective(${y}px) ${r}`),p&&(r+=`rotate(${p}deg) `),S&&(r+=`rotateX(${S}deg) `),b&&(r+=`rotateY(${b}deg) `),M&&(r+=`skewX(${M}deg) `),D&&(r+=`skewY(${D}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const H0=["TopLeft","TopRight","BottomLeft","BottomRight"],OE=H0.length,G0=n=>typeof n=="string"?parseFloat(n):n,Y0=n=>typeof n=="number"||yt.test(n);function NE(n,a,s,r,u,f){var d,h,m,y;u?(n.opacity=ue(0,(d=s.opacity)!=null?d:1,UE(r)),n.opacityExit=ue((h=a.opacity)!=null?h:1,0,_E(r))):f&&(n.opacity=ue((m=a.opacity)!=null?m:1,(y=s.opacity)!=null?y:1,r));for(let p=0;p<OE;p++){const S=`border${H0[p]}Radius`;let b=P0(a,S),M=P0(s,S);if(b===void 0&&M===void 0)continue;b||(b=0),M||(M=0),b===0||M===0||Y0(b)===Y0(M)?(n[S]=Math.max(ue(G0(b),G0(M),r),0),(ti.test(M)||ti.test(b))&&(n[S]+="%")):n[S]=M}(a.rotate||s.rotate)&&(n.rotate=ue(a.rotate||0,s.rotate||0,r))}function P0(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const UE=q0(0,.5,Kh),_E=q0(.5,.95,wn);function q0(n,a,s){return r=>r<n?0:r>a?1:s(Hl(n,a,r))}function kE(n,a,s){const r=Ye(n)?n:Ka(n);return r.start(Qu("",r,a,s)),r.animation}function Jl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}const HE=(n,a)=>n.depth-a.depth;class GE{constructor(){this.children=[],this.isDirty=!1}add(a){hu(this.children,a),this.isDirty=!0}remove(a){mu(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(HE),this.isDirty=!1,this.children.forEach(a)}}function YE(n,a){const s=Qe.now(),r=({timestamp:u})=>{const f=u-s;f>=a&&(Ui(r),n(f-a))};return te.setup(r,!0),()=>Ui(r)}function Sr(n){return Ye(n)?n.get():n}class PE{constructor(){this.members=[]}add(a){hu(this.members,a),a.scheduleRender()}remove(a){if(mu(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();const u=r.options.layoutDependency,f=a.options.layoutDependency;u!==void 0&&f!==void 0&&u===f||(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:h}=a.options;h===!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)}}const xr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yc=["","X","Y","Z"],qE=1e3;let FE=0;function pc(n,a,s,r){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),r&&(r[n]=0))}function F0(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Om(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",te,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&F0(r)}function X0({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=a==null?void 0:a()){this.id=FE++,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(QE),this.nodes.forEach(WE),this.nodes.forEach($E),this.nodes.forEach(ZE)},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 m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new GE)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new gu),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Im(d)&&!KT(d),this.instance=d;const{layoutId:h,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let p,S=0;const b=()=>this.root.updateBlockedByResize=!1;te.read(()=>{S=window.innerWidth}),n(d,()=>{const M=window.innerWidth;M!==S&&(S=M,this.root.updateBlockedByResize=!0,p&&p(),p=YE(b,250),xr.hasAnimatedSinceResize&&(xr.hasAnimatedSinceResize=!1,this.nodes.forEach(Z0)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&y&&(h||m)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||y.getDefaultTransition()||aM,{onLayoutAnimationStart:C,onLayoutAnimationComplete:j}=y.getProps(),H=!this.targetLayout||!U0(this.targetLayout,M),F=!S&&b;if(this.options.layoutRoot||this.resumeFrom||F||S&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Ku(D,"layout"),onPlay:C,onComplete:j};(y.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(p,F)}else S||Z0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}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(),Ui(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(tM),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&&F0(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:m}=this.options;if(h===void 0&&!m)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(K0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Q0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(JE),this.nodes.forEach(XE),this.nodes.forEach(KE)):this.nodes.forEach(Q0),this.clearAllSnapshots();const h=Qe.now();Ne.delta=$n(0,1e3/60,h-Ne.timestamp),Ne.timestamp=h,Ne.isProcessing=!0,Su.update.process(Ne),Su.preRender.process(Ne),Su.render.process(Ne),Ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ic.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(IE),this.sharedNodes.forEach(eM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ze(this.snapshot.measuredBox.x)&&!Ze(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 d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Re(),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 m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!V0(this.projectionDelta),m=this.getTransformTemplate(),y=m?m(this.latestValues,""):void 0,p=y!==this.prevTransformTemplateValue;d&&this.instance&&(h||ba(this.latestValues)||p)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),lM(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var y;const{visualElement:d}=this.options;if(!d)return Re();const h=d.measureViewportBox();if(!(((y=this.scroll)==null?void 0:y.wasRoot)||this.path.some(sM))){const{scroll:p}=this.root;p&&(Za(h.x,p.offset.x),Za(h.y,p.offset.y))}return h}removeElementScroll(d){var m;const h=Re();if(Fn(h,d),(m=this.scroll)!=null&&m.wasRoot)return h;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:S,options:b}=p;p!==this.root&&S&&b.layoutScroll&&(S.wasRoot&&Fn(h,d),Za(h.x,S.offset.x),Za(h.y,S.offset.y))}return h}applyTransform(d,h=!1){const m=Re();Fn(m,d);for(let y=0;y<this.path.length;y++){const p=this.path[y];!h&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ia(m,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ba(p.latestValues)&&Ia(m,p.latestValues)}return ba(this.latestValues)&&Ia(m,this.latestValues),m}removeTransform(d){const h=Re();Fn(h,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];if(!y.instance||!ba(y.latestValues))continue;cc(y.latestValues)&&y.updateSnapshot();const p=Re(),S=y.measurePageBox();Fn(p,S),z0(h,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,p)}return ba(this.latestValues)&&z0(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!==Ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var M;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(M=this.parent)!=null&&M.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:S}=this.options;if(!this.layout||!(p||S))return;this.resolvedRelativeTargetAt=Ne.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fn(this.target,this.layout.layoutBox),o0(this.target,this.targetDelta)):Fn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||cc(this.parent.latestValues)||l0(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,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),br(this.relativeTargetOrigin,h,m),Fn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var D;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||(D=this.parent)!=null&&D.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ne.timestamp&&(m=!1),m)return;const{layout:y,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||!(y||p))return;Fn(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;aE(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=Re());const{target:M}=d;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(M0(this.prevProjectionDelta.x,this.projectionDelta.x),M0(this.prevProjectionDelta.y,this.projectionDelta.y)),Il(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!k0(this.projectionDelta.x,this.prevProjectionDelta.x)||!k0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qa(),this.projectionDelta=Qa(),this.projectionDeltaWithTransform=Qa()}setAnimationOrigin(d,h=!1){const m=this.snapshot,y=m?m.latestValues:{},p={...this.latestValues},S=Qa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Re(),M=m?m.source:void 0,D=this.layout?this.layout.source:void 0,C=M!==D,j=this.getStack(),H=!j||j.members.length<=1,F=!!(C&&!H&&this.options.crossfade===!0&&!this.path.some(iM));this.animationProgress=0;let A;this.mixTargetDelta=K=>{const w=K/1e3;I0(S.x,d.x,w),I0(S.y,d.y,w),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),nM(this.relativeTarget,this.relativeTargetOrigin,b,w),A&&LE(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Re()),Fn(A,this.relativeTarget)),C&&(this.animationValues=p,NE(p,y,this.latestValues,w,F,H)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,m,y;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(y=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||y.stop(),this.pendingAnimation&&(Ui(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{xr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ka(0)),this.currentAnimation=kE(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},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(qE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:y,latestValues:p}=d;if(!(!h||!m||!y)){if(this!==d&&this.layout&&y&&ey(this.options.animationType,this.layout.layoutBox,y.layoutBox)){m=this.target||Re();const S=Ze(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+S;const b=Ze(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+b}Fn(h,m),Ia(h,p),Il(this.projectionDeltaWithTransform,this.layoutCorrected,h,p)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new PE),this.sharedNodes.get(d).add(h);const y=h.options.initialPromotionConfig;h.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const y=this.getStack();y&&y.promote(this,m),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:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const y={};m.z&&pc("z",d,y,this.animationValues);for(let p=0;p<yc.length;p++)pc(`rotate${yc[p]}`,d,y,this.animationValues),pc(`skew${yc[p]}`,d,y,this.animationValues);d.render();for(const p in y)d.setStaticValue(p,y[p]),this.animationValues&&(this.animationValues[p]=y[p]);d.scheduleRender()}applyProjectionStyles(d,h){var D,C;if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Sr(h==null?void 0:h.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Sr(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!ba(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const p=y.animationValues||y.latestValues;this.applyTransformsToTarget();let S=VE(this.projectionDeltaWithTransform,this.treeScale,p);m&&(S=m(p,S)),d.transform=S;const{x:b,y:M}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${M.origin*100}% 0`,y.animationValues?d.opacity=y===this?(C=(D=p.opacity)!=null?D:this.latestValues.opacity)!=null?C:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=y===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in hc){if(p[j]===void 0)continue;const{correct:H,applyTo:F,isCSSVariable:A}=hc[j],K=S==="none"?p[j]:H(p[j],y);if(F){const w=F.length;for(let N=0;N<w;N++)d[F[N]]=K}else A?this.options.visualElement.renderState.vars[j]=K:d[j]=K}this.options.layoutId&&(d.pointerEvents=y===this?Sr(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(K0),this.root.sharedNodes.clear()}}}function XE(n){n.updateLayout()}function KE(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=n.layout,{animationType:f}=n.options,d=a.source!==n.layout.source;f==="size"?Rn(S=>{const b=d?a.measuredBox[S]:a.layoutBox[S],M=Ze(b);b.min=r[S].min,b.max=b.min+M}):ey(f,a.layoutBox,r)&&Rn(S=>{const b=d?a.measuredBox[S]:a.layoutBox[S],M=Ze(r[S]);b.max=b.min+M,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[S].max=n.relativeTarget[S].min+M)});const h=Qa();Il(h,r,a.layoutBox);const m=Qa();d?Il(m,n.applyTransform(u,!0),a.measuredBox):Il(m,r,a.layoutBox);const y=!V0(h);let p=!1;if(!n.resumeFrom){const S=n.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:b,layout:M}=S;if(b&&M){const D=Re();br(D,a.layoutBox,b.layoutBox);const C=Re();br(C,r,M.layoutBox),U0(D,C)||(p=!0),S.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=D,n.relativeParent=S)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function QE(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 ZE(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function IE(n){n.clearSnapshot()}function K0(n){n.clearMeasurements()}function Q0(n){n.isLayoutDirty=!1}function JE(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Z0(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function WE(n){n.resolveTargetDelta()}function $E(n){n.calcProjection()}function tM(n){n.resetSkewAndRotation()}function eM(n){n.removeLeadSnapshot()}function I0(n,a,s){n.translate=ue(a.translate,0,s),n.scale=ue(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function J0(n,a,s,r){n.min=ue(a.min,s.min,r),n.max=ue(a.max,s.max,r)}function nM(n,a,s,r){J0(n.x,a.x,s.x,r),J0(n.y,a.y,s.y,r)}function iM(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const aM={duration:.45,ease:[.4,0,.1,1]},W0=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),$0=W0("applewebkit/")&&!W0("chrome/")?Math.round:wn;function ty(n){n.min=$0(n.min),n.max=$0(n.max)}function lM(n){ty(n.x),ty(n.y)}function ey(n,a,s){return n==="position"||n==="preserve-aspect"&&!RE(_0(a),_0(s),.2)}function sM(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const rM=X0({attachResizeListener:(n,a)=>Jl(n,"resize",a),measureScroll:()=>{var n,a;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),gc={current:void 0},ny=X0({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!gc.current){const n=new rM({});n.mount(window),n.setOptions({layoutScroll:!0}),gc.current=n}return gc.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),vc=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function iy(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function oM(...n){return a=>{let s=!1;const r=n.map(u=>{const f=iy(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():iy(n[u],null)}}}}function uM(...n){return T.useCallback(oM(...n),n)}class cM extends T.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=nc(r)&&r.offsetWidth||0,f=nc(r)&&r.offsetHeight||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=u-d.width-d.left,d.bottom=f-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function fM({children:n,isPresent:a,anchorX:s,anchorY:r,root:u}){var S,b;const f=T.useId(),d=T.useRef(null),h=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=T.useContext(vc),y=(b=(S=n.props)==null?void 0:S.ref)!=null?b:n==null?void 0:n.ref,p=uM(d,y);return T.useInsertionEffect(()=>{const{width:M,height:D,top:C,left:j,right:H,bottom:F}=h.current;if(a||!d.current||!M||!D)return;const A=s==="left"?`left: ${j}`:`right: ${H}`,K=r==="bottom"?`bottom: ${F}`:`top: ${C}`;d.current.dataset.motionPopId=f;const w=document.createElement("style");m&&(w.nonce=m);const N=u!=null?u:document.head;return N.appendChild(w),w.sheet&&w.sheet.insertRule(`
631
+ [data-motion-pop-id="${f}"] {
632
632
  position: absolute !important;
633
- width: ${y}px !important;
634
- height: ${p}px !important;
635
- ${V}px !important;
636
- top: ${S}px !important;
633
+ width: ${M}px !important;
634
+ height: ${D}px !important;
635
+ ${A}px !important;
636
+ ${K}px !important;
637
637
  }
638
- `),()=>{z.contains(w)&&z.removeChild(w)}},[a]),v.jsx(DT,{isPresent:a,childRef:f,sizeRef:d,children:T.cloneElement(n,{ref:m})})}const zT=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,root:m})=>{const y=du(LT),p=T.useId();let S=!0,b=T.useMemo(()=>(S=!1,{id:p,initial:a,isPresent:s,custom:u,onExitComplete:M=>{y.set(M,!0);for(const V of y.values())if(!V)return;r&&r()},register:M=>(y.set(M,!1),()=>y.delete(M))}),[s,y,r]);return f&&S&&(b={...b}),T.useMemo(()=>{y.forEach((M,V)=>y.set(V,!1))},[s]),T.useEffect(()=>{!s&&!y.size&&r&&r()},[s]),d==="popLayout"&&(n=v.jsx(BT,{isPresent:s,anchorX:h,root:m,children:n})),v.jsx(or.Provider,{value:b,children:n})};function LT(){return new Map}function Fm(n=!0){const a=T.useContext(or);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 pr=n=>n.key||"";function Xm(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const Km=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",root:m})=>{const[y,p]=Fm(d),S=T.useMemo(()=>Xm(n),[n]),b=d&&!y?[]:S.map(pr),M=T.useRef(!0),V=T.useRef(S),w=du(()=>new Map),[z,Y]=T.useState(S),[X,A]=T.useState(S);Lh(()=>{M.current=!1,V.current=S;for(let O=0;O<X.length;O++){const j=pr(X[O]);b.includes(j)?w.delete(j):w.get(j)!==!0&&w.set(j,!1)}},[X,b.length,b.join("-")]);const Z=[];if(S!==z){let O=[...S];for(let j=0;j<X.length;j++){const D=X[j],J=pr(D);b.includes(J)||(O.splice(j,0,D),Z.push(D))}return f==="wait"&&Z.length&&(O=Z),A(Xm(O)),Y(S),null}const{forceRender:R}=T.useContext(fu);return v.jsx(v.Fragment,{children:X.map(O=>{const j=pr(O),D=d&&!y?!1:S===X||b.includes(j),J=()=>{if(w.has(j))w.set(j,!0);else return;let K=!0;w.forEach(tt=>{tt||(K=!1)}),K&&(R==null||R(),A(V.current),d&&(p==null||p()),r&&r())};return v.jsx(zT,{isPresent:D,initial:!M.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:f,root:m,onExitComplete:D?void 0:J,anchorX:h,children:O},j)})})},Qm=T.createContext({strict:!1}),Zm={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"]},Ka={};for(const n in Zm)Ka[n]={isEnabled:a=>Zm[n].some(s=>!!a[s])};function VT(n){for(const a in n)Ka[a]={...Ka[a],...n[a]}}const OT=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 gr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||OT.has(n)}let Im=n=>!gr(n);function NT(n){typeof n=="function"&&(Im=a=>a.startsWith("on")?!gr(a):n(a))}try{NT(require("@emotion/is-prop-valid").default)}catch(n){}function UT(n,a,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(Im(u)||s===!0&&gr(u)||!a&&!gr(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const vr=T.createContext({});function br(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Il(n){return typeof n=="string"||Array.isArray(n)}const tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...tc];function Sr(n){return br(n.animate)||ec.some(a=>Il(n[a]))}function Jm(n){return!!(Sr(n)||n.variants)}function _T(n,a){if(Sr(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Il(s)?s:void 0,animate:Il(r)?r:void 0}}return n.inherit!==!1?a:{}}function HT(n){const{initial:a,animate:s}=_T(n,T.useContext(vr));return T.useMemo(()=>({initial:a,animate:s}),[Wm(a),Wm(s)])}function Wm(n){return Array.isArray(n)?n.join(" "):n}function $m(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Jl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(Et.test(n))n=parseFloat(n);else return n;const s=$m(n,a.target.x),r=$m(n,a.target.y);return`${s}% ${r}%`}},kT={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,u=Hi.parse(n);if(u.length>5)return r;const f=Hi.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;u[0+d]/=h,u[1+d]/=m;const y=ue(h,m,.5);return typeof u[2+d]=="number"&&(u[2+d]/=y),typeof u[3+d]=="number"&&(u[3+d]/=y),f(u)}},nc={borderRadius:{...Jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jl,borderTopRightRadius:Jl,borderBottomLeftRadius:Jl,borderBottomRightRadius:Jl,boxShadow:kT};function t0(n,{layout:a,layoutId:s}){return Fa.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!nc[n]||n==="opacity")}const GT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YT=qa.length;function PT(n,a,s){let r="",u=!0;for(let f=0;f<YT;f++){const d=qa[f],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(d.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||s){const y=Vm(h,Zu[d]);if(!m){u=!1;const p=GT[d]||d;r+=`${p}(${y}) `}s&&(a[d]=y)}}return r=r.trim(),s?r=s(a,u?"":r):u&&(r="none"),r}function ic(n,a,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const m in a){const y=a[m];if(Fa.has(m)){d=!0;continue}else if(Jh(m)){u[m]=y;continue}else{const p=Vm(y,Zu[m]);m.startsWith("origin")?(h=!0,f[m]=p):r[m]=p}}if(a.transform||(d||s?r.transform=PT(a,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:y="50%",originZ:p=0}=f;r.transformOrigin=`${m} ${y} ${p}`}}const ac=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e0(n,a,s){for(const r in a)!Ye(a[r])&&!t0(r,s)&&(n[r]=a[r])}function qT({transformTemplate:n},a){return T.useMemo(()=>{const s=ac();return ic(s,a,n),Object.assign({},s.vars,s.style)},[a])}function FT(n,a){const s=n.style||{},r={};return e0(r,s,n),Object.assign(r,qT(n,a)),r}function XT(n,a){const s={},r=FT(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 KT={offset:"stroke-dashoffset",array:"stroke-dasharray"},QT={offset:"strokeDashoffset",array:"strokeDasharray"};function ZT(n,a,s=1,r=0,u=!0){n.pathLength=1;const f=u?KT:QT;n[f.offset]=Et.transform(-r);const d=Et.transform(a),h=Et.transform(s);n[f.array]=`${d} ${h}`}function n0(n,{attrX:a,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},m,y,p){var M,V;if(ic(n,h,y),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:b}=n;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=(M=S.transformOrigin)!=null?M:"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=(V=p==null?void 0:p.transformBox)!=null?V:"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&&ZT(S,u,f,d,!1)}const i0=()=>({...ac(),attrs:{}}),a0=n=>typeof n=="string"&&n.toLowerCase()==="svg";function IT(n,a,s,r){const u=T.useMemo(()=>{const f=i0();return n0(f,a,a0(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};e0(f,n.style,n),u.style={...f,...u.style}}return u}const JT=["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 lc(n){return typeof n!="string"||n.includes("-")?!1:!!(JT.indexOf(n)>-1||/[A-Z]/u.test(n))}function WT(n,a,s,{latestValues:r},u,f=!1){const h=(lc(n)?IT:XT)(a,r,u,n),m=UT(a,typeof n=="string",f),y=n!==T.Fragment?{...m,...h,ref:s}:{},{children:p}=a,S=T.useMemo(()=>Ye(p)?p.get():p,[p]);return T.createElement(n,{...y,children:S})}function l0(n){const a=[{},{}];return n==null||n.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function sc(n,a,s,r){if(typeof a=="function"){const[u,f]=l0(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]=l0(r);a=a(s!==void 0?s:n.custom,u,f)}return a}function xr(n){return Ye(n)?n.get():n}function $T({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,u){return{latestValues:tE(s,r,u,n),renderState:a()}}function tE(n,a,s,r){const u={},f=r(n,{});for(const b in f)u[b]=xr(f[b]);let{initial:d,animate:h}=n;const m=Sr(n),y=Jm(n);a&&y&&!m&&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"&&!br(S)){const b=Array.isArray(S)?S:[S];for(let M=0;M<b.length;M++){const V=sc(n,b[M]);if(V){const{transitionEnd:w,transition:z,...Y}=V;for(const X in Y){let A=Y[X];if(Array.isArray(A)){const Z=p?A.length-1:0;A=A[Z]}A!==null&&(u[X]=A)}for(const X in w)u[X]=w[X]}}}return u}const s0=n=>(a,s)=>{const r=T.useContext(vr),u=T.useContext(or),f=()=>$T(n,a,r,u);return s?f():du(f)};function rc(n,a,s){var f;const{style:r}=n,u={};for(const d in r)(Ye(r[d])||a.style&&Ye(a.style[d])||t0(d,n)||((f=s==null?void 0:s.getValue(d))==null?void 0:f.liveStyle)!==void 0)&&(u[d]=r[d]);return u}const eE=s0({scrapeMotionValuesFromProps:rc,createRenderState:ac});function r0(n,a,s){const r=rc(n,a,s);for(const u in n)if(Ye(n[u])||Ye(a[u])){const f=qa.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}const nE=s0({scrapeMotionValuesFromProps:r0,createRenderState:i0}),iE=Symbol.for("motionComponentSymbol");function Qa(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function aE(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):Qa(s)&&(s.current=r))},[a])}const oc=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),o0="data-"+oc("framerAppearId"),u0=T.createContext({});function lE(n,a,s,r,u){var w,z;const{visualElement:f}=T.useContext(vr),d=T.useContext(Qm),h=T.useContext(or),m=T.useContext($u).reducedMotion,y=T.useRef(null);r=r||d.renderer,!y.current&&r&&(y.current=r(n,{visualState:a,parent:f,props:s,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const p=y.current,S=T.useContext(u0);p&&!p.projection&&u&&(p.type==="html"||p.type==="svg")&&sE(y.current,s,u,S);const b=T.useRef(!1);T.useInsertionEffect(()=>{p&&b.current&&p.update(s,h)});const M=s[o0],V=T.useRef(!!M&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,M))&&((z=window.MotionHasOptimisedAnimation)==null?void 0:z.call(window,M)));return Lh(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),V.current&&p.animationState&&p.animationState.animateChanges())}),T.useEffect(()=>{p&&(!V.current&&p.animationState&&p.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var Y;(Y=window.MotionHandoffMarkAsComplete)==null||Y.call(window,M)}),V.current=!1),p.enteringChildren=void 0)}),p}function sE(n,a,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:y,layoutCrossfade:p}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:c0(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&Qa(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:m,layoutRoot:y})}function c0(n){if(n)return n.options.allowProjection!==!1?n.projection:c0(n.parent)}function uc(n,{forwardMotionProps:a=!1}={},s,r){var h,m;s&&VT(s);const u=lc(n)?nE:eE;function f(y,p){let S;const b={...T.useContext($u),...y,layoutId:rE(y)},{isStatic:M}=b,V=HT(y),w=u(y,M);if(!M&&hu){oE();const z=uE(b);S=z.MeasureLayout,V.visualElement=lE(n,w,b,r,z.ProjectionNode)}return v.jsxs(vr.Provider,{value:V,children:[S&&V.visualElement?v.jsx(S,{visualElement:V.visualElement,...b}):null,WT(n,y,aE(w,V.visualElement,p),w,M,a)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${(m=(h=n.displayName)!=null?h:n.name)!=null?m:""})`}`;const d=T.forwardRef(f);return d[iE]=n,d}function rE({layoutId:n}){const a=T.useContext(fu).id;return a&&n!==void 0?a+"-"+n:n}function oE(n,a){T.useContext(Qm).strict}function uE(n){const{drag:a,layout:s}=Ka;if(!a&&!s)return{};const r={...a,...s};return{MeasureLayout:a!=null&&a.isEnabled(n)||s!=null&&s.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function cE(n,a){if(typeof Proxy=="undefined")return uc;const s=new Map,r=(f,d)=>uc(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,uc(d,void 0,n,a)),s.get(d))})}function f0({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function fE({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function dE(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 cc(n){return n===void 0||n===1}function fc({scale:n,scaleX:a,scaleY:s}){return!cc(n)||!cc(a)||!cc(s)}function ba(n){return fc(n)||d0(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function d0(n){return h0(n.x)||h0(n.y)}function h0(n){return n&&n!=="0%"}function Tr(n,a,s){const r=n-s,u=a*r;return s+u}function m0(n,a,s,r,u){return u!==void 0&&(n=Tr(n,u,r)),Tr(n,s,r)+a}function dc(n,a=0,s=1,r,u){n.min=m0(n.min,a,s,r,u),n.max=m0(n.max,a,s,r,u)}function y0(n,{x:a,y:s}){dc(n.x,a.translate,a.scale,a.originPoint),dc(n.y,s.translate,s.scale,s.originPoint)}const p0=.999999999999,g0=1.0000000000001;function hE(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:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ia(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,y0(n,d)),r&&ba(f.latestValues)&&Ia(n,f.latestValues))}a.x<g0&&a.x>p0&&(a.x=1),a.y<g0&&a.y>p0&&(a.y=1)}function Za(n,a){n.min=n.min+a,n.max=n.max+a}function v0(n,a,s,r,u=.5){const f=ue(n.min,n.max,u);dc(n,a,s,f,r)}function Ia(n,a){v0(n.x,a.x,a.scaleX,a.scale,a.originX),v0(n.y,a.y,a.scaleY,a.scale,a.originY)}function b0(n,a){return f0(dE(n.getBoundingClientRect(),a))}function mE(n,a,s){const r=b0(n,s),{scroll:u}=a;return u&&(Za(r.x,u.offset.x),Za(r.y,u.offset.y)),r}const S0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ja=()=>({x:S0(),y:S0()}),x0=()=>({min:0,max:0}),Re=()=>({x:x0(),y:x0()}),hc={current:null},T0={current:!1};function yE(){if(T0.current=!0,!!hu)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>hc.current=n.matches;n.addEventListener("change",a),a()}else hc.current=!1}const pE=new WeakMap;function gE(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,Xa(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,Xa(d!==void 0?d:u,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const E0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vE{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=Fu,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 b=en.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,le.render(this.render,!1,!0))};const{latestValues:m,renderState:y}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=y,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=Sr(s),this.isVariantNode=Jm(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:p,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const b in S){const M=S[b];m[b]!==void 0&&Ye(M)&&M.set(m[b])}}mount(a){var s;this.current=a,pE.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((r,u)=>this.bindToMotionValue(u,r)),T0.current||yE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hc.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),Ui(this.notifyUpdate),Ui(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const r=this.features[s];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){var s;this.children.add(a),(s=this.enteringChildren)!=null||(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=Fa.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&le.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 Ka){const s=Ka[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):Re()}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<E0.length;r++){const u=E0[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=gE(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=Xa(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){var u;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(u=this.getBaseTargetFromProps(this.props,a))!=null?u:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(Vh(r)||Nh(r))?r=parseFloat(r):!CT(r)&&Hi.test(s)&&(r=Lm(a,s)),this.setBaseTarget(a,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var f;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const d=sc(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);d&&(r=d[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 vu),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Iu.render(this.render)}}class M0 extends vE{constructor(){super(...arguments),this.KeyframeResolver=yT}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 A0(n,{style:a,vars:s},r,u){const f=n.style;let d;for(d in a)f[d]=a[d];u==null||u.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function bE(n){return window.getComputedStyle(n)}class SE extends M0{constructor(){super(...arguments),this.type="html",this.renderInstance=A0}readValueFromInstance(a,s){var r;if(Fa.has(s))return(r=this.projection)!=null&&r.isProjecting?ku(s):Ox(a,s);{const u=bE(a),f=(Jh(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(a,{transformPagePoint:s}){return b0(a,s)}build(a,s,r){ic(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return rc(a,s,r)}}const w0=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 xE(n,a,s,r){A0(n,a,void 0,r);for(const u in a.attrs)n.setAttribute(w0.has(u)?u:oc(u),a.attrs[u])}class TE extends M0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Fa.has(s)){const r=zm(s);return r&&r.default||0}return s=w0.has(s)?s:oc(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return r0(a,s,r)}build(a,s,r){n0(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,u){xE(a,s,r,u)}mount(a){this.isSVGTag=a0(a.tagName),super.mount(a)}}const EE=(n,a)=>lc(n)?new TE(a):new SE(a,{allowProjection:n!==T.Fragment});function Wa(n,a,s){const r=n.getProps();return sc(r,a,s!==void 0?s:r.custom,n)}const mc=n=>Array.isArray(n);function ME(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Xa(s))}function AE(n){return mc(n)?n[n.length-1]||0:n}function wE(n,a){const s=Wa(n,a);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const h=AE(f[d]);ME(n,d,h)}}function CE(n){return!!(Ye(n)&&n.add)}function yc(n,a){const s=n.getValue("willChange");if(CE(s))return s.add(a);if(!s&&ui.WillChange){const r=new ui.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function C0(n){return n.props[o0]}const RE=n=>n!==null;function jE(n,{repeat:a,repeatType:s="loop"},r){const u=n.filter(RE),f=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[f]}const DE={type:"spring",stiffness:500,damping:25,restSpeed:10},BE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),zE={type:"keyframes",duration:.8},LE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VE=(n,{keyframes:a})=>a.length>2?zE:Fa.has(n)?n.startsWith("scale")?BE(a[1]):DE:LE;function OE({when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:m,elapsed:y,...p}){return!!Object.keys(p).length}const pc=(n,a,s,r={},u,f)=>d=>{const h=Ku(r,n)||{},m=h.delay||r.delay||0;let{elapsed:y=0}=r;y=y-$n(m);const p={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-y,onUpdate:b=>{a.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:f?void 0:u};OE(h)||Object.assign(p,VE(n,p)),p.duration&&(p.duration=$n(p.duration)),p.repeatDelay&&(p.repeatDelay=$n(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let S=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Xu(p),p.delay===0&&(S=!0)),(ui.instantAnimations||ui.skipAnimations)&&(S=!0,Xu(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,S&&!f&&a.get()!==void 0){const b=jE(p.keyframes,h);if(b!==void 0){le.update(()=>{p.onUpdate(b),p.onComplete()});return}}return h.isSync?new Uu(p):new aT(p)};function NE({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function R0(n,a,{delay:s=0,transitionOverride:r,type:u}={}){var p;let{transition:f=n.getDefaultTransition(),transitionEnd:d,...h}=a;r&&(f=r);const m=[],y=u&&n.animationState&&n.animationState.getState()[u];for(const S in h){const b=n.getValue(S,(p=n.latestValues[S])!=null?p:null),M=h[S];if(M===void 0||y&&NE(y,S))continue;const V={delay:s,...Ku(f||{},S)},w=b.get();if(w!==void 0&&!b.isAnimating&&!Array.isArray(M)&&M===w&&!V.velocity)continue;let z=!1;if(window.MotionHandoffAnimation){const X=C0(n);if(X){const A=window.MotionHandoffAnimation(X,S,le);A!==null&&(V.startTime=A,z=!0)}}yc(n,S),b.start(pc(S,b,M,n.shouldReduceMotion&&Cm.has(S)?{type:!1}:V,n,z));const Y=b.animation;Y&&m.push(Y)}return d&&Promise.all(m).then(()=>{le.update(()=>{d&&wE(n,d)})}),m}function j0(n,a,s,r=0,u=1){const f=Array.from(n).sort((y,p)=>y.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 gc(n,a,s={}){var m;const r=Wa(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(R0(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:S,staggerDirection:b}=u;return UE(n,a,y,p,S,b,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[y,p]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>p())}else return Promise.all([f(),d(s.delay)])}function UE(n,a,s=0,r=0,u=0,f=1,d){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(gc(m,a,{...d,delay:s+(typeof r=="function"?0:r)+j0(n.variantChildren,m,r,u,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function _E(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>gc(n,f,s));r=Promise.all(u)}else if(typeof a=="string")r=gc(n,a,s);else{const u=typeof a=="function"?Wa(n,a,s.custom):a;r=Promise.all(R0(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}function D0(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 HE=ec.length;function B0(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?B0(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<HE;s++){const r=ec[s],u=n.props[r];(Il(u)||u===!1)&&(a[r]=u)}return a}const kE=[...tc].reverse(),GE=tc.length;function YE(n){return a=>Promise.all(a.map(({animation:s,options:r})=>_E(n,s,r)))}function PE(n){let a=YE(n),s=z0(),r=!0;const u=m=>(y,p)=>{var b;const S=Wa(n,p,m==="exit"?(b=n.presenceContext)==null?void 0:b.custom:void 0);if(S){const{transition:M,transitionEnd:V,...w}=S;y={...y,...w,...V}}return y};function f(m){a=m(n)}function d(m){const{props:y}=n,p=B0(n.parent)||{},S=[],b=new Set;let M={},V=1/0;for(let z=0;z<GE;z++){const Y=kE[z],X=s[Y],A=y[Y]!==void 0?y[Y]:p[Y],Z=Il(A),R=Y===m?X.isActive:null;R===!1&&(V=z);let O=A===p[Y]&&A!==y[Y]&&Z;if(O&&r&&n.manuallyAnimateOnMount&&(O=!1),X.protectedKeys={...M},!X.isActive&&R===null||!A&&!X.prevProp||br(A)||typeof A=="boolean")continue;const j=qE(X.prevProp,A);let D=j||Y===m&&X.isActive&&!O&&Z||z>V&&Z,J=!1;const K=Array.isArray(A)?A:[A];let tt=K.reduce(u(Y),{});R===!1&&(tt={});const{prevResolvedValues:at={}}=X,L={...at,...tt},k=N=>{D=!0,b.has(N)&&(J=!0,b.delete(N)),X.needsAnimating[N]=!0;const G=n.getValue(N);G&&(G.liveStyle=!1)};for(const N in L){const G=tt[N],rt=at[N];if(M.hasOwnProperty(N))continue;let st=!1;mc(G)&&mc(rt)?st=!D0(G,rt):st=G!==rt,st?G!=null?k(N):b.add(N):G!==void 0&&b.has(N)?k(N):X.protectedKeys[N]=!0}X.prevProp=A,X.prevResolvedValues=tt,X.isActive&&(M={...M,...tt}),r&&n.blockInitialAnimation&&(D=!1);const W=O&&j;D&&(!W||J)&&S.push(...K.map(N=>{const G={type:Y};if(typeof N=="string"&&r&&!W&&n.manuallyAnimateOnMount&&n.parent){const{parent:rt}=n,st=Wa(rt,N);if(rt.enteringChildren&&st){const{delayChildren:yt}=st.transition||{};G.delay=j0(rt.enteringChildren,n,yt)}}return{animation:N,options:G}}))}if(b.size){const z={};if(typeof y.initial!="boolean"){const Y=Wa(n,Array.isArray(y.initial)?y.initial[0]:y.initial);Y&&Y.transition&&(z.transition=Y.transition)}b.forEach(Y=>{const X=n.getBaseTarget(Y),A=n.getValue(Y);A&&(A.liveStyle=!0),z[Y]=X!=null?X:null}),S.push({animation:z})}let w=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(w=!1),r=!1,w?a(S):Promise.resolve()}function h(m,y){var S;if(s[m].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(b=>{var M;return(M=b.animationState)==null?void 0:M.setActive(m,y)}),s[m].isActive=y;const p=d(m);for(const b in s)s[b].protectedKeys={};return p}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=z0()}}}function qE(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!D0(a,n):!1}function Sa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function z0(){return{animate:Sa(!0),whileInView:Sa(),whileHover:Sa(),whileTap:Sa(),whileDrag:Sa(),whileFocus:Sa(),exit:Sa()}}class ki{constructor(a){this.isMounted=!1,this.node=a}update(){}}class FE extends ki{constructor(a){super(a),a.animationState||(a.animationState=PE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();br(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(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let XE=0;class KE extends ki{constructor(){super(...arguments),this.id=XE++}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 QE={animation:{Feature:FE},exit:{Feature:KE}};function Wl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function $l(n){return{point:{x:n.pageX,y:n.pageY}}}const ZE=n=>a=>Ju(a)&&n(a,$l(a));function ts(n,a,s,r){return Wl(n,a,ZE(s),r)}const L0=1e-4,IE=1-L0,JE=1+L0,V0=.01,WE=0-V0,$E=0+V0;function Qe(n){return n.max-n.min}function tM(n,a,s){return Math.abs(n-a)<=s}function O0(n,a,s,r=.5){n.origin=r,n.originPoint=ue(a.min,a.max,n.origin),n.scale=Qe(s)/Qe(a),n.translate=ue(s.min,s.max,n.origin)-n.originPoint,(n.scale>=IE&&n.scale<=JE||isNaN(n.scale))&&(n.scale=1),(n.translate>=WE&&n.translate<=$E||isNaN(n.translate))&&(n.translate=0)}function es(n,a,s,r){O0(n.x,a.x,s.x,r?r.originX:void 0),O0(n.y,a.y,s.y,r?r.originY:void 0)}function N0(n,a,s){n.min=s.min+a.min,n.max=n.min+Qe(a)}function eM(n,a,s){N0(n.x,a.x,s.x),N0(n.y,a.y,s.y)}function U0(n,a,s){n.min=a.min-s.min,n.max=n.min+Qe(a)}function Er(n,a,s){U0(n.x,a.x,s.x),U0(n.y,a.y,s.y)}function Rn(n){return[n("x"),n("y")]}const _0=({current:n})=>n?n.ownerDocument.defaultView:null,H0=(n,a)=>Math.abs(n-a);function nM(n,a){const s=H0(n.x,a.x),r=H0(n.y,a.y);return Math.sqrt(s**2+r**2)}class k0{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 b=bc(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,V=nM(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!V)return;const{point:w}=b,{timestamp:z}=Ne;this.history.push({...w,timestamp:z});const{onStart:Y,onMove:X}=this.handlers;M||(Y&&Y(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),X&&X(this.lastMoveEvent,b)},this.handlePointerMove=(b,M)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=vc(M,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(b,M)=>{this.end();const{onEnd:V,onSessionEnd:w,resumeAnimation:z}=this.handlers;if(this.dragSnapToOrigin&&z&&z(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=bc(b.type==="pointercancel"?this.lastMoveEventInfo:vc(M,this.transformPagePoint),this.history);this.startEvent&&V&&V(b,Y),w&&w(b,Y)},!Ju(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const h=$l(a),m=vc(h,this.transformPagePoint),{point:y}=m,{timestamp:p}=Ne;this.history=[{...y,timestamp:p}];const{onSessionStart:S}=s;S&&S(a,bc(m,this.history)),this.removeListeners=Gl(ts(this.contextWindow,"pointermove",this.handlePointerMove),ts(this.contextWindow,"pointerup",this.handlePointerUp),ts(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Ui(this.updatePoint)}}function vc(n,a){return a?{point:a(n.point)}:n}function G0(n,a){return{x:n.x-a.x,y:n.y-a.y}}function bc({point:n},a){return{point:n,delta:G0(n,Y0(a)),offset:G0(n,iM(a)),velocity:aM(a,.1)}}function iM(n){return n[0]}function Y0(n){return n[n.length-1]}function aM(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Y0(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>$n(a)));)s--;if(!r)return{x:0,y:0};const f=Cn(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 lM(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?ue(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?ue(s,n,r.max):Math.min(n,s)),n}function P0(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 sM(n,{top:a,left:s,bottom:r,right:u}){return{x:P0(n.x,s,u),y:P0(n.y,a,r)}}function q0(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 rM(n,a){return{x:q0(n.x,a.x),y:q0(n.y,a.y)}}function oM(n,a){let s=.5;const r=Qe(n),u=Qe(a);return u>r?s=Yl(a.min,a.max-r,n.min):r>u&&(s=Yl(n.min,n.max-u,a.min)),oi(0,1,s)}function uM(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 Sc=.35;function cM(n=Sc){return n===!1?n=0:n===!0&&(n=Sc),{x:F0(n,"left","right"),y:F0(n,"top","bottom")}}function F0(n,a,s){return{min:X0(n,a),max:X0(n,s)}}function X0(n,a){return typeof n=="number"?n:n[a]||0}const fM=new WeakMap;class dM{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=Re(),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:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor($l(S).point)},d=(S,b)=>{const{drag:M,dragPropagation:V,onDragStart:w}=this.getProps();if(M&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bT(M),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rn(Y=>{let X=this.getAxisMotionValue(Y).get()||0;if(ti.test(X)){const{projection:A}=this.visualElement;if(A&&A.layout){const Z=A.layout.layoutBox[Y];Z&&(X=Qe(Z)*(parseFloat(X)/100))}}this.originPoint[Y]=X}),w&&le.postRender(()=>w(S,b)),yc(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},h=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:M,dragDirectionLock:V,onDirectionLock:w,onDrag:z}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:Y}=b;if(V&&this.currentDirection===null){this.currentDirection=hM(Y),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,Y),this.updateAxis("y",b.point,Y),this.visualElement.render(),z&&z(S,b)},m=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Rn(S=>{var b;return this.getAnimationState(S)==="paused"&&((b=this.getAxisMotionValue(S).animation)==null?void 0:b.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new k0(a,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:_0(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&&le.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||!Mr(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=lM(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:a,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;a&&Qa(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=sM(r.layoutBox,a):this.constraints=!1,this.elastic=cM(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Rn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=uM(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!Qa(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=mE(r,u.root,this.visualElement.getTransformPagePoint());let d=rM(u.layout.layoutBox,f);if(s){const h=s(fE(d));this.hasMutatedConstraints=!!h,h&&(d=f0(h))}return d}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},y=Rn(p=>{if(!Mr(p,s,this.currentDirection))return;let S=m&&m[p]||{};d&&(S={min:0,max:0});const b=u?200:1e6,M=u?40:1e7,V={type:"inertia",velocity:r?a[p]:0,bounceStiffness:b,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...f,...S};return this.startAxisValueAnimation(p,V)});return Promise.all(y).then(h)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return yc(this.visualElement,a),r.start(pc(a,r,0,s,this.visualElement,!1))}stopAnimation(){Rn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Rn(a=>{var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.pause()})}getAnimationState(a){var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.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){Rn(s=>{const{drag:r}=this.getProps();if(!Mr(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]-ue(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Qa(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Rn(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();u[d]=oM({min:m,max:m},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(),Rn(d=>{if(!Mr(d,a,null))return;const h=this.getAxisMotionValue(d),{min:m,max:y}=this.constraints[d];h.set(ue(m,y,u[d]))})}addListeners(){if(!this.visualElement.current)return;fM.set(this.visualElement,this);const a=this.visualElement.current,s=ts(a,"pointerdown",m=>{const{drag:y,dragListener:p=!0}=this.getProps();y&&p&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();Qa(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),le.read(r);const d=Wl(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(Rn(p=>{const S=this.getAxisMotionValue(p);S&&(this.originPoint[p]+=m[p].translate,S.set(S.get()+m[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=Sc,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Mr(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function hM(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class mM extends ki{constructor(a){super(a),this.removeGroupControls=wn,this.removeListeners=wn,this.controls=new dM(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const K0=n=>(a,s)=>{n&&le.postRender(()=>n(a,s))};class yM extends ki{constructor(){super(...arguments),this.removePointerDownListener=wn}onPointerDown(a){this.session=new k0(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_0(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:K0(a),onStart:K0(s),onMove:r,onEnd:(f,d)=>{delete this.session,u&&le.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=ts(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 Ar={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let xc=!1;class pM 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),xc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Ar.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,xc=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||le.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Iu.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=a;xc=!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 Q0(n){const[a,s]=Fm(),r=T.useContext(fu);return v.jsx(pM,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(u0),isPresent:a,safeToRemove:s})}function gM(n,a,s){const r=Ye(n)?n:Xa(n);return r.start(pc("",r,a,s)),r.animation}const vM=(n,a)=>n.depth-a.depth;class bM{constructor(){this.children=[],this.isDirty=!1}add(a){mu(this.children,a),this.isDirty=!0}remove(a){yu(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(vM),this.isDirty=!1,this.children.forEach(a)}}function SM(n,a){const s=en.now(),r=({timestamp:u})=>{const f=u-s;f>=a&&(Ui(r),n(f-a))};return le.setup(r,!0),()=>Ui(r)}const Z0=["TopLeft","TopRight","BottomLeft","BottomRight"],xM=Z0.length,I0=n=>typeof n=="string"?parseFloat(n):n,J0=n=>typeof n=="number"||Et.test(n);function TM(n,a,s,r,u,f){var d,h,m,y;u?(n.opacity=ue(0,(d=s.opacity)!=null?d:1,EM(r)),n.opacityExit=ue((h=a.opacity)!=null?h:1,0,MM(r))):f&&(n.opacity=ue((m=a.opacity)!=null?m:1,(y=s.opacity)!=null?y:1,r));for(let p=0;p<xM;p++){const S=`border${Z0[p]}Radius`;let b=W0(a,S),M=W0(s,S);if(b===void 0&&M===void 0)continue;b||(b=0),M||(M=0),b===0||M===0||J0(b)===J0(M)?(n[S]=Math.max(ue(I0(b),I0(M),r),0),(ti.test(M)||ti.test(b))&&(n[S]+="%")):n[S]=M}(a.rotate||s.rotate)&&(n.rotate=ue(a.rotate||0,s.rotate||0,r))}function W0(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const EM=$0(0,.5,qh),MM=$0(.5,.95,wn);function $0(n,a,s){return r=>r<n?0:r>a?1:s(Yl(n,a,r))}function ty(n,a){n.min=a.min,n.max=a.max}function Fn(n,a){ty(n.x,a.x),ty(n.y,a.y)}function ey(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function ny(n,a,s,r,u){return n-=a,n=Tr(n,1/s,r),u!==void 0&&(n=Tr(n,1/u,r)),n}function AM(n,a=0,s=1,r=.5,u,f=n,d=n){if(ti.test(a)&&(a=parseFloat(a),a=ue(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=ue(f.min,f.max,r);n===f&&(h-=a),n.min=ny(n.min,a,s,h,u),n.max=ny(n.max,a,s,h,u)}function iy(n,a,[s,r,u],f,d){AM(n,a[s],a[r],a[u],a.scale,f,d)}const wM=["x","scaleX","originX"],CM=["y","scaleY","originY"];function ay(n,a,s,r){iy(n.x,a,wM,s?s.x:void 0,r?r.x:void 0),iy(n.y,a,CM,s?s.y:void 0,r?r.y:void 0)}function ly(n){return n.translate===0&&n.scale===1}function sy(n){return ly(n.x)&&ly(n.y)}function ry(n,a){return n.min===a.min&&n.max===a.max}function RM(n,a){return ry(n.x,a.x)&&ry(n.y,a.y)}function oy(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function uy(n,a){return oy(n.x,a.x)&&oy(n.y,a.y)}function cy(n){return Qe(n.x)/Qe(n.y)}function fy(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class jM{constructor(){this.members=[]}add(a){mu(this.members,a),a.scheduleRender()}remove(a){if(yu(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 DM(n,a,s){let r="";const u=n.x.translate/a.x,f=n.y.translate/a.y,d=(s==null?void 0: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:y,rotate:p,rotateX:S,rotateY:b,skewX:M,skewY:V}=s;y&&(r=`perspective(${y}px) ${r}`),p&&(r+=`rotate(${p}deg) `),S&&(r+=`rotateX(${S}deg) `),b&&(r+=`rotateY(${b}deg) `),M&&(r+=`skewX(${M}deg) `),V&&(r+=`skewY(${V}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const Tc=["","X","Y","Z"],BM=1e3;let zM=0;function Ec(n,a,s,r){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),r&&(r[n]=0))}function dy(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=C0(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",le,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&dy(r)}function hy({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=a==null?void 0:a()){this.id=zM++,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(OM),this.nodes.forEach(HM),this.nodes.forEach(kM),this.nodes.forEach(NM)},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 m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new bM)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new vu),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Pm(d)&&!AT(d),this.instance=d;const{layoutId:h,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let p,S=0;const b=()=>this.root.updateBlockedByResize=!1;le.read(()=>{S=window.innerWidth}),n(d,()=>{const M=window.innerWidth;M!==S&&(S=M,this.root.updateBlockedByResize=!0,p&&p(),p=SM(b,250),Ar.hasAnimatedSinceResize&&(Ar.hasAnimatedSinceResize=!1,this.nodes.forEach(py)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&y&&(h||m)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||y.getDefaultTransition()||FM,{onLayoutAnimationStart:w,onLayoutAnimationComplete:z}=y.getProps(),Y=!this.targetLayout||!uy(this.targetLayout,M),X=!S&&b;if(this.options.layoutRoot||this.resumeFrom||X||S&&(Y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Ku(V,"layout"),onPlay:w,onComplete:z};(y.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(p,X)}else S||py(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}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(),Ui(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(GM),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&&dy(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:m}=this.options;if(h===void 0&&!m)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(my);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_M),this.nodes.forEach(LM),this.nodes.forEach(VM)):this.nodes.forEach(yy),this.clearAllSnapshots();const h=en.now();Ne.delta=oi(0,1e3/60,h-Ne.timestamp),Ne.timestamp=h,Ne.isProcessing=!0,xu.update.process(Ne),xu.preRender.process(Ne),xu.render.process(Ne),Ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Iu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UM),this.sharedNodes.forEach(YM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qe(this.snapshot.measuredBox.x)&&!Qe(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 d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Re(),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 m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!sy(this.projectionDelta),m=this.getTransformTemplate(),y=m?m(this.latestValues,""):void 0,p=y!==this.prevTransformTemplateValue;d&&this.instance&&(h||ba(this.latestValues)||p)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),XM(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var y;const{visualElement:d}=this.options;if(!d)return Re();const h=d.measureViewportBox();if(!(((y=this.scroll)==null?void 0:y.wasRoot)||this.path.some(KM))){const{scroll:p}=this.root;p&&(Za(h.x,p.offset.x),Za(h.y,p.offset.y))}return h}removeElementScroll(d){var m;const h=Re();if(Fn(h,d),(m=this.scroll)!=null&&m.wasRoot)return h;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:S,options:b}=p;p!==this.root&&S&&b.layoutScroll&&(S.wasRoot&&Fn(h,d),Za(h.x,S.offset.x),Za(h.y,S.offset.y))}return h}applyTransform(d,h=!1){const m=Re();Fn(m,d);for(let y=0;y<this.path.length;y++){const p=this.path[y];!h&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ia(m,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ba(p.latestValues)&&Ia(m,p.latestValues)}return ba(this.latestValues)&&Ia(m,this.latestValues),m}removeTransform(d){const h=Re();Fn(h,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];if(!y.instance||!ba(y.latestValues))continue;fc(y.latestValues)&&y.updateSnapshot();const p=Re(),S=y.measurePageBox();Fn(p,S),ay(h,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,p)}return ba(this.latestValues)&&ay(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!==Ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var M;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(M=this.parent)!=null&&M.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:S}=this.options;if(!this.layout||!(p||S))return;this.resolvedRelativeTargetAt=Ne.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fn(this.target,this.layout.layoutBox),y0(this.target,this.targetDelta)):Fn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fc(this.parent.latestValues)||d0(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,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),Er(this.relativeTargetOrigin,h,m),Fn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var V;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||(V=this.parent)!=null&&V.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ne.timestamp&&(m=!1),m)return;const{layout:y,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||!(y||p))return;Fn(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;hE(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=Re());const{target:M}=d;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ey(this.prevProjectionDelta.x,this.projectionDelta.x),ey(this.prevProjectionDelta.y,this.projectionDelta.y)),es(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!fy(this.projectionDelta.x,this.prevProjectionDelta.x)||!fy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ja(),this.projectionDelta=Ja(),this.projectionDeltaWithTransform=Ja()}setAnimationOrigin(d,h=!1){const m=this.snapshot,y=m?m.latestValues:{},p={...this.latestValues},S=Ja();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Re(),M=m?m.source:void 0,V=this.layout?this.layout.source:void 0,w=M!==V,z=this.getStack(),Y=!z||z.members.length<=1,X=!!(w&&!Y&&this.options.crossfade===!0&&!this.path.some(qM));this.animationProgress=0;let A;this.mixTargetDelta=Z=>{const R=Z/1e3;gy(S.x,d.x,R),gy(S.y,d.y,R),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Er(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PM(this.relativeTarget,this.relativeTargetOrigin,b,R),A&&RM(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Re()),Fn(A,this.relativeTarget)),w&&(this.animationValues=p,TM(p,y,this.latestValues,R,X,Y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,m,y;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(y=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||y.stop(),this.pendingAnimation&&(Ui(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Ar.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xa(0)),this.currentAnimation=gM(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},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(BM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:y,latestValues:p}=d;if(!(!h||!m||!y)){if(this!==d&&this.layout&&y&&Ty(this.options.animationType,this.layout.layoutBox,y.layoutBox)){m=this.target||Re();const S=Qe(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+S;const b=Qe(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+b}Fn(h,m),Ia(h,p),es(this.projectionDeltaWithTransform,this.layoutCorrected,h,p)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new jM),this.sharedNodes.get(d).add(h);const y=h.options.initialPromotionConfig;h.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const y=this.getStack();y&&y.promote(this,m),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:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const y={};m.z&&Ec("z",d,y,this.animationValues);for(let p=0;p<Tc.length;p++)Ec(`rotate${Tc[p]}`,d,y,this.animationValues),Ec(`skew${Tc[p]}`,d,y,this.animationValues);d.render();for(const p in y)d.setStaticValue(p,y[p]),this.animationValues&&(this.animationValues[p]=y[p]);d.scheduleRender()}applyProjectionStyles(d,h){var V,w;if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=xr(h==null?void 0:h.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=xr(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!ba(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const p=y.animationValues||y.latestValues;this.applyTransformsToTarget();let S=DM(this.projectionDeltaWithTransform,this.treeScale,p);m&&(S=m(p,S)),d.transform=S;const{x:b,y:M}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${M.origin*100}% 0`,y.animationValues?d.opacity=y===this?(w=(V=p.opacity)!=null?V:this.latestValues.opacity)!=null?w:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=y===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const z in nc){if(p[z]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:A}=nc[z],Z=S==="none"?p[z]:Y(p[z],y);if(X){const R=X.length;for(let O=0;O<R;O++)d[X[O]]=Z}else A?this.options.visualElement.renderState.vars[z]=Z:d[z]=Z}this.options.layoutId&&(d.pointerEvents=y===this?xr(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(my),this.root.sharedNodes.clear()}}}function LM(n){n.updateLayout()}function VM(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=n.layout,{animationType:f}=n.options,d=a.source!==n.layout.source;f==="size"?Rn(S=>{const b=d?a.measuredBox[S]:a.layoutBox[S],M=Qe(b);b.min=r[S].min,b.max=b.min+M}):Ty(f,a.layoutBox,r)&&Rn(S=>{const b=d?a.measuredBox[S]:a.layoutBox[S],M=Qe(r[S]);b.max=b.min+M,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[S].max=n.relativeTarget[S].min+M)});const h=Ja();es(h,r,a.layoutBox);const m=Ja();d?es(m,n.applyTransform(u,!0),a.measuredBox):es(m,r,a.layoutBox);const y=!sy(h);let p=!1;if(!n.resumeFrom){const S=n.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:b,layout:M}=S;if(b&&M){const V=Re();Er(V,a.layoutBox,b.layoutBox);const w=Re();Er(w,r,M.layoutBox),uy(V,w)||(p=!0),S.options.layoutRoot&&(n.relativeTarget=w,n.relativeTargetOrigin=V,n.relativeParent=S)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function OM(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 NM(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function UM(n){n.clearSnapshot()}function my(n){n.clearMeasurements()}function yy(n){n.isLayoutDirty=!1}function _M(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function py(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function HM(n){n.resolveTargetDelta()}function kM(n){n.calcProjection()}function GM(n){n.resetSkewAndRotation()}function YM(n){n.removeLeadSnapshot()}function gy(n,a,s){n.translate=ue(a.translate,0,s),n.scale=ue(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function vy(n,a,s,r){n.min=ue(a.min,s.min,r),n.max=ue(a.max,s.max,r)}function PM(n,a,s,r){vy(n.x,a.x,s.x,r),vy(n.y,a.y,s.y,r)}function qM(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const FM={duration:.45,ease:[.4,0,.1,1]},by=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Sy=by("applewebkit/")&&!by("chrome/")?Math.round:wn;function xy(n){n.min=Sy(n.min),n.max=Sy(n.max)}function XM(n){xy(n.x),xy(n.y)}function Ty(n,a,s){return n==="position"||n==="preserve-aspect"&&!tM(cy(a),cy(s),.2)}function KM(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const QM=hy({attachResizeListener:(n,a)=>Wl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mc={current:void 0},Ey=hy({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Mc.current){const n=new QM({});n.mount(window),n.setOptions({layoutScroll:!0}),Mc.current=n}return Mc.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),ZM={pan:{Feature:yM},drag:{Feature:mM,ProjectionNode:Ey,MeasureLayout:Q0}};function My(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&&le.postRender(()=>f(a,$l(a)))}class IM extends ki{mount(){const{current:a}=this.node;a&&(this.unmount=ST(a,(s,r)=>(My(this.node,r,"Start"),u=>My(this.node,u,"End"))))}unmount(){}}class JM extends ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(s){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=Gl(Wl(this.node.current,"focus",()=>this.onFocus()),Wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ay(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&&le.postRender(()=>f(a,$l(a)))}class WM extends ki{mount(){const{current:a}=this.node;a&&(this.unmount=MT(a,(s,r)=>(Ay(this.node,r,"Start"),(u,{success:f})=>Ay(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ac=new WeakMap,wc=new WeakMap,$M=n=>{const a=Ac.get(n.target);a&&a(n)},tA=n=>{n.forEach($M)};function eA({root:n,...a}){const s=n||document;wc.has(s)||wc.set(s,{});const r=wc.get(s),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(tA,{root:n,...a})),r[u]}function nA(n,a,s){const r=eA(a);return Ac.set(n,s),r.observe(n),()=>{Ac.delete(n),r.unobserve(n)}}const iA={some:0,all:1};class aA extends ki{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:iA[u]},h=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:p,onViewportLeave:S}=this.node.getProps(),b=y?p:S;b&&b(m)};return nA(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(lA(a,s))&&this.startObserver()}unmount(){}}function lA({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const sA={...QE,...{inView:{Feature:aA},tap:{Feature:WM},focus:{Feature:JM},hover:{Feature:IM}},...ZM,...{layout:{ProjectionNode:Ey,MeasureLayout:Q0}}},wy=cE(sA,EE);function rA(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{var m;if(typeof window=="undefined"||!window.matchMedia)return;const r=(m=navigator==null?void 0:navigator.userAgent)!=null?m:"",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 Cy={vod:{order:["top","upper","center","lower","bottom"],top:[{items:["MetaDesc"]},{wrapper:"Blank",items:[]},{items:["ShareBtn"]}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],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","lower","bottom"],top:[{items:["MetaDesc"]}],upper:[],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Ry={vod:{order:["top","upper","center","lower","bottom"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}],bottom:[{wrapper:"Blank",items:["SeekBar"],align:"center"}]},live:{order:["top","upper","center","lower","bottom"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}],bottom:[{wrapper:"Blank",items:["SeekBar"],align:"center"}]}},jy={live:{order:["top","center","lower","bottom"],top:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],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"}]},vod:{order:["top","center","lower","bottom"],top:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],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"}]}},Cc=new Map,Rc=new Map,jc=new Map,Dc=new Map,ns=new Map;function oA(n,a){Cc.set(n,a)}function uA(n){Cc.delete(n)}function ee(n){return Cc.get(n)}function cA(n,a){Rc.set(n,a)}function fA(n){Rc.delete(n)}function Dy(n){return Rc.get(n)}function dA(n,a){jc.set(n,a)}function hA(n){jc.delete(n)}function Bc(n){return jc.get(n)}function mA(n,a){Dc.set(n,a)}function yA(n){Dc.delete(n)}function wr(n){return Dc.get(n)}function pA(n,a,s){var f,d;const r=(f=ns.get(n))!=null?f:new Map,u=(d=r.get(a))!=null?d:new Set;u.add(s),r.set(a,u),ns.set(n,r)}function gA(n,a,s){const r=ns.get(n);if(!r)return;const u=r.get(a);u&&(u.delete(s),u.size===0&&r.delete(a),r.size===0&&ns.delete(n))}function By(n,a){var u,f;const s=ns.get(n);if(!s)return;new Set([...(u=s.get(a.type))!=null?u:[],...(f=s.get("*"))!=null?f:[]]).forEach(d=>d(a))}const vA=768,is={pc:{live:Cy.live,vod:Cy.vod},mobile:{live:Ry.live,vod:Ry.vod},fullscreen:{live:jy.live,vod:jy.vod}},bA={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 SA(n){var ft,bt,xt,At,je,Se,se,me,nn,De,hn,Dt,Be,xe,Te,ze,Pe,fe,Xn;const[a,s]=ka("isActive",!1),[r]=ka("uiMode",null),[u]=ka("playMode",null),[f]=ka("isPremiere",!1),d=u==="live"?!0:u==="vod"?!1:null,h=T.useRef(null),m=T.useRef(!1),y=T.useRef(!1),p=T.useRef(0),S=T.useRef(null),b=((ft=n.options)==null?void 0:ft.controlActiveTime)||3e3,[M,V]=te(),{isMobile:w,isPortrait:z}=rA();T.useEffect(()=>{d!==null&&M.isLive!==d&&V({isLive:d})},[d,M.isLive,V]);const Y=Ce(),{togglePlay:X,useTouch:A}=Y,[Z,R]=T.useState(!1),O=(()=>{var Kn,yn,jn,Dn,pn,qe,gn;const lt=(Kn=n.layout)!=null?Kn:is,Tt=Bt=>!Bt||typeof Bt!="object"?!1:"top"in Bt||"upper"in Bt||"center"in Bt||"lower"in Bt||"bottom"in Bt||"order"in Bt,Xt=Bt=>!Bt||typeof Bt!="object"?!1:"live"in Bt||"vod"in Bt,jt=(Bt,Fe)=>{var ei,Qn;const Ve=Xt(Bt)?Bt:Bt?{live:Bt,vod:Bt}:void 0,Ze=(ei=Ve==null?void 0:Ve.live)!=null?ei:Fe==null?void 0:Fe.live,an=(Qn=Ve==null?void 0:Ve.vod)!=null?Qn:Fe==null?void 0:Fe.vod;if(!(!Ze&&!an))return{live:Ze,vod:an}},Ht=(Bt,Fe)=>{var Ve,Ze;if(Bt)return(Ze=(Ve=Fe?Bt.live:Bt.vod)!=null?Ve:Bt.vod)!=null?Ze:Bt.live};if(Tt(lt))return lt;const ne=lt,Jt={pc:jt(is.pc),mobile:jt(is.mobile),fullscreen:jt(is.fullscreen)},Yt={pc:jt(ne.pc,Jt.pc),mobile:jt(ne.mobile,Jt.mobile),fullscreen:jt(ne.fullscreen,Jt.fullscreen),breakpoint:ne.breakpoint},wt=r&&Yt[r]?r:null,ye=wt?null:M.isFullscreen&&Yt.fullscreen?"fullscreen":null,re=(qe=(pn=(Dn=(jn=(yn=wt?Yt[wt]:void 0)!=null?yn:ye?Yt[ye]:void 0)!=null?jn:Z?Yt.mobile:Yt.pc)!=null?Dn:Yt.pc)!=null?pn:Yt.mobile)!=null?qe:Yt.fullscreen,mn=d!=null?d:!!M.isLive;return(gn=Ht(re,mn))!=null?gn:bA})(),j=w||y.current||M.isEnded,[D,J]=T.useState(!0),K=(bt=n.options)==null?void 0:bt.override,tt=T.useCallback(()=>{var lt;if(D){if(typeof(K==null?void 0:K.nextSource)=="function"){K.nextSource(),J(!1);return}(lt=n.next)==null||lt.call(n),J(!1)}},[n.next,J,D,K==null?void 0:K.nextSource]),at=T.useCallback(()=>{var lt;if(D){if(typeof(K==null?void 0:K.prevSource)=="function"){K.prevSource(),J(!1);return}(lt=n.prev)==null||lt.call(n),J(!1)}},[n.prev,J,D,K==null?void 0:K.prevSource]);T.useEffect(()=>{if(!j){J(!1);return}J(!1)},[j]);const L=T.useCallback(()=>{h.current!==null&&(window.clearTimeout(h.current),h.current=null)},[]),k=T.useCallback(()=>{L(),h.current=window.setTimeout(()=>{s(!1),m.current=!0,h.current=null,J(!1)},b)},[L,s,b]),W=T.useCallback(()=>{m.current=!1,p.current=Date.now(),s(!0),k()},[s,k]),_=T.useCallback(()=>{L(),m.current=!0,s(!1)},[L,s]),N=T.useMemo(()=>({...Y,next:tt,prev:at}),[Y,tt,at]);T.useEffect(()=>{const lt=n.scopeId;if(lt)return oA(lt,N),()=>uA(lt)},[n.scopeId,N]),T.useEffect(()=>{const lt=n.scopeId;if(lt)return cA(lt,W),()=>fA(lt)},[n.scopeId,W]),T.useEffect(()=>{const lt=n.scopeId;if(lt)return dA(lt,_),()=>hA(lt)},[n.scopeId,_]);const G=()=>{m.current=!1,p.current=Date.now(),a||s(!0),k()},rt=()=>{m.current||G()};T.useEffect(()=>{var Jt,Yt;if(typeof window=="undefined")return;const lt=(Jt=n.layout)!=null?Jt:is;if((wt=>!wt||typeof wt!="object"?!1:"top"in wt||"upper"in wt||"center"in wt||"lower"in wt||"bottom"in wt||"order"in wt)(lt)){R(!1);return}const jt=(Yt=lt.breakpoint)!=null?Yt:vA,Ht=window.matchMedia(`(max-width: ${jt}px)`),ne=()=>R(Ht.matches||w);return ne(),typeof Ht.addEventListener=="function"?(Ht.addEventListener("change",ne),()=>Ht.removeEventListener("change",ne)):(Ht.addListener(ne),()=>Ht.removeListener(ne))},[n.layout,w]);const st=lt=>[lt.top,lt.upper,lt.center,lt.lower,lt.bottom].some(Xt=>{var jt;return(jt=Xt==null?void 0:Xt.some(Ht=>{var Jt;return((Jt=Ht.items)!=null&&Jt.length?Ht.items:["Blank"]).includes("SeekBar")}))!=null?jt:!1}),yt=T.useMemo(()=>new Set(["PlayBtn","VolumeBtn","TimeBtn","SubtitleBtn","FullscreenBtn","SettingBtn","PipBtn","MetaDesc","BigPlayBtn","SeekBar","SettingModal","DurationBtn","SkipForwardBtn","SkipBackBtn","CurrentTimeBtn","MuteBtn","PrevBtn","NextBtn","NextPrevBtn","Blank","ShareBtn"]),[]),E=(lt,Tt)=>{var jt,Ht,ne,Jt,Yt,wt,ye,re,mn,Kn,yn,jn,Dn,pn,qe,gn,Bt,Fe,Ve,Ze,an,ei,Qn,Gi,Yi,fi,di,Pi,ut,dt,ht,pt,kt,Wt,Bn,Pt,ni,ln,zn,Ln,Vn,qi,hi,pe,ls,ss,ii,mi,Br,rs,os,zr,xa,Ta,On,Ie,us,Lr,tl,cs,Ea,Vr,Je,el,fs;if(typeof lt!="string")return T.isValidElement(lt)?T.cloneElement(lt,{pos:Tt}):lt;if(!yt.has(lt))return/<[^>]+>/.test(lt)?v.jsx("span",{dangerouslySetInnerHTML:{__html:lt}}):v.jsx("span",{children:lt});if(!((Ht=(jt=n.options)==null?void 0:jt.controlBtn)!=null&&Ht.play&&((ne=n.playlistCnt)!=null?ne:0)>1)){if(lt==="NextPrevBtn"||lt==="NextBtn"||lt==="PrevBtn")return}switch(lt){case"PlayBtn":return v.jsx(v.Fragment,{children:((Yt=(Jt=n.options)==null?void 0:Jt.controlBtn)==null?void 0:Yt.play)&&v.jsx(nS,{isMobile:w,isPortrait:z,pos:Tt,text:{play:(ye=(wt=n.t)==null?void 0:wt.call(n,"common.play"))!=null?ye:"재생",pause:(mn=(re=n.t)==null?void 0:re.call(n,"common.pause"))!=null?mn:"일시정지"},options:n.options})});case"VolumeBtn":return v.jsx(v.Fragment,{children:((yn=(Kn=n.options)==null?void 0:Kn.controlBtn)==null?void 0:yn.volume)&&v.jsx(mS,{isMobile:w,isPortrait:z,pos:Tt,text:{muteOn:(Dn=(jn=n.t)==null?void 0:jn.call(n,"common.muteOn"))!=null?Dn:"음소거",muteOff:(qe=(pn=n.t)==null?void 0:pn.call(n,"common.muteOff"))!=null?qe:"음소거 해제"}})});case"MuteBtn":return v.jsx(v.Fragment,{children:((Bt=(gn=n.options)==null?void 0:gn.controlBtn)==null?void 0:Bt.volume)&&v.jsx(jh,{isMobile:w,isPortrait:z,pos:Tt,text:{muteOn:(Ve=(Fe=n.t)==null?void 0:Fe.call(n,"common.muteOn"))!=null?Ve:"음소거",muteOff:(an=(Ze=n.t)==null?void 0:Ze.call(n,"common.muteOff"))!=null?an:"음소거 해제"}})});case"ShareBtn":return navigator.share?v.jsx(v.Fragment,{children:v.jsx(SS,{isMobile:w,isPortrait:z,pos:Tt})}):null;case"CurrentTimeBtn":return v.jsx(v.Fragment,{children:((Qn=(ei=n.options)==null?void 0:ei.controlBtn)==null?void 0:Qn.times)&&v.jsx(sS,{isMobile:w,isPortrait:z,pos:Tt})});case"DurationBtn":return v.jsx(v.Fragment,{children:((Yi=(Gi=n.options)==null?void 0:Gi.controlBtn)==null?void 0:Yi.times)&&v.jsx(rS,{isMobile:w,isPortrait:z,pos:Tt})});case"TimeBtn":return v.jsx(v.Fragment,{children:((di=(fi=n.options)==null?void 0:fi.controlBtn)==null?void 0:di.times)&&v.jsx(lS,{isMobile:w,isPortrait:z,pos:Tt})});case"SubtitleBtn":return M.hasSubtitle?v.jsx(v.Fragment,{children:((ut=(Pi=n.options)==null?void 0:Pi.controlBtn)==null?void 0:ut.subtitle)||M.hasSubtitle&&v.jsx(hS,{isMobile:w,isPortrait:z,pos:Tt,text:{captionOn:(ht=(dt=n.t)==null?void 0:dt.call(n,"common.captionOn"))!=null?ht:"자막켜기",captionOff:(kt=(pt=n.t)==null?void 0:pt.call(n,"common.captionOff"))!=null?kt:"자막 끄기"}})}):null;case"FullscreenBtn":return v.jsx(v.Fragment,{children:((Bn=(Wt=n.options)==null?void 0:Wt.controlBtn)==null?void 0:Bn.fullscreen)&&v.jsx(dS,{isMobile:w,isPortrait:z,pos:Tt,options:n.options,text:{fullOn:(ni=(Pt=n.t)==null?void 0:Pt.call(n,"common.fullOn"))!=null?ni:"전체화면",fullOff:(zn=(ln=n.t)==null?void 0:ln.call(n,"common.fullOff"))!=null?zn:"전체화면 해제"}})});case"PipBtn":return v.jsx(v.Fragment,{children:((Vn=(Ln=n.options)==null?void 0:Ln.controlBtn)==null?void 0:Vn.pictureInPicture)&&v.jsx(vS,{isMobile:w,isPortrait:z,pos:Tt,options:n.options,text:{miniPlayer:(hi=(qi=n.t)==null?void 0:qi.call(n,"common.miniPlayer"))!=null?hi:"미니플레이어"}})});case"NextPrevBtn":return v.jsx(v.Fragment,{children:((ls=(pe=n.options)==null?void 0:pe.controlBtn)==null?void 0:ls.play)&&((ss=n.playlistCnt)!=null?ss:0)>1&&v.jsx(cS,{isMobile:w,isPortrait:z,pos:Tt,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:at,next:tt})});case"PrevBtn":return v.jsx(v.Fragment,{children:((mi=(ii=n.options)==null?void 0:ii.controlBtn)==null?void 0:mi.play)&&((Br=n.playlistCnt)!=null?Br:0)>1&&v.jsx(wh,{isMobile:w,isPortrait:z,pos:Tt,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:at})});case"NextBtn":return v.jsx(v.Fragment,{children:((os=(rs=n.options)==null?void 0:rs.controlBtn)==null?void 0:os.play)&&((zr=n.playlistCnt)!=null?zr:0)>1&&v.jsx(Ch,{isMobile:w,isPortrait:z,pos:Tt,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,next:tt})});case"SkipBackBtn":return v.jsx("span",{style:{display:"contents"},onClickCapture:()=>{var yi;(yi=n.onAction)==null||yi.call(n,"skipBack")},children:v.jsx(oS,{isMobile:w,isPortrait:z,pos:Tt,options:n.options})});case"SkipForwardBtn":return v.jsx("span",{style:{display:"contents"},onClickCapture:()=>{var yi;(yi=n.onAction)==null||yi.call(n,"skipForward")},children:v.jsx(uS,{isMobile:w,isPortrait:z,pos:Tt,options:n.options})});case"MetaDesc":return v.jsx(v.Fragment,{children:!((xa=n.options)!=null&&xa.descriptionNotVisible)&&v.jsx(fS,{title:(Ta=n.metaTitle)!=null?Ta:"",profileImage:(On=n.profileImage)!=null?On:"",profileName:(Ie=n.profileName)!=null?Ie:"",createdAt:(us=n.createdAt)!=null?us:"",isMobile:w,isPortrait:z,pos:Tt})});case"BigPlayBtn":return j?v.jsx(aS,{isMobile:w,isPortrait:z,prev:at,next:tt,pidx:n.pidx,playlistCnt:n.playlistCnt,isActive:a,isAnimationComplete:D}):null;case"SeekBar":return v.jsx(v.Fragment,{children:((tl=(Lr=n.options)==null?void 0:Lr.controlBtn)==null?void 0:tl.progressBar)&&!f&&v.jsx(uh,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,pos:Tt,color:(cs=n.options)==null?void 0:cs.progressBarColor,seekingPreview:((Ea=n.options)==null?void 0:Ea.seekingPreview)&&!n.isDrmPlayback})});case"SettingBtn":return v.jsx(v.Fragment,{children:((Je=(Vr=n.options)==null?void 0:Vr.controlBtn)==null?void 0:Je.setting)&&v.jsx(gS,{isMobile:w,isPortrait:z,pos:Tt,text:{setting:(fs=(el=n.t)==null?void 0:el.call(n,"common.setting"))!=null?fs:"설정"}})});case"Blank":return v.jsx(Rh,{});default:return null}},H=(lt,Tt,Xt,jt)=>{var ye,re;const Ht=(ye=lt.key)!=null?ye:`${Tt}-${jt!=null?jt:0}`,Jt=((re=lt.items)!=null&&re.length?lt.items:["Blank"]).map((mn,Kn)=>{const yn=E(mn,Xt);return yn?v.jsx(T.Fragment,{children:yn},`${Tt}-${Ht}-${mn}-${Kn}`):null}).filter(mn=>mn!==null);if(!Jt.length)return null;if(lt.wrapper==="Blank")return v.jsx(Rh,{align:lt==null?void 0:lt.align,style:lt==null?void 0:lt.style,children:Jt},`${Tt}-${Ht}`);if(lt.wrapper==="Group")return v.jsx(kl,{noPadding:!(Jt.length>1),cap:lt.cap,style:lt==null?void 0:lt.style,children:Jt},`${Tt}-${Ht}`);const wt={display:"flex",alignItems:"center",justifyContent:lt!=null&&lt.align?(lt==null?void 0:lt.align)=="left"?"start":(lt==null?void 0:lt.align)=="right"?"end":"center":"start"};return v.jsx("div",{style:{...wt,...lt==null?void 0:lt.style},children:Jt},`${Tt}-${Ht}`)},I=(lt,Tt)=>{if(!(lt!=null&&lt.length))return null;if(Tt!=="bottom")return lt.map((jt,Ht)=>H(jt,Tt,void 0,Ht));let Xt="left";return lt.map((jt,Ht)=>{var wt;const ne=(wt=jt.items)!=null&&wt.length?jt.items:["Blank"],Jt=jt.wrapper==="Blank"||ne.includes("Blank"),Yt=H(jt,Tt,Xt,Ht);return Jt&&(Xt="right"),Yt})},nt=!st(O),ct=(xt=O.order)!=null?xt:["top","upper","center","seekbar","lower","bottom"],ot=()=>{var lt,Tt,Xt,jt;return nt?v.jsx("div",{children:v.jsx(v.Fragment,{children:((Tt=(lt=n.options)==null?void 0:lt.controlBtn)==null?void 0:Tt.progressBar)&&v.jsx(uh,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,color:(Xt=n.options)==null?void 0:Xt.progressBarColor,seekingPreview:((jt=n.options)==null?void 0:jt.seekingPreview)&&!n.isDrmPlayback})})}):null};return T.useEffect(()=>{w&&(y.current=!0)},[w]),T.useEffect(()=>{var lt;if(S.current===null){S.current=a;return}S.current!==a&&(S.current=a,(lt=n.onControlBarActiveChange)==null||lt.call(n,a))},[a,n.onControlBarActiveChange]),v.jsxs(v.Fragment,{children:[M.isLoading&&v.jsx(cu,{poster:n.poster,options:n.options}),M.isWaiting&&v.jsx(cu,{}),M.isSettingModal&&v.jsx(CS,{text:{setting:(je=(At=n.t)==null?void 0:At.call(n,"common.setting"))!=null?je:"세팅",auto:(se=(Se=n.t)==null?void 0:Se.call(n,"common.auto"))!=null?se:"자동",notUse:(nn=(me=n.t)==null?void 0:me.call(n,"common.notUse"))!=null?nn:"사용안함",quality:(hn=(De=n.t)==null?void 0:De.call(n,"settings.quality"))!=null?hn:"해상도",autoplay:(Be=(Dt=n.t)==null?void 0:Dt.call(n,"settings.autoplay"))!=null?Be:"자동재생",playbackRate:(Te=(xe=n.t)==null?void 0:xe.call(n,"settings.playbackRate"))!=null?Te:"재생 속도",captions:(Pe=(ze=n.t)==null?void 0:ze.call(n,"settings.captions"))!=null?Pe:"자막"},vtt:(fe=n.src)==null?void 0:fe.vtt,options:n.options}),!M.isLoading&&v.jsx(v.Fragment,{children:M.initPlay?v.jsxs("div",{style:{height:"100%"},onClick:()=>{w||(A(),L(),k())},onMouseEnter:()=>{w||rt()},onMouseMove:()=>{w||G()},onTouchEnd:()=>{A(),G(),L(),k()},onMouseLeave:()=>{L(),k(),m.current=!1},children:[w&&v.jsx(wS,{onSingleTap:()=>{G(),L(),k()}}),v.jsx(Km,{children:!a&&!((Xn=n.options)!=null&&Xn.startMutedInfoNotVisible)&&(M==null?void 0:M.isMuted)&&v.jsx(wy.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{position:"absolute",width:"100%",height:"100%",padding:w?"0.9rem":"1.3rem",display:"flex",justifyContent:"start",alignItems:"start"},children:v.jsx("div",{style:{backgroundColor:"rgba(0,0,0,0.3)",color:"#ffffff",fontSize:"0.8rem",borderRadius:"100px",display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",aspectRatio:"1/1",width:w?"2rem":"2.5rem"},children:v.jsx("div",{children:v.jsx(jh,{size:w?"1.2rem":"1.5rem"})})})})}),v.jsx(Km,{children:(a||M.isEnded)&&v.jsx(wy.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.45rem",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%)"},onAnimationComplete:()=>{J(!0)},children:ct.map(lt=>lt==="top"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:I(O.top,"top")},"layout-top"):lt==="upper"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:I(O.upper,"upper")},"layout-upper"):lt==="center"?v.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!w&&!z&&X(),y.current=!0},onMouseLeave:()=>{y.current=!1},children:I(O.center,"center")},"layout-center"):lt==="seekbar"?v.jsx("div",{children:v.jsx(T.Fragment,{children:ot()})},"layout-seekbar"):lt==="lower"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:I(O.lower,"lower")},"layout-lower"):lt==="bottom"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:I(O.bottom,"bottom")},"layout-bottom"):null)})})]}):v.jsx(TS,{poster:n.poster,options:n.options})})]})}const Cr="com.widevine.alpha",Rr="com.microsoft.playready",as="com.apple.fps",zc=n=>{var a,s;return(s=(a=n.split("#")[0])==null?void 0:a.split("?")[0])!=null?s:""},Lc=n=>n?n.trim().replace(/^[?&]+/,""):"",jr=(n,a)=>{const s=Lc(a);if(!s||n.includes(s))return n;const[r,u]=n.split("#"),f=r.includes("?"),d=r.endsWith("?")||r.endsWith("&")?"":f?"&":"?",h=`${r}${d}${s}`;return u?`${h}#${u}`:h},xA=(n,a)=>{if(!(n!=null&&n.file))return n;const s=jr(n.file,a);return s===n.file?n:{...n,file:s}},Dr=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},TA=n=>{if(!(!(n!=null&&n.drm)||typeof n.drm!="object"))return n.drm},EA=n=>{const a=n==null?void 0:n[as];if(a!=null&&a.licenseUri)return{keySystem:as,licenseUrl:a.licenseUri,licenseHeaders:Dr(a.licenseRequestHeader),certificateUrl:a.certificateUri,certificateHeaders:Dr(a.certificateRequestHeader)}},MA=n=>{if(!n)return;const a={},s=n[Cr];s!=null&&s.licenseUri&&(a[Cr]={serverURL:s.licenseUri,httpRequestHeaders:Dr(s.licenseRequestHeader)});const r=n[Rr];return r!=null&&r.licenseUri&&(a[Rr]={serverURL:r.licenseUri,httpRequestHeaders:Dr(r.licenseRequestHeader)}),Object.keys(a).length>0?a:void 0},AA=n=>{var u,f,d,h,m,y;if(!(n!=null&&n.drm))return;const a=n.drm;return typeof globalThis.WebKitMediaKeys!="undefined"&&((u=a[as])!=null&&u.src)?(f=a[as])==null?void 0:f.src:(d=a[Cr])!=null&&d.src?(h=a[Cr])==null?void 0:h.src:(m=a[Rr])!=null&&m.src?(y=a[Rr])==null?void 0:y.src:Object.values(a).map(p=>p==null?void 0:p.src).find(Boolean)},wA=n=>{if(!n||n.file)return n;const a=AA(n);return a?{...n,file:a}:n},CA=(n,a,s)=>{var m,y;if(!n)return;const r=Lc(a);n.__vpeTokenValue=r,n.__vpeDrmConfig=s;const u=(y=(m=n.DefaultConfig)!=null?m:n.defaultConfig)!=null?y:n.DefaultConfig={};if(s!=null&&s.licenseUrl?(u.emeEnabled=!0,u.drmSystems={[s.keySystem]:{licenseUrl:s.licenseUrl,serverCertificateUrl:s.certificateUrl}}):(u.emeEnabled=!1,u.drmSystems={}),n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const f=u.xhrSetup,d=u.fetchSetup,h=u.licenseXhrSetup;u.xhrSetup=(p,S)=>{const b=n.__vpeDrmConfig,M=jr(S,n.__vpeTokenValue);M!==S&&p.open("GET",M,!0);const V=b==null?void 0:b.certificateUrl;if(V&&zc(M)===zc(V)&&b.certificateHeaders&&Object.entries(b.certificateHeaders).forEach(([w,z])=>{p.setRequestHeader(w,z)}),f)return f(p,M)},u.fetchSetup=(p,S)=>{const b=jr(p.url,n.__vpeTokenValue),M=b===p.url?p:{...p,url:b};return d?d(M,S):typeof Request!="undefined"?new Request(M.url,S):M.url},u.licenseXhrSetup=(p,S,b,M)=>{const V=n.__vpeDrmConfig;return V!=null&&V.licenseHeaders&&Object.entries(V.licenseHeaders).forEach(([w,z])=>{p.setRequestHeader(w,z)}),h?h(p,S,b,M):M}},RA=(n,a,s)=>{if(!(n!=null&&n.MediaPlayer))return;const r=Lc(a);if(n.__vpeTokenValue=r,n.__vpeDrmConfig=s,n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const u=n.MediaPlayer.bind(n);n.MediaPlayer=(...f)=>{const d=u(...f);if(!(d!=null&&d.create)||d.__vpeTokenPatched)return d;d.__vpeTokenPatched=!0;const h=d.create.bind(d);return d.create=(...m)=>{const y=h(...m),p=n.__vpeTokenValue,S=n.__vpeDrmConfig;return p&&typeof(y==null?void 0:y.extend)=="function"&&y.extend("RequestModifier",{modifyRequestURL:b=>jr(b,p),modifyRequestHeader:b=>b},!0),S&&typeof(y==null?void 0:y.setProtectionData)=="function"&&y.setProtectionData(S),y},d}};function jA({onEvent:n,isInitialized:a,playlist:s,pidx:r,onStateSnapshot:u,vpe:f,scopeId:d}){const[h]=te(),m=T.useRef(null),y=T.useRef(null),p=T.useRef(!1),S=T.useCallback((b,M,V)=>{const w=h!=null?h:{};f!=null&&f.playerStateReport&&f.playerStateReport({type:b,state:w,prevState:V,data:M});const z={type:b,state:w,prevState:V,data:M},Y=f!=null&&f.isPaidTier?f.isPaidTier():!0;n&&Y&&n(z),d&&By(d,z)},[n,h,f,d]);return T.useEffect(()=>{u&&u(h!=null?h:{})},[h,u]),T.useEffect(()=>{const b=h!=null?h:{},M=m.current;m.current=b,M&&M!==b&&(S("stateChange",void 0,M),M.isPlaying!==b.isPlaying&&typeof b.isPlaying=="boolean"&&S(b.isPlaying?"play":"pause",void 0,M),M.isFullscreen!==b.isFullscreen&&typeof b.isFullscreen=="boolean"&&S(b.isFullscreen?"fullscreen":"fullscreenExit",void 0,M),M.isLoading!==b.isLoading&&typeof b.isLoading=="boolean"&&S(b.isLoading?"loadingStart":"loadingEnd",void 0,M),M.isWaiting!==b.isWaiting&&typeof b.isWaiting=="boolean"&&S(b.isWaiting?"bufferingStart":"bufferingEnd",void 0,M))},[h,S]),T.useEffect(()=>{!a||p.current||(p.current=!0,S("ready",{playlist:s}))},[a,s.length,S]),T.useEffect(()=>{const b=y.current;if(y.current=r,b===null||b===r)return;const M={from:b,to:r,total:s.length,item:s[r]};S("playlistChange",M),S(r>b?"next":"prev",M)},[r,s,S]),null}const DA=["stateChange","ready","play","pause","ended","fullscreen","fullscreenExit","loadingStart","loadingEnd","bufferingStart","bufferingEnd","seeking","seeked","waiting","volumechange","timeupdate","controlbarActive","controlbarDeactive","next","prev","skipForward","skipBack","playlistChange","error"],BA=n=>DA.includes(n);function zA(n){var r,u;if(!n)return{startTimeText:null,timeInfoText:null,startTimeMs:null};if(typeof n=="string"){const f=Date.parse(n);return{startTimeText:n,timeInfoText:null,startTimeMs:Number.isNaN(f)?null:f}}const a=(r=n.startTime)!=null?r:null,s=a?Date.parse(a):NaN;return{startTimeText:a,timeInfoText:(u=n.timeInfoText)!=null?u:null,startTimeMs:Number.isNaN(s)?null:s}}function LA(n){const a=Math.max(0,Math.floor(n)),s=Math.floor(a/86400);if(s>0)return`${s}일`;const r=Math.floor(a/3600),u=Math.floor(a%3600/60),f=a%60;return r>0?`${String(r).padStart(2,"0")}:${String(u).padStart(2,"0")}:${String(f).padStart(2,"0")}`:`${String(u).padStart(2,"0")}:${String(f).padStart(2,"0")}`}function VA(n){var pn,qe,gn,Bt,Fe,Ve,Ze,an,ei,Qn,Gi,Yi,fi,di,Pi;const{accessKey:a,platform:s="pub",stage:r="prod",isDev:u=!1,hls:f,dashjs:d,options:h,layout:m,scopeId:y}=n,[p,S]=T.useState(null),[b,M]=te(),[V,w]=T.useState([]),[z,Y]=T.useState(!1),X=T.useMemo(()=>{if(!h)return{};const{layout:ut,...dt}=h;return dt},[h]),[A,Z]=ka("playerOptions",X),[R,O]=ka("layoutOverride",m),j=T.useMemo(()=>{var ut,dt,ht,pt;return(pt=(ht=(dt=(ut=A==null?void 0:A.startTime)!=null?ut:h==null?void 0:h.startTime)!=null?dt:A==null?void 0:A.setStartTime)!=null?ht:h==null?void 0:h.setStartTime)!=null?pt:null},[A==null?void 0:A.startTime,h==null?void 0:h.startTime,A==null?void 0:A.setStartTime,h==null?void 0:h.setStartTime]),{startTimeText:D,timeInfoText:J,startTimeMs:K}=T.useMemo(()=>zA(j),[j]),[tt,at]=T.useState(!1),[L,k]=T.useState(""),[W,_]=T.useState(null),[N,G]=T.useState({errorCode:null,errorMessage:null,errorTitle:null}),[rt,st]=T.useState(!1),[yt,E]=T.useState(!1),[H,I]=T.useState(0),[nt,ct]=T.useState(0),ot=T.useRef(null),ft=T.useRef(!1),bt=T.useRef(!1),xt=T.useRef(!1),At=T.useRef(null),je=T.useRef(null),Se=T.useRef(null),se=typeof window!="undefined"&&window.location.host||"local";T.useEffect(()=>{var ut;if(z){if(p&&!((ut=p.isPaidTier)!=null&&ut.call(p))){O(void 0);return}O(m)}},[m,O,p,z]),T.useEffect(()=>{var ut;if(m===void 0&&h!=null&&h.layout&&z){if(p&&!((ut=p.isPaidTier)!=null&&ut.call(p))){O(void 0);return}O(h.layout)}},[m,h==null?void 0:h.layout,O,p,z]),T.useEffect(()=>{if(!K){at(!1),_(null),xt.current=!1;return}const ut=Date.now(),dt=b.duration,pt=typeof dt=="number"&&Number.isFinite(dt)&&dt>0?K+dt*1e3:null;if(xt.current=!!(pt&&pt>ut),K>ut){at(!0);const kt=()=>{const Pt=J!=null?J:(()=>{var zn;const ln=(zn=p==null?void 0:p.$t)==null?void 0:zn.call(p,"alternative.startPlay");return typeof ln=="string"?ln:"{timeTxt}"})(),ni=Math.max(0,Math.floor((K-Date.now())/1e3));_(Pt.replace("{timeTxt}",LA(ni)))};kt();const Wt=window.setInterval(kt,1e3),Bn=window.setTimeout(()=>{at(!1)},Math.max(0,K-ut));return()=>{window.clearInterval(Wt),window.clearTimeout(Bn)}}at(!1),_(null)},[K,J,p,b.duration]),T.useEffect(()=>{var dt,ht;if(!y||!p||!z)return;const ut=(ht=(dt=p==null?void 0:p.isPaidTier)==null?void 0:dt.call(p))!=null?ht:!0;Wn(y,"isPaidTier",ut)},[y,p,z]),T.useEffect(()=>{if(!a)return;const ut=new F1({accessKey:a,appId:se,platform:s,stage:r,isDev:u});S(ut)},[a,se,s,r,u]);const me=T.useCallback((ut,dt,ht)=>{var Pt,ni,ln,zn,Ln;const pt=(Pt=Se.current)!=null?Pt:{};p!=null&&p.playerStateReport&&p.playerStateReport({type:ut,state:pt,prevState:ht,data:dt});const kt={type:ut,state:pt,prevState:ht,data:dt},Wt=(ln=(ni=p==null?void 0:p.isPaidTier)==null?void 0:ni.call(p))!=null?ln:!0;if(ut==="error"&&Wt){const Vn=(zn=A==null?void 0:A.override)==null?void 0:zn.error;typeof Vn=="function"&&Vn((Ln=kt.data)!=null?Ln:kt)}const Bn=Wt;n.onEvent&&Bn&&n.onEvent(kt),y&&By(y,kt)},[n.onEvent,p,y,A]),nn=T.useCallback((ut,dt)=>{if(BA(ut)){if(ut==="ended"){if(V.length>1){if(nt<V.length-1)E(!0),re(5);else if(A.loop&&y){ct(0);const ht=ee(y),pt=ht==null?void 0:ht.seekTo,kt=ht==null?void 0:ht.play;pt&&pt(0),kt&&kt()}}else if(A.loop&&y){const ht=ee(y),pt=ht==null?void 0:ht.seekTo,kt=ht==null?void 0:ht.play;pt&&pt(0),kt&&kt()}}me(ut,dt)}},[me,nt,A.loop,V.length,y,E,yt]),De=T.useCallback((ut,dt)=>{st(!0),G(ut),me("error",{...dt,...ut})},[me]);T.useEffect(()=>{if(!p||z||rt)return;(async()=>{var dt,ht;if(await p.initialize(),p.isInitialized()){const pt=p.getValidatedOptions(h);Z(pt),w((pt==null?void 0:pt.playlist)||[]),Y(!0)}else{const pt=p.setErrorRun("E0001");De({errorCode:pt==null?void 0:pt.errorCode,errorMessage:(dt=pt==null?void 0:pt.errorMessage)==null?void 0:dt.desc,errorTitle:(ht=pt==null?void 0:pt.errorMessage)==null?void 0:ht.title});return}})()},[p,z,h,Z,De,rt]),T.useEffect(()=>{const ut=globalThis;f&&(ut.Hls=f),d&&(ut.dashjs=d)},[f,d]);const hn=T.useMemo(()=>wA(V==null?void 0:V[nt]),[V,nt]);T.useEffect(()=>{const ut=hn==null?void 0:hn.file;if(!ut){k("");return}const dt=zc(ut.toLowerCase());dt.endsWith(".m3u8")?k("hls"):dt.endsWith(".mpd")?k("dash"):dt.endsWith(".mp4")?k("mp4"):k("")},[hn]);const Dt=hn,Be=(V==null?void 0:V.length)>1?V[(nt+1)%V.length]:V==null?void 0:V[nt],xe=T.useMemo(()=>TA(Dt),[Dt]),Te=T.useMemo(()=>EA(xe),[xe]),ze=T.useMemo(()=>MA(xe),[xe]),Pe=typeof globalThis.WebKitMediaKeys!="undefined",fe=T.useMemo(()=>{var dt;if(typeof document=="undefined")return!1;const ut=document.createElement("video");return!!((dt=ut==null?void 0:ut.canPlayType)!=null&&dt.call(ut,"application/vnd.apple.mpegurl"))},[]),Xn=!!(Pe&&fe&&((pn=xe==null?void 0:xe[as])!=null&&pn.licenseUri)&&L==="hls");T.useEffect(()=>{var ht,pt;if(!p||!xe||(typeof p.isPaidTier=="function"?p.isPaidTier():!0))return;const dt=p.setErrorRun("E0017");De({errorCode:dt==null?void 0:dt.errorCode,errorMessage:(ht=dt==null?void 0:dt.errorMessage)==null?void 0:ht.desc,errorTitle:(pt=dt==null?void 0:dt.errorMessage)==null?void 0:pt.title})},[p,xe,De]),T.useEffect(()=>{var pt,kt,Wt,Bn;if(!p||!L)return;const ut=globalThis,dt=f!=null?f:ut.Hls,ht=d!=null?d:ut.dashjs;if(L==="hls"&&!dt&&!Xn){const Pt=p.setErrorRun("E0015");De({errorCode:Pt==null?void 0:Pt.errorCode,errorMessage:(pt=Pt==null?void 0:Pt.errorMessage)==null?void 0:pt.desc,errorTitle:(kt=Pt==null?void 0:Pt.errorMessage)==null?void 0:kt.title})}if(L==="dash"&&!ht){const Pt=p.setErrorRun("E0016");De({errorCode:Pt==null?void 0:Pt.errorCode,errorMessage:(Wt=Pt==null?void 0:Pt.errorMessage)==null?void 0:Wt.desc,errorTitle:(Bn=Pt==null?void 0:Pt.errorMessage)==null?void 0:Bn.title})}},[L,p,f,d,De,Xn]);const lt=T.useCallback(ut=>{var ht,pt,kt;if(!ut||typeof ut!="object"||!p)return;const dt=ut;if((dt==null?void 0:dt.evt)=="hlsError"&&((ht=dt==null?void 0:dt.data)==null?void 0:ht.type)=="networkError"){const Wt=p.setErrorRun("E0004");De({errorCode:Wt==null?void 0:Wt.errorCode,errorMessage:(pt=Wt==null?void 0:Wt.errorMessage)==null?void 0:pt.desc,errorTitle:(kt=Wt==null?void 0:Wt.errorMessage)==null?void 0:kt.title})}},[p,De]),Tt=T.useMemo(()=>xA(Dt,A==null?void 0:A.token),[Dt,A==null?void 0:A.token]),Xt=f!=null?f:globalThis.Hls,jt=d!=null?d:globalThis.dashjs;T.useEffect(()=>{CA(Xt,A==null?void 0:A.token,Te),RA(jt,A==null?void 0:A.token,ze)},[Xt,jt,A==null?void 0:A.token,Te,ze]);const Ht=()=>{if(!Tt)return null;switch(L){case"hls":return Xn?v.jsx(Cb,{src:Tt,options:A,onError:lt,emitEvent:nn}):v.jsx(Mb,{src:Tt,hlsLib:Xt,options:A,onError:lt,emitEvent:nn});case"dash":return v.jsx(Ab,{src:Tt,dashLib:jt,options:A,onError:lt,emitEvent:nn});case"mp4":return v.jsx(wb,{src:Tt,options:A,onError:lt,emitEvent:nn});default:return null}};zS(A);const ne=T.useCallback(()=>{const ut=At.current;ut&&(ut.style.display="")},[]),Jt=T.useCallback(()=>{const ut=At.current;ut&&(ut.style.display="none")},[]);T.useEffect(()=>{if(y)return mA(y,{show:ne,hide:Jt}),()=>yA(y)},[y,ne,Jt]);const Yt=T.useCallback(ut=>{Se.current=ut},[]);T.useEffect(()=>{V.length!==0&&nt>V.length-1&&ct(V.length-1)},[nt,V.length]);const wt=T.useCallback(()=>{ot.current&&(clearInterval(ot.current),ot.current=null)},[]),ye=T.useCallback(()=>{ct(ut=>(E(!1),V.length===0?ut:Math.min(ut+1,V.length-1)))},[V.length]);T.useEffect(()=>wt,[wt]);const re=T.useCallback((ut=1)=>{if(ut>1){const dt=Math.max(1,Math.floor(ut));I(dt),wt(),ot.current=setInterval(()=>{I(ht=>{const pt=Math.max(0,ht-1);return pt===0&&(wt(),ye()),pt})},1e3)}else I(0),wt(),ye();ft.current=!0,bt.current=!0},[ye,wt]),mn=T.useCallback(()=>{ft.current=!0,bt.current=!0,ct(ut=>Math.max(0,ut-1))},[V.length]);T.useEffect(()=>{if(!y)return;const ut=ee(y),dt=ut==null?void 0:ut.seekTo,ht=b.duration,pt=typeof ht=="number"&&Number.isFinite(ht)&&ht>0,kt=!!(K&&pt&&K+ht*1e3>Date.now());if(y&&Wn(y,"isPremiere",kt),!K||tt||!xt.current||!pt)return;const Wt=Math.max(0,Math.floor((Date.now()-K)/1e3));if(Wt<ht){if(b.isLive===!0)return;M({isLive:!0}),dt&&dt(Wt);return}b.isLive!==!1&&M({isLive:!1})},[K,tt,b.duration,b.currentTime,b.isLive,M,y]),T.useEffect(()=>{if(!bt.current||(bt.current=!1,!y))return;const ut=Bc(y);ut&&ut()},[nt,y]);const Kn=T.useCallback(ut=>{ut==="skipForward"?me("skipForward"):ut==="skipBack"&&me("skipBack")},[me]),yn=b!=null&&b.initPlay&&((qe=b==null?void 0:b.currentTime)!=null?qe:0)>0?null:(Bt=(gn=h==null?void 0:h.playlist)==null?void 0:gn[0])==null?void 0:Bt.poster,jn=(Ve=(Fe=p==null?void 0:p.isPaidTier)==null?void 0:Fe.call(p))!=null?Ve:!0,Dn=((an=(Ze=p==null?void 0:p.$t)==null?void 0:Ze.call(p,"alternative.nextPlay"))!=null?an:"alternative.nextPlay").replace("{timeTxt}",String(H));return v.jsxs("div",{ref:je,style:{maxHeight:"100dvh",width:"100%",height:"100%",background:yn?`url(${yn}) center / cover no-repeat`:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9"},className:"vpe-root-wrap",children:[v.jsx(jA,{onEvent:n.onEvent,isInitialized:z,playlist:V,pidx:nt,onStateSnapshot:Yt,vpe:p,scopeId:y}),rt?v.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:(A==null?void 0:A.aspectRatio)||"16/9",position:"relative",overflow:"hidden"},children:[v.jsx("div",{style:{background:`url(${Dt==null?void 0:Dt.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),v.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",top:0,left:0,backgroundColor:"rgba(0,0,0,0.69)"},children:n.errorOverride&&jn?typeof n.errorOverride=="function"?v.jsx(n.errorOverride,{...N}):n.errorOverride:v.jsxs("div",{style:{textAlign:"center"},children:[v.jsx("div",{children:v.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),v.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:v.jsx("strong",{children:N==null?void 0:N.errorMessage})}),(N==null?void 0:N.errorCode)&&v.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",N.errorCode,")"]})]})})]}):tt?v.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:v.jsx(ES,{startTime:D!=null?D:"",options:A,poster:Dt==null?void 0:Dt.poster,text:W!=null?W:""})}):z?v.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[A.controls&&v.jsx("div",{ref:At,style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},children:v.jsx(SA,{src:Tt,hlsLib:Xt,dashLib:jt,options:(ei=p==null?void 0:p.isPaidTier)!=null&&ei.call(p)?A:{...A,override:void 0},poster:Dt==null?void 0:Dt.poster,layout:R,scopeId:y,isDrmPlayback:!!xe,next:re,prev:mn,onAction:Kn,onControlBarActiveChange:ut=>{me(ut?"controlbarActive":"controlbarDeactive")},pidx:nt,playlistCnt:(V==null?void 0:V.length)||0,metaTitle:(Qn=Dt==null?void 0:Dt.description)==null?void 0:Qn.title,profileImage:(Gi=Dt==null?void 0:Dt.description)==null?void 0:Gi.profile_image,profileName:(Yi=Dt==null?void 0:Dt.description)==null?void 0:Yi.profile_name,createdAt:(fi=Dt==null?void 0:Dt.description)==null?void 0:fi.created_at,t:ut=>{var dt,ht;return(ht=(dt=p==null?void 0:p.$t)==null?void 0:dt.call(p,ut))!=null?ht:ut}})}),yt&&b.isEnded&&v.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:v.jsxs("div",{children:[v.jsx("div",{style:{background:`url(${Be==null?void 0:Be.poster}) center / cover no-repeat`,width:"9em",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9",backgroundColor:"#000000",borderRadius:"5px",border:"2px solid rgba(255,255,255,0.5)"}}),v.jsxs("div",{style:{textAlign:"center",fontSize:"0.7rem",letterSpacing:"-1",fontWeight:"bold",paddingTop:"1rem"},children:[((di=Be==null?void 0:Be.description)==null?void 0:di.title)&&v.jsx("div",{style:{marginBottom:"0.3rem"},className:"ellipsis-2",children:(Pi=Be==null?void 0:Be.description)==null?void 0:Pi.title}),v.jsx("div",{style:{fontSize:"0.7rem",opacity:"0.8"},children:Dn})]})]})}),v.jsx("div",{children:v.jsx(AS,{options:A})}),v.jsx("div",{style:{position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9"},children:Ht()})]}):v.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:v.jsx(cu,{poster:Dt==null?void 0:Dt.poster,options:A})})]})}let zy=0;const Vc=T.forwardRef((n,a)=>{var u;const s=T.useRef("");s.current||(zy+=1,s.current=`vpe-${zy}`);const r=(u=n.scopeId)!=null?u:s.current;return T.useImperativeHandle(a,()=>({play:()=>{var d;const f=ee(r);(d=f==null?void 0:f.play)==null||d.call(f)},pause:()=>{var d;const f=ee(r);(d=f==null?void 0:f.pause)==null||d.call(f)},mute:()=>{const f=ee(r),d=f==null?void 0:f.toggleMute;typeof d=="function"&&d(!0)},prev:()=>{const f=ee(r),d=f==null?void 0:f.prev;typeof d=="function"&&d()},next:()=>{const f=ee(r),d=f==null?void 0:f.next;typeof d=="function"&&d()},fullscreen:()=>{const f=ee(r),d=f==null?void 0:f.toggleFullscreen;typeof d=="function"&&d()},fullscreenOn:()=>{const f=ee(r),d=f==null?void 0:f.fullscreenOn;typeof d=="function"&&d()},fullScreenOff:()=>{const f=ee(r),d=f==null?void 0:f.fullscreenOff;typeof d=="function"&&d()},pip:()=>{const f=ee(r),d=f==null?void 0:f.togglePictureInPicture;typeof d=="function"&&d()},volume:(f=1)=>{const d=ee(r),h=d==null?void 0:d.setVolume;typeof h=="function"&&h(f*100)},uiHidden:()=>{const f=wr(r);f&&f.hide()},uiVisible:()=>{const f=wr(r);f&&f.show()},currentTime:(f=0)=>{const d=ee(r),h=d==null?void 0:d.seekTo;typeof h=="function"&&h(f)},controlBarActive:()=>{const f=Dy(r);f&&f()},controlBarDeactive:()=>{const f=Bc(r);f&&f()},layout:(f,d=!0)=>{tu(r,"isPaidTier")!==!1&&Wn(r,"layoutOverride",m=>{if(!d)return f;const y=m!=null?m:n.layout;return au(y,f)})},tokenChange:f=>{Wn(r,"playerOptions",d=>({...d!=null?d:{},token:f}))},changeUiMode:f=>{Wn(r,"uiMode",f!=null?f:null)},changePlayMode:f=>{Wn(r,"playMode",f!=null?f:null)}}),[r,n.layout]),v.jsx(X1,{scopeId:r,children:v.jsxs(J1,{scopeId:r,children:[v.jsx(RS,{}),v.jsx(VA,{...n,scopeId:r})]})})});Vc.displayName="ncplayer";const Ly=globalThis;Ly.process||(Ly.process={env:{}});let Vy,ci,OA=0;function Oc(n){if(!n)return{options:{},layout:void 0};const{layout:a,...s}=n;return{options:s,layout:a}}function NA(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 UA=(()=>{if(typeof document=="undefined")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(!ci){const u=NA(s.hostname);u&&(ci=u)}const r=s.searchParams.get("access_key");if(r)return r}catch(s){continue}return""})();function _A(n){return n||UA}const HA=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 kA(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 GA(n){return typeof n!="string"||n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.includes(" ")||n.includes(">")||n.includes(":")?n:typeof document!="undefined"&&document.getElementById(n)?`#${n}`:n}const Oy=T.forwardRef((n,a)=>v.jsx(Vc,{...n,ref:a}));Oy.displayName="VpePlayer";function Nc(n,a,s={}){var O,j,D,J,K;const r=typeof a=="string"?a:a==null?void 0:a.accessKey,u=typeof a=="string"?s:a!=null?a:{},f=HA(u)?u:{options:u},d=_A(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const h=typeof n=="string"?document.querySelector(n):n;if(!h)throw new Error("지정한 타겟을 찾을 수 없습니다.");const m=document.createElement("div");h.appendChild(m);const y=j1.createRoot(m),p=(O=f.scopeId)!=null?O:`vpe-${OA+=1}`,{options:S,layout:b}=Oc(f.options),M={...f,options:S,scopeId:p,layout:(D=(j=f.layout)!=null?j:b)!=null?D:Vy,platform:(J=f.platform)!=null?J:ci==null?void 0:ci.platform,stage:(K=f.stage)!=null?K:ci==null?void 0:ci.stage};let V={...S!=null?S:{}},w=M.layout,z=M.onEvent;const Y=tt=>{z&&z(tt)},X=(tt={})=>{if(tt.options){const{options:_,layout:N}=Oc(tt.options);V={...V,..._},N&&(w=N)}tt.onEvent&&(z=tt.onEvent),"layout"in tt&&(w=tt.layout);const{options:at,onEvent:L,layout:k,...W}=tt;y.render(v.jsx(Vc,{...M,...W,options:V,onEvent:Y,accessKey:d,layout:w}))};return X(),{destroy:()=>{y.unmount(),m.parentNode&&m.parentNode.removeChild(m)},container:m,render:X,scopeId:p,getLayout:()=>w,layout:(tt,at=!0)=>{if(tu(p,"isPaidTier")===!1)return;const k=at?au(w,tt):tt;X({layout:k})}}}class $a{constructor(a,s,r={}){$e(this,"destroy");$e(this,"container");$e(this,"render");$e(this,"scopeId");$e(this,"getLayout");const u=Nc(GA(a),s,r);this.destroy=u.destroy,this.container=u.container,this.render=u.render,this.scopeId=u.scopeId,this.getLayout=u.getLayout}static use(a){return kA(a),$a}static layout(a){return Vy=a,$a}static config(a){return ci=a,$a}play(){const a=ee(this.scopeId);if(a!=null&&a.play){a.play();return}}pause(){const a=ee(this.scopeId);if(a!=null&&a.pause){a.pause();return}}mute(){const a=ee(this.scopeId),s=a==null?void 0:a.toggleMute;if(typeof s=="function"){s(!0);return}}prev(){const a=ee(this.scopeId),s=a==null?void 0:a.prev;if(typeof s=="function"){s();return}}next(){const a=ee(this.scopeId),s=a==null?void 0:a.next;if(typeof s=="function"){s();return}}fullscreen(){const a=ee(this.scopeId),s=a==null?void 0:a.toggleFullscreen;if(typeof s=="function"){s();return}}fullscreenOn(){const a=ee(this.scopeId),s=a==null?void 0:a.fullscreenOn;if(typeof s=="function"){s();return}}fullScreenOff(){const a=ee(this.scopeId),s=a==null?void 0:a.fullscreenOff;if(typeof s=="function"){s();return}}pip(){const a=ee(this.scopeId),s=a==null?void 0:a.togglePictureInPicture;if(typeof s=="function"){s();return}}volume(a=1){const s=ee(this.scopeId),r=s==null?void 0:s.setVolume;if(typeof r=="function"){r(a*100);return}}uiHidden(){const a=wr(this.scopeId);a&&a.hide()}uiVisible(){const a=wr(this.scopeId);a&&a.show()}currentTime(a=0){const s=ee(this.scopeId),r=s==null?void 0:s.seekTo;if(typeof r=="function"){r(a);return}}controlBarActive(){const a=Dy(this.scopeId);a&&a()}controlBarDeactive(){const a=Bc(this.scopeId);a&&a()}tokenChange(a){this.render({options:{token:a}}),Wn(this.scopeId,"playerOptions",s=>({...s!=null?s:{},token:a}))}changeOptions(a){if(!a||typeof a!="object")return this;this.render({options:a});const{options:s}=Oc(a);return Wn(this.scopeId,"playerOptions",r=>({...r!=null?r:{},...s})),this}changeUiMode(a){return Wn(this.scopeId,"uiMode",a!=null?a:null),this}changePlayMode(a){return Wn(this.scopeId,"playMode",a!=null?a:null),this}layout(a,s=!0){if(tu(this.scopeId,"isPaidTier")===!1)return this;const u=s?au(this.getLayout(),a):a;return this.render({layout:u}),this}on(a,s){if(!(!a||typeof s!="function"))return pA(this.scopeId,a,s),()=>gA(this.scopeId,a,s)}}typeof window!="undefined"&&(window.vpe={...(Ny=window.vpe)!=null?Ny:{},setup:Nc},window.ncplayer=$a),Xe.Ncplayer=$a,Xe.VpePlayer=Oy,Xe.setup=Nc,Xe.useDeviceState=ru,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})}));
638
+ `),()=>{N.contains(w)&&N.removeChild(w)}},[a]),v.jsx(cM,{isPresent:a,childRef:d,sizeRef:h,children:T.cloneElement(n,{ref:p})})}const dM=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:m,root:y})=>{const p=du(hM),S=T.useId();let b=!0,M=T.useMemo(()=>(b=!1,{id:S,initial:a,isPresent:s,custom:u,onExitComplete:D=>{p.set(D,!0);for(const C of p.values())if(!C)return;r&&r()},register:D=>(p.set(D,!1),()=>p.delete(D))}),[s,p,r]);return f&&b&&(M={...M}),T.useMemo(()=>{p.forEach((D,C)=>p.set(C,!1))},[s]),T.useEffect(()=>{!s&&!p.size&&r&&r()},[s]),d==="popLayout"&&(n=v.jsx(fM,{isPresent:s,anchorX:h,anchorY:m,root:y,children:n})),v.jsx(rr.Provider,{value:M,children:n})};function hM(){return new Map}function ay(n=!0){const a=T.useContext(rr);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 Tr=n=>n.key||"";function ly(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const sy=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:m="top",root:y})=>{const[p,S]=ay(d),b=T.useMemo(()=>ly(n),[n]),M=d&&!p?[]:b.map(Tr),D=T.useRef(!0),C=T.useRef(b),j=du(()=>new Map),H=T.useRef(new Set),[F,A]=T.useState(b),[K,w]=T.useState(b);Nh(()=>{D.current=!1,C.current=b;for(let B=0;B<K.length;B++){const Q=Tr(K[B]);M.includes(Q)?(j.delete(Q),H.current.delete(Q)):j.get(Q)!==!0&&j.set(Q,!1)}},[K,M.length,M.join("-")]);const N=[];if(b!==F){let B=[...b];for(let Q=0;Q<K.length;Q++){const Z=K[Q],tt=Tr(Z);M.includes(tt)||(B.splice(Q,0,Z),N.push(Z))}return f==="wait"&&N.length&&(B=N),w(ly(B)),A(b),null}const{forceRender:V}=T.useContext(fu);return v.jsx(v.Fragment,{children:K.map(B=>{const Q=Tr(B),Z=d&&!p?!1:b===K||M.includes(Q),tt=()=>{if(H.current.has(Q))return;if(H.current.add(Q),j.has(Q))j.set(Q,!0);else return;let at=!0;j.forEach(L=>{L||(at=!1)}),at&&(V==null||V(),w(C.current),d&&(S==null||S()),r&&r())};return v.jsx(dM,{isPresent:Z,initial:!D.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:f,root:y,onExitComplete:Z?void 0:tt,anchorX:h,anchorY:m,children:B},Q)})})},ry=T.createContext({strict:!1}),oy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let uy=!1;function mM(){if(uy)return;const n={};for(const a in oy)n[a]={isEnabled:s=>oy[a].some(r=>!!s[r])};n0(n),uy=!0}function cy(){return mM(),tE()}function yM(n){const a=cy();for(const s in n)a[s]={...a[s],...n[s]};n0(a)}const pM=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 Er(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||pM.has(n)}let fy=n=>!Er(n);function gM(n){typeof n=="function"&&(fy=a=>a.startsWith("on")?!Er(a):n(a))}try{gM(require("@emotion/is-prop-valid").default)}catch(n){}function vM(n,a,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(fy(u)||s===!0&&Er(u)||!a&&!Er(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const Mr=T.createContext({});function bM(n,a){if(pr(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Ql(s)?s:void 0,animate:Ql(r)?r:void 0}}return n.inherit!==!1?a:{}}function SM(n){const{initial:a,animate:s}=bM(n,T.useContext(Mr));return T.useMemo(()=>({initial:a,animate:s}),[dy(a),dy(s)])}function dy(n){return Array.isArray(n)?n.join(" "):n}const bc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hy(n,a,s){for(const r in a)!Ye(a[r])&&!y0(r,s)&&(n[r]=a[r])}function xM({transformTemplate:n},a){return T.useMemo(()=>{const s=bc();return dc(s,a,n),Object.assign({},s.vars,s.style)},[a])}function TM(n,a){const s=n.style||{},r={};return hy(r,s,n),Object.assign(r,xM(n,a)),r}function EM(n,a){const s={},r=TM(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 my=()=>({...bc(),attrs:{}});function MM(n,a,s,r){const u=T.useMemo(()=>{const f=my();return p0(f,a,v0(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};hy(f,n.style,n),u.style={...f,...u.style}}return u}const AM=["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 Sc(n){return typeof n!="string"||n.includes("-")?!1:!!(AM.indexOf(n)>-1||/[A-Z]/u.test(n))}function wM(n,a,s,{latestValues:r},u,f=!1,d){const m=((d!=null?d:Sc(n))?MM:EM)(a,r,u,n),y=vM(a,typeof n=="string",f),p=n!==T.Fragment?{...y,...m,ref:s}:{},{children:S}=a,b=T.useMemo(()=>Ye(S)?S.get():S,[S]);return T.createElement(n,{...p,children:b})}function CM({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,u){return{latestValues:RM(s,r,u,n),renderState:a()}}function RM(n,a,s,r){const u={},f=r(n,{});for(const b in f)u[b]=Sr(f[b]);let{initial:d,animate:h}=n;const m=pr(n),y=t0(n);a&&y&&!m&&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"&&!yr(S)){const b=Array.isArray(S)?S:[S];for(let M=0;M<b.length;M++){const D=Zu(n,b[M]);if(D){const{transitionEnd:C,transition:j,...H}=D;for(const F in H){let A=H[F];if(Array.isArray(A)){const K=p?A.length-1:0;A=A[K]}A!==null&&(u[F]=A)}for(const F in C)u[F]=C[F]}}}return u}const yy=n=>(a,s)=>{const r=T.useContext(Mr),u=T.useContext(rr),f=()=>CM(n,a,r,u);return s?f():du(f)},DM=yy({scrapeMotionValuesFromProps:mc,createRenderState:bc}),jM=yy({scrapeMotionValuesFromProps:b0,createRenderState:my}),BM=Symbol.for("motionComponentSymbol");function zM(n,a,s){const r=T.useRef(s);T.useInsertionEffect(()=>{r.current=s});const u=T.useRef(null);return T.useCallback(f=>{var h;f&&((h=n.onMount)==null||h.call(n,f)),a&&(f?a.mount(f):a.unmount());const d=r.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(u.current=m)}else u.current?(u.current(),u.current=null):d(f);else d&&(d.current=f)},[a])}const py=T.createContext({});function Wl(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function LM(n,a,s,r,u,f){var A,K;const{visualElement:d}=T.useContext(Mr),h=T.useContext(ry),m=T.useContext(rr),y=T.useContext(vc),p=y.reducedMotion,S=y.skipAnimations,b=T.useRef(null),M=T.useRef(!1);r=r||h.renderer,!b.current&&r&&(b.current=r(n,{visualState:a,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,skipAnimations:S,isSVG:f}),M.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const D=b.current,C=T.useContext(py);D&&!D.projection&&u&&(D.type==="html"||D.type==="svg")&&VM(b.current,s,u,C);const j=T.useRef(!1);T.useInsertionEffect(()=>{D&&j.current&&D.update(s,m)});const H=s[Vm],F=T.useRef(!!H&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,H))&&((K=window.MotionHasOptimisedAnimation)==null?void 0:K.call(window,H)));return Nh(()=>{M.current=!0,D&&(j.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),F.current&&D.animationState&&D.animationState.animateChanges())}),T.useEffect(()=>{D&&(!F.current&&D.animationState&&D.animationState.animateChanges(),F.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,H)}),F.current=!1),D.enteringChildren=void 0)}),D}function VM(n,a,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:y,layoutCrossfade:p}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:gy(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&Wl(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:m,layoutRoot:y})}function gy(n){if(n)return n.options.allowProjection!==!1?n.projection:gy(n.parent)}function xc(n,{forwardMotionProps:a=!1,type:s}={},r,u){var y,p;r&&yM(r);const f=s?s==="svg":Sc(n),d=f?jM:DM;function h(S,b){let M;const D={...T.useContext(vc),...S,layoutId:OM(S)},{isStatic:C}=D,j=SM(S),H=d(S,C);if(!C&&Oh){NM();const F=UM(D);M=F.MeasureLayout,j.visualElement=LM(n,H,D,u,F.ProjectionNode,f)}return v.jsxs(Mr.Provider,{value:j,children:[M&&j.visualElement?v.jsx(M,{visualElement:j.visualElement,...D}):null,wM(n,S,zM(H,j.visualElement,b),H,C,a,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${(p=(y=n.displayName)!=null?y:n.name)!=null?p:""})`}`;const m=T.forwardRef(h);return m[BM]=n,m}function OM({layoutId:n}){const a=T.useContext(fu).id;return a&&n!==void 0?a+"-"+n:n}function NM(n,a){T.useContext(ry).strict}function UM(n){const a=cy(),{drag:s,layout:r}=a;if(!s&&!r)return{};const u={...s,...r};return{MeasureLayout:s!=null&&s.isEnabled(n)||r!=null&&r.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function _M(n,a){if(typeof Proxy=="undefined")return xc;const s=new Map,r=(f,d)=>xc(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,xc(d,void 0,n,a)),s.get(d))})}const kM=(n,a)=>{var r;return((r=a.isSVG)!=null?r:Sc(n))?new gE(a):new fE(a,{allowProjection:n!==T.Fragment})};class HM extends Gi{constructor(a){super(a),a.animationState||(a.animationState=TE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();yr(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(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let GM=0;class YM extends Gi{constructor(){super(...arguments),this.id=GM++}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 PM={animation:{Feature:HM},exit:{Feature:YM}};function $l(n){return{point:{x:n.pageX,y:n.pageY}}}const qM=n=>a=>ac(a)&&n(a,$l(a));function ts(n,a,s,r){return Jl(n,a,qM(s),r)}const vy=({current:n})=>n?n.ownerDocument.defaultView:null,by=(n,a)=>Math.abs(n-a);function FM(n,a){const s=by(n.x,a.x),r=by(n.y,a.y);return Math.sqrt(s**2+r**2)}const Sy=new Set(["auto","scroll"]);class xy{constructor(a,s,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=M=>{this.handleScroll(M.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Ec(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,C=FM(M.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!C)return;const{point:j}=M,{timestamp:H}=Ne;this.history.push({...j,timestamp:H});const{onStart:F,onMove:A}=this.handlers;D||(F&&F(this.lastMoveEvent,M),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,M)},this.handlePointerMove=(M,D)=>{this.lastMoveEvent=M,this.lastMoveEventInfo=Tc(D,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(M,D)=>{this.end();const{onEnd:C,onSessionEnd:j,resumeAnimation:H}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const F=Ec(M.type==="pointercancel"?this.lastMoveEventInfo:Tc(D,this.transformPagePoint),this.history);this.startEvent&&C&&C(M,F),j&&j(M,F)},!ac(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const m=$l(a),y=Tc(m,this.transformPagePoint),{point:p}=y,{timestamp:S}=Ne;this.history=[{...p,timestamp:S}];const{onSessionStart:b}=s;b&&b(a,Ec(y,this.history)),this.removeListeners=kl(ts(this.contextWindow,"pointermove",this.handlePointerMove),ts(this.contextWindow,"pointerup",this.handlePointerUp),ts(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const r=getComputedStyle(s);(Sy.has(r.overflowX)||Sy.has(r.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const s=this.scrollPositions.get(a);if(!s)return;const r=a===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},f={x:u.x-s.x,y:u.y-s.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(a,u),te.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ui(this.updatePoint)}}function Tc(n,a){return a?{point:a(n.point)}:n}function Ty(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Ec({point:n},a){return{point:n,delta:Ty(n,Ey(a)),offset:Ty(n,XM(a)),velocity:KM(a,.1)}}function XM(n){return n[0]}function Ey(n){return n[n.length-1]}function KM(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Ey(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>ui(a)));)s--;if(!r)return{x:0,y:0};const f=Cn(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 QM(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?ue(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?ue(s,n,r.max):Math.min(n,s)),n}function My(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 ZM(n,{top:a,left:s,bottom:r,right:u}){return{x:My(n.x,s,u),y:My(n.y,a,r)}}function Ay(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 IM(n,a){return{x:Ay(n.x,a.x),y:Ay(n.y,a.y)}}function JM(n,a){let s=.5;const r=Ze(n),u=Ze(a);return u>r?s=Hl(a.min,a.max-r,n.min):r>u&&(s=Hl(n.min,n.max-u,a.min)),$n(0,1,s)}function WM(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 Mc=.35;function $M(n=Mc){return n===!1?n=0:n===!0&&(n=Mc),{x:wy(n,"left","right"),y:wy(n,"top","bottom")}}function wy(n,a,s){return{min:Cy(n,a),max:Cy(n,s)}}function Cy(n,a){return typeof n=="number"?n:n[a]||0}const tA=new WeakMap;class eA{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=Re(),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=>{s?(this.stopAnimation(),this.snapToCursor($l(S).point)):this.pauseAnimation()},d=(S,b)=>{this.stopAnimation();const{drag:M,dragPropagation:D,onDragStart:C}=this.getProps();if(M&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kT(M),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rn(H=>{let F=this.getAxisMotionValue(H).get()||0;if(ti.test(F)){const{projection:A}=this.visualElement;if(A&&A.layout){const K=A.layout.layoutBox[H];K&&(F=Ze(K)*(parseFloat(F)/100))}}this.originPoint[H]=F}),C&&te.update(()=>C(S,b),!1,!0),Ju(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},h=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:M,dragDirectionLock:D,onDirectionLock:C,onDrag:j}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:H}=b;if(D&&this.currentDirection===null){this.currentDirection=nA(H),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",b.point,H),this.updateAxis("y",b.point,H),this.visualElement.render(),j&&te.update(()=>j(S,b),!1,!0)},m=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Rn(S=>{var b;return this.getAnimationState(S)==="paused"&&((b=this.getAxisMotionValue(S).animation)==null?void 0:b.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new xy(a,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:m,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:vy(this.visualElement),element:this.visualElement.current})}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&&te.postRender(()=>h(r,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,s,r){const{drag:u}=this.getProps();if(!r||!Ar(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=QM(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:a,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;a&&Wl(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=ZM(r.layoutBox,a):this.constraints=!1,this.elastic=$M(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Rn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=WM(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!Wl(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=lE(r,u.root,this.visualElement.getTransformPagePoint());let d=IM(u.layout.layoutBox,f);if(s){const h=s(nE(d));this.hasMutatedConstraints=!!h,h&&(d=a0(h))}return d}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},y=Rn(p=>{if(!Ar(p,s,this.currentDirection))return;let S=m&&m[p]||{};d&&(S={min:0,max:0});const b=u?200:1e6,M=u?40:1e7,D={type:"inertia",velocity:r?a[p]:0,bounceStiffness:b,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...f,...S};return this.startAxisValueAnimation(p,D)});return Promise.all(y).then(h)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return Ju(this.visualElement,a),r.start(Qu(a,r,0,s,this.visualElement,!1))}stopAnimation(){Rn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Rn(a=>{var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.pause()})}getAnimationState(a){var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.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){Rn(s=>{const{drag:r}=this.getProps();if(!Ar(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],m=f.get()||0;f.set(a[s]-ue(d,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Wl(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Rn(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();u[d]=JM({min:m,max:m},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(),Rn(d=>{if(!Ar(d,a,null))return;const h=this.getAxisMotionValue(d),{min:m,max:y}=this.constraints[d];h.set(ue(m,y,u[d]))})}addListeners(){if(!this.visualElement.current)return;tA.set(this.visualElement,this);const a=this.visualElement.current,s=ts(a,"pointerdown",m=>{const{drag:y,dragListener:p=!0}=this.getProps(),S=m.target,b=S!==a&&qT(S);y&&p&&!b&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();Wl(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),te.read(r);const d=Jl(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(Rn(p=>{const S=this.getAxisMotionValue(p);S&&(this.originPoint[p]+=m[p].translate,S.set(S.get()+m[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=Mc,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Ar(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function nA(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class iA extends Gi{constructor(a){super(a),this.removeGroupControls=wn,this.removeListeners=wn,this.controls=new eA(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wn}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ac=n=>(a,s)=>{n&&te.update(()=>n(a,s),!1,!0)};class aA extends Gi{constructor(){super(...arguments),this.removePointerDownListener=wn}onPointerDown(a){this.session=new xy(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vy(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Ac(a),onStart:Ac(s),onMove:Ac(r),onEnd:(f,d)=>{delete this.session,u&&te.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=ts(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let wc=!1;class lA 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),wc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,a.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),wc=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||te.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),ic.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=a;wc=!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 Ry(n){const[a,s]=ay(),r=T.useContext(fu);return v.jsx(lA,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(py),isPresent:a,safeToRemove:s})}const sA={pan:{Feature:aA},drag:{Feature:iA,ProjectionNode:ny,MeasureLayout:Ry}};function Dy(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&&te.postRender(()=>f(a,$l(a)))}class rA extends Gi{mount(){const{current:a}=this.node;a&&(this.unmount=HT(a,(s,r)=>(Dy(this.node,r,"Start"),u=>Dy(this.node,u,"End"))))}unmount(){}}class oA extends Gi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(s){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=kl(Jl(this.node.current,"focus",()=>this.onFocus()),Jl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jy(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&&te.postRender(()=>f(a,$l(a)))}class uA extends Gi{mount(){const{current:a}=this.node;a&&(this.unmount=XT(a,(s,r)=>(jy(this.node,r,"Start"),(u,{success:f})=>jy(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cc=new WeakMap,Rc=new WeakMap,cA=n=>{const a=Cc.get(n.target);a&&a(n)},fA=n=>{n.forEach(cA)};function dA({root:n,...a}){const s=n||document;Rc.has(s)||Rc.set(s,{});const r=Rc.get(s),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(fA,{root:n,...a})),r[u]}function hA(n,a,s){const r=dA(a);return Cc.set(n,s),r.observe(n),()=>{Cc.delete(n),r.unobserve(n)}}const mA={some:0,all:1};class yA extends Gi{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:mA[u]},h=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:p,onViewportLeave:S}=this.node.getProps(),b=y?p:S;b&&b(m)};return hA(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(pA(a,s))&&this.startObserver()}unmount(){}}function pA({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const gA={...PM,...{inView:{Feature:yA},tap:{Feature:uA},focus:{Feature:oA},hover:{Feature:rA}},...sA,...{layout:{ProjectionNode:ny,MeasureLayout:Ry}}},By=_M(gA,kM);function vA(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{var m;if(typeof window=="undefined"||!window.matchMedia)return;const r=(m=navigator==null?void 0:navigator.userAgent)!=null?m:"",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 zy={vod:{order:["top","upper","center","lower","bottom"],top:[{items:["MetaDesc"]},{wrapper:"Blank",items:[]},{items:["ShareBtn"]}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],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","lower","bottom"],top:[{items:["MetaDesc"]}],upper:[],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Ly={vod:{order:["top","upper","center","lower","bottom"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}],bottom:[{wrapper:"Blank",items:["SeekBar"],align:"center"}]},live:{order:["top","upper","center","lower","bottom"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],upper:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}],bottom:[{wrapper:"Blank",items:["SeekBar"],align:"center"}]}},Vy={live:{order:["top","center","lower","bottom"],top:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],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"}]},vod:{order:["top","center","lower","bottom"],top:[{wrapper:"Blank",items:[]}],center:[{items:["BigPlayBtn"],align:"center"}],lower:[{wrapper:"Blank",items:["SeekBar"],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"}]}},Dc=new Map,jc=new Map,Bc=new Map,zc=new Map,es=new Map;function bA(n,a){Dc.set(n,a)}function SA(n){Dc.delete(n)}function ne(n){return Dc.get(n)}function xA(n,a){jc.set(n,a)}function TA(n){jc.delete(n)}function Oy(n){return jc.get(n)}function EA(n,a){Bc.set(n,a)}function MA(n){Bc.delete(n)}function Lc(n){return Bc.get(n)}function AA(n,a){zc.set(n,a)}function wA(n){zc.delete(n)}function wr(n){return zc.get(n)}function CA(n,a,s){var f,d;const r=(f=es.get(n))!=null?f:new Map,u=(d=r.get(a))!=null?d:new Set;u.add(s),r.set(a,u),es.set(n,r)}function RA(n,a,s){const r=es.get(n);if(!r)return;const u=r.get(a);u&&(u.delete(s),u.size===0&&r.delete(a),r.size===0&&es.delete(n))}function Ny(n,a){var u,f;const s=es.get(n);if(!s)return;new Set([...(u=s.get(a.type))!=null?u:[],...(f=s.get("*"))!=null?f:[]]).forEach(d=>d(a))}const DA=768,ns={pc:{live:zy.live,vod:zy.vod},mobile:{live:Ly.live,vod:Ly.vod},fullscreen:{live:Vy.live,vod:Vy.vod}},jA={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 BA(n){var ft,St,Tt,At,De,Se,se,me,nn,je,hn,jt,Be,xe,Te,ze,Pe,fe,Xn;const[a,s]=Ha("isActive",!1),[r]=Ha("uiMode",null),[u]=Ha("playMode",null),[f]=Ha("isPremiere",!1),d=u==="live"?!0:u==="vod"?!1:null,h=T.useRef(null),m=T.useRef(!1),y=T.useRef(!1),p=T.useRef(0),S=T.useRef(null),b=((ft=n.options)==null?void 0:ft.controlActiveTime)||3e3,[M,D]=ee(),{isMobile:C,isPortrait:j}=vA();T.useEffect(()=>{d!==null&&M.isLive!==d&&D({isLive:d})},[d,M.isLive,D]);const H=Ce(),{togglePlay:F,useTouch:A}=H,[K,w]=T.useState(!1),N=(()=>{var Kn,yn,Dn,jn,pn,qe,gn;const lt=(Kn=n.layout)!=null?Kn:ns,Et=Bt=>!Bt||typeof Bt!="object"?!1:"top"in Bt||"upper"in Bt||"center"in Bt||"lower"in Bt||"bottom"in Bt||"order"in Bt,Xt=Bt=>!Bt||typeof Bt!="object"?!1:"live"in Bt||"vod"in Bt,Dt=(Bt,Fe)=>{var ei,Qn;const Ve=Xt(Bt)?Bt:Bt?{live:Bt,vod:Bt}:void 0,Ie=(ei=Ve==null?void 0:Ve.live)!=null?ei:Fe==null?void 0:Fe.live,an=(Qn=Ve==null?void 0:Ve.vod)!=null?Qn:Fe==null?void 0:Fe.vod;if(!(!Ie&&!an))return{live:Ie,vod:an}},kt=(Bt,Fe)=>{var Ve,Ie;if(Bt)return(Ie=(Ve=Fe?Bt.live:Bt.vod)!=null?Ve:Bt.vod)!=null?Ie:Bt.live};if(Et(lt))return lt;const ie=lt,Jt={pc:Dt(ns.pc),mobile:Dt(ns.mobile),fullscreen:Dt(ns.fullscreen)},Yt={pc:Dt(ie.pc,Jt.pc),mobile:Dt(ie.mobile,Jt.mobile),fullscreen:Dt(ie.fullscreen,Jt.fullscreen),breakpoint:ie.breakpoint},wt=r&&Yt[r]?r:null,ye=wt?null:M.isFullscreen&&Yt.fullscreen?"fullscreen":null,re=(qe=(pn=(jn=(Dn=(yn=wt?Yt[wt]:void 0)!=null?yn:ye?Yt[ye]:void 0)!=null?Dn:K?Yt.mobile:Yt.pc)!=null?jn:Yt.pc)!=null?pn:Yt.mobile)!=null?qe:Yt.fullscreen,mn=d!=null?d:!!M.isLive;return(gn=kt(re,mn))!=null?gn:jA})(),V=C||y.current||M.isEnded,[B,Q]=T.useState(!0),Z=(St=n.options)==null?void 0:St.override,tt=T.useCallback(()=>{var lt;if(B){if(typeof(Z==null?void 0:Z.nextSource)=="function"){Z.nextSource(),Q(!1);return}(lt=n.next)==null||lt.call(n),Q(!1)}},[n.next,Q,B,Z==null?void 0:Z.nextSource]),at=T.useCallback(()=>{var lt;if(B){if(typeof(Z==null?void 0:Z.prevSource)=="function"){Z.prevSource(),Q(!1);return}(lt=n.prev)==null||lt.call(n),Q(!1)}},[n.prev,Q,B,Z==null?void 0:Z.prevSource]);T.useEffect(()=>{if(!V){Q(!1);return}Q(!1)},[V]);const L=T.useCallback(()=>{h.current!==null&&(window.clearTimeout(h.current),h.current=null)},[]),G=T.useCallback(()=>{L(),h.current=window.setTimeout(()=>{s(!1),m.current=!0,h.current=null,Q(!1)},b)},[L,s,b]),W=T.useCallback(()=>{m.current=!1,p.current=Date.now(),s(!0),G()},[s,G]),_=T.useCallback(()=>{L(),m.current=!0,s(!1)},[L,s]),O=T.useMemo(()=>({...H,next:tt,prev:at}),[H,tt,at]);T.useEffect(()=>{const lt=n.scopeId;if(lt)return bA(lt,O),()=>SA(lt)},[n.scopeId,O]),T.useEffect(()=>{const lt=n.scopeId;if(lt)return xA(lt,W),()=>TA(lt)},[n.scopeId,W]),T.useEffect(()=>{const lt=n.scopeId;if(lt)return EA(lt,_),()=>MA(lt)},[n.scopeId,_]);const Y=()=>{m.current=!1,p.current=Date.now(),a||s(!0),G()},rt=()=>{m.current||Y()};T.useEffect(()=>{var Jt,Yt;if(typeof window=="undefined")return;const lt=(Jt=n.layout)!=null?Jt:ns;if((wt=>!wt||typeof wt!="object"?!1:"top"in wt||"upper"in wt||"center"in wt||"lower"in wt||"bottom"in wt||"order"in wt)(lt)){w(!1);return}const Dt=(Yt=lt.breakpoint)!=null?Yt:DA,kt=window.matchMedia(`(max-width: ${Dt}px)`),ie=()=>w(kt.matches||C);return ie(),typeof kt.addEventListener=="function"?(kt.addEventListener("change",ie),()=>kt.removeEventListener("change",ie)):(kt.addListener(ie),()=>kt.removeListener(ie))},[n.layout,C]);const st=lt=>[lt.top,lt.upper,lt.center,lt.lower,lt.bottom].some(Xt=>{var Dt;return(Dt=Xt==null?void 0:Xt.some(kt=>{var Jt;return((Jt=kt.items)!=null&&Jt.length?kt.items:["Blank"]).includes("SeekBar")}))!=null?Dt:!1}),pt=T.useMemo(()=>new Set(["PlayBtn","VolumeBtn","TimeBtn","SubtitleBtn","FullscreenBtn","SettingBtn","PipBtn","MetaDesc","BigPlayBtn","SeekBar","SettingModal","DurationBtn","SkipForwardBtn","SkipBackBtn","CurrentTimeBtn","MuteBtn","PrevBtn","NextBtn","NextPrevBtn","Blank","ShareBtn"]),[]),E=(lt,Et)=>{var Dt,kt,ie,Jt,Yt,wt,ye,re,mn,Kn,yn,Dn,jn,pn,qe,gn,Bt,Fe,Ve,Ie,an,ei,Qn,Yi,Pi,fi,di,qi,ut,dt,ht,gt,Ht,Wt,Bn,Pt,ni,ln,zn,Ln,Vn,Fi,hi,pe,as,ls,ii,mi,Br,ss,rs,zr,xa,Ta,On,Je,os,Lr,Wa,us,Ea,Vr,We,$a,cs;if(typeof lt!="string")return T.isValidElement(lt)?T.cloneElement(lt,{pos:Et}):lt;if(!pt.has(lt))return/<[^>]+>/.test(lt)?v.jsx("span",{dangerouslySetInnerHTML:{__html:lt}}):v.jsx("span",{children:lt});if(!((kt=(Dt=n.options)==null?void 0:Dt.controlBtn)!=null&&kt.play&&((ie=n.playlistCnt)!=null?ie:0)>1)){if(lt==="NextPrevBtn"||lt==="NextBtn"||lt==="PrevBtn")return}switch(lt){case"PlayBtn":return v.jsx(v.Fragment,{children:((Yt=(Jt=n.options)==null?void 0:Jt.controlBtn)==null?void 0:Yt.play)&&v.jsx(rS,{isMobile:C,isPortrait:j,pos:Et,text:{play:(ye=(wt=n.t)==null?void 0:wt.call(n,"common.play"))!=null?ye:"재생",pause:(mn=(re=n.t)==null?void 0:re.call(n,"common.pause"))!=null?mn:"일시정지"},options:n.options})});case"VolumeBtn":return v.jsx(v.Fragment,{children:((yn=(Kn=n.options)==null?void 0:Kn.controlBtn)==null?void 0:yn.volume)&&v.jsx(bS,{isMobile:C,isPortrait:j,pos:Et,text:{muteOn:(jn=(Dn=n.t)==null?void 0:Dn.call(n,"common.muteOn"))!=null?jn:"음소거",muteOff:(qe=(pn=n.t)==null?void 0:pn.call(n,"common.muteOff"))!=null?qe:"음소거 해제"}})});case"MuteBtn":return v.jsx(v.Fragment,{children:((Bt=(gn=n.options)==null?void 0:gn.controlBtn)==null?void 0:Bt.volume)&&v.jsx(Bh,{isMobile:C,isPortrait:j,pos:Et,text:{muteOn:(Ve=(Fe=n.t)==null?void 0:Fe.call(n,"common.muteOn"))!=null?Ve:"음소거",muteOff:(an=(Ie=n.t)==null?void 0:Ie.call(n,"common.muteOff"))!=null?an:"음소거 해제"}})});case"ShareBtn":return navigator.share?v.jsx(v.Fragment,{children:v.jsx(AS,{isMobile:C,isPortrait:j,pos:Et})}):null;case"CurrentTimeBtn":return v.jsx(v.Fragment,{children:((Qn=(ei=n.options)==null?void 0:ei.controlBtn)==null?void 0:Qn.times)&&v.jsx(fS,{isMobile:C,isPortrait:j,pos:Et})});case"DurationBtn":return v.jsx(v.Fragment,{children:((Pi=(Yi=n.options)==null?void 0:Yi.controlBtn)==null?void 0:Pi.times)&&v.jsx(dS,{isMobile:C,isPortrait:j,pos:Et})});case"TimeBtn":return v.jsx(v.Fragment,{children:((di=(fi=n.options)==null?void 0:fi.controlBtn)==null?void 0:di.times)&&v.jsx(cS,{isMobile:C,isPortrait:j,pos:Et})});case"SubtitleBtn":return M.hasSubtitle?v.jsx(v.Fragment,{children:((ut=(qi=n.options)==null?void 0:qi.controlBtn)==null?void 0:ut.subtitle)||M.hasSubtitle&&v.jsx(vS,{isMobile:C,isPortrait:j,pos:Et,text:{captionOn:(ht=(dt=n.t)==null?void 0:dt.call(n,"common.captionOn"))!=null?ht:"자막켜기",captionOff:(Ht=(gt=n.t)==null?void 0:gt.call(n,"common.captionOff"))!=null?Ht:"자막 끄기"}})}):null;case"FullscreenBtn":return v.jsx(v.Fragment,{children:((Bn=(Wt=n.options)==null?void 0:Wt.controlBtn)==null?void 0:Bn.fullscreen)&&v.jsx(gS,{isMobile:C,isPortrait:j,pos:Et,options:n.options,text:{fullOn:(ni=(Pt=n.t)==null?void 0:Pt.call(n,"common.fullOn"))!=null?ni:"전체화면",fullOff:(zn=(ln=n.t)==null?void 0:ln.call(n,"common.fullOff"))!=null?zn:"전체화면 해제"}})});case"PipBtn":return v.jsx(v.Fragment,{children:((Vn=(Ln=n.options)==null?void 0:Ln.controlBtn)==null?void 0:Vn.pictureInPicture)&&v.jsx(ES,{isMobile:C,isPortrait:j,pos:Et,options:n.options,text:{miniPlayer:(hi=(Fi=n.t)==null?void 0:Fi.call(n,"common.miniPlayer"))!=null?hi:"미니플레이어"}})});case"NextPrevBtn":return v.jsx(v.Fragment,{children:((as=(pe=n.options)==null?void 0:pe.controlBtn)==null?void 0:as.play)&&((ls=n.playlistCnt)!=null?ls:0)>1&&v.jsx(yS,{isMobile:C,isPortrait:j,pos:Et,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:at,next:tt})});case"PrevBtn":return v.jsx(v.Fragment,{children:((mi=(ii=n.options)==null?void 0:ii.controlBtn)==null?void 0:mi.play)&&((Br=n.playlistCnt)!=null?Br:0)>1&&v.jsx(Rh,{isMobile:C,isPortrait:j,pos:Et,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:at})});case"NextBtn":return v.jsx(v.Fragment,{children:((rs=(ss=n.options)==null?void 0:ss.controlBtn)==null?void 0:rs.play)&&((zr=n.playlistCnt)!=null?zr:0)>1&&v.jsx(Dh,{isMobile:C,isPortrait:j,pos:Et,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,next:tt})});case"SkipBackBtn":return v.jsx("span",{style:{display:"contents"},onClickCapture:()=>{var yi;(yi=n.onAction)==null||yi.call(n,"skipBack")},children:v.jsx(hS,{isMobile:C,isPortrait:j,pos:Et,options:n.options})});case"SkipForwardBtn":return v.jsx("span",{style:{display:"contents"},onClickCapture:()=>{var yi;(yi=n.onAction)==null||yi.call(n,"skipForward")},children:v.jsx(mS,{isMobile:C,isPortrait:j,pos:Et,options:n.options})});case"MetaDesc":return v.jsx(v.Fragment,{children:!((xa=n.options)!=null&&xa.descriptionNotVisible)&&v.jsx(pS,{title:(Ta=n.metaTitle)!=null?Ta:"",profileImage:(On=n.profileImage)!=null?On:"",profileName:(Je=n.profileName)!=null?Je:"",createdAt:(os=n.createdAt)!=null?os:"",isMobile:C,isPortrait:j,pos:Et})});case"BigPlayBtn":return V?v.jsx(uS,{isMobile:C,isPortrait:j,prev:at,next:tt,pidx:n.pidx,playlistCnt:n.playlistCnt,isActive:a,isAnimationComplete:B}):null;case"SeekBar":return v.jsx(v.Fragment,{children:((Wa=(Lr=n.options)==null?void 0:Lr.controlBtn)==null?void 0:Wa.progressBar)&&!f&&v.jsx(fh,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,pos:Et,color:(us=n.options)==null?void 0:us.progressBarColor,seekingPreview:((Ea=n.options)==null?void 0:Ea.seekingPreview)&&!n.isDrmPlayback})});case"SettingBtn":return v.jsx(v.Fragment,{children:((We=(Vr=n.options)==null?void 0:Vr.controlBtn)==null?void 0:We.setting)&&v.jsx(TS,{isMobile:C,isPortrait:j,pos:Et,text:{setting:(cs=($a=n.t)==null?void 0:$a.call(n,"common.setting"))!=null?cs:"설정"}})});case"Blank":return v.jsx(jh,{});default:return null}},k=(lt,Et,Xt,Dt)=>{var ye,re;const kt=(ye=lt.key)!=null?ye:`${Et}-${Dt!=null?Dt:0}`,Jt=((re=lt.items)!=null&&re.length?lt.items:["Blank"]).map((mn,Kn)=>{const yn=E(mn,Xt);return yn?v.jsx(T.Fragment,{children:yn},`${Et}-${kt}-${mn}-${Kn}`):null}).filter(mn=>mn!==null);if(!Jt.length)return null;if(lt.wrapper==="Blank")return v.jsx(jh,{align:lt==null?void 0:lt.align,style:lt==null?void 0:lt.style,children:Jt},`${Et}-${kt}`);if(lt.wrapper==="Group")return v.jsx(_l,{noPadding:!(Jt.length>1),cap:lt.cap,style:lt==null?void 0:lt.style,children:Jt},`${Et}-${kt}`);const wt={display:"flex",alignItems:"center",justifyContent:lt!=null&&lt.align?(lt==null?void 0:lt.align)=="left"?"start":(lt==null?void 0:lt.align)=="right"?"end":"center":"start"};return v.jsx("div",{style:{...wt,...lt==null?void 0:lt.style},children:Jt},`${Et}-${kt}`)},J=(lt,Et)=>{if(!(lt!=null&&lt.length))return null;if(Et!=="bottom")return lt.map((Dt,kt)=>k(Dt,Et,void 0,kt));let Xt="left";return lt.map((Dt,kt)=>{var wt;const ie=(wt=Dt.items)!=null&&wt.length?Dt.items:["Blank"],Jt=Dt.wrapper==="Blank"||ie.includes("Blank"),Yt=k(Dt,Et,Xt,kt);return Jt&&(Xt="right"),Yt})},nt=!st(N),ct=(Tt=N.order)!=null?Tt:["top","upper","center","seekbar","lower","bottom"],ot=()=>{var lt,Et,Xt,Dt;return nt?v.jsx("div",{children:v.jsx(v.Fragment,{children:((Et=(lt=n.options)==null?void 0:lt.controlBtn)==null?void 0:Et.progressBar)&&v.jsx(fh,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,color:(Xt=n.options)==null?void 0:Xt.progressBarColor,seekingPreview:((Dt=n.options)==null?void 0:Dt.seekingPreview)&&!n.isDrmPlayback})})}):null};return T.useEffect(()=>{C&&(y.current=!0)},[C]),T.useEffect(()=>{var lt;if(S.current===null){S.current=a;return}S.current!==a&&(S.current=a,(lt=n.onControlBarActiveChange)==null||lt.call(n,a))},[a,n.onControlBarActiveChange]),v.jsxs(v.Fragment,{children:[M.isLoading&&v.jsx(cu,{poster:n.poster,options:n.options}),M.isWaiting&&v.jsx(cu,{}),M.isSettingModal&&v.jsx(zS,{text:{setting:(De=(At=n.t)==null?void 0:At.call(n,"common.setting"))!=null?De:"세팅",auto:(se=(Se=n.t)==null?void 0:Se.call(n,"common.auto"))!=null?se:"자동",notUse:(nn=(me=n.t)==null?void 0:me.call(n,"common.notUse"))!=null?nn:"사용안함",quality:(hn=(je=n.t)==null?void 0:je.call(n,"settings.quality"))!=null?hn:"해상도",autoplay:(Be=(jt=n.t)==null?void 0:jt.call(n,"settings.autoplay"))!=null?Be:"자동재생",playbackRate:(Te=(xe=n.t)==null?void 0:xe.call(n,"settings.playbackRate"))!=null?Te:"재생 속도",captions:(Pe=(ze=n.t)==null?void 0:ze.call(n,"settings.captions"))!=null?Pe:"자막"},vtt:(fe=n.src)==null?void 0:fe.vtt,options:n.options}),!M.isLoading&&v.jsx(v.Fragment,{children:M.initPlay?v.jsxs("div",{style:{height:"100%"},onClick:()=>{C||(A(),L(),G())},onMouseEnter:()=>{C||rt()},onMouseMove:()=>{C||Y()},onTouchEnd:()=>{A(),Y(),L(),G()},onMouseLeave:()=>{L(),G(),m.current=!1},children:[C&&v.jsx(BS,{onSingleTap:()=>{Y(),L(),G()}}),v.jsx(sy,{children:!a&&!((Xn=n.options)!=null&&Xn.startMutedInfoNotVisible)&&(M==null?void 0:M.isMuted)&&v.jsx(By.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{position:"absolute",width:"100%",height:"100%",padding:C?"0.9rem":"1.3rem",display:"flex",justifyContent:"start",alignItems:"start"},children:v.jsx("div",{style:{backgroundColor:"rgba(0,0,0,0.3)",color:"#ffffff",fontSize:"0.8rem",borderRadius:"100px",display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",aspectRatio:"1/1",width:C?"2rem":"2.5rem"},children:v.jsx("div",{children:v.jsx(Bh,{size:C?"1.2rem":"1.5rem"})})})})}),v.jsx(sy,{children:(a||M.isEnded)&&v.jsx(By.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.45rem",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%)"},onAnimationComplete:()=>{Q(!0)},children:ct.map(lt=>lt==="top"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:J(N.top,"top")},"layout-top"):lt==="upper"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:J(N.upper,"upper")},"layout-upper"):lt==="center"?v.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!C&&!j&&F(),y.current=!0},onMouseLeave:()=>{y.current=!1},children:J(N.center,"center")},"layout-center"):lt==="seekbar"?v.jsx("div",{children:v.jsx(T.Fragment,{children:ot()})},"layout-seekbar"):lt==="lower"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:J(N.lower,"lower")},"layout-lower"):lt==="bottom"?v.jsx("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:J(N.bottom,"bottom")},"layout-bottom"):null)})})]}):v.jsx(CS,{poster:n.poster,options:n.options})})]})}const Cr="com.widevine.alpha",Rr="com.microsoft.playready",is="com.apple.fps",Vc=n=>{var a,s;return(s=(a=n.split("#")[0])==null?void 0:a.split("?")[0])!=null?s:""},Oc=n=>n?n.trim().replace(/^[?&]+/,""):"",Dr=(n,a)=>{const s=Oc(a);if(!s||n.includes(s))return n;const[r,u]=n.split("#"),f=r.includes("?"),d=r.endsWith("?")||r.endsWith("&")?"":f?"&":"?",h=`${r}${d}${s}`;return u?`${h}#${u}`:h},zA=(n,a)=>{if(!(n!=null&&n.file))return n;const s=Dr(n.file,a);return s===n.file?n:{...n,file:s}},jr=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},LA=n=>{if(!(!(n!=null&&n.drm)||typeof n.drm!="object"))return n.drm},VA=n=>{const a=n==null?void 0:n[is];if(a!=null&&a.licenseUri)return{keySystem:is,licenseUrl:a.licenseUri,licenseHeaders:jr(a.licenseRequestHeader),certificateUrl:a.certificateUri,certificateHeaders:jr(a.certificateRequestHeader)}},OA=n=>{if(!n)return;const a={},s=n[Cr];s!=null&&s.licenseUri&&(a[Cr]={serverURL:s.licenseUri,httpRequestHeaders:jr(s.licenseRequestHeader)});const r=n[Rr];return r!=null&&r.licenseUri&&(a[Rr]={serverURL:r.licenseUri,httpRequestHeaders:jr(r.licenseRequestHeader)}),Object.keys(a).length>0?a:void 0},NA=n=>{var u,f,d,h,m,y;if(!(n!=null&&n.drm))return;const a=n.drm;return typeof globalThis.WebKitMediaKeys!="undefined"&&((u=a[is])!=null&&u.src)?(f=a[is])==null?void 0:f.src:(d=a[Cr])!=null&&d.src?(h=a[Cr])==null?void 0:h.src:(m=a[Rr])!=null&&m.src?(y=a[Rr])==null?void 0:y.src:Object.values(a).map(p=>p==null?void 0:p.src).find(Boolean)},UA=n=>{if(!n||n.file)return n;const a=NA(n);return a?{...n,file:a}:n},_A=(n,a,s)=>{var m,y;if(!n)return;const r=Oc(a);n.__vpeTokenValue=r,n.__vpeDrmConfig=s;const u=(y=(m=n.DefaultConfig)!=null?m:n.defaultConfig)!=null?y:n.DefaultConfig={};if(s!=null&&s.licenseUrl?(u.emeEnabled=!0,u.drmSystems={[s.keySystem]:{licenseUrl:s.licenseUrl,serverCertificateUrl:s.certificateUrl}}):(u.emeEnabled=!1,u.drmSystems={}),n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const f=u.xhrSetup,d=u.fetchSetup,h=u.licenseXhrSetup;u.xhrSetup=(p,S)=>{const b=n.__vpeDrmConfig,M=Dr(S,n.__vpeTokenValue);M!==S&&p.open("GET",M,!0);const D=b==null?void 0:b.certificateUrl;if(D&&Vc(M)===Vc(D)&&b.certificateHeaders&&Object.entries(b.certificateHeaders).forEach(([C,j])=>{p.setRequestHeader(C,j)}),f)return f(p,M)},u.fetchSetup=(p,S)=>{const b=Dr(p.url,n.__vpeTokenValue),M=b===p.url?p:{...p,url:b};return d?d(M,S):typeof Request!="undefined"?new Request(M.url,S):M.url},u.licenseXhrSetup=(p,S,b,M)=>{const D=n.__vpeDrmConfig;return D!=null&&D.licenseHeaders&&Object.entries(D.licenseHeaders).forEach(([C,j])=>{p.setRequestHeader(C,j)}),h?h(p,S,b,M):M}},kA=(n,a,s)=>{if(!(n!=null&&n.MediaPlayer))return;const r=Oc(a);if(n.__vpeTokenValue=r,n.__vpeDrmConfig=s,n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const u=n.MediaPlayer.bind(n);n.MediaPlayer=(...f)=>{const d=u(...f);if(!(d!=null&&d.create)||d.__vpeTokenPatched)return d;d.__vpeTokenPatched=!0;const h=d.create.bind(d);return d.create=(...m)=>{const y=h(...m),p=n.__vpeTokenValue,S=n.__vpeDrmConfig;return p&&typeof(y==null?void 0:y.extend)=="function"&&y.extend("RequestModifier",{modifyRequestURL:b=>Dr(b,p),modifyRequestHeader:b=>b},!0),S&&typeof(y==null?void 0:y.setProtectionData)=="function"&&y.setProtectionData(S),y},d}};function HA({onEvent:n,isInitialized:a,playlist:s,pidx:r,onStateSnapshot:u,vpe:f,scopeId:d}){const[h]=ee(),m=T.useRef(null),y=T.useRef(null),p=T.useRef(!1),S=T.useCallback((b,M,D)=>{const C=h!=null?h:{};f!=null&&f.playerStateReport&&f.playerStateReport({type:b,state:C,prevState:D,data:M});const j={type:b,state:C,prevState:D,data:M},H=f!=null&&f.isPaidTier?f.isPaidTier():!0;n&&H&&n(j),d&&Ny(d,j)},[n,h,f,d]);return T.useEffect(()=>{u&&u(h!=null?h:{})},[h,u]),T.useEffect(()=>{const b=h!=null?h:{},M=m.current;m.current=b,M&&M!==b&&(S("stateChange",void 0,M),M.isPlaying!==b.isPlaying&&typeof b.isPlaying=="boolean"&&S(b.isPlaying?"play":"pause",void 0,M),M.isFullscreen!==b.isFullscreen&&typeof b.isFullscreen=="boolean"&&S(b.isFullscreen?"fullscreen":"fullscreenExit",void 0,M),M.isLoading!==b.isLoading&&typeof b.isLoading=="boolean"&&S(b.isLoading?"loadingStart":"loadingEnd",void 0,M),M.isWaiting!==b.isWaiting&&typeof b.isWaiting=="boolean"&&S(b.isWaiting?"bufferingStart":"bufferingEnd",void 0,M))},[h,S]),T.useEffect(()=>{!a||p.current||(p.current=!0,S("ready",{playlist:s}))},[a,s.length,S]),T.useEffect(()=>{const b=y.current;if(y.current=r,b===null||b===r)return;const M={from:b,to:r,total:s.length,item:s[r]};S("playlistChange",M),S(r>b?"next":"prev",M)},[r,s,S]),null}const GA=["stateChange","ready","play","pause","ended","fullscreen","fullscreenExit","loadingStart","loadingEnd","bufferingStart","bufferingEnd","seeking","seeked","waiting","volumechange","timeupdate","controlbarActive","controlbarDeactive","next","prev","skipForward","skipBack","playlistChange","error"],YA=n=>GA.includes(n);function PA(n){var r,u;if(!n)return{startTimeText:null,timeInfoText:null,startTimeMs:null};if(typeof n=="string"){const f=Date.parse(n);return{startTimeText:n,timeInfoText:null,startTimeMs:Number.isNaN(f)?null:f}}const a=(r=n.startTime)!=null?r:null,s=a?Date.parse(a):NaN;return{startTimeText:a,timeInfoText:(u=n.timeInfoText)!=null?u:null,startTimeMs:Number.isNaN(s)?null:s}}function qA(n){const a=Math.max(0,Math.floor(n)),s=Math.floor(a/86400);if(s>0)return`${s}일`;const r=Math.floor(a/3600),u=Math.floor(a%3600/60),f=a%60;return r>0?`${String(r).padStart(2,"0")}:${String(u).padStart(2,"0")}:${String(f).padStart(2,"0")}`:`${String(u).padStart(2,"0")}:${String(f).padStart(2,"0")}`}function FA(n){var pn,qe,gn,Bt,Fe,Ve,Ie,an,ei,Qn,Yi,Pi,fi,di,qi;const{accessKey:a,platform:s="pub",stage:r="prod",isDev:u=!1,hls:f,dashjs:d,options:h,layout:m,scopeId:y}=n,[p,S]=T.useState(null),[b,M]=ee(),[D,C]=T.useState([]),[j,H]=T.useState(!1),F=T.useMemo(()=>{if(!h)return{};const{layout:ut,...dt}=h;return dt},[h]),[A,K]=Ha("playerOptions",F),[w,N]=Ha("layoutOverride",m),V=T.useMemo(()=>{var ut,dt,ht,gt;return(gt=(ht=(dt=(ut=A==null?void 0:A.startTime)!=null?ut:h==null?void 0:h.startTime)!=null?dt:A==null?void 0:A.setStartTime)!=null?ht:h==null?void 0:h.setStartTime)!=null?gt:null},[A==null?void 0:A.startTime,h==null?void 0:h.startTime,A==null?void 0:A.setStartTime,h==null?void 0:h.setStartTime]),{startTimeText:B,timeInfoText:Q,startTimeMs:Z}=T.useMemo(()=>PA(V),[V]),[tt,at]=T.useState(!1),[L,G]=T.useState(""),[W,_]=T.useState(null),[O,Y]=T.useState({errorCode:null,errorMessage:null,errorTitle:null}),[rt,st]=T.useState(!1),[pt,E]=T.useState(!1),[k,J]=T.useState(0),[nt,ct]=T.useState(0),ot=T.useRef(null),ft=T.useRef(!1),St=T.useRef(!1),Tt=T.useRef(!1),At=T.useRef(null),De=T.useRef(null),Se=T.useRef(null),se=typeof window!="undefined"&&window.location.host||"local";T.useEffect(()=>{var ut;if(j){if(p&&!((ut=p.isPaidTier)!=null&&ut.call(p))){N(void 0);return}N(m)}},[m,N,p,j]),T.useEffect(()=>{var ut;if(m===void 0&&h!=null&&h.layout&&j){if(p&&!((ut=p.isPaidTier)!=null&&ut.call(p))){N(void 0);return}N(h.layout)}},[m,h==null?void 0:h.layout,N,p,j]),T.useEffect(()=>{if(!Z){at(!1),_(null),Tt.current=!1;return}const ut=Date.now(),dt=b.duration,gt=typeof dt=="number"&&Number.isFinite(dt)&&dt>0?Z+dt*1e3:null;if(Tt.current=!!(gt&&gt>ut),Z>ut){at(!0);const Ht=()=>{const Pt=Q!=null?Q:(()=>{var zn;const ln=(zn=p==null?void 0:p.$t)==null?void 0:zn.call(p,"alternative.startPlay");return typeof ln=="string"?ln:"{timeTxt}"})(),ni=Math.max(0,Math.floor((Z-Date.now())/1e3));_(Pt.replace("{timeTxt}",qA(ni)))};Ht();const Wt=window.setInterval(Ht,1e3),Bn=window.setTimeout(()=>{at(!1)},Math.max(0,Z-ut));return()=>{window.clearInterval(Wt),window.clearTimeout(Bn)}}at(!1),_(null)},[Z,Q,p,b.duration]),T.useEffect(()=>{var dt,ht;if(!y||!p||!j)return;const ut=(ht=(dt=p==null?void 0:p.isPaidTier)==null?void 0:dt.call(p))!=null?ht:!0;Wn(y,"isPaidTier",ut)},[y,p,j]),T.useEffect(()=>{if(!a)return;const ut=new I1({accessKey:a,appId:se,platform:s,stage:r,isDev:u});S(ut)},[a,se,s,r,u]);const me=T.useCallback((ut,dt,ht)=>{var Pt,ni,ln,zn,Ln;const gt=(Pt=Se.current)!=null?Pt:{};p!=null&&p.playerStateReport&&p.playerStateReport({type:ut,state:gt,prevState:ht,data:dt});const Ht={type:ut,state:gt,prevState:ht,data:dt},Wt=(ln=(ni=p==null?void 0:p.isPaidTier)==null?void 0:ni.call(p))!=null?ln:!0;if(ut==="error"&&Wt){const Vn=(zn=A==null?void 0:A.override)==null?void 0:zn.error;typeof Vn=="function"&&Vn((Ln=Ht.data)!=null?Ln:Ht)}const Bn=Wt;n.onEvent&&Bn&&n.onEvent(Ht),y&&Ny(y,Ht)},[n.onEvent,p,y,A]),nn=T.useCallback((ut,dt)=>{if(YA(ut)){if(ut==="ended"){if(D.length>1){if(nt<D.length-1)E(!0),re(5);else if(A.loop&&y){ct(0);const ht=ne(y),gt=ht==null?void 0:ht.seekTo,Ht=ht==null?void 0:ht.play;gt&&gt(0),Ht&&Ht()}}else if(A.loop&&y){const ht=ne(y),gt=ht==null?void 0:ht.seekTo,Ht=ht==null?void 0:ht.play;gt&&gt(0),Ht&&Ht()}}me(ut,dt)}},[me,nt,A.loop,D.length,y,E,pt]),je=T.useCallback((ut,dt)=>{st(!0),Y(ut),me("error",{...dt,...ut})},[me]);T.useEffect(()=>{if(!p||j||rt)return;(async()=>{var dt,ht;if(await p.initialize(),p.isInitialized()){const gt=p.getValidatedOptions(h);K(gt),C((gt==null?void 0:gt.playlist)||[]),H(!0)}else{const gt=p.setErrorRun("E0001");je({errorCode:gt==null?void 0:gt.errorCode,errorMessage:(dt=gt==null?void 0:gt.errorMessage)==null?void 0:dt.desc,errorTitle:(ht=gt==null?void 0:gt.errorMessage)==null?void 0:ht.title});return}})()},[p,j,h,K,je,rt]),T.useEffect(()=>{const ut=globalThis;f&&(ut.Hls=f),d&&(ut.dashjs=d)},[f,d]);const hn=T.useMemo(()=>UA(D==null?void 0:D[nt]),[D,nt]);T.useEffect(()=>{const ut=hn==null?void 0:hn.file;if(!ut){G("");return}const dt=Vc(ut.toLowerCase());dt.endsWith(".m3u8")?G("hls"):dt.endsWith(".mpd")?G("dash"):dt.endsWith(".mp4")?G("mp4"):G("")},[hn]);const jt=hn,Be=(D==null?void 0:D.length)>1?D[(nt+1)%D.length]:D==null?void 0:D[nt],xe=T.useMemo(()=>LA(jt),[jt]),Te=T.useMemo(()=>VA(xe),[xe]),ze=T.useMemo(()=>OA(xe),[xe]),Pe=typeof globalThis.WebKitMediaKeys!="undefined",fe=T.useMemo(()=>{var dt;if(typeof document=="undefined")return!1;const ut=document.createElement("video");return!!((dt=ut==null?void 0:ut.canPlayType)!=null&&dt.call(ut,"application/vnd.apple.mpegurl"))},[]),Xn=!!(Pe&&fe&&((pn=xe==null?void 0:xe[is])!=null&&pn.licenseUri)&&L==="hls");T.useEffect(()=>{var ht,gt;if(!p||!xe||(typeof p.isPaidTier=="function"?p.isPaidTier():!0))return;const dt=p.setErrorRun("E0017");je({errorCode:dt==null?void 0:dt.errorCode,errorMessage:(ht=dt==null?void 0:dt.errorMessage)==null?void 0:ht.desc,errorTitle:(gt=dt==null?void 0:dt.errorMessage)==null?void 0:gt.title})},[p,xe,je]),T.useEffect(()=>{var gt,Ht,Wt,Bn;if(!p||!L)return;const ut=globalThis,dt=f!=null?f:ut.Hls,ht=d!=null?d:ut.dashjs;if(L==="hls"&&!dt&&!Xn){const Pt=p.setErrorRun("E0015");je({errorCode:Pt==null?void 0:Pt.errorCode,errorMessage:(gt=Pt==null?void 0:Pt.errorMessage)==null?void 0:gt.desc,errorTitle:(Ht=Pt==null?void 0:Pt.errorMessage)==null?void 0:Ht.title})}if(L==="dash"&&!ht){const Pt=p.setErrorRun("E0016");je({errorCode:Pt==null?void 0:Pt.errorCode,errorMessage:(Wt=Pt==null?void 0:Pt.errorMessage)==null?void 0:Wt.desc,errorTitle:(Bn=Pt==null?void 0:Pt.errorMessage)==null?void 0:Bn.title})}},[L,p,f,d,je,Xn]);const lt=T.useCallback(ut=>{var ht,gt,Ht;if(!ut||typeof ut!="object"||!p)return;const dt=ut;if((dt==null?void 0:dt.evt)=="hlsError"&&((ht=dt==null?void 0:dt.data)==null?void 0:ht.type)=="networkError"){const Wt=p.setErrorRun("E0004");je({errorCode:Wt==null?void 0:Wt.errorCode,errorMessage:(gt=Wt==null?void 0:Wt.errorMessage)==null?void 0:gt.desc,errorTitle:(Ht=Wt==null?void 0:Wt.errorMessage)==null?void 0:Ht.title})}},[p,je]),Et=T.useMemo(()=>zA(jt,A==null?void 0:A.token),[jt,A==null?void 0:A.token]),Xt=f!=null?f:globalThis.Hls,Dt=d!=null?d:globalThis.dashjs;T.useEffect(()=>{_A(Xt,A==null?void 0:A.token,Te),kA(Dt,A==null?void 0:A.token,ze)},[Xt,Dt,A==null?void 0:A.token,Te,ze]);const kt=()=>{if(!Et)return null;switch(L){case"hls":return Xn?v.jsx(zb,{src:Et,options:A,onError:lt,emitEvent:nn}):v.jsx(Db,{src:Et,hlsLib:Xt,options:A,onError:lt,emitEvent:nn});case"dash":return v.jsx(jb,{src:Et,dashLib:Dt,options:A,onError:lt,emitEvent:nn});case"mp4":return v.jsx(Bb,{src:Et,options:A,onError:lt,emitEvent:nn});default:return null}};US(A);const ie=T.useCallback(()=>{const ut=At.current;ut&&(ut.style.display="")},[]),Jt=T.useCallback(()=>{const ut=At.current;ut&&(ut.style.display="none")},[]);T.useEffect(()=>{if(y)return AA(y,{show:ie,hide:Jt}),()=>wA(y)},[y,ie,Jt]);const Yt=T.useCallback(ut=>{Se.current=ut},[]);T.useEffect(()=>{D.length!==0&&nt>D.length-1&&ct(D.length-1)},[nt,D.length]);const wt=T.useCallback(()=>{ot.current&&(clearInterval(ot.current),ot.current=null)},[]),ye=T.useCallback(()=>{ct(ut=>(E(!1),D.length===0?ut:Math.min(ut+1,D.length-1)))},[D.length]);T.useEffect(()=>wt,[wt]);const re=T.useCallback((ut=1)=>{if(ut>1){const dt=Math.max(1,Math.floor(ut));J(dt),wt(),ot.current=setInterval(()=>{J(ht=>{const gt=Math.max(0,ht-1);return gt===0&&(wt(),ye()),gt})},1e3)}else J(0),wt(),ye();ft.current=!0,St.current=!0},[ye,wt]),mn=T.useCallback(()=>{ft.current=!0,St.current=!0,ct(ut=>Math.max(0,ut-1))},[D.length]);T.useEffect(()=>{if(!y)return;const ut=ne(y),dt=ut==null?void 0:ut.seekTo,ht=b.duration,gt=typeof ht=="number"&&Number.isFinite(ht)&&ht>0,Ht=!!(Z&&gt&&Z+ht*1e3>Date.now());if(y&&Wn(y,"isPremiere",Ht),!Z||tt||!Tt.current||!gt)return;const Wt=Math.max(0,Math.floor((Date.now()-Z)/1e3));if(Wt<ht){if(b.isLive===!0)return;M({isLive:!0}),dt&&dt(Wt);return}b.isLive!==!1&&M({isLive:!1})},[Z,tt,b.duration,b.currentTime,b.isLive,M,y]),T.useEffect(()=>{if(!St.current||(St.current=!1,!y))return;const ut=Lc(y);ut&&ut()},[nt,y]);const Kn=T.useCallback(ut=>{ut==="skipForward"?me("skipForward"):ut==="skipBack"&&me("skipBack")},[me]),yn=b!=null&&b.initPlay&&((qe=b==null?void 0:b.currentTime)!=null?qe:0)>0?null:(Bt=(gn=h==null?void 0:h.playlist)==null?void 0:gn[0])==null?void 0:Bt.poster,Dn=(Ve=(Fe=p==null?void 0:p.isPaidTier)==null?void 0:Fe.call(p))!=null?Ve:!0,jn=((an=(Ie=p==null?void 0:p.$t)==null?void 0:Ie.call(p,"alternative.nextPlay"))!=null?an:"alternative.nextPlay").replace("{timeTxt}",String(k));return v.jsxs("div",{ref:De,style:{maxHeight:"100dvh",width:"100%",height:"100%",background:yn?`url(${yn}) center / cover no-repeat`:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9"},className:"vpe-root-wrap",children:[v.jsx(HA,{onEvent:n.onEvent,isInitialized:j,playlist:D,pidx:nt,onStateSnapshot:Yt,vpe:p,scopeId:y}),rt?v.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:(A==null?void 0:A.aspectRatio)||"16/9",position:"relative",overflow:"hidden"},children:[v.jsx("div",{style:{background:`url(${jt==null?void 0:jt.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),v.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",top:0,left:0,backgroundColor:"rgba(0,0,0,0.69)"},children:n.errorOverride&&Dn?typeof n.errorOverride=="function"?v.jsx(n.errorOverride,{...O}):n.errorOverride:v.jsxs("div",{style:{textAlign:"center"},children:[v.jsx("div",{children:v.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),v.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:v.jsx("strong",{children:O==null?void 0:O.errorMessage})}),(O==null?void 0:O.errorCode)&&v.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",O.errorCode,")"]})]})})]}):tt?v.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:v.jsx(RS,{startTime:B!=null?B:"",options:A,poster:jt==null?void 0:jt.poster,text:W!=null?W:""})}):j?v.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[A.controls&&v.jsx("div",{ref:At,style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},children:v.jsx(BA,{src:Et,hlsLib:Xt,dashLib:Dt,options:(ei=p==null?void 0:p.isPaidTier)!=null&&ei.call(p)?A:{...A,override:void 0},poster:jt==null?void 0:jt.poster,layout:w,scopeId:y,isDrmPlayback:!!xe,next:re,prev:mn,onAction:Kn,onControlBarActiveChange:ut=>{me(ut?"controlbarActive":"controlbarDeactive")},pidx:nt,playlistCnt:(D==null?void 0:D.length)||0,metaTitle:(Qn=jt==null?void 0:jt.description)==null?void 0:Qn.title,profileImage:(Yi=jt==null?void 0:jt.description)==null?void 0:Yi.profile_image,profileName:(Pi=jt==null?void 0:jt.description)==null?void 0:Pi.profile_name,createdAt:(fi=jt==null?void 0:jt.description)==null?void 0:fi.created_at,t:ut=>{var dt,ht;return(ht=(dt=p==null?void 0:p.$t)==null?void 0:dt.call(p,ut))!=null?ht:ut}})}),pt&&b.isEnded&&v.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:v.jsxs("div",{children:[v.jsx("div",{style:{background:`url(${Be==null?void 0:Be.poster}) center / cover no-repeat`,width:"9em",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9",backgroundColor:"#000000",borderRadius:"5px",border:"2px solid rgba(255,255,255,0.5)"}}),v.jsxs("div",{style:{textAlign:"center",fontSize:"0.7rem",letterSpacing:"-1",fontWeight:"bold",paddingTop:"1rem"},children:[((di=Be==null?void 0:Be.description)==null?void 0:di.title)&&v.jsx("div",{style:{marginBottom:"0.3rem"},className:"ellipsis-2",children:(qi=Be==null?void 0:Be.description)==null?void 0:qi.title}),v.jsx("div",{style:{fontSize:"0.7rem",opacity:"0.8"},children:jn})]})]})}),v.jsx("div",{children:v.jsx(jS,{options:A})}),v.jsx("div",{style:{position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:(A==null?void 0:A.aspectRatio)||"16/9"},children:kt()})]}):v.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:v.jsx(cu,{poster:jt==null?void 0:jt.poster,options:A})})]})}let Uy=0;const Nc=T.forwardRef((n,a)=>{var u;const s=T.useRef("");s.current||(Uy+=1,s.current=`vpe-${Uy}`);const r=(u=n.scopeId)!=null?u:s.current;return T.useImperativeHandle(a,()=>({play:()=>{var d;const f=ne(r);(d=f==null?void 0:f.play)==null||d.call(f)},pause:()=>{var d;const f=ne(r);(d=f==null?void 0:f.pause)==null||d.call(f)},mute:()=>{const f=ne(r),d=f==null?void 0:f.toggleMute;typeof d=="function"&&d(!0)},prev:()=>{const f=ne(r),d=f==null?void 0:f.prev;typeof d=="function"&&d()},next:()=>{const f=ne(r),d=f==null?void 0:f.next;typeof d=="function"&&d()},fullscreen:()=>{const f=ne(r),d=f==null?void 0:f.toggleFullscreen;typeof d=="function"&&d()},fullscreenOn:()=>{const f=ne(r),d=f==null?void 0:f.fullscreenOn;typeof d=="function"&&d()},fullScreenOff:()=>{const f=ne(r),d=f==null?void 0:f.fullscreenOff;typeof d=="function"&&d()},pip:()=>{const f=ne(r),d=f==null?void 0:f.togglePictureInPicture;typeof d=="function"&&d()},volume:(f=1)=>{const d=ne(r),h=d==null?void 0:d.setVolume;typeof h=="function"&&h(f*100)},uiHidden:()=>{const f=wr(r);f&&f.hide()},uiVisible:()=>{const f=wr(r);f&&f.show()},currentTime:(f=0)=>{const d=ne(r),h=d==null?void 0:d.seekTo;typeof h=="function"&&h(f)},controlBarActive:()=>{const f=Oy(r);f&&f()},controlBarDeactive:()=>{const f=Lc(r);f&&f()},layout:(f,d=!0)=>{tu(r,"isPaidTier")!==!1&&Wn(r,"layoutOverride",m=>{if(!d)return f;const y=m!=null?m:n.layout;return au(y,f)})},tokenChange:f=>{Wn(r,"playerOptions",d=>({...d!=null?d:{},token:f}))},changeUiMode:f=>{Wn(r,"uiMode",f!=null?f:null)},changePlayMode:f=>{Wn(r,"playMode",f!=null?f:null)}}),[r,n.layout]),v.jsx(J1,{scopeId:r,children:v.jsxs(nb,{scopeId:r,children:[v.jsx(LS,{}),v.jsx(FA,{...n,scopeId:r})]})})});Nc.displayName="ncplayer";const _y=globalThis;_y.process||(_y.process={env:{}});let ky,ci,XA=0;function Uc(n){if(!n)return{options:{},layout:void 0};const{layout:a,...s}=n;return{options:s,layout:a}}function KA(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 QA=(()=>{if(typeof document=="undefined")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(!ci){const u=KA(s.hostname);u&&(ci=u)}const r=s.searchParams.get("access_key");if(r)return r}catch(s){continue}return""})();function ZA(n){return n||QA}const IA=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 JA(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 WA(n){return typeof n!="string"||n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.includes(" ")||n.includes(">")||n.includes(":")?n:typeof document!="undefined"&&document.getElementById(n)?`#${n}`:n}const Hy=T.forwardRef((n,a)=>v.jsx(Nc,{...n,ref:a}));Hy.displayName="VpePlayer";function _c(n,a,s={}){var N,V,B,Q,Z;const r=typeof a=="string"?a:a==null?void 0:a.accessKey,u=typeof a=="string"?s:a!=null?a:{},f=IA(u)?u:{options:u},d=ZA(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const h=typeof n=="string"?document.querySelector(n):n;if(!h)throw new Error("지정한 타겟을 찾을 수 없습니다.");const m=document.createElement("div");h.appendChild(m);const y=V1.createRoot(m),p=(N=f.scopeId)!=null?N:`vpe-${XA+=1}`,{options:S,layout:b}=Uc(f.options),M={...f,options:S,scopeId:p,layout:(B=(V=f.layout)!=null?V:b)!=null?B:ky,platform:(Q=f.platform)!=null?Q:ci==null?void 0:ci.platform,stage:(Z=f.stage)!=null?Z:ci==null?void 0:ci.stage};let D={...S!=null?S:{}},C=M.layout,j=M.onEvent;const H=tt=>{j&&j(tt)},F=(tt={})=>{if(tt.options){const{options:_,layout:O}=Uc(tt.options);D={...D,..._},O&&(C=O)}tt.onEvent&&(j=tt.onEvent),"layout"in tt&&(C=tt.layout);const{options:at,onEvent:L,layout:G,...W}=tt;y.render(v.jsx(Nc,{...M,...W,options:D,onEvent:H,accessKey:d,layout:C}))};return F(),{destroy:()=>{y.unmount(),m.parentNode&&m.parentNode.removeChild(m)},container:m,render:F,scopeId:p,getLayout:()=>C,layout:(tt,at=!0)=>{if(tu(p,"isPaidTier")===!1)return;const G=at?au(C,tt):tt;F({layout:G})}}}class Ja{constructor(a,s,r={}){tn(this,"destroy");tn(this,"container");tn(this,"render");tn(this,"scopeId");tn(this,"getLayout");const u=_c(WA(a),s,r);this.destroy=u.destroy,this.container=u.container,this.render=u.render,this.scopeId=u.scopeId,this.getLayout=u.getLayout}static use(a){return JA(a),Ja}static layout(a){return ky=a,Ja}static config(a){return ci=a,Ja}play(){const a=ne(this.scopeId);if(a!=null&&a.play){a.play();return}}pause(){const a=ne(this.scopeId);if(a!=null&&a.pause){a.pause();return}}mute(){const a=ne(this.scopeId),s=a==null?void 0:a.toggleMute;if(typeof s=="function"){s(!0);return}}prev(){const a=ne(this.scopeId),s=a==null?void 0:a.prev;if(typeof s=="function"){s();return}}next(){const a=ne(this.scopeId),s=a==null?void 0:a.next;if(typeof s=="function"){s();return}}fullscreen(){const a=ne(this.scopeId),s=a==null?void 0:a.toggleFullscreen;if(typeof s=="function"){s();return}}fullscreenOn(){const a=ne(this.scopeId),s=a==null?void 0:a.fullscreenOn;if(typeof s=="function"){s();return}}fullScreenOff(){const a=ne(this.scopeId),s=a==null?void 0:a.fullscreenOff;if(typeof s=="function"){s();return}}pip(){const a=ne(this.scopeId),s=a==null?void 0:a.togglePictureInPicture;if(typeof s=="function"){s();return}}volume(a=1){const s=ne(this.scopeId),r=s==null?void 0:s.setVolume;if(typeof r=="function"){r(a*100);return}}uiHidden(){const a=wr(this.scopeId);a&&a.hide()}uiVisible(){const a=wr(this.scopeId);a&&a.show()}currentTime(a=0){const s=ne(this.scopeId),r=s==null?void 0:s.seekTo;if(typeof r=="function"){r(a);return}}controlBarActive(){const a=Oy(this.scopeId);a&&a()}controlBarDeactive(){const a=Lc(this.scopeId);a&&a()}tokenChange(a){this.render({options:{token:a}}),Wn(this.scopeId,"playerOptions",s=>({...s!=null?s:{},token:a}))}changeOptions(a){if(!a||typeof a!="object")return this;this.render({options:a});const{options:s}=Uc(a);return Wn(this.scopeId,"playerOptions",r=>({...r!=null?r:{},...s})),this}changeUiMode(a){return Wn(this.scopeId,"uiMode",a!=null?a:null),this}changePlayMode(a){return Wn(this.scopeId,"playMode",a!=null?a:null),this}layout(a,s=!0){if(tu(this.scopeId,"isPaidTier")===!1)return this;const u=s?au(this.getLayout(),a):a;return this.render({layout:u}),this}on(a,s){if(!(!a||typeof s!="function"))return CA(this.scopeId,a,s),()=>RA(this.scopeId,a,s)}}typeof window!="undefined"&&(window.vpe={...(Gy=window.vpe)!=null?Gy:{},setup:_c},window.ncplayer=Ja),Xe.Ncplayer=Ja,Xe.VpePlayer=Hy,Xe.setup=_c,Xe.useDeviceState=ru,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})}));