const __nceFramerBase=new URL("../../",import.meta.url).href; import{n as e,t}from"./rolldown-runtime.Dh6celcD.mjs";import{F as n,L as r,T as i,d as a,m as o,o as s,s as c,z as l}from"./react.typNXLzE.mjs";import{E as u}from"./motion.BS7jS5VD.mjs";import{S as d,X as f,g as ee,j as te,o as p,r as ne,t as re}from"./framer.B-_H5xWB.mjs";function ie(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function m(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function h(e){throw Error(`Unexpected value: ${e}`)}function g(e){return typeof e==`string`}function _(e){return Number.isFinite(e)}function v(e){return e===null}function y(e){if(v(e))return 0;switch(e.type){case p.Array:return 1;case p.Boolean:return 2;case p.Color:return 3;case p.Date:return 4;case p.Enum:return 5;case p.File:return 6;case p.ResponsiveImage:return 10;case p.Link:return 7;case p.Number:return 8;case p.Object:return 9;case p.RichText:return 11;case p.String:return 12;case p.VectorSetItem:return 13;default:h(e)}}function ae(e){let t=e.readUint16(),n=[];for(let r=0;ri)return 1;for(let i=0;it.value)}function de(e){return{type:p.Color,value:e.readString()}}function fe(e,t){e.writeString(t.value)}function pe(e,t){return e.valuet.value)}function me(e){let t=e.readInt64(),n=new Date(t);return{type:p.Date,value:n.toISOString()}}function he(e,t){let n=new Date(t.value).getTime();e.writeInt64(n)}function ge(e,t){let n=new Date(e.value),r=new Date(t.value);return nr)}function _e(e){return{type:p.Enum,value:e.readString()}}function ve(e,t){e.writeString(t.value)}function ye(e,t){return e.valuet.value)}function be(e){return{type:p.File,value:e.readString()}}function xe(e,t){e.writeString(t.value)}function Se(e,t){return e.valuet.value)}function Ce(e){return{type:p.Link,value:e.readJson()}}function we(e,t){e.writeJson(t.value)}function Te(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr)}function Ee(e){return{type:p.Number,value:e.readFloat64()}}function De(e,t){e.writeFloat64(t.value)}function Oe(e,t){return e.valuet.value)}function ke(e){let t=e.readUint16(),n={};for(let r=0;ri.length)return 1;for(let a=0;as)return 1;let c=e.value[o]??null,l=t.value[s]??null,u=x.compare(c,l,n);if(u!==0)return u}return 0}function Me(e){return{type:p.ResponsiveImage,value:e.readJson()}}function Ne(e,t){e.writeJson(t.value)}function Pe(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr)}function Fe(e){let t=e.readInt8();if(t===0)return{type:p.RichText,value:e.readUint32()};if(t===1)return{type:p.RichText,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Ie(e,t){if(_(t.value)){e.writeInt8(0),e.writeUint32(t.value);return}if(g(t.value)){e.writeInt8(1),e.writeString(t.value);return}throw Error(`Invalid rich text pointer`)}function Le(e,t){let n=e.value,r=t.value;if(_(n)&&_(r)||g(n)&&g(r))return nr);throw Error(`Invalid rich text pointer`)}function Re(e){return{type:p.String,value:e.readString()}}function ze(e,t){e.writeString(t.value)}function Be(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),ri)}function Ve(e){return{type:p.VectorSetItem,value:e.readUint32()}}function He(e,t){e.writeUint32(t.value)}function Ue(e,t){let n=e.value,r=t.value;return nr)}async function We(e){let t=Math.floor(z*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function Ge(e,t){let n=Ke(t),r=[],i=0;for(let e of n)r.push(`${e.from}-${e.to-1}`),i+=e.to-e.from;let a=new URL(e),o=r.join(`,`);a.searchParams.set(`range`,o);let s=await V(a);if(s.status!==200)throw Error(`Request failed: ${s.status} ${s.statusText}`);let c=await s.arrayBuffer(),l=new Uint8Array(c);if(l.length!==i)throw Error(`Request failed: Unexpected response length`);let u=new H,d=0;for(let e of n){let t=e.to-e.from,n=d+t,r=l.subarray(d,n);u.write(e.from,r),d=n}return t.map(e=>u.read(e.from,e.to-e.from))}function b(e,t){let n=e.length+t.length,r=new Uint8Array(n);return r.set(e,0),r.set(t,e.length),r}function Ke(e){m(e.length>0,`Must have at least one range`);let t=[...e].sort((e,t)=>e.from-t.from),n=[];for(let e of t){let t=n.length-1,r=n[t];r&&e.from<=r.to?n[t]={from:r.from,to:Math.max(r.to,e.to)}:n.push(e)}return n}var x,S,C,w,T,qe,Je,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,Ye=t((()=>{r(),f(),S=Object.create,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,qe=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty,E=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>function(){return t||(0,e[T(e)[0]])((t={exports:{}}).exports,t),t.exports},O=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of T(t))Je.call(e,i)||i===n||C(e,i,{get:()=>t[i],enumerable:!(r=w(t,i))||r.enumerable});return e},k=(e,t,n)=>(n=e==null?{}:S(qe(e)),O(!t&&e&&e.__esModule?n:C(n,`default`,{value:e,enumerable:!0}),e)),A=(e,t,n)=>E(e,typeof t==`symbol`?t:t+``,n),j=k(D({"../../../node_modules/dataloader/index.js"(e,t){var n,r=function(){function e(e,t){if(typeof e!=`function`)throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: `+e+`.`);this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!==e.batch))return 1;var t=e&&e.maxBatchSize;if(t===void 0)return 1/0;if(typeof t!=`number`||t<1)throw TypeError(`maxBatchSize must be a positive number: `+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(t===void 0)return i;if(typeof t!=`function`)throw TypeError(`batchScheduleFn must be a function: `+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(t===void 0)return function(e){return e};if(typeof t!=`function`)throw TypeError(`cacheKeyFn must be a function: `+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!==e.cache))return null;var t=e&&e.cacheMap;if(t===void 0)return new Map;if(t!==null){var n=[`get`,`set`,`delete`,`clear`].filter(function(e){return t&&typeof t[e]!=`function`});if(n.length!==0)throw TypeError(`Custom cacheMap missing methods: `+n.join(`, `))}return t}(t),this._batch=null,this.name=t&&t.name?t.name:null}var t=e.prototype;return t.load=function(e){if(e==null)throw TypeError(`The loader.load() function must be called with a value, but got: `+String(e)+`.`);var t=function(e){var t=e._batch;if(t!==null&&!t.hasDispatched&&t.keys.length and returns Promise>, but the function errored synchronously: `+String(n)+`.`))}if(!n||typeof n.then!=`function`)return a(e,t,TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: `+String(n)+`.`));n.then(function(e){if(!s(e))throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: `+String(e)+`.`);if(e.length!==t.keys.length)throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys. Keys: `+String(t.keys)+` Values: `+String(e));o(t);for(var n=0;n but got: `+e+`.`);for(var t=[],n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}t.exports=r}})(),1),M={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},N=class{getOffset(){return this.offset}ensureLength(e){let t=this.bytes.length;if(!(this.offset+e<=t))throw Error(`Reading out of bounds`)}readUint8(){let e=M.Uint8;this.ensureLength(e);let t=this.view.getUint8(this.offset);return this.offset+=e,t}readUint16(){let e=M.Uint16;this.ensureLength(e);let t=this.view.getUint16(this.offset);return this.offset+=e,t}readUint32(){let e=M.Uint32;this.ensureLength(e);let t=this.view.getUint32(this.offset);return this.offset+=e,t}readUint64(){let e=this.readBigUint64();return Number(e)}readBigUint64(){let e=M.BigUint64;this.ensureLength(e);let t=this.view.getBigUint64(this.offset);return this.offset+=e,t}readInt8(){let e=M.Int8;this.ensureLength(e);let t=this.view.getInt8(this.offset);return this.offset+=e,t}readInt16(){let e=M.Int16;this.ensureLength(e);let t=this.view.getInt16(this.offset);return this.offset+=e,t}readInt32(){let e=M.Int32;this.ensureLength(e);let t=this.view.getInt32(this.offset);return this.offset+=e,t}readInt64(){let e=this.readBigInt64();return Number(e)}readBigInt64(){let e=M.BigInt64;this.ensureLength(e);let t=this.view.getBigInt64(this.offset);return this.offset+=e,t}readFloat32(){let e=M.Float32;this.ensureLength(e);let t=this.view.getFloat32(this.offset);return this.offset+=e,t}readFloat64(){let e=M.Float64;this.ensureLength(e);let t=this.view.getFloat64(this.offset);return this.offset+=e,t}readBytes(e){let t=this.offset,n=t+e,r=this.bytes.subarray(t,n);return this.offset=n,r}readString(){let e=this.readUint32(),t=this.readBytes(e);return this.decoder.decode(t)}readJson(){let e=this.readString();return JSON.parse(e)}constructor(e){this.bytes=e,A(this,`offset`,0),A(this,`view`),A(this,`decoder`,new TextDecoder),this.view=ie(this.bytes)}},l!==void 0&&l.requestIdleCallback,P=e=>2**e-1,F=e=>-(2**(e-1)),I=e=>2**(e-1)-1,F(8),F(16),F(32),-(BigInt(2)**BigInt(63)),P(8),P(16),P(32),BigInt(2)**BigInt(64)-BigInt(1),I(8),I(16),I(32),BigInt(2)**BigInt(63)-BigInt(1),L=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return m(_(n),`Invalid chunkId`),m(_(r),`Invalid offset`),m(_(i),`Invalid length`),new e(n,r,i)}toString(){return`${this.chunkId}/${this.offset}/${this.length}`}static read(t){let n=t.readUint16(),r=t.readUint32(),i=t.readUint32();return new e(n,r,i)}write(e){e.writeUint16(this.chunkId),e.writeUint32(this.offset),e.writeUint32(this.length)}compare(e){return this.chunkIde.chunkId?1:this.offsete.offset?1:(m(this.length===e.length),0)}constructor(e,t,n){this.chunkId=e,this.offset=t,this.length=n}},(e=>{e.read=function(e){let t=e.readUint8();switch(t){case 0:return null;case 1:return ae(e);case 2:return ce(e);case 3:return de(e);case 4:return me(e);case 5:return _e(e);case 6:return be(e);case 7:return Ce(e);case 8:return Ee(e);case 9:return ke(e);case 10:return Me(e);case 11:return Fe(e);case 12:return Re(e);case 13:return Ve(e);default:h(t)}},e.write=function(e,t){let n=y(t);if(e.writeUint8(n),!v(t))switch(t.type){case p.Array:return oe(e,t);case p.Boolean:return le(e,t);case p.Color:return fe(e,t);case p.Date:return he(e,t);case p.Enum:return ve(e,t);case p.File:return xe(e,t);case p.Link:return we(e,t);case p.Number:return De(e,t);case p.Object:return Ae(e,t);case p.ResponsiveImage:return Ne(e,t);case p.RichText:return Ie(e,t);case p.VectorSetItem:return He(e,t);case p.String:return ze(e,t);default:h(t)}},e.compare=function(e,t,n){let r=y(e),i=y(t);if(ri)return 1;if(v(e)||v(t))return 0;switch(e.type){case p.Array:return m(t.type===p.Array),se(e,t,n);case p.Boolean:return m(t.type===p.Boolean),ue(e,t);case p.Color:return m(t.type===p.Color),pe(e,t);case p.Date:return m(t.type===p.Date),ge(e,t);case p.Enum:return m(t.type===p.Enum),ye(e,t);case p.File:return m(t.type===p.File),Se(e,t);case p.Link:return m(t.type===p.Link),Te(e,t);case p.Number:return m(t.type===p.Number),Oe(e,t);case p.Object:return m(t.type===p.Object),je(e,t,n);case p.ResponsiveImage:return m(t.type===p.ResponsiveImage),Pe(e,t);case p.RichText:return m(t.type===p.RichText),Le(e,t);case p.VectorSetItem:return m(t.type===p.VectorSetItem),Ue(e,t);case p.String:return m(t.type===p.String),Be(e,t,n);default:h(e)}}})(x||={}),R=3,z=250,B=[408,429,500,502,503,504],V=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!B.includes(r.status)||++n>R)return r}catch(e){if(t?.signal?.aborted||++n>R)throw e}await We(n)}},H=class{read(e,t){for(let n of this.chunks){if(en.end)continue;if(e+t>n.end)break;let r=e-n.start,i=r+t;return n.data.slice(r,i)}throw Error(`Missing data`)}write(e,t){let n=e,r=n+t.length,i=0,a=this.chunks.length;for(;ie.end)){if(n>e.start){let r=n-e.start;t=b(e.data.subarray(0,r),t),n=e.start}break}}for(;a>i;a--){let e=this.chunks[a-1];if(m(e,`Missing chunk`),!(r{if(!e.ok)throw Error(`Request failed: ${e.status} ${e.statusText}`);let t=await e.arrayBuffer(),n=new N(new Uint8Array(t)),r=[],i=n.readUint32();for(let e=0;e{let t=e.map(e=>{let t=L.fromString(e);return{from:t.offset,to:t.offset+t.length}});return(await Ge(this.url,t)).map((t,n)=>{let r=new N(t),i=U.read(r),a=e[n];return m(a,`Missing pointer`),{pointer:a,data:i.getData()}})},{maxBatchSize:250}))}},G=class{async scanItems(){return(await Promise.all(this.chunks.map(async e=>e.scanItems()))).flat()}resolveItems(e){return Promise.all(e.map(e=>{let t=L.fromString(e),n=this.chunks[t.chunkId];return m(n,`Missing chunk`),n.resolveItem(e)}))}compareItems(e,t){let n=L.fromString(e.pointer),r=L.fromString(t.pointer);return n.compare(r)}compareValues(e,t,n){return x.compare(e,t,n)}constructor(e){this.options=e,A(this,`id`),A(this,`schema`),A(this,`indexes`),A(this,`resolveRichText`),A(this,`resolveVectorSetItem`),A(this,`chunks`),this.chunks=this.options.chunks.map((e,t)=>new W(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}}));function K(e){return typeof e==`object`&&!!e&&!o(e)&&J in e}function Xe(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function Ze(e){let t=new Map;return r=>{let i=t.get(r);if(i)return i;let o=function t(r){switch(r[0]){case 1:{let[,...e]=r;return a(n,void 0,...e.map(t))}case 2:{let[,e,...n]=r;return a(ee,e,...n.map(t))}case 3:{let[,n,i,a,o]=r;for(let e of a){let n=i[e];n&&(i[e]=t(n))}for(let t of o){let n=i[t];if(typeof n!=`string`)continue;let r=e[n];r&&(K(r)&&r.preload(),i[t]=r)}let c=e[n];return Xe(c,`Module not found`),K(c)&&c.preload(),s(ne,{componentIdentifier:n,children:e=>s(re,{component:c,props:{...e,...i}})})}case 4:{let[,e,n,...i]=r,o=i.map(t);return a(e===`a`?u.a:e,n,...o)}case 5:{let[,e]=r;return e}}}(JSON.parse(r));return t.set(r,o),o}}var q,J,Y,Qe=t((()=>{r(),c(),f(),i(),l!==void 0&&l.requestIdleCallback,J=`preload`,Y=((q=Y||{})[q.Fragment=1]=`Fragment`,q[q.Link=2]=`Link`,q[q.Module=3]=`Module`,q[q.Tag=4]=`Tag`,q[q.Text=5]=`Text`,q)})),$e=e({default:()=>$,utils:()=>nt}),X,Z,et,tt,Q,$,nt,rt=t((()=>{f(),Ye(),Qe(),X={createdAt:{isNullable:!0,type:p.Date},ePHsrKTJ5:{isNullable:!0,type:p.String},id:{isNullable:!1,type:p.String},nextItemId:{isNullable:!0,type:p.String},P9nt1MNVX:{isNullable:!0,type:p.String},previousItemId:{isNullable:!0,type:p.String},updatedAt:{isNullable:!0,type:p.Date},YBRHixoB2:{isNullable:!0,type:p.RichText}},Z=[],et=e=>{let t=Z[e];if(t)return t().then(e=>e.default)},tt=Ze({}),Q=new d,$={collectionByLocaleId:{default:new G({chunks:[new URL(`./hcbBLBC_P-chunk-default-0.framercms`,`${__nceFramerBase}cms/AYSFc5kvum1ElF77DJrI/3dNkS3kxVwYELRywefvF/hcbBLBC_P.js`).href.replace(`/modules/`,`/cms/`)],id:`a47d3379-08e4-40ad-93f3-358e0456bbd4default`,indexes:[],resolveRichText:tt,resolveVectorSetItem:et,schema:X})},displayName:`Categories`,id:`a47d3379-08e4-40ad-93f3-358e0456bbd4`},te($,{ePHsrKTJ5:{defaultValue:``,title:`Title`,type:p.String},P9nt1MNVX:{preventLocalization:!0,title:`Slug`,type:p.String},YBRHixoB2:{defaultValue:``,title:`Content`,type:p.RichText},createdAt:{title:`Created`,type:p.Date},updatedAt:{title:`Updated`,type:p.Date},previousItemId:{dataIdentifier:`local-module:collection/hcbBLBC_P:default`,title:`Previous`,type:p.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/hcbBLBC_P:default`,title:`Next`,type:p.CollectionReference}}),nt={async getSlugByRecordId(e,t){let[n]=await Q.query({from:{data:$,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`P9nt1MNVX`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.P9nt1MNVX},async getRecordIdBySlug(e,t){let[n]=await Q.query({from:{data:$,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`P9nt1MNVX`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id}}}));export{$e as n,rt as r,$ as t}; //# sourceMappingURL=hcbBLBC_P.DYqvmfFK.mjs.map