import{t as e}from"./rolldown-runtime.CMAw1HyY.mjs";import{B as t,E as n,H as r,I as i,d as a,l as o,p as s,s as c}from"./react.CI8P-fjo.mjs";import{C as l}from"./motion.BVf0CFxb.mjs";import{$ as u,E as d,N as ee,o as f,r as te,t as ne,y as re}from"./framer.Wxc585TD.mjs";function p(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,t,n,r){m(e>=t,e,`outside lower bound for`,r),m(e<=n,e,`outside upper bound for`,r)}function _(e){return typeof e==`string`}function v(e){return Number.isFinite(e)}function y(e){return e===null}function b(e){if(y(e))return 0;switch(e.type){case f.Array:return 1;case f.Boolean:return 2;case f.Color:return 3;case f.Date:return 4;case f.Enum:return 5;case f.File:return 6;case f.ResponsiveImage:return 10;case f.Link:return 7;case f.Number:return 8;case f.Object:return 9;case f.RichText:return 11;case f.String:return 12;case f.VectorSetItem:return 13;default:h(e)}}function ie(e){let t=e.readUint16(),n=[];for(let r=0;ri)return 1;for(let i=0;it.value?1:0}function ue(e){return{type:f.Color,value:e.readString()}}function de(e,t){e.writeString(t.value)}function fe(e,t){return e.valuet.value?1:0}function pe(e){let t=e.readInt64(),n=new Date(t);return{type:f.Date,value:n.toISOString()}}function me(e,t){let n=new Date(t.value).getTime();e.writeInt64(n)}function he(e,t){let n=new Date(e.value),r=new Date(t.value);return nr?1:0}function ge(e){return{type:f.Enum,value:e.readString()}}function _e(e,t){e.writeString(t.value)}function ve(e,t){return e.valuet.value?1:0}function ye(e){return{type:f.File,value:e.readString()}}function be(e,t){e.writeString(t.value)}function xe(e,t){return e.valuet.value?1:0}function Se(e){return{type:f.Link,value:e.readJson()}}function Ce(e,t){e.writeJson(t.value)}function we(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr?1:0}function Te(e){return{type:f.Number,value:e.readFloat64()}}function Ee(e,t){e.writeFloat64(t.value)}function De(e,t){return e.valuet.value?1:0}function Oe(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=C.compare(c,l,n);if(u!==0)return u}return 0}function je(e){return{type:f.ResponsiveImage,value:e.readJson()}}function Me(e,t){e.writeJson(t.value)}function Ne(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr?1:0}function Pe(e){let t=e.readInt8();if(t===0)return{type:f.RichText,value:e.readUint32()};if(t===1)return{type:f.RichText,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Fe(e,t){if(v(t.value)){e.writeInt8(0),e.writeUint32(t.value);return}if(_(t.value)){e.writeInt8(1),e.writeString(t.value);return}throw Error(`Invalid rich text pointer`)}function Ie(e,t){let n=e.value,r=t.value;if(v(n)&&v(r)||_(n)&&_(r))return nr?1:0;throw Error(`Invalid rich text pointer`)}function Le(e){return{type:f.String,value:e.readString()}}function Re(e,t){e.writeString(t.value)}function ze(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),ri?1:0}function Be(e){return{type:f.VectorSetItem,value:e.readUint32()}}function Ve(e,t){e.writeUint32(t.value)}function He(e,t){let n=e.value,r=t.value;return nr?1:0}async function Ue(e){let t=Math.floor(Qe*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function x(e,t){let n=We(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 H(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 et,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 S(e,t){let n=e.length+t.length,r=new Uint8Array(n);return r.set(e,0),r.set(t,e.length),r}function We(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 C,w,T,E,D,O,k,A,j,Ge,Ke,M,qe,N,P,Je,Ye,F,I,L,R,z,Xe,B,Ze,V,Qe,$e,H,et,U,W,tt,nt,rt=e((()=>{t(),u(),w=Object.create,T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,O=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,A=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>function(){return t||(0,e[D(e)[0]])((t={exports:{}}).exports,t),t.exports},Ge=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of D(t))k.call(e,i)||i===n||T(e,i,{get:()=>t[i],enumerable:!(r=E(t,i))||r.enumerable});return e},Ke=(e,t,n)=>(n=e==null?{}:w(O(e)),Ge(!t&&e&&e.__esModule?n:T(n,`default`,{value:e,enumerable:!0}),e)),M=(e,t,n)=>A(e,typeof t==`symbol`?t:t+``,n),qe=Ke(j({"../../../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),N={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},P=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=N.Uint8;this.ensureLength(e);let t=this.view.getUint8(this.offset);return this.offset+=e,t}readUint16(){let e=N.Uint16;this.ensureLength(e);let t=this.view.getUint16(this.offset);return this.offset+=e,t}readUint32(){let e=N.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=N.BigUint64;this.ensureLength(e);let t=this.view.getBigUint64(this.offset);return this.offset+=e,t}readInt8(){let e=N.Int8;this.ensureLength(e);let t=this.view.getInt8(this.offset);return this.offset+=e,t}readInt16(){let e=N.Int16;this.ensureLength(e);let t=this.view.getInt16(this.offset);return this.offset+=e,t}readInt32(){let e=N.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=N.BigInt64;this.ensureLength(e);let t=this.view.getBigInt64(this.offset);return this.offset+=e,t}readFloat32(){let e=N.Float32;this.ensureLength(e);let t=this.view.getFloat32(this.offset);return this.offset+=e,t}readFloat64(){let e=N.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,M(this,`offset`,0),M(this,`view`),M(this,`decoder`,new TextDecoder),this.view=p(this.bytes)}},r!==void 0&&r.requestIdleCallback,Je=1024,Ye=1.5,F=e=>2**e-1,I=e=>-(2**(e-1)),L=e=>2**(e-1)-1,R={Uint8:0,Uint16:0,Uint32:0,Uint64:0,BigUint64:0,Int8:I(8),Int16:I(16),Int32:I(32),Int64:-(2**53-1),BigInt64:-(BigInt(2)**BigInt(63))},z={Uint8:F(8),Uint16:F(16),Uint32:F(32),Uint64:2**53-1,BigUint64:BigInt(2)**BigInt(64)-BigInt(1),Int8:L(8),Int16:L(16),Int32:L(32),Int64:2**53-1,BigInt64:BigInt(2)**BigInt(63)-BigInt(1)},Xe=class{getOffset(){return this.offset}slice(e=0,t=this.offset){return this.bytes.slice(e,t)}subarray(e=0,t=this.offset){return this.bytes.subarray(e,t)}ensureLength(e){let t=this.bytes.length;if(this.offset+e<=t)return;let n=new Uint8Array(Math.ceil(t*Ye)+e);n.set(this.bytes),this.bytes=n,this.view=p(n)}writeUint8(e){g(e,R.Uint8,z.Uint8,`Uint8`);let t=N.Uint8;this.ensureLength(t),this.view.setUint8(this.offset,e),this.offset+=t}writeUint16(e){g(e,R.Uint16,z.Uint16,`Uint16`);let t=N.Uint16;this.ensureLength(t),this.view.setUint16(this.offset,e),this.offset+=t}writeUint32(e){g(e,R.Uint32,z.Uint32,`Uint32`);let t=N.Uint32;this.ensureLength(t),this.view.setUint32(this.offset,e),this.offset+=t}writeUint64(e){g(e,R.Uint64,z.Uint64,`Uint64`);let t=BigInt(e);this.writeBigUint64(t)}writeBigUint64(e){g(e,R.BigUint64,z.BigUint64,`BigUint64`);let t=N.BigUint64;this.ensureLength(t),this.view.setBigUint64(this.offset,e),this.offset+=t}writeInt8(e){g(e,R.Int8,z.Int8,`Int8`);let t=N.Int8;this.ensureLength(t),this.view.setInt8(this.offset,e),this.offset+=t}writeInt16(e){g(e,R.Int16,z.Int16,`Int16`);let t=N.Int16;this.ensureLength(t),this.view.setInt16(this.offset,e),this.offset+=t}writeInt32(e){g(e,R.Int32,z.Int32,`Int32`);let t=N.Int32;this.ensureLength(t),this.view.setInt32(this.offset,e),this.offset+=t}writeInt64(e){g(e,R.Int64,z.Int64,`Int64`);let t=BigInt(e);this.writeBigInt64(t)}writeBigInt64(e){g(e,R.BigInt64,z.BigInt64,`BigInt64`);let t=N.BigInt64;this.ensureLength(t),this.view.setBigInt64(this.offset,e),this.offset+=t}writeFloat32(e){let t=N.Float32;this.ensureLength(t),this.view.setFloat32(this.offset,e),this.offset+=t}writeFloat64(e){let t=N.Float64;this.ensureLength(t),this.view.setFloat64(this.offset,e),this.offset+=t}writeBytes(e){let t=e.length;this.ensureLength(t),this.bytes.set(e,this.offset),this.offset+=t}encodeString(e){let t=this.encodedStrings.get(e);if(t)return t;let n=this.encoder.encode(e);return this.encodedStrings.set(e,n),n}writeString(e){let t=this.encodeString(e),n=t.length;this.writeUint32(n),this.writeBytes(t)}writeJson(e){let t=JSON.stringify(e);this.writeString(t)}constructor(){M(this,`offset`,0),M(this,`bytes`,new Uint8Array(Je)),M(this,`view`,p(this.bytes)),M(this,`encoder`,new TextEncoder),M(this,`encodedStrings`,new Map)}},B=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return m(v(n),`Invalid chunkId`),m(v(r),`Invalid offset`),m(v(i),`Invalid length`),new e(n,r,i)}toString(){return`${this.chunkId}/${this.offset}/${this.length}`}static read(t){return new e(t.readUint16(),t.readUint32(),t.readUint32())}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 ie(e);case 2:return se(e);case 3:return ue(e);case 4:return pe(e);case 5:return ge(e);case 6:return ye(e);case 7:return Se(e);case 8:return Te(e);case 9:return Oe(e);case 10:return je(e);case 11:return Pe(e);case 12:return Le(e);case 13:return Be(e);default:h(t)}},e.write=function(e,t){let n=b(t);if(e.writeUint8(n),!y(t))switch(t.type){case f.Array:return ae(e,t);case f.Boolean:return ce(e,t);case f.Color:return de(e,t);case f.Date:return me(e,t);case f.Enum:return _e(e,t);case f.File:return be(e,t);case f.Link:return Ce(e,t);case f.Number:return Ee(e,t);case f.Object:return ke(e,t);case f.ResponsiveImage:return Me(e,t);case f.RichText:return Fe(e,t);case f.VectorSetItem:return Ve(e,t);case f.String:return Re(e,t);default:h(t)}},e.compare=function(e,t,n){let r=b(e),i=b(t);if(ri)return 1;if(y(e)||y(t))return 0;switch(e.type){case f.Array:return m(t.type===f.Array),oe(e,t,n);case f.Boolean:return m(t.type===f.Boolean),le(e,t);case f.Color:return m(t.type===f.Color),fe(e,t);case f.Date:return m(t.type===f.Date),he(e,t);case f.Enum:return m(t.type===f.Enum),ve(e,t);case f.File:return m(t.type===f.File),xe(e,t);case f.Link:return m(t.type===f.Link),we(e,t);case f.Number:return m(t.type===f.Number),De(e,t);case f.Object:return m(t.type===f.Object),Ae(e,t,n);case f.ResponsiveImage:return m(t.type===f.ResponsiveImage),Ne(e,t);case f.RichText:return m(t.type===f.RichText),Ie(e,t);case f.VectorSetItem:return m(t.type===f.VectorSetItem),He(e,t);case f.String:return m(t.type===f.String),ze(e,t,n);default:h(e)}}})(C||={}),Ze=class e{sortEntries(){this.entries.sort((e,t)=>{for(let n=0;ne.getField(t)??null);this.entries.push({values:n,pointer:t})}constructor(e,t){this.fieldNames=e,this.options=t,M(this,`entries`,[])}},V=3,Qe=250,$e=[408,429,500,502,503,504],H=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!$e.includes(r.status)||++n>V)return r}catch(e){if(t?.signal?.aborted||++n>V)throw e}await Ue(n)}},et=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=S(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`),!(re.flatMap(e=>{switch(t.type){case`All`:return[e];case`Equals`:return this.queryEquals(e,t,n);case`NotEquals`:return this.queryNotEquals(e,t,n);case`LessThan`:return this.queryLessThan(e,t,n);case`GreaterThan`:return this.queryGreaterThan(e,t,n);case`Contains`:return this.queryContains(e,t,n);case`StartsWith`:return this.queryStartsWith(e,t,n);case`EndsWith`:return this.queryEndsWith(e,t,n);default:h(t)}}),[t.entries]),r=[];for(let e of n)for(let t of e){let e={};for(let n=0;n0?[a]:[]}queryNotEquals(e,t,n){let r=this.getLeftMost(e,n,t.value),i=this.getRightMost(e,n,t.value),a=[],o=e.slice(0,r);o.length>0&&a.push(o);let s=e.slice(i+1);return s.length>0&&a.push(s),a}queryLessThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getRightMost(e,n,t.value),i=e.slice(0,r+1);return i.length>0?[i]:[]}let i=this.getLeftMost(e,n,t.value),a=e.slice(0,i);return a.length>0?[a]:[]}queryGreaterThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getLeftMost(e,n,t.value),i=e.slice(r);return i.length>0?[i]:[]}let i=this.getRightMost(e,n,t.value),a=e.slice(i+1);return a.length>0?[a]:[]}queryContains(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.includes(r)})}queryStartsWith(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.startsWith(r)})}queryEndsWith(e,t,n){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.endsWith(r)})}getLeftMost(e,t,n){let r=0,i=e.length;for(;r>1,o=e[a].values[t];0>C.compare(o,n,this.collation)?r=a+1:i=a}return r}getRightMost(e,t,n){let r=0,i=e.length;for(;r>1,o=e[a].values[t];C.compare(o,n,this.collation)>0?i=a:r=a+1}return i-1}findItems(e,t,n){let r=[],i=0;for(let a=0;a{if(!e.ok)throw Error(`Request failed: ${e.status} ${e.statusText}`);let t=await e.arrayBuffer(),n=new P(new Uint8Array(t)),r=[],i=n.readUint32();for(let e=0;e{let t=e.map(e=>{let t=B.fromString(e);return{from:t.offset,to:t.offset+t.length}});return(await x(this.url,t)).map((t,n)=>{let r=new P(t),i=W.read(r),a=e[n];return m(a,`Missing pointer`),{pointer:a,data:i.getData()}})},{maxBatchSize:250}))}},nt=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=B.fromString(e),n=this.chunks[t.chunkId];return m(n,`Missing chunk`),n.resolveItem(e)}))}compareItems(e,t){let n=B.fromString(e.pointer),r=B.fromString(t.pointer);return n.compare(r)}compareValues(e,t,n){return C.compare(e,t,n)}constructor(e){this.options=e,M(this,`id`),M(this,`schema`),M(this,`indexes`),M(this,`resolveRichText`),M(this,`resolveVectorSetItem`),M(this,`chunks`),this.chunks=this.options.chunks.map((e,t)=>new tt(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}}));function it(e){return typeof e==`object`&&!!e&&!s(e)&&st in e}function at(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function ot(e){let t=new Map;return n=>{let r=t.get(n);if(r)return r;let s=function t(n){switch(n[0]){case 1:{let[,...e]=n;return a(i,void 0,...e.map(t))}case 2:{let[,e,...r]=n;return a(re,e,...r.map(t))}case 3:{let[,r,i,a,s]=n;for(let e of a){let n=i[e];n&&(i[e]=t(n))}for(let t of s){let n=i[t];if(typeof n!=`string`)continue;let r=e[n];r&&(it(r)&&r.preload(),i[t]=r)}let c=e[r];return at(c,`Module not found`),it(c)&&c.preload(),o(te,{componentIdentifier:r,children:e=>o(ne,{component:c,props:{...e,...i}})})}case 4:{let[,e,r,...i]=n,o=i.map(t);return a(e===`a`?l.a:e,r,...o)}case 5:{let[,e]=n;return e}}}(JSON.parse(n));return t.set(n,s),s}}var G,st,ct,lt=e((()=>{t(),c(),u(),n(),r!==void 0&&r.requestIdleCallback,st=`preload`,ct=((G=ct||{})[G.Fragment=1]=`Fragment`,G[G.Link=2]=`Link`,G[G.Module=3]=`Module`,G[G.Tag=4]=`Tag`,G[G.Text=5]=`Text`,G)})),K,ut,q,dt,ft,pt,mt,ht,J,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Y,Ft,It,X,Z,Lt,Q,Rt,zt,$,Bt=e((()=>{u(),rt(),lt(),K={bqPqvPNdP:{isNullable:!0,type:f.ResponsiveImage},btX_caC5q:{isNullable:!0,type:f.ResponsiveImage},BYb9x2u2D:{isNullable:!0,type:f.String},createdAt:{isNullable:!0,type:f.Date},DxIPVsLGG:{isNullable:!0,type:f.String},ewJaI1vsI:{isNullable:!0,type:f.String},iCjyzjRf1:{isNullable:!0,type:f.ResponsiveImage},id:{isNullable:!1,type:f.String},jEbWympg2:{isNullable:!0,type:f.Date},kMlaX7Ocf:{isNullable:!0,type:f.RichText},MATjgCnVq:{isNullable:!0,type:f.Number},MV8mHGdUQ:{isNullable:!0,type:f.String},nextItemId:{isNullable:!0,type:f.String},Oyn_CQ8yA:{isNullable:!0,type:f.RichText},previousItemId:{isNullable:!0,type:f.String},qUp8fFSQv:{isNullable:!0,type:f.Boolean},SzMq7L17D:{isNullable:!0,type:f.String},u8zx7p91P:{isNullable:!0,type:f.ResponsiveImage},updatedAt:{isNullable:!0,type:f.Date},UX6K9ZGvs:{isNullable:!0,type:f.RichText},w0jAsOFWp:{isNullable:!0,type:f.String},yvKxVbhVQ:{isNullable:!0,type:f.RichText},z15_lmRRt:{isNullable:!0,type:f.Enum},zDt8N9Xms:{isNullable:!0,type:f.ResponsiveImage},zrRRuZCZI:{isNullable:!0,type:f.RichText}},ut=[`id`],q={type:1},dt=[`previousItemId`],ft=[`nextItemId`],pt=[`id`,`SzMq7L17D`],mt=[`SzMq7L17D`,`id`],ht=[`BYb9x2u2D`],J={type:0},gt=[`DxIPVsLGG`],_t=[`ewJaI1vsI`],vt=[`SzMq7L17D`],yt=[`jEbWympg2`],bt=[`qUp8fFSQv`],xt=[`z15_lmRRt`],St=[`zDt8N9Xms`],Ct=[`MV8mHGdUQ`],wt=[`w0jAsOFWp`],Tt=[`MATjgCnVq`],Et=[`zrRRuZCZI`],Dt=[`iCjyzjRf1`],Ot=[`Oyn_CQ8yA`],kt=[`u8zx7p91P`],At=[`bqPqvPNdP`],jt=[`yvKxVbhVQ`],Mt=[`btX_caC5q`],Nt=[`UX6K9ZGvs`],Pt=[`kMlaX7Ocf`],Y=[],Ft=e=>{let t=Y[e];if(t)return t().then(e=>e.default)},It=ot({}),X=new d,Z={collectionByLocaleId:{default:new nt({chunks:[new URL(`./B33wnMHvT-chunk-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)],id:`1567dbd9-84cd-4dd7-a5b6-a7d3b93e568cdefault`,indexes:[new U({collation:q,collectionSchema:K,fieldNames:ut,range:{from:0,to:73},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:q,collectionSchema:K,fieldNames:dt,range:{from:73,to:145},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:q,collectionSchema:K,fieldNames:ft,range:{from:145,to:213},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:q,collectionSchema:K,fieldNames:pt,range:{from:213,to:403},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:q,collectionSchema:K,fieldNames:mt,range:{from:403,to:593},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:ht,range:{from:593,to:779},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:gt,range:{from:779,to:1027},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:_t,range:{from:1027,to:1133},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:vt,range:{from:1133,to:1289},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:yt,range:{from:1289,to:1359},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:bt,range:{from:1359,to:1415},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:xt,range:{from:1415,to:1495},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:St,range:{from:1495,to:2343},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Ct,range:{from:2343,to:2437},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:wt,range:{from:2437,to:2514},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Tt,range:{from:2514,to:2584},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Et,range:{from:2584,to:4639},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Dt,range:{from:4639,to:5443},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Ot,range:{from:5443,to:7879},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:kt,range:{from:7879,to:8205},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:At,range:{from:8205,to:8533},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:jt,range:{from:8533,to:9963},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Mt,range:{from:9963,to:10725},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Nt,range:{from:10725,to:11599},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)}),new U({collation:J,collectionSchema:K,fieldNames:Pt,range:{from:11599,to:12013},url:new URL(`./B33wnMHvT-indexes-default-0.framercms`,`https://framerusercontent.com/modules/s1WjcTp5of1oFg6IotGU/owr39drwpBsU6BPW8ucU/B33wnMHvT.js`).href.replace(`/modules/`,`/cms/`)})],resolveRichText:It,resolveVectorSetItem:Ft,schema:K})},displayName:`Case Studies`,id:`1567dbd9-84cd-4dd7-a5b6-a7d3b93e568c`},Lt=Z,ee(Z,{BYb9x2u2D:{defaultValue:``,title:`Title`,type:f.String},DxIPVsLGG:{defaultValue:`Preview placeholder Case Studies`,maxLength:127,title:`Preview`,type:f.String},ewJaI1vsI:{defaultValue:`Case Studies - Prakriti`,title:`Description`,type:f.String},SzMq7L17D:{preventLocalization:!0,title:`Slug`,type:f.String},jEbWympg2:{defaultValue:``,title:`Date`,type:f.Date},qUp8fFSQv:{defaultValue:!1,title:`Highlight`,type:f.Boolean},z15_lmRRt:{defaultValue:`S8FjHUG40`,options:[`S8FjHUG40`,`b6cNdtK0U`],optionTitles:[`Nature-Based`,`Supply Chain`],title:`Category`,type:f.Enum},zDt8N9Xms:{title:`IMG Main`,type:f.ResponsiveImage},MV8mHGdUQ:{defaultValue:``,title:`Author`,type:f.String},w0jAsOFWp:{defaultValue:``,title:`Autor's Role`,type:f.String},MATjgCnVq:{defaultValue:0,title:`Reading Time`,type:f.Number},zrRRuZCZI:{defaultValue:``,title:`paragraph 1`,type:f.RichText},iCjyzjRf1:{title:`IMG_Body 1`,type:f.ResponsiveImage},Oyn_CQ8yA:{defaultValue:``,title:`paragraph 2`,type:f.RichText},u8zx7p91P:{title:`IMG_Body 2 A`,type:f.ResponsiveImage},bqPqvPNdP:{title:`IMG_Body 2 B`,type:f.ResponsiveImage},yvKxVbhVQ:{defaultValue:``,title:`paragraph 3`,type:f.RichText},btX_caC5q:{title:`IMG_Body 3`,type:f.ResponsiveImage},UX6K9ZGvs:{defaultValue:``,title:`paragraph 4`,type:f.RichText},kMlaX7Ocf:{defaultValue:``,title:`Mono Paragraph`,type:f.RichText},createdAt:{title:`Created`,type:f.Date},updatedAt:{title:`Updated`,type:f.Date},previousItemId:{dataIdentifier:`local-module:collection/B33wnMHvT:default`,title:`Previous`,type:f.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/B33wnMHvT:default`,title:`Next`,type:f.CollectionReference}}),Q=(e,t)=>{switch(t?.fallback,e){case`S8FjHUG40`:return`Nature-Based`;case`b6cNdtK0U`:return`Supply Chain`;default:return``}},Rt={z15_lmRRt:Q},zt={async getSlugByRecordId(e,t){let[n]=await X.query({from:{data:Z,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`SzMq7L17D`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.SzMq7L17D},async getRecordIdBySlug(e,t){let[n]=await X.query({from:{data:Z,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`SzMq7L17D`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id}},$={exports:{default:{type:`data`,name:`data`,annotations:{framerCollectionUtils:`1`,framerColorSyntax:`false`,framerAutoSizeImages:`true`,framerEnumToDisplayNameUtils:`2`,framerCollectionId:`B33wnMHvT`,framerRecordIdKey:`id`,framerSlug:`SzMq7L17D`,framerContractVersion:`1`,framerData:`true`}},z15_lmRRtToDisplayName:{type:`variable`,annotations:{framerContractVersion:`1`}},utils:{type:`variable`,annotations:{framerContractVersion:`1`}},enumToDisplayNameFunctions:{type:`variable`,annotations:{framerContractVersion:`1`}},__FramerMetadata__:{type:`variable`}}}}));export{zt as a,Bt as i,$ as n,Q as o,Rt as r,Lt as t}; //# sourceMappingURL=B33wnMHvT.BeBfElxf.mjs.map