Files
fad_oa/ruoyi-ui/public/file-viewer/assets/wasm-pack-shim-BnuNh1z7.js

1 line
46 KiB
JavaScript

var e;function t(e){y===v.length&&v.push(v.length+1);let t=y;if(y=v[t],typeof y!=`number`)throw Error(`corrupt heap`);return v[t]=e,t}function n(e){if(typeof e!=`boolean`)throw Error(`expected a boolean argument, found ${typeof e}`)}function r(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function i(e){if(typeof e!=`number`)throw Error(`expected a number argument, found ${typeof e}`)}var a=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function o(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=o(e[0]));for(let r=1;r<t;r++)n+=`, `+o(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function s(e){e<132||(v[e]=y,y=e)}function c(e,t){return e>>>=0,h().subarray(e/1,e/1+t)}var l=null;function u(){return(l===null||l.buffer.detached===!0||l.buffer.detached===void 0&&l.buffer!==e.memory.buffer)&&(l=new DataView(e.memory.buffer)),l}function d(e,t){return e>>>=0,re(e,t)}var f=null;function p(){return(f===null||f.byteLength===0)&&(f=new Uint32Array(e.memory.buffer)),f}var m=null;function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(e.memory.buffer)),m}function g(e){return v[e]}function _(n,r){try{return n.apply(this,r)}catch(n){e.__wbindgen_export3(t(n))}}var v=Array(128).fill(void 0);v.push(void 0,null,!0,!1);var y=v.length;function b(e){return e==null}function x(e,t){try{return e.apply(this,t)}catch(e){let t=function(){try{return e instanceof Error?`${e.message}\n\nStack:\n${e.stack}`:e.toString()}catch{return`<failed to stringify thrown value>`}}();throw console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:",t),e}}function S(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{i.cnt++;try{return r(i.a,i.b,...e)}finally{o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,a.unregister(i))},a.register(o,i,i),o}function ee(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{i.cnt++;let t=i.a;i.a=0;try{return r(t,i.b,...e)}finally{i.a=t,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,a.unregister(i))},a.register(o,i,i),o}function te(e,t){let n=t(e.length*4,4)>>>0;return p().set(e,n/4),A=e.length,n}function C(e,t){let n=t(e.length*1,1)>>>0;return h().set(e,n/1),A=e.length,n}function w(e,n){let r=n(e.length*4,4)>>>0,i=u();for(let n=0;n<e.length;n++)i.setUint32(r+4*n,t(e[n]),!0);return A=e.length,r}function T(e,t,n){if(typeof e!=`string`)throw Error(`expected a string argument, found ${typeof e}`);if(n===void 0){let n=k.encode(e),r=t(n.length,1)>>>0;return h().subarray(r,r+n.length).set(n),A=n.length,r}let r=e.length,i=t(r,1)>>>0,a=h(),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=h().subarray(i+o,i+r),a=k.encodeInto(e,t);if(a.read!==e.length)throw Error(`failed to pass whole string`);o+=a.written,i=n(i,r,o,1)>>>0}return A=o,i}function E(e){let t=g(e);return s(e),t}var D=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});D.decode();var ne=2146435072,O=0;function re(e,t){return O+=t,O>=ne&&(D=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),D.decode(),O=t),D.decode(h().subarray(e,e+t))}var k=new TextEncoder;`encodeInto`in k||(k.encodeInto=function(e,t){let n=k.encode(e);return t.set(n),{read:e.length,written:n.length}});var A=0;function ie(n,r,a){i(n),i(r),e.__wasm_bindgen_func_elem_1056(n,r,t(a))}function ae(t,n){i(t),i(n),e.__wasm_bindgen_func_elem_1035(t,n)}function oe(n,r,a){i(n),i(r),e.__wasm_bindgen_func_elem_1034(n,r,t(a))}function se(n,r,a,o){i(n),i(r),e.__wasm_bindgen_func_elem_3555(n,r,t(a),t(o))}var j=[`nonzero`,`evenodd`],M=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_createsessionoptions_free(t>>>0,1)),N=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_incrdomdocclient_free(t>>>0,1)),P=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_pageinfo_free(t>>>0,1)),F=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_pagesinfo_free(t>>>0,1)),I=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_renderpageimageoptions_free(t>>>0,1)),L=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_rendersession_free(t>>>0,1)),R=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_rendersessionoptions_free(t>>>0,1)),z=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_typstrenderer_free(t>>>0,1)),B=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_typstrendererbuilder_free(t>>>0,1)),ce=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_typstworker_free(t>>>0,1)),V=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_workerbridge_free(t>>>0,1)),H=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_createsessionoptions_free(t,0)}constructor(){let t=e.createsessionoptions_new();return this.__wbg_ptr=t>>>0,M.register(this,this.__wbg_ptr,this),this}set format(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let n=T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.createsessionoptions_set_format(this.__wbg_ptr,n,r)}set artifact_content(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let n=C(t,e.__wbindgen_export),r=A;e.createsessionoptions_set_artifact_content(this.__wbg_ptr,n,r)}};Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);var U=class n{constructor(){throw Error("cannot invoke `new` directly")}static __wrap(e){e>>>=0;let t=Object.create(n.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_incrdomdocclient_free(t,0)}bind_functions(n){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),e.incrdomdocclient_bind_functions(this.__wbg_ptr,t(n))}relayout(t,n,r,a){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.incrdomdocclient_relayout(this.__wbg_ptr,t,n,r,a))}need_repaint(t,n,r,a,o,s){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let d=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),i(t),i(s),e.incrdomdocclient_need_repaint(d,this.__wbg_ptr,t,n,r,a,o,s);var c=u().getInt32(d+0,!0),l=u().getInt32(d+4,!0);if(u().getInt32(d+8,!0))throw E(l);return c!==0}finally{e.__wbindgen_add_to_stack_pointer(16)}}repaint(t,n,r,a,o,s){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let d=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),i(t),i(s),e.incrdomdocclient_repaint(d,this.__wbg_ptr,t,n,r,a,o,s);var c=u().getInt32(d+0,!0),l=u().getInt32(d+4,!0);if(u().getInt32(d+8,!0))throw E(l);return E(c)}finally{e.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var W=class t{constructor(){throw Error("cannot invoke `new` directly")}static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,P.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_pageinfo_free(t,0)}get page_off(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pageinfo_page_off(this.__wbg_ptr)>>>0}get width_pt(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pageinfo_width_pt(this.__wbg_ptr)}get height_pt(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pageinfo_height_pt(this.__wbg_ptr)}};Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);var G=class t{constructor(){throw Error("cannot invoke `new` directly")}static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,F.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_pagesinfo_free(t,0)}get page_count(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pagesinfo_page_count(this.__wbg_ptr)>>>0}page_by_number(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),i(t);let n=e.pagesinfo_page_by_number(this.__wbg_ptr,t);return n===0?void 0:W.__wrap(n)}page(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),i(t);let n=e.pagesinfo_page(this.__wbg_ptr,t);return W.__wrap(n)}width(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pagesinfo_width(this.__wbg_ptr)}height(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.pagesinfo_height(this.__wbg_ptr)}};Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);var K=class t{static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_renderpageimageoptions_free(t,0)}constructor(){let t=e.renderpageimageoptions_new();return this.__wbg_ptr=t>>>0,I.register(this,this.__wbg_ptr,this),this}get pixel_per_pt(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let t=e.renderpageimageoptions_pixel_per_pt(this.__wbg_ptr);return t===4294967297?void 0:t}set pixel_per_pt(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),b(t)||i(t),e.renderpageimageoptions_set_pixel_per_pt(this.__wbg_ptr,b(t)?4294967297:Math.fround(t))}get background_color(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.renderpageimageoptions_background_color(r,this.__wbg_ptr);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);let a;return t!==0&&(a=d(t,n).slice(),e.__wbindgen_export4(t,n*1,1)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}set background_color(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);var n=b(t)?0:T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.renderpageimageoptions_set_background_color(this.__wbg_ptr,n,r)}get page_off(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.renderpageimageoptions_page_off(this.__wbg_ptr)>>>0}set page_off(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),i(t),e.renderpageimageoptions_set_page_off(this.__wbg_ptr,t)}get cache_key(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.renderpageimageoptions_cache_key(r,this.__wbg_ptr);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);let a;return t!==0&&(a=d(t,n).slice(),e.__wbindgen_export4(t,n*1,1)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}set cache_key(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);var n=b(t)?0:T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.renderpageimageoptions_set_cache_key(this.__wbg_ptr,n,r)}get data_selection(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let t=e.renderpageimageoptions_data_selection(this.__wbg_ptr);return t===4294967297?void 0:t}set data_selection(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),b(t)||i(t),e.renderpageimageoptions_set_data_selection(this.__wbg_ptr,b(t)?4294967297:t>>>0)}};Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);var q=class t{constructor(){throw Error("cannot invoke `new` directly")}static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,L.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_rendersession_free(t,0)}render_in_window(t,n,r,a){let o,s;try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let f=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.rendersession_render_in_window(f,this.__wbg_ptr,t,n,r,a);var c=u().getInt32(f+0,!0),l=u().getInt32(f+4,!0);return o=c,s=l,d(c,l)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(o,s,1)}}get pixel_per_pt(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let t=e.rendersession_pixel_per_pt(this.__wbg_ptr);return t===4294967297?void 0:t}set pixel_per_pt(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),b(t)||i(t),e.rendersession_set_pixel_per_pt(this.__wbg_ptr,b(t)?4294967297:Math.fround(t))}get background_color(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.rendersession_background_color(r,this.__wbg_ptr);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);let a;return t!==0&&(a=d(t,n).slice(),e.__wbindgen_export4(t,n*1,1)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}set background_color(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);var n=b(t)?0:T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.rendersession_set_background_color(this.__wbg_ptr,n,r)}get pages_info(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let t=e.rendersession_pages_info(this.__wbg_ptr);return G.__wrap(t)}get doc_width(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.rendersession_doc_width(this.__wbg_ptr)}get doc_height(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),e.rendersession_doc_height(this.__wbg_ptr)}source_span(t){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let o=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr);let s=te(t,e.__wbindgen_export),c=A;e.rendersession_source_span(o,this.__wbg_ptr,s,c);var n=u().getInt32(o+0,!0),r=u().getInt32(o+4,!0),a=u().getInt32(o+8,!0);if(u().getInt32(o+12,!0))throw E(a);let l;return n!==0&&(l=d(n,r).slice(),e.__wbindgen_export4(n,r*1,1)),l}finally{e.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_rendersessionoptions_free(t,0)}constructor(){let t=e.rendersessionoptions_new();return this.__wbg_ptr=t>>>0,R.register(this,this.__wbg_ptr,this),this}get pixel_per_pt(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);let t=e.rendersession_pixel_per_pt(this.__wbg_ptr);return t===4294967297?void 0:t}set pixel_per_pt(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr),b(t)||i(t),e.rendersession_set_pixel_per_pt(this.__wbg_ptr,b(t)?4294967297:Math.fround(t))}get background_color(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.rendersessionoptions_background_color(r,this.__wbg_ptr);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);let a;return t!==0&&(a=d(t,n).slice(),e.__wbindgen_export4(t,n*1,1)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}set background_color(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);var n=b(t)?0:T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.rendersessionoptions_set_background_color(this.__wbg_ptr,n,r)}get format(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.rendersessionoptions_format(r,this.__wbg_ptr);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);let a;return t!==0&&(a=d(t,n).slice(),e.__wbindgen_export4(t,n*1,1)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}set format(t){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);i(this.__wbg_ptr);var n=b(t)?0:T(t,e.__wbindgen_export,e.__wbindgen_export2),r=A;e.rendersessionoptions_set_format(this.__wbg_ptr,n,r)}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Y=class n{static __wrap(e){e>>>=0;let t=Object.create(n.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_typstrenderer_free(t,0)}constructor(){let t=e.typstrenderer_new();return this.__wbg_ptr=t>>>0,z.register(this,this.__wbg_ptr,this),this}create_session(t){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let o=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr);let s=0;if(!b(t)){if(r(t,H),t.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);s=t.__destroy_into_raw()}e.typstrenderer_create_session(o,this.__wbg_ptr,s);var n=u().getInt32(o+0,!0),a=u().getInt32(o+4,!0);if(u().getInt32(o+8,!0))throw E(a);return q.__wrap(n)}finally{e.__wbindgen_add_to_stack_pointer(16)}}reset(t){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let a=e.__wbindgen_add_to_stack_pointer(-16);if(i(this.__wbg_ptr),r(t,q),t.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);e.typstrenderer_reset(a,this.__wbg_ptr,t.__wbg_ptr);var n=u().getInt32(a+0,!0);if(u().getInt32(a+4,!0))throw E(n)}finally{e.__wbindgen_add_to_stack_pointer(16)}}manipulate_data(t,n,a){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let s=e.__wbindgen_add_to_stack_pointer(-16);if(i(this.__wbg_ptr),r(t,q),t.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);let c=T(n,e.__wbindgen_export,e.__wbindgen_export2),l=A,d=C(a,e.__wbindgen_export),f=A;e.typstrenderer_manipulate_data(s,this.__wbg_ptr,t.__wbg_ptr,c,l,d,f);var o=u().getInt32(s+0,!0);if(u().getInt32(s+4,!0))throw E(o)}finally{e.__wbindgen_add_to_stack_pointer(16)}}session_from_artifact(t,n){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let o=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr);let s=C(t,e.__wbindgen_export),c=A,l=T(n,e.__wbindgen_export,e.__wbindgen_export2),d=A;e.typstrenderer_session_from_artifact(o,this.__wbg_ptr,s,c,l,d);var r=u().getInt32(o+0,!0),a=u().getInt32(o+4,!0);if(u().getInt32(o+8,!0))throw E(a);return q.__wrap(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}load_glyph_pack(n){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let a=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr),e.typstrenderer_load_glyph_pack(a,this.__wbg_ptr,t(n));var r=u().getInt32(a+0,!0);if(u().getInt32(a+4,!0))throw E(r)}finally{e.__wbindgen_add_to_stack_pointer(16)}}render_svg_diff(t,n,a,o,s){let c,l;try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let m=e.__wbindgen_add_to_stack_pointer(-16);if(i(this.__wbg_ptr),r(t,q),t.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);e.typstrenderer_render_svg_diff(m,this.__wbg_ptr,t.__wbg_ptr,n,a,o,s);var f=u().getInt32(m+0,!0),p=u().getInt32(m+4,!0);return c=f,l=p,d(f,p)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(c,l,1)}}svg_data(t,n){let a,o;try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let h=e.__wbindgen_add_to_stack_pointer(-16);if(i(this.__wbg_ptr),r(t,q),t.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);b(n)||i(n),e.typstrenderer_svg_data(h,this.__wbg_ptr,t.__wbg_ptr,b(n)?4294967297:n>>>0);var s=u().getInt32(h+0,!0),c=u().getInt32(h+4,!0),l=u().getInt32(h+8,!0),f=u().getInt32(h+12,!0),p=s,m=c;if(f)throw p=0,m=0,E(l);return a=p,o=m,d(p,m)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export4(a,o,1)}}get_customs(t){if(this.__wbg_ptr==0||(i(this.__wbg_ptr),r(t,q),t.__wbg_ptr===0))throw Error(`Attempt to use a moved value`);return E(e.typstrenderer_get_customs(this.__wbg_ptr,t.__wbg_ptr))}render_svg(n,a){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let c=e.__wbindgen_add_to_stack_pointer(-16);if(i(this.__wbg_ptr),r(n,q),n.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);e.typstrenderer_render_svg(c,this.__wbg_ptr,n.__wbg_ptr,t(a));var o=u().getInt32(c+0,!0),s=u().getInt32(c+4,!0);if(u().getInt32(c+8,!0))throw E(s);return o!==0}finally{e.__wbindgen_add_to_stack_pointer(16)}}create_worker(n){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.typstrenderer_create_worker(this.__wbg_ptr,t(n)))}create_worker_bridge(){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let r=this.__destroy_into_raw(),a=e.__wbindgen_add_to_stack_pointer(-16);i(r),e.typstrenderer_create_worker_bridge(a,r);var t=u().getInt32(a+0,!0),n=u().getInt32(a+4,!0);if(u().getInt32(a+8,!0))throw E(n);return Q.__wrap(t)}finally{e.__wbindgen_add_to_stack_pointer(16)}}render_page_to_canvas(n,a,o){if(this.__wbg_ptr==0||(i(this.__wbg_ptr),r(n,q),n.__wbg_ptr===0))throw Error(`Attempt to use a moved value`);let s=0;if(!b(o)){if(r(o,K),o.__wbg_ptr===0)throw Error(`Attempt to use a moved value`);s=o.__destroy_into_raw()}return E(e.typstrenderer_render_page_to_canvas(this.__wbg_ptr,n.__wbg_ptr,t(a),s))}mount_dom(n,a){if(this.__wbg_ptr==0||(i(this.__wbg_ptr),r(n,q),n.__wbg_ptr===0))throw Error(`Attempt to use a moved value`);return E(e.typstrenderer_mount_dom(this.__wbg_ptr,n.__wbg_ptr,t(a)))}};Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);var X=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_typstrendererbuilder_free(t,0)}constructor(){try{let r=e.__wbindgen_add_to_stack_pointer(-16);e.typstrendererbuilder_new(r);var t=u().getInt32(r+0,!0),n=u().getInt32(r+4,!0);if(u().getInt32(r+8,!0))throw E(n);return this.__wbg_ptr=t>>>0,B.register(this,this.__wbg_ptr,this),this}finally{e.__wbindgen_add_to_stack_pointer(16)}}build(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let t=this.__destroy_into_raw();return i(t),E(e.typstrendererbuilder_build(t))}add_glyph_pack(n){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.typstrendererbuilder_add_glyph_pack(this.__wbg_ptr,t(n)))}add_raw_font(n){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.typstrendererbuilder_add_raw_font(this.__wbg_ptr,t(n)))}add_lazy_font(n,r){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.typstrendererbuilder_add_lazy_font(this.__wbg_ptr,t(n),t(r)))}};Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);var Z=class{constructor(){throw Error("cannot invoke `new` directly")}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_typstworker_free(t,0)}manipulate_data(n,r){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let s=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr);let c=T(n,e.__wbindgen_export,e.__wbindgen_export2),l=A;e.typstworker_manipulate_data(s,this.__wbg_ptr,c,l,t(r));var a=u().getInt32(s+0,!0),o=u().getInt32(s+4,!0);if(u().getInt32(s+8,!0))throw E(o);return E(a)}finally{e.__wbindgen_add_to_stack_pointer(16)}}get_pages_info(){if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);return i(this.__wbg_ptr),E(e.typstworker_get_pages_info(this.__wbg_ptr))}render_canvas(t,n,r){try{if(this.__wbg_ptr==0)throw Error(`Attempt to use a moved value`);let s=e.__wbindgen_add_to_stack_pointer(-16);i(this.__wbg_ptr);let c=C(t,e.__wbindgen_export),l=A,d=w(n,e.__wbindgen_export),f=A,p=w(r,e.__wbindgen_export),m=A;e.typstworker_render_canvas(s,this.__wbg_ptr,c,l,d,f,p,m);var a=u().getInt32(s+0,!0),o=u().getInt32(s+4,!0);if(u().getInt32(s+8,!0))throw E(o);return E(a)}finally{e.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var Q=class t{constructor(){throw Error("cannot invoke `new` directly")}static __wrap(e){e>>>=0;let n=Object.create(t.prototype);return n.__wbg_ptr=e,V.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){let t=this.__destroy_into_raw();e.__wbg_workerbridge_free(t,0)}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);function le(){return E(e.renderer_build_info())}var ue=new Set([`basic`,`cors`,`default`]);async function de(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&&ue.has(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 n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function $(){let r={};return r.wbg={},r.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(t,n){let r=T(o(g(n)),e.__wbindgen_export,e.__wbindgen_export2),i=A;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},r.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){let t=typeof g(e)==`function`;return n(t),t},r.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){let t=g(e)===void 0;return n(t),t},r.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36=function(e,t){let r=g(e)===g(t);return n(r),r},r.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(t,n){let r=g(n),i=typeof r==`string`?r:void 0;var a=b(i)?0:T(i,e.__wbindgen_export,e.__wbindgen_export2),o=A;u().setInt32(t+4,o,!0),u().setInt32(t+0,a,!0)},r.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,t){throw Error(d(e,t))},r.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(){return x(function(e){g(e)._wbg_cb_unref()},arguments)},r.wbg.__wbg_appendChild_7465eba84213c75f=function(){return _(function(e,n){return t(g(e).appendChild(g(n)))},arguments)},r.wbg.__wbg_call_3020136f7a2d6e44=function(){return _(function(e,n,r){return t(g(e).call(g(n),g(r)))},arguments)},r.wbg.__wbg_call_78f94eb02ec7f9b2=function(){return _(function(e,n,r,i,a){return t(g(e).call(g(n),g(r),g(i),g(a)))},arguments)},r.wbg.__wbg_call_abb4ff46ce38be40=function(){return _(function(e,n){return t(g(e).call(g(n)))},arguments)},r.wbg.__wbg_call_c8baa5c5e72d274e=function(){return _(function(e,n,r,i){return t(g(e).call(g(n),g(r),g(i)))},arguments)},r.wbg.__wbg_clearRect_c2909c2f38887f82=function(){return x(function(e,t,n,r,i){g(e).clearRect(t,n,r,i)},arguments)},r.wbg.__wbg_clientWidth_dbc9540f4ebdce2a=function(){return x(function(e){let t=g(e).clientWidth;return i(t),t},arguments)},r.wbg.__wbg_clip_35de02bb25d222d9=function(){return x(function(e,t){g(e).clip(g(t))},arguments)},r.wbg.__wbg_clip_afc9a92171eee96e=function(){return x(function(e,t){g(e).clip(g(t))},arguments)},r.wbg.__wbg_cloneNode_c9c45b24b171a776=function(){return _(function(e){return t(g(e).cloneNode())},arguments)},r.wbg.__wbg_content_ad90fa08b8c037c5=function(){return x(function(e){let n=g(e).content;return t(n)},arguments)},r.wbg.__wbg_createElement_da4ed2b219560fc6=function(){return _(function(e,n,r){return t(g(e).createElement(d(n,r)))},arguments)},r.wbg.__wbg_createImageBitmap_15b94d7a7277d0be=function(){return _(function(e,n){return t(g(e).createImageBitmap(g(n)))},arguments)},r.wbg.__wbg_createImageBitmap_4772db6cb0dff013=function(){return _(function(e,n){return t(g(e).createImageBitmap(g(n)))},arguments)},r.wbg.__wbg_createObjectURL_7d9f7f8f41373850=function(){return _(function(t,n){let r=T(URL.createObjectURL(g(n)),e.__wbindgen_export,e.__wbindgen_export2),i=A;u().setInt32(t+4,i,!0),u().setInt32(t+0,r,!0)},arguments)},r.wbg.__wbg_document_5b745e82ba551ca5=function(){return x(function(e){let n=g(e).document;return b(n)?0:t(n)},arguments)},r.wbg.__wbg_drawImage_2859dfb229439d8c=function(){return _(function(e,t,n,r,i,a){g(e).drawImage(g(t),n,r,i,a)},arguments)},r.wbg.__wbg_drawImage_6949f7679b2a9758=function(){return _(function(e,t,n,r,i,a){g(e).drawImage(g(t),n,r,i,a)},arguments)},r.wbg.__wbg_drawImage_c2aacfe3133aedb7=function(){return _(function(e,t,n,r){g(e).drawImage(g(t),n,r)},arguments)},r.wbg.__wbg_drawImage_c40aff4a38206f4a=function(){return _(function(e,t,n,r,i,a){g(e).drawImage(g(t),n,r,i,a)},arguments)},r.wbg.__wbg_drawImage_c4f2c6d2bcfa9463=function(){return _(function(e,t,n,r){g(e).drawImage(g(t),n,r)},arguments)},r.wbg.__wbg_drawImage_de5946f9cc23c2b9=function(){return _(function(e,t,n,r){g(e).drawImage(g(t),n,r)},arguments)},r.wbg.__wbg_drawImage_e2012c2a2d434ee2=function(){return _(function(e,t,n,r,i,a){g(e).drawImage(g(t),n,r,i,a)},arguments)},r.wbg.__wbg_error_7534b8e9a36f1ab4=function(){return x(function(t,n){let r,i;try{r=t,i=n,console.error(d(t,n))}finally{e.__wbindgen_export4(r,i,1)}},arguments)},r.wbg.__wbg_fillRect_84131220403e26a4=function(){return x(function(e,t,n,r,i){g(e).fillRect(t,n,r,i)},arguments)},r.wbg.__wbg_fillRect_e0efe328740308e7=function(){return x(function(e,t,n,r,i){g(e).fillRect(t,n,r,i)},arguments)},r.wbg.__wbg_fill_2f2cb4f3f75aadd4=function(){return x(function(e,t,n){g(e).fill(g(t),j[n])},arguments)},r.wbg.__wbg_fill_38a7d7455451c001=function(){return x(function(e,t,n){g(e).fill(g(t),j[n])},arguments)},r.wbg.__wbg_fill_3d82e52894462c95=function(){return x(function(e,t){g(e).fill(g(t))},arguments)},r.wbg.__wbg_fill_f1043be5324533f3=function(){return x(function(e,t){g(e).fill(g(t))},arguments)},r.wbg.__wbg_firstElementChild_54d515b19cee5ae7=function(){return x(function(e){let n=g(e).firstElementChild;return b(n)?0:t(n)},arguments)},r.wbg.__wbg_firstElementChild_e207b33aaa4a86df=function(){return x(function(e){let n=g(e).firstElementChild;return b(n)?0:t(n)},arguments)},r.wbg.__wbg_getAttribute_80900eec94cb3636=function(){return x(function(t,n,r,i){let a=g(n).getAttribute(d(r,i));var o=b(a)?0:T(a,e.__wbindgen_export,e.__wbindgen_export2),s=A;u().setInt32(t+4,s,!0),u().setInt32(t+0,o,!0)},arguments)},r.wbg.__wbg_getContext_01f42b234e833f0a=function(){return _(function(e,n,r){let i=g(e).getContext(d(n,r));return b(i)?0:t(i)},arguments)},r.wbg.__wbg_getContext_2f210d0a58d43d95=function(){return _(function(e,n,r){let i=g(e).getContext(d(n,r));return b(i)?0:t(i)},arguments)},r.wbg.__wbg_get_af9dab7e9603ea93=function(){return _(function(e,n){return t(Reflect.get(g(e),g(n)))},arguments)},r.wbg.__wbg_globalCompositeOperation_03e6a5201c8ee369=function(){return _(function(t,n){let r=g(n).globalCompositeOperation,i=T(r,e.__wbindgen_export,e.__wbindgen_export2),a=A;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},arguments)},r.wbg.__wbg_globalCompositeOperation_d52c6e6666e4be00=function(){return _(function(t,n){let r=g(n).globalCompositeOperation,i=T(r,e.__wbindgen_export,e.__wbindgen_export2),a=A;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},arguments)},r.wbg.__wbg_height_3a0b31e52a5b7f17=function(){return x(function(e){let t=g(e).height;return i(t),t},arguments)},r.wbg.__wbg_incrdomdocclient_new=function(){return x(function(e){return t(U.__wrap(e))},arguments)},r.wbg.__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f=function(){return x(function(e){let t;try{t=g(e)instanceof CanvasRenderingContext2D}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_Element_6f7ba982258cfc0f=function(){return x(function(e){let t;try{t=g(e)instanceof Element}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc=function(){return x(function(e){let t;try{t=g(e)instanceof HTMLCanvasElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037=function(){return x(function(e){let t;try{t=g(e)instanceof HTMLDivElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_HtmlElement_20a3acb594113d73=function(){return x(function(e){let t;try{t=g(e)instanceof HTMLElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089=function(){return x(function(e){let t;try{t=g(e)instanceof HTMLTemplateElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_ImageBitmap_e44697c70dffc0fe=function(){return x(function(e){let t;try{t=g(e)instanceof ImageBitmap}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5=function(){return x(function(e){let t;try{t=g(e)instanceof OffscreenCanvasRenderingContext2D}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f=function(){return x(function(e){let t;try{t=g(e)instanceof OffscreenCanvas}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_Promise_eca6c43a2610558d=function(){return x(function(e){let t;try{t=g(e)instanceof Promise}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3=function(){return x(function(e){let t;try{t=g(e)instanceof SVGGraphicsElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa=function(){return x(function(e){let t;try{t=g(e)instanceof SVGSVGElement}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(){return x(function(e){let t;try{t=g(e)instanceof Window}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54=function(){return x(function(e){let t;try{t=g(e)instanceof WorkerGlobalScope}catch{t=!1}let r=t;return n(r),r},arguments)},r.wbg.__wbg_lastElementChild_6b90fe10adf639a2=function(){return x(function(e){let n=g(e).lastElementChild;return b(n)?0:t(n)},arguments)},r.wbg.__wbg_length_22ac23eaec9d8053=function(){return x(function(e){let t=g(e).length;return i(t),t},arguments)},r.wbg.__wbg_log_1d990106d99dacb7=function(){return x(function(e){console.log(g(e))},arguments)},r.wbg.__wbg_log_fd6486c6d5396ce5=function(){return x(function(e,t){console.log(g(e),g(t))},arguments)},r.wbg.__wbg_measureText_a465ecc06491802d=function(){return _(function(e,n,r){return t(g(e).measureText(d(n,r)))},arguments)},r.wbg.__wbg_new_1ba21ce319a06297=function(){return x(function(){return t({})},arguments)},r.wbg.__wbg_new_25f239778d6112b9=function(){return x(function(){return t([])},arguments)},r.wbg.__wbg_new_2884ddbcda091bc1=function(){return _(function(){return t(new Image)},arguments)},r.wbg.__wbg_new_8a6f238a6ece86ea=function(){return x(function(){return t(Error())},arguments)},r.wbg.__wbg_new_9468dd6e5df427f6=function(){return _(function(e,n){return t(new OffscreenCanvas(e>>>0,n>>>0))},arguments)},r.wbg.__wbg_new_df1173567d5ff028=function(){return x(function(e,n){return t(Error(d(e,n)))},arguments)},r.wbg.__wbg_new_ff12d2b041fb48f1=function(){return x(function(e,n){try{var r={a:e,b:n};return t(new Promise((e,t)=>{let n=r.a;r.a=0;try{return se(n,r.b,e,t)}finally{r.a=n}}))}finally{r.a=r.b=0}},arguments)},r.wbg.__wbg_new_from_slice_f9c22b9153b26992=function(){return x(function(e,n){return t(new Uint8Array(c(e,n)))},arguments)},r.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(){return x(function(e,n){return t(Function(d(e,n)))},arguments)},r.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(){return x(function(e){return t(new Uint8Array(e>>>0))},arguments)},r.wbg.__wbg_new_with_path_string_3aea637e78135c46=function(){return _(function(e,n){return t(new Path2D(d(e,n)))},arguments)},r.wbg.__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec=function(){return _(function(e,n){return t(new Blob(g(e),g(n)))},arguments)},r.wbg.__wbg_nextElementSibling_c745ee48314963c0=function(){return x(function(e){let n=g(e).nextElementSibling;return b(n)?0:t(n)},arguments)},r.wbg.__wbg_push_7d9be8f38fc13975=function(){return x(function(e,t){let n=g(e).push(g(t));return i(n),n},arguments)},r.wbg.__wbg_putImageData_c280ca107c4b7828=function(){return _(function(e,t,n,r){g(e).putImageData(g(t),n,r)},arguments)},r.wbg.__wbg_putImageData_e96eabf0e9610ed3=function(){return _(function(e,t,n,r){g(e).putImageData(g(t),n,r)},arguments)},r.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(){return x(function(e){let n=g(e).queueMicrotask;return t(n)},arguments)},r.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(){return x(function(e){queueMicrotask(g(e))},arguments)},r.wbg.__wbg_removeProperty_c2e16faee2834bef=function(){return _(function(t,n,r,i){let a=T(g(n).removeProperty(d(r,i)),e.__wbindgen_export,e.__wbindgen_export2),o=A;u().setInt32(t+4,o,!0),u().setInt32(t+0,a,!0)},arguments)},r.wbg.__wbg_remove_32f69ffabcbc4072=function(){return x(function(e){g(e).remove()},arguments)},r.wbg.__wbg_renderpageimageoptions_unwrap=function(){return x(function(e){let t=K.__unwrap(g(e));return i(t),t},arguments)},r.wbg.__wbg_replaceWith_923cfb1b2f584408=function(){return _(function(e,t){g(e).replaceWith(g(t))},arguments)},r.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(){return x(function(e){return t(Promise.resolve(g(e)))},arguments)},r.wbg.__wbg_restore_352c39c9bbeedc91=function(){return x(function(e){g(e).restore()},arguments)},r.wbg.__wbg_restore_6486cb1a7aa3af7b=function(){return x(function(e){g(e).restore()},arguments)},r.wbg.__wbg_revokeObjectURL_88db3468842ff09e=function(){return _(function(e,t){URL.revokeObjectURL(d(e,t))},arguments)},r.wbg.__wbg_save_131c8dc648f702b6=function(){return x(function(e){g(e).save()},arguments)},r.wbg.__wbg_save_b8767cfd2ee7f600=function(){return x(function(e){g(e).save()},arguments)},r.wbg.__wbg_setAttribute_34747dd193f45828=function(){return _(function(e,t,n,r,i){g(e).setAttribute(d(t,n),d(r,i))},arguments)},r.wbg.__wbg_setLineDash_7e3aad159aa2710c=function(){return _(function(e,t){g(e).setLineDash(g(t))},arguments)},r.wbg.__wbg_setLineDash_cfbc3a6bfddeee62=function(){return _(function(e,t){g(e).setLineDash(g(t))},arguments)},r.wbg.__wbg_setProperty_f27b2c05323daf8a=function(){return _(function(e,t,n,r,i){g(e).setProperty(d(t,n),d(r,i))},arguments)},r.wbg.__wbg_setTransform_9de588d9f080f5bc=function(){return _(function(e,t,n,r,i,a,o){g(e).setTransform(t,n,r,i,a,o)},arguments)},r.wbg.__wbg_setTransform_c55eca1193bf5ea1=function(){return _(function(e,t,n,r,i,a,o){g(e).setTransform(t,n,r,i,a,o)},arguments)},r.wbg.__wbg_set_169e13b608078b7b=function(){return x(function(e,t,n){g(e).set(c(t,n))},arguments)},r.wbg.__wbg_set_781438a03c0c3c81=function(){return _(function(e,t,r){let i=Reflect.set(g(e),g(t),g(r));return n(i),i},arguments)},r.wbg.__wbg_set_7df433eea03a5c14=function(){return x(function(e,t,n){g(e)[t>>>0]=E(n)},arguments)},r.wbg.__wbg_set_fillStyle_b26e462a87b14315=function(){return x(function(e,t,n){g(e).fillStyle=d(t,n)},arguments)},r.wbg.__wbg_set_fillStyle_c9a0550307cd4671=function(){return x(function(e,t,n){g(e).fillStyle=d(t,n)},arguments)},r.wbg.__wbg_set_font_6d67b15564a1e344=function(){return x(function(e,t,n){g(e).font=d(t,n)},arguments)},r.wbg.__wbg_set_globalCompositeOperation_418a0b97ba91a947=function(){return _(function(e,t,n){g(e).globalCompositeOperation=d(t,n)},arguments)},r.wbg.__wbg_set_globalCompositeOperation_7e16c72877ba5f86=function(){return _(function(e,t,n){g(e).globalCompositeOperation=d(t,n)},arguments)},r.wbg.__wbg_set_height_6f8f8ef4cb40e496=function(){return x(function(e,t){g(e).height=t>>>0},arguments)},r.wbg.__wbg_set_innerHTML_f1d03f780518a596=function(){return x(function(e,t,n){g(e).innerHTML=d(t,n)},arguments)},r.wbg.__wbg_set_lineCap_74b37c7ff968f854=function(){return x(function(e,t,n){g(e).lineCap=d(t,n)},arguments)},r.wbg.__wbg_set_lineCap_791e7648138cc371=function(){return x(function(e,t,n){g(e).lineCap=d(t,n)},arguments)},r.wbg.__wbg_set_lineDashOffset_85f21a63ddf34d2c=function(){return x(function(e,t){g(e).lineDashOffset=t},arguments)},r.wbg.__wbg_set_lineDashOffset_f032b4e2a273a2f5=function(){return x(function(e,t){g(e).lineDashOffset=t},arguments)},r.wbg.__wbg_set_lineJoin_196c6ac02fd494c3=function(){return x(function(e,t,n){g(e).lineJoin=d(t,n)},arguments)},r.wbg.__wbg_set_lineJoin_a136f09dd803e0cc=function(){return x(function(e,t,n){g(e).lineJoin=d(t,n)},arguments)},r.wbg.__wbg_set_lineWidth_ed39767bf75d602d=function(){return x(function(e,t){g(e).lineWidth=t},arguments)},r.wbg.__wbg_set_lineWidth_feda4b79a15c660b=function(){return x(function(e,t){g(e).lineWidth=t},arguments)},r.wbg.__wbg_set_miterLimit_b12c03757937d228=function(){return x(function(e,t){g(e).miterLimit=t},arguments)},r.wbg.__wbg_set_miterLimit_d891f47e244a915c=function(){return x(function(e,t){g(e).miterLimit=t},arguments)},r.wbg.__wbg_set_onerror_e7e40c62a55a0770=function(){return x(function(e,t){g(e).onerror=g(t)},arguments)},r.wbg.__wbg_set_onload_5e2862e3453854de=function(){return x(function(e,t){g(e).onload=g(t)},arguments)},r.wbg.__wbg_set_src_84f27c5105946dce=function(){return x(function(e,t,n){g(e).src=d(t,n)},arguments)},r.wbg.__wbg_set_strokeStyle_25d5381be570e780=function(){return x(function(e,t,n){g(e).strokeStyle=d(t,n)},arguments)},r.wbg.__wbg_set_strokeStyle_697a576d2d3fbeaa=function(){return x(function(e,t,n){g(e).strokeStyle=d(t,n)},arguments)},r.wbg.__wbg_set_type_7ce650670a34c68f=function(){return x(function(e,t,n){g(e).type=d(t,n)},arguments)},r.wbg.__wbg_set_width_7ff7a22c6e9f423e=function(){return x(function(e,t){g(e).width=t>>>0},arguments)},r.wbg.__wbg_stack_0ed75d68575b0f3c=function(){return x(function(t,n){let r=g(n).stack,i=T(r,e.__wbindgen_export,e.__wbindgen_export2),a=A;u().setInt32(t+4,a,!0),u().setInt32(t+0,i,!0)},arguments)},r.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){return x(function(){let e=typeof global>`u`?null:global;return b(e)?0:t(e)},arguments)},r.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){return x(function(){let e=typeof globalThis>`u`?null:globalThis;return b(e)?0:t(e)},arguments)},r.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){return x(function(){let e=typeof self>`u`?null:self;return b(e)?0:t(e)},arguments)},r.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){return x(function(){let e=typeof window>`u`?null:window;return b(e)?0:t(e)},arguments)},r.wbg.__wbg_stringify_655a6390e1f5eb6b=function(){return _(function(e){return t(JSON.stringify(g(e)))},arguments)},r.wbg.__wbg_stroke_41b0736a6a0b61aa=function(){return x(function(e,t){g(e).stroke(g(t))},arguments)},r.wbg.__wbg_stroke_7cfe6d60a6c48303=function(){return x(function(e,t){g(e).stroke(g(t))},arguments)},r.wbg.__wbg_style_521a717da50e53c6=function(){return x(function(e){let n=g(e).style;return t(n)},arguments)},r.wbg.__wbg_then_429f7caf1026411d=function(){return x(function(e,n,r){return t(g(e).then(g(n),g(r)))},arguments)},r.wbg.__wbg_then_4f95312d68691235=function(){return x(function(e,n){return t(g(e).then(g(n)))},arguments)},r.wbg.__wbg_transferToImageBitmap_7048556ff33da7ed=function(){return _(function(e){return t(g(e).transferToImageBitmap())},arguments)},r.wbg.__wbg_typstrenderer_new=function(){return x(function(e){return t(Y.__wrap(e))},arguments)},r.wbg.__wbg_warn_6e567d0d926ff881=function(){return x(function(e){console.warn(g(e))},arguments)},r.wbg.__wbg_width_c3f96f2ca7ab208d=function(){return x(function(e){return g(e).width},arguments)},r.wbg.__wbg_width_f13d2e86324fc226=function(){return x(function(e){let t=g(e).width;return i(t),t},arguments)},r.wbg.__wbindgen_cast_2241b6af4c4b2941=function(){return x(function(e,n){return t(d(e,n))},arguments)},r.wbg.__wbindgen_cast_34ce245e5be1ba8b=function(){return x(function(n,r){return t(S(n,r,e.__wasm_bindgen_func_elem_1022,ae))},arguments)},r.wbg.__wbindgen_cast_b2e692da0ea8478a=function(){return x(function(n,r){return t(ee(n,r,e.__wasm_bindgen_func_elem_1077,ie))},arguments)},r.wbg.__wbindgen_cast_d3d3bd81840cfbdd=function(){return x(function(n,r){return t(S(n,r,e.__wasm_bindgen_func_elem_1022,oe))},arguments)},r.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(){return x(function(e){return t(e)},arguments)},r.wbg.__wbindgen_object_clone_ref=function(e){return t(g(e))},r.wbg.__wbindgen_object_drop_ref=function(e){E(e)},r}function fe(t,n){return e=t.exports,me.__wbindgen_wasm_module=n,l=null,f=null,m=null,e}function pe(t){if(e!==void 0)return e;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let n=$();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),fe(new WebAssembly.Instance(t,n),t)}async function me(t){if(e!==void 0)return e;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),t===void 0&&(t=he(`typst_ts_renderer_bg.wasm`,import.meta.url));let n=$();(typeof t==`string`||typeof Request==`function`&&t instanceof Request||typeof URL==`function`&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:i}=await de(await t,n);return fe(r,i)}var he=async function(e,t){throw Error(`Cannot import wasm module without importer: `+e+` `+t)};function ge(e){he=e}var _e=me;typeof process<`u`&&process.versions!=null&&process.versions.node!=null&&ge(async function(e,t){let{readFileSync:n}=await Function(`m`,`return import(m)`)(`fs`);return await n(new URL(e,t)).buffer});export{H as CreateSessionOptions,U as IncrDomDocClient,W as PageInfo,G as PagesInfo,K as RenderPageImageOptions,q as RenderSession,J as RenderSessionOptions,Y as TypstRenderer,X as TypstRendererBuilder,Z as TypstWorker,Q as WorkerBridge,_e as default,pe as initSync,le as renderer_build_info,ge as setImportWasmModule};