1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[451],{451:(e,t,r)=>{r.d(t,{tu:()=>u,MB:()=>f});var a=r(883),n=r(2168),i=r(5222),o=r(3017);function s(e){if(!1===navigator.onLine||"hidden"===document.visibilityState)return!0;if(!e||"object"!=typeof e)return l(e);let t="name"in e&&"string"==typeof e.name?e.name:"",r="message"in e&&"string"==typeof e.message?e.message:"";return!!("AbortError"===t||/aborted|abort(?:ed)? the (?:request|operation)/i.test(r)||"TypeError"===t&&l(r))||l(r)}function l(e){return"string"==typeof e&&(/^failed to fetch$/i.test(e.trim())||/^load failed$/i.test(e.trim())||/^networkerror when attempting to fetch resource\.?$/i.test(e.trim())||/^network request failed$/i.test(e.trim()))}let c="tableCacheIndex:v1";async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0===t.skipCache||"true"===t.skipCache,a=t.cacheTtlMs?Number(t.cacheTtlMs):void 0,n=Number.isFinite(a)&&a>0?a:3e5,i=new URLSearchParams(Object.entries(t).filter(e=>{let[,t]=e;return null!=t&&""!==t&&!1!==t}).sort((e,t)=>{let[r]=e,[a]=t;return r.localeCompare(a)}).map(e=>{let[t,r]=e;return[t,String(r)]})).toString(),o="".concat("tableCache:v1:").concat(e).concat(i?"?".concat(i):"");if(!r){let e=function(e){try{let t=localStorage.getItem(e);if(!t)return null;let r=JSON.parse(t);if(!r||Date.now()>r.t)return localStorage.removeItem(e),null;return r.v}catch(e){return null}}(o);if(e)return e}try{let t="/api/tables/".concat(e).concat(i?"?".concat(i):""),a=await fetch(t);if(!a.ok)throw Error("Request failed ".concat(a.status));let s=await a.json(),l=s[e]||s.events||s.blogs||s.news||[],u=s.pagination||{total:l.length,page:1,pageSize:l.length,totalPages:1,hasNext:!1,hasPrev:!1},f={items:l,pagination:u};return r||function(e,t,r){try{let a={t:Date.now()+r,v:t};localStorage.setItem(e,JSON.stringify(a));let n=localStorage.getItem(c),i=n?JSON.parse(n):[],o=i.indexOf(e);for(-1!==o&&i.splice(o,1),i.push(e);i.length>50;){let e=i.shift();e&&localStorage.removeItem(e)}localStorage.setItem(c,JSON.stringify(i))}catch(e){}}(o,f,n),f}catch(e){return{items:[],pagination:{total:0,page:1,pageSize:0,totalPages:0,hasNext:!1,hasPrev:!1}}}}async function f(e){var t,r,l,c;let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=null==(t=u.method)?void 0:t.toUpperCase(),d=!1!==u.includeAuth,m=new Headers(u.headers),h=!1!==u.includeCustomHeaders;if(h&&f&&["POST","PUT","DELETE"].includes(f))for(let[e,t]of Object.entries(n.qY))m.set(e,String(t));let p=(m.get("Content-Type")||"").toLowerCase(),g=u.body,y="undefined"!=typeof FormData&&g instanceof FormData,w="undefined"!=typeof Blob&&g instanceof Blob,v="undefined"!=typeof URLSearchParams&&g instanceof URLSearchParams,b="undefined"!=typeof ArrayBuffer&&(g instanceof ArrayBuffer||ArrayBuffer.isView(g)),S=g&&"function"==typeof g.getReader;if(!y&&!w&&!v&&!b&&!S&&null!=g){let e,t=!1!==u.encodeSensitive;!Array.isArray(g)&&(!(e=g)||"object"!=typeof e||Array.isArray(e)||e instanceof Date||"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob)?"string"==typeof g&&(p.includes("application/json")||(e=>{let t=e.trim();return t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")})(g))&&(g=(0,i.hW)(g)):(g=t?(0,i.hR)(g):JSON.stringify(g),t&&m.set("X-Payload-Encoding","base64-sensitive")),"string"==typeof g&&m.set("Content-Type",p||"application/json; charset=utf-8")}let k={...u,credentials:null!=(r=u.credentials)?r:"include",headers:m,body:g};try{try{let t=await fetch(e,k);if(d&&401===t.status&&!/\/api\/auth\/(?:refresh|logout|me|member\/login|member\/verify-mfa|member\/register|member\/step-up|member\/confirm-backup-email)(?:[/?#]|$)/.test(e)&&!(null==(l=u.signal)?void 0:l.aborted))try{await (0,a.uI)(),t=await fetch(e,k)}catch(e){}return t}catch(t){if((!f||"GET"===f||"HEAD"===f)&&s(t)&&!(null==(c=u.signal)?void 0:c.aborted))return await new Promise(e=>setTimeout(e,400)),await fetch(e,k);throw t}}catch(t){throw s(t)||(0,o.O)({area:"frontend.secureFetch",title:"Frontend request failed",message:t instanceof Error?t.message:"The browser request failed before a response was received.",severity:"error",error:t,details:{url:e,method:f||"GET",includeAuth:d,includeCustomHeaders:h,contentType:m.get("Content-Type")||void 0,online:"undefined"!=typeof navigator?navigator.onLine:void 0,visibilityState:"undefined"!=typeof document?document.visibilityState:void 0}}),t}}},883:(e,t,r)=>{r.d(t,{iy:()=>l,j2:()=>c,qb:()=>u,ri:()=>f,uI:()=>d,vD:()=>h});var a=r(2168),n=r(5222);let i={credentials:"include",cache:"no-store"},o=null;function s(e){let t=new Headers(e);for(let[e,r]of Object.entries(a.qY))t.set(e,r);return t}async function l(e,t){let r=await fetch("/api/auth/member/login",{...i,method:"POST",headers:s({...a.eT}),body:(0,n.hR)({email:e,password:t})}),o=await r.json();if(!r.ok)throw Error(o.error||"Invalid login");return o.requiresMfa?{requiresMfa:!0,tempToken:o.tempToken,message:o.message}:{requiresMfa:!1}}
1async function c(e,t){let r=await fetch("/api/auth/member/verify-mfa",{...i,method:"POST",headers:s({...a.eT}),body:(0,n.hR)({mfaCode:e,tempToken:t})}),o=await r.json();if(!r.ok)throw Error(o.error||"Invalid MFA code");return o}async function u(e,t,r){let o=await fetch("/api/auth/member/register",{...i,method:"POST",headers:s({...a.eT}),body:(0,n.hR)({email:e,password:t,name:r})});if(!o.ok)throw Error("Registration failed");return o.json()}async function f(){await fetch("/api/auth/logout",{...i,method:"POST",headers:s()})}async function d(){if(o)return o;o=(async()=>{if(!(await fetch("/api/auth/refresh",{...i,method:"POST",headers:s()})).ok)throw Error("No refresh token")})();try{await o}finally{o=null}}async function m(){return fetch("/api/auth/me",i)}async function h(){let e=await m();if(401===e.status)try{await d(),e=await m()}catch(e){return null}return e.ok?(await e.json()).user:null}},3017:(e,t,r)=>{r.d(t,{O:()=>l});var a=r(2168);let n=[/^script error\.?$/i,/^javascript error:\s*script error\.?\s*on line 0$/i],i=[/ResizeObserver loop completed with undelivered notifications/i,/Failed to connect to MetaMask/i,/Object Not Found Matching Id:\d+,\s*MethodName:update,\s*ParamCount:\d+/i,/can(?:not|'t) redefine(?: non-configurable)? property(?:\s|:)\s*Symbol\.hasInstance/i,/Loading chunk [\w.-]+ failed/i,/ChunkLoadError/i,/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Importing a module script failed/i,/reading ['"]M_ID['"]/i],o=/(?:chrome|moz|safari|ms-browser)-extension:\/\/|webkit-masked-url:\/\/hidden/i;function s(e){return null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Array.isArray(e)?e.map(e=>s(e)):e instanceof Error?{name:e.name,message:e.message,stack:e.stack}:"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,s(r)]})):String(e)}async function l(e){var t,r,l,c;let u=(c=e.error)?c instanceof Error?c:Error("string"==typeof c?c:JSON.stringify(s(c))):null;if(function(e){var t,r,a;let s=null==(t=e.area)?void 0:t.trim().toLowerCase(),l=null==(r=e.title)?void 0:r.trim().toLowerCase(),c=null==(a=e.message)?void 0:a.trim().toLowerCase();if("window.error"===e.area&&[e.message,e.errorMessage].filter(e=>"string"==typeof e&&e.trim().length>0).some(e=>n.some(t=>t.test(e)))||"window.unhandledrejection"===s&&"unhandled promise rejection"===l&&"unhandled promise rejection"===c||function(e){if("frontend.secureFetch"!==e.area)return!1;let t=(e.message||e.errorMessage||"").trim();return"AbortError"===(e.errorName||"").trim()||/^failed to fetch$/i.test(t)||/^load failed$/i.test(t)||/^networkerror when attempting to fetch resource\.?$/i.test(t)||/^network request failed$/i.test(t)}(e))return!0;let u=new WeakSet,f=[e.area,e.title,e.message,e.errorName,e.errorMessage,e.stack,e.url,function e(t,r){if(null==t)return"";if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return String(t);if(t instanceof Error){var a;return[t.name,t.message,null!=(a=t.stack)?a:""].join(" ")}return Array.isArray(t)?t.map(t=>e(t,r)).join(" "):"object"==typeof t?r.has(t)?"[Circular]":(r.add(t),Object.values(t).map(t=>e(t,r)).join(" ")):String(t)}(e.details,u)].filter(e=>"string"==typeof e&&e.trim().length>0).join(" ");return!!function(e,t){var r;let a=null==(r=e.area)?void 0:r.trim().toLowerCase();return("window.error"===a||"window.unhandledrejection"===a)&&(o.test(t)||o.test(e.stack||""))}(e,f)||i.some(e=>e.test(f))}({area:e.area,title:e.title,message:e.message,errorName:null==u?void 0:u.name,errorMessage:null==u?void 0:u.message,stack:null==u?void 0:u.stack,url:window.location.href,details:e.details}))return;let f=JSON.stringify({source:"frontend",area:e.area,title:e.title,message:e.message,severity:null!=(t=e.severity)?t:"error",fingerprint:e.fingerprint,requestMethod:e.requestMethod,requestPath:null!=(r=e.requestPath)?r:window.location.pathname,url:window.location.href,userAgent:window.navigator.userAgent,errorName:null==u?void 0:u.name,errorMessage:null==u?void 0:u.message,stack:null==u?void 0:u.stack,details:s(null!=(l=e.details)?l:{})});try{if("function"==typeof navigator.sendBeacon&&navigator.sendBeacon("/api/analytics/issues",new Blob([f],{type:"application/json"})))return;await fetch("/api/analytics/issues",{method:"POST",headers:{"Content-Type":"application/json",...a.qY},body:f,keepalive:!0})}catch(e){}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.