|
1
|
-
export const id=744;export const ids=[744];export const modules={512:(e,n,t)=>{e.exports=t.p+"26b23c7580ea3345d644.wasm"},363:(e,n,t)=>{let o;t.r(n),t.d(n,{default:()=>j,extract_vertices:()=>p,get_point_number:()=>h,initSync:()=>W,main_js:()=>x,selected_space_to_render_space:()=>g});let r=null;function i(){return null!==r&&0!==r.byteLength||(r=new Uint8Array(o.memory.buffer)),r}let a=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof c.encodeInto?function(e,n){return c.encodeInto(e,n)}:function(e,n){const t=c.encode(e);return n.set(t),{read:e.length,written:t.length}};let s=null;function _(){return(null===s||!0===s.buffer.detached||void 0===s.buffer.detached&&s.buffer!==o.memory.buffer)&&(s=new DataView(o.memory.buffer)),s}const u="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&u.decode();let b=null;function d(e,n){const t=n(8*e.length,8)>>>0;return(null!==b&&0!==b.byteLength||(b=new Float64Array(o.memory.buffer)),b).set(e,t/8),a=e.length,t}function f(e,n){const t=n(1*e.length,1)>>>0;return i().set(e,t/1),a=e.length,t}function g(e,n,t,r,i,c,l,s){const _=d(n,o.__wbindgen_malloc),u=a,b=f(t,o.__wbindgen_malloc),g=a;var w=f(i,o.__wbindgen_malloc),m=a,y=d(c,o.__wbindgen_malloc),p=a,h=d(l,o.__wbindgen_malloc),x=a,v=d(s,o.__wbindgen_malloc),A=a;o.selected_space_to_render_space(e,_,u,b,g,r,w,m,i,y,p,c,h,x,l,v,A,s)}let w=null;function m(e,n){const t=n(4*e.length,4)>>>0;return(null!==w&&0!==w.byteLength||(w=new Float32Array(o.memory.buffer)),w).set(e,t/4),a=e.length,t}let y=null;function p(e,n,t,r,i,c,l,s,_,u,b,g){const w=f(n,o.__wbindgen_malloc),p=a,h=d(t,o.__wbindgen_malloc),x=a,v=d(r,o.__wbindgen_malloc),A=a,W=d(i,o.__wbindgen_malloc),O=a;var j=m(c,o.__wbindgen_malloc),L=a,T=m(l,o.__wbindgen_malloc),E=a,I=m(s,o.__wbindgen_malloc),R=a,U=function(e,n){const t=n(4*e.length,4)>>>0;return(null!==y&&0!==y.byteLength||(y=new Uint32Array(o.memory.buffer)),y).set(e,t/4),a=e.length,t}(_,o.__wbindgen_malloc),D=a;o.extract_vertices(e,w,p,h,x,v,A,W,O,j,L,c,T,E,l,I,R,s,U,D,_,u,b,g)}function h(e,n,t,r,i,c,l){const s=f(e,o.__wbindgen_malloc),_=a,u=d(n,o.__wbindgen_malloc),b=a,g=d(t,o.__wbindgen_malloc),w=a,m=d(r,o.__wbindgen_malloc),y=a;return o.get_point_number(s,_,u,b,g,w,m,y,i,c,l)}function x(){o.main_js()}function v(){const e={wbg:{}};return e.wbg.__wbg_maxx_a3b1e1c3299e47bf=function(e){return e.maxX},e.wbg.__wbg_maxy_007b81ea99058122=function(e){return e.maxY},e.wbg.__wbg_minx_e03d57649d81fc8f=function(e){return e.minX},e.wbg.__wbg_miny_46aab5af597882a7=function(e){return e.minY},e.wbg.__wbg_renderheight_d030fe5a23b4c32b=function(e){return e.renderHeight},e.wbg.__wbg_renderwidth_8685762ee304f2a7=function(e){return e.renderWidth},e.wbg.__wbg_scale_d705e0de44ed2361=function(e){return e.scale},e.wbg.__wbindgen_copy_to_typed_array=function(e,n,t){var o,r;new Uint8Array(t.buffer,t.byteOffset,t.byteLength).set((o=e,r=n,o>>>=0,i().subarray(o/1,o/1+r)))},e.wbg.__wbindgen_init_externref_table=function(){const e=o.__wbindgen_export_0,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_string_get=function(e,n){const t="string"==typeof n?n:void 0;var r=null==t?0:function(e,n,t){if(void 0===t){const t=c.encode(e),o=n(t.length,1)>>>0;return i().subarray(o,o+t.length).set(t),a=t.length,o}let o=e.length,r=n(o,1)>>>0;const s=i();let _=0;for(;_<o;_++){const n=e.charCodeAt(_);if(n>127)break;s[r+_]=n}if(_!==o){0!==_&&(e=e.slice(_)),r=t(r,o,o=_+3*e.length,1)>>>0;const n=i().subarray(r+_,r+o);_+=l(e,n).written,r=t(r,o,_,1)>>>0}return a=_,r}(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a;_().setInt32(e+4,s,!0),_().setInt32(e+0,r,!0)},e.wbg.__wbindgen_throw=function(e,n){throw new Error((t=e,o=n,t>>>=0,u.decode(i().subarray(t,t+o))));var t,o},e}function A(e,n){return o=e.exports,O.__wbindgen_wasm_module=n,s=null,w=null,b=null,y=null,r=null,o.__wbindgen_start(),o}function W(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=v();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),A(new WebAssembly.Instance(e,n),e)}async function O(e){if(void 0!==o)return o;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(t(512),t.b));const n=v();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:i}=await async function(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{const t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}(await e,n);return A(r,i)}const j=O}};
|