From 329e1380694a549737845dfa6178ebe1e3c5ef3c Mon Sep 17 00:00:00 2001 From: Ghost0159 Date: Thu, 21 Nov 2024 19:39:35 +0000 Subject: [PATCH] deploy: 4cb0050273f86b6753d3e5ef9295b03098d8fb7b --- .../{index-DrGQjdfc.js => index-SDqQoVZg.js} | 18 +++++++++--------- index.html | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) rename assets/{index-DrGQjdfc.js => index-SDqQoVZg.js} (96%) diff --git a/assets/index-DrGQjdfc.js b/assets/index-SDqQoVZg.js similarity index 96% rename from assets/index-DrGQjdfc.js rename to assets/index-SDqQoVZg.js index 4283df8..9f1e90a 100644 --- a/assets/index-DrGQjdfc.js +++ b/assets/index-SDqQoVZg.js @@ -22,7 +22,7 @@ var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){function e(C,j){var T=C.length;C.push(j);e:for(;0>>1,b=C[B];if(0>>1;Bi(Dn,T))Gei(it,Dn)?(C[B]=it,C[Ge]=T,B=Ge):(C[B]=Dn,C[rt]=T,B=rt);else if(Gei(it,T))C[B]=it,C[Ge]=T,B=Ge;else break e}}return j}function i(C,j){var T=C.sortIndex-j.sortIndex;return T!==0?T:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],h=1,f=null,p=3,y=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,e(a,j);else break;j=n(u)}}function w(C){if(x=!1,g(C),!v)if(n(a)!==null)v=!0,D(P);else{var j=n(u);j!==null&&Z(w,j.startTime-C)}}function P(C,j){v=!1,x&&(x=!1,m(N),N=-1),y=!0;var T=p;try{for(g(j),f=n(a);f!==null&&(!(f.expirationTime>j)||C&&!re());){var B=f.callback;if(typeof B=="function"){f.callback=null,p=f.priorityLevel;var b=B(f.expirationTime<=j);j=t.unstable_now(),typeof b=="function"?f.callback=b:f===n(a)&&r(a),g(j)}else r(a);f=n(a)}if(f!==null)var he=!0;else{var rt=n(u);rt!==null&&Z(w,rt.startTime-j),he=!1}return he}finally{f=null,p=T,y=!1}}var S=!1,_=null,N=-1,F=5,M=-1;function re(){return!(t.unstable_now()-MC||125B?(C.sortIndex=T,e(u,C),n(a)===null&&C===n(u)&&(x?(m(N),N=-1):x=!0,Z(w,T-B))):(C.sortIndex=b,e(a,C),v||y||(v=!0,D(P))),C},t.unstable_shouldYield=re,t.unstable_wrapCallback=function(C){var j=p;return function(){var T=p;p=j;try{return C.apply(this,arguments)}finally{p=T}}}})(ku);_u.exports=ku;var jh=_u.exports;/** + */(function(t){function e(C,j){var T=C.length;C.push(j);e:for(;0>>1,b=C[B];if(0>>1;Bi(Dn,T))Gei(it,Dn)?(C[B]=it,C[Ge]=T,B=Ge):(C[B]=Dn,C[rt]=T,B=rt);else if(Gei(it,T))C[B]=it,C[Ge]=T,B=Ge;else break e}}return j}function i(C,j){var T=C.sortIndex-j.sortIndex;return T!==0?T:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],h=1,f=null,p=3,y=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,e(a,j);else break;j=n(u)}}function w(C){if(x=!1,g(C),!v)if(n(a)!==null)v=!0,D(P);else{var j=n(u);j!==null&&Z(w,j.startTime-C)}}function P(C,j){v=!1,x&&(x=!1,m(N),N=-1),y=!0;var T=p;try{for(g(j),f=n(a);f!==null&&(!(f.expirationTime>j)||C&&!re());){var B=f.callback;if(typeof B=="function"){f.callback=null,p=f.priorityLevel;var b=B(f.expirationTime<=j);j=t.unstable_now(),typeof b=="function"?f.callback=b:f===n(a)&&r(a),g(j)}else r(a);f=n(a)}if(f!==null)var he=!0;else{var rt=n(u);rt!==null&&Z(w,rt.startTime-j),he=!1}return he}finally{f=null,p=T,y=!1}}var _=!1,S=null,N=-1,F=5,M=-1;function re(){return!(t.unstable_now()-MC||125B?(C.sortIndex=T,e(u,C),n(a)===null&&C===n(u)&&(x?(m(N),N=-1):x=!0,Z(w,T-B))):(C.sortIndex=b,e(a,C),v||y||(v=!0,D(P))),C},t.unstable_shouldYield=re,t.unstable_wrapCallback=function(C){var j=p;return function(){var T=p;p=j;try{return C.apply(this,arguments)}finally{p=T}}}})(ku);_u.exports=ku;var jh=_u.exports;/** * @license React * react-dom.production.min.js * @@ -34,8 +34,8 @@ var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,config `+rs+t}var is=!1;function ss(t,e){if(!t||is)return"";is=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` `),s=r.stack.split(` `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=` -`+i[o].replace(" at new "," at ");return t.displayName&&a.includes("")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{is=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vn(t):""}function Ah(t){switch(t.tag){case 5:return Vn(t.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return t=ss(t.type,!1),t;case 11:return t=ss(t.type.render,!1),t;case 1:return t=ss(t.type,!0),t;default:return""}}function As(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sn:return"Fragment";case rn:return"Portal";case zs:return"Profiler";case Bo:return"StrictMode";case Ms:return"Suspense";case Ds:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Pu:return(t.displayName||"Context")+".Consumer";case Cu:return(t._context.displayName||"Context")+".Provider";case Uo:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ho:return e=t.displayName||null,e!==null?e:As(t.type)||"Memo";case yt:e=t._payload,t=t._init;try{return As(t(e))}catch{}}return null}function Oh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return As(e);case 8:return e===Bo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function zt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lu(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rh(t){var e=Lu(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Or(t){t._valueTracker||(t._valueTracker=Rh(t))}function ju(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Lu(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Os(t,e){var n=e.checked;return Y({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Rl(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=zt(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Tu(t,e){e=e.checked,e!=null&&bo(t,"checked",e,!1)}function Rs(t,e){Tu(t,e);var n=zt(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Fs(t,e.type,n):e.hasOwnProperty("defaultValue")&&Fs(t,e.type,zt(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Fl(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Fs(t,e,n){(e!=="number"||ci(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Qn=Array.isArray;function gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Rr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fh=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(t){Fh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yn[e]=Yn[t]})});function Du(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yn.hasOwnProperty(t)&&Yn[t]?(""+e).trim():e+"px"}function Au(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Du(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var $h=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bs(t,e){if(e){if($h[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function Us(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hs=null;function Zo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zs=null,vn=null,yn=null;function Bl(t){if(t=Ir(t)){if(typeof Zs!="function")throw Error(k(280));var e=t.stateNode;e&&(e=Hi(e),Zs(t.stateNode,t.type,e))}}function Ou(t){vn?yn?yn.push(t):yn=[t]:vn=t}function Ru(){if(vn){var t=vn,e=yn;if(yn=vn=null,Bl(t),e)for(t=0;t>>=0,t===0?32:31-(Xh(t)/Yh|0)|0}var Fr=64,$r=4194304;function Kn(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pi(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Kn(l):(s&=o,s!==0&&(r=Kn(s)))}else o=n&~i,o!==0?r=Kn(o):s!==0&&(r=Kn(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function jr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ve(e),t[e]=n}function tf(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Jn),Xl=" ",Yl=!1;function rc(t,e){switch(t){case"keyup":return Tf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var on=!1;function zf(t,e){switch(t){case"compositionend":return ic(e);case"keypress":return e.which!==32?null:(Yl=!0,Xl);case"textInput":return t=e.data,t===Xl&&Yl?null:t;default:return null}}function Mf(t,e){if(on)return t==="compositionend"||!qo&&rc(t,e)?(t=tc(),ti=Go=_t=null,on=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function ac(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ac(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uc(){for(var t=window,e=ci();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ci(t.document)}return e}function Jo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Uf(t){var e=uc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&ac(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=na(n,s);var o=na(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ln=null,Xs=null,tr=null,Ys=!1;function ra(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||ln==null||ln!==ci(r)||(r=ln,"selectionStart"in r&&Jo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tr&&pr(tr,r)||(tr=r,r=vi(Xs,"onSelect"),0cn||(t.current=ro[cn],ro[cn]=null,cn--)}function W(t,e){cn++,ro[cn]=t.current,t.current=e}var Mt={},ge=At(Mt),ke=At(!1),Kt=Mt;function kn(t,e){var n=t.type.contextTypes;if(!n)return Mt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ee(t){return t=t.childContextTypes,t!=null}function xi(){Q(ke),Q(ge)}function ca(t,e,n){if(ge.current!==Mt)throw Error(k(168));W(ge,e),W(ke,n)}function yc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(k(108,Oh(t)||"Unknown",i));return Y({},n,r)}function wi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mt,Kt=ge.current,W(ge,t),W(ke,ke.current),!0}function da(t,e,n){var r=t.stateNode;if(!r)throw Error(k(169));n?(t=yc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,Q(ke),Q(ge),W(ge,t)):Q(ke),W(ke,n)}var ot=null,Zi=!1,xs=!1;function xc(t){ot===null?ot=[t]:ot.push(t)}function ep(t){Zi=!0,xc(t)}function Ot(){if(!xs&&ot!==null){xs=!0;var t=0,e=H;try{var n=ot;for(H=1;t>=o,i-=o,lt=1<<32-Ve(e)+i|n<N?(F=_,_=null):F=_.sibling;var M=p(m,_,g[N],w);if(M===null){_===null&&(_=F);break}t&&_&&M.alternate===null&&e(m,_),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M,_=F}if(N===g.length)return n(m,_),K&&$t(m,N),P;if(_===null){for(;NN?(F=_,_=null):F=_.sibling;var re=p(m,_,M.value,w);if(re===null){_===null&&(_=F);break}t&&_&&re.alternate===null&&e(m,_),d=s(re,d,N),S===null?P=re:S.sibling=re,S=re,_=F}if(M.done)return n(m,_),K&&$t(m,N),P;if(_===null){for(;!M.done;N++,M=g.next())M=f(m,M.value,w),M!==null&&(d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return K&&$t(m,N),P}for(_=r(m,_);!M.done;N++,M=g.next())M=y(_,m,N,M.value,w),M!==null&&(t&&M.alternate!==null&&_.delete(M.key===null?N:M.key),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return t&&_.forEach(function(R){return e(m,R)}),K&&$t(m,N),P}function E(m,d,g,w){if(typeof g=="object"&&g!==null&&g.type===sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ar:e:{for(var P=g.key,S=d;S!==null;){if(S.key===P){if(P=g.type,P===sn){if(S.tag===7){n(m,S.sibling),d=i(S,g.props.children),d.return=m,m=d;break e}}else if(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yt&&pa(P)===S.type){n(m,S.sibling),d=i(S,g.props),d.ref=Bn(m,S,g),d.return=m,m=d;break e}n(m,S);break}else e(m,S);S=S.sibling}g.type===sn?(d=Qt(g.props.children,m.mode,w,g.key),d.return=m,m=d):(w=ui(g.type,g.key,g.props,null,m.mode,w),w.ref=Bn(m,d,g),w.return=m,m=w)}return o(m);case rn:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=i(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else e(m,d);d=d.sibling}d=Ns(g,m.mode,w),d.return=m,m=d}return o(m);case yt:return S=g._init,E(m,d,S(g._payload),w)}if(Qn(g))return v(m,d,g,w);if(On(g))return x(m,d,g,w);Vr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=i(d,g),d.return=m,m=d):(n(m,d),d=Ps(g,m.mode,w),d.return=m,m=d),o(m)):n(m,d)}return E}var Cn=kc(!0),Ec=kc(!1),ki=At(null),Ei=null,fn=null,rl=null;function il(){rl=fn=Ei=null}function sl(t){var e=ki.current;Q(ki),t._currentValue=e}function oo(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function wn(t,e){Ei=t,rl=fn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(_e=!0),t.firstContext=null)}function be(t){var e=t._currentValue;if(rl!==t)if(t={context:t,memoizedValue:e,next:null},fn===null){if(Ei===null)throw Error(k(308));fn=t,Ei.dependencies={lanes:0,firstContext:t}}else fn=fn.next=t;return e}var Ht=null;function ol(t){Ht===null?Ht=[t]:Ht.push(t)}function Cc(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,ol(e)):(n.next=i.next,i.next=n),e.interleaved=n,ht(t,r)}function ht(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var xt=!1;function ll(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ut(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Lt(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ht(t,n)}return i=r.interleaved,i===null?(e.next=e,ol(r)):(e.next=i.next,i.next=e),r.interleaved=e,ht(t,n)}function ri(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}function ma(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ci(t,e,n,r){var i=t.updateQueue;xt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var h=t.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==o&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,h=u=a=null,l=s;do{var p=l.lane,y=l.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,x=l;switch(p=e,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(y,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,p=typeof v=="function"?v.call(y,f,p):v,p==null)break e;f=Y({},f,p);break e;case 2:xt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=y,a=f):h=h.next=y,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Yt|=o,t.lanes=o,t.memoizedState=f}}function ga(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Ss.transition;Ss.transition={};try{t(!1),e()}finally{H=n,Ss.transition=r}}function Hc(){return Be().memoizedState}function ip(t,e,n){var r=Tt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zc(t))Wc(e,n);else if(n=Cc(t,e,n,r),n!==null){var i=ye();Qe(n,t,r,i),Vc(n,e,r)}}function sp(t,e,n){var r=Tt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zc(t))Wc(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ke(l,o)){var a=e.interleaved;a===null?(i.next=i,ol(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=Cc(t,e,i,r),n!==null&&(i=ye(),Qe(n,t,r,i),Vc(n,e,r))}}function Zc(t){var e=t.alternate;return t===X||e!==null&&e===X}function Wc(t,e){nr=Ni=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vc(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}var Li={readContext:be,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},op={readContext:be,useCallback:function(t,e){return Ye().memoizedState=[t,e===void 0?null:e],t},useContext:be,useEffect:ya,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,si(4194308,4,Fc.bind(null,e,t),n)},useLayoutEffect:function(t,e){return si(4194308,4,t,e)},useInsertionEffect:function(t,e){return si(4,2,t,e)},useMemo:function(t,e){var n=Ye();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ye();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ip.bind(null,X,t),[r.memoizedState,t]},useRef:function(t){var e=Ye();return t={current:t},e.memoizedState=t},useState:va,useDebugValue:ml,useDeferredValue:function(t){return Ye().memoizedState=t},useTransition:function(){var t=va(!1),e=t[0];return t=rp.bind(null,t[1]),Ye().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=X,i=Ye();if(K){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),ae===null)throw Error(k(349));Xt&30||Tc(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,ya(zc.bind(null,r,s,t),[t]),r.flags|=2048,_r(9,Ic.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Ye(),e=ae.identifierPrefix;if(K){var n=at,r=lt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=wr++,0")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{is=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vn(t):""}function Ah(t){switch(t.tag){case 5:return Vn(t.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return t=ss(t.type,!1),t;case 11:return t=ss(t.type.render,!1),t;case 1:return t=ss(t.type,!0),t;default:return""}}function As(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sn:return"Fragment";case rn:return"Portal";case zs:return"Profiler";case Bo:return"StrictMode";case Ms:return"Suspense";case Ds:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Pu:return(t.displayName||"Context")+".Consumer";case Cu:return(t._context.displayName||"Context")+".Provider";case Uo:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ho:return e=t.displayName||null,e!==null?e:As(t.type)||"Memo";case yt:e=t._payload,t=t._init;try{return As(t(e))}catch{}}return null}function Oh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return As(e);case 8:return e===Bo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function zt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lu(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rh(t){var e=Lu(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Or(t){t._valueTracker||(t._valueTracker=Rh(t))}function ju(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Lu(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Os(t,e){var n=e.checked;return Y({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Rl(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=zt(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Tu(t,e){e=e.checked,e!=null&&bo(t,"checked",e,!1)}function Rs(t,e){Tu(t,e);var n=zt(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Fs(t,e.type,n):e.hasOwnProperty("defaultValue")&&Fs(t,e.type,zt(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Fl(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Fs(t,e,n){(e!=="number"||ci(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Qn=Array.isArray;function gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Rr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fh=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(t){Fh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yn[e]=Yn[t]})});function Du(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yn.hasOwnProperty(t)&&Yn[t]?(""+e).trim():e+"px"}function Au(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Du(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var $h=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bs(t,e){if(e){if($h[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function Us(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hs=null;function Zo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zs=null,vn=null,yn=null;function Bl(t){if(t=Ir(t)){if(typeof Zs!="function")throw Error(k(280));var e=t.stateNode;e&&(e=Hi(e),Zs(t.stateNode,t.type,e))}}function Ou(t){vn?yn?yn.push(t):yn=[t]:vn=t}function Ru(){if(vn){var t=vn,e=yn;if(yn=vn=null,Bl(t),e)for(t=0;t>>=0,t===0?32:31-(Xh(t)/Yh|0)|0}var Fr=64,$r=4194304;function Kn(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pi(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Kn(l):(s&=o,s!==0&&(r=Kn(s)))}else o=n&~i,o!==0?r=Kn(o):s!==0&&(r=Kn(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function jr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ve(e),t[e]=n}function tf(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Jn),Xl=" ",Yl=!1;function rc(t,e){switch(t){case"keyup":return Tf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var on=!1;function zf(t,e){switch(t){case"compositionend":return ic(e);case"keypress":return e.which!==32?null:(Yl=!0,Xl);case"textInput":return t=e.data,t===Xl&&Yl?null:t;default:return null}}function Mf(t,e){if(on)return t==="compositionend"||!qo&&rc(t,e)?(t=tc(),ti=Go=_t=null,on=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function ac(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ac(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uc(){for(var t=window,e=ci();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ci(t.document)}return e}function Jo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Uf(t){var e=uc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&ac(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=na(n,s);var o=na(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ln=null,Xs=null,tr=null,Ys=!1;function ra(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||ln==null||ln!==ci(r)||(r=ln,"selectionStart"in r&&Jo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tr&&pr(tr,r)||(tr=r,r=vi(Xs,"onSelect"),0cn||(t.current=ro[cn],ro[cn]=null,cn--)}function W(t,e){cn++,ro[cn]=t.current,t.current=e}var Mt={},ge=At(Mt),ke=At(!1),Kt=Mt;function kn(t,e){var n=t.type.contextTypes;if(!n)return Mt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ee(t){return t=t.childContextTypes,t!=null}function xi(){Q(ke),Q(ge)}function ca(t,e,n){if(ge.current!==Mt)throw Error(k(168));W(ge,e),W(ke,n)}function yc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(k(108,Oh(t)||"Unknown",i));return Y({},n,r)}function wi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mt,Kt=ge.current,W(ge,t),W(ke,ke.current),!0}function da(t,e,n){var r=t.stateNode;if(!r)throw Error(k(169));n?(t=yc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,Q(ke),Q(ge),W(ge,t)):Q(ke),W(ke,n)}var ot=null,Zi=!1,xs=!1;function xc(t){ot===null?ot=[t]:ot.push(t)}function ep(t){Zi=!0,xc(t)}function Ot(){if(!xs&&ot!==null){xs=!0;var t=0,e=H;try{var n=ot;for(H=1;t>=o,i-=o,lt=1<<32-Ve(e)+i|n<N?(F=S,S=null):F=S.sibling;var M=p(m,S,g[N],w);if(M===null){S===null&&(S=F);break}t&&S&&M.alternate===null&&e(m,S),d=s(M,d,N),_===null?P=M:_.sibling=M,_=M,S=F}if(N===g.length)return n(m,S),K&&$t(m,N),P;if(S===null){for(;NN?(F=S,S=null):F=S.sibling;var re=p(m,S,M.value,w);if(re===null){S===null&&(S=F);break}t&&S&&re.alternate===null&&e(m,S),d=s(re,d,N),_===null?P=re:_.sibling=re,_=re,S=F}if(M.done)return n(m,S),K&&$t(m,N),P;if(S===null){for(;!M.done;N++,M=g.next())M=f(m,M.value,w),M!==null&&(d=s(M,d,N),_===null?P=M:_.sibling=M,_=M);return K&&$t(m,N),P}for(S=r(m,S);!M.done;N++,M=g.next())M=y(S,m,N,M.value,w),M!==null&&(t&&M.alternate!==null&&S.delete(M.key===null?N:M.key),d=s(M,d,N),_===null?P=M:_.sibling=M,_=M);return t&&S.forEach(function(R){return e(m,R)}),K&&$t(m,N),P}function E(m,d,g,w){if(typeof g=="object"&&g!==null&&g.type===sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ar:e:{for(var P=g.key,_=d;_!==null;){if(_.key===P){if(P=g.type,P===sn){if(_.tag===7){n(m,_.sibling),d=i(_,g.props.children),d.return=m,m=d;break e}}else if(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yt&&pa(P)===_.type){n(m,_.sibling),d=i(_,g.props),d.ref=Bn(m,_,g),d.return=m,m=d;break e}n(m,_);break}else e(m,_);_=_.sibling}g.type===sn?(d=Qt(g.props.children,m.mode,w,g.key),d.return=m,m=d):(w=ui(g.type,g.key,g.props,null,m.mode,w),w.ref=Bn(m,d,g),w.return=m,m=w)}return o(m);case rn:e:{for(_=g.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=i(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else e(m,d);d=d.sibling}d=Ns(g,m.mode,w),d.return=m,m=d}return o(m);case yt:return _=g._init,E(m,d,_(g._payload),w)}if(Qn(g))return v(m,d,g,w);if(On(g))return x(m,d,g,w);Vr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=i(d,g),d.return=m,m=d):(n(m,d),d=Ps(g,m.mode,w),d.return=m,m=d),o(m)):n(m,d)}return E}var Cn=kc(!0),Ec=kc(!1),ki=At(null),Ei=null,fn=null,rl=null;function il(){rl=fn=Ei=null}function sl(t){var e=ki.current;Q(ki),t._currentValue=e}function oo(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function wn(t,e){Ei=t,rl=fn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(_e=!0),t.firstContext=null)}function be(t){var e=t._currentValue;if(rl!==t)if(t={context:t,memoizedValue:e,next:null},fn===null){if(Ei===null)throw Error(k(308));fn=t,Ei.dependencies={lanes:0,firstContext:t}}else fn=fn.next=t;return e}var Ht=null;function ol(t){Ht===null?Ht=[t]:Ht.push(t)}function Cc(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,ol(e)):(n.next=i.next,i.next=n),e.interleaved=n,ht(t,r)}function ht(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var xt=!1;function ll(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ut(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Lt(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ht(t,n)}return i=r.interleaved,i===null?(e.next=e,ol(r)):(e.next=i.next,i.next=e),r.interleaved=e,ht(t,n)}function ri(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}function ma(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ci(t,e,n,r){var i=t.updateQueue;xt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var h=t.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==o&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,h=u=a=null,l=s;do{var p=l.lane,y=l.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,x=l;switch(p=e,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(y,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,p=typeof v=="function"?v.call(y,f,p):v,p==null)break e;f=Y({},f,p);break e;case 2:xt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=y,a=f):h=h.next=y,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Yt|=o,t.lanes=o,t.memoizedState=f}}function ga(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Ss.transition;Ss.transition={};try{t(!1),e()}finally{H=n,Ss.transition=r}}function Hc(){return Be().memoizedState}function ip(t,e,n){var r=Tt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zc(t))Wc(e,n);else if(n=Cc(t,e,n,r),n!==null){var i=ye();Qe(n,t,r,i),Vc(n,e,r)}}function sp(t,e,n){var r=Tt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zc(t))Wc(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ke(l,o)){var a=e.interleaved;a===null?(i.next=i,ol(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=Cc(t,e,i,r),n!==null&&(i=ye(),Qe(n,t,r,i),Vc(n,e,r))}}function Zc(t){var e=t.alternate;return t===X||e!==null&&e===X}function Wc(t,e){nr=Ni=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vc(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}var Li={readContext:be,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},op={readContext:be,useCallback:function(t,e){return Ye().memoizedState=[t,e===void 0?null:e],t},useContext:be,useEffect:ya,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,si(4194308,4,Fc.bind(null,e,t),n)},useLayoutEffect:function(t,e){return si(4194308,4,t,e)},useInsertionEffect:function(t,e){return si(4,2,t,e)},useMemo:function(t,e){var n=Ye();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ye();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ip.bind(null,X,t),[r.memoizedState,t]},useRef:function(t){var e=Ye();return t={current:t},e.memoizedState=t},useState:va,useDebugValue:ml,useDeferredValue:function(t){return Ye().memoizedState=t},useTransition:function(){var t=va(!1),e=t[0];return t=rp.bind(null,t[1]),Ye().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=X,i=Ye();if(K){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),ae===null)throw Error(k(349));Xt&30||Tc(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,ya(zc.bind(null,r,s,t),[t]),r.flags|=2048,_r(9,Ic.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Ye(),e=ae.identifierPrefix;if(K){var n=at,r=lt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=wr++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[qe]=e,t[vr]=r,nd(t,e,!1,!1),e.stateNode=t;e:{switch(o=Us(n,r),n){case"dialog":V("cancel",t),V("close",t),i=r;break;case"iframe":case"object":case"embed":V("load",t),i=r;break;case"video":case"audio":for(i=0;iLn&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304)}else{if(!r)if(t=Pi(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Un(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return pe(e),null}else 2*J()-s.renderingStartTime>Ln&&n!==1073741824&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=J(),e.sibling=null,n=G.current,W(G,r?n&1|2:n&1),e):(pe(e),null);case 22:case 23:return Sl(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Pe&1073741824&&(pe(e),e.subtreeFlags&6&&(e.flags|=8192)):pe(e),null;case 24:return null;case 25:return null}throw Error(k(156,e.tag))}function pp(t,e){switch(tl(e),e.tag){case 1:return Ee(e.type)&&xi(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pn(),Q(ke),Q(ge),cl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ul(e),null;case 13:if(Q(G),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(k(340));En()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(G),null;case 4:return Pn(),null;case 10:return sl(e.type._context),null;case 22:case 23:return Sl(),null;case 24:return null;default:return null}}var Kr=!1,me=!1,mp=typeof WeakSet=="function"?WeakSet:Set,L=null;function pn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(t,e,r)}else n.current=null}function go(t,e,n){try{n()}catch(r){q(t,e,r)}}var ja=!1;function gp(t,e){if(qs=mi,t=uc(),Jo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,h=0,f=t,p=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===t)break t;if(p===n&&++u===i&&(l=o),p===s&&++h===r&&(a=o),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Js={focusedElem:t,selectionRange:n},mi=!1,L=e;L!==null;)if(e=L,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L=t;else for(;L!==null;){e=L;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,E=v.memoizedState,m=e.stateNode,d=m.getSnapshotBeforeUpdate(e.elementType===e.type?x:He(e.type,x),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){q(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,L=t;break}L=e.return}return v=ja,ja=!1,v}function rr(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&go(e,n,s)}i=i.next}while(i!==r)}}function Qi(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function vo(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function sd(t){var e=t.alternate;e!==null&&(t.alternate=null,sd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[qe],delete e[vr],delete e[no],delete e[qf],delete e[Jf])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function od(t){return t.tag===5||t.tag===3||t.tag===4}function Ta(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||od(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function yo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=yi));else if(r!==4&&(t=t.child,t!==null))for(yo(t,e,n),t=t.sibling;t!==null;)yo(t,e,n),t=t.sibling}function xo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(xo(t,e,n),t=t.sibling;t!==null;)xo(t,e,n),t=t.sibling}var ue=null,Ze=!1;function gt(t,e,n){for(n=n.child;n!==null;)ld(t,e,n),n=n.sibling}function ld(t,e,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount($i,n)}catch{}switch(n.tag){case 5:me||pn(n,e);case 6:var r=ue,i=Ze;ue=null,gt(t,e,n),ue=r,Ze=i,ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?ys(t.parentNode,n):t.nodeType===1&&ys(t,n),hr(t)):ys(ue,n.stateNode));break;case 4:r=ue,i=Ze,ue=n.stateNode.containerInfo,Ze=!0,gt(t,e,n),ue=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&go(n,e,o),i=i.next}while(i!==r)}gt(t,e,n);break;case 1:if(!me&&(pn(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){q(n,e,l)}gt(t,e,n);break;case 21:gt(t,e,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,gt(t,e,n),me=r):gt(t,e,n);break;default:gt(t,e,n)}}function Ia(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new mp),e.forEach(function(r){var i=Cp.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yp(r/1960))-r,10t?16:t,kt===null)var r=!1;else{if(t=kt,kt=null,Ii=0,$&6)throw Error(k(331));var i=$;for($|=4,L=t.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aJ()-xl?Vt(t,0):yl|=n),Ce(t,e)}function md(t,e){e===0&&(t.mode&1?(e=$r,$r<<=1,!($r&130023424)&&($r=4194304)):e=1);var n=ye();t=ht(t,e),t!==null&&(jr(t,e,n),Ce(t,n))}function Ep(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),md(t,n)}function Cp(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(e),md(t,n)}var gd;gd=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ke.current)_e=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return _e=!1,hp(t,e,n);_e=!!(t.flags&131072)}else _e=!1,K&&e.flags&1048576&&wc(e,_i,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;oi(t,e),t=e.pendingProps;var i=kn(e,ge.current);wn(e,n),i=hl(null,e,r,t,i,n);var s=fl();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ee(r)?(s=!0,wi(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ll(e),i.updater=Vi,e.stateNode=i,i._reactInternals=e,ao(e,r,t,n),e=ho(null,e,r,!0,s,n)):(e.tag=0,K&&s&&el(e),ve(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(oi(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Np(r),t=He(r,t),i){case 0:e=co(null,e,r,t,n);break e;case 1:e=Pa(null,e,r,t,n);break e;case 11:e=Ea(null,e,r,t,n);break e;case 14:e=Ca(null,e,r,He(r.type,t),n);break e}throw Error(k(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),co(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Pa(t,e,r,i,n);case 3:e:{if(Jc(e),t===null)throw Error(k(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Pc(t,e),Ci(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Nn(Error(k(423)),e),e=Na(t,e,r,n,i);break e}else if(r!==i){i=Nn(Error(k(424)),e),e=Na(t,e,r,n,i);break e}else for(Le=Nt(e.stateNode.containerInfo.firstChild),Te=e,K=!0,We=null,n=Ec(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===i){e=ft(t,e,n);break e}ve(t,e,r,n)}e=e.child}return e;case 5:return Nc(e),t===null&&so(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,eo(r,i)?o=null:s!==null&&eo(r,s)&&(e.flags|=32),qc(t,e),ve(t,e,o,n),e.child;case 6:return t===null&&so(e),null;case 13:return ed(t,e,n);case 4:return al(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Cn(e,null,r,n):ve(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Ea(t,e,r,i,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,W(ki,r._currentValue),r._currentValue=o,s!==null)if(Ke(s.value,o)){if(s.children===i.children&&!ke.current){e=ft(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=ut(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),oo(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),oo(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,wn(e,n),i=be(i),r=r(i),e.flags|=1,ve(t,e,r,n),e.child;case 14:return r=e.type,i=He(r,e.pendingProps),i=He(r.type,i),Ca(t,e,r,i,n);case 15:return Xc(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),oi(t,e),e.tag=1,Ee(r)?(t=!0,wi(e)):t=!1,wn(e,n),Qc(e,r,i),ao(e,r,i,n),ho(null,e,r,!0,t,n);case 19:return td(t,e,n);case 22:return Yc(t,e,n)}throw Error(k(156,e.tag))};function vd(t,e){return Zu(t,e)}function Pp(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(t,e,n,r){return new Pp(t,e,n,r)}function kl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Np(t){if(typeof t=="function")return kl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Uo)return 11;if(t===Ho)return 14}return 2}function It(t,e){var n=t.alternate;return n===null?(n=Fe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ui(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")kl(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case sn:return Qt(n.children,i,s,e);case Bo:o=8,i|=8;break;case zs:return t=Fe(12,n,e,i|2),t.elementType=zs,t.lanes=s,t;case Ms:return t=Fe(13,n,e,i),t.elementType=Ms,t.lanes=s,t;case Ds:return t=Fe(19,n,e,i),t.elementType=Ds,t.lanes=s,t;case Nu:return Gi(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Cu:o=10;break e;case Pu:o=9;break e;case Uo:o=11;break e;case Ho:o=14;break e;case yt:o=16,r=null;break e}throw Error(k(130,t==null?t:typeof t,""))}return e=Fe(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Qt(t,e,n,r){return t=Fe(7,t,r,e),t.lanes=n,t}function Gi(t,e,n,r){return t=Fe(22,t,r,e),t.elementType=Nu,t.lanes=n,t.stateNode={isHidden:!1},t}function Ps(t,e,n){return t=Fe(6,t,null,e),t.lanes=n,t}function Ns(t,e,n){return e=Fe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Lp(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function El(t,e,n,r,i,s,o,l,a){return t=new Lp(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Fe(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ll(s),t}function jp(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sd)}catch(t){console.error(t)}}Sd(),Su.exports=ze;var _d=Su.exports,$a=_d;Ts.createRoot=$a.createRoot,Ts.hydrateRoot=$a.hydrateRoot;/** * @license lucide-react v0.344.0 - ISC @@ -156,7 +156,7 @@ Error generating stack: `+s.message+` You should use \`ref\` from render prop of Item component. Example: {({ ref }) =>
}
-`}}const Bd=t=>t[0].current instanceof Element,rg=t=>{if(Bd(t))return t;throw new jl},Ud=I.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},isRefRegistered:()=>!1});class ig{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var sg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const[u,h]=I.useState(null),f=I.useRef(new Map),p=I.useRef(null),y=I.useCallback((w,P,S,_)=>{if(vt)return;const N=Array.from(f.current);if(typeof S=="number"&&(N[S]===void 0||!Bd(N[S])))throw new jl(`Failed to open at index ${S}`);const{slides:F,index:M}=N.map(rg).sort(([{current:A}],[{current:D}])=>tg(A,D)).reduce((A,D,Z)=>{const[C,j]=D,{width:T,height:B,original:b,originalSrcset:he,thumbnail:rt,cropped:Dn,content:Ge,id:it}=j,sh=sg(j,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return(w===C||it!==void 0&&String(it)===P)&&(A.index=Z),A.slides.push(Object.assign(Object.assign(Object.assign({w:Number(T),h:Number(B),src:b,srcset:he,msrc:rt,element:C.current,thumbCropped:Dn,content:Ge},Ge!==void 0?{type:"html"}:{}),it!==void 0?{pid:it}:{}),sh)),A},{slides:[],index:S||null}),re=_&&_.clientX!==void 0&&_.clientY!==void 0?{x:_.clientX,y:_.clientY}:null,R=new Gm(Object.assign({dataSource:F,index:ng(M,P),initialPointerPos:re},e||{}));vt=R,R.on("contentActivate",({content:A})=>{A.data.content?h(_d.createPortal(A.data.content,A.element)):h(null)}),R.on("close",()=>{h(null)}),a&&R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(D,Z)=>{D.setAttribute("download",""),D.setAttribute("target","_blank"),D.setAttribute("rel","noopener"),R.on("change",()=>{var C;if(!(!((C=Z.currSlide)===null||C===void 0)&&C.data.src))return;const j=D;j.href=Z.currSlide.data.src})}})}),l&&R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(D,Z)=>{D.style.position="absolute",D.style.bottom="15px",D.style.left="0",D.style.right="0",D.style.padding="0 20px",D.style.color="var(--pswp-icon-color)",D.style.textAlign="center",D.style.fontSize="14px",D.style.lineHeight="1.5",D.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",R.on("change",()=>{if(!Z.currSlide)return;const{caption:C,alt:j}=Z.currSlide.data;D.innerHTML=C||j||""})}})}),Array.isArray(r)&&r.forEach(A=>{R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement(A)})}),typeof n=="function"&&n(new ig(R)),typeof s=="function"&&s(R);const De=()=>({gallery:{galleryUID:i}});R.on("beforeOpen",()=>{var A;if(i===void 0)return;if(!Ja(Wn())){window.history.pushState(De(),document.title);return}if(!!(!((A=window.history.state)===null||A===void 0)&&A.gallery))return;const C=qa(),j=Wn(),T=Ya(j),B=`${C}${T?`#${T}`:""}`,b=`${C}#${j}`;window.history.replaceState(window.history.state,document.title,B),window.history.pushState(De(),document.title,b)}),R.on("change",()=>{var A;if(i===void 0)return;const D=((A=R.currSlide)===null||A===void 0?void 0:A.data.pid)||R.currIndex+1,Z=qa(),C=Ya(Wn()),j=bd({gid:i,pid:D}),T=`${Z}#${C}&${j}`;window.history.replaceState(De(),document.title,T)});const ie=()=>{i!==void 0&&vt!==null&&vt.close()};window.addEventListener("popstate",ie),R.on("destroy",()=>{i!==void 0&&(window.removeEventListener("popstate",ie),Ja(Wn())&&window.history.back()),vt=null}),R.init(),typeof o=="function"&&o(R)},[e,n,r,i,s,o,l,a]);I.useEffect(()=>()=>{vt&&vt.close()},[]);const v=I.useCallback(()=>{if(i===void 0||vt!==null)return;const w=Wn();if(w.length<5)return;const P=Ll(w),{pid:S,gid:_}=P;if(!(!S||!_)){if(f.current.size===0){p.current=S;return}S&&_===String(i)&&y(null,S)}},[y,i]);I.useEffect(()=>(v(),window.addEventListener("popstate",v),()=>{window.removeEventListener("popstate",v)}),[v]);const x=I.useCallback(w=>{f.current.delete(w)},[]),E=I.useCallback((w,P)=>{if(f.current.set(w,P),p.current===null)return;const{id:S}=P;if(S===p.current){y(w),p.current=null;return}if(!S){const _=parseInt(p.current,10)-1,N=Array.from(f.current.keys())[_];N&&(y(N),p.current=null)}},[y]),m=I.useCallback(w=>f.current.has(w),[]),d=I.useCallback(w=>{y(null,null,w)},[y]),g=I.useMemo(()=>({remove:x,set:E,handleClick:y,open:d,isRefRegistered:m}),[x,E,y,d,m]);return Ro.createElement(Ud.Provider,{value:g},t,u)};Hd.propTypes={children:U.any,options:U.object,plugins:U.func,uiElements:U.array,id:U.oneOfType([U.string,U.number]),onBeforeOpen:U.func,onOpen:U.func,withCaption:U.bool,withDownloadButton:U.bool};const og=()=>I.useContext(Ud);var lg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{children:e}=t,n=lg(t,["children"]);const r=I.useRef(null),{remove:i,set:s,handleClick:o,isRefRegistered:l}=og(),a=I.useCallback(f=>{r.current=f,s(r,n)},[s,...Object.values(n)]),u=I.useCallback(f=>{if(!l(r))throw new jl;o(r,null,null,f)},[o,l]),h=I.useMemo(()=>({ref:a,open:u}),[a,u]);return I.useEffect(()=>()=>{r.current===null&&i(r)},[i]),e(h)};Zd.propTypes={children:U.func.isRequired,original:U.string,originalSrcset:U.string,thumbnail:U.string,width:U.oneOfType([U.number,U.string]),height:U.oneOfType([U.number,U.string]),alt:U.string,caption:U.string,content:U.element,html:U.string,id:U.oneOfType([U.number,U.string]),cropped:U.bool};function ag({screenshots:t}){return c.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Screenshots"}),c.jsx(Hd,{children:c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2 sm:gap-4",children:t.map((e,n)=>c.jsx(Zd,{original:e,thumbnail:e,width:1280,height:720,children:({ref:r,open:i})=>c.jsxs("div",{ref:r,onClick:i,className:"aspect-video rounded-lg overflow-hidden bg-muted cursor-pointer group relative",children:[c.jsx("img",{src:e,alt:`Screenshot ${n+1}`,className:"w-full h-full object-cover transition-transform group-hover:scale-105",onError:s=>{const o=s.target;o.style.display="none"}}),c.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:c.jsx("span",{className:"text-white text-xs sm:text-sm font-medium px-2 text-center",children:"Tap to View"})})]})},n))})})]})}const ug={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},eu=t=>{let e;const n=new Set,r=(h,f)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const y=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),n.forEach(v=>v(e,y))}},i=()=>e,a={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(ug?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,a);return a},cg=t=>t?eu(t):eu;var Wd={exports:{}},Vd={},Qd={exports:{}},Kd={};/** +`}}const Bd=t=>t[0].current instanceof Element,rg=t=>{if(Bd(t))return t;throw new jl},Ud=I.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},isRefRegistered:()=>!1});class ig{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var sg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const[u,h]=I.useState(null),f=I.useRef(new Map),p=I.useRef(null),y=I.useCallback((w,P,_,S)=>{if(vt)return;const N=Array.from(f.current);if(typeof _=="number"&&(N[_]===void 0||!Bd(N[_])))throw new jl(`Failed to open at index ${_}`);const{slides:F,index:M}=N.map(rg).sort(([{current:A}],[{current:D}])=>tg(A,D)).reduce((A,D,Z)=>{const[C,j]=D,{width:T,height:B,original:b,originalSrcset:he,thumbnail:rt,cropped:Dn,content:Ge,id:it}=j,sh=sg(j,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return(w===C||it!==void 0&&String(it)===P)&&(A.index=Z),A.slides.push(Object.assign(Object.assign(Object.assign({w:Number(T),h:Number(B),src:b,srcset:he,msrc:rt,element:C.current,thumbCropped:Dn,content:Ge},Ge!==void 0?{type:"html"}:{}),it!==void 0?{pid:it}:{}),sh)),A},{slides:[],index:_||null}),re=S&&S.clientX!==void 0&&S.clientY!==void 0?{x:S.clientX,y:S.clientY}:null,R=new Gm(Object.assign({dataSource:F,index:ng(M,P),initialPointerPos:re},e||{}));vt=R,R.on("contentActivate",({content:A})=>{A.data.content?h(_d.createPortal(A.data.content,A.element)):h(null)}),R.on("close",()=>{h(null)}),a&&R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(D,Z)=>{D.setAttribute("download",""),D.setAttribute("target","_blank"),D.setAttribute("rel","noopener"),R.on("change",()=>{var C;if(!(!((C=Z.currSlide)===null||C===void 0)&&C.data.src))return;const j=D;j.href=Z.currSlide.data.src})}})}),l&&R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(D,Z)=>{D.style.position="absolute",D.style.bottom="15px",D.style.left="0",D.style.right="0",D.style.padding="0 20px",D.style.color="var(--pswp-icon-color)",D.style.textAlign="center",D.style.fontSize="14px",D.style.lineHeight="1.5",D.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",R.on("change",()=>{if(!Z.currSlide)return;const{caption:C,alt:j}=Z.currSlide.data;D.innerHTML=C||j||""})}})}),Array.isArray(r)&&r.forEach(A=>{R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement(A)})}),typeof n=="function"&&n(new ig(R)),typeof s=="function"&&s(R);const De=()=>({gallery:{galleryUID:i}});R.on("beforeOpen",()=>{var A;if(i===void 0)return;if(!Ja(Wn())){window.history.pushState(De(),document.title);return}if(!!(!((A=window.history.state)===null||A===void 0)&&A.gallery))return;const C=qa(),j=Wn(),T=Ya(j),B=`${C}${T?`#${T}`:""}`,b=`${C}#${j}`;window.history.replaceState(window.history.state,document.title,B),window.history.pushState(De(),document.title,b)}),R.on("change",()=>{var A;if(i===void 0)return;const D=((A=R.currSlide)===null||A===void 0?void 0:A.data.pid)||R.currIndex+1,Z=qa(),C=Ya(Wn()),j=bd({gid:i,pid:D}),T=`${Z}#${C}&${j}`;window.history.replaceState(De(),document.title,T)});const ie=()=>{i!==void 0&&vt!==null&&vt.close()};window.addEventListener("popstate",ie),R.on("destroy",()=>{i!==void 0&&(window.removeEventListener("popstate",ie),Ja(Wn())&&window.history.back()),vt=null}),R.init(),typeof o=="function"&&o(R)},[e,n,r,i,s,o,l,a]);I.useEffect(()=>()=>{vt&&vt.close()},[]);const v=I.useCallback(()=>{if(i===void 0||vt!==null)return;const w=Wn();if(w.length<5)return;const P=Ll(w),{pid:_,gid:S}=P;if(!(!_||!S)){if(f.current.size===0){p.current=_;return}_&&S===String(i)&&y(null,_)}},[y,i]);I.useEffect(()=>(v(),window.addEventListener("popstate",v),()=>{window.removeEventListener("popstate",v)}),[v]);const x=I.useCallback(w=>{f.current.delete(w)},[]),E=I.useCallback((w,P)=>{if(f.current.set(w,P),p.current===null)return;const{id:_}=P;if(_===p.current){y(w),p.current=null;return}if(!_){const S=parseInt(p.current,10)-1,N=Array.from(f.current.keys())[S];N&&(y(N),p.current=null)}},[y]),m=I.useCallback(w=>f.current.has(w),[]),d=I.useCallback(w=>{y(null,null,w)},[y]),g=I.useMemo(()=>({remove:x,set:E,handleClick:y,open:d,isRefRegistered:m}),[x,E,y,d,m]);return Ro.createElement(Ud.Provider,{value:g},t,u)};Hd.propTypes={children:U.any,options:U.object,plugins:U.func,uiElements:U.array,id:U.oneOfType([U.string,U.number]),onBeforeOpen:U.func,onOpen:U.func,withCaption:U.bool,withDownloadButton:U.bool};const og=()=>I.useContext(Ud);var lg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{children:e}=t,n=lg(t,["children"]);const r=I.useRef(null),{remove:i,set:s,handleClick:o,isRefRegistered:l}=og(),a=I.useCallback(f=>{r.current=f,s(r,n)},[s,...Object.values(n)]),u=I.useCallback(f=>{if(!l(r))throw new jl;o(r,null,null,f)},[o,l]),h=I.useMemo(()=>({ref:a,open:u}),[a,u]);return I.useEffect(()=>()=>{r.current===null&&i(r)},[i]),e(h)};Zd.propTypes={children:U.func.isRequired,original:U.string,originalSrcset:U.string,thumbnail:U.string,width:U.oneOfType([U.number,U.string]),height:U.oneOfType([U.number,U.string]),alt:U.string,caption:U.string,content:U.element,html:U.string,id:U.oneOfType([U.number,U.string]),cropped:U.bool};function ag({screenshots:t}){return c.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Screenshots"}),c.jsx(Hd,{children:c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2 sm:gap-4",children:t.map((e,n)=>c.jsx(Zd,{original:e,thumbnail:e,width:1280,height:720,children:({ref:r,open:i})=>c.jsxs("div",{ref:r,onClick:i,className:"aspect-video rounded-lg overflow-hidden bg-muted cursor-pointer group relative",children:[c.jsx("img",{src:e,alt:`Screenshot ${n+1}`,className:"w-full h-full object-cover transition-transform group-hover:scale-105",onError:s=>{const o=s.target;o.style.display="none"}}),c.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:c.jsx("span",{className:"text-white text-xs sm:text-sm font-medium px-2 text-center",children:"Tap to View"})})]})},n))})})]})}const ug={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},eu=t=>{let e;const n=new Set,r=(h,f)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const y=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),n.forEach(v=>v(e,y))}},i=()=>e,a={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(ug?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,a);return a},cg=t=>t?eu(t):eu;var Wd={exports:{}},Vd={},Qd={exports:{}},Kd={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -185,7 +185,7 @@ Error generating stack: `+s.message+` `,children:[c.jsx(o,{className:"h-5 w-5 sm:mr-2"}),c.jsx("span",{className:"hidden sm:inline",children:s})]},i))})})}class Qg{constructor(){An(this,"logs",[]);An(this,"maxLogs",1e3)}createEntry(e,n,r){return{timestamp:new Date().toISOString(),level:e,message:n,details:r}}addLog(e){this.logs.unshift(e),this.logs.length>this.maxLogs&&this.logs.pop();const n=`color: ${e.level==="error"?"red":e.level==="warn"?"orange":"blue"}; font-weight: bold;`;console.groupCollapsed(`%c${e.level.toUpperCase()}: ${e.message}`,n),console.log("Timestamp:",e.timestamp),e.details&&console.log("Details:",e.details),console.groupEnd()}info(e,n){this.addLog(this.createEntry("info",e,n))}warn(e,n){this.addLog(this.createEntry("warn",e,n))}error(e,n){this.addLog(this.createEntry("error",e,n))}getLogs(){return[...this.logs]}getErrorLogs(){return this.logs.filter(e=>e.level==="error")}clearLogs(){this.logs=[]}}const Je=new Qg;function Kg({level:t}){switch(t){case"error":return c.jsx(es,{className:"h-4 w-4 text-red-500"});case"warn":return c.jsx(Op,{className:"h-4 w-4 text-yellow-500"});default:return c.jsx(Cd,{className:"h-4 w-4 text-blue-500"})}}function Gg(t){try{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded",children:JSON.stringify(t,null,2)})}catch{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded text-red-500",children:"[Error formatting details]"})}}function Xg({onClose:t}){const[e,n]=I.useState("error"),r=e==="all"?Je.getLogs():Je.getErrorLogs();return c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col border border-border",children:[c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(es,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Application Logs"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxs("button",{onClick:()=>{const i=r.map(a=>`[${a.timestamp}] ${a.level.toUpperCase()}: ${a.message}${a.details?` Details: `+JSON.stringify(a.details,null,2):""}`).join(` -`),s=new Blob([i],{type:"text/plain"}),o=URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=`nx-working-logs-${new Date().toISOString()}.txt`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)},className:"flex items-center space-x-2 px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:[c.jsx(ba,{className:"h-4 w-4"}),c.jsx("span",{children:"Export Logs"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("select",{value:e,onChange:i=>n(i.target.value),className:"bg-muted border border-border rounded-lg px-3 py-1.5 text-foreground hover:border-primary/50 transition-colors",children:[c.jsxs("option",{value:"all",children:["All Logs (",Je.getLogs().length,")"]}),c.jsxs("option",{value:"error",children:["Errors Only (",Je.getErrorLogs().length,")"]})]}),c.jsx("button",{onClick:()=>{Je.clearLogs(),t()},className:"px-3 py-1.5 text-sm text-red-500 hover:text-red-600 transition-colors",children:"Clear All Logs"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground",children:[c.jsx(ba,{className:"h-12 w-12 mb-4 opacity-50"}),c.jsx("p",{children:"No logs to display"})]}):c.jsx("div",{className:"space-y-4",children:r.map((i,s)=>c.jsxs("div",{className:`p-3 rounded-lg border ${i.level==="error"?"bg-red-500/10 border-red-500/20":i.level==="warn"?"bg-yellow-500/10 border-yellow-500/20":"bg-blue-500/10 border-blue-500/20"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kg,{level:i.level}),c.jsx("span",{className:"text-sm font-medium",children:i.level.toUpperCase()})]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:new Date(i.timestamp).toLocaleString()})]}),c.jsx("p",{className:"mb-2 text-foreground",children:i.message}),i.details&&Gg(i.details)]},s))})})]})})}function Yg({onClose:t}){const[e,n]=I.useState(!1),{itemsPerPage:r,setItemsPerPage:i,namePrecision:s,setNamePrecision:o,tidPrecision:l,setTidPrecision:a,showLogs:u,setShowLogs:h,showVersionHistory:f,setShowVersionHistory:p,autoRefreshInterval:y,setAutoRefreshInterval:v,maxDlcDisplay:x,setMaxDlcDisplay:E,maxUpdateDisplay:m,setMaxUpdateDisplay:d,dataSources:g,setDataSource:w,resetDataSources:P}=tn();return c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-2 sm:p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl w-full max-w-lg border border-border",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Nd,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Settings"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]}),c.jsxs("div",{className:"p-4 space-y-6 max-h-[calc(100vh-200px)] overflow-y-auto",children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Search Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Name Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:s,onChange:S=>o(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Fuzzy Match"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Title ID Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:l,onChange:S=>a(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Partial Match"})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Display Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Items per page"}),c.jsxs("select",{value:r,onChange:S=>i(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:10,children:"10 items"}),c.jsx("option",{value:25,children:"25 items"}),c.jsx("option",{value:50,children:"50 items"}),c.jsx("option",{value:100,children:"100 items"})]})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium",children:"Show Debug Logs"}),c.jsx("button",{onClick:()=>h(!u),className:` +`),s=new Blob([i],{type:"text/plain"}),o=URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=`nx-working-logs-${new Date().toISOString()}.txt`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)},className:"flex items-center space-x-2 px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:[c.jsx(ba,{className:"h-4 w-4"}),c.jsx("span",{children:"Export Logs"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("select",{value:e,onChange:i=>n(i.target.value),className:"bg-muted border border-border rounded-lg px-3 py-1.5 text-foreground hover:border-primary/50 transition-colors",children:[c.jsxs("option",{value:"all",children:["All Logs (",Je.getLogs().length,")"]}),c.jsxs("option",{value:"error",children:["Errors Only (",Je.getErrorLogs().length,")"]})]}),c.jsx("button",{onClick:()=>{Je.clearLogs(),t()},className:"px-3 py-1.5 text-sm text-red-500 hover:text-red-600 transition-colors",children:"Clear All Logs"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground",children:[c.jsx(ba,{className:"h-12 w-12 mb-4 opacity-50"}),c.jsx("p",{children:"No logs to display"})]}):c.jsx("div",{className:"space-y-4",children:r.map((i,s)=>c.jsxs("div",{className:`p-3 rounded-lg border ${i.level==="error"?"bg-red-500/10 border-red-500/20":i.level==="warn"?"bg-yellow-500/10 border-yellow-500/20":"bg-blue-500/10 border-blue-500/20"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kg,{level:i.level}),c.jsx("span",{className:"text-sm font-medium",children:i.level.toUpperCase()})]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:new Date(i.timestamp).toLocaleString()})]}),c.jsx("p",{className:"mb-2 text-foreground",children:i.message}),i.details&&Gg(i.details)]},s))})})]})})}function Yg({onClose:t}){const[e,n]=I.useState(!1),{itemsPerPage:r,setItemsPerPage:i,namePrecision:s,setNamePrecision:o,tidPrecision:l,setTidPrecision:a,showLogs:u,setShowLogs:h,showVersionHistory:f,setShowVersionHistory:p,autoRefreshInterval:y,setAutoRefreshInterval:v,maxDlcDisplay:x,setMaxDlcDisplay:E,maxUpdateDisplay:m,setMaxUpdateDisplay:d,dataSources:g,setDataSource:w,resetDataSources:P}=tn();return c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-2 sm:p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl w-full max-w-lg border border-border",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Nd,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Settings"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]}),c.jsxs("div",{className:"p-4 space-y-6 max-h-[calc(100vh-200px)] overflow-y-auto",children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Search Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Name Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:s,onChange:_=>o(parseFloat(_.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Fuzzy Match"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Title ID Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:l,onChange:_=>a(parseFloat(_.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Partial Match"})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Display Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Items per page"}),c.jsxs("select",{value:r,onChange:_=>i(Number(_.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:10,children:"10 items"}),c.jsx("option",{value:25,children:"25 items"}),c.jsx("option",{value:50,children:"50 items"}),c.jsx("option",{value:100,children:"100 items"})]})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium",children:"Show Debug Logs"}),c.jsx("button",{onClick:()=>h(!u),className:` relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 ${u?"bg-primary":"bg-muted"} @@ -201,10 +201,10 @@ Details: `+JSON.stringify(a.details,null,2):""}`).join(` inline-block h-4 w-4 transform rounded-full bg-white shadow-lg transition-transform duration-200 ${f?"translate-x-6":"translate-x-1"} - `})})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum DLCs to display"}),c.jsxs("select",{value:x,onChange:S=>E(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 DLCs"}),c.jsx("option",{value:10,children:"10 DLCs"}),c.jsx("option",{value:15,children:"15 DLCs"}),c.jsx("option",{value:20,children:"20 DLCs"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum Updates to display"}),c.jsxs("select",{value:m,onChange:S=>d(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 Updates"}),c.jsx("option",{value:10,children:"10 Updates"}),c.jsx("option",{value:15,children:"15 Updates"}),c.jsx("option",{value:20,children:"20 Updates"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Auto Refresh Interval"}),c.jsxs("select",{value:y||"",onChange:S=>v(S.target.value?Number(S.target.value):null),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"Disabled"}),c.jsx("option",{value:"300000",children:"5 minutes"}),c.jsx("option",{value:"600000",children:"10 minutes"}),c.jsx("option",{value:"1800000",children:"30 minutes"}),c.jsx("option",{value:"3600000",children:"1 hour"})]})]})]}),c.jsxs("section",{className:"border-t border-border pt-4",children:[c.jsxs("button",{onClick:()=>n(!e),className:"flex items-center justify-between w-full text-sm font-medium p-2 hover:bg-muted rounded-lg transition-colors",children:["Advanced Settings",e?c.jsx(Up,{className:"h-4 w-4"}):c.jsx($p,{className:"h-4 w-4"})]}),e&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Working Content URL"}),c.jsx("input",{type:"url",value:g.workingContent,onChange:S=>w("workingContent",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for working.txt"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Titles Database URL"}),c.jsx("input",{type:"url",value:g.titlesDb,onChange:S=>w("titlesDb",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for titles_db.txt"})]}),c.jsx("div",{className:"flex justify-end",children:c.jsx("button",{onClick:P,className:"px-4 py-2 text-sm bg-red-500/10 text-red-500 rounded-lg hover:bg-red-500/20 transition-colors",children:"Reset to Defaults"})})]})]})]})]})})}function qg({onToggleTheme:t}){const[e,n]=I.useState(!1),[r,i]=I.useState(!1),{isDark:s,showLogs:o}=tn(),[l,a]=I.useState(0),[u,h]=I.useState(0);return I.useEffect(()=>{const f=()=>{const y=Je.getErrorLogs(),v=Je.getLogs();a(y.length),h(v.length)};f();const p=setInterval(f,1e3);return()=>clearInterval(p)},[]),c.jsxs("header",{className:"bg-card border-b border-border",children:[c.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(kd,{className:"h-6 w-6 text-primary"}),c.jsx("h1",{className:"text-xl font-bold",children:"NX Working Content Tracker"})]}),c.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[o&&u>0&&c.jsxs("button",{onClick:()=>n(!0),className:` + `})})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum DLCs to display"}),c.jsxs("select",{value:x,onChange:_=>E(Number(_.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 DLCs"}),c.jsx("option",{value:10,children:"10 DLCs"}),c.jsx("option",{value:15,children:"15 DLCs"}),c.jsx("option",{value:20,children:"20 DLCs"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum Updates to display"}),c.jsxs("select",{value:m,onChange:_=>d(Number(_.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 Updates"}),c.jsx("option",{value:10,children:"10 Updates"}),c.jsx("option",{value:15,children:"15 Updates"}),c.jsx("option",{value:20,children:"20 Updates"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Auto Refresh Interval"}),c.jsxs("select",{value:y||"",onChange:_=>v(_.target.value?Number(_.target.value):null),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"Disabled"}),c.jsx("option",{value:"300000",children:"5 minutes"}),c.jsx("option",{value:"600000",children:"10 minutes"}),c.jsx("option",{value:"1800000",children:"30 minutes"}),c.jsx("option",{value:"3600000",children:"1 hour"})]})]})]}),c.jsxs("section",{className:"border-t border-border pt-4",children:[c.jsxs("button",{onClick:()=>n(!e),className:"flex items-center justify-between w-full text-sm font-medium p-2 hover:bg-muted rounded-lg transition-colors",children:["Advanced Settings",e?c.jsx(Up,{className:"h-4 w-4"}):c.jsx($p,{className:"h-4 w-4"})]}),e&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Working Content URL"}),c.jsx("input",{type:"url",value:g.workingContent,onChange:_=>w("workingContent",_.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for working.txt"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Titles Database URL"}),c.jsx("input",{type:"url",value:g.titlesDb,onChange:_=>w("titlesDb",_.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for titles_db.txt"})]}),c.jsx("div",{className:"flex justify-end",children:c.jsx("button",{onClick:P,className:"px-4 py-2 text-sm bg-red-500/10 text-red-500 rounded-lg hover:bg-red-500/20 transition-colors",children:"Reset to Defaults"})})]})]})]})]})})}function qg({onToggleTheme:t}){const[e,n]=I.useState(!1),[r,i]=I.useState(!1),{isDark:s,showLogs:o}=tn(),[l,a]=I.useState(0),[u,h]=I.useState(0);return I.useEffect(()=>{const f=()=>{const y=Je.getErrorLogs(),v=Je.getLogs();a(y.length),h(v.length)};f();const p=setInterval(f,1e3);return()=>clearInterval(p)},[]),c.jsxs("header",{className:"bg-card border-b border-border",children:[c.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(kd,{className:"h-6 w-6 text-primary"}),c.jsx("h1",{className:"text-xl font-bold",children:"NX Content Tracker"})]}),c.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[o&&u>0&&c.jsxs("button",{onClick:()=>n(!0),className:` flex items-center space-x-2 px-3 py-2 rounded-lg transition-colors ${l>0?"bg-red-500/10 text-red-500 hover:bg-red-500/20":"bg-primary/10 text-primary hover:bg-primary/20"} - `,title:`${u} total log${u!==1?"s":""}${l>0?`, including ${l} error${l!==1?"s":""}`:""}`,children:[c.jsx(es,{className:"h-4 w-4"}),c.jsxs("span",{children:["View Logs ",l>0?`(${l})`:""]})]}),c.jsx("button",{onClick:()=>i(!0),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Open settings",children:c.jsx(Nd,{className:"h-5 w-5"})}),c.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":s?"Switch to light mode":"Switch to dark mode",children:s?c.jsx(Vp,{className:"h-5 w-5"}):c.jsx(Zp,{className:"h-5 w-5"})}),c.jsxs("a",{href:"https://github.com/ghost-land/NX-Working",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center space-x-2 px-3 py-1.5 rounded-lg hover:bg-muted transition-colors",children:[c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),c.jsx("span",{children:"View on GitHub"})]})]})]}),e&&c.jsx(Xg,{onClose:()=>n(!1)}),r&&c.jsx(Yg,{onClose:()=>i(!1)})]})}function Jg({nameQuery:t,tidQuery:e,onNameChange:n,onTidChange:r,resultCount:i,totalCount:s}){return c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:t,onChange:o=>n(o.target.value),className:` + `,title:`${u} total log${u!==1?"s":""}${l>0?`, including ${l} error${l!==1?"s":""}`:""}`,children:[c.jsx(es,{className:"h-4 w-4"}),c.jsxs("span",{className:"hidden sm:inline",children:["View Logs ",l>0?`(${l})`:""]}),c.jsx("span",{className:"sm:hidden",children:l>0?l:u})]}),c.jsx("button",{onClick:()=>i(!0),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Open settings",children:c.jsx(Nd,{className:"h-5 w-5"})}),c.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":s?"Switch to light mode":"Switch to dark mode",children:s?c.jsx(Vp,{className:"h-5 w-5"}):c.jsx(Zp,{className:"h-5 w-5"})}),c.jsxs("a",{href:"https://github.com/ghost-land/NX-Content",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center space-x-2 px-3 py-1.5 rounded-lg hover:bg-muted transition-colors",children:[c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),c.jsx("span",{children:"View on GitHub"})]})]})]}),e&&c.jsx(Xg,{onClose:()=>n(!1)}),r&&c.jsx(Yg,{onClose:()=>i(!1)})]})}function Jg({nameQuery:t,tidQuery:e,onNameChange:n,onTidChange:r,resultCount:i,totalCount:s}){return c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:t,onChange:o=>n(o.target.value),className:` block w-full pl-10 pr-10 py-3 bg-card border border-border rounded-lg text-foreground placeholder-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent @@ -216,6 +216,6 @@ Details: `+JSON.stringify(a.details,null,2):""}`).join(` focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent hover:border-primary/50 transition-all duration-200 ${e?"ring-2 ring-primary":""} - `,placeholder:"Search by Title ID..."}),e&&c.jsx("button",{onClick:()=>r(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),i!==void 0&&s!==void 0&&c.jsx("div",{className:"hidden sm:flex items-center justify-center px-4 py-2 bg-muted rounded-lg min-w-[120px]",children:c.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.toLocaleString()," / ",s.toLocaleString()]})})]})}function pt(t){return Array.isArray?Array.isArray(t):qd(t)==="[object Array]"}const ev=1/0;function tv(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ev?"-0":e}function nv(t){return t==null?"":tv(t)}function et(t){return typeof t=="string"}function Xd(t){return typeof t=="number"}function rv(t){return t===!0||t===!1||iv(t)&&qd(t)=="[object Boolean]"}function Yd(t){return typeof t=="object"}function iv(t){return Yd(t)&&t!==null}function Ne(t){return t!=null}function js(t){return!t.trim().length}function qd(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const sv="Incorrect 'index' type",ov=t=>`Invalid value for key ${t}`,lv=t=>`Pattern length exceeds max of ${t}.`,av=t=>`Missing ${t} property in key`,uv=t=>`Property 'weight' in key '${t}' must be a positive integer`,iu=Object.prototype.hasOwnProperty;class cv{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let i=Jd(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Jd(t){let e=null,n=null,r=null,i=1,s=null;if(et(t)||pt(t))r=t,e=su(t),n=Po(t);else{if(!iu.call(t,"name"))throw new Error(av("name"));const o=t.name;if(r=o,iu.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(uv(o));e=su(o),n=Po(o),s=t.getFn}return{path:e,id:n,weight:i,src:r,getFn:s}}function su(t){return pt(t)?t:t.split(".")}function Po(t){return pt(t)?t.join("."):t}function dv(t,e){let n=[],r=!1;const i=(s,o,l)=>{if(Ne(s))if(!o[l])n.push(s);else{let a=o[l];const u=s[a];if(!Ne(u))return;if(l===o.length-1&&(et(u)||Xd(u)||rv(u)))n.push(nv(u));else if(pt(u)){r=!0;for(let h=0,f=u.length;ht.score===e.score?t.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Ne(o)){if(pt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(Ne(h))if(et(h)&&!js(h)){let f={v:h,i:u,n:this.norm.get(h)};l.push(f)}else pt(h)&&h.forEach((f,p)=>{a.push({nestedArrIndex:p,value:f})})}r.$[s]=l}else if(et(o)&&!js(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function eh(t,e,{getFn:n=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const i=new Tl({getFn:n,fieldNormWeight:r});return i.setKeys(t.map(Jd)),i.setSources(e),i.create(),i}function yv(t,{getFn:e=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const{keys:r,records:i}=t,s=new Tl({getFn:e,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s}function Yr(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:i=z.distance,ignoreLocation:s=z.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(r-n);return i?o+l/i:l?1:o}function xv(t=[],e=z.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=t.length;s=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}const Bt=32;function wv(t,e,n,{location:r=z.location,distance:i=z.distance,threshold:s=z.threshold,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,includeMatches:a=z.includeMatches,ignoreLocation:u=z.ignoreLocation}={}){if(e.length>Bt)throw new Error(lv(Bt));const h=e.length,f=t.length,p=Math.max(0,Math.min(r,f));let y=s,v=p;const x=l>1||a,E=x?Array(f):[];let m;for(;(m=t.indexOf(e,v))>-1;){let _=Yr(e,{currentLocation:m,expectedLocation:p,distance:i,ignoreLocation:u});if(y=Math.min(_,y),v=m+h,x){let N=0;for(;N=M;ie-=1){let A=ie-1,D=n[t.charAt(A)];if(x&&(E[A]=+!!D),R[ie]=(R[ie+1]<<1|1)&D,_&&(R[ie]|=(d[ie+1]|d[ie])<<1|1|d[ie+1]),R[ie]&P&&(g=Yr(e,{errors:_,currentLocation:A,expectedLocation:p,distance:i,ignoreLocation:u}),g<=y)){if(y=g,v=A,v<=p)break;M=Math.max(1,2*p-v)}}if(Yr(e,{errors:_+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>y)break;d=R}const S={isMatch:v>=0,score:Math.max(.001,g)};if(x){const _=xv(E,l);_.length?a&&(S.indices=_):S.isMatch=!1}return S}function Sv(t){let e={};for(let n=0,r=t.length;n{this.chunks.push({pattern:p,alphabet:Sv(p),startIndex:y})},f=this.pattern.length;if(f>Bt){let p=0;const y=f%Bt,v=f-y;for(;p{const{isMatch:m,score:d,indices:g}=wv(e,v,x,{location:i+E,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});m&&(p=!0),f+=d,m&&g&&(h=[...h,...g])});let y={isMatch:p,score:p?f/this.chunks.length:1};return p&&r&&(y.indices=h),y}}class Rt{constructor(e){this.pattern=e}static isMultiMatch(e){return ou(e,this.multiRegex)}static isSingleMatch(e){return ou(e,this.singleRegex)}search(){}}function ou(t,e){const n=t.match(e);return n?n[1]:null}class _v extends Rt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class kv extends Rt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Ev extends Rt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Cv extends Rt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Pv extends Rt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Nv extends Rt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class nh extends Rt{constructor(e,{location:n=z.location,threshold:r=z.threshold,distance:i=z.distance,includeMatches:s=z.includeMatches,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,isCaseSensitive:a=z.isCaseSensitive,ignoreLocation:u=z.ignoreLocation}={}){super(e),this._bitapSearch=new th(e,{location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class rh extends Rt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const i=[],s=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+s,i.push([r,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const No=[_v,rh,Ev,Cv,Nv,Pv,kv,nh],lu=No.length,Lv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,jv="|";function Tv(t,e={}){return t.split(jv).map(n=>{let r=n.trim().split(Lv).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=r.length;s!!(t[Oi.AND]||t[Oi.OR]),Dv=t=>!!t[To.PATH],Av=t=>!pt(t)&&Yd(t)&&!Io(t),au=t=>({[Oi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ih(t,e,{auto:n=!0}={}){const r=i=>{let s=Object.keys(i);const o=Dv(i);if(!o&&s.length>1&&!Io(i))return r(au(i));if(Av(i)){const a=o?i[To.PATH]:s[0],u=o?i[To.PATTERN]:i[a];if(!et(u))throw new Error(ov(a));const h={keyId:Po(a),pattern:u};return n&&(h.searcher=jo(u,e)),h}let l={children:[],operator:s[0]};return s.forEach(a=>{const u=i[a];pt(u)&&u.forEach(h=>{l.children.push(r(h))})}),l};return Io(t)||(t=au(t)),r(t)}function Ov(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),n.score=r})}function Rv(t,e){const n=t.matches;e.matches=[],Ne(n)&&n.forEach(r=>{if(!Ne(r.indices)||!r.indices.length)return;const{indices:i,value:s}=r;let o={indices:i,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),e.matches.push(o)})}function Fv(t,e){e.score=t.score}function $v(t,e,{includeMatches:n=z.includeMatches,includeScore:r=z.includeScore}={}){const i=[];return n&&i.push(Rv),r&&i.push(Fv),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(a=>{a(s,l)}),l})}class Mn{constructor(e,n={},r){this.options={...z,...n},this.options.useExtendedSearch,this._keyStore=new cv(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Tl))throw new Error(sv);this._myIndex=n||eh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ne(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,i=this._docs.length;r-1&&(a=a.slice(0,n)),$v(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const n=jo(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=n.searchIn(s);a&&i.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:h}]})}),i}_searchLogical(e){const n=ih(e,this.options),r=(l,a,u)=>{if(!l.children){const{keyId:f,searcher:p}=l,y=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:p});return y&&y.length?[{idx:u,item:a,matches:y}]:[]}const h=[];for(let f=0,p=l.children.length;f{if(Ne(l)){let u=r(n,l,a);u.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),u.forEach(({matches:h})=>{s[a].matches.push(...h)}))}}),o}_searchObjectList(e){const n=jo(e,this.options),{keys:r,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Ne(o))return;let a=[];r.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:o[h],searcher:n}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:n,searcher:r}){if(!Ne(n))return[];let i=[];if(pt(n))n.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=r.searchIn(s);a&&i.push({score:u,key:e,value:s,idx:o,norm:l,indices:h})});else{const{v:s,n:o}=n,{isMatch:l,score:a,indices:u}=r.searchIn(s);l&&i.push({score:a,key:e,value:s,norm:o,indices:u})}return i}}Mn.version="7.0.0";Mn.createIndex=eh;Mn.parseIndex=yv;Mn.config=z;Mn.parseQuery=ih;Mv(zv);function Nr(t){if(!t)return!1;const e=new Date(t);return!isNaN(e.getTime())}function Ri(t){return!t.releaseDate||!Nr(t.releaseDate)?0:new Date(t.releaseDate).getTime()}function bv(t,e,n){switch(n){case"releaseDate":{if(t.type!=="base"||e.type!=="base")return t.id.localeCompare(e.id);const r=Ri(t),i=Ri(e);return r===0&&i===0?t.id.localeCompare(e.id):r===0?1:i===0?-1:r===i?(t.name||"").localeCompare(e.name||""):i-r}case"name":{const r=t.name||"Unknown Title",i=e.name||"Unknown Title";return r==="Unknown Title"&&i!=="Unknown Title"?1:i==="Unknown Title"&&r!=="Unknown Title"?-1:r.localeCompare(i)}case"size":{const r=t.size||0,i=e.size||0;return r===0&&i!==0?1:i===0&&r!==0?-1:i-r}case"id":default:return t.id.localeCompare(e.id)}}function Bv(t,e,n){const r=[...t].sort((i,s)=>{const o=bv(i,s,e);return n==="asc"?o:-o});if(e==="releaseDate"){const i=r.filter(o=>Nr(o.releaseDate)),s=r.filter(o=>!Nr(o.releaseDate));return n==="asc"?[...i,...s]:[...i,...s]}return r}function Uv(t){const e=t.filter(l=>l.type==="base"&&Nr(l.releaseDate)),n=t.filter(l=>l.type==="base"&&!Nr(l.releaseDate)),r=t.filter(l=>l.type!=="base"),i=e.sort((l,a)=>{const u=Ri(l),h=Ri(a);return u===h?(l.name||"").localeCompare(a.name||""):h-u}),s=n.sort((l,a)=>l.id.localeCompare(a.id)),o=r.sort((l,a)=>l.id.localeCompare(a.id));return[...i,...s,...o]}function Hv(t){return{threshold:Math.max(.1,1-t),distance:Math.floor(30*(1-t)),minMatchCharLength:Math.max(2,Math.floor(4*t)),location:0,ignoreLocation:!1,findAllMatches:!0,includeMatches:!0,useExtendedSearch:!1,isCaseSensitive:!1,tokenize:!0,matchAllTokens:!1}}function Zv(t){const[e,n]=I.useState(""),[r,i]=I.useState(""),[s,o]=I.useState("name"),[l,a]=I.useState("asc"),{namePrecision:u}=tn(),h=I.useMemo(()=>new Mn(t,{keys:["name"],...Hv(u)}),[t,u]),f=I.useCallback(()=>{let v=t;if(r){const x=r.toLowerCase();v=v.filter(E=>E.id.toLowerCase().includes(x))}if(e.trim()){const E=h.search(e).map(m=>m.item);if(r){const m=new Set(E.map(d=>d.id));v=v.filter(d=>m.has(d.id))}else v=E}return v},[h,t,e,r]),p=I.useCallback(v=>{o(v),a(x=>v===s&&x==="asc"?"desc":"asc")},[s]),y=I.useMemo(()=>{const v=f();return Bv(v,s,l)},[f,s,l]);return{nameQuery:e,setNameQuery:n,tidQuery:r,setTidQuery:i,results:y,sortField:s,sortDirection:l,toggleSort:p}}function uu(t){if(!t)return!1;try{const e=new Date(t);if(isNaN(e.getTime()))return!1;const n=e.getFullYear(),r=new Date().getFullYear();return n>=2e3&&n<=r+2}catch{return!1}}const Wv="nx-working",Vv="3.0.0",Qv="module",Kv={dev:"vite",build:"tsc && vite build",preview:"vite preview"},Gv={"@rollup/rollup-win32-x64-msvc":"^4.27.3",clsx:"^2.1.0","fuse.js":"^7.0.0","lucide-react":"^0.344.0","nx-working":"file:",photoswipe:"^5.4.3",react:"^18.2.0","react-dom":"^18.2.0","react-photoswipe-gallery":"^3.0.1",zustand:"^4.5.0"},Xv={"@types/react":"^18.2.56","@types/react-dom":"^18.2.19","@vitejs/plugin-react":"^4.2.1",autoprefixer:"^10.4.18",postcss:"^8.4.35",tailwindcss:"^3.4.1",typescript:"^5.2.2",vite:"^5.1.4"},Yv={name:Wv,private:!0,version:Vv,type:Qv,scripts:Kv,dependencies:Gv,devDependencies:Xv};function qv(){const{isDark:t,setDarkMode:e,itemsPerPage:n,lastActiveTab:r,setLastActiveTab:i}=tn(),[s,o]=I.useState([]),[l,a]=I.useState(!0),[u,h]=I.useState(1),{nameQuery:f,setNameQuery:p,tidQuery:y,setTidQuery:v,results:x,sortField:E,sortDirection:m,toggleSort:d}=Zv(s);if(I.useEffect(()=>{const _=document.documentElement;t?_.classList.add("dark"):_.classList.remove("dark")},[t]),I.useEffect(()=>{(async()=>{try{a(!0),Je.info("Starting data load");const[N,F,M]=await Promise.all([fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.json")]),[re,R]=await Promise.all([N.text(),F.text()]),De=await M.json(),ie=new Map(R.trim().split(` + `,placeholder:"Search by Title ID..."}),e&&c.jsx("button",{onClick:()=>r(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),i!==void 0&&s!==void 0&&c.jsx("div",{className:"hidden sm:flex items-center justify-center px-4 py-2 bg-muted rounded-lg min-w-[120px]",children:c.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.toLocaleString()," / ",s.toLocaleString()]})})]})}function pt(t){return Array.isArray?Array.isArray(t):qd(t)==="[object Array]"}const ev=1/0;function tv(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ev?"-0":e}function nv(t){return t==null?"":tv(t)}function et(t){return typeof t=="string"}function Xd(t){return typeof t=="number"}function rv(t){return t===!0||t===!1||iv(t)&&qd(t)=="[object Boolean]"}function Yd(t){return typeof t=="object"}function iv(t){return Yd(t)&&t!==null}function Ne(t){return t!=null}function js(t){return!t.trim().length}function qd(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const sv="Incorrect 'index' type",ov=t=>`Invalid value for key ${t}`,lv=t=>`Pattern length exceeds max of ${t}.`,av=t=>`Missing ${t} property in key`,uv=t=>`Property 'weight' in key '${t}' must be a positive integer`,iu=Object.prototype.hasOwnProperty;class cv{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let i=Jd(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Jd(t){let e=null,n=null,r=null,i=1,s=null;if(et(t)||pt(t))r=t,e=su(t),n=Po(t);else{if(!iu.call(t,"name"))throw new Error(av("name"));const o=t.name;if(r=o,iu.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(uv(o));e=su(o),n=Po(o),s=t.getFn}return{path:e,id:n,weight:i,src:r,getFn:s}}function su(t){return pt(t)?t:t.split(".")}function Po(t){return pt(t)?t.join("."):t}function dv(t,e){let n=[],r=!1;const i=(s,o,l)=>{if(Ne(s))if(!o[l])n.push(s);else{let a=o[l];const u=s[a];if(!Ne(u))return;if(l===o.length-1&&(et(u)||Xd(u)||rv(u)))n.push(nv(u));else if(pt(u)){r=!0;for(let h=0,f=u.length;ht.score===e.score?t.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Ne(o)){if(pt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(Ne(h))if(et(h)&&!js(h)){let f={v:h,i:u,n:this.norm.get(h)};l.push(f)}else pt(h)&&h.forEach((f,p)=>{a.push({nestedArrIndex:p,value:f})})}r.$[s]=l}else if(et(o)&&!js(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function eh(t,e,{getFn:n=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const i=new Tl({getFn:n,fieldNormWeight:r});return i.setKeys(t.map(Jd)),i.setSources(e),i.create(),i}function yv(t,{getFn:e=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const{keys:r,records:i}=t,s=new Tl({getFn:e,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s}function Yr(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:i=z.distance,ignoreLocation:s=z.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(r-n);return i?o+l/i:l?1:o}function xv(t=[],e=z.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=t.length;s=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}const Bt=32;function wv(t,e,n,{location:r=z.location,distance:i=z.distance,threshold:s=z.threshold,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,includeMatches:a=z.includeMatches,ignoreLocation:u=z.ignoreLocation}={}){if(e.length>Bt)throw new Error(lv(Bt));const h=e.length,f=t.length,p=Math.max(0,Math.min(r,f));let y=s,v=p;const x=l>1||a,E=x?Array(f):[];let m;for(;(m=t.indexOf(e,v))>-1;){let S=Yr(e,{currentLocation:m,expectedLocation:p,distance:i,ignoreLocation:u});if(y=Math.min(S,y),v=m+h,x){let N=0;for(;N=M;ie-=1){let A=ie-1,D=n[t.charAt(A)];if(x&&(E[A]=+!!D),R[ie]=(R[ie+1]<<1|1)&D,S&&(R[ie]|=(d[ie+1]|d[ie])<<1|1|d[ie+1]),R[ie]&P&&(g=Yr(e,{errors:S,currentLocation:A,expectedLocation:p,distance:i,ignoreLocation:u}),g<=y)){if(y=g,v=A,v<=p)break;M=Math.max(1,2*p-v)}}if(Yr(e,{errors:S+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>y)break;d=R}const _={isMatch:v>=0,score:Math.max(.001,g)};if(x){const S=xv(E,l);S.length?a&&(_.indices=S):_.isMatch=!1}return _}function Sv(t){let e={};for(let n=0,r=t.length;n{this.chunks.push({pattern:p,alphabet:Sv(p),startIndex:y})},f=this.pattern.length;if(f>Bt){let p=0;const y=f%Bt,v=f-y;for(;p{const{isMatch:m,score:d,indices:g}=wv(e,v,x,{location:i+E,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});m&&(p=!0),f+=d,m&&g&&(h=[...h,...g])});let y={isMatch:p,score:p?f/this.chunks.length:1};return p&&r&&(y.indices=h),y}}class Rt{constructor(e){this.pattern=e}static isMultiMatch(e){return ou(e,this.multiRegex)}static isSingleMatch(e){return ou(e,this.singleRegex)}search(){}}function ou(t,e){const n=t.match(e);return n?n[1]:null}class _v extends Rt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class kv extends Rt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Ev extends Rt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Cv extends Rt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Pv extends Rt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Nv extends Rt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class nh extends Rt{constructor(e,{location:n=z.location,threshold:r=z.threshold,distance:i=z.distance,includeMatches:s=z.includeMatches,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,isCaseSensitive:a=z.isCaseSensitive,ignoreLocation:u=z.ignoreLocation}={}){super(e),this._bitapSearch=new th(e,{location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class rh extends Rt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const i=[],s=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+s,i.push([r,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const No=[_v,rh,Ev,Cv,Nv,Pv,kv,nh],lu=No.length,Lv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,jv="|";function Tv(t,e={}){return t.split(jv).map(n=>{let r=n.trim().split(Lv).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=r.length;s!!(t[Oi.AND]||t[Oi.OR]),Dv=t=>!!t[To.PATH],Av=t=>!pt(t)&&Yd(t)&&!Io(t),au=t=>({[Oi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ih(t,e,{auto:n=!0}={}){const r=i=>{let s=Object.keys(i);const o=Dv(i);if(!o&&s.length>1&&!Io(i))return r(au(i));if(Av(i)){const a=o?i[To.PATH]:s[0],u=o?i[To.PATTERN]:i[a];if(!et(u))throw new Error(ov(a));const h={keyId:Po(a),pattern:u};return n&&(h.searcher=jo(u,e)),h}let l={children:[],operator:s[0]};return s.forEach(a=>{const u=i[a];pt(u)&&u.forEach(h=>{l.children.push(r(h))})}),l};return Io(t)||(t=au(t)),r(t)}function Ov(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),n.score=r})}function Rv(t,e){const n=t.matches;e.matches=[],Ne(n)&&n.forEach(r=>{if(!Ne(r.indices)||!r.indices.length)return;const{indices:i,value:s}=r;let o={indices:i,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),e.matches.push(o)})}function Fv(t,e){e.score=t.score}function $v(t,e,{includeMatches:n=z.includeMatches,includeScore:r=z.includeScore}={}){const i=[];return n&&i.push(Rv),r&&i.push(Fv),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(a=>{a(s,l)}),l})}class Mn{constructor(e,n={},r){this.options={...z,...n},this.options.useExtendedSearch,this._keyStore=new cv(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Tl))throw new Error(sv);this._myIndex=n||eh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ne(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,i=this._docs.length;r-1&&(a=a.slice(0,n)),$v(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const n=jo(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=n.searchIn(s);a&&i.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:h}]})}),i}_searchLogical(e){const n=ih(e,this.options),r=(l,a,u)=>{if(!l.children){const{keyId:f,searcher:p}=l,y=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:p});return y&&y.length?[{idx:u,item:a,matches:y}]:[]}const h=[];for(let f=0,p=l.children.length;f{if(Ne(l)){let u=r(n,l,a);u.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),u.forEach(({matches:h})=>{s[a].matches.push(...h)}))}}),o}_searchObjectList(e){const n=jo(e,this.options),{keys:r,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Ne(o))return;let a=[];r.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:o[h],searcher:n}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:n,searcher:r}){if(!Ne(n))return[];let i=[];if(pt(n))n.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=r.searchIn(s);a&&i.push({score:u,key:e,value:s,idx:o,norm:l,indices:h})});else{const{v:s,n:o}=n,{isMatch:l,score:a,indices:u}=r.searchIn(s);l&&i.push({score:a,key:e,value:s,norm:o,indices:u})}return i}}Mn.version="7.0.0";Mn.createIndex=eh;Mn.parseIndex=yv;Mn.config=z;Mn.parseQuery=ih;Mv(zv);function Nr(t){if(!t)return!1;const e=new Date(t);return!isNaN(e.getTime())}function Ri(t){return!t.releaseDate||!Nr(t.releaseDate)?0:new Date(t.releaseDate).getTime()}function bv(t,e,n){switch(n){case"releaseDate":{if(t.type!=="base"||e.type!=="base")return t.id.localeCompare(e.id);const r=Ri(t),i=Ri(e);return r===0&&i===0?t.id.localeCompare(e.id):r===0?1:i===0?-1:r===i?(t.name||"").localeCompare(e.name||""):i-r}case"name":{const r=t.name||"Unknown Title",i=e.name||"Unknown Title";return r==="Unknown Title"&&i!=="Unknown Title"?1:i==="Unknown Title"&&r!=="Unknown Title"?-1:r.localeCompare(i)}case"size":{const r=t.size||0,i=e.size||0;return r===0&&i!==0?1:i===0&&r!==0?-1:i-r}case"id":default:return t.id.localeCompare(e.id)}}function Bv(t,e,n){const r=[...t].sort((i,s)=>{const o=bv(i,s,e);return n==="asc"?o:-o});if(e==="releaseDate"){const i=r.filter(o=>Nr(o.releaseDate)),s=r.filter(o=>!Nr(o.releaseDate));return n==="asc"?[...i,...s]:[...i,...s]}return r}function Uv(t){const e=t.filter(l=>l.type==="base"&&Nr(l.releaseDate)),n=t.filter(l=>l.type==="base"&&!Nr(l.releaseDate)),r=t.filter(l=>l.type!=="base"),i=e.sort((l,a)=>{const u=Ri(l),h=Ri(a);return u===h?(l.name||"").localeCompare(a.name||""):h-u}),s=n.sort((l,a)=>l.id.localeCompare(a.id)),o=r.sort((l,a)=>l.id.localeCompare(a.id));return[...i,...s,...o]}function Hv(t){return{threshold:Math.max(.1,1-t),distance:Math.floor(30*(1-t)),minMatchCharLength:Math.max(2,Math.floor(4*t)),location:0,ignoreLocation:!1,findAllMatches:!0,includeMatches:!0,useExtendedSearch:!1,isCaseSensitive:!1,tokenize:!0,matchAllTokens:!1}}function Zv(t){const[e,n]=I.useState(""),[r,i]=I.useState(""),[s,o]=I.useState("name"),[l,a]=I.useState("asc"),{namePrecision:u}=tn(),h=I.useMemo(()=>new Mn(t,{keys:["name"],...Hv(u)}),[t,u]),f=I.useCallback(()=>{let v=t;if(r){const x=r.toLowerCase();v=v.filter(E=>E.id.toLowerCase().includes(x))}if(e.trim()){const E=h.search(e).map(m=>m.item);if(r){const m=new Set(E.map(d=>d.id));v=v.filter(d=>m.has(d.id))}else v=E}return v},[h,t,e,r]),p=I.useCallback(v=>{o(v),a(x=>v===s&&x==="asc"?"desc":"asc")},[s]),y=I.useMemo(()=>{const v=f();return Bv(v,s,l)},[f,s,l]);return{nameQuery:e,setNameQuery:n,tidQuery:r,setTidQuery:i,results:y,sortField:s,sortDirection:l,toggleSort:p}}function uu(t){if(!t)return!1;try{const e=new Date(t);if(isNaN(e.getTime()))return!1;const n=e.getFullYear(),r=new Date().getFullYear();return n>=2e3&&n<=r+2}catch{return!1}}const Wv="nx-content",Vv="3.0.0",Qv="module",Kv={dev:"vite",build:"tsc && vite build",preview:"vite preview"},Gv={"@rollup/rollup-win32-x64-msvc":"^4.27.3",clsx:"^2.1.0","fuse.js":"^7.0.0","lucide-react":"^0.344.0","nx-content":"file:",photoswipe:"^5.4.3",react:"^18.2.0","react-dom":"^18.2.0","react-photoswipe-gallery":"^3.0.1",zustand:"^4.5.0"},Xv={"@types/react":"^18.2.56","@types/react-dom":"^18.2.19","@vitejs/plugin-react":"^4.2.1",autoprefixer:"^10.4.18",postcss:"^8.4.35",tailwindcss:"^3.4.1",typescript:"^5.2.2",vite:"^5.1.4"},Yv={name:Wv,private:!0,version:Vv,type:Qv,scripts:Kv,dependencies:Gv,devDependencies:Xv};function qv(){const{isDark:t,setDarkMode:e,itemsPerPage:n,lastActiveTab:r,setLastActiveTab:i}=tn(),[s,o]=I.useState([]),[l,a]=I.useState(!0),[u,h]=I.useState(1),{nameQuery:f,setNameQuery:p,tidQuery:y,setTidQuery:v,results:x,sortField:E,sortDirection:m,toggleSort:d}=Zv(s);if(I.useEffect(()=>{const S=document.documentElement;t?S.classList.add("dark"):S.classList.remove("dark")},[t]),I.useEffect(()=>{(async()=>{try{a(!0),Je.info("Starting data load");const[N,F,M]=await Promise.all([fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.json")]),[re,R]=await Promise.all([N.text(),F.text()]),De=await M.json(),ie=new Map(R.trim().split(` `).map(Z=>{const[C,j,T,B]=Z.split("|");return[C,{date:j,name:T,size:parseInt(B)}]})),A=new Map;re.trim().split(` -`).forEach(Z=>{const[C,j]=Z.split("|"),T=C.endsWith("800")?"update":C.endsWith("000")?"base":"dlc",B=`${C}_${j||"0"}`,b=ie.get(C),he=De[C];A.has(B)||A.set(B,{id:C,uniqueId:B,type:T,version:j||(he==null?void 0:he.Version),name:(he==null?void 0:he["Game Name"])||(b==null?void 0:b.name)||"Unknown Title",size:(b==null?void 0:b.size)||(he==null?void 0:he.Size),releaseDate:T==="base"?b==null?void 0:b.date:void 0})});const D=Uv(Array.from(A.values()));o(D),a(!1),Je.info("Data load complete",{totalItems:D.length,baseCount:D.filter(Z=>Z.type==="base").length,updateCount:D.filter(Z=>Z.type==="update").length,dlcCount:D.filter(Z=>Z.type==="dlc").length,withDatesCount:D.filter(Z=>uu(Z.releaseDate)).length,withoutDatesCount:D.filter(Z=>!uu(Z.releaseDate)).length})}catch(N){throw Je.error("Failed to load content data",{errorMessage:N instanceof Error?N.message:"Unknown error"}),a(!1),new Error("Failed to load content data")}})()},[]),l)return c.jsx("div",{className:"fixed inset-0 bg-background flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary border-t-transparent mx-auto"}),c.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading games..."})]})});const g=x.filter(_=>_.type===r),w=Math.ceil(g.length/n),P=g.slice((u-1)*n,u*n),S={base:s.filter(_=>_.type==="base").length,update:s.filter(_=>_.type==="update").length,dlc:s.filter(_=>_.type==="dlc").length};return c.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[c.jsx(qg,{onToggleTheme:()=>e(!t)}),c.jsxs("main",{className:"flex-1 max-w-7xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Base Games"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.base.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Updates"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.update.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"DLCs"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.dlc.toLocaleString()})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Jg,{nameQuery:f,tidQuery:y,onNameChange:p,onTidChange:v,resultCount:g.length,totalCount:s.filter(_=>_.type===r).length}),c.jsx(Vg,{activeTab:r,onTabChange:i,counts:S}),c.jsx(Wg,{items:P,allItems:s,currentPage:u,totalPages:w,onPageChange:h,sortField:E,sortDirection:m,onSort:d})]})]}),c.jsx("footer",{className:"border-t border-border py-4 px-4",children:c.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Version ",Yv.version]}),c.jsx("a",{href:"https://github.com/ghost-land/NX-Working",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"View on GitHub"})]})})]})}class Jv extends I.Component{constructor(){super(...arguments);An(this,"state",{hasError:!1,error:null});An(this,"handleReset",()=>{const{resetDataSources:n}=tn.getState();n(),window.location.reload()})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){var n,r,i;if(this.state.hasError){const s=(r=(n=this.state.error)==null?void 0:n.message)==null?void 0:r.includes("Failed to load game data");return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-lg border border-border max-w-md w-full",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[c.jsx(es,{className:"h-6 w-6 text-red-500"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Something went wrong"})]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:((i=this.state.error)==null?void 0:i.message)||"An unexpected error occurred"}),c.jsxs("div",{className:"flex flex-col space-y-3",children:[s&&c.jsxs("button",{className:"w-full flex items-center justify-center space-x-2 bg-red-500/10 text-red-500 px-4 py-2 rounded-lg hover:bg-red-500/20 transition-colors",onClick:this.handleReset,children:[c.jsx(Wp,{className:"h-4 w-4"}),c.jsx("span",{children:"Reset Data Sources & Reload"})]}),c.jsx("button",{className:"w-full bg-primary text-primary-foreground px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors",onClick:()=>window.location.reload(),children:"Reload Page"})]}),s&&c.jsxs("div",{className:"mt-4 p-3 bg-muted rounded-lg text-sm text-muted-foreground",children:[c.jsx("p",{className:"font-medium mb-1",children:"💡 Tip"}),c.jsx("p",{children:"If you've modified the data source URLs in settings, try resetting them to their default values. This often resolves loading issues."})]})]})})}return this.props.children}}Ts.createRoot(document.getElementById("root")).render(c.jsx(Ro.StrictMode,{children:c.jsx(Jv,{children:c.jsx(qv,{})})})); +`).forEach(Z=>{const[C,j]=Z.split("|"),T=C.endsWith("800")?"update":C.endsWith("000")?"base":"dlc",B=`${C}_${j||"0"}`,b=ie.get(C),he=De[C];A.has(B)||A.set(B,{id:C,uniqueId:B,type:T,version:j||(he==null?void 0:he.Version),name:(he==null?void 0:he["Game Name"])||(b==null?void 0:b.name)||"Unknown Title",size:(b==null?void 0:b.size)||(he==null?void 0:he.Size),releaseDate:T==="base"?b==null?void 0:b.date:void 0})});const D=Uv(Array.from(A.values()));o(D),a(!1),Je.info("Data load complete",{totalItems:D.length,baseCount:D.filter(Z=>Z.type==="base").length,updateCount:D.filter(Z=>Z.type==="update").length,dlcCount:D.filter(Z=>Z.type==="dlc").length,withDatesCount:D.filter(Z=>uu(Z.releaseDate)).length,withoutDatesCount:D.filter(Z=>!uu(Z.releaseDate)).length})}catch(N){throw Je.error("Failed to load content data",{errorMessage:N instanceof Error?N.message:"Unknown error"}),a(!1),new Error("Failed to load content data")}})()},[]),l)return c.jsx("div",{className:"fixed inset-0 bg-background flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary border-t-transparent mx-auto"}),c.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading games..."})]})});const g={base:s.filter(S=>S.type==="base").length,update:s.filter(S=>S.type==="update").length,dlc:s.filter(S=>S.type==="dlc").length},w=x.filter(S=>S.type===r),P=Math.ceil(w.length/n),_=w.slice((u-1)*n,u*n);return c.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[c.jsx(qg,{onToggleTheme:()=>e(!t)}),c.jsxs("main",{className:"flex-1 max-w-7xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Base Games"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:g.base.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Updates"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:g.update.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"DLCs"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:g.dlc.toLocaleString()})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Jg,{nameQuery:f,tidQuery:y,onNameChange:p,onTidChange:v,resultCount:w.length,totalCount:s.filter(S=>S.type===r).length}),c.jsx(Vg,{activeTab:r,onTabChange:i,counts:g}),c.jsx(Wg,{items:_,allItems:s,currentPage:u,totalPages:P,onPageChange:h,sortField:E,sortDirection:m,onSort:d})]})]}),c.jsx("footer",{className:"border-t border-border py-4 px-4",children:c.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Version ",Yv.version]}),c.jsx("a",{href:"https://github.com/ghost-land/NX-Content",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"View on GitHub"})]})})]})}class Jv extends I.Component{constructor(){super(...arguments);An(this,"state",{hasError:!1,error:null});An(this,"handleReset",()=>{const{resetDataSources:n}=tn.getState();n(),window.location.reload()})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){var n,r,i;if(this.state.hasError){const s=(r=(n=this.state.error)==null?void 0:n.message)==null?void 0:r.includes("Failed to load game data");return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-lg border border-border max-w-md w-full",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[c.jsx(es,{className:"h-6 w-6 text-red-500"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Something went wrong"})]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:((i=this.state.error)==null?void 0:i.message)||"An unexpected error occurred"}),c.jsxs("div",{className:"flex flex-col space-y-3",children:[s&&c.jsxs("button",{className:"w-full flex items-center justify-center space-x-2 bg-red-500/10 text-red-500 px-4 py-2 rounded-lg hover:bg-red-500/20 transition-colors",onClick:this.handleReset,children:[c.jsx(Wp,{className:"h-4 w-4"}),c.jsx("span",{children:"Reset Data Sources & Reload"})]}),c.jsx("button",{className:"w-full bg-primary text-primary-foreground px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors",onClick:()=>window.location.reload(),children:"Reload Page"})]}),s&&c.jsxs("div",{className:"mt-4 p-3 bg-muted rounded-lg text-sm text-muted-foreground",children:[c.jsx("p",{className:"font-medium mb-1",children:"💡 Tip"}),c.jsx("p",{children:"If you've modified the data source URLs in settings, try resetting them to their default values. This often resolves loading issues."})]})]})})}return this.props.children}}Ts.createRoot(document.getElementById("root")).render(c.jsx(Ro.StrictMode,{children:c.jsx(Jv,{children:c.jsx(qv,{})})})); diff --git a/index.html b/index.html index 31495bb..944a96b 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,8 @@ - NX Working - + NX Content +