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EAAQ,GAItC,OAHA,EAAS,GAAU,EAGZ,SAFI,EAAO,aAAa,GACrB,EAAO,aAAa,EAAS,IACZ,EAC5B,EAEA,MAAM,aAAe,SAAU,EAAQ,GACtC,EAAS,GAAU,EACnB,IAAI,EAAM,EAAO,aAAa,GAE9B,OAAO,SADI,EAAO,aAAa,EAAS,GAClB,GAAK,EAC5B,EAEA,MAAM,aAAe,SAAU,EAAQ,EAAQ,GAC9C,EAAS,GAAU,EACnB,IAAI,EAAK,WAAW,GACpB,EAAO,cAAc,EAAG,GAAI,GAC5B,EAAO,cAAc,EAAG,GAAI,EAAS,EACtC,EAEA,MAAM,aAAe,SAAU,EAAQ,EAAQ,GAC9C,EAAS,GAAU,EACnB,IAAI,EAAK,WAAW,GACpB,EAAO,cAAc,EAAG,GAAI,GAC5B,EAAO,cAAc,EAAG,GAAI,EAAS,EACtC,EAEA,MAAM,cAAgB,SAAU,EAAQ,EAAQ,GAC/C,EAAS,GAAU,EACnB,IAAI,EAAK,YAAY,GACrB,EAAO,cAAc,EAAG,GAAI,GAC5B,EAAO,cAAc,EAAG,GAAI,EAAS,EACtC,EAEA,MAAM,cAAgB,SAAU,EAAQ,EAAQ,GAC/C,EAAS,GAAU,EACnB,IAAI,EAAK,YAAY,GACrB,EAAO,cAAc,EAAG,GAAI,GAC5B,EAAO,cAAc,EAAG,GAAI,EAAS,EACtC,EAEA,OAAO,QAAU","file":"/npm/int53@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/int53@1.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var int53 = {}\n\nvar MAX_UINT32 = 0x00000000FFFFFFFF\nvar MAX_INT53 =  0x001FFFFFFFFFFFFF\n\nfunction assert (test, message) {\n\tif(!test) throw new Error(message)\n}\n\nfunction onesComplement(number) {\n\tnumber = ~number\n\tif (number < 0) {\n\t\tnumber = (number & 0x7FFFFFFF) + 0x80000000\n\t}\n\treturn number\n}\n\nfunction uintHighLow(number) {\n\tassert(number > -1 && number <= MAX_INT53, \"number out of range\")\n\tassert(Math.floor(number) === number, \"number must be an integer\")\n\tvar high = 0\n\tvar signbit = number & 0xFFFFFFFF\n\tvar low = signbit < 0 ? (number & 0x7FFFFFFF) + 0x80000000 : signbit\n\tif (number > MAX_UINT32) {\n\t\thigh = (number - low) / (MAX_UINT32 + 1)\n\t}\n\treturn [high, low]\n}\n\nfunction intHighLow(number) {\n\tif (number > -1) {\n\t\treturn uintHighLow(number)\n\t}\n\tvar hl = uintHighLow(-number)\n\tvar high = onesComplement(hl[0])\n\tvar low = onesComplement(hl[1])\n\tif (low === MAX_UINT32) {\n\t\thigh += 1\n\t\tlow = 0\n\t}\n\telse {\n\t\tlow += 1\n\t}\n\treturn [high, low]\n}\n\nfunction toDouble(high, low, signed) {\n\tif (signed && (high & 0x80000000) !== 0) {\n\t\thigh = onesComplement(high)\n\t\tlow = onesComplement(low)\n\t\tassert(high < 0x00200000, \"number too small\")\n\t\treturn -((high * (MAX_UINT32 + 1)) + low + 1)\n\t}\n\telse { //positive\n\t\tassert(high < 0x00200000, \"number too large\")\n\t\treturn (high * (MAX_UINT32 + 1)) + low\n\t}\n}\n\nint53.readInt64BE = function (buffer, offset) {\n\toffset = offset || 0\n\tvar high = buffer.readUInt32BE(offset)\n\tvar low = buffer.readUInt32BE(offset + 4)\n\treturn toDouble(high, low, true)\n}\n\nint53.readInt64LE = function (buffer, offset) {\n\toffset = offset || 0\n\tvar low = buffer.readUInt32LE(offset)\n\tvar high = buffer.readUInt32LE(offset + 4)\n\treturn toDouble(high, low, true)\n}\n\nint53.readUInt64BE = function (buffer, offset) {\n\toffset = offset || 0\n\tvar high = buffer.readUInt32BE(offset)\n\tvar low = buffer.readUInt32BE(offset + 4)\n\treturn toDouble(high, low, false)\n}\n\nint53.readUInt64LE = function (buffer, offset) {\n\toffset = offset || 0\n\tvar low = buffer.readUInt32LE(offset)\n\tvar high = buffer.readUInt32LE(offset + 4)\n\treturn toDouble(high, low, false)\n}\n\nint53.writeInt64BE = function (number, buffer, offset) {\n\toffset = offset || 0\n\tvar hl = intHighLow(number)\n\tbuffer.writeUInt32BE(hl[0], offset)\n\tbuffer.writeUInt32BE(hl[1], offset + 4)\n}\n\nint53.writeInt64LE = function (number, buffer, offset) {\n\toffset = offset || 0\n\tvar hl = intHighLow(number)\n\tbuffer.writeUInt32LE(hl[1], offset)\n\tbuffer.writeUInt32LE(hl[0], offset + 4)\n}\n\nint53.writeUInt64BE = function (number, buffer, offset) {\n\toffset = offset || 0\n\tvar hl = uintHighLow(number)\n\tbuffer.writeUInt32BE(hl[0], offset)\n\tbuffer.writeUInt32BE(hl[1], offset + 4)\n}\n\nint53.writeUInt64LE = function (number, buffer, offset) {\n\toffset = offset || 0\n\tvar hl = uintHighLow(number)\n\tbuffer.writeUInt32LE(hl[1], offset)\n\tbuffer.writeUInt32LE(hl[0], offset + 4)\n}\n\nmodule.exports = int53\n"]}