1import{av as T,a6 as P,ai as z,a1 as U}from"./entry.17b5fbb9.js";import{g as W,a as K,b as E,s as B,c as R,w as J,d as b,f as F}from"./query.3c3e8acc.js";import{p as H}from"./index.921125e3.js";import{u as D}from"./preview.96cb7733.js";import"./index.ebcf8480.js";import"./utils.5c2fa060.js";const q="memory",G=()=>{const e=new Map;return{name:q,options:{},hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,n){e.set(t,n)},setItemRaw(t,n){e.set(t,n)},removeItem(t){e.delete(t)},getKeys(){return Array.from(e.keys())},clear(){e.clear()},dispose(){e.clear()}}},k=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Z=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,V=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Q(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){X(e);return}return t}function X(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function $(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const i=n.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;if(i==="undefined")return;if(i==="null")return null;if(i==="nan")return Number.NaN;if(i==="infinity")return Number.POSITIVE_INFINITY;if(i==="-infinity")return Number.NEGATIVE_INFINITY}if(!V.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(k.test(e)||Z.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Q)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function ee(e){return!e||typeof e.then!="function"?Promise.resolve(e):e}function g(e,...t){try{return ee(e(...t))}catch(n){return Promise.reject(n)}}function te(e){const t=typeof e;return e===null||t!=="object"&&t!=="function"}function re(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function _(e){if(te(e))return String(e);if(re(e)||Array.isArray(e))return JSON.stringify(e);if(typeof e.toJSON=="function")return _(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function L(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const N="base64:";function ne(e){if(typeof e=="string")return e;L();const t=Buffer.from(e).toString("base64");return N+t}function ie(e){return typeof e!="string"||!e.startsWith(N)?e:(L(),Buffer.from(e.slice(N.length),"base64"))}const ae=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function se(e,t){if(t=A(t),!t)return e;const n={...e};for(const i of ae)n[i]=(o="",...u)=>e[i](t+o,...u);return n.getKeys=(i="",...o)=>e.getKeys(t+i,...o).then(u=>u.map(l=>l.slice(t.length))),n}function y(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function oe(...e){return y(e.join(":"))}function A(e){return e=y(e),e?e+":":""}const ue="memory",ce=()=>{const e=new Map;return{name:ue,options:{},hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,n){e.set(t,n)},setItemRaw(t,n){e.set(t,n)},removeItem(t){e.delete(t)},getKeys(){return Array.from(e.keys())},clear(){e.clear()},dispose(){e.clear()}}};function fe(e={}){const t={mounts:{"":e.driver||ce()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=r=>{for(const a of t.mountpoints)if(r.startsWith(a))return{base:a,relativeKey:r.slice(a.length),driver:t.mounts[a]};return{base:"",relativeKey:r,driver:t.mounts[""]}},i=(r,a)=>t.mountpoints.filter(s=>s.startsWith(r)||a&&r.startsWith(s)).map(s=>({relativeBase:r.length>s.length?r.slice(s.length):void 0,mountpoint:s,driver:t.mounts[s]})),o=(r,a)=>{if(t.watching){a=y(a);for(const s of t.watchListeners)s(r,a)}},u=async()=>{if(!t.watching){t.watching=!0;for(const r in t.mounts)t.unwatch[r]=await x(t.mounts[r],o,r)}},l=async()=>
1{if(t.watching){for(const r in t.unwatch)await t.unwatch[r]();t.unwatch={},t.watching=!1}},h=(r,a,s)=>{const c=new Map,f=m=>{let d=c.get(m.base);return d||(d={driver:m.driver,base:m.base,items:[]},c.set(m.base,d)),d};for(const m of r){const d=typeof m=="string",v=y(d?m:m.key),w=d?void 0:m.value,I=d||!m.options?a:{...a,...m.options},O=n(v);f(O).items.push({key:v,value:w,relativeKey:O.relativeKey,options:I})}return Promise.all([...c.values()].map(m=>s(m))).then(m=>m.flat())},p={hasItem(r,a={}){r=y(r);const{relativeKey:s,driver:c}=n(r);return g(c.hasItem,s,a)},getItem(r,a={}){r=y(r);const{relativeKey:s,driver:c}=n(r);return g(c.getItem,s,a).then(f=>$(f))},getItems(r,a){return h(r,a,s=>s.driver.getItems?g(s.driver.getItems,s.items.map(c=>({key:c.relativeKey,options:c.options})),a).then(c=>c.map(f=>({key:oe(s.base,f.key),value:$(f.value)}))):Promise.all(s.items.map(c=>g(s.driver.getItem,c.relativeKey,c.options).then(f=>({key:c.key,value:$(f)})))))},getItemRaw(r,a={}){r=y(r);const{relativeKey:s,driver:c}=n(r);return c.getItemRaw?g(c.getItemRaw,s,a):g(c.getItem,s,a).then(f=>ie(f))},async setItem(r,a,s={}){if(a===void 0)return p.removeItem(r);r=y(r);const{relativeKey:c,driver:f}=n(r);f.setItem&&(await g(f.setItem,c,_(a),s),f.watch||o("update",r))},async setItems(r,a){await h(r,a,async s=>{s.driver.setItems&&await g(s.driver.setItems,s.items.map(c=>({key:c.relativeKey,value:_(c.value),options:c.options})),a),s.driver.setItem&&await Promise.all(s.items.map(c=>g(s.driver.setItem,c.relativeKey,_(c.value),c.options)))})},async setItemRaw(r,a,s={}){if(a===void 0)return p.removeItem(r,s);r=y(r);const{relativeKey:c,driver:f}=n(r);if(f.setItemRaw)await g(f.setItemRaw,c,a,s);else if(f.setItem)await g(f.setItem,c,ne(a),s);else return;f.watch||o("update",r)},async removeItem(r,a={}){typeof a=="boolean"&&(a={removeMeta:a}),r=y(r);const{relativeKey:s,driver:c}=n(r);c.removeItem&&(await g(c.removeItem,s,a),(a.removeMeta||a.removeMata)&&await g(c.removeItem,s+"$",a),c.watch||o("remove",r))},async getMeta(r,a={}){typeof a=="boolean"&&(a={nativeOnly:a}),r=y(r);const{relativeKey:s,driver:c}=n(r),f=Object.create(null);if(c.getMeta&&Object.assign(f,await g(c.getMeta,s,a)),!a.nativeOnly){const m=await g(c.getItem,s+"$",a).then(d=>$(d));m&&typeof m=="object"&&(typeof m.atime=="string"&&(m.atime=new Date(m.atime)),typeof m.mtime=="string"&&(m.mtime=new Date(m.mtime)),Object.assign(f,m))}return f},setMeta(r,a,s={}){return this.setItem(r+"$",a,s)},removeMeta(r,a={}){return this.removeItem(r+"$",a)},async getKeys(r,a={}){r=A(r);const s=i(r,!0);let c=[];const f=[];for(const m of s){const v=(await g(m.driver.getKeys,m.relativeBase,a)).map(w=>m.mountpoint+y(w)).filter(w=>!c.some(I=>w.startsWith(I)));f.push(...v),c=[m.mountpoint,...c.filter(w=>!w.startsWith(m.mountpoint))]}return r?f.filter(m=>m.startsWith(r)&&!m.endsWith("$")):f.filter(m=>!m.endsWith("$"))},async clear(r,a={}){r=A(r),await Promise.all(i(r,!1).map(async s=>{if(s.driver.clear)return g(s.driver.clear,s.relativeBase,a);if(s.driver.removeItem){const c=await s.driver.getKeys(s.relativeBase||"",a);return Promise.all(c.map(f=>s.driver.removeItem(f,a)))}}))},async dispose(){await Promise.all(Object.values(t.mounts).map(r=>C(r)))},async watch(r){return await u(),t.watchListeners.push(r),async()=>{t.watchListeners=t.watchListeners.filter(a=>a!==r),t.watchListeners.length===0&&await l()}},async unwatch(){t.watchListeners=[],await l()},mount(r,a){if(r=A(r),r&&t.mounts[r])throw new Error(`already mounted at ${r}`);return r&&(t.mountpoints.push(r),t.mountpoints.sort((s,c)=>c.length-s.length)),t.mounts[r]=a,t.watching&&Promise.resolve(x(a,o,r)).then(s=>{t.unwatch[r]=s}).catch(console.error),p},async unmount(r,a=!0){r=A(r),!(!r||!t.mounts[r])&&(t.watching&&r in t.unwatch&&(t.unwatch[r](),delete t.unwatch[r]),a&&await C(t.mounts[r]),t.mountpoints=t.mountpoints.filter(s=>s!==r),delete t.mounts[r])},getMount(r=""){r=y(r)+":";const a=n(r);return{driver:a.driver,base:a.base}},getMounts(r="",a={}){return r=y(r),i(r,a.parents).map(c=>({driver:c.driver,base:c.mountpoint}))}};return p}function x(e,t,n){return e.watch?e.watch((i,o)=>t(i,n+o)):()=>{}}async function C(e){typeof e.dispose=="function"&&await g(e.dispose)}function le(e={}){const t=me(n,e.operators);function n(i,o){return typeof o!="object"||o instanceof RegExp?t.$eq(i,o):Object.keys(o||{}).every(u=>{const l=o[u];if(u.startsWith("$")&&t[u]){const h=t[u];return typeof h=="function"?h(i,l):!1}return n(W(i,u),l)})}return n}function me(e,t={}){return{$match:(n,i)=>e(n,i),$eq:(n,i)=>i instanceof RegExp?i.test(n):n===i,$ne:(n,i)=>i instanceof RegExp?!i.test(n):n!==i,$not:(n,i)=>!e(n,i),$and:(n,i)=>(K(i,"$and requires an array as condition"),i.every(o=>e(n,o))),$or:(n,i)=>(K(i,"$or requires an array as condition"),i.some(o=>e(n,o))),$in:(n,i)=>E(i).some(o=>Array.isArray(n)?e(n,{$contains:o}):e(n,o)),$contains:(n,i)=>(n=Array.isArray(n)?n:String(n),E(i).every(o=>n.includes(o))),$icontains:(n,i)=>
1{if(typeof i!="string")throw new TypeError("$icontains requires a string, use $contains instead");return n=String(n).toLocaleLowerCase(),E(i).every(o=>n.includes(o.toLocaleLowerCase()))},$containsAny:(n,i)=>(K(i,"$containsAny requires an array as condition"),n=Array.isArray(n)?n:String(n),i.some(o=>n.includes(o))),$exists:(n,i)=>i?typeof n<"u":typeof n>"u",$type:(n,i)=>typeof n===String(i),$regex:(n,i)=>{if(!(i instanceof RegExp)){const o=String(i).match(/\/(.*)\/([dgimsuy]*)$/);i=o?new RegExp(o[1],o[2]||""):new RegExp(i)}return i.test(String(n||""))},$lt:(n,i)=>n<i,$lte:(n,i)=>n<=i,$gt:(n,i)=>n>i,$gte:(n,i)=>n>=i,...t||{}}}function M(e){const t=le(),n=(o,{query:u,before:l,after:h})=>{const p=typeof u=="string"?{_path:u}:u,r=o.findIndex(s=>t(s,p));l=l??1,h=h??1;const a=new Array(l+h).fill(null,0);return r===-1?a:a.map((s,c)=>o[r-l+c+ +(c>=l)]||null)},i=[(o,u)=>o.filter(l=>E(u.where).every(h=>t(l,h))),(o,u)=>E(u.sort).forEach(l=>B(o,l)),(o,u)=>u.surround?n(o,u.surround):o,(o,u)=>u.skip?o.slice(u.skip):o,(o,u)=>u.limit?o.slice(0,u.limit):o,(o,u)=>R(J(u.without))(o),(o,u)=>R(b(u.only))(o)];return async o=>{const u=await e(),l=o.params(),h=i.reduce((p,r)=>r(p,l)||p,u);return l.first?h[0]:h}}var pe={exports:{}};(function(e,t){(function(n,i,o){e.exports=o(),e.exports.default=o()})("slugify",T,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","Â¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","Ã":"AE","Ã":"C","Ã":"E","Ã":"E","Ã":"E","Ã":"E","Ã":"I","Ã":"I","Ã":"I","Ã":"I","Ã":"D","Ã":"N","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"U","Ã":"U","Ã":"U","Ã":"U","Ã":"Y","Ã":"TH","Ã":"ss","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","Ã":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨"
1:"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E'","Ô¸":"Y'","Ô¹":"T'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C'","Ô¿":"K","Õ":"H","Õ":"D'","Õ":"GH","Õ":"TW","Õ":"M","Õ
":"Y","Õ":"N","Õ":"SH","Õ":"CH","Õ":"P","Õ":"J","Õ":"R'","Õ":"S","Õ":"V","Õ":"T","Õ":"R","Õ":"C","Õ":"P'","Õ":"Q'","Õ":"O''","Õ":"F","Ö":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","Ù":"f","Ù":"q","Ù":"k","Ù":"l","Ù
":"m","Ù":"n","Ù":"h","Ù":"w","Ù":"a","Ù":"y","Ù":"an","Ù":"on","Ù":"en","Ù":"a","Ù":"u","Ù":"e","Ù":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","Ú":"ch","Ú":"zh","Ú©":"k","Ú¯":"g","Û":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","á¹¢":"S","á¹£":"s","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"-","â":"'","â":"'","â":"\\"","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å
":"yuan","å":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}`),i=JSON.parse('{"bg":{"Ð":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","Ñ":"ts","Ñ":"sht","Ñ":"a","Ñ":"y"},"de":{"Ã":"AE","ä":"ae","Ã":"OE","ö":"oe","Ã":"UE","ü":"ue","Ã":"ss","%":"prozent","&":"und","|":"oder","â":"summe","â":"unendlich","â¥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","â£":"francos","â":"suma","â":"infinito","â¥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","â£":"franc","â":"somme","â":"infini","â¥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","â":"soma","£":"libra","â":"infinito","â¥":"amor"},"uk":{"Ð":"Y","и":"y","Ð":"Y","й":"y","Ц":"Ts","Ñ":"ts","Ð¥":"Kh","Ñ
":"kh","Щ":"Shch","Ñ":"shch","Ð":"H","г":"h"},"vi":{"Ä":"D","Ä":"d"},"da":{"Ã":"OE","ø":"oe","Ã
":"AA","Ã¥":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Ã
":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Ã
":"AA","Ã":"AE","Ã":"OE","Ã¥":"aa","ä":"ae","ö":"oe"}}');function o(u,l){if(typeof u!="string")throw new Error("slugify: string argument expected");l=typeof l=="string"?{replacement:l}:l||{};var h=i[l.locale]||{},p=l.replacement===void 0?"-":l.replacement,r=l.trim===void 0?!0:l.trim,a=u.normalize().split("").reduce(function(s,c){var f=h[c];return f===void 0&&(f=n[c]),f===void 0&&(f=c),f===p&&(f=" "),s+f.replace(l.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return l.strict&&(a=a.replace(/[^A-Za-z0-9\s]/g,"")),r&&(a=a.trim()),a=a.replace(/\s+/g,p),l.lower&&(a=a.toLowerCase()),a}return o.extend=function(u){Object.assign(n,u)},o})})(pe);const he=e=>e.split(/[\s-]/g).map(H).join(" ");function ge(e,t){const{navigation:n}=P().public.content,i=u=>({...de(["title",...n.fields])(u),...we(u==null?void 0:u.navigation)?u.navigation:{}}),o=e.sort((u,l)=>u._path.localeCompare(l._path)).reduce((u,l)=>{const h=l._path.substring(1).split("/"),p=l._id.split(":").slice(1),r=!!p[p.length-1].match(/([1-9][0-9]*\.)?index.md/g),a=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...i(f),...f._draft?{_draft:!0}:{}}),s=a(l);if(r){const f=t[s._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return u;if(l._path!=="/"){const m=a(l);s.children.push(m)}Object.assign(s,i(f))}return h.length===1?(u.push(s),u):(h.slice(0,-1).reduce((f,m,d)=>{const v="/"+h.slice(0,d+1).join("/"),w=t[v];if(typeof(w==null?void 0:w.navigation)<"u"&&!w.navigation)return[];let I=f.find(O=>O._path===v);return I||(I={title:he(m),_path:v,_file:l._file,children:[],...i(w)},f.push(I)),I.children},u).push(s),u)},[]);return Y(o)}const ye=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function Y(e){var n;const t=e.sort((i,o)=>ye.compare(i._file,o._file));for(const i of t)(n=i.children)!=null&&n.length?Y(i.children):delete i.children,delete i._file;return e}function de(e){return t=>(t=t||{},e&&e.length?e.filter(n=>typeof t[n]<"u").reduce((n,i)=>Object.assign(n,{[i]:t[i]}),{}):t)}function we(e){return Object.prototype.toString.call(e)==="[object Object]"}const ve=e=>z(e,P().public.content.api.baseURL),Ie=se(fe({driver:G()}),"@content");function Ae(e){async function t(){const n=new Set(await e.getKeys("cache:")),i=D().getPreviewToken();if(i){const u=await e.getItem(`${i}$`).then(p=>p||{});if(Array.isArray(u.ignoreSources)){const p=u.ignoreSources.map(r=>`cache:${r.trim()}:`);for(const r of n)p.some(a=>r.startsWith(a))&&n.delete(r)}const l=await e.getKeys(`${i}:`),h=await Promise.all(l.map(p=>e.getItem(p)));for(const p of h)n.delete(`cache:${p._id}`),p.__deleted||n.add(`${i}:${p._id}`)}return await Promise.all(Array.from(n).map(u=>e.getItem(u)))}return{storage:e,fetch:M(t),query:n=>F(M(t),n)}}let j=null,S=null;async function Ee(){return S?await S:j||(S=Oe(),j=await S),j}async function Oe(){const e=U(),{content:t}=P().public,n=Ae(Ie),i=await n.storage.getItem("integrity");if(t.integrity!==+(i||0)){const{contents:o,navigation:u}=await $fetch(ve(t.integrity?`cache.${t.integrity}.json`:"cache.json"));await Promise.all(o.map(l=>n.storage.setItem(`cache:${l._id}`,l))),await n.storage.setItem("navigation",u),await n.storage.setItem("integrity",t.integrity)}return await e.callHook("content:storage",n.storage),n}async function Pe(e){const t=await Ee();if(!D().getPreviewToken()&&Object.keys(e||{}).length===0)return t.storage.getItem("navigation");const n=await t.query(e).where({_partial:!1,navigation:{$ne:!1}}).find(),o=(await t.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((u,l)=>{var p;((p=l.title)==null?void 0:p.toLowerCase())==="dir"&&(l.title=void 0);const h=l._path.split("/").slice(0,-1).join("/")||"/";return u[h]={...l,...l.body},u},{});return ge(n,o)}export{Ie as contentStorage,Ae as createDB,Pe as generateNavigation,Ee as useContentDatabase};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.