@flyfish-group/file-viewer 1.0.23 → 1.0.24

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.
Files changed (203) hide show
  1. package/README.md +62 -28
  2. package/dist/components/3MFLoader.js +1 -1
  3. package/dist/components/AMFLoader.js +1 -1
  4. package/dist/components/AudioViewer.js +1 -1
  5. package/dist/components/CadViewer.js +1 -1
  6. package/dist/components/CodeViewer.js +1 -1
  7. package/dist/components/ColladaLoader.js +1 -1
  8. package/dist/components/DrawingViewer.js +1 -1
  9. package/dist/components/EdaViewer.js +1 -1
  10. package/dist/components/EmailViewer.js +1 -1
  11. package/dist/components/EpubViewer.js +1 -1
  12. package/dist/components/FBXLoader.js +1 -1
  13. package/dist/components/GLTFLoader.js +1 -1
  14. package/dist/components/ImageViewer.js +1 -1
  15. package/dist/components/KMZLoader.js +1 -1
  16. package/dist/components/MarkdownViewer.js +1 -1
  17. package/dist/components/OBJLoader.js +1 -1
  18. package/dist/components/OfdViewer.js +1 -1
  19. package/dist/components/PCDLoader.js +1 -1
  20. package/dist/components/PLYLoader.js +1 -1
  21. package/dist/components/STLLoader.js +1 -1
  22. package/dist/components/TDSLoader.js +1 -1
  23. package/dist/components/USDLoader.js +1 -1
  24. package/dist/components/UmdViewer.js +2 -2
  25. package/dist/components/VRMLLoader.js +1 -1
  26. package/dist/components/VTKLoader.js +1 -1
  27. package/dist/components/XYZLoader.js +1 -1
  28. package/dist/components/XlsxTable.js +1 -1
  29. package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
  30. package/dist/components/_commonjs-dynamic-modules.js +1 -1
  31. package/dist/components/_commonjsHelpers.js +1 -1
  32. package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
  33. package/dist/components/arc.js +1 -1
  34. package/dist/components/architecture-7EHR7CIX.js +1 -1
  35. package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
  36. package/dist/components/az-AZ-76LH7QW2.js +1 -1
  37. package/dist/components/bg-BG-XCXSNQG7.js +1 -1
  38. package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
  39. package/dist/components/bn-BD-2XOGV67Q.js +1 -1
  40. package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
  41. package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
  42. package/dist/components/cfb.js +1 -1
  43. package/dist/components/channel.js +1 -1
  44. package/dist/components/chunk-2J33WTMH.js +1 -1
  45. package/dist/components/chunk-4BX2VUAB.js +1 -1
  46. package/dist/components/chunk-55IACEB6.js +1 -1
  47. package/dist/components/chunk-727SXJPM.js +1 -1
  48. package/dist/components/chunk-AQP2D5EJ.js +1 -1
  49. package/dist/components/chunk-FMBD7UC4.js +1 -1
  50. package/dist/components/chunk-ND2GUHAM.js +1 -1
  51. package/dist/components/chunk-QZHKN3VN.js +1 -1
  52. package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
  53. package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
  54. package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
  55. package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
  56. package/dist/components/cytoscape.esm.js +1 -1
  57. package/dist/components/da-DK-5WZEPLOC.js +1 -1
  58. package/dist/components/dagre-BM42HDAG.js +1 -1
  59. package/dist/components/de-DE-XR44H4JA.js +1 -1
  60. package/dist/components/defaultLocale.js +1 -1
  61. package/dist/components/diagram-2AECGRRQ.js +1 -1
  62. package/dist/components/diagram-5GNKFQAL.js +1 -1
  63. package/dist/components/diagram-KO2AKTUF.js +1 -1
  64. package/dist/components/diagram-LMA3HP47.js +1 -1
  65. package/dist/components/diagram-OG6HWLK6.js +1 -1
  66. package/dist/components/directory-open-01563666.js +1 -1
  67. package/dist/components/directory-open-4ed118d0.js +1 -1
  68. package/dist/components/docx-preview.js +2 -2
  69. package/dist/components/el-GR-BZB4AONW.js +1 -1
  70. package/dist/components/en-B4ZKOASM.js +1 -1
  71. package/dist/components/erDiagram-TEJ5UH35.js +1 -1
  72. package/dist/components/es-ES-U4NZUMDT.js +1 -1
  73. package/dist/components/eu-ES-A7QVB2H4.js +1 -1
  74. package/dist/components/eventmodeling-FCH6USID.js +1 -1
  75. package/dist/components/fa-IR-HGAKTJCU.js +1 -1
  76. package/dist/components/fflate.module.js +1 -1
  77. package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
  78. package/dist/components/file-open-002ab408.js +1 -1
  79. package/dist/components/file-open-7c801643.js +1 -1
  80. package/dist/components/file-save-3189631c.js +1 -1
  81. package/dist/components/file-save-745eba88.js +1 -1
  82. package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
  83. package/dist/components/fr-FR-RHASNOE6.js +1 -1
  84. package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
  85. package/dist/components/gitGraph-WXDBUCRP.js +1 -1
  86. package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
  87. package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
  88. package/dist/components/global-compiler.js +1 -1
  89. package/dist/components/global-renderer.js +1 -1
  90. package/dist/components/graph.js +1 -1
  91. package/dist/components/he-IL-6SHJWFNN.js +1 -1
  92. package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
  93. package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
  94. package/dist/components/id-ID-SAP4L64H.js +1 -1
  95. package/dist/components/image-GAAHSSAO.js +1 -1
  96. package/dist/components/image-blob-reduce.esm.js +1 -1
  97. package/dist/components/index10.js +1 -1
  98. package/dist/components/index11.js +1 -1
  99. package/dist/components/index12.js +1 -1
  100. package/dist/components/index13.js +1 -1
  101. package/dist/components/index14.js +1 -1
  102. package/dist/components/index15.js +1 -1
  103. package/dist/components/index16.js +1 -1
  104. package/dist/components/index17.js +1 -1
  105. package/dist/components/index18.js +1 -1
  106. package/dist/components/index19.js +1 -1
  107. package/dist/components/index2.js +1 -1
  108. package/dist/components/index20.js +1 -1
  109. package/dist/components/index21.js +1 -1
  110. package/dist/components/index22.js +2 -2
  111. package/dist/components/index23.js +1 -1
  112. package/dist/components/index24.js +1 -1
  113. package/dist/components/index3.js +1 -1
  114. package/dist/components/index4.js +1 -1
  115. package/dist/components/index5.js +1 -1
  116. package/dist/components/index6.js +1 -1
  117. package/dist/components/index7.js +1 -1
  118. package/dist/components/index8.js +1 -1
  119. package/dist/components/index9.js +1 -1
  120. package/dist/components/info-J43DQDTF.js +1 -1
  121. package/dist/components/infoDiagram-5YYISTIA.js +1 -1
  122. package/dist/components/init.js +1 -1
  123. package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
  124. package/dist/components/it-IT-JPQ66NNP.js +1 -1
  125. package/dist/components/ja-JP-DBVTYXUO.js +1 -1
  126. package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
  127. package/dist/components/jszip.min.js +1 -1
  128. package/dist/components/kaa-6HZHGXH3.js +1 -1
  129. package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
  130. package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
  131. package/dist/components/katex.js +1 -1
  132. package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
  133. package/dist/components/km-KH-HSX4SM5Z.js +1 -1
  134. package/dist/components/ko-KR-MTYHY66A.js +1 -1
  135. package/dist/components/ku-TR-6OUDTVRD.js +1 -1
  136. package/dist/components/layout.js +1 -1
  137. package/dist/components/libarchive.js +1 -1
  138. package/dist/components/linear.js +1 -1
  139. package/dist/components/lt-LT-XHIRWOB4.js +1 -1
  140. package/dist/components/lv-LV-5QDEKY6T.js +1 -1
  141. package/dist/components/mermaid-parser.core.js +2 -2
  142. package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
  143. package/dist/components/mr-IN-CRQNXWMA.js +1 -1
  144. package/dist/components/my-MM-5M5IBNSE.js +1 -1
  145. package/dist/components/nb-NO-T6EIAALU.js +1 -1
  146. package/dist/components/nestedRender.js +1 -1
  147. package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
  148. package/dist/components/nn-NO-6E72VCQL.js +1 -1
  149. package/dist/components/oc-FR-POXYY2M6.js +1 -1
  150. package/dist/components/ofd.js +1 -1
  151. package/dist/components/ordinal.js +1 -1
  152. package/dist/components/pa-IN-N4M65BXN.js +1 -1
  153. package/dist/components/packet-YPE3B663.js +1 -1
  154. package/dist/components/percentages-BXMCSKIN.js +1 -1
  155. package/dist/components/pica.js +1 -1
  156. package/dist/components/pie-LRSECV5Y.js +1 -1
  157. package/dist/components/pie.js +1 -1
  158. package/dist/components/pieDiagram-4H26LBE5.js +1 -1
  159. package/dist/components/pl-PL-T2D74RX3.js +1 -1
  160. package/dist/components/postal-mime.js +1 -1
  161. package/dist/components/printLayout.js +1 -1
  162. package/dist/components/pt-BR-5N22H2LF.js +1 -1
  163. package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
  164. package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
  165. package/dist/components/radar-GUYGQ44K.js +1 -1
  166. package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
  167. package/dist/components/ro-RO-JPDTUUEW.js +1 -1
  168. package/dist/components/rough.esm.js +1 -1
  169. package/dist/components/roundRect.js +1 -1
  170. package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
  171. package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
  172. package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
  173. package/dist/components/si-LK-N5RQ5JYF.js +1 -1
  174. package/dist/components/sk-SK-C5VTKIMK.js +1 -1
  175. package/dist/components/sl-SI-NN7IZMDC.js +1 -1
  176. package/dist/components/stateDiagram-AJRCARHV.js +1 -1
  177. package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
  178. package/dist/components/subset-shared.chunk.js +1 -1
  179. package/dist/components/subset-worker.chunk.js +1 -1
  180. package/dist/components/sv-SE-XGPEYMSR.js +1 -1
  181. package/dist/components/ta-IN-2NMHFXQM.js +1 -1
  182. package/dist/components/th-TH-HPSO5L25.js +1 -1
  183. package/dist/components/time.js +1 -1
  184. package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
  185. package/dist/components/tr-TR-DEFEU3FU.js +1 -1
  186. package/dist/components/transform.js +1 -1
  187. package/dist/components/treeView-BLDUP644.js +1 -1
  188. package/dist/components/treemap-LRROVOQU.js +1 -1
  189. package/dist/components/uk-UA-QMV73CPH.js +1 -1
  190. package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
  191. package/dist/components/vi-VN-M7AON7JQ.js +1 -1
  192. package/dist/components/wardley-L42UT6IY.js +1 -1
  193. package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
  194. package/dist/components/wasm-pack-shim.js +1 -1
  195. package/dist/components/wasm-pack-shim2.js +1 -1
  196. package/dist/components/worker-ref.js +1 -1
  197. package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
  198. package/dist/components/zh-CN-LNUGB5OW.js +1 -1
  199. package/dist/components/zh-HK-E62DVLB3.js +1 -1
  200. package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
  201. package/dist/index.mjs +1 -1
  202. package/dist/style.css +1 -1
  203. package/package.json +2 -2
