// @bun
var{defineProperty:D,getOwnPropertyNames:G,getOwnPropertyDescriptor:H}=Object,I=Object.prototype.hasOwnProperty;function J(j){return this[j]}var N=(j)=>{var q=(E??=new WeakMap).get(j),w;if(q)return q;if(q=D({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var A of G(j))if(!I.call(q,A))D(q,A,{get:J.bind(j,A),enumerable:!(w=H(j,A))||w.enumerable})}return E.set(j,q),q},E;var K=(j)=>j;function L(j,q){this[j]=K.bind(null,q)}var P=(j,q)=>{for(var w in q)D(j,w,{get:q[w],enumerable:!0,configurable:!0,set:L.bind(q,w)})};var Q=(j,q)=>()=>(j&&(q=j(j=0)),q);function T(j,q){return{ref:async(w,A)=>{await q.__emitGuard__?.(w.meta.key,w.meta.version,A)},key:async(w,A,F)=>{await q.__emitGuard__?.(w,A,F)},object:async(w)=>{await q.__emitGuard__?.(w.key,w.version,w.payload)}}}function M(j,q,w){return j.register(q).bind(q,w)}function U(j,q){return{spec:j,handler:q,install:(w)=>M(w,j,q)}}export{U as op,T as makeEmit,M as installOp};
