import{create,free,memory}from"../../wasm/index.js";import{ManagedFloat64Array,setMemoryManager}from"../memory.js";let view=new Float64Array(memory.buffer);export const memoryManager={get buffer(){return memory.buffer},get view(){if(view.buffer!==memory.buffer){view=new Float64Array(memory.buffer)}return view},create:function(size){return create(size)},free:function(byteOffset,size){free(byteOffset,size)}};setMemoryManager(memoryManager);export{ManagedFloat64Array}; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjcmVhdGUiLCJmcmVlIiwibWVtb3J5IiwiTWFuYWdlZEZsb2F0NjRBcnJheSIsInNldE1lbW9yeU1hbmFnZXIiLCJ2aWV3IiwiRmxvYXQ2NEFycmF5IiwiYnVmZmVyIiwibWVtb3J5TWFuYWdlciIsInNpemUiLCJieXRlT2Zmc2V0Il0sInNvdXJjZXMiOlsiLi4vLi4vanMvd2FzbS9tZW1vcnkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3JlYXRlLCBmcmVlLCBtZW1vcnkgfSBmcm9tICcuLi8uLi93YXNtL2luZGV4LmpzJztcbmltcG9ydCB7IE1hbmFnZWRGbG9hdDY0QXJyYXksIE1lbW9yeU1hbmFnZXIsIHNldE1lbW9yeU1hbmFnZXIgfSBmcm9tICcuLi9tZW1vcnkudHMnO1xuXG5sZXQgdmlldyA9IG5ldyBGbG9hdDY0QXJyYXkobWVtb3J5LmJ1ZmZlcik7XG5cbmV4cG9ydCBjb25zdCBtZW1vcnlNYW5hZ2VyOiBNZW1vcnlNYW5hZ2VyID0ge1xuICBnZXQgYnVmZmVyKCkge1xuICAgIHJldHVybiBtZW1vcnkuYnVmZmVyO1xuICB9LFxuICBnZXQgdmlldygpIHtcbiAgICBpZiAodmlldy5idWZmZXIgIT09IG1lbW9yeS5idWZmZXIpIHtcbiAgICAgIHZpZXcgPSBuZXcgRmxvYXQ2NEFycmF5KG1lbW9yeS5idWZmZXIpO1xuICAgIH1cbiAgICByZXR1cm4gdmlldzt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