diff --git a/assets/index-b458be33.js b/assets/index-800296ee.js similarity index 94% rename from assets/index-b458be33.js rename to assets/index-800296ee.js index eb5b260..a66fc4f 100644 --- a/assets/index-b458be33.js +++ b/assets/index-800296ee.js @@ -73,6 +73,6 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dr=P;function n0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r0=typeof Object.is=="function"?Object.is:n0,o0=Dr.useState,i0=Dr.useEffect,l0=Dr.useLayoutEffect,a0=Dr.useDebugValue;function u0(e,t){var n=t(),r=o0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return l0(function(){o.value=n,o.getSnapshot=t,Ea(o)&&i({inst:o})},[e,n,t]),i0(function(){return Ea(o)&&i({inst:o}),e(function(){Ea(o)&&i({inst:o})})},[e]),a0(n),n}function Ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r0(e,n)}catch{return!0}}function s0(e,t){return t()}var c0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s0:u0;Sp.useSyncExternalStore=Dr.useSyncExternalStore!==void 0?Dr.useSyncExternalStore:c0;wp.exports=Sp;var f0=wp.exports;const yn=()=>{},mt=yn(),xa=Object,J=e=>e===mt,Xt=e=>typeof e=="function",Tn=(e,t)=>({...e,...t}),d0=e=>Xt(e.then),xi=new WeakMap;let h0=0;const $o=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(xa(e)===e&&!r&&n!=RegExp){if(o=xi.get(e),o)return o;if(o=++h0+"~",xi.set(e,o),n==Array){for(o="@",i=0;iFl&&typeof window.requestAnimationFrame!=Bs,Ep=(e,t)=>{const n=Kt.get(e);return[()=>!J(t)&&e.get(t)||ka,r=>{if(!J(t)){const o=e.get(t);t in ki||(ki[t]=o),n[5](t,Tn(o,r),o||ka)}},n[6],()=>!J(t)&&t in ki?ki[t]:!J(t)&&e.get(t)||ka]};let Fu=!0;const m0=()=>Fu,[Au,Iu]=Fl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[yn,yn],v0=()=>{const e=Mu&&document.visibilityState;return J(e)||e!=="hidden"},y0=e=>(Mu&&document.addEventListener("visibilitychange",e),Au("focus",e),()=>{Mu&&document.removeEventListener("visibilitychange",e),Iu("focus",e)}),g0=e=>{const t=()=>{Fu=!0,e()},n=()=>{Fu=!1};return Au("online",t),Au("offline",n),()=>{Iu("online",t),Iu("offline",n)}},w0={isOnline:m0,isVisible:v0},S0={initFocus:y0,initReconnect:g0},Tf=!Ko.useId,Wo=!Fl||"Deno"in window,E0=e=>p0()?window.requestAnimationFrame(e):setTimeout(e,1),Ra=Wo?P.useEffect:P.useLayoutEffect,Ca=typeof navigator<"u"&&navigator.connection,Nf=!Wo&&Ca&&(["slow-2g","2g"].includes(Ca.effectiveType)||Ca.saveData),Vs=e=>{if(Xt(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?$o(e):"",[e,t]};let x0=0;const zu=()=>++x0,xp=0,kp=1,Rp=2,k0=3;var no={__proto__:null,ERROR_REVALIDATE_EVENT:k0,FOCUS_EVENT:xp,MUTATE_EVENT:Rp,RECONNECT_EVENT:kp};async function Cp(...e){const[t,n,r,o]=e,i=Tn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let l=i.populateCache;const a=i.rollbackOnError;let u=i.optimisticData;const s=i.revalidate!==!1,c=w=>typeof a=="function"?a(w):a!==!1,h=i.throwOnError;if(Xt(n)){const w=n,v=[],g=t.keys();for(const _ of g)!/^\$(inf|sub)\$/.test(_)&&w(t.get(_)._k)&&v.push(_);return Promise.all(v.map(m))}return m(n);async function m(w){const[v]=Vs(w);if(!v)return;const[g,_]=Ep(t,v),[f,d,y,p]=Kt.get(t),k=f[v],D=()=>s&&(delete y[v],delete p[v],k&&k[0])?k[0](Rp).then(()=>g().data):g().data;if(e.length<3)return D();let R=r,N;const W=zu();d[v]=[W,0];const F=!J(u),ae=g(),X=ae.data,We=ae._c,we=J(We)?X:We;if(F&&(u=Xt(u)?u(we,X):u,_({data:u,_c:we})),Xt(R))try{R=R(we)}catch(Se){N=Se}if(R&&d0(R))if(R=await R.catch(Se=>{N=Se}),W!==d[v][0]){if(N)throw N;return R}else N&&F&&c(N)&&(l=!0,R=we,_({data:R,_c:mt}));l&&(N||(Xt(l)&&(R=l(R,we)),_({data:R,error:mt,_c:mt}))),d[v][1]=zu();const ct=await D();if(_({_c:mt}),N){if(h)throw N;return}return l?ct:R}}const Df=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},R0=(e,t)=>{if(!Kt.has(e)){const n=Tn(S0,t),r={},o=Cp.bind(mt,e);let i=yn;const l={},a=(c,h)=>{const m=l[c]||[];return l[c]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},u=(c,h,m)=>{e.set(c,h);const w=l[c];if(w)for(const v of w)v(h,m)},s=()=>{if(!Kt.has(e)&&(Kt.set(e,[r,{},{},{},o,u,a]),!Wo)){const c=n.initFocus(setTimeout.bind(mt,Df.bind(mt,r,xp))),h=n.initReconnect(setTimeout.bind(mt,Df.bind(mt,r,kp)));i=()=>{c&&c(),h&&h(),Kt.delete(e)}}};return s(),[e,o,s,i]}return[e,Kt.get(e)[4]]},C0=(e,t,n,r,o)=>{const i=n.errorRetryCount,l=o.retryCount,a=~~((Math.random()+.5)*(1<<(l<8?l:8)))*n.errorRetryInterval;!J(i)&&l>i||setTimeout(r,a,o)},_0=(e,t)=>$o(e)==$o(t),[_p,P0]=R0(new Map),T0=Tn({onLoadingSlow:yn,onSuccess:yn,onError:yn,onErrorRetry:C0,onDiscarded:yn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Nf?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Nf?5e3:3e3,compare:_0,isPaused:()=>!1,cache:_p,mutate:P0,fallback:{}},w0),N0=(e,t)=>{const n=Tn(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:l}=t;r&&i&&(n.use=r.concat(i)),o&&l&&(n.fallback=Tn(o,l))}return n},D0=P.createContext({}),Pp=Fl&&window.__SWR_DEVTOOLS_USE__,O0=Pp?window.__SWR_DEVTOOLS_USE__:[],L0=()=>{Pp&&(window.__SWR_DEVTOOLS_REACT__=Ko)},M0=e=>Xt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],F0=()=>Tn(T0,P.useContext(D0)),A0=e=>(t,n,r)=>e(t,n&&((...i)=>{const[l]=Vs(t),[,,,a]=Kt.get(_p),u=a[l];return J(u)?n(...i):(delete a[l],u)}),r),I0=O0.concat(A0),z0=e=>function(...n){const r=F0(),[o,i,l]=M0(n),a=N0(r,l);let u=e;const{use:s}=a,c=(s||[]).concat(I0);for(let h=c.length;h--;)u=c[h](u);return u(o,i||a.fetcher||null,a)},j0=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};L0();const Of=Ko.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),_a={dedupe:!0},U0=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:l,revalidateOnMount:a,revalidateIfStale:u,refreshInterval:s,refreshWhenHidden:c,refreshWhenOffline:h,keepPreviousData:m}=n,[w,v,g,_]=Kt.get(r),[f,d]=Vs(e),y=P.useRef(!1),p=P.useRef(!1),k=P.useRef(f),D=P.useRef(t),R=P.useRef(n),N=()=>R.current,W=()=>N().isVisible()&&N().isOnline(),[F,ae,X,We]=Ep(r,f),we=P.useRef({}).current,ct=J(l)?n.fallback[f]:l,Se=(ne,re)=>{for(const Ne in we){const oe=Ne;if(oe==="data"){if(!o(ne[oe],re[oe])&&(!J(ne[oe])||!o(Je,re[oe])))return!1}else if(re[oe]!==ne[oe])return!1}return!0},tt=P.useMemo(()=>{const ne=(()=>!f||!t?!1:J(a)?N().isPaused()||i?!1:J(u)?!0:u:a)(),re=ke=>{const De=Tn(ke);return delete De._k,ne?{isValidating:!0,isLoading:!0,...De}:De},Ne=F(),oe=We(),rt=re(Ne),Lt=Ne===oe?rt:re(oe);let me=rt;return[()=>{const ke=re(F());return Se(ke,me)?(me.data=ke.data,me.isLoading=ke.isLoading,me.isValidating=ke.isValidating,me.error=ke.error,me):(me=ke,ke)},()=>Lt]},[r,f]),O=f0.useSyncExternalStore(P.useCallback(ne=>X(f,(re,Ne)=>{Se(Ne,re)||ne()}),[r,f]),tt[0],tt[1]),I=!y.current,B=w[f]&&w[f].length>0,b=O.data,te=J(b)?ct:b,Et=O.error,q=P.useRef(te),Je=m?J(b)?q.current:b:te,nt=(()=>B&&!J(Et)?!1:I&&!J(a)?a:N().isPaused()?!1:i?J(te)?!1:u:J(te)||u)(),Vt=!!(f&&t&&I&&nt),Ot=J(O.isValidating)?Vt:O.isValidating,Vl=J(O.isLoading)?Vt:O.isLoading,Ln=P.useCallback(async ne=>{const re=D.current;if(!f||!re||p.current||N().isPaused())return!1;let Ne,oe,rt=!0;const Lt=ne||{},me=!g[f]||!Lt.dedupe,ke=()=>Tf?!p.current&&f===k.current&&y.current:f===k.current,De={isValidating:!1,isLoading:!1},Ur=()=>{ae(De)},Br=()=>{const Xe=g[f];Xe&&Xe[1]===oe&&delete g[f]},Vr={isValidating:!0};J(F().data)&&(Vr.isLoading=!0);try{if(me&&(ae(Vr),n.loadingTimeout&&J(F().data)&&setTimeout(()=>{rt&&ke()&&N().onLoadingSlow(f,n)},n.loadingTimeout),g[f]=[re(d),zu()]),[Ne,oe]=g[f],Ne=await Ne,me&&setTimeout(Br,n.dedupingInterval),!g[f]||g[f][1]!==oe)return me&&ke()&&N().onDiscarded(f),!1;De.error=mt;const Xe=v[f];if(!J(Xe)&&(oe<=Xe[0]||oe<=Xe[1]||Xe[1]===0))return Ur(),me&&ke()&&N().onDiscarded(f),!1;const ft=F().data;De.data=o(ft,Ne)?ft:Ne,me&&ke()&&N().onSuccess(Ne,f,n)}catch(Xe){Br();const ft=N(),{shouldRetryOnError:an}=ft;ft.isPaused()||(De.error=Xe,me&&ke()&&(ft.onError(Xe,f,ft),(an===!0||Xt(an)&&an(Xe))&&W()&&ft.onErrorRetry(Xe,f,ft,ei=>{const Mn=w[f];Mn&&Mn[0]&&Mn[0](no.ERROR_REVALIDATE_EVENT,ei)},{retryCount:(Lt.retryCount||0)+1,dedupe:!0})))}return rt=!1,Ur(),!0},[f,r]),jr=P.useCallback((...ne)=>Cp(r,k.current,...ne),[]);if(Ra(()=>{D.current=t,R.current=n,J(b)||(q.current=b)}),Ra(()=>{if(!f)return;const ne=Ln.bind(mt,_a);let re=0;const oe=j0(f,w,(rt,Lt={})=>{if(rt==no.FOCUS_EVENT){const me=Date.now();N().revalidateOnFocus&&me>re&&W()&&(re=me+N().focusThrottleInterval,ne())}else if(rt==no.RECONNECT_EVENT)N().revalidateOnReconnect&&W()&&ne();else{if(rt==no.MUTATE_EVENT)return Ln();if(rt==no.ERROR_REVALIDATE_EVENT)return Ln(Lt)}});return p.current=!1,k.current=f,y.current=!0,ae({_k:d}),nt&&(J(te)||Wo?ne():E0(ne)),()=>{p.current=!0,oe()}},[f]),Ra(()=>{let ne;function re(){const oe=Xt(s)?s(F().data):s;oe&&ne!==-1&&(ne=setTimeout(Ne,oe))}function Ne(){!F().error&&(c||N().isVisible())&&(h||N().isOnline())?Ln(_a).then(re):re()}return re(),()=>{ne&&(clearTimeout(ne),ne=-1)}},[s,c,h,f]),P.useDebugValue(Je),i&&J(te)&&f){if(!Tf&&Wo)throw new Error("Fallback data is required when using suspense in SSR.");D.current=t,R.current=n,p.current=!1;const ne=_[f];if(!J(ne)){const re=jr(ne);Of(re)}if(J(Et)){const re=Ln(_a);J(Je)||(re.status="fulfilled",re.value=!0),Of(re)}else throw Et}return{mutate:jr,get data(){return we.data=!0,Je},get error(){return we.error=!0,Et},get isValidating(){return we.isValidating=!0,Ot},get isLoading(){return we.isLoading=!0,Vl}}},$s=z0(U0),B0="/hackernews/assets/error-3e08e5e2.gif",Ws=()=>j.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[j.jsx("div",{style:{backgroundImage:`url(${B0})`,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"contain",minHeight:64,minWidth:64}}),j.jsx("p",{children:"Something goes wrong..."})]}),V0="/hackernews/assets/loading-b226942f.gif",dl=()=>j.jsx("div",{style:{backgroundImage:`url(${V0})`,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"contain",minHeight:64,minWidth:64}});function Tp(e,t){return function(){return e.apply(t,arguments)}}const{toString:$0}=Object.prototype,{getPrototypeOf:Hs}=Object,Al=(e=>t=>{const n=$0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>Al(t)===e),Il=e=>t=>typeof t===e,{isArray:zr}=Array,Ho=Il("undefined");function W0(e){return e!==null&&!Ho(e)&&e.constructor!==null&&!Ho(e.constructor)&>(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Np=Ut("ArrayBuffer");function H0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Np(e.buffer),t}const Q0=Il("string"),gt=Il("function"),Dp=Il("number"),zl=e=>e!==null&&typeof e=="object",K0=e=>e===!0||e===!1,Ii=e=>{if(Al(e)!=="object")return!1;const t=Hs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y0=Ut("Date"),J0=Ut("File"),X0=Ut("Blob"),b0=Ut("FileList"),q0=e=>zl(e)&>(e.pipe),G0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gt(e.append)&&((t=Al(e))==="formdata"||t==="object"&>(e.toString)&&e.toString()==="[object FormData]"))},Z0=Ut("URLSearchParams"),e1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),zr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Lp=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Mp=e=>!Ho(e)&&e!==Lp;function ju(){const{caseless:e}=Mp(this)&&this||{},t={},n=(r,o)=>{const i=e&&Op(t,o)||o;Ii(t[i])&&Ii(r)?t[i]=ju(t[i],r):Ii(r)?t[i]=ju({},r):zr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Go(t,(o,i)=>{n&>(o)?e[i]=Tp(o,n):e[i]=o},{allOwnKeys:r}),e),n1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},o1=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Hs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},l1=e=>{if(!e)return null;if(zr(e))return e;let t=e.length;if(!Dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},a1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hs(Uint8Array)),u1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},s1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},c1=Ut("HTMLFormElement"),f1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),d1=Ut("RegExp"),Fp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Go(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},h1=e=>{Fp(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},p1=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return zr(e)?r(e):r(String(e).split(t)),n},m1=()=>{},v1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pa="abcdefghijklmnopqrstuvwxyz",Mf="0123456789",Ap={DIGIT:Mf,ALPHA:Pa,ALPHA_DIGIT:Pa+Pa.toUpperCase()+Mf},y1=(e=16,t=Ap.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function g1(e){return!!(e&>(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const w1=e=>{const t=new Array(10),n=(r,o)=>{if(zl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=zr(r)?[]:{};return Go(r,(l,a)=>{const u=n(l,o+1);!Ho(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},S1=Ut("AsyncFunction"),E1=e=>e&&(zl(e)||gt(e))&>(e.then)&>(e.catch),x={isArray:zr,isArrayBuffer:Np,isBuffer:W0,isFormData:G0,isArrayBufferView:H0,isString:Q0,isNumber:Dp,isBoolean:K0,isObject:zl,isPlainObject:Ii,isUndefined:Ho,isDate:Y0,isFile:J0,isBlob:X0,isRegExp:d1,isFunction:gt,isStream:q0,isURLSearchParams:Z0,isTypedArray:a1,isFileList:b0,forEach:Go,merge:ju,extend:t1,trim:e1,stripBOM:n1,inherits:r1,toFlatObject:o1,kindOf:Al,kindOfTest:Ut,endsWith:i1,toArray:l1,forEachEntry:u1,matchAll:s1,isHTMLForm:c1,hasOwnProperty:Lf,hasOwnProp:Lf,reduceDescriptors:Fp,freezeMethods:h1,toObjectSet:p1,toCamelCase:f1,noop:m1,toFiniteNumber:v1,findKey:Op,global:Lp,isContextDefined:Mp,ALPHABET:Ap,generateString:y1,isSpecCompliantForm:g1,toJSONObject:w1,isAsyncFn:S1,isThenable:E1};function K(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ip=K.prototype,zp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zp[e]={value:e}});Object.defineProperties(K,zp);Object.defineProperty(Ip,"isAxiosError",{value:!0});K.from=(e,t,n,r,o,i)=>{const l=Object.create(Ip);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),K.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const x1=null;function Uu(e){return x.isPlainObject(e)||x.isArray(e)}function jp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ff(e,t,n){return e?e.concat(t).map(function(o,i){return o=jp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function k1(e){return x.isArray(e)&&!e.some(Uu)}const R1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function jl(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!x.isUndefined(_[g])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function s(v){if(v===null)return"";if(x.isDate(v))return v.toISOString();if(!u&&x.isBlob(v))throw new K("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(v)||x.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,_){let f=v;if(v&&!_&&typeof v=="object"){if(x.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(x.isArray(v)&&k1(v)||(x.isFileList(v)||x.endsWith(g,"[]"))&&(f=x.toArray(v)))return g=jp(g),f.forEach(function(y,p){!(x.isUndefined(y)||y===null)&&t.append(l===!0?Ff([g],p,i):l===null?g:g+"[]",s(y))}),!1}return Uu(v)?!0:(t.append(Ff(_,g,i),s(v)),!1)}const h=[],m=Object.assign(R1,{defaultVisitor:c,convertValue:s,isVisitable:Uu});function w(v,g){if(!x.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(v),x.forEach(v,function(f,d){(!(x.isUndefined(f)||f===null)&&o.call(t,f,x.isString(d)?d.trim():d,g,m))===!0&&w(f,g?g.concat(d):[d])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qs(e,t){this._pairs=[],e&&jl(e,this,t)}const Up=Qs.prototype;Up.append=function(t,n){this._pairs.push([t,n])};Up.toString=function(t){const n=t?function(r){return t.call(this,r,Af)}:Af;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function C1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bp(e,t,n){if(!t)return e;const r=n&&n.encode||C1,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Qs(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const If=_1,Vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P1=typeof URLSearchParams<"u"?URLSearchParams:Qs,T1=typeof FormData<"u"?FormData:null,N1=typeof Blob<"u"?Blob:null,D1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),It={isBrowser:!0,classes:{URLSearchParams:P1,FormData:T1,Blob:N1},isStandardBrowserEnv:D1,isStandardBrowserWebWorkerEnv:O1,protocols:["http","https","file","blob","url","data"]};function L1(e,t){return jl(e,new It.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return It.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function M1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function F1(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=F1(o[l])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(M1(r),o,n,0)}),n}return null}const A1={"Content-Type":void 0};function I1(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:Vp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o&&o?JSON.stringify($p(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L1(t,this.formSerializer).toString();if((a=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jl(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),I1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};x.forEach(["delete","get","head"],function(t){Ul.headers[t]={}});x.forEach(["post","put","patch"],function(t){Ul.headers[t]=x.merge(A1)});const Ks=Ul,z1=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),j1=e=>{const t={};let n,r,o;return e&&e.split(` + */var Dr=P;function n0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r0=typeof Object.is=="function"?Object.is:n0,o0=Dr.useState,i0=Dr.useEffect,l0=Dr.useLayoutEffect,a0=Dr.useDebugValue;function u0(e,t){var n=t(),r=o0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return l0(function(){o.value=n,o.getSnapshot=t,Ea(o)&&i({inst:o})},[e,n,t]),i0(function(){return Ea(o)&&i({inst:o}),e(function(){Ea(o)&&i({inst:o})})},[e]),a0(n),n}function Ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r0(e,n)}catch{return!0}}function s0(e,t){return t()}var c0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s0:u0;Sp.useSyncExternalStore=Dr.useSyncExternalStore!==void 0?Dr.useSyncExternalStore:c0;wp.exports=Sp;var f0=wp.exports;const yn=()=>{},mt=yn(),xa=Object,J=e=>e===mt,Xt=e=>typeof e=="function",Tn=(e,t)=>({...e,...t}),d0=e=>Xt(e.then),xi=new WeakMap;let h0=0;const $o=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(xa(e)===e&&!r&&n!=RegExp){if(o=xi.get(e),o)return o;if(o=++h0+"~",xi.set(e,o),n==Array){for(o="@",i=0;iFl&&typeof window.requestAnimationFrame!=Bs,Ep=(e,t)=>{const n=Kt.get(e);return[()=>!J(t)&&e.get(t)||ka,r=>{if(!J(t)){const o=e.get(t);t in ki||(ki[t]=o),n[5](t,Tn(o,r),o||ka)}},n[6],()=>!J(t)&&t in ki?ki[t]:!J(t)&&e.get(t)||ka]};let Fu=!0;const m0=()=>Fu,[Au,Iu]=Fl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[yn,yn],v0=()=>{const e=Mu&&document.visibilityState;return J(e)||e!=="hidden"},y0=e=>(Mu&&document.addEventListener("visibilitychange",e),Au("focus",e),()=>{Mu&&document.removeEventListener("visibilitychange",e),Iu("focus",e)}),g0=e=>{const t=()=>{Fu=!0,e()},n=()=>{Fu=!1};return Au("online",t),Au("offline",n),()=>{Iu("online",t),Iu("offline",n)}},w0={isOnline:m0,isVisible:v0},S0={initFocus:y0,initReconnect:g0},Tf=!Ko.useId,Wo=!Fl||"Deno"in window,E0=e=>p0()?window.requestAnimationFrame(e):setTimeout(e,1),Ra=Wo?P.useEffect:P.useLayoutEffect,Ca=typeof navigator<"u"&&navigator.connection,Nf=!Wo&&Ca&&(["slow-2g","2g"].includes(Ca.effectiveType)||Ca.saveData),Vs=e=>{if(Xt(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?$o(e):"",[e,t]};let x0=0;const zu=()=>++x0,xp=0,kp=1,Rp=2,k0=3;var no={__proto__:null,ERROR_REVALIDATE_EVENT:k0,FOCUS_EVENT:xp,MUTATE_EVENT:Rp,RECONNECT_EVENT:kp};async function Cp(...e){const[t,n,r,o]=e,i=Tn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let l=i.populateCache;const a=i.rollbackOnError;let u=i.optimisticData;const s=i.revalidate!==!1,c=w=>typeof a=="function"?a(w):a!==!1,h=i.throwOnError;if(Xt(n)){const w=n,v=[],g=t.keys();for(const _ of g)!/^\$(inf|sub)\$/.test(_)&&w(t.get(_)._k)&&v.push(_);return Promise.all(v.map(m))}return m(n);async function m(w){const[v]=Vs(w);if(!v)return;const[g,_]=Ep(t,v),[f,d,y,p]=Kt.get(t),k=f[v],D=()=>s&&(delete y[v],delete p[v],k&&k[0])?k[0](Rp).then(()=>g().data):g().data;if(e.length<3)return D();let R=r,N;const W=zu();d[v]=[W,0];const F=!J(u),ae=g(),X=ae.data,We=ae._c,we=J(We)?X:We;if(F&&(u=Xt(u)?u(we,X):u,_({data:u,_c:we})),Xt(R))try{R=R(we)}catch(Se){N=Se}if(R&&d0(R))if(R=await R.catch(Se=>{N=Se}),W!==d[v][0]){if(N)throw N;return R}else N&&F&&c(N)&&(l=!0,R=we,_({data:R,_c:mt}));l&&(N||(Xt(l)&&(R=l(R,we)),_({data:R,error:mt,_c:mt}))),d[v][1]=zu();const ct=await D();if(_({_c:mt}),N){if(h)throw N;return}return l?ct:R}}const Df=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},R0=(e,t)=>{if(!Kt.has(e)){const n=Tn(S0,t),r={},o=Cp.bind(mt,e);let i=yn;const l={},a=(c,h)=>{const m=l[c]||[];return l[c]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},u=(c,h,m)=>{e.set(c,h);const w=l[c];if(w)for(const v of w)v(h,m)},s=()=>{if(!Kt.has(e)&&(Kt.set(e,[r,{},{},{},o,u,a]),!Wo)){const c=n.initFocus(setTimeout.bind(mt,Df.bind(mt,r,xp))),h=n.initReconnect(setTimeout.bind(mt,Df.bind(mt,r,kp)));i=()=>{c&&c(),h&&h(),Kt.delete(e)}}};return s(),[e,o,s,i]}return[e,Kt.get(e)[4]]},C0=(e,t,n,r,o)=>{const i=n.errorRetryCount,l=o.retryCount,a=~~((Math.random()+.5)*(1<<(l<8?l:8)))*n.errorRetryInterval;!J(i)&&l>i||setTimeout(r,a,o)},_0=(e,t)=>$o(e)==$o(t),[_p,P0]=R0(new Map),T0=Tn({onLoadingSlow:yn,onSuccess:yn,onError:yn,onErrorRetry:C0,onDiscarded:yn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Nf?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Nf?5e3:3e3,compare:_0,isPaused:()=>!1,cache:_p,mutate:P0,fallback:{}},w0),N0=(e,t)=>{const n=Tn(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:l}=t;r&&i&&(n.use=r.concat(i)),o&&l&&(n.fallback=Tn(o,l))}return n},D0=P.createContext({}),Pp=Fl&&window.__SWR_DEVTOOLS_USE__,O0=Pp?window.__SWR_DEVTOOLS_USE__:[],L0=()=>{Pp&&(window.__SWR_DEVTOOLS_REACT__=Ko)},M0=e=>Xt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],F0=()=>Tn(T0,P.useContext(D0)),A0=e=>(t,n,r)=>e(t,n&&((...i)=>{const[l]=Vs(t),[,,,a]=Kt.get(_p),u=a[l];return J(u)?n(...i):(delete a[l],u)}),r),I0=O0.concat(A0),z0=e=>function(...n){const r=F0(),[o,i,l]=M0(n),a=N0(r,l);let u=e;const{use:s}=a,c=(s||[]).concat(I0);for(let h=c.length;h--;)u=c[h](u);return u(o,i||a.fetcher||null,a)},j0=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};L0();const Of=Ko.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),_a={dedupe:!0},U0=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:l,revalidateOnMount:a,revalidateIfStale:u,refreshInterval:s,refreshWhenHidden:c,refreshWhenOffline:h,keepPreviousData:m}=n,[w,v,g,_]=Kt.get(r),[f,d]=Vs(e),y=P.useRef(!1),p=P.useRef(!1),k=P.useRef(f),D=P.useRef(t),R=P.useRef(n),N=()=>R.current,W=()=>N().isVisible()&&N().isOnline(),[F,ae,X,We]=Ep(r,f),we=P.useRef({}).current,ct=J(l)?n.fallback[f]:l,Se=(ne,re)=>{for(const Ne in we){const oe=Ne;if(oe==="data"){if(!o(ne[oe],re[oe])&&(!J(ne[oe])||!o(Je,re[oe])))return!1}else if(re[oe]!==ne[oe])return!1}return!0},tt=P.useMemo(()=>{const ne=(()=>!f||!t?!1:J(a)?N().isPaused()||i?!1:J(u)?!0:u:a)(),re=ke=>{const De=Tn(ke);return delete De._k,ne?{isValidating:!0,isLoading:!0,...De}:De},Ne=F(),oe=We(),rt=re(Ne),Lt=Ne===oe?rt:re(oe);let me=rt;return[()=>{const ke=re(F());return Se(ke,me)?(me.data=ke.data,me.isLoading=ke.isLoading,me.isValidating=ke.isValidating,me.error=ke.error,me):(me=ke,ke)},()=>Lt]},[r,f]),O=f0.useSyncExternalStore(P.useCallback(ne=>X(f,(re,Ne)=>{Se(Ne,re)||ne()}),[r,f]),tt[0],tt[1]),I=!y.current,B=w[f]&&w[f].length>0,b=O.data,te=J(b)?ct:b,Et=O.error,q=P.useRef(te),Je=m?J(b)?q.current:b:te,nt=(()=>B&&!J(Et)?!1:I&&!J(a)?a:N().isPaused()?!1:i?J(te)?!1:u:J(te)||u)(),Vt=!!(f&&t&&I&&nt),Ot=J(O.isValidating)?Vt:O.isValidating,Vl=J(O.isLoading)?Vt:O.isLoading,Ln=P.useCallback(async ne=>{const re=D.current;if(!f||!re||p.current||N().isPaused())return!1;let Ne,oe,rt=!0;const Lt=ne||{},me=!g[f]||!Lt.dedupe,ke=()=>Tf?!p.current&&f===k.current&&y.current:f===k.current,De={isValidating:!1,isLoading:!1},Ur=()=>{ae(De)},Br=()=>{const Xe=g[f];Xe&&Xe[1]===oe&&delete g[f]},Vr={isValidating:!0};J(F().data)&&(Vr.isLoading=!0);try{if(me&&(ae(Vr),n.loadingTimeout&&J(F().data)&&setTimeout(()=>{rt&&ke()&&N().onLoadingSlow(f,n)},n.loadingTimeout),g[f]=[re(d),zu()]),[Ne,oe]=g[f],Ne=await Ne,me&&setTimeout(Br,n.dedupingInterval),!g[f]||g[f][1]!==oe)return me&&ke()&&N().onDiscarded(f),!1;De.error=mt;const Xe=v[f];if(!J(Xe)&&(oe<=Xe[0]||oe<=Xe[1]||Xe[1]===0))return Ur(),me&&ke()&&N().onDiscarded(f),!1;const ft=F().data;De.data=o(ft,Ne)?ft:Ne,me&&ke()&&N().onSuccess(Ne,f,n)}catch(Xe){Br();const ft=N(),{shouldRetryOnError:an}=ft;ft.isPaused()||(De.error=Xe,me&&ke()&&(ft.onError(Xe,f,ft),(an===!0||Xt(an)&&an(Xe))&&W()&&ft.onErrorRetry(Xe,f,ft,ei=>{const Mn=w[f];Mn&&Mn[0]&&Mn[0](no.ERROR_REVALIDATE_EVENT,ei)},{retryCount:(Lt.retryCount||0)+1,dedupe:!0})))}return rt=!1,Ur(),!0},[f,r]),jr=P.useCallback((...ne)=>Cp(r,k.current,...ne),[]);if(Ra(()=>{D.current=t,R.current=n,J(b)||(q.current=b)}),Ra(()=>{if(!f)return;const ne=Ln.bind(mt,_a);let re=0;const oe=j0(f,w,(rt,Lt={})=>{if(rt==no.FOCUS_EVENT){const me=Date.now();N().revalidateOnFocus&&me>re&&W()&&(re=me+N().focusThrottleInterval,ne())}else if(rt==no.RECONNECT_EVENT)N().revalidateOnReconnect&&W()&&ne();else{if(rt==no.MUTATE_EVENT)return Ln();if(rt==no.ERROR_REVALIDATE_EVENT)return Ln(Lt)}});return p.current=!1,k.current=f,y.current=!0,ae({_k:d}),nt&&(J(te)||Wo?ne():E0(ne)),()=>{p.current=!0,oe()}},[f]),Ra(()=>{let ne;function re(){const oe=Xt(s)?s(F().data):s;oe&&ne!==-1&&(ne=setTimeout(Ne,oe))}function Ne(){!F().error&&(c||N().isVisible())&&(h||N().isOnline())?Ln(_a).then(re):re()}return re(),()=>{ne&&(clearTimeout(ne),ne=-1)}},[s,c,h,f]),P.useDebugValue(Je),i&&J(te)&&f){if(!Tf&&Wo)throw new Error("Fallback data is required when using suspense in SSR.");D.current=t,R.current=n,p.current=!1;const ne=_[f];if(!J(ne)){const re=jr(ne);Of(re)}if(J(Et)){const re=Ln(_a);J(Je)||(re.status="fulfilled",re.value=!0),Of(re)}else throw Et}return{mutate:jr,get data(){return we.data=!0,Je},get error(){return we.error=!0,Et},get isValidating(){return we.isValidating=!0,Ot},get isLoading(){return we.isLoading=!0,Vl}}},$s=z0(U0),B0="/assets/error-3e08e5e2.gif",Ws=()=>j.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[j.jsx("div",{style:{backgroundImage:`url(${B0})`,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"contain",minHeight:64,minWidth:64}}),j.jsx("p",{children:"Something goes wrong..."})]}),V0="/assets/loading-b226942f.gif",dl=()=>j.jsx("div",{style:{backgroundImage:`url(${V0})`,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"contain",minHeight:64,minWidth:64}});function Tp(e,t){return function(){return e.apply(t,arguments)}}const{toString:$0}=Object.prototype,{getPrototypeOf:Hs}=Object,Al=(e=>t=>{const n=$0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>Al(t)===e),Il=e=>t=>typeof t===e,{isArray:zr}=Array,Ho=Il("undefined");function W0(e){return e!==null&&!Ho(e)&&e.constructor!==null&&!Ho(e.constructor)&>(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Np=Ut("ArrayBuffer");function H0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Np(e.buffer),t}const Q0=Il("string"),gt=Il("function"),Dp=Il("number"),zl=e=>e!==null&&typeof e=="object",K0=e=>e===!0||e===!1,Ii=e=>{if(Al(e)!=="object")return!1;const t=Hs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y0=Ut("Date"),J0=Ut("File"),X0=Ut("Blob"),b0=Ut("FileList"),q0=e=>zl(e)&>(e.pipe),G0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gt(e.append)&&((t=Al(e))==="formdata"||t==="object"&>(e.toString)&&e.toString()==="[object FormData]"))},Z0=Ut("URLSearchParams"),e1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),zr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Lp=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Mp=e=>!Ho(e)&&e!==Lp;function ju(){const{caseless:e}=Mp(this)&&this||{},t={},n=(r,o)=>{const i=e&&Op(t,o)||o;Ii(t[i])&&Ii(r)?t[i]=ju(t[i],r):Ii(r)?t[i]=ju({},r):zr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Go(t,(o,i)=>{n&>(o)?e[i]=Tp(o,n):e[i]=o},{allOwnKeys:r}),e),n1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},o1=(e,t,n,r)=>{let o,i,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Hs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},l1=e=>{if(!e)return null;if(zr(e))return e;let t=e.length;if(!Dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},a1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hs(Uint8Array)),u1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},s1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},c1=Ut("HTMLFormElement"),f1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),d1=Ut("RegExp"),Fp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Go(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},h1=e=>{Fp(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},p1=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return zr(e)?r(e):r(String(e).split(t)),n},m1=()=>{},v1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pa="abcdefghijklmnopqrstuvwxyz",Mf="0123456789",Ap={DIGIT:Mf,ALPHA:Pa,ALPHA_DIGIT:Pa+Pa.toUpperCase()+Mf},y1=(e=16,t=Ap.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function g1(e){return!!(e&>(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const w1=e=>{const t=new Array(10),n=(r,o)=>{if(zl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=zr(r)?[]:{};return Go(r,(l,a)=>{const u=n(l,o+1);!Ho(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},S1=Ut("AsyncFunction"),E1=e=>e&&(zl(e)||gt(e))&>(e.then)&>(e.catch),x={isArray:zr,isArrayBuffer:Np,isBuffer:W0,isFormData:G0,isArrayBufferView:H0,isString:Q0,isNumber:Dp,isBoolean:K0,isObject:zl,isPlainObject:Ii,isUndefined:Ho,isDate:Y0,isFile:J0,isBlob:X0,isRegExp:d1,isFunction:gt,isStream:q0,isURLSearchParams:Z0,isTypedArray:a1,isFileList:b0,forEach:Go,merge:ju,extend:t1,trim:e1,stripBOM:n1,inherits:r1,toFlatObject:o1,kindOf:Al,kindOfTest:Ut,endsWith:i1,toArray:l1,forEachEntry:u1,matchAll:s1,isHTMLForm:c1,hasOwnProperty:Lf,hasOwnProp:Lf,reduceDescriptors:Fp,freezeMethods:h1,toObjectSet:p1,toCamelCase:f1,noop:m1,toFiniteNumber:v1,findKey:Op,global:Lp,isContextDefined:Mp,ALPHABET:Ap,generateString:y1,isSpecCompliantForm:g1,toJSONObject:w1,isAsyncFn:S1,isThenable:E1};function K(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ip=K.prototype,zp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zp[e]={value:e}});Object.defineProperties(K,zp);Object.defineProperty(Ip,"isAxiosError",{value:!0});K.from=(e,t,n,r,o,i)=>{const l=Object.create(Ip);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),K.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const x1=null;function Uu(e){return x.isPlainObject(e)||x.isArray(e)}function jp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ff(e,t,n){return e?e.concat(t).map(function(o,i){return o=jp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function k1(e){return x.isArray(e)&&!e.some(Uu)}const R1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function jl(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!x.isUndefined(_[g])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function s(v){if(v===null)return"";if(x.isDate(v))return v.toISOString();if(!u&&x.isBlob(v))throw new K("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(v)||x.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,_){let f=v;if(v&&!_&&typeof v=="object"){if(x.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(x.isArray(v)&&k1(v)||(x.isFileList(v)||x.endsWith(g,"[]"))&&(f=x.toArray(v)))return g=jp(g),f.forEach(function(y,p){!(x.isUndefined(y)||y===null)&&t.append(l===!0?Ff([g],p,i):l===null?g:g+"[]",s(y))}),!1}return Uu(v)?!0:(t.append(Ff(_,g,i),s(v)),!1)}const h=[],m=Object.assign(R1,{defaultVisitor:c,convertValue:s,isVisitable:Uu});function w(v,g){if(!x.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(v),x.forEach(v,function(f,d){(!(x.isUndefined(f)||f===null)&&o.call(t,f,x.isString(d)?d.trim():d,g,m))===!0&&w(f,g?g.concat(d):[d])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qs(e,t){this._pairs=[],e&&jl(e,this,t)}const Up=Qs.prototype;Up.append=function(t,n){this._pairs.push([t,n])};Up.toString=function(t){const n=t?function(r){return t.call(this,r,Af)}:Af;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function C1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bp(e,t,n){if(!t)return e;const r=n&&n.encode||C1,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Qs(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _1{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const If=_1,Vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P1=typeof URLSearchParams<"u"?URLSearchParams:Qs,T1=typeof FormData<"u"?FormData:null,N1=typeof Blob<"u"?Blob:null,D1=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),It={isBrowser:!0,classes:{URLSearchParams:P1,FormData:T1,Blob:N1},isStandardBrowserEnv:D1,isStandardBrowserWebWorkerEnv:O1,protocols:["http","https","file","blob","url","data"]};function L1(e,t){return jl(e,new It.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return It.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function M1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function F1(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=F1(o[l])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(M1(r),o,n,0)}),n}return null}const A1={"Content-Type":void 0};function I1(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:Vp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o&&o?JSON.stringify($p(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return L1(t,this.formSerializer).toString();if((a=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jl(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),I1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};x.forEach(["delete","get","head"],function(t){Ul.headers[t]={}});x.forEach(["post","put","patch"],function(t){Ul.headers[t]=x.merge(A1)});const Ks=Ul,z1=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),j1=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&z1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zf=Symbol("internals");function ro(e){return e&&String(e).trim().toLowerCase()}function zi(e){return e===!1||e==null?e:x.isArray(e)?e.map(zi):String(e)}function U1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const B1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ta(e,t,n,r,o){if(x.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function V1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $1(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class Bl{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,u,s){const c=ro(u);if(!c)throw new Error("header name must be a non-empty string");const h=x.findKey(o,c);(!h||o[h]===void 0||s===!0||s===void 0&&o[h]!==!1)&&(o[h||u]=zi(a))}const l=(a,u)=>x.forEach(a,(s,c)=>i(s,c,u));return x.isPlainObject(t)||t instanceof this.constructor?l(t,n):x.isString(t)&&(t=t.trim())&&!B1(t)?l(j1(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ro(t),t){const r=x.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return U1(o);if(x.isFunction(n))return n.call(this,o,r);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ro(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ta(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=ro(l),l){const a=x.findKey(r,l);a&&(!n||Ta(r,r[a],a,n))&&(delete r[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ta(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return x.forEach(this,(o,i)=>{const l=x.findKey(r,i);if(l){n[l]=zi(o),delete n[i];return}const a=t?V1(i):String(i).trim();a!==i&&delete n[i],n[a]=zi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zf]=this[zf]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=ro(l);r[a]||($1(o,l),r[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}Bl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.freezeMethods(Bl.prototype);x.freezeMethods(Bl);const Gt=Bl;function Na(e,t){const n=this||Ks,r=t||n,o=Gt.from(r.headers);let i=r.data;return x.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Wp(e){return!!(e&&e.__CANCEL__)}function Zo(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Zo,K,{__CANCEL__:!0});function W1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const H1=It.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,a){const u=[];u.push(n+"="+encodeURIComponent(r)),x.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),x.isString(i)&&u.push("path="+i),x.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Q1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Hp(e,t){return e&&!Q1(t)?K1(e,t):t}const Y1=It.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=x.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function J1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[i];l||(l=s),n[o]=u,r[o]=s;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),s-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),s=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&s?(l-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const b1=typeof XMLHttpRequest<"u",q1=b1&&function(e){return new Promise(function(n,r){let o=e.data;const i=Gt.from(e.headers).normalize(),l=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}x.isFormData(o)&&(It.isStandardBrowserEnv||It.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let s=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(w+":"+v))}const c=Hp(e.baseURL,e.url);s.open(e.method.toUpperCase(),Bp(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function h(){if(!s)return;const w=Gt.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:w,config:e,request:s};W1(function(f){n(f),u()},function(f){r(f),u()},g),s=null}if("onloadend"in s?s.onloadend=h:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(h)},s.onabort=function(){s&&(r(new K("Request aborted",K.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Vp;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new K(v,g.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,s)),s=null},It.isStandardBrowserEnv){const w=(e.withCredentials||Y1(c))&&e.xsrfCookieName&&H1.read(e.xsrfCookieName);w&&i.set(e.xsrfHeaderName,w)}o===void 0&&i.setContentType(null),"setRequestHeader"in s&&x.forEach(i.toJSON(),function(v,g){s.setRequestHeader(g,v)}),x.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),l&&l!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",jf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",jf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=w=>{s&&(r(!w||w.type?new Zo(null,e,s):w),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=J1(c);if(m&&It.protocols.indexOf(m)===-1){r(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));return}s.send(o||null)})},ji={http:x1,xhr:q1};x.forEach(ji,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const G1={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Gt?e.toJSON():e;function Or(e,t){t=t||{};const n={};function r(s,c,h){return x.isPlainObject(s)&&x.isPlainObject(c)?x.merge.call({caseless:h},s,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function o(s,c,h){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s,h)}else return r(s,c,h)}function i(s,c){if(!x.isUndefined(c))return r(void 0,c)}function l(s,c){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function a(s,c,h){if(h in t)return r(s,c);if(h in e)return r(void 0,s)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(s,c)=>o(Bf(s),Bf(c),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const h=u[c]||o,m=h(e[c],t[c],c);x.isUndefined(m)&&h!==a||(n[c]=m)}),n}const Qp="1.4.0",Ys={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ys[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Vf={};Ys.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Qp+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new K(o(l," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Vf[l]&&(Vf[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function Z1(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],u=a===void 0||l(a,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Bu={assertOptions:Z1,validators:Ys},cn=Bu.validators;class hl{constructor(t){this.defaults=t,this.interceptors={request:new If,response:new If}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Or(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Bu.assertOptions(r,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Bu.assertOptions(o,{encode:cn.function,serialize:cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&x.merge(i.common,i[n.method]),l&&x.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Gt.concat(l,i);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});let c,h=0,m;if(!u){const v=[Uf.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,s),m=v.length,c=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new Zo(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Js(function(o){t=o}),cancel:t}}}const ew=Js;function tw(e){return function(n){return e.apply(null,n)}}function nw(e){return x.isObject(e)&&e.isAxiosError===!0}const Vu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vu).forEach(([e,t])=>{Vu[t]=e});const rw=Vu;function Kp(e){const t=new Ui(e),n=Tp(Ui.prototype.request,t);return x.extend(n,Ui.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Kp(Or(e,o))},n}const Te=Kp(Ks);Te.Axios=Ui;Te.CanceledError=Zo;Te.CancelToken=ew;Te.isCancel=Wp;Te.VERSION=Qp;Te.toFormData=jl;Te.AxiosError=K;Te.Cancel=Te.CanceledError;Te.all=function(t){return Promise.all(t)};Te.spread=tw;Te.isAxiosError=nw;Te.mergeConfig=Or;Te.AxiosHeaders=Gt;Te.formToJSON=e=>$p(x.isHTMLForm(e)?new FormData(e):e);Te.HttpStatusCode=rw;Te.default=Te;const ow=Te;function Xs(e){return ow.get(e).then(t=>t.data)}const iw="_newsList_1tofd_1",lw="_meta_1tofd_10",aw="_more_1tofd_10",uw="_loadMore_1tofd_26",sw="_newsItem_1tofd_31",Eo={newsList:iw,meta:lw,more:aw,loadMore:uw,newsItem:sw};function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function Bt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ve(e){Bt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||$u(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var cw={};function fw(){return cw}function $f(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Bi(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function dw(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function hw(e,t){return Bt(2,arguments),Ve(e).getTime()-Ve(t).getTime()}var Wf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},pw="trunc";function mw(e){return e?Wf[e]:Wf[pw]}function vw(e){Bt(1,arguments);var t=Ve(e);return t.setHours(23,59,59,999),t}function yw(e){Bt(1,arguments);var t=Ve(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function gw(e){Bt(1,arguments);var t=Ve(e);return vw(t).getTime()===yw(t).getTime()}function ww(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=Bi(n,r),i=Math.abs(dw(n,r)),l;if(i<1)l=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*i);var a=Bi(n,r)===-o;gw(Ve(e))&&i===1&&Bi(e,r)===1&&(a=!1),l=o*(i-Number(a))}return l===0?0:l}function Sw(e,t,n){Bt(2,arguments);var r=hw(e,t)/1e3;return mw(n==null?void 0:n.roundingMethod)(r)}var Ew={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xw=function(t,n,r){var o,i=Ew[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const kw=xw;function Oa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_w={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pw={date:Oa({formats:Rw,defaultWidth:"full"}),time:Oa({formats:Cw,defaultWidth:"full"}),dateTime:Oa({formats:_w,defaultWidth:"full"})};const Tw=Pw;var Nw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dw=function(t,n,r,o){return Nw[t]};const Ow=Dw;function oo(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var a=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[a]}var s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}var Lw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Aw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Iw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jw=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Uw={ordinalNumber:jw,era:oo({values:Lw,defaultWidth:"wide"}),quarter:oo({values:Mw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oo({values:Fw,defaultWidth:"wide"}),day:oo({values:Aw,defaultWidth:"wide"}),dayPeriod:oo({values:Iw,defaultWidth:"wide",formattingValues:zw,defaultFormattingWidth:"wide"})};const Bw=Uw;function io(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?$w(a,function(h){return h.test(l)}):Vw(a,function(h){return h.test(l)}),s;s=e.valueCallback?e.valueCallback(u):u,s=n.valueCallback?n.valueCallback(s):s;var c=t.slice(l.length);return{value:s,rest:c}}}function Vw(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $w(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;var a=t.slice(o.length);return{value:l,rest:a}}}var Hw=/^(\d+)(th|st|nd|rd)?/i,Qw=/\d+/i,Kw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xw={any:[/1/i,/2/i,/3/i,/4/i]},bw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qw={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nS={ordinalNumber:Ww({matchPattern:Hw,parsePattern:Qw,valueCallback:function(t){return parseInt(t,10)}}),era:io({matchPatterns:Kw,defaultMatchWidth:"wide",parsePatterns:Yw,defaultParseWidth:"any"}),quarter:io({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:Xw,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:io({matchPatterns:bw,defaultMatchWidth:"wide",parsePatterns:qw,defaultParseWidth:"any"}),day:io({matchPatterns:Gw,defaultMatchWidth:"wide",parsePatterns:Zw,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:eS,defaultMatchWidth:"any",parsePatterns:tS,defaultParseWidth:"any"})};const rS=nS;var oS={code:"en-US",formatDistance:kw,formatLong:Tw,formatRelative:Ow,localize:Bw,match:rS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const iS=oS;function Yp(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function lS(e){return Yp({},e)}var Hf=1440,aS=2520,La=43200,uS=86400;function sS(e,t,n){var r,o;Bt(2,arguments);var i=fw(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:i.locale)!==null&&r!==void 0?r:iS;if(!l.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=Bi(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var u=Yp(lS(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),s,c;a>0?(s=Ve(t),c=Ve(e)):(s=Ve(e),c=Ve(t));var h=Sw(c,s),m=($f(c)-$f(s))/1e3,w=Math.round((h-m)/60),v;if(w<2)return n!=null&&n.includeSeconds?h<5?l.formatDistance("lessThanXSeconds",5,u):h<10?l.formatDistance("lessThanXSeconds",10,u):h<20?l.formatDistance("lessThanXSeconds",20,u):h<40?l.formatDistance("halfAMinute",0,u):h<60?l.formatDistance("lessThanXMinutes",1,u):l.formatDistance("xMinutes",1,u):w===0?l.formatDistance("lessThanXMinutes",1,u):l.formatDistance("xMinutes",w,u);if(w<45)return l.formatDistance("xMinutes",w,u);if(w<90)return l.formatDistance("aboutXHours",1,u);if(w{const u=setInterval(()=>{n&&i(s=>s+9)},1e3);return()=>clearInterval(u)},[n]);const{data:l,error:a}=$s(`https://hacker-news.firebaseio.com/v0/${t}stories.json`,Xs,{refreshInterval:60*1e3});return a?j.jsx(Ws,{}):l===void 0?j.jsx(dl,{}):j.jsxs(j.Fragment,{children:[j.jsx("div",{className:Eo.newsList,children:l.slice(0,o).map(u=>j.jsx(cS,{newsId:u},u))}),j.jsxs(t0,{className:Eo.loadMore,onChange:u=>r(u),children:[j.jsx(dl,{}),"Loading more..."]})]})}function cS(e){const{newsId:t}=e,{data:n,error:r}=$s(`https://hacker-news.firebaseio.com/v0/item/${t}.json`,Xs,{refreshInterval:60*1e3}),o=i=>j.jsx(Er,{to:`/hackernews/readmore/${t}`,children:i});return r?j.jsx(Ws,{}):n===void 0?j.jsx(dl,{}):n.deleted?null:j.jsxs("div",{className:Eo.newsItem,children:[j.jsxs("h4",{children:[n.title," ",n.url!==void 0?j.jsx("a",{href:n.url,children:"Link"}):null]}),j.jsxs("div",{children:[j.jsxs("div",{className:Eo.meta,children:[j.jsxs("p",{children:[sS(new Date(n.time*1e3),new Date,{includeSeconds:!0})," ago"]}),j.jsx(Er,{to:`/hackernews/user/${n.by}`,children:n.by})]}),j.jsxs("div",{className:Eo.more,children:[j.jsxs("p",{children:["Score: ",n.score]}),o(n.kids!==void 0?`${n.kids.length} comments`:"discuss"),o("more")]})]})]})}const fS="_navbar_b02e5_1",dS="_menu_b02e5_35",hS="_container_b02e5_42",Ma={navbar:fS,menu:dS,container:hS};function pS(){return j.jsxs("div",{children:[j.jsxs("div",{className:Ma.navbar,children:[j.jsx("h1",{children:"Haker News"}),j.jsxs("div",{className:Ma.menu,children:[j.jsx(Er,{to:"/hackernews",children:"Top"}),j.jsx(Er,{to:"/hackernews/new",children:"New"}),j.jsx(Er,{to:"/hackernews/best",children:"Best"})]})]}),j.jsx("div",{className:Ma.container,children:j.jsx(Fg,{})})]})}function mS(){const e=vp(),{data:t,error:n}=$s(`https://hacker-news.firebaseio.com/v0/item/${e.newsId}.json`,Xs);return n?j.jsx(Ws,{}):t===void 0?j.jsx(dl,{}):t.deleted?null:j.jsxs("div",{children:[j.jsx("h4",{children:t.title}),j.jsx(Er,{to:`/hackernews/user/${t.by}`,children:t.by}),j.jsx("p",{children:new Date(t.time*1e3).toLocaleDateString()}),t.url!==void 0?j.jsx("a",{href:t.url,children:"Link"}):null,t.text!==void 0?j.jsx("div",{dangerouslySetInnerHTML:{__html:t.text}}):null]})}const vS=Vg([{path:"/hackernews",element:j.jsx(pS,{}),children:[{index:!0,element:j.jsx(Qf,{})},{path:"user/:username",element:j.jsx("div",{children:"User information"})},{path:"readmore/:newsId",element:j.jsx(mS,{})},{path:":channel",element:j.jsx(Qf,{})}]}]);Fa.createRoot(document.getElementById("root")).render(j.jsx(Ko.StrictMode,{children:j.jsx(Lg,{router:vS})})); +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zf]=this[zf]={accessors:{}}).accessors,o=this.prototype;function i(l){const a=ro(l);r[a]||($1(o,l),r[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}Bl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.freezeMethods(Bl.prototype);x.freezeMethods(Bl);const Gt=Bl;function Na(e,t){const n=this||Ks,r=t||n,o=Gt.from(r.headers);let i=r.data;return x.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Wp(e){return!!(e&&e.__CANCEL__)}function Zo(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Zo,K,{__CANCEL__:!0});function W1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const H1=It.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,a){const u=[];u.push(n+"="+encodeURIComponent(r)),x.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),x.isString(i)&&u.push("path="+i),x.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Q1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Hp(e,t){return e&&!Q1(t)?K1(e,t):t}const Y1=It.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=x.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function J1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),c=r[i];l||(l=s),n[o]=u,r[o]=s;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),s-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),s=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&s?(l-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const b1=typeof XMLHttpRequest<"u",q1=b1&&function(e){return new Promise(function(n,r){let o=e.data;const i=Gt.from(e.headers).normalize(),l=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}x.isFormData(o)&&(It.isStandardBrowserEnv||It.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let s=new XMLHttpRequest;if(e.auth){const w=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(w+":"+v))}const c=Hp(e.baseURL,e.url);s.open(e.method.toUpperCase(),Bp(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout;function h(){if(!s)return;const w=Gt.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:w,config:e,request:s};W1(function(f){n(f),u()},function(f){r(f),u()},g),s=null}if("onloadend"in s?s.onloadend=h:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(h)},s.onabort=function(){s&&(r(new K("Request aborted",K.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Vp;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new K(v,g.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,s)),s=null},It.isStandardBrowserEnv){const w=(e.withCredentials||Y1(c))&&e.xsrfCookieName&&H1.read(e.xsrfCookieName);w&&i.set(e.xsrfHeaderName,w)}o===void 0&&i.setContentType(null),"setRequestHeader"in s&&x.forEach(i.toJSON(),function(v,g){s.setRequestHeader(g,v)}),x.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),l&&l!=="json"&&(s.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&s.addEventListener("progress",jf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&s.upload&&s.upload.addEventListener("progress",jf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=w=>{s&&(r(!w||w.type?new Zo(null,e,s):w),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=J1(c);if(m&&It.protocols.indexOf(m)===-1){r(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));return}s.send(o||null)})},ji={http:x1,xhr:q1};x.forEach(ji,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const G1={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Gt?e.toJSON():e;function Or(e,t){t=t||{};const n={};function r(s,c,h){return x.isPlainObject(s)&&x.isPlainObject(c)?x.merge.call({caseless:h},s,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function o(s,c,h){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s,h)}else return r(s,c,h)}function i(s,c){if(!x.isUndefined(c))return r(void 0,c)}function l(s,c){if(x.isUndefined(c)){if(!x.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function a(s,c,h){if(h in t)return r(s,c);if(h in e)return r(void 0,s)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(s,c)=>o(Bf(s),Bf(c),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const h=u[c]||o,m=h(e[c],t[c],c);x.isUndefined(m)&&h!==a||(n[c]=m)}),n}const Qp="1.4.0",Ys={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ys[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Vf={};Ys.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Qp+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,a)=>{if(t===!1)throw new K(o(l," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Vf[l]&&(Vf[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function Z1(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const a=e[i],u=a===void 0||l(a,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Bu={assertOptions:Z1,validators:Ys},cn=Bu.validators;class hl{constructor(t){this.defaults=t,this.interceptors={request:new If,response:new If}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Or(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Bu.assertOptions(r,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Bu.assertOptions(o,{encode:cn.function,serialize:cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&x.merge(i.common,i[n.method]),l&&x.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Gt.concat(l,i);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});let c,h=0,m;if(!u){const v=[Uf.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,s),m=v.length,c=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(a=>{r.subscribe(a),i=a}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,a){r.reason||(r.reason=new Zo(i,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Js(function(o){t=o}),cancel:t}}}const ew=Js;function tw(e){return function(n){return e.apply(null,n)}}function nw(e){return x.isObject(e)&&e.isAxiosError===!0}const Vu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vu).forEach(([e,t])=>{Vu[t]=e});const rw=Vu;function Kp(e){const t=new Ui(e),n=Tp(Ui.prototype.request,t);return x.extend(n,Ui.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Kp(Or(e,o))},n}const Te=Kp(Ks);Te.Axios=Ui;Te.CanceledError=Zo;Te.CancelToken=ew;Te.isCancel=Wp;Te.VERSION=Qp;Te.toFormData=jl;Te.AxiosError=K;Te.Cancel=Te.CanceledError;Te.all=function(t){return Promise.all(t)};Te.spread=tw;Te.isAxiosError=nw;Te.mergeConfig=Or;Te.AxiosHeaders=Gt;Te.formToJSON=e=>$p(x.isHTMLForm(e)?new FormData(e):e);Te.HttpStatusCode=rw;Te.default=Te;const ow=Te;function Xs(e){return ow.get(e).then(t=>t.data)}const iw="_newsList_1tofd_1",lw="_meta_1tofd_10",aw="_more_1tofd_10",uw="_loadMore_1tofd_26",sw="_newsItem_1tofd_31",Eo={newsList:iw,meta:lw,more:aw,loadMore:uw,newsItem:sw};function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function Bt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ve(e){Bt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||$u(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var cw={};function fw(){return cw}function $f(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Bi(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function dw(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function hw(e,t){return Bt(2,arguments),Ve(e).getTime()-Ve(t).getTime()}var Wf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},pw="trunc";function mw(e){return e?Wf[e]:Wf[pw]}function vw(e){Bt(1,arguments);var t=Ve(e);return t.setHours(23,59,59,999),t}function yw(e){Bt(1,arguments);var t=Ve(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function gw(e){Bt(1,arguments);var t=Ve(e);return vw(t).getTime()===yw(t).getTime()}function ww(e,t){Bt(2,arguments);var n=Ve(e),r=Ve(t),o=Bi(n,r),i=Math.abs(dw(n,r)),l;if(i<1)l=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*i);var a=Bi(n,r)===-o;gw(Ve(e))&&i===1&&Bi(e,r)===1&&(a=!1),l=o*(i-Number(a))}return l===0?0:l}function Sw(e,t,n){Bt(2,arguments);var r=hw(e,t)/1e3;return mw(n==null?void 0:n.roundingMethod)(r)}var Ew={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xw=function(t,n,r){var o,i=Ew[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const kw=xw;function Oa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_w={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pw={date:Oa({formats:Rw,defaultWidth:"full"}),time:Oa({formats:Cw,defaultWidth:"full"}),dateTime:Oa({formats:_w,defaultWidth:"full"})};const Tw=Pw;var Nw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dw=function(t,n,r,o){return Nw[t]};const Ow=Dw;function oo(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var a=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[a]}var s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}var Lw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Aw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Iw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jw=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Uw={ordinalNumber:jw,era:oo({values:Lw,defaultWidth:"wide"}),quarter:oo({values:Mw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oo({values:Fw,defaultWidth:"wide"}),day:oo({values:Aw,defaultWidth:"wide"}),dayPeriod:oo({values:Iw,defaultWidth:"wide",formattingValues:zw,defaultFormattingWidth:"wide"})};const Bw=Uw;function io(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?$w(a,function(h){return h.test(l)}):Vw(a,function(h){return h.test(l)}),s;s=e.valueCallback?e.valueCallback(u):u,s=n.valueCallback?n.valueCallback(s):s;var c=t.slice(l.length);return{value:s,rest:c}}}function Vw(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $w(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;var a=t.slice(o.length);return{value:l,rest:a}}}var Hw=/^(\d+)(th|st|nd|rd)?/i,Qw=/\d+/i,Kw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xw={any:[/1/i,/2/i,/3/i,/4/i]},bw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qw={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nS={ordinalNumber:Ww({matchPattern:Hw,parsePattern:Qw,valueCallback:function(t){return parseInt(t,10)}}),era:io({matchPatterns:Kw,defaultMatchWidth:"wide",parsePatterns:Yw,defaultParseWidth:"any"}),quarter:io({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:Xw,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:io({matchPatterns:bw,defaultMatchWidth:"wide",parsePatterns:qw,defaultParseWidth:"any"}),day:io({matchPatterns:Gw,defaultMatchWidth:"wide",parsePatterns:Zw,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:eS,defaultMatchWidth:"any",parsePatterns:tS,defaultParseWidth:"any"})};const rS=nS;var oS={code:"en-US",formatDistance:kw,formatLong:Tw,formatRelative:Ow,localize:Bw,match:rS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const iS=oS;function Yp(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function lS(e){return Yp({},e)}var Hf=1440,aS=2520,La=43200,uS=86400;function sS(e,t,n){var r,o;Bt(2,arguments);var i=fw(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:i.locale)!==null&&r!==void 0?r:iS;if(!l.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=Bi(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var u=Yp(lS(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),s,c;a>0?(s=Ve(t),c=Ve(e)):(s=Ve(e),c=Ve(t));var h=Sw(c,s),m=($f(c)-$f(s))/1e3,w=Math.round((h-m)/60),v;if(w<2)return n!=null&&n.includeSeconds?h<5?l.formatDistance("lessThanXSeconds",5,u):h<10?l.formatDistance("lessThanXSeconds",10,u):h<20?l.formatDistance("lessThanXSeconds",20,u):h<40?l.formatDistance("halfAMinute",0,u):h<60?l.formatDistance("lessThanXMinutes",1,u):l.formatDistance("xMinutes",1,u):w===0?l.formatDistance("lessThanXMinutes",1,u):l.formatDistance("xMinutes",w,u);if(w<45)return l.formatDistance("xMinutes",w,u);if(w<90)return l.formatDistance("aboutXHours",1,u);if(w{const u=setInterval(()=>{n&&i(s=>s+9)},1e3);return()=>clearInterval(u)},[n]);const{data:l,error:a}=$s(`https://hacker-news.firebaseio.com/v0/${t}stories.json`,Xs,{refreshInterval:60*1e3});return a?j.jsx(Ws,{}):l===void 0?j.jsx(dl,{}):j.jsxs(j.Fragment,{children:[j.jsx("div",{className:Eo.newsList,children:l.slice(0,o).map(u=>j.jsx(cS,{newsId:u},u))}),j.jsxs(t0,{className:Eo.loadMore,onChange:u=>r(u),children:[j.jsx(dl,{}),"Loading more..."]})]})}function cS(e){const{newsId:t}=e,{data:n,error:r}=$s(`https://hacker-news.firebaseio.com/v0/item/${t}.json`,Xs,{refreshInterval:60*1e3}),o=i=>j.jsx(Er,{to:`/hackernews/readmore/${t}`,children:i});return r?j.jsx(Ws,{}):n===void 0?j.jsx(dl,{}):n.deleted?null:j.jsxs("div",{className:Eo.newsItem,children:[j.jsxs("h4",{children:[n.title," ",n.url!==void 0?j.jsx("a",{href:n.url,children:"Link"}):null]}),j.jsxs("div",{children:[j.jsxs("div",{className:Eo.meta,children:[j.jsxs("p",{children:[sS(new Date(n.time*1e3),new Date,{includeSeconds:!0})," ago"]}),j.jsx(Er,{to:`/hackernews/user/${n.by}`,children:n.by})]}),j.jsxs("div",{className:Eo.more,children:[j.jsxs("p",{children:["Score: ",n.score]}),o(n.kids!==void 0?`${n.kids.length} comments`:"discuss"),o("more")]})]})]})}const fS="_navbar_b02e5_1",dS="_menu_b02e5_35",hS="_container_b02e5_42",Ma={navbar:fS,menu:dS,container:hS};function pS(){return j.jsxs("div",{children:[j.jsxs("div",{className:Ma.navbar,children:[j.jsx("h1",{children:"Haker News"}),j.jsxs("div",{className:Ma.menu,children:[j.jsx(Er,{to:"/",children:"Top"}),j.jsx(Er,{to:"/new",children:"New"}),j.jsx(Er,{to:"/best",children:"Best"})]})]}),j.jsx("div",{className:Ma.container,children:j.jsx(Fg,{})})]})}function mS(){const e=vp(),{data:t,error:n}=$s(`https://hacker-news.firebaseio.com/v0/item/${e.newsId}.json`,Xs);return n?j.jsx(Ws,{}):t===void 0?j.jsx(dl,{}):t.deleted?null:j.jsxs("div",{children:[j.jsx("h4",{children:t.title}),j.jsx(Er,{to:`/hackernews/user/${t.by}`,children:t.by}),j.jsx("p",{children:new Date(t.time*1e3).toLocaleDateString()}),t.url!==void 0?j.jsx("a",{href:t.url,children:"Link"}):null,t.text!==void 0?j.jsx("div",{dangerouslySetInnerHTML:{__html:t.text}}):null]})}const vS=Vg([{path:"/",element:j.jsx(pS,{}),children:[{index:!0,element:j.jsx(Qf,{})},{path:"user/:username",element:j.jsx("div",{children:"User information"})},{path:"readmore/:newsId",element:j.jsx(mS,{})},{path:":channel",element:j.jsx(Qf,{})}]}]);Fa.createRoot(document.getElementById("root")).render(j.jsx(Ko.StrictMode,{children:j.jsx(Lg,{router:vS})})); diff --git a/index.html b/index.html index 3a43d73..2126f3b 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ - + HackerNews - - + +