nuxt-graphql-middleware 5.2.0 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/client/200.html +1 -11
  2. package/dist/client/404.html +1 -11
  3. package/dist/client/_nuxt/CKZE-Gmz.js +2 -0
  4. package/dist/client/_nuxt/CLvFsrJf.js +1 -0
  5. package/dist/client/_nuxt/CYCWsMRt.js +1 -0
  6. package/dist/client/_nuxt/DKGPmQRi.js +1 -0
  7. package/dist/client/_nuxt/DPP_zJIh.js +25 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/1a5c6b94-502b-4ab8-a5c9-f955b10f2b06.json +1 -0
  10. package/dist/client/_nuxt/entry.DUAtNXP_.css +1 -0
  11. package/dist/client/_nuxt/error-404.DlVPZ4GE.css +1 -0
  12. package/dist/client/_nuxt/error-500.DjyirMQI.css +1 -0
  13. package/dist/client/_nuxt/index.B-PWu_0C.css +1 -0
  14. package/dist/client/index.html +1 -11
  15. package/dist/module.d.mts +1 -1
  16. package/dist/module.json +1 -1
  17. package/dist/module.mjs +19 -5
  18. package/dist/runtime/composables/useAsyncGraphqlQuery.d.ts +1 -2
  19. package/dist/runtime/server/utils/index.js +4 -4
  20. package/dist/shared/{nuxt-graphql-middleware.-BeiPV4H.d.mts → nuxt-graphql-middleware.ct2xvPoD.d.mts} +4 -1
  21. package/dist/utils.d.mts +1 -1
  22. package/package.json +10 -8
  23. package/dist/client/_nuxt/4Fsya3Lb.js +0 -1
  24. package/dist/client/_nuxt/BKIQXJNq.js +0 -1
  25. package/dist/client/_nuxt/BMPkTe12.js +0 -25
  26. package/dist/client/_nuxt/CghSORGW.js +0 -2
  27. package/dist/client/_nuxt/CyXF4zpN.js +0 -1
  28. package/dist/client/_nuxt/builds/meta/85b9c065-c702-4b67-9fa8-2d27fbcda8e3.json +0 -1
  29. package/dist/client/_nuxt/entry.BBgLZ1Jk.css +0 -1
  30. package/dist/client/_nuxt/error-404.Bbd2eCoc.css +0 -1
  31. package/dist/client/_nuxt/error-500.Cd2cwFc3.css +0 -1
  32. package/dist/client/_nuxt/index.DGEN-H8t.css +0 -1
