import{S as v,i as h,s as B,a as p,w as d,a6 as P,h as m,c,x as _,b as g,y,f as $,t as Q,B as q}from"../../chunks/index-de1c04e4.js";import{Q as w}from"../../chunks/Switch-356716ae.js";import{F as D}from"../../chunks/FieldDetails-7626f159.js";import{D as x,f as E}from"../../chunks/pages-d34b2ec3.js";import{P as F}from"../../chunks/PreviousNextPage-213c9a22.js";import"../../chunks/paths-b0dcd44a.js";import"../../chunks/ChevronDown-ebec7262.js";import"../../chunks/prism-json-f6ca42ec.js";import"../../chunks/ArgsList-13f0c384.js";function N(s){let n,r,t,o,a,f;return document.title=n="Query - "+s[0].name,t=new D({props:{field:s[0],type:w.QUERY}}),a=new F({props:{page:s[1]}}),{c(){r=p(),d(t.$$.fragment),o=p(),d(a.$$.fragment)},l(e){P('[data-svelte="svelte-qp7d7j"]',document.head).forEach(m),r=c(e),_(t.$$.fragment,e),o=c(e),_(a.$$.fragment,e)},m(e,i){g(e,r,i),y(t,e,i),g(e,o,i),y(a,e,i),f=!0},p(e,[i]){(!f||i&1)&&n!==(n="Query - "+e[0].name)&&(document.title=n);const u={};i&1&&(u.field=e[0]),t.$set(u);const l={};i&2&&(l.page=e[1]),a.$set(l)},i(e){f||($(t.$$.fragment,e),$(a.$$.fragment,e),f=!0)},o(e){Q(t.$$.fragment,e),Q(a.$$.fragment,e),f=!1},d(e){e&&m(r),q(t,e),e&&m(o),q(a,e)}}}function z({params:s,url:n}){const r=x(s.query),t=E(n.pathname);return!r||!t?{status:404,error:`Query ${s.query} not found.`}:{props:{field:r,page:t}}}function S(s,n,r){let{field:t}=n,{page:o}=n;return s.$$set=a=>{"field"in a&&r(0,t=a.field),"page"in a&&r(1,o=a.page)},[t,o]}class A extends v{constructor(n){super(),h(this,n,S,N,B,{field:0,page:1})}}export{A as default,z as load};
