!function(){var t={78770:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o},t.exports.__esModule=!0,t.exports.default=t.exports},38498:function(t,e,r){var o=r(78770);t.exports=function(t){if(Array.isArray(t))return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},20698:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},91162:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},15558:function(t,e,r){var o=r(38498),n=r(20698),a=r(31479),i=r(91162);t.exports=function(t){return o(t)||n(t)||a(t)||i()},t.exports.__esModule=!0,t.exports.default=t.exports},31479:function(t,e,r){var o=r(78770);t.exports=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var a=e[o]={exports:{}};return t[o](a,a.exports,r),a.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t,e,o=r(15558),n=r.n(o);self.onmessage=function(r){var o=r.data,a=o.width,i=o.height,u=o.strokes,s=o.maskStrokes;if("init"===r.data.type)return t=r.data.canvas,void(e=t.getContext("2d"));if("draw"===r.data.type){e.fillStyle="rgba(0, 0, 255, 0.3)",e.fillRect(0,0,a,i),e.globalCompositeOperation="destination-out",n()(u).forEach((function(t){t.forEach((function(t){var r=t.lineWidth;e.fillStyle="rgba(0,0,0,1)",e.beginPath(),e.arc(t.x,t.y,r/2,0,2*Math.PI),e.fill()}))})),null==s||s.forEach((function(t){t.forEach((function(t){e.fillStyle="rgba(0,0,0,1)",e.beginPath(),e.arc(t.x,t.y,2,0,2*Math.PI),e.fill()}))}));var f=e.getImageData(0,0,a,i);self.postMessage({type:"done",imageData:f},[f.data.buffer])}}}()}();