From 9ef1ec8f7398b4701866407a7cc89c91c4e18c3f Mon Sep 17 00:00:00 2001 From: nathanlao Date: Tue, 30 Apr 2024 02:59:49 -0700 Subject: [PATCH] Updates --- assets/index-Bvkze2UX.js | 212 --------------------------------------- assets/index-yoF7uEzM.js | 212 +++++++++++++++++++++++++++++++++++++++ index.html | 6 +- 3 files changed, 215 insertions(+), 215 deletions(-) delete mode 100644 assets/index-Bvkze2UX.js create mode 100644 assets/index-yoF7uEzM.js diff --git a/assets/index-Bvkze2UX.js b/assets/index-Bvkze2UX.js deleted file mode 100644 index ef96467..0000000 --- a/assets/index-Bvkze2UX.js +++ /dev/null @@ -1,212 +0,0 @@ -function md(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Wy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var gd={exports:{}},xl={},wd={exports:{}},G={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Yo=Symbol.for("react.element"),qy=Symbol.for("react.portal"),Qy=Symbol.for("react.fragment"),Ky=Symbol.for("react.strict_mode"),Gy=Symbol.for("react.profiler"),Yy=Symbol.for("react.provider"),Jy=Symbol.for("react.context"),Xy=Symbol.for("react.forward_ref"),Zy=Symbol.for("react.suspense"),em=Symbol.for("react.memo"),tm=Symbol.for("react.lazy"),uc=Symbol.iterator;function rm(e){return e===null||typeof e!="object"?null:(e=uc&&e[uc]||e["@@iterator"],typeof e=="function"?e:null)}var Sd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ed=Object.assign,xd={};function zn(e,t,r){this.props=e,this.context=t,this.refs=xd,this.updater=r||Sd}zn.prototype.isReactComponent={};zn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pd(){}Pd.prototype=zn.prototype;function $u(e,t,r){this.props=e,this.context=t,this.refs=xd,this.updater=r||Sd}var Bu=$u.prototype=new Pd;Bu.constructor=$u;Ed(Bu,zn.prototype);Bu.isPureReactComponent=!0;var sc=Array.isArray,_d=Object.prototype.hasOwnProperty,bu={current:null},kd={key:!0,ref:!0,__self:!0,__source:!0};function Cd(e,t,r){var n,o={},i=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)_d.call(t,n)&&!kd.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,te=T[ee];if(0>>1;eeo(et,U))Ueo(st,et)?(T[ee]=st,T[Ue]=U,ee=Ue):(T[ee]=et,T[Ze]=U,ee=Ze);else if(Ueo(st,U))T[ee]=st,T[Ue]=U,ee=Ue;else break e}}return j}function o(T,j){var U=T.sortIndex-j.sortIndex;return U!==0?U:T.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,p=null,f=3,w=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,y=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 h(T){for(var j=r(s);j!==null;){if(j.callback===null)n(s);else if(j.startTime<=T)n(s),j.sortIndex=j.expirationTime,t(u,j);else break;j=r(s)}}function x(T){if(S=!1,h(T),!g)if(r(u)!==null)g=!0,qe(_);else{var j=r(s);j!==null&&ut(x,j.startTime-T)}}function _(T,j){g=!1,S&&(S=!1,y(N),N=-1),w=!0;var U=f;try{for(h(j),p=r(u);p!==null&&(!(p.expirationTime>j)||T&&!B());){var ee=p.callback;if(typeof ee=="function"){p.callback=null,f=p.priorityLevel;var te=ee(p.expirationTime<=j);j=e.unstable_now(),typeof te=="function"?p.callback=te:p===r(u)&&n(u),h(j)}else n(u);p=r(u)}if(p!==null)var wt=!0;else{var Ze=r(s);Ze!==null&&ut(x,Ze.startTime-j),wt=!1}return wt}finally{p=null,f=U,w=!1}}var L=!1,m=null,N=-1,I=5,D=-1;function B(){return!(e.unstable_now()-DT||125ee?(T.sortIndex=U,t(s,T),r(u)===null&&T===r(s)&&(S?(y(N),N=-1):S=!0,ut(x,U-ee))):(T.sortIndex=te,t(u,T),g||w||(g=!0,qe(_))),T},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(T){var j=f;return function(){var U=f;f=j;try{return T.apply(this,arguments)}finally{f=U}}}})(Ld);Nd.exports=Ld;var hm=Nd.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dd=C,it=hm;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ma=Object.prototype.hasOwnProperty,ym=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fc={},dc={};function mm(e){return Ma.call(dc,e)?!0:Ma.call(fc,e)?!1:ym.test(e)?dc[e]=!0:(fc[e]=!0,!1)}function vm(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gm(e,t,r,n){if(t===null||typeof t>"u"||vm(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wu,Vu);Ie[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wu,Vu);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wu,Vu);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function qu(e,t,r,n){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:n||!(2a||o[l]!==i[a]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ql=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?uo(e):""}function wm(e){switch(e.tag){case 5:return uo(e.type);case 16:return uo("Lazy");case 13:return uo("Suspense");case 19:return uo("SuspenseList");case 0:case 2:case 15:return e=Kl(e.type,!1),e;case 11:return e=Kl(e.type.render,!1),e;case 1:return e=Kl(e.type,!0),e;default:return""}}function ja(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case an:return"Fragment";case ln:return"Portal";case Aa:return"Profiler";case Qu:return"StrictMode";case Fa:return"Suspense";case za:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ad:return(e.displayName||"Context")+".Consumer";case Md:return(e._context.displayName||"Context")+".Provider";case Ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:ja(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return ja(e(t))}catch{}}return null}function Sm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ja(t);case 8:return t===Qu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Em(e){var t=zd(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function di(e){e._valueTracker||(e._valueTracker=Em(e))}function jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=zd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ua(e,t){var r=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function hc(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Sr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ud(e,t){t=t.checked,t!=null&&qu(e,"checked",t,!1)}function $a(e,t){Ud(e,t);var r=Sr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ba(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ba(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yc(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ba(e,t,r){(t!=="number"||Vi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var so=Array.isArray;function wn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ho={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},xm=["Webkit","ms","Moz","O"];Object.keys(ho).forEach(function(e){xm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ho[t]=ho[e]})});function Hd(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ho.hasOwnProperty(e)&&ho[e]?(""+t).trim():t+"px"}function Wd(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Hd(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Pm=de({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 Wa(e,t){if(t){if(Pm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Va(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qa=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Sn=null,En=null;function gc(e){if(e=Zo(e)){if(typeof Qa!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Rl(t),Qa(e.stateNode,e.type,t))}}function Vd(e){Sn?En?En.push(e):En=[e]:Sn=e}function qd(){if(Sn){var e=Sn,t=En;if(En=Sn=null,gc(e),t)for(e=0;e>>=0,e===0?32:31-(Mm(e)/Am|0)|0}var hi=64,yi=4194304;function co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var a=l&~o;a!==0?n=co(a):(i&=l,i!==0&&(n=co(i)))}else l=r&~o,l!==0?n=co(l):i!==0&&(n=co(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=r}function Um(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=mo),Rc=" ",Tc=!1;function dp(e,t){switch(e){case"keyup":return pv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var un=!1;function yv(e,t){switch(e){case"compositionend":return pp(t);case"keypress":return t.which!==32?null:(Tc=!0,Rc);case"textInput":return e=t.data,e===Rc&&Tc?null:e;default:return null}}function mv(e,t){if(un)return e==="compositionend"||!os&&dp(e,t)?(e=cp(),Ii=ts=ur=null,un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Dc(r)}}function vp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gp(){for(var e=window,t=Vi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vi(e.document)}return t}function is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kv(e){var t=gp(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vp(r.ownerDocument.documentElement,r)){if(n!==null&&is(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Ic(r,i);var l=Ic(r,n);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,sn=null,Za=null,go=null,eu=!1;function Mc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;eu||sn==null||sn!==Vi(n)||(n=sn,"selectionStart"in n&&is(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),go&&Ao(go,n)||(go=n,n=Xi(Za,"onSelect"),0dn||(e.current=lu[dn],lu[dn]=null,dn--)}function ne(e,t){dn++,lu[dn]=e.current,e.current=t}var Er={},ze=Pr(Er),Ye=Pr(!1),Br=Er;function Rn(e,t){var r=e.type.contextTypes;if(!r)return Er;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function el(){ie(Ye),ie(ze)}function Bc(e,t,r){if(ze.current!==Er)throw Error(R(168));ne(ze,t),ne(Ye,r)}function Rp(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(R(108,Sm(e)||"Unknown",o));return de({},r,n)}function tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Br=ze.current,ne(ze,e),ne(Ye,Ye.current),!0}function bc(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=Rp(e,t,Br),n.__reactInternalMemoizedMergedChildContext=e,ie(Ye),ie(ze),ne(ze,e)):ie(Ye),ne(Ye,r)}var Bt=null,Tl=!1,ua=!1;function Tp(e){Bt===null?Bt=[e]:Bt.push(e)}function zv(e){Tl=!0,Tp(e)}function _r(){if(!ua&&Bt!==null){ua=!0;var e=0,t=Z;try{var r=Bt;for(Z=1;e>=l,o-=l,bt=1<<32-kt(t)+o|r<N?(I=m,m=null):I=m.sibling;var D=f(y,m,h[N],x);if(D===null){m===null&&(m=I);break}e&&m&&D.alternate===null&&t(y,m),d=i(D,d,N),L===null?_=D:L.sibling=D,L=D,m=I}if(N===h.length)return r(y,m),ue&&Tr(y,N),_;if(m===null){for(;NN?(I=m,m=null):I=m.sibling;var B=f(y,m,D.value,x);if(B===null){m===null&&(m=I);break}e&&m&&B.alternate===null&&t(y,m),d=i(B,d,N),L===null?_=B:L.sibling=B,L=B,m=I}if(D.done)return r(y,m),ue&&Tr(y,N),_;if(m===null){for(;!D.done;N++,D=h.next())D=p(y,D.value,x),D!==null&&(d=i(D,d,N),L===null?_=D:L.sibling=D,L=D);return ue&&Tr(y,N),_}for(m=n(y,m);!D.done;N++,D=h.next())D=w(m,y,N,D.value,x),D!==null&&(e&&D.alternate!==null&&m.delete(D.key===null?N:D.key),d=i(D,d,N),L===null?_=D:L.sibling=D,L=D);return e&&m.forEach(function(Y){return t(y,Y)}),ue&&Tr(y,N),_}function k(y,d,h,x){if(typeof h=="object"&&h!==null&&h.type===an&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case fi:e:{for(var _=h.key,L=d;L!==null;){if(L.key===_){if(_=h.type,_===an){if(L.tag===7){r(y,L.sibling),d=o(L,h.props.children),d.return=y,y=d;break e}}else if(L.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===nr&&Gc(_)===L.type){r(y,L.sibling),d=o(L,h.props),d.ref=to(y,L,h),d.return=y,y=d;break e}r(y,L);break}else t(y,L);L=L.sibling}h.type===an?(d=jr(h.props.children,y.mode,x,h.key),d.return=y,y=d):(x=Bi(h.type,h.key,h.props,null,y.mode,x),x.ref=to(y,d,h),x.return=y,y=x)}return l(y);case ln:e:{for(L=h.key;d!==null;){if(d.key===L)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){r(y,d.sibling),d=o(d,h.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=ma(h,y.mode,x),d.return=y,y=d}return l(y);case nr:return L=h._init,k(y,d,L(h._payload),x)}if(so(h))return g(y,d,h,x);if(Yn(h))return S(y,d,h,x);xi(y,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(r(y,d.sibling),d=o(d,h),d.return=y,y=d):(r(y,d),d=ya(h,y.mode,x),d.return=y,y=d),l(y)):r(y,d)}return k}var On=Fp(!0),zp=Fp(!1),ei={},jt=Pr(ei),Uo=Pr(ei),$o=Pr(ei);function Mr(e){if(e===ei)throw Error(R(174));return e}function hs(e,t){switch(ne($o,t),ne(Uo,e),ne(jt,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ha(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ha(t,e)}ie(jt),ne(jt,t)}function Nn(){ie(jt),ie(Uo),ie($o)}function jp(e){Mr($o.current);var t=Mr(jt.current),r=Ha(t,e.type);t!==r&&(ne(Uo,e),ne(jt,r))}function ys(e){Uo.current===e&&(ie(jt),ie(Uo))}var ce=Pr(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=[];function ms(){for(var e=0;er?r:4,e(!0);var n=ca.transition;ca.transition={};try{e(!1),t()}finally{Z=r,ca.transition=n}}function eh(){return gt().memoizedState}function Bv(e,t,r){var n=vr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},th(e))rh(t,r);else if(r=Dp(e,t,r,n),r!==null){var o=He();Ct(r,e,n,o),nh(r,t,n)}}function bv(e,t,r){var n=vr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(th(e))rh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,r);if(o.hasEagerState=!0,o.eagerState=a,Rt(a,l)){var u=t.interleaved;u===null?(o.next=o,ds(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=Dp(e,t,o,n),r!==null&&(o=He(),Ct(r,e,n,o),nh(r,t,n))}}function th(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function rh(e,t){wo=ul=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nh(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xu(e,r)}}var sl={readContext:vt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Hv={readContext:vt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Jc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,zi(4194308,4,Gp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var r=Dt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Dt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Bv.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:Yc,useDebugValue:Es,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=Yc(!1),t=e[0];return e=$v.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=fe,o=Dt();if(ue){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ce===null)throw Error(R(349));Hr&30||Bp(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Jc(Hp.bind(null,n,i,e),[e]),n.flags|=2048,Ho(9,bp.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Dt(),t=Ce.identifierPrefix;if(ue){var r=Ht,n=bt;r=(n&~(1<<32-kt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Bo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[At]=t,e[jo]=n,dh(e,t,!1,!1),t.stateNode=e;e:{switch(l=Va(r,n),r){case"dialog":oe("cancel",e),oe("close",e),o=n;break;case"iframe":case"object":case"embed":oe("load",e),o=n;break;case"video":case"audio":for(o=0;oDn&&(t.flags|=128,n=!0,ro(i,!1),t.lanes=4194304)}else{if(!n)if(e=al(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ro(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ue)return Ae(t),null}else 2*me()-i.renderingStartTime>Dn&&r!==1073741824&&(t.flags|=128,n=!0,ro(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,r=ce.current,ne(ce,n?r&1|2:r&1),t):(Ae(t),null);case 22:case 23:return Rs(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?rt&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Jv(e,t){switch(as(t),t.tag){case 1:return Je(t.type)&&el(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(),ie(Ye),ie(ze),ms(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ys(t),null;case 13:if(ie(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ce),null;case 4:return Nn(),null;case 10:return fs(t.type._context),null;case 22:case 23:return Rs(),null;case 24:return null;default:return null}}var _i=!1,Fe=!1,Xv=typeof WeakSet=="function"?WeakSet:Set,M=null;function mn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){pe(e,t,n)}else r.current=null}function gu(e,t,r){try{r()}catch(n){pe(e,t,n)}}var af=!1;function Zv(e,t){if(tu=Yi,e=gp(),is(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,a=-1,u=-1,s=0,c=0,p=e,f=null;t:for(;;){for(var w;p!==r||o!==0&&p.nodeType!==3||(a=l+o),p!==i||n!==0&&p.nodeType!==3||(u=l+n),p.nodeType===3&&(l+=p.nodeValue.length),(w=p.firstChild)!==null;)f=p,p=w;for(;;){if(p===e)break t;if(f===r&&++s===o&&(a=l),f===i&&++c===n&&(u=l),(w=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=w}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ru={focusedElem:e,selectionRange:r},Yi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:Et(t.type,S),k);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){pe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=af,af=!1,g}function So(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&gu(t,r,i)}o=o.next}while(o!==n)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function wu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function yh(e){var t=e.alternate;t!==null&&(e.alternate=null,yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[jo],delete t[iu],delete t[Av],delete t[Fv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mh(e){return e.tag===5||e.tag===3||e.tag===4}function uf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Su(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Zi));else if(n!==4&&(e=e.child,e!==null))for(Su(e,t,r),e=e.sibling;e!==null;)Su(e,t,r),e=e.sibling}function Eu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Eu(e,t,r),e=e.sibling;e!==null;)Eu(e,t,r),e=e.sibling}var Ne=null,xt=!1;function tr(e,t,r){for(r=r.child;r!==null;)vh(e,t,r),r=r.sibling}function vh(e,t,r){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Pl,r)}catch{}switch(r.tag){case 5:Fe||mn(r,t);case 6:var n=Ne,o=xt;Ne=null,tr(e,t,r),Ne=n,xt=o,Ne!==null&&(xt?(e=Ne,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ne.removeChild(r.stateNode));break;case 18:Ne!==null&&(xt?(e=Ne,r=r.stateNode,e.nodeType===8?aa(e.parentNode,r):e.nodeType===1&&aa(e,r),Io(e)):aa(Ne,r.stateNode));break;case 4:n=Ne,o=xt,Ne=r.stateNode.containerInfo,xt=!0,tr(e,t,r),Ne=n,xt=o;break;case 0:case 11:case 14:case 15:if(!Fe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&gu(r,t,l),o=o.next}while(o!==n)}tr(e,t,r);break;case 1:if(!Fe&&(mn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){pe(r,t,a)}tr(e,t,r);break;case 21:tr(e,t,r);break;case 22:r.mode&1?(Fe=(n=Fe)||r.memoizedState!==null,tr(e,t,r),Fe=n):tr(e,t,r);break;default:tr(e,t,r)}}function sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Xv),t.forEach(function(n){var o=ug.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function St(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=l),n&=~i}if(n=o,n=me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tg(n/1960))-n,10e?16:e,sr===null)var n=!1;else{if(e=sr,sr=null,dl=0,X&6)throw Error(R(331));var o=X;for(X|=4,M=e.current;M!==null;){var i=M,l=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var u=0;ume()-ks?zr(e,0):_s|=r),Xe(e,t)}function kh(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var r=He();e=Kt(e,t),e!==null&&(Jo(e,t,r),Xe(e,r))}function ag(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),kh(e,r)}function ug(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(R(314))}n!==null&&n.delete(t),kh(e,r)}var Ch;Ch=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ge=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ge=!1,Gv(e,t,r);Ge=!!(e.flags&131072)}else Ge=!1,ue&&t.flags&1048576&&Op(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ji(e,t),e=t.pendingProps;var o=Rn(t,ze.current);Pn(t,r),o=gs(null,t,n,e,o,r);var i=ws();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(n)?(i=!0,tl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ps(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,fu(t,n,e,r),t=hu(null,t,n,!0,i,r)):(t.tag=0,ue&&i&&ls(t),be(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=cg(n),e=Et(n,e),o){case 0:t=pu(null,t,n,e,r);break e;case 1:t=nf(null,t,n,e,r);break e;case 11:t=tf(null,t,n,e,r);break e;case 14:t=rf(null,t,n,Et(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),pu(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),nf(e,t,n,o,r);case 3:e:{if(sh(t),e===null)throw Error(R(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Ip(e,t),ll(t,n,null,r);var l=t.memoizedState;if(n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ln(Error(R(423)),t),t=of(e,t,n,r,o);break e}else if(n!==o){o=Ln(Error(R(424)),t),t=of(e,t,n,r,o);break e}else for(nt=hr(t.stateNode.containerInfo.firstChild),ot=t,ue=!0,_t=null,r=zp(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Tn(),n===o){t=Gt(e,t,r);break e}be(e,t,n,r)}t=t.child}return t;case 5:return jp(t),e===null&&uu(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,nu(n,o)?l=null:i!==null&&nu(n,i)&&(t.flags|=32),uh(e,t),be(e,t,l,r),t.child;case 6:return e===null&&uu(t),null;case 13:return ch(e,t,r);case 4:return hs(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=On(t,null,n,r):be(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),tf(e,t,n,o,r);case 7:return be(e,t,t.pendingProps,r),t.child;case 8:return be(e,t,t.pendingProps.children,r),t.child;case 12:return be(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(ol,n._currentValue),n._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!Ye.current){t=Gt(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=Wt(-1,r&-r),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),su(i.return,r,t),a.lanes|=r;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(R(341));l.lanes|=r,a=l.alternate,a!==null&&(a.lanes|=r),su(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}be(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Pn(t,r),o=vt(o),n=n(o),t.flags|=1,be(e,t,n,r),t.child;case 14:return n=t.type,o=Et(n,t.pendingProps),o=Et(n.type,o),rf(e,t,n,o,r);case 15:return lh(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),ji(e,t),t.tag=1,Je(n)?(e=!0,tl(t)):e=!1,Pn(t,r),Ap(t,n,o),fu(t,n,o,r),hu(null,t,n,!0,e,r);case 19:return fh(e,t,r);case 22:return ah(e,t,r)}throw Error(R(156,t.tag))};function Rh(e,t){return Zd(e,t)}function sg(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,n){return new sg(e,t,r,n)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cg(e){if(typeof e=="function")return Os(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ku)return 11;if(e===Gu)return 14}return 2}function gr(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bi(e,t,r,n,o,i){var l=2;if(n=e,typeof e=="function")Os(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case an:return jr(r.children,o,i,t);case Qu:l=8,o|=8;break;case Aa:return e=yt(12,r,t,o|2),e.elementType=Aa,e.lanes=i,e;case Fa:return e=yt(13,r,t,o),e.elementType=Fa,e.lanes=i,e;case za:return e=yt(19,r,t,o),e.elementType=za,e.lanes=i,e;case Fd:return Il(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Md:l=10;break e;case Ad:l=9;break e;case Ku:l=11;break e;case Gu:l=14;break e;case nr:l=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=yt(l,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function jr(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Il(e,t,r,n){return e=yt(22,e,n,t),e.elementType=Fd,e.lanes=r,e.stateNode={isHidden:!1},e}function ya(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function ma(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fg(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,r,n,o,i,l,a,u){return e=new fg(e,t,r,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ps(i),e}function dg(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lh)}catch(e){console.error(e)}}Lh(),Od.exports=lt;var Ms=Od.exports;const vg=vd(Ms),gg=md({__proto__:null,default:vg},[Ms]);var vf=Ms;Ia.createRoot=vf.createRoot,Ia.hydrateRoot=vf.hydrateRoot;/** - * @remix-run/router v1.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function In(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sg(){return Math.random().toString(36).substr(2,8)}function wf(e,t){return{usr:e.state,key:e.key,idx:t}}function Vo(e,t,r,n){return r===void 0&&(r=null),se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jt(t):t,{state:r,key:t&&t.key||n||Sg()})}function qr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Jt(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Eg(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,l=o.history,a=ye.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(se({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function p(){a=ye.Pop;let k=c(),y=k==null?null:k-s;s=k,u&&u({action:a,location:S.location,delta:y})}function f(k,y){a=ye.Push;let d=Vo(S.location,k,y);r&&r(d,k),s=c()+1;let h=wf(d,s),x=S.createHref(d);try{l.pushState(h,"",x)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(x)}i&&u&&u({action:a,location:S.location,delta:1})}function w(k,y){a=ye.Replace;let d=Vo(S.location,k,y);r&&r(d,k),s=c();let h=wf(d,s),x=S.createHref(d);l.replaceState(h,"",x),i&&u&&u({action:a,location:S.location,delta:0})}function g(k){let y=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof k=="string"?k:qr(k);return d=d.replace(/ $/,"%20"),q(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let S={get action(){return a},get location(){return e(o,l)},listen(k){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(gf,p),u=k,()=>{o.removeEventListener(gf,p),u=null}},createHref(k){return t(o,k)},createURL:g,encodeLocation(k){let y=g(k);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:w,go(k){return l.go(k)}};return S}var ae;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ae||(ae={}));const xg=new Set(["lazy","caseSensitive","path","id","index","children"]);function Pg(e){return e.index===!0}function Cu(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let l=[...r,i],a=typeof o.id=="string"?o.id:l.join("-");if(q(o.index!==!0||!o.children,"Cannot specify children on an index route"),q(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Pg(o)){let u=se({},o,t(o),{id:a});return n[a]=u,u}else{let u=se({},o,t(o),{id:a,children:void 0});return n[a]=u,o.children&&(u.children=Cu(o.children,t,l,n)),u}})}function gn(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Jt(t):t,o=$n(n.pathname||"/",r);if(o==null)return null;let i=Dh(e);kg(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(q(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let s=Vt([n,u.relativePath]),c=r.concat(u);i.children&&i.children.length>0&&(q(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Dh(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Dg(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Ih(i.path))o(i,l,u)}),t}function Ih(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let l=Ih(n.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function kg(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ig(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Cg=/^:[\w-]+$/,Rg=3,Tg=2,Og=1,Ng=10,Lg=-2,Sf=e=>e==="*";function Dg(e,t){let r=e.split("/"),n=r.length;return r.some(Sf)&&(n+=Lg),t&&(n+=Tg),r.filter(o=>!Sf(o)).reduce((o,i)=>o+(Cg.test(i)?Rg:i===""?Og:Ng),n)}function Ig(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Mg(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{let{paramName:f,isOptional:w}=c;if(f==="*"){let S=a[p]||"";l=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=a[p];return w&&!g?s[f]=void 0:s[f]=(g||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:l,pattern:e}}function Fg(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),In(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(n.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function zg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return In(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $n(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function jg(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Jt(e):e;return{pathname:r?r.startsWith("/")?r:Ug(r,t):t,search:Bg(n),hash:bg(o)}}function Ug(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function va(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Mh(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function As(e,t){let r=Mh(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Fs(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Jt(e):(o=se({},e),q(!o.pathname||!o.pathname.includes("?"),va("?","pathname","search",o)),q(!o.pathname||!o.pathname.includes("#"),va("#","pathname","hash",o)),q(!o.search||!o.search.includes("#"),va("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=r;else{let p=t.length-1;if(!n&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),p-=1;o.pathname=f.join("/")}a=p>=0?t[p]:"/"}let u=jg(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Vt=e=>e.join("/").replace(/\/\/+/g,"/"),$g=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Bg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zs{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function js(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ah=["post","put","patch","delete"],Hg=new Set(Ah),Wg=["get",...Ah],Vg=new Set(Wg),qg=new Set([301,302,303,307,308]),Qg=new Set([307,308]),ga={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kg={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Us=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gg=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Fh="remix-router-transitions";function Yg(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;q(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let v=e.detectErrorBoundary;o=E=>({hasErrorBoundary:v(E)})}else o=Gg;let i={},l=Cu(e.routes,o,void 0,i),a,u=e.basename||"/",s=e.unstable_dataStrategy||e0,c=se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,f=new Set,w=null,g=null,S=null,k=e.hydrationData!=null,y=gn(l,e.history.location,u),d=null;if(y==null){let v=ft(404,{pathname:e.history.location.pathname}),{matches:E,route:P}=Nf(l);y=E,d={[P.id]:v}}let h,x=y.some(v=>v.route.lazy),_=y.some(v=>v.route.loader);if(x)h=!1;else if(!_)h=!0;else if(c.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,E=e.hydrationData?e.hydrationData.errors:null,P=O=>O.route.loader?typeof O.route.loader=="function"&&O.route.loader.hydrate===!0?!1:v&&v[O.route.id]!==void 0||E&&E[O.route.id]!==void 0:!0;if(E){let O=y.findIndex(A=>E[A.route.id]!==void 0);h=y.slice(0,O+1).every(P)}else h=y.every(P)}else h=e.hydrationData!=null;let L,m={historyAction:e.history.action,location:e.history.location,matches:y,initialized:h,navigation:ga,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},N=ye.Pop,I=!1,D,B=!1,Y=new Map,Q=null,re=!1,ve=!1,qe=[],ut=[],T=new Map,j=0,U=-1,ee=new Map,te=new Set,wt=new Map,Ze=new Map,et=new Set,Ue=new Map,st=new Map,bl=!1;function Oy(){if(p=e.history.listen(v=>{let{action:E,location:P,delta:O}=v;if(bl){bl=!1;return}In(st.size===0||O!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let A=oc({currentLocation:m.location,nextLocation:P,historyAction:E});if(A&&O!=null){bl=!0,e.history.go(O*-1),li(A,{state:"blocked",location:P,proceed(){li(A,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(O)},reset(){let W=new Map(m.blockers);W.set(A,oo),tt({blockers:W})}});return}return Rr(E,P)}),r){d0(t,Y);let v=()=>p0(t,Y);t.addEventListener("pagehide",v),Q=()=>t.removeEventListener("pagehide",v)}return m.initialized||Rr(ye.Pop,m.location,{initialHydration:!0}),L}function Ny(){p&&p(),Q&&Q(),f.clear(),D&&D.abort(),m.fetchers.forEach((v,E)=>ii(E)),m.blockers.forEach((v,E)=>nc(E))}function Ly(v){return f.add(v),()=>f.delete(v)}function tt(v,E){E===void 0&&(E={}),m=se({},m,v);let P=[],O=[];c.v7_fetcherPersist&&m.fetchers.forEach((A,W)=>{A.state==="idle"&&(et.has(W)?O.push(W):P.push(W))}),[...f].forEach(A=>A(m,{deletedFetchers:O,unstable_viewTransitionOpts:E.viewTransitionOpts,unstable_flushSync:E.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(A=>m.fetchers.delete(A)),O.forEach(A=>ii(A)))}function Wn(v,E,P){var O,A;let{flushSync:W}=P===void 0?{}:P,z=m.actionData!=null&&m.navigation.formMethod!=null&&Pt(m.navigation.formMethod)&&m.navigation.state==="loading"&&((O=v.state)==null?void 0:O._isRedirect)!==!0,F;E.actionData?Object.keys(E.actionData).length>0?F=E.actionData:F=null:z?F=m.actionData:F=null;let V=E.loaderData?Tf(m.loaderData,E.loaderData,E.matches||[],E.errors):m.loaderData,b=m.blockers;b.size>0&&(b=new Map(b),b.forEach(($,le)=>b.set(le,oo)));let Re=I===!0||m.navigation.formMethod!=null&&Pt(m.navigation.formMethod)&&((A=v.state)==null?void 0:A._isRedirect)!==!0;a&&(l=a,a=void 0),re||N===ye.Pop||(N===ye.Push?e.history.push(v,v.state):N===ye.Replace&&e.history.replace(v,v.state));let Te;if(N===ye.Pop){let $=Y.get(m.location.pathname);$&&$.has(v.pathname)?Te={currentLocation:m.location,nextLocation:v}:Y.has(v.pathname)&&(Te={currentLocation:v,nextLocation:m.location})}else if(B){let $=Y.get(m.location.pathname);$?$.add(v.pathname):($=new Set([v.pathname]),Y.set(m.location.pathname,$)),Te={currentLocation:m.location,nextLocation:v}}tt(se({},E,{actionData:F,loaderData:V,historyAction:N,location:v,initialized:!0,navigation:ga,revalidation:"idle",restoreScrollPosition:lc(v,E.matches||m.matches),preventScrollReset:Re,blockers:b}),{viewTransitionOpts:Te,flushSync:W===!0}),N=ye.Pop,I=!1,B=!1,re=!1,ve=!1,qe=[],ut=[]}async function Js(v,E){if(typeof v=="number"){e.history.go(v);return}let P=Ru(m.location,m.matches,u,c.v7_prependBasename,v,c.v7_relativeSplatPath,E==null?void 0:E.fromRouteId,E==null?void 0:E.relative),{path:O,submission:A,error:W}=Ef(c.v7_normalizeFormMethod,!1,P,E),z=m.location,F=Vo(m.location,O,E&&E.state);F=se({},F,e.history.encodeLocation(F));let V=E&&E.replace!=null?E.replace:void 0,b=ye.Push;V===!0?b=ye.Replace:V===!1||A!=null&&Pt(A.formMethod)&&A.formAction===m.location.pathname+m.location.search&&(b=ye.Replace);let Re=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,Te=(E&&E.unstable_flushSync)===!0,$=oc({currentLocation:z,nextLocation:F,historyAction:b});if($){li($,{state:"blocked",location:F,proceed(){li($,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),Js(v,E)},reset(){let le=new Map(m.blockers);le.set($,oo),tt({blockers:le})}});return}return await Rr(b,F,{submission:A,pendingError:W,preventScrollReset:Re,replace:E&&E.replace,enableViewTransition:E&&E.unstable_viewTransition,flushSync:Te})}function Dy(){if(Hl(),tt({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){Rr(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}Rr(N||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function Rr(v,E,P){D&&D.abort(),D=null,N=v,re=(P&&P.startUninterruptedRevalidation)===!0,By(m.location,m.matches),I=(P&&P.preventScrollReset)===!0,B=(P&&P.enableViewTransition)===!0;let O=a||l,A=P&&P.overrideNavigation,W=gn(O,E,u),z=(P&&P.flushSync)===!0;if(!W){let $=ft(404,{pathname:E.pathname}),{matches:le,route:Pe}=Nf(O);Wl(),Wn(E,{matches:le,loaderData:{},errors:{[Pe.id]:$}},{flushSync:z});return}if(m.initialized&&!ve&&l0(m.location,E)&&!(P&&P.submission&&Pt(P.submission.formMethod))){Wn(E,{matches:W},{flushSync:z});return}D=new AbortController;let F=tn(e.history,E,D.signal,P&&P.submission),V;if(P&&P.pendingError)V=[Po(W).route.id,{type:ae.error,error:P.pendingError}];else if(P&&P.submission&&Pt(P.submission.formMethod)){let $=await Iy(F,E,P.submission,W,{replace:P.replace,flushSync:z});if($.shortCircuited)return;V=$.pendingActionResult,A=wa(E,P.submission),z=!1,F=tn(e.history,F.url,F.signal)}let{shortCircuited:b,loaderData:Re,errors:Te}=await My(F,E,W,A,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,z,V);b||(D=null,Wn(E,se({matches:W},Of(V),{loaderData:Re,errors:Te})))}async function Iy(v,E,P,O,A){A===void 0&&(A={}),Hl();let W=c0(E,P);tt({navigation:W},{flushSync:A.flushSync===!0});let z,F=Ou(O,E);if(!F.route.action&&!F.route.lazy)z={type:ae.error,error:ft(405,{method:v.method,pathname:E.pathname,routeId:F.route.id})};else if(z=(await qn("action",v,[F],O))[0],v.signal.aborted)return{shortCircuited:!0};if(Fr(z)){let V;return A&&A.replace!=null?V=A.replace:V=kf(z.response.headers.get("Location"),new URL(v.url),u)===m.location.pathname+m.location.search,await Vn(v,z,{submission:P,replace:V}),{shortCircuited:!0}}if(Ar(z))throw ft(400,{type:"defer-action"});if(ht(z)){let V=Po(O,F.route.id);return(A&&A.replace)!==!0&&(N=ye.Push),{pendingActionResult:[V.route.id,z]}}return{pendingActionResult:[F.route.id,z]}}async function My(v,E,P,O,A,W,z,F,V,b){let Re=O||wa(E,A),Te=A||W||If(Re),$=a||l,[le,Pe]=xf(e.history,m,P,Te,E,c.v7_partialHydration&&F===!0,c.unstable_skipActionErrorRevalidation,ve,qe,ut,et,wt,te,$,u,b);if(Wl(J=>!(P&&P.some($e=>$e.route.id===J))||le&&le.some($e=>$e.route.id===J)),U=++j,le.length===0&&Pe.length===0){let J=tc();return Wn(E,se({matches:P,loaderData:{},errors:b&&ht(b[1])?{[b[0]]:b[1].error}:null},Of(b),J?{fetchers:new Map(m.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(!re&&(!c.v7_partialHydration||!F)){Pe.forEach($e=>{let ct=m.fetchers.get($e.key),Oe=io(void 0,ct?ct.data:void 0);m.fetchers.set($e.key,Oe)});let J;b&&!ht(b[1])?J={[b[0]]:b[1].data}:m.actionData&&(Object.keys(m.actionData).length===0?J=null:J=m.actionData),tt(se({navigation:Re},J!==void 0?{actionData:J}:{},Pe.length>0?{fetchers:new Map(m.fetchers)}:{}),{flushSync:V})}Pe.forEach(J=>{T.has(J.key)&&Zt(J.key),J.controller&&T.set(J.key,J.controller)});let Kn=()=>Pe.forEach(J=>Zt(J.key));D&&D.signal.addEventListener("abort",Kn);let{loaderResults:er,fetcherResults:Jr}=await Xs(m.matches,P,le,Pe,v);if(v.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",Kn),Pe.forEach(J=>T.delete(J.key));let Xr=Lf([...er,...Jr]);if(Xr){if(Xr.idx>=le.length){let J=Pe[Xr.idx-le.length].key;te.add(J)}return await Vn(v,Xr.result,{replace:z}),{shortCircuited:!0}}let{loaderData:Zr,errors:Ot}=Rf(m,P,le,er,b,Pe,Jr,Ue);Ue.forEach((J,$e)=>{J.subscribe(ct=>{(ct||J.done)&&Ue.delete($e)})}),c.v7_partialHydration&&F&&m.errors&&Object.entries(m.errors).filter(J=>{let[$e]=J;return!le.some(ct=>ct.route.id===$e)}).forEach(J=>{let[$e,ct]=J;Ot=Object.assign(Ot||{},{[$e]:ct})});let ai=tc(),ui=rc(U),si=ai||ui||Pe.length>0;return se({loaderData:Zr,errors:Ot},si?{fetchers:new Map(m.fetchers)}:{})}function Ay(v,E,P,O){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(v)&&Zt(v);let A=(O&&O.unstable_flushSync)===!0,W=a||l,z=Ru(m.location,m.matches,u,c.v7_prependBasename,P,c.v7_relativeSplatPath,E,O==null?void 0:O.relative),F=gn(W,z,u);if(!F){Qn(v,E,ft(404,{pathname:z}),{flushSync:A});return}let{path:V,submission:b,error:Re}=Ef(c.v7_normalizeFormMethod,!0,z,O);if(Re){Qn(v,E,Re,{flushSync:A});return}let Te=Ou(F,V);if(I=(O&&O.preventScrollReset)===!0,b&&Pt(b.formMethod)){Fy(v,E,V,Te,F,A,b);return}wt.set(v,{routeId:E,path:V}),zy(v,E,V,Te,F,A,b)}async function Fy(v,E,P,O,A,W,z){if(Hl(),wt.delete(v),!O.route.action&&!O.route.lazy){let Oe=ft(405,{method:z.formMethod,pathname:P,routeId:E});Qn(v,E,Oe,{flushSync:W});return}let F=m.fetchers.get(v);Xt(v,f0(z,F),{flushSync:W});let V=new AbortController,b=tn(e.history,P,V.signal,z);T.set(v,V);let Re=j,$=(await qn("action",b,[O],A))[0];if(b.signal.aborted){T.get(v)===V&&T.delete(v);return}if(c.v7_fetcherPersist&&et.has(v)){if(Fr($)||ht($)){Xt(v,rr(void 0));return}}else{if(Fr($))if(T.delete(v),U>Re){Xt(v,rr(void 0));return}else return te.add(v),Xt(v,io(z)),Vn(b,$,{fetcherSubmission:z});if(ht($)){Qn(v,E,$.error);return}}if(Ar($))throw ft(400,{type:"defer-action"});let le=m.navigation.location||m.location,Pe=tn(e.history,le,V.signal),Kn=a||l,er=m.navigation.state!=="idle"?gn(Kn,m.navigation.location,u):m.matches;q(er,"Didn't find any matches after fetcher action");let Jr=++j;ee.set(v,Jr);let Xr=io(z,$.data);m.fetchers.set(v,Xr);let[Zr,Ot]=xf(e.history,m,er,z,le,!1,c.unstable_skipActionErrorRevalidation,ve,qe,ut,et,wt,te,Kn,u,[O.route.id,$]);Ot.filter(Oe=>Oe.key!==v).forEach(Oe=>{let Gn=Oe.key,ac=m.fetchers.get(Gn),Hy=io(void 0,ac?ac.data:void 0);m.fetchers.set(Gn,Hy),T.has(Gn)&&Zt(Gn),Oe.controller&&T.set(Gn,Oe.controller)}),tt({fetchers:new Map(m.fetchers)});let ai=()=>Ot.forEach(Oe=>Zt(Oe.key));V.signal.addEventListener("abort",ai);let{loaderResults:ui,fetcherResults:si}=await Xs(m.matches,er,Zr,Ot,Pe);if(V.signal.aborted)return;V.signal.removeEventListener("abort",ai),ee.delete(v),T.delete(v),Ot.forEach(Oe=>T.delete(Oe.key));let J=Lf([...ui,...si]);if(J){if(J.idx>=Zr.length){let Oe=Ot[J.idx-Zr.length].key;te.add(Oe)}return Vn(Pe,J.result)}let{loaderData:$e,errors:ct}=Rf(m,m.matches,Zr,ui,void 0,Ot,si,Ue);if(m.fetchers.has(v)){let Oe=rr($.data);m.fetchers.set(v,Oe)}rc(Jr),m.navigation.state==="loading"&&Jr>U?(q(N,"Expected pending action"),D&&D.abort(),Wn(m.navigation.location,{matches:er,loaderData:$e,errors:ct,fetchers:new Map(m.fetchers)})):(tt({errors:ct,loaderData:Tf(m.loaderData,$e,er,ct),fetchers:new Map(m.fetchers)}),ve=!1)}async function zy(v,E,P,O,A,W,z){let F=m.fetchers.get(v);Xt(v,io(z,F?F.data:void 0),{flushSync:W});let V=new AbortController,b=tn(e.history,P,V.signal);T.set(v,V);let Re=j,$=(await qn("loader",b,[O],A))[0];if(Ar($)&&($=await $h($,b.signal,!0)||$),T.get(v)===V&&T.delete(v),!b.signal.aborted){if(et.has(v)){Xt(v,rr(void 0));return}if(Fr($))if(U>Re){Xt(v,rr(void 0));return}else{te.add(v),await Vn(b,$);return}if(ht($)){Qn(v,E,$.error);return}q(!Ar($),"Unhandled fetcher deferred data"),Xt(v,rr($.data))}}async function Vn(v,E,P){let{submission:O,fetcherSubmission:A,replace:W}=P===void 0?{}:P;E.response.headers.has("X-Remix-Revalidate")&&(ve=!0);let z=E.response.headers.get("Location");q(z,"Expected a Location header on the redirect Response"),z=kf(z,new URL(v.url),u);let F=Vo(m.location,z,{_isRedirect:!0});if(r){let le=!1;if(E.response.headers.has("X-Remix-Reload-Document"))le=!0;else if(Us.test(z)){const Pe=e.history.createURL(z);le=Pe.origin!==t.location.origin||$n(Pe.pathname,u)==null}if(le){W?t.location.replace(z):t.location.assign(z);return}}D=null;let V=W===!0?ye.Replace:ye.Push,{formMethod:b,formAction:Re,formEncType:Te}=m.navigation;!O&&!A&&b&&Re&&Te&&(O=If(m.navigation));let $=O||A;if(Qg.has(E.response.status)&&$&&Pt($.formMethod))await Rr(V,F,{submission:se({},$,{formAction:z}),preventScrollReset:I});else{let le=wa(F,O);await Rr(V,F,{overrideNavigation:le,fetcherSubmission:A,preventScrollReset:I})}}async function qn(v,E,P,O){try{let A=await t0(s,v,E,P,O,i,o);return await Promise.all(A.map((W,z)=>{if(a0(W)){let F=W.result;return{type:ae.redirect,response:o0(F,E,P[z].route.id,O,u,c.v7_relativeSplatPath)}}return n0(W)}))}catch(A){return P.map(()=>({type:ae.error,error:A}))}}async function Xs(v,E,P,O,A){let[W,...z]=await Promise.all([P.length?qn("loader",A,P,E):[],...O.map(F=>{if(F.matches&&F.match&&F.controller){let V=tn(e.history,F.path,F.controller.signal);return qn("loader",V,[F.match],F.matches).then(b=>b[0])}else return Promise.resolve({type:ae.error,error:ft(404,{pathname:F.path})})})]);return await Promise.all([Df(v,P,W,W.map(()=>A.signal),!1,m.loaderData),Df(v,O.map(F=>F.match),z,O.map(F=>F.controller?F.controller.signal:null),!0)]),{loaderResults:W,fetcherResults:z}}function Hl(){ve=!0,qe.push(...Wl()),wt.forEach((v,E)=>{T.has(E)&&(ut.push(E),Zt(E))})}function Xt(v,E,P){P===void 0&&(P={}),m.fetchers.set(v,E),tt({fetchers:new Map(m.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Qn(v,E,P,O){O===void 0&&(O={});let A=Po(m.matches,E);ii(v),tt({errors:{[A.route.id]:P},fetchers:new Map(m.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Zs(v){return c.v7_fetcherPersist&&(Ze.set(v,(Ze.get(v)||0)+1),et.has(v)&&et.delete(v)),m.fetchers.get(v)||Kg}function ii(v){let E=m.fetchers.get(v);T.has(v)&&!(E&&E.state==="loading"&&ee.has(v))&&Zt(v),wt.delete(v),ee.delete(v),te.delete(v),et.delete(v),m.fetchers.delete(v)}function jy(v){if(c.v7_fetcherPersist){let E=(Ze.get(v)||0)-1;E<=0?(Ze.delete(v),et.add(v)):Ze.set(v,E)}else ii(v);tt({fetchers:new Map(m.fetchers)})}function Zt(v){let E=T.get(v);q(E,"Expected fetch controller: "+v),E.abort(),T.delete(v)}function ec(v){for(let E of v){let P=Zs(E),O=rr(P.data);m.fetchers.set(E,O)}}function tc(){let v=[],E=!1;for(let P of te){let O=m.fetchers.get(P);q(O,"Expected fetcher: "+P),O.state==="loading"&&(te.delete(P),v.push(P),E=!0)}return ec(v),E}function rc(v){let E=[];for(let[P,O]of ee)if(O0}function Uy(v,E){let P=m.blockers.get(v)||oo;return st.get(v)!==E&&st.set(v,E),P}function nc(v){m.blockers.delete(v),st.delete(v)}function li(v,E){let P=m.blockers.get(v)||oo;q(P.state==="unblocked"&&E.state==="blocked"||P.state==="blocked"&&E.state==="blocked"||P.state==="blocked"&&E.state==="proceeding"||P.state==="blocked"&&E.state==="unblocked"||P.state==="proceeding"&&E.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+E.state);let O=new Map(m.blockers);O.set(v,E),tt({blockers:O})}function oc(v){let{currentLocation:E,nextLocation:P,historyAction:O}=v;if(st.size===0)return;st.size>1&&In(!1,"A router only supports one blocker at a time");let A=Array.from(st.entries()),[W,z]=A[A.length-1],F=m.blockers.get(W);if(!(F&&F.state==="proceeding")&&z({currentLocation:E,nextLocation:P,historyAction:O}))return W}function Wl(v){let E=[];return Ue.forEach((P,O)=>{(!v||v(O))&&(P.cancel(),E.push(O),Ue.delete(O))}),E}function $y(v,E,P){if(w=v,S=E,g=P||null,!k&&m.navigation===ga){k=!0;let O=lc(m.location,m.matches);O!=null&&tt({restoreScrollPosition:O})}return()=>{w=null,S=null,g=null}}function ic(v,E){return g&&g(v,E.map(O=>_g(O,m.loaderData)))||v.key}function By(v,E){if(w&&S){let P=ic(v,E);w[P]=S()}}function lc(v,E){if(w){let P=ic(v,E),O=w[P];if(typeof O=="number")return O}return null}function by(v){i={},a=Cu(v,o,void 0,i)}return L={get basename(){return u},get future(){return c},get state(){return m},get routes(){return l},get window(){return t},initialize:Oy,subscribe:Ly,enableScrollRestoration:$y,navigate:Js,fetch:Ay,revalidate:Dy,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:Zs,deleteFetcher:jy,dispose:Ny,getBlocker:Uy,deleteBlocker:nc,_internalFetchControllers:T,_internalActiveDeferreds:Ue,_internalSetRoutes:by},L}function Jg(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ru(e,t,r,n,o,i,l,a){let u,s;if(l){u=[];for(let p of t)if(u.push(p),p.route.id===l){s=p;break}}else u=t,s=t[t.length-1];let c=Fs(o||".",As(u,i),$n(e.pathname,r)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!$s(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Vt([r,c.pathname])),qr(c)}function Ef(e,t,r,n){if(!n||!Jg(n))return{path:r};if(n.formMethod&&!s0(n.formMethod))return{path:r,error:ft(405,{method:n.formMethod})};let o=()=>({path:r,error:ft(400,{type:"invalid-body"})}),i=n.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=jh(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pt(l))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,g)=>{let[S,k]=g;return""+w+S+"="+k+` -`},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!Pt(l))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:a,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}q(typeof FormData=="function","FormData is not available in this environment");let u,s;if(n.formData)u=Tu(n.formData),s=n.formData;else if(n.body instanceof FormData)u=Tu(n.body),s=n.body;else if(n.body instanceof URLSearchParams)u=n.body,s=Cf(u);else if(n.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(n.body),s=Cf(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Pt(c.formMethod))return{path:r,submission:c};let p=Jt(r);return t&&p.search&&$s(p.search)&&u.append("index",""),p.search="?"+u,{path:qr(p),submission:c}}function Xg(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xf(e,t,r,n,o,i,l,a,u,s,c,p,f,w,g,S){let k=S?ht(S[1])?S[1].error:S[1].data:void 0,y=e.createURL(t.location),d=e.createURL(o),h=S&&ht(S[1])?S[0]:void 0,x=h?Xg(r,h):r,_=S?S[1].statusCode:void 0,L=l&&_&&_>=400,m=x.filter((I,D)=>{let{route:B}=I;if(B.lazy)return!0;if(B.loader==null)return!1;if(i)return typeof B.loader!="function"||B.loader.hydrate?!0:t.loaderData[B.id]===void 0&&(!t.errors||t.errors[B.id]===void 0);if(Zg(t.loaderData,t.matches[D],I)||u.some(re=>re===I.route.id))return!0;let Y=t.matches[D],Q=I;return Pf(I,se({currentUrl:y,currentParams:Y.params,nextUrl:d,nextParams:Q.params},n,{actionResult:k,unstable_actionStatus:_,defaultShouldRevalidate:L?!1:a||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||zh(Y,Q)}))}),N=[];return p.forEach((I,D)=>{if(i||!r.some(ve=>ve.route.id===I.routeId)||c.has(D))return;let B=gn(w,I.path,g);if(!B){N.push({key:D,routeId:I.routeId,path:I.path,matches:null,match:null,controller:null});return}let Y=t.fetchers.get(D),Q=Ou(B,I.path),re=!1;f.has(D)?re=!1:s.includes(D)?re=!0:Y&&Y.state!=="idle"&&Y.data===void 0?re=a:re=Pf(Q,se({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:k,unstable_actionStatus:_,defaultShouldRevalidate:L?!1:a})),re&&N.push({key:D,routeId:I.routeId,path:I.path,matches:B,match:Q,controller:new AbortController})}),[m,N]}function Zg(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zh(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Pf(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function _f(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];q(o,"No route found in manifest");let i={};for(let l in n){let u=o[l]!==void 0&&l!=="hasErrorBoundary";In(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!xg.has(l)&&(i[l]=n[l])}Object.assign(o,i),Object.assign(o,se({},t(o),{lazy:void 0}))}function e0(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function t0(e,t,r,n,o,i,l,a){let u=n.reduce((p,f)=>p.add(f.route.id),new Set),s=new Set,c=await e({matches:o.map(p=>{let f=u.has(p.route.id);return se({},p,{shouldLoad:f,resolve:g=>(s.add(p.route.id),f?r0(t,r,p,i,l,g,a):Promise.resolve({type:ae.data,result:void 0}))})}),request:r,params:o[0].params,context:a});return o.forEach(p=>q(s.has(p.route.id),'`match.resolve()` was not called for route id "'+p.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((p,f)=>u.has(o[f].route.id))}async function r0(e,t,r,n,o,i,l){let a,u,s=c=>{let p,f=new Promise((S,k)=>p=k);u=()=>p(),t.signal.addEventListener("abort",u);let w=S=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:l},...S!==void 0?[S]:[]),g;return i?g=i(S=>w(S)):g=(async()=>{try{return{type:"data",result:await w()}}catch(S){return{type:"error",result:S}}})(),Promise.race([g,f])};try{let c=r.route[e];if(r.route.lazy)if(c){let p,[f]=await Promise.all([s(c).catch(w=>{p=w}),_f(r.route,o,n)]);if(p!==void 0)throw p;a=f}else if(await _f(r.route,o,n),c=r.route[e],c)a=await s(c);else if(e==="action"){let p=new URL(t.url),f=p.pathname+p.search;throw ft(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:ae.data,result:void 0};else if(c)a=await s(c);else{let p=new URL(t.url),f=p.pathname+p.search;throw ft(404,{pathname:f})}q(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:ae.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return a}async function n0(e){let{result:t,type:r,status:n}=e;if(Uh(t)){let l;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(a){return{type:ae.error,error:a}}return r===ae.error?{type:ae.error,error:new zs(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:ae.data,data:l,statusCode:t.status,headers:t.headers}}if(r===ae.error)return{type:ae.error,error:t,statusCode:js(t)?t.status:n};if(u0(t)){var o,i;return{type:ae.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:ae.data,data:t,statusCode:n}}function o0(e,t,r,n,o,i){let l=e.headers.get("Location");if(q(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Us.test(l)){let a=n.slice(0,n.findIndex(u=>u.route.id===r)+1);l=Ru(new URL(t.url),a,o,!0,l,i),e.headers.set("Location",l)}return e}function kf(e,t,r){if(Us.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=$n(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function tn(e,t,r,n){let o=e.createURL(jh(t)).toString(),i={signal:r};if(n&&Pt(n.formMethod)){let{formMethod:l,formEncType:a}=n;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(n.json)):a==="text/plain"?i.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?i.body=Tu(n.formData):i.body=n.formData}return new Request(o,i)}function Tu(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Cf(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function i0(e,t,r,n,o,i){let l={},a=null,u,s=!1,c={},p=n&&ht(n[1])?n[1].error:void 0;return r.forEach((f,w)=>{let g=t[w].route.id;if(q(!Fr(f),"Cannot handle redirect results in processLoaderData"),ht(f)){let S=f.error;if(p!==void 0&&(S=p,p=void 0),a=a||{},i)a[g]=S;else{let k=Po(e,g);a[k.route.id]==null&&(a[k.route.id]=S)}l[g]=void 0,s||(s=!0,u=js(f.error)?f.error.status:500),f.headers&&(c[g]=f.headers)}else Ar(f)?(o.set(g,f.deferredData),l[g]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(c[g]=f.headers)):(l[g]=f.data,f.statusCode&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(c[g]=f.headers))}),p!==void 0&&n&&(a={[n[0]]:p},l[n[0]]=void 0),{loaderData:l,errors:a,statusCode:u||200,loaderHeaders:c}}function Rf(e,t,r,n,o,i,l,a){let{loaderData:u,errors:s}=i0(t,r,n,o,a,!1);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Nf(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ft(e,t){let{pathname:r,routeId:n,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&r&&n?a="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",a='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?a="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new zs(e||500,l,new Error(a),!0)}function Lf(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Fr(r))return{result:r,idx:t}}}function jh(e){let t=typeof e=="string"?Jt(e):e;return qr(se({},t,{hash:""}))}function l0(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function a0(e){return Uh(e.result)&&qg.has(e.result.status)}function Ar(e){return e.type===ae.deferred}function ht(e){return e.type===ae.error}function Fr(e){return(e&&e.type)===ae.redirect}function u0(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Uh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function s0(e){return Vg.has(e.toLowerCase())}function Pt(e){return Hg.has(e.toLowerCase())}async function Df(e,t,r,n,o,i){for(let l=0;lp.route.id===u.route.id),c=s!=null&&!zh(s,u)&&(i&&i[u.route.id])!==void 0;if(Ar(a)&&(o||c)){let p=n[l];q(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await $h(a,p,o).then(f=>{f&&(r[l]=f||r[l])})}}}async function $h(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:ae.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ae.error,error:o}}return{type:ae.data,data:e.deferredData.data}}}function $s(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ou(e,t){let r=typeof t=="string"?Jt(t).search:t.search;if(e[e.length-1].route.index&&$s(r||""))return e[e.length-1];let n=Mh(e);return n[n.length-1]}function If(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:l}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:l,text:void 0}}}function wa(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function c0(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function io(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function f0(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function rr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function d0(e,t){try{let r=e.sessionStorage.getItem(Fh);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function p0(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Fh,JSON.stringify(r))}catch(n){In(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.23.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),C.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){n.go(s);return}let p=Fs(s,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Vt([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,l,i,e])}function v0(){let{matches:e}=C.useContext(kr),t=e[e.length-1];return t?t.params:{}}function Wh(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=C.useContext(Yr),{matches:o}=C.useContext(kr),{pathname:i}=$l(),l=JSON.stringify(As(o,n.v7_relativeSplatPath));return C.useMemo(()=>Fs(e,JSON.parse(l),i,r==="path"),[e,l,i,r])}function g0(e,t,r,n){ti()||q(!1);let{navigator:o}=C.useContext(Yr),{matches:i}=C.useContext(kr),l=i[i.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=$l(),c;if(t){var p;let k=typeof t=="string"?Jt(t):t;u==="/"||(p=k.pathname)!=null&&p.startsWith(u)||q(!1),c=k}else c=s;let f=c.pathname||"/",w=f;if(u!=="/"){let k=u.replace(/^\//,"").split("/");w="/"+f.replace(/^\//,"").split("/").slice(k.length).join("/")}let g=gn(e,{pathname:w}),S=P0(g&&g.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Vt([u,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:Vt([u,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,r,n);return t&&S?C.createElement(Ul.Provider,{value:{location:qo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ye.Pop}},S):S}function w0(){let e=R0(),t=js(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),r?C.createElement("pre",{style:o},r):null,null)}const S0=C.createElement(w0,null);class E0 extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?C.createElement(kr.Provider,{value:this.props.routeContext},C.createElement(bh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x0(e){let{routeContext:t,match:r,children:n}=e,o=C.useContext(jl);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(kr.Provider,{value:t},n)}function P0(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let l=e,a=(o=r)==null?void 0:o.errors;if(a!=null){let c=l.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);c>=0||q(!1),l=l.slice(0,Math.min(l.length,c+1))}let u=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((c,p,f)=>{let w,g=!1,S=null,k=null;r&&(w=a&&p.route.id?a[p.route.id]:void 0,S=p.route.errorElement||S0,u&&(s<0&&f===0?(O0("route-fallback",!1),g=!0,k=null):s===f&&(g=!0,k=p.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,f+1)),d=()=>{let h;return w?h=S:g?h=k:p.route.Component?h=C.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=c,C.createElement(x0,{match:p,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:h})};return r&&(p.route.ErrorBoundary||p.route.errorElement||f===0)?C.createElement(E0,{location:r.location,revalidation:r.revalidation,component:S,error:w,children:d(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):d()},null)}var Vh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vh||{}),yl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yl||{});function _0(e){let t=C.useContext(jl);return t||q(!1),t}function k0(e){let t=C.useContext(Bh);return t||q(!1),t}function C0(e){let t=C.useContext(kr);return t||q(!1),t}function qh(e){let t=C0(),r=t.matches[t.matches.length-1];return r.route.id||q(!1),r.route.id}function R0(){var e;let t=C.useContext(bh),r=k0(yl.UseRouteError),n=qh(yl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function T0(){let{router:e}=_0(Vh.UseNavigateStable),t=qh(yl.UseNavigateStable),r=C.useRef(!1);return Hh(()=>{r.current=!0}),C.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qo({fromRouteId:t},i)))},[e,t])}const Mf={};function O0(e,t,r){!t&&!Mf[e]&&(Mf[e]=!0)}function N0(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ye.Pop,navigator:i,static:l=!1,future:a}=e;ti()&&q(!1);let u=t.replace(/^\/*/,"/"),s=C.useMemo(()=>({basename:u,navigator:i,static:l,future:qo({v7_relativeSplatPath:!1},a)}),[u,a,i,l]);typeof n=="string"&&(n=Jt(n));let{pathname:c="/",search:p="",hash:f="",state:w=null,key:g="default"}=n,S=C.useMemo(()=>{let k=$n(c,u);return k==null?null:{location:{pathname:k,search:p,hash:f,state:w,key:g},navigationType:o}},[u,c,p,f,w,g,o]);return S==null?null:C.createElement(Yr.Provider,{value:s},C.createElement(Ul.Provider,{children:r,value:S}))}new Promise(()=>{});function L0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:C.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.23.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function I0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M0(e,t){return e.button===0&&(!t||t==="_self")&&!I0(e)}const A0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],F0="6";try{window.__reactRouterVersion=F0}catch{}function z0(e,t){return Yg({basename:t==null?void 0:t.basename,future:Qo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:wg({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||j0(),routes:e,mapRouteProperties:L0,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function j0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qo({},t,{errors:U0(t.errors)})),t}function U0(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new zs(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",r[n]=l}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const $0=C.createContext({isTransitioning:!1}),B0=C.createContext(new Map),b0="startTransition",Af=am[b0],H0="flushSync",Ff=gg[H0];function W0(e){Af?Af(e):e()}function lo(e){Ff?Ff(e):e()}class V0{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function q0(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=C.useState(r.state),[l,a]=C.useState(),[u,s]=C.useState({isTransitioning:!1}),[c,p]=C.useState(),[f,w]=C.useState(),[g,S]=C.useState(),k=C.useRef(new Map),{v7_startTransition:y}=n||{},d=C.useCallback(m=>{y?W0(m):m()},[y]),h=C.useCallback((m,N)=>{let{deletedFetchers:I,unstable_flushSync:D,unstable_viewTransitionOpts:B}=N;I.forEach(Q=>k.current.delete(Q)),m.fetchers.forEach((Q,re)=>{Q.data!==void 0&&k.current.set(re,Q.data)});let Y=r.window==null||typeof r.window.document.startViewTransition!="function";if(!B||Y){D?lo(()=>i(m)):d(()=>i(m));return}if(D){lo(()=>{f&&(c&&c.resolve(),f.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let Q=r.window.document.startViewTransition(()=>{lo(()=>i(m))});Q.finished.finally(()=>{lo(()=>{p(void 0),w(void 0),a(void 0),s({isTransitioning:!1})})}),lo(()=>w(Q));return}f?(c&&c.resolve(),f.skipTransition(),S({state:m,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(a(m),s({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,f,c,k,d]);C.useLayoutEffect(()=>r.subscribe(h),[r,h]),C.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new V0)},[u]),C.useEffect(()=>{if(c&&l&&r.window){let m=l,N=c.promise,I=r.window.document.startViewTransition(async()=>{d(()=>i(m)),await N});I.finished.finally(()=>{p(void 0),w(void 0),a(void 0),s({isTransitioning:!1})}),w(I)}},[d,l,c,r.window]),C.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,f,o.location,l]),C.useEffect(()=>{!u.isTransitioning&&g&&(a(g.state),s({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[u.isTransitioning,g]),C.useEffect(()=>{},[]);let x=C.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:m=>r.navigate(m),push:(m,N,I)=>r.navigate(m,{state:N,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(m,N,I)=>r.navigate(m,{replace:!0,state:N,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[r]),_=r.basename||"/",L=C.useMemo(()=>({router:r,navigator:x,static:!1,basename:_}),[r,x,_]);return C.createElement(C.Fragment,null,C.createElement(jl.Provider,{value:L},C.createElement(Bh.Provider,{value:o},C.createElement(B0.Provider,{value:k.current},C.createElement($0.Provider,{value:u},C.createElement(N0,{basename:_,location:o.location,navigationType:o.historyAction,navigator:x,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},o.initialized||r.future.v7_partialHydration?C.createElement(Q0,{routes:r.routes,future:r.future,state:o}):t))))),null)}function Q0(e){let{routes:t,future:r,state:n}=e;return g0(t,void 0,n,r)}const K0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qh=C.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,f=D0(t,A0),{basename:w}=C.useContext(Yr),g,S=!1;if(typeof s=="string"&&G0.test(s)&&(g=s,K0))try{let h=new URL(window.location.href),x=s.startsWith("//")?new URL(h.protocol+s):new URL(s),_=$n(x.pathname,w);x.origin===h.origin&&_!=null?s=_+x.search+x.hash:S=!0}catch{}let k=h0(s,{relative:o}),y=Y0(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:p});function d(h){n&&n(h),h.defaultPrevented||y(h)}return C.createElement("a",Qo({},f,{href:g||k,onClick:S||i?n:d,ref:r,target:u}))});var zf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zf||(zf={}));var jf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jf||(jf={}));function Y0(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=y0(),s=$l(),c=Wh(e,{relative:l});return C.useCallback(p=>{if(M0(p,r)){p.preventDefault();let f=n!==void 0?n:qr(s)===qr(c);u(e,{replace:f,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[s,u,c,n,o,r,e,i,l,a])}const J0=()=>{const[e,t]=C.useState("");return C.useEffect(()=>{let r=0;const n=setInterval(()=>{r=(r+1)%4;let o="";for(let i=0;iclearInterval(n)},[]),H.jsxs("div",{className:"title-text h-screen font-mono disable-select -z-10",children:[H.jsx("div",{className:"h-1/2 relative -z-10",children:H.jsx("div",{className:"absolute bottom-0 text-2xl pl-7 pb-5",children:"I am pursuing a CS degree"})}),H.jsx("div",{className:"h-1/2 relative -z-10",children:H.jsxs("div",{className:"absolute text-5xl pl-5 sm:text-6xl md:text-7xl lg:text-8xl xl:text-9xl",children:["BUT HOW DO I ",e]})})]})},X0=[{title:"How Do I Implement Pagination in React",tags:["react","javascript"],id:0},{title:"How Do I Use Scroll, Blur and Opactiy",tags:["javascript","react"],id:1},{title:"How Do I Use setInterval() For Repeating A Content",tags:["javascript","react"],id:2},{title:"How Do I Fetch Raw HTML Content From GitHub",tags:["react"],id:3}],Z0=({title:e,tags:t})=>{const r=C.useMemo(()=>t.sort((n,o)=>n.localeCompare(o)),[t]);return H.jsx(Qh,{to:`/post/${e}`,children:H.jsxs("div",{className:` - w-4/5 - mx-auto - rounded-lg - shadow-inner - border-2 - mb-5 - transition - duration-300 - hover:scale-102 - post-grid - post-grid-border - border-zinc-500 - `,children:[H.jsx("div",{className:` - post-grid-text - text-xl - font-mono - sm:text-xl - md:text-2xl - lg:text-3xl - xl:text-3xl - break-words - px-5 - py-7 - disable-select - `,children:e}),H.jsx("div",{className:` - flex - flex-wrap - gap-2 - py-6 - px-3 - text-xs - sm:text-xs - md:text-sm - lg:text-lg - xl:text-lg - font-mono - overflow-hidden - `,children:r.map(n=>H.jsx("div",{className:` - border-2 - rounded-md - px-3 - py-1 - mx-2 - post-grid-text - float-right - disable-select - `,children:n},n))})]})})},e1=({currentPage:e,pageCount:t,onPageChange:r})=>{const n=[];for(let o=1;o<=t;o++)n.push(H.jsx("button",{onClick:()=>r(o),className:` - font-mono - rounded-md - px-2 - mx-1 - mb-2 - w-fit - shadow-lg - inline-block - text-xs - sm:text-xe - md:text-sm - lg:text-lg - xl:text-lg - transition - duration-300 - whitespace-pre - bg-gray-500/20 - hover:bg-gray-200/20 - ${e===o?"border-2 pagination-border-selected pagination-text-selected":"border-2 border-zinc-500/50 text-white/50"} - `,children:o},o));return H.jsx("div",{children:n})},t1=()=>{const[e,t]=C.useState([]),[r,n]=C.useState([]),[o,i]=C.useState([]),[l,a]=C.useState([]),[u,s]=C.useState(1),c=4,p=Math.ceil(l.length/c);C.useEffect(()=>{const d=X0.sort((_,L)=>L.id-_.id),h=f(d),x=Object.keys(h).map(_=>({name:_,frequency:h[_].length})).sort((_,L)=>L.frequency-_.frequency);t(d),n(x),a(d)},[]);const f=d=>{const h={};return d.forEach(x=>{x.tags.forEach(_=>{h[_]?h[_].push(x.id):h[_]=[x.id]})}),h},w=d=>{if(o.indexOf(d)!==-1){const x=o.filter(_=>_!==d);i(x),g(x)}else{const x=[...o,d];i(x),g(x)}},g=d=>{if(d.length===0){a(e),n(r.map(x=>({...x,frequency:e.filter(_=>_.tags.includes(x.name)).length})));return}const h=e.filter(x=>{const _=L=>x.tags.includes(L);return d.every(_)});a(h),S(h)},S=d=>{const h=r.map(x=>{const _=d.filter(m=>m.tags.includes(x.name)).length;return{...x,frequency:_}});n(h)},k=d=>{s(d)},y=C.useMemo(()=>{const d=(u-1)*c,h=d+c;return l.slice(d,h)},[u,l,c]);return H.jsxs("div",{className:"relative post-section-board min-h-screen",children:[H.jsx("div",{className:` - text-center - post-section-text-title - my-14 - font-mono - text-2xl - sm:text-3xl - md:text-4xl - lg:text-5xl - xl:text-6xl - disable-select - `,children:"THINGS I FIND USEFUL"}),H.jsx("div",{className:"text-center mb-8 disable-select",children:r.map(d=>H.jsx("button",{disabled:d.frequency===0,onClick:()=>w(d.name),className:` - border-2 - font-mono - px-2 - py-1 - rounded-lg - shadow-lg - mb-2 - mx-2 - text-xs - sm:text-xs - md:text-sm - lg:text-lg - xl:text-lg - hover-bg - hover-text - hover:scale-110 - hover:shadow-2xl - hover:shadow-stone-700/50 - hover:-translate-y-1 - disabled:border-gray-500 - disabled:text-gray-500 - disabled:hover:scale-100 - disabled:transition-none - disabled:hover:shadow-none - disabled:hover:bg-inherit - disabled:hover:transform-none - active:bg-gray-900 - active:text-gray-200 - transition - duration-300 - whitespace-pre - ${o.includes(d.name)?"text-selected border-selected":"text-zinc-400 border-zinc-500"} - `,children:d.name+" "+d.frequency},d.name))}),y.map(d=>H.jsx(Z0,{title:d.title,tags:d.tags},d.id)),H.jsx("div",{className:` - absolute - bottom-1 - mb-1 - mt-10 - left-1/2 - -translate-x-1/2 - disable-select - `,children:H.jsx(e1,{currentPage:u,pageCount:p,onPageChange:k})})]})},r1=()=>H.jsxs("div",{className:"text-footer disable-select",children:[H.jsx("div",{children:"A collection of code snippets by Nathan Lao from his side projects"}),H.jsx("div",{children:"@2024"})]}),n1=()=>{const[e,t]=C.useState(0),[r,n]=C.useState(1),[o,i]=C.useState(!1),l=()=>{const a=window.scrollY,u=window.innerHeight,s=15,c=0,p=a/(u*.7),f=Math.min(s,Math.ceil(p*s)),w=Math.max(c,1.5-p);t(f),n(w)};return C.useEffect(()=>{const a=()=>l(),u=()=>l(),s=setTimeout(()=>{window.scrollTo(0,0),i(!0)},500);return window.addEventListener("scroll",a),window.addEventListener("resize",u),()=>{clearTimeout(s),window.removeEventListener("scroll",a),window.removeEventListener("resize",u)}},[]),o?H.jsxs("div",{className:`fade-in ${o?"visible":""}`,children:[H.jsx("div",{className:"h-screen w-screen -z-10"}),H.jsx("div",{className:"fixed top-0 h-screen w-screen -z-10",style:{filter:`blur(${e}px)`,opacity:r},children:H.jsx(J0,{})}),H.jsx("div",{className:"-z-10",style:{height:"50vh"}}),H.jsx(t1,{}),H.jsx("div",{className:"text-center mt-1 mb-4 w-full z-50",children:H.jsx(r1,{})})]}):H.jsx("div",{className:"disable-display",children:"Loading..."})};var o1=Error,i1=EvalError,l1=RangeError,a1=ReferenceError,Kh=SyntaxError,ri=TypeError,u1=URIError,s1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Uf=typeof Symbol<"u"&&Symbol,c1=s1,f1=function(){return typeof Uf!="function"||typeof Symbol!="function"||typeof Uf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:c1()},Sa={__proto__:null,foo:{}},d1=Object,p1=function(){return{__proto__:Sa}.foo===Sa.foo&&!(Sa instanceof d1)},h1="Function.prototype.bind called on incompatible ",y1=Object.prototype.toString,m1=Math.max,v1="[object Function]",$f=function(t,r){for(var n=[],o=0;o"u"||!_e?K:_e(Uint8Array),$r={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?K:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?K:ArrayBuffer,"%ArrayIteratorPrototype%":rn&&_e?_e([][Symbol.iterator]()):K,"%AsyncFromSyncIteratorPrototype%":K,"%AsyncFunction%":on,"%AsyncGenerator%":on,"%AsyncGeneratorFunction%":on,"%AsyncIteratorPrototype%":on,"%Atomics%":typeof Atomics>"u"?K:Atomics,"%BigInt%":typeof BigInt>"u"?K:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?K:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?K:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?K:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":C1,"%eval%":eval,"%EvalError%":R1,"%Float32Array%":typeof Float32Array>"u"?K:Float32Array,"%Float64Array%":typeof Float64Array>"u"?K:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?K:FinalizationRegistry,"%Function%":Gh,"%GeneratorFunction%":on,"%Int8Array%":typeof Int8Array>"u"?K:Int8Array,"%Int16Array%":typeof Int16Array>"u"?K:Int16Array,"%Int32Array%":typeof Int32Array>"u"?K:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rn&&_e?_e(_e([][Symbol.iterator]())):K,"%JSON%":typeof JSON=="object"?JSON:K,"%Map%":typeof Map>"u"?K:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rn||!_e?K:_e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?K:Promise,"%Proxy%":typeof Proxy>"u"?K:Proxy,"%RangeError%":T1,"%ReferenceError%":O1,"%Reflect%":typeof Reflect>"u"?K:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?K:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rn||!_e?K:_e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?K:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rn&&_e?_e(""[Symbol.iterator]()):K,"%Symbol%":rn?Symbol:K,"%SyntaxError%":Mn,"%ThrowTypeError%":L1,"%TypedArray%":I1,"%TypeError%":kn,"%Uint8Array%":typeof Uint8Array>"u"?K:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?K:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?K:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?K:Uint32Array,"%URIError%":N1,"%WeakMap%":typeof WeakMap>"u"?K:WeakMap,"%WeakRef%":typeof WeakRef>"u"?K:WeakRef,"%WeakSet%":typeof WeakSet>"u"?K:WeakSet};if(_e)try{null.error}catch(e){var M1=_e(_e(e));$r["%Error.prototype%"]=M1}var A1=function e(t){var r;if(t==="%AsyncFunction%")r=Ea("async function () {}");else if(t==="%GeneratorFunction%")r=Ea("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ea("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&_e&&(r=_e(o.prototype))}return $r[t]=r,r},Bf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ni=Bs,ml=k1,F1=ni.call(Function.call,Array.prototype.concat),z1=ni.call(Function.apply,Array.prototype.splice),bf=ni.call(Function.call,String.prototype.replace),vl=ni.call(Function.call,String.prototype.slice),j1=ni.call(Function.call,RegExp.prototype.exec),U1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$1=/\\(\\)?/g,B1=function(t){var r=vl(t,0,1),n=vl(t,-1);if(r==="%"&&n!=="%")throw new Mn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Mn("invalid intrinsic syntax, expected opening `%`");var o=[];return bf(t,U1,function(i,l,a,u){o[o.length]=a?bf(u,$1,"$1"):l||i}),o},b1=function(t,r){var n=t,o;if(ml(Bf,n)&&(o=Bf[n],n="%"+o[0]+"%"),ml($r,n)){var i=$r[n];if(i===on&&(i=A1(n)),typeof i>"u"&&!r)throw new kn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Mn("intrinsic "+t+" does not exist!")},Bn=function(t,r){if(typeof t!="string"||t.length===0)throw new kn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new kn('"allowMissing" argument must be a boolean');if(j1(/^%?[^%]*%?$/,t)===null)throw new Mn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=B1(t),o=n.length>0?n[0]:"",i=b1("%"+o+"%",r),l=i.name,a=i.value,u=!1,s=i.alias;s&&(o=s[0],z1(n,F1([0,1],s)));for(var c=1,p=!0;c=n.length){var S=Ur(a,f);p=!!S,p&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else p=ml(a,f),a=a[f];p&&!u&&($r[l]=a)}}return a},Yh={exports:{}},Pa,Hf;function bs(){if(Hf)return Pa;Hf=1;var e=Bn,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Pa=t,Pa}var H1=Bn,bi=H1("%Object.getOwnPropertyDescriptor%",!0);if(bi)try{bi([],"length")}catch{bi=null}var Jh=bi,Wf=bs(),W1=Kh,nn=ri,Vf=Jh,V1=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!Vf&&Vf(t,r);if(Wf)Wf(t,r,{configurable:l===null&&u?u.configurable:!l,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!l)t[r]=n;else throw new W1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nu=bs(),Xh=function(){return!!Nu};Xh.hasArrayLengthDefineBug=function(){if(!Nu)return null;try{return Nu([],"length",{value:1}).length!==1}catch{return!0}};var q1=Xh,Q1=Bn,qf=V1,K1=q1(),Qf=Jh,Kf=ri,G1=Q1("%Math.floor%"),Y1=function(t,r){if(typeof t!="function")throw new Kf("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||G1(r)!==r)throw new Kf("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&Qf){var l=Qf(t,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(i=!1)}return(o||i||!n)&&(K1?qf(t,"length",r,!0,!0):qf(t,"length",r)),t};(function(e){var t=Bs,r=Bn,n=Y1,o=ri,i=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(l,i),u=bs(),s=r("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var w=a(t,l,arguments);return n(w,1+s(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(Yh);var J1=Yh.exports,Zh=Bn,ey=J1,X1=ey(Zh("String.prototype.indexOf")),Z1=function(t,r){var n=Zh(t,!!r);return typeof n=="function"&&X1(t,".prototype.")>-1?ey(n):n};const ew={},tw=Object.freeze(Object.defineProperty({__proto__:null,default:ew},Symbol.toStringTag,{value:"Module"})),rw=Vy(tw);var Hs=typeof Map=="function"&&Map.prototype,_a=Object.getOwnPropertyDescriptor&&Hs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,gl=Hs&&_a&&typeof _a.get=="function"?_a.get:null,Gf=Hs&&Map.prototype.forEach,Ws=typeof Set=="function"&&Set.prototype,ka=Object.getOwnPropertyDescriptor&&Ws?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,wl=Ws&&ka&&typeof ka.get=="function"?ka.get:null,Yf=Ws&&Set.prototype.forEach,nw=typeof WeakMap=="function"&&WeakMap.prototype,_o=nw?WeakMap.prototype.has:null,ow=typeof WeakSet=="function"&&WeakSet.prototype,ko=ow?WeakSet.prototype.has:null,iw=typeof WeakRef=="function"&&WeakRef.prototype,Jf=iw?WeakRef.prototype.deref:null,lw=Boolean.prototype.valueOf,aw=Object.prototype.toString,uw=Function.prototype.toString,sw=String.prototype.match,Vs=String.prototype.slice,cr=String.prototype.replace,cw=String.prototype.toUpperCase,Xf=String.prototype.toLowerCase,ty=RegExp.prototype.test,Zf=Array.prototype.concat,Mt=Array.prototype.join,fw=Array.prototype.slice,ed=Math.floor,Lu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ca=Object.getOwnPropertySymbols,Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,An=typeof Symbol=="function"&&typeof Symbol.iterator=="object",je=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===An||!0)?Symbol.toStringTag:null,ry=Object.prototype.propertyIsEnumerable,td=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function rd(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ty.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ed(-e):ed(e);if(n!==e){var o=String(n),i=Vs.call(t,o.length+1);return cr.call(o,r,"$&_")+"."+cr.call(cr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cr.call(t,r,"$&_")}var Iu=rw,nd=Iu.custom,od=oy(nd)?nd:null,dw=function e(t,r,n,o){var i=r||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=ir(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ly(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?rd(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return a?rd(t,s):s}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Mu(t)?"[Array]":"[Object]";var p=Nw(i,n);if(typeof o>"u")o=[];else if(iy(o,t)>=0)return"[Circular]";function f(Q,re,ve){if(re&&(o=fw.call(o),o.push(re)),ve){var qe={depth:i.depth};return ir(i,"quoteStyle")&&(qe.quoteStyle=i.quoteStyle),e(Q,qe,n+1,o)}return e(Q,i,n+1,o)}if(typeof t=="function"&&!id(t)){var w=Ew(t),g=Ri(t,f);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+Mt.call(g,", ")+" }":"")}if(oy(t)){var S=An?cr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Du.call(t);return typeof t=="object"&&!An?ao(S):S}if(Rw(t)){for(var k="<"+Xf.call(String(t.nodeName)),y=t.attributes||[],d=0;d",k}if(Mu(t)){if(t.length===0)return"[]";var h=Ri(t,f);return p&&!Ow(h)?"["+Au(h,p)+"]":"[ "+Mt.call(h,", ")+" ]"}if(yw(t)){var x=Ri(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!ry.call(t,"cause")?"{ ["+String(t)+"] "+Mt.call(Zf.call("[cause]: "+f(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mt.call(x,", ")+" }"}if(typeof t=="object"&&l){if(od&&typeof t[od]=="function"&&Iu)return Iu(t,{depth:c-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(xw(t)){var _=[];return Gf&&Gf.call(t,function(Q,re){_.push(f(re,t,!0)+" => "+f(Q,t))}),ld("Map",gl.call(t),_,p)}if(kw(t)){var L=[];return Yf&&Yf.call(t,function(Q){L.push(f(Q,t))}),ld("Set",wl.call(t),L,p)}if(Pw(t))return Ra("WeakMap");if(Cw(t))return Ra("WeakSet");if(_w(t))return Ra("WeakRef");if(vw(t))return ao(f(Number(t)));if(ww(t))return ao(f(Lu.call(t)));if(gw(t))return ao(lw.call(t));if(mw(t))return ao(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Wy)return"{ [object globalThis] }";if(!hw(t)&&!id(t)){var m=Ri(t,f),N=td?td(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",D=!N&&je&&Object(t)===t&&je in t?Vs.call(Cr(t),8,-1):I?"Object":"",B=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=B+(D||I?"["+Mt.call(Zf.call([],D||[],I||[]),": ")+"] ":"");return m.length===0?Y+"{}":p?Y+"{"+Au(m,p)+"}":Y+"{ "+Mt.call(m,", ")+" }"}return String(t)};function ny(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function pw(e){return cr.call(String(e),/"/g,""")}function Mu(e){return Cr(e)==="[object Array]"&&(!je||!(typeof e=="object"&&je in e))}function hw(e){return Cr(e)==="[object Date]"&&(!je||!(typeof e=="object"&&je in e))}function id(e){return Cr(e)==="[object RegExp]"&&(!je||!(typeof e=="object"&&je in e))}function yw(e){return Cr(e)==="[object Error]"&&(!je||!(typeof e=="object"&&je in e))}function mw(e){return Cr(e)==="[object String]"&&(!je||!(typeof e=="object"&&je in e))}function vw(e){return Cr(e)==="[object Number]"&&(!je||!(typeof e=="object"&&je in e))}function gw(e){return Cr(e)==="[object Boolean]"&&(!je||!(typeof e=="object"&&je in e))}function oy(e){if(An)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Du)return!1;try{return Du.call(e),!0}catch{}return!1}function ww(e){if(!e||typeof e!="object"||!Lu)return!1;try{return Lu.call(e),!0}catch{}return!1}var Sw=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return Sw.call(e,t)}function Cr(e){return aw.call(e)}function Ew(e){if(e.name)return e.name;var t=sw.call(uw.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function iy(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ly(Vs.call(e,0,t.maxStringLength),t)+n}var o=cr.call(cr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Tw);return ny(o,"single",t)}function Tw(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+cw.call(t.toString(16))}function ao(e){return"Object("+e+")"}function Ra(e){return e+" { ? }"}function ld(e,t,r,n){var o=n?Au(r,n):Mt.call(r,", ");return e+" ("+t+") {"+o+"}"}function Ow(e){for(var t=0;t=0)return!1;return!0}function Nw(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Mt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Mt.call(Array(t+1),r)}}function Au(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+Mt.call(e,","+r)+` -`+t.prev}function Ri(e,t){var r=Mu(e),n=[];if(r){n.length=e.length;for(var o=0;o1;){var r=t.pop(),n=r.obj[r.prop];if(Nr(n)){for(var o=[],i=0;i=Na?l.slice(u,u+Na):l,c=[],p=0;p=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Vw.RFC1738&&(f===40||f===41)){c[c.length]=s.charAt(p);continue}if(f<128){c[c.length]=Lt[f];continue}if(f<2048){c[c.length]=Lt[192|f>>6]+Lt[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Lt[224|f>>12]+Lt[128|f>>6&63]+Lt[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|s.charCodeAt(p)&1023),c[c.length]=Lt[240|f>>18]+Lt[128|f>>12&63]+Lt[128|f>>6&63]+Lt[128|f&63]}a+=c.join("")}return a},Jw=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o"u"&&(_=0)}if(typeof c=="function"?h=c(r,h):h instanceof Date?h=w(h):n==="comma"&&It(h)&&(h=Hi.maybeMap(h,function(U){return U instanceof Date?w(U):U})),h===null){if(l)return s&&!k?s(r,we.encoder,y,"key",g):r;h=""}if(iS(h)||Hi.isBuffer(h)){if(s){var N=k?r:s(r,we.encoder,y,"key",g);return[S(N)+"="+S(s(h,we.encoder,y,"value",g))]}return[S(r)+"="+S(String(h))]}var I=[];if(typeof h>"u")return I;var D;if(n==="comma"&&It(h))k&&s&&(h=Hi.maybeMap(h,s)),D=[{value:h.length>0?h.join(",")||null:void 0}];else if(It(c))D=c;else{var B=Object.keys(h);D=p?B.sort(p):B}var Y=u?r.replace(/\./g,"%2E"):r,Q=o&&It(h)&&h.length===1?Y+"[]":Y;if(i&&It(h)&&h.length===0)return Q+"[]";for(var re=0;re"u"?t.encodeDotInKeys===!0?!0:we.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:we.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:we.allowEmptyArrays,arrayFormat:l,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:we.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?we.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:we.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:we.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:we.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:we.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:we.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:we.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:we.strictNullHandling}},uS=function(e,t){var r=e,n=aS(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):It(n.filter)&&(i=n.filter,o=i);var l=[];if(typeof r!="object"||r===null)return"";var a=fy[n.arrayFormat],u=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=cy(),c=0;c0?w+f:""},Fn=sy,Fu=Object.prototype.hasOwnProperty,sS=Array.isArray,he={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Fn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cS=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},py=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},fS="utf8=%26%2310003%3B",dS="utf8=%E2%9C%93",pS=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),a=-1,u,s=r.charset;if(r.charsetSentinel)for(u=0;u-1&&(g=sS(g)?[g]:g);var S=Fu.call(n,w);S&&r.duplicates==="combine"?n[w]=Fn.combine(n[w],g):(!S||r.duplicates==="last")&&(n[w]=g)}return n},hS=function(e,t,r,n){for(var o=n?t:py(t,r),i=e.length-1;i>=0;--i){var l,a=e[i];if(a==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{l=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,s=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(s,10);!r.parseArrays&&s===""?l={0:o}:!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[],l[c]=o):s!=="__proto__"&&(l[s]=o)}o=l}return o},yS=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&l.exec(i),s=u?i.slice(0,u.index):i,c=[];if(s){if(!n.plainObjects&&Fu.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var p=0;n.depth>0&&(u=a.exec(i))!==null&&p"u"?he.charset:t.charset,n=typeof t.duplicates>"u"?he.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:he.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:he.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:he.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:he.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:he.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:he.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:he.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:he.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:he.decoder,delimiter:typeof t.delimiter=="string"||Fn.isRegExp(t.delimiter)?t.delimiter:he.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:he.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:he.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:he.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:he.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:he.strictNullHandling}},vS=function(e,t){var r=mS(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?pS(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),l=0;l-1};function Hn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ks(e){return typeof e!="string"&&(e=String(e)),e}function Gs(e){var t={next:function(){var r=e.shift();return{done:r===void 0,value:r}}};return Be.iterable&&(t[Symbol.iterator]=function(){return t}),t}function xe(e){this.map={},e instanceof xe?e.forEach(function(t,r){this.append(r,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}xe.prototype.append=function(e,t){e=Hn(e),t=Ks(t);var r=this.map[e];this.map[e]=r?r+", "+t:t};xe.prototype.delete=function(e){delete this.map[Hn(e)]};xe.prototype.get=function(e){return e=Hn(e),this.has(e)?this.map[e]:null};xe.prototype.has=function(e){return this.map.hasOwnProperty(Hn(e))};xe.prototype.set=function(e,t){this.map[Hn(e)]=Ks(t)};xe.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)};xe.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),Gs(e)};xe.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Gs(e)};xe.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),Gs(e)};Be.iterable&&(xe.prototype[Symbol.iterator]=xe.prototype.entries);function Da(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function yy(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function _S(e){var t=new FileReader,r=yy(t);return t.readAsArrayBuffer(e),r}function kS(e){var t=new FileReader,r=yy(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}function CS(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}function Qr(e,t){if(!(this instanceof Qr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof Qr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new xe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new xe(t.headers)),this.method=TS(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Le){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Qr.prototype.clone=function(){return new Qr(this,{body:this._bodyInit})};function OS(e){var t=new FormData;return e.trim().split("&").forEach(function(r){if(r){var n=r.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function NS(e){var t=new xe,r=e.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(` -`)===0?n.substr(1,n.length):n}).forEach(function(n){var o=n.split(":"),i=o.shift().trim();if(i){var l=o.join(":").trim();try{t.append(i,l)}catch(a){console.warn("Response "+a.message)}}}),t}my.call(Qr.prototype);function Ut(e,t){if(!(this instanceof Ut))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new xe(t.headers),this.url=t.url||"",this._initBody(e)}my.call(Ut.prototype);Ut.prototype.clone=function(){return new Ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new xe(this.headers),url:this.url})};Ut.error=function(){var e=new Ut(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var LS=[301,302,303,307,308];Ut.redirect=function(e,t){if(LS.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Ut(null,{status:t,headers:{location:e}})};var Lr=Le.DOMException;try{new Lr}catch{Lr=function(t,r){this.message=t,this.name=r;var n=Error(t);this.stack=n.stack},Lr.prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr}function vy(e,t){return new Promise(function(r,n){var o=new Qr(e,t);if(o.signal&&o.signal.aborted)return n(new Lr("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var s={statusText:i.statusText,headers:NS(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?s.status=200:s.status=i.status,s.url="responseURL"in i?i.responseURL:s.headers.get("X-Request-URL");var c="response"in i?i.response:i.responseText;setTimeout(function(){r(new Ut(c,s))},0)},i.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){n(new Lr("Aborted","AbortError"))},0)};function a(s){try{return s===""&&Le.location.href?Le.location.href:s}catch{return s}}if(i.open(o.method,a(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Be.blob?i.responseType="blob":Be.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof xe||Le.Headers&&t.headers instanceof Le.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach(function(s){u.push(Hn(s)),i.setRequestHeader(s,Ks(t.headers[s]))}),o.headers.forEach(function(s,c){u.indexOf(c)===-1&&i.setRequestHeader(c,s)})}else o.headers.forEach(function(s,c){i.setRequestHeader(c,s)});o.signal&&(o.signal.addEventListener("abort",l),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",l)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}vy.polyfill=!0;Le.fetch||(Le.fetch=vy,Le.Headers=xe,Le.Request=Qr,Le.Response=Ut);self.fetch.bind(self);var gy={};function sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wi(e,t,r){return Sy()?Wi=Reflect.construct:Wi=function(o,i,l){var a=[null];a.push.apply(a,i);var u=Function.bind.apply(o,a),s=new u;return l&&Go(s,l.prototype),s},Wi.apply(null,arguments)}function IS(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sl(e){var t=typeof Map=="function"?new Map:void 0;return Sl=function(n){if(n===null||!IS(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Wi(n,arguments,Ko(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Go(o,n)},Sl(e)}function MS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MS(e)}function Ey(e){var t=Sy();return function(){var n=Ko(e),o;if(t){var i=Ko(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return AS(this,o)}}function Ft(e){return FS(e)||zS(e)||jS(e)||US()}function FS(e){if(Array.isArray(e))return zu(e)}function zS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jS(e,t){if(e){if(typeof e=="string")return zu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zu(e,t)}}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},o=!1,i=!1,l=!1;if(typeof n=="number"?(process,o=!0,i=!1):wr(n)==="object"&&n&&(i=n.global||!1,o=n.core||!1,l=n.defaultInstance||!1),i){e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,r);return}if(o){e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,r);return}if(l){this.defaultMiddlewares.push(r);return}this.middlewares.push(r)}},{key:"execute",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=$S([].concat(Ft(this.middlewares),Ft(this.defaultMiddlewares),Ft(e.globalMiddlewares),Ft(e.coreMiddlewares)));return n(r)}}]),e}();Tt.globalMiddlewares=[];Tt.defaultGlobalMiddlewaresLength=0;Tt.coreMiddlewares=[];Tt.defaultCoreMiddlewaresLength=0;var BS=function(){function e(t){oi(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return Ys(e,[{key:"extendOptions",value:function(r){this.maxCache=r.maxCache||0}},{key:"get",value:function(r){return this.cache.get(JSON.stringify(r))}},{key:"set",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=Ft(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var a=JSON.stringify(r);this.cache.set(a,n),i>0&&(this.timer[a]=setTimeout(function(){o.cache.delete(a),delete o.timer[a]},i))}},{key:"delete",value:function(r){var n=JSON.stringify(r);return delete this.timer[n],this.cache.delete(n)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),xy=function(e){wy(r,e);var t=Ey(r);function r(n,o){var i,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return oi(this,r),i=t.call(this,n),i.name="RequestError",i.request=o,i.type=l,i}return r}(Sl(Error)),po=function(e){wy(r,e);var t=Ey(r);function r(n,o,i,l){var a,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return oi(this,r),a=t.call(this,o||n.statusText),a.name="ResponseError",a.data=i,a.response=n,a.request=l,a.type=u,a}return r}(Sl(Error));function bS(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=r,n.readAsText(e,"GBK")})}function fd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(e)}catch{if(t)throw new po(r,"JSON.parse fail",e,n,"ParseError")}return e}function HS(e,t,r){return new Promise(function(n,o){setTimeout(function(){o(new xy(t||"timeout of ".concat(e,"ms exceeded"),r,"Timeout"))},e)})}function dd(e){return new Promise(function(t,r){e.cancelToken&&e.cancelToken.promise.then(function(n){r(n)})})}var WS=Object.prototype.toString;function Py(){var e;return typeof process<"u"&&WS.call(process)==="[object process]"&&(e="NODE"),typeof XMLHttpRequest<"u"&&(e="BROWSER"),e}function ju(e){return wr(e)==="object"&&Object.prototype.toString.call(e)==="[object Array]"}function _y(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function VS(e){return wr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pd(e){return e!==null&&wr(e)==="object"}function hd(e,t){if(e)if(wr(e)!=="object"&&(e=[e]),ju(e))for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=r.prefix,o=r.suffix;return n&&(t="".concat(n).concat(t)),o&&(t="".concat(t).concat(o)),{url:t,options:r}};function QS(e,t){var r=t.method,n=r===void 0?"get":r;return n.toLowerCase()==="get"}function KS(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=r.url,l=i===void 0?"":i,a=e.cache,u=e.responseInterceptors,s=o.timeout,c=s===void 0?0:s,p=o.timeoutMessage,f=o.__umiRequestCoreType__,w=f===void 0?"normal":f,g=o.useCache,S=g===void 0?!1:g,k=o.method,y=k===void 0?"get":k,d=o.params,h=o.ttl,x=o.validateCache,_=x===void 0?QS:x;if(w!=="normal")return process,t();var L=fetch;if(!L)throw new Error("Global fetch not exist!");var m=Py()==="BROWSER",N=_(l,o)&&S&&m;if(N){var I=a.get({url:l,params:d,method:y});if(I)return I=I.clone(),I.useCache=!0,e.res=I,t()}var D;return c>0?D=Promise.race([dd(o),L(l,o),HS(c,p,e.req)]):D=Promise.race([dd(o),L(l,o)]),u.forEach(function(B){D=D.then(function(Y){var Q=typeof Y.clone=="function"?Y.clone():Y;return B(Q,o)})}),D.then(function(B){if(N&&B.status===200){var Y=B.clone();Y.useCache=!0,a.set({url:l,params:d,method:y},Y,h)}return e.res=B,t()})}function GS(e,t){var r;return t().then(function(){if(e){var n=e.res,o=n===void 0?{}:n,i=e.req,l=i===void 0?{}:i,a=l||{},u=a.options;u=u===void 0?{}:u;var s=u.responseType,c=s===void 0?"json":s,p=u.charset,f=p===void 0?"utf8":p;u.getResponse;var w=u.throwErrIfParseFail,g=w===void 0?!1:w,S=u.parseResponse,k=S===void 0?!0:S;if(k&&!(!o||!o.clone)){if(r=Py()==="BROWSER"?o.clone():o,r.useCache=o.useCache||!1,f==="gbk")try{return o.blob().then(bS).then(function(y){return fd(y,!1,r,l)})}catch(y){throw new po(r,y.message,null,l,"ParseError")}else if(c==="json")return o.text().then(function(y){return fd(y,g,r,l)});try{return o[c]()}catch{throw new po(r,"responseType not support",null,l,"ParseError")}}}}).then(function(n){if(e){e.res;var o=e.req,i=o===void 0?{}:o,l=i||{},a=l.options;a=a===void 0?{}:a;var u=a.getResponse,s=u===void 0?!1:u;if(r){if(r.status>=200&&r.status<300){if(s){e.res={data:n,response:r};return}e.res=n;return}throw new po(r,"http error",n,i,"HttpError")}}}).catch(function(n){if(n instanceof xy||n instanceof po)throw n;var o=e.req,i=e.res;throw n.request=n.request||o,n.response=n.response||i,n.type=n.type||n.name,n.data=n.data||void 0,n})}function YS(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=o.method,l=i===void 0?"get":i;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return t();var a=o.requestType,u=a===void 0?"json":a,s=o.data;if(s){var c=Object.prototype.toString.call(s);c==="[object Object]"||c==="[object Array]"?u==="json"?(o.headers=Qe({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},o.headers),o.body=JSON.stringify(s)):u==="form"&&(o.headers=Qe({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},o.headers),o.body=Uu(s)):(o.headers=Qe({Accept:"application/json"},o.headers),o.body=s)}return e.req.options=o,t()}function JS(e,t){var r,n;if(e)if(t)r=t(e);else if(_y(e))r=e.toString();else if(ju(e))n=[],hd(e,function(i){i===null||typeof i>"u"?n.push(i):n.push(pd(i)?JSON.stringify(i):i)}),r=Uu(n);else{n={},hd(e,function(i,l){var a=i;i===null||typeof i>"u"?n[l]=i:VS(i)?a=i.toISOString():ju(i)?a=i:pd(i)&&(a=JSON.stringify(i)),n[l]=a});var o=Uu(n);r=o}return r}function XS(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=o.paramsSerializer,l=o.params,a=e.req;a=a===void 0?{}:a;var u=a.url,s=u===void 0?"":u;o.method=o.method?o.method.toUpperCase():"GET",o.credentials=o.credentials||"same-origin";var c=JS(l,i);if(e.req.originUrl=s,c){var p=s.indexOf("?")!==-1?"&":"?";e.req.url="".concat(s).concat(p).concat(c)}return e.req.options=o,t()}var Cy=[YS,XS,GS],Ry=[KS];Tt.globalMiddlewares=Cy;Tt.defaultGlobalMiddlewaresLength=Cy.length;Tt.coreMiddlewares=Ry;Tt.defaultCoreMiddlewaresLength=Ry.length;var Ro=function(){function e(t){oi(this,e),this.onion=new Tt([]),this.fetchIndex=0,this.mapCache=new BS(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return Ys(e,[{key:"use",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(r,n),this}},{key:"extendOptions",value:function(r){this.initOptions=ky(this.initOptions,r),this.mapCache.extendOptions(r)}},{key:"dealRequestInterceptors",value:function(r){var n=function(l,a){return l.then(function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r.req.url=u.url||r.req.url,r.req.options=u.options||r.req.options,a(r.req.url,r.req.options)})},o=[].concat(Ft(e.requestInterceptors),Ft(this.instanceRequestInterceptors));return o.reduce(n,Promise.resolve()).then(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r.req.url=i.url||r.req.url,r.req.options=i.options||r.req.options,Promise.resolve()})}},{key:"request",value:function(r,n){var o=this,i=this.onion,l={req:{url:r,options:Qe(Qe({},n),{},{url:r})},res:null,cache:this.mapCache,responseInterceptors:[].concat(Ft(e.responseInterceptors),Ft(this.instanceResponseInterceptors))};if(typeof r!="string")throw new Error("url MUST be a string");return new Promise(function(a,u){o.dealRequestInterceptors(l).then(function(){return i.execute(l)}).then(function(){a(l.res)}).catch(function(s){var c=l.req.options.errorHandler;if(c)try{var p=c(s);a(p)}catch(f){u(f)}else u(s)})})}}],[{key:"requestUse",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof r!="function")throw new TypeError("Interceptor must be function!");n.global?e.requestInterceptors.push(r):this.instanceRequestInterceptors.push(r)}},{key:"responseUse",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof r!="function")throw new TypeError("Interceptor must be function!");n.global?e.responseInterceptors.push(r):this.instanceResponseInterceptors.push(r)}}]),e}();Ro.requestInterceptors=[qS];Ro.responseInterceptors=[];function Bl(e){this.message=e}Bl.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Bl.prototype.__CANCEL__=!0;function El(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;e(function(o){r.reason||(r.reason=new Bl(o),t(r.reason))})}El.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};El.source=function(){var t,r=new El(function(o){t=o});return{token:r,cancel:t}};function ZS(e){return!!(e&&e.__CANCEL__)}var Ty=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=new Ro(t),n=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=ky(r.initOptions,a);return r.request(l,u)};n.use=r.use.bind(r),n.fetchIndex=r.fetchIndex,n.interceptors={request:{use:Ro.requestUse.bind(r)},response:{use:Ro.responseUse.bind(r)}};var o=["get","post","delete","put","patch","head","options","rpc"];return o.forEach(function(i){n[i]=function(l,a){return n(l,Qe(Qe({},a),{},{method:i}))}}),n.Cancel=Bl,n.CancelToken=El,n.isCancel=ZS,n.extendOptions=r.extendOptions.bind(r),n.middlewares={instance:r.onion.middlewares,defaultInstance:r.onion.defaultMiddlewares,global:Tt.globalMiddlewares,core:Tt.coreMiddlewares},n};Ty({parseResponse:!1});var eE=Ty({});const tE=()=>{const{title:e}=v0(),[t,r]=C.useState(""),n=async o=>{const l=`https://raw.githubusercontent.com/nathanlao/but-how-do-I/master/src/posts/${encodeURIComponent(o)}.html`;try{return await eE(l,{method:"get",responseType:"text"})}catch(a){console.error("Error fetching the HTML content:",a)}};return C.useEffect(()=>{(async()=>{const i=await n(e);r(i)})()},[e]),H.jsxs("div",{children:[H.jsxs("div",{className:"relative w-4/5 sm:w-4/5 md:w-4/5 lg:w-3/5 xl:w-1/2 mx-auto py-20",children:[H.jsx("div",{className:"font-mono text-post text-5xl text-center pb-10 px-2 leading-tight",children:e}),H.jsx("div",{className:"px-2",dangerouslySetInnerHTML:{__html:t}})]}),H.jsx(Qh,{to:"/",children:H.jsx("div",{className:` - fixed - bottom-5 - left-1/2 - -translate-x-1/2 - text-home - font-mono - border-2 - border-zinc-500 - rounded-lg - text-lg - py-2 - px-5 - transfrom - duration-500 - hover:bg-gray-900/70 - hover:shadow-xl - hover:scale-105 - hover-border-home - disable-select - `,children:"HOME"})})]})},rE=({children:e})=>{const[t,r]=C.useState(!1);return C.useEffect(()=>{r(!0)},[]),H.jsx("div",{className:`fade-in ${t?"visible":""}`,children:e})},nE=z0([{path:"/",element:H.jsx(n1,{})},{path:"/post/:title",element:H.jsx(rE,{children:H.jsx(tE,{})})}]),oE=()=>H.jsx(q0,{router:nE});Ia.createRoot(document.getElementById("root")).render(H.jsx(Rd.StrictMode,{children:H.jsx(oE,{})})); diff --git a/assets/index-yoF7uEzM.js b/assets/index-yoF7uEzM.js new file mode 100644 index 0000000..57fb34e --- /dev/null +++ b/assets/index-yoF7uEzM.js @@ -0,0 +1,212 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Iy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function My(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ay(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ad={exports:{}},gl={},ud={exports:{}},Q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vo=Symbol.for("react.element"),Fy=Symbol.for("react.portal"),zy=Symbol.for("react.fragment"),jy=Symbol.for("react.strict_mode"),Uy=Symbol.for("react.profiler"),$y=Symbol.for("react.provider"),By=Symbol.for("react.context"),by=Symbol.for("react.forward_ref"),Hy=Symbol.for("react.suspense"),Wy=Symbol.for("react.memo"),Vy=Symbol.for("react.lazy"),rc=Symbol.iterator;function qy(e){return e===null||typeof e!="object"?null:(e=rc&&e[rc]||e["@@iterator"],typeof e=="function"?e:null)}var sd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cd=Object.assign,fd={};function Mn(e,t,r){this.props=e,this.context=t,this.refs=fd,this.updater=r||sd}Mn.prototype.isReactComponent={};Mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dd(){}dd.prototype=Mn.prototype;function Mu(e,t,r){this.props=e,this.context=t,this.refs=fd,this.updater=r||sd}var Au=Mu.prototype=new dd;Au.constructor=Mu;cd(Au,Mn.prototype);Au.isPureReactComponent=!0;var nc=Array.isArray,pd=Object.prototype.hasOwnProperty,Fu={current:null},hd={key:!0,ref:!0,__self:!0,__source:!0};function yd(e,t,r){var n,o={},i=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)pd.call(t,n)&&!hd.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,te=C[ee];if(0>>1;eeo(et,U))Ueo(st,et)?(C[ee]=st,C[Ue]=U,ee=Ue):(C[ee]=et,C[Ze]=U,ee=Ze);else if(Ueo(st,U))C[ee]=st,C[Ue]=U,ee=Ue;else break e}}return j}function o(C,j){var U=C.sortIndex-j.sortIndex;return U!==0?U:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,p=null,f=3,E=!1,g=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,y=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 h(C){for(var j=r(s);j!==null;){if(j.callback===null)n(s);else if(j.startTime<=C)n(s),j.sortIndex=j.expirationTime,t(u,j);else break;j=r(s)}}function x(C){if(S=!1,h(C),!g)if(r(u)!==null)g=!0,qe(_);else{var j=r(s);j!==null&&ut(x,j.startTime-C)}}function _(C,j){g=!1,S&&(S=!1,y(N),N=-1),E=!0;var U=f;try{for(h(j),p=r(u);p!==null&&(!(p.expirationTime>j)||C&&!V());){var ee=p.callback;if(typeof ee=="function"){p.callback=null,f=p.priorityLevel;var te=ee(p.expirationTime<=j);j=e.unstable_now(),typeof te=="function"?p.callback=te:p===r(u)&&n(u),h(j)}else n(u);p=r(u)}if(p!==null)var wt=!0;else{var Ze=r(s);Ze!==null&&ut(x,Ze.startTime-j),wt=!1}return wt}finally{p=null,f=U,E=!1}}var T=!1,m=null,N=-1,A=5,D=-1;function V(){return!(e.unstable_now()-DC||125ee?(C.sortIndex=U,t(s,C),r(u)===null&&C===r(s)&&(S?(y(N),N=-1):S=!0,ut(x,U-ee))):(C.sortIndex=te,t(u,C),g||E||(g=!0,qe(_))),C},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(C){var j=f;return function(){var U=f;f=j;try{return C.apply(this,arguments)}finally{f=U}}}})(wd);gd.exports=wd;var om=gd.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sd=z,it=om;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ra=Object.prototype.hasOwnProperty,im=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ic={},lc={};function lm(e){return Ra.call(lc,e)?!0:Ra.call(ic,e)?!1:im.test(e)?lc[e]=!0:(ic[e]=!0,!1)}function am(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function um(e,t,r,n){if(t===null||typeof t>"u"||am(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var ju=/[\-:]([a-z])/g;function Uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ju,Uu);Ie[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ju,Uu);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ju,Uu);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function $u(e,t,r,n){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:n||!(2a||o[l]!==i[a]){var u=` +`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{$l=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?no(e):""}function sm(e){switch(e.tag){case 5:return no(e.type);case 16:return no("Lazy");case 13:return no("Suspense");case 19:return no("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function Da(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case on:return"Fragment";case nn:return"Portal";case Oa:return"Profiler";case Bu:return"StrictMode";case Ta:return"Suspense";case Na:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pd:return(e.displayName||"Context")+".Consumer";case xd:return(e._context.displayName||"Context")+".Provider";case bu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hu:return t=e.displayName||null,t!==null?t:Da(e.type)||"Memo";case tr:t=e._payload,e=e._init;try{return Da(e(t))}catch{}}return null}function cm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Da(t);case 8:return t===Bu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fm(e){var t=kd(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function si(e){e._valueTracker||(e._valueTracker=fm(e))}function Cd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=kd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function La(e,t){var r=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function uc(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=gr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rd(e,t){t=t.checked,t!=null&&$u(e,"checked",t,!1)}function Ia(e,t){Rd(e,t);var r=gr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ma(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ma(e,t.type,gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sc(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ma(e,t,r){(t!=="number"||bi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var oo=Array.isArray;function mn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ko(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var so={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},dm=["Webkit","ms","Moz","O"];Object.keys(so).forEach(function(e){dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),so[t]=so[e]})});function Dd(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||so.hasOwnProperty(e)&&so[e]?(""+t).trim():t+"px"}function Ld(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Dd(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var pm=de({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 za(e,t){if(t){if(pm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function ja(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ua=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $a=null,vn=null,gn=null;function dc(e){if(e=Ko(e)){if(typeof $a!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Pl(t),$a(e.stateNode,e.type,t))}}function Id(e){vn?gn?gn.push(e):gn=[e]:vn=e}function Md(){if(vn){var e=vn,t=gn;if(gn=vn=null,dc(e),t)for(e=0;e>>=0,e===0?32:31-(_m(e)/km|0)|0}var fi=64,di=4194304;function io(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qi(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,l=r&268435455;if(l!==0){var a=l&~o;a!==0?n=io(a):(i&=l,i!==0&&(n=io(i)))}else l=r&~o,l!==0?n=io(l):i!==0&&(n=io(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function qo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=r}function Tm(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=fo),Ec=" ",xc=!1;function ep(e,t){switch(e){case"keyup":return nv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function iv(e,t){switch(e){case"compositionend":return tp(t);case"keypress":return t.which!==32?null:(xc=!0,Ec);case"textInput":return e=t.data,e===Ec&&xc?null:e;default:return null}}function lv(e,t){if(ln)return e==="compositionend"||!Xu&&ep(e,t)?(e=Xd(),Ni=Gu=lr=null,ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Cc(r)}}function ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lp(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=bi(e.document)}return t}function Zu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yv(e){var t=lp(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ip(r.ownerDocument.documentElement,r)){if(n!==null&&Zu(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Rc(r,i);var l=Rc(r,n);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,an=null,qa=null,ho=null,Qa=!1;function Oc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qa||an==null||an!==bi(n)||(n=an,"selectionStart"in n&&Zu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ho&&Do(ho,n)||(ho=n,n=Gi(qa,"onSelect"),0cn||(e.current=Za[cn],Za[cn]=null,cn--)}function re(e,t){cn++,Za[cn]=e.current,e.current=t}var wr={},ze=Er(wr),Ye=Er(!1),Ur=wr;function _n(e,t){var r=e.type.contextTypes;if(!r)return wr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function Ji(){oe(Ye),oe(ze)}function Ac(e,t,r){if(ze.current!==wr)throw Error(k(168));re(ze,t),re(Ye,r)}function yp(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(k(108,cm(e)||"Unknown",o));return de({},r,n)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Ur=ze.current,re(ze,e),re(Ye,Ye.current),!0}function Fc(e,t,r){var n=e.stateNode;if(!n)throw Error(k(169));r?(e=yp(e,t,Ur),n.__reactInternalMemoizedMergedChildContext=e,oe(Ye),oe(ze),re(ze,e)):oe(Ye),re(Ye,r)}var Bt=null,_l=!1,ta=!1;function mp(e){Bt===null?Bt=[e]:Bt.push(e)}function Rv(e){_l=!0,mp(e)}function xr(){if(!ta&&Bt!==null){ta=!0;var e=0,t=Z;try{var r=Bt;for(Z=1;e>=l,o-=l,bt=1<<32-kt(t)+o|r<N?(A=m,m=null):A=m.sibling;var D=f(y,m,h[N],x);if(D===null){m===null&&(m=A);break}e&&m&&D.alternate===null&&t(y,m),d=i(D,d,N),T===null?_=D:T.sibling=D,T=D,m=A}if(N===h.length)return r(y,m),ue&&kr(y,N),_;if(m===null){for(;NN?(A=m,m=null):A=m.sibling;var V=f(y,m,D.value,x);if(V===null){m===null&&(m=A);break}e&&m&&V.alternate===null&&t(y,m),d=i(V,d,N),T===null?_=V:T.sibling=V,T=V,m=A}if(D.done)return r(y,m),ue&&kr(y,N),_;if(m===null){for(;!D.done;N++,D=h.next())D=p(y,D.value,x),D!==null&&(d=i(D,d,N),T===null?_=D:T.sibling=D,T=D);return ue&&kr(y,N),_}for(m=n(y,m);!D.done;N++,D=h.next())D=E(m,y,N,D.value,x),D!==null&&(e&&D.alternate!==null&&m.delete(D.key===null?N:D.key),d=i(D,d,N),T===null?_=D:T.sibling=D,T=D);return e&&m.forEach(function(G){return t(y,G)}),ue&&kr(y,N),_}function O(y,d,h,x){if(typeof h=="object"&&h!==null&&h.type===on&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ui:e:{for(var _=h.key,T=d;T!==null;){if(T.key===_){if(_=h.type,_===on){if(T.tag===7){r(y,T.sibling),d=o(T,h.props.children),d.return=y,y=d;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===tr&&Hc(_)===T.type){r(y,T.sibling),d=o(T,h.props),d.ref=Jn(y,T,h),d.return=y,y=d;break e}r(y,T);break}else t(y,T);T=T.sibling}h.type===on?(d=Ar(h.props.children,y.mode,x,h.key),d.return=y,y=d):(x=ji(h.type,h.key,h.props,null,y.mode,x),x.ref=Jn(y,d,h),x.return=y,y=x)}return l(y);case nn:e:{for(T=h.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){r(y,d.sibling),d=o(d,h.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=sa(h,y.mode,x),d.return=y,y=d}return l(y);case tr:return T=h._init,O(y,d,T(h._payload),x)}if(oo(h))return g(y,d,h,x);if(qn(h))return S(y,d,h,x);wi(y,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(r(y,d.sibling),d=o(d,h),d.return=y,y=d):(r(y,d),d=ua(h,y.mode,x),d.return=y,y=d),l(y)):r(y,d)}return O}var Cn=_p(!0),kp=_p(!1),Go={},jt=Er(Go),Ao=Er(Go),Fo=Er(Go);function Dr(e){if(e===Go)throw Error(k(174));return e}function us(e,t){switch(re(Fo,t),re(Ao,e),re(jt,Go),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fa(t,e)}oe(jt),re(jt,t)}function Rn(){oe(jt),oe(Ao),oe(Fo)}function Cp(e){Dr(Fo.current);var t=Dr(jt.current),r=Fa(t,e.type);t!==r&&(re(Ao,e),re(jt,r))}function ss(e){Ao.current===e&&(oe(jt),oe(Ao))}var ce=Er(0);function ol(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function cs(){for(var e=0;er?r:4,e(!0);var n=na.transition;na.transition={};try{e(!1),t()}finally{Z=r,na.transition=n}}function bp(){return gt().memoizedState}function Dv(e,t,r){var n=yr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Hp(e))Wp(t,r);else if(r=Sp(e,t,r,n),r!==null){var o=He();Ct(r,e,n,o),Vp(r,t,n)}}function Lv(e,t,r){var n=yr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Hp(e))Wp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,r);if(o.hasEagerState=!0,o.eagerState=a,Rt(a,l)){var u=t.interleaved;u===null?(o.next=o,ls(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=Sp(e,t,o,n),r!==null&&(o=He(),Ct(r,e,n,o),Vp(r,t,n))}}function Hp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Wp(e,t){yo=il=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Vp(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,qu(e,r)}}var ll={readContext:vt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},Iv={readContext:vt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Vc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Mi(4194308,4,zp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var r=Lt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Lt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Dv.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Wc,useDebugValue:ys,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Wc(!1),t=e[0];return e=Nv.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=fe,o=Lt();if(ue){if(r===void 0)throw Error(k(407));r=r()}else{if(r=t(),Ce===null)throw Error(k(349));Br&30||Tp(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Vc(Dp.bind(null,n,i,e),[e]),n.flags|=2048,Uo(9,Np.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Lt(),t=Ce.identifierPrefix;if(ue){var r=Ht,n=bt;r=(n&~(1<<32-kt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=zo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[At]=t,e[Mo]=n,eh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ja(r,n),r){case"dialog":ne("cancel",e),ne("close",e),o=n;break;case"iframe":case"object":case"embed":ne("load",e),o=n;break;case"video":case"audio":for(o=0;oTn&&(t.flags|=128,n=!0,Xn(i,!1),t.lanes=4194304)}else{if(!n)if(e=ol(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ue)return Ae(t),null}else 2*ye()-i.renderingStartTime>Tn&&r!==1073741824&&(t.flags|=128,n=!0,Xn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(r=i.last,r!==null?r.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,r=ce.current,re(ce,n?r&1|2:r&1),t):(Ae(t),null);case 22:case 23:return Es(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?rt&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Bv(e,t){switch(ts(t),t.tag){case 1:return Je(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(),oe(Ye),oe(ze),cs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ss(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ce),null;case 4:return Rn(),null;case 10:return is(t.type._context),null;case 22:case 23:return Es(),null;case 24:return null;default:return null}}var Ei=!1,Fe=!1,bv=typeof WeakSet=="function"?WeakSet:Set,L=null;function hn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){pe(e,t,n)}else r.current=null}function fu(e,t,r){try{r()}catch(n){pe(e,t,n)}}var ef=!1;function Hv(e,t){if(Ka=Qi,e=lp(),Zu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,a=-1,u=-1,s=0,c=0,p=e,f=null;t:for(;;){for(var E;p!==r||o!==0&&p.nodeType!==3||(a=l+o),p!==i||n!==0&&p.nodeType!==3||(u=l+n),p.nodeType===3&&(l+=p.nodeValue.length),(E=p.firstChild)!==null;)f=p,p=E;for(;;){if(p===e)break t;if(f===r&&++s===o&&(a=l),f===i&&++c===n&&(u=l),(E=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=E}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ga={focusedElem:e,selectionRange:r},Qi=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,O=g.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:Et(t.type,S),O);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(x){pe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=ef,ef=!1,g}function mo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fu(t,r,i)}o=o.next}while(o!==n)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function du(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function nh(e){var t=e.alternate;t!==null&&(e.alternate=null,nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Mo],delete t[Xa],delete t[kv],delete t[Cv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function oh(e){return e.tag===5||e.tag===3||e.tag===4}function tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yi));else if(n!==4&&(e=e.child,e!==null))for(pu(e,t,r),e=e.sibling;e!==null;)pu(e,t,r),e=e.sibling}function hu(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(hu(e,t,r),e=e.sibling;e!==null;)hu(e,t,r),e=e.sibling}var Ne=null,xt=!1;function Zt(e,t,r){for(r=r.child;r!==null;)ih(e,t,r),r=r.sibling}function ih(e,t,r){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(wl,r)}catch{}switch(r.tag){case 5:Fe||hn(r,t);case 6:var n=Ne,o=xt;Ne=null,Zt(e,t,r),Ne=n,xt=o,Ne!==null&&(xt?(e=Ne,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ne.removeChild(r.stateNode));break;case 18:Ne!==null&&(xt?(e=Ne,r=r.stateNode,e.nodeType===8?ea(e.parentNode,r):e.nodeType===1&&ea(e,r),To(e)):ea(Ne,r.stateNode));break;case 4:n=Ne,o=xt,Ne=r.stateNode.containerInfo,xt=!0,Zt(e,t,r),Ne=n,xt=o;break;case 0:case 11:case 14:case 15:if(!Fe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&fu(r,t,l),o=o.next}while(o!==n)}Zt(e,t,r);break;case 1:if(!Fe&&(hn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){pe(r,t,a)}Zt(e,t,r);break;case 21:Zt(e,t,r);break;case 22:r.mode&1?(Fe=(n=Fe)||r.memoizedState!==null,Zt(e,t,r),Fe=n):Zt(e,t,r);break;default:Zt(e,t,r)}}function rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new bv),t.forEach(function(n){var o=Xv.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function St(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=l),n&=~i}if(n=o,n=ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Vv(n/1960))-n,10e?16:e,ar===null)var n=!1;else{if(e=ar,ar=null,sl=0,J&6)throw Error(k(331));var o=J;for(J|=4,L=e.current;L!==null;){var i=L,l=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uye()-ws?Mr(e,0):gs|=r),Xe(e,t)}function ph(e,t){t===0&&(e.mode&1?(t=di,di<<=1,!(di&130023424)&&(di=4194304)):t=1);var r=He();e=Qt(e,t),e!==null&&(qo(e,t,r),Xe(e,r))}function Jv(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ph(e,r)}function Xv(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(k(314))}n!==null&&n.delete(t),ph(e,r)}var hh;hh=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ge=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ge=!1,Uv(e,t,r);Ge=!!(e.flags&131072)}else Ge=!1,ue&&t.flags&1048576&&vp(t,el,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ai(e,t),e=t.pendingProps;var o=_n(t,ze.current);Sn(t,r),o=ds(null,t,n,e,o,r);var i=ps();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(n)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,as(t),o.updater=kl,t.stateNode=o,o._reactInternals=t,ou(t,n,e,r),t=au(null,t,n,!0,i,r)):(t.tag=0,ue&&i&&es(t),be(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=eg(n),e=Et(n,e),o){case 0:t=lu(null,t,n,e,r);break e;case 1:t=Jc(null,t,n,e,r);break e;case 11:t=Gc(null,t,n,e,r);break e;case 14:t=Yc(null,t,n,Et(n.type,e),r);break e}throw Error(k(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),lu(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),Jc(e,t,n,o,r);case 3:e:{if(Jp(t),e===null)throw Error(k(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Ep(e,t),nl(t,n,null,r);var l=t.memoizedState;if(n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=On(Error(k(423)),t),t=Xc(e,t,n,r,o);break e}else if(n!==o){o=On(Error(k(424)),t),t=Xc(e,t,n,r,o);break e}else for(nt=dr(t.stateNode.containerInfo.firstChild),ot=t,ue=!0,_t=null,r=kp(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(kn(),n===o){t=Kt(e,t,r);break e}be(e,t,n,r)}t=t.child}return t;case 5:return Cp(t),e===null&&tu(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ya(n,o)?l=null:i!==null&&Ya(n,i)&&(t.flags|=32),Yp(e,t),be(e,t,l,r),t.child;case 6:return e===null&&tu(t),null;case 13:return Xp(e,t,r);case 4:return us(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Cn(t,null,n,r):be(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),Gc(e,t,n,o,r);case 7:return be(e,t,t.pendingProps,r),t.child;case 8:return be(e,t,t.pendingProps.children,r),t.child;case 12:return be(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,re(tl,n._currentValue),n._currentValue=l,i!==null)if(Rt(i.value,l)){if(i.children===o.children&&!Ye.current){t=Kt(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=Wt(-1,r&-r),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),ru(i.return,r,t),a.lanes|=r;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(k(341));l.lanes|=r,a=l.alternate,a!==null&&(a.lanes|=r),ru(l,r,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}be(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Sn(t,r),o=vt(o),n=n(o),t.flags|=1,be(e,t,n,r),t.child;case 14:return n=t.type,o=Et(n,t.pendingProps),o=Et(n.type,o),Yc(e,t,n,o,r);case 15:return Kp(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Et(n,o),Ai(e,t),t.tag=1,Je(n)?(e=!0,Xi(t)):e=!1,Sn(t,r),Pp(t,n,o),ou(t,n,o,r),au(null,t,n,!0,e,r);case 19:return Zp(e,t,r);case 22:return Gp(e,t,r)}throw Error(k(156,t.tag))};function yh(e,t){return Bd(e,t)}function Zv(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,n){return new Zv(e,t,r,n)}function Ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eg(e){if(typeof e=="function")return Ps(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bu)return 11;if(e===Hu)return 14}return 2}function mr(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ji(e,t,r,n,o,i){var l=2;if(n=e,typeof e=="function")Ps(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case on:return Ar(r.children,o,i,t);case Bu:l=8,o|=8;break;case Oa:return e=yt(12,r,t,o|2),e.elementType=Oa,e.lanes=i,e;case Ta:return e=yt(13,r,t,o),e.elementType=Ta,e.lanes=i,e;case Na:return e=yt(19,r,t,o),e.elementType=Na,e.lanes=i,e;case _d:return Tl(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xd:l=10;break e;case Pd:l=9;break e;case bu:l=11;break e;case Hu:l=14;break e;case tr:l=16,n=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=yt(l,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ar(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Tl(e,t,r,n){return e=yt(22,e,n,t),e.elementType=_d,e.lanes=r,e.stateNode={isHidden:!1},e}function ua(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function sa(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tg(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _s(e,t,r,n,o,i,l,a,u){return e=new tg(e,t,r,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},as(i),e}function rg(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wh)}catch(e){console.error(e)}}wh(),vd.exports=lt;var ag=vd.exports,ff=ag;Ca.createRoot=ff.createRoot,Ca.hydrateRoot=ff.hydrateRoot;/** + * @remix-run/router v1.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sg(){return Math.random().toString(36).substr(2,8)}function pf(e,t){return{usr:e.state,key:e.key,idx:t}}function Bo(e,t,r,n){return r===void 0&&(r=null),se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kr(t):t,{state:r,key:t&&t.key||n||sg()})}function Wr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Kr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function cg(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,l=o.history,a=we.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(se({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function p(){a=we.Pop;let O=c(),y=O==null?null:O-s;s=O,u&&u({action:a,location:S.location,delta:y})}function f(O,y){a=we.Push;let d=Bo(S.location,O,y);r&&r(d,O),s=c()+1;let h=pf(d,s),x=S.createHref(d);try{l.pushState(h,"",x)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(x)}i&&u&&u({action:a,location:S.location,delta:1})}function E(O,y){a=we.Replace;let d=Bo(S.location,O,y);r&&r(d,O),s=c();let h=pf(d,s),x=S.createHref(d);l.replaceState(h,"",x),i&&u&&u({action:a,location:S.location,delta:0})}function g(O){let y=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof O=="string"?O:Wr(O);return d=d.replace(/ $/,"%20"),Y(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let S={get action(){return a},get location(){return e(o,l)},listen(O){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(df,p),u=O,()=>{o.removeEventListener(df,p),u=null}},createHref(O){return t(o,O)},createURL:g,encodeLocation(O){let y=g(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:E,go(O){return l.go(O)}};return S}var ae;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ae||(ae={}));const fg=new Set(["lazy","caseSensitive","path","id","index","children"]);function dg(e){return e.index===!0}function wu(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let l=[...r,i],a=typeof o.id=="string"?o.id:l.join("-");if(Y(o.index!==!0||!o.children,"Cannot specify children on an index route"),Y(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),dg(o)){let u=se({},o,t(o),{id:a});return n[a]=u,u}else{let u=se({},o,t(o),{id:a,children:void 0});return n[a]=u,o.children&&(u.children=wu(o.children,t,l,n)),u}})}function ao(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Kr(t):t,o=Yo(n.pathname||"/",r);if(o==null)return null;let i=Sh(e);hg(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(Y(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let s=Fr([n,u.relativePath]),c=r.concat(u);i.children&&i.children.length>0&&(Y(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Sh(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Eg(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Eh(i.path))o(i,l,u)}),t}function Eh(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let l=Eh(n.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function hg(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:xg(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const yg=/^:[\w-]+$/,mg=3,vg=2,gg=1,wg=10,Sg=-2,hf=e=>e==="*";function Eg(e,t){let r=e.split("/"),n=r.length;return r.some(hf)&&(n+=Sg),t&&(n+=vg),r.filter(o=>!hf(o)).reduce((o,i)=>o+(yg.test(i)?mg:i===""?gg:wg),n)}function xg(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Pg(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{let{paramName:f,isOptional:E}=c;if(f==="*"){let S=a[p]||"";l=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=a[p];return E&&!g?s[f]=void 0:s[f]=(g||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:l,pattern:e}}function kg(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Nn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(n.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Cg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Rg(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Kr(e):e;return{pathname:r?r.startsWith("/")?r:Og(r,t):t,search:Ng(n),hash:Dg(o)}}function Og(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ca(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function xh(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Os(e,t){let r=xh(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ts(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Kr(e):(o=se({},e),Y(!o.pathname||!o.pathname.includes("?"),ca("?","pathname","search",o)),Y(!o.pathname||!o.pathname.includes("#"),ca("#","pathname","hash",o)),Y(!o.search||!o.search.includes("#"),ca("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=r;else{let p=t.length-1;if(!n&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),p-=1;o.pathname=f.join("/")}a=p>=0?t[p]:"/"}let u=Rg(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Fr=e=>e.join("/").replace(/\/\/+/g,"/"),Tg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ng=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ns{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ph(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _h=["post","put","patch","delete"],Lg=new Set(_h),Ig=["get",..._h],Mg=new Set(Ig),Ag=new Set([301,302,303,307,308]),Fg=new Set([307,308]),fa={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zg={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ds=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jg=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),kh="remix-router-transitions";function Ug(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Y(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let v=e.detectErrorBoundary;o=w=>({hasErrorBoundary:v(w)})}else o=jg;let i={},l=wu(e.routes,o,void 0,i),a,u=e.basename||"/",s=e.unstable_dataStrategy||Hg,c=se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,f=new Set,E=null,g=null,S=null,O=e.hydrationData!=null,y=ao(l,e.history.location,u),d=null;if(y==null){let v=ft(404,{pathname:e.history.location.pathname}),{matches:w,route:P}=_f(l);y=w,d={[P.id]:v}}let h,x=y.some(v=>v.route.lazy),_=y.some(v=>v.route.loader);if(x)h=!1;else if(!_)h=!0;else if(c.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,w=e.hydrationData?e.hydrationData.errors:null,P=R=>R.route.loader?typeof R.route.loader=="function"&&R.route.loader.hydrate===!0?!1:v&&v[R.route.id]!==void 0||w&&w[R.route.id]!==void 0:!0;if(w){let R=y.findIndex(I=>w[I.route.id]!==void 0);h=y.slice(0,R+1).every(P)}else h=y.every(P)}else h=e.hydrationData!=null;let T,m={historyAction:e.history.action,location:e.history.location,matches:y,initialized:h,navigation:fa,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},N=we.Pop,A=!1,D,V=!1,G=new Map,X=null,ie=!1,me=!1,qe=[],ut=[],C=new Map,j=0,U=-1,ee=new Map,te=new Set,wt=new Map,Ze=new Map,et=new Set,Ue=new Map,st=new Map,Al=!1;function gy(){if(p=e.history.listen(v=>{let{action:w,location:P,delta:R}=v;if(Al){Al=!1;return}Nn(st.size===0||R!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Xs({currentLocation:m.location,nextLocation:P,historyAction:w});if(I&&R!=null){Al=!0,e.history.go(R*-1),ni(I,{state:"blocked",location:P,proceed(){ni(I,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(R)},reset(){let H=new Map(m.blockers);H.set(I,eo),tt({blockers:H})}});return}return _r(w,P)}),r){t0(t,G);let v=()=>r0(t,G);t.addEventListener("pagehide",v),X=()=>t.removeEventListener("pagehide",v)}return m.initialized||_r(we.Pop,m.location,{initialHydration:!0}),T}function wy(){p&&p(),X&&X(),f.clear(),D&&D.abort(),m.fetchers.forEach((v,w)=>ri(w)),m.blockers.forEach((v,w)=>Js(w))}function Sy(v){return f.add(v),()=>f.delete(v)}function tt(v,w){w===void 0&&(w={}),m=se({},m,v);let P=[],R=[];c.v7_fetcherPersist&&m.fetchers.forEach((I,H)=>{I.state==="idle"&&(et.has(H)?R.push(H):P.push(H))}),[...f].forEach(I=>I(m,{deletedFetchers:R,unstable_viewTransitionOpts:w.viewTransitionOpts,unstable_flushSync:w.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(I=>m.fetchers.delete(I)),R.forEach(I=>ri(I)))}function $n(v,w,P){var R,I;let{flushSync:H}=P===void 0?{}:P,F=m.actionData!=null&&m.navigation.formMethod!=null&&Pt(m.navigation.formMethod)&&m.navigation.state==="loading"&&((R=v.state)==null?void 0:R._isRedirect)!==!0,M;w.actionData?Object.keys(w.actionData).length>0?M=w.actionData:M=null:F?M=m.actionData:M=null;let W=w.loaderData?xf(m.loaderData,w.loaderData,w.matches||[],w.errors):m.loaderData,B=m.blockers;B.size>0&&(B=new Map(B),B.forEach(($,le)=>B.set(le,eo)));let Re=A===!0||m.navigation.formMethod!=null&&Pt(m.navigation.formMethod)&&((I=v.state)==null?void 0:I._isRedirect)!==!0;a&&(l=a,a=void 0),ie||N===we.Pop||(N===we.Push?e.history.push(v,v.state):N===we.Replace&&e.history.replace(v,v.state));let Oe;if(N===we.Pop){let $=G.get(m.location.pathname);$&&$.has(v.pathname)?Oe={currentLocation:m.location,nextLocation:v}:G.has(v.pathname)&&(Oe={currentLocation:v,nextLocation:m.location})}else if(V){let $=G.get(m.location.pathname);$?$.add(v.pathname):($=new Set([v.pathname]),G.set(m.location.pathname,$)),Oe={currentLocation:m.location,nextLocation:v}}tt(se({},w,{actionData:M,loaderData:W,historyAction:N,location:v,initialized:!0,navigation:fa,revalidation:"idle",restoreScrollPosition:ec(v,w.matches||m.matches),preventScrollReset:Re,blockers:B}),{viewTransitionOpts:Oe,flushSync:H===!0}),N=we.Pop,A=!1,V=!1,ie=!1,me=!1,qe=[],ut=[]}async function Vs(v,w){if(typeof v=="number"){e.history.go(v);return}let P=Su(m.location,m.matches,u,c.v7_prependBasename,v,c.v7_relativeSplatPath,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:R,submission:I,error:H}=yf(c.v7_normalizeFormMethod,!1,P,w),F=m.location,M=Bo(m.location,R,w&&w.state);M=se({},M,e.history.encodeLocation(M));let W=w&&w.replace!=null?w.replace:void 0,B=we.Push;W===!0?B=we.Replace:W===!1||I!=null&&Pt(I.formMethod)&&I.formAction===m.location.pathname+m.location.search&&(B=we.Replace);let Re=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,Oe=(w&&w.unstable_flushSync)===!0,$=Xs({currentLocation:F,nextLocation:M,historyAction:B});if($){ni($,{state:"blocked",location:M,proceed(){ni($,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),Vs(v,w)},reset(){let le=new Map(m.blockers);le.set($,eo),tt({blockers:le})}});return}return await _r(B,M,{submission:I,pendingError:H,preventScrollReset:Re,replace:w&&w.replace,enableViewTransition:w&&w.unstable_viewTransition,flushSync:Oe})}function Ey(){if(Fl(),tt({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){_r(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}_r(N||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function _r(v,w,P){D&&D.abort(),D=null,N=v,ie=(P&&P.startUninterruptedRevalidation)===!0,Ny(m.location,m.matches),A=(P&&P.preventScrollReset)===!0,V=(P&&P.enableViewTransition)===!0;let R=a||l,I=P&&P.overrideNavigation,H=ao(R,w,u),F=(P&&P.flushSync)===!0;if(!H){let $=ft(404,{pathname:w.pathname}),{matches:le,route:Pe}=_f(R);zl(),$n(w,{matches:le,loaderData:{},errors:{[Pe.id]:$}},{flushSync:F});return}if(m.initialized&&!me&&Gg(m.location,w)&&!(P&&P.submission&&Pt(P.submission.formMethod))){$n(w,{matches:H},{flushSync:F});return}D=new AbortController;let M=Zr(e.history,w,D.signal,P&&P.submission),W;if(P&&P.pendingError)W=[wo(H).route.id,{type:ae.error,error:P.pendingError}];else if(P&&P.submission&&Pt(P.submission.formMethod)){let $=await xy(M,w,P.submission,H,{replace:P.replace,flushSync:F});if($.shortCircuited)return;W=$.pendingActionResult,I=da(w,P.submission),F=!1,M=Zr(e.history,M.url,M.signal)}let{shortCircuited:B,loaderData:Re,errors:Oe}=await Py(M,w,H,I,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,F,W);B||(D=null,$n(w,se({matches:H},Pf(W),{loaderData:Re,errors:Oe})))}async function xy(v,w,P,R,I){I===void 0&&(I={}),Fl();let H=Zg(w,P);tt({navigation:H},{flushSync:I.flushSync===!0});let F,M=xu(R,w);if(!M.route.action&&!M.route.lazy)F={type:ae.error,error:ft(405,{method:v.method,pathname:w.pathname,routeId:M.route.id})};else if(F=(await bn("action",v,[M],R))[0],v.signal.aborted)return{shortCircuited:!0};if(Ir(F)){let W;return I&&I.replace!=null?W=I.replace:W=wf(F.response.headers.get("Location"),new URL(v.url),u)===m.location.pathname+m.location.search,await Bn(v,F,{submission:P,replace:W}),{shortCircuited:!0}}if(Lr(F))throw ft(400,{type:"defer-action"});if(ht(F)){let W=wo(R,M.route.id);return(I&&I.replace)!==!0&&(N=we.Push),{pendingActionResult:[W.route.id,F]}}return{pendingActionResult:[M.route.id,F]}}async function Py(v,w,P,R,I,H,F,M,W,B){let Re=R||da(w,I),Oe=I||H||Rf(Re),$=a||l,[le,Pe]=mf(e.history,m,P,Oe,w,c.v7_partialHydration&&M===!0,c.unstable_skipActionErrorRevalidation,me,qe,ut,et,wt,te,$,u,B);if(zl(K=>!(P&&P.some($e=>$e.route.id===K))||le&&le.some($e=>$e.route.id===K)),U=++j,le.length===0&&Pe.length===0){let K=Gs();return $n(w,se({matches:P,loaderData:{},errors:B&&ht(B[1])?{[B[0]]:B[1].error}:null},Pf(B),K?{fetchers:new Map(m.fetchers)}:{}),{flushSync:W}),{shortCircuited:!0}}if(!ie&&(!c.v7_partialHydration||!M)){Pe.forEach($e=>{let ct=m.fetchers.get($e.key),Te=to(void 0,ct?ct.data:void 0);m.fetchers.set($e.key,Te)});let K;B&&!ht(B[1])?K={[B[0]]:B[1].data}:m.actionData&&(Object.keys(m.actionData).length===0?K=null:K=m.actionData),tt(se({navigation:Re},K!==void 0?{actionData:K}:{},Pe.length>0?{fetchers:new Map(m.fetchers)}:{}),{flushSync:W})}Pe.forEach(K=>{C.has(K.key)&&Jt(K.key),K.controller&&C.set(K.key,K.controller)});let Wn=()=>Pe.forEach(K=>Jt(K.key));D&&D.signal.addEventListener("abort",Wn);let{loaderResults:Xt,fetcherResults:Gr}=await qs(m.matches,P,le,Pe,v);if(v.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",Wn),Pe.forEach(K=>C.delete(K.key));let Yr=kf([...Xt,...Gr]);if(Yr){if(Yr.idx>=le.length){let K=Pe[Yr.idx-le.length].key;te.add(K)}return await Bn(v,Yr.result,{replace:F}),{shortCircuited:!0}}let{loaderData:Jr,errors:Tt}=Ef(m,P,le,Xt,B,Pe,Gr,Ue);Ue.forEach((K,$e)=>{K.subscribe(ct=>{(ct||K.done)&&Ue.delete($e)})}),c.v7_partialHydration&&M&&m.errors&&Object.entries(m.errors).filter(K=>{let[$e]=K;return!le.some(ct=>ct.route.id===$e)}).forEach(K=>{let[$e,ct]=K;Tt=Object.assign(Tt||{},{[$e]:ct})});let oi=Gs(),ii=Ys(U),li=oi||ii||Pe.length>0;return se({loaderData:Jr,errors:Tt},li?{fetchers:new Map(m.fetchers)}:{})}function _y(v,w,P,R){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");C.has(v)&&Jt(v);let I=(R&&R.unstable_flushSync)===!0,H=a||l,F=Su(m.location,m.matches,u,c.v7_prependBasename,P,c.v7_relativeSplatPath,w,R==null?void 0:R.relative),M=ao(H,F,u);if(!M){Hn(v,w,ft(404,{pathname:F}),{flushSync:I});return}let{path:W,submission:B,error:Re}=yf(c.v7_normalizeFormMethod,!0,F,R);if(Re){Hn(v,w,Re,{flushSync:I});return}let Oe=xu(M,W);if(A=(R&&R.preventScrollReset)===!0,B&&Pt(B.formMethod)){ky(v,w,W,Oe,M,I,B);return}wt.set(v,{routeId:w,path:W}),Cy(v,w,W,Oe,M,I,B)}async function ky(v,w,P,R,I,H,F){if(Fl(),wt.delete(v),!R.route.action&&!R.route.lazy){let Te=ft(405,{method:F.formMethod,pathname:P,routeId:w});Hn(v,w,Te,{flushSync:H});return}let M=m.fetchers.get(v);Yt(v,e0(F,M),{flushSync:H});let W=new AbortController,B=Zr(e.history,P,W.signal,F);C.set(v,W);let Re=j,$=(await bn("action",B,[R],I))[0];if(B.signal.aborted){C.get(v)===W&&C.delete(v);return}if(c.v7_fetcherPersist&&et.has(v)){if(Ir($)||ht($)){Yt(v,er(void 0));return}}else{if(Ir($))if(C.delete(v),U>Re){Yt(v,er(void 0));return}else return te.add(v),Yt(v,to(F)),Bn(B,$,{fetcherSubmission:F});if(ht($)){Hn(v,w,$.error);return}}if(Lr($))throw ft(400,{type:"defer-action"});let le=m.navigation.location||m.location,Pe=Zr(e.history,le,W.signal),Wn=a||l,Xt=m.navigation.state!=="idle"?ao(Wn,m.navigation.location,u):m.matches;Y(Xt,"Didn't find any matches after fetcher action");let Gr=++j;ee.set(v,Gr);let Yr=to(F,$.data);m.fetchers.set(v,Yr);let[Jr,Tt]=mf(e.history,m,Xt,F,le,!1,c.unstable_skipActionErrorRevalidation,me,qe,ut,et,wt,te,Wn,u,[R.route.id,$]);Tt.filter(Te=>Te.key!==v).forEach(Te=>{let Vn=Te.key,tc=m.fetchers.get(Vn),Ly=to(void 0,tc?tc.data:void 0);m.fetchers.set(Vn,Ly),C.has(Vn)&&Jt(Vn),Te.controller&&C.set(Vn,Te.controller)}),tt({fetchers:new Map(m.fetchers)});let oi=()=>Tt.forEach(Te=>Jt(Te.key));W.signal.addEventListener("abort",oi);let{loaderResults:ii,fetcherResults:li}=await qs(m.matches,Xt,Jr,Tt,Pe);if(W.signal.aborted)return;W.signal.removeEventListener("abort",oi),ee.delete(v),C.delete(v),Tt.forEach(Te=>C.delete(Te.key));let K=kf([...ii,...li]);if(K){if(K.idx>=Jr.length){let Te=Tt[K.idx-Jr.length].key;te.add(Te)}return Bn(Pe,K.result)}let{loaderData:$e,errors:ct}=Ef(m,m.matches,Jr,ii,void 0,Tt,li,Ue);if(m.fetchers.has(v)){let Te=er($.data);m.fetchers.set(v,Te)}Ys(Gr),m.navigation.state==="loading"&&Gr>U?(Y(N,"Expected pending action"),D&&D.abort(),$n(m.navigation.location,{matches:Xt,loaderData:$e,errors:ct,fetchers:new Map(m.fetchers)})):(tt({errors:ct,loaderData:xf(m.loaderData,$e,Xt,ct),fetchers:new Map(m.fetchers)}),me=!1)}async function Cy(v,w,P,R,I,H,F){let M=m.fetchers.get(v);Yt(v,to(F,M?M.data:void 0),{flushSync:H});let W=new AbortController,B=Zr(e.history,P,W.signal);C.set(v,W);let Re=j,$=(await bn("loader",B,[R],I))[0];if(Lr($)&&($=await Th($,B.signal,!0)||$),C.get(v)===W&&C.delete(v),!B.signal.aborted){if(et.has(v)){Yt(v,er(void 0));return}if(Ir($))if(U>Re){Yt(v,er(void 0));return}else{te.add(v),await Bn(B,$);return}if(ht($)){Hn(v,w,$.error);return}Y(!Lr($),"Unhandled fetcher deferred data"),Yt(v,er($.data))}}async function Bn(v,w,P){let{submission:R,fetcherSubmission:I,replace:H}=P===void 0?{}:P;w.response.headers.has("X-Remix-Revalidate")&&(me=!0);let F=w.response.headers.get("Location");Y(F,"Expected a Location header on the redirect Response"),F=wf(F,new URL(v.url),u);let M=Bo(m.location,F,{_isRedirect:!0});if(r){let le=!1;if(w.response.headers.has("X-Remix-Reload-Document"))le=!0;else if(Ds.test(F)){const Pe=e.history.createURL(F);le=Pe.origin!==t.location.origin||Yo(Pe.pathname,u)==null}if(le){H?t.location.replace(F):t.location.assign(F);return}}D=null;let W=H===!0?we.Replace:we.Push,{formMethod:B,formAction:Re,formEncType:Oe}=m.navigation;!R&&!I&&B&&Re&&Oe&&(R=Rf(m.navigation));let $=R||I;if(Fg.has(w.response.status)&&$&&Pt($.formMethod))await _r(W,M,{submission:se({},$,{formAction:F}),preventScrollReset:A});else{let le=da(M,R);await _r(W,M,{overrideNavigation:le,fetcherSubmission:I,preventScrollReset:A})}}async function bn(v,w,P,R){try{let I=await Wg(s,v,w,P,R,i,o);return await Promise.all(I.map((H,F)=>{if(Yg(H)){let M=H.result;return{type:ae.redirect,response:Qg(M,w,P[F].route.id,R,u,c.v7_relativeSplatPath)}}return qg(H)}))}catch(I){return P.map(()=>({type:ae.error,error:I}))}}async function qs(v,w,P,R,I){let[H,...F]=await Promise.all([P.length?bn("loader",I,P,w):[],...R.map(M=>{if(M.matches&&M.match&&M.controller){let W=Zr(e.history,M.path,M.controller.signal);return bn("loader",W,[M.match],M.matches).then(B=>B[0])}else return Promise.resolve({type:ae.error,error:ft(404,{pathname:M.path})})})]);return await Promise.all([Cf(v,P,H,H.map(()=>I.signal),!1,m.loaderData),Cf(v,R.map(M=>M.match),F,R.map(M=>M.controller?M.controller.signal:null),!0)]),{loaderResults:H,fetcherResults:F}}function Fl(){me=!0,qe.push(...zl()),wt.forEach((v,w)=>{C.has(w)&&(ut.push(w),Jt(w))})}function Yt(v,w,P){P===void 0&&(P={}),m.fetchers.set(v,w),tt({fetchers:new Map(m.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Hn(v,w,P,R){R===void 0&&(R={});let I=wo(m.matches,w);ri(v),tt({errors:{[I.route.id]:P},fetchers:new Map(m.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function Qs(v){return c.v7_fetcherPersist&&(Ze.set(v,(Ze.get(v)||0)+1),et.has(v)&&et.delete(v)),m.fetchers.get(v)||zg}function ri(v){let w=m.fetchers.get(v);C.has(v)&&!(w&&w.state==="loading"&&ee.has(v))&&Jt(v),wt.delete(v),ee.delete(v),te.delete(v),et.delete(v),m.fetchers.delete(v)}function Ry(v){if(c.v7_fetcherPersist){let w=(Ze.get(v)||0)-1;w<=0?(Ze.delete(v),et.add(v)):Ze.set(v,w)}else ri(v);tt({fetchers:new Map(m.fetchers)})}function Jt(v){let w=C.get(v);Y(w,"Expected fetch controller: "+v),w.abort(),C.delete(v)}function Ks(v){for(let w of v){let P=Qs(w),R=er(P.data);m.fetchers.set(w,R)}}function Gs(){let v=[],w=!1;for(let P of te){let R=m.fetchers.get(P);Y(R,"Expected fetcher: "+P),R.state==="loading"&&(te.delete(P),v.push(P),w=!0)}return Ks(v),w}function Ys(v){let w=[];for(let[P,R]of ee)if(R0}function Oy(v,w){let P=m.blockers.get(v)||eo;return st.get(v)!==w&&st.set(v,w),P}function Js(v){m.blockers.delete(v),st.delete(v)}function ni(v,w){let P=m.blockers.get(v)||eo;Y(P.state==="unblocked"&&w.state==="blocked"||P.state==="blocked"&&w.state==="blocked"||P.state==="blocked"&&w.state==="proceeding"||P.state==="blocked"&&w.state==="unblocked"||P.state==="proceeding"&&w.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+w.state);let R=new Map(m.blockers);R.set(v,w),tt({blockers:R})}function Xs(v){let{currentLocation:w,nextLocation:P,historyAction:R}=v;if(st.size===0)return;st.size>1&&Nn(!1,"A router only supports one blocker at a time");let I=Array.from(st.entries()),[H,F]=I[I.length-1],M=m.blockers.get(H);if(!(M&&M.state==="proceeding")&&F({currentLocation:w,nextLocation:P,historyAction:R}))return H}function zl(v){let w=[];return Ue.forEach((P,R)=>{(!v||v(R))&&(P.cancel(),w.push(R),Ue.delete(R))}),w}function Ty(v,w,P){if(E=v,S=w,g=P||null,!O&&m.navigation===fa){O=!0;let R=ec(m.location,m.matches);R!=null&&tt({restoreScrollPosition:R})}return()=>{E=null,S=null,g=null}}function Zs(v,w){return g&&g(v,w.map(R=>pg(R,m.loaderData)))||v.key}function Ny(v,w){if(E&&S){let P=Zs(v,w);E[P]=S()}}function ec(v,w){if(E){let P=Zs(v,w),R=E[P];if(typeof R=="number")return R}return null}function Dy(v){i={},a=wu(v,o,void 0,i)}return T={get basename(){return u},get future(){return c},get state(){return m},get routes(){return l},get window(){return t},initialize:gy,subscribe:Sy,enableScrollRestoration:Ty,navigate:Vs,fetch:_y,revalidate:Ey,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:Qs,deleteFetcher:Ry,dispose:wy,getBlocker:Oy,deleteBlocker:Js,_internalFetchControllers:C,_internalActiveDeferreds:Ue,_internalSetRoutes:Dy},T}function $g(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Su(e,t,r,n,o,i,l,a){let u,s;if(l){u=[];for(let p of t)if(u.push(p),p.route.id===l){s=p;break}}else u=t,s=t[t.length-1];let c=Ts(o||".",Os(u,i),Yo(e.pathname,r)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Ls(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Fr([r,c.pathname])),Wr(c)}function yf(e,t,r,n){if(!n||!$g(n))return{path:r};if(n.formMethod&&!Xg(n.formMethod))return{path:r,error:ft(405,{method:n.formMethod})};let o=()=>({path:r,error:ft(400,{type:"invalid-body"})}),i=n.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=Rh(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pt(l))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((E,g)=>{let[S,O]=g;return""+E+S+"="+O+` +`},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!Pt(l))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:a,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}Y(typeof FormData=="function","FormData is not available in this environment");let u,s;if(n.formData)u=Eu(n.formData),s=n.formData;else if(n.body instanceof FormData)u=Eu(n.body),s=n.body;else if(n.body instanceof URLSearchParams)u=n.body,s=Sf(u);else if(n.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(n.body),s=Sf(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Pt(c.formMethod))return{path:r,submission:c};let p=Kr(r);return t&&p.search&&Ls(p.search)&&u.append("index",""),p.search="?"+u,{path:Wr(p),submission:c}}function Bg(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function mf(e,t,r,n,o,i,l,a,u,s,c,p,f,E,g,S){let O=S?ht(S[1])?S[1].error:S[1].data:void 0,y=e.createURL(t.location),d=e.createURL(o),h=S&&ht(S[1])?S[0]:void 0,x=h?Bg(r,h):r,_=S?S[1].statusCode:void 0,T=l&&_&&_>=400,m=x.filter((A,D)=>{let{route:V}=A;if(V.lazy)return!0;if(V.loader==null)return!1;if(i)return typeof V.loader!="function"||V.loader.hydrate?!0:t.loaderData[V.id]===void 0&&(!t.errors||t.errors[V.id]===void 0);if(bg(t.loaderData,t.matches[D],A)||u.some(ie=>ie===A.route.id))return!0;let G=t.matches[D],X=A;return vf(A,se({currentUrl:y,currentParams:G.params,nextUrl:d,nextParams:X.params},n,{actionResult:O,unstable_actionStatus:_,defaultShouldRevalidate:T?!1:a||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||Ch(G,X)}))}),N=[];return p.forEach((A,D)=>{if(i||!r.some(me=>me.route.id===A.routeId)||c.has(D))return;let V=ao(E,A.path,g);if(!V){N.push({key:D,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let G=t.fetchers.get(D),X=xu(V,A.path),ie=!1;f.has(D)?ie=!1:s.includes(D)?ie=!0:G&&G.state!=="idle"&&G.data===void 0?ie=a:ie=vf(X,se({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:O,unstable_actionStatus:_,defaultShouldRevalidate:T?!1:a})),ie&&N.push({key:D,routeId:A.routeId,path:A.path,matches:V,match:X,controller:new AbortController})}),[m,N]}function bg(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function Ch(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function vf(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function gf(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Y(o,"No route found in manifest");let i={};for(let l in n){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Nn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!fg.has(l)&&(i[l]=n[l])}Object.assign(o,i),Object.assign(o,se({},t(o),{lazy:void 0}))}function Hg(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Wg(e,t,r,n,o,i,l,a){let u=n.reduce((p,f)=>p.add(f.route.id),new Set),s=new Set,c=await e({matches:o.map(p=>{let f=u.has(p.route.id);return se({},p,{shouldLoad:f,resolve:g=>(s.add(p.route.id),f?Vg(t,r,p,i,l,g,a):Promise.resolve({type:ae.data,result:void 0}))})}),request:r,params:o[0].params,context:a});return o.forEach(p=>Y(s.has(p.route.id),'`match.resolve()` was not called for route id "'+p.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((p,f)=>u.has(o[f].route.id))}async function Vg(e,t,r,n,o,i,l){let a,u,s=c=>{let p,f=new Promise((S,O)=>p=O);u=()=>p(),t.signal.addEventListener("abort",u);let E=S=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:l},...S!==void 0?[S]:[]),g;return i?g=i(S=>E(S)):g=(async()=>{try{return{type:"data",result:await E()}}catch(S){return{type:"error",result:S}}})(),Promise.race([g,f])};try{let c=r.route[e];if(r.route.lazy)if(c){let p,[f]=await Promise.all([s(c).catch(E=>{p=E}),gf(r.route,o,n)]);if(p!==void 0)throw p;a=f}else if(await gf(r.route,o,n),c=r.route[e],c)a=await s(c);else if(e==="action"){let p=new URL(t.url),f=p.pathname+p.search;throw ft(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:ae.data,result:void 0};else if(c)a=await s(c);else{let p=new URL(t.url),f=p.pathname+p.search;throw ft(404,{pathname:f})}Y(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:ae.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return a}async function qg(e){let{result:t,type:r,status:n}=e;if(Oh(t)){let l;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(a){return{type:ae.error,error:a}}return r===ae.error?{type:ae.error,error:new Ns(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:ae.data,data:l,statusCode:t.status,headers:t.headers}}if(r===ae.error)return{type:ae.error,error:t,statusCode:Ph(t)?t.status:n};if(Jg(t)){var o,i;return{type:ae.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:ae.data,data:t,statusCode:n}}function Qg(e,t,r,n,o,i){let l=e.headers.get("Location");if(Y(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ds.test(l)){let a=n.slice(0,n.findIndex(u=>u.route.id===r)+1);l=Su(new URL(t.url),a,o,!0,l,i),e.headers.set("Location",l)}return e}function wf(e,t,r){if(Ds.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=Yo(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Zr(e,t,r,n){let o=e.createURL(Rh(t)).toString(),i={signal:r};if(n&&Pt(n.formMethod)){let{formMethod:l,formEncType:a}=n;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(n.json)):a==="text/plain"?i.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?i.body=Eu(n.formData):i.body=n.formData}return new Request(o,i)}function Eu(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Sf(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Kg(e,t,r,n,o,i){let l={},a=null,u,s=!1,c={},p=n&&ht(n[1])?n[1].error:void 0;return r.forEach((f,E)=>{let g=t[E].route.id;if(Y(!Ir(f),"Cannot handle redirect results in processLoaderData"),ht(f)){let S=f.error;if(p!==void 0&&(S=p,p=void 0),a=a||{},i)a[g]=S;else{let O=wo(e,g);a[O.route.id]==null&&(a[O.route.id]=S)}l[g]=void 0,s||(s=!0,u=Ph(f.error)?f.error.status:500),f.headers&&(c[g]=f.headers)}else Lr(f)?(o.set(g,f.deferredData),l[g]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(c[g]=f.headers)):(l[g]=f.data,f.statusCode&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(c[g]=f.headers))}),p!==void 0&&n&&(a={[n[0]]:p},l[n[0]]=void 0),{loaderData:l,errors:a,statusCode:u||200,loaderHeaders:c}}function Ef(e,t,r,n,o,i,l,a){let{loaderData:u,errors:s}=Kg(t,r,n,o,a,!1);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function _f(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ft(e,t){let{pathname:r,routeId:n,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&r&&n?a="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",a='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?a="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Ns(e||500,l,new Error(a),!0)}function kf(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ir(r))return{result:r,idx:t}}}function Rh(e){let t=typeof e=="string"?Kr(e):e;return Wr(se({},t,{hash:""}))}function Gg(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Yg(e){return Oh(e.result)&&Ag.has(e.result.status)}function Lr(e){return e.type===ae.deferred}function ht(e){return e.type===ae.error}function Ir(e){return(e&&e.type)===ae.redirect}function Jg(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Oh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Xg(e){return Mg.has(e.toLowerCase())}function Pt(e){return Lg.has(e.toLowerCase())}async function Cf(e,t,r,n,o,i){for(let l=0;lp.route.id===u.route.id),c=s!=null&&!Ch(s,u)&&(i&&i[u.route.id])!==void 0;if(Lr(a)&&(o||c)){let p=n[l];Y(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await Th(a,p,o).then(f=>{f&&(r[l]=f||r[l])})}}}async function Th(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:ae.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ae.error,error:o}}return{type:ae.data,data:e.deferredData.data}}}function Ls(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function xu(e,t){let r=typeof t=="string"?Kr(t).search:t.search;if(e[e.length-1].route.index&&Ls(r||""))return e[e.length-1];let n=xh(e);return n[n.length-1]}function Rf(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:l}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:l,text:void 0}}}function da(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Zg(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function to(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e0(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function er(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function t0(e,t){try{let r=e.sessionStorage.getItem(kh);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function r0(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(kh,JSON.stringify(r))}catch(n){Nn(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),z.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){n.go(s);return}let p=Ts(s,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Fr([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,l,i,e])}function l0(){let{matches:e}=z.useContext(Xo),t=e[e.length-1];return t?t.params:{}}function Ih(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=z.useContext(Jo),{matches:o}=z.useContext(Xo),{pathname:i}=Ms(),l=JSON.stringify(Os(o,n.v7_relativeSplatPath));return z.useMemo(()=>Ts(e,JSON.parse(l),i,r==="path"),[e,l,i,r])}var Mh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Mh||{}),Ah=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ah||{});function a0(e){let t=z.useContext(Nh);return t||Y(!1),t}function u0(e){let t=z.useContext(Xo);return t||Y(!1),t}function s0(e){let t=u0(),r=t.matches[t.matches.length-1];return r.route.id||Y(!1),r.route.id}function c0(){let{router:e}=a0(Mh.UseNavigateStable),t=s0(Ah.UseNavigateStable),r=z.useRef(!1);return Lh(()=>{r.current=!0}),z.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Pu({fromRouteId:t},i)))},[e,t])}new Promise(()=>{});function f0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:z.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:z.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:z.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function p0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h0(e,t){return e.button===0&&(!t||t==="_self")&&!p0(e)}const y0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],m0="6";try{window.__reactRouterVersion=m0}catch{}function v0(e,t){return Ug({basename:t==null?void 0:t.basename,future:bo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:ug({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||g0(),routes:e,mapRouteProperties:f0,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function g0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bo({},t,{errors:w0(t.errors)})),t}function w0(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new Ns(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",r[n]=l}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const S0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fh=z.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,f=d0(t,y0),{basename:E}=z.useContext(Jo),g,S=!1;if(typeof s=="string"&&E0.test(s)&&(g=s,S0))try{let h=new URL(window.location.href),x=s.startsWith("//")?new URL(h.protocol+s):new URL(s),_=Yo(x.pathname,E);x.origin===h.origin&&_!=null?s=_+x.search+x.hash:S=!0}catch{}let O=n0(s,{relative:o}),y=x0(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o,unstable_viewTransition:p});function d(h){n&&n(h),h.defaultPrevented||y(h)}return z.createElement("a",bo({},f,{href:g||O,onClick:S||i?n:d,ref:r,target:u}))});var Of;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Of||(Of={}));var Tf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tf||(Tf={}));function x0(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=o0(),s=Ms(),c=Ih(e,{relative:l});return z.useCallback(p=>{if(h0(p,r)){p.preventDefault();let f=n!==void 0?n:Wr(s)===Wr(c);u(e,{replace:f,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[s,u,c,n,o,r,e,i,l,a])}const P0=()=>{const[e,t]=z.useState("");return z.useEffect(()=>{let r=0;const n=setInterval(()=>{r=(r+1)%4;let o="";for(let i=0;iclearInterval(n)},[]),b.jsxs("div",{className:"title-text h-screen font-mono disable-select -z-10",children:[b.jsx("div",{className:"h-1/2 relative -z-10",children:b.jsx("div",{className:"absolute bottom-0 text-2xl pl-7 pb-5",children:"I am pursuing a CS degree"})}),b.jsx("div",{className:"h-1/2 relative -z-10",children:b.jsxs("div",{className:"absolute text-5xl pl-5 sm:text-6xl md:text-7xl lg:text-8xl xl:text-9xl",children:["BUT HOW DO I ",e]})})]})},_0=[{title:"How Do I Implement Pagination in React",tags:["react","javascript"],id:0},{title:"How Do I Use Scroll, Blur and Opactiy",tags:["javascript","react"],id:1},{title:"How Do I Use setInterval() For Repeating A Content",tags:["javascript","react"],id:2},{title:"How Do I Fetch Raw HTML Content From GitHub",tags:["react"],id:3}],k0=({title:e,tags:t})=>{const r=z.useMemo(()=>t.sort((n,o)=>n.localeCompare(o)),[t]);return b.jsx(Fh,{to:`/post/${e}`,children:b.jsxs("div",{className:` + w-4/5 + mx-auto + rounded-lg + shadow-inner + border-2 + mb-5 + transition + duration-300 + hover:scale-102 + post-grid + post-grid-border + border-zinc-500 + `,children:[b.jsx("div",{className:` + post-grid-text + text-xl + font-mono + sm:text-xl + md:text-2xl + lg:text-3xl + xl:text-3xl + break-words + px-5 + py-7 + disable-select + `,children:e}),b.jsx("div",{className:` + flex + flex-wrap + gap-2 + py-6 + px-3 + text-xs + sm:text-xs + md:text-sm + lg:text-lg + xl:text-lg + font-mono + overflow-hidden + `,children:r.map(n=>b.jsx("div",{className:` + border-2 + rounded-md + px-3 + py-1 + mx-2 + post-grid-text + float-right + disable-select + `,children:n},n))})]})})},C0=({currentPage:e,pageCount:t,onPageChange:r})=>{const n=[];for(let o=1;o<=t;o++)n.push(b.jsx("button",{onClick:()=>r(o),className:` + font-mono + rounded-md + px-2 + mx-1 + mb-2 + w-fit + shadow-lg + inline-block + text-xs + sm:text-xe + md:text-sm + lg:text-lg + xl:text-lg + transition + duration-300 + whitespace-pre + bg-gray-500/20 + hover:bg-gray-200/20 + ${e===o?"border-2 pagination-border-selected pagination-text-selected":"border-2 border-zinc-500/50 text-white/50"} + `,children:o},o));return b.jsx("div",{children:n})},R0=()=>{const[e,t]=z.useState([]),[r,n]=z.useState([]),[o,i]=z.useState([]),[l,a]=z.useState([]),[u,s]=z.useState(1),c=4,p=Math.ceil(l.length/c);z.useEffect(()=>{const d=_0.sort((_,T)=>T.id-_.id),h=f(d),x=Object.keys(h).map(_=>({name:_,frequency:h[_].length})).sort((_,T)=>T.frequency-_.frequency);t(d),n(x),a(d)},[]);const f=d=>{const h={};return d.forEach(x=>{x.tags.forEach(_=>{h[_]?h[_].push(x.id):h[_]=[x.id]})}),h},E=d=>{if(o.indexOf(d)!==-1){const x=o.filter(_=>_!==d);i(x),g(x)}else{const x=[...o,d];i(x),g(x)}},g=d=>{if(d.length===0){a(e),n(r.map(x=>({...x,frequency:e.filter(_=>_.tags.includes(x.name)).length})));return}const h=e.filter(x=>{const _=T=>x.tags.includes(T);return d.every(_)});a(h),S(h)},S=d=>{const h=r.map(x=>{const _=d.filter(m=>m.tags.includes(x.name)).length;return{...x,frequency:_}});n(h)},O=d=>{s(d)},y=z.useMemo(()=>{const d=(u-1)*c,h=d+c;return l.slice(d,h)},[u,l,c]);return b.jsxs("div",{className:"relative post-section-board min-h-screen",children:[b.jsx("div",{className:` + text-center + post-section-text-title + my-14 + font-mono + text-2xl + sm:text-3xl + md:text-4xl + lg:text-5xl + xl:text-6xl + disable-select + `,children:"THINGS I FIND USEFUL"}),b.jsx("div",{className:"text-center mb-8 disable-select",children:r.map(d=>b.jsx("button",{disabled:d.frequency===0,onClick:()=>E(d.name),className:` + border-2 + font-mono + px-2 + py-1 + rounded-lg + shadow-lg + mb-2 + mx-2 + text-xs + sm:text-xs + md:text-sm + lg:text-lg + xl:text-lg + hover-bg + hover-text + hover:scale-110 + hover:shadow-2xl + hover:shadow-stone-700/50 + hover:-translate-y-1 + disabled:border-gray-500 + disabled:text-gray-500 + disabled:hover:scale-100 + disabled:transition-none + disabled:hover:shadow-none + disabled:hover:bg-inherit + disabled:hover:transform-none + active:bg-gray-900 + active:text-gray-200 + transition + duration-300 + whitespace-pre + ${o.includes(d.name)?"text-selected border-selected":"text-zinc-400 border-zinc-500"} + `,children:d.name+" "+d.frequency},d.name))}),y.map(d=>b.jsx(k0,{title:d.title,tags:d.tags},d.id)),b.jsx("div",{className:` + absolute + bottom-1 + mb-1 + mt-10 + left-1/2 + -translate-x-1/2 + disable-select + `,children:b.jsx(C0,{currentPage:u,pageCount:p,onPageChange:O})})]})},O0=()=>b.jsxs("div",{className:"text-footer disable-select",children:[b.jsx("div",{children:"A collection of code snippets by Nathan Lao from his side projects"}),b.jsx("div",{children:"@2024"})]}),T0=()=>{const[e,t]=z.useState(0),[r,n]=z.useState(1),[o,i]=z.useState(!1),l=()=>{const a=window.scrollY,u=window.innerHeight,s=15,c=0,p=a/(u*.7),f=Math.min(s,Math.ceil(p*s)),E=Math.max(c,1.5-p);t(f),n(E)};return z.useEffect(()=>{const a=()=>l(),u=()=>l(),s=setTimeout(()=>{window.scrollTo(0,0),i(!0)},500);return window.addEventListener("scroll",a),window.addEventListener("resize",u),()=>{clearTimeout(s),window.removeEventListener("scroll",a),window.removeEventListener("resize",u)}},[]),o?b.jsxs("div",{className:`fade-in ${o?"visible":""}`,children:[b.jsx("div",{className:"h-screen w-screen -z-10"}),b.jsx("div",{className:"fixed top-0 h-screen w-screen -z-10",style:{filter:`blur(${e}px)`,opacity:r},children:b.jsx(P0,{})}),b.jsx("div",{className:"-z-10",style:{height:"50vh"}}),b.jsx(R0,{}),b.jsx("div",{className:"text-center mt-1 mb-4 w-full z-50",children:b.jsx(O0,{})})]}):b.jsx("div",{className:"disable-display",children:"Loading..."})};var N0=Error,D0=EvalError,L0=RangeError,I0=ReferenceError,zh=SyntaxError,Zo=TypeError,M0=URIError,A0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Nf=typeof Symbol<"u"&&Symbol,F0=A0,z0=function(){return typeof Nf!="function"||typeof Symbol!="function"||typeof Nf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:F0()},pa={__proto__:null,foo:{}},j0=Object,U0=function(){return{__proto__:pa}.foo===pa.foo&&!(pa instanceof j0)},$0="Function.prototype.bind called on incompatible ",B0=Object.prototype.toString,b0=Math.max,H0="[object Function]",Df=function(t,r){for(var n=[],o=0;o"u"||!_e?q:_e(Uint8Array),jr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q:ArrayBuffer,"%ArrayIteratorPrototype%":en&&_e?_e([][Symbol.iterator]()):q,"%AsyncFromSyncIteratorPrototype%":q,"%AsyncFunction%":rn,"%AsyncGenerator%":rn,"%AsyncGeneratorFunction%":rn,"%AsyncIteratorPrototype%":rn,"%Atomics%":typeof Atomics>"u"?q:Atomics,"%BigInt%":typeof BigInt>"u"?q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":X0,"%eval%":eval,"%EvalError%":Z0,"%Float32Array%":typeof Float32Array>"u"?q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q:FinalizationRegistry,"%Function%":jh,"%GeneratorFunction%":rn,"%Int8Array%":typeof Int8Array>"u"?q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":en&&_e?_e(_e([][Symbol.iterator]())):q,"%JSON%":typeof JSON=="object"?JSON:q,"%Map%":typeof Map>"u"?q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!en||!_e?q:_e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q:Promise,"%Proxy%":typeof Proxy>"u"?q:Proxy,"%RangeError%":e1,"%ReferenceError%":t1,"%Reflect%":typeof Reflect>"u"?q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!en||!_e?q:_e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":en&&_e?_e(""[Symbol.iterator]()):q,"%Symbol%":en?Symbol:q,"%SyntaxError%":Dn,"%ThrowTypeError%":n1,"%TypedArray%":i1,"%TypeError%":xn,"%Uint8Array%":typeof Uint8Array>"u"?q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q:Uint32Array,"%URIError%":r1,"%WeakMap%":typeof WeakMap>"u"?q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q:WeakSet};if(_e)try{null.error}catch(e){var l1=_e(_e(e));jr["%Error.prototype%"]=l1}var a1=function e(t){var r;if(t==="%AsyncFunction%")r=ha("async function () {}");else if(t==="%GeneratorFunction%")r=ha("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ha("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&_e&&(r=_e(o.prototype))}return jr[t]=r,r},Lf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ei=As,dl=J0,u1=ei.call(Function.call,Array.prototype.concat),s1=ei.call(Function.apply,Array.prototype.splice),If=ei.call(Function.call,String.prototype.replace),pl=ei.call(Function.call,String.prototype.slice),c1=ei.call(Function.call,RegExp.prototype.exec),f1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d1=/\\(\\)?/g,p1=function(t){var r=pl(t,0,1),n=pl(t,-1);if(r==="%"&&n!=="%")throw new Dn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Dn("invalid intrinsic syntax, expected opening `%`");var o=[];return If(t,f1,function(i,l,a,u){o[o.length]=a?If(u,d1,"$1"):l||i}),o},h1=function(t,r){var n=t,o;if(dl(Lf,n)&&(o=Lf[n],n="%"+o[0]+"%"),dl(jr,n)){var i=jr[n];if(i===rn&&(i=a1(n)),typeof i>"u"&&!r)throw new xn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Dn("intrinsic "+t+" does not exist!")},zn=function(t,r){if(typeof t!="string"||t.length===0)throw new xn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new xn('"allowMissing" argument must be a boolean');if(c1(/^%?[^%]*%?$/,t)===null)throw new Dn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=p1(t),o=n.length>0?n[0]:"",i=h1("%"+o+"%",r),l=i.name,a=i.value,u=!1,s=i.alias;s&&(o=s[0],s1(n,u1([0,1],s)));for(var c=1,p=!0;c=n.length){var S=zr(a,f);p=!!S,p&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else p=dl(a,f),a=a[f];p&&!u&&(jr[l]=a)}}return a},Uh={exports:{}},ma,Mf;function Fs(){if(Mf)return ma;Mf=1;var e=zn,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return ma=t,ma}var y1=zn,Ui=y1("%Object.getOwnPropertyDescriptor%",!0);if(Ui)try{Ui([],"length")}catch{Ui=null}var $h=Ui,Af=Fs(),m1=zh,tn=Zo,Ff=$h,v1=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new tn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new tn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new tn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new tn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new tn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new tn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!Ff&&Ff(t,r);if(Af)Af(t,r,{configurable:l===null&&u?u.configurable:!l,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!l)t[r]=n;else throw new m1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},_u=Fs(),Bh=function(){return!!_u};Bh.hasArrayLengthDefineBug=function(){if(!_u)return null;try{return _u([],"length",{value:1}).length!==1}catch{return!0}};var g1=Bh,w1=zn,zf=v1,S1=g1(),jf=$h,Uf=Zo,E1=w1("%Math.floor%"),x1=function(t,r){if(typeof t!="function")throw new Uf("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||E1(r)!==r)throw new Uf("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&jf){var l=jf(t,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(i=!1)}return(o||i||!n)&&(S1?zf(t,"length",r,!0,!0):zf(t,"length",r)),t};(function(e){var t=As,r=zn,n=x1,o=Zo,i=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(l,i),u=Fs(),s=r("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var E=a(t,l,arguments);return n(E,1+s(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(Uh);var P1=Uh.exports,bh=zn,Hh=P1,_1=Hh(bh("String.prototype.indexOf")),k1=function(t,r){var n=bh(t,!!r);return typeof n=="function"&&_1(t,".prototype.")>-1?Hh(n):n};const C1={},R1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),O1=Ay(R1);var zs=typeof Map=="function"&&Map.prototype,va=Object.getOwnPropertyDescriptor&&zs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,hl=zs&&va&&typeof va.get=="function"?va.get:null,$f=zs&&Map.prototype.forEach,js=typeof Set=="function"&&Set.prototype,ga=Object.getOwnPropertyDescriptor&&js?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,yl=js&&ga&&typeof ga.get=="function"?ga.get:null,Bf=js&&Set.prototype.forEach,T1=typeof WeakMap=="function"&&WeakMap.prototype,So=T1?WeakMap.prototype.has:null,N1=typeof WeakSet=="function"&&WeakSet.prototype,Eo=N1?WeakSet.prototype.has:null,D1=typeof WeakRef=="function"&&WeakRef.prototype,bf=D1?WeakRef.prototype.deref:null,L1=Boolean.prototype.valueOf,I1=Object.prototype.toString,M1=Function.prototype.toString,A1=String.prototype.match,Us=String.prototype.slice,ur=String.prototype.replace,F1=String.prototype.toUpperCase,Hf=String.prototype.toLowerCase,Wh=RegExp.prototype.test,Wf=Array.prototype.concat,Mt=Array.prototype.join,z1=Array.prototype.slice,Vf=Math.floor,ku=typeof BigInt=="function"?BigInt.prototype.valueOf:null,wa=Object.getOwnPropertySymbols,Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="object",je=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ln||!0)?Symbol.toStringTag:null,Vh=Object.prototype.propertyIsEnumerable,qf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Qf(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Wh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Vf(-e):Vf(e);if(n!==e){var o=String(n),i=Us.call(t,o.length+1);return ur.call(o,r,"$&_")+"."+ur.call(ur.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ur.call(t,r,"$&_")}var Ru=O1,Kf=Ru.custom,Gf=Qh(Kf)?Kf:null,j1=function e(t,r,n,o){var i=r||{};if(nr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=nr(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(nr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Gh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?Qf(t,u):u}if(typeof t=="bigint"){var s=String(t)+"n";return a?Qf(t,s):s}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Ou(t)?"[Array]":"[Object]";var p=rw(i,n);if(typeof o>"u")o=[];else if(Kh(o,t)>=0)return"[Circular]";function f(X,ie,me){if(ie&&(o=z1.call(o),o.push(ie)),me){var qe={depth:i.depth};return nr(i,"quoteStyle")&&(qe.quoteStyle=i.quoteStyle),e(X,qe,n+1,o)}return e(X,i,n+1,o)}if(typeof t=="function"&&!Yf(t)){var E=Q1(t),g=_i(t,f);return"[Function"+(E?": "+E:" (anonymous)")+"]"+(g.length>0?" { "+Mt.call(g,", ")+" }":"")}if(Qh(t)){var S=Ln?ur.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Cu.call(t);return typeof t=="object"&&!Ln?ro(S):S}if(Z1(t)){for(var O="<"+Hf.call(String(t.nodeName)),y=t.attributes||[],d=0;d",O}if(Ou(t)){if(t.length===0)return"[]";var h=_i(t,f);return p&&!tw(h)?"["+Tu(h,p)+"]":"[ "+Mt.call(h,", ")+" ]"}if(B1(t)){var x=_i(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!Vh.call(t,"cause")?"{ ["+String(t)+"] "+Mt.call(Wf.call("[cause]: "+f(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mt.call(x,", ")+" }"}if(typeof t=="object"&&l){if(Gf&&typeof t[Gf]=="function"&&Ru)return Ru(t,{depth:c-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(K1(t)){var _=[];return $f&&$f.call(t,function(X,ie){_.push(f(ie,t,!0)+" => "+f(X,t))}),Jf("Map",hl.call(t),_,p)}if(J1(t)){var T=[];return Bf&&Bf.call(t,function(X){T.push(f(X,t))}),Jf("Set",yl.call(t),T,p)}if(G1(t))return Sa("WeakMap");if(X1(t))return Sa("WeakSet");if(Y1(t))return Sa("WeakRef");if(H1(t))return ro(f(Number(t)));if(V1(t))return ro(f(ku.call(t)));if(W1(t))return ro(L1.call(t));if(b1(t))return ro(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Iy)return"{ [object globalThis] }";if(!$1(t)&&!Yf(t)){var m=_i(t,f),N=qf?qf(t)===Object.prototype:t instanceof Object||t.constructor===Object,A=t instanceof Object?"":"null prototype",D=!N&&je&&Object(t)===t&&je in t?Us.call(Pr(t),8,-1):A?"Object":"",V=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=V+(D||A?"["+Mt.call(Wf.call([],D||[],A||[]),": ")+"] ":"");return m.length===0?G+"{}":p?G+"{"+Tu(m,p)+"}":G+"{ "+Mt.call(m,", ")+" }"}return String(t)};function qh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function U1(e){return ur.call(String(e),/"/g,""")}function Ou(e){return Pr(e)==="[object Array]"&&(!je||!(typeof e=="object"&&je in e))}function $1(e){return Pr(e)==="[object Date]"&&(!je||!(typeof e=="object"&&je in e))}function Yf(e){return Pr(e)==="[object RegExp]"&&(!je||!(typeof e=="object"&&je in e))}function B1(e){return Pr(e)==="[object Error]"&&(!je||!(typeof e=="object"&&je in e))}function b1(e){return Pr(e)==="[object String]"&&(!je||!(typeof e=="object"&&je in e))}function H1(e){return Pr(e)==="[object Number]"&&(!je||!(typeof e=="object"&&je in e))}function W1(e){return Pr(e)==="[object Boolean]"&&(!je||!(typeof e=="object"&&je in e))}function Qh(e){if(Ln)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Cu)return!1;try{return Cu.call(e),!0}catch{}return!1}function V1(e){if(!e||typeof e!="object"||!ku)return!1;try{return ku.call(e),!0}catch{}return!1}var q1=Object.prototype.hasOwnProperty||function(e){return e in this};function nr(e,t){return q1.call(e,t)}function Pr(e){return I1.call(e)}function Q1(e){if(e.name)return e.name;var t=A1.call(M1.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Kh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Gh(Us.call(e,0,t.maxStringLength),t)+n}var o=ur.call(ur.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ew);return qh(o,"single",t)}function ew(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+F1.call(t.toString(16))}function ro(e){return"Object("+e+")"}function Sa(e){return e+" { ? }"}function Jf(e,t,r,n){var o=n?Tu(r,n):Mt.call(r,", ");return e+" ("+t+") {"+o+"}"}function tw(e){for(var t=0;t=0)return!1;return!0}function rw(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Mt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Mt.call(Array(t+1),r)}}function Tu(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+Mt.call(e,","+r)+` +`+t.prev}function _i(e,t){var r=Ou(e),n=[];if(r){n.length=e.length;for(var o=0;o1;){var r=t.pop(),n=r.obj[r.prop];if(Rr(n)){for(var o=[],i=0;i=Pa?l.slice(u,u+Pa):l,c=[],p=0;p=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===vw.RFC1738&&(f===40||f===41)){c[c.length]=s.charAt(p);continue}if(f<128){c[c.length]=Dt[f];continue}if(f<2048){c[c.length]=Dt[192|f>>6]+Dt[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Dt[224|f>>12]+Dt[128|f>>6&63]+Dt[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|s.charCodeAt(p)&1023),c[c.length]=Dt[240|f>>18]+Dt[128|f>>12&63]+Dt[128|f>>6&63]+Dt[128|f&63]}a+=c.join("")}return a},Pw=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o"u"&&(_=0)}if(typeof c=="function"?h=c(r,h):h instanceof Date?h=E(h):n==="comma"&&It(h)&&(h=$i.maybeMap(h,function(U){return U instanceof Date?E(U):U})),h===null){if(l)return s&&!O?s(r,ge.encoder,y,"key",g):r;h=""}if(Dw(h)||$i.isBuffer(h)){if(s){var N=O?r:s(r,ge.encoder,y,"key",g);return[S(N)+"="+S(s(h,ge.encoder,y,"value",g))]}return[S(r)+"="+S(String(h))]}var A=[];if(typeof h>"u")return A;var D;if(n==="comma"&&It(h))O&&s&&(h=$i.maybeMap(h,s)),D=[{value:h.length>0?h.join(",")||null:void 0}];else if(It(c))D=c;else{var V=Object.keys(h);D=p?V.sort(p):V}var G=u?r.replace(/\./g,"%2E"):r,X=o&&It(h)&&h.length===1?G+"[]":G;if(i&&It(h)&&h.length===0)return X+"[]";for(var ie=0;ie"u"?t.encodeDotInKeys===!0?!0:ge.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ge.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ge.allowEmptyArrays,arrayFormat:l,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ge.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?ge.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ge.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:ge.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:ge.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ge.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ge.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ge.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ge.strictNullHandling}},Mw=function(e,t){var r=e,n=Iw(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):It(n.filter)&&(i=n.filter,o=i);var l=[];if(typeof r!="object"||r===null)return"";var a=ey[n.arrayFormat],u=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Zh(),c=0;c0?E+f:""},In=Xh,Nu=Object.prototype.hasOwnProperty,Aw=Array.isArray,he={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:In.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Fw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},ry=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},zw="utf8=%26%2310003%3B",jw="utf8=%E2%9C%93",Uw=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),a=-1,u,s=r.charset;if(r.charsetSentinel)for(u=0;u-1&&(g=Aw(g)?[g]:g);var S=Nu.call(n,E);S&&r.duplicates==="combine"?n[E]=In.combine(n[E],g):(!S||r.duplicates==="last")&&(n[E]=g)}return n},$w=function(e,t,r,n){for(var o=n?t:ry(t,r),i=e.length-1;i>=0;--i){var l,a=e[i];if(a==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{l=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,s=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(s,10);!r.parseArrays&&s===""?l={0:o}:!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[],l[c]=o):s!=="__proto__"&&(l[s]=o)}o=l}return o},Bw=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&l.exec(i),s=u?i.slice(0,u.index):i,c=[];if(s){if(!n.plainObjects&&Nu.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var p=0;n.depth>0&&(u=a.exec(i))!==null&&p"u"?he.charset:t.charset,n=typeof t.duplicates>"u"?he.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:he.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:he.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:he.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:he.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:he.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:he.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:he.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:he.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:he.decoder,delimiter:typeof t.delimiter=="string"||In.isRegExp(t.delimiter)?t.delimiter:he.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:he.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:he.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:he.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:he.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:he.strictNullHandling}},Hw=function(e,t){var r=bw(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Uw(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),l=0;l-1};function Un(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function bs(e){return typeof e!="string"&&(e=String(e)),e}function Hs(e){var t={next:function(){var r=e.shift();return{done:r===void 0,value:r}}};return Be.iterable&&(t[Symbol.iterator]=function(){return t}),t}function xe(e){this.map={},e instanceof xe?e.forEach(function(t,r){this.append(r,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}xe.prototype.append=function(e,t){e=Un(e),t=bs(t);var r=this.map[e];this.map[e]=r?r+", "+t:t};xe.prototype.delete=function(e){delete this.map[Un(e)]};xe.prototype.get=function(e){return e=Un(e),this.has(e)?this.map[e]:null};xe.prototype.has=function(e){return this.map.hasOwnProperty(Un(e))};xe.prototype.set=function(e,t){this.map[Un(e)]=bs(t)};xe.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)};xe.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),Hs(e)};xe.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Hs(e)};xe.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),Hs(e)};Be.iterable&&(xe.prototype[Symbol.iterator]=xe.prototype.entries);function ka(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function oy(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function Yw(e){var t=new FileReader,r=oy(t);return t.readAsArrayBuffer(e),r}function Jw(e){var t=new FileReader,r=oy(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}function Xw(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}function Vr(e,t){if(!(this instanceof Vr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof Vr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new xe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new xe(t.headers)),this.method=eS(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in De){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Vr.prototype.clone=function(){return new Vr(this,{body:this._bodyInit})};function tS(e){var t=new FormData;return e.trim().split("&").forEach(function(r){if(r){var n=r.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function rS(e){var t=new xe,r=e.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(` +`)===0?n.substr(1,n.length):n}).forEach(function(n){var o=n.split(":"),i=o.shift().trim();if(i){var l=o.join(":").trim();try{t.append(i,l)}catch(a){console.warn("Response "+a.message)}}}),t}iy.call(Vr.prototype);function Ut(e,t){if(!(this instanceof Ut))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new xe(t.headers),this.url=t.url||"",this._initBody(e)}iy.call(Ut.prototype);Ut.prototype.clone=function(){return new Ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new xe(this.headers),url:this.url})};Ut.error=function(){var e=new Ut(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var nS=[301,302,303,307,308];Ut.redirect=function(e,t){if(nS.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Ut(null,{status:t,headers:{location:e}})};var Or=De.DOMException;try{new Or}catch{Or=function(t,r){this.message=t,this.name=r;var n=Error(t);this.stack=n.stack},Or.prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function ly(e,t){return new Promise(function(r,n){var o=new Vr(e,t);if(o.signal&&o.signal.aborted)return n(new Or("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var s={statusText:i.statusText,headers:rS(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?s.status=200:s.status=i.status,s.url="responseURL"in i?i.responseURL:s.headers.get("X-Request-URL");var c="response"in i?i.response:i.responseText;setTimeout(function(){r(new Ut(c,s))},0)},i.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){n(new Or("Aborted","AbortError"))},0)};function a(s){try{return s===""&&De.location.href?De.location.href:s}catch{return s}}if(i.open(o.method,a(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Be.blob?i.responseType="blob":Be.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof xe||De.Headers&&t.headers instanceof De.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach(function(s){u.push(Un(s)),i.setRequestHeader(s,bs(t.headers[s]))}),o.headers.forEach(function(s,c){u.indexOf(c)===-1&&i.setRequestHeader(c,s)})}else o.headers.forEach(function(s,c){i.setRequestHeader(c,s)});o.signal&&(o.signal.addEventListener("abort",l),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",l)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}ly.polyfill=!0;De.fetch||(De.fetch=ly,De.Headers=xe,De.Request=Vr,De.Response=Ut);self.fetch.bind(self);var ay={};function ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bi(e,t,r){return sy()?Bi=Reflect.construct:Bi=function(o,i,l){var a=[null];a.push.apply(a,i);var u=Function.bind.apply(o,a),s=new u;return l&&Wo(s,l.prototype),s},Bi.apply(null,arguments)}function iS(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ml(e){var t=typeof Map=="function"?new Map:void 0;return ml=function(n){if(n===null||!iS(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Bi(n,arguments,Ho(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Wo(o,n)},ml(e)}function lS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lS(e)}function cy(e){var t=sy();return function(){var n=Ho(e),o;if(t){var i=Ho(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return aS(this,o)}}function Ft(e){return uS(e)||sS(e)||cS(e)||fS()}function uS(e){if(Array.isArray(e))return Du(e)}function sS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cS(e,t){if(e){if(typeof e=="string")return Du(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Du(e,t)}}function Du(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},o=!1,i=!1,l=!1;if(typeof n=="number"?(process,o=!0,i=!1):vr(n)==="object"&&n&&(i=n.global||!1,o=n.core||!1,l=n.defaultInstance||!1),i){e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,r);return}if(o){e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,r);return}if(l){this.defaultMiddlewares.push(r);return}this.middlewares.push(r)}},{key:"execute",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=dS([].concat(Ft(this.middlewares),Ft(this.defaultMiddlewares),Ft(e.globalMiddlewares),Ft(e.coreMiddlewares)));return n(r)}}]),e}();Ot.globalMiddlewares=[];Ot.defaultGlobalMiddlewaresLength=0;Ot.coreMiddlewares=[];Ot.defaultCoreMiddlewaresLength=0;var pS=function(){function e(t){ti(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return Ws(e,[{key:"extendOptions",value:function(r){this.maxCache=r.maxCache||0}},{key:"get",value:function(r){return this.cache.get(JSON.stringify(r))}},{key:"set",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=Ft(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var a=JSON.stringify(r);this.cache.set(a,n),i>0&&(this.timer[a]=setTimeout(function(){o.cache.delete(a),delete o.timer[a]},i))}},{key:"delete",value:function(r){var n=JSON.stringify(r);return delete this.timer[n],this.cache.delete(n)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),fy=function(e){uy(r,e);var t=cy(r);function r(n,o){var i,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return ti(this,r),i=t.call(this,n),i.name="RequestError",i.request=o,i.type=l,i}return r}(ml(Error)),uo=function(e){uy(r,e);var t=cy(r);function r(n,o,i,l){var a,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return ti(this,r),a=t.call(this,o||n.statusText),a.name="ResponseError",a.data=i,a.response=n,a.request=l,a.type=u,a}return r}(ml(Error));function hS(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=r,n.readAsText(e,"GBK")})}function rd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(e)}catch{if(t)throw new uo(r,"JSON.parse fail",e,n,"ParseError")}return e}function yS(e,t,r){return new Promise(function(n,o){setTimeout(function(){o(new fy(t||"timeout of ".concat(e,"ms exceeded"),r,"Timeout"))},e)})}function nd(e){return new Promise(function(t,r){e.cancelToken&&e.cancelToken.promise.then(function(n){r(n)})})}var mS=Object.prototype.toString;function dy(){var e;return typeof process<"u"&&mS.call(process)==="[object process]"&&(e="NODE"),typeof XMLHttpRequest<"u"&&(e="BROWSER"),e}function Lu(e){return vr(e)==="object"&&Object.prototype.toString.call(e)==="[object Array]"}function py(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function vS(e){return vr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function od(e){return e!==null&&vr(e)==="object"}function id(e,t){if(e)if(vr(e)!=="object"&&(e=[e]),Lu(e))for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=r.prefix,o=r.suffix;return n&&(t="".concat(n).concat(t)),o&&(t="".concat(t).concat(o)),{url:t,options:r}};function wS(e,t){var r=t.method,n=r===void 0?"get":r;return n.toLowerCase()==="get"}function SS(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=r.url,l=i===void 0?"":i,a=e.cache,u=e.responseInterceptors,s=o.timeout,c=s===void 0?0:s,p=o.timeoutMessage,f=o.__umiRequestCoreType__,E=f===void 0?"normal":f,g=o.useCache,S=g===void 0?!1:g,O=o.method,y=O===void 0?"get":O,d=o.params,h=o.ttl,x=o.validateCache,_=x===void 0?wS:x;if(E!=="normal")return process,t();var T=fetch;if(!T)throw new Error("Global fetch not exist!");var m=dy()==="BROWSER",N=_(l,o)&&S&&m;if(N){var A=a.get({url:l,params:d,method:y});if(A)return A=A.clone(),A.useCache=!0,e.res=A,t()}var D;return c>0?D=Promise.race([nd(o),T(l,o),yS(c,p,e.req)]):D=Promise.race([nd(o),T(l,o)]),u.forEach(function(V){D=D.then(function(G){var X=typeof G.clone=="function"?G.clone():G;return V(X,o)})}),D.then(function(V){if(N&&V.status===200){var G=V.clone();G.useCache=!0,a.set({url:l,params:d,method:y},G,h)}return e.res=V,t()})}function ES(e,t){var r;return t().then(function(){if(e){var n=e.res,o=n===void 0?{}:n,i=e.req,l=i===void 0?{}:i,a=l||{},u=a.options;u=u===void 0?{}:u;var s=u.responseType,c=s===void 0?"json":s,p=u.charset,f=p===void 0?"utf8":p;u.getResponse;var E=u.throwErrIfParseFail,g=E===void 0?!1:E,S=u.parseResponse,O=S===void 0?!0:S;if(O&&!(!o||!o.clone)){if(r=dy()==="BROWSER"?o.clone():o,r.useCache=o.useCache||!1,f==="gbk")try{return o.blob().then(hS).then(function(y){return rd(y,!1,r,l)})}catch(y){throw new uo(r,y.message,null,l,"ParseError")}else if(c==="json")return o.text().then(function(y){return rd(y,g,r,l)});try{return o[c]()}catch{throw new uo(r,"responseType not support",null,l,"ParseError")}}}}).then(function(n){if(e){e.res;var o=e.req,i=o===void 0?{}:o,l=i||{},a=l.options;a=a===void 0?{}:a;var u=a.getResponse,s=u===void 0?!1:u;if(r){if(r.status>=200&&r.status<300){if(s){e.res={data:n,response:r};return}e.res=n;return}throw new uo(r,"http error",n,i,"HttpError")}}}).catch(function(n){if(n instanceof fy||n instanceof uo)throw n;var o=e.req,i=e.res;throw n.request=n.request||o,n.response=n.response||i,n.type=n.type||n.name,n.data=n.data||void 0,n})}function xS(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=o.method,l=i===void 0?"get":i;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return t();var a=o.requestType,u=a===void 0?"json":a,s=o.data;if(s){var c=Object.prototype.toString.call(s);c==="[object Object]"||c==="[object Array]"?u==="json"?(o.headers=Qe({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},o.headers),o.body=JSON.stringify(s)):u==="form"&&(o.headers=Qe({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},o.headers),o.body=Iu(s)):(o.headers=Qe({Accept:"application/json"},o.headers),o.body=s)}return e.req.options=o,t()}function PS(e,t){var r,n;if(e)if(t)r=t(e);else if(py(e))r=e.toString();else if(Lu(e))n=[],id(e,function(i){i===null||typeof i>"u"?n.push(i):n.push(od(i)?JSON.stringify(i):i)}),r=Iu(n);else{n={},id(e,function(i,l){var a=i;i===null||typeof i>"u"?n[l]=i:vS(i)?a=i.toISOString():Lu(i)?a=i:od(i)&&(a=JSON.stringify(i)),n[l]=a});var o=Iu(n);r=o}return r}function _S(e,t){if(!e)return t();var r=e.req;r=r===void 0?{}:r;var n=r.options,o=n===void 0?{}:n,i=o.paramsSerializer,l=o.params,a=e.req;a=a===void 0?{}:a;var u=a.url,s=u===void 0?"":u;o.method=o.method?o.method.toUpperCase():"GET",o.credentials=o.credentials||"same-origin";var c=PS(l,i);if(e.req.originUrl=s,c){var p=s.indexOf("?")!==-1?"&":"?";e.req.url="".concat(s).concat(p).concat(c)}return e.req.options=o,t()}var yy=[xS,_S,ES],my=[SS];Ot.globalMiddlewares=yy;Ot.defaultGlobalMiddlewaresLength=yy.length;Ot.coreMiddlewares=my;Ot.defaultCoreMiddlewaresLength=my.length;var Po=function(){function e(t){ti(this,e),this.onion=new Ot([]),this.fetchIndex=0,this.mapCache=new pS(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return Ws(e,[{key:"use",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(r,n),this}},{key:"extendOptions",value:function(r){this.initOptions=hy(this.initOptions,r),this.mapCache.extendOptions(r)}},{key:"dealRequestInterceptors",value:function(r){var n=function(l,a){return l.then(function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r.req.url=u.url||r.req.url,r.req.options=u.options||r.req.options,a(r.req.url,r.req.options)})},o=[].concat(Ft(e.requestInterceptors),Ft(this.instanceRequestInterceptors));return o.reduce(n,Promise.resolve()).then(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r.req.url=i.url||r.req.url,r.req.options=i.options||r.req.options,Promise.resolve()})}},{key:"request",value:function(r,n){var o=this,i=this.onion,l={req:{url:r,options:Qe(Qe({},n),{},{url:r})},res:null,cache:this.mapCache,responseInterceptors:[].concat(Ft(e.responseInterceptors),Ft(this.instanceResponseInterceptors))};if(typeof r!="string")throw new Error("url MUST be a string");return new Promise(function(a,u){o.dealRequestInterceptors(l).then(function(){return i.execute(l)}).then(function(){a(l.res)}).catch(function(s){var c=l.req.options.errorHandler;if(c)try{var p=c(s);a(p)}catch(f){u(f)}else u(s)})})}}],[{key:"requestUse",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof r!="function")throw new TypeError("Interceptor must be function!");n.global?e.requestInterceptors.push(r):this.instanceRequestInterceptors.push(r)}},{key:"responseUse",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof r!="function")throw new TypeError("Interceptor must be function!");n.global?e.responseInterceptors.push(r):this.instanceResponseInterceptors.push(r)}}]),e}();Po.requestInterceptors=[gS];Po.responseInterceptors=[];function Ml(e){this.message=e}Ml.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Ml.prototype.__CANCEL__=!0;function vl(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;e(function(o){r.reason||(r.reason=new Ml(o),t(r.reason))})}vl.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};vl.source=function(){var t,r=new vl(function(o){t=o});return{token:r,cancel:t}};function kS(e){return!!(e&&e.__CANCEL__)}var vy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=new Po(t),n=function(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=hy(r.initOptions,a);return r.request(l,u)};n.use=r.use.bind(r),n.fetchIndex=r.fetchIndex,n.interceptors={request:{use:Po.requestUse.bind(r)},response:{use:Po.responseUse.bind(r)}};var o=["get","post","delete","put","patch","head","options","rpc"];return o.forEach(function(i){n[i]=function(l,a){return n(l,Qe(Qe({},a),{},{method:i}))}}),n.Cancel=Ml,n.CancelToken=vl,n.isCancel=kS,n.extendOptions=r.extendOptions.bind(r),n.middlewares={instance:r.onion.middlewares,defaultInstance:r.onion.defaultMiddlewares,global:Ot.globalMiddlewares,core:Ot.coreMiddlewares},n};vy({parseResponse:!1});var CS=vy({});const RS=()=>{const{title:e}=l0(),[t,r]=z.useState(""),n=async o=>{const l=`https://raw.githubusercontent.com/nathanlao/but-how-do-I/master/src/posts/${encodeURIComponent(o)}.html`;try{return await CS(l,{method:"get",responseType:"text"})}catch(a){console.error("Error fetching the HTML content:",a)}};return z.useEffect(()=>{(async()=>{const i=await n(e);r(i)})()},[e]),b.jsxs("div",{children:[b.jsxs("div",{className:"relative w-4/5 sm:w-4/5 md:w-4/5 lg:w-3/5 xl:w-1/2 mx-auto py-20",children:[b.jsx("div",{className:"font-mono text-post text-5xl text-center pb-10 px-2 leading-tight",children:e}),b.jsx("div",{className:"px-2",dangerouslySetInnerHTML:{__html:t}})]}),b.jsx(Fh,{to:"/",children:b.jsx("div",{className:` + fixed + bottom-5 + left-1/2 + -translate-x-1/2 + text-home + font-mono + border-2 + border-zinc-500 + rounded-lg + text-lg + py-2 + px-5 + transfrom + duration-500 + hover:bg-gray-900/70 + hover:shadow-xl + hover:scale-105 + hover-border-home + disable-select + `,children:"HOME"})})]})},OS=({children:e})=>{const[t,r]=z.useState(!1);return z.useEffect(()=>{r(!0)},[]),b.jsx("div",{className:`fade-in ${t?"visible":""}`,children:e})};v0([{path:"/",element:b.jsx(T0,{})},{path:"/post/:title",element:b.jsx(OS,{children:b.jsx(RS,{})})}]);const TS=()=>b.jsx("div",{children:"hello world from react"});Ca.createRoot(document.getElementById("root")).render(b.jsx(Jy.StrictMode,{children:b.jsx(TS,{})})); diff --git a/index.html b/index.html index 14419bb..a6ea395 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + BUT HOW DO I @@ -21,8 +21,8 @@ } })(window.location); - - + +