/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.2.860"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0dbbfc51-5104-40dc-a186-b80db8032bd4",e._sentryDebugIdIdentifier="sentry-dbid-0dbbfc51-5104-40dc-a186-b80db8032bd4")})()}catch{}function r(e){return e.constructor.name==="MessagePort"}function d(e){r(e)&&e.close()}function f(e){return c(e,new Map,{type:"RELEASE"}).then(()=>{d(e)})}const i=new WeakMap;"FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const n=(i.get(e)||0)-1;i.set(e,n),n===0&&f(e)});const u=new WeakMap;function g(e,n){return u.set(e,n),e}function c(e,n,t,o){return new Promise(a=>{const s=l();n.set(s,a),e.start&&e.start(),e.postMessage(Object.assign({id:s},t),o)})}function l(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const b="OffscreenCanvas"in window;function w(e,n){const t=e.getContext("2d");if(!t){(typeof logger<"u"?logger:console).error("putImageData: canvas context is null, can't draw image data");return}const{width:o,height:a}=n;e.width=o,e.height=a,requestAnimationFrame(()=>{t?.putImageData(new ImageData(n.data,o,a),0,0)})}export{b as i,w as p,g as t};
//# sourceMappingURL=drawing-Cmey49do.js.map
