const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B9wAkg6b.js","./CzAdaxHH.js","./entry.DOHzCCCV.css"])))=>i.map(i=>d[i]); import{aM as h,aN as y,aO as j,$ as f}from"./CzAdaxHH.js";const m={pages:"v3.5.0--Pe2oc1j-mYssCHA1aKEyZtZwa31DQiKli2MrP2oYboA",blogPosts:"v3.5.0--8Vw2gxUMnERjgd6wWmTVtEtwo4Q5pbhqqjgLHX67smk",blogAuthors:"v3.5.0--8A-ueEWCUj4KiV2p2augdDMrqisIjpqesY5OQ2F-QsM",blogCategories:"v3.5.0--ZYLxqlW2paBu8LLKr1bDEZRWMK-Lqhf4CDyrwmKDe7Q",blogTags:"v3.5.0--HreMXYPDrxBXshq5tmeBuFom3wURBFxMS640FsY4zNE",customers:"v3.5.0--ajTHCcJiMb6kR2183AKCjUrwElfuAtqLPtIuZewc3to",pressReleases:"v3.5.0---_iDoxAgNuFIHYdy1EC_tkaZkjQ9c9v3PKAb7-j3crQ",theSource:"v3.5.0--Mc2yLi2fcXtVEqHoQf-wsv1UDAv7K6DDA5MlWQmMv-8",theSourceAuthors:"v3.5.0--savOS31fP423XAC7Ah-bLwza2ArEUB8ciWFDhWoohXk",shared:"v3.5.0--bBeOy6BqvLgdAmOSGoiT2UlK2eyGgjbCTkuFA3AThHM"},b={pages:"_content_pages",blogPosts:"_content_blogPosts",blogAuthors:"_content_blogAuthors",blogCategories:"_content_blogCategories",blogTags:"_content_blogTags",customers:"_content_customers",pressReleases:"_content_pressReleases",theSource:"_content_theSource",theSourceAuthors:"_content_theSourceAuthors",shared:"_content_shared",info:"_content_info"},w={pages:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",testContent:"json",type:"string"}},blogPosts:{type:"page",fields:{id:"string",title:"string",authors:"json",body:"json",category:"string",date:"string",description:"string",extension:"string",externalUrl:"string",featured:"boolean",heroImage:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",tags:"json",template:"string",updatedDate:"string"}},blogAuthors:{type:"page",fields:{id:"string",title:"string",body:"json",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",stem:"string"}},blogCategories:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",testContent:"json",type:"string"}},blogTags:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",testContent:"json",type:"string"}},customers:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",testContent:"json",type:"string"}},pressReleases:{type:"page",fields:{id:"string",title:"string",body:"json",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",stem:"string"}},theSource:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",type:"string"}},theSourceAuthors:{type:"page",fields:{id:"string",title:"string",body:"json",category:"string",config:"json",content:"json",description:"string",extension:"string",meta:"json",navigation:"json",path:"string",seo:"json",slug:"string",stem:"string",testContent:"json",type:"string"}},shared:{type:"data",fields:{id:"string",extension:"string",meta:"json",stem:"string"}},info:{type:"data",fields:{}}},u=(o,r)=>{const n=o._conditions;return n.length>0?`(${n.join(` ${r} `)})`:""},l=o=>{const r=[],n={_conditions:r,where(e,i,t){let s;switch(i.toUpperCase()){case"IN":case"NOT IN":if(Array.isArray(t)){const g=t.map(a=>c(a)).join(", ");s=`"${String(e)}" ${i.toUpperCase()} (${g})`}else throw new TypeError(`Value for ${i} must be an array`);break;case"BETWEEN":case"NOT BETWEEN":if(Array.isArray(t)&&t.length===2)s=`"${String(e)}" ${i.toUpperCase()} ${c(t[0])} AND ${c(t[1])}`;else throw new Error(`Value for ${i} must be an array with two elements`);break;case"IS NULL":case"IS NOT NULL":s=`"${String(e)}" ${i.toUpperCase()}`;break;case"LIKE":case"NOT LIKE":s=`"${String(e)}" ${i.toUpperCase()} ${c(t)}`;break;default:s=`"${String(e)}" ${i} ${c(typeof t=="boolean"?Number(t):t)}`}return r.push(`${s}`),n},andWhere(e){const i=e(l());return r.push(u(i,"AND")),n},orWhere(e){const i=e(l());return r.push(u(i,"OR")),n}};return n},_=(o,r)=>{const n={conditions:[],selectedFields:[],offset:0,limit:0,orderBy:[],count:{field:"",distinct:!1}},e={__params:n,andWhere(t){const s=t(l());return n.conditions.push(u(s,"AND")),e},orWhere(t){const s=t(l());return n.conditions.push(u(s,"OR")),e},path(t){return e.where("path","=",h(t))},skip(t){return n.offset=t,e},where(t,s,g){return e.andWhere(a=>a.where(String(t),s,g)),e},limit(t){return n.limit=t,e},select(...t){return t.length&&n.selectedFields.push(...t),e},order(t,s){return n.orderBy.push(`"${String(t)}" ${s}`),e},async all(){return r(o,i()).then(t=>t||[])},async first(){return r(o,i({limit:1})).then(t=>t[0]||null)},async count(t="*",s=!1){return r(o,i({count:{field:String(t),distinct:s}})).then(g=>g[0].count)}};function i(t={}){let s="SELECT ";if(t?.count)s+=`COUNT(${t.count.distinct?"DISTINCT ":""}${t.count.field}) as count`;else{const a=Array.from(new Set(n.selectedFields));s+=a.length>0?a.map(p=>`"${String(p)}"`).join(", "):"*"}s+=` FROM ${b[String(o)]}`,n.conditions.length>0&&(s+=` WHERE ${n.conditions.join(" AND ")}`),n.orderBy.length>0?s+=` ORDER BY ${n.orderBy.join(", ")}`:s+=" ORDER BY stem ASC";const g=t?.limit||n.limit;return g>0&&(n.offset>0?s+=` LIMIT ${g} OFFSET ${n.offset}`:s+=` LIMIT ${g}`),s}return e};function c(o){return`'${String(o).replace(/'/g,"''")}'`}async function d(o,r,n,e){const i=o?y(o):{};i["accept-encoding"]=void 0;const t=`/__nuxt_content/${r}/${n}`,s={...e,headers:{...i,...e.headers},query:{v:m[String(r)],t:void 0}};return o?await o.$fetch(t,s):await $fetch(t,s)}async function E(o,r){return d(o,r,"sql_dump.txt",{responseType:"text",headers:{"content-type":"text/plain"}})}async function A(o,r,n){return d(o,r,"query",{headers:{"content-type":"application/json"},method:"POST",body:{sql:n}})}const T=o=>{const r=j()?.ssrContext?.event;return _(o,(n,e)=>$(r,n,e))};async function $(o,r,n){return window.WebAssembly?S(r,n):A(o,String(r),n)}async function S(o,r){return await f(()=>import("./B9wAkg6b.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.loadDatabaseAdapter(o)).then(e=>e.all(r))}export{m as a,w as c,E as f,T as q,b as t};

AltStyle によって変換されたページ (->オリジナル) /