// @bun
var{defineProperty:z,getOwnPropertyNames:B,getOwnPropertyDescriptor:C}=Object,D=Object.prototype.hasOwnProperty;function F(b){return this[b]}var I=(b)=>{var j=(A??=new WeakMap).get(b),k;if(j)return j;if(j=z({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var w of B(b))if(!D.call(j,w))z(j,w,{get:F.bind(b,w),enumerable:!(k=C(b,w))||k.enumerable})}return A.set(b,j),j},A;var G=(b)=>b;function H(b,j){this[b]=G.bind(null,j)}var J=(b,j)=>{for(var k in j)z(b,k,{get:j[k],enumerable:!0,configurable:!0,set:H.bind(j,k)})};var K=(b,j)=>()=>(b&&(j=b(b=0)),j);function M(b,j){if(!b.presentationsTargets||b.presentationsTargets.length===0)return!0;for(let k of b.presentationsTargets){let w=j.find((y)=>y.meta.key===k.key&&y.meta.version===k.version);if(!w)throw Error(`V2 descriptor not found ${k.key}.v${k.version}`);for(let y of k.targets)if(!w.targets.includes(y))throw Error(`Descriptor ${k.key}.v${k.version} missing target ${y}`)}return!0}export{M as validateFeatureTargetsV2};
