// @bun
var{defineProperty:t,getOwnPropertyNames:s,getOwnPropertyDescriptor:i}=Object,f=Object.prototype.hasOwnProperty;function u(r){return this[r]}var k=(r)=>{var e=(o??=new WeakMap).get(r),a;if(e)return e;if(e=t({},"__esModule",{value:!0}),r&&typeof r==="object"||typeof r==="function"){for(var n of s(r))if(!f.call(e,n))t(e,n,{get:u.bind(r,n),enumerable:!(a=i(r,n))||a.enumerable})}return o.set(r,e),e},o;var d=(r)=>r;function c(r,e){this[r]=d.bind(null,e)}var l=(r,e)=>{for(var a in e)t(r,a,{get:e[a],enumerable:!0,configurable:!0,set:c.bind(e,a)})};var g=(r,e)=>()=>(r&&(e=r(r=0)),e);function p(r){try{return{ok:!0,data:JSON.parse(r)}}catch(e){return{ok:!1,error:e instanceof Error?e:Error(String(e))}}}export{p as safeParseJson};
