1 line
5.5 KiB
JavaScript
1 line
5.5 KiB
JavaScript
function e(e,t,r){try{let l=C.__wbindgen_add_to_stack_pointer(-16);var i=m(r)?0:h(r,C.__wbindgen_export,C.__wbindgen_export2),a=S;C.exportPPTDToPPTXBytes(l,n(e),n(t),i,a);var s=o().getInt32(l+0,!0),c=o().getInt32(l+4,!0);if(o().getInt32(l+8,!0))throw g(c);return g(s)}finally{C.__wbindgen_add_to_stack_pointer(16)}}function t(){return{__proto__:null,"./pptd_wasm_bg.js":{__proto__:null,__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(e){let t=u(e),n=typeof t==`boolean`?t:void 0;return m(n)?16777215:+!!n},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(e){return typeof u(e)==`function`},__wbg___wbindgen_is_null_ea9085d691f535d3:function(e){return u(e)===null},__wbg___wbindgen_is_object_a27215656b807791:function(e){let t=u(e);return typeof t==`object`&&!!t},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(e){return u(e)===void 0},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(e,t){let n=u(t),r=typeof n==`number`?n:void 0;o().setFloat64(e+8,m(r)?0:r,!0),o().setInt32(e+0,!m(r),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let n=u(t),r=typeof n==`string`?n:void 0;var i=m(r)?0:h(r,C.__wbindgen_export,C.__wbindgen_export2),a=S;o().setInt32(e+4,a,!0),o().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(s(e,t))},__wbg_call_a6e5c5dce5018821:function(){return d(function(e,t,r){return n(u(e).call(u(t),u(r)))},arguments)},__wbg_call_e3b662382210db98:function(){return d(function(e,t,r,i){return n(u(e).call(u(t),u(r),u(i)))},arguments)},__wbg_from_13e323c65fc8f464:function(e){return n(Array.from(u(e)))},__wbg_get_78f252d074a84d0b:function(){return d(function(e,t){return n(Reflect.get(u(e),u(t)))},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(e,t){let r=u(e)[t>>>0];return n(r)},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(e){let t;try{t=u(e)instanceof ArrayBuffer}catch{t=!1}return t},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(e){let t;try{t=u(e)instanceof Uint8Array}catch{t=!1}return t},__wbg_length_1f0964f4a5e2c6d8:function(e){return u(e).length},__wbg_length_370319915dc99107:function(e){return u(e).length},__wbg_new_cd45aabdf6073e84:function(e){return n(new Uint8Array(u(e)))},__wbg_new_da52cf8fe3429cb2:function(){return n({})},__wbg_new_from_slice_77cdfb7977362f3c:function(e,t){return n(new Uint8Array(i(e,t)))},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,n){Uint8Array.prototype.set.call(i(e,t),u(n))},__wbg_set_8535240470bf2500:function(){return d(function(e,t,n){return Reflect.set(u(e),u(t),u(n))},arguments)},__wbg_stringify_b54333f60f1e4dad:function(){return d(function(e){return n(JSON.stringify(u(e)))},arguments)},__wbindgen_cast_0000000000000001:function(e){return n(e)},__wbindgen_cast_0000000000000002:function(e,t){return n(s(e,t))},__wbindgen_object_drop_ref:function(e){g(e)}}}}function n(e){p===f.length&&f.push(f.length+1);let t=p;return p=f[t],f[t]=e,t}function r(e){e<1028||(f[e]=p,p=e)}function i(e,t){return e>>>=0,l().subarray(e/1,e/1+t)}var a=null;function o(){return(a===null||a.buffer.detached===!0||a.buffer.detached===void 0&&a.buffer!==C.memory.buffer)&&(a=new DataView(C.memory.buffer)),a}function s(e,t){return b(e>>>0,t)}var c=null;function l(){return(c===null||c.byteLength===0)&&(c=new Uint8Array(C.memory.buffer)),c}function u(e){return f[e]}function d(e,t){try{return e.apply(this,t)}catch(e){C.__wbindgen_export3(n(e))}}var f=Array(1024).fill(void 0);f.push(void 0,null,!0,!1);var p=f.length;function m(e){return e==null}function h(e,t,n){if(n===void 0){let n=x.encode(e),r=t(n.length,1)>>>0;return l().subarray(r,r+n.length).set(n),S=n.length,r}let r=e.length,i=t(r,1)>>>0,a=l(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=l().subarray(i+o,i+r),a=x.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return S=o,i}function g(e){let t=u(e);return r(e),t}var _=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});_.decode();var v=2146435072,y=0;function b(e,t){return y+=t,y>=v&&(_=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),_.decode(),y=t),_.decode(l().subarray(e,e+t))}var x=new TextEncoder;`encodeInto`in x||(x.encodeInto=function(e,t){let n=x.encode(e);return t.set(n),{read:e.length,written:n.length}});var S=0,C;function w(e,t){return C=e.exports,a=null,c=null,C}async function T(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function E(e){if(C!==void 0)return C;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(`/neo-ppt/assets/pptd_wasm_bg-DPPWdROu.wasm`,``+import.meta.url));let n=t();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await T(await e,n);return w(r,i)}var D=`/neo-ppt/assets/pptd_wasm_bg-DPPWdROu.wasm`;export{E as n,e as r,D as t}; |