nuxt-graphql-middleware 5.2.2 → 5.2.3

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.
@@ -1 +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};
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"./C9p-Va5c.js";import{u as te}from"./DyBqp5hr.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-cd31e6b7"]]);export{be as default};
@@ -1 +1 @@
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>
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.Cyocd7ae.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-graphql-middleware/_nuxt/C9p-Va5c.js"><script type="module" src="/__nuxt-graphql-middleware/_nuxt/C9p-Va5c.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},1761577105407,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-graphql-middleware",buildId:"77b9a31d-6d5c-4e28-9320-cbd287a46883",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-graphql-middleware",
3
3
  "configKey": "graphqlMiddleware",
4
- "version": "5.2.2",
4
+ "version": "5.2.3",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.17.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -20,7 +20,7 @@ import { existsSync as existsSync$1 } from 'fs';
20
20
  import { onDevToolsInitialized, extendServerRpc } from '@nuxt/devtools-kit';
21
21
 
22
22
  const name = "nuxt-graphql-middleware";
23
- const version = "5.2.2";
23
+ const version = "5.2.3";
24
24
 
25
25
  const logger = useLogger("nuxt-graphql-middleware");
26
26
  const defaultOptions = {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="groups.length" id="nuxt-graphql-middleware">
2
+ <div v-if="groups.length" id="nuxt-graphql-middleware" class="ngm-root">
3
3
  <div id="nuxt-graphql-middleware-errors">
4
4
  <div
5
5
  id="nuxt-graphql-middleware-errors-background"
@@ -1 +1 @@
1
- :root{--ngm-tw-border-spacing-x:0;--ngm-tw-border-spacing-y:0;--ngm-tw-translate-x:0;--ngm-tw-translate-y:0;--ngm-tw-rotate:0;--ngm-tw-skew-x:0;--ngm-tw-skew-y:0;--ngm-tw-scale-x:1;--ngm-tw-scale-y:1;--ngm-tw-pan-x: ;--ngm-tw-pan-y: ;--ngm-tw-pinch-zoom: ;--ngm-tw-scroll-snap-strictness:proximity;--ngm-tw-gradient-from-position: ;--ngm-tw-gradient-via-position: ;--ngm-tw-gradient-to-position: ;--ngm-tw-ordinal: ;--ngm-tw-slashed-zero: ;--ngm-tw-numeric-figure: ;--ngm-tw-numeric-spacing: ;--ngm-tw-numeric-fraction: ;--ngm-tw-ring-inset: ;--ngm-tw-ring-offset-width:0px;--ngm-tw-ring-offset-color:#fff;--ngm-tw-ring-color:rgba(59,130,246,.5);--ngm-tw-ring-offset-shadow:0 0 #0000;--ngm-tw-ring-shadow:0 0 #0000;--ngm-tw-shadow:0 0 #0000;--ngm-tw-shadow-colored:0 0 #0000;--ngm-tw-blur: ;--ngm-tw-brightness: ;--ngm-tw-contrast: ;--ngm-tw-grayscale: ;--ngm-tw-hue-rotate: ;--ngm-tw-invert: ;--ngm-tw-saturate: ;--ngm-tw-sepia: ;--ngm-tw-drop-shadow: ;--ngm-tw-backdrop-blur: ;--ngm-tw-backdrop-brightness: ;--ngm-tw-backdrop-contrast: ;--ngm-tw-backdrop-grayscale: ;--ngm-tw-backdrop-hue-rotate: ;--ngm-tw-backdrop-invert: ;--ngm-tw-backdrop-opacity: ;--ngm-tw-backdrop-saturate: ;--ngm-tw-backdrop-sepia: ;--ngm-tw-contain-size: ;--ngm-tw-contain-layout: ;--ngm-tw-contain-paint: ;--ngm-tw-contain-style: }::backdrop{--ngm-tw-border-spacing-x:0;--ngm-tw-border-spacing-y:0;--ngm-tw-translate-x:0;--ngm-tw-translate-y:0;--ngm-tw-rotate:0;--ngm-tw-skew-x:0;--ngm-tw-skew-y:0;--ngm-tw-scale-x:1;--ngm-tw-scale-y:1;--ngm-tw-pan-x: ;--ngm-tw-pan-y: ;--ngm-tw-pinch-zoom: ;--ngm-tw-scroll-snap-strictness:proximity;--ngm-tw-gradient-from-position: ;--ngm-tw-gradient-via-position: ;--ngm-tw-gradient-to-position: ;--ngm-tw-ordinal: ;--ngm-tw-slashed-zero: ;--ngm-tw-numeric-figure: ;--ngm-tw-numeric-spacing: ;--ngm-tw-numeric-fraction: ;--ngm-tw-ring-inset: ;--ngm-tw-ring-offset-width:0px;--ngm-tw-ring-offset-color:#fff;--ngm-tw-ring-color:rgba(59,130,246,.5);--ngm-tw-ring-offset-shadow:0 0 #0000;--ngm-tw-ring-shadow:0 0 #0000;--ngm-tw-shadow:0 0 #0000;--ngm-tw-shadow-colored:0 0 #0000;--ngm-tw-blur: ;--ngm-tw-brightness: ;--ngm-tw-contrast: ;--ngm-tw-grayscale: ;--ngm-tw-hue-rotate: ;--ngm-tw-invert: ;--ngm-tw-saturate: ;--ngm-tw-sepia: ;--ngm-tw-drop-shadow: ;--ngm-tw-backdrop-blur: ;--ngm-tw-backdrop-brightness: ;--ngm-tw-backdrop-contrast: ;--ngm-tw-backdrop-grayscale: ;--ngm-tw-backdrop-hue-rotate: ;--ngm-tw-backdrop-invert: ;--ngm-tw-backdrop-opacity: ;--ngm-tw-backdrop-saturate: ;--ngm-tw-backdrop-sepia: ;--ngm-tw-contain-size: ;--ngm-tw-contain-layout: ;--ngm-tw-contain-paint: ;--ngm-tw-contain-style: }:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):after,:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):before{border:0 solid #e5e7eb;box-sizing:border-box}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):after,:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):before{--ngm-tw-content:""}#nuxt-graphql-middleware{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;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;line-height:inherit;margin:0}hr:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){border-top-width:1px;color:inherit;height:0}abbr:where([title]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h2:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h3:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h4:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h5:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h6:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:inherit;font-weight:inherit}a:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){color:inherit;text-decoration:inherit}b:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),strong:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-weight:bolder}code:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),kbd:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),pre:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),samp:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:80%}sub:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),sup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){bottom:-.25em}sup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){top:-.5em}table:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){border-collapse:collapse;border-color:inherit;text-indent:0}button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),input:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),optgroup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),select:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),textarea:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),select:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){text-transform:none}button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),input:where([type=button]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),input:where([type=reset]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),input:where([type=submit]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){outline:auto}:-moz-ui-invalid:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){box-shadow:none}progress:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){vertical-align:baseline}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-inner-spin-button,:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-outer-spin-button{height:auto}[type=search]:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-appearance:textfield;outline-offset:-2px}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-search-decoration{-webkit-appearance:none}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:list-item}blockquote:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),dd:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),dl:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),figure:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h1:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h2:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h3:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h4:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h5:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),h6:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),hr:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),p:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),pre:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){margin:0}fieldset:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){margin:0;padding:0}legend:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){padding:0}menu:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),ol:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),ul:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){list-style:none;margin:0;padding:0}dialog:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){padding:0}textarea:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){resize:vertical}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) input::-moz-placeholder,:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) textarea::-moz-placeholder{color:#9ca3af;opacity:1}:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) input::placeholder,:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) textarea::placeholder{color:#9ca3af;opacity:1}[role=button]:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){cursor:pointer}:disabled:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){cursor:default}audio:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),canvas:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),embed:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),iframe:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),img:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),object:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),svg:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),video:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:block;vertical-align:middle}img:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),video:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:none}#nuxt-graphql-middleware-errors{align-items:flex-start;display:flex;height:100%;justify-content:center;left:0;padding:1.25rem;position:fixed;top:0;width:100%;z-index:999999999999}#nuxt-graphql-middleware-errors-background{background-color:rgba(68,64,60,.95);height:100%;left:0;position:absolute;top:0;width:100%}#nuxt-graphql-middleware-errors-content{border-radius:.25rem;max-width:1200px;overflow:auto;position:relative;width:100%;z-index:50;--ngm-tw-bg-opacity:1;background-color:rgb(28 25 23/var(--ngm-tw-bg-opacity,1));padding:1.75rem;--ngm-tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--ngm-tw-shadow-colored:0 25px 50px -12px var(--ngm-tw-shadow-color);box-shadow:var(--ngm-tw-ring-offset-shadow,0 0 #0000),var(--ngm-tw-ring-shadow,0 0 #0000),var(--ngm-tw-shadow);max-height:calc(100vh - 40px)}#nuxt-graphql-middleware-errors-content header{border-bottom-width:1px;display:flex;justify-content:space-between;margin-bottom:.75rem;--ngm-tw-border-opacity:1;border-bottom-color:rgb(68 64 60/var(--ngm-tw-border-opacity,1));padding-bottom:1.25rem}#nuxt-graphql-middleware-errors-content header h1{font-size:1.25rem;font-weight:700;line-height:1.75rem;--ngm-tw-text-opacity:1;color:rgb(255 255 255/var(--ngm-tw-text-opacity,1))}#nuxt-graphql-middleware-errors-content header button{border-radius:.25rem;--ngm-tw-bg-opacity:1;background-color:rgb(87 83 78/var(--ngm-tw-bg-opacity,1));font-size:.875rem;font-weight:700;letter-spacing:.1em;line-height:1.25rem;padding:.5rem .625rem;text-transform:uppercase;--ngm-tw-text-opacity:1;color:rgb(245 245 244/var(--ngm-tw-text-opacity,1))}#nuxt-graphql-middleware-errors-content header button:hover{--ngm-tw-bg-opacity:1;background-color:rgb(231 229 228/var(--ngm-tw-bg-opacity,1));--ngm-tw-text-opacity:1;color:rgb(28 25 23/var(--ngm-tw-text-opacity,1))}.nuxt-graphql-middleware-error-group{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--ngm-tw-text-opacity:1;color:rgb(245 245 244/var(--ngm-tw-text-opacity,1))}.nuxt-graphql-middleware-error-group td{padding-bottom:.375rem;padding-top:.375rem}.nuxt-graphql-middleware-error-group td:first-child{padding-right:2.5rem}.nuxt-graphql-middleware-error-group td:nth-child(2){overflow:auto;white-space:pre-wrap}.nuxt-graphql-middleware-error-group td.ngm-large{font-size:1.5rem;font-weight:700;line-height:2rem;padding-bottom:.75rem;padding-top:.75rem}.nuxt-graphql-middleware-error-group code{--ngm-tw-bg-opacity:1;background-color:rgb(28 25 23/var(--ngm-tw-bg-opacity,1))}.nuxt-graphql-middleware-errors-code{border-radius:.25rem;border-width:1px;display:block;margin-bottom:1rem;margin-top:1rem;white-space:pre;--ngm-tw-border-opacity:1;border-color:rgb(87 83 78/var(--ngm-tw-border-opacity,1));--ngm-tw-bg-opacity:1;background-color:rgb(41 37 36/var(--ngm-tw-bg-opacity,1));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;padding:.75rem;--ngm-tw-text-opacity:1;color:rgb(255 255 255/var(--ngm-tw-text-opacity,1));display:flex;gap:2rem}.nuxt-graphql-middleware-errors-code-code.ngm-is-highlighted{border-radius:.25rem;border-width:1px;--ngm-tw-border-opacity:1;border-color:rgb(185 28 28/var(--ngm-tw-border-opacity,1));--ngm-tw-bg-opacity:1;background-color:rgb(127 29 29/var(--ngm-tw-bg-opacity,1))}.nuxt-graphql-middleware-errors-code-line-number{text-align:right}.table{display:table}
1
+ .ngm-root *,.ngm-root :after,.ngm-root :before{--ngm-tw-border-spacing-x:0;--ngm-tw-border-spacing-y:0;--ngm-tw-translate-x:0;--ngm-tw-translate-y:0;--ngm-tw-rotate:0;--ngm-tw-skew-x:0;--ngm-tw-skew-y:0;--ngm-tw-scale-x:1;--ngm-tw-scale-y:1;--ngm-tw-pan-x: ;--ngm-tw-pan-y: ;--ngm-tw-pinch-zoom: ;--ngm-tw-scroll-snap-strictness:proximity;--ngm-tw-gradient-from-position: ;--ngm-tw-gradient-via-position: ;--ngm-tw-gradient-to-position: ;--ngm-tw-ordinal: ;--ngm-tw-slashed-zero: ;--ngm-tw-numeric-figure: ;--ngm-tw-numeric-spacing: ;--ngm-tw-numeric-fraction: ;--ngm-tw-ring-inset: ;--ngm-tw-ring-offset-width:0px;--ngm-tw-ring-offset-color:#fff;--ngm-tw-ring-color:rgba(59,130,246,.5);--ngm-tw-ring-offset-shadow:0 0 #0000;--ngm-tw-ring-shadow:0 0 #0000;--ngm-tw-shadow:0 0 #0000;--ngm-tw-shadow-colored:0 0 #0000;--ngm-tw-blur: ;--ngm-tw-brightness: ;--ngm-tw-contrast: ;--ngm-tw-grayscale: ;--ngm-tw-hue-rotate: ;--ngm-tw-invert: ;--ngm-tw-saturate: ;--ngm-tw-sepia: ;--ngm-tw-drop-shadow: ;--ngm-tw-backdrop-blur: ;--ngm-tw-backdrop-brightness: ;--ngm-tw-backdrop-contrast: ;--ngm-tw-backdrop-grayscale: ;--ngm-tw-backdrop-hue-rotate: ;--ngm-tw-backdrop-invert: ;--ngm-tw-backdrop-opacity: ;--ngm-tw-backdrop-saturate: ;--ngm-tw-backdrop-sepia: ;--ngm-tw-contain-size: ;--ngm-tw-contain-layout: ;--ngm-tw-contain-paint: ;--ngm-tw-contain-style: }.ngm-root ::backdrop{--ngm-tw-border-spacing-x:0;--ngm-tw-border-spacing-y:0;--ngm-tw-translate-x:0;--ngm-tw-translate-y:0;--ngm-tw-rotate:0;--ngm-tw-skew-x:0;--ngm-tw-skew-y:0;--ngm-tw-scale-x:1;--ngm-tw-scale-y:1;--ngm-tw-pan-x: ;--ngm-tw-pan-y: ;--ngm-tw-pinch-zoom: ;--ngm-tw-scroll-snap-strictness:proximity;--ngm-tw-gradient-from-position: ;--ngm-tw-gradient-via-position: ;--ngm-tw-gradient-to-position: ;--ngm-tw-ordinal: ;--ngm-tw-slashed-zero: ;--ngm-tw-numeric-figure: ;--ngm-tw-numeric-spacing: ;--ngm-tw-numeric-fraction: ;--ngm-tw-ring-inset: ;--ngm-tw-ring-offset-width:0px;--ngm-tw-ring-offset-color:#fff;--ngm-tw-ring-color:rgba(59,130,246,.5);--ngm-tw-ring-offset-shadow:0 0 #0000;--ngm-tw-ring-shadow:0 0 #0000;--ngm-tw-shadow:0 0 #0000;--ngm-tw-shadow-colored:0 0 #0000;--ngm-tw-blur: ;--ngm-tw-brightness: ;--ngm-tw-contrast: ;--ngm-tw-grayscale: ;--ngm-tw-hue-rotate: ;--ngm-tw-invert: ;--ngm-tw-saturate: ;--ngm-tw-sepia: ;--ngm-tw-drop-shadow: ;--ngm-tw-backdrop-blur: ;--ngm-tw-backdrop-brightness: ;--ngm-tw-backdrop-contrast: ;--ngm-tw-backdrop-grayscale: ;--ngm-tw-backdrop-hue-rotate: ;--ngm-tw-backdrop-invert: ;--ngm-tw-backdrop-opacity: ;--ngm-tw-backdrop-saturate: ;--ngm-tw-backdrop-sepia: ;--ngm-tw-contain-size: ;--ngm-tw-contain-layout: ;--ngm-tw-contain-paint: ;--ngm-tw-contain-style: }.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):after,.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):before{border:0 solid #e5e7eb;box-sizing:border-box}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):after,.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *):before{--ngm-tw-content:""}.ngm-root #nuxt-graphql-middleware{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;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;line-height:inherit;margin:0}.ngm-root hr:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){border-top-width:1px;color:inherit;height:0}.ngm-root abbr:where([title]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.ngm-root h1:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h2:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h3:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h4:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h5:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h6:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:inherit;font-weight:inherit}.ngm-root a:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){color:inherit;text-decoration:inherit}.ngm-root b:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root strong:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-weight:bolder}.ngm-root code:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root kbd:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root pre:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root samp:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}.ngm-root small:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:80%}.ngm-root sub:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root sup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){font-size:75%;line-height:0;position:relative;vertical-align:baseline}.ngm-root sub:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){bottom:-.25em}.ngm-root sup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){top:-.5em}.ngm-root table:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){border-collapse:collapse;border-color:inherit;text-indent:0}.ngm-root button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root input:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root optgroup:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root select:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root textarea:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}.ngm-root button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root select:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){text-transform:none}.ngm-root button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root input:where([type=button]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root input:where([type=reset]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root input:where([type=submit]):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-appearance:button;background-color:transparent;background-image:none}.ngm-root :-moz-focusring:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){outline:auto}.ngm-root :-moz-ui-invalid:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){box-shadow:none}.ngm-root progress:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){vertical-align:baseline}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-inner-spin-button,.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-outer-spin-button{height:auto}.ngm-root [type=search]:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){-webkit-appearance:textfield;outline-offset:-2px}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-search-decoration{-webkit-appearance:none}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.ngm-root summary:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:list-item}.ngm-root blockquote:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root dd:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root dl:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root figure:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h1:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h2:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h3:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h4:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h5:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root h6:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root hr:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root p:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root pre:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){margin:0}.ngm-root fieldset:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){margin:0;padding:0}.ngm-root legend:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){padding:0}.ngm-root menu:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root ol:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root ul:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){list-style:none;margin:0;padding:0}.ngm-root dialog:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){padding:0}.ngm-root textarea:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){resize:vertical}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) input::-moz-placeholder,.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) textarea::-moz-placeholder{color:#9ca3af;opacity:1}.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) input::placeholder,.ngm-root :where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *) textarea::placeholder{color:#9ca3af;opacity:1}.ngm-root [role=button]:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root button:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){cursor:pointer}.ngm-root :disabled:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){cursor:default}.ngm-root audio:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root canvas:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root embed:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root iframe:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root img:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root object:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root svg:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root video:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:block;vertical-align:middle}.ngm-root img:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *),.ngm-root video:where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){height:auto;max-width:100%}.ngm-root [hidden]:where(:not([hidden=until-found])):where(#nuxt-graphql-middleware,#nuxt-graphql-middleware *){display:none}.ngm-root #nuxt-graphql-middleware-errors{align-items:flex-start;display:flex;height:100%;justify-content:center;left:0;padding:1.25rem;position:fixed;top:0;width:100%;z-index:999999999999}.ngm-root #nuxt-graphql-middleware-errors-background{background-color:rgba(68,64,60,.95);height:100%;left:0;position:absolute;top:0;width:100%}.ngm-root #nuxt-graphql-middleware-errors-content{border-radius:.25rem;max-width:1200px;overflow:auto;position:relative;width:100%;z-index:50;--ngm-tw-bg-opacity:1;background-color:rgb(28 25 23/var(--ngm-tw-bg-opacity,1));padding:1.75rem;--ngm-tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--ngm-tw-shadow-colored:0 25px 50px -12px var(--ngm-tw-shadow-color);box-shadow:var(--ngm-tw-ring-offset-shadow,0 0 #0000),var(--ngm-tw-ring-shadow,0 0 #0000),var(--ngm-tw-shadow);max-height:calc(100vh - 40px)}.ngm-root #nuxt-graphql-middleware-errors-content header{border-bottom-width:1px;display:flex;justify-content:space-between;margin-bottom:.75rem;--ngm-tw-border-opacity:1;border-bottom-color:rgb(68 64 60/var(--ngm-tw-border-opacity,1));padding-bottom:1.25rem}.ngm-root #nuxt-graphql-middleware-errors-content header h1{font-size:1.25rem;font-weight:700;line-height:1.75rem;--ngm-tw-text-opacity:1;color:rgb(255 255 255/var(--ngm-tw-text-opacity,1))}.ngm-root #nuxt-graphql-middleware-errors-content header button{border-radius:.25rem;--ngm-tw-bg-opacity:1;background-color:rgb(87 83 78/var(--ngm-tw-bg-opacity,1));font-size:.875rem;font-weight:700;letter-spacing:.1em;line-height:1.25rem;padding:.5rem .625rem;text-transform:uppercase;--ngm-tw-text-opacity:1;color:rgb(245 245 244/var(--ngm-tw-text-opacity,1))}.ngm-root #nuxt-graphql-middleware-errors-content header button:hover{--ngm-tw-bg-opacity:1;background-color:rgb(231 229 228/var(--ngm-tw-bg-opacity,1));--ngm-tw-text-opacity:1;color:rgb(28 25 23/var(--ngm-tw-text-opacity,1))}.ngm-root .nuxt-graphql-middleware-error-group{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--ngm-tw-text-opacity:1;color:rgb(245 245 244/var(--ngm-tw-text-opacity,1))}.ngm-root .nuxt-graphql-middleware-error-group td{padding-bottom:.375rem;padding-top:.375rem}.ngm-root .nuxt-graphql-middleware-error-group td:first-child{padding-right:2.5rem}.ngm-root .nuxt-graphql-middleware-error-group td:nth-child(2){overflow:auto;white-space:pre-wrap}.ngm-root .nuxt-graphql-middleware-error-group td.ngm-large{font-size:1.5rem;font-weight:700;line-height:2rem;padding-bottom:.75rem;padding-top:.75rem}.ngm-root .nuxt-graphql-middleware-error-group code{--ngm-tw-bg-opacity:1;background-color:rgb(28 25 23/var(--ngm-tw-bg-opacity,1))}.ngm-root .nuxt-graphql-middleware-errors-code{border-radius:.25rem;border-width:1px;display:block;margin-bottom:1rem;margin-top:1rem;white-space:pre;--ngm-tw-border-opacity:1;border-color:rgb(87 83 78/var(--ngm-tw-border-opacity,1));--ngm-tw-bg-opacity:1;background-color:rgb(41 37 36/var(--ngm-tw-bg-opacity,1));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;padding:.75rem;--ngm-tw-text-opacity:1;color:rgb(255 255 255/var(--ngm-tw-text-opacity,1));display:flex;gap:2rem}.ngm-root .nuxt-graphql-middleware-errors-code-code.ngm-is-highlighted{border-radius:.25rem;border-width:1px;--ngm-tw-border-opacity:1;border-color:rgb(185 28 28/var(--ngm-tw-border-opacity,1));--ngm-tw-bg-opacity:1;background-color:rgb(127 29 29/var(--ngm-tw-bg-opacity,1))}.ngm-root .nuxt-graphql-middleware-errors-code-line-number{text-align:right}.ngm-root .table{display:table}
@@ -90,7 +90,7 @@ export type GraphqlMiddlewareRequestContext<C extends ContextType = ContextType>
90
90
  };
91
91
  export type GraphqlMiddlewareGraphqlEndpointMethod<C extends ContextType> = (event: H3Event, operation?: string | null, operationName?: string | null, context?: GraphqlMiddlewareRequestContext<C> | null) => string | Promise<string> | undefined;
92
92
  export type GraphqlMiddlewareServerFetchOptionsMethod<C extends ContextType> = (event: H3Event, operation?: string | null, operationName?: string | null, context?: GraphqlMiddlewareRequestContext<C> | null) => FetchOptions | Promise<FetchOptions>;
93
- export type GraphqlMiddlewareOnServerResponseMethod<ServerReponse, T, C extends ContextType> = (event: H3Event, response: FetchResponse<ServerReponse>, operation?: string | null, operationName?: string | null, context?: GraphqlMiddlewareRequestContext<C> | null) => T | Promise<T>;
93
+ export type GraphqlMiddlewareOnServerResponseMethod<ServerReponse, T, C extends ContextType> = (event: H3Event, response: FetchResponse<ServerReponse>, operation?: string | null, operationName?: string | null, context?: GraphqlMiddlewareRequestContext<C> | null) => NoInfer<T> | NoInfer<Promise<T>>;
94
94
  export type GraphqlMiddlewareOnServerErrorMethod<C extends ContextType> = (event: H3Event, error: FetchError, operation?: string | null, operationName?: string | null, context?: GraphqlMiddlewareRequestContext<C> | null) => any | Promise<any>;
95
95
  export type GraphqlMiddlewareDoRequestMethodContext<C extends ContextType> = {
96
96
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-graphql-middleware",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "Module to perform GraphQL requests as a server middleware.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -82,9 +82,9 @@
82
82
  "@nuxt/devtools": "^2.4.0",
83
83
  "@nuxt/devtools-ui-kit": "^2.6.2",
84
84
  "@nuxt/eslint": "^1.2.0",
85
- "@nuxt/kit": "^4.0.3",
85
+ "@nuxt/kit": "^4.2.0",
86
86
  "@nuxt/module-builder": "^1.0.1",
87
- "@nuxt/schema": "^4.0.3",
87
+ "@nuxt/schema": "^4.2.0",
88
88
  "@types/micromatch": "^4.0.9",
89
89
  "cypress": "^13.12.0",
90
90
  "cypress-wait-until": "^3.0.2",
@@ -92,11 +92,12 @@
92
92
  "eslint-config-prettier": "^10.1.1",
93
93
  "eslint-plugin-prettier": "^5.2.3",
94
94
  "mermaid": "^11.5.0",
95
- "nuxt": "^4.0.3",
95
+ "nuxt": "^4.2.0",
96
96
  "postcss": "^8.5.3",
97
97
  "postcss-cli": "^11.0.1",
98
98
  "postcss-import": "^16.1.0",
99
99
  "postcss-nested-import": "^1.3.0",
100
+ "postcss-prefix-selector": "^2.1.1",
100
101
  "postcss-replace": "^2.0.1",
101
102
  "postcss-url": "^10.1.3",
102
103
  "prettier": "^3.5.3",
@@ -1,2 +0,0 @@
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};
@@ -1 +0,0 @@
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};