@hpcc-js/wasm-base91 1.0.1 → 1.0.2
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/dist/index.js.map +2 -2
- package/package.json +55 -57
- package/src/base91.ts +1 -1
- package/LICENSE +0 -201
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../build/src-cpp/
|
|
4
|
-
"sourcesContent": ["\nvar cpp = (() => {\n var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined;\n \n return (\nfunction(moduleArg = {}) {\n var moduleRtn;\n\nvar Module=moduleArg;var readyPromiseResolve,readyPromiseReject;var readyPromise=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var scriptDirectory=\"\";function locateFile(path){return scriptDirectory+path}var readAsync,readBinary;{}var out=console.log.bind(console);var err=console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module[\"HEAP8\"]=HEAP8=new Int8Array(b);Module[\"HEAP16\"]=HEAP16=new Int16Array(b);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(b);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(b);Module[\"HEAP32\"]=HEAP32=new Int32Array(b);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(b);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(b);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(b)}var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){callRuntimeCallbacks(__ATPOSTRUN__)}function addOnInit(cb){__ATINIT__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++}function removeRunDependency(id){runDependencies--;if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){what=\"Aborted(\"+what+\")\";err(what);ABORT=true;EXITSTATUS=1;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix=\"data:application/octet-stream;base64,\";var isDataURI=filename=>filename.startsWith(dataURIPrefix);var isFileURI=filename=>filename.startsWith(\"file://\");function findWasmBinary(){var f=\"base91lib.wasm\";if(!isDataURI(f)){return locateFile(f)}return f}var wasmBinaryFile;function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw\"both async and sync fetching of the wasm failed\"}function getBinaryPromise(binaryFile){if(!wasmBinary){return readAsync(binaryFile).then(response=>new Uint8Array(response),()=>getBinarySync(binaryFile))}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(receiver,reason=>{err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming==\"function\"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&typeof fetch==\"function\"){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(`wasm streaming compile failed: ${reason}`);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function getWasmImports(){return{a:wasmImports}}function createWasm(){var info=getWasmImports();function receiveInstance(instance,module){wasmExports=instance.exports;wasmMemory=wasmExports[\"c\"];updateMemoryViews();addOnInit(wasmExports[\"d\"]);removeRunDependency(\"wasm-instantiate\");return wasmExports}addRunDependency(\"wasm-instantiate\");function receiveInstantiationResult(result){receiveInstance(result[\"instance\"])}if(!wasmBinaryFile)wasmBinaryFile=findWasmBinary();instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var __abort_js=()=>{abort(\"\")};var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=typeof TextDecoder!=\"undefined\"?new TextDecoder:undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\";var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var wasmImports={a:__abort_js,b:_emscripten_resize_heap};var wasmExports=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports[\"d\"])();var _webidl_free=Module[\"_webidl_free\"]=a0=>(_webidl_free=Module[\"_webidl_free\"]=wasmExports[\"e\"])(a0);var _webidl_malloc=Module[\"_webidl_malloc\"]=a0=>(_webidl_malloc=Module[\"_webidl_malloc\"]=wasmExports[\"f\"])(a0);var _emscripten_bind_VoidPtr___destroy___0=Module[\"_emscripten_bind_VoidPtr___destroy___0\"]=a0=>(_emscripten_bind_VoidPtr___destroy___0=Module[\"_emscripten_bind_VoidPtr___destroy___0\"]=wasmExports[\"g\"])(a0);var _emscripten_bind_CBasE91_CBasE91_0=Module[\"_emscripten_bind_CBasE91_CBasE91_0\"]=()=>(_emscripten_bind_CBasE91_CBasE91_0=Module[\"_emscripten_bind_CBasE91_CBasE91_0\"]=wasmExports[\"h\"])();var _emscripten_bind_CBasE91_malloc_1=Module[\"_emscripten_bind_CBasE91_malloc_1\"]=a0=>(_emscripten_bind_CBasE91_malloc_1=Module[\"_emscripten_bind_CBasE91_malloc_1\"]=wasmExports[\"i\"])(a0);var _emscripten_bind_CBasE91_free_1=Module[\"_emscripten_bind_CBasE91_free_1\"]=a0=>(_emscripten_bind_CBasE91_free_1=Module[\"_emscripten_bind_CBasE91_free_1\"]=wasmExports[\"j\"])(a0);var _emscripten_bind_CBasE91_version_0=Module[\"_emscripten_bind_CBasE91_version_0\"]=a0=>(_emscripten_bind_CBasE91_version_0=Module[\"_emscripten_bind_CBasE91_version_0\"]=wasmExports[\"k\"])(a0);var _emscripten_bind_CBasE91_reset_0=Module[\"_emscripten_bind_CBasE91_reset_0\"]=a0=>(_emscripten_bind_CBasE91_reset_0=Module[\"_emscripten_bind_CBasE91_reset_0\"]=wasmExports[\"l\"])(a0);var _emscripten_bind_CBasE91_encode_3=Module[\"_emscripten_bind_CBasE91_encode_3\"]=(a0,a1,a2,a3)=>(_emscripten_bind_CBasE91_encode_3=Module[\"_emscripten_bind_CBasE91_encode_3\"]=wasmExports[\"m\"])(a0,a1,a2,a3);var _emscripten_bind_CBasE91_encode_end_1=Module[\"_emscripten_bind_CBasE91_encode_end_1\"]=(a0,a1)=>(_emscripten_bind_CBasE91_encode_end_1=Module[\"_emscripten_bind_CBasE91_encode_end_1\"]=wasmExports[\"n\"])(a0,a1);var _emscripten_bind_CBasE91_decode_3=Module[\"_emscripten_bind_CBasE91_decode_3\"]=(a0,a1,a2,a3)=>(_emscripten_bind_CBasE91_decode_3=Module[\"_emscripten_bind_CBasE91_decode_3\"]=wasmExports[\"o\"])(a0,a1,a2,a3);var _emscripten_bind_CBasE91_decode_end_1=Module[\"_emscripten_bind_CBasE91_decode_end_1\"]=(a0,a1)=>(_emscripten_bind_CBasE91_decode_end_1=Module[\"_emscripten_bind_CBasE91_decode_end_1\"]=wasmExports[\"p\"])(a0,a1);var _emscripten_bind_CBasE91___destroy___0=Module[\"_emscripten_bind_CBasE91___destroy___0\"]=a0=>(_emscripten_bind_CBasE91___destroy___0=Module[\"_emscripten_bind_CBasE91___destroy___0\"]=wasmExports[\"q\"])(a0);Module[\"UTF8ToString\"]=UTF8ToString;var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);postRun()}{doRun()}}run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module[\"WrapperObject\"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module[\"getCache\"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module[\"wrapPointer\"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module[\"castObject\"]=castObject;Module[\"NULL\"]=wrapPointer(0);function destroy(obj){if(!obj[\"__destroy__\"])throw\"Error: Cannot destroy object. (Did you create it yourself?)\";obj[\"__destroy__\"]();delete getCache(obj.__class__)[obj.ptr]}Module[\"destroy\"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module[\"compare\"]=compare;function getPointer(obj){return obj.ptr}Module[\"getPointer\"]=getPointer;function getClass(obj){return obj.__class__}Module[\"getClass\"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(ensureCache.needed){for(var i=0;i<ensureCache.temps.length;i++){Module[\"_webidl_free\"](ensureCache.temps[i])}ensureCache.temps.length=0;Module[\"_webidl_free\"](ensureCache.buffer);ensureCache.buffer=0;ensureCache.size+=ensureCache.needed;ensureCache.needed=0}if(!ensureCache.buffer){ensureCache.size+=128;ensureCache.buffer=Module[\"_webidl_malloc\"](ensureCache.size);assert(ensureCache.buffer)}ensureCache.pos=0},alloc(array,view){assert(ensureCache.buffer);var bytes=view.BYTES_PER_ELEMENT;var len=array.length*bytes;len=alignMemory(len,8);var ret;if(ensureCache.pos+len>=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module[\"_webidl_malloc\"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy(array,view,offset){offset/=view.BYTES_PER_ELEMENT;for(var i=0;i<array.length;i++){view[offset+i]=array[i]}}};function VoidPtr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}VoidPtr.prototype=Object.create(WrapperObject.prototype);VoidPtr.prototype.constructor=VoidPtr;VoidPtr.prototype.__class__=VoidPtr;VoidPtr.__cache__={};Module[\"VoidPtr\"]=VoidPtr;VoidPtr.prototype[\"__destroy__\"]=VoidPtr.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_VoidPtr___destroy___0(self)};function CBasE91(){this.ptr=_emscripten_bind_CBasE91_CBasE91_0();getCache(CBasE91)[this.ptr]=this}CBasE91.prototype=Object.create(WrapperObject.prototype);CBasE91.prototype.constructor=CBasE91;CBasE91.prototype.__class__=CBasE91;CBasE91.__cache__={};Module[\"CBasE91\"]=CBasE91;CBasE91.prototype[\"malloc\"]=CBasE91.prototype.malloc=function(size){if(size&&typeof size===\"object\")size=size.ptr;return _emscripten_bind_CBasE91_malloc_1(size)};CBasE91.prototype[\"free\"]=CBasE91.prototype.free=function(ptr){if(ptr&&typeof ptr===\"object\")ptr=ptr.ptr;_emscripten_bind_CBasE91_free_1(ptr)};CBasE91.prototype[\"version\"]=CBasE91.prototype.version=function(){var self=this.ptr;return UTF8ToString(_emscripten_bind_CBasE91_version_0(self))};CBasE91.prototype[\"reset\"]=CBasE91.prototype.reset=function(){var self=this.ptr;_emscripten_bind_CBasE91_reset_0(self)};CBasE91.prototype[\"encode\"]=CBasE91.prototype.encode=function(data,dataLen,dataOut){var self=this.ptr;if(data&&typeof data===\"object\")data=data.ptr;if(dataLen&&typeof dataLen===\"object\")dataLen=dataLen.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_encode_3(self,data,dataLen,dataOut)};CBasE91.prototype[\"encode_end\"]=CBasE91.prototype.encode_end=function(dataOut){var self=this.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_encode_end_1(self,dataOut)};CBasE91.prototype[\"decode\"]=CBasE91.prototype.decode=function(data,dataLen,dataOut){var self=this.ptr;if(data&&typeof data===\"object\")data=data.ptr;if(dataLen&&typeof dataLen===\"object\")dataLen=dataLen.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_decode_3(self,data,dataLen,dataOut)};CBasE91.prototype[\"decode_end\"]=CBasE91.prototype.decode_end=function(dataOut){var self=this.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_decode_end_1(self,dataOut)};CBasE91.prototype[\"__destroy__\"]=CBasE91.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_CBasE91___destroy___0(self)};moduleRtn=readyPromise;\n\n\n return moduleRtn;\n}\n);\n})();\nexport default cpp;\n", "import wrapper from \"/home/gordon/hpcc-js-wasm/build/src-cpp/base91/base91lib.js\";\n\nconst table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~\"';\n\nfunction decode(raw: string): Uint8Array {\n const len = raw.length;\n const ret: number[] = [];\n\n let b = 0;\n let n = 0;\n let v = -1;\n\n for (let i = 0; i < len; i++) {\n const p = table.indexOf(raw[i]);\n /* istanbul ignore next */\n if (p === -1) continue;\n if (v < 0) {\n v = p;\n } else {\n v += p * 91;\n b |= v << n;\n n += (v & 8191) > 88 ? 13 : 14;\n do {\n ret.push(b & 0xff);\n b >>= 8;\n n -= 8;\n } while (n > 7);\n v = -1;\n }\n }\n\n if (v > -1) {\n ret.push((b | v << n) & 0xff);\n }\n\n return new Uint8Array(ret);\n}\n\nconst blobStr = ':C7gABAAuW/VMA6(EB.CXt#AKCAAHDR|m(JC1F>\"c~;>_h:CQ4NJ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G3lx=5lN*ZU,Ffl`V3%_S+VW8<T1G(A$[&[|uBAAAA[9G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg;/zF[tf#<LlH>[IgKaJbLmUuFKc^]6Ja1i/z+3*BS\"KCUcGuaL]W@D$k))aL5LgD7d(?qIJwD126~d6xwn.)`KPDv+lZ0i@G[53jwP@nNE2i~RP8Vi!lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rmYLs_FfYA!CBA';\n\nlet g_module: Uint8Array | undefined;\nlet g_wasmBinary: Uint8Array | undefined;\nexport default function() {\n if (!g_wasmBinary) {\n g_wasmBinary = decode(blobStr);\n }\n if (!g_module) {\n g_module = wrapper({\n wasmBinary: g_wasmBinary,\n locateFile: undefined\n });\n }\n return g_module;\n\n}\n\nexport function reset() {\n if (g_module) {\n g_module = undefined;\n }\n}", "export type PTR = number;\nexport interface HeapU8 {\n ptr: PTR;\n size: number;\n}\n\n/**\n * Base class to simplify moving data into and out of Wasm memory.\n */\nexport class WasmLibrary {\n\n protected _module: any;\n protected _exports: any;\n\n protected constructor(_module: any, _export: any) {\n this._module = _module;\n this._exports = _export;\n }\n\n protected malloc_heapu8(size: number): HeapU8 {\n const ptr: PTR = this._exports.malloc(size);\n return {\n ptr,\n size\n };\n }\n\n protected free_heapu8(data: HeapU8) {\n this._exports.free(data.ptr);\n }\n\n protected uint8_heapu8(data: Uint8Array): HeapU8 {\n const retVal = this.malloc_heapu8(data.byteLength);\n this._module.HEAPU8.set(data, retVal.ptr);\n return retVal;\n }\n\n protected heapu8_view(data: HeapU8): Uint8Array {\n return this._module.HEAPU8.subarray(data.ptr, data.ptr + data.size);\n }\n\n protected heapu8_uint8(data: HeapU8): Uint8Array {\n return new Uint8Array([...this.heapu8_view(data)]);\n }\n\n protected string_heapu8(str: string): HeapU8 {\n const data = Uint8Array.from(str, x => x.charCodeAt(0));\n return this.uint8_heapu8(data);\n }\n\n protected heapu8_string(data: HeapU8): string {\n const retVal = Array.from({ length: data.size });\n const submodule = this._module.HEAPU8.subarray(data.ptr, data.ptr + data.size);\n submodule.forEach((c: number, i: number) => {\n retVal[i] = String.fromCharCode(c);\n });\n return retVal.join(\"\");\n }\n}\n", "// @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin\nimport load, { reset } from \"../../../build/src-cpp/base91/base91lib.wasm\";\nimport { WasmLibrary } from \"./wasm-library.ts\";\n\n// Ref: http://base91.sourceforge.net/#a5\n\nlet g_base91: Promise<Base91>;\n\n/**\n * Base 91 WASM library, similar to Base 64 but uses more characters resulting in smaller strings.\n * \n * See [Base91](https://base91.sourceforge.net/) for more details.\n *\n * ```ts\n * import { Base91 } from \"@hpcc-js/wasm/base91\";\n * \n * const base91 = await Base91.load();\n * \n * const encoded_data = await base91.encode(data);\n * const decoded_data = await base91.decode(encoded_data);\n * ```\n */\nexport class Base91 extends WasmLibrary {\n\n private constructor(_module: any) {\n super(_module, new _module.CBasE91());\n }\n\n /**\n * Compiles and instantiates the raw wasm.\n * \n * ::: info\n * In general WebAssembly compilation is disallowed on the main thread if the buffer size is larger than 4KB, hence forcing `load` to be asynchronous;\n * :::\n * \n * @returns A promise to an instance of the Base91 class.\n */\n static load(): Promise<Base91> {\n if (!g_base91) {\n g_base91 = load().then((module: any) => {\n return new Base91(module)\n });\n }\n return g_base91;\n }\n\n /**\n * Unloades the compiled wasm instance.\n */\n static unload() {\n reset();\n }\n\n /**\n * @returns The Base91 c++ version\n */\n version(): string {\n return this._exports.version();\n }\n\n /**\n * @param data Data to encode.\n * @returns string containing the Base 91 encoded data\n */\n encode(data: Uint8Array): string {\n this._exports.reset();\n\n const unencoded = this.uint8_heapu8(data);\n const encoded = this.malloc_heapu8(unencoded.size + Math.ceil(unencoded.size / 4));\n\n encoded.size = this._exports.encode(unencoded.ptr, unencoded.size, encoded.ptr);\n let retVal = this.heapu8_string(encoded);\n encoded.size = this._exports.encode_end(encoded.ptr);\n retVal += this.heapu8_string(encoded);\n\n this.free_heapu8(encoded);\n this.free_heapu8(unencoded);\n return retVal;\n }\n\n /**\n * \n * @param base91Str encoded string\n * @returns origonal data\n */\n decode(base91Str: string): Uint8Array {\n this._exports.reset();\n\n const encoded = this.string_heapu8(base91Str);\n const unencoded = this.malloc_heapu8(encoded.size);\n\n unencoded.size = this._exports.decode(encoded.ptr, encoded.size, unencoded.ptr);\n let retVal = this.heapu8_uint8(unencoded);\n unencoded.size = this._exports.decode_end(unencoded.ptr);\n retVal = new Uint8Array([...retVal, ...this.heapu8_view(unencoded)]);\n\n this.free_heapu8(unencoded);\n this.free_heapu8(encoded);\n return retVal;\n }\n}\n"],
|
|
3
|
+
"sources": ["../../../build/packages/base91/src-cpp/base91lib.js", "../../../build/packages/base91/src-cpp/base91lib.wasm", "../src/wasm-library.ts", "../src/base91.ts"],
|
|
4
|
+
"sourcesContent": ["\nvar cpp = (() => {\n var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined;\n \n return (\nfunction(moduleArg = {}) {\n var moduleRtn;\n\nvar Module=moduleArg;var readyPromiseResolve,readyPromiseReject;var readyPromise=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var moduleOverrides=Object.assign({},Module);var scriptDirectory=\"\";function locateFile(path){return scriptDirectory+path}var readAsync,readBinary;{}var out=console.log.bind(console);var err=console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module[\"HEAP8\"]=HEAP8=new Int8Array(b);Module[\"HEAP16\"]=HEAP16=new Int16Array(b);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(b);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(b);Module[\"HEAP32\"]=HEAP32=new Int32Array(b);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(b);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(b);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(b)}var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){callRuntimeCallbacks(__ATPOSTRUN__)}function addOnInit(cb){__ATINIT__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++}function removeRunDependency(id){runDependencies--;if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){what=\"Aborted(\"+what+\")\";err(what);ABORT=true;EXITSTATUS=1;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix=\"data:application/octet-stream;base64,\";var isDataURI=filename=>filename.startsWith(dataURIPrefix);var isFileURI=filename=>filename.startsWith(\"file://\");function findWasmBinary(){var f=\"base91lib.wasm\";if(!isDataURI(f)){return locateFile(f)}return f}var wasmBinaryFile;function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw\"both async and sync fetching of the wasm failed\"}function getBinaryPromise(binaryFile){if(!wasmBinary){return readAsync(binaryFile).then(response=>new Uint8Array(response),()=>getBinarySync(binaryFile))}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(receiver,reason=>{err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming==\"function\"&&!isDataURI(binaryFile)&&!isFileURI(binaryFile)&&typeof fetch==\"function\"){return fetch(binaryFile,{credentials:\"same-origin\"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(`wasm streaming compile failed: ${reason}`);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function getWasmImports(){return{a:wasmImports}}function createWasm(){var info=getWasmImports();function receiveInstance(instance,module){wasmExports=instance.exports;wasmMemory=wasmExports[\"c\"];updateMemoryViews();addOnInit(wasmExports[\"d\"]);removeRunDependency(\"wasm-instantiate\");return wasmExports}addRunDependency(\"wasm-instantiate\");function receiveInstantiationResult(result){receiveInstance(result[\"instance\"])}if(!wasmBinaryFile)wasmBinaryFile=findWasmBinary();instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var __abort_js=()=>{abort(\"\")};var getHeapMax=()=>2147483648;var growMemory=size=>{var b=wasmMemory.buffer;var pages=(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=typeof TextDecoder!=\"undefined\"?new TextDecoder:undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\";var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var wasmImports={a:__abort_js,b:_emscripten_resize_heap};var wasmExports=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports[\"d\"])();var _webidl_free=Module[\"_webidl_free\"]=a0=>(_webidl_free=Module[\"_webidl_free\"]=wasmExports[\"e\"])(a0);var _webidl_malloc=Module[\"_webidl_malloc\"]=a0=>(_webidl_malloc=Module[\"_webidl_malloc\"]=wasmExports[\"f\"])(a0);var _emscripten_bind_VoidPtr___destroy___0=Module[\"_emscripten_bind_VoidPtr___destroy___0\"]=a0=>(_emscripten_bind_VoidPtr___destroy___0=Module[\"_emscripten_bind_VoidPtr___destroy___0\"]=wasmExports[\"g\"])(a0);var _emscripten_bind_CBasE91_CBasE91_0=Module[\"_emscripten_bind_CBasE91_CBasE91_0\"]=()=>(_emscripten_bind_CBasE91_CBasE91_0=Module[\"_emscripten_bind_CBasE91_CBasE91_0\"]=wasmExports[\"h\"])();var _emscripten_bind_CBasE91_malloc_1=Module[\"_emscripten_bind_CBasE91_malloc_1\"]=a0=>(_emscripten_bind_CBasE91_malloc_1=Module[\"_emscripten_bind_CBasE91_malloc_1\"]=wasmExports[\"i\"])(a0);var _emscripten_bind_CBasE91_free_1=Module[\"_emscripten_bind_CBasE91_free_1\"]=a0=>(_emscripten_bind_CBasE91_free_1=Module[\"_emscripten_bind_CBasE91_free_1\"]=wasmExports[\"j\"])(a0);var _emscripten_bind_CBasE91_version_0=Module[\"_emscripten_bind_CBasE91_version_0\"]=a0=>(_emscripten_bind_CBasE91_version_0=Module[\"_emscripten_bind_CBasE91_version_0\"]=wasmExports[\"k\"])(a0);var _emscripten_bind_CBasE91_reset_0=Module[\"_emscripten_bind_CBasE91_reset_0\"]=a0=>(_emscripten_bind_CBasE91_reset_0=Module[\"_emscripten_bind_CBasE91_reset_0\"]=wasmExports[\"l\"])(a0);var _emscripten_bind_CBasE91_encode_3=Module[\"_emscripten_bind_CBasE91_encode_3\"]=(a0,a1,a2,a3)=>(_emscripten_bind_CBasE91_encode_3=Module[\"_emscripten_bind_CBasE91_encode_3\"]=wasmExports[\"m\"])(a0,a1,a2,a3);var _emscripten_bind_CBasE91_encode_end_1=Module[\"_emscripten_bind_CBasE91_encode_end_1\"]=(a0,a1)=>(_emscripten_bind_CBasE91_encode_end_1=Module[\"_emscripten_bind_CBasE91_encode_end_1\"]=wasmExports[\"n\"])(a0,a1);var _emscripten_bind_CBasE91_decode_3=Module[\"_emscripten_bind_CBasE91_decode_3\"]=(a0,a1,a2,a3)=>(_emscripten_bind_CBasE91_decode_3=Module[\"_emscripten_bind_CBasE91_decode_3\"]=wasmExports[\"o\"])(a0,a1,a2,a3);var _emscripten_bind_CBasE91_decode_end_1=Module[\"_emscripten_bind_CBasE91_decode_end_1\"]=(a0,a1)=>(_emscripten_bind_CBasE91_decode_end_1=Module[\"_emscripten_bind_CBasE91_decode_end_1\"]=wasmExports[\"p\"])(a0,a1);var _emscripten_bind_CBasE91___destroy___0=Module[\"_emscripten_bind_CBasE91___destroy___0\"]=a0=>(_emscripten_bind_CBasE91___destroy___0=Module[\"_emscripten_bind_CBasE91___destroy___0\"]=wasmExports[\"q\"])(a0);Module[\"UTF8ToString\"]=UTF8ToString;var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);postRun()}{doRun()}}run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module[\"WrapperObject\"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module[\"getCache\"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module[\"wrapPointer\"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module[\"castObject\"]=castObject;Module[\"NULL\"]=wrapPointer(0);function destroy(obj){if(!obj[\"__destroy__\"])throw\"Error: Cannot destroy object. (Did you create it yourself?)\";obj[\"__destroy__\"]();delete getCache(obj.__class__)[obj.ptr]}Module[\"destroy\"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module[\"compare\"]=compare;function getPointer(obj){return obj.ptr}Module[\"getPointer\"]=getPointer;function getClass(obj){return obj.__class__}Module[\"getClass\"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(ensureCache.needed){for(var i=0;i<ensureCache.temps.length;i++){Module[\"_webidl_free\"](ensureCache.temps[i])}ensureCache.temps.length=0;Module[\"_webidl_free\"](ensureCache.buffer);ensureCache.buffer=0;ensureCache.size+=ensureCache.needed;ensureCache.needed=0}if(!ensureCache.buffer){ensureCache.size+=128;ensureCache.buffer=Module[\"_webidl_malloc\"](ensureCache.size);assert(ensureCache.buffer)}ensureCache.pos=0},alloc(array,view){assert(ensureCache.buffer);var bytes=view.BYTES_PER_ELEMENT;var len=array.length*bytes;len=alignMemory(len,8);var ret;if(ensureCache.pos+len>=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module[\"_webidl_malloc\"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy(array,view,offset){offset/=view.BYTES_PER_ELEMENT;for(var i=0;i<array.length;i++){view[offset+i]=array[i]}}};function VoidPtr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}VoidPtr.prototype=Object.create(WrapperObject.prototype);VoidPtr.prototype.constructor=VoidPtr;VoidPtr.prototype.__class__=VoidPtr;VoidPtr.__cache__={};Module[\"VoidPtr\"]=VoidPtr;VoidPtr.prototype[\"__destroy__\"]=VoidPtr.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_VoidPtr___destroy___0(self)};function CBasE91(){this.ptr=_emscripten_bind_CBasE91_CBasE91_0();getCache(CBasE91)[this.ptr]=this}CBasE91.prototype=Object.create(WrapperObject.prototype);CBasE91.prototype.constructor=CBasE91;CBasE91.prototype.__class__=CBasE91;CBasE91.__cache__={};Module[\"CBasE91\"]=CBasE91;CBasE91.prototype[\"malloc\"]=CBasE91.prototype.malloc=function(size){if(size&&typeof size===\"object\")size=size.ptr;return _emscripten_bind_CBasE91_malloc_1(size)};CBasE91.prototype[\"free\"]=CBasE91.prototype.free=function(ptr){if(ptr&&typeof ptr===\"object\")ptr=ptr.ptr;_emscripten_bind_CBasE91_free_1(ptr)};CBasE91.prototype[\"version\"]=CBasE91.prototype.version=function(){var self=this.ptr;return UTF8ToString(_emscripten_bind_CBasE91_version_0(self))};CBasE91.prototype[\"reset\"]=CBasE91.prototype.reset=function(){var self=this.ptr;_emscripten_bind_CBasE91_reset_0(self)};CBasE91.prototype[\"encode\"]=CBasE91.prototype.encode=function(data,dataLen,dataOut){var self=this.ptr;if(data&&typeof data===\"object\")data=data.ptr;if(dataLen&&typeof dataLen===\"object\")dataLen=dataLen.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_encode_3(self,data,dataLen,dataOut)};CBasE91.prototype[\"encode_end\"]=CBasE91.prototype.encode_end=function(dataOut){var self=this.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_encode_end_1(self,dataOut)};CBasE91.prototype[\"decode\"]=CBasE91.prototype.decode=function(data,dataLen,dataOut){var self=this.ptr;if(data&&typeof data===\"object\")data=data.ptr;if(dataLen&&typeof dataLen===\"object\")dataLen=dataLen.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_decode_3(self,data,dataLen,dataOut)};CBasE91.prototype[\"decode_end\"]=CBasE91.prototype.decode_end=function(dataOut){var self=this.ptr;if(dataOut&&typeof dataOut===\"object\")dataOut=dataOut.ptr;return _emscripten_bind_CBasE91_decode_end_1(self,dataOut)};CBasE91.prototype[\"__destroy__\"]=CBasE91.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_CBasE91___destroy___0(self)};moduleRtn=readyPromise;\n\n\n return moduleRtn;\n}\n);\n})();\nexport default cpp;\n", "import wrapper from \"/home/gordon/hpcc-js-wasm/build/packages/base91/src-cpp/base91lib.js\";\n\nconst table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~\"';\n\nfunction decode(raw: string): Uint8Array {\n const len = raw.length;\n const ret: number[] = [];\n\n let b = 0;\n let n = 0;\n let v = -1;\n\n for (let i = 0; i < len; i++) {\n const p = table.indexOf(raw[i]);\n /* istanbul ignore next */\n if (p === -1) continue;\n if (v < 0) {\n v = p;\n } else {\n v += p * 91;\n b |= v << n;\n n += (v & 8191) > 88 ? 13 : 14;\n do {\n ret.push(b & 0xff);\n b >>= 8;\n n -= 8;\n } while (n > 7);\n v = -1;\n }\n }\n\n if (v > -1) {\n ret.push((b | v << n) & 0xff);\n }\n\n return new Uint8Array(ret);\n}\n\nconst blobStr = ':C7gABAAuW/VMA6(EB.CXt#AKCAAHDR|m(JC1F>\"c~;>_h:CQ4NJ9FG!muvWi\"`BcEC\"KV4AS\"$AAA/hlB=CuW;CUcQABB7F[toByW@A$A:hmu4}cLg4;Ms)&t~FlRBAwWGA%AKB+W(,*hRtzA(FaS#TbLNAoB8EFB|exW(ARBzX8<[9S\"bA_C*JeGE\"y((AWB{WQ@CA[tDo$_W\"d~nB_BDDuWkAQA:o7#L?sb)AAvuWuW~F%FuWAA3WSTCYXLQAjBnLV/87hAQA~FbvrP?vIE&t+xAA_|?)(tx95F|;IA6yrPDrj\"7}JA9FDH1A5FlBLiJME\"XLtB!XRA|L:CHhUYg4@y<C:CG\"*BV9BAQA!M@$8SEAiAtBMMC\"SC3NjtL?w\"iAfz^F6yCt!W)L9F6yBtEA(FXIMMAAtBGYXL\"CYYUEQDe+%tVLxNE\"eG5FZ4K\"~F=JIX>W.g%FSIMMBtz|Qj>W_9AhamEAzX)H|LDH+h})XLD\">>tB&\"K\"iA`XAAKtyBYAJAEAKDhtmBN\"K\"iA}X0WeW\"C?vblH\"K\"iA|XScfvCtfL%FKg]CKClBDtCKPj|L;C.utXAAJA*A`vk4BA1B>CblhA8MGODtu+NJ[96yoBw(+A@Q[hYLzWT\"|L:C.WCupnfvmBupYL`9RAXLH\"XLksM#T\"XLE\"nLoA1<JtXLH\"#(+A@Q`hYLC\"z(+AHtEAE\"yB#(htqBYLm\"Gtw48E5F5FtBMM_ElEhZ.oV)UuSYBtiAuW/h)A!WAAKtyBAA3W(AriwXLfYti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)>WOc{v)HeGo4H7%MXL<C5(SYR/BtwP_)?DGAlB5FDfoA>W^Xs)<AV|bA.A*BxAWBRAaA%F}KMMC\".AelAAm\"]CBtj\"wPlBYYEA%ABtGtAAmBQA5nUt4}mBGOwWAw%tyk*tJCZ4XLD\"C\"iAuWEABA*AP/wbHAlB:hYL:CS4yBQACtQAVGv(*H.QwA%t;v{ux(x*WQwA>CBDN\"iLbX\"LJzLyU0G6aR^+@b$w):b75jgP7jUP2ifM_1%._0%#r!d.QnFx0=[[ekAV<@iFbRA2IbLmUuG3lx=5lN*ZU,Ffl`V3%_S+VW8<T1G(A$[&[|uBAAAA[9G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg;/zF[tf#<LlH>[IgKaJbLmUuFKc^]6Ja1i/z+3*BS\"KCUcGuaL]W@D$k))aL5LgD7d(?qIJwD126~d6xwn.)`KPDv+lZ0i@G[53jwP@nNE2i~RP8Vi!lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rm+lLg|<x;W$[#G9rmYLs_FfYA!CBA';\n\nlet g_module: Uint8Array | undefined;\nlet g_wasmBinary: Uint8Array | undefined;\nexport default function() {\n if (!g_wasmBinary) {\n g_wasmBinary = decode(blobStr);\n }\n if (!g_module) {\n g_module = wrapper({\n wasmBinary: g_wasmBinary,\n locateFile: undefined\n });\n }\n return g_module;\n\n}\n\nexport function reset() {\n if (g_module) {\n g_module = undefined;\n }\n}", "export type PTR = number;\nexport interface HeapU8 {\n ptr: PTR;\n size: number;\n}\n\n/**\n * Base class to simplify moving data into and out of Wasm memory.\n */\nexport class WasmLibrary {\n\n protected _module: any;\n protected _exports: any;\n\n protected constructor(_module: any, _export: any) {\n this._module = _module;\n this._exports = _export;\n }\n\n protected malloc_heapu8(size: number): HeapU8 {\n const ptr: PTR = this._exports.malloc(size);\n return {\n ptr,\n size\n };\n }\n\n protected free_heapu8(data: HeapU8) {\n this._exports.free(data.ptr);\n }\n\n protected uint8_heapu8(data: Uint8Array): HeapU8 {\n const retVal = this.malloc_heapu8(data.byteLength);\n this._module.HEAPU8.set(data, retVal.ptr);\n return retVal;\n }\n\n protected heapu8_view(data: HeapU8): Uint8Array {\n return this._module.HEAPU8.subarray(data.ptr, data.ptr + data.size);\n }\n\n protected heapu8_uint8(data: HeapU8): Uint8Array {\n return new Uint8Array([...this.heapu8_view(data)]);\n }\n\n protected string_heapu8(str: string): HeapU8 {\n const data = Uint8Array.from(str, x => x.charCodeAt(0));\n return this.uint8_heapu8(data);\n }\n\n protected heapu8_string(data: HeapU8): string {\n const retVal = Array.from({ length: data.size });\n const submodule = this._module.HEAPU8.subarray(data.ptr, data.ptr + data.size);\n submodule.forEach((c: number, i: number) => {\n retVal[i] = String.fromCharCode(c);\n });\n return retVal.join(\"\");\n }\n}\n", "// @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin\nimport load, { reset } from \"../../../build/packages/base91/src-cpp/base91lib.wasm\";\nimport { WasmLibrary } from \"./wasm-library.ts\";\n\n// Ref: http://base91.sourceforge.net/#a5\n\nlet g_base91: Promise<Base91>;\n\n/**\n * Base 91 WASM library, similar to Base 64 but uses more characters resulting in smaller strings.\n * \n * See [Base91](https://base91.sourceforge.net/) for more details.\n *\n * ```ts\n * import { Base91 } from \"@hpcc-js/wasm/base91\";\n * \n * const base91 = await Base91.load();\n * \n * const encoded_data = await base91.encode(data);\n * const decoded_data = await base91.decode(encoded_data);\n * ```\n */\nexport class Base91 extends WasmLibrary {\n\n private constructor(_module: any) {\n super(_module, new _module.CBasE91());\n }\n\n /**\n * Compiles and instantiates the raw wasm.\n * \n * ::: info\n * In general WebAssembly compilation is disallowed on the main thread if the buffer size is larger than 4KB, hence forcing `load` to be asynchronous;\n * :::\n * \n * @returns A promise to an instance of the Base91 class.\n */\n static load(): Promise<Base91> {\n if (!g_base91) {\n g_base91 = load().then((module: any) => {\n return new Base91(module)\n });\n }\n return g_base91;\n }\n\n /**\n * Unloades the compiled wasm instance.\n */\n static unload() {\n reset();\n }\n\n /**\n * @returns The Base91 c++ version\n */\n version(): string {\n return this._exports.version();\n }\n\n /**\n * @param data Data to encode.\n * @returns string containing the Base 91 encoded data\n */\n encode(data: Uint8Array): string {\n this._exports.reset();\n\n const unencoded = this.uint8_heapu8(data);\n const encoded = this.malloc_heapu8(unencoded.size + Math.ceil(unencoded.size / 4));\n\n encoded.size = this._exports.encode(unencoded.ptr, unencoded.size, encoded.ptr);\n let retVal = this.heapu8_string(encoded);\n encoded.size = this._exports.encode_end(encoded.ptr);\n retVal += this.heapu8_string(encoded);\n\n this.free_heapu8(encoded);\n this.free_heapu8(unencoded);\n return retVal;\n }\n\n /**\n * \n * @param base91Str encoded string\n * @returns origonal data\n */\n decode(base91Str: string): Uint8Array {\n this._exports.reset();\n\n const encoded = this.string_heapu8(base91Str);\n const unencoded = this.malloc_heapu8(encoded.size);\n\n unencoded.size = this._exports.decode(encoded.ptr, encoded.size, unencoded.ptr);\n let retVal = this.heapu8_uint8(unencoded);\n unencoded.size = this._exports.decode_end(unencoded.ptr);\n retVal = new Uint8Array([...retVal, ...this.heapu8_view(unencoded)]);\n\n this.free_heapu8(unencoded);\n this.free_heapu8(encoded);\n return retVal;\n }\n}\n"],
|
|
5
5
|
"mappings": "AACA,IAAIA,IAAO,IAAM,CACf,IAAIC,EAAc,OAAO,SAAY,IAAc,SAAS,eAAe,IAAM,OAEjF,OACF,SAASC,EAAY,CAAC,EAAG,CACvB,IAAIC,EAEFC,EAAOF,EAAcG,EAAoBC,EAAuBC,EAAa,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACJ,EAAoBG,EAAQF,EAAmBG,CAAM,CAAC,EAAMC,EAAgB,OAAO,OAAO,CAAC,EAAEN,CAAM,EAAMO,GAAgB,GAAG,SAASC,GAAWC,EAAK,CAAC,O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AAK,SAAS,OAAOD,EAAU,IAAKA,EAAU,KAAMC,EAAQ,GAAG,EAC9E,IAAIC,EAAS,KAAK,cAAcD,CAAO,EACvC,OAAAA,EAAQ,KAAO,KAAK,SAAS,WAAWA,EAAQ,GAAG,EACnDC,GAAU,KAAK,cAAcD,CAAO,EAEpC,KAAK,YAAYA,CAAO,EACxB,KAAK,YAAYD,CAAS,EACnBE,CACX,CAOA,OAAOC,EAA+B,CAClC,KAAK,SAAS,MAAM,EAEpB,IAAMF,EAAU,KAAK,cAAcE,CAAS,EACtCH,EAAY,KAAK,cAAcC,EAAQ,IAAI,EAEjDD,EAAU,KAAO,KAAK,SAAS,OAAOC,EAAQ,IAAKA,EAAQ,KAAMD,EAAU,GAAG,EAC9E,IAAIE,EAAS,KAAK,aAAaF,CAAS,EACxC,OAAAA,EAAU,KAAO,KAAK,SAAS,WAAWA,EAAU,GAAG,EACvDE,EAAS,IAAI,WAAW,CAAC,GAAGA,EAAQ,GAAG,KAAK,YAAYF,CAAS,CAAC,CAAC,EAEnE,KAAK,YAAYA,CAAS,EAC1B,KAAK,YAAYC,CAAO,EACjBC,CACX,CACJ",
|
|
6
6
|
"names": ["cpp", "_scriptName", "moduleArg", "moduleRtn", "Module", "readyPromiseResolve", "readyPromiseReject", "readyPromise", "resolve", "reject", "moduleOverrides", "scriptDirectory", "locateFile", "path", "readAsync", "readBinary", "out", "err", "wasmBinary", "wasmMemory", "ABORT", "EXITSTATUS", "assert", "condition", "text", "abort", "HEAP8", "HEAPU8", "HEAP16", "HEAPU16", "HEAP32", "HEAPU32", "HEAPF32", "HEAPF64", "updateMemoryViews", "b", "__ATPRERUN__", "__ATINIT__", "__ATPOSTRUN__", "runtimeInitialized", "preRun", "callRuntimeCallbacks", "initRuntime", "postRun", "addOnInit", "cb", "runDependencies", "runDependencyWatcher", "dependenciesFulfilled", "addRunDependency", "id", "removeRunDependency", "callback", "what", "dataURIPrefix", "isDataURI", "filename", "isFileURI", "findWasmBinary", "f", "wasmBinaryFile", "getBinarySync", "file", "getBinaryPromise", "binaryFile", "response", "instantiateArrayBuffer", "imports", "receiver", "binary", "reason", "instantiateAsync", "result", "getWasmImports", "wasmImports", "createWasm", "info", "receiveInstance", "instance", "module", "wasmExports", "receiveInstantiationResult", "callbacks", "__abort_js", "getHeapMax", "growMemory", "size", "pages", "_emscripten_resize_heap", "requestedSize", "oldSize", "maxHeapSize", "alignUp", "x", "multiple", "cutDown", "overGrownHeapSize", "newSize", "replacement", "UTF8Decoder", "UTF8ArrayToString", "heapOrArray", "idx", "maxBytesToRead", "endIdx", "endPtr", "str", "u0", "u1", "u2", "ch", "UTF8ToString", "ptr", "alignMemory", "alignment", "___wasm_call_ctors", "_webidl_free", "a0", "_webidl_malloc", "_emscripten_bind_VoidPtr___destroy___0", "_emscripten_bind_CBasE91_CBasE91_0", "_emscripten_bind_CBasE91_malloc_1", "_emscripten_bind_CBasE91_free_1", "_emscripten_bind_CBasE91_version_0", "_emscripten_bind_CBasE91_reset_0", "_emscripten_bind_CBasE91_encode_3", "a1", "a2", "a3", "_emscripten_bind_CBasE91_encode_end_1", "_emscripten_bind_CBasE91_decode_3", "_emscripten_bind_CBasE91_decode_end_1", "_emscripten_bind_CBasE91___destroy___0", "calledRun", "runCaller", "run", "doRun", "WrapperObject", "getCache", "__class__", "wrapPointer", "cache", "ret", "castObject", "obj", "destroy", "compare", "obj1", "obj2", "getPointer", "getClass", "ensureCache", "i", "array", "view", "bytes", "len", "offset", "VoidPtr", "self", "CBasE91", "data", "dataLen", "dataOut", "base91lib_default", "table", "decode", "raw", "len", "ret", "b", "n", "v", "i", "p", "blobStr", "g_module", "g_wasmBinary", "base91lib_default", "reset", "WasmLibrary", "_module", "_export", "size", "data", "retVal", "str", "x", "i", "g_base91", "Base91", "_Base91", "WasmLibrary", "_module", "base91lib_default", "module", "reset", "data", "unencoded", "encoded", "retVal", "base91Str"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"gitHead": "4a93a0ee7a7100d8251f1190628d0511ab4bbb1a"
|
|
58
|
-
}
|
|
2
|
+
"name": "@hpcc-js/wasm-base91",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "hpcc-js - WASM Base91",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./types/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/**/*",
|
|
16
|
+
"src/**/*",
|
|
17
|
+
"types/**/*"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "rimraf ./dist ./dist-test ./types",
|
|
21
|
+
"build-types": "tsc --project tsconfig.json --emitDeclarationOnly",
|
|
22
|
+
"build-types-watch": "npm run build-types -- --watch",
|
|
23
|
+
"build-ts": "node esbuild.mjs",
|
|
24
|
+
"build-ts-dev": "npm run build-ts -- --mode=development",
|
|
25
|
+
"build-ts-watch": "npm run compile-ts-dev -- --watch",
|
|
26
|
+
"build-dev": "run-p build-types build-ts-dev",
|
|
27
|
+
"build": "run-p build-types build-ts",
|
|
28
|
+
"lint-skypack": "npx -y @skypack/package-check",
|
|
29
|
+
"lint-eslint": "eslint src/**/*.ts",
|
|
30
|
+
"lint": "run-p lint-eslint lint-skypack",
|
|
31
|
+
"test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs",
|
|
32
|
+
"test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
|
|
33
|
+
"test-node": "mocha ./dist-test/index.node.js --reporter spec",
|
|
34
|
+
"test": "run-s test-chrome test-node"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"yargs": "17.7.2"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"graphviz",
|
|
42
|
+
"typescript",
|
|
43
|
+
"webassembly",
|
|
44
|
+
"wasm",
|
|
45
|
+
"dot",
|
|
46
|
+
"neato",
|
|
47
|
+
"twopi"
|
|
48
|
+
],
|
|
49
|
+
"author": "hpcc-systems",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
|
|
55
|
+
"license": "Apache-2.0"
|
|
56
|
+
}
|
package/src/base91.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin
|
|
2
|
-
import load, { reset } from "../../../build/src-cpp/
|
|
2
|
+
import load, { reset } from "../../../build/packages/base91/src-cpp/base91lib.wasm";
|
|
3
3
|
import { WasmLibrary } from "./wasm-library.ts";
|
|
4
4
|
|
|
5
5
|
// Ref: http://base91.sourceforge.net/#a5
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|