painterro-1.2.66.min.js 202 KB

12
  1. var Painterro;Painterro=function(){var t={794:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HexToRGB=a,e.HexToRGBA=l,e.rgbToHex=s,e.default=void 0;var n=r(784),o=r(564);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t){var e=/^#?([a-fA-F\d]{2})([a-fA-F\d]{2})([a-fA-F\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:(e=/^#?([a-fA-F\d])([a-fA-F\d])([a-fA-F\d])$/i.exec(t))?{r:parseInt(e[1].repeat(2),16),g:parseInt(e[2].repeat(2),16),b:parseInt(e[3].repeat(2),16)}:void 0}function l(t,e){var r=a(t);return"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(e,")")}function A(t){var e=t.toString(16);return 1===e.length&&"0".concat(e)||e}function s(t,e,r){return"#".concat(A(t)).concat(A(e)).concat(A(r))}var c=function(){function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callback=r,this.main=e,this.w=180,this.h=150;var o=this.w,i=this.h;this.lightPosition=this.w-1,this.wrapper=e.wrapper.querySelector(".ptro-color-widget-wrapper"),this.input=e.wrapper.querySelector(".ptro-color-widget-wrapper .ptro-color"),this.pipetteButton=e.wrapper.querySelector(".ptro-color-widget-wrapper button.ptro-pipette"),this.closeButton=e.wrapper.querySelector(".ptro-color-widget-wrapper button.ptro-close-color-picker"),this.canvas=e.wrapper.querySelector(".ptro-color-widget-wrapper canvas"),this.ctx=this.canvas.getContext("2d"),this.canvasLight=e.wrapper.querySelector(".ptro-color-widget-wrapper .ptro-canvas-light"),this.colorRegulator=e.wrapper.querySelector(".ptro-color-widget-wrapper .ptro-color-light-regulator"),this.canvasAlpha=e.wrapper.querySelector(".ptro-color-widget-wrapper .ptro-canvas-alpha"),this.alphaRegulator=e.wrapper.querySelector(".ptro-color-widget-wrapper .ptro-color-alpha-regulator"),this.ctxLight=this.canvasLight.getContext("2d"),this.ctxAlpha=this.canvasAlpha.getContext("2d"),this.canvas.setAttribute("width","".concat(o)),this.canvas.setAttribute("height","".concat(i)),this.canvasLight.setAttribute("width","".concat(o)),this.canvasLight.setAttribute("height","".concat(20)),this.canvasAlpha.setAttribute("width","".concat(o)),this.canvasAlpha.setAttribute("height","".concat(20));var a=this.ctx.createLinearGradient(0,0,o,0);a.addColorStop(1/15,"#ff0000"),a.addColorStop(4/15,"#ffff00"),a.addColorStop(5/15,"#00ff00"),a.addColorStop(.6,"#00ffff"),a.addColorStop(.8,"#0000ff"),a.addColorStop(14/15,"#ff00ff"),this.ctx.fillStyle=a,this.ctx.fillRect(0,0,o,i);var l=this.ctx.createLinearGradient(0,0,0,i);l.addColorStop(0,"rgba(0, 0, 0, 0)"),l.addColorStop(.99,"rgba(0, 0, 0, 1)"),l.addColorStop(1,"rgba(0, 0, 0, 1)"),this.ctx.fillStyle=l,this.ctx.fillRect(0,0,o,i),this.closeButton.onclick=function(){n.close()},this.pipetteButton.onclick=function(){n.wrapper.setAttribute("hidden","true"),n.opened=!1,n.choosing=!0},this.input.onkeyup=function(){n.setActiveColor(n.input.value,!0)}}var e,r,A;return e=t,A=[{key:"html",value:function(){return'<div class="ptro-color-widget-wrapper ptro-common-widget-wrapper ptro-v-middle" hidden><div class="ptro-pallet ptro-color-main ptro-v-middle-in"><canvas></canvas><canvas class="ptro-canvas-light"></canvas><span class="ptro-color-light-regulator ptro-bordered-control"></span><canvas class="ptro-canvas-alpha"></canvas><span class="alpha-checkers"></span><span class="ptro-color-alpha-regulator ptro-bordered-control"></span><div class="ptro-colors"></div><div class="ptro-color-edit"><button type="button" class="ptro-icon-btn ptro-pipette ptro-color-control" style="float: left; margin-right: 5px"><i class="ptro-icon ptro-icon-pipette"></i></button><input class="ptro-input ptro-color" type="text" size="7"/><button type="button" class="ptro-named-btn ptro-close-color-picker ptro-color-control" >'+"".concat((0,n.tr)("close"),"</button>")+"</div></div></div>"}}],(r=[{key:"open",value:function(t,e){this.target=t.target,this.palleteColor=t.palleteColor,this.alpha=t.alpha,this.lightPosition=this.lightPosition||this.w-1,this.drawLighter(),this.colorRegulator.style.left="".concat(this.lightPosition,"px"),this.alphaRegulator.style.left="".concat(Math.round(this.alpha*this.w),"px"),this.regetColor(),this.wrapper.removeAttribute("hidden"),this.opened=!0,this.addCallback=e}},{key:"close",value:function(){this.wrapper.setAttribute("hidden","true"),this.opened=!1}},{key:"getPaletteColorAtPoint",value:function(t){var e=t.clientX-this.canvas.documentOffsetLeft,r=t.clientY-this.canvas.documentOffsetTop;r=r<1?1:r,e=(e=e<1?1:e)>this.w&&this.w-1||e,r=r>this.h&&this.h-1||r;var n=this.ctx.getImageData(e,r,1,1).data;this.palleteColor=s(n[0],n[1],n[2]),this.drawLighter(),this.regetColor()}},{key:"regetColor",value:function(){var t=this.ctxLight.getImageData(this.lightPosition,5,1,1).data;this.setActiveColor(s(t[0],t[1],t[2])),this.drawAlpher()}},{key:"regetAlpha",value:function(){var t=this.ctxAlpha.getImageData(this.alphaPosition,5,1,1).data;this.alpha=t[3]/255,this.setActiveColor(this.color,!0)}},{key:"getColorLightAtClick",value:function(t){var e=t.clientX-this.canvasLight.documentOffsetLeft;e=(e=e<1?1:e)>this.w-1&&this.w-1||e,this.lightPosition=e,this.colorRegulator.style.left="".concat(e,"px"),this.regetColor()}},{key:"getAlphaAtClick",value:function(t){var e=t.clientX-this.canvasAlpha.documentOffsetLeft;e=(e=e<1?1:e)>this.w-1&&this.w-1||e,this.alphaPosition=e,this.alphaRegulator.style.left="".concat(e,"px"),this.regetAlpha()}},{key:"handleKeyDown",value:function(t){return!(!this.opened||t.keyCode!==o.KEYS.enter)||!(!this.opened||t.keyCode!==o.KEYS.esc)&&(this.close(),!0)}},{key:"handleMouseDown",value:function(t){return this.choosing&&2!==t.button?(this.choosingActive=!0,this.handleMouseMove(t),!0):(this.choosing=!1,t.target===this.canvas&&(this.selecting=!0,this.getPaletteColorAtPoint(t)),t.target!==this.canvasLight&&t.target!==this.colorRegulator||(this.lightSelecting=!0,this.getColorLightAtClick(t)),t.target!==this.canvasAlpha&&t.target!==this.alphaRegulator||(this.alphaSelecting=!0,this.getAlphaAtClick(t)),!1)}},{key:"handleMouseMove",value:function(t){if(this.opened)this.selecting&&this.getPaletteColorAtPoint(t),this.lightSelecting&&this.getColorLightAtClick(t),this.alphaSelecting&&this.getAlphaAtClick(t);else if(this.choosingActive){var e=this.main.getScale(),r=(t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft)*e;r=(r=r<1?1:r)>this.main.size.w-1&&this.main.size.w-1||r;var n=(t.clientY-this.main.elTop()+this.main.scroller.scrollTop)*e;n=(n=n<1?1:n)>this.main.size.h-1&&this.main.size.h-1||n;var o=this.main.ctx.getImageData(r,n,1,1).data,i=s(o[0],o[1],o[2]);this.callback({alphaColor:l(i,1),lightPosition:this.w-1,alpha:1,palleteColor:i,target:this.target}),void 0!==this.addCallback&&this.addCallback({alphaColor:l(i,1),lightPosition:this.w-1,alpha:1,palleteColor:i,target:this.target})}}},{key:"handleMouseUp",value:function(){this.selecting=!1,this.lightSelecting=!1,this.choosing=!1,this.choosingActive=!1,this.alphaSelecting=!1,this.main.zoomHelper.hideZoomHelper()}},{key:"setActiveColor",value:function(t,e){try{this.input.style.color=function(t){var e=a(t);return(299*e.r+587*e.g+114*e.b)/1e3>=128?"black":"white"}(t)}catch(t){return}this.input.style["background-color"]=t,void 0===e&&(this.input.value=t),this.color=t,this.alphaColor=l(t,this.alpha),void 0!==this.callback&&this.opened&&this.callback({alphaColor:this.alphaColor,lightPosition:this.lightPosition,alpha:this.alpha,palleteColor:this.color,target:this.target}),void 0!==this.addCallback&&this.opened&&this.addCallback({alphaColor:this.alphaColor,lightPosition:this.lightPosition,alpha:this.alpha,palleteColor:this.color,target:this.target})}},{key:"drawLighter",value:function(){var t=this.ctxLight.createLinearGradient(0,0,this.w,0);t.addColorStop(0,"#ffffff"),t.addColorStop(.05,"#ffffff"),t.addColorStop(.95,this.palleteColor),t.addColorStop(1,this.palleteColor),this.ctxLight.fillStyle=t,this.ctxLight.fillRect(0,0,this.w,15)}},{key:"drawAlpher",value:function(){this.ctxAlpha.clearRect(0,0,this.w,15);var t=this.ctxAlpha.createLinearGradient(0,0,this.w,0);t.addColorStop(0,"rgba(255,255,255,0)"),t.addColorStop(.05,"rgba(255,255,255,0)"),t.addColorStop(.95,this.color),t.addColorStop(1,this.color),this.ctxAlpha.fillStyle=t,this.ctxAlpha.fillRect(0,0,this.w,15)}}])&&i(e.prototype,r),A&&i(e,A),t}();e.default=c},198:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(927);function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e}var e,r,i;return e=t,i=[{key:"buildInputControl",value:function(t,e,r,n,o){return{type:"int",title:t,titleFull:"".concat(t,"Full"),target:t,min:n,max:o,action:e,getValue:r}}},{key:"buildDropDownControl",value:function(t,e,r,n){return{type:"dropdown",title:t,titleFull:"".concat(t,"Full"),target:t,action:e,getValue:r,getAvailableValues:function(){return n.map((function(t){return{value:t,name:t.toString(),title:t.toString()}}))}}}}],(r=[{key:"buildFontSizeControl",value:function(e){var r=this,o=function(){var t=r.main.getElemByIdSafe(r.main.activeTool.controls[e].id).value;r.main.textTool.setFontSize(t),(0,n.setParam)("defaultFontSize",t)},i=function(){return r.main.textTool.fontSize};return this.main.params.availableFontSizes?t.buildDropDownControl("fontSize",o,i,this.main.params.availableFontSizes):t.buildInputControl("fontSize",o,i,1,200)}},{key:"buildEraserWidthControl",value:function(e){var r=this,o=function(){var t=r.main.getElemByIdSafe(r.main.activeTool.controls[e].id).value;r.main.primitiveTool.setEraserWidth(t),(0,n.setParam)("defaultEraserWidth",t)},i=function(){return r.main.primitiveTool.eraserWidth};return this.main.params.availableEraserWidths?t.buildDropDownControl("eraserWidth",o,i,this.main.params.availableEraserWidths):t.buildInputControl("eraserWidth",o,i,1,99)}},{key:"buildLineWidthControl",value:function(e){var r=this,o=function(){var t=r.main.getElemByIdSafe(r.main.activeTool.controls[e].id).value;r.main.primitiveTool.setLineWidth(t),(0,n.setParam)("defaultLineWidth",t)},i=function(){return r.main.primitiveTool.lineWidth};return this.main.params.availableLineWidths?t.buildDropDownControl("lineWidth",o,i,this.main.params.availableLineWidths):t.buildInputControl("lineWidth",o,i,0,99)}},{key:"buildShadowOnControl",value:function(t){var e=this;return{type:"bool",title:"shadowOn",titleFull:"shadowOnFull",target:"shadowOn",action:function(){var r=e.main.getElemByIdSafe(e.main.activeTool.controls[t].id),o=!("true"===r.getAttribute("data-value"));e.main.primitiveTool.setShadowOn(o),r.setAttribute("data-value",o?"true":"false"),(0,n.setParam)("defaultPrimitiveShadowOn",o)},getValue:function(){return e.main.primitiveTool.shadowOn}}}},{key:"buildArrowLengthControl",value:function(e){var r=this,o=function(){var t=r.main.getElemByIdSafe(r.main.activeTool.controls[e].id).value;r.main.primitiveTool.setArrowLength(t),(0,n.setParam)("defaultArrowLength",t)},i=function(){return r.main.primitiveTool.arrowLength};return this.main.params.availableArrowLengths?t.buildDropDownControl("arrowLength",o,i,this.main.params.availableArrowLengths):t.buildInputControl("arrowLength",o,i,1,99)}}])&&o(e.prototype,r),i&&o(e,i),t}();e.default=i},840:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(784),o=r(564);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e;var n={extend_top:{internalName:"extend_top",handle:function(t){r.tmpImg=t;var e=r.main.size.h,n=r.main.size.w,o=e+t.naturalHeight,i=Math.max(n,t.naturalWidth),a=r.ctx.getImageData(0,0,r.main.size.w,r.main.size.h);if(r.main.resize(i,o),r.main.clearBackground(),r.ctx.putImageData(a,0,t.naturalHeight),r.main.adjustSizeFull(),t.naturalWidth<n){var l=Math.round((n-t.naturalWidth)/2);r.main.select.placeAt(l,0,l,e,t)}else r.main.select.placeAt(0,0,0,e,t);r.worklog.captureState()}},extend_left:{internalName:"extend_left",handle:function(t){r.tmpImg=t;var e=r.main.size.h,n=r.main.size.w,o=n+t.naturalWidth,i=Math.max(e,t.naturalHeight),a=r.ctx.getImageData(0,0,r.main.size.w,r.main.size.h);if(r.main.resize(o,i),r.main.clearBackground(),r.ctx.putImageData(a,t.naturalWidth,0),r.main.adjustSizeFull(),t.naturalHeight<e){var l=Math.round((e-t.naturalHeight)/2);r.main.select.placeAt(0,l,n,l,t)}else r.main.select.placeAt(0,0,n,0,t);r.worklog.captureState()}},extend_right:{internalName:"extend_right",handle:function(t){r.tmpImg=t;var e=r.main.size.h,n=r.main.size.w,o=n+t.naturalWidth,i=Math.max(e,t.naturalHeight),a=r.ctx.getImageData(0,0,r.main.size.w,r.main.size.h);if(r.main.resize(o,i),r.main.clearBackground(),r.ctx.putImageData(a,0,0),r.main.adjustSizeFull(),t.naturalHeight<e){var l=Math.round((e-t.naturalHeight)/2);r.main.select.placeAt(n,l,0,l,t)}else r.main.select.placeAt(n,0,0,0,t);r.worklog.captureState()}},extend_down:{internalName:"extend_down",handle:function(t){r.tmpImg=t;var e=r.main.size.h,n=r.main.size.w,o=e+t.naturalHeight,i=Math.max(n,t.naturalWidth),a=r.ctx.getImageData(0,0,r.main.size.w,r.main.size.h);if(r.main.resize(i,o),r.main.clearBackground(),r.ctx.putImageData(a,0,0),r.main.adjustSizeFull(),t.naturalWidth<n){var l=Math.round((n-t.naturalWidth)/2);r.main.select.placeAt(l,e,l,0,t)}else r.main.select.placeAt(0,e,0,0,t);r.worklog.captureState()}}},o={replace_all:{internalName:"fit",handle:function(t){r.main.params.backplateImgUrl&&(r.main.params.backplateImgUrl=void 0,r.main.tabelCell.style.background="",r.main.canvas.style.backgroundColor="".concat(r.main.params.backgroundFillColor,"ff"),r.pasteOptions=Object.assign({},o,n),r.activeOption=r.pasteOptions,r.main.wrapper.querySelector(".ptro-paster-select-wrapper").remove(),r.main.wrapper.insertAdjacentHTML("beforeend",r.html()),r.init(e)),r.main.fitImage(t,r.mimetype)}},paste_over:{internalName:"over",handle:function(t){r.tmpImg=t;var e=r.main.size.h,n=r.main.size.w;if(t.naturalHeight<=e&&t.naturalWidth<=n)r.main.select.placeAt(0,0,n-t.naturalWidth,e-t.naturalHeight,t);else if(t.naturalWidth/t.naturalHeight>n/e){var o=n*(t.naturalHeight/t.naturalWidth);r.main.select.placeAt(0,0,0,e-o,t)}else{var i=e*(t.naturalWidth/t.naturalHeight);r.main.select.placeAt(0,0,n-i,0,t)}r.worklog.captureState()}}};if(this.main.params.backplateImgUrl)return this.pasteOptions=Object.assign({},o),void(this.activeOption=this.pasteOptions);this.pasteOptions=Object.assign({},o,n),this.activeOption=this.pasteOptions}var e,r,a;return e=t,a=[{key:"get",value:function(e){return e.inserter||(e.inserter=new t(e)),e.inserter}},{key:"controlObjToString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t;return r.id=(0,o.genId)(),'<button type="button" id="'.concat(t.id,'" class="ptro-selector-btn ptro-color-control ').concat(e,'">')+'<div><i class="ptro-icon ptro-icon-paste_'.concat(t.internalName,'"></i></div>')+"<div>".concat((0,n.tr)("pasteOptions.".concat(t.internalName)),"</div>")+"</button>"}}],(r=[{key:"init",value:function(t){var e=this;this.CLIP_DATA_MARKER="painterro-image-data",this.ctx=t.ctx,this.main=t,this.worklog=t.worklog,this.selector=t.wrapper.querySelector(".ptro-paster-select-wrapper"),this.cancelChoosing(),this.img=null,this.mimetype=null,this.getAvailableOptions().forEach((function(t){var r=e.pasteOptions[t];e.main.getElemByIdSafe(r.id).onclick=function(){e.loading?e.doLater=r.handle:r.handle(e.img),e.cancelChoosing()}})),this.loading=!1,this.doLater=null}},{key:"insert",value:function(t,e,r,n){this.main.ctx.drawImage(this.tmpImg,t,e,r,n),this.main.worklog.reCaptureState()}},{key:"cancelChoosing",value:function(){this.selector.setAttribute("hidden",""),this.waitChoice=!1}},{key:"loaded",value:function(t,e){this.img=t,this.mimetype=e,this.loading=!1,this.doLater&&(this.doLater(t),this.doLater=null)}},{key:"getAvailableOptions",value:function(){var t=this;return this.main.params.how_to_paste_actions?Object.keys(this.activeOption).filter((function(e){return t.main.params.how_to_paste_actions.includes(e)})):Object.keys(this.activeOption)}},{key:"handleOpen",value:function(t,e){var r=this;this.startLoading();var n=function(t){var n=new Image,o=r.main.worklog.clean&&r.main.params.replaceAllOnEmptyBackground;if(n.onload=function(){o?r.main.fitImage(n,e):r.loaded(n,e),r.finishLoading()},n.onerror=function(){"function"==typeof r.main.params.onImageFailedOpen&&r.main.params.onImageFailedOpen()},n.src=t,!o){var i=r.getAvailableOptions();1!==i.length?(r.selector.removeAttribute("hidden"),r.waitChoice=!0):r.doLater=r.activeOption[i[0]].handle}};0!==t.indexOf("data")?(0,o.imgToDataURL)(t,(function(t){n(t)}),(function(){"function"==typeof r.main.params.onImageFailedOpen&&r.main.params.onImageFailedOpen()})):n(t)}},{key:"handleKeyDown",value:function(t){return this.waitChoice&&t.keyCode===o.KEYS.esc?(this.cancelChoosing(),!0):!(!this.waitChoice||event.keyCode!==o.KEYS.enter)}},{key:"startLoading",value:function(){if(this.loading=!0,this.main.toolByName.open.buttonId){var t=this.main.getElemByIdSafe(this.main.toolByName.open.buttonId);t&&t.setAttribute("disabled","true");var e=this.main.doc.querySelector("#".concat(this.main.toolByName.open.buttonId," > i"));e&&(e.className="ptro-icon ptro-icon-loading ptro-spinning")}}},{key:"finishLoading",value:function(){if(this.main.toolByName.open.buttonId){var t=this.main.getElemByIdSafe(this.main.toolByName.open.buttonId);t&&t.removeAttribute("disabled");var e=this.main.doc.querySelector("#".concat(this.main.toolByName.open.buttonId," > i"));e&&(e.className="ptro-icon ptro-icon-open")}this.main.params.onImageLoaded&&this.main.params.onImageLoaded()}},{key:"html",value:function(){var e=this,r=this.main.params.backplateImgUrl,o="",i="";return this.getAvailableOptions().forEach((function(r){"replace_all"===r||"paste_over"===r?o+='<div class="ptro-paster-fit">\n '.concat(t.controlObjToString(e.pasteOptions[r],"ptro-selector-fit"),'\n <div class="ptro-paster-wrapper-label">\n ').concat((0,n.tr)("pasteOptions.".concat(e.pasteOptions[r].internalName)),"\n </div></div>"):i+=t.controlObjToString(e.pasteOptions[r],"ptro-selector-extend")})),'<div class="ptro-paster-select-wrapper" hidden><div class="ptro-paster-select ptro-v-middle"><div class="ptro-in ptro-v-middle-in">'+' <div class="ptro-paster-wrappers-fits">\n '.concat(o,"\n ").concat(r||!i?"":'\n <div class="ptro-paster-select-wrapper-extends">\n <div class="ptro-paster-extends-items">\n '.concat(i,'\n </div>\n <div class="ptro-paster-wrapper-label">').concat((0,n.tr)("pasteOptions.extend"),"</div>\n </div>"),"\n </div>\n </div></div></div>")}}])&&i(e.prototype,r),a&&i(e,a),t}();e.default=a},165:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.default=void 0;var o=B(r(891));r(735),r(757),r(996);var i=B(r(505)),a=B(r(390)),l=r(564),A=B(r(335)),s=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=m();if(e&&e.has(t))return e.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}r.default=t,e&&e.set(t,r);return r}(r(794)),c=r(927),p=r(784),h=B(r(9)),u=B(r(997)),d=B(r(724)),g=B(r(840)),f=B(r(624)),C=B(r(198));function m(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return m=function(){return t},t}function B(t){return t&&t.__esModule?t:{default:t}}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var b=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(0,l.addDocumentObjectHelpers)(),this.params=(0,c.setDefaults)(e),this.controlBuilder=new C.default(this),this.getElemByIdSafe=function(t){if(!t)throw new Error("Can't get element with id=".concat(t,", please create an issue here, we will easily fx it: https://github.com/devforth/painterro/issues/"));return document.getElementById(t)},this.colorWidgetState={line:{target:"line",palleteColor:this.params.activeColor,alpha:this.params.activeColorAlpha,alphaColor:this.params.activeAlphaColor},fill:{target:"fill",palleteColor:this.params.activeFillColor,alpha:this.params.activeFillColorAlpha,alphaColor:this.params.activeFillAlphaColor},bg:{target:"bg",palleteColor:this.params.backgroundFillColor,alpha:this.params.backgroundFillColorAlpha,alphaColor:this.params.backgroundFillAlphaColor}},this.currentBackground=this.colorWidgetState.bg.alphaColor,this.currentBackgroundAlpha=this.colorWidgetState.bg.alpha,this.tools=[{name:"select",hotkey:"s",activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.select.activate(),r.select.draw()},close:function(){r.select.close(),r.toolContainer.style.cursor="auto"},eventListner:function(){return r.select}},{name:"crop",hotkey:"c",activate:function(){r.initText&&r.wrapper.click(),r.select.doCrop(),r.closeActiveTool()}},{name:"pixelize",hotkey:"p",activate:function(){r.initText&&r.wrapper.click(),r.select.doPixelize(),r.closeActiveTool()}},{name:"line",hotkey:"l",controls:[{type:"color",title:"lineColor",target:"line",titleFull:"lineColorFull",action:function(){r.colorPicker.open(r.colorWidgetState.line)}},this.controlBuilder.buildLineWidthControl(1),this.controlBuilder.buildShadowOnControl(2)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("line")},eventListner:function(){return r.primitiveTool}},{name:"arrow",hotkey:"a",controls:[{type:"color",title:"lineColor",target:"line",titleFull:"lineColorFull",action:function(){r.colorPicker.open(r.colorWidgetState.line)}},this.controlBuilder.buildArrowLengthControl(1),this.controlBuilder.buildShadowOnControl(2)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("arrow")},eventListner:function(){return r.primitiveTool}},{name:"rect",controls:[{type:"color",title:"lineColor",titleFull:"lineColorFull",target:"line",action:function(){r.colorPicker.open(r.colorWidgetState.line)}},{type:"color",title:"fillColor",titleFull:"fillColorFull",target:"fill",action:function(){r.colorPicker.open(r.colorWidgetState.fill)}},this.controlBuilder.buildLineWidthControl(2),this.controlBuilder.buildShadowOnControl(3)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("rect")},eventListner:function(){return r.primitiveTool}},{name:"ellipse",controls:[{type:"color",title:"lineColor",titleFull:"lineColorFull",target:"line",action:function(){r.colorPicker.open(r.colorWidgetState.line)}},{type:"color",title:"fillColor",titleFull:"fillColorFull",target:"fill",action:function(){r.colorPicker.open(r.colorWidgetState.fill)}},this.controlBuilder.buildLineWidthControl(2),this.controlBuilder.buildShadowOnControl(3)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("ellipse")},eventListner:function(){return r.primitiveTool}},{name:"brush",hotkey:"b",controls:[{type:"color",title:"lineColor",target:"line",titleFull:"lineColorFull",action:function(){r.colorPicker.open(r.colorWidgetState.line)}},this.controlBuilder.buildLineWidthControl(1)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("brush")},eventListner:function(){return r.primitiveTool}},{name:"eraser",controls:[this.controlBuilder.buildEraserWidthControl(0)],activate:function(){r.initText&&r.wrapper.click(),r.toolContainer.style.cursor="crosshair",r.primitiveTool.activate("eraser")},eventListner:function(){return r.primitiveTool}},{name:"text",hotkey:"t",controls:[{type:"color",title:"textColor",titleFull:"textColorFull",target:"line",action:function(){r.colorPicker.open(r.colorWidgetState.line,(function(t){r.textTool.setFontColor(t.alphaColor)}))}},this.controlBuilder.buildFontSizeControl(1),{type:"dropdown",title:"fontName",titleFull:"fontNameFull",target:"fontName",action:function(){var t=r.getElemByIdSafe(r.activeTool.controls[2].id).value;r.textTool.setFont(t)},getValue:function(){return r.textTool.getFont()},getAvailableValues:function(){return r.textTool.getFonts()}},{type:"bool",title:"fontIsBold",titleFull:"fontIsBoldFull",target:"fontIsBold",action:function(){var t=r.getElemByIdSafe(r.activeTool.controls[3].id),e=!("true"===t.getAttribute("data-value"));r.textTool.setFontIsBold(e),(0,c.setParam)("defaultFontBold",e),t.setAttribute("data-value",e?"true":"false")},getValue:function(){return r.textTool.isBold}},{type:"bool",title:"fontIsItalic",titleFull:"fontIsItalicFull",target:"fontIsItalic",action:function(){var t=r.getElemByIdSafe(r.activeTool.controls[4].id),e=!("true"===t.getAttribute("data-value"));r.textTool.setFontIsItalic(e),(0,c.setParam)("defaultFontItalic",e),t.setAttribute("data-value",e?"true":"false")},getValue:function(){return r.textTool.isItalic}},{type:"bool",title:"fontStrokeAndShadow",titleFull:"fontStrokeAndShadowFull",target:"fontStrokeAndShadow",action:function(){var t=r.getElemByIdSafe(r.activeTool.controls[5].id),e=!("true"===t.getAttribute("data-value"));r.textTool.setStrokeOn(e),(0,c.setParam)("defaultTextStrokeAndShadow",e),t.setAttribute("data-value",e?"true":"false")},getValue:function(){return r.textTool.strokeOn}}],activate:function(){r.initText&&r.wrapper.click(),r.textTool.setFontColor(r.colorWidgetState.line.alphaColor),r.toolContainer.style.cursor="crosshair"},close:function(){r.textTool.close()},eventListner:function(){return r.textTool}},{name:"rotate",hotkey:"r",activate:function(){r.initText&&r.wrapper.click();var t=r.size.w,e=r.size.h,n=r.ctx.getImageData(0,0,r.size.w,r.size.h),o=r.doc.createElement("canvas");o.width=t,o.height=e,o.getContext("2d").putImageData(n,0,0),r.resize(e,t),r.ctx.save(),r.ctx.translate(e/2,t/2),r.ctx.rotate(90*Math.PI/180),r.ctx.drawImage(o,-t/2,-e/2),r.adjustSizeFull(),r.ctx.restore(),r.worklog.captureState(),r.closeActiveTool()}},{name:"resize",activate:function(){r.initText&&r.wrapper.click(),r.resizer.open()},close:function(){r.resizer.close()},eventListner:function(){return r.resizer}},{name:"undo",activate:function(){r.initText&&r.wrapper.click(),r.worklog.undoState()},eventListner:function(){return r.resizer}},{name:"redo",activate:function(){r.initText&&r.wrapper.click(),r.worklog.redoState()},eventListner:function(){return r.resizer}},{name:"settings",activate:function(){r.initText&&r.wrapper.click(),r.settings.open()},close:function(){r.settings.close()},eventListner:function(){return r.settings}},{name:"zoomout",activate:function(){r.initText&&r.wrapper.click(),r.zoomButtonActive=!0;var t=r.canvas.getBoundingClientRect(),e={wheelDelta:-120,clientX:t.right/2,clientY:t.bottom/2};r.curCord=[e.clientX-r.elLeft()+r.scroller.scrollLeft,e.clientY-r.elTop()+r.scroller.scrollTop];var n=r.getScale();r.curCord=[r.curCord[0]*n,r.curCord[1]*n],r.zoomImage(e)}},{name:"zoomin",activate:function(){r.initText&&r.wrapper.click(),r.zoomButtonActive=!0;var t=r.canvas.getBoundingClientRect(),e={wheelDelta:120,clientX:t.right/2,clientY:t.bottom/2};r.curCord=[e.clientX-r.elLeft()+r.scroller.scrollLeft,e.clientY-r.elTop()+r.scroller.scrollTop];var n=r.getScale();r.curCord=[r.curCord[0]*n,r.curCord[1]*n],r.zoomImage(e)}},{name:"save",right:!0,hotkey:!!this.params.saveByEnter&&"enter",activate:function(){r.initText&&r.wrapper.click(),r.save(),r.closeActiveTool()}},{name:"open",right:!0,activate:function(){r.initText&&r.wrapper.click(),r.closeActiveTool();var t=r.getElemByIdSafe(r.fileInputId);t.onchange=function(e){var n=e.target.files||e.dataTransfer.files;n.length&&(r.openFile(n[0]),t.value="")},t.click()}},{name:"close",hotkey:!!this.params.hideByEsc&&"esc",right:!0,activate:function(){r.initText&&r.wrapper.click();var t=function(){r.closeActiveTool(),r.close(),r.hide()};r.params.onBeforeClose?r.params.onBeforeClose(r.hasUnsaved,t):t()}}],this.isMobile=o.default.any,this.toolByName={},this.toolByKeyCode={},this.tools.forEach((function(t){if(r.toolByName[t.name]=t,t.hotkey){if(!l.KEYS[t.hotkey])throw new Error("Key code for ".concat(t.hotkey," not defined in KEYS"));r.toolByKeyCode[l.KEYS[t.hotkey]]=t}})),this.activeTool=void 0,this.zoom=!1,this.ratioRelation=void 0,this.id=this.params.id,this.saving=!1,void 0===this.id?(this.id=(0,l.genId)(),this.holderId=(0,l.genId)(),this.holderEl=document.createElement("div"),this.holderEl.id=this.holderId,this.holderEl.className="ptro-holder-wrapper",document.body.appendChild(this.holderEl),this.holderEl.innerHTML="<div id='".concat(this.id,'\' class="ptro-holder"></div>'),this.baseEl=this.getElemByIdSafe(this.id)):(this.baseEl=this.getElemByIdSafe(this.id),this.holderEl=null);var n="",m="";this.tools.filter((function(t){return-1===r.params.hiddenTools.indexOf(t.name)})).forEach((function(t){var e=(0,l.genId)();t.buttonId=e;var r=t.hotkey?" [".concat(t.hotkey.toUpperCase(),"]"):"",o='<button type="button" class="ptro-icon-btn ptro-color-control" title="'.concat((0,p.tr)("tools.".concat(t.name))).concat(r,'" ')+'id="'.concat(e,'" >')+'<i class="ptro-icon ptro-icon-'.concat(t.name,'"></i></button>');t.right?m+=o:n+=o})),this.inserter=g.default.get(this);var B='<div class="ptro-crp-el">'+"".concat(i.default.code()).concat(u.default.code(),"</div>");this.loadedName="",this.doc=document,this.wrapper=this.doc.createElement("div"),this.wrapper.id="".concat(this.id,"-wrapper"),this.wrapper.className="ptro-wrapper",this.wrapper.innerHTML='<div class="ptro-scroller"><div class="ptro-center-table"><div class="ptro-center-tablecell">'+'<canvas id="'.concat(this.id,'-canvas"></canvas>')+'<div class="ptro-substrate"></div>'.concat(B)+"</div></div>"+"</div>".concat(s.default.html()+h.default.html()+d.default.html()+f.default.html(this)+this.inserter.html()),this.baseEl.appendChild(this.wrapper),this.scroller=this.doc.querySelector("#".concat(this.id,"-wrapper .ptro-scroller")),this.bar=this.doc.createElement("div"),this.bar.id="".concat(this.id,"-bar"),this.bar.className="ptro-bar ptro-color-main",this.fileInputId=(0,l.genId)(),this.bar.innerHTML="<div>".concat(n)+'<span class="ptro-tool-controls"></span><span class="ptro-info"></span>'+'<span class="ptro-bar-right">'.concat(m,"</span>")+'<input id="'.concat(this.fileInputId,'" type="file" style="display: none" value="none" accept="image/x-png,image/png,image/gif,image/jpeg" /></div>'),this.isMobile&&(this.bar.style["overflow-x"]="auto"),this.baseEl.appendChild(this.bar);var v=this.doc.createElement("style");if(v.type="text/css",v.innerHTML=this.params.styles,this.baseEl.appendChild(v),this.saveBtn=this.baseEl.querySelector("#".concat(this.toolByName.save.buttonId)),this.toolByName.save.buttonId&&this.saveBtn&&this.saveBtn.setAttribute("disabled","true"),this.body=this.doc.body,this.info=this.doc.querySelector("#".concat(this.id,"-bar .ptro-info")),this.canvas=this.doc.querySelector("#".concat(this.id,"-canvas")),this.ctx=this.canvas.getContext("2d"),this.toolControls=this.doc.querySelector("#".concat(this.id,"-bar .ptro-tool-controls")),this.toolContainer=this.doc.querySelector("#".concat(this.id,"-wrapper .ptro-crp-el")),this.substrate=this.doc.querySelector("#".concat(this.id,"-wrapper .ptro-substrate")),this.zoomHelper=new h.default(this),this.zoomButtonActive=!1,this.select=new i.default(this,(function(t){[r.toolByName.crop,r.toolByName.pixelize].forEach((function(e){r.setToolEnabled(e,t)}))})),this.params.backplateImgUrl){this.tabelCell=this.canvas.parentElement,this.tabelCell.style.backgroundImage="url(".concat(this.params.backplateImgUrl,")"),this.tabelCell.style.backgroundRepeat="no-repeat",this.tabelCell.style.backgroundPosition="center center";var w=new Image;w.onload=function(){r.resize(w.naturalWidth,w.naturalHeight),r.adjustSizeFull(),r.worklog.captureState(),r.tabelCell.style.backgroundSize="".concat(window.getComputedStyle(r.substrate).width," ").concat(window.getComputedStyle(r.substrate).height)},w.src=this.params.backplateImgUrl}this.resizer=new d.default(this),this.settings=new f.default(this),this.primitiveTool=new A.default(this),this.primitiveTool.setShadowOn(this.params.defaultPrimitiveShadowOn),this.primitiveTool.setLineWidth(this.params.defaultLineWidth),this.primitiveTool.setArrowLength(this.params.defaultArrowLength),this.primitiveTool.setEraserWidth(this.params.defaultEraserWidth),this.primitiveTool.setPixelSize(this.params.defaultPixelSize),this.hasUnsaved=!1,this.worklog=new a.default(this,(function(t){r.saveBtn&&!t.initial&&(r.saveBtn.removeAttribute("disabled"),r.hasUnsaved=!0),r.setToolEnabled(r.toolByName.undo,!t.first),r.setToolEnabled(r.toolByName.redo,!t.last),r.params.onChange&&r.params.onChange.call(r,{image:r.imageSaver,operationsDone:r.worklog.current.prevCount,realesedMemoryOperations:r.worklog.clearedCount})})),this.inserter.init(this),this.textTool=new u.default(this),this.colorPicker=new s.default(this,(function(t){r.colorWidgetState[t.target]=t,r.doc.querySelector("#".concat(r.id," .ptro-color-btn[data-id='").concat(t.target,"']")).style["background-color"]=t.alphaColor;var e=(0,s.HexToRGB)(t.palleteColor);void 0!==e&&(t.palleteColor=(0,s.rgbToHex)(e.r,e.g,e.b),"line"===t.target?((0,c.setParam)("activeColor",t.palleteColor),(0,c.setParam)("activeColorAlpha",t.alpha)):"fill"===t.target?((0,c.setParam)("activeFillColor",t.palleteColor),(0,c.setParam)("activeFillColorAlpha",t.alpha)):"bg"===t.target?((0,c.setParam)("backgroundFillColor",t.palleteColor),(0,c.setParam)("backgroundFillColorAlpha",t.alpha)):"stroke"===t.target&&((0,c.setParam)("textStrokeColor",t.palleteColor),(0,c.setParam)("textStrokeColorAlpha",t.alpha)))})),this.defaultTool=this.toolByName[this.params.defaultTool]||this.toolByName.select,this.tools.filter((function(t){return-1===r.params.hiddenTools.indexOf(t.name)})).forEach((function(t){r.getBtnEl(t).onclick=function(){if(t!==r.defaultTool||r.activeTool!==t){var e=r.activeTool;r.closeActiveTool(!0),e!==t?r.setActiveTool(t,e):r.setActiveTool(r.defaultTool,e)}},r.getBtnEl(t).ontouch=r.getBtnEl(t).onclick})),this.getBtnEl(this.defaultTool).click(),this.imageSaver={asDataURL:function(t,e){var n=t;return void 0===n&&(n=r.loadedImageType?r.loadedImageType:"image/png"),r.getAsUri(n,e)},asBlob:function(t,e){var n=t;void 0===n&&(n=r.loadedImageType?r.loadedImageType:"image/png");for(var o=r.getAsUri(n,e),i=atob(o.split(",")[1]),a=new ArrayBuffer(i.length),l=new Uint8Array(a),A=0;A<i.length;A+=1)l[A]=i.charCodeAt(A);return new Blob([a],{type:n})},getOriginalMimeType:function(){return r.loadedImageType},hasAlphaChannel:function(){for(var t=r.ctx.getImageData(0,0,r.canvas.width,r.canvas.height).data,e=3,n=t.length;e<n;e+=4)if(t[e]<255)return!0;return!1},suggestedFileName:function(t){var e=t;return void 0===e&&(e="png"),"".concat(r.loadedName||"image-".concat((0,l.genId)()),".").concat(e)},getWidth:function(){return r.size.w},getHeight:function(){return r.size.h}},this.initEventHandlers(),this.hide(),this.zoomFactor=1}var e,r,n;return e=t,(r=[{key:"setToolEnabled",value:function(t,e){if(t.buttonId){var r=this.getElemByIdSafe(t.buttonId);e?r.removeAttribute("disabled"):r.setAttribute("disabled","true")}}},{key:"getAsUri",value:function(t,e){var r=e;return void 0===r&&(r=.92),this.canvas.toDataURL(t,r)}},{key:"getBtnEl",value:function(t){return this.getElemByIdSafe(t.buttonId)}},{key:"save",value:function(){var t=this;if(this.saving)return this;this.saving=!0;var e=this.baseEl.querySelector("#".concat(this.toolByName.save.buttonId)),r=this.baseEl.querySelector("#".concat(this.toolByName.save.buttonId," > i"));return this.toolByName.save.buttonId&&e&&e.setAttribute("disabled","true"),this.hasUnsaved=!1,r&&(r.className="ptro-icon ptro-icon-loading ptro-spinning"),void 0!==this.params.saveHandler?this.params.saveHandler(this.imageSaver,(function(e){!0===e&&t.hide(),r&&(r.className="ptro-icon ptro-icon-save"),t.saving=!1})):((0,l.logError)("No saveHandler defined, please check documentation"),r&&(r.className="ptro-icon ptro-icon-save"),this.saving=!1),this}},{key:"close",value:function(){void 0!==this.params.onClose&&this.params.onClose()}},{key:"closeActiveTool",value:function(t){if(void 0!==this.activeTool){void 0!==this.activeTool.close&&this.activeTool.close(),this.toolControls.innerHTML="";var e=this.getBtnEl(this.activeTool);e&&(e.className=this.getBtnEl(this.activeTool).className.replace(" ptro-color-active-control","")),this.activeTool=void 0}!0!==t&&this.setActiveTool(this.defaultTool)}},{key:"handleToolEvent",value:function(t,e){if(this.activeTool&&this.activeTool.eventListner){var r=this.activeTool.eventListner();if(r[t])return r[t](e)}return!1}},{key:"handleClipCopyEvent",value:function(t){var e=!1,r="image/png";if(t.keyCode===l.KEYS.c&&(t.ctrlKey||t.metaKey))if(this.inserter.waitChoice||this.select.imagePlaced||!this.select.shown)this.canvas.toBlob((function(t){navigator.clipboard.write([new ClipboardItem(v({},r,t))])}),r,1),e=!0;else{var n=this.select.area,o=n.bottoml[0]-n.topl[0],i=n.bottoml[1]-n.topl[1],a=this.doc.createElement("canvas");a.width=o,a.height=i,a.getContext("2d").drawImage(this.canvas,-n.topl[0],-n.topl[1]),a.toBlob((function(t){navigator.clipboard.write([new ClipboardItem(v({},r,t))])}),r,1),e=!0}return e}},{key:"zoomImage",value:function(t,e){var r=t.wheelDelta,n=t.clientX,o=t.clientY,i=r;void 0!==e&&(i=1);var a=1;this.size.w>this.wrapper.documentClientWidth&&(a=Math.min(a,this.wrapper.documentClientWidth/this.size.w)),this.size.h>this.wrapper.documentClientHeight&&(a=Math.min(a,this.wrapper.documentClientHeight/this.size.h)),!this.zoom&&this.zoomFactor>a&&(this.zoomFactor=a),this.zoomFactor+=.2*Math.sign(i),this.zoomFactor<a?(this.zoom=!1,this.zoomFactor=a):this.zoom=!0,this.adjustSizeFull(),this.select.adjustPosition(),this.zoom&&(this.scroller.scrollLeft=this.curCord[0]/this.getScale()-(n-this.wrapper.documentOffsetLeft),this.scroller.scrollTop=this.curCord[1]/this.getScale()-(o-this.wrapper.documentOffsetTop))}},{key:"initEventHandlers",value:function(){var t=this;this.documentHandlers={mousedown:function(e){t.shown&&(!t.worklog.empty||-1===e.target.className.indexOf("ptro-crp-el")&&-1===e.target.className.indexOf("ptro-icon")&&-1===e.target.className.indexOf("ptro-named-btn")||t.clearBackground(),!0!==t.colorPicker.handleMouseDown(e)&&t.handleToolEvent("handleMouseDown",e))},touchstart:function(e){if(1===e.touches.length)e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY,t.documentHandlers.mousedown(e);else if(2===e.touches.length){var r=(0,l.distance)({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY},{x:e.changedTouches[1].clientX,y:e.changedTouches[1].clientY});t.lastFingerDist=r}},touchend:function(e){e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY,t.documentHandlers.mouseup(e)},touchmove:function(e){if(1===e.touches.length)e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY,t.documentHandlers.mousemove(e);else if(2===e.touches.length){var r=(0,l.distance)({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY},{x:e.changedTouches[1].clientX,y:e.changedTouches[1].clientY});(r>t.lastFingerDist||r<t.lastFingerDist)&&t.documentHandlers.mousewheel(e,1,!0),t.lastFingerDist=r,e.stopPropagation(),t.zoomButtonActive||e.preventDefault()}},mousemove:function(e){if(t.shown){t.handleToolEvent("handleMouseMove",e),t.colorPicker.handleMouseMove(e),t.zoomHelper.handleMouseMove(e),t.curCord=[e.clientX-t.elLeft()+t.scroller.scrollLeft,e.clientY-t.elTop()+t.scroller.scrollTop];var r=t.getScale();t.curCord=[t.curCord[0]*r,t.curCord[1]*r],"input"!==e.target.tagName.toLowerCase()&&"button"!==e.target.tagName.toLowerCase()&&"i"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(t.zoomButtonActive||e.preventDefault())}},mouseup:function(e){t.shown&&(t.handleToolEvent("handleMouseUp",e),t.colorPicker.handleMouseUp(e))},mousewheel:function(e,r,n){t.shown&&(void 0!==n?n:e.ctrlKey)&&(t.zoomImage(e,r),e.preventDefault())},keydown:function(e){if(event.target===document.body&&t.shown){if(t.colorPicker.handleKeyDown(e))return;if(t.handleClipCopyEvent(e))return;var r=window.event?event:e;if(t.handleToolEvent("handleKeyDown",r))return;r.keyCode===l.KEYS.y&&r.ctrlKey||r.keyCode===l.KEYS.z&&r.ctrlKey&&r.shiftKey?(t.worklog.redoState(),e.preventDefault(),t.params.userRedo&&t.params.userRedo.call()):r.keyCode===l.KEYS.z&&r.ctrlKey&&(t.worklog.undoState(),e.preventDefault(),t.params.userUndo&&t.params.userUndo.call()),t.toolByKeyCode[event.keyCode]&&(t.getBtnEl(t.toolByKeyCode[event.keyCode]).click(),e.stopPropagation(),e.preventDefault()),t.saveBtn&&r.keyCode===l.KEYS.s&&r.ctrlKey&&(t.initText&&t.wrapper.click(),t.save(),r.preventDefault())}},paste:function(e){if(t.initText&&t.wrapper.click(),t.shown){var r=(e.clipboardData||e.originalEvent.clipboardData).items;Object.keys(r).forEach((function(n){var o=r[n];"file"===o.kind&&"image"===o.type.split("/")[0]&&(t.openFile(o.getAsFile()),e.preventDefault(),e.stopPropagation())}))}},dragover:function(e){if(t.shown){var r=e.target.classList[0];"ptro-crp-el"!==r&&"ptro-bar"!==r||(t.bar.className="ptro-bar ptro-color-main ptro-bar-dragover"),e.preventDefault()}},dragleave:function(){t.shown&&(t.bar.className="ptro-bar ptro-color-main")},drop:function(e){if(t.shown){t.bar.className="ptro-bar ptro-color-main",e.preventDefault();var r=e.dataTransfer.files[0];if(r)t.openFile(r);else{var n=e.dataTransfer.getData("text/html"),o=/src.*?=['"](.+?)['"]/.exec(n);t.inserter.handleOpen(o[1])}}}},this.windowHandlers={resize:function(){t.shown&&(t.adjustSizeFull(),t.syncToolElement())}},this.listenersInstalled=!1}},{key:"attachEventHandlers",value:function(){var t=this;this.listenersInstalled||(Object.keys(this.documentHandlers).forEach((function(e){t.doc.addEventListener(e,t.documentHandlers[e],{passive:!1})})),Object.keys(this.windowHandlers).forEach((function(e){window.addEventListener(e,t.windowHandlers[e],{passive:!1})})),this.listenersInstalled=!0)}},{key:"removeEventHandlers",value:function(){var t=this;this.listenersInstalled&&(Object.keys(this.documentHandlers).forEach((function(e){t.doc.removeEventListener(e,t.documentHandlers[e])})),Object.keys(this.windowHandlers).forEach((function(e){window.removeEventListener(e,t.windowHandlers[e])})),this.listenersInstalled=!1)}},{key:"elLeft",value:function(){return this.toolContainer.documentOffsetLeft+this.scroller.scrollLeft}},{key:"elTop",value:function(){return this.toolContainer.documentOffsetTop+this.scroller.scrollTop}},{key:"fitImage",value:function(t,e){this.loadedImageType=e,this.resize(t.naturalWidth,t.naturalHeight),this.ctx.drawImage(t,0,0),this.zoomFactor=this.wrapper.documentClientHeight/this.size.h-.2,this.adjustSizeFull(),this.worklog.captureState()}},{key:"loadImage",value:function(t,e){this.inserter.handleOpen(t,e)}},{key:"show",value:function(t,e){return this.shown=!0,this.scrollWidth=(0,l.getScrollbarWidth)(),this.isMobile&&(this.origOverflowY=this.body.style["overflow-y"],this.params.fixMobilePageReloader&&(this.body.style["overflow-y"]="hidden")),this.baseEl.removeAttribute("hidden"),this.holderEl&&this.holderEl.removeAttribute("hidden"),"string"==typeof t?(this.loadedName=(0,l.trim)((t.substring(t.lastIndexOf("/")+1)||"").replace(/\..+$/,"")),this.loadImage(t,e)):!1!==t&&this.clear(),this.attachEventHandlers(),this}},{key:"hide",value:function(){return this.isMobile&&(this.body.style["overflow-y"]=this.origOverflowY),this.shown=!1,this.baseEl.setAttribute("hidden",""),this.holderEl&&this.holderEl.setAttribute("hidden",""),this.removeEventHandlers(),void 0!==this.params.onHide&&this.params.onHide(),this}},{key:"openFile",value:function(t){if(t){this.loadedName=(0,l.trim)((t.name||"").replace(/\..+$/,""));var e=(window.URL?window.URL:window.webkitURL).createObjectURL(t);this.loadImage(e,t.type)}}},{key:"getScale",value:function(){return this.canvas.getAttribute("width")/this.canvas.offsetWidth}},{key:"adjustSizeFull",value:function(){var t=this.wrapper.documentClientWidth/this.wrapper.documentClientHeight;if(!1===this.zoom)if(this.size.w>this.wrapper.documentClientWidth||this.size.h>this.wrapper.documentClientHeight){var e=t<this.size.ratio;this.ratioRelation=e,e?(this.canvas.style.width="".concat(this.wrapper.clientWidth,"px"),this.canvas.style.height="auto"):(this.canvas.style.width="auto",this.canvas.style.height="".concat(this.wrapper.clientHeight,"px")),this.scroller.style.overflow="hidden"}else this.scroller.style.overflow="hidden",this.canvas.style.width="auto",this.canvas.style.height="auto",this.ratioRelation=0;else this.scroller.style.overflow="scroll",this.canvas.style.width="".concat(this.size.w*this.zoomFactor,"px"),this.canvas.style.height="".concat(this.size.h*this.zoomFactor,"px"),this.ratioRelation=0;this.syncToolElement(),this.select.draw()}},{key:"resize",value:function(t,e){this.info.innerHTML="".concat(t,"<span>x</span>").concat(e,"<br>").concat((this.originalMime||"png").replace("image/","")),this.size={w:t,h:e,ratio:t/e},this.canvas.setAttribute("width",this.size.w),this.canvas.setAttribute("height",this.size.h)}},{key:"syncToolElement",value:function(){var t=Math.round(this.canvas.documentClientWidth),e=this.canvas.offsetLeft,r=Math.round(this.canvas.documentClientHeight),n=this.canvas.offsetTop;this.toolContainer.style.left="".concat(e,"px"),this.toolContainer.style.width="".concat(t,"px"),this.toolContainer.style.top="".concat(n,"px"),this.toolContainer.style.height="".concat(r,"px"),this.substrate.style.left="".concat(e,"px"),this.substrate.style.width="".concat(t,"px"),this.substrate.style.top="".concat(n,"px"),this.substrate.style.height="".concat(r,"px")}},{key:"clear",value:function(){var t=this,e="fill"===this.params.defaultSize.width?this.wrapper.clientWidth:this.params.defaultSize.width,r="fill"===this.params.defaultSize.height?this.wrapper.clientHeight:this.params.defaultSize.height;if(this.resize(e,r),this.clearBackground(),this.worklog.captureState(!0),this.worklog.clean=!0,this.syncToolElement(),this.adjustSizeFull(),this.params.initText&&this.worklog.empty){this.ctx.lineWidth=3,this.ctx.strokeStyle="#fff";var n=this.wrapper.querySelectorAll(".init-text");n.length>0&&n.forEach((function(t){t.remove()})),this.initText=document.createElement("div"),this.initText.classList.add("init-text"),this.wrapper.append(this.initText),this.initText.innerHTML='<div style="pointer-events: none;position:absolute;top:50%;width:100%;left: 50%; transform: translate(-50%, -50%)">'+"".concat(this.params.initText,"</div>"),this.initText.style.left="0",this.initText.style.top="0",this.initText.style.right="0",this.initText.style.bottom="0",this.initText.style.pointerEvents="none",this.initText.style["text-align"]="center",this.initText.style.position="absolute",this.initText.style.color=this.params.initTextColor,this.initText.style["font-family"]=this.params.initTextStyle.split(/ (.+)/)[1],this.initText.style["font-size"]=this.params.initTextStyle.split(/ (.+)/)[0],this.wrapper.addEventListener("click",(function(){t.initText.remove(),t.initText=null}),{once:!0})}}},{key:"clearBackground",value:function(){this.ctx.beginPath(),this.ctx.clearRect(0,0,this.size.w,this.size.h),this.ctx.rect(0,0,this.size.w,this.size.h),this.ctx.fillStyle=this.currentBackground,this.ctx.fill()}},{key:"setActiveTool",value:function(t,e){var r=this;this.activeTool=t,this.previousActiveTool=e,this.zoomButtonActive=!1;var n=this.getBtnEl(this.activeTool);n&&(n.className+=" ptro-color-active-control");var o="";(t.controls||[]).forEach((function(t){if(t.id=(0,l.genId)(),t.title&&(o+='<span class="ptro-tool-ctl-name" title="'.concat((0,p.tr)(t.titleFull),'">').concat((0,p.tr)(t.title),"</span>")),"btn"===t.type)o+='<button type="button" '.concat(t.hint?'title="'.concat((0,p.tr)(t.hint),'"'):"",' class="ptro-color-control ').concat(t.icon?"ptro-icon-btn":"ptro-named-btn",'" ')+"id=".concat(t.id,">").concat(t.icon?'<i class="ptro-icon ptro-icon-'.concat(t.icon,'"></i>'):"")+"<p>".concat(t.name||"","</p></button>");else if("color"===t.type)o+='<button type="button" id='.concat(t.id," data-id='").concat(t.target,"' ")+'style="background-color: '.concat(r.colorWidgetState[t.target].alphaColor,'" ')+'class="color-diwget-btn ptro-color-btn ptro-bordered-btn ptro-color-control"></button><span class="ptro-btn-color-checkers-bar"></span>';else if("int"===t.type)o+="<input id=".concat(t.id,' class="ptro-input" type="number" min="').concat(t.min,'" max="').concat(t.max,'" ')+"data-id='".concat(t.target,"'/>");else if("bool"===t.type)o+="<button id=".concat(t.id,' class="ptro-input ptro-check" data-value="false" type="button" ')+"data-id='".concat(t.target,"'></button>");else if("dropdown"===t.type){var e="";t.getAvailableValues().forEach((function(t){e+="<option ".concat(t.extraStyle?"style='".concat(t.extraStyle,"'"):"")+" value='".concat(t.value,"' ").concat(t.title?"title='".concat(t.title,"'"):"",">").concat(t.name,"</option>")})),o+="<select id=".concat(t.id,' class="ptro-input" ')+"data-id='".concat(t.target,"'>").concat(e,"</select>")}})),this.toolControls.innerHTML=o,(t.controls||[]).forEach((function(t){"int"===t.type?(r.getElemByIdSafe(t.id).value=t.getValue(),r.getElemByIdSafe(t.id).oninput=t.action):"bool"===t.type?(r.getElemByIdSafe(t.id).setAttribute("data-value",t.getValue()?"true":"false"),r.getElemByIdSafe(t.id).onclick=t.action):"dropdown"===t.type?(r.getElemByIdSafe(t.id).onchange=t.action,r.getElemByIdSafe(t.id).value=t.getValue()):r.getElemByIdSafe(t.id).onclick=t.action})),t.activate()}}])&&w(e.prototype,r),n&&w(e,n),t}();e.default=function(t){return new b(t)}},927:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setParam=function(t,e){s[t]=e;try{localStorage.setItem(A,JSON.stringify(s))}catch(t){console.warn("Unable save to localstorage: ".concat(t))}},e.setDefaults=function(t){!function(){try{s=JSON.parse(localStorage.getItem(A))}catch(t){console.warn("Unable get from localStorage: ".concat(t))}s||(s={})}();var e=t||{};e.language&&(0,i.activate)(e.language);e.activeColor=s.activeColor||e.activeColor||"#ff0000",e.activeColorAlpha=c(s.activeColorAlpha,e.activeColorAlpha,1),e.activeAlphaColor=(0,n.HexToRGBA)(e.activeColor,e.activeColorAlpha),e.activeFillColor=s.activeFillColor||e.activeFillColor||"#000000",e.activeFillColorAlpha=c(s.activeFillColorAlpha,e.activeFillColorAlpha,0),e.activeFillAlphaColor=(0,n.HexToRGBA)(e.activeFillColor,e.activeFillColorAlpha),e.replace_all_on_empty_background=e.initText=e.initText||null,e.initTextColor=e.initTextColor||"#808080",e.initTextStyle=e.initTextStyle||"26px 'Open Sans', sans-serif",e.defaultLineWidth=s.defaultLineWidth||e.defaultLineWidth||5,e.defaultPrimitiveShadowOn=c(s.defaultPrimitiveShadowOn,e.defaultPrimitiveShadowOn,!0),e.defaultArrowLength=s.defaultArrowLength||e.defaultArrowLength||32,e.defaultEraserWidth=c(s.defaultEraserWidth,e.defaultEraserWidth,5),e.defaultFontSize=c(s.defaultFontSize,e.defaultFontSize,24),e.defaultFontBold=c(s.defaultFontBold,e.defaultFontBold,!1),e.defaultFontItalic=c(s.defaultFontItalic,e.defaultFontItalic,!1),e.replaceAllOnEmptyBackground=c(e.replaceAllOnEmptyBackground,!0),e.backgroundFillColor=s.backgroundFillColor||e.backgroundFillColor||"#ffffff",e.backgroundFillColorAlpha=e.backplateImgUrl?0:c(s.backgroundFillColorAlpha,e.backgroundFillColorAlpha,1),e.backgroundFillAlphaColor=(0,n.HexToRGBA)(e.backgroundFillColor,e.backgroundFillColorAlpha),e.textStrokeColor=s.textStrokeColor||e.textStrokeColor||"#ffffff",e.textStrokeColorAlpha=c(s.textStrokeColorAlpha,e.textStrokeColorAlpha,1),e.textStrokeAlphaColor=(0,n.HexToRGBA)(e.textStrokeColor,e.textStrokeColorAlpha),e.shadowScale=c(e.shadowScale,1),e.defaultTextStrokeAndShadow=c(s.defaultTextStrokeAndShadow,e.defaultTextStrokeAndShadow,!0),e.worklogLimit=c(e.worklogLimit,100),e.defaultTool=e.defaultTool||"select",e.hiddenTools=e.hiddenTools||["redo","zoomin","zoomout"];var r=e.hiddenTools.indexOf(e.defaultTool);r>-1&&((0,o.logError)("Can't hide default tool '".concat(e.defaultTool,"', please change default tool to another to hide it")),e.hiddenTools.splice(r,1));if(e.pixelizePixelSize=s.pixelizePixelSize||e.pixelizePixelSize||"20%",e.colorScheme=e.colorScheme||{},e.colorScheme.main=e.colorScheme.main||"#fff",e.colorScheme.control=e.colorScheme.control||"#fff",e.colorScheme.controlShadow=e.colorScheme.controlShadow||"0px 0px 3px 1px #bbb",e.colorScheme.controlContent=e.colorScheme.controlContent||"#000000",e.colorScheme.hoverControl=e.colorScheme.hoverControl||e.colorScheme.control,e.colorScheme.hoverControlContent=e.colorScheme.hoverControlContent||"#1a3d67",e.colorScheme.toolControlNameColor=e.colorScheme.toolControlNameColor||"rgba(0,0,0,0.07)",e.colorScheme.activeControl=e.colorScheme.activeControl||"#7485B1",e.colorScheme.activeControlContent=e.colorScheme.activeControlContent||e.colorScheme.main,e.colorScheme.inputBorderColor=e.colorScheme.inputBorderColor||e.colorScheme.main,e.colorScheme.inputBackground=e.colorScheme.inputBackground||"#ffffff",e.colorScheme.inputShadow=e.colorScheme.inputShadow||"inset 0 0 4px 1px #ccc",e.colorScheme.inputText=e.colorScheme.inputText||e.colorScheme.activeControl,e.colorScheme.backgroundColor=e.colorScheme.backgroundColor||"#999999",e.colorScheme.dragOverBarColor=e.colorScheme.dragOverBarColor||"#899dff",e.defaultSize=e.defaultSize||"fill",e.defaultPixelSize=e.defaultPixelSize||4,e.extraFonts=e.extraFonts||[],e.toolbarHeightPx=e.toolbarHeightPx||40,e.buttonSizePx=e.buttonSizePx||32,"object"!==l(e.defaultSize))if("fill"===e.defaultSize)e.defaultSize={width:"fill",height:"fill"};else{var a=e.defaultSize.split("x");e.defaultSize={width:(0,o.trim)(a[0]),height:(0,o.trim)(a[1])}}if(e.toolbarPosition=e.toolbarPosition||"bottom",e.fixMobilePageReloader=void 0===e.fixMobilePageReloader||e.fixMobilePageReloader,e.translation){var p=e.translation.name;i.default.get().addTranslation(p,e.translation.strings),i.default.get().activate(p)}return e.styles=".ptro-color-main{\n background-color:".concat(e.colorScheme.main,";\n color:").concat(e.colorScheme.controlContent,";\n }\n .ptro-color-control{\n box-shadow:").concat(e.colorScheme.controlShadow,";\n background-color:").concat(e.colorScheme.control,";\n color:").concat(e.colorScheme.controlContent,"}\n .ptro-tool-ctl-name{\n background-color:").concat(e.colorScheme.toolControlNameColor,";\n }\n button.ptro-color-control:hover:not(.ptro-color-active-control):not([disabled]){\n background-color: ").concat(e.colorScheme.hoverControl,";\n color:").concat(e.colorScheme.hoverControlContent,"} \n .ptro-bordered-control{border-color: ").concat(e.colorScheme.activeControl,"}\n input.ptro-input,.ptro-check,input.ptro-input:focus,select.ptro-input,select.ptro-input:focus {\n border: 1px solid ").concat(e.colorScheme.inputBorderColor,";\n background-color: ").concat(e.colorScheme.inputBackground,";\n color: ").concat(e.colorScheme.inputText,";\n box-shadow:").concat(e.colorScheme.inputShadow,";\n }\n .ptro-bar-dragover{background-color:").concat(e.colorScheme.dragOverBarColor,"}\n .ptro-color,.ptro-bordered-btn{\n border: 1px solid ").concat(e.colorScheme.inputBorderColor,";\n }\n .ptro-color-control:active:enabled {\n background-color: ").concat(e.colorScheme.activeControl,";\n color: ").concat(e.colorScheme.activeControlContent,"}\n .ptro-color-active-control{\n background-color: ").concat(e.colorScheme.activeControl,";\n color:").concat(e.colorScheme.activeControlContent,"}\n .ptro-wrapper{\n background-color:").concat(e.colorScheme.backgroundColor,";\n bottom:").concat("top"===e.toolbarPosition?"0":e.toolbarHeightPx,"px;\n top:").concat("top"===e.toolbarPosition?e.toolbarHeightPx:"0","px;\n }\n .ptro-icon-btn {\n height: ").concat(e.buttonSizePx,"px;\n width: ").concat(e.buttonSizePx,"px;\n margin: 0 0 0 ").concat((e.toolbarHeightPx-e.buttonSizePx)/2,"px;\n }\n .ptro-bar-right {\n margin-right: ").concat((e.toolbarHeightPx-e.buttonSizePx)/2,"px;\n }\n .ptro-bar {\n height: ").concat(e.toolbarHeightPx,"px;\n ").concat("top"===e.toolbarPosition?"top":"bottom",": 0;\n }"),e};var n=r(794),o=r(564),i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==l(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=n?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(784));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var A="painterro-data",s={};function c(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=0;n<e.length;n+=1)if(void 0!==e[n])return e[n]}},335:function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ctx=e.ctx,this.el=e.toolContainer,this.main=e,this.helperCanvas=document.createElement("canvas"),this.canvas=e.canvas}var e,n,o;return e=t,(n=[{key:"activate",value:function(t){this.type=t,this.state={},this.ctx.lineJoin="line"===t||"brush"===t||"eraser"===t||"arrow"===t?"round":"miter"}},{key:"setLineWidth",value:function(t){if(!"".concat(t).match(/^\d+$/))throw Error('WARN: STR "'.concat(t,'" is not an int'));this.lineWidth=+t}},{key:"setShadowOn",value:function(t){this.shadowOn=t}},{key:"setArrowLength",value:function(t){this.arrowLength=t}},{key:"setEraserWidth",value:function(t){this.eraserWidth=t}},{key:"handleMouseDown",value:function(t){this.activate(this.type);var e=t.target.classList[0];this.ctx.lineWidth=this.lineWidth,this.ctx.strokeStyle=this.main.colorWidgetState.line.alphaColor,this.ctx.fillStyle=this.main.colorWidgetState.fill.alphaColor;var r=this.main.getScale();if(this.ctx.lineCap="round","ptro-crp-el"===e||"ptro-zoomer"===e)if(this.tmpData=this.ctx.getImageData(0,0,this.main.size.w,this.main.size.h),"brush"===this.type||"eraser"===this.type){this.state.cornerMarked=!0;var n=[t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft,t.clientY-this.main.elTop()+this.main.scroller.scrollTop],o={x:n[0]*r,y:n[1]*r};this.points=[o],this.drawBrushPath()}else this.state.cornerMarked=!0,this.centerCord=[t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft,t.clientY-this.main.elTop()+this.main.scroller.scrollTop],this.centerCord=[this.centerCord[0]*r,this.centerCord[1]*r]}},{key:"drawBrushPath",value:function(){var t,e=this,r=this.points,n=this.ctx.globalCompositeOperation,o="eraser"===this.type;t=this.main.colorWidgetState.line.alphaColor;for(var i=1!==this.main.currentBackgroundAlpha,a=1;a<=(o&&i?2:1);a+=1)if(o&&(this.ctx.globalCompositeOperation=1===a&&i?"destination-out":n,t=1===a&&i?"rgba(0,0,0,1)":this.main.currentBackground),1===r.length)this.ctx.beginPath(),this.ctx.lineWidth=0,this.ctx.fillStyle=t,this.ctx.arc(this.points[0].x,this.points[0].y,this.lineWidth/2,this.lineWidth/2,0,2*Math.PI),this.ctx.fill(),this.ctx.closePath();else{this.ctx.beginPath(),"eraser"===this.type?this.ctx.lineWidth=this.eraserWidth:this.ctx.lineWidth=this.lineWidth,this.ctx.strokeStyle=t,this.ctx.fillStyle=this.main.colorWidgetState.fill.alphaColor,this.ctx.moveTo(this.points[0].x,this.points[0].y);var l=void 0;r.slice(1).forEach((function(t){e.ctx.lineTo(t.x,t.y),l=t})),l&&this.ctx.moveTo(l.x,l.y),this.ctx.stroke(),this.ctx.closePath()}this.ctx.globalCompositeOperation=n}},{key:"handleMouseMove",value:function(t){var e=this.ctx;if(this.state.cornerMarked){this.ctx.putImageData(this.tmpData,0,0),this.curCord=[t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft,t.clientY-this.main.elTop()+this.main.scroller.scrollTop];var r=this.main.getScale();if(this.curCord=[this.curCord[0]*r,this.curCord[1]*r],"brush"===this.type||"eraser"===this.type){var n={x:this.curCord[0],y:this.curCord[1]};this.points.push(n),this.drawBrushPath()}else if("line"===this.type){if(t.ctrlKey||t.shiftKey){var o=180*Math.atan(-(this.curCord[1]-this.centerCord[1])/(this.curCord[0]-this.centerCord[0]))/Math.PI;if(Math.abs(o)<22.5)this.curCord[1]=this.centerCord[1];else if(Math.abs(o)>67.5)this.curCord[0]=this.centerCord[0];else{var i=(Math.abs(this.curCord[0]-this.centerCord[0])-Math.abs(this.centerCord[1]-this.curCord[1]))/2;this.curCord[0]-=i*(this.centerCord[0]<this.curCord[0]?1:-1),this.curCord[1]-=i*(this.centerCord[1]>this.curCord[1]?1:-1)}}e.beginPath(),e.moveTo(this.centerCord[0],this.centerCord[1]),e.lineTo(this.curCord[0],this.curCord[1]),e.closePath();var a=e.shadowColor;this.shadowOn&&(e.shadowColor="rgba(0,0,0,0.7)",e.shadowBlur=this.lineWidth,e.shadowOffsetX=this.lineWidth/2,e.shadowOffsetY=this.lineWidth/2),e.stroke(),e.shadowColor=a}else if("arrow"===this.type){var l=180*Math.atan(-(this.curCord[1]-this.centerCord[1])/(this.curCord[0]-this.centerCord[0]))/Math.PI;if(t.ctrlKey||t.shiftKey)if(Math.abs(l)<22.5)this.curCord[1]=this.centerCord[1];else if(Math.abs(l)>67.5)this.curCord[0]=this.centerCord[0];else{var A=(Math.abs(this.curCord[0]-this.centerCord[0])-Math.abs(this.centerCord[1]-this.curCord[1]))/2;this.curCord[0]-=A*(this.centerCord[0]<this.curCord[0]?1:-1),this.curCord[1]-=A*(this.centerCord[1]>this.curCord[1]?1:-1)}this.curCord[0]<this.centerCord[0]&&(l=180+l),this.ctx.beginPath();var s=this.ctx.lineCap,c=this.ctx.fillStyle;this.ctx.fillStyle=this.main.colorWidgetState.line.alphaColor,this.ctx.lineCap="square";var p,h,u,d=Math.min(this.arrowLength,.9*Math.sqrt(Math.pow(this.centerCord[0]-this.curCord[0],2)+Math.pow(this.centerCord[1]-this.curCord[1],2))),g=this.centerCord[0],f=this.centerCord[1],C=this.curCord[0],m=this.curCord[1],B=this.curCord[0],v=this.curCord[1];p=Math.atan2(m-f,C-g),h=d*Math.cos(p)+B,u=d*Math.sin(p)+v,this.ctx.moveTo(h,u),p+=1/3*(2*Math.PI),h=d*Math.cos(p)+B,u=d*Math.sin(p)+v,this.ctx.lineTo(h,u);var w=B+(h-B)/3,b=v+(u-v)/3;e.lineTo(w,b),e.lineTo(this.centerCord[0],this.centerCord[1]),p+=1/3*(2*Math.PI);var x=B+((h=d*Math.cos(p)+B)-B)/3,y=v+((u=d*Math.sin(p)+v)-v)/3;e.lineTo(x,y),e.lineTo(h,u),e.closePath();var I=e.shadowColor;this.shadowOn&&(e.shadowColor="rgba(0,0,0,0.7)",e.shadowBlur=Math.log(d)*this.main.params.shadowScale,e.shadowOffsetX=Math.log10(d),e.shadowOffsetY=Math.log10(d)),e.fill(),e.lineCap=s,e.fillStyle=c,e.shadowColor=I}else if("rect"===this.type){e.beginPath();var k=[this.centerCord[0],this.centerCord[1]],S=this.curCord[0]-this.centerCord[0],E=this.curCord[1]-this.centerCord[1];if(t.ctrlKey||t.shiftKey){var z=Math.min(Math.abs(S),Math.abs(E));S=z*Math.sign(S),E=z*Math.sign(E)}var Q=this.lineWidth/2;S<0&&(k[0]+=S,S=-S),E<0&&(k[1]+=E,E=-E),this.ctx.rect(k[0]+Q,k[1]+Q,S-this.lineWidth,E-this.lineWidth),this.ctx.fill();var T=e.shadowColor;this.shadowOn&&(e.shadowColor="rgba(0,0,0,0.7)",e.shadowBlur=this.lineWidth,e.shadowOffsetX=this.lineWidth/2,e.shadowOffsetY=this.lineWidth/2),this.lineWidth&&this.ctx.strokeRect(k[0],k[1],S,E),e.shadowColor=T,this.ctx.closePath()}else if("ellipse"===this.type){this.ctx.beginPath();var F=this.centerCord[0],M=this.centerCord[1],P=this.curCord[0]-F,D=this.curCord[1]-M;if(t.ctrlKey||t.shiftKey){var W=Math.min(Math.abs(P),Math.abs(D));P=W*Math.sign(P),D=W*Math.sign(D)}var j=Math.abs(P),L=Math.abs(D),Y=Math.min(F,F+P),H=Math.min(M,M+D);this.ctx.save();var R,O=1,N=1,U=j/2,G=L/2;j>L?(N=j/L,R=U):(O=L/j,R=G),this.ctx.scale(1/O,1/N),this.ctx.arc((Y+U)*O,(H+G)*N,R,0,2*Math.PI),this.ctx.restore(),this.ctx.fill();var J=e.shadowColor;this.shadowOn&&(e.shadowColor="rgba(0,0,0,0.7)",e.shadowBlur=this.lineWidth,e.shadowOffsetX=this.lineWidth/2,e.shadowOffsetY=this.lineWidth/2),e.stroke(),e.shadowColor=J,this.ctx.beginPath()}}}},{key:"handleMouseUp",value:function(){this.state.cornerMarked&&(this.state.cornerMarked=!1,this.main.worklog.captureState())}},{key:"setPixelSize",value:function(t){this.pixelSize=t}}])&&r(e.prototype,n),o&&r(e,o),t}();e.default=n},724:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(784),o=r(564);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e,this.wrapper=e.wrapper.querySelector(".ptro-resize-widget-wrapper"),this.inputW=e.wrapper.querySelector(".ptro-resize-widget-wrapper .ptro-resize-width-input"),this.inputH=e.wrapper.querySelector(".ptro-resize-widget-wrapper .ptro-resize-heigth-input"),this.inputWLimit=1e4,this.inputHLimit=13e3,this.linkButton=e.wrapper.querySelector(".ptro-resize-widget-wrapper button.ptro-link"),this.linkButtonIcon=e.wrapper.querySelector(".ptro-resize-widget-wrapper button.ptro-link i"),this.closeButton=e.wrapper.querySelector(".ptro-resize-widget-wrapper button.ptro-close"),this.scaleButton=e.wrapper.querySelector(".ptro-resize-widget-wrapper button.ptro-scale"),this.resizeButton=e.wrapper.querySelector(".ptro-resize-widget-wrapper button.ptro-resize"),this.linked=!0,this.closeButton.onclick=function(){r.startClose()},this.scaleButton.onclick=function(){if(t.validationZeroValue(r.newH,r.newW)){var e=r.main.size.w,n=r.main.size.h,o=r.main.canvas.toDataURL();r.main.resize(r.newW,r.newH),r.main.ctx.save(),r.main.ctx.scale(r.newW/e,r.newH/n);var i=new Image;i.onload=function(){r.main.ctx.drawImage(i,0,0),r.main.adjustSizeFull(),r.main.ctx.restore(),r.main.worklog.captureState(),r.startClose()},i.src=o}},this.resizeButton.onclick=function(){if(t.validationZeroValue(r.newH,r.newW)){var e=r.main.canvas.toDataURL();r.main.resize(r.newW,r.newH),r.main.clearBackground();var n=new Image;n.onload=function(){r.main.ctx.drawImage(n,0,0),r.main.adjustSizeFull(),r.main.worklog.captureState(),r.startClose()},n.src=e}},this.linkButton.onclick=function(){r.linked=!r.linked,r.linked?r.linkButtonIcon.className="ptro-icon ptro-icon-linked":r.linkButtonIcon.className="ptro-icon ptro-icon-unlinked"},this.inputW.oninput=function(){var t=Number(r.inputW.value);if(r.validationWidth(t),r.linked){var e=r.main.size.ratio;r.newH=Math.round(r.newW/e),r.validationHeight(r.newH),r.inputH.value=r.newH}},this.inputH.oninput=function(){var t=Number(r.inputH.value);if(r.validationHeight(t),r.linked){var e=r.main.size.ratio;r.newW=Math.round(r.newH*e),r.validationWidth(r.newW),r.inputW.value=+r.newW}}}var e,r,a;return e=t,a=[{key:"validationEmptyValue",value:function(t){return""!==t||"0"!==t}},{key:"validationZeroValue",value:function(){for(var t=!0,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){t=!(0===e)&&t})),t}},{key:"html",value:function(){return'<div class="ptro-resize-widget-wrapper ptro-common-widget-wrapper ptro-v-middle" hidden><div class="ptro-resize-widget ptro-color-main ptro-v-middle-in"><div style="display: inline-block"><table><tr>'+'<td class="ptro-label ptro-resize-table-left">'.concat((0,n.tr)("width"),"</td>")+'<td><input class="ptro-input ptro-resize-width-input" type="number" min="0" max="3000" step="1"/></td></tr><tr>'+'<td class="ptro-label ptro-resize-table-left">'.concat((0,n.tr)("height"),"</td>")+'<td><input class="ptro-input ptro-resize-heigth-input" type="number" min="0" max="3000" step="1"/></td></tr></table></div><div class="ptro-resize-link-wrapper">'+'<button type="button" class="ptro-icon-btn ptro-link ptro-color-control" title="'.concat((0,n.tr)("keepRatio"),'">')+'<i class="ptro-icon ptro-icon-linked" style="font-size: 18px;"></i></button></div><div></div><div style="margin-top: 40px;"><button type="button" class="ptro-named-btn ptro-resize ptro-color-control">'+"".concat((0,n.tr)("resizeResize"),"</button>")+'<button type="button" class="ptro-named-btn ptro-scale ptro-color-control">'+"".concat((0,n.tr)("resizeScale"),"</button>")+'<button type="button" class="ptro-named-btn ptro-close ptro-color-control">'+"".concat((0,n.tr)("cancel"),"</button>")+"</div></div></div>"}}],(r=[{key:"validationWidthValue",value:function(t){return t<=this.inputWLimit}},{key:"validationHeightValue",value:function(t){return t<=this.inputHLimit}},{key:"validationHeight",value:function(e){if(!this.validationHeightValue(e))return this.inputH.value=this.inputHLimit,void(this.newH=this.inputHLimit);this.newH=e,t.validationEmptyValue(e)?this.newH=e:(this.inputH.value=0,this.newH=0)}},{key:"validationWidth",value:function(e){if(!this.validationWidthValue(e))return this.inputW.value=this.inputWLimit,void(this.newW=this.inputWLimit);this.newW=e,t.validationEmptyValue(e)?this.newW=e:(this.inputW.value="0",this.newW=0)}},{key:"open",value:function(){this.wrapper.removeAttribute("hidden"),this.opened=!0,this.newW=this.main.size.w,this.newH=this.main.size.h,this.inputW.value=+this.newW,this.inputH.value=+this.newH}},{key:"close",value:function(){this.wrapper.setAttribute("hidden","true"),this.opened=!1}},{key:"startClose",value:function(){this.main.closeActiveTool()}},{key:"handleKeyDown",value:function(t){return t.keyCode===o.KEYS.enter||t.keyCode===o.KEYS.esc&&(this.startClose(),!0)}}])&&i(e.prototype,r),a&&i(e,a),t}();e.default=a},505:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(564);function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e,this.canvas=e.canvas,this.wrapper=e.wrapper,this.ctx=e.ctx,this.areaionCallback=r,this.shown=!1,this.area={el:e.toolContainer,rect:document.querySelector("#".concat(e.id," .ptro-crp-rect"))},this.imagePlaced=!1,this.areaionCallback(!1)}var e,r,i;return e=t,i=[{key:"code",value:function(){return'<div class="ptro-crp-rect" hidden><div class="ptro-crp-l select-handler"></div><div class="ptro-crp-r select-handler"></div><div class="ptro-crp-t select-handler"></div><div class="ptro-crp-b select-handler"></div><div class="ptro-crp-tl select-handler"></div><div class="ptro-crp-tr select-handler"></div><div class="ptro-crp-bl select-handler"></div><div class="ptro-crp-br select-handler"></div></div>'}}],(r=[{key:"activate",value:function(){this.area.activated=!0,this.areaionCallback(!1)}},{key:"doCrop",value:function(){var t=this.ctx.getImageData(0,0,this.main.size.w,this.main.size.h);this.main.resize(this.area.bottoml[0]-this.area.topl[0],this.area.bottoml[1]-this.area.topl[1]),this.main.ctx.putImageData(t,-this.area.topl[0],-this.area.topl[1]),this.main.adjustSizeFull(),this.main.worklog.captureState()}},{key:"doPixelize",value:function(){var t=this.area.topl,e=[this.area.bottoml[0]-t[0],this.area.bottoml[1]-t[1]];if(this.pixelizePixelSize=this.main.params.pixelizePixelSize,"%"===this.pixelizePixelSize.slice(-1)?this.pixelSize=Math.min(e[0],e[1])/(100/this.pixelizePixelSize.slice(0,-1)):"px"===this.pixelizePixelSize.slice(-2).toLowerCase()?this.pixelSize=this.pixelizePixelSize.slice(0,-2):this.pixelSize=this.pixelizePixelSize,this.pixelSize<2&&(this.pixelSize=2),e[1]<e[0]){this.pixelSizeY=this.pixelSize;var r=Math.round(e[0]/this.pixelSizeY);this.pixelSizeX=1*e[0]/r}else{this.pixelSizeX=this.pixelSize;var n=Math.round(e[1]/this.pixelSizeX);this.pixelSizeY=1*e[1]/n}for(var o=[],i=[e[0]/this.pixelSizeX,e[1]/this.pixelSizeY],a=0;a<i[0];a+=1){for(var l=[],A=0;A<i[1];A+=1)l.push([0,0,0,0,0]);o.push(l)}for(var s=this.ctx.getImageData(t[0],t[1],e[0],e[1]),c=0;c<e[0];c+=1)for(var p=0;p<e[1];p+=1){var h=Math.floor(c/this.pixelSizeX),u=Math.floor(p/this.pixelSizeY),d=4*(p*e[0]+c);o[h][u][0]+=s.data[d],o[h][u][1]+=s.data[d+1],o[h][u][2]+=s.data[d+2],o[h][u][3]+=s.data[d+3],o[h][u][4]+=1}for(var g=0;g<i[0];g+=1)for(var f=0;f<i[1];f+=1){var C=o[g][f][4];this.ctx.fillStyle="rgba(\n".concat(Math.round(o[g][f][0]/C),", \n").concat(Math.round(o[g][f][1]/C),", \n").concat(Math.round(o[g][f][2]/C),", \n").concat(Math.round(o[g][f][3]/C),")");var m=t[0]+g*this.pixelSizeX,B=t[1]+f*this.pixelSizeY;this.ctx.fillRect(m,B,this.pixelSizeX,this.pixelSizeY)}this.main.worklog.captureState()}},{key:"doClearArea",value:function(){this.ctx.beginPath(),this.ctx.clearRect(this.area.topl[0],this.area.topl[1],this.area.bottoml[0]-this.area.topl[0],this.area.bottoml[1]-this.area.topl[1]),this.ctx.rect(this.area.topl[0],this.area.topl[1],this.area.bottoml[0]-this.area.topl[0],this.area.bottoml[1]-this.area.topl[1]),this.ctx.fillStyle=this.main.currentBackground,this.ctx.fill(),this.main.worklog.captureState()}},{key:"selectAll",value:function(){this.setLeft(0),this.setRight(0),this.setBottom(0),this.setTop(0),this.show(),this.reCalcCropperCords(),this.area.activated&&this.areaionCallback(!this.imagePlaced&&this.area.rect.clientWidth>0&&this.area.rect.clientHeight>0)}},{key:"getScale",value:function(){return this.canvas.clientWidth/this.canvas.getAttribute("width")}},{key:"reCalcCropperCords",value:function(){var t=this.getScale();this.area.topl=[Math.round((this.rectLeft()-this.main.elLeft())/t),Math.round((this.rectTop()-this.main.elTop())/t)],this.area.bottoml=[Math.round(this.area.topl[0]+(this.area.rect.clientWidth+2)/t),Math.round(this.area.topl[1]+(this.area.rect.clientHeight+2)/t)]}},{key:"adjustPosition",value:function(){if(this.shown){var t=this.getScale();this.setLeft(this.area.topl[0]*t),this.setTop(this.area.topl[1]*t),this.setRight(0),this.setRight(this.canvas.clientWidth-this.area.bottoml[0]*t),this.setBottom(this.canvas.clientHeight-this.area.bottoml[1]*t)}}},{key:"placeAt",value:function(t,e,r,n,o){this.main.closeActiveTool(!0),this.main.setActiveTool(this.main.toolByName.select);var i=this.getScale();this.setLeft(t*i),this.setTop(e*i),this.setRight(r*i),this.setBottom(n*i);var a=document.createElement("canvas");a.width=o.naturalWidth,a.height=o.naturalHeight;var l=a.getContext("2d");l.drawImage(o,0,0),this.placedData=a.toDataURL("image/png");var A=1e3/Math.max(o.naturalWidth,o.naturalHeight);A>=1?this.placedDataLow=this.placedData:(a.width=o.naturalWidth*A,a.height=o.naturalHeight*A,l.scale(A,A),l.drawImage(o,0,0),this.placedDataLow=a.toDataURL("image/png")),this.main.select.area.rect.style["background-image"]="url(".concat(this.placedData,")"),this.show(),this.reCalcCropperCords(),this.imagePlaced=!0,this.placedRatio=o.naturalWidth/o.naturalHeight}},{key:"finishPlacing",value:function(){this.imagePlaced=!1,this.main.select.area.rect.style["background-image"]="none",this.main.inserter.insert(this.area.topl[0],this.area.topl[1],this.area.bottoml[0]-this.area.topl[0],this.area.bottoml[1]-this.area.topl[1])}},{key:"cancelPlacing",value:function(){this.imagePlaced=!1,this.main.select.area.rect.style["background-image"]="none",this.hide(),this.main.worklog.undoState()}},{key:"handleKeyDown",value:function(t){if(this.main.inserter.handleKeyDown(t))return!0;if(this.shown&&this.imagePlaced){if(t.keyCode===n.KEYS.enter)return this.finishPlacing(),!0;if(t.keyCode===n.KEYS.esc)return this.cancelPlacing(),!0}else{if(this.shown&&t.keyCode===n.KEYS.del)return this.doClearArea(),!0;if(t.keyCode===n.KEYS.a&&t.ctrlKey)return this.selectAll(),event.preventDefault(),!0;if(t.keyCode===n.KEYS.esc&&this.shown)return this.hide(),!0}return!1}},{key:"handleMouseDown",value:function(t){var e=this,r=t.target.classList[0],n={"ptro-crp-el":function(){if(e.area.activated){e.imagePlaced&&e.finishPlacing();var r=t.clientX-e.main.elLeft()+e.main.scroller.scrollLeft,n=t.clientY-e.main.elTop()+e.main.scroller.scrollTop;e.setLeft(r),e.setTop(n),e.setRight(e.area.el.clientWidth-r),e.setBottom(e.area.el.clientHeight-n),e.reCalcCropperCords(),e.area.resizingB=!0,e.area.resizingR=!0,e.hide()}},"ptro-crp-rect":function(){e.area.moving=!0,e.area.xHandle=t.clientX-e.rectLeft()+e.main.scroller.scrollLeft,e.area.yHandle=t.clientY-e.rectTop()+e.main.scroller.scrollTop},"ptro-crp-tr":function(){e.area.resizingT=!0,e.area.resizingR=!0},"ptro-crp-br":function(){e.area.resizingB=!0,e.area.resizingR=!0},"ptro-crp-bl":function(){e.area.resizingB=!0,e.area.resizingL=!0},"ptro-crp-tl":function(){e.area.resizingT=!0,e.area.resizingL=!0},"ptro-crp-t":function(){e.area.resizingT=!0},"ptro-crp-r":function(){e.area.resizingR=!0},"ptro-crp-b":function(){e.area.resizingB=!0},"ptro-crp-l":function(){e.area.resizingL=!0}};r in n&&(n[r](),this.imagePlaced&&(this.main.select.area.rect.style["background-image"]="url(".concat(this.placedDataLow,")")))}},{key:"setLeft",value:function(t){this.left=t,this.area.rect.style.left="".concat(t,"px")}},{key:"setRight",value:function(t){this.right=t,this.area.rect.style.right="".concat(t,"px")}},{key:"setTop",value:function(t){this.top=t,this.area.rect.style.top="".concat(t,"px")}},{key:"setBottom",value:function(t){this.bottom=t,this.area.rect.style.bottom="".concat(t,"px")}},{key:"handleMouseMove",value:function(t){if(this.area.activated)if(this.area.moving){var e=t.clientX-this.main.elLeft()-this.area.xHandle+this.main.scroller.scrollLeft;e<0?e=0:e+this.area.rect.clientWidth>this.area.el.clientWidth-2&&(e=this.area.el.clientWidth-this.area.rect.clientWidth-2);var r=e-this.left;this.setLeft(e),this.setRight(this.right-r);var o=t.clientY-this.main.elTop()-this.area.yHandle+this.main.scroller.scrollTop;o<0?o=0:o+this.area.rect.clientHeight>this.area.el.clientHeight-2&&(o=this.area.el.clientHeight-this.area.rect.clientHeight-2);var i=o-this.top;this.setTop(o),this.setBottom(this.bottom-i),this.reCalcCropperCords()}else{var a=!1;if(this.area.resizingL){a=!0;var l=this.fixCropperLeft(t.clientX+this.main.scroller.scrollLeft);this.setLeft(l-this.main.elLeft()),this.reCalcCropperCords()}if(this.area.resizingR){a=!0;var A=this.fixCropperRight(t.clientX+this.main.scroller.scrollLeft);this.setRight(this.area.el.clientWidth+this.main.elLeft()-A),this.reCalcCropperCords()}if(this.area.resizingT){a=!0;var s=this.fixCropperTop(t.clientY+this.main.scroller.scrollTop);this.setTop(s-this.main.elTop()),this.reCalcCropperCords()}if(this.area.resizingB){a=!0;var c=this.fixCropperBottom(t.clientY+this.main.scroller.scrollTop);this.setBottom(this.area.el.clientHeight+this.main.elTop()-c),this.reCalcCropperCords()}!this.imagePlaced||t.ctrlKey||t.shiftKey||(this.area.resizingT&&(this.area.resizingL?this.leftKeepRatio():this.rightKeepRatio(),this.topKeepRatio(),this.reCalcCropperCords()),this.area.resizingB&&(this.area.resizingL?this.leftKeepRatio():this.rightKeepRatio(),this.bottomKeepRatio(),this.reCalcCropperCords()),this.area.resizingL&&(this.area.resizingT?this.topKeepRatio():this.bottomKeepRatio(),this.leftKeepRatio(),this.reCalcCropperCords()),this.area.resizingR&&(this.area.resizingT?this.topKeepRatio():this.bottomKeepRatio(),this.rightKeepRatio(),this.reCalcCropperCords())),a&&!this.shown&&this.show(),a&&(0,n.clearSelection)()}}},{key:"leftKeepRatio",value:function(){var t=this.area.rect.clientHeight*this.placedRatio,e=this.main.elLeft()+(this.area.el.clientWidth-this.right-t-2),r=this.fixCropperLeft(e);this.setLeft(r-this.main.elLeft())}},{key:"topKeepRatio",value:function(){var t=this.area.rect.clientWidth/this.placedRatio,e=this.fixCropperTop(this.main.elTop()+(this.area.el.clientHeight-this.bottom-t-2));this.setTop(e-this.main.elTop())}},{key:"bottomKeepRatio",value:function(){var t=this.area.rect.clientWidth/this.placedRatio,e=this.fixCropperBottom(this.main.elTop()+this.top+t+2);this.setBottom(this.area.el.clientHeight+this.main.elTop()-e)}},{key:"rightKeepRatio",value:function(){var t=this.area.rect.clientHeight*this.placedRatio,e=this.fixCropperRight(this.main.elLeft()+this.left+t+2);this.setRight(this.area.el.clientWidth+this.main.elLeft()-e)}},{key:"show",value:function(){this.shown=!0,this.area.rect.removeAttribute("hidden")}},{key:"handleMouseUp",value:function(){this.area.activated&&this.areaionCallback(!this.imagePlaced&&this.area.rect.clientWidth>0&&this.area.rect.clientHeight>0),this.area.moving=!1,this.area.resizingT=!1,this.area.resizingR=!1,this.area.resizingB=!1,this.area.resizingL=!1,this.imagePlaced&&(this.main.select.area.rect.style["background-image"]="url(".concat(this.placedData,")"))}},{key:"close",value:function(){this.imagePlaced&&this.finishPlacing(),this.area.activated=!1,this.hide()}},{key:"hide",value:function(){this.area.rect.setAttribute("hidden","true"),this.shown=!1,this.areaionCallback(!1)}},{key:"draw",value:function(){if(this.area.topl){var t=this.canvas.clientWidth/this.canvas.getAttribute("width");this.setLeft(this.area.topl[0]*t),this.setTop(this.area.topl[1]*t),this.setRight(this.area.el.clientWidth-(this.area.bottoml[0]-this.area.topl[0])*t),this.setBottom(this.area.el.clientHeight-(this.area.bottoml[1]-this.area.topl[1])*t)}}},{key:"rectLeft",value:function(){return this.area.rect.documentOffsetLeft+this.main.scroller.scrollLeft}},{key:"rectTop",value:function(){return this.area.rect.documentOffsetTop+this.main.scroller.scrollTop}},{key:"fixCropperLeft",value:function(t){var e=t,r=this.rectLeft()+this.area.rect.clientWidth;return e<this.main.elLeft()?this.main.elLeft():(e>r&&(e=r,this.area.resizingL&&(this.area.resizingL=!1,this.area.resizingR=!0)),e)}},{key:"fixCropperRight",value:function(t){var e=t,r=this.main.elLeft()+this.area.el.clientWidth;return e>r?r:(e<this.rectLeft()&&(e=this.rectLeft()+this.area.rect.clientWidth,this.area.resizingR&&(this.area.resizingR=!1,this.area.resizingL=!0)),e)}},{key:"fixCropperTop",value:function(t){var e=t,r=this.rectTop()+this.area.rect.clientHeight;return e<this.main.elTop()?this.main.elTop():(e>r&&(e=r,this.area.resizingT&&(this.area.resizingT=!1,this.area.resizingB=!0)),e)}},{key:"fixCropperBottom",value:function(t){var e=t,r=this.main.elTop()+this.area.el.clientHeight;return e>r?r:(e<this.rectTop()&&(e=this.rectTop()+this.area.rect.clientHeight,this.area.resizingB&&(this.area.resizingB=!1,this.area.resizingT=!0)),e)}}])&&o(e.prototype,r),i&&o(e,i),t}();e.default=i},624:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(784),o=r(564),i=r(927);function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var l=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e,this.wrapper=e.wrapper.querySelector(".ptro-settings-widget-wrapper"),this.inputPixelSize=e.wrapper.querySelector(".ptro-settings-widget-wrapper .ptro-pixel-size-input"),this.applyButton=e.wrapper.querySelector(".ptro-settings-widget-wrapper button.ptro-apply"),this.closeButton=e.wrapper.querySelector(".ptro-settings-widget-wrapper button.ptro-close"),this.clearButton=e.wrapper.querySelector(".ptro-settings-widget-wrapper button.ptro-clear"),this.bgSelBtn=e.wrapper.querySelector(".ptro-settings-widget-wrapper .ptro-color-btn"),this.errorHolder=e.wrapper.querySelector(".ptro-settings-widget-wrapper .ptro-error"),this.clearButton.onclick=function(){r.main.currentBackground=r.main.colorWidgetState.bg.alphaColor,r.main.currentBackgroundAlpha=r.main.colorWidgetState.bg.alpha,r.main.clearBackground(),r.startClose()},this.bgSelBtn.onclick=function(){r.main.colorPicker.open(r.main.colorWidgetState.bg)},this.closeButton.onclick=function(){r.startClose()},this.applyButton&&(this.applyButton.onclick=function(){var t,e=(0,o.trim)(r.inputPixelSize.value);if("%"===e.slice(-1)){var a=(0,o.trim)(e.slice(0,-1));(t=/^\d+$/.test(a)&&0!==parseInt(a,10))&&(e="".concat(a,"%"))}else t=/^\d+$/.test(e)&&0!==parseInt(e,10);t?(r.main.select.pixelizePixelSize=e,(0,i.setParam)("pixelizePixelSize",e),r.startClose(),r.errorHolder.setAttribute("hidden","")):(r.errorHolder.innerText=(0,n.tr)("wrongPixelSizeValue"),r.errorHolder.removeAttribute("hidden"))})}var e,r,l;return e=t,l=[{key:"html",value:function(t){return'<div class="ptro-settings-widget-wrapper ptro-common-widget-wrapper ptro-v-middle" hidden><div class="ptro-settings-widget ptro-color-main ptro-v-middle-in"><table style="margin-top: 5px"><tr>'+'<td class="ptro-label ptro-resize-table-left" style="height:30px;">'.concat((0,n.tr)("backgroundColor"),"</td>")+'<td class="ptro-strict-cell"><button type="button" data-id="bg" class="ptro-color-btn ptro-bordered-btn ptro-color-control" style="margin-top: -12px;"></button><span class="ptro-btn-color-checkers"></span></td><td>'+'<button type="button" style="margin-top: -2px;" class="ptro-named-btn ptro-clear ptro-color-control" title="'.concat((0,n.tr)("fillPageWith"),'">').concat((0,n.tr)("clear"),"</button>")+"</td></tr>"+(t.params.pixelizeHideUserInput?"":"<tr>"+'<td class="ptro-label ptro-resize-table-left" >'.concat((0,n.tr)("pixelizePixelSize"),"</td>")+'<td colspan="2"><input class="ptro-input ptro-pixel-size-input" pattern="[0-9]{1,}%?" type="text" /></td></tr>')+'</table><div class="ptro-error" hidden></div><div style="margin-top: 20px">'+(t.params.pixelizeHideUserInput?'<button type="button" class="ptro-named-btn ptro-close ptro-color-control">'.concat((0,n.tr)("close"),"</button>"):'<button type="button" class="ptro-named-btn ptro-apply ptro-color-control">'+"".concat((0,n.tr)("apply"),"</button>")+'<button type="button" class="ptro-named-btn ptro-close ptro-color-control">'.concat((0,n.tr)("cancel"),"</button>"))+"</div></div></div>"}}],(r=[{key:"handleKeyDown",value:function(t){return t.keyCode===o.KEYS.enter||t.keyCode===o.KEYS.esc&&(this.startClose(),!0)}},{key:"open",value:function(){this.wrapper.removeAttribute("hidden"),this.opened=!0,this.inputPixelSize&&(this.inputPixelSize.value=this.main.select.pixelizePixelSize),this.bgSelBtn.style["background-color"]=this.main.colorWidgetState.bg.alphaColor}},{key:"close",value:function(){this.wrapper.setAttribute("hidden","true"),this.opened=!1}},{key:"startClose",value:function(){this.errorHolder.setAttribute("hidden",""),this.main.closeActiveTool()}}])&&a(e.prototype,r),l&&a(e,l),t}();e.default=l},997:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=r(564),i=r(784),a=(n=r(306))&&n.__esModule?n:{default:n};function l(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}(t)||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.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ctx=e.ctx,this.el=e.toolContainer,this.main=e,this.wrapper=e.wrapper,this.input=this.el.querySelector(".ptro-text-tool-input"),this.inputWrapper=this.el.querySelector(".ptro-text-tool-input-wrapper"),this.inputWrapper.style.display="none",this.isBold=e.params.defaultFontBold,this.isItalic=e.params.defaultFontItalic,this.strokeOn=e.params.defaultTextStrokeAndShadow,this.strokeColor=e.params.textStrokeAlphaColor,this.setFontSize(e.params.defaultFontSize),this.setFont(this.getFonts()[0].value),this.setFontIsBold(this.isBold),this.setFontIsItalic(this.isItalic),this.el.querySelector(".ptro-text-tool-apply").onclick=function(){r.apply()},this.el.querySelector(".ptro-text-tool-cancel").onclick=function(){r.close()}}var e,r,n;return e=t,n=[{key:"code",value:function(){return'<span class="ptro-text-tool-input-wrapper"><div contenteditable="true" class="ptro-text-tool-input"></div><span class="ptro-text-tool-buttons">'+'<button type="button" class="ptro-text-tool-apply ptro-icon-btn ptro-color-control" title="'.concat((0,i.tr)("apply"),'" \n style="margin: 2px">')+'<i class="ptro-icon ptro-icon-apply"></i></button>'+'<button type="button" class="ptro-text-tool-cancel ptro-icon-btn ptro-color-control" title="'.concat((0,i.tr)("cancel"),'"\n style="margin: 2px">')+'<i class="ptro-icon ptro-icon-close"></i></button></span></span>'}}],(r=[{key:"getFont",value:function(){return this.font}},{key:"getFonts",value:function(){var t=["Arial, Helvetica, sans-serif",'"Arial Black", Gadget, sans-serif','"Comic Sans MS", cursive, sans-serif',"Impact, Charcoal, sans-serif",'"Lucida Sans Unicode", "Lucida Grande", sans-serif',"Tahoma, Geneva, sans-serif",'"Trebuchet MS", Helvetica, sans-serif',"Verdana, Geneva, sans-serif",'"Courier New", Courier, monospace','"Lucida Console", Monaco, monospace'].concat(l(this.main.params.extraFonts)),e=[];return t.forEach((function(t){var r=t.split(",")[0].replace(/"/g,"");e.push({value:t,name:r,extraStyle:"font-family:".concat(t),title:r})})),e}},{key:"setFont",value:function(t){this.font=t,this.input.style["font-family"]=t,this.active&&this.input.focus(),this.active&&this.reLimit()}},{key:"setStrokeOn",value:function(t){this.strokeOn=t,this.setStrokeParams()}},{key:"setFontIsBold",value:function(t){this.isBold=t,this.input.style["font-weight"]=t?"bold":"normal",this.active&&(this.input.focus(),this.reLimit()),this.setStrokeParams()}},{key:"setFontIsItalic",value:function(t){this.isItalic=t,this.input.style["font-style"]=t?"italic":"normal",this.active&&(this.input.focus(),this.reLimit())}},{key:"setFontSize",value:function(t){this.fontSize=t,this.input.style["font-size"]="".concat(t,"px"),this.setStrokeParams(),this.active&&this.reLimit()}},{key:"setStrokeParams",value:function(){this.strokeOn?this.input.style["text-shadow"]="\n -".concat(1,"px -").concat(1,"px 1px ").concat(this.strokeColor,",").concat(1,"px -").concat(1,"px 1px ").concat(this.strokeColor,",\n -").concat(1,"px ").concat(1,"px 1px ").concat(this.strokeColor,",").concat(1,"px ").concat(1,"px 1px ").concat(this.strokeColor,",\n ").concat(1,"px ").concat(1,"px ").concat(Math.log(this.fontSize)*this.main.params.shadowScale,"px black"):this.input.style["text-shadow"]="none"}},{key:"setFontColor",value:function(t){this.color=t,this.input.style.color=t,this.input.style["outline-color"]=t}},{key:"inputLeft",value:function(){return this.input.documentOffsetLeft+this.main.scroller.scrollLeft}},{key:"inputTop",value:function(){return this.input.documentOffsetTop+this.main.scroller.scrollTop}},{key:"reLimit",value:function(){this.inputWrapper.style.right="auto",this.inputLeft()+this.input.clientWidth>this.main.elLeft()+this.el.clientWidth?this.inputWrapper.style.right="0":this.inputWrapper.style.right="auto",this.inputWrapper.style.bottom="auto",this.inputTop()+this.input.clientHeight>this.main.elTop()+this.el.clientHeight?this.inputWrapper.style.bottom="0":this.inputWrapper.style.bottom="auto"}},{key:"handleMouseDown",value:function(t){var e=this;if("ptro-crp-el"===t.target.classList[0]){this.active||(this.input.innerHTML="<br>",this.pendingClear=!0),this.active=!0,this.crd=[t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft,t.clientY-this.main.elTop()+this.main.scroller.scrollTop];var r=this.main.getScale();this.scaledCord=[this.crd[0]*r,this.crd[1]*r],this.inputWrapper.style.left="".concat(this.crd[0],"px"),this.inputWrapper.style.top="".concat(this.crd[1],"px"),this.inputWrapper.style.display="inline",this.input.focus(),this.reLimit(),this.input.onkeydown=function(t){t.ctrlKey&&t.keyCode===o.KEYS.enter&&(e.apply(),t.preventDefault()),t.keyCode===o.KEYS.esc&&(e.close(),e.main.closeActiveTool(),t.preventDefault()),e.reLimit(),e.pendingClear&&(e.input.innerText=e.input.innerText.slice(1),e.pendingClear=!1),t.stopPropagation()},this.main.isMobile||t.preventDefault()}}},{key:"apply",value:function(){var t=this,e=this.input.style.border,r=this.main.getScale();this.input.style.border="none",a.default.toPng(this.input,{style:{"transform-origin":"top left",transform:"scale(".concat(r,")")},width:this.input.clientWidth*r,height:this.input.clientHeight*r}).then((function(r){var n=new Image;n.src=r,n.onload=function(){t.ctx.drawImage(n,t.scaledCord[0],t.scaledCord[1]),t.input.style.border=e,t.close(),t.main.worklog.captureState(),t.main.closeActiveTool()}})).catch((function(t){console.error("oops, something went wrong!",t)}))}},{key:"close",value:function(){this.active=!1,this.inputWrapper.style.display="none"}}])&&s(e.prototype,r),n&&s(e,n),t}();e.default=c},784:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.activate=function(t){return C.get().activate(t)},e.tr=function(t){return C.get().tr(t)},e.default=void 0;var n=d(r(731)),o=d(r(347)),i=d(r(482)),a=d(r(831)),l=d(r(103)),A=d(r(486)),s=d(r(827)),c=d(r(274)),p=d(r(388)),h=d(r(401)),u=d(r(711));function d(t){return t&&t.__esModule?t:{default:t}}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var f=null,C=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.translations={de:n.default,en:o.default,es:i.default,ca:a.default,fr:l.default,pl:A.default,"pt-PT":s.default,"pt-BR":c.default,ru:p.default,ja:h.default,nl:u.default},this.defaultTranslator=this.translations.en}var e,r,d;return e=t,d=[{key:"get",value:function(){return f||(f=new t)}}],(r=[{key:"addTranslation",value:function(t,e){this.translations[t]=e}},{key:"activate",value:function(t){void 0!==this.translations[t]?(this.trans=t,this.translator=this.translations[this.trans]):this.translator=this.defaultTranslator}},{key:"tr",value:function(t){var e=t.split("."),r=this.translator,n=this.defaultTranslator;return e.forEach((function(t){n=n[t],void 0!==r&&(r=r[t])})),r||n}}])&&g(e.prototype,r),d&&g(e,d),t}();e.default=C},564:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genId=function(){for(var t="ptro",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<20;r+=1)t+=e.charAt(Math.floor(Math.random()*e.length));return t},e.addDocumentObjectHelpers=function(){"documentOffsetTop"in Element.prototype||Object.defineProperty(Element.prototype,"documentOffsetTop",{get:function(){return this.getBoundingClientRect().top}});"documentOffsetLeft"in Element.prototype||Object.defineProperty(Element.prototype,"documentOffsetLeft",{get:function(){return this.getBoundingClientRect().left}});"documentClientWidth"in Element.prototype||Object.defineProperty(Element.prototype,"documentClientWidth",{get:function(){var t=this.getBoundingClientRect();return t.width?t.width:t.right-t.left}});"documentClientHeight"in Element.prototype||Object.defineProperty(Element.prototype,"documentClientHeight",{get:function(){var t=this.getBoundingClientRect();return t.height?t.height:t.bottom-t.top}})},e.clearSelection=function(){var t=null;window.getSelection?t=window.getSelection():document.selection&&(t=document.selection);t&&(t.empty&&t.empty(),t.removeAllRanges&&t.removeAllRanges())},e.distance=function(t,e){var r=t.x-e.x,n=t.y-e.y;return Math.sqrt(r*r+n*n)},e.trim=function(t){return String(t).replace(/^\s+|\s+$/g,"")},e.copyToClipboard=function(t){if(window.clipboardData&&window.clipboardData.setData)window.clipboardData.setData("Text",t);else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var e=document.createElement("textarea");e.textContent=t,e.style.position="fixed",document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(t){console.warn("Copy to clipboard failed.",t)}finally{document.body.removeChild(e)}}},e.getScrollbarWidth=function(){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var r=document.createElement("div");r.style.width="100%",t.appendChild(r);var n=r.offsetWidth;return t.parentNode.removeChild(t),e-n},e.imgToDataURL=function(t,e,r){var n=new XMLHttpRequest;n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(n.response)},n.onerror=function(){"function"==typeof r&&r()},n.open("GET",t),n.responseType="blob",n.send()},e.logError=function(t){console.warn("[Painterro] ".concat(t))},e.checkIn=function(t,e){return-1!==e.indexOf(t)},e.KEYS=void 0;e.KEYS={y:89,z:90,s:83,c:67,x:88,a:65,l:76,p:80,r:82,o:79,b:66,e:69,t:84,enter:13,esc:27,del:46}},390:function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e,this.current=null,this.changedHandler=r,this.empty=!0,this.clean=!0,this.ctx=e.ctx}var e,n,o;return e=t,(n=[{key:"getWorklogAsString",value:function(t){var e=Object.assign({},this.current),r=this.clearedCount;if(void 0!==t.limit){var n=t.limit;r=0;var o,i=e;for(o=0;o<n;o+=1)i.prevCount=n-o,o<n-1&&i.prev&&(i=i.prev);i.prev=null}return JSON.stringify({clearedCount:r,current:e})}},{key:"loadWorklogFromString",value:function(t){var e=JSON.parse(t);return e&&(this.clearedCount=e.clearedCount,this.current=e.current,this.applyState(this.current)),this.main}},{key:"changed",value:function(t){this.current.prevCount-this.clearedCount>this.main.params.worklogLimit&&(this.first=this.first.next,this.first.prev=null,this.clearedCount+=1),this.changedHandler({first:null===this.current.prev,last:null===this.current.next,initial:t}),this.empty=t,this.clean=!1}},{key:"captureState",value:function(t){var e={sizew:this.main.size.w,sizeh:this.main.size.h,activeToolName:this.main.activeTool?this.main.activeTool.name:null,data:this.ctx.getImageData(0,0,this.main.size.w,this.main.size.h)};null===this.current?(e.prev=null,e.prevCount=0,this.first=e,this.clearedCount=0):(e.prev=this.current,e.prevCount=this.current.prevCount+1,this.current.next=e),e.next=null,this.current=e,this.changed(t)}},{key:"reCaptureState",value:function(){null!==this.current.prev&&(this.current=this.current.prev),this.captureState()}},{key:"applyState",value:function(t){this.main.resize(t.sizew,t.sizeh),this.main.ctx.putImageData(t.data,0,0),this.main.adjustSizeFull(),this.main.select.hide()}},{key:"undoState",value:function(){if(null!==this.current.prev){var t=this.current.activeToolName;this.current=this.current.prev,this.applyState(this.current),this.changed(!1),t?(this.main.closeActiveTool(!0),this.main.setActiveTool(this.main.toolByName[t])):this.main.closeActiveTool(),this.main.params.onUndo&&this.main.params.onUndo(this.current)}}},{key:"redoState",value:function(){if(null!==this.current.next){this.current=this.current.next,this.applyState(this.current),this.changed(!1);var t=this.current.activeToolName;console.log(11,t),t?(this.main.closeActiveTool(!0),this.main.setActiveTool(this.main.toolByName[t])):this.main.closeActiveTool(),this.main.params.onRedo&&this.main.params.onRedo(this.current)}}}])&&r(e.prototype,n),o&&r(e,o),t}();e.default=n},9:function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.main=e,this.zomer=e.wrapper.querySelector(".ptro-zoomer"),this.zomerCtx=this.zomer.getContext("2d"),this.canvas=this.main.canvas,this.ctx=this.main.ctx,this.wrapper=this.main.wrapper,this.gridColor=this.zomerCtx.createImageData(1,1),this.gridColor.data[0]=255,this.gridColor.data[1]=255,this.gridColor.data[2]=255,this.gridColor.data[3]=255,this.gridColorRed=this.zomerCtx.createImageData(1,1),this.gridColorRed.data[0]=255,this.gridColorRed.data[1]=0,this.gridColorRed.data[2]=0,this.gridColorRed.data[3]=255,this.captW=7,this.middle=Math.ceil(this.captW/2)-1,this.periodW=8,this.fullW=this.captW*this.periodW,this.halfFullW=this.fullW/2,this.zomer.setAttribute("width",this.fullW),this.zomer.setAttribute("height",this.fullW),this.cursor=this.wrapper.style.cursor}var e,n,o;return e=t,o=[{key:"html",value:function(){return'<canvas class="ptro-zoomer" width="" height="0"></canvas>'}}],(n=[{key:"handleMouseMove",value:function(t){if(this.main.colorPicker.choosing&&!t.altKey){this.shown||(this.shown=!0,this.zomer.style.display="block",this.cursor=this.wrapper.style.cursor,this.wrapper.style.cursor="none");var e=this.main.getScale(),r=[t.clientX-this.main.elLeft()+this.main.scroller.scrollLeft,t.clientY-this.main.elTop()+this.main.scroller.scrollTop],n=r[0]*e;n=(n=n<1?1:n)>this.main.size.w-1?this.main.size.w-1:n;var o=r[1]*e;o=(o=o<1?1:o)>this.main.size.h-1?this.main.size.h-1:o;for(var i=this.captW,a=this.periodW,l=0;l<i;l+=1)for(var A=0;A<i;A+=1)for(var s=this.ctx.getImageData(n+l-this.middle,o+A-this.middle,1,1),c=0;c<a;c+=1)for(var p=0;p<a;p+=1)c===a-1||p===a-1?l===this.middle&&A===this.middle||l===this.middle&&A===this.middle-1&&p===a-1||l===this.middle-1&&A===this.middle&&c===a-1?this.zomerCtx.putImageData(this.gridColorRed,l*a+c,A*a+p):this.zomerCtx.putImageData(this.gridColor,l*a+c,A*a+p):this.zomerCtx.putImageData(s,l*a+c,A*a+p);this.zomer.style.left="".concat(t.clientX-this.wrapper.documentOffsetLeft-this.halfFullW,"px"),this.zomer.style.top="".concat(t.clientY-this.wrapper.documentOffsetTop-this.halfFullW,"px")}else this.shown&&this.hideZoomHelper()}},{key:"hideZoomHelper",value:function(){this.zomer.style.display="none",this.wrapper.style.cursor=this.cursor,this.shown=!1}}])&&r(e.prototype,n),o&&r(e,o),t}();e.default=n},831:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Color de línia",fillColor:"O",fillColorFull:"Color per omplir",alpha:"T",alphaFull:"Transparència",lineWidth:"A",lineWidthFull:"Ample de línia",arrowLength:"L",arrowLengthFull:"Longitud de la fletxa",eraserWidth:"B",eraserWidthFull:"Ample de borrador",textColor:"C",textColorFull:"Color de texte",fontSize:"L",fontSizeFull:"Tamany de la lletra",fontStrokeSize:"TLl",fontStrokeSizeFull:"Tamany linea de la lletra",fontStyle:"EL",fontStyleFull:"Estil de lletra",fontName:"NL",fontNameFull:"Nom del tipus de lletra",textStrokeColor:"CL",textStrokeColorFull:"Color de lletra",apply:"Aplicar",cancel:"Cancel·lar",close:"Tancar",clear:"Netejar",width:"Ample",height:"Alt",keepRatio:"Mantenir ratio Ample/Alt",fillPageWith:"Omplir la pàgina amb el color de fons actual",pixelSize:"P",pixelSizeFull:"Tamany de pixel",resizeScale:"Escala",resizeResize:"Redimensionar",backgroundColor:"Color de fons de la pàgina",pixelizePixelSize:"Tamany de píxel al pixelar",wrongPixelSizeValue:"Tamany de píxel incorrecte. Pots entrar per exemple '20%' que significa que el tamany de píxel és 1/5 de l'àrea seleccionada, o '4' significa 4 px",tools:{crop:"Retallar imatge a l'àrea seleccionada",pixelize:"Pixelar l'àrea seleccionada",rect:"Dibuixar rectangle",ellipse:"Dibuixar eclipse",line:"Dibuixar línia",arrow:"Dibuixa la fletxa",rotate:"Rotar imatge",save:"Guardar image",load:"Carregar image",text:"Escriure texte",brush:"Pinzell",resize:"Cambiar tamany o escalar",open:"Obrir imatge",select:"Seleció d'àrea",close:"Tancar editor",eraser:"Borrador",settings:"Paràmetres"},pasteOptions:{fit:"Reemplaçar tot",extend_down:"Extendre cap avall",extend_right:"Extendre a la dreta",extend:"Extendre",over:"Empegar al damunt",how_to_paste:"Com s'ha d'empegar?"}}},731:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Linienfarbe",fillColor:"F",fillColorFull:"Füllfarbe",alpha:"A",alphaFull:"Alpha",lineWidth:"B",lineWidthFull:"Linienbreite",arrowLength:"L",arrowLengthFull:"Pfeillänge",eraserWidth:"E",eraserWidthFull:"Radiergummibreite",textColor:"C",textColorFull:"Textfarbe",fontSize:"S",fontSizeFull:"Schriftgröße",fontStrokeSize:"St",fontStrokeSizeFull:"Strichbreite",fontStyle:"FS",fontStyleFull:"Schriftstil",fontName:"F",fontNameFull:"Schriftartenname",textStrokeColor:"SC",textStrokeColorFull:"Strichfarbe",apply:"Anwenden",cancel:"Abbrechen",close:"Schließen",clear:"Zurücksetzen",width:"Breite",height:"Höhe",keepRatio:"Breiten- / Höhenverhältnis beibehalten",fillPageWith:"Füllen Sie die Seite mit der aktuellen Hintergrundfarbe",pixelSize:"P",pixelSizeFull:"Pixel Größe",resizeScale:"Maßstab",resizeResize:"Größe ändern",backgroundColor:"Hintergrundfarbe der Seite",pixelizePixelSize:"Pixelate Pixelgröße",language:"Sprache",wrongPixelSizeValue:"Falsche Pixelgröße. Sie können zum Beispiel '20%' eingeben. Welche mittlere Pixelgröße wird 1/5 von die ausgewählte Bereichsseite, oder '4' bedeutet 4 px",tools:{crop:"Bild auf ausgewählten Bereich zuschneiden",pixelize:"Pixelisierung des ausgewählten Bereiches",rect:"Rechteck zeichnen",ellipse:"Ellipse zeichnen",line:"Linie zeichnen",arrow:"Pfeil zeichnen",rotate:"Bild umdrehen",save:"Bild speichern",load:"Bild hochladen",text:"Text hinzufügen",brush:"Pinsel",resize:"Größe ändern oder skalieren",open:"Bild öffnen",select:"Bereich auswählen",close:" Painterro schließen",eraser:"Radierer",settings:"Einstellungen",undo:"Rückgängig machen",redo:"Wiederholen"},pasteOptions:{fit:"Alle Austauschen ",extend_down:"Nach unten strecken",extend_right:"Nach rechts strecken",extend:"Strecken",over:"Überkleben",how_to_paste:"Wie füge ich hinzu?"}}},347:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Line color",fillColor:"F",fillColorFull:"Fill color",alpha:"A",alphaFull:"Alpha",lineWidth:"W",lineWidthFull:"Line width",arrowLength:"L",arrowLengthFull:"Arrow length",eraserWidth:"E",eraserWidthFull:"Eraser width",textColor:"C",textColorFull:"Text color",fontSize:"S",fontSizeFull:"Font size",fontStrokeSize:"St",fontStrokeSizeFull:"Stroke width",fontIsBold:"<b>B</b>",fontIsBoldFull:"Bold",fontIsItalic:"<i>I</i>",fontIsItalicFull:"Italic",shadowOn:"SH",shadowOnFull:"Shadow",fontStrokeAndShadow:"S&S",fontStrokeAndShadowFull:"Stroke & Shadow",fontName:"F",fontNameFull:"Font name",textStrokeColor:"SC",textStrokeColorFull:"Stroke color",apply:"Apply",cancel:"Cancel",close:"Close",clear:"Clear",width:"Width",height:"Height",keepRatio:"Keep width/height ratio",fillPageWith:"Fill page with current background color",pixelSize:"P",pixelSizeFull:"Pixel size",resizeScale:"Scale",resizeResize:"Resize",backgroundColor:"Page background color",pixelizePixelSize:"Pixelize pixel size",language:"Language",wrongPixelSizeValue:"Wrong pixel size. You can enter e.g. '20%' which mean pixel size will be 1/5 of the selected area side, or '4' means 4 px",tools:{crop:"Crop image to selected area",pixelize:"Pixelize selected area",rect:"Draw rectangle",ellipse:"Draw ellipse",line:"Draw line",arrow:"Draw arrow",rotate:"Rotate image",save:"Save image",load:"Load image",text:"Put text",brush:"Brush",resize:"Resize or scale",open:"Open image",select:"Select area",close:"Close Painterro",eraser:"Eraser",settings:"Settings",zoomin:"Zoom In",zoomout:"Zoom Out",undo:"Undo",redo:"Redo"},pasteOptions:{fit:"Replace all",extend_down:"Extend down",extend_right:"Extend right",extend_left:"Extend left",extend_top:"Extend top",extend:"Add",over:"Paste over",how_to_paste:"How to paste?"}}},482:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Color de linea",fillColor:"O",fillColorFull:"Color de relleno",alpha:"T",alphaFull:"Transparencia",lineWidth:"A",lineWidthFull:"Ancho de linea",eraserWidth:"B",eraserWidthFull:"Ancho de borrador",textColor:"C",textColorFull:"Color de texto",fontSize:"L",fontSizeFull:"Tamaño de letra",fontStrokeSize:"TLl",fontStrokeSizeFull:"Tamaño de linea de letra",fontStyle:"EL",fontStyleFull:"Estilo de letra",fontName:"NL",fontNameFull:"Nombre del tipo de letra",textStrokeColor:"CL",textStrokeColorFull:"Color de letra",apply:"Aplicar",cancel:"Cancelar",close:"Cerrar",clear:"Limpiar",width:"Ancho",height:"Alto",keepRatio:"Mantener ratio Ancho/Alto",fillPageWith:"Rellenar la página con el color de fondo actual",pixelSize:"P",pixelSizeFull:"Tamaño de pixel",resizeScale:"Escala",resizeResize:"Redimensionar",backgroundColor:"Color de fondo de la página",pixelizePixelSize:"Tamaño de pixel al pixelar",wrongPixelSizeValue:"Tamaño de pixel incorrecto. Puedes entrar por ejemplo '20%' que significa que el tamaño de pixel es 1/5 del area seleccionada, o '4' significa 4 px",tools:{crop:"Recortar imagen a la area seleccionada",pixelize:"Pixelar la area seleccionada",rect:"Dibujar rectángulo",ellipse:"Dibujar eclipse",line:"Dibujar linea",rotate:"Rotar imagen",save:"Guardar imagen",load:"Cargar imagen",text:"Escribir texto",brush:"Pincel",resize:"Cambiar tamaño o escalar",open:"Abrir imagen",select:"Selección de area",close:"Cerrar editor",eraser:"Borrador",settings:"Parámetros"},pasteOptions:{fit:"Reemplazar todo",extend_down:"Extender hacia abajo",extend_right:"Extender a la derecha",extend:"Extender",over:"Pegar encima",how_to_paste:"Cómo se ha de pegar?"}}},103:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"CL",lineColorFull:"Couleur de la ligne",fillColor:"CR",fillColorFull:"Couleur de Remplissage",alpha:"T",alphaFull:"Transparence",lineWidth:"L",lineWidthFull:"Largeur de ligne",arrowLength:"F",arrowLengthFull:"Longeur de la flèche",eraserWidth:"LG",eraserWidthFull:"Largeur de la gomme",textColor:"CT",textColorFull:"Couleur du texte",fontSize:"TP",fontSizeFull:"Taille de Police",fontStrokeSize:"LT",fontStrokeSizeFull:"Largeur du trait",fontStyle:"SP",fontStyleFull:"Style de police",fontName:"NP",fontNameFull:"Nom de la police",textStrokeColor:"CT",textStrokeColorFull:"Couleur du trait",apply:"Appliquer",cancel:"Annuler",close:"Fermer",clear:"Effacer",width:"Largeur",height:"Hauteur",keepRatio:"Conserver le rapport largeur/hauteur",fillPageWith:"Remplir avec la couleur d'arrière-plan courante",pixelSize:"P",pixelSizeFull:"Taille de Pixel",resizeScale:"Échelle",resizeResize:"Redimensionner",backgroundColor:"Couleur de fond de la page",pixelizePixelSize:"Pixéliser la taille de pixel",language:"Langue",wrongPixelSizeValue:"Mauvaise taille de pixel. Vous pouvez ajouter par exemple e.g. '20%' ce qui signifie que la taille moyenne des pixels sera 1/5 de la surface sélectionnée, ou '4' signifie 4 px",tools:{crop:"Recadrer l'image dans la zone sélectionnée",pixelize:"Pixéliser la zone sélectionnée",rect:"Dessiner un rectangle",ellipse:"Dessiner une ellipse",line:"Dessiner une ligne",arrow:"Dessiner une flèche",rotate:"Pivoter l'image",save:"Enregistrer l'image",load:"Charger l'image",text:"Mettre du texte",brush:"Brosse",resize:"Redimensionner ou échelle",open:"Ouvrir l'image",select:"Sélectionnez une région",close:"Fermer Painterro",eraser:"Gomme",settings:"Réglages",undo:"Annuler",redo:"Refaire"},pasteOptions:{fit:"Tout Remplacer",extend_down:"Étendre vers le bas",extend_right:"Étendre à droite",extend:"Étendre",over:"Coller sur",how_to_paste:"Comment coller?"}}},401:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"線",lineColorFull:"線の色",fillColor:"塗",fillColorFull:"塗りつぶしの色",alpha:"A",alphaFull:"アルファ",lineWidth:"幅",lineWidthFull:"線の幅",arrowLength:"矢",arrowLengthFull:"矢印の長さ",eraserWidth:"幅",eraserWidthFull:"消しゴムの幅",textColor:"色",textColorFull:"テキストの色",fontSize:"級",fontSizeFull:"フォントサイズ",fontStrokeSize:"幅",fontStrokeSizeFull:"ストロークの幅",fontStyle:"書式",fontStyleFull:"フォントスタイル",fontName:"書体",fontNameFull:"フォント",textStrokeColor:"SC",textStrokeColorFull:"ストロークの色",apply:"適用",cancel:"キャンセル",close:"閉じる",clear:"クリア",width:"幅",height:"高さ",keepRatio:"幅/高さのアスペクト比を保つ",fillPageWith:"背景色でページを塗りつぶす",pixelSize:"モザ",pixelSizeFull:"モザイクサイズ",resizeScale:"スケール",resizeResize:"リサイズ",backgroundColor:"ページの背景色",pixelizePixelSize:"モザイクのサイズ",language:"言語",wrongPixelSizeValue:'モザイクのサイズが正しくありません。次のように指定していください:\n "20%"(モザイクサイズは選択範囲の1/5になります)\n "4"(4pxを意味します)\n',tools:{crop:"切り抜き",pixelize:"モザイク",rect:"四角形を描く",ellipse:"円を描く",line:"線を描く",arrow:"矢印を描く",rotate:"画像を回転",save:"画像を保存",load:"画像を読み込み",text:"テキストを配置",brush:"ブラシ",resize:"リサイズまたはスケール",open:"画像を開く",select:"範囲選択",close:"Painterroを閉じる",eraser:"消しゴム",settings:"設定",undo:"元に戻す",redo:"やり直す"},pasteOptions:{fit:"すべてを置き換え",extend_down:"下に拡張",extend_right:"右に拡張",extend:"拡張",over:"重ねて貼り付け",how_to_paste:"どう貼り付ける?"}}},711:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Lijnkleur",fillColor:"V",fillColorFull:"Vulkleur",alpha:"A",alphaFull:"Alpha",lineWidth:"D",lineWidthFull:"Lijndikte",arrowLength:"L",arrowLengthFull:"Pijllengte",eraserWidth:"G",eraserWidthFull:"Gumdikte",textColor:"K",textColorFull:"Tekstkleur",fontSize:"G",fontSizeFull:"Tekstgrootte",fontStrokeSize:"St",fontStrokeSizeFull:"Streepdikte",fontIsBold:"<b>V</b>",fontIsBoldFull:"Vetgedrukt",fontIsItalic:"<i>C</i>",fontIsItalicFull:"Cursief",shadowOn:"S",shadowOnFull:"Schaduw",fontStrokeAndShadow:"D&S",fontStrokeAndShadowFull:"Streep & Schaduw",fontName:"F",fontNameFull:"Naam lettertype",textStrokeColor:"SK",textStrokeColorFull:"Streepkleur",apply:"Toepassen",cancel:"Annuleren",close:"Sluiten",clear:"Opnieuw",width:"Breedte",height:"Hoogte",keepRatio:"Behoud breedte-/hoogteverhouding",fillPageWith:"Vul pagina met de huidige achtergrondkleur",pixelSize:"P",pixelSizeFull:"Pixelgrootte",resizeScale:"Schalen",resizeResize:"Grootte aanpassen",backgroundColor:"Achtergrondkleur pagina",pixelizePixelSize:"Pixelgrootte pixel",language:"Taal",wrongPixelSizeValue:"Foute pixelgrootte. Je kunt b.v. '20%' invullen, wat een pixelgrootte van 1/5 van de geselecteerde gebiedszijde betekent, of '4' voor een pixelgrootte van 4 px",tools:{crop:"Afbeelding bijsnijden naar geselecteerde gebied",pixelize:"Geselecteerde gebied pixelen",rect:"Teken rechthoek",ellipse:"Teken ovaal",line:"Teken lijn",arrow:"Teken pijl",rotate:"Afbeelding draaien",save:"Afbeelding opslaan",load:"Afbeelding laden",text:"Text schrijven",brush:"Penseel",resize:"Grootte aanpassen",open:"Afbeelding openen",select:"Gebied selecteren",close:"Painterro sluiten",eraser:"Gum",settings:"Instellingen",zoomin:"Inzoomen",zoomout:"Uitzoomen",undo:"Ongedaan maken",redo:"Opnieuw doen"},pasteOptions:{fit:"Vervang alles",extend_down:"Onder uitbreiden",extend_right:"Rechts uitbreiden",extend_left:"Links uitbreiden",extend_top:"Boven uitbreiden",extend:"Uitbreiden",over:"Overheen plakken",how_to_paste:"Hoe te plakken?"}}},486:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"K",lineColorFull:"Kolor linii",fillColor:"W",fillColorFull:"Kolor wypełnienia",alpha:"A",alphaFull:"Alpha",lineWidth:"L",lineWidthFull:"Szerokość linii",arrowLength:"S",arrowLengthFull:"Rozmiar strzałki",eraserWidth:"G",eraserWidthFull:"Wielkość gumki",textColor:"K",textColorFull:"Kolor tekstu",fontSize:"R",fontSizeFull:"Rozmiar czcionki",fontStrokeSize:"Sk",fontStrokeSizeFull:"Szerokość kreski",fontStyle:"Sc",fontStyleFull:"Styl czcionki",fontName:"C",fontNameFull:"Czcionka",textStrokeColor:"Kk",textStrokeColorFull:"Kolor kreski",apply:"Zastosuj",cancel:"Anuluj",close:"Zamknij",clear:"Wyczyść",width:"Szerokość",height:"Wysokość",keepRatio:"Zachowaj współczynnik proporcji",fillPageWith:"Wypełnij stronę obecnym kolorem tła",pixelSize:"P",pixelSizeFull:"Rozmiar pixela",resizeScale:"Skala",resizeResize:"Zmień rozmiar",backgroundColor:"Kolor tła strony",pixelizePixelSize:"Rozmiar pixela Pixelizera",language:"Język",wrongPixelSizeValue:"Zły rozmiar pixela. Poprawne wartości to np. '20%', co oznacza przyjęcie rozmiaru pixela jako 20% pola wybranego obszaru, lub '4' jako 4 px",tools:{crop:"Przytnij obraz do wybranego obszaru",pixelize:"Pixelizuj wybrany obszar",rect:"Rysuj prostokąt",ellipse:"Rysuj elipse",line:"Rysuj linię",arrow:"Rysuj strzałkę",rotate:"Obróć obraz",save:"Zapisz obraz",load:"Wczytaj obraz",text:"Dodaj tekst",brush:"Pędzel",resize:"Zmień rozmiar lub skalę",open:"Otwórz obraz",select:"Wybierz obszar",close:"Zamknij Painterro",eraser:"Gumka",settings:"Ustawienia",undo:"Cofnij",redo:"Przywróć"},pasteOptions:{fit:"Zastąp",extend_down:"Dodaj poniżej",extend_right:"Dodaj po prawej",extend:"Dodaj",over:"Dodaj ponad",how_to_paste:"Jak wkleić?"}}},274:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Cor da linha",fillColor:"O",fillColorFull:"Cor do preenchimento",alpha:"T",alphaFull:"Transparência",lineWidth:"A",lineWidthFull:"Largura de linha",eraserWidth:"B",eraserWidthFull:"Largura do apagador",textColor:"C",textColorFull:"Cor do texto",fontSize:"L",fontSizeFull:"Tamanho da letra",fontStrokeSize:"TLl",fontStrokeSizeFull:"Tamanho da linha da letra",fontStyle:"EL",fontStyleFull:"Estilo de letra",fontName:"NL",fontNameFull:"Nome do tipo de letra",textStrokeColor:"CL",textStrokeColorFull:"Cor da letra",apply:"Aplicar",cancel:"Cancelar",close:"Fechar",clear:"Limpar",width:"Largura",height:"Altura",keepRatio:"Manter rácio Largura/Altura",fillPageWith:"Preencher a página com a cor de fundo atual",pixelSize:"P",pixelSizeFull:"Tamanho de píxel",resizeScale:"Escala",resizeResize:"Redimensionar",backgroundColor:"Cor de fundo da página",pixelizePixelSize:"Tamanho de píxel ao Pixelizar",wrongPixelSizeValue:"Tamanho de píxel incorreto. Pode colocar por exemplo '20%' que significa que o tamanho de píxel é 1/5 da área selecionada, o '4' significa 4 px",tools:{crop:"Recortar imagem pela área selecionada",pixelize:"Pixelizar a área selecionada",rect:"Desenhar retângulo",ellipse:"Desenhar elipse",line:"Desenhar linha",rotate:"Girar imagem",save:"Salvar imagem",load:"Carregar imagem",text:"Escrever texto",brush:"Pincel",resize:"Alterar tamanho ao redimensionar",open:"Abrir imagem",select:"Seleção da área",close:"Fechar editor",eraser:"Apagador",settings:"Configurações"},pasteOptions:{fit:"Substituir tudo",extend_down:"Acrescentar por baixo",extend_right:"Acrescentar pela direita",extend:"Acrescentar",over:"Por cima",how_to_paste:"Como colar?"}}},827:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"L",lineColorFull:"Cor da linha",fillColor:"O",fillColorFull:"Cor do preenchimento",alpha:"T",alphaFull:"Transparência",lineWidth:"A",lineWidthFull:"Largura de linha",eraserWidth:"B",eraserWidthFull:"Largura do apagador",textColor:"C",textColorFull:"Cor do texto",fontSize:"L",fontSizeFull:"Tamanho da letra",fontStrokeSize:"TLl",fontStrokeSizeFull:"Tamanho da linha da letra",fontStyle:"EL",fontStyleFull:"Tipo de letra",fontName:"NL",fontNameFull:"Nome do tipo de letra",textStrokeColor:"CL",textStrokeColorFull:"Cor da letra",apply:"Aplicar",cancel:"Cancelar",close:"Fechar",clear:"Limpar",width:"Largura",height:"Altura",keepRatio:"Manter rácio Largura/Altura",fillPageWith:"Preencher a página com a cor de fundo actual",pixelSize:"P",pixelSizeFull:"Tamanho de píxel",resizeScale:"Escala",resizeResize:"Redimensionar",backgroundColor:"Cor de fundo da página",pixelizePixelSize:"Tamanho de píxel ao Pixelizar",wrongPixelSizeValue:"Tamanho de píxel incorrecto. Podes colocar por exemplo '20%' que significa que o tamanho de píxel é 1/5 da área seleccionada, o '4' significa 4 px",tools:{crop:"Recortar imagem pela área seleccionada",pixelize:"Pixelizar a área seleccionada",rect:"Desenhar rectângulo",ellipse:"Desenhar elipse",line:"Desenhar linha",rotate:"Rodar imagem",save:"Guardar imagem",load:"Carregar imagem",text:"Escrever texto",brush:"Pincel",resize:"Alterar tamanho ao redimensionar",open:"Abrir imagem",select:"Selecção da área",close:"Fechar editor",eraser:"Apagador",settings:"Definições"},pasteOptions:{fit:"Substituir tudo",extend_down:"Acrescentar por baixo",extend_right:"Acrescentar pela direita",extend:"Acrescentar",over:"Por cima",how_to_paste:"Como colar?"}}},388:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineColor:"Л",lineColorFull:"Цвет линии",fillColor:"З",fillColorFull:"Цвет заливки",alpha:"П",alphaFull:"Прозрачность",lineWidth:"Ш",lineWidthFull:"Ширина линии",arrowLength:"Ш",arrowLengthFull:"Ширина стрелки",eraserWidth:"Ш",eraserWidthFull:"Ширина ластика",textColor:"Ц",textColorFull:"Цвет текста",fontSize:"Р",fontSizeFull:"Размер шрифта",fontStrokeSize:"Ш",fontStrokeSizeFull:"Ширина штриха",fontIsBold:"<b>Ж</b>",fontIsBoldFull:"Жирный",fontIsItalic:"<i>К</i>",fontIsItalicFull:"Курсив",shadowOn:"Т",shadowOnFull:"Тень",fontStrokeAndShadow:"О&Т",fontStrokeAndShadowFull:"Обводка и Тень",fontName:"Ш",fontNameFull:"Название шрифта",textStrokeColor:"ЦО",textStrokeColorFull:"Цвет обводки",apply:"Применить",cancel:"Отмена",close:"Закрыть",clear:"Очистить",width:"Ширина",height:"Высота",keepRatio:"Сохранить соотношение ширины/высоты",fillPageWith:"Заполнить страницу текущим цветом фона",pixelSize:"П",pixelSizeFull:"Размер пикселя",resizeScale:"Масштаб",resizeResize:"Изменить размер",backgroundColor:"Цвет фона страницы",pixelizePixelSize:"Пикселизация размера пикселя",language:"Язык",wrongPixelSizeValue:"Неправильный размер пикселя. Вы можете ввести, например '20%', что означает, что средний размер пикселя будет 1/5 отстороны выбранной области или '4', что означает 4 пикселя",tools:{crop:"Обрезать изображение до выделенной области",pixelize:"Сделать пикселизацию выделенной области",rect:"Рисовать прямоугольник",ellipse:"Рисовать эллипс",line:"Рисовать линию",arrow:"Рисовать Стрелку",rotate:"Повернуть лист",save:"Сохрнить изображение",load:"Загрузть изображение",text:"Вставить текст",brush:"Кисть",resize:"Изменить размер или масштаб",open:"Открыть изображение",select:"Выбрать область",close:"Закрыть редактор",eraser:"Ластик",settings:"Настройки",undo:"Отменить",redo:"Повторить"},pasteOptions:{fit:"Заменить всё",extend_down:"Добавить вниз",extend_right:"Добавить вправо",extend_left:"Добавить влево",extend_top:"Добавить вверх",extend:"Добавить",over:"Вставить",how_to_paste:"Как вставить?"}}},737:function(t,e,r){"use strict";var n=r(15),o=r.n(n),i=r(645),a=r.n(i)()(o());a.push([t.id,'.color-diwget-btn {\n height: 32px;\n width: 32px;\n cursor: pointer;\n z-index: 1;\n}\n\n.color-diwget-btn-substrate {\n width: 32px;\n}\n\nselect.ptro-input[data-id=\'fontName\'] {\n width: 45px;\n}\n\n.ptro-bar .ptro-tool-ctl-name {\n padding: 0 2px 0 0;\n font-family: "Open Sans", sans-serif;\n line-height: 22px;\n}\n\n.ptro-bar .ptro-tool-ctl-name {\n margin-left: 5px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 10px;\n padding-left: 3px;\n padding-top: 4px;\n padding-bottom: 4px;\n}\n\n.ptro-info {\n font-family: "Open Sans", sans-serif;\n font-size: 10px;\n padding: 4px;\n margin-left: auto;\n word-break: keep-all;\n white-space: normal;\n text-align: right;\n}\n\n.ptro-info > span {\n opacity: 0.5;\n}\n\n@media screen and (max-width: 768px) {\n .ptro-bar > div {\n white-space: nowrap;\n }\n span.ptro-bar-right {\n float: none;\n }\n span.ptro-info {\n display: none;\n }\n \n}\n\n.ptro-bar .ptro-input {\n height: 32px;\n line-height: 32px;\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n position: relative;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.ptro-bar .ptro-input[type="number"] {\n width: 42px;\n}\n\n.ptro-bar .ptro-named-btn p {\n margin: 0;\n}\n\n.ptro-bar {\n bottom: 0;\n position: absolute;\n width: 100%;\n font-size: 16px;\n line-height: normal;\n}\n\n.ptro-bar > div {\n position: relative;\n}\n\n.ptro-bar > div::-webkit-scrollbar {\n height: 2px;\n}\n \n/* Track */\n.ptro-bar > div::-webkit-scrollbar-track {\n background: #f1f1f1;\n}\n \n/* Handle */\n.ptro-bar > div::-webkit-scrollbar-thumb {\n background: #888;\n}\n \n/* Handle on hover */\n.ptro-bar > div::-webkit-scrollbar-thumb:hover {\n background: #555;\n}\n\n.ptro-bar .ptro-icon-btn {\n}\n\nbutton.ptro-icon-right:first-of-type {\n margin-right: 4px;\n}\n\nbutton.ptro-input[data-value="false"],button.ptro-input[data-value="true"] {\n width: 28px;\n height: 28px;\n border: 0;\n background: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n padding-left: 0px;\n cursor: pointer;\n outline: 0;\n}\n\nbutton.ptro-input[data-value="true"]::after {\n content: \'✔\';\n font-size: 20px;\n line-height: 12px;\n width: 12px;\n height: 12px;\n border: 0;\n /* background: rgba(0,0,0,0.5); */\n display: inline-block;\n}\n\n@-webkit-keyframes ptro-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n@keyframes ptro-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.ptro-spinning {\n -webkit-animation: ptro-spin 0.5s infinite steps(9);\n animation: ptro-spin 0.8s infinite steps(9);\n display: inline-block;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n}\n\n#container-bar {\n display: block;\n}',"",{version:3,sources:["webpack://./css/bar-styles.css"],names:[],mappings:"AAAA;IACI,YAAY;IACZ,WAAW;IACX,eAAe;IACf,UAAU;AACd;;AAEA;IACI,WAAW;AACf;;AAEA;IACI,WAAW;AACf;;AAEA;IACI,kBAAkB;IAClB,oCAAoC;IACp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BAAqB;IACrB,oBAAoB;IACpB,mCAAmC;AACvC;;AAEA;IACI,cAAc;AAClB",sourcesContent:['.color-diwget-btn {\n height: 32px;\n width: 32px;\n cursor: pointer;\n z-index: 1;\n}\n\n.color-diwget-btn-substrate {\n width: 32px;\n}\n\nselect.ptro-input[data-id=\'fontName\'] {\n width: 45px;\n}\n\n.ptro-bar .ptro-tool-ctl-name {\n padding: 0 2px 0 0;\n font-family: "Open Sans", sans-serif;\n line-height: 22px;\n}\n\n.ptro-bar .ptro-tool-ctl-name {\n margin-left: 5px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 10px;\n padding-left: 3px;\n padding-top: 4px;\n padding-bottom: 4px;\n}\n\n.ptro-info {\n font-family: "Open Sans", sans-serif;\n font-size: 10px;\n padding: 4px;\n margin-left: auto;\n word-break: keep-all;\n white-space: normal;\n text-align: right;\n}\n\n.ptro-info > span {\n opacity: 0.5;\n}\n\n@media screen and (max-width: 768px) {\n .ptro-bar > div {\n white-space: nowrap;\n }\n span.ptro-bar-right {\n float: none;\n }\n span.ptro-info {\n display: none;\n }\n \n}\n\n.ptro-bar .ptro-input {\n height: 32px;\n line-height: 32px;\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n position: relative;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.ptro-bar .ptro-input[type="number"] {\n width: 42px;\n}\n\n.ptro-bar .ptro-named-btn p {\n margin: 0;\n}\n\n.ptro-bar {\n bottom: 0;\n position: absolute;\n width: 100%;\n font-size: 16px;\n line-height: normal;\n}\n\n.ptro-bar > div {\n position: relative;\n}\n\n.ptro-bar > div::-webkit-scrollbar {\n height: 2px;\n}\n \n/* Track */\n.ptro-bar > div::-webkit-scrollbar-track {\n background: #f1f1f1;\n}\n \n/* Handle */\n.ptro-bar > div::-webkit-scrollbar-thumb {\n background: #888;\n}\n \n/* Handle on hover */\n.ptro-bar > div::-webkit-scrollbar-thumb:hover {\n background: #555;\n}\n\n.ptro-bar .ptro-icon-btn {\n}\n\nbutton.ptro-icon-right:first-of-type {\n margin-right: 4px;\n}\n\nbutton.ptro-input[data-value="false"],button.ptro-input[data-value="true"] {\n width: 28px;\n height: 28px;\n border: 0;\n background: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n padding-left: 0px;\n cursor: pointer;\n outline: 0;\n}\n\nbutton.ptro-input[data-value="true"]::after {\n content: \'✔\';\n font-size: 20px;\n line-height: 12px;\n width: 12px;\n height: 12px;\n border: 0;\n /* background: rgba(0,0,0,0.5); */\n display: inline-block;\n}\n\n@-webkit-keyframes ptro-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n@keyframes ptro-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.ptro-spinning {\n -webkit-animation: ptro-spin 0.5s infinite steps(9);\n animation: ptro-spin 0.8s infinite steps(9);\n display: inline-block;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n}\n\n#container-bar {\n display: block;\n}'],sourceRoot:""}]),e.Z=a},223:function(t,e,r){"use strict";var n=r(15),o=r.n(n),i=r(645),a=r.n(i),l=r(667),A=r.n(l),s=r(612),c=r(514),p=a()(o()),h=A()(s.Z),u=A()(c.Z);p.push([t.id,'@font-face {\n\tfont-family: "ptroiconfont";\n\tsrc: url('+h+') format("woff"),\nurl('+u+') format("truetype");\n\tfont-weight: normal;\n font-style: normal;\n}\n\n.ptro-icon {\n}\n\n.ptro-icon:before {\n\tfont-family: ptroiconfont !important;\n\tfont-style: normal !important;\n\tfont-weight: normal !important;\n\tfont-variant: normal !important;\n\ttext-transform: none !important;\n\tspeak: none;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\n.ptro-icon-apply:before {\n\tcontent: "\\f101";\n}\n.ptro-icon-arrow:before {\n\tcontent: "\\f102";\n}\n.ptro-icon-brush:before {\n\tcontent: "\\f103";\n}\n.ptro-icon-close:before {\n\tcontent: "\\f104";\n}\n.ptro-icon-crop:before {\n\tcontent: "\\f105";\n}\n.ptro-icon-ellipse:before {\n\tcontent: "\\f106";\n}\n.ptro-icon-eraser:before {\n\tcontent: "\\f107";\n}\n.ptro-icon-line:before {\n\tcontent: "\\f108";\n}\n.ptro-icon-linked:before {\n\tcontent: "\\f109";\n}\n.ptro-icon-loading:before {\n\tcontent: "\\f10a";\n}\n.ptro-icon-mirror:before {\n\tcontent: "\\f10b";\n}\n.ptro-icon-open:before {\n\tcontent: "\\f10c";\n}\n.ptro-icon-painterro0:before {\n\tcontent: "\\f10d";\n}\n.ptro-icon-paste_extend_down:before {\n\tcontent: "\\f10e";\n}\n.ptro-icon-paste_extend_left:before {\n\tcontent: "\\f10f";\n}\n.ptro-icon-paste_extend_right:before {\n\tcontent: "\\f110";\n}\n.ptro-icon-paste_extend_top:before {\n\tcontent: "\\f111";\n}\n.ptro-icon-paste_fit:before {\n\tcontent: "\\f112";\n}\n.ptro-icon-paste_over:before {\n\tcontent: "\\f113";\n}\n.ptro-icon-pipette:before {\n\tcontent: "\\f114";\n}\n.ptro-icon-pixelize:before {\n\tcontent: "\\f115";\n}\n.ptro-icon-rect:before {\n\tcontent: "\\f116";\n}\n.ptro-icon-redo:before {\n\tcontent: "\\f117";\n}\n.ptro-icon-resize:before {\n\tcontent: "\\f118";\n}\n.ptro-icon-rotate:before {\n\tcontent: "\\f119";\n}\n.ptro-icon-save:before {\n\tcontent: "\\f11a";\n}\n.ptro-icon-select:before {\n\tcontent: "\\f11b";\n}\n.ptro-icon-settings:before {\n\tcontent: "\\f11c";\n}\n.ptro-icon-text:before {\n\tcontent: "\\f11d";\n}\n.ptro-icon-undo:before {\n\tcontent: "\\f11e";\n}\n.ptro-icon-unlinked:before {\n\tcontent: "\\f11f";\n}\n.ptro-icon-zoomin:before {\n\tcontent: "\\f120";\n}\n.ptro-icon-zoomout:before {\n\tcontent: "\\f121";\n}\n',"",{version:3,sources:["webpack://./css/icons/ptroiconfont.css"],names:[],mappings:"AAAA;CACC,2BAA2B;CAC3B;0DAC0E;CAC1E,mBAAmB;IAChB,kBAAkB;AACtB;;AAEA;AACA;;AAEA;CACC,oCAAoC;CACpC,6BAA6B;CAC7B,8BAA8B;CAC9B,+BAA+B;CAC/B,+BAA+B;CAC/B,WAAW;CACX,mCAAmC;CACnC,kCAAkC;AACnC;;AAEA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB;AACA;CACC,gBAAgB;AACjB",sourcesContent:['@font-face {\n\tfont-family: "ptroiconfont";\n\tsrc: url("ptroiconfont.woff?6445e1fd933a6c63917aabe728c217e3") format("woff"),\nurl("ptroiconfont.ttf?6445e1fd933a6c63917aabe728c217e3") format("truetype");\n\tfont-weight: normal;\n font-style: normal;\n}\n\n.ptro-icon {\n}\n\n.ptro-icon:before {\n\tfont-family: ptroiconfont !important;\n\tfont-style: normal !important;\n\tfont-weight: normal !important;\n\tfont-variant: normal !important;\n\ttext-transform: none !important;\n\tspeak: none;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\n.ptro-icon-apply:before {\n\tcontent: "\\f101";\n}\n.ptro-icon-arrow:before {\n\tcontent: "\\f102";\n}\n.ptro-icon-brush:before {\n\tcontent: "\\f103";\n}\n.ptro-icon-close:before {\n\tcontent: "\\f104";\n}\n.ptro-icon-crop:before {\n\tcontent: "\\f105";\n}\n.ptro-icon-ellipse:before {\n\tcontent: "\\f106";\n}\n.ptro-icon-eraser:before {\n\tcontent: "\\f107";\n}\n.ptro-icon-line:before {\n\tcontent: "\\f108";\n}\n.ptro-icon-linked:before {\n\tcontent: "\\f109";\n}\n.ptro-icon-loading:before {\n\tcontent: "\\f10a";\n}\n.ptro-icon-mirror:before {\n\tcontent: "\\f10b";\n}\n.ptro-icon-open:before {\n\tcontent: "\\f10c";\n}\n.ptro-icon-painterro0:before {\n\tcontent: "\\f10d";\n}\n.ptro-icon-paste_extend_down:before {\n\tcontent: "\\f10e";\n}\n.ptro-icon-paste_extend_left:before {\n\tcontent: "\\f10f";\n}\n.ptro-icon-paste_extend_right:before {\n\tcontent: "\\f110";\n}\n.ptro-icon-paste_extend_top:before {\n\tcontent: "\\f111";\n}\n.ptro-icon-paste_fit:before {\n\tcontent: "\\f112";\n}\n.ptro-icon-paste_over:before {\n\tcontent: "\\f113";\n}\n.ptro-icon-pipette:before {\n\tcontent: "\\f114";\n}\n.ptro-icon-pixelize:before {\n\tcontent: "\\f115";\n}\n.ptro-icon-rect:before {\n\tcontent: "\\f116";\n}\n.ptro-icon-redo:before {\n\tcontent: "\\f117";\n}\n.ptro-icon-resize:before {\n\tcontent: "\\f118";\n}\n.ptro-icon-rotate:before {\n\tcontent: "\\f119";\n}\n.ptro-icon-save:before {\n\tcontent: "\\f11a";\n}\n.ptro-icon-select:before {\n\tcontent: "\\f11b";\n}\n.ptro-icon-settings:before {\n\tcontent: "\\f11c";\n}\n.ptro-icon-text:before {\n\tcontent: "\\f11d";\n}\n.ptro-icon-undo:before {\n\tcontent: "\\f11e";\n}\n.ptro-icon-unlinked:before {\n\tcontent: "\\f11f";\n}\n.ptro-icon-zoomin:before {\n\tcontent: "\\f120";\n}\n.ptro-icon-zoomout:before {\n\tcontent: "\\f121";\n}\n'],sourceRoot:""}]),e.Z=p},170:function(t,e,r){"use strict";var n=r(15),o=r.n(n),i=r(645),a=r.n(i),l=r(667),A=r.n(l),s=r(122),c=a()(o()),p=A()(s.Z);c.push([t.id,'.ptro-wrapper {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n z-index: 10;\r\n font-family: "Open Sans", sans-serif;\r\n}\r\n\r\n@media screen and (min-width: 869px) {\r\n .ptro-holder {\r\n position: fixed;\r\n left: 35px;\r\n right: 35px;\r\n top: 35px;\r\n bottom: 35px;\r\n box-shadow: 1px 1px 5px #888;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 868px) {\r\n .ptro-holder {\r\n position: fixed;\r\n box-shadow: 3px 3px 15px #787878;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n }\r\n}\r\n\r\n.ptro-holder-wrapper {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background-color: rgba(0,0,0,0.2);\r\n}\r\n\r\n.ptro-wrapper.ptro-v-aligned:before {\r\n content: "";\r\n display: inline-block;\r\n vertical-align: middle;\r\n height: 100%;\r\n}\r\n\r\n\r\n.ptro-icon {\r\n font-size: 14px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n\r\n.ptro-icon-btn:disabled {\r\n color: gray;\r\n}\r\n\r\n.ptro-wrapper canvas {\r\n /* vertical-align: middle; */\r\n display: inline-block;\r\n touch-action: none;\r\n margin-left: auto;\r\n margin-right: auto;\r\n width: auto;\r\n height: auto;\r\n}\r\n\r\n.ptro-center-table {\r\n display:table;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.ptro-center-tablecell {\r\n display:table-cell;\r\n vertical-align:middle;\r\n}\r\n\r\n.ptro-icon-btn {\r\n border: 0;\r\n cursor: pointer;\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.ptro-icon-btn i {\r\n}\r\n\r\n\r\n.ptro-named-btn {\r\n border: 0;\r\n display: inline-block;\r\n height: 30px;\r\n margin-left: 4px;\r\n font-family: "Open Sans", sans-serif;\r\n position: relative;\r\n top:-5px;\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.ptro-icon-btn:focus,\r\n.ptro-named-btn:focus,\r\n.color-diwget-btn:focus,\r\n.ptro-color-btn:focus,\r\n.ptro-selector-btn:focus {\r\n outline: none;\r\n}\r\n\r\n.ptro-color-btn {\r\n height: 32px;\r\n width: 32px;\r\n cursor: pointer;\r\n}\r\n\r\n\r\n.ptro-wrapper .select-handler {\r\n background-color: white;\r\n border: 1px solid black;\r\n width: 6px;\r\n height: 6px;\r\n position: absolute;\r\n z-index: 10;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-el {\r\n position: absolute;\r\n}\r\n\r\n.ptro-wrapper .ptro-substrate {\r\n opacity: 0.3;\r\n background-image: url('+p+');\r\n background-size: 32px 32px;\r\n z-index: -1;\r\n position: absolute;\r\n}\r\n\r\n.ptro-wrapper .ptro-close-color-picker {\r\n height: 24px;\r\n margin-top: 5px;\r\n margin-bottom: -5px;\r\n margin-left: auto;\r\n}\r\n\r\n.ptro-tool-controls {\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-rect {\r\n position: absolute;\r\n background-color: rgba(225, 225, 225, .5);\r\n border: 1px dashed black;\r\n cursor: move;\r\n -moz-user-select: none;\r\n /* -webkit-user-select: none; */\r\n -ms-user-select: none;\r\n user-select: none;\r\n -webkit-user-drag: none;\r\n user-drag: none;\r\n -webkit-touch-callout: none;\r\n background-repeat: no-repeat;\r\n background-size: 100% 100%;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-tl {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n margin: -4px 0 0 -4px;\r\n cursor: se-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-bl {\r\n position: absolute;\r\n left: 0;\r\n bottom: 0;\r\n margin: 0 0 -4px -4px;\r\n cursor: ne-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-br {\r\n position: absolute;\r\n right: 0;\r\n bottom: 0;\r\n margin: 0 -4px -4px 0;\r\n cursor: se-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-tr {\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n margin: -4px -4px 0 0;\r\n cursor: ne-resize;\r\n}\r\n\r\n\r\n.ptro-wrapper .ptro-crp-l {\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n margin: -4px 0 0 -4px;\r\n cursor: e-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-t {\r\n position: absolute;\r\n top: 0;\r\n left: 50%;\r\n margin: -4px 0 0 -4px;\r\n cursor: s-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-r {\r\n position: absolute;\r\n top: 50%;\r\n right: 0;\r\n margin: -4px -4px 0 0 ;\r\n cursor: e-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-b {\r\n position: absolute;\r\n left: 50%;\r\n bottom: 0;\r\n margin: 0 0 -4px -4px;\r\n cursor: s-resize;\r\n}\r\n\r\n.ptro-wrapper div,\r\n.ptro-wrapper span,\r\n.ptro-wrapper i,\r\n.ptro-bar .ptro-tool-ctl-name,\r\n.ptro-bar input,\r\n.ptro-bar .ptro-named-btn p {\r\n -moz-user-select: none;\r\n /* -webkit-user-select: none; */\r\n -ms-user-select: none;\r\n user-select: none;\r\n -webkit-user-drag: none;\r\n user-drag: none;\r\n -webkit-touch-callout: none;\r\n}\r\n\r\n.ptro-bar > div {\r\n overflow-x: auto;\r\n overflow-y: hidden;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n\r\n\r\n.ptro-wrapper .ptro-common-widget-wrapper {\r\n position: absolute;\r\n background-color: rgba(0, 0, 0, 0.6);\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.ptro-wrapper .ptro-pallet canvas {\r\n cursor: crosshair;\r\n}\r\n\r\ndiv.ptro-pallet {\r\n line-height: 0;\r\n}\r\n\r\n.ptro-wrapper .ptro-pallet,\r\n.ptro-wrapper .ptro-resize-widget{\r\n width: 200px;\r\n padding: 10px;\r\n z-index: 100;\r\n box-sizing: border-box;\r\n}\r\n\r\n.ptro-error {\r\n background-color: rgba(200, 0, 0, 0.5);\r\n padding: 5px;\r\n margin: 5px;\r\n color: white;\r\n}\r\n\r\n.ptro-v-middle:before {\r\n content: "";\r\n display: inline-block;\r\n vertical-align: middle;\r\n height: 100%;\r\n}\r\n\r\n.ptro-v-middle-in {\r\n display: inline-block;\r\n vertical-align: middle;\r\n position: relative;\r\n}\r\n\r\n.ptro-wrapper .ptro-settings-widget {\r\n width: 300px;\r\n padding: 10px;\r\n z-index: 100;\r\n box-sizing: border-box;\r\n}\r\n\r\ntd.ptro-resize-table-left {\r\n text-align: right;\r\n padding-right: 5px;\r\n float: none;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit {\r\n margin-top: 15px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input {\r\n float: left;\r\n height: 24px;\r\n text-align: center;\r\n font-family: monospace;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input:focus {\r\n outline: none;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input.ptro-color {\r\n width: 70px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input.ptro-color-alpha {\r\n font-size: 14px;\r\n width: 55px;\r\n padding: 0 0 0 2px;\r\n line-height: 23px;\r\n height: 23px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-alpha-label,\r\n.ptro-wrapper .ptro-label {\r\n float: left;\r\n padding: 0 2px 0 0;\r\n margin-left: 5px;\r\n font-family: "Open Sans", sans-serif;\r\n}\r\n\r\n.ptro-pixel-size-input {\r\n width: 60px;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette {\r\n height: 24px;\r\n width: 24px;\r\n margin: 0;\r\n}\r\n\r\ndiv.ptro-color-widget-wrapper {\r\n\tz-index: 1000;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette i {\r\n line-height: 16px;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette:active {\r\n outline: none;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-widget-wrapper .ptro-canvas-light,\r\n.ptro-wrapper .ptro-color-widget-wrapper .ptro-canvas-alpha {\r\n margin-top: 10px;\r\n}\r\n\r\nspan.ptro-color-light-regulator,\r\nspan.ptro-color-alpha-regulator {\r\n display: block;\r\n margin-top: -5px;\r\n margin-left: 5px;\r\n position: absolute;\r\n width: 0;\r\n height: 0;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n border-bottom: 5px solid;\r\n cursor: crosshair;\r\n}\r\n\r\nspan.ptro-color-alpha-regulator {\r\n margin-top: 0;\r\n}\r\n\r\n.alpha-checkers {\r\n background-image: url('+p+");\r\n display: block;\r\n width: 100%;\r\n height: 15px;\r\n background-size: 10px 10px;\r\n margin-top: -20px;\r\n}\r\n\r\ninput.ptro-input:focus,\r\nselect.ptro-input:focus {\r\n outline: none;\r\n box-shadow: none ;\r\n}\r\n\r\ninput.ptro-input,\r\nselect.ptro-input {\r\n vertical-align: initial;\r\n padding-top: 0;\r\n padding-bottom: 0;\r\n padding-right: 0;\r\n}\r\n\r\n.ptro-named-btn p {\r\n font-size: inherit;\r\n line-height: normal;\r\n margin: inherit;\r\n}\r\n\r\n.ptro-wrapper .ptro-zoomer {\r\n border-top:1px solid white;\r\n border-left:1px solid white;\r\n position: absolute;\r\n z-index: 2000;\r\n display: none;\r\n}\r\n\r\n.ptro-text-tool-input {\r\n background-color: rgba(0,0,0,0);\r\n width: auto;\r\n outline: 1px dotted;\r\n display: block;\r\n min-width: 5px;\r\n padding: 0 1px;\r\n overflow-x: hidden;\r\n word-wrap: normal;\r\n overflow-y: hidden;\r\n box-sizing: content-box;\r\n line-height: normal;\r\n text-align: left;\r\n}\r\n.ptro-paster-wrappers-fits {\r\n display: flex;\r\n justify-content: space-around;\r\n align-items: center;\r\n}\r\n.ptro-selector-extend[type] {\r\n height: 70px;\r\n width: 70px;\r\n}\r\n.ptro-selector-extend div:last-child {\r\n display: none;\r\n}\r\n.ptro-selector-fit[type] {\r\n height: 220px;\r\n width: 220px;\r\n margin: 0px;\r\n}\r\n.ptro-paster-fit[class] {\r\n margin-right: 46px;\r\n}\r\n.ptro-text-tool-buttons {\r\n display: flex;\r\n position: absolute;\r\n}\r\n.ptro-text-tool-input-wrapper {\r\n position: absolute;\r\n}\r\n\r\nspan.ptro-btn-color-checkers {\r\n background-image: url("+p+");\r\n display: block;\r\n width: 32px;\r\n height: 32px;\r\n background-size: 16px 16px;\r\n margin-top: -32px;\r\n}\r\n\r\nspan.ptro-btn-color-checkers-bar {\r\n background-image: url("+p+');\r\n width: 32px;\r\n line-height: 12px;\r\n height: 32px;\r\n background-size: 16px 16px;\r\n z-index: 0;\r\n position: relative;\r\n margin-left: -32px;\r\n}\r\n\r\n.ptro-bar-right {\r\n display: flex;\r\n\r\n}\r\n\r\n.ptro-link {\r\n float: left;\r\n margin-right: -12px;\r\n margin-top: -23px;\r\n}\r\n\r\n.ptro-resize-link-wrapper {\r\n display: inline-block;\r\n height: 40px;\r\n}\r\n\r\n\r\ninput.ptro-resize-width-input,\r\ninput.ptro-resize-heigth-input,\r\ninput.ptro-pixel-size-input {\r\n line-height: 22px;\r\n padding: 0 0 0 4px;\r\n height: 22px;\r\n width: 80px;\r\n}\r\n\r\n.ptro-selector-btn i {\r\n font-size: 56px;\r\n}\r\n\r\n.ptro-selector-btn {\r\n opacity: 0.8;\r\n border: 0;\r\n width: 100px;\r\n cursor: pointer;\r\n}\r\n\r\n.ptro-selector-btn {\r\n margin-left: 5px;\r\n margin-right: 5px;\r\n margin-top: 5px;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.ptro-selector-btn div {\r\n margin: 5px 0;\r\n}\r\n\r\n.ptro-paster-select .ptro-in div {\r\n font-family: "Open Sans", sans-serif;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-selector-btn:hover {\r\n opacity: 0.6;\r\n}\r\n\r\n.ptro-paster-select {\r\n display: inline-block;\r\n margin-left: auto;\r\n margin-right: auto;\r\n height: 100%;\r\n}\r\n\r\n.ptro-paster-select .ptro-in {\r\n background-color: rgba(0,0,0,0.7);\r\n padding: 40px;\r\n}\r\n.ptro-paster-select-wrapper {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n}\r\n.ptro-paster-select-wrapper-extends button:first-child {\r\n display: block;\r\n margin: 0 auto;\r\n}\r\n.ptro-paster-select-wrapper-extends button:last-child{\r\n display: block;\r\n margin: 0 auto;\r\n}\r\n.ptro-paster-select-wrapper-extends button:nth-child(2){\r\n display: inline-block;\r\n margin-right: 78px;\r\n}\r\n.ptro-paster-fit .ptro-paster-wrapper-label[class] {\r\n display: block; \r\n color: white;\r\n font-size: 20px;\r\n text-align: center;\r\n margin-top: 10px;\r\n text-transform: uppercase;\r\n}\r\n.ptro-paster-select-wrapper-extends .ptro-paster-wrapper-label[class] {\r\n display: block; \r\n color: white;\r\n font-size: 20px;\r\n text-align: center;\r\n margin-top: 10px;\r\n text-transform: uppercase;\r\n}\r\n.ptro-paste-label {\r\n color: white;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.ptro-iframe {\r\n width: 100%;\r\n height: 100%;\r\n border: 0;\r\n}\r\n\r\n\r\n\r\ni.mce-i-painterro:before, span.mce_painterro:before {\r\n\tfont-size: 20px;\r\n\tfont-family: ptroiconfont;\r\n\tfont-style: normal;\r\n\tfont-weight: normal;\r\n\tfont-variant: normal;\r\n\ttext-transform: none;\r\n\tspeak: none;\r\n\t-webkit-font-smoothing: antialiased;\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\tcontent: "\\f101";\r\n}\r\n\r\n.ptro-scroller {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n}\r\n\r\ntd.ptro-strict-cell {\r\n font-size: 8px;\r\n line-height: normal;\r\n}',"",{version:3,sources:["webpack://./css/styles.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,QAAQ;IACR,kBAAkB;IAClB,WAAW;IACX,oCAAoC;AACxC;;AAEA;IACI;QACI,eAAe;QACf,UAAU;QACV,WAAW;QACX,SAAS;QACT,YAAY;QACZ,4BAA4B;IAChC;AACJ;;AAEA;IACI;QACI,eAAe;QACf,gCAAgC;QAChC,OAAO;QACP,QAAQ;QACR,MAAM;QACN,SAAS;IACb;AACJ;;AAEA;IACI,eAAe;IACf,MAAM;IACN,OAAO;IACP,WAAW;IACX,YAAY;IACZ,iCAAiC;AACrC;;AAEA;IACI,WAAW;IACX,qBAAqB;IACrB,sBAAsB;IACtB,YAAY;AAChB;;;AAGA;IACI,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,uBAAuB;AAC3B;;;AAGA;IACI,WAAW;AACf;;AAEA;IACI,4BAA4B;IAC5B,qBAAqB;IACrB,kBAAkB;IAClB,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,aAAa;IACb,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,kBAAkB;IAClB,qBAAqB;A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mBAAmB;AACvB",sourcesContent:['.ptro-wrapper {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n z-index: 10;\r\n font-family: "Open Sans", sans-serif;\r\n}\r\n\r\n@media screen and (min-width: 869px) {\r\n .ptro-holder {\r\n position: fixed;\r\n left: 35px;\r\n right: 35px;\r\n top: 35px;\r\n bottom: 35px;\r\n box-shadow: 1px 1px 5px #888;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 868px) {\r\n .ptro-holder {\r\n position: fixed;\r\n box-shadow: 3px 3px 15px #787878;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n }\r\n}\r\n\r\n.ptro-holder-wrapper {\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n background-color: rgba(0,0,0,0.2);\r\n}\r\n\r\n.ptro-wrapper.ptro-v-aligned:before {\r\n content: "";\r\n display: inline-block;\r\n vertical-align: middle;\r\n height: 100%;\r\n}\r\n\r\n\r\n.ptro-icon {\r\n font-size: 14px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n\r\n.ptro-icon-btn:disabled {\r\n color: gray;\r\n}\r\n\r\n.ptro-wrapper canvas {\r\n /* vertical-align: middle; */\r\n display: inline-block;\r\n touch-action: none;\r\n margin-left: auto;\r\n margin-right: auto;\r\n width: auto;\r\n height: auto;\r\n}\r\n\r\n.ptro-center-table {\r\n display:table;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.ptro-center-tablecell {\r\n display:table-cell;\r\n vertical-align:middle;\r\n}\r\n\r\n.ptro-icon-btn {\r\n border: 0;\r\n cursor: pointer;\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.ptro-icon-btn i {\r\n}\r\n\r\n\r\n.ptro-named-btn {\r\n border: 0;\r\n display: inline-block;\r\n height: 30px;\r\n margin-left: 4px;\r\n font-family: "Open Sans", sans-serif;\r\n position: relative;\r\n top:-5px;\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.ptro-icon-btn:focus,\r\n.ptro-named-btn:focus,\r\n.color-diwget-btn:focus,\r\n.ptro-color-btn:focus,\r\n.ptro-selector-btn:focus {\r\n outline: none;\r\n}\r\n\r\n.ptro-color-btn {\r\n height: 32px;\r\n width: 32px;\r\n cursor: pointer;\r\n}\r\n\r\n\r\n.ptro-wrapper .select-handler {\r\n background-color: white;\r\n border: 1px solid black;\r\n width: 6px;\r\n height: 6px;\r\n position: absolute;\r\n z-index: 10;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-el {\r\n position: absolute;\r\n}\r\n\r\n.ptro-wrapper .ptro-substrate {\r\n opacity: 0.3;\r\n background-image: url("checkers.svg");\r\n background-size: 32px 32px;\r\n z-index: -1;\r\n position: absolute;\r\n}\r\n\r\n.ptro-wrapper .ptro-close-color-picker {\r\n height: 24px;\r\n margin-top: 5px;\r\n margin-bottom: -5px;\r\n margin-left: auto;\r\n}\r\n\r\n.ptro-tool-controls {\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-rect {\r\n position: absolute;\r\n background-color: rgba(225, 225, 225, .5);\r\n border: 1px dashed black;\r\n cursor: move;\r\n -moz-user-select: none;\r\n /* -webkit-user-select: none; */\r\n -ms-user-select: none;\r\n user-select: none;\r\n -webkit-user-drag: none;\r\n user-drag: none;\r\n -webkit-touch-callout: none;\r\n background-repeat: no-repeat;\r\n background-size: 100% 100%;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-tl {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n margin: -4px 0 0 -4px;\r\n cursor: se-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-bl {\r\n position: absolute;\r\n left: 0;\r\n bottom: 0;\r\n margin: 0 0 -4px -4px;\r\n cursor: ne-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-br {\r\n position: absolute;\r\n right: 0;\r\n bottom: 0;\r\n margin: 0 -4px -4px 0;\r\n cursor: se-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-tr {\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n margin: -4px -4px 0 0;\r\n cursor: ne-resize;\r\n}\r\n\r\n\r\n.ptro-wrapper .ptro-crp-l {\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n margin: -4px 0 0 -4px;\r\n cursor: e-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-t {\r\n position: absolute;\r\n top: 0;\r\n left: 50%;\r\n margin: -4px 0 0 -4px;\r\n cursor: s-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-r {\r\n position: absolute;\r\n top: 50%;\r\n right: 0;\r\n margin: -4px -4px 0 0 ;\r\n cursor: e-resize;\r\n}\r\n\r\n.ptro-wrapper .ptro-crp-b {\r\n position: absolute;\r\n left: 50%;\r\n bottom: 0;\r\n margin: 0 0 -4px -4px;\r\n cursor: s-resize;\r\n}\r\n\r\n.ptro-wrapper div,\r\n.ptro-wrapper span,\r\n.ptro-wrapper i,\r\n.ptro-bar .ptro-tool-ctl-name,\r\n.ptro-bar input,\r\n.ptro-bar .ptro-named-btn p {\r\n -moz-user-select: none;\r\n /* -webkit-user-select: none; */\r\n -ms-user-select: none;\r\n user-select: none;\r\n -webkit-user-drag: none;\r\n user-drag: none;\r\n -webkit-touch-callout: none;\r\n}\r\n\r\n.ptro-bar > div {\r\n overflow-x: auto;\r\n overflow-y: hidden;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n\r\n\r\n.ptro-wrapper .ptro-common-widget-wrapper {\r\n position: absolute;\r\n background-color: rgba(0, 0, 0, 0.6);\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.ptro-wrapper .ptro-pallet canvas {\r\n cursor: crosshair;\r\n}\r\n\r\ndiv.ptro-pallet {\r\n line-height: 0;\r\n}\r\n\r\n.ptro-wrapper .ptro-pallet,\r\n.ptro-wrapper .ptro-resize-widget{\r\n width: 200px;\r\n padding: 10px;\r\n z-index: 100;\r\n box-sizing: border-box;\r\n}\r\n\r\n.ptro-error {\r\n background-color: rgba(200, 0, 0, 0.5);\r\n padding: 5px;\r\n margin: 5px;\r\n color: white;\r\n}\r\n\r\n.ptro-v-middle:before {\r\n content: "";\r\n display: inline-block;\r\n vertical-align: middle;\r\n height: 100%;\r\n}\r\n\r\n.ptro-v-middle-in {\r\n display: inline-block;\r\n vertical-align: middle;\r\n position: relative;\r\n}\r\n\r\n.ptro-wrapper .ptro-settings-widget {\r\n width: 300px;\r\n padding: 10px;\r\n z-index: 100;\r\n box-sizing: border-box;\r\n}\r\n\r\ntd.ptro-resize-table-left {\r\n text-align: right;\r\n padding-right: 5px;\r\n float: none;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit {\r\n margin-top: 15px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input {\r\n float: left;\r\n height: 24px;\r\n text-align: center;\r\n font-family: monospace;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input:focus {\r\n outline: none;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input.ptro-color {\r\n width: 70px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-edit input.ptro-color-alpha {\r\n font-size: 14px;\r\n width: 55px;\r\n padding: 0 0 0 2px;\r\n line-height: 23px;\r\n height: 23px;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-alpha-label,\r\n.ptro-wrapper .ptro-label {\r\n float: left;\r\n padding: 0 2px 0 0;\r\n margin-left: 5px;\r\n font-family: "Open Sans", sans-serif;\r\n}\r\n\r\n.ptro-pixel-size-input {\r\n width: 60px;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette {\r\n height: 24px;\r\n width: 24px;\r\n margin: 0;\r\n}\r\n\r\ndiv.ptro-color-widget-wrapper {\r\n\tz-index: 1000;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette i {\r\n line-height: 16px;\r\n}\r\n\r\n.ptro-wrapper .ptro-pipette:active {\r\n outline: none;\r\n}\r\n\r\n.ptro-wrapper .ptro-color-widget-wrapper .ptro-canvas-light,\r\n.ptro-wrapper .ptro-color-widget-wrapper .ptro-canvas-alpha {\r\n margin-top: 10px;\r\n}\r\n\r\nspan.ptro-color-light-regulator,\r\nspan.ptro-color-alpha-regulator {\r\n display: block;\r\n margin-top: -5px;\r\n margin-left: 5px;\r\n position: absolute;\r\n width: 0;\r\n height: 0;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n border-bottom: 5px solid;\r\n cursor: crosshair;\r\n}\r\n\r\nspan.ptro-color-alpha-regulator {\r\n margin-top: 0;\r\n}\r\n\r\n.alpha-checkers {\r\n background-image: url("checkers.svg");\r\n display: block;\r\n width: 100%;\r\n height: 15px;\r\n background-size: 10px 10px;\r\n margin-top: -20px;\r\n}\r\n\r\ninput.ptro-input:focus,\r\nselect.ptro-input:focus {\r\n outline: none;\r\n box-shadow: none ;\r\n}\r\n\r\ninput.ptro-input,\r\nselect.ptro-input {\r\n vertical-align: initial;\r\n padding-top: 0;\r\n padding-bottom: 0;\r\n padding-right: 0;\r\n}\r\n\r\n.ptro-named-btn p {\r\n font-size: inherit;\r\n line-height: normal;\r\n margin: inherit;\r\n}\r\n\r\n.ptro-wrapper .ptro-zoomer {\r\n border-top:1px solid white;\r\n border-left:1px solid white;\r\n position: absolute;\r\n z-index: 2000;\r\n display: none;\r\n}\r\n\r\n.ptro-text-tool-input {\r\n background-color: rgba(0,0,0,0);\r\n width: auto;\r\n outline: 1px dotted;\r\n display: block;\r\n min-width: 5px;\r\n padding: 0 1px;\r\n overflow-x: hidden;\r\n word-wrap: normal;\r\n overflow-y: hidden;\r\n box-sizing: content-box;\r\n line-height: normal;\r\n text-align: left;\r\n}\r\n.ptro-paster-wrappers-fits {\r\n display: flex;\r\n justify-content: space-around;\r\n align-items: center;\r\n}\r\n.ptro-selector-extend[type] {\r\n height: 70px;\r\n width: 70px;\r\n}\r\n.ptro-selector-extend div:last-child {\r\n display: none;\r\n}\r\n.ptro-selector-fit[type] {\r\n height: 220px;\r\n width: 220px;\r\n margin: 0px;\r\n}\r\n.ptro-paster-fit[class] {\r\n margin-right: 46px;\r\n}\r\n.ptro-text-tool-buttons {\r\n display: flex;\r\n position: absolute;\r\n}\r\n.ptro-text-tool-input-wrapper {\r\n position: absolute;\r\n}\r\n\r\nspan.ptro-btn-color-checkers {\r\n background-image: url("checkers.svg");\r\n display: block;\r\n width: 32px;\r\n height: 32px;\r\n background-size: 16px 16px;\r\n margin-top: -32px;\r\n}\r\n\r\nspan.ptro-btn-color-checkers-bar {\r\n background-image: url("checkers.svg");\r\n width: 32px;\r\n line-height: 12px;\r\n height: 32px;\r\n background-size: 16px 16px;\r\n z-index: 0;\r\n position: relative;\r\n margin-left: -32px;\r\n}\r\n\r\n.ptro-bar-right {\r\n display: flex;\r\n\r\n}\r\n\r\n.ptro-link {\r\n float: left;\r\n margin-right: -12px;\r\n margin-top: -23px;\r\n}\r\n\r\n.ptro-resize-link-wrapper {\r\n display: inline-block;\r\n height: 40px;\r\n}\r\n\r\n\r\ninput.ptro-resize-width-input,\r\ninput.ptro-resize-heigth-input,\r\ninput.ptro-pixel-size-input {\r\n line-height: 22px;\r\n padding: 0 0 0 4px;\r\n height: 22px;\r\n width: 80px;\r\n}\r\n\r\n.ptro-selector-btn i {\r\n font-size: 56px;\r\n}\r\n\r\n.ptro-selector-btn {\r\n opacity: 0.8;\r\n border: 0;\r\n width: 100px;\r\n cursor: pointer;\r\n}\r\n\r\n.ptro-selector-btn {\r\n margin-left: 5px;\r\n margin-right: 5px;\r\n margin-top: 5px;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.ptro-selector-btn div {\r\n margin: 5px 0;\r\n}\r\n\r\n.ptro-paster-select .ptro-in div {\r\n font-family: "Open Sans", sans-serif;\r\n font-size: 14px;\r\n}\r\n\r\n.ptro-selector-btn:hover {\r\n opacity: 0.6;\r\n}\r\n\r\n.ptro-paster-select {\r\n display: inline-block;\r\n margin-left: auto;\r\n margin-right: auto;\r\n height: 100%;\r\n}\r\n\r\n.ptro-paster-select .ptro-in {\r\n background-color: rgba(0,0,0,0.7);\r\n padding: 40px;\r\n}\r\n.ptro-paster-select-wrapper {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n}\r\n.ptro-paster-select-wrapper-extends button:first-child {\r\n display: block;\r\n margin: 0 auto;\r\n}\r\n.ptro-paster-select-wrapper-extends button:last-child{\r\n display: block;\r\n margin: 0 auto;\r\n}\r\n.ptro-paster-select-wrapper-extends button:nth-child(2){\r\n display: inline-block;\r\n margin-right: 78px;\r\n}\r\n.ptro-paster-fit .ptro-paster-wrapper-label[class] {\r\n display: block; \r\n color: white;\r\n font-size: 20px;\r\n text-align: center;\r\n margin-top: 10px;\r\n text-transform: uppercase;\r\n}\r\n.ptro-paster-select-wrapper-extends .ptro-paster-wrapper-label[class] {\r\n display: block; \r\n color: white;\r\n font-size: 20px;\r\n text-align: center;\r\n margin-top: 10px;\r\n text-transform: uppercase;\r\n}\r\n.ptro-paste-label {\r\n color: white;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.ptro-iframe {\r\n width: 100%;\r\n height: 100%;\r\n border: 0;\r\n}\r\n\r\n\r\n\r\ni.mce-i-painterro:before, span.mce_painterro:before {\r\n\tfont-size: 20px;\r\n\tfont-family: ptroiconfont;\r\n\tfont-style: normal;\r\n\tfont-weight: normal;\r\n\tfont-variant: normal;\r\n\ttext-transform: none;\r\n\tspeak: none;\r\n\t-webkit-font-smoothing: antialiased;\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\tcontent: "\\f101";\r\n}\r\n\r\n.ptro-scroller {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n}\r\n\r\ntd.ptro-strict-cell {\r\n font-size: 8px;\r\n line-height: normal;\r\n}'],sourceRoot:""}]),e.Z=c},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<t.length;l++){var A=[].concat(t[l]);n&&o[A[0]]||(r&&(A[2]?A[2]="".concat(r," and ").concat(A[2]):A[2]=r),e.push(A))}},e}},15:function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){var r=e(t,4),n=r[1],o=r[3];if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),l="/*# ".concat(a," */"),A=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(A).concat([l]).join("\n")}return[n].join("\n")}},667:function(t){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},306:function(t){!function(e){"use strict";var r=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:e,mimeType:function(t){var r=e(t).toLowerCase();return(n="application/font-woff",o="image/jpeg",{woff:n,woff2:n,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[r]||"";var n,o},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var r=window.atob(t.toDataURL().split(",")[1]),n=r.length,o=new Uint8Array(n),i=0;i<n;i++)o[i]=r.charCodeAt(i);e(new Blob([o],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var r=document.implementation.createHTMLDocument(),n=r.createElement("base");r.head.appendChild(n);var o=r.createElement("a");return r.body.appendChild(o),n.href=e,o.href=t,o.href},getAndEncode:function(t){var e=3e4;l.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(r){var n,o=new XMLHttpRequest;if(o.onreadystatechange=a,o.ontimeout=A,o.responseType="blob",o.timeout=e,o.open("GET",t,!0),o.send(),l.impl.options.imagePlaceholder){var i=l.impl.options.imagePlaceholder.split(/,/);i&&i[1]&&(n=i[1])}function a(){if(4===o.readyState)if(200===o.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];r(t)},e.readAsDataURL(o.response)}else n?r(n):s("cannot fetch resource: "+t+", status: "+o.status)}function A(){n?r(n):s("timeout of "+e+"ms occured while fetching resource: "+t)}function s(t){console.error(t),r("")}}))},uid:(t=0,function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}),delay:function(t){return function(e){return new Promise((function(r){setTimeout((function(){r(e)}),t)}))}},asArray:function(t){for(var e=[],r=t.length,n=0;n<r;n++)e.push(t[n]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,r){var n=new Image;n.onload=function(){e(n)},n.onerror=r,n.src=t}))},width:function(t){var e=r(t,"border-left-width"),n=r(t,"border-right-width");return t.scrollWidth+e+n},height:function(t){var e=r(t,"border-top-width"),n=r(t,"border-bottom-width");return t.scrollHeight+e+n}};var t;function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function r(t,e){var r=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(r.replace("px",""))}}(),n=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,r,i){return a()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return o(e,t,r,i)}))})),n}));function a(){return!e(t)}},shouldProcess:e,impl:{readUrls:n,inline:o}};function e(e){return-1!==e.search(t)}function n(e){for(var n,o=[];null!==(n=t.exec(e));)o.push(n[1]);return o.filter((function(t){return!r.isDataUrl(t)}))}function o(t,e,n,o){return Promise.resolve(e).then((function(t){return n?r.resolveUrl(t,n):t})).then(o||r.getAndEncode).then((function(t){return r.dataAsUrl(t,r.mimeType(e))})).then((function(n){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+r.escape(t)+")(['\"]?\\))","g")}(e),"$1"+n+"$3")}))}}(),o=function(){return{resolveAll:function(){return t(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(r.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{r.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return n.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return n.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),i=function(){return{inlineAll:function e(o){return o instanceof Element?i(o).then((function(){return o instanceof HTMLImageElement?t(o).inline():Promise.all(r.asArray(o.childNodes).map((function(t){return e(t)})))})):Promise.resolve(o);function i(t){var e=t.style.getPropertyValue("background");return e?n.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return r.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||r.getAndEncode).then((function(e){return r.dataAsUrl(e,r.mimeType(t.src))})).then((function(e){return new Promise((function(r,n){t.onload=r,t.onerror=n,t.src=e}))}))}}}}(),a={imagePlaceholder:void 0,cacheBust:!1},l={toSvg:A,toPng:function(t,e){return s(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return s(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return s(t,e||{}).then(r.canvasToBlob)},toPixelData:function(t,e){return s(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,r.width(t),r.height(t)).data}))},impl:{fontFaces:o,images:i,util:r,inliner:n,options:{}}};function A(t,e){return function(t){void 0===t.imagePlaceholder?l.impl.options.imagePlaceholder=a.imagePlaceholder:l.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?l.impl.options.cacheBust=a.cacheBust:l.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return c(t,e.filter,!0)})).then(p).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(r){t.style[r]=e.style[r]}));return t})).then((function(n){return function(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(r.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(n,e.width||r.width(t),e.height||r.height(t))}))}function s(t,e){return A(t,e).then(r.makeImage).then(r.delay(100)).then((function(n){var o=function(t){var n=document.createElement("canvas");if(n.width=e.width||r.width(t),n.height=e.height||r.height(t),e.bgcolor){var o=n.getContext("2d");o.fillStyle=e.bgcolor,o.fillRect(0,0,n.width,n.height)}return n}(t);return o.getContext("2d").drawImage(n,0,0),o}))}function c(t,e,n){return n||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?r.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(n){return function(t,e,n){var o=t.childNodes;return 0===o.length?Promise.resolve(e):i(e,r.asArray(o),n).then((function(){return e}));function i(t,e,r){var n=Promise.resolve();return e.forEach((function(e){n=n.then((function(){return c(e,r)})).then((function(e){e&&t.appendChild(e)}))})),n}}(t,n,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(n).then(o).then(i).then(a).then((function(){return e})):e;function n(){function n(t,e){function n(t,e){r.asArray(t).forEach((function(r){e.setProperty(r,t.getPropertyValue(r),t.getPropertyPriority(r))}))}t.cssText?e.cssText=t.cssText:n(t,e)}n(window.getComputedStyle(t),e.style)}function o(){function n(n){var o=window.getComputedStyle(t,n),i=o.getPropertyValue("content");if(""!==i&&"none"!==i){var a=r.uid();e.className=e.className+" "+a;var l=document.createElement("style");l.appendChild(A(a,n,o)),e.appendChild(l)}function A(t,e,n){var o="."+t+":"+e,i=n.cssText?a(n):l(n);return document.createTextNode(o+"{"+i+"}");function a(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function l(t){return r.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){n(t)}))}function i(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function a(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var r=e.getAttribute(t);r&&e.style.setProperty(t,r)})))}}(t,e)})):Promise.resolve()}function p(t){return o.resolveAll().then((function(e){var r=document.createElement("style");return t.appendChild(r),r.appendChild(document.createTextNode(e)),t}))}function h(t){return i.inlineAll(t).then((function(){return t}))}t.exports=l}()},891:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return B}});var n=/iPhone/i,o=/iPod/i,i=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,l=/\bAndroid(?:.+)Mobile\b/i,A=/Android/i,s=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,p=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,d=/BB10/i,g=/Opera Mini/i,f=/\b(CriOS|Chrome)(?:.+)Mobile/i,C=/Mobile(?:.+)Firefox\b/i,m=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};function B(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"==typeof navigator?"string"==typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var r=e.userAgent,B=r.split("[FBAN");void 0!==B[1]&&(r=B[0]),void 0!==(B=r.split("Twitter"))[1]&&(r=B[0]);var v=function(t){return function(e){return e.test(t)}}(r),w={apple:{phone:v(n)&&!v(p),ipod:v(o),tablet:!v(n)&&(v(i)||m(e))&&!v(p),universal:v(a),device:(v(n)||v(o)||v(i)||v(a)||m(e))&&!v(p)},amazon:{phone:v(s),tablet:!v(s)&&v(c),device:v(s)||v(c)},android:{phone:!v(p)&&v(s)||!v(p)&&v(l),tablet:!v(p)&&!v(s)&&!v(l)&&(v(c)||v(A)),device:!v(p)&&(v(s)||v(c)||v(l)||v(A))||v(/\bokhttp\b/i)},windows:{phone:v(p),tablet:v(h),device:v(p)||v(h)},other:{blackberry:v(u),blackberry10:v(d),opera:v(g),firefox:v(C),chrome:v(f),device:v(u)||v(d)||v(g)||v(C)||v(f)},any:!1,phone:!1,tablet:!1};return w.any=w.apple.device||w.android.device||w.windows.device||w.other.device,w.phone=w.apple.phone||w.android.phone||w.windows.phone,w.tablet=w.apple.tablet||w.android.tablet||w.windows.tablet,w}},757:function(t,e,r){"use strict";r.r(e);var n=r(379),o=r.n(n),i=r(737),a={insert:"head",singleton:!1};o()(i.Z,a);e.default=i.Z.locals||{}},996:function(t,e,r){"use strict";r.r(e);var n=r(379),o=r.n(n),i=r(223),a={insert:"head",singleton:!1};o()(i.Z,a);e.default=i.Z.locals||{}},735:function(t,e,r){"use strict";r.r(e);var n=r(379),o=r.n(n),i=r(170),a={insert:"head",singleton:!1};o()(i.Z,a);e.default=i.Z.locals||{}},379:function(t,e,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function l(t){for(var e=-1,r=0;r<a.length;r++)if(a[r].identifier===t){e=r;break}return e}function A(t,e){for(var r={},n=[],o=0;o<t.length;o++){var i=t[o],A=e.base?i[0]+e.base:i[0],s=r[A]||0,c="".concat(A," ").concat(s);r[A]=s+1;var p=l(c),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(h)):a.push({identifier:c,updater:f(h,e),references:1}),n.push(c)}return n}function s(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,p=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function h(t,e,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function u(t,e,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var d=null,g=0;function f(t,e){var r,n,o;if(e.singleton){var i=g++;r=d||(d=s(e)),n=h.bind(null,r,i,!1),o=h.bind(null,r,i,!0)}else r=s(e),n=u.bind(null,r,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var r=A(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<r.length;n++){var o=l(r[n]);a[o].references--}for(var i=A(t,e),s=0;s<r.length;s++){var c=l(r[s]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}r=i}}}},122:function(t,e){"use strict";e.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZyBmaWxsPSIjNDY0NjQ2Ij48cGF0aCBkPSJNMCAwaDUwdjUwSDB6TTUwIDUwaDUwdjUwSDUweiIvPjwvZz48L3N2Zz4="},514:function(t,e){"use strict";e.Z="data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQkgFSGwAAAE4AAADDE9TLzJKYkfdAAAERAAAAFZjbWFwMd2APQAABYwAAATEZ2x5ZiIRyb4AAArMAAATlGhlYWQaSk+vAAAA4AAAADZoaGVhAOgAwwAAALwAAAAkaG10eAv8//gAAAScAAAA8GxvY2HHZsFUAAAKUAAAAHptYXhwAVYBDAAAARgAAAAgbmFtZWI+jYsAAB5gAAACRnBvc3Q6XphGAAAgqAAAAeUAAQAAAF4AAAAAAIj////+AIkAAQAAAAAAAAAAAAAAAAAAADwAAQAAAAEAAHiDqdZfDzz1AAsAXgAAAADdUYj7AAAAAN1RiPv/////AIkAXwAAAAgAAgAAAAAAAAABAAAAPAEAABAAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQKkAA0AIAA+AUQBdAGuAbwBzAHuAiACPAJgAnICgAACAAYAEgABAAUAIwAjACQAJQACAAUAJgAmACcAKAAJABQAOgBeAIIApAC6ANAA5AD2ABAAEgAiACsANQAuADcALgA4ADUALgAwADIANwAmAC8AMwAsADUADgARACIAKwA1AC4ANwAuADgANQAuADAAMgA3ADIAJwAoADAADwARACIAKwA1AC4ANwAuADgANQAuADAAMgA3ACQALgA5ADUAEQAQACIAKwA1AC4ANwAuADgANQAuADAAMgA3ADUAJwAjAA0ACgAiAC8AMAA1AC4AJgAmACcANgATAAoAIgArADUALgA3ACcAOgAuACYAEgAJACIAKwA1AC4ANwA5AC8ANQAVAAgALwA4AC4AJAAvADsALgAUAAcALwAjAC4ANQA1AC4AAwAIABgAJgAKAAcAJwAiADIALwAwADMACQAGAC8AMAAxAC4AMgAIAAQALwAwAC4ABAAKABgAJgAwABgABgAuACsALwA7AC4AGQAGACcANQAiADUALgAWAAQALgAtADUAFwAEAC4AMgAnAAEABAAMAAQAIwAuADAAAQAEAAMABQAmACoAKwAsAAIABgAYAB8ACAAwACQALwAwADEALgAyAB4ABAAwADIAJwADAAgAGgAoABwACAAuADUANQAvADAAMwArABsABgAuACQALgAtADUAGgAEACIAOgAuAAIABgASAAQABQAkACcAKwAuAAUABAAmACcAIwACAAYAFgAGAAcAJAAkAC8AIwArAC4ABwAGACYAIgArAC4AJgABAAQACwAGAC8AJgAmACcAJgABAAQAHQAEAC4AOAA1AAIABgAWACEABwAnACcANAAnACoANQAgAAYAJwAnADQALwAwAAEADQAiACMAJAAmACcAKQAqACsALQAuADQANQA7AAEAMwGQAAUAAAA8AEEAAAANADwAQQAAAC0ABAAYAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAQAAw8SEAXgAAAAgAXwABAAAAAQAAAAAAAAAAAAAAfwAAAF4AAABh//8AXgAAAF4AAABeAAAATAAAAF0AAAAo//8AYAAAAE4AAABpAAAAYP//AFsAAABgAAAAXv//AFsAAABe//8AXgAAAF4AAABKAAAAbP//AFv//wBeAAAATwAAAGL//wCIAAAAXgAAAFcAAABbAAAAUgAAAF8AAABeAAAAAAAAAAAAA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TcAiezRQRUtby6Ntv5q0GwA2+EKA5Aa7a2pwOLnj74y7pVjgkPwj3MMSTcJ/+WXhA+yI8ZLLgC0F4SXOPN+EOrvEu3KX/EA7Jn8I93OFbuE//IzzAKgiFh3gMXivvbBbbMrGlX5p0n0fuVJ3yyrg6s6Wa6PGpXpjSuMibjVofVX1Ip94nKnG2UHN2TZ5bVTm7M7HXW++r2WiUiNexLVDBw8EiQ8xaImmrxxIGKfbIEbF/buqcXzHtUNM3d4UJNMZnpxecLttExJvBhok1jqw1DtxiSus5rfg3+YI0l6zhhjlZ8fWmt6OJ6TW2barCDCN+yb953e5Q/AI7Wm1ZAAAAeJx9kNdyGzEMRfc4W2Sl2Y7j9Ganuqc351s0tBaSOKZIDsmVZH19mNGTXoIHlIO5GADFRvF/u2CDG5RU1DT02KTPTW5xmzvcZYttdrjHLvfZ4wEPecRjnvCUZzznBS95xT4HvOYNb3nHez5wyBHHnHDKGed85BOf+cJXvvGdH/zkF7+54E9RKe/NdaVCcPPqMnRxUg2Ni1IOg/ONGKN9lFqCihJKo63U2V1J2xinWm3H9VRnaSidF9v3StskuT7f9iomGcgiiW0HrZvbdWJklHbWSNDjSdpaQ8n5zRUY6dRfZW4mofHaS0rS83ohRi+lDDJM2bWuDhIzqINLKkkZ1UzqKCa3ezFL8sKxTHl82dnW9Tq7OqZeOjfVtvkXXJdQeAzXBBxzLumITBgiaCxXtIyZkvJjBywYMWNZFH8BAUN6HQAA"}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={id:n,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}return 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 n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(165)}().default;
  2. //# sourceMappingURL=painterro-1.2.66.min.js.map