@@ -1 +1 @@
1
- const aj=d;(function(e,f){const ac=d,n=e();while(!![]){try{const r=-parseInt(ac(0x18f))/0x1+parseInt(ac(0x16b))/0x2+-parseInt(ac(0x173))/0x3*(-parseInt(ac(0x15e))/0x4)+parseInt(ac(0x1a4))/0x5*(parseInt(ac(0x1c6))/0x6)+parseInt(ac(0x19f))/0x7+parseInt(ac(0x1cf))/0x8+-parseInt(ac(0x17c))/0x9;if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0x6d69d));let o;function w(e){O===x['length']&&x['push'](x['length']+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){const ad=d;if(!(e instanceof f))throw new Error('expected\x20instance\x20of\x20'+f[ad(0x160)]);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function G(f){const ae=d,v=typeof f;if(v=='number'||v=='boolean'||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?'Symbol':'Symbol('+a0+')';}if(v==ae(0x1a9)){const a1=f['name'];return typeof a1=='string'&&a1['length']>0x0?'Function('+a1+')':ae(0x16d);}if(Array['isArray'](f)){const a2=f['length'];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString['call'](f));let S;if(y&&y['length']>0x1)S=y[0x1];else return toString['call'](f);if(S=='Object')try{return'Object('+JSON['stringify'](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f[ae(0x167)]+'\x0a'+f[ae(0x14d)]:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const af=d;return(R===null||R['buffer']['detached']===!0x0||R['buffer']['detached']===void 0x0&&R['buffer']!==o['memory']['buffer'])&&(R=new DataView(o['memory'][af(0x1ac)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){const ag=d;return(T===null||T[ag(0x180)]===0x0)&&(T=new Uint32Array(o['memory']['buffer'])),T;}let W=null;function C(){const ah=d;return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o['memory'][ah(0x1ac)])),W;}function i(e){return x[e];}function b(f,r){const ai=d;try{return f['apply'](this,r);}catch(u){o[ai(0x15c)](w(u));}}let x=new Array(0x80)[aj(0x18c)](void 0x0);x['push'](void 0x0,null,!0x0,!0x1);let O=x['length'];function l(e){return e==null;}function s(f,u){try{return f['apply'](this,u);}catch(v){let y=(function(){try{return v instanceof Error?v['message']+'\x0a\x0aStack:\x0a'+v['stack']:v['toString']();}catch{return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function V(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{const ak=d;S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0[ak(0x17e)]();}};return a0['_wbg_cb_unref']=()=>{const al=d;--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P[al(0x168)](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0['_wbg_cb_unref']=()=>{const am=d;--S['cnt']===0x0&&(S[am(0x169)](S['a'],S['b']),S['a']=0x0,P[am(0x168)](S));},P['register'](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const u=r(f['length']*0x1,0x1)>>>0x0;return C()['set'](f,u/0x1),h=f['length'],u;}function X(f,u){const v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f['length'];S++)y['setUint32'](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const an=aj;if(typeof v!=an(0x151))throw new Error(an(0x19a)+typeof v);if(S===void 0x0){const a4=j['encode'](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4['length'])[an(0x1aa)](a4),h=a4['length'],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v[an(0x17f)](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()[an(0x199)](a1+a3,a1+a0),a8=j['encodeInto'](v,a7);if(a8[an(0x195)]!==v['length'])throw new Error('failed\x20to\x20pass\x20whole\x20string');a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}let U=new TextDecoder(aj(0x1a6),{'ignoreBOM':!0x0,'fatal':!0x0});U['decode']();const mt=0x7ff00000;let H=0x0;function ht(e,f){const ao=aj;return H+=f,H>=mt&&(U=new TextDecoder(ao(0x1a6),{'ignoreBOM':!0x0,'fatal':!0x0}),U['decode'](),H=f),U[ao(0x1a7)](C()[ao(0x199)](e,e+f));}const j=new TextEncoder();aj(0x1b5)in j||(j['encodeInto']=function(f,r){const ap=aj,u=j['encode'](f);return r['set'](u),{'read':f[ap(0x185)],'written':u['length']};});let h=0x0;function yt(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1056'](f,r,w(u));}function vt(e,f){const aq=aj;c(e),c(f),o[aq(0x197)](e,f);}function Et(f,r,u){const ar=aj;c(f),c(r),o[ar(0x19c)](f,r,w(u));}function It(f,u,v,y){c(f),c(u),o['__wasm_bindgen_func_elem_3555'](f,u,w(v),w(y));}const Y=['nonzero','evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_createsessionoptions_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pageinfo_free'](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[aj(0x1ba)](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersession_free'](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersessionoptions_free'](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[aj(0x191)](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrendererbuilder_free'](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstworker_free'](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_workerbridge_free'](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const as=aj,e=this[as(0x150)];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const e=o['createsessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}set['format'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['createsessionoptions_set_format'](this['__wbg_ptr'],n,u);}set['artifact_content'](f){const au=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=$(f,o['__wbindgen_export']),u=h;o[au(0x1ab)](this['__wbg_ptr'],n,u);}}Symbol[aj(0x1ce)]&&(J['prototype'][Symbol[aj(0x1ce)]]=J[aj(0x152)]['free']);class L{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const av=aj;f=f>>>0x0;const n=Object['create'](L[av(0x152)]);return n['__wbg_ptr']=f,Q['register'](n,n[av(0x150)],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const aw=aj,e=this[aw(0x18e)]();o['__wbg_incrdomdocclient_free'](e,0x0);}['bind_functions'](e){const ax=aj;if(this['__wbg_ptr']==0x0)throw new Error(ax(0x170));c(this['__wbg_ptr']),o['incrdomdocclient_bind_functions'](this['__wbg_ptr'],w(e));}[aj(0x177)](f,n,u,v){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const y=o['incrdomdocclient_relayout'](this['__wbg_ptr'],f,n,u,v);return m(y);}['need_repaint'](n,S,a0,a1,a2,a3){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_need_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['repaint'](n,S,a0,a1,a2,a3){const ay=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[ay(0x150)]),c(n),c(a3),o['incrdomdocclient_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(L['prototype'][Symbol['dispose']]=L['prototype']['free']);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const az=aj;f=f>>>0x0;const n=Object[az(0x1c9)](F['prototype']);return n['__wbg_ptr']=f,Z['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aA=aj,e=this[aA(0x150)];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const aB=aj,e=this['__destroy_into_raw']();o[aB(0x155)](e,0x0);}get['page_off'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){const aC=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aC(0x17d)](this['__wbg_ptr']);}}Symbol[aj(0x1ce)]&&(F['prototype'][Symbol['dispose']]=F['prototype']['free']);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aD=aj;f=f>>>0x0;const n=Object['create'](M[aD(0x152)]);return n['__wbg_ptr']=f,tt['register'](n,n['__wbg_ptr'],n),n;}[aj(0x18e)](){const aE=aj,e=this['__wbg_ptr'];return this[aE(0x150)]=0x0,tt['unregister'](this),e;}['free'](){const aF=aj,e=this['__destroy_into_raw']();o[aF(0x1bb)](e,0x0);}get['page_count'](){const aG=aj;if(this[aG(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aG(0x17b)](this['__wbg_ptr'])>>>0x0;}[aj(0x1cd)](f){const aH=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aH(0x150)]),c(f);const n=o['pagesinfo_page_by_number'](this['__wbg_ptr'],f);return n===0x0?void 0x0:F['__wrap'](n);}[aj(0x165)](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page'](this['__wbg_ptr'],f);return F['__wrap'](n);}['width'](){const aI=aj;if(this[aI(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_width'](this[aI(0x150)]);}['height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_height'](this['__wbg_ptr']);}}Symbol[aj(0x1ce)]&&(M[aj(0x152)][Symbol['dispose']]=M['prototype'][aj(0x193)]);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const aJ=aj,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,et[aJ(0x168)](this),e;}['free'](){const aK=aj,e=this[aK(0x18e)]();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const e=o['renderpageimageoptions_new']();return this['__wbg_ptr']=e>>>0x0,et['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['renderpageimageoptions_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aL=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_pixel_per_pt'](this[aL(0x150)],l(e)?0x100000001:Math[aL(0x1c4)](e));}get['background_color'](){const aM=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()[aM(0x182)](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[aj(0x179)](f){const aN=aj;if(this['__wbg_ptr']==0x0)throw new Error(aN(0x170));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aN(0x1b7)],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_background_color'](this[aN(0x150)],n,u);}get[aj(0x183)](){const aO=aj;if(this['__wbg_ptr']==0x0)throw new Error(aO(0x170));return c(this['__wbg_ptr']),o['renderpageimageoptions_page_off'](this['__wbg_ptr'])>>>0x0;}set['page_off'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aP=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_cache_key'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[aP(0x159)](),o[aP(0x190)](f,n*0x1,0x1)),v;}finally{o[aP(0x1a3)](0x10);}}set['cache_key'](f){const aQ=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aQ(0x150)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[aQ(0x19e)](this['__wbg_ptr'],n,u);}get['data_selection'](){const aR=aj;if(this['__wbg_ptr']==0x0)throw new Error(aR(0x170));c(this['__wbg_ptr']);const e=o[aR(0x15a)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){const aS=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_data_selection'](this[aS(0x150)],l(e)?0x100000001:e>>>0x0);}}Symbol['dispose']&&(z['prototype'][Symbol['dispose']]=z['prototype']['free']);class k{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aT=aj;f=f>>>0x0;const n=Object['create'](k['prototype']);return n['__wbg_ptr']=f,nt[aT(0x1b4)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aU=aj,e=this['__wbg_ptr'];return this[aU(0x150)]=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}['render_in_window'](n,v,S,a0){const aV=aj;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersession_render_in_window'](a5,this[aV(0x150)],n,v,S,a0);var a3=g()[aV(0x182)](a5+0x4*0x0,!0x0),a4=g()['getInt32'](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aW=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this[aW(0x150)],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const aX=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(aX(0x170));const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o[aX(0x1d3)](u,this['__wbg_ptr']);var f=g()[aX(0x182)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[aj(0x179)](f){const aY=aj;if(this['__wbg_ptr']==0x0)throw new Error(aY(0x170));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aY(0x1b7)],o[aY(0x157)]),u=h;o['rendersession_set_background_color'](this['__wbg_ptr'],n,u);}get['pages_info'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pages_info'](this['__wbg_ptr']);return M['__wrap'](e);}get['doc_width'](){const aZ=aj;if(this['__wbg_ptr']==0x0)throw new Error(aZ(0x170));return c(this['__wbg_ptr']),o['rendersession_doc_width'](this['__wbg_ptr']);}get['doc_height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](n){const b0=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(b0(0x170));const a2=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a3=lt(n,o['__wbindgen_export']),a4=h;o['rendersession_source_span'](a2,this['__wbg_ptr'],a3,a4);var v=g()['getInt32'](a2+0x4*0x0,!0x0),S=g()['getInt32'](a2+0x4*0x1,!0x0),a0=g()['getInt32'](a2+0x4*0x2,!0x0),a1=g()[b0(0x182)](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)[b0(0x159)](),o['__wbindgen_export4'](v,S*0x1,0x1)),a5;}finally{o[b0(0x1a3)](0x10);}}}function a(){const c2=['byteLength','rendersession_pixel_per_pt','getInt32','page_off','__wbg_new_no_args_cb138f77cf6151ee','length','__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5','pixel_per_pt','__wrap','rendersessionoptions_set_format','__wbg_new_df1173567d5ff028','__wbg_width_f13d2e86324fc226','fill','__wbg_set_globalCompositeOperation_7e16c72877ba5f86','__destroy_into_raw','294308ZzYkfi','__wbindgen_export4','__wbg_typstrenderer_free','drawImage','free','log','read','onload','__wasm_bindgen_func_elem_1035','typstrenderer_manipulate_data','subarray','expected\x20a\x20string\x20argument,\x20found\x20','__wbg_drawImage_e2012c2a2d434ee2','__wasm_bindgen_func_elem_1034','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','renderpageimageoptions_set_cache_key','3794301DtBsYh','typstrenderer_create_worker','measureText','clip','__wbindgen_add_to_stack_pointer','3394500lErkrC','__wbg_set_lineCap_74b37c7ff968f854','utf-8','decode','transferToImageBitmap','function','set','createsessionoptions_set_artifact_content','buffer','typst_ts_renderer_bg.wasm','type','__wbg_save_131c8dc648f702b6','format','__wbg_set_7df433eea03a5c14','__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc','call','register','encodeInto','__wbg___wbindgen_throw_dd24417ed36fc46e','__wbindgen_export','__wbg_new_9468dd6e5df427f6','__wbg_get_af9dab7e9603ea93','__wbg_renderpageimageoptions_free','__wbg_pagesinfo_free','__wbg_call_abb4ff46ce38be40','exports','render_page_to_canvas','instantiate','width','wbg','__wbg_content_ad90fa08b8c037c5','typstrendererbuilder_add_raw_font','fround','typstrenderer_svg_data','6fKzGxR','__wbg_set_lineDashOffset_f032b4e2a273a2f5','__wbg_nextElementSibling_c745ee48314963c0','create','typstrendererbuilder_build','typstrenderer_load_glyph_pack','renderer_build_info','page_by_number','dispose','2995952EERsia','__wbg_set_lineDashOffset_85f21a63ddf34d2c','__wbg_then_4f95312d68691235','__wbg_set_lineJoin_196c6ac02fd494c3','rendersession_background_color','globalCompositeOperation','stack','__wbg_firstElementChild_54d515b19cee5ae7','setLineDash','__wbg_ptr','string','prototype','nextElementSibling','__wbg_setLineDash_7e3aad159aa2710c','__wbg_pageinfo_free','__wbg_globalCompositeOperation_d52c6e6666e4be00','__wbindgen_export2','fillRect','slice','renderpageimageoptions_data_selection','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','__wbindgen_export3','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','12XYOLeY','__wbg_set_onload_5e2862e3453854de','name','lineCap','clearRect','__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec','setInt32','page','__wbg_set_onerror_e7e40c62a55a0770','message','unregister','dtor','return\x20import(m)','1474272oYaCVa','height','Function','getContext','__wbg_instanceof_Promise_eca6c43a2610558d','Attempt\x20to\x20use\x20a\x20moved\x20value','__wbg_width_c3f96f2ca7ab208d','versions','680583gRKMAn','document','removeProperty','__wbg_typstworker_free','relayout','__wbg_queueMicrotask_fca69f5bfad613a5','background_color','__wbg_new_2884ddbcda091bc1','pagesinfo_page_count','20436219iQdXbd','pageinfo_height_pt','_wbg_cb_unref','charCodeAt'];a=function(){return c2;};return a();}Symbol['dispose']&&(k['prototype'][Symbol['dispose']]=k[aj(0x152)][aj(0x193)]);class it{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersessionoptions_free'](e,0x0);}constructor(){const e=o['rendersessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,rt['register'](this,this['__wbg_ptr'],this),this;}get[aj(0x187)](){const b1=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o[b1(0x181)](this[b1(0x150)]);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const b2=aj;if(this['__wbg_ptr']==0x0)throw new Error(b2(0x170));c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get[aj(0x179)](){const b3=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(b3(0x170));const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this[b3(0x150)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){const b4=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[b4(0x150)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this['__wbg_ptr'],n,u);}get[aj(0x1b0)](){const b5=aj;try{if(this[b5(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[b5(0x1a3)](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()[b5(0x182)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o[b5(0x190)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){const b6=aj;if(this[b6(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[b6(0x189)](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it[aj(0x152)][Symbol['dispose']]=it['prototype']['free']);class D{static[aj(0x188)](f){const b7=aj;f=f>>>0x0;const n=Object['create'](D['prototype']);return n['__wbg_ptr']=f,N[b7(0x1b4)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),e;}[aj(0x193)](){const e=this['__destroy_into_raw']();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const b8=aj,e=o['typstrenderer_new']();return this['__wbg_ptr']=e>>>0x0,N[b8(0x1b4)](this,this[b8(0x150)],this),this;}['create_session'](f){const b9=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const S=o[b9(0x1a3)](-0x10);c(this['__wbg_ptr']);let a0=0x0;if(!l(f)){if(A(f,J),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a0=f['__destroy_into_raw']();}o['typstrenderer_create_session'](S,this['__wbg_ptr'],a0);var n=g()[b9(0x182)](S+0x4*0x0,!0x0),v=g()[b9(0x182)](S+0x4*0x1,!0x0),y=g()[b9(0x182)](S+0x4*0x2,!0x0);if(y)throw m(v);return k[b9(0x188)](n);}finally{o[b9(0x1a3)](0x10);}}['reset'](f){const ba=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(ba(0x170));const v=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this[ba(0x150)]),A(f,k),f['__wbg_ptr']===0x0)throw new Error(ba(0x170));o['typstrenderer_reset'](v,this['__wbg_ptr'],f['__wbg_ptr']);var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['manipulate_data'](n,S,a0){const bb=aj;try{if(this[bb(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a4=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a5=h,a6=$(a0,o['__wbindgen_export']),a7=h;o[bb(0x198)](a3,this['__wbg_ptr'],n[bb(0x150)],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const bc=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bc(0x150)]);const a4=$(n,o['__wbindgen_export']),a5=h,a6=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a7=h;o['typstrenderer_session_from_artifact'](a3,this['__wbg_ptr'],a4,a5,a6,a7);var a0=g()[bc(0x182)](a3+0x4*0x0,!0x0),a1=g()[bc(0x182)](a3+0x4*0x1,!0x0),a2=g()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k['__wrap'](a0);}finally{o[bc(0x1a3)](0x10);}}['load_glyph_pack'](f){const bd=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bd(0x150)]),o[bd(0x1cb)](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const be=aj;let a3,a4;try{if(this['__wbg_ptr']==0x0)throw new Error(be(0x170));const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg_diff'](a7,this['__wbg_ptr'],n['__wbg_ptr'],S,a0,a1,a2);var a5=g()['getInt32'](a7+0x4*0x0,!0x0),a6=g()['getInt32'](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const bf=aj;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a9=o[bf(0x1a3)](-0x10);if(c(this['__wbg_ptr']),A(n,k),n[bf(0x150)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o[bf(0x1c5)](a9,this[bf(0x150)],n['__wbg_ptr'],l(a0)?0x100000001:a0>>>0x0);var a3=g()[bf(0x182)](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()[bf(0x182)](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}['get_customs'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this['__wbg_ptr'],f['__wbg_ptr']);return m(n);}['render_svg'](f,n){const bg=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a0=o[bg(0x1a3)](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg'](a0,this['__wbg_ptr'],f['__wbg_ptr'],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()['getInt32'](a0+0x4*0x1,!0x0),S=g()['getInt32'](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](f){const bh=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o[bh(0x1a0)](this['__wbg_ptr'],w(f));return m(n);}['create_worker_bridge'](){const bi=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(bi(0x170));const v=this['__destroy_into_raw'](),y=o['__wbindgen_add_to_stack_pointer'](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()['getInt32'](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()[bi(0x182)](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[aj(0x1be)](f,n,u){const bj=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(bj(0x170));let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');v=u['__destroy_into_raw']();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f[bj(0x150)],w(n),v);return m(y);}['mount_dom'](f,n){const bk=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this[bk(0x150)],f[bk(0x150)],w(n));return m(u);}}Symbol['dispose']&&(D['prototype'][Symbol[aj(0x1ce)]]=D[aj(0x152)]['free']);class st{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,_t['unregister'](this),e;}['free'](){const bl=aj,e=this[bl(0x18e)]();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bm=aj;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o['typstrendererbuilder_new'](v);var f=g()['getInt32'](v+0x4*0x0,!0x0),n=g()['getInt32'](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this['__wbg_ptr']=f>>>0x0,_t['register'](this,this[bm(0x150)],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const bn=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const f=this[bn(0x18e)]();c(f);const n=o[bn(0x1ca)](f);return m(n);}['add_glyph_pack'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this['__wbg_ptr'],w(f));return m(n);}['add_raw_font'](f){const bo=aj;if(this[bo(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o[bo(0x1c3)](this['__wbg_ptr'],w(f));return m(n);}['add_lazy_font'](f,n){const bp=aj;if(this[bp(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const u=o['typstrendererbuilder_add_lazy_font'](this[bp(0x150)],w(f),w(n));return m(u);}}Symbol['dispose']&&(st['prototype'][Symbol['dispose']]=st[aj(0x152)]['free']);class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,kt['unregister'](this),e;}['free'](){const bq=aj,e=this['__destroy_into_raw']();o[bq(0x176)](e,0x0);}['manipulate_data'](n,v){const br=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a1=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[br(0x150)]);const a2=I(n,o['__wbindgen_export'],o[br(0x157)]),a3=h;o['typstworker_manipulate_data'](a1,this['__wbg_ptr'],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()[br(0x182)](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o[br(0x1a3)](0x10);}}['get_pages_info'](){const bs=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[bs(0x150)]);const e=o['typstworker_get_pages_info'](this[bs(0x150)]);return m(e);}['render_canvas'](n,a0,a1){const bu=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a6=$(n,o['__wbindgen_export']),a7=h,a8=X(a0,o['__wbindgen_export']),a9=h,aa=X(a1,o['__wbindgen_export']),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()['getInt32'](a5+0x4*0x1,!0x0),a4=g()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o[bu(0x1a3)](0x10);}}}Symbol['dispose']&&(at['prototype'][Symbol[aj(0x1ce)]]=at[aj(0x152)]['free']);class B{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[aj(0x188)](f){const bv=aj;f=f>>>0x0;const n=Object['create'](B[bv(0x152)]);return n['__wbg_ptr']=f,ot['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ot['unregister'](this),e;}[aj(0x193)](){const e=this['__destroy_into_raw']();o['__wbg_workerbridge_free'](e,0x0);}}Symbol[aj(0x1ce)]&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);function Ft(){const bw=aj,e=o[bw(0x1cc)]();return m(e);}const At=new Set(['basic','cors','default']);async function xt(f,u){const bx=aj;if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']==bx(0x1a9))try{return await WebAssembly['instantiateStreaming'](f,u);}catch(y){if(f['ok']&&At['has'](f['type'])&&f['headers']['get']('Content-Type')!=='application/wasm')console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly[bx(0x1bf)](v,u);}else{const S=await WebAssembly[bx(0x1bf)](f,u);return S instanceof WebAssembly['Instance']?{'instance':S,'module':f}:S;}}function ut(){const bA=aj,e={};return e['wbg']={},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(f,u){const by=d,v=G(i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()[by(0x164)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const bz=d,r=typeof i(f)==bz(0x1a9);return E(r),r;},e[bA(0x1c1)]['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg'][bA(0x15d)]=function(f,u){const v=i(f)===i(u);return E(v),v;},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(f,v){const y=i(v),S=typeof y=='string'?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a1=h;g()['setInt32'](f+0x4*0x1,a1,!0x0),g()['setInt32'](f+0x4*0x0,a0,!0x0);},e['wbg'][bA(0x1b6)]=function(f,r){throw new Error(p(f,r));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e['wbg']['__wbg_appendChild_7465eba84213c75f']=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return b(function(f,v,y,S,a0){const a1=i(f)['call'](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e['wbg'][bA(0x1bc)]=function(){return b(function(f,u){const bB=d,v=i(f)[bB(0x1b3)](i(u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_call_c8baa5c5e72d274e']=function(){return b(function(f,u,v,y){const bC=d,S=i(f)[bC(0x1b3)](i(u),i(v),i(y));return w(S);},arguments);},e['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return s(function(f,u,v,y,S){const bD=d;i(f)[bD(0x162)](u,v,y,S);},arguments);},e['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const r=i(f)['clientWidth'];return c(r),r;},arguments);},e['wbg']['__wbg_clip_35de02bb25d222d9']=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){const bE=d;i(f)[bE(0x1a2)](i(r));},arguments);},e['wbg']['__wbg_cloneNode_c9c45b24b171a776']=function(){return b(function(f){const r=i(f)['cloneNode']();return w(r);},arguments);},e['wbg'][bA(0x1c2)]=function(){return s(function(f){const r=i(f)['content'];return w(r);},arguments);},e['wbg']['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e[bA(0x1c1)]['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const bF=d,v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bF(0x164)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_document_5b745e82ba551ca5']=function(){return s(function(f){const bG=d,r=i(f)[bG(0x174)];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_6949f7679b2a9758']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[bA(0x1c1)][bA(0x19b)]=function(){return b(function(f,v,y,S,a0,a1){const bH=d;i(f)[bH(0x192)](i(v),y,S,a0,a1);},arguments);},e[bA(0x1c1)]['__wbg_error_7534b8e9a36f1ab4']=function(){return s(function(f,u){let v,y;try{v=f,y=u,console['error'](p(f,u));}finally{o['__wbindgen_export4'](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){const bI=d;i(f)[bI(0x158)](u,v,y,S);},arguments);},e[bA(0x1c1)]['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg']['__wbg_fill_f1043be5324533f3']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg'][bA(0x14e)]=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_getAttribute_80900eec94cb3636']=function(){return s(function(v,y,S,a0){const a1=i(y)['getAttribute'](p(S,a0));var a2=l(a1)?0x0:I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_getContext_01f42b234e833f0a']=function(){return b(function(f,u,v){const bJ=d,y=i(f)[bJ(0x16e)](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg'][bA(0x1b9)]=function(){return b(function(f,u){const v=Reflect['get'](i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bK=d,v=i(u)['globalCompositeOperation'],y=I(v,o[bK(0x1b7)],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bK(0x164)](f+0x4*0x0,y,!0x0);},arguments);},e[bA(0x1c1)][bA(0x156)]=function(){return b(function(f,u){const bL=d,v=i(u)[bL(0x1d4)],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_height_3a0b31e52a5b7f17']=function(){return s(function(f){const bM=d,r=i(f)[bM(0x16c)];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x1b2)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x186)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x16f)]=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const r=i(f)['lastElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_length_22ac23eaec9d8053']=function(){return s(function(f){const r=i(f)['length'];return c(r),r;},arguments);},e['wbg']['__wbg_log_1d990106d99dacb7']=function(){return s(function(f){const bN=d;console[bN(0x194)](i(f));},arguments);},e['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const bO=d,y=i(f)[bO(0x1a1)](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg'][bA(0x17a)]=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e[bA(0x1c1)][bA(0x1b8)]=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e['wbg'][bA(0x18a)]=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e['wbg'][bA(0x184)]=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e['wbg']['__wbg_new_with_path_string_3aea637e78135c46']=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e[bA(0x1c1)][bA(0x163)]=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e['wbg'][bA(0x1c8)]=function(){return s(function(f){const bP=d,r=i(f)[bP(0x153)];return l(r)?0x0:w(r);},arguments);},e[bA(0x1c1)]['__wbg_push_7d9be8f38fc13975']=function(){return s(function(f,u){const v=i(f)['push'](i(u));return c(v),v;},arguments);},e['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_putImageData_e96eabf0e9610ed3']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return s(function(f){const r=i(f)['queueMicrotask'];return w(r);},arguments);},e['wbg'][bA(0x178)]=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bQ=d,a1=i(y)[bQ(0x175)](p(S,a0)),a2=I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){i(f)['remove']();},arguments);},e[bA(0x1c1)]['__wbg_renderpageimageoptions_unwrap']=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e[bA(0x1c1)]['__wbg_replaceWith_923cfb1b2f584408']=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return s(function(f){const r=Promise['resolve'](i(f));return w(r);},arguments);},e['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg']['__wbg_restore_6486cb1a7aa3af7b']=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg']['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg'][bA(0x1af)]=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e['wbg'][bA(0x154)]=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){const bR=d;i(f)[bR(0x14f)](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_set_169e13b608078b7b']=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const y=Reflect['set'](i(f),i(u),i(v));return E(y),y;},arguments);},e['wbg'][bA(0x1b1)]=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e['wbg']['__wbg_set_fillStyle_b26e462a87b14315']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x18d)]=function(){return b(function(f,u,v){const bS=d;i(f)[bS(0x1d4)]=p(u,v);},arguments);},e['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x1a5)]=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return s(function(f,u,v){const bT=d;i(f)[bT(0x161)]=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x1d0)]=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg'][bA(0x1c7)]=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg'][bA(0x1d2)]=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg'][bA(0x166)]=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e['wbg'][bA(0x15f)]=function(){return s(function(f,r){const bU=d;i(f)[bU(0x196)]=i(r);},arguments);},e[bA(0x1c1)]['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return s(function(f,u,v){const bV=d;i(f)[bV(0x1ae)]=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e[bA(0x1c1)]['__wbg_stack_0ed75d68575b0f3c']=function(){return s(function(f,u){const v=i(u)['stack'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg'][bA(0x19d)]=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e[bA(0x1c1)]['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_stroke_7cfe6d60a6c48303']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e[bA(0x1c1)]['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const y=i(f)['then'](i(u),i(v));return w(y);},arguments);},e['wbg'][bA(0x1d1)]=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return b(function(f){const bW=d,r=i(f)[bW(0x1a8)]();return w(r);},arguments);},e['wbg']['__wbg_typstrenderer_new']=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e[bA(0x1c1)]['__wbg_warn_6e567d0d926ff881']=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg'][bA(0x171)]=function(){return s(function(f){const bX=d;return i(f)[bX(0x1c0)];},arguments);},e['wbg'][bA(0x18b)]=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e[bA(0x1c1)]['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_b2e692da0ea8478a']=function(){return s(function(f,u){const v=dt(f,u,o['__wasm_bindgen_func_elem_1077'],yt);return w(v);},arguments);},e[bA(0x1c1)]['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],Et);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg']['__wbindgen_object_drop_ref']=function(f){m(f);},e;}function ct(e,f){const bY=aj;return o=e[bY(0x1bd)],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const r=ut();f instanceof WebAssembly['Module']||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}function d(b,c){b=b-0x14d;const e=a();let f=e[b];return f;}async function St(f){const bZ=aj;if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object[bZ(0x152)]?{module_or_path:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof f>'u'&&(f=gt(bZ(0x1ad),import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){const c0=aj;throw new Error(c0(0x15b)+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const c1=aj,v=new Function('m',c1(0x16a)),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)[c1(0x1ac)];};const Ct=typeof process<'u'&&process['versions']!=null&&process[aj(0x172)]['node']!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
1
+ const af=d;(function(e,f){const ac=d,n=e();while(!![]){try{const r=parseInt(ac(0x99))/0x1+-parseInt(ac(0xa4))/0x2*(parseInt(ac(0xb8))/0x3)+-parseInt(ac(0xe0))/0x4*(-parseInt(ac(0xe7))/0x5)+parseInt(ac(0xd3))/0x6*(parseInt(ac(0x76))/0x7)+parseInt(ac(0x7b))/0x8+-parseInt(ac(0xb6))/0x9*(-parseInt(ac(0xa9))/0xa)+parseInt(ac(0x86))/0xb*(-parseInt(ac(0xc9))/0xc);if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0x80428));let o;function w(e){const ad=d;O===x['length']&&x['push'](x[ad(0x84)]+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){const ae=d;if(!(e instanceof f))throw new Error(ae(0x9e)+f['name']);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e[af(0xe8)](e['a'],e['b']));function G(f){const ag=af,v=typeof f;if(v=='number'||v=='boolean'||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?'Symbol':'Symbol('+a0+')';}if(v=='function'){const a1=f['name'];return typeof a1=='string'&&a1[ag(0x84)]>0x0?'Function('+a1+')':ag(0x95);}if(Array['isArray'](f)){const a2=f[ag(0x84)];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString['call'](f));let S;if(y&&y[ag(0x84)]>0x1)S=y[0x1];else return toString['call'](f);if(S=='Object')try{return'Object('+JSON['stringify'](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f['message']+'\x0a'+f['stack']:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function a(){const bQ=['__wasm_bindgen_func_elem_1022','__wbg_log_1d990106d99dacb7','strokeStyle','__wbg_stroke_7cfe6d60a6c48303','__wbg_ptr','register','__destroy_into_raw','rendersession_doc_width','36gTKUxU','buffer','setInt32','encodeInto','__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037','__wbg_set_lineDashOffset_85f21a63ddf34d2c','__wbg_revokeObjectURL_88db3468842ff09e','pagesinfo_height','call','__wasm_bindgen_func_elem_1035','1538076hArait','create','__wbg_renderpageimageoptions_free','__wbg___wbindgen_debug_string_adfb662ae34724b6','__wbindgen_object_drop_ref','__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5','_wbg_cb_unref','set','cnt','renderpageimageoptions_set_pixel_per_pt','relayout','background_color','__wbindgen_add_to_stack_pointer','88DgiTZZ','putImageData','__wbindgen_export','free','__wbg_instanceof_HtmlElement_20a3acb594113d73','__wbg_set_strokeStyle_697a576d2d3fbeaa','memory','61235shtOBb','dtor','__wbg_warn_6e567d0d926ff881','__wbg_new_25f239778d6112b9','decode','14iGHbmC','fill','__wbindgen_export4','__wbg_set_lineJoin_a136f09dd803e0cc','__wbg_length_22ac23eaec9d8053','8204256AlfmMi','create_worker','need_repaint','getInt32','headers','__wbg_set_7df433eea03a5c14','cloneNode','typstworker_manipulate_data','get_customs','length','renderpageimageoptions_set_cache_key','5154589LPISdf','onload','__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f','__wbg_typstrenderer_new','transferToImageBitmap','renderpageimageoptions_pixel_per_pt','__wbg_cloneNode_c9c45b24b171a776','pagesinfo_width','__wbg_save_131c8dc648f702b6','__wbg_call_abb4ff46ce38be40','__wbg_stroke_41b0736a6a0b61aa','prototype','repaint','__wbg_workerbridge_free','render_in_window','Function','get','rendersessionoptions_new','__wbg_drawImage_de5946f9cc23c2b9','367581qIcLeL','renderpageimageoptions_data_selection','resolve','unregister','__wrap','expected\x20instance\x20of\x20','__wbg_getAttribute_80900eec94cb3636','dispose','encode','__wbg_renderpageimageoptions_unwrap','getPrototypeOf','4wuOZVi','\x0a\x0aStack:\x0a','fillRect','content','__wbg_new_with_path_string_3aea637e78135c46','590680PiMHuz','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','__wbg_rendersessionoptions_free','log','string','__wbg_error_7534b8e9a36f1ab4','__wbg_call_3020136f7a2d6e44','save','Attempt\x20to\x20use\x20a\x20moved\x20value','<failed\x20to\x20stringify\x20thrown\x20value>','__wbg_fill_f1043be5324533f3','application/wasm','using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead','117BMbsmw','doc_width','1517961FgQSiI','rendersession_source_span','return\x20import(m)','wbg','__wbg_width_f13d2e86324fc226','type','createsessionoptions_set_format','versions','__wbg_instanceof_Promise_eca6c43a2610558d'];a=function(){return bQ;};return a();}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const ah=af;return(R===null||R['buffer']['detached']===!0x0||R['buffer']['detached']===void 0x0&&R[ah(0xca)]!==o[ah(0xe6)]['buffer'])&&(R=new DataView(o['memory'][ah(0xca)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){return(T===null||T['byteLength']===0x0)&&(T=new Uint32Array(o['memory']['buffer'])),T;}let W=null;function C(){return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o['memory']['buffer'])),W;}function i(e){return x[e];}function b(f,r){try{return f['apply'](this,r);}catch(u){o['__wbindgen_export3'](w(u));}}let x=new Array(0x80)[af(0x77)](void 0x0);x['push'](void 0x0,null,!0x0,!0x1);let O=x['length'];function l(e){return e==null;}function s(f,u){try{return f['apply'](this,u);}catch(v){let y=(function(){const ai=d;try{return v instanceof Error?v['message']+ai(0xa5)+v['stack']:v['toString']();}catch{return ai(0xb2);}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function V(f,u,v,y){const aj=af,S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0['_wbg_cb_unref']();}};return a0[aj(0xd9)]=()=>{const ak=aj;--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P[ak(0x9c)](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const al=af,S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0[al(0xd9)]=()=>{const am=al;--S[am(0xdb)]===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P['register'](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const an=af,u=r(f['length']*0x1,0x1)>>>0x0;return C()[an(0xda)](f,u/0x1),h=f['length'],u;}function X(f,u){const v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f['length'];S++)y['setUint32'](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const ao=af;if(typeof v!='string')throw new Error('expected\x20a\x20string\x20argument,\x20found\x20'+typeof v);if(S===void 0x0){const a4=j[ao(0xa1)](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4['length'])['set'](a4),h=a4['length'],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v['charCodeAt'](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()['subarray'](a1+a3,a1+a0),a8=j[ao(0xcc)](v,a7);if(a8['read']!==v['length'])throw new Error('failed\x20to\x20pass\x20whole\x20string');a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}let U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});U['decode']();const mt=0x7ff00000;let H=0x0;function ht(e,f){const ap=af;return H+=f,H>=mt&&(U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),U[ap(0x75)](),H=f),U['decode'](C()['subarray'](e,e+f));}const j=new TextEncoder();'encodeInto'in j||(j[af(0xcc)]=function(f,r){const u=j['encode'](f);return r['set'](u),{'read':f['length'],'written':u['length']};});let h=0x0;function yt(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1056'](f,r,w(u));}function vt(e,f){const aq=af;c(e),c(f),o[aq(0xd2)](e,f);}function Et(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1034'](f,r,w(u));}function It(f,u,v,y){c(f),c(u),o['__wasm_bindgen_func_elem_3555'](f,u,w(v),w(y));}const Y=['nonzero','evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_createsessionoptions_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pageinfo_free'](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[af(0xd5)](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersession_free'](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersessionoptions_free'](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrenderer_free'](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrendererbuilder_free'](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstworker_free'](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[af(0x93)](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const ar=af,e=o['createsessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,K[ar(0xc6)](this,this['__wbg_ptr'],this),this;}set['format'](f){const as=af;if(this[as(0xc5)]==0x0)throw new Error(as(0xb1));c(this['__wbg_ptr']);const n=I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[as(0xbe)](this['__wbg_ptr'],n,u);}set['artifact_content'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=$(f,o['__wbindgen_export']),u=h;o['createsessionoptions_set_artifact_content'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(J['prototype'][Symbol[af(0xa0)]]=J['prototype'][af(0xe3)]);class L{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){f=f>>>0x0;const n=Object['create'](L['prototype']);return n['__wbg_ptr']=f,Q['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_incrdomdocclient_free'](e,0x0);}['bind_functions'](e){const au=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[au(0xc5)]),o['incrdomdocclient_bind_functions'](this['__wbg_ptr'],w(e));}[af(0xdd)](f,n,u,v){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const y=o['incrdomdocclient_relayout'](this['__wbg_ptr'],f,n,u,v);return m(y);}[af(0x7d)](n,S,a0,a1,a2,a3){const av=af;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_need_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()[av(0x7e)](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[af(0x92)](n,S,a0,a1,a2,a3){const aw=af;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o[aw(0xdf)](0x10);}}}Symbol['dispose']&&(L['prototype'][Symbol[af(0xa0)]]=L['prototype'][af(0xe3)]);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[af(0x9d)](f){const ax=af;f=f>>>0x0;const n=Object[ax(0xd4)](F['prototype']);return n['__wbg_ptr']=f,Z['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}[af(0xe3)](){const e=this['__destroy_into_raw']();o['__wbg_pageinfo_free'](e,0x0);}get['page_off'](){const ay=af;if(this[ay(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){const az=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[az(0xc5)]),o['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){const aA=af;if(this[aA(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_height_pt'](this['__wbg_ptr']);}}Symbol['dispose']&&(F['prototype'][Symbol['dispose']]=F['prototype']['free']);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[af(0x9d)](f){const aB=af;f=f>>>0x0;const n=Object['create'](M[aB(0x91)]);return n['__wbg_ptr']=f,tt['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aC=af,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,tt[aC(0x9c)](this),e;}[af(0xe3)](){const e=this['__destroy_into_raw']();o['__wbg_pagesinfo_free'](e,0x0);}get['page_count'](){const aD=af;if(this['__wbg_ptr']==0x0)throw new Error(aD(0xb1));return c(this[aD(0xc5)]),o['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page_by_number'](this['__wbg_ptr'],f);return n===0x0?void 0x0:F['__wrap'](n);}['page'](f){const aE=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page'](this[aE(0xc5)],f);return F['__wrap'](n);}['width'](){const aF=af;if(this[aF(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aF(0x8d)](this['__wbg_ptr']);}['height'](){const aG=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aG(0xd0)](this['__wbg_ptr']);}}Symbol['dispose']&&(M['prototype'][Symbol['dispose']]=M['prototype']['free']);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,et['unregister'](this),e;}[af(0xe3)](){const e=this['__destroy_into_raw']();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const aH=af,e=o['renderpageimageoptions_new']();return this['__wbg_ptr']=e>>>0x0,et[aH(0xc6)](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){const aI=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o[aI(0x8b)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aJ=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o[aJ(0xdc)](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const aK=af;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[aK(0xdf)](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_background_color'](u,this[aK(0xc5)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[af(0xde)](f){const aL=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aL(0xe2)],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_background_color'](this[aL(0xc5)],n,u);}get['page_off'](){const aM=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[aM(0xc5)]),o['renderpageimageoptions_page_off'](this['__wbg_ptr'])>>>0x0;}set['page_off'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aN=af;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[aN(0xdf)](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_cache_key'](u,this['__wbg_ptr']);var f=g()[aN(0x7e)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['cache_key'](f){const aO=af;if(this[aO(0xc5)]==0x0)throw new Error(aO(0xb1));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aO(0xe2)],o['__wbindgen_export2']),u=h;o[aO(0x85)](this['__wbg_ptr'],n,u);}get['data_selection'](){const aP=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aP(0xc5)]);const e=o[aP(0x9a)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_data_selection'](this['__wbg_ptr'],l(e)?0x100000001:e>>>0x0);}}Symbol[af(0xa0)]&&(z['prototype'][Symbol['dispose']]=z['prototype']['free']);class k{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){f=f>>>0x0;const n=Object['create'](k['prototype']);return n['__wbg_ptr']=f,nt['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}[af(0x94)](n,v,S,a0){const aQ=af;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o[aQ(0xdf)](-0x10);c(this['__wbg_ptr']),o['rendersession_render_in_window'](a5,this['__wbg_ptr'],n,v,S,a0);var a3=g()['getInt32'](a5+0x4*0x0,!0x0),a4=g()['getInt32'](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}get['pixel_per_pt'](){const aR=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aR(0xc5)]);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aS=af;if(this[aS(0xc5)]==0x0)throw new Error(aS(0xb1));c(this[aS(0xc5)]),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersession_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersession_set_background_color'](this['__wbg_ptr'],n,u);}get['pages_info'](){const aT=af;if(this[aT(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pages_info'](this[aT(0xc5)]);return M[aT(0x9d)](e);}get[af(0xb7)](){const aU=af;if(this[aU(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aU(0xc8)](this['__wbg_ptr']);}get['doc_height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](n){const aV=af;try{if(this[aV(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a2=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a3=lt(n,o['__wbindgen_export']),a4=h;o[aV(0xb9)](a2,this['__wbg_ptr'],a3,a4);var v=g()['getInt32'](a2+0x4*0x0,!0x0),S=g()[aV(0x7e)](a2+0x4*0x1,!0x0),a0=g()[aV(0x7e)](a2+0x4*0x2,!0x0),a1=g()['getInt32'](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)['slice'](),o[aV(0x78)](v,S*0x1,0x1)),a5;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(k['prototype'][Symbol['dispose']]=k[af(0x91)]['free']);class it{['__destroy_into_raw'](){const aW=af,e=this[aW(0xc5)];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const aX=af,e=this[aX(0xc7)]();o[aX(0xab)](e,0x0);}constructor(){const aY=af,e=o[aY(0x97)]();return this['__wbg_ptr']=e>>>0x0,rt['register'](this,this[aY(0xc5)],this),this;}get['pixel_per_pt'](){const aZ=af;if(this['__wbg_ptr']==0x0)throw new Error(aZ(0xb1));c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const b0=af;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()[b0(0x7e)](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this['__wbg_ptr'],n,u);}get['format'](){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_format'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it[af(0x91)][Symbol['dispose']]=it['prototype']['free']);class D{static['__wrap'](f){const b1=af;f=f>>>0x0;const n=Object['create'](D['prototype']);return n['__wbg_ptr']=f,N[b1(0xc6)](n,n[b1(0xc5)],n),n;}[af(0xc7)](){const b2=af,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N[b2(0x9c)](this),e;}[af(0xe3)](){const b3=af,e=this[b3(0xc7)]();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const b4=af,e=o['typstrenderer_new']();return this[b4(0xc5)]=e>>>0x0,N['register'](this,this[b4(0xc5)],this),this;}['create_session'](f){const b5=af;try{if(this['__wbg_ptr']==0x0)throw new Error(b5(0xb1));const S=o[b5(0xdf)](-0x10);c(this['__wbg_ptr']);let a0=0x0;if(!l(f)){if(A(f,J),f[b5(0xc5)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a0=f[b5(0xc7)]();}o['typstrenderer_create_session'](S,this['__wbg_ptr'],a0);var n=g()['getInt32'](S+0x4*0x0,!0x0),v=g()['getInt32'](S+0x4*0x1,!0x0),y=g()['getInt32'](S+0x4*0x2,!0x0);if(y)throw m(v);return k[b5(0x9d)](n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](f){const b6=af;try{if(this['__wbg_ptr']==0x0)throw new Error(b6(0xb1));const v=o[b6(0xdf)](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_reset'](v,this['__wbg_ptr'],f[b6(0xc5)]);var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()[b6(0x7e)](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o[b6(0xdf)](0x10);}}['manipulate_data'](n,S,a0){const b7=af;try{if(this['__wbg_ptr']==0x0)throw new Error(b7(0xb1));const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this[b7(0xc5)]),A(n,k),n['__wbg_ptr']===0x0)throw new Error(b7(0xb1));const a4=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a5=h,a6=$(a0,o[b7(0xe2)]),a7=h;o['typstrenderer_manipulate_data'](a3,this['__wbg_ptr'],n['__wbg_ptr'],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const b8=af;try{if(this[b8(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a4=$(n,o['__wbindgen_export']),a5=h,a6=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a7=h;o['typstrenderer_session_from_artifact'](a3,this['__wbg_ptr'],a4,a5,a6,a7);var a0=g()[b8(0x7e)](a3+0x4*0x0,!0x0),a1=g()['getInt32'](a3+0x4*0x1,!0x0),a2=g()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k['__wrap'](a0);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['load_glyph_pack'](f){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['typstrenderer_load_glyph_pack'](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const b9=af;let a3,a4;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg_diff'](a7,this['__wbg_ptr'],n['__wbg_ptr'],S,a0,a1,a2);var a5=g()[b9(0x7e)](a7+0x4*0x0,!0x0),a6=g()['getInt32'](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o[b9(0xdf)](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const ba=af;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error(ba(0xb1));const a9=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n[ba(0xc5)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o['typstrenderer_svg_data'](a9,this['__wbg_ptr'],n['__wbg_ptr'],l(a0)?0x100000001:a0>>>0x0);var a3=g()['getInt32'](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()['getInt32'](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}[af(0x83)](f){const bb=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this[bb(0xc5)],f['__wbg_ptr']);return m(n);}['render_svg'](f,n){const bc=af;try{if(this[bc(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a0=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg'](a0,this['__wbg_ptr'],f['__wbg_ptr'],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()['getInt32'](a0+0x4*0x1,!0x0),S=g()[bc(0x7e)](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[af(0x7c)](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrenderer_create_worker'](this['__wbg_ptr'],w(f));return m(n);}['create_worker_bridge'](){const bd=af;try{if(this['__wbg_ptr']==0x0)throw new Error(bd(0xb1));const v=this['__destroy_into_raw'](),y=o['__wbindgen_add_to_stack_pointer'](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()['getInt32'](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()['getInt32'](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_page_to_canvas'](f,n,u){const be=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');v=u[be(0xc7)]();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f[be(0xc5)],w(n),v);return m(y);}['mount_dom'](f,n){const bf=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this[bf(0xc5)]),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this[bf(0xc5)],f['__wbg_ptr'],w(n));return m(u);}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype']['free']);function d(b,c){b=b-0x74;const e=a();let f=e[b];return f;}class st{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,_t['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bg=af;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o['typstrendererbuilder_new'](v);var f=g()['getInt32'](v+0x4*0x0,!0x0),n=g()['getInt32'](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this['__wbg_ptr']=f>>>0x0,_t['register'](this,this[bg(0xc5)],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const bh=af;if(this[bh(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const f=this['__destroy_into_raw']();c(f);const n=o['typstrendererbuilder_build'](f);return m(n);}['add_glyph_pack'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this['__wbg_ptr'],w(f));return m(n);}['add_raw_font'](f){const bi=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[bi(0xc5)]);const n=o['typstrendererbuilder_add_raw_font'](this['__wbg_ptr'],w(f));return m(n);}['add_lazy_font'](f,n){const bj=af;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[bj(0xc5)]);const u=o['typstrendererbuilder_add_lazy_font'](this['__wbg_ptr'],w(f),w(n));return m(u);}}Symbol['dispose']&&(st['prototype'][Symbol['dispose']]=st['prototype']['free']);class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}[af(0xc7)](){const bk=af,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,kt[bk(0x9c)](this),e;}['free'](){const bl=af,e=this[bl(0xc7)]();o['__wbg_typstworker_free'](e,0x0);}['manipulate_data'](n,v){const bm=af;try{if(this['__wbg_ptr']==0x0)throw new Error(bm(0xb1));const a1=o[bm(0xdf)](-0x10);c(this['__wbg_ptr']);const a2=I(n,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;o[bm(0x82)](a1,this['__wbg_ptr'],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()['getInt32'](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['get_pages_info'](){const bn=af;if(this[bn(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['typstworker_get_pages_info'](this['__wbg_ptr']);return m(e);}['render_canvas'](n,a0,a1){const bo=af;try{if(this[bo(0xc5)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bo(0xc5)]);const a6=$(n,o[bo(0xe2)]),a7=h,a8=X(a0,o['__wbindgen_export']),a9=h,aa=X(a1,o[bo(0xe2)]),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()['getInt32'](a5+0x4*0x1,!0x0),a4=g()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[af(0xa0)]&&(at[af(0x91)][Symbol['dispose']]=at[af(0x91)]['free']);class B{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){f=f>>>0x0;const n=Object['create'](B['prototype']);return n['__wbg_ptr']=f,ot['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const bp=af,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ot[bp(0x9c)](this),e;}[af(0xe3)](){const e=this['__destroy_into_raw']();o['__wbg_workerbridge_free'](e,0x0);}}Symbol['dispose']&&(B['prototype'][Symbol[af(0xa0)]]=B['prototype']['free']);function Ft(){const e=o['renderer_build_info']();return m(e);}const At=new Set(['basic','cors','default']);async function xt(f,u){const bq=af;if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly['instantiateStreaming'](f,u);}catch(y){if(f['ok']&&At['has'](f['type'])&&f[bq(0x7f)][bq(0x96)]('Content-Type')!==bq(0xb4))console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly['instantiate'](v,u);}else{const S=await WebAssembly['instantiate'](f,u);return S instanceof WebAssembly['Instance']?{'instance':S,'module':f}:S;}}function ut(){const br=af,e={};return e['wbg']={},e[br(0xbb)][br(0xd6)]=function(f,u){const v=G(i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const r=typeof i(f)=='function';return E(r),r;},e[br(0xbb)]['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(f,u){const v=i(f)===i(u);return E(v),v;},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(f,v){const bs=br,y=i(v),S=typeof y==bs(0xad)?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a1=h;g()[bs(0xcb)](f+0x4*0x1,a1,!0x0),g()['setInt32'](f+0x4*0x0,a0,!0x0);},e['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(f,r){throw new Error(p(f,r));},e[br(0xbb)]['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e[br(0xbb)]['__wbg_appendChild_7465eba84213c75f']=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg'][br(0xaf)]=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return b(function(f,v,y,S,a0){const a1=i(f)['call'](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e['wbg'][br(0x8f)]=function(){return b(function(f,u){const v=i(f)['call'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_c8baa5c5e72d274e']=function(){return b(function(f,u,v,y){const bu=d,S=i(f)[bu(0xd1)](i(u),i(v),i(y));return w(S);},arguments);},e['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return s(function(f,u,v,y,S){i(f)['clearRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const r=i(f)['clientWidth'];return c(r),r;},arguments);},e['wbg']['__wbg_clip_35de02bb25d222d9']=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg'][br(0x8c)]=function(){return b(function(f){const bv=d,r=i(f)[bv(0x81)]();return w(r);},arguments);},e[br(0xbb)]['__wbg_content_ad90fa08b8c037c5']=function(){return s(function(f){const bw=d,r=i(f)[bw(0xa7)];return w(r);},arguments);},e['wbg']['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const bx=d,v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()[bx(0xcb)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_document_5b745e82ba551ca5']=function(){return s(function(f){const r=i(f)['document'];return l(r)?0x0:w(r);},arguments);},e[br(0xbb)]['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e[br(0xbb)]['__wbg_drawImage_6949f7679b2a9758']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[br(0xbb)]['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e[br(0xbb)]['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[br(0xbb)][br(0x98)]=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_e2012c2a2d434ee2']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg'][br(0xae)]=function(){return s(function(f,u){const by=d;let v,y;try{v=f,y=u,console['error'](p(f,u));}finally{o[by(0x78)](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){const bz=d;i(f)[bz(0xa6)](u,v,y,S);},arguments);},e['wbg']['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){const bA=d;i(f)[bA(0x77)](i(r));},arguments);},e[br(0xbb)][br(0xb3)]=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg']['__wbg_firstElementChild_54d515b19cee5ae7']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e[br(0xbb)]['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e[br(0xbb)][br(0x9f)]=function(){return s(function(v,y,S,a0){const a1=i(y)['getAttribute'](p(S,a0));var a2=l(a1)?0x0:I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_getContext_01f42b234e833f0a']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return b(function(f,u){const v=Reflect['get'](i(f),i(u));return w(v);},arguments);},e[br(0xbb)]['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bB=d,v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bB(0xcb)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_globalCompositeOperation_d52c6e6666e4be00']=function(){return b(function(f,u){const v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e[br(0xbb)]['__wbg_height_3a0b31e52a5b7f17']=function(){return s(function(f){const r=i(f)['height'];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0xcd)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0xe4)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[br(0xbb)]['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[br(0xbb)][br(0xd8)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0x88)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0xc0)]=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const r=i(f)['lastElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg'][br(0x7a)]=function(){return s(function(f){const r=i(f)['length'];return c(r),r;},arguments);},e[br(0xbb)][br(0xc2)]=function(){return s(function(f){const bC=d;console[bC(0xac)](i(f));},arguments);},e['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const y=i(f)['measureText'](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e['wbg'][br(0x74)]=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg']['__wbg_new_2884ddbcda091bc1']=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e['wbg']['__wbg_new_9468dd6e5df427f6']=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e['wbg']['__wbg_new_df1173567d5ff028']=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e['wbg'][br(0xa8)]=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_nextElementSibling_c745ee48314963c0']=function(){return s(function(f){const r=i(f)['nextElementSibling'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(){return s(function(f,u){const v=i(f)['push'](i(u));return c(v),v;},arguments);},e['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_putImageData_e96eabf0e9610ed3']=function(){return b(function(f,u,v,y){const bD=d;i(f)[bD(0xe1)](i(u),v,y);},arguments);},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return s(function(f){const r=i(f)['queueMicrotask'];return w(r);},arguments);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e[br(0xbb)]['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bE=d,a1=i(y)['removeProperty'](p(S,a0)),a2=I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()[bE(0xcb)](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){i(f)['remove']();},arguments);},e[br(0xbb)][br(0xa2)]=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e[br(0xbb)]['__wbg_replaceWith_923cfb1b2f584408']=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return s(function(f){const bF=d,r=Promise[bF(0x9b)](i(f));return w(r);},arguments);},e['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){i(f)['restore']();},arguments);},e[br(0xbb)]['__wbg_restore_6486cb1a7aa3af7b']=function(){return s(function(f){i(f)['restore']();},arguments);},e[br(0xbb)][br(0xcf)]=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg'][br(0x8e)]=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){const bG=d;i(f)[bG(0xb0)]();},arguments);},e['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setLineDash_7e3aad159aa2710c']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e[br(0xbb)]['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_set_169e13b608078b7b']=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e[br(0xbb)]['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const y=Reflect['set'](i(f),i(u),i(v));return E(y),y;},arguments);},e['wbg'][br(0x80)]=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e['wbg']['__wbg_set_fillStyle_b26e462a87b14315']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e[br(0xbb)]['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e[br(0xbb)]['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e[br(0xbb)]['__wbg_set_lineCap_74b37c7ff968f854']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e[br(0xbb)][br(0xce)]=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e[br(0xbb)]['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg'][br(0x79)]=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e[br(0xbb)]['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e[br(0xbb)]['__wbg_set_miterLimit_d891f47e244a915c']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_onerror_e7e40c62a55a0770']=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e['wbg']['__wbg_set_onload_5e2862e3453854de']=function(){return s(function(f,r){const bH=d;i(f)[bH(0x87)]=i(r);},arguments);},e['wbg']['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg'][br(0xe5)]=function(){return s(function(f,u,v){const bI=d;i(f)[bI(0xc3)]=p(u,v);},arguments);},e['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return s(function(f,u,v){const bJ=d;i(f)[bJ(0xbd)]=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(){return s(function(f,u){const v=i(u)['stack'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e[br(0xbb)]['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg'][br(0x90)]=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg'][br(0xc4)]=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e['wbg']['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const y=i(f)['then'](i(u),i(v));return w(y);},arguments);},e[br(0xbb)]['__wbg_then_4f95312d68691235']=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return b(function(f){const bK=d,r=i(f)[bK(0x8a)]();return w(r);},arguments);},e['wbg'][br(0x89)]=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e[br(0xbb)][br(0xe9)]=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg']['__wbg_width_c3f96f2ca7ab208d']=function(){return s(function(f){return i(f)['width'];},arguments);},e['wbg'][br(0xbc)]=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e[br(0xbb)]['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e[br(0xbb)]['__wbindgen_cast_b2e692da0ea8478a']=function(){return s(function(f,u){const v=dt(f,u,o['__wasm_bindgen_func_elem_1077'],yt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return s(function(f,u){const bL=d,v=V(f,u,o[bL(0xc1)],Et);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg'][br(0xd7)]=function(f){m(f);},e;}function ct(e,f){return o=e['exports'],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){const bM=af;if(o!==void 0x0)return o;typeof f<'u'&&(Object[bM(0xa3)](f)===Object['prototype']?{module:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const r=ut();f instanceof WebAssembly['Module']||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}async function St(f){const bN=af;if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module_or_path:f}=f:console['warn'](bN(0xb5))),typeof f>'u'&&(f=gt('typst_ts_renderer_bg.wasm',import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){const bO=af;throw new Error(bO(0xaa)+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const bP=af,v=new Function('m',bP(0xba)),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)['buffer'];};const Ct=typeof process<'u'&&process['versions']!=null&&process[af(0xbf)]['node']!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
@@ -1 +1 @@
1
- const aq=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0x229))/0x1+parseInt(ak(0x1f8))/0x2+-parseInt(ak(0x22a))/0x3*(parseInt(ak(0x1f3))/0x4)+-parseInt(ak(0x1df))/0x5*(-parseInt(ak(0x1de))/0x6)+parseInt(ak(0x1fb))/0x7*(parseInt(ak(0x1e0))/0x8)+parseInt(ak(0x201))/0x9*(-parseInt(ak(0x20e))/0xa)+parseInt(ak(0x211))/0xb;if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0x275eb));let r;function g(e){const al=d;W===k['length']&&k['push'](k[al(0x1fd)]+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){const am=d;if(!(e instanceof h))throw new Error(am(0x204)+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function d(a,b){a=a-0x1db;const e=c();let f=e[a];return f;}function V(h){const an=d,l=typeof h;if(l=='number'||l=='boolean'||h==null)return''+h;if(l==an(0x222))return'\x22'+h+'\x22';if(l=='symbol'){const v=h[an(0x22d)];return v==null?'Symbol':'Symbol('+v+')';}if(l==an(0x21e)){const x=h['name'];return typeof x=='string'&&x[an(0x1fd)]>0x0?'Function('+x+')':'Function';}if(Array['isArray'](h)){const y=h['length'];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/['exec'](toString['call'](h));let u;if(m&&m['length']>0x1)u=m[0x1];else return toString[an(0x230)](h);if(u=='Object')try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h['name']+':\x20'+h['message']+'\x0a'+h[an(0x224)]:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s['push'](b(m['getUint32'](u,!0x0)));return s;}function ut(e,h){return e=e>>>0x0,wt()['subarray'](e/0x4,e/0x4+h);}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){const ao=d;return(F===null||F['buffer']['detached']===!0x0||F['buffer']['detached']===void 0x0&&F['buffer']!==r[ao(0x223)][ao(0x1ef)])&&(F=new DataView(r['memory']['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r['memory']['buffer'])),E;}let M=null;function R(){const ap=d;return(M===null||M['byteLength']===0x0)&&(M=new Uint8Array(r['memory'][ap(0x1ef)])),M;}function a(e){return k[e];}function S(h,l){try{return h['apply'](this,l);}catch(m){r['__wbindgen_export3'](g(m));}}let k=new Array(0x80)[aq(0x22f)](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k['length'];function p(e){return e==null;}function dt(h,l,m,s){const u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{u['cnt']++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{--u['cnt']===0x0&&(u['dtor'](u['a'],u['b']),u['a']=0x0,G['unregister'](u));},G['register'](v,u,u),v;}function nt(h,l){const m=l(h['length']*0x1,0x1)>>>0x0;return R()['set'](h,m/0x1),w=h['length'],m;}function L(h,l){const ar=aq,m=l(h[ar(0x1fd)]*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h['length'],m;}function f(h,l,m){const as=aq;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()['subarray'](T,T+O[as(0x1fd)])['set'](O),w=O[as(0x1fd)],T;}let v=h[as(0x1fd)],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h[as(0x20f)](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h['length']*0x3,0x1)>>>0x0;const a1=R()['subarray'](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2[as(0x21b)],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q[aq(0x202)]();const ft=0x7ff00000;let N=0x0;function pt(e,h){const at=aq;return N+=h,N>=ft&&(q=new TextDecoder(at(0x1db),{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()[at(0x220)](e,e+h));}const U=new TextEncoder();aq(0x1e2)in U||(U['encodeInto']=function(h,l){const au=aq,m=U['encode'](h);return l[au(0x1ff)](m),{'read':h[au(0x1fd)],'written':m['length']};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){const av=aq;r[av(0x1ea)](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_incrserver_free'](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[aq(0x1f4)](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompilerbuilder_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[aq(0x21d)](e>>>0x0,0x1));class A{static['__wrap'](h){const aw=aq;h=h>>>0x0;const l=Object['create'](A[aw(0x237)]);return l['__wbg_ptr']=h,H['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const ax=aq,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,H[ax(0x236)](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_incrserver_free'](e,0x0);}[aq(0x228)](e){r['incrserver_set_attach_debug_info'](this['__wbg_ptr'],e);}['current'](){const ay=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['incrserver_current'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)[ay(0x235)](),r[ay(0x213)](h,l*0x1,0x1)),n;}finally{r[ay(0x214)](0x10);}}['reset'](){r['incrserver_reset'](this['__wbg_ptr']);}}Symbol['dispose']&&(A['prototype'][Symbol['dispose']]=A['prototype']['free']);class B{static[aq(0x206)](h){const az=aq;h=h>>>0x0;const l=Object['create'](B['prototype']);return l['__wbg_ptr']=h,P['register'](l,l[az(0x1e5)],l),l;}[aq(0x227)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_proxycontext_free'](e,0x0);}constructor(h){const aA=aq,l=r['proxycontext_new'](g(h));return this[aA(0x1e5)]=l>>>0x0,P[aA(0x1eb)](this,this['__wbg_ptr'],this),this;}get['context'](){const e=r['proxycontext_context'](this['__wbg_ptr']);return b(e);}[aq(0x234)](h,l){const aB=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r[aB(0x1f9)](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[aq(0x1fc)]&&(B['prototype'][Symbol['dispose']]=B['prototype'][aq(0x21f)]);class C{static[aq(0x206)](h){const aC=aq;h=h>>>0x0;const l=Object[aC(0x1e7)](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompileworld_free'](e,0x0);}['compile'](h,l){const aD=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()[aD(0x200)](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](h){const aE=aq;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this['__wbg_ptr'],h);var l=i()[aE(0x200)](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r['__wbindgen_export4'](l,m*0x1,0x1)),y;}finally{r[aE(0x214)](0x10);}}['get_artifact'](h,l){const aF=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_get_artifact'](v,this[aF(0x1e5)],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1ee)](n,T,a0){const aG=aq;let a1,a2;try{const ab=r['__wbindgen_add_to_stack_pointer'](-0x10),ac=f(T,r['__wbindgen_export'],r['__wbindgen_export2']),ad=w;var a3=p(a0)?0x0:f(a0,r['__wbindgen_export'],r['__wbindgen_export2']),a4=w;r['typstcompileworld_query'](ab,this[aG(0x1e5)],n,ac,ad,a3,a4);var a5=i()['getInt32'](ab+0x4*0x0,!0x0),a6=i()[aG(0x200)](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()[aG(0x200)](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aG(0x213)](a1,a2,0x1);}}['incr_compile'](h,l){const aH=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h[aH(0x1e5)],l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(C['prototype'][Symbol['dispose']]=C['prototype']['free']);class D{static['__wrap'](h){const aI=aq;h=h>>>0x0;const l=Object['create'](D['prototype']);return l['__wbg_ptr']=h,Y['register'](l,l[aI(0x1e5)],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){const aJ=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()[aJ(0x200)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_fonts'](h){const aK=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,j),r['typstcompiler_set_fonts'](n,this['__wbg_ptr'],h['__wbg_ptr']);var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aK(0x200)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_inputs'](h){const aL=aq;try{const n=r[aL(0x214)](-0x10);r['typstcompiler_set_inputs'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aL(0x200)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_source'](h,l){const aM=aq,m=f(h,r[aM(0x1e9)],r['__wbindgen_export2']),n=w,u=f(l,r['__wbindgen_export'],r['__wbindgen_export2']),v=w;return r['typstcompiler_add_source'](this['__wbg_ptr'],m,n,u,v)!==0x0;}['map_shadow'](h,l){const m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r['__wbindgen_export']),v=w;return r['typstcompiler_map_shadow'](this['__wbg_ptr'],m,n,u,v)!==0x0;}[aq(0x1ec)](h){const aN=aq,l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r['typstcompiler_unmap_shadow'](this[aN(0x1e5)],l,m)!==0x0;}['reset_shadow'](){r['typstcompiler_reset_shadow'](this['__wbg_ptr']);}['get_loaded_fonts'](){const aO=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_loaded_fonts'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)['slice']();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r[aO(0x214)](0x10);}}['get_ast'](n){const aP=aq;let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r[aP(0x1f7)]),a5=w;r[aP(0x233)](a3,this['__wbg_ptr'],a4,a5);var z=i()[aP(0x200)](a3+0x4*0x0,!0x0),O=i()['getInt32'](a3+0x4*0x1,!0x0),T=i()['getInt32'](a3+0x4*0x2,!0x0),a0=i()['getInt32'](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aP(0x213)](v,x,0x1);}}['get_semantic_token_legend'](){const aQ=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[aQ(0x200)](n+0x4*0x1,!0x0),m=i()[aQ(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](n,x,z){const aR=aq;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r['__wbindgen_export'],r[aR(0x1f7)]),a7=w;var O=p(x)?0x0:f(x,r[aR(0x1e9)],r['__wbindgen_export2']),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r[aR(0x1f7)]),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this['__wbg_ptr'],a6,a7,O,T,a0,a1);var a2=i()['getInt32'](a5+0x4*0x0,!0x0),a3=i()['getInt32'](a5+0x4*0x1,!0x0),a4=i()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r[aR(0x214)](0x10);}}['snapshot'](n,x,z){const aS=aq;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var O=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;r['typstcompiler_snapshot'](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()[aS(0x200)](a7+0x4*0x0,!0x0),a5=i()[aS(0x200)](a7+0x4*0x1,!0x0),a6=i()[aS(0x200)](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C['__wrap'](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aT=aq;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10),y=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),z=w;r[aT(0x22c)](x,this['__wbg_ptr'],y,z,l);var m=i()['getInt32'](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()['getInt32'](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1f0)](n,z,O,T){const aU=aq;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r[aU(0x1e9)]),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r['typstcompiler_compile'](a7,this['__wbg_ptr'],a0,a1,a2,a3,a8,a9,T);var a4=i()[aU(0x200)](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,a0,a1,a2){const aV=aq;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r[aV(0x1e9)],r['__wbindgen_export2']),ah=w;var a5=p(a0)?0x0:L(a0,r[aV(0x1e9)]),a6=w;const ai=f(a1,r['__wbindgen_export'],r['__wbindgen_export2']),aj=w;var a7=p(a2)?0x0:f(a2,r['__wbindgen_export'],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()['getInt32'](af+0x4*0x2,!0x0),ac=i()[aV(0x200)](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a3,a4,0x1);}}['create_incr_server'](){const aW=aq;try{const n=r[aW(0x214)](-0x10);r['typstcompiler_create_incr_server'](n,this[aW(0x1e5)]);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()[aW(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return A[aW(0x206)](h);}finally{r[aW(0x214)](0x10);}}[aq(0x212)](n,v,x,z){const aX=aq;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;var O=p(v)?0x0:L(v,r[aX(0x1e9)]),T=w;$(x,A),r['typstcompiler_incr_compile'](a3,this['__wbg_ptr'],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()['getInt32'](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype'][aq(0x21f)]);class tt{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const aY=aq,e=this['__destroy_into_raw']();r[aY(0x1dc)](e,0x0);}constructor(){const aZ=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aZ(0x21a)](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}finally{r[aZ(0x214)](0x10);}}['set_dummy_access_model'](){const b0=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_set_dummy_access_model'](m,this['__wbg_ptr']);var h=i()[b0(0x200)](m+0x4*0x0,!0x0),l=i()[b0(0x200)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r[b0(0x214)](0x10);}}['set_access_model'](h,l,m,n,u){const v=r['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}['set_package_registry'](h,l){const m=r['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const l=r['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],g(h));return b(l);}[aq(0x20d)](h,l){const m=r['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],g(h),g(l));return b(m);}['build'](){const h=this['__destroy_into_raw'](),l=r['typstcompilerbuilder_build'](h);return b(l);}}Symbol['dispose']&&(tt['prototype'][Symbol[aq(0x1fc)]]=tt['prototype']['free']);class j{static[aq(0x206)](h){const b1=aq;h=h>>>0x0;const l=Object['create'](j[b1(0x237)]);return l['__wbg_ptr']=h,Q[b1(0x1eb)](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const b2=aq,e=this['__wbg_ptr'];return this[b2(0x1e5)]=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol['dispose']&&(j['prototype'][Symbol[aq(0x1fc)]]=j['prototype']['free']);class et{[aq(0x227)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolverbuilder_free'](e,0x0);}constructor(){const b3=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b3(0x1e6)](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[b3(0x200)](n+0x4*0x1,!0x0),m=i()[b3(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,Z[b3(0x1eb)](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_font_info'](h){const b4=aq;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_get_font_info'](s,this[b4(0x1e5)],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()['getInt32'](s+0x4*0x1,!0x0),n=i()['getInt32'](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r[b4(0x214)](0x10);}}[aq(0x21c)](h){const b5=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this[b5(0x1e5)],g(h));var l=i()[b5(0x200)](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_lazy_font'](h,l){const b6=aq;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b6(0x1f5)](s,this[b6(0x1e5)],g(h),g(l));var m=i()['getInt32'](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1fe)](){const h=this['__destroy_into_raw'](),l=r['typstfontresolverbuilder_build'](h);return b(l);}}function c(){const bk=['compile','warn','__wbg___wbindgen_string_get_a2a31e16edf96e42','320360bCYSDm','__wbg_typstcompileworld_free','typstfontresolverbuilder_add_lazy_font','__wbg_new_ff12d2b041fb48f1','__wbindgen_export2','608240IDsspe','proxycontext_untar','__wbg_entries_83c79938054e065f','7jApxSm','dispose','length','build','set','getInt32','1143IOCSZw','decode','getPrototypeOf','expected\x20instance\x20of\x20','__wbindgen_object_clone_ref','__wrap','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','node','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','__wbg_instanceof_Uint8Array_da54ccc9d3e09434','entries','__wbg_set_781438a03c0c3c81','add_lazy_font','19230uXfVuY','charCodeAt','resolve','1281863LlAFrE','incr_compile','__wbindgen_export4','__wbindgen_add_to_stack_pointer','wbg','basic','Module','application/wasm','__wbindgen_cast_d6cd19b81560fd6e','typstcompilerbuilder_new','written','add_raw_font','__wbg_typstfontresolverbuilder_free','function','free','subarray','__wbg_new_6421f6084cc5bc5a','string','memory','stack','instantiateStreaming','value','__destroy_into_raw','set_attach_debug_info','54041USWYqf','6hiHXFU','__wbg_typstcompiler_new','typstcompiler_get_artifact','description','__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d','fill','call','instantiate','__wbg_static_accessor_WINDOW_a8924b26aa92d024','typstcompiler_get_ast','untar','slice','unregister','prototype','utf-8','__wbg_typstcompilerbuilder_free','__wbg___wbindgen_throw_dd24417ed36fc46e','45222HktfeP','75JDAIpT','687944gwKSEx','versions','encodeInto','using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead','`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a','__wbg_ptr','typstfontresolverbuilder_new','create','Instance','__wbindgen_export','__wasm_bindgen_func_elem_37350','register','unmap_shadow','__wbg_static_accessor_SELF_08f5a74c69739274','query','buffer'];c=function(){return bk;};return c();}Symbol['dispose']&&(et['prototype'][Symbol['dispose']]=et[aq(0x237)]['free']);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}const ht=new Set([aq(0x216),'cors','default']);async function mt(h,l){const b7=aq;if(typeof Response==b7(0x21e)&&h instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly[b7(0x225)](h,l);}catch(o){if(h['ok']&&ht['has'](h['type'])&&h['headers']['get']('Content-Type')!==b7(0x218))console['warn'](b7(0x1e4),o);else throw o;}const m=await h['arrayBuffer']();return await WebAssembly[b7(0x231)](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly[b7(0x1e8)]?{'instance':s,'module':h}:s;}}function rt(){const b8=aq,e={};return e['wbg']={},e[b8(0x215)]['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e['wbg']['__wbg_Number_2d1dcfcf4ec51736']=function(h){return Number(a(h));},e['wbg'][b8(0x22e)]=function(h,l){const m=a(l),s=typeof m=='bigint'?m:void 0x0;i()['setBigInt64'](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(h){const l=a(h),m=typeof l=='boolean'?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(h,l){const m=V(a(l)),s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg___wbindgen_in_0d3e1e8f0c669317']=function(h,l){return a(h)in a(l);},e['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){return typeof a(h)=='function';},e['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const l=a(h);return typeof l=='object'&&l!==null;},e['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(h){return typeof a(h)=='string';},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(h){return a(h)===void 0x0;},e['wbg'][b8(0x209)]=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e[b8(0x215)]['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const m=a(l),s=typeof m=='number'?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg'][b8(0x1f2)]=function(h,l){const b9=b8,m=a(l),u=typeof m==b9(0x222)?m:void 0x0;var v=p(u)?0x0:f(u,r['__wbindgen_export'],r['__wbindgen_export2']),x=w;i()['setInt32'](h+0x4*0x1,x,!0x0),i()['setInt32'](h+0x4*0x0,v,!0x0);},e['wbg'][b8(0x1dd)]=function(h,l){throw new Error(I(h,l));},e[b8(0x215)]['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){a(h)['_wbg_cb_unref']();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const s=a(h)['call'](a(l),a(m));return g(s);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const ba=d,x=a(h)[ba(0x230)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return S(function(h,l){const m=a(h)['call'](a(l));return g(m);},arguments);},e[b8(0x215)]['__wbg_done_62ea16af4ce34b24']=function(h){return a(h)['done'];},e['wbg'][b8(0x1fa)]=function(h){const bb=b8,l=Object[bb(0x20b)](a(h));return g(l);},e['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(h,l){let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r['__wbindgen_export4'](m,s,0x1);}},e[b8(0x215)]['__wbg_error_85faeb8919b11cc6']=function(h,l,m){console['error'](a(h),a(l),a(m));},e['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(h){return a(h)['getTimezoneOffset']();},e['wbg']['__wbg_get_6b7bd52aca3f9671']=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e[b8(0x215)]['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const m=Reflect['get'](a(h),a(l));return g(m);},arguments);},e['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg']['__wbg_info_ce6bcc489c22f6f0']=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e['wbg'][b8(0x20a)]=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(h){return Array['isArray'](a(h));},e['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(h){return Number['isSafeInteger'](a(h));},e[b8(0x215)]['__wbg_iterator_27b7c8b35ab3e86b']=function(){return g(Symbol['iterator']);},e[b8(0x215)]['__wbg_length_22ac23eaec9d8053']=function(h){return a(h)['length'];},e['wbg']['__wbg_length_d45040a40c570362']=function(h){return a(h)['length'];},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){const h=new Object();return g(h);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){const h=new Array();return g(h);},e['wbg'][b8(0x221)]=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e['wbg']['__wbg_new_b2db8aa2650f793a']=function(h){const l=new Date(a(h));return g(l);},e['wbg']['__wbg_new_df1173567d5ff028']=function(h,l){const m=new Error(I(h,l));return g(m);},e['wbg'][b8(0x1f6)]=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e[b8(0x215)]['__wbg_new_no_args_cb138f77cf6151ee']=function(h,l){const m=new Function(I(h,l));return g(m);},e['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e['wbg']['__wbg_next_138a17bbf04e926c']=function(h){const l=a(h)['next'];return g(l);},e['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const l=a(h)['next']();return g(l);},arguments);},e['wbg']['__wbg_now_69d776cd24f5215b']=function(){return Date['now']();},e['wbg']['__wbg_prototypesetcall_dfe9b766cdc1f1fd']=function(h,l,m){const bc=b8;Uint8Array['prototype'][bc(0x1ff)]['call'](J(h,l),a(m));},e['wbg']['__wbg_proxycontext_new']=function(h){const bd=b8,l=B[bd(0x206)](h);return g(l);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(h,l){return a(h)['push'](a(l));},e[b8(0x215)]['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(h){const be=b8,l=Promise[be(0x210)](a(h));return g(l);},e['wbg']['__wbg_set_3f1d0b984ed272ed']=function(h,l,m){a(h)[b(l)]=b(m);},e[b8(0x215)][b8(0x20c)]=function(){return S(function(h,l,m){const bf=d;return Reflect[bf(0x1ff)](a(h),a(l),a(m));},arguments);},e['wbg']['__wbg_set_7df433eea03a5c14']=function(h,l,m){a(h)[l>>>0x0]=b(m);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(h,l){const m=a(l)['stack'],s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg'][b8(0x207)]=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg'][b8(0x1ed)]=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg'][b8(0x232)]=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e['wbg']['__wbg_then_4f95312d68691235']=function(h,l){const m=a(h)['then'](a(l));return g(m);},e['wbg'][b8(0x22b)]=function(h){const l=D['__wrap'](h);return g(l);},e['wbg']['__wbg_typstfontresolver_new']=function(h){const l=j['__wrap'](h);return g(l);},e['wbg']['__wbg_value_57b7b035e117f7ee']=function(h){const bg=b8,l=a(h)[bg(0x226)];return g(l);},e[b8(0x215)]['__wbindgen_cast_2241b6af4c4b2941']=function(h,l){const m=I(h,l);return g(m);},e[b8(0x215)]['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const m=dt(h,l,r['__wasm_bindgen_func_elem_957'],lt);return g(m);},e['wbg']['__wbindgen_cast_4625c577ab2ec9ee']=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg']['__wbindgen_cast_9ae0607507abb057']=function(h){return g(h);},e['wbg'][b8(0x219)]=function(h){return g(h);},e[b8(0x215)][b8(0x205)]=function(h){const l=a(h);return g(l);},e['wbg']['__wbindgen_object_drop_ref']=function(h){b(h);},e;}function _t(e,h){return r=e['exports'],vt['__wbindgen_wasm_module']=h,F=null,E=null,M=null,r;}function At(h){const bh=aq;if(r!==void 0x0)return r;typeof h<'u'&&(Object[bh(0x203)](h)===Object['prototype']?{module:h}=h:console[bh(0x1f1)]('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const l=rt();h instanceof WebAssembly['Module']||(h=new WebAssembly[(bh(0x217))](h));const m=new WebAssembly['Instance'](h,l);return _t(m,h);}async function vt(h){const bi=aq;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module_or_path:h}=h:console['warn'](bi(0x1e3))),typeof h>'u'&&(h=ot('typst_ts_web_compiler_bg.wasm',import.meta.url));const l=rt();(typeof h=='string'||typeof Request==bi(0x21e)&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const bj=aq,m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)[bj(0x1ef)];};const kt=typeof process<'u'&&process[aq(0x1e1)]!=null&&process[aq(0x1e1)][aq(0x208)]!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
1
+ const al=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0xa4))/0x1+parseInt(ak(0xbf))/0x2*(parseInt(ak(0x7e))/0x3)+parseInt(ak(0xca))/0x4*(-parseInt(ak(0x8b))/0x5)+-parseInt(ak(0xdb))/0x6+parseInt(ak(0xc4))/0x7*(parseInt(ak(0xa1))/0x8)+-parseInt(ak(0xc2))/0x9*(parseInt(ak(0x94))/0xa)+-parseInt(ak(0x98))/0xb*(-parseInt(ak(0xd4))/0xc);if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0x1a10c));let r;function g(e){W===k['length']&&k['push'](k['length']+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){if(!(e instanceof h))throw new Error('expected\x20instance\x20of\x20'+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e[al(0xd8)](e['a'],e['b']));function V(h){const am=al,l=typeof h;if(l=='number'||l=='boolean'||h==null)return''+h;if(l==am(0xbc))return'\x22'+h+'\x22';if(l=='symbol'){const v=h[am(0x83)];return v==null?'Symbol':'Symbol('+v+')';}if(l=='function'){const x=h['name'];return typeof x=='string'&&x[am(0xe2)]>0x0?'Function('+x+')':'Function';}if(Array[am(0xb7)](h)){const y=h[am(0xe2)];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/['exec'](toString['call'](h));let u;if(m&&m['length']>0x1)u=m[0x1];else return toString['call'](h);if(u==am(0xd9))try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h['name']+':\x20'+h['message']+'\x0a'+h['stack']:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s['push'](b(m['getUint32'](u,!0x0)));return s;}function ut(e,h){const an=al;return e=e>>>0x0,wt()[an(0xa9)](e/0x4,e/0x4+h);}function d(a,b){a=a-0x7e;const e=c();let f=e[a];return f;}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){const ao=al;return(F===null||F['buffer']['detached']===!0x0||F['buffer']['detached']===void 0x0&&F[ao(0x91)]!==r['memory'][ao(0x91)])&&(F=new DataView(r[ao(0xa5)]['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){const ap=al;return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r[ap(0xa5)]['buffer'])),E;}let M=null;function R(){const aq=al;return(M===null||M['byteLength']===0x0)&&(M=new Uint8Array(r['memory'][aq(0x91)])),M;}function a(e){return k[e];}function S(h,l){const ar=al;try{return h['apply'](this,l);}catch(m){r[ar(0xc0)](g(m));}}let k=new Array(0x80)['fill'](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k['length'];function p(e){return e==null;}function dt(h,l,m,s){const u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{const as=d;u[as(0xd0)]++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{const at=d;--u[at(0xd0)]===0x0&&(u['dtor'](u['a'],u['b']),u['a']=0x0,G['unregister'](u));},G['register'](v,u,u),v;}function nt(h,l){const au=al,m=l(h['length']*0x1,0x1)>>>0x0;return R()[au(0xbd)](h,m/0x1),w=h[au(0xe2)],m;}function L(h,l){const av=al,m=l(h['length']*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h[av(0xe2)],m;}function f(h,l,m){const aw=al;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()[aw(0xa9)](T,T+O[aw(0xe2)])['set'](O),w=O['length'],T;}let v=h['length'],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h['charCodeAt'](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h['length']*0x3,0x1)>>>0x0;const a1=R()['subarray'](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2['written'],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}function c(){const bu=['Instance','348ulLNai','__wbindgen_export3','__wbg_proxycontext_free','18mnWFQS','__wbindgen_export2','21UYkMrE','add_source','dispose','call','typstcompiler_get_loaded_fonts','arrayBuffer','45236yQJLKw','__wrap','typstcompiler_set_fonts','__wbindgen_object_clone_ref','__wbg_resolve_fd5bfbaa4ce36e1e','error','cnt','getInt32','typstfontresolverbuilder_get_font_info','typstfontresolverbuilder_build','4903836kGWnBw','get_font_info','object','__wbg_ptr','dtor','Object','entries','1265880CapmQe','function','typstcompiler_get_ast','slice','__wbg_isSafeInteger_ae7d3f054d55fa16','__wbg_error_7534b8e9a36f1ab4','context','length','648nspogK','value','set_attach_debug_info','__wbg_next_138a17bbf04e926c','__wbindgen_cast_9ae0607507abb057','description','query','proxycontext_context','incrserver_reset','typstcompileworld_get_artifact','__wbg_typstfontresolverbuilder_free','set_inputs','typstcompiler_map_shadow','35HiPIYq','__wbindgen_cast_4625c577ab2ec9ee','typstcompiler_add_source','cors','done','__wbg_typstfontresolver_new','buffer','setInt32','unregister','622550zxAeAx','__destroy_into_raw','__wbindgen_cast_2241b6af4c4b2941','__wbg_prototypesetcall_dfe9b766cdc1f1fd','11rMgtYS','__wbg_new_1ba21ce319a06297','typst_ts_web_compiler_bg.wasm','__wbindgen_export','__wbindgen_wasm_module','__wbg_stack_0ed75d68575b0f3c','__wbg___wbindgen_in_0d3e1e8f0c669317','__wbg___wbindgen_is_undefined_f6b95eab589e0269','headers','508472sHgwhO','unmap_shadow','__wbg_set_7df433eea03a5c14','115497cCpLKt','memory','warn','free','__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d','subarray','__wbindgen_export4','encode','utf-8','wbg','number','isSafeInteger','__wbg_Number_2d1dcfcf4ec51736','typstcompilerbuilder_new','using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead','typstcompiler_snapshot','set_package_registry','register','get_artifact','isArray','__wbindgen_add_to_stack_pointer','__wbg_set_3f1d0b984ed272ed','__wbg___wbindgen_boolean_get_dea25b33882b895b','prototype','string','set'];c=function(){return bu;};return c();}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q['decode']();const ft=0x7ff00000;let N=0x0;function pt(e,h){const ax=al;return N+=h,N>=ft&&(q=new TextDecoder(ax(0xac),{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()[ax(0xa9)](e,e+h));}const U=new TextEncoder();'encodeInto'in U||(U['encodeInto']=function(h,l){const ay=al,m=U[ay(0xab)](h);return l['set'](m),{'read':h['length'],'written':m[ay(0xe2)]};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){r['__wasm_bindgen_func_elem_37350'](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_incrserver_free'](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompileworld_free'](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompilerbuilder_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolverbuilder_free'](e>>>0x0,0x1));class A{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](A['prototype']);return l['__wbg_ptr']=h,H['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,H['unregister'](this),e;}[al(0xa7)](){const e=this['__destroy_into_raw']();r['__wbg_incrserver_free'](e,0x0);}[al(0x80)](e){r['incrserver_set_attach_debug_info'](this['__wbg_ptr'],e);}['current'](){const az=al;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['incrserver_current'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)[az(0xde)](),r['__wbindgen_export4'](h,l*0x1,0x1)),n;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](){const aA=al;r[aA(0x86)](this[aA(0xd7)]);}}Symbol['dispose']&&(A['prototype'][Symbol[al(0xc6)]]=A[al(0xbb)]['free']);class B{static[al(0xcb)](h){const aB=al;h=h>>>0x0;const l=Object['create'](B[aB(0xbb)]);return l['__wbg_ptr']=h,P['register'](l,l['__wbg_ptr'],l),l;}[al(0x95)](){const aC=al,e=this[aC(0xd7)];return this['__wbg_ptr']=0x0,P['unregister'](this),e;}['free'](){const aD=al,e=this['__destroy_into_raw']();r[aD(0xc1)](e,0x0);}constructor(h){const l=r['proxycontext_new'](g(h));return this['__wbg_ptr']=l>>>0x0,P['register'](this,this['__wbg_ptr'],this),this;}get[al(0xe1)](){const aE=al,e=r[aE(0x85)](this[aE(0xd7)]);return b(e);}['untar'](h,l){try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r['proxycontext_untar'](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(B['prototype'][Symbol[al(0xc6)]]=B['prototype']['free']);class C{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aF=al,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X[aF(0x93)](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompileworld_free'](e,0x0);}['compile'](h,l){const aG=al;try{const v=r[aG(0xb8)](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()[aG(0xd1)](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](h){try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this['__wbg_ptr'],h);var l=i()['getInt32'](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r['__wbindgen_export4'](l,m*0x1,0x1)),y;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aH=al;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aH(0x87)](v,this['__wbg_ptr'],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()[aH(0xd1)](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[al(0x84)](n,T,a0){let a1,a2;try{const ab=r['__wbindgen_add_to_stack_pointer'](-0x10),ac=f(T,r['__wbindgen_export'],r['__wbindgen_export2']),ad=w;var a3=p(a0)?0x0:f(a0,r['__wbindgen_export'],r['__wbindgen_export2']),a4=w;r['typstcompileworld_query'](ab,this['__wbg_ptr'],n,ac,ad,a3,a4);var a5=i()['getInt32'](ab+0x4*0x0,!0x0),a6=i()['getInt32'](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()['getInt32'](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a1,a2,0x1);}}['incr_compile'](h,l){const aI=al;try{const v=r[aI(0xb8)](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h['__wbg_ptr'],l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[al(0xc6)]&&(C[al(0xbb)][Symbol['dispose']]=C['prototype']['free']);class D{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](D['prototype']);return l['__wbg_ptr']=h,Y['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aJ=al,e=this['__wbg_ptr'];return this[aJ(0xd7)]=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){const aK=al;try{const m=r[aK(0xb8)](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()[aK(0xd1)](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r[aK(0xb8)](0x10);}}['set_fonts'](h){const aL=al;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,j),r[aL(0xcc)](n,this['__wbg_ptr'],h['__wbg_ptr']);var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[al(0x89)](h){const aM=al;try{const n=r[aM(0xb8)](-0x10);r['typstcompiler_set_inputs'](n,this[aM(0xd7)],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r[aM(0xb8)](0x10);}}[al(0xc5)](h,l){const aN=al,m=f(h,r['__wbindgen_export'],r[aN(0xc3)]),n=w,u=f(l,r[aN(0x9b)],r['__wbindgen_export2']),v=w;return r[aN(0x8d)](this['__wbg_ptr'],m,n,u,v)!==0x0;}['map_shadow'](h,l){const aO=al,m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r[aO(0x9b)]),v=w;return r[aO(0x8a)](this[aO(0xd7)],m,n,u,v)!==0x0;}[al(0xa2)](h){const l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r['typstcompiler_unmap_shadow'](this['__wbg_ptr'],l,m)!==0x0;}['reset_shadow'](){const aP=al;r['typstcompiler_reset_shadow'](this[aP(0xd7)]);}['get_loaded_fonts'](){const aQ=al;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aQ(0xc8)](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)['slice']();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r[aQ(0xb8)](0x10);}}['get_ast'](n){const aR=al;let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;r[aR(0xdd)](a3,this['__wbg_ptr'],a4,a5);var z=i()['getInt32'](a3+0x4*0x0,!0x0),O=i()['getInt32'](a3+0x4*0x1,!0x0),T=i()[aR(0xd1)](a3+0x4*0x2,!0x0),a0=i()['getInt32'](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aR(0xaa)](v,x,0x1);}}['get_semantic_token_legend'](){const aS=al;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[aS(0xd1)](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](n,x,z){const aT=al;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a7=w;var O=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this['__wbg_ptr'],a6,a7,O,T,a0,a1);var a2=i()['getInt32'](a5+0x4*0x0,!0x0),a3=i()[aT(0xd1)](a5+0x4*0x1,!0x0),a4=i()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['snapshot'](n,x,z){const aU=al;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var O=p(n)?0x0:f(n,r[aU(0x9b)],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r[aU(0x9b)],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;r[aU(0xb3)](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C[aU(0xcb)](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[al(0xb6)](h,l){const aV=al;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10),y=f(h,r[aV(0x9b)],r['__wbindgen_export2']),z=w;r['typstcompiler_get_artifact'](x,this['__wbg_ptr'],y,z,l);var m=i()[aV(0xd1)](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()[aV(0xd1)](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['compile'](n,z,O,T){const aW=al;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r[aW(0x9b)],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r['typstcompiler_compile'](a7,this[aW(0xd7)],a0,a1,a2,a3,a8,a9,T);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,a0,a1,a2){const aX=al;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),ah=w;var a5=p(a0)?0x0:L(a0,r['__wbindgen_export']),a6=w;const ai=f(a1,r['__wbindgen_export'],r['__wbindgen_export2']),aj=w;var a7=p(a2)?0x0:f(a2,r['__wbindgen_export'],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()['getInt32'](af+0x4*0x2,!0x0),ac=i()[aX(0xd1)](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a3,a4,0x1);}}['create_incr_server'](){const aY=al;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_create_incr_server'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return A['__wrap'](h);}finally{r[aY(0xb8)](0x10);}}['incr_compile'](n,v,x,z){const aZ=al;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r[aZ(0x9b)],r['__wbindgen_export2']),a5=w;var O=p(v)?0x0:L(v,r[aZ(0x9b)]),T=w;$(x,A),r['typstcompiler_incr_compile'](a3,this['__wbg_ptr'],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()['getInt32'](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(D[al(0xbb)][Symbol['dispose']]=D[al(0xbb)]['free']);class tt{[al(0x95)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const b0=al,e=this[b0(0x95)]();r['__wbg_typstcompilerbuilder_free'](e,0x0);}constructor(){const b1=al;try{const n=r[b1(0xb8)](-0x10);r[b1(0xb1)](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this[b1(0xd7)],this),this;}finally{r[b1(0xb8)](0x10);}}['set_dummy_access_model'](){const b2=al;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_set_dummy_access_model'](m,this['__wbg_ptr']);var h=i()[b2(0xd1)](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r[b2(0xb8)](0x10);}}['set_access_model'](h,l,m,n,u){const v=r['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}[al(0xb4)](h,l){const m=r['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const l=r['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],g(h));return b(l);}['add_lazy_font'](h,l){const m=r['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],g(h),g(l));return b(m);}['build'](){const b3=al,h=this[b3(0x95)](),l=r['typstcompilerbuilder_build'](h);return b(l);}}Symbol['dispose']&&(tt['prototype'][Symbol[al(0xc6)]]=tt['prototype']['free']);class j{static['__wrap'](h){const b4=al;h=h>>>0x0;const l=Object['create'](j[b4(0xbb)]);return l['__wbg_ptr']=h,Q['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol[al(0xc6)]&&(j['prototype'][Symbol['dispose']]=j['prototype']['free']);class et{['__destroy_into_raw'](){const b5=al,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z[b5(0x93)](this),e;}['free'](){const b6=al,e=this['__destroy_into_raw']();r[b6(0x88)](e,0x0);}constructor(){const b7=al;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_new'](n);var h=i()[b7(0xd1)](n+0x4*0x0,!0x0),l=i()[b7(0xd1)](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this[b7(0xd7)]=h>>>0x0,Z[b7(0xb5)](this,this['__wbg_ptr'],this),this;}finally{r[b7(0xb8)](0x10);}}[al(0xd5)](h){const b8=al;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b8(0xd2)](s,this[b8(0xd7)],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()['getInt32'](s+0x4*0x1,!0x0),n=i()[b8(0xd1)](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_raw_font'](h){try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_lazy_font'](h,l){try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_lazy_font'](s,this['__wbg_ptr'],g(h),g(l));var m=i()['getInt32'](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const b9=al,h=this['__destroy_into_raw'](),l=r[b9(0xd3)](h);return b(l);}}Symbol['dispose']&&(et[al(0xbb)][Symbol['dispose']]=et['prototype'][al(0xa7)]);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}const ht=new Set(['basic',al(0x8e),'default']);async function mt(h,l){const ba=al;if(typeof Response=='function'&&h instanceof Response){if(typeof WebAssembly['instantiateStreaming']==ba(0xdc))try{return await WebAssembly['instantiateStreaming'](h,l);}catch(o){if(h['ok']&&ht['has'](h['type'])&&h[ba(0xa0)]['get']('Content-Type')!=='application/wasm')console[ba(0xa6)]('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',o);else throw o;}const m=await h[ba(0xc9)]();return await WebAssembly['instantiate'](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly['Instance']?{'instance':s,'module':h}:s;}}function rt(){const bb=al,e={};return e['wbg']={},e['wbg']['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e['wbg'][bb(0xb0)]=function(h){return Number(a(h));},e['wbg'][bb(0xa8)]=function(h,l){const m=a(l),s=typeof m=='bigint'?m:void 0x0;i()['setBigInt64'](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg'][bb(0xba)]=function(h){const l=a(h),m=typeof l=='boolean'?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(h,l){const bc=bb,m=V(a(l)),s=f(m,r[bc(0x9b)],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e[bb(0xad)][bb(0x9e)]=function(h,l){return a(h)in a(l);},e['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){return typeof a(h)=='function';},e[bb(0xad)]['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const bd=bb,l=a(h);return typeof l==bd(0xd6)&&l!==null;},e[bb(0xad)]['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(h){const be=bb;return typeof a(h)==be(0xbc);},e[bb(0xad)][bb(0x9f)]=function(h){return a(h)===void 0x0;},e[bb(0xad)]['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e['wbg']['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const bf=bb,m=a(l),s=typeof m==bf(0xae)?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(h,l){const bg=bb,m=a(l),u=typeof m=='string'?m:void 0x0;var v=p(u)?0x0:f(u,r['__wbindgen_export'],r[bg(0xc3)]),x=w;i()[bg(0x92)](h+0x4*0x1,x,!0x0),i()['setInt32'](h+0x4*0x0,v,!0x0);},e[bb(0xad)]['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(h,l){throw new Error(I(h,l));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){a(h)['_wbg_cb_unref']();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const s=a(h)['call'](a(l),a(m));return g(s);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const bh=d,x=a(h)[bh(0xc7)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return S(function(h,l){const m=a(h)['call'](a(l));return g(m);},arguments);},e[bb(0xad)]['__wbg_done_62ea16af4ce34b24']=function(h){const bi=bb;return a(h)[bi(0x8f)];},e['wbg']['__wbg_entries_83c79938054e065f']=function(h){const bj=bb,l=Object[bj(0xda)](a(h));return g(l);},e[bb(0xad)][bb(0xe0)]=function(h,l){const bk=bb;let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r[bk(0xaa)](m,s,0x1);}},e['wbg']['__wbg_error_85faeb8919b11cc6']=function(h,l,m){const bl=bb;console[bl(0xcf)](a(h),a(l),a(m));},e['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(h){return a(h)['getTimezoneOffset']();},e['wbg']['__wbg_get_6b7bd52aca3f9671']=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const m=Reflect['get'](a(h),a(l));return g(m);},arguments);},e['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg']['__wbg_info_ce6bcc489c22f6f0']=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(h){return Array['isArray'](a(h));},e['wbg'][bb(0xdf)]=function(h){const bm=bb;return Number[bm(0xaf)](a(h));},e[bb(0xad)]['__wbg_iterator_27b7c8b35ab3e86b']=function(){return g(Symbol['iterator']);},e[bb(0xad)]['__wbg_length_22ac23eaec9d8053']=function(h){return a(h)['length'];},e[bb(0xad)]['__wbg_length_d45040a40c570362']=function(h){const bn=bb;return a(h)[bn(0xe2)];},e[bb(0xad)][bb(0x99)]=function(){const h=new Object();return g(h);},e[bb(0xad)]['__wbg_new_25f239778d6112b9']=function(){const h=new Array();return g(h);},e[bb(0xad)]['__wbg_new_6421f6084cc5bc5a']=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e['wbg']['__wbg_new_b2db8aa2650f793a']=function(h){const l=new Date(a(h));return g(l);},e['wbg']['__wbg_new_df1173567d5ff028']=function(h,l){const m=new Error(I(h,l));return g(m);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(h,l){const m=new Function(I(h,l));return g(m);},e[bb(0xad)]['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e['wbg'][bb(0x81)]=function(h){const l=a(h)['next'];return g(l);},e['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const l=a(h)['next']();return g(l);},arguments);},e['wbg']['__wbg_now_69d776cd24f5215b']=function(){return Date['now']();},e[bb(0xad)][bb(0x97)]=function(h,l,m){Uint8Array['prototype']['set']['call'](J(h,l),a(m));},e['wbg']['__wbg_proxycontext_new']=function(h){const l=B['__wrap'](h);return g(l);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(h,l){return a(h)['push'](a(l));},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e['wbg'][bb(0xce)]=function(h){const l=Promise['resolve'](a(h));return g(l);},e['wbg'][bb(0xb9)]=function(h,l,m){a(h)[b(l)]=b(m);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return S(function(h,l,m){return Reflect['set'](a(h),a(l),a(m));},arguments);},e['wbg'][bb(0xa3)]=function(h,l,m){a(h)[l>>>0x0]=b(m);},e['wbg'][bb(0x9d)]=function(h,l){const bo=bb,m=a(l)['stack'],s=f(m,r['__wbindgen_export'],r[bo(0xc3)]),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e['wbg']['__wbg_then_4f95312d68691235']=function(h,l){const m=a(h)['then'](a(l));return g(m);},e['wbg']['__wbg_typstcompiler_new']=function(h){const l=D['__wrap'](h);return g(l);},e['wbg'][bb(0x90)]=function(h){const l=j['__wrap'](h);return g(l);},e['wbg']['__wbg_value_57b7b035e117f7ee']=function(h){const bp=bb,l=a(h)[bp(0x7f)];return g(l);},e['wbg'][bb(0x96)]=function(h,l){const m=I(h,l);return g(m);},e[bb(0xad)]['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const m=dt(h,l,r['__wasm_bindgen_func_elem_957'],lt);return g(m);},e['wbg'][bb(0x8c)]=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg'][bb(0x82)]=function(h){return g(h);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(h){return g(h);},e['wbg'][bb(0xcd)]=function(h){const l=a(h);return g(l);},e['wbg']['__wbindgen_object_drop_ref']=function(h){b(h);},e;}function _t(e,h){const bq=al;return r=e['exports'],vt[bq(0x9c)]=h,F=null,E=null,M=null,r;}function At(h){const br=al;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module:h}=h:console['warn'](br(0xb2)));const l=rt();h instanceof WebAssembly['Module']||(h=new WebAssembly['Module'](h));const m=new WebAssembly[(br(0xbe))](h,l);return _t(m,h);}async function vt(h){const bs=al;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object[bs(0xbb)]?{module_or_path:h}=h:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof h>'u'&&(h=ot(bs(0x9a),import.meta.url));const l=rt();(typeof h=='string'||typeof Request==bs(0xdc)&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)['buffer'];};const kt=typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
@@ -1 +1 @@
1
- function b(c,d){c=c-0x1c5;var e=a();var f=e[c];return f;}function a(){var j=['3154131tOfHVV','652776FtSges','808EyGAJn','6884010DATPML','266637zCxGbO','worker','6242836JqMnLR','10155216Lbgtav','902246CsfcDl'];a=function(){return j;};return a();}(function(c,d){var h=b,e=c();while(!![]){try{var f=-parseInt(h(0x1cd))/0x1+parseInt(h(0x1c6))/0x2+-parseInt(h(0x1c5))/0x3+-parseInt(h(0x1cb))/0x4+-parseInt(h(0x1c8))/0x5+parseInt(h(0x1cc))/0x6+parseInt(h(0x1c9))/0x7*(parseInt(h(0x1c7))/0x8);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xee085));class o{['worker']=null;constructor(c){var i=b;this[i(0x1ca)]=c;}['defaults'](c){return this['worker']||c();}}function l(c,d=!0x1){return new o(null);}export{l as r};
1
+ function a(){var i=['306qUOnTn','9PnbJuB','6895026qNLptb','644JZJsDK','3274509PhwDkf','2742200JxoqjM','3039508CoZBEm','781690eVwOgL','5GVSSlo','15953212Rrlgif','7qFmWYX'];a=function(){return i;};return a();}(function(c,d){var h=b,e=c();while(!![]){try{var f=-parseInt(h(0xa6))/0x1*(-parseInt(h(0x9e))/0x2)+-parseInt(h(0x9f))/0x3+-parseInt(h(0xa1))/0x4*(parseInt(h(0xa3))/0x5)+parseInt(h(0xa8))/0x6+-parseInt(h(0xa5))/0x7*(parseInt(h(0xa0))/0x8)+-parseInt(h(0xa7))/0x9*(-parseInt(h(0xa2))/0xa)+parseInt(h(0xa4))/0xb;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x8e179));class o{['worker']=null;constructor(c){this['worker']=c;}['defaults'](c){return this['worker']||c();}}function l(c,d=!0x1){return new o(null);}function b(c,d){c=c-0x9e;var e=a();var f=e[c];return f;}export{l as r};