@@ -1,11 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__nuxt-graphql-middleware/_nuxt/entry.BBgLZ1Jk.css" crossorigin>
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/BMPkTe12.js">
5
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-404.Bbd2eCoc.css">
6
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/4Fsya3Lb.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CyXF4zpN.js">
8
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-500.Cd2cwFc3.css">
9
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/BKIQXJNq.js">
10
- <script type="module" src="/__nuxt-graphql-middleware/_nuxt/BMPkTe12.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1751274168721,false]</script>
11
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-graphql-middleware",buildId:"85b9c065-c702-4b67-9fa8-2d27fbcda8e3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-graphql-middleware/_nuxt/entry.DUAtNXP_.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/DPP_zJIh.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-404.DlVPZ4GE.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/DKGPmQRi.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CYCWsMRt.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-500.DjyirMQI.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CLvFsrJf.js"><script type="module" src="/__nuxt-graphql-middleware/_nuxt/DPP_zJIh.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1756894756007,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-graphql-middleware",buildId:"1a5c6b94-502b-4ab8-a5c9-f955b10f2b06",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,11 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <link rel="stylesheet" href="/__nuxt-graphql-middleware/_nuxt/entry.BBgLZ1Jk.css" crossorigin>
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/BMPkTe12.js">
5
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-404.Bbd2eCoc.css">
6
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/4Fsya3Lb.js">
7
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CyXF4zpN.js">
8
- <link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-500.Cd2cwFc3.css">
9
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/BKIQXJNq.js">
10
- <script type="module" src="/__nuxt-graphql-middleware/_nuxt/BMPkTe12.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1751274168721,false]</script>
11
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-graphql-middleware",buildId:"85b9c065-c702-4b67-9fa8-2d27fbcda8e3",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__nuxt-graphql-middleware/_nuxt/entry.DUAtNXP_.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/DPP_zJIh.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-404.DlVPZ4GE.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/DKGPmQRi.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CYCWsMRt.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-graphql-middleware/_nuxt/error-500.DjyirMQI.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/CLvFsrJf.js"><script type="module" src="/__nuxt-graphql-middleware/_nuxt/DPP_zJIh.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1756894756008,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-graphql-middleware",buildId:"1a5c6b94-502b-4ab8-a5c9-f955b10f2b06",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -0,0 +1,2 @@
1
+ import{x as y,y as _,I as z,J as Ie,r as R,K as ie,k as M,L as ae,M as T,N as he,O as A,P as F,Q as ze,R as w,z as v,S as fe,T as me,d as te,A as V,s as Fe,U as Ve,V as q,W as ne,_ as Te,B as E,C as H,D as re,X as Oe}from"./DPP_zJIh.js";const pe={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(s){return(e,t)=>(_(),y("div",{class:z(["n-icon",s.icon])},null,2))}};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Me=s=>typeof s<"u";function Le(s){return JSON.parse(JSON.stringify(s))}function ge(s,e,t,n={}){var o,i,r;const{clone:c=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:a,shouldEmit:f}=n,m=Ie(),p=t||m?.emit||((o=m?.$emit)==null?void 0:o.bind(m))||((r=(i=m?.proxy)==null?void 0:i.$emit)==null?void 0:r.bind(m?.proxy));let h=u;e||(e="modelValue"),h=h||`update:${e.toString()}`;const g=S=>c?typeof c=="function"?c(S):Le(S):S,k=()=>Me(s[e])?g(s[e]):a,b=S=>{f?f(S)&&p(h,S):p(h,S)};if(l){const S=k(),L=R(S);let I=!1;return ie(()=>s[e],C=>{I||(I=!0,L.value=g(C),ae(()=>I=!1))}),ie(L,C=>{!I&&(C!==s[e]||d)&&b(C)},{deep:d}),L}else return M({get(){return k()},set(S){b(S)}})}const $e={class:"n-text-input flex flex items-center border n-border-base rounded n-bg-base py-1 pl-1 pr-2 focus-within:border-context focus-within:n-focus-base"},De={__name:"NTextInput",props:{modelValue:{type:[String,Number],required:!1,default:""},icon:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},readonly:{type:Boolean,required:!1},type:{type:String,required:!1,default:"text"}},emits:["keydown","keyup","change"],setup(s,{emit:e}){const o=ge(s,"modelValue",e,{passive:!0});return(i,r)=>{const c=pe;return _(),y("div",$e,[T(i.$slots,"icon",{},()=>[s.icon?(_(),A(c,{key:0,icon:s.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):F("",!0)]),he(v("input",fe({"onUpdate:modelValue":r[0]||(r[0]=l=>me(o)?o.value=l:null)},i.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[ze,w(o)]])])}}},Ee=te({__name:"Tag",props:{green:{type:Boolean},orange:{type:Boolean},text:{}},setup(s){const e=s,t=M(()=>e.green?"bg-green-400:10 text-green-400":e.orange?"bg-orange-400:10 text-orange-400":"bg-gray-400:10 text-gray");return(n,o)=>(_(),y("span",{class:z(["mx-0.5 select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs inline-block",w(t)])},V(n.text),3))}}),_e=Object.assign(Ee,{__name:"Tag"});let $;const B=[];function ve(s){if(B.push(s),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&B.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&B.forEach(t=>t(e))},get(){return $.value},configurable:!0}),()=>{B.splice(B.indexOf(s),1)}}function Ne(){$||($=Fe(),ve(e));function s(){$&&Ve($)}function e(t){$.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",s)}return $}const Ae=Ne(),qe=["innerHTML"],Pe=["textContent"],Be={__name:"NCodeBlock",props:{code:{type:String,required:!0},lang:{type:null,required:!1},lines:{type:Boolean,required:!1,default:!0},inline:{type:Boolean,required:!1},grammarContextCode:{type:String,required:!1},transformRendered:{type:Function,required:!1}},emits:["loaded"],setup(s,{emit:e}){const t=s,n=e,o=M(()=>{const r=t.lang==="text"?{code:t.code,supported:!1}:Ae.value?.devtools.renderCodeHighlight(t.code,t.lang,{grammarContextCode:t.grammarContextCode})||{code:t.code,supported:!1};return r.supported&&t.transformRendered&&(r.code=t.transformRendered(r.code)),r.supported&&ae(()=>n("loaded")),r}),i=M(()=>["n-code-block shiki",t.lines&&!t.inline?"n-code-block-lines":""]);return(r,c)=>s.lang&&o.value.supported?(_(),y("pre",{key:0,class:z(i.value)},[v("code",{innerHTML:o.value.code},null,8,qe)],2)):(_(),y("pre",{key:1,class:z(i.value)},[v("code",null,[(_(!0),y(q,null,ne(s.code.split(`
2
+ `),(l,u)=>(_(),y(q,{key:u},[v("span",{class:"line",textContent:V(l)},null,8,Pe),c[0]||(c[0]=v("br",null,null,-1))],64))),128))])],2))}},Re={flex:"~ gap-3","items-center":""},je={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(s){return(e,t)=>(_(),y("div",Re,[s.icon?(_(),y("div",{key:0,class:z(s.icon)},null,2)):F("",!0),T(e.$slots,"default",{},()=>[v("div",null,V(s.text),1)])]))}},We=["open"],Ue={"text-base":""},Je={key:0,"text-sm":"",op50:""},Qe={__name:"NSectionBlock",props:{icon:{type:String,required:!1},text:{type:String,required:!1},description:{type:String,required:!1},containerClass:{type:String,required:!1,default:""},headerClass:{type:String,required:!1},collapse:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1,default:!0},padding:{type:[Boolean,String],required:!1,default:!0}},setup(s){const t=ge(s,"open",void 0,{passive:!0});function n(o){t.value=o.target.open}return(o,i)=>{const r=pe,c=je;return _(),y(q,null,[v("details",{open:w(t),onToggle:n},[v("summary",{class:z(["cursor-pointer select-none p4 hover:bg-active",s.collapse?"":"pointer-events-none"])},[E(c,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:z([w(t)?"op100":"op60",s.headerClass])},{default:H(()=>[v("div",null,[v("div",Ue,[T(o.$slots,"text",{},()=>[re(V(s.text),1)],!0)]),s.description||o.$slots.description?(_(),y("div",Je,[T(o.$slots,"description",{},()=>[re(V(s.description),1)],!0)])):F("",!0)]),i[0]||(i[0]=v("div",{class:"flex-auto"},null,-1)),T(o.$slots,"actions",{},void 0,!0),s.collapse?(_(),A(r,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):F("",!0)]),_:3,__:[0]},8,["icon","text","class"])],2),i._lazyshow1||w(t)?(i._lazyshow1=!0,_(),y(q,null,[he(v("div",{class:z(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[T(o.$slots,"details",{},void 0,!0),v("div",{class:z([s.containerClass,"mt1"])},[T(o.$slots,"default",{},void 0,!0)],2),T(o.$slots,"footer",{},void 0,!0)],2),[[Oe,w(t)]])],64)):F("v-show-if",!0)],40,We),i[1]||(i[1]=v("div",{class:"x-divider"},null,-1))],64)}}},Ge=Te(Qe,[["__scopeId","data-v-45092635"]]),Ke={class:"h-full of-auto p2"},Xe={class:"p5"},He={class:"font-mono mb4 font-bold text-3xl"},Ye={key:0,class:"mb3"},Ze=["href"],et={key:0,class:"font-mono bg-red-900 text-red-100 p2"},tt=te({__name:"DocumentDetail",props:{id:{},timestamp:{},source:{},name:{},identifier:{},filePath:{},serverApiPrefix:{}},setup(s){const e=s,t=M(()=>[]),n=M(()=>e.identifier!=="fragment"?`${e.serverApiPrefix}/${e.identifier}/${e.name}`:null);return(o,i)=>{const r=_e,c=Be,l=Ge;return _(),y("div",Ke,[v("div",Xe,[v("h2",He,V(o.name),1),w(n)?(_(),y("div",Ye,[o.identifier==="query"?(_(),A(r,{key:0,green:"",text:"GET"})):(_(),A(r,{key:1,orange:"",text:"POST"})),v("a",{class:"n-transition n-link n-link-base hover:n-link-hover ml2",target:"_blank",href:w(n)},V(w(n)),9,Ze)])):F("",!0)]),E(l,{text:"Document",description:o.filePath,padding:"px4"},{default:H(()=>[E(c,{code:o.source,lang:"graphql"},null,8,["code"])]),_:1},8,["description"]),E(l,{text:"Errors",description:w(t).length+" errors",padding:"px4"},{default:H(()=>[w(t).length?(_(),y("div",et,[(_(!0),y(q,null,ne(w(t),(u,d)=>(_(),y("div",{key:d},V(u),1))),128))])):F("",!0)]),_:1},8,["description"])])}}}),nt=Object.assign(tt,{__name:"DocumentDetail"}),st="ENTRIES",ye="KEYS",xe="VALUES",x="";class J{constructor(e,t){const n=e._tree,o=Array.from(n.keys());this.set=e,this._type=t,this._path=o.length>0?[{node:n,keys:o}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=D(this._path);if(D(t)===x)return{done:!1,value:this.result()};const n=e.get(D(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=D(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>D(e)).filter(e=>e!==x).join("")}value(){return D(this._path).node.get(x)}result(){switch(this._type){case xe:return this.value();case ye:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const D=s=>s[s.length-1],ot=(s,e,t)=>{const n=new Map;if(e===void 0)return n;const o=e.length+1,i=o+t,r=new Uint8Array(i*o).fill(t+1);for(let c=0;c<o;++c)r[c]=c;for(let c=1;c<i;++c)r[c*o]=c;return we(s,e,t,n,r,1,o,""),n},we=(s,e,t,n,o,i,r,c)=>{const l=i*r;e:for(const u of s.keys())if(u===x){const d=o[l-1];d<=t&&n.set(c,[s.get(u),d])}else{let d=i;for(let a=0;a<u.length;++a,++d){const f=u[a],m=r*d,p=m-r;let h=o[m];const g=Math.max(0,d-t-1),k=Math.min(r-1,d+t);for(let b=g;b<k;++b){const S=f!==e[b],L=o[p+b]+ +S,I=o[p+b+1]+1,C=o[m+b]+1,P=o[m+b+1]=Math.min(L,I,C);P<h&&(h=P)}if(h>t)continue e}we(s.get(u),e,t,n,o,d,r,c+u)}};class O{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=U(this._tree,e.slice(this._prefix.length));if(t===void 0){const[o,i]=se(n);for(const r of o.keys())if(r!==x&&r.startsWith(i)){const c=new Map;return c.set(r.slice(i.length),o.get(r)),new O(c,e)}}return new O(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,it(this._tree,e)}entries(){return new J(this,st)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return ot(this._tree,e,t)}get(e){const t=Y(this._tree,e);return t!==void 0?t.get(x):void 0}has(e){const t=Y(this._tree,e);return t!==void 0&&t.has(x)}keys(){return new J(this,ye)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,Q(this._tree,e).set(x,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Q(this._tree,e);return n.set(x,t(n.get(x))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Q(this._tree,e);let o=n.get(x);return o===void 0&&n.set(x,o=t()),o}values(){return new J(this,xe)}[Symbol.iterator](){return this.entries()}static from(e){const t=new O;for(const[n,o]of e)t.set(n,o);return t}static fromObject(e){return O.from(Object.entries(e))}}const U=(s,e,t=[])=>{if(e.length===0||s==null)return[s,t];for(const n of s.keys())if(n!==x&&e.startsWith(n))return t.push([s,n]),U(s.get(n),e.slice(n.length),t);return t.push([s,e]),U(void 0,"",t)},Y=(s,e)=>{if(e.length===0||s==null)return s;for(const t of s.keys())if(t!==x&&e.startsWith(t))return Y(s.get(t),e.slice(t.length))},Q=(s,e)=>{const t=e.length;e:for(let n=0;s&&n<t;){for(const i of s.keys())if(i!==x&&e[n]===i[0]){const r=Math.min(t-n,i.length);let c=1;for(;c<r&&e[n+c]===i[c];)++c;const l=s.get(i);if(c===i.length)s=l;else{const u=new Map;u.set(i.slice(c),l),s.set(e.slice(n,n+c),u),s.delete(i),s=u}n+=c;continue e}const o=new Map;return s.set(e.slice(n),o),o}return s},it=(s,e)=>{const[t,n]=U(s,e);if(t!==void 0){if(t.delete(x),t.size===0)be(n);else if(t.size===1){const[o,i]=t.entries().next().value;Se(n,o,i)}}},be=s=>{if(s.length===0)return;const[e,t]=se(s);if(e.delete(t),e.size===0)be(s.slice(0,-1));else if(e.size===1){const[n,o]=e.entries().next().value;n!==x&&Se(s.slice(0,-1),n,o)}},Se=(s,e,t)=>{if(s.length===0)return;const[n,o]=se(s);n.set(o+e,t),n.delete(o)},se=s=>s[s.length-1],oe="or",ke="and",rt="and_not";class N{constructor(e){if(e?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?X:e.autoVacuum;this._options={...K,...e,autoVacuum:t,searchOptions:{...ce,...e.searchOptions||{}},autoSuggestOptions:{...at,...e.autoSuggestOptions||{}}},this._index=new O,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=ee,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:o,fields:i,idField:r}=this._options,c=t(e,r);if(c==null)throw new Error(`MiniSearch: document does not have ID field "${r}"`);if(this._idToShortId.has(c))throw new Error(`MiniSearch: duplicate ID ${c}`);const l=this.addDocumentId(c);this.saveStoredFields(l,e);for(const u of i){const d=t(e,u);if(d==null)continue;const a=n(d.toString(),u),f=this._fieldIds[u],m=new Set(a).size;this.addFieldLength(l,f,this._documentCount-1,m);for(const p of a){const h=o(p,u);if(Array.isArray(h))for(const g of h)this.addTerm(f,l,g);else h&&this.addTerm(f,l,h)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,o={chunk:[],promise:Promise.resolve()},{chunk:i,promise:r}=e.reduce(({chunk:c,promise:l},u,d)=>(c.push(u),(d+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(a=>setTimeout(a,0))).then(()=>this.addAll(c))}:{chunk:c,promise:l}),o);return r.then(()=>this.addAll(i))}remove(e){const{tokenize:t,processTerm:n,extractField:o,fields:i,idField:r}=this._options,c=o(e,r);if(c==null)throw new Error(`MiniSearch: document does not have ID field "${r}"`);const l=this._idToShortId.get(c);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${c}: it is not in the index`);for(const u of i){const d=o(e,u);if(d==null)continue;const a=t(d.toString(),u),f=this._fieldIds[u],m=new Set(a).size;this.removeFieldLength(l,f,this._documentCount,m);for(const p of a){const h=n(p,u);if(Array.isArray(h))for(const g of h)this.removeTerm(f,l,g);else h&&this.removeTerm(f,l,h)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(c),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new O,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,o)=>{this.removeFieldLength(t,o,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:o}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:o},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,o=n(e,t);this.discard(o),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=ee,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const o=e.batchSize||Z.batchSize,i=e.batchWait||Z.batchWait;let r=1;for(const[c,l]of this._index){for(const[u,d]of l)for(const[a]of d)this._documentIds.has(a)||(d.size<=1?l.delete(u):d.delete(a));this._index.get(c).size===0&&this._index.delete(c),r%o===0&&await new Promise(u=>setTimeout(u,i)),r+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||X.minDirtCount,n=n||X.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,o={...n,...t},i=this.executeQuery(e,t),r=[];for(const[c,{score:l,terms:u,match:d}]of i){const a=u.length||1,f={id:this._documentIds.get(c),score:l*a,terms:Object.keys(d),queryTerms:u,match:d};Object.assign(f,this._storedFields.get(c)),(o.filter==null||o.filter(f))&&r.push(f)}return e===N.wildcard&&o.boostDocument==null||r.sort(ue),r}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:i,terms:r}of this.search(e,t)){const c=r.join(" "),l=n.get(c);l!=null?(l.score+=i,l.count+=1):n.set(c,{score:i,terms:r,count:1})}const o=[];for(const[i,{score:r,terms:c,count:l}]of n)o.push({suggestion:i,terms:c,score:r/l});return o.sort(ue),o}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(K.hasOwnProperty(e))return G(K,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:o,fieldLength:i,storedFields:r,serializationVersion:c}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=j(o),l._fieldLength=j(i),l._storedFields=j(r);for(const[u,d]of l._documentIds)l._idToShortId.set(d,u);for(const[u,d]of n){const a=new Map;for(const f of Object.keys(d)){let m=d[f];c===1&&(m=m.ds),a.set(parseInt(f,10),j(m))}l._index.set(u,a)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:o,fieldLength:i,storedFields:r,serializationVersion:c}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await W(o),l._fieldLength=await W(i),l._storedFields=await W(r);for(const[d,a]of l._documentIds)l._idToShortId.set(a,d);let u=0;for(const[d,a]of n){const f=new Map;for(const m of Object.keys(a)){let p=a[m];c===1&&(p=p.ds),f.set(parseInt(m,10),await W(p))}++u%1e3===0&&await Ce(0),l._index.set(d,f)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:o,fieldIds:i,averageFieldLength:r,dirtCount:c,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const u=new N(t);return u._documentCount=n,u._nextId=o,u._idToShortId=new Map,u._fieldIds=i,u._avgFieldLength=r,u._dirtCount=c||0,u._index=new O,u}executeQuery(e,t={}){if(e===N.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const f={...t,...e,queries:void 0},m=e.queries.map(p=>this.executeQuery(p,f));return this.combineResults(m,f.combineWith)}const{tokenize:n,processTerm:o,searchOptions:i}=this._options,r={tokenize:n,processTerm:o,...i,...t},{tokenize:c,processTerm:l}=r,a=c(e).flatMap(f=>l(f)).filter(f=>!!f).map(dt(r)).map(f=>this.executeQuerySpec(f,r));return this.combineResults(a,r.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},o=(n.fields||this._options.fields).reduce((h,g)=>({...h,[g]:G(n.boost,g)||1}),{}),{boostDocument:i,weights:r,maxFuzzy:c,bm25:l}=n,{fuzzy:u,prefix:d}={...ce.weights,...r},a=this._index.get(e.term),f=this.termResults(e.term,e.term,1,e.termBoost,a,o,i,l);let m,p;if(e.prefix&&(m=this._index.atPrefix(e.term)),e.fuzzy){const h=e.fuzzy===!0?.2:e.fuzzy,g=h<1?Math.min(c,Math.round(e.term.length*h)):h;g&&(p=this._index.fuzzyGet(e.term,g))}if(m)for(const[h,g]of m){const k=h.length-e.term.length;if(!k)continue;p?.delete(h);const b=d*h.length/(h.length+.3*k);this.termResults(e.term,h,b,e.termBoost,g,o,i,l,f)}if(p)for(const h of p.keys()){const[g,k]=p.get(h);if(!k)continue;const b=u*h.length/(h.length+k);this.termResults(e.term,h,b,e.termBoost,g,o,i,l,f)}return f}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[o,i]of this._documentIds){const r=n.boostDocument?n.boostDocument(i,"",this._storedFields.get(o)):1;t.set(o,{score:r,terms:[],match:{}})}return t}combineResults(e,t=oe){if(e.length===0)return new Map;const n=t.toLowerCase(),o=ct[n];if(!o)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(o)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const o={};for(const[i,r]of n)o[i]=Object.fromEntries(r);e.push([t,o])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,o,i,r,c,l,u=new Map){if(i==null)return u;for(const d of Object.keys(r)){const a=r[d],f=this._fieldIds[d],m=i.get(f);if(m==null)continue;let p=m.size;const h=this._avgFieldLength[f];for(const g of m.keys()){if(!this._documentIds.has(g)){this.removeTerm(f,g,t),p-=1;continue}const k=c?c(this._documentIds.get(g),t,this._storedFields.get(g)):1;if(!k)continue;const b=m.get(g),S=this._fieldLength.get(g)[f],L=ut(b,p,this._documentCount,S,h,l),I=n*o*a*k*L,C=u.get(g);if(C){C.score+=I,ht(C.terms,e);const P=G(C.match,t);P?P.push(d):C.match[t]=[d]}else u.set(g,{score:I,terms:[e],match:{[t]:[d]}})}}return u}addTerm(e,t,n){const o=this._index.fetch(n,de);let i=o.get(e);if(i==null)i=new Map,i.set(t,1),o.set(e,i);else{const r=i.get(t);i.set(t,(r||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const o=this._index.fetch(n,de),i=o.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?o.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const o of Object.keys(this._fieldIds))if(this._fieldIds[o]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${o}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,o){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[t]=o;const c=(this._avgFieldLength[t]||0)*n+o;this._avgFieldLength[t]=c/(n+1)}removeFieldLength(e,t,n,o){if(n===1){this._avgFieldLength[t]=0;return}const i=this._avgFieldLength[t]*n-o;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:o}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(const r of n){const c=o(t,r);c!==void 0&&(i[r]=c)}}}N.wildcard=Symbol("*");const G=(s,e)=>Object.prototype.hasOwnProperty.call(s,e)?s[e]:void 0,ct={[oe]:(s,e)=>{for(const t of e.keys()){const n=s.get(t);if(n==null)s.set(t,e.get(t));else{const{score:o,terms:i,match:r}=e.get(t);n.score=n.score+o,n.match=Object.assign(n.match,r),le(n.terms,i)}}return s},[ke]:(s,e)=>{const t=new Map;for(const n of e.keys()){const o=s.get(n);if(o==null)continue;const{score:i,terms:r,match:c}=e.get(n);le(o.terms,r),t.set(n,{score:o.score+i,terms:o.terms,match:Object.assign(o.match,c)})}return t},[rt]:(s,e)=>{for(const t of e.keys())s.delete(t);return s}},lt={k:1.2,b:.7,d:.5},ut=(s,e,t,n,o,i)=>{const{k:r,b:c,d:l}=i;return Math.log(1+(t-e+.5)/(e+.5))*(l+s*(r+1)/(s+r*(1-c+c*n/o)))},dt=s=>(e,t,n)=>{const o=typeof s.fuzzy=="function"?s.fuzzy(e,t,n):s.fuzzy||!1,i=typeof s.prefix=="function"?s.prefix(e,t,n):s.prefix===!0,r=typeof s.boostTerm=="function"?s.boostTerm(e,t,n):1;return{term:e,fuzzy:o,prefix:i,termBoost:r}},K={idField:"id",extractField:(s,e)=>s[e],tokenize:s=>s.split(ft),processTerm:s=>s.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(s,e)=>{typeof console?.[s]=="function"&&console[s](e)},autoVacuum:!0},ce={combineWith:oe,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:lt},at={combineWith:ke,prefix:(s,e,t)=>e===t.length-1},Z={batchSize:1e3,batchWait:10},ee={minDirtFactor:.1,minDirtCount:20},X={...Z,...ee},ht=(s,e)=>{s.includes(e)||s.push(e)},le=(s,e)=>{for(const t of e)s.includes(t)||s.push(t)},ue=({score:s},{score:e})=>e-s,de=()=>new Map,j=s=>{const e=new Map;for(const t of Object.keys(s))e.set(parseInt(t,10),s[t]);return e},W=async s=>{const e=new Map;let t=0;for(const n of Object.keys(s))e.set(parseInt(n,10),s[n]),++t%1e3===0&&await Ce(0);return e},Ce=s=>new Promise(e=>setTimeout(e,s)),ft=/[\n\r\p{Z}\p{P}]+/u,mt={class:"relative",style:{height:"100vh"}},pt={class:"flex h-full"},gt={class:"h-full border-r border-r-gray-800 of-auto","h-full":"",style:{width:"22rem","min-width":"0",flex:"0 0 auto"}},_t={flex:"~ col gap2",border:"b base",class:"border-b-gray-800 p3 flex-1"},vt=["onClick"],yt={style:{width:"6rem"},class:"text-left"},xt=["onClick"],wt={key:0,class:"h-full relative w-full of-auto"},bt="nuxt-graphql-middleware",kt=te({__name:"index",setup(s){const e=new N({fields:["id","source","name","filePath","identifier"],storeFields:["id","source","name","identifier","filePath"],searchOptions:{fuzzy:.7}}),t=R(""),n=R([]),o=R(""),i=R(""),r=M(()=>{if(t.value)return n.value.find(d=>d.id===t.value)});async function c(d){e.removeAll(),n.value=d,e.addAll(d)}ve(async d=>{const a=d.devtools.extendClientRpc(bt,{showNotification(){},documentsUpdated(p){c(p)}}),f=await a.getDocuments();c(f);const m=await a.getModuleOptions();i.value=m.serverApiPrefix});function l(d){const a=document.createElement("textarea");a.value=d.source,a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy")}catch{}document.body.removeChild(a)}const u=M(()=>o.value?e.search(o.value):n.value);return(d,a)=>{const f=De,m=_e,p=nt;return _(),y("div",mt,[v("div",pt,[v("div",gt,[v("div",_t,[E(f,{modelValue:w(o),"onUpdate:modelValue":a[0]||(a[0]=h=>me(o)?o.value=h:null),placeholder:"Search documents...",icon:"carbon-search",class:"w-full"},null,8,["modelValue"])]),(_(!0),y(q,null,ne(w(u),h=>(_(),y("div",{key:h.id,class:"relative group"},[v("button",{class:"text-secondary hover:n-bg-hover flex select-none truncate px2 py2 font-mono text-sm w-full",onClick:g=>t.value=h.id},[v("div",yt,[h.identifier==="query"?(_(),A(m,{key:0,green:"",text:"Query"})):h.identifier==="mutation"?(_(),A(m,{key:1,orange:"",text:"Mutation"})):F("",!0)]),v("div",null,V(h.name),1)],8,vt),v("button",{class:"absolute right-0 top-0 text-sm h-full flex items-center opacity-0 group-hover:opacity-100 pr2",onClick:g=>l(h)},a[1]||(a[1]=[v("span",null,"Copy",-1)]),8,xt)]))),128))]),a[2]||(a[2]=v("div",{class:"splitpanes__splitter"},null,-1)),w(r)?(_(),y("div",wt,[E(p,fe(w(r),{"server-api-prefix":w(i)}),null,16,["server-api-prefix"])])):F("",!0)])])}}});export{kt as default};
@@ -0,0 +1 @@
1
+ import{_ as o,x as s,y as a,z as t,A as r}from"./DPP_zJIh.js";import{u as i}from"./CYCWsMRt.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,h)=>(a(),s("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.statusCode)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusMessage)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},x=o(f,[["__scopeId","data-v-d08fec65"]]);export{x as default};
@@ -0,0 +1 @@
1
+ import{E as a,a as s,F as r,G as u,H as o}from"./DPP_zJIh.js";function i(e){const n=e||s();return n.ssrContext?.head||n.runWithContext(()=>{if(r()){const t=u(o);if(!t)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return t}})}function d(e,n={}){const t=i(n.nuxt);return a(e,{head:t,...n})}export{d as u};
@@ -0,0 +1 @@
1
+ import{d as z,u as R,s as B,r as O,a as L,o as E,b as T,c as H,e as I,f as U,h as N,g as q,p as M,i as A,j as D,k as p,l as P,m as V,n as F,q as $,w as W,t as G,v as K,_ as Q,x as J,y as X,z as C,A as S,B as Y,C as Z,D as ee}from"./DPP_zJIh.js";import{u as te}from"./CYCWsMRt.js";const ne=(...t)=>t.find(o=>o!==void 0);function re(t){const o=t.componentName||"NuxtLink";function f(e){return typeof e=="string"&&e.startsWith("#")}function k(e,s,d){const r=d??t.trailingSlash;if(!e||r!=="append"&&r!=="remove")return e;if(typeof e=="string")return _(e,r);const i="path"in e&&e.path!==void 0?e.path:s(e).path;return{...e,name:void 0,path:_(i,r)}}function w(e){const s=R(),d=F(),r=p(()=>!!e.target&&e.target!=="_self"),i=p(()=>{const l=e.to||e.href||"";return typeof l=="string"&&P(l,{acceptRelative:!0})}),b=q("RouterLink"),h=b&&typeof b!="string"?b.useLink:void 0,c=p(()=>{if(e.external)return!0;const l=e.to||e.href||"";return typeof l=="object"?!1:l===""||i.value}),a=p(()=>{const l=e.to||e.href||"";return c.value?l:k(l,s.resolve,e.trailingSlash)}),g=c.value?void 0:h?.({...e,to:a}),m=p(()=>{const l=e.trailingSlash??t.trailingSlash;if(!a.value||i.value||f(a.value))return a.value;if(c.value){const y=typeof a.value=="object"&&"path"in a.value?A(a.value):a.value,x=typeof y=="object"?s.resolve(y).href:y;return _(x,l)}return typeof a.value=="object"?s.resolve(a.value)?.href??null:_(V(d.app.baseURL,a.value),l)});return{to:a,hasTarget:r,isAbsoluteUrl:i,isExternal:c,href:m,isActive:g?.isActive??p(()=>a.value===s.currentRoute.value.path),isExactActive:g?.isExactActive??p(()=>a.value===s.currentRoute.value.path),route:g?.route??p(()=>s.resolve(a.value)),async navigate(l){await $(m.value,{replace:e.replace,external:c.value||r.value})}}}return z({name:o,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:w,setup(e,{slots:s}){const d=R(),{to:r,href:i,navigate:b,isExternal:h,hasTarget:c,isAbsoluteUrl:a}=w(e),g=B(!1),m=O(null),l=u=>{m.value=e.custom?u?.$el?.nextElementSibling:u?.$el};function y(u){return!g.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===u:e.prefetchOn?.[u]??t.prefetchOn?.[u])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!se()}async function x(u=L()){if(g.value)return;g.value=!0;const v=typeof r.value=="string"?r.value:h.value?A(r.value):d.resolve(r.value).fullPath,n=h.value?new URL(v,window.location.href).href:v;await Promise.all([u.hooks.callHook("link:prefetch",n).catch(()=>{}),!h.value&&!c.value&&D(r.value,d).catch(()=>{})])}if(y("visibility")){const u=L();let v,n=null;E(()=>{const j=ie();T(()=>{v=H(()=>{m?.value?.tagName&&(n=j.observe(m.value,async()=>{n?.(),n=null,await x(u)}))})})}),I(()=>{v&&U(v),n?.(),n=null})}return()=>{if(!h.value&&!c.value&&!f(r.value)){const n={ref:l,to:r.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(y("interaction")&&(n.onPointerenter=x.bind(null,void 0),n.onFocus=x.bind(null,void 0)),g.value&&(n.class=e.prefetchedClass||t.prefetchedClass),n.rel=e.rel||void 0),N(q("RouterLink"),n,s.default)}const u=e.target||null,v=ne(e.noRel?"":e.rel,t.externalRelAttribute,a.value||c.value?"noopener noreferrer":"")||null;return e.custom?s.default?s.default({href:i.value,navigate:b,prefetch:x,get route(){if(!i.value)return;const n=new URL(i.value,window.location.href);return{path:n.pathname,fullPath:n.pathname,get query(){return M(n.search)},hash:n.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:v,target:u,isExternal:h.value||c.value,isActive:!1,isExactActive:!1}):null:N("a",{ref:m,href:i.value||null,rel:v,target:u,onClick:n=>{if(!(h.value||c.value))return n.preventDefault(),e.replace?d.replace(i.value):d.push(i.value)}},s.default?.())}}})}const ae=re(K);function _(t,o){const f=o==="append"?W:G;return P(t)&&!t.startsWith("http")?t:f(t,!0)}function ie(){const t=L();if(t._observer)return t._observer;let o=null;const f=new Map,k=(e,s)=>(o||=new IntersectionObserver(d=>{for(const r of d){const i=f.get(r.target);(r.isIntersecting||r.intersectionRatio>0)&&i&&i()}}),f.set(e,s),o.observe(e),()=>{f.delete(e),o?.unobserve(e),f.size===0&&(o?.disconnect(),o=null)});return t._observer={observe:k}}const oe=/2g/;function se(){const t=navigator.connection;return!!(t&&(t.saveData||oe.test(t.effectiveType)))}const le={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},ue={class:"max-w-520px text-center"},ce=["textContent"],fe=["textContent"],de=["textContent"],ve={class:"flex items-center justify-center w-full"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return te({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(f,k)=>{const w=ae;return X(),J("div",le,[C("div",ue,[C("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:S(t.statusCode)},null,8,ce),C("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:S(t.statusMessage)},null,8,fe),C("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:S(t.description)},null,8,de),C("div",ve,[Y(w,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:Z(()=>[ee(S(t.backHome),1)]),_:1})])])])}}},be=Q(he,[["__scopeId","data-v-dec70bd4"]]);export{be as default};