@gallop.software/studio 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
function Nm(o,s){for(var h=0;h<s.length;h++){const u=s[h];if(typeof u!="string"&&!Array.isArray(u)){for(const y in u)if(y!=="default"&&!(y in o)){const p=Object.getOwnPropertyDescriptor(u,y);p&&Object.defineProperty(o,y,p.get?p:{enumerable:!0,get:()=>u[y]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))u(y);new MutationObserver(y=>{for(const p of y)if(p.type==="childList")for(const D of p.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&u(D)}).observe(document,{childList:!0,subtree:!0});function h(y){const p={};return y.integrity&&(p.integrity=y.integrity),y.referrerPolicy&&(p.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?p.credentials="include":y.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function u(y){if(y.ep)return;y.ep=!0;const p=h(y);fetch(y.href,p)}})();function Bm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Es={exports:{}},ki={};var q0;function jm(){if(q0)return ki;q0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function h(u,y,p){var D=null;if(p!==void 0&&(D=""+p),y.key!==void 0&&(D=""+y.key),"key"in y){p={};for(var L in y)L!=="key"&&(p[L]=y[L])}else p=y;return y=p.ref,{$$typeof:o,type:u,key:D,ref:y!==void 0?y:null,props:p}}return ki.Fragment=s,ki.jsx=h,ki.jsxs=h,ki}var Y0;function qm(){return Y0||(Y0=1,Es.exports=jm()),Es.exports}var Ui=qm(),_s={exports:{}},Ae={};var G0;function Ym(){if(G0)return Ae;G0=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),D=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),V=Symbol.iterator;function ae(g){return g===null||typeof g!="object"?null:(g=V&&g[V]||g["@@iterator"],typeof g=="function"?g:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,ve={};function W(g,R,N){this.props=g,this.context=R,this.refs=ve,this.updater=N||q}W.prototype.isReactComponent={},W.prototype.setState=function(g,R){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,R,"setState")},W.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function ce(){}ce.prototype=W.prototype;function te(g,R,N){this.props=g,this.context=R,this.refs=ve,this.updater=N||q}var le=te.prototype=new ce;le.constructor=te,X(le,W.prototype),le.isPureReactComponent=!0;var _=Array.isArray;function Q(){}var j={H:null,A:null,T:null,S:null},Se=Object.prototype.hasOwnProperty;function Le(g,R,N){var I=N.ref;return{$$typeof:o,type:g,key:R,ref:I!==void 0?I:null,props:N}}function De(g,R){return Le(g.type,R,g.props)}function Ne(g){return typeof g=="object"&&g!==null&&g.$$typeof===o}function He(g){var R={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(N){return R[N]})}var Fe=/\/+/g;function We(g,R){return typeof g=="object"&&g!==null&&g.key!=null?He(""+g.key):R.toString(36)}function Me(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Q,Q):(g.status="pending",g.then(function(R){g.status==="pending"&&(g.status="fulfilled",g.value=R)},function(R){g.status==="pending"&&(g.status="rejected",g.reason=R)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function A(g,R,N,I,P){var ue=typeof g;(ue==="undefined"||ue==="boolean")&&(g=null);var Ue=!1;if(g===null)Ue=!0;else switch(ue){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(g.$$typeof){case o:case s:Ue=!0;break;case G:return Ue=g._init,A(Ue(g._payload),R,N,I,P)}}if(Ue)return P=P(g),Ue=I===""?"."+We(g,0):I,_(P)?(N="",Ue!=null&&(N=Ue.replace(Fe,"$&/")+"/"),A(P,R,N,"",function(_l){return _l})):P!=null&&(Ne(P)&&(P=De(P,N+(P.key==null||g&&g.key===P.key?"":(""+P.key).replace(Fe,"$&/")+"/")+Ue)),R.push(P)),1;Ue=0;var xt=I===""?".":I+":";if(_(g))for(var et=0;et<g.length;et++)I=g[et],ue=xt+We(I,et),Ue+=A(I,R,N,ue,P);else if(et=ae(g),typeof et=="function")for(g=et.call(g),et=0;!(I=g.next()).done;)I=I.value,ue=xt+We(I,et++),Ue+=A(I,R,N,ue,P);else if(ue==="object"){if(typeof g.then=="function")return A(Me(g),R,N,I,P);throw R=String(g),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function Y(g,R,N){if(g==null)return g;var I=[],P=0;return A(g,I,"","",function(ue){return R.call(N,ue,P++)}),I}function J(g){if(g._status===-1){var R=g._result;R=R(),R.then(function(N){(g._status===0||g._status===-1)&&(g._status=1,g._result=N)},function(N){(g._status===0||g._status===-1)&&(g._status=2,g._result=N)}),g._status===-1&&(g._status=0,g._result=R)}if(g._status===1)return g._result.default;throw g._result}var se=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Ee={map:Y,forEach:function(g,R,N){Y(g,function(){R.apply(this,arguments)},N)},count:function(g){var R=0;return Y(g,function(){R++}),R},toArray:function(g){return Y(g,function(R){return R})||[]},only:function(g){if(!Ne(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return Ae.Activity=B,Ae.Children=Ee,Ae.Component=W,Ae.Fragment=h,Ae.Profiler=y,Ae.PureComponent=te,Ae.StrictMode=u,Ae.Suspense=k,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(g){return j.H.useMemoCache(g)}},Ae.cache=function(g){return function(){return g.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(g,R,N){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var I=X({},g.props),P=g.key;if(R!=null)for(ue in R.key!==void 0&&(P=""+R.key),R)!Se.call(R,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&R.ref===void 0||(I[ue]=R[ue]);var ue=arguments.length-2;if(ue===1)I.children=N;else if(1<ue){for(var Ue=Array(ue),xt=0;xt<ue;xt++)Ue[xt]=arguments[xt+2];I.children=Ue}return Le(g.type,P,I)},Ae.createContext=function(g){return g={$$typeof:D,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:p,_context:g},g},Ae.createElement=function(g,R,N){var I,P={},ue=null;if(R!=null)for(I in R.key!==void 0&&(ue=""+R.key),R)Se.call(R,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(P[I]=R[I]);var Ue=arguments.length-2;if(Ue===1)P.children=N;else if(1<Ue){for(var xt=Array(Ue),et=0;et<Ue;et++)xt[et]=arguments[et+2];P.children=xt}if(g&&g.defaultProps)for(I in Ue=g.defaultProps,Ue)P[I]===void 0&&(P[I]=Ue[I]);return Le(g,ue,P)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(g){return{$$typeof:L,render:g}},Ae.isValidElement=Ne,Ae.lazy=function(g){return{$$typeof:G,_payload:{_status:-1,_result:g},_init:J}},Ae.memo=function(g,R){return{$$typeof:x,type:g,compare:R===void 0?null:R}},Ae.startTransition=function(g){var R=j.T,N={};j.T=N;try{var I=g(),P=j.S;P!==null&&P(N,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(Q,se)}catch(ue){se(ue)}finally{R!==null&&N.types!==null&&(R.types=N.types),j.T=R}},Ae.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Ae.use=function(g){return j.H.use(g)},Ae.useActionState=function(g,R,N){return j.H.useActionState(g,R,N)},Ae.useCallback=function(g,R){return j.H.useCallback(g,R)},Ae.useContext=function(g){return j.H.useContext(g)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(g,R){return j.H.useDeferredValue(g,R)},Ae.useEffect=function(g,R){return j.H.useEffect(g,R)},Ae.useEffectEvent=function(g){return j.H.useEffectEvent(g)},Ae.useId=function(){return j.H.useId()},Ae.useImperativeHandle=function(g,R,N){return j.H.useImperativeHandle(g,R,N)},Ae.useInsertionEffect=function(g,R){return j.H.useInsertionEffect(g,R)},Ae.useLayoutEffect=function(g,R){return j.H.useLayoutEffect(g,R)},Ae.useMemo=function(g,R){return j.H.useMemo(g,R)},Ae.useOptimistic=function(g,R){return j.H.useOptimistic(g,R)},Ae.useReducer=function(g,R,N){return j.H.useReducer(g,R,N)},Ae.useRef=function(g){return j.H.useRef(g)},Ae.useState=function(g){return j.H.useState(g)},Ae.useSyncExternalStore=function(g,R,N){return j.H.useSyncExternalStore(g,R,N)},Ae.useTransition=function(){return j.H.useTransition()},Ae.version="19.2.4",Ae}var V0;function Vs(){return V0||(V0=1,_s.exports=Ym()),_s.exports}var M=Vs();const uh=Bm(M),X0=Nm({__proto__:null,default:uh},[M]);function Gm(o){if(o.sheet)return o.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===o)return document.styleSheets[s]}function Vm(o){var s=document.createElement("style");return s.setAttribute("data-emotion",o.key),o.nonce!==void 0&&s.setAttribute("nonce",o.nonce),s.appendChild(document.createTextNode("")),s.setAttribute("data-s",""),s}var Xm=(function(){function o(h){var u=this;this._insertTag=function(y){var p;u.tags.length===0?u.insertionPoint?p=u.insertionPoint.nextSibling:u.prepend?p=u.container.firstChild:p=u.before:p=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(y,p),u.tags.push(y)},this.isSpeedy=h.speedy===void 0?!0:h.speedy,this.tags=[],this.ctr=0,this.nonce=h.nonce,this.key=h.key,this.container=h.container,this.prepend=h.prepend,this.insertionPoint=h.insertionPoint,this.before=null}var s=o.prototype;return s.hydrate=function(u){u.forEach(this._insertTag)},s.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vm(this));var y=this.tags[this.tags.length-1];if(this.isSpeedy){var p=Gm(y);try{p.insertRule(u,p.cssRules.length)}catch{}}else y.appendChild(document.createTextNode(u));this.ctr++},s.flush=function(){this.tags.forEach(function(u){var y;return(y=u.parentNode)==null?void 0:y.removeChild(u)}),this.tags=[],this.ctr=0},o})(),Ut="-ms-",sr="-moz-",Ke="-webkit-",fh="comm",Xs="rule",Qs="decl",Qm="@import",dh="@keyframes",Zm="@layer",Km=Math.abs,ur=String.fromCharCode,Jm=Object.assign;function Fm(o,s){return Ot(o,0)^45?(((s<<2^Ot(o,0))<<2^Ot(o,1))<<2^Ot(o,2))<<2^Ot(o,3):0}function hh(o){return o.trim()}function $m(o,s){return(o=s.exec(o))?o[0]:o}function Je(o,s,h){return o.replace(s,h)}function js(o,s){return o.indexOf(s)}function Ot(o,s){return o.charCodeAt(s)|0}function Hi(o,s,h){return o.slice(s,h)}function Tl(o){return o.length}function Zs(o){return o.length}function ir(o,s){return s.push(o),o}function Wm(o,s){return o.map(s).join("")}var fr=1,Ba=1,ph=0,Zt=0,bt=0,qa="";function dr(o,s,h,u,y,p,D){return{value:o,root:s,parent:h,type:u,props:y,children:p,line:fr,column:Ba,length:D,return:""}}function Oi(o,s){return Jm(dr("",null,null,"",null,null,0),o,{length:-o.length},s)}function Im(){return bt}function Pm(){return bt=Zt>0?Ot(qa,--Zt):0,Ba--,bt===10&&(Ba=1,fr--),bt}function tl(){return bt=Zt<ph?Ot(qa,Zt++):0,Ba++,bt===10&&(Ba=1,fr++),bt}function El(){return Ot(qa,Zt)}function or(){return Zt}function ji(o,s){return Hi(qa,o,s)}function Ni(o){switch(o){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mh(o){return fr=Ba=1,ph=Tl(qa=o),Zt=0,[]}function gh(o){return qa="",o}function rr(o){return hh(ji(Zt-1,qs(o===91?o+2:o===40?o+1:o)))}function e1(o){for(;(bt=El())&&bt<33;)tl();return Ni(o)>2||Ni(bt)>3?"":" "}function t1(o,s){for(;--s&&tl()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return ji(o,or()+(s<6&&El()==32&&tl()==32))}function qs(o){for(;tl();)switch(bt){case o:return Zt;case 34:case 39:o!==34&&o!==39&&qs(bt);break;case 40:o===41&&qs(o);break;case 92:tl();break}return Zt}function l1(o,s){for(;tl()&&o+bt!==57;)if(o+bt===84&&El()===47)break;return"/*"+ji(s,Zt-1)+"*"+ur(o===47?o:tl())}function n1(o){for(;!Ni(El());)tl();return ji(o,Zt)}function a1(o){return gh(cr("",null,null,null,[""],o=mh(o),0,[0],o))}function cr(o,s,h,u,y,p,D,L,k){for(var x=0,G=0,B=D,V=0,ae=0,q=0,X=1,ve=1,W=1,ce=0,te="",le=y,_=p,Q=u,j=te;ve;)switch(q=ce,ce=tl()){case 40:if(q!=108&&Ot(j,B-1)==58){js(j+=Je(rr(ce),"&","&\f"),"&\f")!=-1&&(W=-1);break}case 34:case 39:case 91:j+=rr(ce);break;case 9:case 10:case 13:case 32:j+=e1(q);break;case 92:j+=t1(or()-1,7);continue;case 47:switch(El()){case 42:case 47:ir(i1(l1(tl(),or()),s,h),k);break;default:j+="/"}break;case 123*X:L[x++]=Tl(j)*W;case 125*X:case 59:case 0:switch(ce){case 0:case 125:ve=0;case 59+G:W==-1&&(j=Je(j,/\f/g,"")),ae>0&&Tl(j)-B&&ir(ae>32?Z0(j+";",u,h,B-1):Z0(Je(j," ","")+";",u,h,B-2),k);break;case 59:j+=";";default:if(ir(Q=Q0(j,s,h,x,G,y,L,te,le=[],_=[],B),p),ce===123)if(G===0)cr(j,s,Q,Q,le,p,B,L,_);else switch(V===99&&Ot(j,3)===110?100:V){case 100:case 108:case 109:case 115:cr(o,Q,Q,u&&ir(Q0(o,Q,Q,0,0,y,L,te,y,le=[],B),_),y,_,B,L,u?le:_);break;default:cr(j,Q,Q,Q,[""],_,0,L,_)}}x=G=ae=0,X=W=1,te=j="",B=D;break;case 58:B=1+Tl(j),ae=q;default:if(X<1){if(ce==123)--X;else if(ce==125&&X++==0&&Pm()==125)continue}switch(j+=ur(ce),ce*X){case 38:W=G>0?1:(j+="\f",-1);break;case 44:L[x++]=(Tl(j)-1)*W,W=1;break;case 64:El()===45&&(j+=rr(tl())),V=El(),G=B=Tl(te=j+=n1(or())),ce++;break;case 45:q===45&&Tl(j)==2&&(X=0)}}return p}function Q0(o,s,h,u,y,p,D,L,k,x,G){for(var B=y-1,V=y===0?p:[""],ae=Zs(V),q=0,X=0,ve=0;q<u;++q)for(var W=0,ce=Hi(o,B+1,B=Km(X=D[q])),te=o;W<ae;++W)(te=hh(X>0?V[W]+" "+ce:Je(ce,/&\f/g,V[W])))&&(k[ve++]=te);return dr(o,s,h,y===0?Xs:L,k,x,G)}function i1(o,s,h){return dr(o,s,h,fh,ur(Im()),Hi(o,2,-2),0)}function Z0(o,s,h,u){return dr(o,s,h,Qs,Hi(o,0,u),Hi(o,u+1,-1),u)}function Na(o,s){for(var h="",u=Zs(o),y=0;y<u;y++)h+=s(o[y],y,o,s)||"";return h}function o1(o,s,h,u){switch(o.type){case Zm:if(o.children.length)break;case Qm:case Qs:return o.return=o.return||o.value;case fh:return"";case dh:return o.return=o.value+"{"+Na(o.children,u)+"}";case Xs:o.value=o.props.join(",")}return Tl(h=Na(o.children,u))?o.return=o.value+"{"+h+"}":""}function r1(o){var s=Zs(o);return function(h,u,y,p){for(var D="",L=0;L<s;L++)D+=o[L](h,u,y,p)||"";return D}}function c1(o){return function(s){s.root||(s=s.return)&&o(s)}}function s1(o){var s=Object.create(null);return function(h){return s[h]===void 0&&(s[h]=o(h)),s[h]}}var u1=function(s,h,u){for(var y=0,p=0;y=p,p=El(),y===38&&p===12&&(h[u]=1),!Ni(p);)tl();return ji(s,Zt)},f1=function(s,h){var u=-1,y=44;do switch(Ni(y)){case 0:y===38&&El()===12&&(h[u]=1),s[u]+=u1(Zt-1,h,u);break;case 2:s[u]+=rr(y);break;case 4:if(y===44){s[++u]=El()===58?"&\f":"",h[u]=s[u].length;break}default:s[u]+=ur(y)}while(y=tl());return s},d1=function(s,h){return gh(f1(mh(s),h))},K0=new WeakMap,h1=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var h=s.value,u=s.parent,y=s.column===u.column&&s.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(s.props.length===1&&h.charCodeAt(0)!==58&&!K0.get(u))&&!y){K0.set(s,!0);for(var p=[],D=d1(h,p),L=u.props,k=0,x=0;k<D.length;k++)for(var G=0;G<L.length;G++,x++)s.props[x]=p[k]?D[k].replace(/&\f/g,L[G]):L[G]+" "+D[k]}}},p1=function(s){if(s.type==="decl"){var h=s.value;h.charCodeAt(0)===108&&h.charCodeAt(2)===98&&(s.return="",s.value="")}};function yh(o,s){switch(Fm(o,s)){case 5103:return Ke+"print-"+o+o;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ke+o+o;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+o+sr+o+Ut+o+o;case 6828:case 4268:return Ke+o+Ut+o+o;case 6165:return Ke+o+Ut+"flex-"+o+o;case 5187:return Ke+o+Je(o,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+Ut+"flex-$1$2")+o;case 5443:return Ke+o+Ut+"flex-item-"+Je(o,/flex-|-self/,"")+o;case 4675:return Ke+o+Ut+"flex-line-pack"+Je(o,/align-content|flex-|-self/,"")+o;case 5548:return Ke+o+Ut+Je(o,"shrink","negative")+o;case 5292:return Ke+o+Ut+Je(o,"basis","preferred-size")+o;case 6060:return Ke+"box-"+Je(o,"-grow","")+Ke+o+Ut+Je(o,"grow","positive")+o;case 4554:return Ke+Je(o,/([^-])(transform)/g,"$1"+Ke+"$2")+o;case 6187:return Je(Je(Je(o,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),o,"")+o;case 5495:case 3959:return Je(o,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Je(Je(o,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ke+o+o;case 4095:case 3583:case 4068:case 2532:return Je(o,/(.+)-inline(.+)/,Ke+"$1$2")+o;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tl(o)-1-s>6)switch(Ot(o,s+1)){case 109:if(Ot(o,s+4)!==45)break;case 102:return Je(o,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+sr+(Ot(o,s+3)==108?"$3":"$2-$3"))+o;case 115:return~js(o,"stretch")?yh(Je(o,"stretch","fill-available"),s)+o:o}break;case 4949:if(Ot(o,s+1)!==115)break;case 6444:switch(Ot(o,Tl(o)-3-(~js(o,"!important")&&10))){case 107:return Je(o,":",":"+Ke)+o;case 101:return Je(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(Ot(o,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Ut+"$2box$3")+o}break;case 5936:switch(Ot(o,s+11)){case 114:return Ke+o+Ut+Je(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return Ke+o+Ut+Je(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return Ke+o+Ut+Je(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return Ke+o+Ut+o+o}return o}var m1=function(s,h,u,y){if(s.length>-1&&!s.return)switch(s.type){case Qs:s.return=yh(s.value,s.length);break;case dh:return Na([Oi(s,{value:Je(s.value,"@","@"+Ke)})],y);case Xs:if(s.length)return Wm(s.props,function(p){switch($m(p,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Na([Oi(s,{props:[Je(p,/:(read-\w+)/,":"+sr+"$1")]})],y);case"::placeholder":return Na([Oi(s,{props:[Je(p,/:(plac\w+)/,":"+Ke+"input-$1")]}),Oi(s,{props:[Je(p,/:(plac\w+)/,":"+sr+"$1")]}),Oi(s,{props:[Je(p,/:(plac\w+)/,Ut+"input-$1")]})],y)}return""})}},g1=[m1],y1=function(s){var h=s.key;if(h==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(X){var ve=X.getAttribute("data-emotion");ve.indexOf(" ")!==-1&&(document.head.appendChild(X),X.setAttribute("data-s",""))})}var y=s.stylisPlugins||g1,p={},D,L=[];D=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+h+' "]'),function(X){for(var ve=X.getAttribute("data-emotion").split(" "),W=1;W<ve.length;W++)p[ve[W]]=!0;L.push(X)});var k,x=[h1,p1];{var G,B=[o1,c1(function(X){G.insert(X)})],V=r1(x.concat(y,B)),ae=function(ve){return Na(a1(ve),V)};k=function(ve,W,ce,te){G=ce,ae(ve?ve+"{"+W.styles+"}":W.styles),te&&(q.inserted[W.name]=!0)}}var q={key:h,sheet:new Xm({key:h,container:D,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:p,registered:{},insert:k};return q.sheet.hydrate(L),q},Ds={exports:{}},$e={};var J0;function v1(){if(J0)return $e;J0=1;var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103,h=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,y=o?Symbol.for("react.strict_mode"):60108,p=o?Symbol.for("react.profiler"):60114,D=o?Symbol.for("react.provider"):60109,L=o?Symbol.for("react.context"):60110,k=o?Symbol.for("react.async_mode"):60111,x=o?Symbol.for("react.concurrent_mode"):60111,G=o?Symbol.for("react.forward_ref"):60112,B=o?Symbol.for("react.suspense"):60113,V=o?Symbol.for("react.suspense_list"):60120,ae=o?Symbol.for("react.memo"):60115,q=o?Symbol.for("react.lazy"):60116,X=o?Symbol.for("react.block"):60121,ve=o?Symbol.for("react.fundamental"):60117,W=o?Symbol.for("react.responder"):60118,ce=o?Symbol.for("react.scope"):60119;function te(_){if(typeof _=="object"&&_!==null){var Q=_.$$typeof;switch(Q){case s:switch(_=_.type,_){case k:case x:case u:case p:case y:case B:return _;default:switch(_=_&&_.$$typeof,_){case L:case G:case q:case ae:case D:return _;default:return Q}}case h:return Q}}}function le(_){return te(_)===x}return $e.AsyncMode=k,$e.ConcurrentMode=x,$e.ContextConsumer=L,$e.ContextProvider=D,$e.Element=s,$e.ForwardRef=G,$e.Fragment=u,$e.Lazy=q,$e.Memo=ae,$e.Portal=h,$e.Profiler=p,$e.StrictMode=y,$e.Suspense=B,$e.isAsyncMode=function(_){return le(_)||te(_)===k},$e.isConcurrentMode=le,$e.isContextConsumer=function(_){return te(_)===L},$e.isContextProvider=function(_){return te(_)===D},$e.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===s},$e.isForwardRef=function(_){return te(_)===G},$e.isFragment=function(_){return te(_)===u},$e.isLazy=function(_){return te(_)===q},$e.isMemo=function(_){return te(_)===ae},$e.isPortal=function(_){return te(_)===h},$e.isProfiler=function(_){return te(_)===p},$e.isStrictMode=function(_){return te(_)===y},$e.isSuspense=function(_){return te(_)===B},$e.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===u||_===x||_===p||_===y||_===B||_===V||typeof _=="object"&&_!==null&&(_.$$typeof===q||_.$$typeof===ae||_.$$typeof===D||_.$$typeof===L||_.$$typeof===G||_.$$typeof===ve||_.$$typeof===W||_.$$typeof===ce||_.$$typeof===X)},$e.typeOf=te,$e}var F0;function b1(){return F0||(F0=1,Ds.exports=v1()),Ds.exports}var ks,$0;function x1(){if($0)return ks;$0=1;var o=b1(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[o.ForwardRef]=u,p[o.Memo]=y;function D(q){return o.isMemo(q)?y:p[q.$$typeof]||s}var L=Object.defineProperty,k=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,G=Object.getOwnPropertyDescriptor,B=Object.getPrototypeOf,V=Object.prototype;function ae(q,X,ve){if(typeof X!="string"){if(V){var W=B(X);W&&W!==V&&ae(q,W,ve)}var ce=k(X);x&&(ce=ce.concat(x(X)));for(var te=D(q),le=D(X),_=0;_<ce.length;++_){var Q=ce[_];if(!h[Q]&&!(ve&&ve[Q])&&!(le&&le[Q])&&!(te&&te[Q])){var j=G(X,Q);try{L(q,Q,j)}catch{}}}}return q}return ks=ae,ks}x1();var S1=!0;function C1(o,s,h){var u="";return h.split(" ").forEach(function(y){o[y]!==void 0?s.push(o[y]+";"):y&&(u+=y+" ")}),u}var vh=function(s,h,u){var y=s.key+"-"+h.name;(u===!1||S1===!1)&&s.registered[y]===void 0&&(s.registered[y]=h.styles)},z1=function(s,h,u){vh(s,h,u);var y=s.key+"-"+h.name;if(s.inserted[h.name]===void 0){var p=h;do s.insert(h===p?"."+y:"",p,s.sheet,!0),p=p.next;while(p!==void 0)}};function w1(o){for(var s=0,h,u=0,y=o.length;y>=4;++u,y-=4)h=o.charCodeAt(u)&255|(o.charCodeAt(++u)&255)<<8|(o.charCodeAt(++u)&255)<<16|(o.charCodeAt(++u)&255)<<24,h=(h&65535)*1540483477+((h>>>16)*59797<<16),h^=h>>>24,s=(h&65535)*1540483477+((h>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch(y){case 3:s^=(o.charCodeAt(u+2)&255)<<16;case 2:s^=(o.charCodeAt(u+1)&255)<<8;case 1:s^=o.charCodeAt(u)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var M1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},T1=/[A-Z]|^ms/g,A1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bh=function(s){return s.charCodeAt(1)===45},W0=function(s){return s!=null&&typeof s!="boolean"},Os=s1(function(o){return bh(o)?o:o.replace(T1,"-$&").toLowerCase()}),I0=function(s,h){switch(s){case"animation":case"animationName":if(typeof h=="string")return h.replace(A1,function(u,y,p){return Al={name:y,styles:p,next:Al},y})}return M1[s]!==1&&!bh(s)&&typeof h=="number"&&h!==0?h+"px":h};function Bi(o,s,h){if(h==null)return"";var u=h;if(u.__emotion_styles!==void 0)return u;switch(typeof h){case"boolean":return"";case"object":{var y=h;if(y.anim===1)return Al={name:y.name,styles:y.styles,next:Al},y.name;var p=h;if(p.styles!==void 0){var D=p.next;if(D!==void 0)for(;D!==void 0;)Al={name:D.name,styles:D.styles,next:Al},D=D.next;var L=p.styles+";";return L}return E1(o,s,h)}case"function":{if(o!==void 0){var k=Al,x=h(o);return Al=k,Bi(o,s,x)}break}}var G=h;return G}function E1(o,s,h){var u="";if(Array.isArray(h))for(var y=0;y<h.length;y++)u+=Bi(o,s,h[y])+";";else for(var p in h){var D=h[p];if(typeof D!="object"){var L=D;W0(L)&&(u+=Os(p)+":"+I0(p,L)+";")}else if(Array.isArray(D)&&typeof D[0]=="string"&&s==null)for(var k=0;k<D.length;k++)W0(D[k])&&(u+=Os(p)+":"+I0(p,D[k])+";");else{var x=Bi(o,s,D);switch(p){case"animation":case"animationName":{u+=Os(p)+":"+x+";";break}default:u+=p+"{"+x+"}"}}}return u}var P0=/label:\s*([^\s;{]+)\s*(;|$)/g,Al;function xh(o,s,h){if(o.length===1&&typeof o[0]=="object"&&o[0]!==null&&o[0].styles!==void 0)return o[0];var u=!0,y="";Al=void 0;var p=o[0];if(p==null||p.raw===void 0)u=!1,y+=Bi(h,s,p);else{var D=p;y+=D[0]}for(var L=1;L<o.length;L++)if(y+=Bi(h,s,o[L]),u){var k=p;y+=k[L]}P0.lastIndex=0;for(var x="",G;(G=P0.exec(y))!==null;)x+="-"+G[1];var B=w1(y)+x;return{name:B,styles:y,next:Al}}var _1=function(s){return s()},D1=X0.useInsertionEffect?X0.useInsertionEffect:!1,k1=D1||_1,Sh=M.createContext(typeof HTMLElement<"u"?y1({key:"css"}):null);Sh.Provider;var O1=function(s){return M.forwardRef(function(h,u){var y=M.useContext(Sh);return s(h,y,u)})},R1=M.createContext({}),qi={}.hasOwnProperty,Ys="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ks=function(s,h){var u={};for(var y in h)qi.call(h,y)&&(u[y]=h[y]);return u[Ys]=s,u},L1=function(s){var h=s.cache,u=s.serialized,y=s.isStringTag;return vh(h,u,y),k1(function(){return z1(h,u,y)}),null},U1=O1(function(o,s,h){var u=o.css;typeof u=="string"&&s.registered[u]!==void 0&&(u=s.registered[u]);var y=o[Ys],p=[u],D="";typeof o.className=="string"?D=C1(s.registered,p,o.className):o.className!=null&&(D=o.className+" ");var L=xh(p,void 0,M.useContext(R1));D+=s.key+"-"+L.name;var k={};for(var x in o)qi.call(o,x)&&x!=="css"&&x!==Ys&&(k[x]=o[x]);return k.className=D,h&&(k.ref=h),M.createElement(M.Fragment,null,M.createElement(L1,{cache:s,serialized:L,isStringTag:typeof y=="string"}),M.createElement(y,k))}),Js=U1,Tt=Ui.Fragment,c=function(s,h,u){return qi.call(h,"css")?Ui.jsx(Js,Ks(s,h),u):Ui.jsx(s,h,u)},S=function(s,h,u){return qi.call(h,"css")?Ui.jsxs(Js,Ks(s,h),u):Ui.jsxs(s,h,u)},Rs={exports:{}},Ri={},Ls={exports:{}},Us={};var eh;function H1(){return eh||(eh=1,(function(o){function s(A,Y){var J=A.length;A.push(Y);e:for(;0<J;){var se=J-1>>>1,Ee=A[se];if(0<y(Ee,Y))A[se]=Y,A[J]=Ee,J=se;else break e}}function h(A){return A.length===0?null:A[0]}function u(A){if(A.length===0)return null;var Y=A[0],J=A.pop();if(J!==Y){A[0]=J;e:for(var se=0,Ee=A.length,g=Ee>>>1;se<g;){var R=2*(se+1)-1,N=A[R],I=R+1,P=A[I];if(0>y(N,J))I<Ee&&0>y(P,N)?(A[se]=P,A[I]=J,se=I):(A[se]=N,A[R]=J,se=R);else if(I<Ee&&0>y(P,J))A[se]=P,A[I]=J,se=I;else break e}}return Y}function y(A,Y){var J=A.sortIndex-Y.sortIndex;return J!==0?J:A.id-Y.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var D=Date,L=D.now();o.unstable_now=function(){return D.now()-L}}var k=[],x=[],G=1,B=null,V=3,ae=!1,q=!1,X=!1,ve=!1,W=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;function le(A){for(var Y=h(x);Y!==null;){if(Y.callback===null)u(x);else if(Y.startTime<=A)u(x),Y.sortIndex=Y.expirationTime,s(k,Y);else break;Y=h(x)}}function _(A){if(X=!1,le(A),!q)if(h(k)!==null)q=!0,Q||(Q=!0,He());else{var Y=h(x);Y!==null&&Me(_,Y.startTime-A)}}var Q=!1,j=-1,Se=5,Le=-1;function De(){return ve?!0:!(o.unstable_now()-Le<Se)}function Ne(){if(ve=!1,Q){var A=o.unstable_now();Le=A;var Y=!0;try{e:{q=!1,X&&(X=!1,ce(j),j=-1),ae=!0;var J=V;try{t:{for(le(A),B=h(k);B!==null&&!(B.expirationTime>A&&De());){var se=B.callback;if(typeof se=="function"){B.callback=null,V=B.priorityLevel;var Ee=se(B.expirationTime<=A);if(A=o.unstable_now(),typeof Ee=="function"){B.callback=Ee,le(A),Y=!0;break t}B===h(k)&&u(k),le(A)}else u(k);B=h(k)}if(B!==null)Y=!0;else{var g=h(x);g!==null&&Me(_,g.startTime-A),Y=!1}}break e}finally{B=null,V=J,ae=!1}Y=void 0}}finally{Y?He():Q=!1}}}var He;if(typeof te=="function")He=function(){te(Ne)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,We=Fe.port2;Fe.port1.onmessage=Ne,He=function(){We.postMessage(null)}}else He=function(){W(Ne,0)};function Me(A,Y){j=W(function(){A(o.unstable_now())},Y)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(A){A.callback=null},o.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Se=0<A?Math.floor(1e3/A):5},o.unstable_getCurrentPriorityLevel=function(){return V},o.unstable_next=function(A){switch(V){case 1:case 2:case 3:var Y=3;break;default:Y=V}var J=V;V=Y;try{return A()}finally{V=J}},o.unstable_requestPaint=function(){ve=!0},o.unstable_runWithPriority=function(A,Y){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=V;V=A;try{return Y()}finally{V=J}},o.unstable_scheduleCallback=function(A,Y,J){var se=o.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,A){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=J+Ee,A={id:G++,callback:Y,priorityLevel:A,startTime:J,expirationTime:Ee,sortIndex:-1},J>se?(A.sortIndex=J,s(x,A),h(k)===null&&A===h(x)&&(X?(ce(j),j=-1):X=!0,Me(_,J-se))):(A.sortIndex=Ee,s(k,A),q||ae||(q=!0,Q||(Q=!0,He()))),A},o.unstable_shouldYield=De,o.unstable_wrapCallback=function(A){var Y=V;return function(){var J=V;V=Y;try{return A.apply(this,arguments)}finally{V=J}}}})(Us)),Us}var th;function N1(){return th||(th=1,Ls.exports=H1()),Ls.exports}var Hs={exports:{}},Lt={};var lh;function B1(){if(lh)return Lt;lh=1;var o=Vs();function s(k){var x="https://react.dev/errors/"+k;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)x+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+k+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var u={d:{f:h,r:function(){throw Error(s(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},y=Symbol.for("react.portal");function p(k,x,G){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:B==null?null:""+B,children:k,containerInfo:x,implementation:G}}var D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function L(k,x){if(k==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Lt.createPortal=function(k,x){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return p(k,x,null,G)},Lt.flushSync=function(k){var x=D.T,G=u.p;try{if(D.T=null,u.p=2,k)return k()}finally{D.T=x,u.p=G,u.d.f()}},Lt.preconnect=function(k,x){typeof k=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,u.d.C(k,x))},Lt.prefetchDNS=function(k){typeof k=="string"&&u.d.D(k)},Lt.preinit=function(k,x){if(typeof k=="string"&&x&&typeof x.as=="string"){var G=x.as,B=L(G,x.crossOrigin),V=typeof x.integrity=="string"?x.integrity:void 0,ae=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;G==="style"?u.d.S(k,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:B,integrity:V,fetchPriority:ae}):G==="script"&&u.d.X(k,{crossOrigin:B,integrity:V,fetchPriority:ae,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Lt.preinitModule=function(k,x){if(typeof k=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var G=L(x.as,x.crossOrigin);u.d.M(k,{crossOrigin:G,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&u.d.M(k)},Lt.preload=function(k,x){if(typeof k=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var G=x.as,B=L(G,x.crossOrigin);u.d.L(k,G,{crossOrigin:B,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Lt.preloadModule=function(k,x){if(typeof k=="string")if(x){var G=L(x.as,x.crossOrigin);u.d.m(k,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:G,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else u.d.m(k)},Lt.requestFormReset=function(k){u.d.r(k)},Lt.unstable_batchedUpdates=function(k,x){return k(x)},Lt.useFormState=function(k,x,G){return D.H.useFormState(k,x,G)},Lt.useFormStatus=function(){return D.H.useHostTransitionStatus()},Lt.version="19.2.4",Lt}var nh;function j1(){if(nh)return Hs.exports;nh=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),Hs.exports=B1(),Hs.exports}var ah;function q1(){if(ah)return Ri;ah=1;var o=N1(),s=Vs(),h=j1();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function D(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function L(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function k(e){if(p(e)!==e)throw Error(u(188))}function x(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return k(a),e;if(i===n)return k(a),t;i=i.sibling}throw Error(u(188))}if(l.return!==n.return)l=a,n=i;else{for(var r=!1,d=a.child;d;){if(d===l){r=!0,l=a,n=i;break}if(d===n){r=!0,n=a,l=i;break}d=d.sibling}if(!r){for(d=i.child;d;){if(d===l){r=!0,l=i,n=a;break}if(d===n){r=!0,n=i,l=a;break}d=d.sibling}if(!r)throw Error(u(189))}}if(l.alternate!==n)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=G(e),t!==null)return t;e=e.sibling}return null}var B=Object.assign,V=Symbol.for("react.element"),ae=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),te=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function He(e){return e===null||typeof e!="object"?null:(e=Ne&&e[Ne]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case W:return"Profiler";case ve:return"StrictMode";case _:return"Suspense";case Q:return"SuspenseList";case Le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case te:return e.displayName||"Context";case ce:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case Se:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var Me=Array.isArray,A=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],Ee=-1;function g(e){return{current:e}}function R(e){0>Ee||(e.current=se[Ee],se[Ee]=null,Ee--)}function N(e,t){Ee++,se[Ee]=e.current,e.current=t}var I=g(null),P=g(null),ue=g(null),Ue=g(null);function xt(e,t){switch(N(ue,t),N(P,e),N(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?s0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=s0(t),e=u0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(I),N(I,e)}function et(){R(I),R(P),R(ue)}function _l(e){e.memoizedState!==null&&N(Ue,e);var t=I.current,l=u0(t,e.type);t!==l&&(N(P,e),N(I,l))}function be(e){P.current===e&&(R(I),R(P)),Ue.current===e&&(R(Ue),Ai._currentValue=J)}var Dl,Tn;function _e(e){if(Dl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Dl=t&&t[1]||"",Tn=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Dl+e+Tn}var St=!1;function At(e,t){if(!e||St)return"";St=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(E){var T=E}Reflect.construct(e,[],H)}else{try{H.call()}catch(E){T=E}e.call(H.prototype)}}else{try{throw Error()}catch(E){T=E}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(E){if(E&&T&&typeof E.stack=="string")return[E.stack,T.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),r=i[0],d=i[1];if(r&&d){var m=r.split(`
|
|
4
|
+
`),w=d.split(`
|
|
5
|
+
`);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===w.length)for(n=m.length-1,a=w.length-1;1<=n&&0<=a&&m[n]!==w[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==w[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==w[a]){var O=`
|
|
6
|
+
`+m[n].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=n&&0<=a);break}}}finally{St=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?_e(l):""}function Rt(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return At(e.type,!1);case 11:return At(e.type.render,!1);case 1:return At(e.type,!0);case 31:return _e("Activity");default:return""}}function ll(e){try{var t="",l=null;do t+=Rt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
|
|
7
|
+
Error generating stack: `+n.message+`
|
|
8
|
+
`+n.stack}}var hl=Object.prototype.hasOwnProperty,kl=o.unstable_scheduleCallback,pl=o.unstable_cancelCallback,$n=o.unstable_shouldYield,An=o.unstable_requestPaint,Ht=o.unstable_now,pr=o.unstable_getCurrentPriorityLevel,Gi=o.unstable_ImmediatePriority,Vi=o.unstable_UserBlockingPriority,Wn=o.unstable_NormalPriority,Xi=o.unstable_LowPriority,Qi=o.unstable_IdlePriority,Ol=o.log,mr=o.unstable_setDisableYieldValue,En=null,Nt=null;function bl(e){if(typeof Ol=="function"&&mr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(En,e)}catch{}}var Bt=Math.clz32?Math.clz32:vr,gr=Math.log,yr=Math.LN2;function vr(e){return e>>>=0,e===0?32:31-(gr(e)/yr|0)|0}var _n=256,xl=262144,In=4194304;function Rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kt(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=Rl(n):(r&=d,r!==0?a=Rl(r):l||(l=d&~e,l!==0&&(a=Rl(l))))):(d=n&~i,d!==0?a=Rl(d):r!==0?a=Rl(r):l||(l=n&~e,l!==0&&(a=Rl(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function Dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ya(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ll(){var e=In;return In<<=1,(In&62914560)===0&&(In=4194304),e}function Sl(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function en(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function br(e,t,l,n,a,i){var r=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,m=e.expirationTimes,w=e.hiddenUpdates;for(l=r&~l;0<l;){var O=31-Bt(l),H=1<<O;d[O]=0,m[O]=-1;var T=w[O];if(T!==null)for(w[O]=null,O=0;O<T.length;O++){var E=T[O];E!==null&&(E.lane&=-536870913)}l&=~H}n!==0&&he(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function he(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Bt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Z(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Bt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function ee(e,t){var l=t&-t;return l=(l&42)!==0?1:ge(l),(l&(e.suspendedLanes|t))!==0?0:l}function ge(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function me(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ce(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:R0(e.type))}function qe(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var ye=Math.random().toString(36).slice(2),$="__reactFiber$"+ye,ke="__reactProps$"+ye,fe="__reactContainer$"+ye,pt="__reactEvents$"+ye,Pn="__reactListeners$"+ye,Ga="__reactHandles$"+ye,ml="__reactResources$"+ye,kn="__reactMarker$"+ye;function xr(e){delete e[$],delete e[ke],delete e[pt],delete e[Pn],delete e[Ga]}function ea(e){var t=e[$];if(t)return t;for(var l=e.parentNode;l;){if(t=l[fe]||l[$]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=y0(e);e!==null;){if(l=e[$])return l;e=y0(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[$]||e[fe]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function la(e){var t=e[ml];return t||(t=e[ml]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function zt(e){e[kn]=!0}var $s=new Set,Ws={};function On(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(Ws[e]=t,e=0;e<t.length;e++)$s.add(t[e])}var Eh=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]*$"),Is={},Ps={};function _h(e){return hl.call(Ps,e)?!0:hl.call(Is,e)?!1:Eh.test(e)?Ps[e]=!0:(Is[e]=!0,!1)}function Zi(e,t,l){if(_h(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ki(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ul(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function nl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dh(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(r){l=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){if(!e._valueTracker){var t=eu(e)?"checked":"value";e._valueTracker=Dh(e,t,""+e[t])}}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=eu(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var kh=/[\n"\\]/g;function al(e){return e.replace(kh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Cr(e,t,l,n,a,i,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nl(t)):e.value!==""+nl(t)&&(e.value=""+nl(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?zr(e,r,nl(t)):l!=null?zr(e,r,nl(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+nl(d):e.removeAttribute("name")}function lu(e,t,l,n,a,i,r,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Sr(e);return}l=l!=null?""+nl(l):"",t=t!=null?""+nl(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Sr(e)}function zr(e,t,l){t==="number"&&Ji(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function aa(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+nl(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function nu(e,t,l){if(t!=null&&(t=""+nl(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+nl(l):""}function au(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(u(92));if(Me(n)){if(1<n.length)throw Error(u(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=nl(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Sr(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Oh=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 iu(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||Oh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ou(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&iu(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&iu(e,i,t[i])}function wr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rh=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"]]),Lh=/^[\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 Fi(e){return Lh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hl(){}var Mr=null;function Tr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ra=null;function ru(e){var t=ta(e);if(t&&(e=t.stateNode)){var l=e[ke]||null;e:switch(e=t.stateNode,t.type){case"input":if(Cr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+al(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ke]||null;if(!a)throw Error(u(90));Cr(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&tu(n)}break e;case"textarea":nu(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&aa(e,!!l.multiple,t,!1)}}}var Ar=!1;function cu(e,t,l){if(Ar)return e(t,l);Ar=!0;try{var n=e(t);return n}finally{if(Ar=!1,(oa!==null||ra!==null)&&(No(),oa&&(t=oa,e=ra,ra=oa=null,ru(t),e)))for(t=0;t<e.length;t++)ru(e[t])}}function Xa(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ke]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var Nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Er=!1;if(Nl)try{var Qa={};Object.defineProperty(Qa,"passive",{get:function(){Er=!0}}),window.addEventListener("test",Qa,Qa),window.removeEventListener("test",Qa,Qa)}catch{Er=!1}var tn=null,_r=null,$i=null;function su(){if($i)return $i;var e,t=_r,l=t.length,n,a="value"in tn?tn.value:tn.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var r=l-e;for(n=1;n<=r&&t[l-n]===a[i-n];n++);return $i=a.slice(e,1<n?1-n:void 0)}function Wi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function uu(){return!1}function qt(e){function t(l,n,a,i,r){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ii:uu,this.isPropagationStopped=uu,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pi=qt(Rn),Za=B({},Rn,{view:0,detail:0}),Uh=qt(Za),Dr,kr,Ka,eo=B({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ka&&(Ka&&e.type==="mousemove"?(Dr=e.screenX-Ka.screenX,kr=e.screenY-Ka.screenY):kr=Dr=0,Ka=e),Dr)},movementY:function(e){return"movementY"in e?e.movementY:kr}}),fu=qt(eo),Hh=B({},eo,{dataTransfer:0}),Nh=qt(Hh),Bh=B({},Za,{relatedTarget:0}),Or=qt(Bh),jh=B({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),qh=qt(jh),Yh=B({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gh=qt(Yh),Vh=B({},Rn,{data:0}),du=qt(Vh),Xh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qh={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"},Zh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zh[e])?!!t[e]:!1}function Rr(){return Kh}var Jh=B({},Za,{key:function(e){if(e.key){var t=Xh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rr,charCode:function(e){return e.type==="keypress"?Wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fh=qt(Jh),$h=B({},eo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=qt($h),Wh=B({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rr}),Ih=qt(Wh),Ph=B({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ep=qt(Ph),tp=B({},eo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lp=qt(tp),np=B({},Rn,{newState:0,oldState:0}),ap=qt(np),ip=[9,13,27,32],Lr=Nl&&"CompositionEvent"in window,Ja=null;Nl&&"documentMode"in document&&(Ja=document.documentMode);var op=Nl&&"TextEvent"in window&&!Ja,pu=Nl&&(!Lr||Ja&&8<Ja&&11>=Ja),mu=" ",gu=!1;function yu(e,t){switch(e){case"keyup":return ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function rp(e,t){switch(e){case"compositionend":return vu(t);case"keypress":return t.which!==32?null:(gu=!0,mu);case"textInput":return e=t.data,e===mu&&gu?null:e;default:return null}}function cp(e,t){if(ca)return e==="compositionend"||!Lr&&yu(e,t)?(e=su(),$i=_r=tn=null,ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pu&&t.locale!=="ko"?null:t.data;default:return null}}var sp={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 bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sp[e.type]:t==="textarea"}function xu(e,t,l,n){oa?ra?ra.push(n):ra=[n]:oa=n,t=Xo(t,"onChange"),0<t.length&&(l=new Pi("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Fa=null,$a=null;function up(e){n0(e,0)}function to(e){var t=Va(e);if(tu(t))return e}function Su(e,t){if(e==="change")return t}var Cu=!1;if(Nl){var Ur;if(Nl){var Hr="oninput"in document;if(!Hr){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),Hr=typeof zu.oninput=="function"}Ur=Hr}else Ur=!1;Cu=Ur&&(!document.documentMode||9<document.documentMode)}function wu(){Fa&&(Fa.detachEvent("onpropertychange",Mu),$a=Fa=null)}function Mu(e){if(e.propertyName==="value"&&to($a)){var t=[];xu(t,$a,e,Tr(e)),cu(up,t)}}function fp(e,t,l){e==="focusin"?(wu(),Fa=t,$a=l,Fa.attachEvent("onpropertychange",Mu)):e==="focusout"&&wu()}function dp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return to($a)}function hp(e,t){if(e==="click")return to(t)}function pp(e,t){if(e==="input"||e==="change")return to(t)}function mp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:mp;function Wa(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!hl.call(t,a)||!Jt(e[a],t[a]))return!1}return!0}function Tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Au(e,t){var l=Tu(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Tu(l)}}function Eu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _u(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ji(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ji(e.document)}return t}function Nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gp=Nl&&"documentMode"in document&&11>=document.documentMode,sa=null,Br=null,Ia=null,jr=!1;function Du(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jr||sa==null||sa!==Ji(n)||(n=sa,"selectionStart"in n&&Nr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ia&&Wa(Ia,n)||(Ia=n,n=Xo(Br,"onSelect"),0<n.length&&(t=new Pi("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=sa)))}function Ln(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ua={animationend:Ln("Animation","AnimationEnd"),animationiteration:Ln("Animation","AnimationIteration"),animationstart:Ln("Animation","AnimationStart"),transitionrun:Ln("Transition","TransitionRun"),transitionstart:Ln("Transition","TransitionStart"),transitioncancel:Ln("Transition","TransitionCancel"),transitionend:Ln("Transition","TransitionEnd")},qr={},ku={};Nl&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Un(e){if(qr[e])return qr[e];if(!ua[e])return e;var t=ua[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ku)return qr[e]=t[l];return e}var Ou=Un("animationend"),Ru=Un("animationiteration"),Lu=Un("animationstart"),yp=Un("transitionrun"),vp=Un("transitionstart"),bp=Un("transitioncancel"),Uu=Un("transitionend"),Hu=new Map,Yr="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(" ");Yr.push("scrollEnd");function gl(e,t){Hu.set(e,t),On(t,[e])}var lo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},il=[],fa=0,Gr=0;function no(){for(var e=fa,t=Gr=fa=0;t<e;){var l=il[t];il[t++]=null;var n=il[t];il[t++]=null;var a=il[t];il[t++]=null;var i=il[t];if(il[t++]=null,n!==null&&a!==null){var r=n.pending;r===null?a.next=a:(a.next=r.next,r.next=a),n.pending=a}i!==0&&Nu(l,a,i)}}function ao(e,t,l,n){il[fa++]=e,il[fa++]=t,il[fa++]=l,il[fa++]=n,Gr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Vr(e,t,l,n){return ao(e,t,l,n),io(e)}function Hn(e,t){return ao(e,null,null,t),io(e)}function Nu(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Bt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function io(e){if(50<xi)throw xi=0,Ic=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function xp(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,l,n){return new xp(e,t,l,n)}function Xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bl(e,t){var l=e.alternate;return l===null?(l=Ft(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Bu(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oo(e,t,l,n,a,i){var r=0;if(n=e,typeof e=="function")Xr(e)&&(r=1);else if(typeof e=="string")r=Mm(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Le:return e=Ft(31,l,t,a),e.elementType=Le,e.lanes=i,e;case X:return Nn(l.children,a,i,t);case ve:r=8,a|=24;break;case W:return e=Ft(12,l,t,a|2),e.elementType=W,e.lanes=i,e;case _:return e=Ft(13,l,t,a),e.elementType=_,e.lanes=i,e;case Q:return e=Ft(19,l,t,a),e.elementType=Q,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:r=10;break e;case ce:r=9;break e;case le:r=11;break e;case j:r=14;break e;case Se:r=16,n=null;break e}r=29,l=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=Ft(r,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Nn(e,t,l,n){return e=Ft(7,e,n,t),e.lanes=l,e}function Qr(e,t,l){return e=Ft(6,e,null,t),e.lanes=l,e}function ju(e){var t=Ft(18,null,null,0);return t.stateNode=e,t}function Zr(e,t,l){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qu=new WeakMap;function ol(e,t){if(typeof e=="object"&&e!==null){var l=qu.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ll(t)},qu.set(e,t),t)}return{value:e,source:t,stack:ll(t)}}var ha=[],pa=0,ro=null,Pa=0,rl=[],cl=0,ln=null,Cl=1,zl="";function jl(e,t){ha[pa++]=Pa,ha[pa++]=ro,ro=e,Pa=t}function Yu(e,t,l){rl[cl++]=Cl,rl[cl++]=zl,rl[cl++]=ln,ln=e;var n=Cl;e=zl;var a=32-Bt(n)-1;n&=~(1<<a),l+=1;var i=32-Bt(t)+a;if(30<i){var r=a-a%5;i=(n&(1<<r)-1).toString(32),n>>=r,a-=r,Cl=1<<32-Bt(t)+a|l<<a|n,zl=i+e}else Cl=1<<i|l<<a|n,zl=e}function Kr(e){e.return!==null&&(jl(e,1),Yu(e,1,0))}function Jr(e){for(;e===ro;)ro=ha[--pa],ha[pa]=null,Pa=ha[--pa],ha[pa]=null;for(;e===ln;)ln=rl[--cl],rl[cl]=null,zl=rl[--cl],rl[cl]=null,Cl=rl[--cl],rl[cl]=null}function Gu(e,t){rl[cl++]=Cl,rl[cl++]=zl,rl[cl++]=ln,Cl=t.id,zl=t.overflow,ln=e}var Et=null,ot=null,Ve=!1,nn=null,sl=!1,Fr=Error(u(519));function an(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ei(ol(t,e)),Fr}function Vu(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[$]=e,t[ke]=n,l){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(l=0;l<Ci.length;l++)je(Ci[l],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),lu(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),au(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||r0(t.textContent,l)?(n.popover!=null&&(je("beforetoggle",t),je("toggle",t)),n.onScroll!=null&&je("scroll",t),n.onScrollEnd!=null&&je("scrollend",t),n.onClick!=null&&(t.onclick=Hl),t=!0):t=!1,t||an(e,!0)}function Xu(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:sl=!1;return;case 27:case 3:sl=!0;return;default:Et=Et.return}}function ma(e){if(e!==Et)return!1;if(!Ve)return Xu(e),Ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||hs(e.type,e.memoizedProps)),l=!l),l&&ot&&an(e),Xu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=g0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));ot=g0(e)}else t===27?(t=ot,bn(e.type)?(e=vs,vs=null,ot=e):ot=t):ot=Et?fl(e.stateNode.nextSibling):null;return!0}function Bn(){ot=Et=null,Ve=!1}function $r(){var e=nn;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),nn=null),e}function ei(e){nn===null?nn=[e]:nn.push(e)}var Wr=g(null),jn=null,ql=null;function on(e,t,l){N(Wr,t._currentValue),t._currentValue=l}function Yl(e){e._currentValue=Wr.current,R(Wr)}function Ir(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Pr(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var r=a.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=a;for(var m=0;m<t.length;m++)if(d.context===t[m]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Ir(i.return,l,e),n||(r=null);break e}i=d.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(u(341));r.lanes|=l,i=r.alternate,i!==null&&(i.lanes|=l),Ir(r,l,e),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function ga(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var r=a.alternate;if(r===null)throw Error(u(387));if(r=r.memoizedProps,r!==null){var d=a.type;Jt(a.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(a===Ue.current){if(r=a.alternate,r===null)throw Error(u(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}a=a.return}e!==null&&Pr(t,e,l,n),t.flags|=262144}function co(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qn(e){jn=e,ql=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return Qu(jn,e)}function so(e,t){return jn===null&&qn(e),Qu(e,t)}function Qu(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ql===null){if(e===null)throw Error(u(308));ql=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ql=ql.next=t;return l}var Sp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Cp=o.unstable_scheduleCallback,zp=o.unstable_NormalPriority,mt={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new Sp,data:new Map,refCount:0}}function ti(e){e.refCount--,e.refCount===0&&Cp(zp,function(){e.controller.abort()})}var li=null,tc=0,ya=0,va=null;function wp(e,t){if(li===null){var l=li=[];tc=0,ya=as(),va={status:"pending",value:void 0,then:function(n){l.push(n)}}}return tc++,t.then(Zu,Zu),t}function Zu(){if(--tc===0&&li!==null){va!==null&&(va.status="fulfilled");var e=li;li=null,ya=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mp(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Ku=A.S;A.S=function(e,t){kd=Ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wp(e,t),Ku!==null&&Ku(e,t)};var Yn=g(null);function lc(){var e=Yn.current;return e!==null?e:at.pooledCache}function uo(e,t){t===null?N(Yn,Yn.current):N(Yn,t.pool)}function Ju(){var e=lc();return e===null?null:{parent:mt._currentValue,pool:e}}var ba=Error(u(460)),nc=Error(u(474)),fo=Error(u(542)),ho={then:function(){}};function Fu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $u(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Hl,Hl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Iu(e),e;default:if(typeof t.status=="string")t.then(Hl,Hl);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Iu(e),e}throw Vn=t,ba}}function Gn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vn=l,ba):l}}var Vn=null;function Wu(){if(Vn===null)throw Error(u(459));var e=Vn;return Vn=null,e}function Iu(e){if(e===ba||e===fo)throw Error(u(483))}var xa=null,ni=0;function po(e){var t=ni;return ni+=1,xa===null&&(xa=[]),$u(xa,e,t)}function ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mo(e,t){throw t.$$typeof===V?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pu(e){function t(C,v){if(e){var z=C.deletions;z===null?(C.deletions=[v],C.flags|=16):z.push(v)}}function l(C,v){if(!e)return null;for(;v!==null;)t(C,v),v=v.sibling;return null}function n(C){for(var v=new Map;C!==null;)C.key!==null?v.set(C.key,C):v.set(C.index,C),C=C.sibling;return v}function a(C,v){return C=Bl(C,v),C.index=0,C.sibling=null,C}function i(C,v,z){return C.index=z,e?(z=C.alternate,z!==null?(z=z.index,z<v?(C.flags|=67108866,v):z):(C.flags|=67108866,v)):(C.flags|=1048576,v)}function r(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function d(C,v,z,U){return v===null||v.tag!==6?(v=Qr(z,C.mode,U),v.return=C,v):(v=a(v,z),v.return=C,v)}function m(C,v,z,U){var pe=z.type;return pe===X?O(C,v,z.props.children,U,z.key):v!==null&&(v.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Se&&Gn(pe)===v.type)?(v=a(v,z.props),ai(v,z),v.return=C,v):(v=oo(z.type,z.key,z.props,null,C.mode,U),ai(v,z),v.return=C,v)}function w(C,v,z,U){return v===null||v.tag!==4||v.stateNode.containerInfo!==z.containerInfo||v.stateNode.implementation!==z.implementation?(v=Zr(z,C.mode,U),v.return=C,v):(v=a(v,z.children||[]),v.return=C,v)}function O(C,v,z,U,pe){return v===null||v.tag!==7?(v=Nn(z,C.mode,U,pe),v.return=C,v):(v=a(v,z),v.return=C,v)}function H(C,v,z){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Qr(""+v,C.mode,z),v.return=C,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ae:return z=oo(v.type,v.key,v.props,null,C.mode,z),ai(z,v),z.return=C,z;case q:return v=Zr(v,C.mode,z),v.return=C,v;case Se:return v=Gn(v),H(C,v,z)}if(Me(v)||He(v))return v=Nn(v,C.mode,z,null),v.return=C,v;if(typeof v.then=="function")return H(C,po(v),z);if(v.$$typeof===te)return H(C,so(C,v),z);mo(C,v)}return null}function T(C,v,z,U){var pe=v!==null?v.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return pe!==null?null:d(C,v,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ae:return z.key===pe?m(C,v,z,U):null;case q:return z.key===pe?w(C,v,z,U):null;case Se:return z=Gn(z),T(C,v,z,U)}if(Me(z)||He(z))return pe!==null?null:O(C,v,z,U,null);if(typeof z.then=="function")return T(C,v,po(z),U);if(z.$$typeof===te)return T(C,v,so(C,z),U);mo(C,z)}return null}function E(C,v,z,U,pe){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(z)||null,d(v,C,""+U,pe);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ae:return C=C.get(U.key===null?z:U.key)||null,m(v,C,U,pe);case q:return C=C.get(U.key===null?z:U.key)||null,w(v,C,U,pe);case Se:return U=Gn(U),E(C,v,z,U,pe)}if(Me(U)||He(U))return C=C.get(z)||null,O(v,C,U,pe,null);if(typeof U.then=="function")return E(C,v,z,po(U),pe);if(U.$$typeof===te)return E(C,v,z,so(v,U),pe);mo(v,U)}return null}function ne(C,v,z,U){for(var pe=null,Xe=null,re=v,Re=v=0,Ge=null;re!==null&&Re<z.length;Re++){re.index>Re?(Ge=re,re=null):Ge=re.sibling;var Qe=T(C,re,z[Re],U);if(Qe===null){re===null&&(re=Ge);break}e&&re&&Qe.alternate===null&&t(C,re),v=i(Qe,v,Re),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe,re=Ge}if(Re===z.length)return l(C,re),Ve&&jl(C,Re),pe;if(re===null){for(;Re<z.length;Re++)re=H(C,z[Re],U),re!==null&&(v=i(re,v,Re),Xe===null?pe=re:Xe.sibling=re,Xe=re);return Ve&&jl(C,Re),pe}for(re=n(re);Re<z.length;Re++)Ge=E(re,C,Re,z[Re],U),Ge!==null&&(e&&Ge.alternate!==null&&re.delete(Ge.key===null?Re:Ge.key),v=i(Ge,v,Re),Xe===null?pe=Ge:Xe.sibling=Ge,Xe=Ge);return e&&re.forEach(function(wn){return t(C,wn)}),Ve&&jl(C,Re),pe}function xe(C,v,z,U){if(z==null)throw Error(u(151));for(var pe=null,Xe=null,re=v,Re=v=0,Ge=null,Qe=z.next();re!==null&&!Qe.done;Re++,Qe=z.next()){re.index>Re?(Ge=re,re=null):Ge=re.sibling;var wn=T(C,re,Qe.value,U);if(wn===null){re===null&&(re=Ge);break}e&&re&&wn.alternate===null&&t(C,re),v=i(wn,v,Re),Xe===null?pe=wn:Xe.sibling=wn,Xe=wn,re=Ge}if(Qe.done)return l(C,re),Ve&&jl(C,Re),pe;if(re===null){for(;!Qe.done;Re++,Qe=z.next())Qe=H(C,Qe.value,U),Qe!==null&&(v=i(Qe,v,Re),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe);return Ve&&jl(C,Re),pe}for(re=n(re);!Qe.done;Re++,Qe=z.next())Qe=E(re,C,Re,Qe.value,U),Qe!==null&&(e&&Qe.alternate!==null&&re.delete(Qe.key===null?Re:Qe.key),v=i(Qe,v,Re),Xe===null?pe=Qe:Xe.sibling=Qe,Xe=Qe);return e&&re.forEach(function(Hm){return t(C,Hm)}),Ve&&jl(C,Re),pe}function nt(C,v,z,U){if(typeof z=="object"&&z!==null&&z.type===X&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case ae:e:{for(var pe=z.key;v!==null;){if(v.key===pe){if(pe=z.type,pe===X){if(v.tag===7){l(C,v.sibling),U=a(v,z.props.children),U.return=C,C=U;break e}}else if(v.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Se&&Gn(pe)===v.type){l(C,v.sibling),U=a(v,z.props),ai(U,z),U.return=C,C=U;break e}l(C,v);break}else t(C,v);v=v.sibling}z.type===X?(U=Nn(z.props.children,C.mode,U,z.key),U.return=C,C=U):(U=oo(z.type,z.key,z.props,null,C.mode,U),ai(U,z),U.return=C,C=U)}return r(C);case q:e:{for(pe=z.key;v!==null;){if(v.key===pe)if(v.tag===4&&v.stateNode.containerInfo===z.containerInfo&&v.stateNode.implementation===z.implementation){l(C,v.sibling),U=a(v,z.children||[]),U.return=C,C=U;break e}else{l(C,v);break}else t(C,v);v=v.sibling}U=Zr(z,C.mode,U),U.return=C,C=U}return r(C);case Se:return z=Gn(z),nt(C,v,z,U)}if(Me(z))return ne(C,v,z,U);if(He(z)){if(pe=He(z),typeof pe!="function")throw Error(u(150));return z=pe.call(z),xe(C,v,z,U)}if(typeof z.then=="function")return nt(C,v,po(z),U);if(z.$$typeof===te)return nt(C,v,so(C,z),U);mo(C,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,v!==null&&v.tag===6?(l(C,v.sibling),U=a(v,z),U.return=C,C=U):(l(C,v),U=Qr(z,C.mode,U),U.return=C,C=U),r(C)):l(C,v)}return function(C,v,z,U){try{ni=0;var pe=nt(C,v,z,U);return xa=null,pe}catch(re){if(re===ba||re===fo)throw re;var Xe=Ft(29,re,null,C.mode);return Xe.lanes=U,Xe.return=C,Xe}}}var Xn=Pu(!0),ef=Pu(!1),rn=!1;function ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function cn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ze&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=io(e),Nu(e,null,l),t}return ao(e,n,t,l),io(e)}function ii(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Z(e,l)}}function oc(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=r:i=i.next=r,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var rc=!1;function oi(){if(rc){var e=va;if(e!==null)throw e}}function ri(e,t,l,n){rc=!1;var a=e.updateQueue;rn=!1;var i=a.firstBaseUpdate,r=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,w=m.next;m.next=null,r===null?i=w:r.next=w,r=m;var O=e.alternate;O!==null&&(O=O.updateQueue,d=O.lastBaseUpdate,d!==r&&(d===null?O.firstBaseUpdate=w:d.next=w,O.lastBaseUpdate=m))}if(i!==null){var H=a.baseState;r=0,O=w=m=null,d=i;do{var T=d.lane&-536870913,E=T!==d.lane;if(E?(Ye&T)===T:(n&T)===T){T!==0&&T===ya&&(rc=!0),O!==null&&(O=O.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var ne=e,xe=d;T=t;var nt=l;switch(xe.tag){case 1:if(ne=xe.payload,typeof ne=="function"){H=ne.call(nt,H,T);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=xe.payload,T=typeof ne=="function"?ne.call(nt,H,T):ne,T==null)break e;H=B({},H,T);break e;case 2:rn=!0}}T=d.callback,T!==null&&(e.flags|=64,E&&(e.flags|=8192),E=a.callbacks,E===null?a.callbacks=[T]:E.push(T))}else E={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},O===null?(w=O=E,m=H):O=O.next=E,r|=T;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;E=d,d=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);O===null&&(m=H),a.baseState=m,a.firstBaseUpdate=w,a.lastBaseUpdate=O,i===null&&(a.shared.lanes=0),pn|=r,e.lanes=r,e.memoizedState=H}}function tf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)tf(l[e],t)}var Sa=g(null),go=g(0);function nf(e,t){e=$l,N(go,e),N(Sa,t),$l=e|t.baseLanes}function cc(){N(go,$l),N(Sa,Sa.current)}function sc(){$l=go.current,R(Sa),R(go)}var $t=g(null),ul=null;function un(e){var t=e.alternate;N(dt,dt.current&1),N($t,e),ul===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(ul=e)}function uc(e){N(dt,dt.current),N($t,e),ul===null&&(ul=e)}function af(e){e.tag===22?(N(dt,dt.current),N($t,e),ul===null&&(ul=e)):fn()}function fn(){N(dt,dt.current),N($t,$t.current)}function Wt(e){R($t),ul===e&&(ul=null),R(dt)}var dt=g(0);function yo(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||gs(l)||ys(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gl=0,Oe=null,tt=null,gt=null,vo=!1,Ca=!1,Qn=!1,bo=0,ci=0,za=null,Tp=0;function st(){throw Error(u(321))}function fc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Jt(e[l],t[l]))return!1;return!0}function dc(e,t,l,n,a,i){return Gl=i,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Gf:Ac,Qn=!1,i=l(n,a),Qn=!1,Ca&&(i=rf(t,l,n,a)),of(e),i}function of(e){A.H=fi;var t=tt!==null&&tt.next!==null;if(Gl=0,gt=tt=Oe=null,vo=!1,ci=0,za=null,t)throw Error(u(300));e===null||yt||(e=e.dependencies,e!==null&&co(e)&&(yt=!0))}function rf(e,t,l,n){Oe=e;var a=0;do{if(Ca&&(za=null),ci=0,Ca=!1,25<=a)throw Error(u(301));if(a+=1,gt=tt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=Vf,i=t(l,n)}while(Ca);return i}function Ap(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(tt!==null?tt.memoizedState:null)!==e&&(Oe.flags|=1024),t}function hc(){var e=bo!==0;return bo=0,e}function pc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function mc(e){if(vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vo=!1}Gl=0,gt=tt=Oe=null,Ca=!1,ci=bo=0,za=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Oe.memoizedState=gt=e:gt=gt.next=e,gt}function ht(){if(tt===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=tt.next;var t=gt===null?Oe.memoizedState:gt.next;if(t!==null)gt=t,tt=e;else{if(e===null)throw Oe.alternate===null?Error(u(467)):Error(u(310));tt=e,e={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},gt===null?Oe.memoizedState=gt=e:gt=gt.next=e}return gt}function xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ci;return ci+=1,za===null&&(za=[]),e=$u(za,e,t),t=Oe,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Gf:Ac),e}function So(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===te)return _t(e)}throw Error(u(438,String(e)))}function gc(e){var t=null,l=Oe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=Oe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=xo(),Oe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=De;return t.index++,l}function Vl(e,t){return typeof t=="function"?t(e):t}function Co(e){var t=ht();return yc(t,tt,e)}function yc(e,t,l){var n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var r=a.next;a.next=i.next,i.next=r}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var d=r=null,m=null,w=t,O=!1;do{var H=w.lane&-536870913;if(H!==w.lane?(Ye&H)===H:(Gl&H)===H){var T=w.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),H===ya&&(O=!0);else if((Gl&T)===T){w=w.next,T===ya&&(O=!0);continue}else H={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(d=m=H,r=i):m=m.next=H,Oe.lanes|=T,pn|=T;H=w.action,Qn&&l(i,H),i=w.hasEagerState?w.eagerState:l(i,H)}else T={lane:H,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(d=m=T,r=i):m=m.next=T,Oe.lanes|=H,pn|=H;w=w.next}while(w!==null&&w!==t);if(m===null?r=i:m.next=d,!Jt(i,e.memoizedState)&&(yt=!0,O&&(l=va,l!==null)))throw l;e.memoizedState=i,e.baseState=r,e.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function vc(e){var t=ht(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var r=a=a.next;do i=e(i,r.action),r=r.next;while(r!==a);Jt(i,t.memoizedState)||(yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function cf(e,t,l){var n=Oe,a=ht(),i=Ve;if(i){if(l===void 0)throw Error(u(407));l=l()}else l=t();var r=!Jt((tt||a).memoizedState,l);if(r&&(a.memoizedState=l,yt=!0),a=a.queue,Sc(ff.bind(null,n,a,e),[e]),a.getSnapshot!==t||r||gt!==null&>.memoizedState.tag&1){if(n.flags|=2048,wa(9,{destroy:void 0},uf.bind(null,n,a,l,t),null),at===null)throw Error(u(349));i||(Gl&127)!==0||sf(n,t,l)}return l}function sf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Oe.updateQueue,t===null?(t=xo(),Oe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function uf(e,t,l,n){t.value=l,t.getSnapshot=n,df(t)&&hf(e)}function ff(e,t,l){return l(function(){df(t)&&hf(e)})}function df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Jt(e,l)}catch{return!0}}function hf(e){var t=Hn(e,2);t!==null&&Qt(t,e,2)}function bc(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),Qn){bl(!0);try{l()}finally{bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vl,lastRenderedState:e},t}function pf(e,t,l,n){return e.baseState=l,yc(e,tt,typeof n=="function"?n:Vl)}function Ep(e,t,l,n,a){if(Mo(e))throw Error(u(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};A.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,mf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function mf(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=A.T,r={};A.T=r;try{var d=l(a,n),m=A.S;m!==null&&m(r,d),gf(e,t,d)}catch(w){xc(e,t,w)}finally{i!==null&&r.types!==null&&(i.types=r.types),A.T=i}}else try{i=l(a,n),gf(e,t,i)}catch(w){xc(e,t,w)}}function gf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){yf(e,t,n)},function(n){return xc(e,t,n)}):yf(e,t,l)}function yf(e,t,l){t.status="fulfilled",t.value=l,vf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,mf(e,l)))}function xc(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,vf(t),t=t.next;while(t!==n)}e.action=null}function vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bf(e,t){return t}function xf(e,t){if(Ve){var l=at.formState;if(l!==null){e:{var n=Oe;if(Ve){if(ot){t:{for(var a=ot,i=sl;a.nodeType!==8;){if(!i){a=null;break t}if(a=fl(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){ot=fl(a.nextSibling),n=a.data==="F!";break e}}an(n)}n=!1}n&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bf,lastRenderedState:t},l.queue=n,l=jf.bind(null,Oe,n),n.dispatch=l,n=bc(!1),i=Tc.bind(null,Oe,!1,n.queue),n=jt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Ep.bind(null,Oe,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Sf(e){var t=ht();return Cf(t,tt,e)}function Cf(e,t,l){if(t=yc(e,t,bf)[0],e=Co(Vl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=si(t)}catch(r){throw r===ba?fo:r}else n=t;t=ht();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(Oe.flags|=2048,wa(9,{destroy:void 0},_p.bind(null,a,l),null)),[n,i,e]}function _p(e,t){e.action=t}function zf(e){var t=ht(),l=tt;if(l!==null)return Cf(t,l,e);ht(),t=t.memoizedState,l=ht();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function wa(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=xo(),Oe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function wf(){return ht().memoizedState}function zo(e,t,l,n){var a=jt();Oe.flags|=e,a.memoizedState=wa(1|t,{destroy:void 0},l,n===void 0?null:n)}function wo(e,t,l,n){var a=ht();n=n===void 0?null:n;var i=a.memoizedState.inst;tt!==null&&n!==null&&fc(n,tt.memoizedState.deps)?a.memoizedState=wa(t,i,l,n):(Oe.flags|=e,a.memoizedState=wa(1|t,i,l,n))}function Mf(e,t){zo(8390656,8,e,t)}function Sc(e,t){wo(2048,8,e,t)}function Dp(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=xo(),Oe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Tf(e){var t=ht().memoizedState;return Dp({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Af(e,t){return wo(4,2,e,t)}function Ef(e,t){return wo(4,4,e,t)}function _f(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Df(e,t,l){l=l!=null?l.concat([e]):null,wo(4,4,_f.bind(null,t,e),l)}function Cc(){}function kf(e,t){var l=ht();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&fc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Of(e,t){var l=ht();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&fc(t,n[1]))return n[0];if(n=e(),Qn){bl(!0);try{e()}finally{bl(!1)}}return l.memoizedState=[n,t],n}function zc(e,t,l){return l===void 0||(Gl&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Rd(),Oe.lanes|=e,pn|=e,l)}function Rf(e,t,l,n){return Jt(l,t)?l:Sa.current!==null?(e=zc(e,l,n),Jt(e,t)||(yt=!0),e):(Gl&42)===0||(Gl&1073741824)!==0&&(Ye&261930)===0?(yt=!0,e.memoizedState=l):(e=Rd(),Oe.lanes|=e,pn|=e,t)}function Lf(e,t,l,n,a){var i=Y.p;Y.p=i!==0&&8>i?i:8;var r=A.T,d={};A.T=d,Tc(e,!1,t,l);try{var m=a(),w=A.S;if(w!==null&&w(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=Mp(m,n);ui(e,t,O,el(e))}else ui(e,t,n,el(e))}catch(H){ui(e,t,{then:function(){},status:"rejected",reason:H},el())}finally{Y.p=i,r!==null&&d.types!==null&&(r.types=d.types),A.T=r}}function kp(){}function wc(e,t,l,n){if(e.tag!==5)throw Error(u(476));var a=Uf(e).queue;Lf(e,a,t,J,l===null?kp:function(){return Hf(e),l(n)})}function Uf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vl,lastRenderedState:J},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hf(e){var t=Uf(e);t.next===null&&(t=e.alternate.memoizedState),ui(e,t.next.queue,{},el())}function Mc(){return _t(Ai)}function Nf(){return ht().memoizedState}function Bf(){return ht().memoizedState}function Op(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=el();e=cn(l);var n=sn(t,e,l);n!==null&&(Qt(n,t,l),ii(n,t,l)),t={cache:ec()},e.payload=t;return}t=t.return}}function Rp(e,t,l){var n=el();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mo(e)?qf(t,l):(l=Vr(e,t,l,n),l!==null&&(Qt(l,e,n),Yf(l,t,n)))}function jf(e,t,l){var n=el();ui(e,t,l,n)}function ui(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mo(e))qf(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,d=i(r,l);if(a.hasEagerState=!0,a.eagerState=d,Jt(d,r))return ao(e,t,a,0),at===null&&no(),!1}catch{}if(l=Vr(e,t,a,n),l!==null)return Qt(l,e,n),Yf(l,t,n),!0}return!1}function Tc(e,t,l,n){if(n={lane:2,revertLane:as(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mo(e)){if(t)throw Error(u(479))}else t=Vr(e,l,n,2),t!==null&&Qt(t,e,2)}function Mo(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function qf(e,t){Ca=vo=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Yf(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Z(e,l)}}var fi={readContext:_t,use:So,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};fi.useEffectEvent=st;var Gf={readContext:_t,use:So,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Mf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,zo(4194308,4,_f.bind(null,t,e),l)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){zo(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var n=e();if(Qn){bl(!0);try{e()}finally{bl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=jt();if(l!==void 0){var a=l(t);if(Qn){bl(!0);try{l(t)}finally{bl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Rp.bind(null,Oe,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=bc(e);var t=e.queue,l=jf.bind(null,Oe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Cc,useDeferredValue:function(e,t){var l=jt();return zc(l,e,t)},useTransition:function(){var e=bc(!1);return e=Lf.bind(null,Oe,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=Oe,a=jt();if(Ve){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),at===null)throw Error(u(349));(Ye&127)!==0||sf(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Mf(ff.bind(null,n,i,e),[e]),n.flags|=2048,wa(9,{destroy:void 0},uf.bind(null,n,i,l,t),null),l},useId:function(){var e=jt(),t=at.identifierPrefix;if(Ve){var l=zl,n=Cl;l=(n&~(1<<32-Bt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=bo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Tp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:xf,useActionState:xf,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Tc.bind(null,Oe,!0,l),l.dispatch=t,[e,t]},useMemoCache:gc,useCacheRefresh:function(){return jt().memoizedState=Op.bind(null,Oe)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((Ze&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ac={readContext:_t,use:So,useCallback:kf,useContext:_t,useEffect:Sc,useImperativeHandle:Df,useInsertionEffect:Af,useLayoutEffect:Ef,useMemo:Of,useReducer:Co,useRef:wf,useState:function(){return Co(Vl)},useDebugValue:Cc,useDeferredValue:function(e,t){var l=ht();return Rf(l,tt.memoizedState,e,t)},useTransition:function(){var e=Co(Vl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:cf,useId:Nf,useHostTransitionStatus:Mc,useFormState:Sf,useActionState:Sf,useOptimistic:function(e,t){var l=ht();return pf(l,tt,e,t)},useMemoCache:gc,useCacheRefresh:Bf};Ac.useEffectEvent=Tf;var Vf={readContext:_t,use:So,useCallback:kf,useContext:_t,useEffect:Sc,useImperativeHandle:Df,useInsertionEffect:Af,useLayoutEffect:Ef,useMemo:Of,useReducer:vc,useRef:wf,useState:function(){return vc(Vl)},useDebugValue:Cc,useDeferredValue:function(e,t){var l=ht();return tt===null?zc(l,e,t):Rf(l,tt.memoizedState,e,t)},useTransition:function(){var e=vc(Vl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:cf,useId:Nf,useHostTransitionStatus:Mc,useFormState:zf,useActionState:zf,useOptimistic:function(e,t){var l=ht();return tt!==null?pf(l,tt,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gc,useCacheRefresh:Bf};Vf.useEffectEvent=Tf;function Ec(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:B({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _c={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=el(),a=cn(n);a.payload=t,l!=null&&(a.callback=l),t=sn(e,a,n),t!==null&&(Qt(t,e,n),ii(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=el(),a=cn(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=sn(e,a,n),t!==null&&(Qt(t,e,n),ii(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=el(),n=cn(l);n.tag=2,t!=null&&(n.callback=t),t=sn(e,n,l),t!==null&&(Qt(t,e,l),ii(t,e,l))}};function Xf(e,t,l,n,a,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,r):t.prototype&&t.prototype.isPureReactComponent?!Wa(l,n)||!Wa(a,i):!0}function Qf(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Zn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=B({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Zf(e){lo(e)}function Kf(e){console.error(e)}function Jf(e){lo(e)}function To(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ff(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Dc(e,t,l){return l=cn(l),l.tag=3,l.payload={element:null},l.callback=function(){To(e,t)},l}function $f(e){return e=cn(e),e.tag=3,e}function Wf(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Ff(t,l,n)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Ff(t,l,n),typeof a!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function Lp(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ga(t,l,a,!0),l=$t.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?Bo():l.alternate===null&&ut===0&&(ut=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ho?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),ts(e,n,a)),!1;case 22:return l.flags|=65536,n===ho?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),ts(e,n,a)),!1}throw Error(u(435,l.tag))}return ts(e,n,a),Bo(),!1}if(Ve)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Fr&&(e=Error(u(422),{cause:n}),ei(ol(e,l)))):(n!==Fr&&(t=Error(u(423),{cause:n}),ei(ol(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=ol(n,l),a=Dc(e.stateNode,n,a),oc(e,a),ut!==4&&(ut=2)),!1;var i=Error(u(520),{cause:n});if(i=ol(i,l),bi===null?bi=[i]:bi.push(i),ut!==4&&(ut=2),t===null)return!0;n=ol(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Dc(l.stateNode,n,e),oc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(mn===null||!mn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=$f(a),Wf(a,e,l,n),oc(l,a),!1}l=l.return}while(l!==null);return!1}var kc=Error(u(461)),yt=!1;function Dt(e,t,l,n){t.child=e===null?ef(t,null,l,n):Xn(t,e.child,l,n)}function If(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var r={};for(var d in n)d!=="ref"&&(r[d]=n[d])}else r=n;return qn(t),n=dc(e,t,l,r,i,a),d=hc(),e!==null&&!yt?(pc(e,t,a),Xl(e,t,a)):(Ve&&d&&Kr(t),t.flags|=1,Dt(e,t,n,a),t.child)}function Pf(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Xr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,ed(e,t,i,n,a)):(e=oo(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!jc(e,a)){var r=i.memoizedProps;if(l=l.compare,l=l!==null?l:Wa,l(r,n)&&e.ref===t.ref)return Xl(e,t,a)}return t.flags|=1,e=Bl(i,n),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(Wa(i,n)&&e.ref===t.ref)if(yt=!1,t.pendingProps=n=i,jc(e,a))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Xl(e,t,a)}return Oc(e,t,l,n,a)}function td(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return ld(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&uo(t,i!==null?i.cachePool:null),i!==null?nf(t,i):cc(),af(t);else return n=t.lanes=536870912,ld(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(uo(t,i.cachePool),nf(t,i),fn(),t.memoizedState=null):(e!==null&&uo(t,null),cc(),fn());return Dt(e,t,a,l),t.child}function di(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ld(e,t,l,n,a){var i=lc();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&uo(t,null),cc(),af(t),e!==null&&ga(e,t,n,!0),t.childLanes=a,null}function Ao(e,t){return t=_o({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nd(e,t,l){return Xn(t,e.child,null,l),e=Ao(t,t.pendingProps),e.flags|=2,Wt(t),t.memoizedState=null,e}function Up(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(n.mode==="hidden")return e=Ao(t,n),t.lanes=536870912,di(null,e);if(uc(t),(e=ot)?(e=m0(e,sl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ln!==null?{id:Cl,overflow:zl}:null,retryLane:536870912,hydrationErrors:null},l=ju(e),l.return=t,t.child=l,Et=t,ot=null)):e=null,e===null)throw an(t);return t.lanes=536870912,null}return Ao(t,n)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(uc(t),a)if(t.flags&256)t.flags&=-257,t=nd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(yt||ga(e,t,l,!1),a=(l&e.childLanes)!==0,yt||a){if(n=at,n!==null&&(r=ee(n,l),r!==0&&r!==i.retryLane))throw i.retryLane=r,Hn(e,r),Qt(n,e,r),kc;Bo(),t=nd(e,t,l)}else e=i.treeContext,ot=fl(r.nextSibling),Et=t,Ve=!0,nn=null,sl=!1,e!==null&&Gu(t,e),t=Ao(t,n),t.flags|=4096;return t}return e=Bl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eo(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Oc(e,t,l,n,a){return qn(t),l=dc(e,t,l,n,void 0,a),n=hc(),e!==null&&!yt?(pc(e,t,a),Xl(e,t,a)):(Ve&&n&&Kr(t),t.flags|=1,Dt(e,t,l,a),t.child)}function ad(e,t,l,n,a,i){return qn(t),t.updateQueue=null,l=rf(t,n,l,a),of(e),n=hc(),e!==null&&!yt?(pc(e,t,i),Xl(e,t,i)):(Ve&&n&&Kr(t),t.flags|=1,Dt(e,t,l,i),t.child)}function id(e,t,l,n,a){if(qn(t),t.stateNode===null){var i=da,r=l.contextType;typeof r=="object"&&r!==null&&(i=_t(r)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=_c,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},ac(t),r=l.contextType,i.context=typeof r=="object"&&r!==null?_t(r):da,i.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(Ec(t,l,r,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&_c.enqueueReplaceState(i,i.state,null),ri(t,n,i,a),oi(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,m=Zn(l,d);i.props=m;var w=i.context,O=l.contextType;r=da,typeof O=="object"&&O!==null&&(r=_t(O));var H=l.getDerivedStateFromProps;O=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||w!==r)&&Qf(t,i,n,r),rn=!1;var T=t.memoizedState;i.state=T,ri(t,n,i,a),oi(),w=t.memoizedState,d||T!==w||rn?(typeof H=="function"&&(Ec(t,l,H,n),w=t.memoizedState),(m=rn||Xf(t,l,m,n,T,w,r))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=w),i.props=n,i.state=w,i.context=r,n=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,ic(e,t),r=t.memoizedProps,O=Zn(l,r),i.props=O,H=t.pendingProps,T=i.context,w=l.contextType,m=da,typeof w=="object"&&w!==null&&(m=_t(w)),d=l.getDerivedStateFromProps,(w=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==H||T!==m)&&Qf(t,i,n,m),rn=!1,T=t.memoizedState,i.state=T,ri(t,n,i,a),oi();var E=t.memoizedState;r!==H||T!==E||rn||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof d=="function"&&(Ec(t,l,d,n),E=t.memoizedState),(O=rn||Xf(t,l,O,n,T,E,m)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(w||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,E,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,E,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),i.props=n,i.state=E,i.context=m,n=O):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Eo(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Xn(t,e.child,null,a),t.child=Xn(t,null,l,a)):Dt(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Xl(e,t,a),e}function od(e,t,l,n){return Bn(),t.flags|=256,Dt(e,t,l,n),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lc(e){return{baseLanes:e,cachePool:Ju()}}function Uc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Pt),e}function rd(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(dt.current&2)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(a?un(t):fn(),(e=ot)?(e=m0(e,sl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ln!==null?{id:Cl,overflow:zl}:null,retryLane:536870912,hydrationErrors:null},l=ju(e),l.return=t,t.child=l,Et=t,ot=null)):e=null,e===null)throw an(t);return ys(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(fn(),a=t.mode,d=_o({mode:"hidden",children:d},a),n=Nn(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=Lc(l),n.childLanes=Uc(e,r,l),t.memoizedState=Rc,di(null,n)):(un(t),Hc(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(i)t.flags&256?(un(t),t.flags&=-257,t=Nc(e,t,l)):t.memoizedState!==null?(fn(),t.child=e.child,t.flags|=128,t=null):(fn(),d=n.fallback,a=t.mode,n=_o({mode:"visible",children:n.children},a),d=Nn(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,Xn(t,e.child,null,l),n=t.child,n.memoizedState=Lc(l),n.childLanes=Uc(e,r,l),t.memoizedState=Rc,t=di(null,n));else if(un(t),ys(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var w=r.dgst;r=w,n=Error(u(419)),n.stack="",n.digest=r,ei({value:n,source:null,stack:null}),t=Nc(e,t,l)}else if(yt||ga(e,t,l,!1),r=(l&e.childLanes)!==0,yt||r){if(r=at,r!==null&&(n=ee(r,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Hn(e,n),Qt(r,e,n),kc;gs(d)||Bo(),t=Nc(e,t,l)}else gs(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,ot=fl(d.nextSibling),Et=t,Ve=!0,nn=null,sl=!1,e!==null&&Gu(t,e),t=Hc(t,n.children),t.flags|=4096);return t}return a?(fn(),d=n.fallback,a=t.mode,m=e.child,w=m.sibling,n=Bl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,w!==null?d=Bl(w,d):(d=Nn(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,di(null,n),n=t.child,d=e.child.memoizedState,d===null?d=Lc(l):(a=d.cachePool,a!==null?(m=mt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Ju(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=Uc(e,r,l),t.memoizedState=Rc,di(e.child,n)):(un(t),l=e.child,e=l.sibling,l=Bl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Hc(e,t){return t=_o({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _o(e,t){return e=Ft(22,e,null,t),e.lanes=0,e}function Nc(e,t,l){return Xn(t,e.child,null,l),e=Hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cd(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ir(e.return,t,l)}function Bc(e,t,l,n,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=l,r.tailMode=a,r.treeForkCount=i)}function sd(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var r=dt.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,N(dt,r),Dt(e,t,n,l),n=Ve?Pa:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cd(e,l,t);else if(e.tag===19)cd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&yo(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Bc(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&yo(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Bc(t,!0,l,null,i,n);break;case"together":Bc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ga(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=Bl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Bl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function Hp(e,t,l){switch(t.tag){case 3:xt(t,t.stateNode.containerInfo),on(t,mt,e.memoizedState.cache),Bn();break;case 27:case 5:_l(t);break;case 4:xt(t,t.stateNode.containerInfo);break;case 10:on(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(un(t),t.flags|=128,null):(l&t.child.childLanes)!==0?rd(e,t,l):(un(t),e=Xl(e,t,l),e!==null?e.sibling:null);un(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ga(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return sd(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),N(dt,dt.current),n)break;return null;case 22:return t.lanes=0,td(e,t,l,t.pendingProps);case 24:on(t,mt,e.memoizedState.cache)}return Xl(e,t,l)}function ud(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!jc(e,l)&&(t.flags&128)===0)return yt=!1,Hp(e,t,l);yt=(e.flags&131072)!==0}else yt=!1,Ve&&(t.flags&1048576)!==0&&Yu(t,Pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Gn(t.elementType),t.type=e,typeof e=="function")Xr(e)?(n=Zn(e,n),t.tag=1,t=id(null,t,e,n,l)):(t.tag=0,t=Oc(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===le){t.tag=11,t=If(null,t,e,n,l);break e}else if(a===j){t.tag=14,t=Pf(null,t,e,n,l);break e}}throw t=We(e)||e,Error(u(306,t,""))}}return t;case 0:return Oc(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Zn(n,t.pendingProps),id(e,t,n,a,l);case 3:e:{if(xt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,ic(e,t),ri(t,n,null,l);var r=t.memoizedState;if(n=r.cache,on(t,mt,n),n!==i.cache&&Pr(t,[mt],l,!0),oi(),n=r.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=od(e,t,n,l);break e}else if(n!==a){a=ol(Error(u(424)),t),ei(a),t=od(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ot=fl(e.firstChild),Et=t,Ve=!0,nn=null,sl=!0,l=ef(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Bn(),n===a){t=Xl(e,t,l);break e}Dt(e,t,n,l)}t=t.child}return t;case 26:return Eo(e,t),e===null?(l=S0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ve||(l=t.type,e=t.pendingProps,n=Qo(ue.current).createElement(l),n[$]=t,n[ke]=e,kt(n,l,e),zt(n),t.stateNode=n):t.memoizedState=S0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _l(t),e===null&&Ve&&(n=t.stateNode=v0(t.type,t.pendingProps,ue.current),Et=t,sl=!0,a=ot,bn(t.type)?(vs=a,ot=fl(n.firstChild)):ot=a),Dt(e,t,t.pendingProps.children,l),Eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((a=n=ot)&&(n=dm(n,t.type,t.pendingProps,sl),n!==null?(t.stateNode=n,Et=t,ot=fl(n.firstChild),sl=!1,a=!0):a=!1),a||an(t)),_l(t),a=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,n=i.children,hs(a,i)?n=null:r!==null&&hs(a,r)&&(t.flags|=32),t.memoizedState!==null&&(a=dc(e,t,Ap,null,null,l),Ai._currentValue=a),Eo(e,t),Dt(e,t,n,l),t.child;case 6:return e===null&&Ve&&((e=l=ot)&&(l=hm(l,t.pendingProps,sl),l!==null?(t.stateNode=l,Et=t,ot=null,e=!0):e=!1),e||an(t)),null;case 13:return rd(e,t,l);case 4:return xt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xn(t,null,n,l):Dt(e,t,n,l),t.child;case 11:return If(e,t,t.type,t.pendingProps,l);case 7:return Dt(e,t,t.pendingProps,l),t.child;case 8:return Dt(e,t,t.pendingProps.children,l),t.child;case 12:return Dt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,on(t,t.type,n.value),Dt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,qn(t),a=_t(a),n=n(a),t.flags|=1,Dt(e,t,n,l),t.child;case 14:return Pf(e,t,t.type,t.pendingProps,l);case 15:return ed(e,t,t.type,t.pendingProps,l);case 19:return sd(e,t,l);case 31:return Up(e,t,l);case 22:return td(e,t,l,t.pendingProps);case 24:return qn(t),n=_t(mt),e===null?(a=lc(),a===null&&(a=at,i=ec(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},ac(t),on(t,mt,a)):((e.lanes&l)!==0&&(ic(e,t),ri(t,null,null,l),oi()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),on(t,mt,n)):(n=i.cache,on(t,mt,n),n!==a.cache&&Pr(t,[mt],l,!0))),Dt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ql(e){e.flags|=4}function qc(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Nd())e.flags|=8192;else throw Vn=ho,nc}else e.flags&=-16777217}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(Nd())e.flags|=8192;else throw Vn=ho,nc}function Do(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ll():536870912,e.lanes|=t,Ea|=t)}function hi(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Np(e,t,l){var n=t.pendingProps;switch(Jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return rt(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yl(mt),et(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ma(t)?Ql(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$r())),rt(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Ql(t),i!==null?(rt(t),fd(t,i)):(rt(t),qc(t,a,null,n,l))):i?i!==e.memoizedState?(Ql(t),rt(t),fd(t,i)):(rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ql(t),rt(t),qc(t,a,e,n,l)),null;case 27:if(be(t),l=ue.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ql(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return rt(t),null}e=I.current,ma(t)?Vu(t):(e=v0(a,n,l),t.stateNode=e,Ql(t))}return rt(t),null;case 5:if(be(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ql(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return rt(t),null}if(i=I.current,ma(t))Vu(t);else{var r=Qo(ue.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?r.createElement(a,{is:n.is}):r.createElement(a)}}i[$]=t,i[ke]=n;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(kt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ql(t)}}return rt(t),qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ql(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,ma(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Et,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[$]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||r0(e.nodeValue,l)),e||an(t,!0)}else e=Qo(e).createTextNode(n),e[$]=t,t.stateNode=e}return rt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ma(t),l!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[$]=t}else Bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),e=!1}else l=$r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Wt(t),t):(Wt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return rt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ma(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(u(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(u(317));a[$]=t}else Bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),a=!1}else a=$r(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Wt(t),t):(Wt(t),null)}return Wt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Do(t,t.updateQueue),rt(t),null);case 4:return et(),e===null&&cs(t.stateNode.containerInfo),rt(t),null;case 10:return Yl(t.type),rt(t),null;case 19:if(R(dt),n=t.memoizedState,n===null)return rt(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)hi(n,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=yo(e),i!==null){for(t.flags|=128,hi(n,!1),e=i.updateQueue,t.updateQueue=e,Do(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Bu(l,e),l=l.sibling;return N(dt,dt.current&1|2),Ve&&jl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Ht()>Uo&&(t.flags|=128,a=!0,hi(n,!1),t.lanes=4194304)}else{if(!a)if(e=yo(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Do(t,e),hi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Ve)return rt(t),null}else 2*Ht()-n.renderingStartTime>Uo&&l!==536870912&&(t.flags|=128,a=!0,hi(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Ht(),e.sibling=null,l=dt.current,N(dt,a?l&1|2:l&1),Ve&&jl(t,n.treeForkCount),e):(rt(t),null);case 22:case 23:return Wt(t),sc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),l=t.updateQueue,l!==null&&Do(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&R(Yn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Yl(mt),rt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Bp(e,t){switch(Jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yl(mt),et(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(Wt(t),t.alternate===null)throw Error(u(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(dt),null;case 4:return et(),null;case 10:return Yl(t.type),null;case 22:case 23:return Wt(t),sc(),e!==null&&R(Yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yl(mt),null;case 25:return null;default:return null}}function dd(e,t){switch(Jr(t),t.tag){case 3:Yl(mt),et();break;case 26:case 27:case 5:be(t);break;case 4:et();break;case 31:t.memoizedState!==null&&Wt(t);break;case 13:Wt(t);break;case 19:R(dt);break;case 10:Yl(t.type);break;case 22:case 23:Wt(t),sc(),e!==null&&R(Yn);break;case 24:Yl(mt)}}function pi(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,r=l.inst;n=i(),r.destroy=n}l=l.next}while(l!==a)}}catch(d){Pe(t,t.return,d)}}function dn(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var r=n.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,a=t;var m=l,w=d;try{w()}catch(O){Pe(a,m,O)}}}n=n.next}while(n!==i)}}catch(O){Pe(t,t.return,O)}}function hd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{lf(t,l)}catch(n){Pe(e,e.return,n)}}}function pd(e,t,l){l.props=Zn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Pe(e,t,n)}}function mi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Pe(e,t,a)}}function wl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Pe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Pe(e,t,a)}else l.current=null}function md(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Pe(e,e.return,a)}}function Yc(e,t,l){try{var n=e.stateNode;om(n,e.type,l,t),n[ke]=t}catch(a){Pe(e,e.return,a)}}function gd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bn(e.type)||e.tag===4}function Gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&bn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Hl));else if(n!==4&&(n===27&&bn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Vc(e,t,l),e=e.sibling;e!==null;)Vc(e,t,l),e=e.sibling}function ko(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&bn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ko(e,t,l),e=e.sibling;e!==null;)ko(e,t,l),e=e.sibling}function yd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);kt(t,n,l),t[$]=e,t[ke]=l}catch(i){Pe(e,e.return,i)}}var Zl=!1,vt=!1,Xc=!1,vd=typeof WeakSet=="function"?WeakSet:Set,wt=null;function jp(e,t){if(e=e.containerInfo,fs=Io,e=_u(e),Nr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var r=0,d=-1,m=-1,w=0,O=0,H=e,T=null;t:for(;;){for(var E;H!==l||a!==0&&H.nodeType!==3||(d=r+a),H!==i||n!==0&&H.nodeType!==3||(m=r+n),H.nodeType===3&&(r+=H.nodeValue.length),(E=H.firstChild)!==null;)T=H,H=E;for(;;){if(H===e)break t;if(T===l&&++w===a&&(d=r),T===i&&++O===n&&(m=r),(E=H.nextSibling)!==null)break;H=T,T=H.parentNode}H=E}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ds={focusedElem:e,selectionRange:l},Io=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var ne=Zn(l.type,a);e=n.getSnapshotBeforeUpdate(ne,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Pe(l,l.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ms(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ms(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}}function bd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Jl(e,l),n&4&&pi(5,l);break;case 1:if(Jl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){Pe(l,l.return,r)}else{var a=Zn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Pe(l,l.return,r)}}n&64&&hd(l),n&512&&mi(l,l.return);break;case 3:if(Jl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{lf(e,t)}catch(r){Pe(l,l.return,r)}}break;case 27:t===null&&n&4&&yd(l);case 26:case 5:Jl(e,l),t===null&&n&4&&md(l),n&512&&mi(l,l.return);break;case 12:Jl(e,l);break;case 31:Jl(e,l),n&4&&Cd(e,l);break;case 13:Jl(e,l),n&4&&zd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Jp.bind(null,l),pm(e,l))));break;case 22:if(n=l.memoizedState!==null||Zl,!n){t=t!==null&&t.memoizedState!==null||vt,a=Zl;var i=vt;Zl=n,(vt=t)&&!i?Fl(e,l,(l.subtreeFlags&8772)!==0):Jl(e,l),Zl=a,vt=i}break;case 30:break;default:Jl(e,l)}}function xd(e){var t=e.alternate;t!==null&&(e.alternate=null,xd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,Yt=!1;function Kl(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(En,l)}catch{}switch(l.tag){case 26:vt||wl(l,t),Kl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vt||wl(l,t);var n=ct,a=Yt;bn(l.type)&&(ct=l.stateNode,Yt=!1),Kl(e,t,l),wi(l.stateNode),ct=n,Yt=a;break;case 5:vt||wl(l,t);case 6:if(n=ct,a=Yt,ct=null,Kl(e,t,l),ct=n,Yt=a,ct!==null)if(Yt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(l.stateNode)}catch(i){Pe(l,t,i)}else try{ct.removeChild(l.stateNode)}catch(i){Pe(l,t,i)}break;case 18:ct!==null&&(Yt?(e=ct,h0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ha(e)):h0(ct,l.stateNode));break;case 4:n=ct,a=Yt,ct=l.stateNode.containerInfo,Yt=!0,Kl(e,t,l),ct=n,Yt=a;break;case 0:case 11:case 14:case 15:dn(2,l,t),vt||dn(4,l,t),Kl(e,t,l);break;case 1:vt||(wl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&pd(l,t,n)),Kl(e,t,l);break;case 21:Kl(e,t,l);break;case 22:vt=(n=vt)||l.memoizedState!==null,Kl(e,t,l),vt=n;break;default:Kl(e,t,l)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ha(e)}catch(l){Pe(t,t.return,l)}}}function zd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ha(e)}catch(l){Pe(t,t.return,l)}}function qp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vd),t;default:throw Error(u(435,e.tag))}}function Oo(e,t){var l=qp(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Fp.bind(null,e,n);n.then(a,a)}})}function Gt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(bn(d.type)){ct=d.stateNode,Yt=!1;break e}break;case 5:ct=d.stateNode,Yt=!1;break e;case 3:case 4:ct=d.stateNode.containerInfo,Yt=!0;break e}d=d.return}if(ct===null)throw Error(u(160));Sd(i,r,a),ct=null,Yt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wd(t,e),t=t.sibling}var yl=null;function wd(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Vt(e),n&4&&(dn(3,e,e.return),pi(3,e),dn(5,e,e.return));break;case 1:Gt(t,e),Vt(e),n&512&&(vt||l===null||wl(l,l.return)),n&64&&Zl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=yl;if(Gt(t,e),Vt(e),n&512&&(vt||l===null||wl(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[kn]||i[$]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),kt(i,n,l),i[$]=e,zt(i),n=i;break e;case"link":var r=w0("link","href",a).get(n+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(i=r[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){r.splice(d,1);break t}}i=a.createElement(n),kt(i,n,l),a.head.appendChild(i);break;case"meta":if(r=w0("meta","content",a).get(n+(l.content||""))){for(d=0;d<r.length;d++)if(i=r[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){r.splice(d,1);break t}}i=a.createElement(n),kt(i,n,l),a.head.appendChild(i);break;default:throw Error(u(468,n))}i[$]=e,zt(i),n=i}e.stateNode=n}else M0(a,e.type,e.stateNode);else e.stateNode=z0(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?M0(a,e.type,e.stateNode):z0(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Gt(t,e),Vt(e),n&512&&(vt||l===null||wl(l,l.return)),l!==null&&n&4&&Yc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Gt(t,e),Vt(e),n&512&&(vt||l===null||wl(l,l.return)),e.flags&32){a=e.stateNode;try{ia(a,"")}catch(ne){Pe(e,e.return,ne)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Xc=!0);break;case 6:if(Gt(t,e),Vt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(ne){Pe(e,e.return,ne)}}break;case 3:if(Jo=null,a=yl,yl=Zo(t.containerInfo),Gt(t,e),yl=a,Vt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(ne){Pe(e,e.return,ne)}Xc&&(Xc=!1,Md(e));break;case 4:n=yl,yl=Zo(e.stateNode.containerInfo),Gt(t,e),Vt(e),yl=n;break;case 12:Gt(t,e),Vt(e);break;case 31:Gt(t,e),Vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 13:Gt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Lo=Ht()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,w=Zl,O=vt;if(Zl=w||a,vt=O||m,Gt(t,e),vt=O,Zl=w,Vt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||Zl||vt||Kn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,a)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=m.stateNode;var H=m.memoizedProps.style,T=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(ne){Pe(m,m.return,ne)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(ne){Pe(m,m.return,ne)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;a?p0(E,!0):p0(m.stateNode,!1)}catch(ne){Pe(m,m.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Oo(e,l))));break;case 19:Gt(t,e),Vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Oo(e,n)));break;case 30:break;case 21:break;default:Gt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(gd(n)){l=n;break}n=n.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var a=l.stateNode,i=Gc(e);ko(e,i,a);break;case 5:var r=l.stateNode;l.flags&32&&(ia(r,""),l.flags&=-33);var d=Gc(e);ko(e,d,r);break;case 3:case 4:var m=l.stateNode.containerInfo,w=Gc(e);Vc(e,w,m);break;default:throw Error(u(161))}}catch(O){Pe(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function Kn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:dn(4,t,t.return),Kn(t);break;case 1:wl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&pd(t,t.return,l),Kn(t);break;case 27:wi(t.stateNode);case 26:case 5:wl(t,t.return),Kn(t);break;case 22:t.memoizedState===null&&Kn(t);break;case 30:Kn(t);break;default:Kn(t)}e=e.sibling}}function Fl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:Fl(a,i,l),pi(4,i);break;case 1:if(Fl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(w){Pe(n,n.return,w)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)tf(m[a],d)}catch(w){Pe(n,n.return,w)}}l&&r&64&&hd(i),mi(i,i.return);break;case 27:yd(i);case 26:case 5:Fl(a,i,l),l&&n===null&&r&4&&md(i),mi(i,i.return);break;case 12:Fl(a,i,l);break;case 31:Fl(a,i,l),l&&r&4&&Cd(a,i);break;case 13:Fl(a,i,l),l&&r&4&&zd(a,i);break;case 22:i.memoizedState===null&&Fl(a,i,l),mi(i,i.return);break;case 30:break;default:Fl(a,i,l)}t=t.sibling}}function Qc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ti(l))}function Zc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ti(e))}function vl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Td(e,t,l,n),t=t.sibling}function Td(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:vl(e,t,l,n),a&2048&&pi(9,t);break;case 1:vl(e,t,l,n);break;case 3:vl(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ti(e)));break;case 12:if(a&2048){vl(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,d=i.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Pe(t,t.return,m)}}else vl(e,t,l,n);break;case 31:vl(e,t,l,n);break;case 13:vl(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?vl(e,t,l,n):gi(e,t):i._visibility&2?vl(e,t,l,n):(i._visibility|=2,Ma(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Qc(r,t);break;case 24:vl(e,t,l,n),a&2048&&Zc(t.alternate,t);break;default:vl(e,t,l,n)}}function Ma(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,d=l,m=n,w=r.flags;switch(r.tag){case 0:case 11:case 15:Ma(i,r,d,m,a),pi(8,r);break;case 23:break;case 22:var O=r.stateNode;r.memoizedState!==null?O._visibility&2?Ma(i,r,d,m,a):gi(i,r):(O._visibility|=2,Ma(i,r,d,m,a)),a&&w&2048&&Qc(r.alternate,r);break;case 24:Ma(i,r,d,m,a),a&&w&2048&&Zc(r.alternate,r);break;default:Ma(i,r,d,m,a)}t=t.sibling}}function gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:gi(l,n),a&2048&&Qc(n.alternate,n);break;case 24:gi(l,n),a&2048&&Zc(n.alternate,n);break;default:gi(l,n)}t=t.sibling}}var yi=8192;function Ta(e,t,l){if(e.subtreeFlags&yi)for(e=e.child;e!==null;)Ad(e,t,l),e=e.sibling}function Ad(e,t,l){switch(e.tag){case 26:Ta(e,t,l),e.flags&yi&&e.memoizedState!==null&&Tm(l,yl,e.memoizedState,e.memoizedProps);break;case 5:Ta(e,t,l);break;case 3:case 4:var n=yl;yl=Zo(e.stateNode.containerInfo),Ta(e,t,l),yl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=yi,yi=16777216,Ta(e,t,l),yi=n):Ta(e,t,l));break;default:Ta(e,t,l)}}function Ed(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];wt=n,Dd(n,e)}Ed(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_d(e),e=e.sibling}function _d(e){switch(e.tag){case 0:case 11:case 15:vi(e),e.flags&2048&&dn(9,e,e.return);break;case 3:vi(e);break;case 12:vi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ro(e)):vi(e);break;default:vi(e)}}function Ro(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];wt=n,Dd(n,e)}Ed(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:dn(8,t,t.return),Ro(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ro(t));break;default:Ro(t)}e=e.sibling}}function Dd(e,t){for(;wt!==null;){var l=wt;switch(l.tag){case 0:case 11:case 15:dn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ti(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,wt=n;else e:for(l=e;wt!==null;){n=wt;var a=n.sibling,i=n.return;if(xd(n),n===l){wt=null;break e}if(a!==null){a.return=i,wt=a;break e}wt=i}}}var Yp={getCacheForType:function(e){var t=_t(mt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return _t(mt).controller.signal}},Gp=typeof WeakMap=="function"?WeakMap:Map,Ze=0,at=null,Be=null,Ye=0,Ie=0,It=null,hn=!1,Aa=!1,Kc=!1,$l=0,ut=0,pn=0,Jn=0,Jc=0,Pt=0,Ea=0,bi=null,Xt=null,Fc=!1,Lo=0,kd=0,Uo=1/0,Ho=null,mn=null,Ct=0,gn=null,_a=null,Wl=0,$c=0,Wc=null,Od=null,xi=0,Ic=null;function el(){return(Ze&2)!==0&&Ye!==0?Ye&-Ye:A.T!==null?as():Ce()}function Rd(){if(Pt===0)if((Ye&536870912)===0||Ve){var e=xl;xl<<=1,(xl&3932160)===0&&(xl=262144),Pt=e}else Pt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Pt}function Qt(e,t,l){(e===at&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)&&(Da(e,0),yn(e,Ye,Pt,!1)),en(e,l),((Ze&2)===0||e!==at)&&(e===at&&((Ze&2)===0&&(Jn|=l),ut===4&&yn(e,Ye,Pt,!1)),Ml(e))}function Ld(e,t,l){if((Ze&6)!==0)throw Error(u(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Dn(e,t),a=n?Qp(e,t):es(e,t,!0),i=n;do{if(a===0){Aa&&!n&&yn(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Vp(l)){a=es(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;a=bi;var m=d.current.memoizedState.isDehydrated;if(m&&(Da(d,r).flags|=256),r=es(d,r,!1),r!==2){if(Kc&&!m){d.errorRecoveryDisabledLanes|=i,Jn|=i,a=4;break e}i=Xt,Xt=a,i!==null&&(Xt===null?Xt=i:Xt.push.apply(Xt,i))}a=r}if(i=!1,a!==2)continue}}if(a===1){Da(e,0),yn(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:yn(n,t,Pt,!hn);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(a=Lo+300-Ht(),10<a)){if(yn(n,t,Pt,!hn),Kt(n,0,!0)!==0)break e;Wl=t,n.timeoutHandle=f0(Ud.bind(null,n,l,Xt,Ho,Fc,t,Pt,Jn,Ea,hn,i,"Throttled",-0,0),a);break e}Ud(n,l,Xt,Ho,Fc,t,Pt,Jn,Ea,hn,i,null,-0,0)}}break}while(!0);Ml(e)}function Ud(e,t,l,n,a,i,r,d,m,w,O,H,T,E){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hl},Ad(t,i,H);var ne=(i&62914560)===i?Lo-Ht():(i&4194048)===i?kd-Ht():0;if(ne=Am(H,ne),ne!==null){Wl=i,e.cancelPendingCommit=ne(Vd.bind(null,e,t,i,l,n,a,r,d,m,O,H,null,T,E)),yn(e,i,r,!w);return}}Vd(e,t,i,l,n,a,r,d,m)}function Vp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!Jt(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yn(e,t,l,n){t&=~Jc,t&=~Jn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-Bt(a),r=1<<i;n[i]=-1,a&=~r}l!==0&&he(e,l,t)}function No(){return(Ze&6)===0?(Si(0),!1):!0}function Pc(){if(Be!==null){if(Ie===0)var e=Be.return;else e=Be,ql=jn=null,mc(e),xa=null,ni=0,e=Be;for(;e!==null;)dd(e.alternate,e),e=e.return;Be=null}}function Da(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,sm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Wl=0,Pc(),at=e,Be=l=Bl(e.current,null),Ye=t,Ie=0,It=null,hn=!1,Aa=Dn(e,t),Kc=!1,Ea=Pt=Jc=Jn=pn=ut=0,Xt=bi=null,Fc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Bt(n),i=1<<a;t|=e[a],n&=~i}return $l=t,no(),l}function Hd(e,t){Oe=null,A.H=fi,t===ba||t===fo?(t=Wu(),Ie=3):t===nc?(t=Wu(),Ie=4):Ie=t===kc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,It=t,Be===null&&(ut=1,To(e,ol(t,e.current)))}function Nd(){var e=$t.current;return e===null?!0:(Ye&4194048)===Ye?ul===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===ul:!1}function Bd(){var e=A.H;return A.H=fi,e===null?fi:e}function jd(){var e=A.A;return A.A=Yp,e}function Bo(){ut=4,hn||(Ye&4194048)!==Ye&&$t.current!==null||(Aa=!0),(pn&134217727)===0&&(Jn&134217727)===0||at===null||yn(at,Ye,Pt,!1)}function es(e,t,l){var n=Ze;Ze|=2;var a=Bd(),i=jd();(at!==e||Ye!==t)&&(Ho=null,Da(e,t)),t=!1;var r=ut;e:do try{if(Ie!==0&&Be!==null){var d=Be,m=It;switch(Ie){case 8:Pc(),r=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var w=Ie;if(Ie=0,It=null,ka(e,d,m,w),l&&Aa){r=0;break e}break;default:w=Ie,Ie=0,It=null,ka(e,d,m,w)}}Xp(),r=ut;break}catch(O){Hd(e,O)}while(!0);return t&&e.shellSuspendCounter++,ql=jn=null,Ze=n,A.H=a,A.A=i,Be===null&&(at=null,Ye=0,no()),r}function Xp(){for(;Be!==null;)qd(Be)}function Qp(e,t){var l=Ze;Ze|=2;var n=Bd(),a=jd();at!==e||Ye!==t?(Ho=null,Uo=Ht()+500,Da(e,t)):Aa=Dn(e,t);e:do try{if(Ie!==0&&Be!==null){t=Be;var i=It;t:switch(Ie){case 1:Ie=0,It=null,ka(e,t,i,1);break;case 2:case 9:if(Fu(i)){Ie=0,It=null,Yd(t);break}t=function(){Ie!==2&&Ie!==9||at!==e||(Ie=7),Ml(e)},i.then(t,t);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:Fu(i)?(Ie=0,It=null,Yd(t)):(Ie=0,It=null,ka(e,t,i,7));break;case 5:var r=null;switch(Be.tag){case 26:r=Be.memoizedState;case 5:case 27:var d=Be;if(r?T0(r):d.stateNode.complete){Ie=0,It=null;var m=d.sibling;if(m!==null)Be=m;else{var w=d.return;w!==null?(Be=w,jo(w)):Be=null}break t}}Ie=0,It=null,ka(e,t,i,5);break;case 6:Ie=0,It=null,ka(e,t,i,6);break;case 8:Pc(),ut=6;break e;default:throw Error(u(462))}}Zp();break}catch(O){Hd(e,O)}while(!0);return ql=jn=null,A.H=n,A.A=a,Ze=l,Be!==null?0:(at=null,Ye=0,no(),ut)}function Zp(){for(;Be!==null&&!$n();)qd(Be)}function qd(e){var t=ud(e.alternate,e,$l);e.memoizedProps=e.pendingProps,t===null?jo(e):Be=t}function Yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ad(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=ad(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:mc(t);default:dd(l,t),t=Be=Bu(t,$l),t=ud(l,t,$l)}e.memoizedProps=e.pendingProps,t===null?jo(e):Be=t}function ka(e,t,l,n){ql=jn=null,mc(t),xa=null,ni=0;var a=t.return;try{if(Lp(e,a,t,l,Ye)){ut=1,To(e,ol(l,e.current)),Be=null;return}}catch(i){if(a!==null)throw Be=a,i;ut=1,To(e,ol(l,e.current)),Be=null;return}t.flags&32768?(Ve||n===1?e=!0:Aa||(Ye&536870912)!==0?e=!1:(hn=e=!0,(n===2||n===9||n===3||n===6)&&(n=$t.current,n!==null&&n.tag===13&&(n.flags|=16384))),Gd(t,e)):jo(t)}function jo(e){var t=e;do{if((t.flags&32768)!==0){Gd(t,hn);return}e=t.return;var l=Np(t.alternate,t,$l);if(l!==null){Be=l;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);ut===0&&(ut=5)}function Gd(e,t){do{var l=Bp(e.alternate,e);if(l!==null){l.flags&=32767,Be=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=l}while(e!==null);ut=6,Be=null}function Vd(e,t,l,n,a,i,r,d,m){e.cancelPendingCommit=null;do qo();while(Ct!==0);if((Ze&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=Gr,br(e,l,i,r,d,m),e===at&&(Be=at=null,Ye=0),_a=t,gn=e,Wl=l,$c=i,Wc=a,Od=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$p(Wn,function(){return Jd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=A.T,A.T=null,a=Y.p,Y.p=2,r=Ze,Ze|=4;try{jp(e,t,l)}finally{Ze=r,Y.p=a,A.T=n}}Ct=1,Xd(),Qd(),Zd()}}function Xd(){if(Ct===1){Ct=0;var e=gn,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var n=Y.p;Y.p=2;var a=Ze;Ze|=4;try{wd(t,e);var i=ds,r=_u(e.containerInfo),d=i.focusedElem,m=i.selectionRange;if(r!==d&&d&&d.ownerDocument&&Eu(d.ownerDocument.documentElement,d)){if(m!==null&&Nr(d)){var w=m.start,O=m.end;if(O===void 0&&(O=w),"selectionStart"in d)d.selectionStart=w,d.selectionEnd=Math.min(O,d.value.length);else{var H=d.ownerDocument||document,T=H&&H.defaultView||window;if(T.getSelection){var E=T.getSelection(),ne=d.textContent.length,xe=Math.min(m.start,ne),nt=m.end===void 0?xe:Math.min(m.end,ne);!E.extend&&xe>nt&&(r=nt,nt=xe,xe=r);var C=Au(d,xe),v=Au(d,nt);if(C&&v&&(E.rangeCount!==1||E.anchorNode!==C.node||E.anchorOffset!==C.offset||E.focusNode!==v.node||E.focusOffset!==v.offset)){var z=H.createRange();z.setStart(C.node,C.offset),E.removeAllRanges(),xe>nt?(E.addRange(z),E.extend(v.node,v.offset)):(z.setEnd(v.node,v.offset),E.addRange(z))}}}}for(H=[],E=d;E=E.parentNode;)E.nodeType===1&&H.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var U=H[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Io=!!fs,ds=fs=null}finally{Ze=a,Y.p=n,A.T=l}}e.current=t,Ct=2}}function Qd(){if(Ct===2){Ct=0;var e=gn,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var n=Y.p;Y.p=2;var a=Ze;Ze|=4;try{bd(e,t.alternate,t)}finally{Ze=a,Y.p=n,A.T=l}}Ct=3}}function Zd(){if(Ct===4||Ct===3){Ct=0,An();var e=gn,t=_a,l=Wl,n=Od;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ct=5:(Ct=0,_a=gn=null,Kd(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(mn=null),me(l),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(En,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=A.T,a=Y.p,Y.p=2,A.T=null;try{for(var i=e.onRecoverableError,r=0;r<n.length;r++){var d=n[r];i(d.value,{componentStack:d.stack})}}finally{A.T=t,Y.p=a}}(Wl&3)!==0&&qo(),Ml(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===Ic?xi++:(xi=0,Ic=e):xi=0,Si(0)}}function Kd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ti(t)))}function qo(){return Xd(),Qd(),Zd(),Jd()}function Jd(){if(Ct!==5)return!1;var e=gn,t=$c;$c=0;var l=me(Wl),n=A.T,a=Y.p;try{Y.p=32>l?32:l,A.T=null,l=Wc,Wc=null;var i=gn,r=Wl;if(Ct=0,_a=gn=null,Wl=0,(Ze&6)!==0)throw Error(u(331));var d=Ze;if(Ze|=4,_d(i.current),Td(i,i.current,r,l),Ze=d,Si(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(En,i)}catch{}return!0}finally{Y.p=a,A.T=n,Kd(e,t)}}function Fd(e,t,l){t=ol(l,t),t=Dc(e.stateNode,t,2),e=sn(e,t,2),e!==null&&(en(e,2),Ml(e))}function Pe(e,t,l){if(e.tag===3)Fd(e,e,l);else for(;t!==null;){if(t.tag===3){Fd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(mn===null||!mn.has(n))){e=ol(l,e),l=$f(2),n=sn(t,l,2),n!==null&&(Wf(l,n,t,e),en(n,2),Ml(n));break}}t=t.return}}function ts(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Gp;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Kc=!0,a.add(l),e=Kp.bind(null,e,t,l),t.then(e,e))}function Kp(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,at===e&&(Ye&l)===l&&(ut===4||ut===3&&(Ye&62914560)===Ye&&300>Ht()-Lo?(Ze&2)===0&&Da(e,0):Jc|=l,Ea===Ye&&(Ea=0)),Ml(e)}function $d(e,t){t===0&&(t=Ll()),e=Hn(e,t),e!==null&&(en(e,t),Ml(e))}function Jp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$d(e,l)}function Fp(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),$d(e,l)}function $p(e,t){return kl(e,t)}var Yo=null,Oa=null,ls=!1,Go=!1,ns=!1,vn=0;function Ml(e){e!==Oa&&e.next===null&&(Oa===null?Yo=Oa=e:Oa=Oa.next=e),Go=!0,ls||(ls=!0,Ip())}function Si(e,t){if(!ns&&Go){ns=!0;do for(var l=!1,n=Yo;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var r=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-Bt(42|e)+1)-1,i&=a&~(r&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,e0(n,i))}else i=Ye,i=Kt(n,n===at?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Dn(n,i)||(l=!0,e0(n,i));n=n.next}while(l);ns=!1}}function Wp(){Wd()}function Wd(){Go=ls=!1;var e=0;vn!==0&&cm()&&(e=vn);for(var t=Ht(),l=null,n=Yo;n!==null;){var a=n.next,i=Id(n,t);i===0?(n.next=null,l===null?Yo=a:l.next=a,a===null&&(Oa=l)):(l=n,(e!==0||(i&3)!==0)&&(Go=!0)),n=a}Ct!==0&&Ct!==5||Si(e),vn!==0&&(vn=0)}function Id(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-Bt(i),d=1<<r,m=a[r];m===-1?((d&l)===0||(d&n)!==0)&&(a[r]=Ya(d,t)):m<=t&&(e.expiredLanes|=d),i&=~d}if(t=at,l=Ye,l=Kt(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Ie===2||Ie===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&pl(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Dn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&pl(n),me(l)){case 2:case 8:l=Vi;break;case 32:l=Wn;break;case 268435456:l=Qi;break;default:l=Wn}return n=Pd.bind(null,e),l=kl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&pl(n),e.callbackPriority=2,e.callbackNode=null,2}function Pd(e,t){if(Ct!==0&&Ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qo()&&e.callbackNode!==l)return null;var n=Ye;return n=Kt(e,e===at?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Ld(e,n,t),Id(e,Ht()),e.callbackNode!=null&&e.callbackNode===l?Pd.bind(null,e):null)}function e0(e,t){if(qo())return null;Ld(e,t,!0)}function Ip(){um(function(){(Ze&6)!==0?kl(Gi,Wp):Wd()})}function as(){if(vn===0){var e=ya;e===0&&(e=_n,_n<<=1,(_n&261888)===0&&(_n=256)),vn=e}return vn}function t0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fi(""+e)}function l0(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Pp(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=t0((a[ke]||null).action),r=n.submitter;r&&(t=(t=r[ke]||null)?t0(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var d=new Pi("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(vn!==0){var m=r?l0(a,r):new FormData(a);wc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(d.preventDefault(),m=r?l0(a,r):new FormData(a),wc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var is=0;is<Yr.length;is++){var os=Yr[is],em=os.toLowerCase(),tm=os[0].toUpperCase()+os.slice(1);gl(em,"on"+tm)}gl(Ou,"onAnimationEnd"),gl(Ru,"onAnimationIteration"),gl(Lu,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(yp,"onTransitionRun"),gl(vp,"onTransitionStart"),gl(bp,"onTransitionCancel"),gl(Uu,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),On("onBeforeInput",["compositionend","keypress","textInput","paste"]),On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="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(" "),lm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ci));function n0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var r=n.length-1;0<=r;r--){var d=n[r],m=d.instance,w=d.currentTarget;if(d=d.listener,m!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=w;try{i(a)}catch(O){lo(O)}a.currentTarget=null,i=m}else for(r=0;r<n.length;r++){if(d=n[r],m=d.instance,w=d.currentTarget,d=d.listener,m!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=w;try{i(a)}catch(O){lo(O)}a.currentTarget=null,i=m}}}}function je(e,t){var l=t[pt];l===void 0&&(l=t[pt]=new Set);var n=e+"__bubble";l.has(n)||(a0(t,e,2,!1),l.add(n))}function rs(e,t,l){var n=0;t&&(n|=4),a0(l,e,n,t)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[Vo]){e[Vo]=!0,$s.forEach(function(l){l!=="selectionchange"&&(lm.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vo]||(t[Vo]=!0,rs("selectionchange",!1,t))}}function a0(e,t,l,n){switch(R0(t)){case 2:var a=Dm;break;case 8:a=km;break;default:a=zs}l=a.bind(null,t,l,e),a=void 0,!Er||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function ss(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var d=n.stateNode.containerInfo;if(d===a)break;if(r===4)for(r=n.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;d!==null;){if(r=ea(d),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){n=i=r;continue e}d=d.parentNode}}n=n.return}cu(function(){var w=i,O=Tr(l),H=[];e:{var T=Hu.get(e);if(T!==void 0){var E=Pi,ne=e;switch(e){case"keypress":if(Wi(l)===0)break e;case"keydown":case"keyup":E=Fh;break;case"focusin":ne="focus",E=Or;break;case"focusout":ne="blur",E=Or;break;case"beforeblur":case"afterblur":E=Or;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Ih;break;case Ou:case Ru:case Lu:E=qh;break;case Uu:E=ep;break;case"scroll":case"scrollend":E=Uh;break;case"wheel":E=lp;break;case"copy":case"cut":case"paste":E=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=hu;break;case"toggle":case"beforetoggle":E=ap}var xe=(t&4)!==0,nt=!xe&&(e==="scroll"||e==="scrollend"),C=xe?T!==null?T+"Capture":null:T;xe=[];for(var v=w,z;v!==null;){var U=v;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||C===null||(U=Xa(v,C),U!=null&&xe.push(zi(v,U,z))),nt)break;v=v.return}0<xe.length&&(T=new E(T,ne,null,l,O),H.push({event:T,listeners:xe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",T&&l!==Mr&&(ne=l.relatedTarget||l.fromElement)&&(ea(ne)||ne[fe]))break e;if((E||T)&&(T=O.window===O?O:(T=O.ownerDocument)?T.defaultView||T.parentWindow:window,E?(ne=l.relatedTarget||l.toElement,E=w,ne=ne?ea(ne):null,ne!==null&&(nt=p(ne),xe=ne.tag,ne!==nt||xe!==5&&xe!==27&&xe!==6)&&(ne=null)):(E=null,ne=w),E!==ne)){if(xe=fu,U="onMouseLeave",C="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(xe=hu,U="onPointerLeave",C="onPointerEnter",v="pointer"),nt=E==null?T:Va(E),z=ne==null?T:Va(ne),T=new xe(U,v+"leave",E,l,O),T.target=nt,T.relatedTarget=z,U=null,ea(O)===w&&(xe=new xe(C,v+"enter",ne,l,O),xe.target=z,xe.relatedTarget=nt,U=xe),nt=U,E&&ne)t:{for(xe=nm,C=E,v=ne,z=0,U=C;U;U=xe(U))z++;U=0;for(var pe=v;pe;pe=xe(pe))U++;for(;0<z-U;)C=xe(C),z--;for(;0<U-z;)v=xe(v),U--;for(;z--;){if(C===v||v!==null&&C===v.alternate){xe=C;break t}C=xe(C),v=xe(v)}xe=null}else xe=null;E!==null&&i0(H,T,E,xe,!1),ne!==null&&nt!==null&&i0(H,nt,ne,xe,!0)}}e:{if(T=w?Va(w):window,E=T.nodeName&&T.nodeName.toLowerCase(),E==="select"||E==="input"&&T.type==="file")var Xe=Su;else if(bu(T))if(Cu)Xe=pp;else{Xe=dp;var re=fp}else E=T.nodeName,!E||E.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?w&&wr(w.elementType)&&(Xe=Su):Xe=hp;if(Xe&&(Xe=Xe(e,w))){xu(H,Xe,l,O);break e}re&&re(e,T,w),e==="focusout"&&w&&T.type==="number"&&w.memoizedProps.value!=null&&zr(T,"number",T.value)}switch(re=w?Va(w):window,e){case"focusin":(bu(re)||re.contentEditable==="true")&&(sa=re,Br=w,Ia=null);break;case"focusout":Ia=Br=sa=null;break;case"mousedown":jr=!0;break;case"contextmenu":case"mouseup":case"dragend":jr=!1,Du(H,l,O);break;case"selectionchange":if(gp)break;case"keydown":case"keyup":Du(H,l,O)}var Re;if(Lr)e:{switch(e){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else ca?yu(e,l)&&(Ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ge="onCompositionStart");Ge&&(pu&&l.locale!=="ko"&&(ca||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&ca&&(Re=su()):(tn=O,_r="value"in tn?tn.value:tn.textContent,ca=!0)),re=Xo(w,Ge),0<re.length&&(Ge=new du(Ge,e,null,l,O),H.push({event:Ge,listeners:re}),Re?Ge.data=Re:(Re=vu(l),Re!==null&&(Ge.data=Re)))),(Re=op?rp(e,l):cp(e,l))&&(Ge=Xo(w,"onBeforeInput"),0<Ge.length&&(re=new du("onBeforeInput","beforeinput",null,l,O),H.push({event:re,listeners:Ge}),re.data=Re)),Pp(H,e,w,l,O)}n0(H,t)})}function zi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xo(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Xa(e,l),a!=null&&n.unshift(zi(e,a,i)),a=Xa(e,t),a!=null&&n.push(zi(e,a,i))),e.tag===3)return n;e=e.return}return[]}function nm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function i0(e,t,l,n,a){for(var i=t._reactName,r=[];l!==null&&l!==n;){var d=l,m=d.alternate,w=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||w===null||(m=w,a?(w=Xa(l,i),w!=null&&r.unshift(zi(l,w,m))):a||(w=Xa(l,i),w!=null&&r.push(zi(l,w,m)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var am=/\r\n?/g,im=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(am,`
|
|
9
|
+
`).replace(im,"")}function r0(e,t){return t=o0(t),o0(e)===t}function lt(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ia(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ia(e,""+n);break;case"className":Ki(e,"class",n);break;case"tabIndex":Ki(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,l,n);break;case"style":ou(e,n,i);break;case"data":if(t!=="object"){Ki(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Fi(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&<(e,t,"name",a.name,a,null),lt(e,t,"formEncType",a.formEncType,a,null),lt(e,t,"formMethod",a.formMethod,a,null),lt(e,t,"formTarget",a.formTarget,a,null)):(lt(e,t,"encType",a.encType,a,null),lt(e,t,"method",a.method,a,null),lt(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Fi(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Hl);break;case"onScroll":n!=null&&je("scroll",e);break;case"onScrollEnd":n!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Fi(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":je("beforetoggle",e),je("toggle",e),Zi(e,"popover",n);break;case"xlinkActuate":Ul(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ul(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ul(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ul(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ul(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ul(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ul(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ul(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ul(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Zi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Rh.get(l)||l,Zi(e,l,n))}}function us(e,t,l,n,a,i){switch(l){case"style":ou(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof n=="string"?ia(e,n):(typeof n=="number"||typeof n=="bigint")&&ia(e,""+n);break;case"onScroll":n!=null&&je("scroll",e);break;case"onScrollEnd":n!=null&&je("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ws.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[ke]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):Zi(e,l,n)}}}function kt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var r=l[i];if(r!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:lt(e,t,i,r,l,null)}}a&<(e,t,"srcSet",l.srcSet,l,null),n&<(e,t,"src",l.src,l,null);return;case"input":je("invalid",e);var d=i=r=a=null,m=null,w=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":r=O;break;case"checked":m=O;break;case"defaultChecked":w=O;break;case"value":i=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:lt(e,t,n,O,l,null)}}lu(e,i,d,m,w,r,a,!1);return;case"select":je("invalid",e),n=r=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":r=d;break;case"multiple":n=d;default:lt(e,t,a,d,l,null)}t=i,l=r,e.multiple=!!n,t!=null?aa(e,!!n,t,!1):l!=null&&aa(e,!!n,l,!0);return;case"textarea":je("invalid",e),i=a=n=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":n=d;break;case"defaultValue":a=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(u(91));break;default:lt(e,t,r,d,l,null)}au(e,n,a,i);return;case"option":for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null)&&(m==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":lt(e,t,m,n,l,null));return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(n=0;n<Ci.length;n++)je(Ci[n],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in l)if(l.hasOwnProperty(w)&&(n=l[w],n!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:lt(e,t,w,n,l,null)}return;default:if(wr(t)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&us(e,t,O,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&<(e,t,d,n,l,null))}function om(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,r=null,d=null,m=null,w=null,O=null;for(E in l){var H=l[E];if(l.hasOwnProperty(E)&&H!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=H;default:n.hasOwnProperty(E)||lt(e,t,E,null,n,H)}}for(var T in n){var E=n[T];if(H=l[T],n.hasOwnProperty(T)&&(E!=null||H!=null))switch(T){case"type":i=E;break;case"name":a=E;break;case"checked":w=E;break;case"defaultChecked":O=E;break;case"value":r=E;break;case"defaultValue":d=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(u(137,t));break;default:E!==H&<(e,t,T,E,n,H)}}Cr(e,r,d,m,w,O,i,a);return;case"select":E=r=d=T=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":E=m;default:n.hasOwnProperty(i)||lt(e,t,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":T=i;break;case"defaultValue":d=i;break;case"multiple":r=i;default:i!==m&<(e,t,a,i,n,m)}t=d,l=r,n=E,T!=null?aa(e,!!l,T,!1):!!n!=!!l&&(t!=null?aa(e,!!l,t,!0):aa(e,!!l,l?[]:"",!1));return;case"textarea":E=T=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:lt(e,t,d,null,n,a)}for(r in n)if(a=n[r],i=l[r],n.hasOwnProperty(r)&&(a!=null||i!=null))switch(r){case"value":T=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(u(91));break;default:a!==i&<(e,t,r,a,n,i)}nu(e,T,E);return;case"option":for(var ne in l)T=l[ne],l.hasOwnProperty(ne)&&T!=null&&!n.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:lt(e,t,ne,null,n,T));for(m in n)T=n[m],E=l[m],n.hasOwnProperty(m)&&T!==E&&(T!=null||E!=null)&&(m==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":lt(e,t,m,T,n,E));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 xe in l)T=l[xe],l.hasOwnProperty(xe)&&T!=null&&!n.hasOwnProperty(xe)&<(e,t,xe,null,n,T);for(w in n)if(T=n[w],E=l[w],n.hasOwnProperty(w)&&T!==E&&(T!=null||E!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(u(137,t));break;default:lt(e,t,w,T,n,E)}return;default:if(wr(t)){for(var nt in l)T=l[nt],l.hasOwnProperty(nt)&&T!==void 0&&!n.hasOwnProperty(nt)&&us(e,t,nt,void 0,n,T);for(O in n)T=n[O],E=l[O],!n.hasOwnProperty(O)||T===E||T===void 0&&E===void 0||us(e,t,O,T,n,E);return}}for(var C in l)T=l[C],l.hasOwnProperty(C)&&T!=null&&!n.hasOwnProperty(C)&<(e,t,C,null,n,T);for(H in n)T=n[H],E=l[H],!n.hasOwnProperty(H)||T===E||T==null&&E==null||lt(e,t,H,T,n,E)}function c0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rm(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,r=a.initiatorType,d=a.duration;if(i&&d&&c0(r)){for(r=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],w=m.startTime;if(w>d)break;var O=m.transferSize,H=m.initiatorType;O&&c0(H)&&(m=m.responseEnd,r+=O*(m<d?1:(d-w)/(m-w)))}if(--n,t+=8*(i+r)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var fs=null,ds=null;function Qo(e){return e.nodeType===9?e:e.ownerDocument}function s0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function u0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function hs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ps=null;function cm(){var e=window.event;return e&&e.type==="popstate"?e===ps?!1:(ps=e,!0):(ps=null,!1)}var f0=typeof setTimeout=="function"?setTimeout:void 0,sm=typeof clearTimeout=="function"?clearTimeout:void 0,d0=typeof Promise=="function"?Promise:void 0,um=typeof queueMicrotask=="function"?queueMicrotask:typeof d0<"u"?function(e){return d0.resolve(null).then(e).catch(fm)}:f0;function fm(e){setTimeout(function(){throw e})}function bn(e){return e==="head"}function h0(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),Ha(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")wi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wi(l);for(var i=l.firstChild;i;){var r=i.nextSibling,d=i.nodeName;i[kn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&wi(e.ownerDocument.body);l=a}while(l);Ha(t)}function p0(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function ms(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ms(l),xr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function dm(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[kn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=fl(e.nextSibling),e===null)break}return null}function hm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=fl(e.nextSibling),e===null))return null;return e}function m0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fl(e.nextSibling),e===null))return null;return e}function gs(e){return e.data==="$?"||e.data==="$~"}function ys(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pm(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function fl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vs=null;function g0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return fl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function y0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function v0(e,t,l){switch(t=Qo(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xr(e)}var dl=new Map,b0=new Set;function Zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Il=Y.d;Y.d={f:mm,r:gm,D:ym,C:vm,L:bm,m:xm,X:Cm,S:Sm,M:zm};function mm(){var e=Il.f(),t=No();return e||t}function gm(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?Hf(t):Il.r(e)}var Ra=typeof document>"u"?null:document;function x0(e,t,l){var n=Ra;if(n&&typeof t=="string"&&t){var a=al(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),b0.has(a)||(b0.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),kt(t,"link",e),zt(t),n.head.appendChild(t)))}}function ym(e){Il.D(e),x0("dns-prefetch",e,null)}function vm(e,t){Il.C(e,t),x0("preconnect",e,t)}function bm(e,t,l){Il.L(e,t,l);var n=Ra;if(n&&e&&t){var a='link[rel="preload"][as="'+al(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+al(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+al(l.imageSizes)+'"]')):a+='[href="'+al(e)+'"]';var i=a;switch(t){case"style":i=La(e);break;case"script":i=Ua(e)}dl.has(i)||(e=B({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),dl.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Mi(i))||t==="script"&&n.querySelector(Ti(i))||(t=n.createElement("link"),kt(t,"link",e),zt(t),n.head.appendChild(t)))}}function xm(e,t){Il.m(e,t);var l=Ra;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+al(n)+'"][href="'+al(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ua(e)}if(!dl.has(i)&&(e=B({rel:"modulepreload",href:e},t),dl.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ti(i)))return}n=l.createElement("link"),kt(n,"link",e),zt(n),l.head.appendChild(n)}}}function Sm(e,t,l){Il.S(e,t,l);var n=Ra;if(n&&e){var a=la(n).hoistableStyles,i=La(e);t=t||"default";var r=a.get(i);if(!r){var d={loading:0,preload:null};if(r=n.querySelector(Mi(i)))d.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},l),(l=dl.get(i))&&bs(e,l);var m=r=n.createElement("link");zt(m),kt(m,"link",e),m._p=new Promise(function(w,O){m.onload=w,m.onerror=O}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ko(r,t,n)}r={type:"stylesheet",instance:r,count:1,state:d},a.set(i,r)}}}function Cm(e,t){Il.X(e,t);var l=Ra;if(l&&e){var n=la(l).hoistableScripts,a=Ua(e),i=n.get(a);i||(i=l.querySelector(Ti(a)),i||(e=B({src:e,async:!0},t),(t=dl.get(a))&&xs(e,t),i=l.createElement("script"),zt(i),kt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function zm(e,t){Il.M(e,t);var l=Ra;if(l&&e){var n=la(l).hoistableScripts,a=Ua(e),i=n.get(a);i||(i=l.querySelector(Ti(a)),i||(e=B({src:e,async:!0,type:"module"},t),(t=dl.get(a))&&xs(e,t),i=l.createElement("script"),zt(i),kt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function S0(e,t,l,n){var a=(a=ue.current)?Zo(a):null;if(!a)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=La(l.href),l=la(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=La(l.href);var i=la(a).hoistableStyles,r=i.get(e);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=a.querySelector(Mi(e)))&&!i._p&&(r.instance=i,r.state.loading=5),dl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},dl.set(e,l),i||wm(a,e,l,r.state))),t&&n===null)throw Error(u(528,""));return r}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ua(l),l=la(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function La(e){return'href="'+al(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function wm(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),kt(t,"link",l),zt(t),e.head.appendChild(t))}function Ua(e){return'[src="'+al(e)+'"]'}function Ti(e){return"script[async]"+e}function z0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+al(l.href)+'"]');if(n)return t.instance=n,zt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),zt(n),kt(n,"style",a),Ko(n,l.precedence,e),t.instance=n;case"stylesheet":a=La(l.href);var i=e.querySelector(Mi(a));if(i)return t.state.loading|=4,t.instance=i,zt(i),i;n=C0(l),(a=dl.get(a))&&bs(n,a),i=(e.ownerDocument||e).createElement("link"),zt(i);var r=i;return r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),kt(i,"link",n),t.state.loading|=4,Ko(i,l.precedence,e),t.instance=i;case"script":return i=Ua(l.src),(a=e.querySelector(Ti(i)))?(t.instance=a,zt(a),a):(n=l,(a=dl.get(i))&&(n=B({},l),xs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),zt(a),kt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ko(n,l.precedence,e));return t.instance}function Ko(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,r=0;r<n.length;r++){var d=n[r];if(d.dataset.precedence===t)i=d;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function bs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Jo=null;function w0(e,t,l){if(Jo===null){var n=new Map,a=Jo=new Map;a.set(l,n)}else a=Jo,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[kn]||i[$]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var d=n.get(r);d?d.push(i):n.set(r,[i])}}return n}function M0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Mm(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function T0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tm(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=La(n.href),i=t.querySelector(Mi(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fo.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,zt(i);return}i=t.ownerDocument||t,n=C0(n),(a=dl.get(a))&&bs(n,a),i=i.createElement("link"),zt(i);var r=i;r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),kt(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Fo.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ss=0;function Am(e,t){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ss===0&&(Ss=62500*rm());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ss?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $o=null;function Wo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$o=new Map,t.forEach(Em,e),$o=null,Fo.call(e))}function Em(e,t){if(!(t.state.loading&4)){var l=$o.get(e);if(l)var n=l.get(null);else{l=new Map,$o.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var r=a[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),n=r)}n&&l.set(null,n)}a=t.instance,r=a.getAttribute("data-precedence"),i=l.get(r)||n,i===n&&l.set(null,a),l.set(r,a),this.count++,n=Fo.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:te,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function _m(e,t,l,n,a,i,r,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.hiddenUpdates=Sl(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function A0(e,t,l,n,a,i,r,d,m,w,O,H){return e=new _m(e,t,l,r,m,w,O,H,d),t=1,i===!0&&(t|=24),i=Ft(3,null,null,t),e.current=i,i.stateNode=e,t=ec(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},ac(i),e}function E0(e){return e?(e=da,e):da}function _0(e,t,l,n,a,i){a=E0(a),n.context===null?n.context=a:n.pendingContext=a,n=cn(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=sn(e,n,t),l!==null&&(Qt(l,e,t),ii(l,e,t))}function D0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Cs(e,t){D0(e,t),(e=e.alternate)&&D0(e,t)}function k0(e){if(e.tag===13||e.tag===31){var t=Hn(e,67108864);t!==null&&Qt(t,e,67108864),Cs(e,67108864)}}function O0(e){if(e.tag===13||e.tag===31){var t=el();t=ge(t);var l=Hn(e,t);l!==null&&Qt(l,e,t),Cs(e,t)}}var Io=!0;function Dm(e,t,l,n){var a=A.T;A.T=null;var i=Y.p;try{Y.p=2,zs(e,t,l,n)}finally{Y.p=i,A.T=a}}function km(e,t,l,n){var a=A.T;A.T=null;var i=Y.p;try{Y.p=8,zs(e,t,l,n)}finally{Y.p=i,A.T=a}}function zs(e,t,l,n){if(Io){var a=ws(n);if(a===null)ss(e,t,n,Po,l),L0(e,n);else if(Rm(a,e,t,l,n))n.stopPropagation();else if(L0(e,n),t&4&&-1<Om.indexOf(e)){for(;a!==null;){var i=ta(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Rl(i.pendingLanes);if(r!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var m=1<<31-Bt(r);d.entanglements[1]|=m,r&=~m}Ml(i),(Ze&6)===0&&(Uo=Ht()+500,Si(0))}}break;case 31:case 13:d=Hn(i,2),d!==null&&Qt(d,i,2),No(),Cs(i,2)}if(i=ws(n),i===null&&ss(e,t,n,Po,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else ss(e,t,n,null,l)}}function ws(e){return e=Tr(e),Ms(e)}var Po=null;function Ms(e){if(Po=null,e=ea(e),e!==null){var t=p(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=D(t),e!==null)return e;e=null}else if(l===31){if(e=L(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Po=e,null}function R0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pr()){case Gi:return 2;case Vi:return 8;case Wn:case Xi:return 32;case Qi:return 268435456;default:return 32}default:return 32}}var Ts=!1,xn=null,Sn=null,Cn=null,Ei=new Map,_i=new Map,zn=[],Om="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 L0(e,t){switch(e){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function Di(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ta(t),t!==null&&k0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Rm(e,t,l,n,a){switch(t){case"focusin":return xn=Di(xn,e,t,l,n,a),!0;case"dragenter":return Sn=Di(Sn,e,t,l,n,a),!0;case"mouseover":return Cn=Di(Cn,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return Ei.set(i,Di(Ei.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,_i.set(i,Di(_i.get(i)||null,e,t,l,n,a)),!0}return!1}function U0(e){var t=ea(e.target);if(t!==null){var l=p(t);if(l!==null){if(t=l.tag,t===13){if(t=D(l),t!==null){e.blockedOn=t,qe(e.priority,function(){O0(l)});return}}else if(t===31){if(t=L(l),t!==null){e.blockedOn=t,qe(e.priority,function(){O0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ws(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Mr=n,l.target.dispatchEvent(n),Mr=null}else return t=ta(l),t!==null&&k0(t),e.blockedOn=l,!1;t.shift()}return!0}function H0(e,t,l){er(e)&&l.delete(t)}function Lm(){Ts=!1,xn!==null&&er(xn)&&(xn=null),Sn!==null&&er(Sn)&&(Sn=null),Cn!==null&&er(Cn)&&(Cn=null),Ei.forEach(H0),_i.forEach(H0)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ts||(Ts=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Lm)))}var lr=null;function N0(e){lr!==e&&(lr=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){lr===e&&(lr=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Ms(n||l)===null)continue;break}var i=ta(l);i!==null&&(e.splice(t,3),t-=3,wc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Ha(e){function t(m){return tr(m,e)}xn!==null&&tr(xn,e),Sn!==null&&tr(Sn,e),Cn!==null&&tr(Cn,e),Ei.forEach(t),_i.forEach(t);for(var l=0;l<zn.length;l++){var n=zn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<zn.length&&(l=zn[0],l.blockedOn===null);)U0(l),l.blockedOn===null&&zn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],r=a[ke]||null;if(typeof i=="function")r||N0(l);else if(r){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,r=i[ke]||null)d=r.formAction;else if(Ms(a)!==null)continue}else d=r.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),N0(l)}}}function B0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return a=r})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function As(e){this._internalRoot=e}nr.prototype.render=As.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,n=el();_0(l,n,e,t,null,null)},nr.prototype.unmount=As.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_0(e.current,2,null,e,null,null),No(),t[fe]=null}};function nr(e){this._internalRoot=e}nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ce();e={blockedOn:null,target:e,priority:t};for(var l=0;l<zn.length&&t!==0&&t<zn[l].priority;l++);zn.splice(l,0,e),l===0&&U0(e)}};var j0=s.version;if(j0!=="19.2.4")throw Error(u(527,j0,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=x(t),e=e!==null?G(e):null,e=e===null?null:e.stateNode,e};var Um={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ar.isDisabled&&ar.supportsFiber)try{En=ar.inject(Um),Nt=ar}catch{}}return Ri.createRoot=function(e,t){if(!y(e))throw Error(u(299));var l=!1,n="",a=Zf,i=Kf,r=Jf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=A0(e,1,!1,null,null,l,n,null,a,i,r,B0),e[fe]=t.current,cs(e),new As(t)},Ri.hydrateRoot=function(e,t,l){if(!y(e))throw Error(u(299));var n=!1,a="",i=Zf,r=Kf,d=Jf,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=A0(e,1,!0,t,l??null,n,a,m,i,r,d,B0),t.context=E0(null),l=t.current,n=el(),n=ge(n),a=cn(n),a.callback=null,sn(l,a,n),l=n,t.current.lanes=l,en(t,l),Ml(t),e[fe]=t.current,cs(e),new nr(t)},Ri.version="19.2.4",Ri}var ih;function Y1(){if(ih)return Rs.exports;ih=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),Rs.exports=q1(),Rs.exports}var G1=Y1(),oh=function(s,h){var u=arguments;if(h==null||!qi.call(h,"css"))return M.createElement.apply(void 0,u);var y=u.length,p=new Array(y);p[0]=Js,p[1]=Ks(s,h);for(var D=2;D<y;D++)p[D]=u[D];return M.createElement.apply(null,p)};(function(o){var s;s||(s=o.JSX||(o.JSX={}))})(oh||(oh={}));function b(){for(var o=arguments.length,s=new Array(o),h=0;h<o;h++)s[h]=arguments[h];return xh(s)}function Pl(){var o=b.apply(void 0,arguments),s="animation-"+o.name;return{name:s,styles:"@keyframes "+s+"{"+o.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const V1={showProgress:!1,progressTitle:"",progressState:{current:0,total:0,percent:0,status:"processing"},showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1,actionPaths:[],syncImageCount:0,syncHasRemote:!1,syncHasLocal:!1,processMode:"generate"},X1={isOpen:!1,openStudio:()=>{},closeStudio:()=>{},toggleStudio:()=>{},currentPath:"public",setCurrentPath:()=>{},navigateUp:()=>{},selectedItems:new Set,toggleSelection:()=>{},selectRange:()=>{},selectAll:()=>{},clearSelection:()=>{},lastSelectedPath:null,viewMode:"grid",setViewMode:()=>{},focusedItem:null,setFocusedItem:()=>{},meta:null,setMeta:()=>{},isLoading:!1,setIsLoading:()=>{},refreshKey:0,triggerRefresh:()=>{},scanRequested:!1,triggerScan:()=>{},clearScanRequest:()=>{},searchQuery:"",setSearchQuery:()=>{},error:null,showError:()=>{},clearError:()=>{},fileItems:[],setFileItems:()=>{},actionState:V1,requestDelete:()=>{},requestMove:()=>{},requestSync:()=>{},requestProcess:()=>{},setProcessMode:()=>{},confirmDelete:async()=>{},confirmMove:async()=>{},confirmSync:async()=>{},confirmProcess:async()=>{},cancelAction:()=>{},closeProgress:()=>{},stopProcessing:()=>{},abortController:null,deleteOrphans:async()=>{}},Ch=M.createContext(X1);function ja(){return M.useContext(Ch)}const hr="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif",f={primary:"#635bff",primaryHover:"#5851e5",primaryLight:"#f0f0ff",background:"#f6f9fc",surface:"#ffffff",surfaceHover:"#f6f9fc",border:"#d8dee4",borderLight:"#e3e8ee",borderHover:"#c1c9d2",text:"#1a1f36",textSecondary:"#697386",textMuted:"#8792a2",success:"#0d7d4d",danger:"#df1b41",dangerHover:"#c41535",dangerLight:"#fff5f7",imagesFolder:"#8b5cf6"},F={xs:"13px",sm:"14px",base:"16px",lg:"19px",xl:"22px"},Yi=b("font-family:",hr,";font-size:",F.base,";line-height:1.5;color:",f.text,";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;*,*::before,*::after{box-sizing:border-box;}button,input,select,textarea{font-family:inherit;font-size:inherit;}",""),Q1=Pl`
|
|
10
|
+
from { opacity: 0; }
|
|
11
|
+
to { opacity: 1; }
|
|
12
|
+
`,Z1=Pl`
|
|
13
|
+
from {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transform: translateY(-8px) scale(0.98);
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
opacity: 1;
|
|
19
|
+
transform: translateY(0) scale(1);
|
|
20
|
+
}
|
|
21
|
+
`,ze={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",Q1," 0.15s ease-out;font-family:",hr,";",""),modal:b(Yi," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:420px;width:90%;animation:",Z1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),body:{name:"5e7rpo",styles:"padding:12px 24px 24px"},message:b("font-size:",F.base,";color:",f.textSecondary,";margin:0;line-height:1.6;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",F.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover{background-color:",f.primaryHover,";border-color:",f.primaryHover,";}",""),btnDanger:b("background-color:",f.danger,";border:1px solid ",f.danger,";color:white;&:hover{background-color:",f.dangerHover,";border-color:",f.dangerHover,";}","")};function Li({title:o,message:s,confirmLabel:h="Confirm",cancelLabel:u="Cancel",variant:y="default",onConfirm:p,onCancel:D}){return c("div",{css:ze.overlay,onClick:D,children:S("div",{css:ze.modal,onClick:L=>L.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:c("p",{css:ze.message,children:s})}),S("div",{css:ze.footer,children:[c("button",{css:[ze.btn,ze.btnCancel,"",""],onClick:D,children:u}),c("button",{css:[ze.btn,y==="danger"?ze.btnDanger:ze.btnConfirm,"",""],onClick:p,children:h})]})]})})}const K1={input:b("width:100%;padding:10px 12px;font-size:",F.base,";border:1px solid ",f.border,";border-radius:6px;background:",f.surface,";color:",f.text,";margin-top:12px;transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 2px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}","")};function Gs({title:o,message:s,inputLabel:h,defaultValue:u="",placeholder:y,confirmLabel:p="Confirm",cancelLabel:D="Cancel",onConfirm:L,onCancel:k}){const[x,G]=uh.useState(u),B=V=>{V.preventDefault(),x.trim()&&L(x.trim())};return c("div",{css:ze.overlay,onClick:k,children:c("div",{css:ze.modal,onClick:V=>V.stopPropagation(),children:S("form",{onSubmit:B,children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),S("div",{css:ze.body,children:[s&&c("p",{css:ze.message,children:s}),h&&c("label",{css:ze.message,children:h}),c("input",{css:K1.input,type:"text",value:x,onChange:V=>G(V.target.value),placeholder:y,autoFocus:!0})]}),S("div",{css:ze.footer,children:[c("button",{type:"button",css:[ze.btn,ze.btnCancel,"",""],onClick:k,children:D}),c("button",{type:"submit",css:[ze.btn,ze.btnConfirm,"",""],disabled:!x.trim(),children:p})]})]})})})}function zh({title:o,message:s,buttonLabel:h="OK",onClose:u}){return c("div",{css:ze.overlay,onClick:u,children:S("div",{css:ze.modal,onClick:y=>y.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:c("p",{css:ze.message,children:s})}),c("div",{css:ze.footer,children:c("button",{css:[ze.btn,ze.btnConfirm,"",""],onClick:u,children:h})})]})})}const Mn={progressContainer:{name:"yz1nei",styles:"margin-top:16px"},progressBar:b("width:100%;height:8px;background-color:",f.background,";border-radius:4px;overflow:hidden;margin-bottom:12px;",""),progressFill:b("height:100%;background:linear-gradient(90deg, ",f.primary,", ",f.primaryHover,");border-radius:4px;transition:width 0.3s ease;",""),progressText:b("font-size:",F.sm,";color:",f.textSecondary,";margin:0;display:flex;justify-content:space-between;align-items:center;",""),currentFile:b("font-size:",F.xs,";color:",f.textMuted,";margin:8px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),errorList:{name:"1lw22n1",styles:"margin-top:12px;padding:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;max-height:200px;overflow-y:auto"},errorItem:b("font-size:",F.xs,";color:#991b1b;margin:0 0 4px;&:last-child{margin-bottom:0;}","")};function Fs({title:o,progress:s,onClose:h,onDeleteOrphans:u,onStop:y}){const p=s.status==="complete",D=s.status==="error",L=s.status==="stopped",k=p||D||L,x=!k;return c("div",{css:ze.overlay,children:S("div",{css:ze.modal,onClick:G=>G.stopPropagation(),children:[c("div",{css:ze.header,children:c("h3",{css:ze.title,children:o})}),c("div",{css:ze.body,children:D?c("p",{css:ze.message,children:s.message||"An error occurred"}):L?S("p",{css:ze.message,children:["Processing stopped. Processed ",s.processed??s.current," image",(s.processed??s.current)!==1?"s":""," before stopping."]}):p?S(Tt,{children:[S("p",{css:ze.message,children:[s.message?s.message:s.isMove?S(Tt,{children:["Moved ",s.processed," file",s.processed!==1?"s":"",".",s.errors!==void 0&&s.errors>0?S(Tt,{children:[" ",s.errors," error",s.errors!==1?"s":""," occurred."]}):null]}):s.isScan?S(Tt,{children:[s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?S(Tt,{children:[s.alreadyProcessed," image",s.alreadyProcessed!==1?"s":""," already exist. "]}):null,"Scanned ",s.processed," new image",s.processed!==1?"s":"",".",s.orphanedEntries!==void 0&&s.orphanedEntries>0?S(Tt,{children:[" Removed ",s.orphanedEntries," orphaned entr",s.orphanedEntries!==1?"ies":"y","."]}):null,s.pendingUpdates!==void 0&&s.pendingUpdates>0?S(Tt,{children:[" ",s.pendingUpdates," file",s.pendingUpdates!==1?"s have":" has"," local updates pending."]}):null]}):S(Tt,{children:["Processed ",s.processed," new image",s.processed!==1?"s":"",".",s.alreadyProcessed!==void 0&&s.alreadyProcessed>0?S(Tt,{children:[" ",s.alreadyProcessed," already processed."]}):null]}),s.orphansRemoved!==void 0&&s.orphansRemoved>0?S(Tt,{children:[" Removed ",s.orphansRemoved," orphaned thumbnail",s.orphansRemoved!==1?"s":"","."]}):null]}),s.errorMessages&&s.errorMessages.length>0&&S("div",{css:Mn.errorList,children:[s.errorMessages.slice(0,10).map((G,B)=>c("p",{css:Mn.errorItem,children:G},B)),s.errorMessages.length>10&&S("p",{css:Mn.errorItem,children:["...and ",s.errorMessages.length-10," more"]})]})]}):S(Tt,{children:[c("p",{css:ze.message,children:s.status==="cleanup"?s.message||"Cleaning up...":s.message||"Processing..."}),S("div",{css:Mn.progressContainer,children:[c("div",{css:Mn.progressBar,children:c("div",{css:Mn.progressFill,style:{width:`${s.percent}%`}})}),S("div",{css:Mn.progressText,children:[S("span",{children:[s.current," of ",s.total]}),S("span",{children:[s.percent,"%"]})]}),s.currentFile&&c("p",{css:Mn.currentFile,title:s.currentFile,children:s.currentFile})]})]})}),S("div",{css:ze.footer,children:[x&&y&&c("button",{css:[ze.btn,ze.btnDanger,"",""],onClick:y,children:"Stop"}),k&&s.orphanedFiles&&s.orphanedFiles.length>0&&u&&S("button",{css:[ze.btn,ze.btnDanger,"",""],onClick:u,children:["Delete ",s.orphanedFiles.length," Orphan",s.orphanedFiles.length!==1?"s":""]}),k&&c("button",{css:[ze.btn,ze.btnConfirm,"",""],onClick:h,children:"Done"})]})]})})}const J1=Pl`
|
|
22
|
+
from { opacity: 0; }
|
|
23
|
+
to { opacity: 1; }
|
|
24
|
+
`,F1=Pl`
|
|
25
|
+
from {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
transform: translateY(-8px) scale(0.98);
|
|
28
|
+
}
|
|
29
|
+
to {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
transform: translateY(0) scale(1);
|
|
32
|
+
}
|
|
33
|
+
`,ft={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",J1," 0.15s ease-out;font-family:",hr,";",""),modal:b(Yi," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:480px;width:90%;max-height:80vh;display:flex;flex-direction:column;animation:",F1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),body:{name:"zizupt",styles:"padding:12px 24px 24px;flex:1;overflow-y:auto;min-height:200px;max-height:400px"},message:b("font-size:",F.base,";color:",f.textSecondary,";margin:0 0 16px;line-height:1.6;",""),folderList:{name:"1axgfg3",styles:"display:flex;flex-direction:column;gap:0"},folderItem:b("display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all 0.15s ease;border:1px solid transparent;position:relative;&:hover{background-color:",f.surfaceHover,";}",""),treeIndent:{name:"197dxto",styles:"display:flex;align-items:center;height:100%"},treeLine:b("width:16px;height:100%;position:relative;flex-shrink:0;&::before{content:'';position:absolute;left:8px;top:0;bottom:50%;width:0;border-left:1px dashed ",f.textSecondary,";}&::after{content:'';position:absolute;left:8px;top:50%;width:8px;height:0;border-top:1px dashed ",f.textSecondary,";}",""),folderItemSelected:b("background-color:",f.primaryLight,";border-color:",f.primary,";&:hover{background-color:",f.primaryLight,";}",""),folderItemDisabled:{name:"181lhkw",styles:"opacity:0.5;cursor:not-allowed;&:hover{background-color:transparent;}"},folderIcon:{name:"17bs1oo",styles:"width:20px;height:20px;color:#f9935e;flex-shrink:0"},folderName:b("font-size:",F.base,";color:",f.text,";flex:1;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",F.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover:not(:disabled){background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.5;cursor:not-allowed;}",""),loading:b("display:flex;align-items:center;justify-content:center;padding:40px;color:",f.textSecondary,";",""),spinner:b("width:24px;height:24px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:spin 0.8s linear infinite;@keyframes spin{to{transform:rotate(360deg);}}","")};function wh({selectedItems:o,currentPath:s,onMove:h,onCancel:u}){const[y,p]=M.useState([]),[D,L]=M.useState(!0),[k,x]=M.useState(null);M.useEffect(()=>{async function q(){try{const X=await fetch("/api/studio/list-folders");if(X.ok){const ve=await X.json();console.log("Loaded folders:",ve),p(ve.folders||[])}else console.error("Failed to load folders:",X.status,await X.text())}catch(X){console.error("Failed to load folders:",X)}finally{L(!1)}}q()},[]);const G=Array.from(o),B=y.filter(q=>!G.some(X=>q.path===X||q.path.startsWith(X+"/"))),V=q=>q===s,ae=()=>{k&&h(k)};return c("div",{css:ft.overlay,onClick:u,children:S("div",{css:ft.modal,onClick:q=>q.stopPropagation(),children:[c("div",{css:ft.header,children:c("h3",{css:ft.title,children:"Move Items"})}),S("div",{css:ft.body,children:[S("p",{css:ft.message,children:["Select a destination folder for ",o.size," item",o.size!==1?"s":"",":"]}),D?c("div",{css:ft.loading,children:c("div",{css:ft.spinner})}):B.length===0?c("div",{css:ft.loading,children:"No available folders to move to."}):c("div",{css:ft.folderList,children:B.map(q=>{const X=V(q.path);return S("div",{css:[ft.folderItem,k===q.path&&ft.folderItemSelected,X&&ft.folderItemDisabled,"",""],style:{paddingLeft:12},onClick:()=>!X&&x(q.path),children:[q.depth>0&&c("div",{css:ft.treeIndent,children:Array.from({length:q.depth}).map((ve,W)=>c("div",{css:ft.treeLine},W))}),c("svg",{css:ft.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),S("span",{css:ft.folderName,children:[q.name,X&&" (current)"]})]},q.path)})})]}),S("div",{css:ft.footer,children:[c("button",{css:[ft.btn,ft.btnCancel,"",""],onClick:u,children:"Cancel"}),c("button",{css:[ft.btn,ft.btnConfirm,"",""],onClick:ae,disabled:!k,children:"Move Here"})]})]})})}const $1=`CLOUDFLARE_R2_ACCOUNT_ID=your_account_id
|
|
34
|
+
CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key
|
|
35
|
+
CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_key
|
|
36
|
+
CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name
|
|
37
|
+
CLOUDFLARE_R2_PUBLIC_URL=https://pub-xxx.r2.dev
|
|
38
|
+
NEXT_PUBLIC_CLOUDFLARE_R2_PUBLIC_URL=https://pub-xxx.r2.dev`,ie={overlay:{name:"8ivopw",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.6);display:flex;align-items:center;justify-content:center;z-index:1100;padding:20px"},modal:b("background:",f.surface,";border-radius:12px;max-width:560px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 40px rgba(0, 0, 0, 0.3);",""),header:b("display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid ",f.border,";",""),icon:b("width:32px;height:32px;color:",f.primary,";flex-shrink:0;",""),title:b("font-size:",F.xl,";font-weight:600;color:",f.text,";margin:0;",""),closeBtn:b("margin-left:auto;background:none;border:none;padding:4px;cursor:pointer;color:",f.textMuted,";border-radius:4px;&:hover{color:",f.text,";background:",f.surfaceHover,";}",""),closeIcon:{name:"1aynuae",styles:"width:20px;height:20px"},content:{name:"vxuddk",styles:"padding:24px"},intro:b("font-size:",F.base,";color:",f.textSecondary,";margin:0 0 20px 0;line-height:1.6;",""),steps:{name:"1fs2p21",styles:"list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px"},step:{name:"1wesxqa",styles:"display:flex;gap:12px"},stepNumber:b("width:28px;height:28px;border-radius:50%;background:",f.primaryLight,";color:",f.primary,";font-size:",F.sm,";font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;",""),stepContent:{name:"pkc2k3",styles:"flex:1;padding-top:3px"},stepTitle:b("font-size:",F.base,";font-weight:500;color:",f.text,";margin:0 0 4px 0;",""),stepDesc:b("font-size:",F.sm,";color:",f.textSecondary,";margin:0;line-height:1.5;",""),link:b("color:",f.primary,";text-decoration:none;font-weight:500;&:hover{text-decoration:underline;}",""),envVarsWrapper:{name:"1ksolcl",styles:"position:relative;margin-top:20px"},envVars:b("background:",f.background,";border:1px solid ",f.border,";border-radius:8px;padding:16px;padding-right:48px;font-family:'SF Mono',Monaco,'Cascadia Code',monospace;font-size:13px;line-height:1.8;color:",f.text,";overflow-x:auto;",""),envVar:{name:"4zleql",styles:"display:block"},envKey:b("color:",f.primary,";",""),envValue:b("color:",f.textSecondary,";",""),copyBtn:b("position:absolute;top:8px;right:8px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;color:",f.textMuted,";transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";color:",f.text,";border-color:#d0d5dd;}",""),copyIcon:{name:"157xhr7",styles:"width:16px;height:16px"},copiedTooltip:{name:"9a5yd1",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;&::before{content:'';position:absolute;right:-4px;top:50%;transform:translateY(-50%);border-left:4px solid #1a1f36;border-top:4px solid transparent;border-bottom:4px solid transparent;}"},footer:b("padding:16px 24px;border-top:1px solid ",f.border,";display:flex;justify-content:flex-end;gap:12px;",""),docsBtn:b("padding:10px 16px;border-radius:6px;font-size:",F.base,";font-weight:500;border:1px solid ",f.border,";background:",f.surface,";color:",f.text,";cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";border-color:#d0d5dd;}",""),doneBtn:b("padding:10px 20px;border-radius:6px;font-size:",F.base,";font-weight:500;border:none;background:",f.primary,";color:white;cursor:pointer;transition:background 0.15s ease;&:hover{background:",f.primaryHover,";}",""),externalIcon:{name:"1djxupe",styles:"width:14px;height:14px"}};function Mh({isOpen:o,onClose:s}){const[h,u]=M.useState(!1),y=async()=>{try{await navigator.clipboard.writeText($1),u(!0),setTimeout(()=>u(!1),2e3)}catch(p){console.error("Failed to copy:",p)}};return o?c("div",{css:ie.overlay,onClick:s,children:S("div",{css:ie.modal,onClick:p=>p.stopPropagation(),children:[S("div",{css:ie.header,children:[c("svg",{css:ie.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),c("h2",{css:ie.title,children:"Set Up CDN Storage"}),c("button",{css:ie.closeBtn,onClick:s,children:c("svg",{css:ie.closeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),S("div",{css:ie.content,children:[c("p",{css:ie.intro,children:"Sync your images to Cloudflare R2 for faster global delivery. R2 offers generous free tier with no egress fees."}),S("ol",{css:ie.steps,children:[S("li",{css:ie.step,children:[c("span",{css:ie.stepNumber,children:"1"}),S("div",{css:ie.stepContent,children:[c("h4",{css:ie.stepTitle,children:"Create a Cloudflare account"}),S("p",{css:ie.stepDesc,children:["Sign up at"," ",c("a",{css:ie.link,href:"https://dash.cloudflare.com/sign-up",target:"_blank",rel:"noopener noreferrer",children:"dash.cloudflare.com"})," ","if you don't have one already."]})]})]}),S("li",{css:ie.step,children:[c("span",{css:ie.stepNumber,children:"2"}),S("div",{css:ie.stepContent,children:[c("h4",{css:ie.stepTitle,children:"Create an R2 bucket"}),S("p",{css:ie.stepDesc,children:["Go to R2 in your Cloudflare dashboard and create a new bucket. Choose a name like ",c("code",{children:"my-images"}),"."]})]})]}),S("li",{css:ie.step,children:[c("span",{css:ie.stepNumber,children:"3"}),S("div",{css:ie.stepContent,children:[c("h4",{css:ie.stepTitle,children:"Enable public access"}),S("p",{css:ie.stepDesc,children:['In bucket settings, enable "Public Access" and copy the public URL (e.g., ',c("code",{children:"https://pub-xxx.r2.dev"}),")."]})]})]}),S("li",{css:ie.step,children:[c("span",{css:ie.stepNumber,children:"4"}),S("div",{css:ie.stepContent,children:[c("h4",{css:ie.stepTitle,children:"Create API token"}),c("p",{css:ie.stepDesc,children:'Go to R2 → Manage R2 API Tokens → Create API Token. Select "Object Read & Write" permissions for your bucket.'})]})]}),S("li",{css:ie.step,children:[c("span",{css:ie.stepNumber,children:"5"}),S("div",{css:ie.stepContent,children:[c("h4",{css:ie.stepTitle,children:"Add environment variables"}),S("p",{css:ie.stepDesc,children:["Add these to your ",c("code",{children:".env.local"})," file:"]})]})]})]}),S("div",{css:ie.envVarsWrapper,children:[S("div",{css:ie.envVars,children:[S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"CLOUDFLARE_R2_ACCOUNT_ID"}),"=",c("span",{css:ie.envValue,children:"your_account_id"})]}),S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"CLOUDFLARE_R2_ACCESS_KEY_ID"}),"=",c("span",{css:ie.envValue,children:"your_access_key"})]}),S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY"}),"=",c("span",{css:ie.envValue,children:"your_secret_key"})]}),S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"CLOUDFLARE_R2_BUCKET_NAME"}),"=",c("span",{css:ie.envValue,children:"your_bucket_name"})]}),S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"CLOUDFLARE_R2_PUBLIC_URL"}),"=",c("span",{css:ie.envValue,children:"https://pub-xxx.r2.dev"})]}),S("span",{css:ie.envVar,children:[c("span",{css:ie.envKey,children:"NEXT_PUBLIC_CLOUDFLARE_R2_PUBLIC_URL"}),"=",c("span",{css:ie.envValue,children:"https://pub-xxx.r2.dev"})]})]}),S("button",{css:ie.copyBtn,onClick:y,title:"Copy to clipboard",children:[h&&c("span",{css:ie.copiedTooltip,children:"Copied!"}),c("svg",{css:ie.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})]})]})]}),S("div",{css:ie.footer,children:[S("a",{css:ie.docsBtn,href:"https://developers.cloudflare.com/r2/get-started/",target:"_blank",rel:"noopener noreferrer",children:["R2 Documentation",c("svg",{css:ie.externalIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),c("button",{css:ie.doneBtn,onClick:s,children:"Got it"})]})]})}):null}const W1=Pl`
|
|
39
|
+
from { opacity: 0; }
|
|
40
|
+
to { opacity: 1; }
|
|
41
|
+
`,I1=Pl`
|
|
42
|
+
from {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transform: translateY(-8px) scale(0.98);
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform: translateY(0) scale(1);
|
|
49
|
+
}
|
|
50
|
+
`,it={overlay:b("position:fixed;inset:0;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:",W1," 0.15s ease-out;font-family:",hr,";",""),modal:b(Yi," background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);max-width:520px;width:90%;animation:",I1," 0.2s ease-out;overflow:hidden;",""),header:{name:"nsgk6m",styles:"padding:24px 24px 0"},title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),tabs:b("display:flex;gap:0;margin-top:16px;border-bottom:1px solid ",f.border,";",""),tab:b("padding:12px 20px;font-size:",F.base,";font-weight:500;color:",f.textSecondary,";background:none;border:none;cursor:pointer;position:relative;transition:color 0.15s;&:hover{color:",f.text,";}",""),tabActive:b("color:",f.primary,";&::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background-color:",f.primary,";}",""),body:{name:"1po9b7e",styles:"padding:24px;min-height:200px"},dropzone:b("border:2px dashed ",f.border,";border-radius:8px;padding:40px 24px;text-align:center;cursor:pointer;transition:all 0.15s;&:hover{border-color:",f.primary,";background-color:",f.primaryLight,";}",""),dropzoneActive:b("border-color:",f.primary,";background-color:",f.primaryLight,";",""),dropzoneIcon:b("width:48px;height:48px;margin:0 auto 16px;color:",f.textMuted,";",""),dropzoneText:b("font-size:",F.base,";color:",f.text,";margin:0 0 4px;",""),dropzoneHint:b("font-size:",F.sm,";color:",f.textSecondary,";margin:0;",""),textarea:b("width:100%;min-height:150px;padding:12px;font-size:",F.sm,";font-family:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,monospace;border:1px solid ",f.border,";border-radius:8px;resize:vertical;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),textareaLabel:b("font-size:",F.sm,";color:",f.textSecondary,";margin:0 0 8px;",""),footer:b("display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid ",f.border,";background-color:",f.background,";",""),btn:b("padding:10px 18px;font-size:",F.base,";font-weight:500;border-radius:6px;cursor:pointer;transition:all 0.15s ease;letter-spacing:-0.01em;",""),btnCancel:b("background-color:",f.surface,";border:1px solid ",f.border,";color:",f.text,";&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),btnConfirm:b("background-color:",f.primary,";border:1px solid ",f.primary,";color:white;&:hover:not(:disabled){background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),fileInput:{name:"eivff4",styles:"display:none"},selectedFiles:b("margin-top:16px;padding:12px;background-color:",f.background,";border-radius:6px;font-size:",F.sm,";color:",f.text,";","")};function P1({currentPath:o,onClose:s,onUploadComplete:h}){const[u,y]=M.useState("upload"),[p,D]=M.useState([]),[L,k]=M.useState(""),[x,G]=M.useState(!1),[B,V]=M.useState(!1),[ae,q]=M.useState(!1),X=M.useRef(null),ve=M.useCallback(le=>{le&&D(Array.from(le))},[]),W=M.useCallback(le=>{le.preventDefault(),G(!1),ve(le.dataTransfer.files)},[ve]),ce=M.useCallback(async()=>{if(p.length!==0){V(!0);try{for(const le of p){const _=new FormData;_.append("file",le),_.append("path",o),await fetch("/api/studio/upload",{method:"POST",body:_})}h(),s()}catch(le){console.error("Upload failed:",le)}finally{V(!1)}}},[p,o,h,s]),te=M.useCallback(async()=>{const le=L.split(`
|
|
51
|
+
`).map(_=>_.trim()).filter(_=>_.length>0);if(le.length!==0){q(!0);try{const Q=(await fetch("/api/studio/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({urls:le})})).body?.getReader();if(!Q)throw new Error("No reader");const j=new TextDecoder;for(;;){const{done:Se,value:Le}=await Q.read();if(Se)break;const Ne=j.decode(Le).split(`
|
|
52
|
+
|
|
53
|
+
`).filter(He=>He.startsWith("data: "));for(const He of Ne)JSON.parse(He.replace("data: ","")).type==="complete"&&(h(),s())}}catch(_){console.error("Import failed:",_)}finally{q(!1)}}},[L,h,s]);return c("div",{css:it.overlay,onClick:s,children:S("div",{css:it.modal,onClick:le=>le.stopPropagation(),children:[S("div",{css:it.header,children:[c("h3",{css:it.title,children:"Add New"}),S("div",{css:it.tabs,children:[c("button",{css:[it.tab,u==="upload"&&it.tabActive,"",""],onClick:()=>y("upload"),children:"Upload Files"}),c("button",{css:[it.tab,u==="import"&&it.tabActive,"",""],onClick:()=>y("import"),children:"Import URLs"})]})]}),c("div",{css:it.body,children:u==="upload"?S(Tt,{children:[S("div",{css:[it.dropzone,x&&it.dropzoneActive,"",""],onClick:()=>X.current?.click(),onDragOver:le=>{le.preventDefault(),G(!0)},onDragLeave:()=>G(!1),onDrop:W,children:[c("svg",{css:it.dropzoneIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),c("p",{css:it.dropzoneText,children:"Drop files here or click to browse"}),c("p",{css:it.dropzoneHint,children:"Supports images and other media files"})]}),c("input",{ref:X,type:"file",multiple:!0,css:it.fileInput,onChange:le=>ve(le.target.files)}),p.length>0&&S("div",{css:it.selectedFiles,children:[p.length," file",p.length!==1?"s":""," selected"]})]}):S(Tt,{children:[c("p",{css:it.textareaLabel,children:"Paste image URLs (one per line)"}),c("textarea",{css:it.textarea,value:L,onChange:le=>k(le.target.value),placeholder:`https://cdn.example.com/photos/image1.jpg
|
|
54
|
+
https://cdn.example.com/photos/image2.jpg`})]})}),S("div",{css:it.footer,children:[c("button",{css:[it.btn,it.btnCancel,"",""],onClick:s,children:"Cancel"}),u==="upload"?c("button",{css:[it.btn,it.btnConfirm,"",""],onClick:ce,disabled:p.length===0||B,children:B?"Uploading...":"Upload"}):c("button",{css:[it.btn,it.btnConfirm,"",""],onClick:te,disabled:!L.trim()||ae,children:ae?"Importing...":"Import"})]})]})})}const Ns="36px",eg=Pl`
|
|
55
|
+
to { transform: rotate(360deg); }
|
|
56
|
+
`,we={toolbar:b("display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background-color:",f.surface,";border-bottom:1px solid ",f.border,";overflow:visible;min-width:0;@media (min-width: 768px){padding:12px 24px;}",""),left:{name:"17nohj2",styles:"display:flex;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px"},right:{name:"17nohj2",styles:"display:flex;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:8px"},btn:b("display:inline-flex;align-items:center;justify-content:center;gap:6px;height:",Ns,";padding:0 14px;border-radius:6px;font-size:",F.base,";font-weight:500;background:",f.surface,";border:1px solid ",f.border,";cursor:pointer;transition:all 0.15s ease;color:",f.text,";letter-spacing:-0.01em;&:hover:not(:disabled){background-color:",f.surfaceHover,";border-color:",f.borderHover,";}&:disabled{cursor:not-allowed;opacity:0.5;}",""),btnPrimary:b("background:",f.primary,";border-color:",f.primary,";color:white;&:hover:not(:disabled){background:",f.primaryHover,";border-color:",f.primaryHover,";}",""),btnDanger:b("color:",f.danger,";&:hover:not(:disabled){background-color:",f.dangerLight,";border-color:",f.danger,";}",""),btnCloud:{name:"1lzbs29",styles:"color:#f59e0b;&:hover:not(:disabled){background-color:rgba(245, 158, 11, 0.1);border-color:#f59e0b;}"},cloudDropdownWrapper:{name:"bjn8wh",styles:"position:relative"},dropdownArrow:{name:"1j1hlpy",styles:"width:12px;height:12px;margin-left:4px"},cloudDropdown:b("position:absolute;top:100%;left:0;z-index:1000;min-width:160px;margin-top:4px;background:white;border:1px solid ",f.border,";border-radius:6px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow:hidden;",""),cloudDropdownItem:b("display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;border:none;background:none;font-size:",F.sm,";color:",f.text,";cursor:pointer;text-align:left;white-space:nowrap;&:hover{background-color:",f.hover,";}svg{width:16px;height:16px;flex-shrink:0;color:#f59e0b;}",""),cloudDropdownItemDanger:b("color:",f.danger,";svg{color:",f.danger,";}",""),cloudDropdownDivider:b("height:1px;background-color:",f.border,";margin:4px 0;",""),icon:{name:"157xhr7",styles:"width:16px;height:16px"},iconSpin:b("animation:",eg," 1s linear infinite;",""),selectionCount:b("font-size:",F.base,";color:",f.textSecondary,";display:flex;align-items:center;gap:8px;margin-right:8px;",""),clearBtn:b("color:",f.primary,";background:none;border:none;cursor:pointer;font-size:",F.base,";font-weight:500;padding:0;&:hover{text-decoration:underline;}",""),divider:b("width:1px;height:24px;background:",f.border,";margin:0 4px;",""),viewToggle:b("display:flex;align-items:center;height:",Ns,";background-color:",f.surface,";border:1px solid ",f.border,";border-radius:6px;overflow:hidden;",""),searchWrapper:{name:"9iujih",styles:"position:relative;display:flex;align-items:center"},searchInput:b("height:",Ns,";padding:0 32px 0 12px;border:1px solid ",f.border,";border-radius:6px;font-size:",F.base,";background:",f.surface,";color:",f.text,";width:180px;transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 2px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),searchClearBtn:b("position:absolute;right:5px;top:5px;bottom:5px;background:",f.primary,";border:none;padding:0 6px;cursor:pointer;color:white;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all 0.15s ease;&:hover{background:",f.primaryHover,";}",""),viewBtn:b("height:100%;padding:0 10px;background:transparent;border:none;cursor:pointer;color:",f.textSecondary,";transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{color:",f.text,";background-color:",f.surfaceHover,";}",""),viewBtnActive:b("background-color:",f.primaryLight,";color:",f.primary,";&:hover{background-color:",f.primaryLight,";color:",f.primary,";}","")};function tg(){const{selectedItems:o,viewMode:s,setViewMode:h,clearSelection:u,currentPath:y,triggerRefresh:p,focusedItem:D,scanRequested:L,clearScanRequest:k,fileItems:x,requestProcess:G,actionState:B}=ja(),V=M.useRef(null),ae=M.useRef(null),[q,X]=M.useState(!1),[ve,W]=M.useState(!1),[ce,te]=M.useState(!1),[le,_]=M.useState(!1),[Q,j]=M.useState(!1),[Se,Le]=M.useState(0),[De,Ne]=M.useState(!1),[He,Fe]=M.useState(!1),[We,Me]=M.useState(!1),[A,Y]=M.useState(0),[J,se]=M.useState(!1),[Ee,g]=M.useState("Processing Images"),[R,N]=M.useState({current:0,total:0,percent:0,status:"processing"}),[I,P]=M.useState(null),[ue,Ue]=M.useState(!1),[xt,et]=M.useState(!1),[_l,be]=M.useState(!1),[Dl,Tn]=M.useState(!1),[_e,St]=M.useState(!1),[At,Rt]=M.useState(!1),ll=M.useRef(null),hl=y==="public/images"||y.startsWith("public/images/");M.useCallback(()=>{V.current?.click()},[]);const kl=M.useCallback(async()=>{te(!0),g("Scanning Files"),se(!0),N({current:0,total:0,percent:0,status:"processing",message:"Scanning for files..."});try{const Z=(await fetch("/api/studio/scan",{method:"POST"})).body?.getReader();if(!Z)throw new Error("No reader");const ee=new TextDecoder;let ge="";for(;;){const{done:me,value:Ce}=await Z.read();if(me)break;ge+=ee.decode(Ce,{stream:!0});const qe=ge.split(`
|
|
57
|
+
|
|
58
|
+
`);ge=qe.pop()||"";for(const ye of qe){if(!ye.startsWith("data: "))continue;const $=JSON.parse(ye.slice(6));if($.type==="start")N({current:0,total:$.total,percent:0,status:"processing",message:`Scanning ${$.total} files...`});else if($.type==="progress")N({current:$.current,total:$.total,percent:$.percent,status:"processing",currentFile:$.currentFile});else if($.type==="cleanup")N(ke=>({...ke,message:$.message}));else if($.type==="complete"){let ke=$.renamed>0?`${$.renamed} file(s) renamed due to conflicts. `:"";$.orphanedFiles&&$.orphanedFiles.length>0&&(ke+=`Found ${$.orphanedFiles.length} orphaned thumbnail(s) in images folder.`),N({current:$.total||0,total:$.total||0,percent:100,status:"complete",processed:$.added,alreadyProcessed:$.existingCount,errors:$.errors,orphanedFiles:$.orphanedFiles,pendingUpdates:$.pendingUpdates,orphanedEntries:$.orphanedEntries,message:ke||void 0,isScan:!0}),p()}else $.type==="error"&&N({current:0,total:0,percent:0,status:"error",message:$.message||"Scan failed"})}}}catch(he){console.error("Scan error:",he),N({current:0,total:0,percent:0,status:"error",message:"Scan failed"})}finally{te(!1)}},[p]);M.useEffect(()=>{const he=Z=>{ll.current&&!ll.current.contains(Z.target)&&Rt(!1)};return document.addEventListener("mousedown",he),()=>document.removeEventListener("mousedown",he)},[]),M.useEffect(()=>{L&&!ce&&(k(),kl())},[L,ce,k,kl]);const pl=M.useCallback(async he=>{const Z=he.target.files;if(!Z||Z.length===0)return;const ee=Array.from(Z);ee.length>1?(N({current:0,total:ee.length,percent:0,status:"processing",message:"Uploading files..."}),se(!0)):W(!0);let ge=0,me=0;try{for(let Ce=0;Ce<ee.length;Ce++){const qe=ee[Ce];ee.length>1&&N({current:Ce+1,total:ee.length,percent:Math.round((Ce+1)/ee.length*100),status:"processing",currentFile:qe.name});const ye=new FormData;ye.append("file",qe),ye.append("path",y);try{const $=await fetch("/api/studio/upload",{method:"POST",body:ye});if($.ok)ge++;else{const ke=await $.json();me++,ee.length===1&&($.status>=500?(console.error("Upload error:",ke),P({title:"Upload Failed",message:`Failed to upload ${qe.name}: ${ke.error||"Unknown error"}`})):P({title:"Cannot Upload Here",message:ke.error||"Upload not allowed in this location."}))}}catch{me++}}ee.length>1&&N({current:ee.length,total:ee.length,percent:100,status:"complete",processed:ge,errors:me}),p()}catch(Ce){console.error("Upload error:",Ce),ee.length>1?N({current:0,total:0,percent:0,status:"error",message:"Upload failed."}):P({title:"Upload Failed",message:"Upload failed. Check console for details."})}finally{W(!1),V.current&&(V.current.value="")}},[y,p]),$n=M.useCallback(async()=>{if(o.size>0){const Z=Array.from(o),ee=Z.filter(me=>(me.split("/").pop()||"").includes(".")&&!me.endsWith("/")),ge=Z.filter(me=>!(me.split("/").pop()||"").includes(".")||me.endsWith("/"));if(ge.length>0)try{const Ce=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ge.join(","))}`)).json();if(Ce.images)for(const qe of Ce.images){const ye=`public/${qe}`;ee.includes(ye)||ee.push(ye)}}catch(me){console.error("Failed to get folder files:",me)}if(ee.length===0){P({title:"No Files Found",message:"No files found in the selected items."});return}G(ee)}else try{const ee=await(await fetch("/api/studio/count-images")).json();if(!ee.images||ee.images.length===0){P({title:"No Images Found",message:"No images found in the public folder to process."});return}const ge=ee.images.map(me=>`public/${me}`);G(ge)}catch(Z){console.error("Failed to get images:",Z),P({title:"Error",message:"Failed to get images."})}},[o,G]),An=M.useCallback(()=>{ae.current&&ae.current.abort()},[]),Ht=M.useCallback(async()=>{const he=R.orphanedFiles;if(!(!he||he.length===0))try{const Z=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:he})}),ee=await Z.json();Z.ok?(N(ge=>({...ge,orphanedFiles:void 0,orphansRemoved:ee.deleted,message:`Deleted ${ee.deleted} orphaned thumbnail${ee.deleted!==1?"s":""}.`})),p()):P({title:"Delete Failed",message:ee.error||"Failed to delete orphaned files."})}catch(Z){console.error("Delete orphans error:",Z),P({title:"Delete Failed",message:"Failed to delete orphaned files. Check console for details."})}},[R.orphanedFiles,p]),pr=M.useCallback(()=>{o.size!==0&&_(!0)},[o]),Gi=M.useCallback(async()=>{_(!1);try{const he=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Array.from(o)})});if(he.ok)u(),p();else{const Z=await he.json();P({title:"Delete Failed",message:Z.error||"Unknown error"})}}catch(he){console.error("Delete error:",he),P({title:"Delete Failed",message:"Delete failed. Check console for details."})}},[o,u,p]),Vi=M.useCallback(async()=>{if(o.size===0)return;const he=Array.from(o),Z=he.filter(qe=>(qe.split("/").pop()||"").includes(".")&&!qe.endsWith("/")),ee=he.filter(qe=>!(qe.split("/").pop()||"").includes(".")||qe.endsWith("/"));if(ee.length>0)try{const ye=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ee.join(","))}`)).json();if(ye.images)for(const $ of ye.images){const ke=`public/${$}`;Z.includes(ke)||Z.push(ke)}}catch(qe){console.error("Failed to get folder files:",qe)}if(Z.length===0){P({title:"No Files Found",message:"No files found in the selected items."});return}let ge=!1,me=!1,Ce=0;for(const qe of Z){const ye=x.find($=>$.path===qe);ye&&(ye.isRemote?ge=!0:ye.cdnPushed?Ce++:me=!0)}if(Ce===Z.length){P({title:"Already Pushed",message:`All ${Z.length} file${Z.length!==1?"s are":" is"} already on the CDN.`});return}Le(Z.length),Ne(ge),Fe(me),j(!0)},[o,x]),Wn=M.useCallback(async()=>{j(!1);const he=Array.from(o),Z=he.filter(ye=>(ye.split("/").pop()||"").includes(".")&&!ye.endsWith("/")),ee=he.filter(ye=>!(ye.split("/").pop()||"").includes(".")||ye.endsWith("/"));if(ee.length>0)try{const $=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ee.join(","))}`)).json();if($.images)for(const ke of $.images){const fe=`public/${ke}`;Z.includes(fe)||Z.push(fe)}}catch(ye){console.error("Failed to get folder files:",ye)}const ge=Z.map(ye=>"/"+ye.replace(/^public\//,""));g("Pushing to CDN"),N({current:0,total:ge.length,percent:0,status:"processing",message:"Pushing to CDN..."}),se(!0);let me=0,Ce=0;const qe=[];try{for(let $=0;$<ge.length;$++){const ke=ge[$];N({current:$+1,total:ge.length,percent:Math.round(($+1)/ge.length*100),status:"processing",currentFile:ke.replace(/^\//,"")});let fe=!1,pt;for(let Pn=0;Pn<3&&!fe;Pn++)try{const Ga=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[ke]})}),ml=await Ga.json();if(Ga.ok)if(ml.pushed?.length>0)me++,fe=!0;else if(ml.errors?.length>0)for(const kn of ml.errors)pt=kn;else fe=!0;else{if(ml.error?.includes("R2 not configured")||ml.error?.includes("CLOUDFLARE_R2")){se(!1),Tn(!0);return}pt=ml.error||`Failed: ${ke}`}}catch{pt=`Network error: ${ke}`,Pn<2&&await new Promise(ml=>setTimeout(ml,500*(Pn+1)))}!fe&&pt&&(Ce++,qe.push(pt))}let ye;if(me===0&&Ce===0)ye=`No new files pushed. All ${ge.length} file${ge.length!==1?"s were":" was"} already on the CDN.`;else if(me<ge.length&&Ce===0){const $=ge.length-me;ye=`${me} file${me!==1?"s":""} pushed. ${$} already on CDN.`}N({current:ge.length,total:ge.length,percent:100,status:"complete",processed:me,errors:Ce,errorMessages:qe.length>0?qe:void 0,message:ye}),u(),p()}catch(ye){console.error("Push error:",ye),N({current:0,total:0,percent:0,status:"error",message:"Failed to push to CDN."})}},[o,u,p]),[Xi,Qi]=M.useState([]),[Ol,mr]=M.useState(0),En=M.useCallback(async()=>{if(o.size===0)return;const he=Array.from(o),Z=he.filter(me=>(me.split("/").pop()||"").includes(".")&&!me.endsWith("/")),ee=he.filter(me=>!(me.split("/").pop()||"").includes(".")||me.endsWith("/"));if(ee.length>0)try{const Ce=await(await fetch(`/api/studio/folder-images?folders=${encodeURIComponent(ee.join(","))}`)).json();if(Ce.images)for(const qe of Ce.images){const ye=`public/${qe}`;Z.includes(ye)||Z.push(ye)}}catch(me){console.error("Failed to get folder files:",me)}if(Z.length===0){P({title:"No Files Found",message:"No files found in the selected items."});return}const ge=Z.filter(me=>{const Ce=x.find(qe=>qe.path===me);return Ce&&Ce.cdnPushed&&!Ce.isRemote});if(ge.length===0){P({title:"No CDN Files",message:`None of the ${Z.length} selected file${Z.length!==1?"s are":" is"} on the CDN.`});return}Qi(ge),mr(Z.length),Y(ge.length),Me(!0)},[o,x]),Nt=M.useCallback(async()=>{Me(!1);const he=Xi.map(Z=>"/"+Z.replace(/^public\//,""));g("Downloading from CDN"),se(!0),N({current:0,total:he.length,percent:0,status:"processing"});try{const Z=await fetch("/api/studio/download-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:he})});if(!Z.ok||!Z.body)throw new Error("Download request failed");const ee=Z.body.getReader(),ge=new TextDecoder;let me="",Ce=0;for(;;){const{done:qe,value:ye}=await ee.read();if(qe)break;me+=ge.decode(ye,{stream:!0});const $=me.split(`
|
|
59
|
+
`);me=$.pop()||"";for(const ke of $)if(ke.startsWith("data: "))try{const fe=JSON.parse(ke.slice(6));if(fe.type==="progress")Ce=fe.current,N({current:fe.current,total:fe.total,percent:Math.round(fe.current/fe.total*100),status:"processing",message:fe.message});else if(fe.type==="complete"){Ce=fe.downloaded||fe.total||he.length;let pt=fe.message;Ol>Ce&&(pt=`${Ce} file${Ce!==1?"s":""} downloaded out of ${Ol} selected.`),N({current:Ce,total:Ce,percent:100,status:"complete",message:pt})}else fe.type==="error"&&N({current:0,total:0,percent:0,status:"error",message:fe.message})}catch{}}u(),p()}catch(Z){console.error("Download error:",Z),N({current:0,total:0,percent:0,status:"error",message:"Failed to download from CDN."})}},[Xi,Ol,u,p]),bl=M.useCallback(async()=>{if(o.size===0)return;const Z=Array.from(o).filter(ee=>{const ge=x.find(me=>me.path===ee);return ge&&ge.hasUpdate});if(Z.length===0){P({title:"No Updates",message:"No files with pending updates in selection."});return}g("Pushing Updates"),se(!0),N({current:0,total:Z.length,percent:0,status:"processing"});try{const ge=(await fetch("/api/studio/push-updates-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Z})})).body?.getReader();if(!ge)throw new Error("No response body");const me=new TextDecoder;let Ce="";for(;;){const{done:qe,value:ye}=await ge.read();if(qe)break;Ce+=me.decode(ye,{stream:!0});const $=Ce.split(`
|
|
60
|
+
`);Ce=$.pop()||"";for(const ke of $)if(ke.startsWith("data: "))try{const fe=JSON.parse(ke.slice(6));fe.type==="progress"?N({current:fe.current,total:fe.total,percent:fe.percent,status:"processing",currentFile:fe.currentFile}):fe.type==="cleanup"?N(pt=>({...pt,message:fe.message})):fe.type==="complete"?N({current:fe.total||Z.length,total:fe.total||Z.length,percent:100,status:"complete",message:fe.message}):fe.type==="error"&&N({current:0,total:0,percent:0,status:"error",message:fe.message})}catch{}}u(),p()}catch(ee){console.error("Push updates error:",ee),N({current:0,total:0,percent:0,status:"error",message:"Failed to push updates."})}},[o,x,u,p]),Bt=M.useCallback(async()=>{if(o.size===0)return;const Z=Array.from(o).filter(ee=>{const ge=x.find(me=>me.path===ee);return ge&&ge.hasUpdate});if(Z.length!==0)try{const ee=await fetch("/api/studio/cancel-updates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Z})});if(ee.ok)u(),p();else{const ge=await ee.json();P({title:"Cancel Failed",message:ge.error||"Unknown error"})}}catch(ee){console.error("Cancel updates error:",ee),P({title:"Cancel Failed",message:"Failed to cancel updates. Check console for details."})}},[o,x,u,p]),gr=M.useCallback(async he=>{Ue(!1);try{const Z=await fetch("/api/studio/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parentPath:y,name:he})});if(Z.ok)p();else{const ee=await Z.json();P({title:"Create Folder Failed",message:ee.error||"Unknown error"})}}catch(Z){console.error("Create folder error:",Z),P({title:"Create Folder Failed",message:"Failed to create folder. Check console for details."})}},[y,p]),yr=M.useCallback(()=>{o.size!==0&&be(!0)},[o]),vr=M.useCallback(async he=>{const Z=Array.from(o);g("Moving Files"),se(!0),N({current:0,total:Z.length,percent:0,status:"processing"});try{const ee=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Z,destination:he})});if(!ee.body)throw new Error("No response body");const ge=ee.body.getReader(),me=new TextDecoder;let Ce="";for(;;){const{done:qe,value:ye}=await ge.read();if(qe)break;Ce+=me.decode(ye,{stream:!0});const $=Ce.split(`
|
|
61
|
+
|
|
62
|
+
`);Ce=$.pop()||"";for(const ke of $)if(ke.startsWith("data: "))try{const fe=JSON.parse(ke.slice(6));fe.type==="start"?N(pt=>({...pt,total:fe.total})):fe.type==="progress"?N({current:fe.current,total:fe.total,percent:fe.percent,currentFile:fe.currentFile,status:"processing"}):fe.type==="complete"?(N(pt=>({...pt,status:"complete",processed:fe.moved,errors:fe.errors,errorMessages:fe.errorMessages,isMove:!0})),u(),p()):fe.type==="error"&&N(pt=>({...pt,status:"error",errorMessage:fe.message}))}catch{}}}catch(ee){console.error("Move error:",ee),N(ge=>({...ge,status:"error",errorMessage:"Failed to move items. Check console for details."}))}},[o,u,p]),{searchQuery:_n,setSearchQuery:xl}=ja(),In=M.useCallback(he=>{xl(he.target.value)},[xl]),Rl=M.useCallback(he=>{he.key==="Escape"&&(he.stopPropagation(),xl(""),he.target.blur())},[xl]),Kt=o.size>0;Kt&&Array.from(o).some(he=>{const Z=x.find(ee=>ee.path===he);return Z&&Z.cdnPushed&&!Z.isRemote}),Kt&&Array.from(o).every(he=>{const Z=x.find(ee=>ee.path===he);return Z&&Z.type==="file"&&Z.cdnPushed&&!Z.isRemote});const Dn=Kt&&Array.from(o).some(he=>{const Z=x.find(ee=>ee.path===he);return Z&&Z.hasUpdate}),Ya=Array.from(o),Ll=Ya.length===1&&!Ya[0].includes("."),Sl=Ll?Ya[0]:null,en=Sl&&Sl.split("/").pop()||"",br=M.useCallback(async he=>{if(Sl){et(!1);try{(await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:Sl,newName:he})})).ok&&(u(),p())}catch(Z){console.error("Failed to rename folder:",Z)}}},[Sl,u,p]);return D?null:S(Tt,{children:[le&&c(Li,{title:"Delete Items",message:`Are you sure you want to delete ${o.size} item(s)? This action cannot be undone.`,confirmLabel:"Delete",variant:"danger",onConfirm:Gi,onCancel:()=>_(!1)}),Q&&c(Li,{title:"Push to CDN",message:`Push ${Se} image${Se!==1?"s":""} to Cloudflare R2?${De?" Remote images will be downloaded first.":""}${He?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:Wn,onCancel:()=>j(!1)}),We&&c(Li,{title:"Download from CDN",message:Ol>A?`Download ${A} of ${Ol} selected file${Ol!==1?"s":""} from Cloudflare R2? (${Ol-A} not on CDN)`:`Download ${A} image${A!==1?"s":""} from Cloudflare R2 to local storage? Images will be removed from the CDN.`,confirmLabel:"Download",onConfirm:Nt,onCancel:()=>Me(!1)}),J&&c(Fs,{title:Ee,progress:R,onStop:An,onDeleteOrphans:Ht,onClose:()=>{se(!1),N({current:0,total:0,percent:0,status:"processing"})}}),ue&&c(Gs,{title:"New Folder",message:"Enter a name for the new folder:",placeholder:"Folder name",confirmLabel:"Create",onConfirm:gr,onCancel:()=>Ue(!1)}),_l&&c(wh,{selectedItems:o,currentPath:y,onMove:he=>{be(!1),vr(he)},onCancel:()=>be(!1)}),xt&&Sl&&c(Gs,{title:"Rename Folder",message:"Enter a new name for the folder:",placeholder:en,defaultValue:en,confirmLabel:"Rename",onConfirm:br,onCancel:()=>et(!1)}),I&&c(zh,{title:I.title,message:I.message,onClose:()=>P(null)}),c(Mh,{isOpen:Dl,onClose:()=>Tn(!1)}),q&&c(P1,{currentPath:y,onClose:()=>X(!1),onUploadComplete:()=>{X(!1),p()}}),S("div",{css:we.toolbar,children:[c("input",{ref:V,type:"file",multiple:!0,accept:"image/*,video/*,audio/*,.pdf",onChange:pl,style:{display:"none"}}),S("div",{css:we.left,children:[S("button",{css:[we.btn,we.btnPrimary,"",""],onClick:()=>X(!0),disabled:ve||hl,children:[c(lg,{}),"Add New"]}),S("button",{css:we.btn,onClick:()=>Ll?et(!0):Ue(!0),disabled:hl&&!Ll,title:hl&&!Ll?"Cannot create folders in protected images folder":void 0,children:[Ll?c(og,{}):c(ig,{}),Ll?"Rename Folder":"New Folder"]}),c("div",{css:we.divider}),S("button",{css:we.btn,onClick:$n,disabled:B.showProgress||hl,title:hl?"Cannot process images folder":void 0,children:[c(hg,{}),"Process Images"]}),S("button",{css:[we.btn,we.btnDanger,"",""],onClick:pr,disabled:!Kt,children:[c(ag,{}),"Delete"]}),S("button",{css:we.btn,onClick:yr,disabled:!Kt,children:[c(rg,{}),"Move"]}),S("div",{css:we.cloudDropdownWrapper,ref:ll,children:[S("button",{css:[we.btn,we.btnCloud,"",""],onClick:()=>Rt(!At),disabled:!Kt,children:[c(rh,{}),"Cloud",c("svg",{css:we.dropdownArrow,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),At&&Kt&&S("div",{css:we.cloudDropdown,children:[Dn&&S(Tt,{children:[S("button",{css:we.cloudDropdownItem,onClick:()=>{Rt(!1),bl()},children:[c(cg,{}),"Push Update"]}),S("button",{css:[we.cloudDropdownItem,we.cloudDropdownItemDanger,"",""],onClick:()=>{Rt(!1),Bt()},children:[c(sg,{}),"Cancel Update"]}),c("div",{css:we.cloudDropdownDivider})]}),S("button",{css:we.cloudDropdownItem,onClick:()=>{Rt(!1),Vi()},children:[c(rh,{}),"Push CDN"]}),S("button",{css:we.cloudDropdownItem,onClick:()=>{Rt(!1),En()},children:[c(ug,{}),"Download"]})]})]}),S("div",{css:we.searchWrapper,children:[c("input",{css:we.searchInput,type:"text",placeholder:"Search images...",value:_n,onChange:In,onKeyDown:Rl}),_n&&c("button",{css:we.searchClearBtn,onClick:()=>xl(""),title:"Clear search",children:c("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),S("div",{css:we.right,children:[Kt&&S("span",{css:we.selectionCount,children:[o.size," selected",c("button",{css:we.clearBtn,onClick:u,children:"Clear"})]}),S("button",{css:we.btn,onClick:kl,disabled:ce,children:[c(ng,{spinning:ce}),"Scan"]}),S("div",{css:we.viewToggle,children:[c("button",{css:[we.viewBtn,s==="grid"&&we.viewBtnActive,"",""],onClick:()=>h("grid"),"aria-label":"Grid view",children:c(fg,{})}),c("button",{css:[we.viewBtn,s==="list"&&we.viewBtnActive,"",""],onClick:()=>h("list"),"aria-label":"List view",children:c(dg,{})})]})]})]})]})}function lg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})})}function ng({spinning:o}){return c("svg",{css:[we.icon,o&&we.iconSpin,"",""],fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}function ag(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})}function ig(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})})}function og(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}function rg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}function rh(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}function cg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}function sg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}function ug(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})})}function fg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})})}function dg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}function hg(){return c("svg",{css:we.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}class pg{async get(s){const h=await fetch(s,{cache:"no-store",headers:{"Cache-Control":"no-cache"}});if(!h.ok){const u=await h.json().catch(()=>({}));throw new Error(u.error||`Request failed: ${h.status}`)}return h.json()}async post(s,h){const u=await fetch(s,{method:"POST",headers:h?{"Content-Type":"application/json"}:void 0,body:h?JSON.stringify(h):void 0});if(!u.ok){const y=await u.json().catch(()=>({}));throw new Error(y.error||`Request failed: ${u.status}`)}return u.json()}async list(s="public"){return this.get(`/api/studio/list?path=${encodeURIComponent(s)}`)}async search(s){return this.get(`/api/studio/search?q=${encodeURIComponent(s)}`)}async listFolders(){return this.get("/api/studio/list-folders")}async countImages(){return this.get("/api/studio/count-images")}async folderImages(s){return this.get(`/api/studio/folder-images?folders=${encodeURIComponent(s.join(","))}`)}async upload(s,h="public"){const u=new FormData;u.append("file",s),u.append("path",h);const y=await fetch("/api/studio/upload",{method:"POST",body:u});if(!y.ok){const p=await y.json().catch(()=>({}));throw new Error(p.error||`Upload failed: ${y.status}`)}return y.json()}async delete(s){return this.post("/api/studio/delete",{paths:s})}async createFolder(s,h){return this.post("/api/studio/create-folder",{parentPath:s,name:h})}async rename(s,h){return this.post("/api/studio/rename",{oldPath:s,newName:h})}async move(s,h){return this.post("/api/studio/move",{paths:s,destination:h})}async push(s){return this.post("/api/studio/sync",{imageKeys:s})}async reprocess(s){return this.post("/api/studio/reprocess",{imageKeys:s})}processAllStream(){return new EventSource("/api/studio/process-all")}}const Bs=new pg;function Th(){const{currentPath:o,setCurrentPath:s,navigateUp:h,selectedItems:u,toggleSelection:y,selectRange:p,lastSelectedPath:D,selectAll:L,clearSelection:k,refreshKey:x,setFocusedItem:G,triggerRefresh:B,triggerScan:V,searchQuery:ae,showError:q,setFileItems:X}=ja(),[ve,W]=M.useState([]),[ce,te]=M.useState(!0),[le,_]=M.useState(!1),Q=M.useRef(!0),j=M.useRef(o);M.useEffect(()=>{async function Y(){const J=j.current!==o;(Q.current||J)&&te(!0),j.current=o;try{const se=ae&&ae.length>=2?await Bs.search(ae):await Bs.list(o),Ee=se.items||[];W(Ee),X(Ee),_(se.isEmpty===!0)}catch(se){const Ee=se instanceof Error?se.message:"Failed to load items";q("Load Error",Ee),W([]),X([]),_(!1)}te(!1),Q.current=!1}Y()},[o,x,ae,q,X]);const Se=o==="public",Le=ae&&ae.length>=2,De=[...ve].sort((Y,J)=>Y.type==="folder"&&J.type!=="folder"?-1:Y.type!=="folder"&&J.type==="folder"?1:Y.name.localeCompare(J.name)),Ne=De.length>0&&De.every(Y=>u.has(Y.path)),He=De.some(Y=>u.has(Y.path)),Fe=M.useCallback((Y,J)=>{J.shiftKey&&D?p(D,Y.path,De):y(Y.path)},[D,p,De,y]),We=M.useCallback(Y=>{Y.type==="folder"?s(Y.path):G(Y)},[s,G]),Me=M.useCallback(async Y=>{try{const J="/"+Y.path.replace(/^public\//,"");await Bs.reprocess([J]),B()}catch(J){const se=J instanceof Error?J.message:"Failed to generate thumbnail";q("Processing Error",se)}},[B,q]),A=M.useCallback(()=>{Ne?k():L(De)},[Ne,k,L,De]);return{items:ve,loading:ce,sortedItems:De,metaEmpty:le,isAtRoot:Se,isSearching:Le,allItemsSelected:Ne,someItemsSelected:He,currentPath:o,selectedItems:u,navigateUp:h,handleItemClick:Fe,handleOpen:We,handleGenerateThumbnail:Me,handleSelectAll:A,triggerScan:V}}const mg=Pl`
|
|
63
|
+
to { transform: rotate(360deg); }
|
|
64
|
+
`,oe={loading:{name:"1d2ui9i",styles:"display:flex;align-items:center;justify-content:center;flex:1;min-height:300px"},spinner:b("width:32px;height:32px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:",mg," 0.8s linear infinite;",""),empty:b("display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:300px;color:",f.textSecondary,";",""),emptyIcon:{name:"1o3cbsn",styles:"width:48px;height:48px;margin-bottom:16px;opacity:0.5"},emptyText:b("font-size:",F.base,";margin:0 0 4px 0;&:last-child{color:",f.textMuted,";font-size:",F.sm,";}",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",F.base,";font-weight:500;background:",f.primary,";color:white;border:none;border-radius:8px;cursor:pointer;transition:background 0.15s ease;&:hover:not(:disabled){background:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),grid:{name:"el23hk",styles:"display:grid;grid-template-columns:1fr;gap:12px;@media (min-width: 480px){grid-template-columns:repeat(2, 1fr);}@media (min-width: 768px){grid-template-columns:repeat(3, 1fr);}@media (min-width: 1024px){grid-template-columns:repeat(4, 1fr);}@media (min-width: 1280px){grid-template-columns:repeat(5, 1fr);}"},item:b("position:relative;border-radius:8px;border:1px solid ",f.border,";overflow:hidden;cursor:pointer;transition:all 0.15s ease;background-color:",f.surface,";user-select:none;box-shadow:0 1px 2px rgba(0, 0, 0, 0.04);&:hover{border-color:#d0d5dd;box-shadow:0 2px 4px rgba(0, 0, 0, 0.06);}",""),itemSelected:b("border-color:",f.primary,";box-shadow:0 0 0 1px ",f.primary,";&:hover{border-color:",f.primary,";box-shadow:0 0 0 1px ",f.primary,";}",""),parentItem:b("cursor:pointer;&:hover{border-color:",f.primary,";}",""),checkboxWrapper:{name:"v3lnpt",styles:"position:absolute;top:0;left:0;z-index:10;padding:8px;cursor:pointer"},checkbox:b("width:18px;height:18px;accent-color:",f.primary,";cursor:pointer;",""),content:b("position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:16px;background:",f.background,";",""),folderIcon:{name:"k1w47f",styles:"width:56px;height:56px;color:#f9935e"},imagesFolderIcon:b("width:56px;height:56px;color:",f.imagesFolder,";",""),imagesFolderWrapper:{name:"bjn8wh",styles:"position:relative"},lockIcon:b("position:absolute;bottom:4px;right:4px;width:16px;height:16px;color:",f.imagesFolder,";background:white;border-radius:50%;padding:2px;",""),parentIcon:b("width:56px;height:56px;color:",f.textMuted,";",""),fileIcon:b("width:40px;height:40px;color:",f.textMuted,";",""),image:{name:"rm1wug",styles:"max-width:100%;max-height:100%;object-fit:contain;border-radius:4px"},label:b("padding:10px 12px;background-color:",f.surface,";border-top:1px solid ",f.borderLight,";",""),labelRow:{name:"1gkgtms",styles:"display:flex;flex-direction:column;gap:2px"},labelText:{name:"fxp7t8",styles:"flex:1;min-width:0"},copyBtn:b("position:absolute;top:4px;right:4px;z-index:10;height:28px;width:28px;color:",f.textMuted,";background:transparent;border:none;padding:0;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{color:",f.text,";}",""),copyIcon:{name:"1eg0rk6",styles:"width:18px;height:18px"},folderStats:{name:"905wvx",styles:"display:flex;align-items:center;gap:8px;margin:2px 0 0 0"},folderStat:b("display:flex;align-items:center;gap:3px;font-size:",F.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatUpdate:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatIconCloud:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},folderStatIconLocal:b("width:14px;height:14px;color:",f.textSecondary,";",""),folderStatIconRemote:{name:"efr29r",styles:"width:14px;height:14px;color:#ef4444"},folderStatIconUpdate:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateLabel:b("display:flex;align-items:center;gap:4px;color:#f59e0b;font-size:",F.xs,";margin:0;",""),updateCloudIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateSyncIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},storedLabel:{name:"1jcbxef",styles:"display:flex;align-items:center;margin:2px 0 0 0"},storedIconCloud:{name:"1e09qmx",styles:"width:16px;height:16px;color:#f59e0b"},storedIconRemote:{name:"1mrh6ju",styles:"width:16px;height:16px;color:#ef4444"},tooltip:{name:"qoyfdh",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;z-index:100;&::before{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},openBtn:b("position:absolute;bottom:8px;right:8px;z-index:10;height:28px;font-size:",F.sm,";font-weight:500;color:",f.primary,";background:",f.surface,";border:1px solid ",f.border,";padding:0 8px;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:flex;align-items:center;box-shadow:0 1px 2px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.primaryLight,";border-color:",f.primary,";}",""),name:b("font-size:",F.sm,";font-weight:500;color:",f.text,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;letter-spacing:-0.01em;direction:rtl;text-align:left;",""),size:b("font-size:",F.xs,";color:",f.textMuted,";margin:2px 0 0 0;",""),selectAllRow:b("display:flex;align-items:center;margin-bottom:16px;padding:12px 16px;background:",f.surface,";border-radius:8px;border:1px solid ",f.border,";",""),selectAllLabel:b("display:flex;align-items:center;gap:10px;font-size:",F.base,";font-weight:500;color:",f.textSecondary,";cursor:pointer;&:hover{color:",f.text,";}",""),selectAllCheckbox:b("width:16px;height:16px;accent-color:",f.primary,";","")};function gg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:y,allItemsSelected:p,someItemsSelected:D,selectedItems:L,navigateUp:k,handleItemClick:x,handleOpen:G,handleGenerateThumbnail:B,handleSelectAll:V,triggerScan:ae}=Th();return o?c("div",{css:oe.loading,children:c("div",{css:oe.spinner})}):h&&u?S("div",{css:oe.empty,children:[c("svg",{css:oe.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),c("p",{css:oe.emptyText,children:"No files tracked yet"}),c("p",{css:oe.emptyText,children:"Click Scan to discover files in your public folder"}),c("button",{css:oe.scanButton,onClick:ae,children:"Scan for Files"})]}):s.length===0&&u?S("div",{css:oe.empty,children:[c("svg",{css:oe.emptyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),c("p",{css:oe.emptyText,children:"No files in this folder"}),c("p",{css:oe.emptyText,children:"Upload images or click Scan in the toolbar"})]}):S("div",{children:[s.length>0&&c("div",{css:oe.selectAllRow,children:S("label",{css:oe.selectAllLabel,children:[c("input",{type:"checkbox",css:oe.selectAllCheckbox,checked:p,ref:q=>{q&&(q.indeterminate=D&&!p)},onChange:V}),"Select all (",s.length,")"]})}),S("div",{css:oe.grid,children:[!u&&!y&&S("div",{css:[oe.item,oe.parentItem,"",""],onClick:k,children:[c("div",{css:oe.content,children:c("svg",{css:oe.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})})}),S("div",{css:oe.label,children:[c("p",{css:oe.name,children:".."}),c("p",{css:oe.size,children:"Parent folder"})]})]}),s.map(q=>c(yg,{item:q,isSelected:L.has(q.path),onClick:X=>x(q,X),onOpen:()=>G(q),onGenerateThumbnail:()=>B(q)},q.path))]})]})}function yg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:y}){const[p,D]=M.useState(!1),L=o.type==="folder",k=!L&&o.thumbnail!==void 0,x=o.isProtected||L&&o.name==="images"&&o.path==="public/images",G=V=>{V.stopPropagation();const ae="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(ae),D(!0),setTimeout(()=>D(!1),1500)},B=V=>{if(x){V.stopPropagation(),u();return}h(V)};return S("div",{css:[oe.item,s&&!x&&oe.itemSelected,"",""],onClick:B,children:[!x&&c("div",{css:oe.checkboxWrapper,onClick:V=>V.stopPropagation(),children:c("input",{type:"checkbox",css:oe.checkbox,checked:s,onChange:()=>h({})})}),S("div",{css:oe.content,children:[S("button",{css:oe.copyBtn,onClick:G,title:"Copy file path",children:[p&&c("span",{css:oe.tooltip,children:"Copied!"}),c("svg",{css:oe.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),c("button",{css:oe.openBtn,onClick:V=>{V.stopPropagation(),u()},children:"Open"}),L?x?S("div",{css:oe.imagesFolderWrapper,children:[c("svg",{css:oe.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),c("svg",{css:oe.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})]}):c("svg",{css:oe.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}):k&&o.thumbnail?c("img",{css:oe.image,src:o.thumbnail,alt:o.name,loading:"lazy"}):c("svg",{css:oe.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})]}),c("div",{css:oe.label,children:c("div",{css:oe.labelRow,children:S("div",{css:oe.labelText,children:[c("p",{css:oe.name,title:o.name,children:o.name}),L?S("div",{css:oe.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&S("span",{css:[oe.folderStat,oe.folderStatLocal,"",""],title:`${o.localCount} local`,children:[c("svg",{css:oe.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),o.localCount]}),o.cloudCount!==void 0&&o.cloudCount>0&&S("span",{css:[oe.folderStat,oe.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[c("svg",{css:oe.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),o.cloudCount]}),o.remoteCount!==void 0&&o.remoteCount>0&&S("span",{css:[oe.folderStat,oe.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[c("svg",{css:oe.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),o.remoteCount]}),o.updateCount!==void 0&&o.updateCount>0&&S("span",{css:[oe.folderStat,oe.folderStatUpdate,"",""],title:`${o.updateCount} pending update${o.updateCount!==1?"s":""}`,children:[c("svg",{css:oe.folderStatIconUpdate,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),o.updateCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount!==void 0&&S("span",{css:oe.size,children:[o.fileCount," files"]})]}):o.hasUpdate?S("p",{css:oe.updateLabel,children:[c("svg",{css:oe.updateCloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),c("svg",{css:oe.updateSyncIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),c("span",{children:"update"})]}):o.cdnPushed?c("p",{css:oe.storedLabel,children:c("svg",{css:o.isRemote?oe.storedIconRemote:oe.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}):c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}):o.size!==void 0&&c("p",{css:oe.size,children:vg(o.size)})]})})})]})}function vg(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const bg=Pl`
|
|
65
|
+
to { transform: rotate(360deg); }
|
|
66
|
+
`,K={loading:{name:"1d2ui9i",styles:"display:flex;align-items:center;justify-content:center;flex:1;min-height:300px"},spinner:b("width:32px;height:32px;border-radius:50%;border:3px solid ",f.border,";border-top-color:",f.primary,";animation:",bg," 0.8s linear infinite;",""),empty:b("display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:300px;color:",f.textSecondary,";",""),emptyHint:b("font-size:",F.sm,";color:",f.textMuted,";margin-top:4px;",""),scanButton:b("margin-top:16px;padding:10px 24px;font-size:",F.base,";font-weight:500;background:",f.primary,";color:white;border:none;border-radius:8px;cursor:pointer;transition:background 0.15s ease;&:hover:not(:disabled){background:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),tableWrapper:b("background:",f.surface,";border-radius:8px;border:1px solid ",f.border,";overflow-x:auto;",""),table:{name:"nufjao",styles:"width:100%;min-width:600px;border-collapse:collapse;white-space:nowrap"},th:b("text-align:left;font-size:11px;color:",f.textMuted,";text-transform:uppercase;letter-spacing:0.05em;padding:12px 16px;font-weight:600;background:",f.background,";border-bottom:1px solid ",f.border,";",""),thCheckbox:{name:"5iz1wr",styles:"width:48px"},thSize:{name:"yct5co",styles:"width:96px"},thDimensions:{name:"gu2s0e",styles:"width:128px"},thCdn:{name:"yct5co",styles:"width:96px"},tbody:b("",""),row:b("cursor:pointer;transition:background-color 0.15s ease;user-select:none;&:hover{background-color:",f.surfaceHover,";}&:not(:last-child) td{border-bottom:1px solid ",f.borderLight,";}",""),rowSelected:b("background-color:",f.primaryLight,";&:hover{background-color:",f.primaryLight,";}",""),parentRow:b("cursor:pointer;border-bottom:1px solid ",f.border,";&:hover{background-color:",f.surfaceHover,";}",""),td:{name:"i563hg",styles:"padding:12px 16px"},checkboxCell:{name:"sahq4q",styles:"padding:12px 16px;cursor:pointer;vertical-align:middle"},checkbox:b("width:18px;height:18px;accent-color:",f.primary,";cursor:pointer;display:block;",""),actionsCell:{name:"1w56d5c",styles:"display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0"},copyBtn:b("position:relative;flex-shrink:0;height:32px;width:32px;font-size:",F.xs,";color:",f.textSecondary,";background:",f.surface,";border:1px solid ",f.border,";padding:0;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:inline-flex;align-items:center;justify-content:center;&:hover{background:",f.surfaceHover,";border-color:",f.borderHover,";color:",f.text,";}",""),copyIcon:{name:"157xhr7",styles:"width:16px;height:16px"},folderStats:{name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"},folderStat:b("display:flex;align-items:center;gap:3px;font-size:",F.xs,";",""),folderStatLocal:b("color:",f.textMuted,";",""),folderStatCloud:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatRemote:{name:"1lukubv",styles:"color:#ef4444"},folderStatUpdate:{name:"1t8qh25",styles:"color:#f59e0b"},folderStatIconCloud:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},folderStatIconLocal:b("width:14px;height:14px;color:",f.textSecondary,";",""),folderStatIconRemote:{name:"efr29r",styles:"width:14px;height:14px;color:#ef4444"},folderStatIconUpdate:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateLabel:b("display:flex;align-items:center;gap:4px;color:#f59e0b;font-size:",F.xs,";",""),updateCloudIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},updateSyncIcon:{name:"1pgx8p4",styles:"width:14px;height:14px;color:#f59e0b"},storedLabel:{name:"s5xdrg",styles:"display:flex;align-items:center"},storedIconCloud:{name:"1e09qmx",styles:"width:16px;height:16px;color:#f59e0b"},storedIconRemote:{name:"1mrh6ju",styles:"width:16px;height:16px;color:#ef4444"},tooltip:{name:"1bu1odp",styles:"position:absolute;top:50%;right:100%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:6px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},nameCell:{name:"9s3nhy",styles:"display:flex;align-items:center;gap:12px;flex:1"},thumbnailWrapper:{name:"xfecxx",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0"},folderIconWrapper:{name:"xfecxx",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0"},folderIcon:{name:"a45yt2",styles:"width:24px;height:24px;color:#f9935e"},imagesFolderWrapper:{name:"iqqile",styles:"width:48px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;align-items:center"},imagesFolderIcon:b("width:24px;height:24px;color:",f.imagesFolder,";",""),lockIcon:b("width:10px;height:10px;color:",f.imagesFolder,";margin-left:-6px;margin-top:8px;",""),parentIcon:b("width:20px;height:20px;color:",f.textMuted,";flex-shrink:0;",""),fileIcon:b("width:20px;height:20px;color:",f.textMuted,";flex-shrink:0;",""),thumbnail:b("max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px;border:1px solid ",f.borderLight,";",""),name:b("font-size:",F.base,";font-weight:500;color:",f.text,";letter-spacing:-0.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px;",""),meta:b("font-size:",F.sm,";color:",f.textSecondary,";",""),cdnBadge:b("display:inline-flex;align-items:center;gap:4px;font-size:",F.xs,";font-weight:500;color:",f.success,";",""),cdnBadgeRemote:b("display:inline-flex;align-items:center;font-size:",F.xs,";font-weight:500;color:#ef4444;",""),cdnIcon:{name:"1suksrg",styles:"width:12px;height:12px"},cdnEmpty:b("font-size:",F.sm,";color:",f.textMuted,";",""),openBtn:b("height:32px;font-size:",F.sm,";font-weight:500;color:",f.primary,";background:",f.surface,";border:1px solid ",f.border,";padding:0 14px;cursor:pointer;border-radius:4px;transition:all 0.15s ease;display:inline-flex;align-items:center;&:hover{background-color:",f.primaryLight,";border-color:",f.primary,";}","")};function xg(){const{loading:o,sortedItems:s,metaEmpty:h,isAtRoot:u,isSearching:y,allItemsSelected:p,someItemsSelected:D,selectedItems:L,navigateUp:k,handleItemClick:x,handleOpen:G,handleGenerateThumbnail:B,handleSelectAll:V,triggerScan:ae}=Th();return o?c("div",{css:K.loading,children:c("div",{css:K.spinner})}):h&&u?S("div",{css:K.empty,children:[c("p",{children:"No files tracked yet"}),c("p",{css:K.emptyHint,children:"Click Scan to discover files in your public folder"}),c("button",{css:K.scanButton,onClick:ae,children:"Scan for Files"})]}):s.length===0&&u?S("div",{css:K.empty,children:[c("p",{children:"No files in this folder"}),c("p",{css:K.emptyHint,children:"Upload images or click Scan in the toolbar"})]}):c("div",{css:K.tableWrapper,children:S("table",{css:K.table,children:[c("thead",{children:S("tr",{children:[c("th",{css:[K.th,K.thCheckbox,"",""],children:s.length>0&&c("input",{type:"checkbox",css:K.checkbox,checked:p,ref:q=>{q&&(q.indeterminate=D&&!p)},onChange:V})}),c("th",{css:K.th,children:"Name"}),c("th",{css:[K.th,K.thSize,"",""],children:"Size"}),c("th",{css:[K.th,K.thDimensions,"",""],children:"Dimensions"}),c("th",{css:[K.th,K.thCdn,"",""],children:"CDN"})]})}),S("tbody",{css:K.tbody,children:[!u&&!y&&S("tr",{css:K.parentRow,onClick:k,children:[c("td",{css:K.td}),c("td",{css:K.td,children:S("div",{css:K.nameCell,children:[c("svg",{css:K.parentIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})}),c("span",{css:K.name,children:".."})]})}),c("td",{css:[K.td,K.meta,"",""],children:"--"}),c("td",{css:[K.td,K.meta,"",""],children:"Parent folder"}),c("td",{css:K.td,children:"--"})]}),s.map(q=>c(Sg,{item:q,isSelected:L.has(q.path),onClick:X=>x(q,X),onOpen:()=>G(q),onGenerateThumbnail:()=>B(q)},q.path))]})]})})}function Sg({item:o,isSelected:s,onClick:h,onOpen:u,onGenerateThumbnail:y}){const[p,D]=M.useState(!1),L=o.type==="folder",k=!L&&o.thumbnail!==void 0,x=o.isProtected||L&&o.name==="images"&&o.path==="public/images",G=V=>{V.stopPropagation();const ae="/"+o.path.replace(/^public\//,"");navigator.clipboard.writeText(ae),D(!0),setTimeout(()=>D(!1),1500)},B=V=>{if(x){V.stopPropagation(),u();return}h(V)};return S("tr",{css:[K.row,s&&!x&&K.rowSelected,"",""],onClick:B,children:[c("td",{css:[K.td,K.checkboxCell,"",""],onClick:V=>V.stopPropagation(),children:!x&&c("input",{type:"checkbox",css:K.checkbox,checked:s,onChange:()=>h({})})}),c("td",{css:K.td,children:S("div",{css:K.nameCell,children:[L?x?S("div",{css:K.imagesFolderWrapper,children:[c("svg",{css:K.imagesFolderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})}),c("svg",{css:K.lockIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})]}):c("div",{css:K.folderIconWrapper,children:c("svg",{css:K.folderIcon,fill:"currentColor",viewBox:"0 0 24 24",children:c("path",{d:"M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z"})})}):k&&o.thumbnail?c("div",{css:K.thumbnailWrapper,children:c("img",{css:K.thumbnail,src:o.thumbnail,alt:o.name,loading:"lazy"})}):c("div",{css:K.thumbnailWrapper,children:c("svg",{css:K.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})}),c("span",{css:K.name,title:o.name,children:Cg(o.name)}),S("div",{css:K.actionsCell,children:[S("button",{css:K.copyBtn,onClick:G,title:"Copy file path",children:[p&&c("span",{css:K.tooltip,children:"Copied!"}),c("svg",{css:K.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),c("button",{css:K.openBtn,onClick:V=>{V.stopPropagation(),u()},children:"Open"})]})]})}),c("td",{css:[K.td,K.meta,"",""],children:L?S("div",{css:K.folderStats,children:[o.localCount!==void 0&&o.localCount>0&&S("span",{css:[K.folderStat,K.folderStatLocal,"",""],title:`${o.localCount} local`,children:[c("svg",{css:K.folderStatIconLocal,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),o.localCount]}),o.cloudCount!==void 0&&o.cloudCount>0&&S("span",{css:[K.folderStat,K.folderStatCloud,"",""],title:`${o.cloudCount} in cloud`,children:[c("svg",{css:K.folderStatIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),o.cloudCount]}),o.remoteCount!==void 0&&o.remoteCount>0&&S("span",{css:[K.folderStat,K.folderStatRemote,"",""],title:`${o.remoteCount} remote`,children:[c("svg",{css:K.folderStatIconRemote,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),o.remoteCount]}),o.updateCount!==void 0&&o.updateCount>0&&S("span",{css:[K.folderStat,K.folderStatUpdate,"",""],title:`${o.updateCount} pending update${o.updateCount!==1?"s":""}`,children:[c("svg",{css:K.folderStatIconUpdate,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),o.updateCount]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount!==void 0&&S("span",{children:[o.fileCount," files"]}),!o.localCount&&!o.cloudCount&&!o.remoteCount&&!o.updateCount&&o.fileCount===void 0&&"--"]}):o.hasUpdate?S("span",{css:K.updateLabel,children:[c("svg",{css:K.updateCloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})}),c("svg",{css:K.updateSyncIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"update"]}):o.cdnPushed?c("span",{css:K.storedLabel,children:c("svg",{css:o.isRemote?K.storedIconRemote:K.storedIconCloud,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.isRemote?c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}):c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}):o.size!==void 0?ch(o.size):"--"}),c("td",{css:[K.td,K.meta,"",""],children:L?o.totalSize!==void 0?ch(o.totalSize):"--":o.dimensions?`${o.dimensions.width}x${o.dimensions.height}`:"--"}),c("td",{css:K.td,children:o.cdnPushed?o.isRemote?c("span",{css:K.cdnBadgeRemote,children:"Remote"}):S("span",{css:K.cdnBadge,children:[c("svg",{css:K.cdnIcon,fill:"currentColor",viewBox:"0 0 20 20",children:c("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),"Pushed"]}):c("span",{css:K.cdnEmpty,children:"--"})})]})}function ch(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}function Cg(o,s=32){if(o.length<=s)return o;const h=o.lastIndexOf("."),u=h>0?o.substring(h):"",y=h>0?o.substring(0,h):o,p=s-u.length-3;if(p<6)return o.substring(0,s-3)+"...";const D=Math.ceil(p/2),L=Math.floor(p/2);return y.substring(0,D)+"..."+y.substring(y.length-L)+u}const zg=[".jpg",".jpeg",".png",".gif",".webp",".svg",".ico",".bmp",".tiff",".tif"],wg=[".mp4",".webm",".mov",".avi",".mkv",".m4v"];function Mg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return zg.includes(s)}function Tg(o){const s=o.toLowerCase().substring(o.lastIndexOf("."));return wg.includes(s)}const de={overlay:{name:"1crgpqk",styles:"position:absolute;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;background:transparent"},container:b("display:flex;flex:1;margin:24px;background:",f.surface,";border:1px solid ",f.border,";border-radius:12px;overflow:hidden;box-shadow:0 20px 40px rgba(0, 0, 0, 0.2);",""),main:b("position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:",f.background,";overflow:auto;",""),headerButtons:{name:"8wfhwn",styles:"position:absolute;top:16px;right:16px;display:flex;gap:8px;z-index:10"},copyBtn:b("position:relative;padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),copyIcon:b("width:20px;height:20px;color:",f.textSecondary,";",""),statusIcon:b("display:flex;align-items:center;justify-content:center;padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);",""),cloudIcon:{name:"1byef48",styles:"width:22px;height:22px;color:#f59e0b;transform:translateY(1px)"},globeIcon:{name:"jso3j5",styles:"width:20px;height:20px;color:#ef4444"},tooltip:{name:"1w9prgf",styles:"position:absolute;right:100%;top:50%;transform:translateY(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-right:8px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#1a1f36;}"},mainCloseBtn:b("padding:8px;background:",f.surface,";border:1px solid ",f.border,";border-radius:8px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.08);&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),mainCloseIcon:b("width:20px;height:20px;color:",f.textSecondary,";",""),mediaWrapper:{name:"zr0bjt",styles:"max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center"},image:{name:"4gte4n",styles:"max-width:100%;max-height:calc(100vh - 200px);object-fit:contain;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1)"},video:{name:"1talud7",styles:"max-width:100%;max-height:calc(100vh - 200px);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1)"},filePlaceholder:b("display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;background:",f.surface,";border-radius:12px;border:1px solid ",f.border,";",""),fileIcon:b("width:80px;height:80px;color:",f.textMuted,";margin-bottom:16px;",""),fileName:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;",""),sidebar:b("width:280px;background:",f.surface,";border-left:1px solid ",f.border,";display:flex;flex-direction:column;overflow:hidden;",""),sidebarHeader:b("padding:16px 20px;border-bottom:1px solid ",f.border,";",""),sidebarTitle:b("font-size:",F.base,";font-weight:600;color:",f.text,";margin:0;",""),sidebarContent:{name:"esl95u",styles:"flex:1;padding:20px;overflow:auto"},info:{name:"bh1r16",styles:"display:flex;flex-direction:column;gap:12px;margin-bottom:24px"},infoRow:b("display:flex;justify-content:space-between;font-size:",F.sm,";",""),infoLabel:b("color:",f.textSecondary,";",""),infoValue:b("color:",f.text,";font-weight:500;text-align:right;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",""),infoValueWrap:b("color:",f.text,";font-weight:500;text-align:right;max-width:160px;word-break:break-all;white-space:normal;",""),infoLink:b("color:",f.primary,";font-weight:500;text-align:right;max-width:160px;word-break:break-all;white-space:normal;text-decoration:none;&:hover{text-decoration:underline;}",""),actions:{name:"3w0yoi",styles:"display:flex;flex-direction:column;gap:8px"},actionBtn:b("display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;font-size:",F.base,";font-weight:500;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;color:",f.text,";text-align:left;&:hover:not(:disabled){background-color:",f.surfaceHover,";border-color:",f.borderHover,";}&:disabled{opacity:0.5;cursor:not-allowed;}",""),actionBtnDanger:b("color:",f.danger,";&:hover:not(:disabled){background-color:",f.dangerLight,";border-color:",f.danger,";}",""),actionIcon:{name:"a4lfw4",styles:"width:16px;height:16px;flex-shrink:0"}};function Ag(){const{focusedItem:o,setFocusedItem:s,triggerRefresh:h,fileItems:u,requestDelete:y,requestMove:p,requestSync:D,requestProcess:L,actionState:k}=ja(),[x,G]=M.useState(!1),[B,V]=M.useState(!1),[ae,q]=M.useState(null),[X,ve]=M.useState(!1),[W,ce]=M.useState(!1),[te,le]=M.useState({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."}),_=k.showProgress,Q=o?o.name.toLowerCase()==="favicon.png"||o.name.toLowerCase()==="favicon.jpg":!1;if(!o)return null;const j=Mg(o.name),Se=Tg(o.name),Le="/"+o.path.replace(/^public\//,""),De=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Le}`:Le,Ne=typeof window<"u"?window.location.origin:"",He=o.cdnPushed&&o.cdnBaseUrl?`${o.cdnBaseUrl}${Le}`:`${Ne}${Le}`,Fe=()=>{s(null)},We=()=>{navigator.clipboard.writeText(He),ve(!0),setTimeout(()=>ve(!1),1500)},Me=async J=>{if(G(!1),J&&J!==o.name)try{const se=await fetch("/api/studio/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:o.path,newName:J})});if(se.ok)h(),s(null);else{const Ee=await se.json();q({title:"Rename Failed",message:Ee.error||"Failed to rename file"})}}catch(se){console.error("Rename error:",se),q({title:"Rename Failed",message:"An error occurred while renaming the file"})}},A=async()=>{if(o){ce(!0),le({current:0,total:3,percent:0,status:"processing",message:"Generating favicons..."});try{const J=await fetch("/api/studio/generate-favicon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imagePath:"/"+o.path.replace(/^public\//,"")})});if(!J.ok){const g=await J.json();le({current:0,total:3,percent:0,status:"error",message:g.error||"Failed to generate favicons"});return}const se=J.body?.getReader(),Ee=new TextDecoder;if(se){let g="";for(;;){const{done:R,value:N}=await se.read();if(R)break;g+=Ee.decode(N,{stream:!0});const I=g.split(`
|
|
67
|
+
`);g=I.pop()||"";for(const P of I)if(P.startsWith("data: "))try{const ue=JSON.parse(P.slice(6));ue.type==="start"?le(Ue=>({...Ue,total:ue.total})):ue.type==="progress"?le({current:ue.current,total:ue.total,percent:ue.percent,status:"processing",message:ue.message}):ue.type==="complete"?le({current:ue.processed,total:ue.processed,percent:100,status:ue.errors>0?"error":"complete",message:ue.message}):ue.type==="error"&&le(Ue=>({...Ue,status:"error",message:ue.message}))}catch{}}}}catch(J){console.error("Favicon generation error:",J),le({current:0,total:3,percent:0,status:"error",message:"An error occurred while generating favicons"})}}},Y=()=>j?c("img",{css:de.image,src:De,alt:o.name}):Se?c("video",{css:de.video,src:De,controls:!0}):S("div",{css:de.filePlaceholder,children:[c("svg",{css:de.fileIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}),c("p",{css:de.fileName,children:o.name})]});return S(Tt,{children:[ae&&c(zh,{title:ae.title,message:ae.message,onClose:()=>q(null)}),c(Mh,{isOpen:B,onClose:()=>V(!1)}),x&&c(Gs,{title:"Rename File",message:"Enter a new name for the file:",defaultValue:o.name,placeholder:"Enter new filename",confirmLabel:"Rename",onConfirm:Me,onCancel:()=>G(!1)}),W&&c(Fs,{title:"Generating Favicons",progress:te,onClose:()=>ce(!1)}),c("div",{css:de.overlay,onClick:Fe,children:S("div",{css:de.container,onClick:J=>J.stopPropagation(),children:[S("div",{css:de.main,children:[S("div",{css:de.headerButtons,children:[o.cdnPushed&&!o.isRemote&&c("span",{css:de.statusIcon,title:"Pushed to CDN",children:c("svg",{css:de.cloudIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})})}),o.isRemote&&c("span",{css:de.statusIcon,title:"Remote image",children:c("svg",{css:de.globeIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),S("button",{css:de.copyBtn,onClick:We,title:"Copy file path",children:[X&&c("span",{css:de.tooltip,children:"Copied!"}),c("svg",{css:de.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),c("button",{css:de.mainCloseBtn,onClick:Fe,"aria-label":"Close",children:c("svg",{css:de.mainCloseIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),c("div",{css:de.mediaWrapper,children:Y()})]}),S("div",{css:de.sidebar,children:[c("div",{css:de.sidebarHeader,children:c("h3",{css:de.sidebarTitle,children:"Details"})}),S("div",{css:de.sidebarContent,children:[S("div",{css:de.info,children:[S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Name"}),c("span",{css:de.infoValueWrap,children:o.name})]}),S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Path"}),c("span",{css:de.infoValueWrap,children:o.path.replace(/^public\//,"")})]}),o.size!==void 0&&S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Size"}),c("span",{css:de.infoValue,children:Eg(o.size)})]}),o.dimensions&&S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"Dimensions"}),S("span",{css:de.infoValue,children:[o.dimensions.width," × ",o.dimensions.height]})]}),S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"CDN Status"}),c("span",{css:de.infoValue,children:o.cdnPushed?o.isRemote?"Remote":"Pushed":"Local"})]}),S("div",{css:de.infoRow,children:[c("span",{css:de.infoLabel,children:"URL"}),c("a",{href:He,target:"_blank",rel:"noopener noreferrer",css:de.infoLink,title:He,children:He})]})]}),S("div",{css:de.actions,children:[S("button",{css:de.actionBtn,onClick:()=>G(!0),disabled:o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Rename"]}),S("button",{css:de.actionBtn,onClick:()=>p([o.path]),disabled:_||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})}),"Move"]}),S("button",{css:de.actionBtn,onClick:()=>D([o.path],u),disabled:_||o.isProtected||o.cdnPushed&&!o.isRemote,title:o.cdnPushed&&!o.isRemote?"Already in R2":void 0,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),"Push to CDN"]}),S("button",{css:de.actionBtn,onClick:()=>L([o.path]),disabled:_||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),"Process Image"]}),Q&&S("button",{css:de.actionBtn,onClick:A,disabled:W||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Generate Favicons"]}),S("button",{css:[de.actionBtn,de.actionBtnDanger,"",""],onClick:()=>y([o.path]),disabled:_||o.isProtected,children:[c("svg",{css:de.actionIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete"]})]})]})]})]})})]})}function Eg(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}const _g="36px",Te={btn:b("height:",_g,";padding:0 12px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),icon:b("width:16px;height:16px;color:",f.textSecondary,";",""),overlay:{name:"1cy1r91",styles:"position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:flex;align-items:flex-start;justify-content:center;background-color:rgba(26, 31, 54, 0.4);backdrop-filter:blur(4px);overflow-y:auto;scroll-behavior:smooth;padding:48px 24px"},panel:b(Yi," position:relative;background-color:",f.surface,";border-radius:12px;box-shadow:0 30px 60px -12px rgba(50, 50, 93, 0.25),0 18px 36px -18px rgba(0, 0, 0, 0.3);width:100%;max-width:512px;padding:24px;margin:auto 0;",""),header:{name:"1o4fids",styles:"display:flex;align-items:center;justify-content:space-between;margin-bottom:24px"},title:b("font-size:",F.xl,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;",""),closeBtn:b("padding:6px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),sections:{name:"klisov",styles:"display:flex;flex-direction:column;gap:24px"},sectionTitle:b("font-size:",F.base,";font-weight:600;color:",f.text,";margin:0 0 12px 0;",""),description:b("font-size:",F.sm,";color:",f.textSecondary,";margin:0 0 12px 0;",""),codeWrapper:{name:"bjn8wh",styles:"position:relative"},code:b("background-color:",f.background,";border-radius:8px;padding:12px;padding-right:40px;font-family:'SF Mono',Monaco,Consolas,monospace;font-size:",F.xs,";color:",f.textSecondary,";border:1px solid ",f.border,";overflow-x:auto;white-space:nowrap;",""),copyBtn:b("position:absolute;top:8px;right:8px;padding:4px;background:",f.surface,";border:1px solid ",f.border,";border-radius:4px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),tooltip:{name:"6eskey",styles:"position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#1a1f36;color:white;padding:4px 8px;border-radius:4px;font-size:12px;white-space:nowrap;margin-bottom:6px;pointer-events:none;z-index:100;&::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#1a1f36;}"},copyIcon:b("width:14px;height:14px;color:",f.textSecondary,";",""),codeLine:{name:"1bbvuqp",styles:"margin:0 0 4px 0;&:last-child{margin:0;}"},input:b("width:100%;padding:10px 14px;border:1px solid ",f.border,";border-radius:6px;font-size:",F.base,";color:",f.text,";background:",f.surface,";transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}&::placeholder{color:",f.textMuted,";}",""),grid:{name:"xtlr5l",styles:"display:grid;grid-template-columns:repeat(3, 1fr);gap:12px"},label:b("font-size:",F.xs,";font-weight:500;color:",f.textSecondary,";display:block;margin-bottom:6px;",""),footer:b("margin-top:24px;padding-top:20px;border-top:1px solid ",f.border,";display:flex;justify-content:flex-end;gap:12px;",""),cancelBtn:b("padding:10px 18px;font-size:",F.base,";font-weight:500;color:",f.text,";background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),saveBtn:b("padding:10px 18px;font-size:",F.base,";font-weight:500;color:white;background-color:",f.primary,";border:1px solid ",f.primary,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{background-color:",f.primaryHover,";border-color:",f.primaryHover,";}&:disabled{opacity:0.6;cursor:not-allowed;}",""),cdnList:{name:"3w0yoi",styles:"display:flex;flex-direction:column;gap:8px"},cdnRow:{name:"197tvr9",styles:"display:flex;gap:8px;align-items:center"},cdnInput:b("flex:1;padding:8px 12px;border:1px solid ",f.border,";border-radius:6px;font-size:",F.sm,";color:",f.text,";background:",f.surface,";transition:all 0.15s ease;&:focus{outline:none;border-color:",f.primary,";box-shadow:0 0 0 3px ",f.primaryLight,";}",""),cdnIndex:b("font-size:",F.xs,";color:",f.textMuted,";width:24px;text-align:center;flex-shrink:0;",""),cdnDeleteBtn:b("padding:6px;background:none;border:none;cursor:pointer;color:",f.textMuted,";transition:color 0.15s;flex-shrink:0;&:hover{color:",f.danger,";}",""),cdnAddBtn:b("padding:8px 12px;font-size:",F.sm,";font-weight:500;color:",f.primary,";background:",f.primaryLight,";border:1px dashed ",f.primary,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;&:hover{background:",f.surface,";}",""),warning:b("font-size:",F.xs,";color:",f.danger,";margin-top:8px;padding:8px 12px;background:",f.dangerLight,";border-radius:6px;","")};function Dg(){const[o,s]=M.useState(!1);return S(Tt,{children:[c("button",{css:Te.btn,onClick:()=>s(!0),"aria-label":"Settings",children:S("svg",{css:Te.icon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"3"}),c("path",{d:"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z"})]})}),o&&c(Og,{onClose:()=>s(!1)})]})}const kg=`# Dev site link (opens from Studio header)
|
|
68
|
+
STUDIO_DEV_SITE_URL=http://localhost:3000
|
|
69
|
+
|
|
70
|
+
# Cloudflare R2 Storage
|
|
71
|
+
CLOUDFLARE_R2_ACCOUNT_ID=your_account_id
|
|
72
|
+
CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id
|
|
73
|
+
CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key
|
|
74
|
+
CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name
|
|
75
|
+
CLOUDFLARE_R2_PUBLIC_URL=https://your-cdn.example.com`;function Og({onClose:o}){const{triggerRefresh:s}=ja(),[h,u]=M.useState(!1),[y,p]=M.useState([]),[D,L]=M.useState(!0),[k,x]=M.useState(!1),[G,B]=M.useState(!1);M.useEffect(()=>{async function W(){try{const te=await(await fetch("/api/studio/cdns")).json();p(te.cdns||[])}catch(ce){console.error("Failed to load CDN URLs:",ce)}finally{L(!1)}}W()},[]);const V=()=>{navigator.clipboard.writeText(kg),u(!0),setTimeout(()=>u(!1),2e3)},ae=M.useCallback((W,ce)=>{p(te=>{const le=[...te];return le[W]=ce,le}),B(!0)},[]),q=M.useCallback(()=>{p(W=>[...W,""]),B(!0)},[]),X=M.useCallback(W=>{p(ce=>ce.filter((te,le)=>le!==W)),B(!0)},[]),ve=M.useCallback(async()=>{x(!0);try{(await fetch("/api/studio/cdns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cdns:y})})).ok&&(B(!1),s(),o())}catch(W){console.error("Failed to save CDN URLs:",W)}finally{x(!1)}},[y,s,o]);return c("div",{css:Te.overlay,onClick:o,children:S("div",{css:Te.panel,onClick:W=>W.stopPropagation(),children:[S("div",{css:Te.header,children:[c("h2",{css:Te.title,children:"Settings"}),c("button",{css:Te.closeBtn,onClick:o,children:c("svg",{css:Te.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),S("div",{css:Te.sections,children:[S("section",{children:[c("h3",{css:Te.sectionTitle,children:"CDN URLs"}),c("p",{css:Te.description,children:"Manage CDN base URLs used by your images:"}),D?c("p",{css:Te.description,children:"Loading..."}):S(Tt,{children:[c("div",{css:Te.cdnList,children:y.map((W,ce)=>S("div",{css:Te.cdnRow,children:[c("span",{css:Te.cdnIndex,children:ce}),c("input",{css:Te.cdnInput,type:"text",value:W,onChange:te=>ae(ce,te.target.value),placeholder:"https://cdn.example.com"}),c("button",{css:Te.cdnDeleteBtn,onClick:()=>X(ce),title:"Delete CDN URL",children:c("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]},ce))}),S("button",{css:Te.cdnAddBtn,onClick:q,children:[c("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add CDN URL"]}),y.length>0&&c("p",{css:Te.warning,children:"Warning: Changing CDN URLs may break image references. The index numbers correspond to image `c` values."})]})]}),S("section",{children:[c("h3",{css:Te.sectionTitle,children:"Environment Variables"}),S("p",{css:Te.description,children:["Configure in ",c("code",{children:".env.studio"})," file:"]}),S("div",{css:Te.codeWrapper,children:[S("button",{css:Te.copyBtn,onClick:V,title:"Copy to clipboard",children:[h&&c("span",{css:Te.tooltip,children:"Copied!"}),c("svg",{css:Te.copyIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})]}),S("div",{css:Te.code,children:[c("p",{css:Te.codeLine,children:"STUDIO_DEV_SITE_URL=http://localhost:3000"}),c("p",{css:Te.codeLine,children:" "}),c("p",{css:Te.codeLine,children:"# Cloudflare R2 Storage"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_ACCOUNT_ID=your_account_id"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_ACCESS_KEY_ID=your_access_key_id"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_SECRET_ACCESS_KEY=your_secret_access_key"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_BUCKET_NAME=your_bucket_name"}),c("p",{css:Te.codeLine,children:"CLOUDFLARE_R2_PUBLIC_URL=https://your-cdn.example.com"})]})]})]}),S("section",{children:[c("h3",{css:Te.sectionTitle,children:"Thumbnail Sizes"}),S("div",{css:Te.grid,children:[S("div",{children:[c("label",{css:Te.label,children:"Small"}),c("input",{css:Te.input,type:"number",defaultValue:300})]}),S("div",{children:[c("label",{css:Te.label,children:"Medium"}),c("input",{css:Te.input,type:"number",defaultValue:700})]}),S("div",{children:[c("label",{css:Te.label,children:"Large"}),c("input",{css:Te.input,type:"number",defaultValue:1400})]})]})]})]}),S("div",{css:Te.footer,children:[c("button",{css:Te.cancelBtn,onClick:o,children:"Cancel"}),c("button",{css:Te.saveBtn,onClick:ve,disabled:k||!G,children:k?"Saving...":"Save Changes"})]})]})})}const Fn={overlay:{name:"1u8n9cx",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1100"},modal:b("background:",f.surface,";border-radius:12px;padding:24px;max-width:400px;width:90%;box-shadow:0 20px 40px rgba(0, 0, 0, 0.2);",""),header:{name:"c6eghz",styles:"display:flex;align-items:center;gap:12px;margin-bottom:12px"},icon:b("width:24px;height:24px;color:",f.danger,";flex-shrink:0;",""),title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;",""),message:b("font-size:",F.base,";color:",f.textSecondary,";margin:0 0 20px 0;line-height:1.5;",""),button:b("width:100%;padding:10px 16px;border-radius:6px;font-size:",F.base,";font-weight:500;border:none;background:",f.primary,";color:white;cursor:pointer;transition:background 0.15s ease;&:hover{background:",f.primaryHover,";}","")};function Rg(){const{error:o,clearError:s}=ja();return o?c("div",{css:Fn.overlay,onClick:s,children:S("div",{css:Fn.modal,onClick:h=>h.stopPropagation(),children:[S("div",{css:Fn.header,children:[c("svg",{css:Fn.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),c("h3",{css:Fn.title,children:o.title})]}),c("p",{css:Fn.message,children:o.message}),c("button",{css:Fn.button,onClick:s,children:"OK"})]})}):null}const sh={showProgress:!1,progressTitle:"",progressState:{current:0,total:0,percent:0,status:"processing"},showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1,actionPaths:[],syncImageCount:0,syncHasRemote:!1,syncHasLocal:!1,processMode:"generate"};function Lg({triggerRefresh:o,clearSelection:s,setFocusedItem:h,showError:u}){const[y,p]=M.useState(sh),D=M.useRef(null),L=M.useCallback(_=>{p(Q=>({...Q,progressState:typeof _=="function"?_(Q.progressState):{...Q.progressState,..._}}))},[]),k=M.useCallback(_=>{p(Q=>({...Q,actionPaths:_,showDeleteConfirm:!0}))},[]),x=M.useCallback(_=>{p(Q=>({...Q,actionPaths:_,showMoveModal:!0}))},[]),G=M.useCallback((_,Q)=>{const j=_.map(De=>"/"+De.replace(/^public\//,""));let Se=!1,Le=!1;for(const De of _){const Ne=Q.find(He=>He.path===De);Ne&&(Ne.isRemote?Se=!0:Ne.cdnPushed||(Le=!0))}p(De=>({...De,actionPaths:_,syncImageCount:j.length,syncHasRemote:Se,syncHasLocal:Le,showSyncConfirm:!0}))},[]),B=M.useCallback(_=>{p(Q=>({...Q,actionPaths:_,showProcessConfirm:!0,processMode:"generate"}))},[]),V=M.useCallback(_=>{p(Q=>({...Q,processMode:_}))},[]),ae=M.useCallback(()=>{p(_=>({..._,showDeleteConfirm:!1,showMoveModal:!1,showSyncConfirm:!1,showProcessConfirm:!1}))},[]),q=M.useCallback(()=>{p(sh)},[]),X=M.useCallback(()=>{D.current&&D.current.abort()},[]),ve=M.useCallback(async()=>{const _=y.actionPaths;p(Q=>({...Q,showDeleteConfirm:!1}));try{const Q=await fetch("/api/studio/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:_})});if(Q.ok)s(),h(null),o();else{const j=await Q.json();u("Delete Failed",j.error||"Unknown error")}}catch(Q){console.error("Delete error:",Q),u("Delete Failed","Delete failed. Check console for details.")}},[y.actionPaths,s,h,o,u]),W=M.useCallback(async _=>{const Q=y.actionPaths;p(j=>({...j,showMoveModal:!1,showProgress:!0,progressTitle:"Moving Files",progressState:{current:0,total:Q.length,percent:0,status:"processing",message:"Moving files..."}}));try{const j=await fetch("/api/studio/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paths:Q,destination:_})});if(!j.ok){const De=await j.json();L({status:"error",message:De.error||"Move failed"});return}const Se=j.body?.getReader(),Le=new TextDecoder;if(Se){let De="";for(;;){const{done:Ne,value:He}=await Se.read();if(Ne)break;De+=Le.decode(He,{stream:!0});const Fe=De.split(`
|
|
76
|
+
`);De=Fe.pop()||"";for(const We of Fe)if(We.startsWith("data: "))try{const Me=JSON.parse(We.slice(6));Me.type==="start"?L(A=>({...A,total:Me.total})):Me.type==="progress"?L({current:Me.current,total:Me.total,percent:Math.round(Me.current/Me.total*100),status:"processing",message:Me.message}):Me.type==="complete"?(L(A=>({...A,status:"complete",message:`Moved ${Me.moved} file${Me.moved!==1?"s":""}${Me.errors>0?`, ${Me.errors} error${Me.errors!==1?"s":""}`:""}`})),Me.errors>0&&Me.errorMessages?.length>0&&u("Move Failed",Me.errorMessages.join(`
|
|
77
|
+
`)),s(),h(null),o()):Me.type==="error"&&L(A=>({...A,status:"error",message:Me.message||"Unknown error"}))}catch{}}}}catch(j){console.error("Move error:",j),L(Se=>({...Se,status:"error",message:"Failed to move files. Check console for details."}))}},[y.actionPaths,s,h,o,u,L]),ce=M.useCallback(async()=>{const Q=y.actionPaths.map(Le=>"/"+Le.replace(/^public\//,""));p(Le=>({...Le,showSyncConfirm:!1,showProgress:!0,progressTitle:"Pushing to CDN",progressState:{current:0,total:Q.length,percent:0,status:"processing",message:"Pushing to CDN..."}}));let j=0;const Se=[];for(let Le=0;Le<Q.length;Le++){const De=Q[Le];L({current:Le+1,total:Q.length,percent:Math.round((Le+1)/Q.length*100),status:"processing",message:`Pushing ${De}...`});try{const Ne=await fetch("/api/studio/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:[De]})});if(Ne.ok)j++;else{const He=await Ne.json();Se.push(`${De}: ${He.error||"Unknown error"}`)}}catch(Ne){Se.push(`${De}: ${Ne instanceof Error?Ne.message:"Unknown error"}`)}}L({current:Q.length,total:Q.length,percent:100,status:Se.length>0?"error":"complete",message:`Pushed ${j} file${j!==1?"s":""}${Se.length>0?`, ${Se.length} error${Se.length!==1?"s":""}`:""}`}),Se.length>0&&u("Push Errors",Se.join(`
|
|
78
|
+
`)),s(),o()},[y.actionPaths,s,o,u,L]),te=M.useCallback(async()=>{const _=y.actionPaths,Q=y.processMode,j=_.map(Fe=>{const We=Fe.replace(/^public\//,"");return We.startsWith("/")?We:`/${We}`}),Se=Q==="remove",Le=Se?"/api/studio/unprocess-stream":"/api/studio/reprocess-stream",De=Se?"Removing Thumbnails":"Generating Thumbnails",Ne=Se?"Removing thumbnails...":"Generating thumbnails...";p(Fe=>({...Fe,showProcessConfirm:!1,showProgress:!0,progressTitle:De,progressState:{current:0,total:j.length,percent:0,status:"processing",message:Ne}})),D.current=new AbortController;const He=D.current.signal;try{const Fe=await fetch(Le,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageKeys:j}),signal:He});if(!Fe.ok){const A=await Fe.json();L({current:0,total:j.length,percent:0,status:"error",message:A.error||(Se?"Failed to remove thumbnails":"Processing failed")});return}const We=Fe.body?.getReader(),Me=new TextDecoder;if(We){let A="";for(;;){const{done:Y,value:J}=await We.read();if(Y)break;A+=Me.decode(J,{stream:!0});const se=A.split(`
|
|
79
|
+
`);A=se.pop()||"";for(const Ee of se)if(Ee.startsWith("data: "))try{const g=JSON.parse(Ee.slice(6));g.type==="start"?L(R=>({...R,total:g.total})):g.type==="progress"?L({current:g.current,total:g.total,percent:g.percent,status:"processing",message:g.message}):g.type==="cleanup"?L(R=>({...R,status:"cleanup",message:g.message})):g.type==="complete"?(L({current:g.processed,total:g.processed,percent:100,status:g.errors>0?"error":"complete",message:g.message}),o()):g.type==="error"&&L(R=>({...R,status:"error",message:g.message}))}catch{}}}}catch(Fe){He.aborted?L(We=>({...We,status:"stopped",message:Se?"Removal stopped by user":"Processing stopped by user"})):(console.error("Processing error:",Fe),L({current:0,total:j.length,percent:0,status:"error",message:Se?"Failed to remove thumbnails. Check console for details.":"Processing failed. Check console for details."}))}finally{D.current=null}},[y.actionPaths,y.processMode,o,L]),le=M.useCallback(async()=>{const _=y.progressState.orphanedFiles;if(!(!_||_.length===0))try{const Q=await fetch("/api/studio/delete-orphans",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:_})});if(Q.ok)L(j=>({...j,orphanedFiles:void 0,message:j.message?.replace(/Found \d+ orphaned thumbnail\(s\).*/,"Orphaned thumbnails deleted.")})),o();else{const j=await Q.json();u("Delete Failed",j.error||"Failed to delete orphaned files")}}catch(Q){console.error("Delete orphans error:",Q),u("Delete Failed","Failed to delete orphaned files. Check console for details.")}},[y.progressState.orphanedFiles,o,u,L]);return{actionState:y,setActionState:p,abortController:D.current,requestDelete:k,requestMove:x,requestSync:G,requestProcess:B,setProcessMode:V,cancelAction:ae,closeProgress:q,stopProcessing:X,confirmDelete:ve,confirmMove:W,confirmSync:ce,confirmProcess:te,deleteOrphans:le}}const Ug="36px",Mt={container:b(Yi," display:flex;flex-direction:column;height:100%;background:",f.background,";",""),header:b("display:flex;align-items:center;justify-content:space-between;padding:12px 24px;background:",f.surface,";border-bottom:1px solid ",f.border,";position:relative;",""),title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0;letter-spacing:-0.02em;flex-shrink:0;",""),headerLeft:{name:"16ur2v6",styles:"display:flex;align-items:center;gap:12px;flex:1;min-width:0"},headerCenter:{name:"1fsejhz",styles:"position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;max-width:50%"},breadcrumbs:b("display:flex;align-items:center;gap:6px;font-size:",F.base,";color:",f.textSecondary,";overflow:hidden;",""),breadcrumbSeparator:b("color:",f.border,";flex-shrink:0;",""),breadcrumbItem:b("color:",f.textSecondary,";text-decoration:none;cursor:pointer;transition:color 0.15s ease;white-space:nowrap;&:hover{color:",f.primary,";}",""),breadcrumbCurrent:b("color:",f.text,";font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),headerIconBtn:b("display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:",f.textMuted,";background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all 0.15s ease;&:hover{color:",f.text,";background:",f.surface,";}",""),headerActions:{name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"},headerBtn:b("height:",Ug,";padding:0 12px;background:",f.surface,";border:1px solid ",f.border,";border-radius:6px;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;&:hover{background-color:",f.surfaceHover,";border-color:",f.borderHover,";}",""),headerIcon:b("width:16px;height:16px;color:",f.textSecondary,";",""),content:{name:"1rtaly3",styles:"flex:1;display:flex;overflow:hidden"},fileBrowser:{name:"upomw9",styles:"flex:1;min-width:0;overflow:auto;padding:20px 24px;display:flex;flex-direction:column"},dropOverlay:b("position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(99, 91, 255, 0.1);border:3px dashed ",f.primary,";border-radius:8px;display:flex;align-items:center;justify-content:center;z-index:50;pointer-events:none;",""),dropMessage:b("display:flex;flex-direction:column;align-items:center;gap:12px;color:",f.primary,";font-size:",F.lg,";font-weight:600;",""),dropIcon:{name:"18jhpep",styles:"width:48px;height:48px"}};function Hg({onClose:o,isVisible:s=!0,standaloneMode:h=!1,workspacePath:u,siteUrl:y}){const p=o||(()=>{}),[D,L]=M.useState("public"),[k,x]=M.useState(new Set),[G,B]=M.useState(null),[V,ae]=M.useState("grid"),[q,X]=M.useState(null),[ve,W]=M.useState(null),[ce,te]=M.useState(!1),[le,_]=M.useState(0),[Q,j]=M.useState(!1),[Se,Le]=M.useState(""),[De,Ne]=M.useState(null),[He,Fe]=M.useState([]),[We,Me]=M.useState(!1),A=M.useCallback(()=>{_(_e=>_e+1)},[]),Y=M.useCallback(()=>{j(!0)},[]),J=M.useCallback(()=>{j(!1)},[]),se=M.useCallback((_e,St)=>{Ne({title:_e,message:St})},[]),Ee=M.useCallback(()=>{Ne(null)},[]),g=M.useCallback(_e=>{_e.preventDefault(),_e.stopPropagation(),Me(!0)},[]),R=M.useCallback(_e=>{_e.preventDefault(),_e.stopPropagation(),Me(!1)},[]),N=M.useCallback(async _e=>{_e.preventDefault(),_e.stopPropagation(),Me(!1);const St=Array.from(_e.dataTransfer.files);if(St.length!==0&&!(D==="public/images"||D.startsWith("public/images/"))){for(const At of St){const Rt=new FormData;Rt.append("file",At),Rt.append("path",D);try{await fetch("/api/studio/upload",{method:"POST",body:Rt})}catch(ll){console.error("Upload error:",ll)}}A()}},[D,A]),I=M.useCallback(()=>{if(D==="public")return;const _e=D.split("/");_e.pop(),L(_e.join("/")||"public"),x(new Set)},[D]),P=M.useCallback(_e=>{L(_e),x(new Set),X(null)},[]),ue=M.useCallback(_e=>{x(St=>{const At=new Set(St);return At.has(_e)?At.delete(_e):At.add(_e),At}),B(_e)},[]),Ue=M.useCallback((_e,St,At)=>{const Rt=At.findIndex(pl=>pl.path===_e),ll=At.findIndex(pl=>pl.path===St);if(Rt===-1||ll===-1)return;const hl=Math.min(Rt,ll),kl=Math.max(Rt,ll);x(pl=>{const $n=new Set(pl);for(let An=hl;An<=kl;An++)$n.add(At[An].path);return $n}),B(St)},[]),xt=M.useCallback(_e=>{x(new Set(_e.map(St=>St.path)))},[]),et=M.useCallback(()=>{x(new Set)},[]),_l=M.useCallback(_e=>{X(_e)},[]),be=Lg({triggerRefresh:A,clearSelection:et,setFocusedItem:_l,showError:se}),Dl=M.useCallback(_e=>{if(_e.key==="Escape"){const St=_e.target;if(St.tagName==="INPUT"||St.tagName==="TEXTAREA")return;q?X(null):h||p()}},[p,q,h]);M.useEffect(()=>(s&&(document.addEventListener("keydown",Dl),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",Dl),document.body.style.overflow=""}),[Dl,s]);const Tn={isOpen:!0,openStudio:()=>{},closeStudio:p,toggleStudio:p,currentPath:D,setCurrentPath:P,navigateUp:I,selectedItems:k,toggleSelection:ue,selectRange:Ue,selectAll:xt,clearSelection:et,lastSelectedPath:G,viewMode:V,setViewMode:ae,focusedItem:q,setFocusedItem:X,meta:ve,setMeta:W,isLoading:ce,setIsLoading:te,refreshKey:le,triggerRefresh:A,scanRequested:Q,triggerScan:Y,clearScanRequest:J,searchQuery:Se,setSearchQuery:Le,error:De,showError:se,clearError:Ee,fileItems:He,setFileItems:Fe,actionState:be.actionState,requestDelete:be.requestDelete,requestMove:be.requestMove,requestSync:be.requestSync,requestProcess:be.requestProcess,setProcessMode:be.setProcessMode,confirmDelete:be.confirmDelete,confirmMove:be.confirmMove,confirmSync:be.confirmSync,confirmProcess:be.confirmProcess,cancelAction:be.cancelAction,closeProgress:be.closeProgress,stopProcessing:be.stopProcessing,abortController:be.abortController,deleteOrphans:be.deleteOrphans};return c(Ch.Provider,{value:Tn,children:S("div",{css:Mt.container,children:[S("div",{css:Mt.header,children:[c("div",{css:Mt.headerLeft,children:c("h1",{css:Mt.title,children:"Studio"})}),c("div",{css:Mt.headerCenter,children:c(Yg,{currentPath:D,onNavigate:P,projectName:u?u.split("/").pop():void 0})}),S("div",{css:Mt.headerActions,children:[y&&c("a",{href:y,target:"_blank",rel:"noopener noreferrer",css:Mt.headerIconBtn,title:`Open ${y}`,children:c(Gg,{})}),c(Dg,{}),!h&&c("button",{css:Mt.headerBtn,onClick:p,"aria-label":"Close Studio",children:c(Vg,{})})]})]}),c(tg,{}),S("div",{css:Mt.content,onDragOver:g,onDragLeave:R,onDrop:N,children:[We&&c("div",{css:Mt.dropOverlay,children:S("div",{css:Mt.dropMessage,children:[c("svg",{css:Mt.dropIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),c("span",{children:"Drop files to upload"})]})}),c("div",{css:Mt.fileBrowser,children:V==="grid"?c(gg,{}):c(xg,{})})]}),q&&c(Ag,{}),c(Rg,{}),be.actionState.showDeleteConfirm&&c(Li,{title:"Delete Files",message:`Are you sure you want to delete ${be.actionState.actionPaths.length} item${be.actionState.actionPaths.length!==1?"s":""}? This action cannot be undone.`,confirmLabel:"Delete",variant:"danger",onConfirm:be.confirmDelete,onCancel:be.cancelAction}),be.actionState.showSyncConfirm&&c(Li,{title:"Push to CDN",message:`Push ${be.actionState.syncImageCount} image${be.actionState.syncImageCount!==1?"s":""} to Cloudflare R2?${be.actionState.syncHasRemote?" Remote images will be downloaded first.":""}${be.actionState.syncHasLocal?" After pushing, local files will be deleted.":""}`,confirmLabel:"Push",onConfirm:be.confirmSync,onCancel:be.cancelAction}),be.actionState.showProcessConfirm&&c(qg,{imageCount:be.actionState.actionPaths.length,mode:be.actionState.processMode,onModeChange:be.setProcessMode,onConfirm:be.confirmProcess,onCancel:be.cancelAction}),be.actionState.showMoveModal&&c(wh,{selectedItems:new Set(be.actionState.actionPaths),currentPath:D,onMove:_e=>be.confirmMove(_e),onCancel:be.cancelAction}),be.actionState.showProgress&&c(Fs,{title:be.actionState.progressTitle,progress:be.actionState.progressState,onStop:be.stopProcessing,onDeleteOrphans:be.deleteOrphans,onClose:be.closeProgress})]})})}var Ng={name:"1cm5yut",styles:"display:flex;gap:12px;justify-content:flex-end"},Bg={name:"yr7p8l",styles:"display:flex;gap:8px;margin-bottom:16px"},jg={name:"1ca3l8d",styles:"position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:10000"};function qg({imageCount:o,mode:s,onModeChange:h,onConfirm:u,onCancel:y}){const p={overlay:jg,container:b("background:",f.surface,";border-radius:12px;padding:24px;max-width:420px;width:90%;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);",""),title:b("font-size:",F.lg,";font-weight:600;color:",f.text,";margin:0 0 16px;",""),modeToggle:Bg,modeBtn:b("flex:1;padding:10px 16px;border:2px solid ",f.border,";border-radius:8px;background:",f.background,";color:",f.textSecondary,";font-size:",F.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{border-color:",f.borderHover,";}",""),modeBtnActive:b("border-color:",f.primary,";background:rgba(99, 91, 255, 0.1);color:",f.primary,";",""),modeBtnDanger:b("border-color:",f.danger,";background:rgba(239, 68, 68, 0.1);color:",f.danger,";",""),message:b("font-size:",F.base,";color:",f.textSecondary,";margin:0 0 20px;line-height:1.5;",""),actions:Ng,cancelBtn:b("padding:10px 20px;border:1px solid ",f.border,";border-radius:8px;background:",f.background,";color:",f.text,";font-size:",F.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{background:",f.surfaceHover,";border-color:",f.borderHover,";}",""),confirmBtn:b("padding:10px 20px;border:none;border-radius:8px;background:",f.primary,";color:white;font-size:",F.base,";font-weight:500;cursor:pointer;transition:all 0.15s ease;&:hover{background:",f.primaryHover,";}",""),confirmBtnDanger:b("background:",f.danger,";&:hover{background:#dc2626;}","")},D=s==="remove",L="Process Images",k=D?`Remove generated thumbnails for ${o} image${o!==1?"s":""}? Original images will be kept.`:`Generate thumbnails for ${o} image${o!==1?"s":""}?`,x=D?"Remove":"Process";return c("div",{css:p.overlay,onClick:y,children:S("div",{css:p.container,onClick:G=>G.stopPropagation(),children:[c("h2",{css:p.title,children:L}),S("div",{css:p.modeToggle,children:[c("button",{css:[p.modeBtn,s==="generate"&&p.modeBtnActive,"",""],onClick:()=>h("generate"),children:"Generate Thumbnails"}),c("button",{css:[p.modeBtn,s==="remove"&&p.modeBtnDanger,"",""],onClick:()=>h("remove"),children:"Remove Thumbnails"})]}),c("p",{css:p.message,children:k}),S("div",{css:p.actions,children:[c("button",{css:p.cancelBtn,onClick:y,children:"Cancel"}),c("button",{css:[p.confirmBtn,D&&p.confirmBtnDanger,"",""],onClick:u,children:x})]})]})})}function Yg({currentPath:o,onNavigate:s,projectName:h}){const u=o.split("/").filter(Boolean),y=u.map((p,D)=>({name:D===0&&p==="public"&&h?h:p,path:u.slice(0,D+1).join("/")}));return c("div",{css:Mt.breadcrumbs,children:y.map((p,D)=>S("span",{style:{display:"flex",alignItems:"center",gap:6},children:[D>0&&c("span",{css:Mt.breadcrumbSeparator,children:"/"}),D===y.length-1?c("span",{css:Mt.breadcrumbCurrent,children:p.name}):c("span",{css:Mt.breadcrumbItem,onClick:()=>s(p.path),children:p.name})]},p.path))})}function Gg(){return S("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"10"}),c("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),c("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}function Vg(){return S("svg",{css:Mt.headerIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ah=document.getElementById("root");if(!Ah)throw new Error("Root element not found");const Xg=window.__STUDIO_WORKSPACE__||"Unknown",Qg=window.__STUDIO_SITE_URL__||"";G1.createRoot(Ah).render(c(M.StrictMode,{children:c("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"#0a0a0a"},children:c(Hg,{isVisible:!0,standaloneMode:!0,workspacePath:Xg,siteUrl:Qg})})}));
|