1import{_ as e,g as t,i as n,v as r,y as i}from"./CSR9HhD0.js";import{H as a,J as o,L as s,an as c,wn as l}from"./Ib1jYPSS.js";import{r as u}from"./kPk3T3jN.js";import{r as d}from"./FJJ_VChM.js";import{d as f,f as p,h as m,i as h,r as g,s as _,t as v}from"./DZS0Q1sj.js";var y=i({docsBase:e,reporters:r});function b(e,t){try{return t in e}catch{return!1}}var x=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:E(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=T(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function S(e){if(typeof e==`string`)return new x(e);if(C(e))return e;let t=new x(e.message??e.statusMessage??``,{cause:e.cause||e});if(b(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=E(e.statusCode,t.statusCode):e.status&&(t.statusCode=E(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;T(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function C(e){return e?.constructor?.__h3_error__===!0}var w=/[^\u0009\u0020-\u007E]/g;function T(e=``){return e.replace(w,``)}function E(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var D=()=>n()?.$router;function O(e){let t=e.scope,n=c();for(;n;){if(n===t)return!0;n=n.parent}return!1}var k=(()=>{if(a()){let e=s();if(!e||O(e))return o(d,n()._route)}return n()._route});function A(e){return e}var j=(e,t,r={})=>{let i=n(),a=r.global||typeof e!=`string`,o=typeof e==`string`?t:e;if(!o){y.NUXT_E2006({cause:e});return}a?i._middleware.global.push(o):i._middleware.named[e]=o},M=()=>{try{if(n()._processingMiddleware)return!0}catch{return!1}return!1},N=(e,t)=>{e||=`/`;let r=typeof e==`string`?e:`path`in e?P(e):D().resolve(e).href;if(t?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&_(e))throw y.NUXT_E2002({toPath:r,protocol:e});let{target:n=`_blank`,windowFeatures:i={}}=t.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(r,n,a.join(`, `)),Promise.resolve()}let i=h(r,{acceptRelative:!0}),a=t?.external||i;if(a){if(!t?.external)throw y.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&_(e))throw y.NUXT_E2002({toPath:r,protocol:e})}let o=M();if(!a&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=p(e);return{path:t,...n&&{query:f(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=D(),c=n();if(a)return c._scope.stop(),t?.replace?location.replace(r):location.href=r,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?F(e):e;return t?.replace?s.replace(l):s.push(l)};function P(e){return m(e.path||``,e.query||{})+(e.hash||``)}function F(e){let t=p(e);return g(v(t.pathname))+t.search+t.hash}var I=`__nuxt_error`,L=()=>l(n().payload,`error`),R=e=>{let t=U(e);try{let e=L();n().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},z=(e,n)=>{let r=e.callHook(`app:error`,U(n));return t.NUXT_E1012({userAgent:navigator.userAgent,cause:n}),r},B=async(e,t)=>{if(u(navigator.userAgent)){await z(e,t);return}await e.runWithContext(()=>R(t))},V=async(e={})=>{let t=n(),r=L();t.callHook(`app:error:cleared`,e),e.redirect&&await D().replace(e.redirect),r.value=void 0},H=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,U=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=S(e);return Object.defineProperty(t,I,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};export{H as a,j as c,N as d,P as f,y as h,U as i,A as l,D as m,B as n,R as o,k as p,V as r,L as
1s,z as t,F as u};
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.