/* Socket Lib - Built with esbuild */
var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var d=(n,e)=>{for(var r in e)i(n,r,{get:e[r],enumerable:!0})},J=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!y.call(n,o)&&o!==r&&i(n,o,{get:()=>e[o],enumerable:!(t=c(e,o))||t.enumerable});return n};var m=n=>J(i({},"__esModule",{value:!0}),n);var w={};d(w,{isJsonPrimitive:()=>h,jsonParse:()=>v});module.exports=m(w);var f=require("./strings");const g=JSON.parse;function b(n){if(!n||typeof n!="object")return!1;const e=n;if(typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||typeof e.length=="number"&&e.length>0&&typeof e[0]!="number")return!1;const r=n.constructor;return!!(typeof r?.isBuffer=="function"&&r.isBuffer(n))}function h(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"}function v(n,e){const{filepath:r,reviver:t,throws:o}={__proto__:null,...e},u=o===void 0||!!o,a=b(n)?n.toString("utf8"):n;try{return g((0,f.stripBom)(a),t)}catch(p){if(u){const s=p;throw s&&typeof r=="string"&&(s.message=`${r}: ${s.message}`),s}}}0&&(module.exports={isJsonPrimitive,jsonParse});
//# sourceMappingURL=json.js.map
