@gsknnft/bigint-buffer 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -3
- package/build/Release/bigint_buffer.node +0 -0
- package/dist/build/Release/bigint_buffer.node +0 -0
- package/dist/index.cjs +1 -1
- package/dist/{types/dist/dist/index.d.ts → index.d.ts} +1 -2
- package/dist/index.js +352 -410
- package/dist/index.umd.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/conversion/src/ts/converter.d.ts +7 -3
- package/dist/types/conversion/src/ts/index.d.ts +19 -8
- package/dist/types/conversion/test/fixedPoint.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -2
- package/package.json +153 -141
- package/prebuilds/win32-x64/@gsknnft+bigint-buffer.node +0 -0
- package/scripts/postinstall.cjs +38 -0
- package/build/Release/bigint_buffer.exp +0 -0
- package/build/Release/bigint_buffer.iobj +0 -0
- package/build/Release/bigint_buffer.ipdb +0 -0
- package/build/Release/bigint_buffer.lib +0 -0
- package/build/Release/bigint_buffer.pdb +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.node.recipe +0 -11
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/CL.command.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/CL.read.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/CL.write.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/Cl.items.tlog +0 -2
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/bigint_buffer.lastbuildstate +0 -2
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/link.command.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/link.read.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/link.secondary.1.tlog +0 -5
- package/build/Release/obj/bigint_buffer/bigint_buffer.tlog/link.write.1.tlog +0 -0
- package/build/Release/obj/bigint_buffer/src/bigint-buffer.obj +0 -0
- package/build/Release/obj/bigint_buffer/win_delay_load_hook.obj +0 -0
- package/build/bigint_buffer.vcxproj +0 -148
- package/build/bigint_buffer.vcxproj.filters +0 -64
- package/build/binding.sln +0 -19
- package/build/config.gypi +0 -525
- package/dist/types/conversion/src/ts/fixedPoint/index.d.ts +0 -12
- package/src/bigint-buffer.test.ts +0 -11
- package/src/conversion/.github/workflows/build-and-test.yml +0 -116
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-PYrzNv/src/ts/index.js +0 -178
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-PYrzNv/src/ts/index.js.map +0 -1
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-h16OVM/src/ts/index.js +0 -178
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-h16OVM/src/ts/index.js.map +0 -1
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-uUCFYt/src/ts/index.js +0 -178
- package/src/conversion/.rollup.cache/C/Users/G/AppData/Local/Temp/rollup-plugin-typescript-allowjs-uUCFYt/src/ts/index.js.map +0 -1
- package/src/conversion/CODE_OF_CONDUCT.md +0 -134
- package/src/conversion/LICENSE +0 -21
- package/src/conversion/README.md +0 -48
- package/src/conversion/coverage/base.css +0 -224
- package/src/conversion/coverage/block-navigation.js +0 -87
- package/src/conversion/coverage/clover.xml +0 -131
- package/src/conversion/coverage/coverage-final.json +0 -2
- package/src/conversion/coverage/favicon.png +0 -0
- package/src/conversion/coverage/index.html +0 -116
- package/src/conversion/coverage/index.ts.html +0 -1225
- package/src/conversion/coverage/prettify.css +0 -1
- package/src/conversion/coverage/prettify.js +0 -2
- package/src/conversion/coverage/sort-arrow-sprite.png +0 -0
- package/src/conversion/coverage/sorter.js +0 -210
- package/src/conversion/docs/README.md +0 -42
- package/src/conversion/docs/functions/base64ToBigint.md +0 -27
- package/src/conversion/docs/functions/bigintToBase64.md +0 -43
- package/src/conversion/docs/functions/bigintToBuf.md +0 -35
- package/src/conversion/docs/functions/bigintToHex.md +0 -43
- package/src/conversion/docs/functions/bigintToText.md +0 -31
- package/src/conversion/docs/functions/bufToBigint.md +0 -25
- package/src/conversion/docs/functions/bufToHex.md +0 -37
- package/src/conversion/docs/functions/bufToText.md +0 -27
- package/src/conversion/docs/functions/hexToBigint.md +0 -29
- package/src/conversion/docs/functions/hexToBuf.md +0 -37
- package/src/conversion/docs/functions/parseHex.md +0 -45
- package/src/conversion/docs/functions/textToBigint.md +0 -27
- package/src/conversion/docs/functions/textToBuf.md +0 -33
- package/src/conversion/docs/functions/toBigIntBE.md +0 -27
- package/src/conversion/docs/functions/toBigIntLE.md +0 -27
- package/src/conversion/docs/functions/toBufferBE.md +0 -33
- package/src/conversion/docs/functions/toBufferLE.md +0 -33
- package/src/conversion/docs/functions/validateBigIntBuffer.md +0 -15
- package/src/conversion/docs/type-aliases/TypedArray.md +0 -11
- package/src/conversion/docs/variables/isNative.md +0 -11
- package/src/conversion/example.cjs +0 -9
- package/src/conversion/example.esm.js +0 -11
- package/src/conversion/index.ts +0 -2
- package/src/conversion/node_modules/.bin/_mocha +0 -21
- package/src/conversion/node_modules/.bin/_mocha.CMD +0 -12
- package/src/conversion/node_modules/.bin/_mocha.ps1 +0 -41
- package/src/conversion/node_modules/.bin/c8 +0 -21
- package/src/conversion/node_modules/.bin/c8.CMD +0 -12
- package/src/conversion/node_modules/.bin/c8.ps1 +0 -41
- package/src/conversion/node_modules/.bin/esbuild +0 -21
- package/src/conversion/node_modules/.bin/esbuild.CMD +0 -12
- package/src/conversion/node_modules/.bin/esbuild.ps1 +0 -41
- package/src/conversion/node_modules/.bin/eslint +0 -21
- package/src/conversion/node_modules/.bin/eslint.CMD +0 -12
- package/src/conversion/node_modules/.bin/eslint.ps1 +0 -41
- package/src/conversion/node_modules/.bin/jiti +0 -21
- package/src/conversion/node_modules/.bin/jiti.CMD +0 -12
- package/src/conversion/node_modules/.bin/jiti.ps1 +0 -41
- package/src/conversion/node_modules/.bin/json5 +0 -21
- package/src/conversion/node_modules/.bin/json5.CMD +0 -12
- package/src/conversion/node_modules/.bin/json5.ps1 +0 -41
- package/src/conversion/node_modules/.bin/mocha +0 -21
- package/src/conversion/node_modules/.bin/mocha.CMD +0 -12
- package/src/conversion/node_modules/.bin/mocha.ps1 +0 -41
- package/src/conversion/node_modules/.bin/npm-run-all +0 -21
- package/src/conversion/node_modules/.bin/npm-run-all.CMD +0 -12
- package/src/conversion/node_modules/.bin/npm-run-all.ps1 +0 -41
- package/src/conversion/node_modules/.bin/puppeteer +0 -21
- package/src/conversion/node_modules/.bin/puppeteer.CMD +0 -12
- package/src/conversion/node_modules/.bin/puppeteer.ps1 +0 -41
- package/src/conversion/node_modules/.bin/rimraf +0 -16
- package/src/conversion/node_modules/.bin/rimraf.cmd +0 -17
- package/src/conversion/node_modules/.bin/rimraf.ps1 +0 -28
- package/src/conversion/node_modules/.bin/rollup +0 -21
- package/src/conversion/node_modules/.bin/rollup.CMD +0 -12
- package/src/conversion/node_modules/.bin/rollup.ps1 +0 -41
- package/src/conversion/node_modules/.bin/run-p +0 -21
- package/src/conversion/node_modules/.bin/run-p.CMD +0 -12
- package/src/conversion/node_modules/.bin/run-p.ps1 +0 -41
- package/src/conversion/node_modules/.bin/run-s +0 -21
- package/src/conversion/node_modules/.bin/run-s.CMD +0 -12
- package/src/conversion/node_modules/.bin/run-s.ps1 +0 -41
- package/src/conversion/node_modules/.bin/terser +0 -21
- package/src/conversion/node_modules/.bin/terser.CMD +0 -12
- package/src/conversion/node_modules/.bin/terser.ps1 +0 -41
- package/src/conversion/node_modules/.bin/ts-standard +0 -21
- package/src/conversion/node_modules/.bin/ts-standard.CMD +0 -12
- package/src/conversion/node_modules/.bin/ts-standard.ps1 +0 -41
- package/src/conversion/node_modules/.bin/tsc +0 -21
- package/src/conversion/node_modules/.bin/tsc.CMD +0 -12
- package/src/conversion/node_modules/.bin/tsc.ps1 +0 -41
- package/src/conversion/node_modules/.bin/tsserver +0 -21
- package/src/conversion/node_modules/.bin/tsserver.CMD +0 -12
- package/src/conversion/node_modules/.bin/tsserver.ps1 +0 -41
- package/src/conversion/node_modules/.bin/typedoc +0 -21
- package/src/conversion/node_modules/.bin/typedoc.CMD +0 -12
- package/src/conversion/node_modules/.bin/typedoc.ps1 +0 -41
- package/src/conversion/node_modules/.bin/vite +0 -21
- package/src/conversion/node_modules/.bin/vite.CMD +0 -12
- package/src/conversion/node_modules/.bin/vite.ps1 +0 -41
- package/src/conversion/node_modules/.bin/vitest +0 -21
- package/src/conversion/node_modules/.bin/vitest.CMD +0 -12
- package/src/conversion/node_modules/.bin/vitest.ps1 +0 -41
- package/src/conversion/node_modules/.bin/yaml +0 -21
- package/src/conversion/node_modules/.bin/yaml.CMD +0 -12
- package/src/conversion/node_modules/.bin/yaml.ps1 +0 -41
- package/src/conversion/node_modules/glob/LICENSE.md +0 -63
- package/src/conversion/node_modules/glob/README.md +0 -1177
- package/src/conversion/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
- package/src/conversion/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/glob.js +0 -247
- package/src/conversion/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- package/src/conversion/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- package/src/conversion/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
- package/src/conversion/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/ignore.js +0 -119
- package/src/conversion/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/index.d.ts +0 -97
- package/src/conversion/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/index.js +0 -68
- package/src/conversion/node_modules/glob/dist/commonjs/index.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/package.json +0 -3
- package/src/conversion/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
- package/src/conversion/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/pattern.js +0 -219
- package/src/conversion/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- package/src/conversion/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/processor.js +0 -301
- package/src/conversion/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
- package/src/conversion/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/commonjs/walker.js +0 -387
- package/src/conversion/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/glob.d.ts +0 -388
- package/src/conversion/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/glob.js +0 -243
- package/src/conversion/node_modules/glob/dist/esm/glob.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- package/src/conversion/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/has-magic.js +0 -23
- package/src/conversion/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/ignore.d.ts +0 -24
- package/src/conversion/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/ignore.js +0 -115
- package/src/conversion/node_modules/glob/dist/esm/ignore.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/index.d.ts +0 -97
- package/src/conversion/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/index.js +0 -55
- package/src/conversion/node_modules/glob/dist/esm/index.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/package.json +0 -3
- package/src/conversion/node_modules/glob/dist/esm/pattern.d.ts +0 -76
- package/src/conversion/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/pattern.js +0 -215
- package/src/conversion/node_modules/glob/dist/esm/pattern.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/processor.d.ts +0 -59
- package/src/conversion/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/processor.js +0 -294
- package/src/conversion/node_modules/glob/dist/esm/processor.js.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/walker.d.ts +0 -97
- package/src/conversion/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- package/src/conversion/node_modules/glob/dist/esm/walker.js +0 -381
- package/src/conversion/node_modules/glob/dist/esm/walker.js.map +0 -1
- package/src/conversion/node_modules/glob/package.json +0 -93
- package/src/conversion/node_modules/minimatch/LICENSE.md +0 -55
- package/src/conversion/node_modules/minimatch/README.md +0 -453
- package/src/conversion/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
- package/src/conversion/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
- package/src/conversion/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
- package/src/conversion/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/ast.js +0 -591
- package/src/conversion/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/src/conversion/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
- package/src/conversion/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
- package/src/conversion/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/escape.js +0 -30
- package/src/conversion/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/index.d.ts +0 -94
- package/src/conversion/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/index.js +0 -1029
- package/src/conversion/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/src/conversion/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
- package/src/conversion/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
- package/src/conversion/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
- package/src/conversion/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
- package/src/conversion/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
- package/src/conversion/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/ast.js +0 -587
- package/src/conversion/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/src/conversion/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/brace-expressions.js +0 -148
- package/src/conversion/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
- package/src/conversion/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/escape.js +0 -26
- package/src/conversion/node_modules/minimatch/dist/esm/escape.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/index.d.ts +0 -94
- package/src/conversion/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/index.js +0 -1016
- package/src/conversion/node_modules/minimatch/dist/esm/index.js.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/package.json +0 -3
- package/src/conversion/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
- package/src/conversion/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
- package/src/conversion/node_modules/minimatch/dist/esm/unescape.js +0 -34
- package/src/conversion/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
- package/src/conversion/node_modules/minimatch/package.json +0 -78
- package/src/conversion/node_modules/rimraf/LICENSE.md +0 -55
- package/src/conversion/node_modules/rimraf/README.md +0 -226
- package/src/conversion/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -58
- package/src/conversion/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/error.d.ts +0 -6
- package/src/conversion/node_modules/rimraf/dist/commonjs/error.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/error.js +0 -10
- package/src/conversion/node_modules/rimraf/dist/commonjs/error.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -38
- package/src/conversion/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -15
- package/src/conversion/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/fs.js +0 -33
- package/src/conversion/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -24
- package/src/conversion/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
- package/src/conversion/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/index.js +0 -78
- package/src/conversion/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -34
- package/src/conversion/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
- package/src/conversion/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/package.json +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/path-arg.js +0 -48
- package/src/conversion/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
- package/src/conversion/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
- package/src/conversion/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -65
- package/src/conversion/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -8
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -138
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -103
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -159
- package/src/conversion/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/commonjs/use-native.js +0 -18
- package/src/conversion/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/bin.d.mts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/bin.mjs +0 -250
- package/src/conversion/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
- package/src/conversion/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/error.d.ts +0 -6
- package/src/conversion/node_modules/rimraf/dist/esm/error.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/error.js +0 -5
- package/src/conversion/node_modules/rimraf/dist/esm/error.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/fix-eperm.js +0 -33
- package/src/conversion/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/fs.d.ts +0 -15
- package/src/conversion/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/fs.js +0 -18
- package/src/conversion/node_modules/rimraf/dist/esm/fs.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -19
- package/src/conversion/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/index.d.ts +0 -50
- package/src/conversion/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/index.js +0 -70
- package/src/conversion/node_modules/rimraf/dist/esm/index.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -34
- package/src/conversion/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
- package/src/conversion/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/package.json +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/path-arg.js +0 -46
- package/src/conversion/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
- package/src/conversion/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
- package/src/conversion/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/retry-busy.js +0 -60
- package/src/conversion/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -5
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -133
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -98
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -154
- package/src/conversion/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
- package/src/conversion/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
- package/src/conversion/node_modules/rimraf/dist/esm/use-native.js +0 -15
- package/src/conversion/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
- package/src/conversion/node_modules/rimraf/package.json +0 -92
- package/src/conversion/package.json +0 -154
- package/src/conversion/src/docs/index.md +0 -52
- package/src/conversion/src/ts/converter.ts +0 -85
- package/src/conversion/src/ts/fixedPoint/index.ts +0 -87
- package/src/conversion/src/ts/index.ts +0 -500
- package/src/conversion/test/bigintToBase64.test.ts +0 -37
- package/src/conversion/test/bigintToBuf.test.ts +0 -43
- package/src/conversion/test/bigintToHex.test.ts +0 -52
- package/src/conversion/test/bigintToText.test.ts +0 -30
- package/src/conversion/test/bufToBigint.test.ts +0 -20
- package/src/conversion/test/hexToBigint.test.ts +0 -22
- package/src/conversion/test/hexToBuf.test.ts +0 -39
- package/src/conversion/test/parseHex.test.ts +0 -35
- package/src/conversion/test/setup.test.ts +0 -9
- package/src/conversion/test/textToBuf.test.ts +0 -26
- package/src/conversion/tsconfig.json +0 -57
- package/src/conversion/typedoc.json +0 -5
- package/src/conversion/vite.config.ts +0 -47
- package/src/conversion/vitest.config.ts +0 -15
- package/src/index.bench.ts +0 -206
- package/src/index.spec.ts +0 -318
- package/src/index.ts +0 -343
- /package/dist/{types/dist/dist/conversion/conversion → conversion}/index.d.ts +0 -0
|
@@ -1,1225 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for index.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="index.html">All files</a> index.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">55.14% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>75/136</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">54.73% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>52/95</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">64% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>16/25</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">55.73% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>68/122</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line medium'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
-
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
-
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
-
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
-
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
-
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
-
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
-
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
-
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
-
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
-
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
-
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
-
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
-
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
-
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
-
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
-
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
-
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
-
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
-
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
-
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
-
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
-
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
-
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
-
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
-
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
-
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
-
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
-
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
-
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
-
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
-
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
-
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
-
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
-
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
-
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
-
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
-
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
-
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
-
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
-
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
-
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
-
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
-
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
-
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
-
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
-
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
-
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
-
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
-
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
-
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
|
-
<a name='L77'></a><a href='#L77'>77</a>
|
|
143
|
-
<a name='L78'></a><a href='#L78'>78</a>
|
|
144
|
-
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
|
-
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
|
-
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
-
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
-
<a name='L83'></a><a href='#L83'>83</a>
|
|
149
|
-
<a name='L84'></a><a href='#L84'>84</a>
|
|
150
|
-
<a name='L85'></a><a href='#L85'>85</a>
|
|
151
|
-
<a name='L86'></a><a href='#L86'>86</a>
|
|
152
|
-
<a name='L87'></a><a href='#L87'>87</a>
|
|
153
|
-
<a name='L88'></a><a href='#L88'>88</a>
|
|
154
|
-
<a name='L89'></a><a href='#L89'>89</a>
|
|
155
|
-
<a name='L90'></a><a href='#L90'>90</a>
|
|
156
|
-
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
|
-
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
|
-
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
|
-
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
-
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
-
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
|
-
<a name='L97'></a><a href='#L97'>97</a>
|
|
163
|
-
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
|
-
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
|
-
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
-
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
-
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
-
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
-
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
-
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
-
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
-
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
-
<a name='L108'></a><a href='#L108'>108</a>
|
|
174
|
-
<a name='L109'></a><a href='#L109'>109</a>
|
|
175
|
-
<a name='L110'></a><a href='#L110'>110</a>
|
|
176
|
-
<a name='L111'></a><a href='#L111'>111</a>
|
|
177
|
-
<a name='L112'></a><a href='#L112'>112</a>
|
|
178
|
-
<a name='L113'></a><a href='#L113'>113</a>
|
|
179
|
-
<a name='L114'></a><a href='#L114'>114</a>
|
|
180
|
-
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
|
-
<a name='L116'></a><a href='#L116'>116</a>
|
|
182
|
-
<a name='L117'></a><a href='#L117'>117</a>
|
|
183
|
-
<a name='L118'></a><a href='#L118'>118</a>
|
|
184
|
-
<a name='L119'></a><a href='#L119'>119</a>
|
|
185
|
-
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
|
-
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
|
-
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
-
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
-
<a name='L124'></a><a href='#L124'>124</a>
|
|
190
|
-
<a name='L125'></a><a href='#L125'>125</a>
|
|
191
|
-
<a name='L126'></a><a href='#L126'>126</a>
|
|
192
|
-
<a name='L127'></a><a href='#L127'>127</a>
|
|
193
|
-
<a name='L128'></a><a href='#L128'>128</a>
|
|
194
|
-
<a name='L129'></a><a href='#L129'>129</a>
|
|
195
|
-
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
|
-
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
|
-
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
-
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
-
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
-
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
-
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
-
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
-
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
-
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
-
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
-
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
-
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
-
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
-
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
-
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
-
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
-
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
-
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
-
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
-
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
-
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
-
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
-
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
-
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
-
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
-
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
-
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
-
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
-
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
-
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
-
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
-
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
-
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
-
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
-
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
-
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
-
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
-
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
-
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
-
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
-
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
-
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
-
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
-
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
-
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
-
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
-
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
-
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
-
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
-
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
-
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
-
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
-
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
-
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
-
<a name='L186'></a><a href='#L186'>186</a>
|
|
252
|
-
<a name='L187'></a><a href='#L187'>187</a>
|
|
253
|
-
<a name='L188'></a><a href='#L188'>188</a>
|
|
254
|
-
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
|
-
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
|
-
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
|
-
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
-
<a name='L193'></a><a href='#L193'>193</a>
|
|
259
|
-
<a name='L194'></a><a href='#L194'>194</a>
|
|
260
|
-
<a name='L195'></a><a href='#L195'>195</a>
|
|
261
|
-
<a name='L196'></a><a href='#L196'>196</a>
|
|
262
|
-
<a name='L197'></a><a href='#L197'>197</a>
|
|
263
|
-
<a name='L198'></a><a href='#L198'>198</a>
|
|
264
|
-
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
|
-
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
|
-
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
-
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
-
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
-
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
-
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
-
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
-
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
-
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
-
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
-
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
-
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
-
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
-
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
-
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
-
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
-
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
-
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
-
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
-
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
-
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
-
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
-
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
-
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
-
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
-
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
-
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
-
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
-
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
-
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
-
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
-
<a name='L231'></a><a href='#L231'>231</a>
|
|
297
|
-
<a name='L232'></a><a href='#L232'>232</a>
|
|
298
|
-
<a name='L233'></a><a href='#L233'>233</a>
|
|
299
|
-
<a name='L234'></a><a href='#L234'>234</a>
|
|
300
|
-
<a name='L235'></a><a href='#L235'>235</a>
|
|
301
|
-
<a name='L236'></a><a href='#L236'>236</a>
|
|
302
|
-
<a name='L237'></a><a href='#L237'>237</a>
|
|
303
|
-
<a name='L238'></a><a href='#L238'>238</a>
|
|
304
|
-
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
|
-
<a name='L240'></a><a href='#L240'>240</a>
|
|
306
|
-
<a name='L241'></a><a href='#L241'>241</a>
|
|
307
|
-
<a name='L242'></a><a href='#L242'>242</a>
|
|
308
|
-
<a name='L243'></a><a href='#L243'>243</a>
|
|
309
|
-
<a name='L244'></a><a href='#L244'>244</a>
|
|
310
|
-
<a name='L245'></a><a href='#L245'>245</a>
|
|
311
|
-
<a name='L246'></a><a href='#L246'>246</a>
|
|
312
|
-
<a name='L247'></a><a href='#L247'>247</a>
|
|
313
|
-
<a name='L248'></a><a href='#L248'>248</a>
|
|
314
|
-
<a name='L249'></a><a href='#L249'>249</a>
|
|
315
|
-
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
|
-
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
|
-
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
-
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
-
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
-
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
-
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
-
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
-
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
-
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
-
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
-
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
-
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
-
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
-
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
-
<a name='L265'></a><a href='#L265'>265</a>
|
|
331
|
-
<a name='L266'></a><a href='#L266'>266</a>
|
|
332
|
-
<a name='L267'></a><a href='#L267'>267</a>
|
|
333
|
-
<a name='L268'></a><a href='#L268'>268</a>
|
|
334
|
-
<a name='L269'></a><a href='#L269'>269</a>
|
|
335
|
-
<a name='L270'></a><a href='#L270'>270</a>
|
|
336
|
-
<a name='L271'></a><a href='#L271'>271</a>
|
|
337
|
-
<a name='L272'></a><a href='#L272'>272</a>
|
|
338
|
-
<a name='L273'></a><a href='#L273'>273</a>
|
|
339
|
-
<a name='L274'></a><a href='#L274'>274</a>
|
|
340
|
-
<a name='L275'></a><a href='#L275'>275</a>
|
|
341
|
-
<a name='L276'></a><a href='#L276'>276</a>
|
|
342
|
-
<a name='L277'></a><a href='#L277'>277</a>
|
|
343
|
-
<a name='L278'></a><a href='#L278'>278</a>
|
|
344
|
-
<a name='L279'></a><a href='#L279'>279</a>
|
|
345
|
-
<a name='L280'></a><a href='#L280'>280</a>
|
|
346
|
-
<a name='L281'></a><a href='#L281'>281</a>
|
|
347
|
-
<a name='L282'></a><a href='#L282'>282</a>
|
|
348
|
-
<a name='L283'></a><a href='#L283'>283</a>
|
|
349
|
-
<a name='L284'></a><a href='#L284'>284</a>
|
|
350
|
-
<a name='L285'></a><a href='#L285'>285</a>
|
|
351
|
-
<a name='L286'></a><a href='#L286'>286</a>
|
|
352
|
-
<a name='L287'></a><a href='#L287'>287</a>
|
|
353
|
-
<a name='L288'></a><a href='#L288'>288</a>
|
|
354
|
-
<a name='L289'></a><a href='#L289'>289</a>
|
|
355
|
-
<a name='L290'></a><a href='#L290'>290</a>
|
|
356
|
-
<a name='L291'></a><a href='#L291'>291</a>
|
|
357
|
-
<a name='L292'></a><a href='#L292'>292</a>
|
|
358
|
-
<a name='L293'></a><a href='#L293'>293</a>
|
|
359
|
-
<a name='L294'></a><a href='#L294'>294</a>
|
|
360
|
-
<a name='L295'></a><a href='#L295'>295</a>
|
|
361
|
-
<a name='L296'></a><a href='#L296'>296</a>
|
|
362
|
-
<a name='L297'></a><a href='#L297'>297</a>
|
|
363
|
-
<a name='L298'></a><a href='#L298'>298</a>
|
|
364
|
-
<a name='L299'></a><a href='#L299'>299</a>
|
|
365
|
-
<a name='L300'></a><a href='#L300'>300</a>
|
|
366
|
-
<a name='L301'></a><a href='#L301'>301</a>
|
|
367
|
-
<a name='L302'></a><a href='#L302'>302</a>
|
|
368
|
-
<a name='L303'></a><a href='#L303'>303</a>
|
|
369
|
-
<a name='L304'></a><a href='#L304'>304</a>
|
|
370
|
-
<a name='L305'></a><a href='#L305'>305</a>
|
|
371
|
-
<a name='L306'></a><a href='#L306'>306</a>
|
|
372
|
-
<a name='L307'></a><a href='#L307'>307</a>
|
|
373
|
-
<a name='L308'></a><a href='#L308'>308</a>
|
|
374
|
-
<a name='L309'></a><a href='#L309'>309</a>
|
|
375
|
-
<a name='L310'></a><a href='#L310'>310</a>
|
|
376
|
-
<a name='L311'></a><a href='#L311'>311</a>
|
|
377
|
-
<a name='L312'></a><a href='#L312'>312</a>
|
|
378
|
-
<a name='L313'></a><a href='#L313'>313</a>
|
|
379
|
-
<a name='L314'></a><a href='#L314'>314</a>
|
|
380
|
-
<a name='L315'></a><a href='#L315'>315</a>
|
|
381
|
-
<a name='L316'></a><a href='#L316'>316</a>
|
|
382
|
-
<a name='L317'></a><a href='#L317'>317</a>
|
|
383
|
-
<a name='L318'></a><a href='#L318'>318</a>
|
|
384
|
-
<a name='L319'></a><a href='#L319'>319</a>
|
|
385
|
-
<a name='L320'></a><a href='#L320'>320</a>
|
|
386
|
-
<a name='L321'></a><a href='#L321'>321</a>
|
|
387
|
-
<a name='L322'></a><a href='#L322'>322</a>
|
|
388
|
-
<a name='L323'></a><a href='#L323'>323</a>
|
|
389
|
-
<a name='L324'></a><a href='#L324'>324</a>
|
|
390
|
-
<a name='L325'></a><a href='#L325'>325</a>
|
|
391
|
-
<a name='L326'></a><a href='#L326'>326</a>
|
|
392
|
-
<a name='L327'></a><a href='#L327'>327</a>
|
|
393
|
-
<a name='L328'></a><a href='#L328'>328</a>
|
|
394
|
-
<a name='L329'></a><a href='#L329'>329</a>
|
|
395
|
-
<a name='L330'></a><a href='#L330'>330</a>
|
|
396
|
-
<a name='L331'></a><a href='#L331'>331</a>
|
|
397
|
-
<a name='L332'></a><a href='#L332'>332</a>
|
|
398
|
-
<a name='L333'></a><a href='#L333'>333</a>
|
|
399
|
-
<a name='L334'></a><a href='#L334'>334</a>
|
|
400
|
-
<a name='L335'></a><a href='#L335'>335</a>
|
|
401
|
-
<a name='L336'></a><a href='#L336'>336</a>
|
|
402
|
-
<a name='L337'></a><a href='#L337'>337</a>
|
|
403
|
-
<a name='L338'></a><a href='#L338'>338</a>
|
|
404
|
-
<a name='L339'></a><a href='#L339'>339</a>
|
|
405
|
-
<a name='L340'></a><a href='#L340'>340</a>
|
|
406
|
-
<a name='L341'></a><a href='#L341'>341</a>
|
|
407
|
-
<a name='L342'></a><a href='#L342'>342</a>
|
|
408
|
-
<a name='L343'></a><a href='#L343'>343</a>
|
|
409
|
-
<a name='L344'></a><a href='#L344'>344</a>
|
|
410
|
-
<a name='L345'></a><a href='#L345'>345</a>
|
|
411
|
-
<a name='L346'></a><a href='#L346'>346</a>
|
|
412
|
-
<a name='L347'></a><a href='#L347'>347</a>
|
|
413
|
-
<a name='L348'></a><a href='#L348'>348</a>
|
|
414
|
-
<a name='L349'></a><a href='#L349'>349</a>
|
|
415
|
-
<a name='L350'></a><a href='#L350'>350</a>
|
|
416
|
-
<a name='L351'></a><a href='#L351'>351</a>
|
|
417
|
-
<a name='L352'></a><a href='#L352'>352</a>
|
|
418
|
-
<a name='L353'></a><a href='#L353'>353</a>
|
|
419
|
-
<a name='L354'></a><a href='#L354'>354</a>
|
|
420
|
-
<a name='L355'></a><a href='#L355'>355</a>
|
|
421
|
-
<a name='L356'></a><a href='#L356'>356</a>
|
|
422
|
-
<a name='L357'></a><a href='#L357'>357</a>
|
|
423
|
-
<a name='L358'></a><a href='#L358'>358</a>
|
|
424
|
-
<a name='L359'></a><a href='#L359'>359</a>
|
|
425
|
-
<a name='L360'></a><a href='#L360'>360</a>
|
|
426
|
-
<a name='L361'></a><a href='#L361'>361</a>
|
|
427
|
-
<a name='L362'></a><a href='#L362'>362</a>
|
|
428
|
-
<a name='L363'></a><a href='#L363'>363</a>
|
|
429
|
-
<a name='L364'></a><a href='#L364'>364</a>
|
|
430
|
-
<a name='L365'></a><a href='#L365'>365</a>
|
|
431
|
-
<a name='L366'></a><a href='#L366'>366</a>
|
|
432
|
-
<a name='L367'></a><a href='#L367'>367</a>
|
|
433
|
-
<a name='L368'></a><a href='#L368'>368</a>
|
|
434
|
-
<a name='L369'></a><a href='#L369'>369</a>
|
|
435
|
-
<a name='L370'></a><a href='#L370'>370</a>
|
|
436
|
-
<a name='L371'></a><a href='#L371'>371</a>
|
|
437
|
-
<a name='L372'></a><a href='#L372'>372</a>
|
|
438
|
-
<a name='L373'></a><a href='#L373'>373</a>
|
|
439
|
-
<a name='L374'></a><a href='#L374'>374</a>
|
|
440
|
-
<a name='L375'></a><a href='#L375'>375</a>
|
|
441
|
-
<a name='L376'></a><a href='#L376'>376</a>
|
|
442
|
-
<a name='L377'></a><a href='#L377'>377</a>
|
|
443
|
-
<a name='L378'></a><a href='#L378'>378</a>
|
|
444
|
-
<a name='L379'></a><a href='#L379'>379</a>
|
|
445
|
-
<a name='L380'></a><a href='#L380'>380</a>
|
|
446
|
-
<a name='L381'></a><a href='#L381'>381</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
447
|
-
<span class="cline-any cline-neutral"> </span>
|
|
448
|
-
<span class="cline-any cline-neutral"> </span>
|
|
449
|
-
<span class="cline-any cline-neutral"> </span>
|
|
450
|
-
<span class="cline-any cline-neutral"> </span>
|
|
451
|
-
<span class="cline-any cline-neutral"> </span>
|
|
452
|
-
<span class="cline-any cline-neutral"> </span>
|
|
453
|
-
<span class="cline-any cline-neutral"> </span>
|
|
454
|
-
<span class="cline-any cline-neutral"> </span>
|
|
455
|
-
<span class="cline-any cline-neutral"> </span>
|
|
456
|
-
<span class="cline-any cline-yes">9x</span>
|
|
457
|
-
<span class="cline-any cline-neutral"> </span>
|
|
458
|
-
<span class="cline-any cline-neutral"> </span>
|
|
459
|
-
<span class="cline-any cline-neutral"> </span>
|
|
460
|
-
<span class="cline-any cline-yes">9x</span>
|
|
461
|
-
<span class="cline-any cline-neutral"> </span>
|
|
462
|
-
<span class="cline-any cline-yes">9x</span>
|
|
463
|
-
<span class="cline-any cline-neutral"> </span>
|
|
464
|
-
<span class="cline-any cline-neutral"> </span>
|
|
465
|
-
<span class="cline-any cline-neutral"> </span>
|
|
466
|
-
<span class="cline-any cline-neutral"> </span>
|
|
467
|
-
<span class="cline-any cline-neutral"> </span>
|
|
468
|
-
<span class="cline-any cline-neutral"> </span>
|
|
469
|
-
<span class="cline-any cline-neutral"> </span>
|
|
470
|
-
<span class="cline-any cline-neutral"> </span>
|
|
471
|
-
<span class="cline-any cline-yes">9x</span>
|
|
472
|
-
<span class="cline-any cline-yes">9x</span>
|
|
473
|
-
<span class="cline-any cline-yes">27x</span>
|
|
474
|
-
<span class="cline-any cline-yes">27x</span>
|
|
475
|
-
<span class="cline-any cline-neutral"> </span>
|
|
476
|
-
<span class="cline-any cline-no"> </span>
|
|
477
|
-
<span class="cline-any cline-neutral"> </span>
|
|
478
|
-
<span class="cline-any cline-neutral"> </span>
|
|
479
|
-
<span class="cline-any cline-yes">9x</span>
|
|
480
|
-
<span class="cline-any cline-yes">9x</span>
|
|
481
|
-
<span class="cline-any cline-neutral"> </span>
|
|
482
|
-
<span class="cline-any cline-yes">9x</span>
|
|
483
|
-
<span class="cline-any cline-yes">9x</span>
|
|
484
|
-
<span class="cline-any cline-yes">9x</span>
|
|
485
|
-
<span class="cline-any cline-neutral"> </span>
|
|
486
|
-
<span class="cline-any cline-no"> </span>
|
|
487
|
-
<span class="cline-any cline-no"> </span>
|
|
488
|
-
<span class="cline-any cline-neutral"> </span>
|
|
489
|
-
<span class="cline-any cline-neutral"> </span>
|
|
490
|
-
<span class="cline-any cline-neutral"> </span>
|
|
491
|
-
<span class="cline-any cline-yes">9x</span>
|
|
492
|
-
<span class="cline-any cline-yes">9x</span>
|
|
493
|
-
<span class="cline-any cline-yes">9x</span>
|
|
494
|
-
<span class="cline-any cline-yes">9x</span>
|
|
495
|
-
<span class="cline-any cline-no"> </span>
|
|
496
|
-
<span class="cline-any cline-neutral"> </span>
|
|
497
|
-
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-neutral"> </span>
|
|
499
|
-
<span class="cline-any cline-yes">9x</span>
|
|
500
|
-
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-no"> </span>
|
|
502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
503
|
-
<span class="cline-any cline-no"> </span>
|
|
504
|
-
<span class="cline-any cline-no"> </span>
|
|
505
|
-
<span class="cline-any cline-no"> </span>
|
|
506
|
-
<span class="cline-any cline-no"> </span>
|
|
507
|
-
<span class="cline-any cline-neutral"> </span>
|
|
508
|
-
<span class="cline-any cline-neutral"> </span>
|
|
509
|
-
<span class="cline-any cline-no"> </span>
|
|
510
|
-
<span class="cline-any cline-no"> </span>
|
|
511
|
-
<span class="cline-any cline-no"> </span>
|
|
512
|
-
<span class="cline-any cline-no"> </span>
|
|
513
|
-
<span class="cline-any cline-no"> </span>
|
|
514
|
-
<span class="cline-any cline-no"> </span>
|
|
515
|
-
<span class="cline-any cline-no"> </span>
|
|
516
|
-
<span class="cline-any cline-neutral"> </span>
|
|
517
|
-
<span class="cline-any cline-neutral"> </span>
|
|
518
|
-
<span class="cline-any cline-neutral"> </span>
|
|
519
|
-
<span class="cline-any cline-neutral"> </span>
|
|
520
|
-
<span class="cline-any cline-neutral"> </span>
|
|
521
|
-
<span class="cline-any cline-neutral"> </span>
|
|
522
|
-
<span class="cline-any cline-neutral"> </span>
|
|
523
|
-
<span class="cline-any cline-neutral"> </span>
|
|
524
|
-
<span class="cline-any cline-neutral"> </span>
|
|
525
|
-
<span class="cline-any cline-neutral"> </span>
|
|
526
|
-
<span class="cline-any cline-no"> </span>
|
|
527
|
-
<span class="cline-any cline-no"> </span>
|
|
528
|
-
<span class="cline-any cline-no"> </span>
|
|
529
|
-
<span class="cline-any cline-no"> </span>
|
|
530
|
-
<span class="cline-any cline-no"> </span>
|
|
531
|
-
<span class="cline-any cline-no"> </span>
|
|
532
|
-
<span class="cline-any cline-neutral"> </span>
|
|
533
|
-
<span class="cline-any cline-no"> </span>
|
|
534
|
-
<span class="cline-any cline-neutral"> </span>
|
|
535
|
-
<span class="cline-any cline-no"> </span>
|
|
536
|
-
<span class="cline-any cline-neutral"> </span>
|
|
537
|
-
<span class="cline-any cline-neutral"> </span>
|
|
538
|
-
<span class="cline-any cline-neutral"> </span>
|
|
539
|
-
<span class="cline-any cline-no"> </span>
|
|
540
|
-
<span class="cline-any cline-no"> </span>
|
|
541
|
-
<span class="cline-any cline-no"> </span>
|
|
542
|
-
<span class="cline-any cline-neutral"> </span>
|
|
543
|
-
<span class="cline-any cline-no"> </span>
|
|
544
|
-
<span class="cline-any cline-neutral"> </span>
|
|
545
|
-
<span class="cline-any cline-neutral"> </span>
|
|
546
|
-
<span class="cline-any cline-neutral"> </span>
|
|
547
|
-
<span class="cline-any cline-neutral"> </span>
|
|
548
|
-
<span class="cline-any cline-neutral"> </span>
|
|
549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
550
|
-
<span class="cline-any cline-neutral"> </span>
|
|
551
|
-
<span class="cline-any cline-neutral"> </span>
|
|
552
|
-
<span class="cline-any cline-neutral"> </span>
|
|
553
|
-
<span class="cline-any cline-no"> </span>
|
|
554
|
-
<span class="cline-any cline-no"> </span>
|
|
555
|
-
<span class="cline-any cline-no"> </span>
|
|
556
|
-
<span class="cline-any cline-no"> </span>
|
|
557
|
-
<span class="cline-any cline-neutral"> </span>
|
|
558
|
-
<span class="cline-any cline-no"> </span>
|
|
559
|
-
<span class="cline-any cline-neutral"> </span>
|
|
560
|
-
<span class="cline-any cline-no"> </span>
|
|
561
|
-
<span class="cline-any cline-neutral"> </span>
|
|
562
|
-
<span class="cline-any cline-neutral"> </span>
|
|
563
|
-
<span class="cline-any cline-neutral"> </span>
|
|
564
|
-
<span class="cline-any cline-neutral"> </span>
|
|
565
|
-
<span class="cline-any cline-neutral"> </span>
|
|
566
|
-
<span class="cline-any cline-neutral"> </span>
|
|
567
|
-
<span class="cline-any cline-neutral"> </span>
|
|
568
|
-
<span class="cline-any cline-neutral"> </span>
|
|
569
|
-
<span class="cline-any cline-neutral"> </span>
|
|
570
|
-
<span class="cline-any cline-no"> </span>
|
|
571
|
-
<span class="cline-any cline-no"> </span>
|
|
572
|
-
<span class="cline-any cline-neutral"> </span>
|
|
573
|
-
<span class="cline-any cline-no"> </span>
|
|
574
|
-
<span class="cline-any cline-no"> </span>
|
|
575
|
-
<span class="cline-any cline-no"> </span>
|
|
576
|
-
<span class="cline-any cline-neutral"> </span>
|
|
577
|
-
<span class="cline-any cline-neutral"> </span>
|
|
578
|
-
<span class="cline-any cline-no"> </span>
|
|
579
|
-
<span class="cline-any cline-neutral"> </span>
|
|
580
|
-
<span class="cline-any cline-neutral"> </span>
|
|
581
|
-
<span class="cline-any cline-neutral"> </span>
|
|
582
|
-
<span class="cline-any cline-neutral"> </span>
|
|
583
|
-
<span class="cline-any cline-neutral"> </span>
|
|
584
|
-
<span class="cline-any cline-neutral"> </span>
|
|
585
|
-
<span class="cline-any cline-neutral"> </span>
|
|
586
|
-
<span class="cline-any cline-neutral"> </span>
|
|
587
|
-
<span class="cline-any cline-neutral"> </span>
|
|
588
|
-
<span class="cline-any cline-no"> </span>
|
|
589
|
-
<span class="cline-any cline-no"> </span>
|
|
590
|
-
<span class="cline-any cline-no"> </span>
|
|
591
|
-
<span class="cline-any cline-neutral"> </span>
|
|
592
|
-
<span class="cline-any cline-no"> </span>
|
|
593
|
-
<span class="cline-any cline-neutral"> </span>
|
|
594
|
-
<span class="cline-any cline-neutral"> </span>
|
|
595
|
-
<span class="cline-any cline-neutral"> </span>
|
|
596
|
-
<span class="cline-any cline-neutral"> </span>
|
|
597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
600
|
-
<span class="cline-any cline-neutral"> </span>
|
|
601
|
-
<span class="cline-any cline-neutral"> </span>
|
|
602
|
-
<span class="cline-any cline-neutral"> </span>
|
|
603
|
-
<span class="cline-any cline-neutral"> </span>
|
|
604
|
-
<span class="cline-any cline-neutral"> </span>
|
|
605
|
-
<span class="cline-any cline-neutral"> </span>
|
|
606
|
-
<span class="cline-any cline-neutral"> </span>
|
|
607
|
-
<span class="cline-any cline-neutral"> </span>
|
|
608
|
-
<span class="cline-any cline-neutral"> </span>
|
|
609
|
-
<span class="cline-any cline-yes">124x</span>
|
|
610
|
-
<span class="cline-any cline-yes">124x</span>
|
|
611
|
-
<span class="cline-any cline-yes">6x</span>
|
|
612
|
-
<span class="cline-any cline-neutral"> </span>
|
|
613
|
-
<span class="cline-any cline-yes">118x</span>
|
|
614
|
-
<span class="cline-any cline-yes">118x</span>
|
|
615
|
-
<span class="cline-any cline-yes">41x</span>
|
|
616
|
-
<span class="cline-any cline-yes">2x</span>
|
|
617
|
-
<span class="cline-any cline-neutral"> </span>
|
|
618
|
-
<span class="cline-any cline-yes">39x</span>
|
|
619
|
-
<span class="cline-any cline-neutral"> </span>
|
|
620
|
-
<span class="cline-any cline-yes">116x</span>
|
|
621
|
-
<span class="cline-any cline-neutral"> </span>
|
|
622
|
-
<span class="cline-any cline-neutral"> </span>
|
|
623
|
-
<span class="cline-any cline-neutral"> </span>
|
|
624
|
-
<span class="cline-any cline-neutral"> </span>
|
|
625
|
-
<span class="cline-any cline-neutral"> </span>
|
|
626
|
-
<span class="cline-any cline-neutral"> </span>
|
|
627
|
-
<span class="cline-any cline-neutral"> </span>
|
|
628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
629
|
-
<span class="cline-any cline-neutral"> </span>
|
|
630
|
-
<span class="cline-any cline-neutral"> </span>
|
|
631
|
-
<span class="cline-any cline-neutral"> </span>
|
|
632
|
-
<span class="cline-any cline-neutral"> </span>
|
|
633
|
-
<span class="cline-any cline-neutral"> </span>
|
|
634
|
-
<span class="cline-any cline-yes">19x</span>
|
|
635
|
-
<span class="cline-any cline-yes">16x</span>
|
|
636
|
-
<span class="cline-any cline-neutral"> </span>
|
|
637
|
-
<span class="cline-any cline-neutral"> </span>
|
|
638
|
-
<span class="cline-any cline-neutral"> </span>
|
|
639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
640
|
-
<span class="cline-any cline-neutral"> </span>
|
|
641
|
-
<span class="cline-any cline-neutral"> </span>
|
|
642
|
-
<span class="cline-any cline-neutral"> </span>
|
|
643
|
-
<span class="cline-any cline-neutral"> </span>
|
|
644
|
-
<span class="cline-any cline-yes">19x</span>
|
|
645
|
-
<span class="cline-any cline-yes">19x</span>
|
|
646
|
-
<span class="cline-any cline-yes">4x</span>
|
|
647
|
-
<span class="cline-any cline-neutral"> </span>
|
|
648
|
-
<span class="cline-any cline-yes">19x</span>
|
|
649
|
-
<span class="cline-any cline-yes">19x</span>
|
|
650
|
-
<span class="cline-any cline-yes">216x</span>
|
|
651
|
-
<span class="cline-any cline-yes">216x</span>
|
|
652
|
-
<span class="cline-any cline-neutral"> </span>
|
|
653
|
-
<span class="cline-any cline-yes">19x</span>
|
|
654
|
-
<span class="cline-any cline-neutral"> </span>
|
|
655
|
-
<span class="cline-any cline-neutral"> </span>
|
|
656
|
-
<span class="cline-any cline-neutral"> </span>
|
|
657
|
-
<span class="cline-any cline-neutral"> </span>
|
|
658
|
-
<span class="cline-any cline-neutral"> </span>
|
|
659
|
-
<span class="cline-any cline-neutral"> </span>
|
|
660
|
-
<span class="cline-any cline-neutral"> </span>
|
|
661
|
-
<span class="cline-any cline-neutral"> </span>
|
|
662
|
-
<span class="cline-any cline-neutral"> </span>
|
|
663
|
-
<span class="cline-any cline-neutral"> </span>
|
|
664
|
-
<span class="cline-any cline-neutral"> </span>
|
|
665
|
-
<span class="cline-any cline-neutral"> </span>
|
|
666
|
-
<span class="cline-any cline-neutral"> </span>
|
|
667
|
-
<span class="cline-any cline-yes">27x</span>
|
|
668
|
-
<span class="cline-any cline-yes">25x</span>
|
|
669
|
-
<span class="cline-any cline-neutral"> </span>
|
|
670
|
-
<span class="cline-any cline-neutral"> </span>
|
|
671
|
-
<span class="cline-any cline-neutral"> </span>
|
|
672
|
-
<span class="cline-any cline-neutral"> </span>
|
|
673
|
-
<span class="cline-any cline-neutral"> </span>
|
|
674
|
-
<span class="cline-any cline-neutral"> </span>
|
|
675
|
-
<span class="cline-any cline-neutral"> </span>
|
|
676
|
-
<span class="cline-any cline-neutral"> </span>
|
|
677
|
-
<span class="cline-any cline-neutral"> </span>
|
|
678
|
-
<span class="cline-any cline-neutral"> </span>
|
|
679
|
-
<span class="cline-any cline-neutral"> </span>
|
|
680
|
-
<span class="cline-any cline-neutral"> </span>
|
|
681
|
-
<span class="cline-any cline-yes">7x</span>
|
|
682
|
-
<span class="cline-any cline-neutral"> </span>
|
|
683
|
-
<span class="cline-any cline-neutral"> </span>
|
|
684
|
-
<span class="cline-any cline-neutral"> </span>
|
|
685
|
-
<span class="cline-any cline-neutral"> </span>
|
|
686
|
-
<span class="cline-any cline-neutral"> </span>
|
|
687
|
-
<span class="cline-any cline-neutral"> </span>
|
|
688
|
-
<span class="cline-any cline-neutral"> </span>
|
|
689
|
-
<span class="cline-any cline-neutral"> </span>
|
|
690
|
-
<span class="cline-any cline-neutral"> </span>
|
|
691
|
-
<span class="cline-any cline-neutral"> </span>
|
|
692
|
-
<span class="cline-any cline-neutral"> </span>
|
|
693
|
-
<span class="cline-any cline-neutral"> </span>
|
|
694
|
-
<span class="cline-any cline-yes">4x</span>
|
|
695
|
-
<span class="cline-any cline-yes">3x</span>
|
|
696
|
-
<span class="cline-any cline-neutral"> </span>
|
|
697
|
-
<span class="cline-any cline-neutral"> </span>
|
|
698
|
-
<span class="cline-any cline-neutral"> </span>
|
|
699
|
-
<span class="cline-any cline-neutral"> </span>
|
|
700
|
-
<span class="cline-any cline-neutral"> </span>
|
|
701
|
-
<span class="cline-any cline-neutral"> </span>
|
|
702
|
-
<span class="cline-any cline-neutral"> </span>
|
|
703
|
-
<span class="cline-any cline-neutral"> </span>
|
|
704
|
-
<span class="cline-any cline-neutral"> </span>
|
|
705
|
-
<span class="cline-any cline-neutral"> </span>
|
|
706
|
-
<span class="cline-any cline-yes">3x</span>
|
|
707
|
-
<span class="cline-any cline-neutral"> </span>
|
|
708
|
-
<span class="cline-any cline-neutral"> </span>
|
|
709
|
-
<span class="cline-any cline-yes">22x</span>
|
|
710
|
-
<span class="cline-any cline-neutral"> </span>
|
|
711
|
-
<span class="cline-any cline-yes">9x</span>
|
|
712
|
-
<span class="cline-any cline-yes">6x</span>
|
|
713
|
-
<span class="cline-any cline-neutral"> </span>
|
|
714
|
-
<span class="cline-any cline-neutral"> </span>
|
|
715
|
-
<span class="cline-any cline-yes">3x</span>
|
|
716
|
-
<span class="cline-any cline-yes">3x</span>
|
|
717
|
-
<span class="cline-any cline-neutral"> </span>
|
|
718
|
-
<span class="cline-any cline-neutral"> </span>
|
|
719
|
-
<span class="cline-any cline-no"> </span>
|
|
720
|
-
<span class="cline-any cline-neutral"> </span>
|
|
721
|
-
<span class="cline-any cline-neutral"> </span>
|
|
722
|
-
<span class="cline-any cline-neutral"> </span>
|
|
723
|
-
<span class="cline-any cline-neutral"> </span>
|
|
724
|
-
<span class="cline-any cline-neutral"> </span>
|
|
725
|
-
<span class="cline-any cline-neutral"> </span>
|
|
726
|
-
<span class="cline-any cline-neutral"> </span>
|
|
727
|
-
<span class="cline-any cline-neutral"> </span>
|
|
728
|
-
<span class="cline-any cline-neutral"> </span>
|
|
729
|
-
<span class="cline-any cline-yes">6x</span>
|
|
730
|
-
<span class="cline-any cline-yes">6x</span>
|
|
731
|
-
<span class="cline-any cline-yes">6x</span>
|
|
732
|
-
<span class="cline-any cline-neutral"> </span>
|
|
733
|
-
<span class="cline-any cline-neutral"> </span>
|
|
734
|
-
<span class="cline-any cline-neutral"> </span>
|
|
735
|
-
<span class="cline-any cline-neutral"> </span>
|
|
736
|
-
<span class="cline-any cline-neutral"> </span>
|
|
737
|
-
<span class="cline-any cline-neutral"> </span>
|
|
738
|
-
<span class="cline-any cline-neutral"> </span>
|
|
739
|
-
<span class="cline-any cline-neutral"> </span>
|
|
740
|
-
<span class="cline-any cline-neutral"> </span>
|
|
741
|
-
<span class="cline-any cline-neutral"> </span>
|
|
742
|
-
<span class="cline-any cline-neutral"> </span>
|
|
743
|
-
<span class="cline-any cline-yes">6x</span>
|
|
744
|
-
<span class="cline-any cline-yes">4x</span>
|
|
745
|
-
<span class="cline-any cline-neutral"> </span>
|
|
746
|
-
<span class="cline-any cline-yes">2x</span>
|
|
747
|
-
<span class="cline-any cline-neutral"> </span>
|
|
748
|
-
<span class="cline-any cline-neutral"> </span>
|
|
749
|
-
<span class="cline-any cline-neutral"> </span>
|
|
750
|
-
<span class="cline-any cline-neutral"> </span>
|
|
751
|
-
<span class="cline-any cline-neutral"> </span>
|
|
752
|
-
<span class="cline-any cline-neutral"> </span>
|
|
753
|
-
<span class="cline-any cline-neutral"> </span>
|
|
754
|
-
<span class="cline-any cline-neutral"> </span>
|
|
755
|
-
<span class="cline-any cline-neutral"> </span>
|
|
756
|
-
<span class="cline-any cline-neutral"> </span>
|
|
757
|
-
<span class="cline-any cline-neutral"> </span>
|
|
758
|
-
<span class="cline-any cline-neutral"> </span>
|
|
759
|
-
<span class="cline-any cline-yes">16x</span>
|
|
760
|
-
<span class="cline-any cline-no"> </span>
|
|
761
|
-
<span class="cline-any cline-no"> </span>
|
|
762
|
-
<span class="cline-any cline-no"> </span>
|
|
763
|
-
<span class="cline-any cline-no"> </span>
|
|
764
|
-
<span class="cline-any cline-neutral"> </span>
|
|
765
|
-
<span class="cline-any cline-no"> </span>
|
|
766
|
-
<span class="cline-any cline-no"> </span>
|
|
767
|
-
<span class="cline-any cline-neutral"> </span>
|
|
768
|
-
<span class="cline-any cline-neutral"> </span>
|
|
769
|
-
<span class="cline-any cline-no"> </span>
|
|
770
|
-
<span class="cline-any cline-neutral"> </span>
|
|
771
|
-
<span class="cline-any cline-yes">16x</span>
|
|
772
|
-
<span class="cline-any cline-yes">16x</span>
|
|
773
|
-
<span class="cline-any cline-yes">16x</span>
|
|
774
|
-
<span class="cline-any cline-neutral"> </span>
|
|
775
|
-
<span class="cline-any cline-neutral"> </span>
|
|
776
|
-
<span class="cline-any cline-neutral"> </span>
|
|
777
|
-
<span class="cline-any cline-neutral"> </span>
|
|
778
|
-
<span class="cline-any cline-neutral"> </span>
|
|
779
|
-
<span class="cline-any cline-neutral"> </span>
|
|
780
|
-
<span class="cline-any cline-neutral"> </span>
|
|
781
|
-
<span class="cline-any cline-neutral"> </span>
|
|
782
|
-
<span class="cline-any cline-neutral"> </span>
|
|
783
|
-
<span class="cline-any cline-neutral"> </span>
|
|
784
|
-
<span class="cline-any cline-neutral"> </span>
|
|
785
|
-
<span class="cline-any cline-neutral"> </span>
|
|
786
|
-
<span class="cline-any cline-neutral"> </span>
|
|
787
|
-
<span class="cline-any cline-neutral"> </span>
|
|
788
|
-
<span class="cline-any cline-yes">31x</span>
|
|
789
|
-
<span class="cline-any cline-yes">31x</span>
|
|
790
|
-
<span class="cline-any cline-yes">31x</span>
|
|
791
|
-
<span class="cline-any cline-no"> </span>
|
|
792
|
-
<span class="cline-any cline-no"> </span>
|
|
793
|
-
<span class="cline-any cline-neutral"> </span>
|
|
794
|
-
<span class="cline-any cline-neutral"> </span>
|
|
795
|
-
<span class="cline-any cline-yes">26x</span>
|
|
796
|
-
<span class="cline-any cline-yes">26x</span>
|
|
797
|
-
<span class="cline-any cline-neutral"> </span>
|
|
798
|
-
<span class="cline-any cline-neutral"> </span>
|
|
799
|
-
<span class="cline-any cline-neutral"> </span>
|
|
800
|
-
<span class="cline-any cline-neutral"> </span>
|
|
801
|
-
<span class="cline-any cline-neutral"> </span>
|
|
802
|
-
<span class="cline-any cline-neutral"> </span>
|
|
803
|
-
<span class="cline-any cline-neutral"> </span>
|
|
804
|
-
<span class="cline-any cline-neutral"> </span>
|
|
805
|
-
<span class="cline-any cline-neutral"> </span>
|
|
806
|
-
<span class="cline-any cline-neutral"> </span>
|
|
807
|
-
<span class="cline-any cline-neutral"> </span>
|
|
808
|
-
<span class="cline-any cline-neutral"> </span>
|
|
809
|
-
<span class="cline-any cline-neutral"> </span>
|
|
810
|
-
<span class="cline-any cline-neutral"> </span>
|
|
811
|
-
<span class="cline-any cline-yes">4x</span>
|
|
812
|
-
<span class="cline-any cline-yes">4x</span>
|
|
813
|
-
<span class="cline-any cline-neutral"> </span>
|
|
814
|
-
<span class="cline-any cline-neutral"> </span>
|
|
815
|
-
<span class="cline-any cline-neutral"> </span>
|
|
816
|
-
<span class="cline-any cline-neutral"> </span>
|
|
817
|
-
<span class="cline-any cline-neutral"> </span>
|
|
818
|
-
<span class="cline-any cline-neutral"> </span>
|
|
819
|
-
<span class="cline-any cline-neutral"> </span>
|
|
820
|
-
<span class="cline-any cline-neutral"> </span>
|
|
821
|
-
<span class="cline-any cline-yes">4x</span>
|
|
822
|
-
<span class="cline-any cline-yes">4x</span>
|
|
823
|
-
<span class="cline-any cline-yes">4x</span>
|
|
824
|
-
<span class="cline-any cline-yes">4x</span>
|
|
825
|
-
<span class="cline-any cline-neutral"> </span>
|
|
826
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import * as b64 from '@juanelas/base64';
|
|
827
|
-
import path from 'path';
|
|
828
|
-
import fs from 'fs';
|
|
829
|
-
|
|
830
|
-
interface ConverterInterface {
|
|
831
|
-
toBigInt: (buf: Buffer, bigEndian?: boolean) => bigint;
|
|
832
|
-
fromBigInt: (num: bigint, buf: Buffer, bigEndian?: boolean) => Buffer;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
export let isNative = false;
|
|
837
|
-
let converter: ConverterInterface | undefined;
|
|
838
|
-
let nativeLoadError: unknown;
|
|
839
|
-
|
|
840
|
-
const IS_BROWSER = typeof globalThis !== 'undefined' && typeof (globalThis as any).document !== 'undefined';
|
|
841
|
-
|
|
842
|
-
const candidateRoots = [
|
|
843
|
-
// when running from dist/
|
|
844
|
-
path.resolve(__dirname, '..'),
|
|
845
|
-
// when running from build/conversion/src/ts
|
|
846
|
-
path.resolve(__dirname, '../../..'),
|
|
847
|
-
// when running from src/conversion/src/ts
|
|
848
|
-
path.resolve(__dirname, '../../../../')
|
|
849
|
-
];
|
|
850
|
-
|
|
851
|
-
const findModuleRoot = (): string => {
|
|
852
|
-
for (const root of candidateRoots) {
|
|
853
|
-
const candidate = path.join(root, 'build', 'Release', 'bigint_buffer.node');
|
|
854
|
-
if (fs.existsSync(candidate)) return root;
|
|
855
|
-
}
|
|
856
|
-
<span class="cstat-no" title="statement not covered" > return candidateRoots[0];</span>
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
const loadNative = (): ConverterInterface | undefined => {
|
|
860
|
-
try {
|
|
861
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
862
|
-
const bindings = require('bindings');
|
|
863
|
-
const moduleRoot = findModuleRoot();
|
|
864
|
-
return bindings({ bindings: 'bigint_buffer', module_root: moduleRoot }) as ConverterInterface;
|
|
865
|
-
} catch (err) {
|
|
866
|
-
<span class="cstat-no" title="statement not covered" > nativeLoadError = err;</span>
|
|
867
|
-
<span class="cstat-no" title="statement not covered" > return undefined;</span>
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (!IS_BROWSER) {
|
|
872
|
-
converter = loadNative();
|
|
873
|
-
isNative = converter !== undefined;
|
|
874
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!isNative && <span class="branch-1 cbranch-no" title="branch not covered" >nativeLoadError !== undefined && <span class="branch-2 cbranch-no" title="branch not covered" >p</span>rocess.env?.BIGINT_BUFFER_SILENT_NATIVE_FAIL !== '1') {</span>
|
|
875
|
-
<span class="cstat-no" title="statement not covered" > console.warn('bigint-buffer: Failed to load native bindings; using pure JS fallback. Run npm run rebuild to restore native.', nativeLoadError);</span>
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (converter === undefined) {
|
|
880
|
-
// fallback to pure JS if needed (browser or when native load fails)
|
|
881
|
-
<span class="cstat-no" title="statement not covered" > converter = {</span>
|
|
882
|
-
toBigInt: <span class="fstat-no" title="function not covered" >(b</span>uf: Buffer, bigEndian = <span class="branch-0 cbranch-no" title="branch not covered" >true) => {</span>
|
|
883
|
-
const copy = <span class="cstat-no" title="statement not covered" >Buffer.from(buf);</span>
|
|
884
|
-
<span class="cstat-no" title="statement not covered" > if (!bigEndian) <span class="cstat-no" title="statement not covered" >copy.reverse();</span></span>
|
|
885
|
-
const hex = <span class="cstat-no" title="statement not covered" >copy.toString('hex');</span>
|
|
886
|
-
<span class="cstat-no" title="statement not covered" > return hex.length === 0 ? 0n : BigInt(`0x${hex}`);</span>
|
|
887
|
-
},
|
|
888
|
-
fromBigInt: <span class="fstat-no" title="function not covered" >(n</span>um: bigint, buf: Buffer, bigEndian = <span class="branch-0 cbranch-no" title="branch not covered" >true) => {</span>
|
|
889
|
-
const hex = <span class="cstat-no" title="statement not covered" >num.toString(16);</span>
|
|
890
|
-
const width = <span class="cstat-no" title="statement not covered" >buf.length;</span>
|
|
891
|
-
const filled = <span class="cstat-no" title="statement not covered" >hex.padStart(width * 2, '0').slice(0, width * 2);</span>
|
|
892
|
-
const tmp = <span class="cstat-no" title="statement not covered" >Buffer.from(filled, 'hex');</span>
|
|
893
|
-
<span class="cstat-no" title="statement not covered" > if (!bigEndian) <span class="cstat-no" title="statement not covered" >tmp.reverse();</span></span>
|
|
894
|
-
<span class="cstat-no" title="statement not covered" > tmp.copy(buf);</span>
|
|
895
|
-
<span class="cstat-no" title="statement not covered" > return buf;</span>
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Convert a little-endian buffer into a BigInt.
|
|
902
|
-
* @param buf The little-endian buffer to convert
|
|
903
|
-
* @returns A BigInt with the little-endian representation of buf.
|
|
904
|
-
*/
|
|
905
|
-
export function <span class="fstat-no" title="function not covered" >toBigIntLE (b</span>uf: Buffer): bigint {
|
|
906
|
-
<span class="cstat-no" title="statement not covered" > if (IS_BROWSER || converter === undefined) {</span>
|
|
907
|
-
const reversed = <span class="cstat-no" title="statement not covered" >Buffer.from(buf);</span>
|
|
908
|
-
<span class="cstat-no" title="statement not covered" > reversed.reverse();</span>
|
|
909
|
-
const hex = <span class="cstat-no" title="statement not covered" >reversed.toString('hex');</span>
|
|
910
|
-
<span class="cstat-no" title="statement not covered" > if (hex.length === 0) {</span>
|
|
911
|
-
<span class="cstat-no" title="statement not covered" > return BigInt(0);</span>
|
|
912
|
-
}
|
|
913
|
-
<span class="cstat-no" title="statement not covered" > return BigInt(`0x${hex}`);</span>
|
|
914
|
-
}
|
|
915
|
-
<span class="cstat-no" title="statement not covered" > return converter.toBigInt(buf, false);</span>
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
export function <span class="fstat-no" title="function not covered" >validateBigIntBuffer (): boolean {</span>
|
|
919
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
920
|
-
const test = <span class="cstat-no" title="statement not covered" >toBigIntLE(Buffer.from([0x01, 0x00]));</span>
|
|
921
|
-
<span class="cstat-no" title="statement not covered" > return test === BigInt(1);</span>
|
|
922
|
-
} catch {
|
|
923
|
-
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* Convert a big-endian buffer into a BigInt
|
|
929
|
-
* @param buf The big-endian buffer to convert.
|
|
930
|
-
* @returns A BigInt with the big-endian representation of buf.
|
|
931
|
-
*/
|
|
932
|
-
export function <span class="fstat-no" title="function not covered" >toBigIntBE (b</span>uf: Buffer): bigint {
|
|
933
|
-
<span class="cstat-no" title="statement not covered" > if (IS_BROWSER || converter === undefined) {</span>
|
|
934
|
-
const hex = <span class="cstat-no" title="statement not covered" >buf.toString('hex');</span>
|
|
935
|
-
<span class="cstat-no" title="statement not covered" > if (hex.length === 0) {</span>
|
|
936
|
-
<span class="cstat-no" title="statement not covered" > return BigInt(0);</span>
|
|
937
|
-
}
|
|
938
|
-
<span class="cstat-no" title="statement not covered" > return BigInt(`0x${hex}`);</span>
|
|
939
|
-
}
|
|
940
|
-
<span class="cstat-no" title="statement not covered" > return converter.toBigInt(buf, true);</span>
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Convert a BigInt to a little-endian buffer.
|
|
945
|
-
* @param num The BigInt to convert.
|
|
946
|
-
* @param width The number of bytes that the resulting buffer should be.
|
|
947
|
-
* @returns A little-endian buffer representation of num.
|
|
948
|
-
*/
|
|
949
|
-
export function <span class="fstat-no" title="function not covered" >toBufferLE (n</span>um: bigint, width: number): Buffer {
|
|
950
|
-
<span class="cstat-no" title="statement not covered" > if (IS_BROWSER || converter === undefined) {</span>
|
|
951
|
-
const hex = <span class="cstat-no" title="statement not covered" >num.toString(16);</span>
|
|
952
|
-
const buffer =
|
|
953
|
-
<span class="cstat-no" title="statement not covered" > Buffer.from(hex.padStart(width * 2, '0').slice(0, width * 2), 'hex');</span>
|
|
954
|
-
<span class="cstat-no" title="statement not covered" > buffer.reverse();</span>
|
|
955
|
-
<span class="cstat-no" title="statement not covered" > return buffer;</span>
|
|
956
|
-
}
|
|
957
|
-
// Allocation is done here, since it is slower using napi in C
|
|
958
|
-
<span class="cstat-no" title="statement not covered" > return converter.fromBigInt(num, Buffer.allocUnsafe(width), false);</span>
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* Convert a BigInt to a big-endian buffer.
|
|
963
|
-
* @param num The BigInt to convert.
|
|
964
|
-
* @param width The number of bytes that the resulting buffer should be.
|
|
965
|
-
* @returns A big-endian buffer representation of num.
|
|
966
|
-
*/
|
|
967
|
-
export function <span class="fstat-no" title="function not covered" >toBufferBE (n</span>um: bigint, width: number): Buffer {
|
|
968
|
-
<span class="cstat-no" title="statement not covered" > if (IS_BROWSER || converter === undefined) {</span>
|
|
969
|
-
const hex = <span class="cstat-no" title="statement not covered" >num.toString(16);</span>
|
|
970
|
-
<span class="cstat-no" title="statement not covered" > return Buffer.from(hex.padStart(width * 2, '0').slice(0, width * 2), 'hex');</span>
|
|
971
|
-
}
|
|
972
|
-
<span class="cstat-no" title="statement not covered" > return converter.fromBigInt(num, Buffer.allocUnsafe(width), true);</span>
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Parses a hexadecimal string for correctness and returns it with or without '0x' prefix, and/or with the specified byte length
|
|
979
|
-
* @param a - the string with an hexadecimal number to be parsed
|
|
980
|
-
* @param prefix0x - set to true to prefix the output with '0x'
|
|
981
|
-
* @param byteLength - pad the output to have the desired byte length. Notice that the hex length is double the byte length.
|
|
982
|
-
*
|
|
983
|
-
* @returns
|
|
984
|
-
*
|
|
985
|
-
* @throws {@link RangeError} if input string does not hold an hexadecimal number
|
|
986
|
-
* @throws {@link RangeError} if requested byte length is less than the input byte length
|
|
987
|
-
*/
|
|
988
|
-
export function parseHex (a: string, prefix0x = false, byteLength?: number): string {
|
|
989
|
-
const hexMatch = a.match(/^(0x)?([\da-fA-F]+)$/);
|
|
990
|
-
if (hexMatch == null) {
|
|
991
|
-
throw new RangeError('input must be a hexadecimal string, e.g. \'0x124fe3a\' or \'0214f1b2\'');
|
|
992
|
-
}
|
|
993
|
-
let hex = hexMatch[2];
|
|
994
|
-
if (byteLength !== undefined) {
|
|
995
|
-
if (byteLength < hex.length / 2) {
|
|
996
|
-
throw new RangeError(`expected byte length ${byteLength} < input hex byte length ${Math.ceil(hex.length / 2)}`);
|
|
997
|
-
}
|
|
998
|
-
hex = hex.padStart(byteLength * 2, '0');
|
|
999
|
-
}
|
|
1000
|
-
return (prefix0x) ? '0x' + hex : hex;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Converts an arbitrary-size non-negative bigint to an ArrayBuffer or a Buffer (default for Node.js)
|
|
1005
|
-
*
|
|
1006
|
-
* @param a
|
|
1007
|
-
* @param returnArrayBuffer - In Node.js, it forces the output to be an ArrayBuffer instead of a Buffer.
|
|
1008
|
-
*
|
|
1009
|
-
* @returns an ArrayBuffer or a Buffer with a binary representation of the input bigint
|
|
1010
|
-
*
|
|
1011
|
-
* @throws {@link RangeError} if a < 0.
|
|
1012
|
-
*/
|
|
1013
|
-
export function bigintToBuf (a: bigint, returnArrayBuffer = false): ArrayBuffer | Buffer {
|
|
1014
|
-
if (a < 0) throw RangeError('a should be a non-negative integer. Negative values are not supported');
|
|
1015
|
-
return hexToBuf(bigintToHex(a), returnArrayBuffer);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* Converts an ArrayBuffer, TypedArray or Buffer (node.js) to a bigint
|
|
1020
|
-
* @param buf
|
|
1021
|
-
* @returns a bigint
|
|
1022
|
-
*/
|
|
1023
|
-
export function bufToBigint (buf: ArrayBuffer | TypedArray | Buffer): bigint {
|
|
1024
|
-
let bits = 8n;
|
|
1025
|
-
if (ArrayBuffer.isView(buf)) bits = BigInt(buf.BYTES_PER_ELEMENT * 8);
|
|
1026
|
-
else buf = new Uint8Array(buf);
|
|
1027
|
-
|
|
1028
|
-
let ret = 0n;
|
|
1029
|
-
for (const i of (buf).values()) {
|
|
1030
|
-
const bi = BigInt(i);
|
|
1031
|
-
ret = (ret << bits) + bi;
|
|
1032
|
-
}
|
|
1033
|
-
return ret;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* Converts a non-negative bigint to a hexadecimal string
|
|
1038
|
-
* @param a - a non negative bigint
|
|
1039
|
-
* @param prefix0x - set to true to prefix the output with '0x'
|
|
1040
|
-
* @param byteLength - pad the output to have the desired byte length. Notice that the hex length is double the byte length.
|
|
1041
|
-
*
|
|
1042
|
-
* @returns hexadecimal representation of the input bigint
|
|
1043
|
-
*
|
|
1044
|
-
* @throws {@link RangeError} if a < 0
|
|
1045
|
-
*/
|
|
1046
|
-
export function bigintToHex (a: bigint, prefix0x = false, byteLength?: number): string {
|
|
1047
|
-
if (a < 0) throw RangeError('a should be a non-negative integer. Negative values are not supported');
|
|
1048
|
-
return parseHex(a.toString(16), prefix0x, byteLength);
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
* Converts a hexadecimal string to a bigint
|
|
1053
|
-
*
|
|
1054
|
-
* @param hexStr
|
|
1055
|
-
*
|
|
1056
|
-
* @returns a bigint
|
|
1057
|
-
*
|
|
1058
|
-
* @throws {@link RangeError} if input string does not hold an hexadecimal number
|
|
1059
|
-
*/
|
|
1060
|
-
export function hexToBigint (hexStr: string): bigint {
|
|
1061
|
-
return BigInt(parseHex(hexStr, true));
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* Converts a non-negative bigint representing a binary array of utf-8 encoded text to a string of utf-8 text
|
|
1066
|
-
*
|
|
1067
|
-
* @param a - A non-negative bigint representing a binary array of utf-8 encoded text.
|
|
1068
|
-
*
|
|
1069
|
-
* @returns a string text with utf-8 encoding
|
|
1070
|
-
*
|
|
1071
|
-
* @throws {@link RangeError} if a < 0.
|
|
1072
|
-
*/
|
|
1073
|
-
export function bigintToText (a: bigint): string {
|
|
1074
|
-
if (a < 0) throw RangeError('a should be a non-negative integer. Negative values are not supported');
|
|
1075
|
-
return bufToText(hexToBuf(a.toString(16)));
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* Converts a utf-8 string to a bigint (from its binary representaion)
|
|
1080
|
-
*
|
|
1081
|
-
* @param text - A string text with utf-8 encoding
|
|
1082
|
-
*
|
|
1083
|
-
* @returns a bigint representing a binary array of the input utf-8 encoded text
|
|
1084
|
-
*/
|
|
1085
|
-
export function textToBigint (text: string): bigint {
|
|
1086
|
-
return hexToBigint(bufToHex(textToBuf(text)));
|
|
1087
|
-
}
|
|
1088
|
-
function toBuffer (input: ArrayBuffer | TypedArray | Buffer): Buffer {
|
|
1089
|
-
if (Buffer.isBuffer(input)) return input;
|
|
1090
|
-
|
|
1091
|
-
if (ArrayBuffer.isView(input)) {
|
|
1092
|
-
return Buffer.from(input.buffer, input.byteOffset, input.byteLength);
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (input instanceof ArrayBuffer) {
|
|
1096
|
-
return Buffer.from(new Uint8Array(input));
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
<span class="cstat-no" title="statement not covered" > throw new TypeError('Unsupported input type for Buffer.from');</span>
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Converts an ArrayBuffer, TypedArray or Buffer (in Node.js) containing utf-8 encoded text to a string of utf-8 text
|
|
1103
|
-
*
|
|
1104
|
-
* @param buf - A buffer containing utf-8 encoded text
|
|
1105
|
-
*
|
|
1106
|
-
* @returns a string text with utf-8 encoding
|
|
1107
|
-
*/
|
|
1108
|
-
export function bufToText (buf: ArrayBuffer | TypedArray | Buffer): string {
|
|
1109
|
-
const input = toBuffer(buf);
|
|
1110
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (IS_BROWSER) <span class="cstat-no" title="statement not covered" >return new TextDecoder().decode(new Uint8Array(input));</span>
|
|
1111
|
-
else return Buffer.from(input).toString();
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
* Converts a string of utf-8 encoded text to an ArrayBuffer or a Buffer (default in Node.js)
|
|
1116
|
-
*
|
|
1117
|
-
* @param str - A string of text (with utf-8 encoding)
|
|
1118
|
-
* @param returnArrayBuffer - When invoked in Node.js, it can force the output to be an ArrayBuffer instead of a Buffer.
|
|
1119
|
-
*
|
|
1120
|
-
* @returns an ArrayBuffer or a Buffer containing the utf-8 encoded text
|
|
1121
|
-
*/
|
|
1122
|
-
export function textToBuf (str: string, returnArrayBuffer = false): ArrayBuffer | Buffer {
|
|
1123
|
-
if (!IS_BROWSER && !returnArrayBuffer) {
|
|
1124
|
-
return Buffer.from(new TextEncoder().encode(str).buffer);
|
|
1125
|
-
}
|
|
1126
|
-
return new TextEncoder().encode(str).buffer;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* Returns the hexadecimal representation of a buffer.
|
|
1131
|
-
*
|
|
1132
|
-
* @param buf
|
|
1133
|
-
* @param prefix0x - set to true to prefix the output with '0x'
|
|
1134
|
-
* @param byteLength - pad the output to have the desired byte length. Notice that the hex length is double the byte length.
|
|
1135
|
-
*
|
|
1136
|
-
* @returns a string with a hexadecimal representation of the input buffer
|
|
1137
|
-
*/
|
|
1138
|
-
export function bufToHex (buf: ArrayBuffer | TypedArray | Buffer, prefix0x = false, byteLength?: number): string {
|
|
1139
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (IS_BROWSER) {
|
|
1140
|
-
let s = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
1141
|
-
const h = <span class="cstat-no" title="statement not covered" >'0123456789abcdef';</span>
|
|
1142
|
-
<span class="cstat-no" title="statement not covered" > if (ArrayBuffer.isView(buf)) <span class="cstat-no" title="statement not covered" >buf = new Uint8Array(buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength));</span></span>
|
|
1143
|
-
else <span class="cstat-no" title="statement not covered" >buf = new Uint8Array(buf);</span>
|
|
1144
|
-
|
|
1145
|
-
(<span class="cstat-no" title="statement not covered" >buf as Uint8Array).forEach(<span class="fstat-no" title="function not covered" >(v</span>) => {</span>
|
|
1146
|
-
<span class="cstat-no" title="statement not covered" > s += h[v >> 4] + h[v & 15];</span>
|
|
1147
|
-
});
|
|
1148
|
-
|
|
1149
|
-
<span class="cstat-no" title="statement not covered" > return parseHex(s, prefix0x, byteLength);</span>
|
|
1150
|
-
} else {
|
|
1151
|
-
const input = toBuffer(buf);
|
|
1152
|
-
<span class="missing-if-branch" title="else path not taken" >E</span>if (ArrayBuffer.isView(input)) buf = new Uint8Array(input.buffer.slice(input.byteOffset, input.byteOffset + input.byteLength));
|
|
1153
|
-
return parseHex(Buffer.from(input).toString('hex'), prefix0x, byteLength);
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* Converts a hexadecimal string to a buffer
|
|
1159
|
-
*
|
|
1160
|
-
* @param hexStr - A string representing a number with hexadecimal notation
|
|
1161
|
-
* @param returnArrayBuffer - In Node.js, it forces the output to be an ArrayBuffer instead of a Buffer.
|
|
1162
|
-
*
|
|
1163
|
-
* @returns An ArrayBuffer or a Buffer
|
|
1164
|
-
*
|
|
1165
|
-
* @throws {@link RangeError} if input string does not hold an hexadecimal number
|
|
1166
|
-
*/
|
|
1167
|
-
export function hexToBuf (hexStr: string, returnArrayBuffer = false): ArrayBuffer | Buffer {
|
|
1168
|
-
let hex = parseHex(hexStr);
|
|
1169
|
-
hex = parseHex(hexStr, false, Math.ceil(hex.length / 2)); // pad to have a length in bytes
|
|
1170
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (IS_BROWSER) {
|
|
1171
|
-
<span class="cstat-no" title="statement not covered" > return Uint8Array.from(hex.match(/[\da-fA-F]{2}/g)!.map(<span class="fstat-no" title="function not covered" >(h</span>) => { // eslint-disable-line</span>
|
|
1172
|
-
<span class="cstat-no" title="statement not covered" > return parseInt(h, 16);</span>
|
|
1173
|
-
})).buffer;
|
|
1174
|
-
} else {
|
|
1175
|
-
const b = Buffer.from(hex, 'hex');
|
|
1176
|
-
return returnArrayBuffer ? b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength) : b;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* Converts an arbitrary-size non-negative bigint to a base64 string
|
|
1182
|
-
* @param a - a non negative bigint
|
|
1183
|
-
* @param urlsafe - if true Base64 URL encoding is used ('+' and '/' are replaced by '-', '_')
|
|
1184
|
-
* @param padding - if false, padding (trailing '=') is removed
|
|
1185
|
-
* @returns a base64 representation of the input bigint
|
|
1186
|
-
*
|
|
1187
|
-
* @throws {RangeError}
|
|
1188
|
-
* Thrown if a < 0
|
|
1189
|
-
*/
|
|
1190
|
-
export function bigintToBase64 (a: bigint, urlsafe = false, padding = true): string {
|
|
1191
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (a < 0n) <span class="cstat-no" title="statement not covered" >throw new RangeError('negative bigint');</span>
|
|
1192
|
-
return b64.encode(bigintToBuf(a), urlsafe, padding);
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
/**
|
|
1196
|
-
* Converts a base64 string to bigint.
|
|
1197
|
-
* @param a base64 string. It accepts standard and URL-safe base64 with and without padding
|
|
1198
|
-
* @returns a bigint
|
|
1199
|
-
*/
|
|
1200
|
-
export function base64ToBigint (a: string): bigint {
|
|
1201
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!a || a.trim() === '') <span class="cstat-no" title="statement not covered" >return 0n;</span>
|
|
1202
|
-
const cleaned = a.trim();
|
|
1203
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!/^[A-Za-z0-9+/=_-]*$/.test(cleaned)) <span class="cstat-no" title="statement not covered" >throw new RangeError('invalid base64');</span>
|
|
1204
|
-
return bufToBigint(b64.decode(cleaned));
|
|
1205
|
-
}
|
|
1206
|
-
</pre></td></tr></table></pre>
|
|
1207
|
-
|
|
1208
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
1209
|
-
</div><!-- /wrapper -->
|
|
1210
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
1211
|
-
Code coverage generated by
|
|
1212
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1213
|
-
at 2025-11-28T19:37:56.966Z
|
|
1214
|
-
</div>
|
|
1215
|
-
<script src="prettify.js"></script>
|
|
1216
|
-
<script>
|
|
1217
|
-
window.onload = function () {
|
|
1218
|
-
prettyPrint();
|
|
1219
|
-
};
|
|
1220
|
-
</script>
|
|
1221
|
-
<script src="sorter.js"></script>
|
|
1222
|
-
<script src="block-navigation.js"></script>
|
|
1223
|
-
</body>
|
|
1224
|
-
</html>
|
|
1225
|
-
|