tl-js-web-screen-shot
Version:
小鱼泡泡原生js图片编辑插件
1 lines • 298 kB
JavaScript
var A=function(){return A=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},A.apply(this,arguments)};function e(A,e,t,r){return new(t||(t=Promise))((function(n,o){function i(A){try{a(r.next(A))}catch(A){o(A)}}function s(A){try{a(r.throw(A))}catch(A){o(A)}}function a(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(i,s)}a((r=r.apply(A,e||[])).next())}))}function t(A,e){var t,r,n,o,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(A,i)}catch(A){s=[6,A],r=0}finally{t=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}"function"==typeof SuppressedError&&SuppressedError;var r=[{id:1,title:"square",name:"矩形"},{id:2,title:"round",name:"椭圆"},{id:3,title:"right-top",name:"箭头"},{id:4,title:"brush",name:"画笔"},{id:5,title:"mosaicPen",name:"马赛克"},{id:6,title:"text",name:"文字"},{id:12,title:"cutbox",name:"裁剪"},{id:7,title:"separateLine",name:"分割线"},{id:9,title:"undo",name:"撤销"},{id:8,title:"save",name:"保存图片"},{id:10,title:"close",name:""},{id:11,title:"confirm",name:""}];function n(A){var e="";switch(A){case 1:e="square-active";break;case 2:e="round-active";break;case 3:e="right-top-active";break;case 4:e="brush-active";break;case 5:e="mosaicPen-active";break;case 6:e="text-active";break;case 12:e="cut-active"}return e}function o(A,e,t){var r=n(e);t&&(r=function(A){var e="";switch(A){case 1:e="brush-small-active";break;case 2:e="brush-medium-active";break;case 3:e="brush-big-active"}return e}(e));for(var o=(A.path||A.composedPath&&A.composedPath())[1].children,i=0;i<o.length;i++){var s=o[i];if(Number(s.getAttribute("data-id"))>100&&e!==Number.MAX_VALUE){var a=s.getAttribute("data-icon");s.style.backgroundImage="url(".concat(a,")")}s.className.includes("active")&&s.classList.remove(s.classList[2])}r&&(A.target.className+=" "+r)}function i(){var A,e=new hA;e.popHistory();var t=null===(A=e.getScreenShotContainer())||void 0===A?void 0:A.getContext("2d");null!=t&&e.getHistory().length>0&&t.putImageData(e.getHistory()[e.getHistory().length-1].data,0,0),e.setUndoClickNum(e.getUndoClickNum()+1),e.getHistory().length-1<=0&&(e.setUndoClickNum(0),e.setUndoStatus(!1))}function s(A,e,t){void 0===t&&(t=document.body);var r=t.getBoundingClientRect();return{left:A||Math.abs(r.left),top:e||Math.abs(r.top)}}var a,B=!0,l=null,c=!1,g=0,u=0,w=!1,h=null,Q=!0,d={r:0,g:0,b:0,a:.6},C=!0,U="#FFFFFF",p=15,F=!1,f=!1,m=!1,E={w:0,h:0},H=[],I=null,y=null,v=null,b=null,S=0,x="#FFFFFF",K=["#FF4019","#884DFF","#00A9FE","#00D358","#FFE001","#999999"],L=[12,14,16,18,20,22,24,26,28,30,32,34,36,38,40],D=function(){function e(){c&&(B=!0,g=0,u=0,U="#3369FF",w=!1,C=!0,l=null,c=!1,h=null,y=null,p=15,F=!1,f=!1,v=null,Q=!0,H=[],I=null,S=0,x="#FFFFFF",K=["#FF4019","#884DFF","#00A9FE","#00D358","#FFE001","#999999"],L=[12,14,16,18,20,22,24,26,28,30,32,34,36,38,40])}return e.prototype.setInitStatus=function(A){c=A},e.prototype.getInitStatus=function(){return c},e.prototype.getWebRtcStatus=function(){return B},e.prototype.setWebRtcStatus=function(A){B=A},e.prototype.setScreenShotDom=function(A){h=A},e.prototype.getCutBoxBdColor=function(){return U},e.prototype.setCutBoxBdColor=function(A){U=A},e.prototype.getScreenShotDom=function(){return h},e.prototype.getScreenFlow=function(){return l},e.prototype.setScreenFlow=function(A){l=A},e.prototype.getCanvasSize=function(){return{canvasWidth:g,canvasHeight:u}},e.prototype.setCanvasSize=function(A,e){g=A,u=e},e.prototype.getShowScreenDataStatus=function(){return w},e.prototype.setShowScreenDataStatus=function(A){w=A},e.prototype.setMaskColor=function(A){d.r=A.r,d.g=A.g,d.b=A.b,d.a=A.a},e.prototype.getMaskColor=function(){return d},e.prototype.setWriteImgState=function(A){C=A},e.prototype.getWriteImgState=function(){return C},e.prototype.setSaveCallback=function(A){y=A},e.prototype.getSaveCallback=function(){return y},e.prototype.setMaxUndoNum=function(A){p=A},e.prototype.getMaxUndoNum=function(){return p},e.prototype.setRatioArrow=function(A){F=A},e.prototype.getRatioArrow=function(){return F},e.prototype.setImgAutoFit=function(A){f=A},e.prototype.getImgAutoFit=function(){return f},e.prototype.setUseCustomImgSize=function(A,e){A&&e&&(m=!0,E=e)},e.prototype.getCustomImgSize=function(){return{useCustomImgSize:m,customImgSize:E}},e.prototype.setSaveImgTitle=function(A){v=A},e.prototype.getSaveImgTitle=function(){return v},e.prototype.setDestroyContainerState=function(A){Q=A},e.prototype.getDestroyContainerState=function(){return Q},e.prototype.setUserToolbar=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(A(A({},n),{id:100+(r+1)}))}H=t},e.prototype.getUserToolbar=function(){return H},e.prototype.setH2cCrossImgLoadErrFn=function(A){I=A},e.prototype.getH2cCrossImgLoadErrFn=function(){return I},e.prototype.setCanvasEvents=function(A){b=A},e.prototype.getCanvasEvents=function(){return b},e.prototype.getMenuBarHeight=function(){return S},e.prototype.setMenuBarHeight=function(A){S=A},e.prototype.setFontSizePanelBgColor=function(A){x=A},e.prototype.getFontSizePanelBgColor=function(){return x},e.prototype.setColorList=function(A){K=A},e.prototype.getColorList=function(){return K},e.prototype.setFontSizeList=function(A){L=A},e.prototype.getFontSizeList=function(){return L},e}(),T=!1,P=!1,M=!1,O="#F53340",k="",G=null,R=2,V=10,N=0,X=[],J=!1,Y={startX:0,startY:0,width:0,height:0},W=null,z=null,Z=null,j=null,q=null,_=null,$=null,AA=null,eA=14,tA=null,rA=null,nA=null,oA=null,iA=null,sA=null,aA=!1,BA=!1,lA="",cA=!1,gA=!1,uA=null,wA=null,hA=function(){function A(){BA&&(BA=!1,W=null,uA=null,wA=null,P=!1,z=null,j=null,tA=null,q=null,_=null,$=null,AA=null,Z=null,Y={startX:0,startY:0,width:0,height:0},M=!1,cA=!1,gA=!1,J=!1,O="#FF4019",k="",G=null,R=2,eA=14,V=10,X=[],N=0,rA=null,nA=null,oA=null,iA=null)}return A.prototype.setInitStatus=function(A){BA=A},A.prototype.setScreenShotInfo=function(A,e){this.getScreenShotContainer(),null!=W&&(aA&&document.body.classList.add("__screenshot-lock-scroll"),W.width=A,W.height=e)},A.prototype.setScreenShotPosition=function(A,e){if(this.getScreenShotContainer(),null!=W){var t=s(A,e),r=t.left,n=t.top;W.style.left=r+"px",W.style.top=n+"px"}},A.prototype.showScreenShotPanel=function(){this.getScreenShotContainer(),null!=W&&(W.style.display="block")},A.prototype.getScreenShotContainer=function(){return W=document.getElementById("screenShotContainer")},A.prototype.getToolController=function(){return z=document.getElementById("toolPanel")},A.prototype.getCutBoxSizeContainer=function(){return Z=document.getElementById("cutBoxSizePanel")},A.prototype.getTextInputController=function(){return j=document.getElementById("textInputPanel")},A.prototype.getTextStatus=function(){return false},A.prototype.getScreenShotImageController=function(){return sA},A.prototype.setScreenShotImageController=function(A){sA=A},A.prototype.setToolStatus=function(A){z=this.getToolController(),z.style.display=A?"flex":"none"},A.prototype.setCutBoxSizeStatus=function(A){null!=Z&&(Z.style.display=A?"flex":"none")},A.prototype.setCutBoxSizePosition=function(A,e){if(null!=Z){var t=s(A,e),r=t.left,n=t.top;Z.style.left=r+"px";var o=0;W&&(o=parseInt(W.style.top)),Z.style.top=n+o+"px"}},A.prototype.setTextEditState=function(A){gA=A},A.prototype.getTextEditState=function(){return gA},A.prototype.setCutBoxSize=function(A,e){if(null!=Z){A=Math.floor(A),e=Math.floor(e);var t=Z.childNodes;if(t.length>0)t[0].innerText="".concat(A," * ").concat(e);else{var r=document.createElement("p");r.innerText="".concat(A," * ").concat(e),Z.appendChild(r)}}},A.prototype.setTextStatus=function(A){null!=(j=this.getTextInputController())&&(j.style.display=A?"block":"none")},A.prototype.setToolInfo=function(A,e){z=document.getElementById("toolPanel");var t=s(A,e),r=t.left,n=t.top;z.style.left=r+"px";var o=0;W&&(o=parseInt(W.style.top)),z.style.top=n+o+"px"},A.prototype.getToolClickStatus=function(){return M},A.prototype.setToolClickStatus=function(A){M=A},A.prototype.setResetScrollbarState=function(A){cA=A},A.prototype.getResetScrollbarState=function(){return cA},A.prototype.getCutOutBoxPosition=function(){return Y},A.prototype.getDragging=function(){return P},A.prototype.setDragging=function(A){P=A},A.prototype.getDraggingTrim=function(){return T},A.prototype.getToolPositionStatus=function(){return J},A.prototype.setToolPositionStatus=function(A){J=A},A.prototype.setDraggingTrim=function(A){T=A},A.prototype.setCutOutBoxPosition=function(A,e,t,r){Y.startX=A,Y.startY=e,Y.width=t,Y.height=r},A.prototype.setFontSize=function(A){eA=A},A.prototype.setOptionStatus=function(A){if(q=this.getOptionIcoController(),tA=this.getOptionController(),null!=q&&null!=tA){if(A)return q.style.display="block",void(tA.style.display="flex");q.style.display="none",tA.style.display="none"}},A.prototype.getFontSize=function(){return eA},A.prototype.setTextSizeOptionStatus=function(A){null!=(_=this.getOptionTextSizeController())&&(_.style.display=A?"flex":"none")},A.prototype.setTextSizePanelStatus=function(A){null!=(AA=this.getTextSizeContainer())&&(AA.style.display=A?"flex":"none")},A.prototype.setBrushSelectionStatus=function(A){null!=($=this.getBrushSelectionController())&&($.style.display=A?"block":"none")},A.prototype.hiddenOptionIcoStatus=function(){null!=(q=this.getOptionIcoController())&&(q.style.display="none")},A.prototype.getOptionIcoController=function(){return q=document.getElementById("optionIcoController")},A.prototype.getTextSizeContainer=function(){return AA=document.getElementById("textSizePanel")},A.prototype.getOptionTextSizeController=function(){return _=document.getElementById("textSelectPanel")},A.prototype.getBrushSelectionController=function(){return $=document.getElementById("brushSelectPanel")},A.prototype.getOptionController=function(){return tA=document.getElementById("optionPanel")},A.prototype.setOptionPosition=function(A){if(q=this.getOptionIcoController(),tA=this.getOptionController(),null!=q&&null!=tA){var e=this.getToolPosition();if(null!=e){var t=206+A+"px",r=e.top+44+"px",n=e.top+40+"px";q.style.left=t,q.style.top=r,tA.style.left=e.left+A-140+"px",tA.style.top=n}}},A.prototype.getToolPosition=function(){if(null!=(z=this.getToolController()))return{left:z.getBoundingClientRect().left,top:z.getBoundingClientRect().top}},A.prototype.getSelectedColor=function(){return O},A.prototype.setSelectedColor=function(A){O=A,null!=(oA=this.getColorSelectPanel())&&(oA.style.backgroundColor=O)},A.prototype.getColorSelectPanel=function(){return oA=document.getElementById("colorSelectPanel")},A.prototype.getToolName=function(){return k},A.prototype.setToolName=function(A){k=A},A.prototype.getToolId=function(){return G},A.prototype.setToolId=function(A){G=A},A.prototype.getPenSize=function(){return R},A.prototype.setPenSize=function(A){R=A},A.prototype.getMosaicPenSize=function(){return V},A.prototype.setMosaicPenSize=function(A){V=A},A.prototype.getBorderSize=function(){return 10},A.prototype.getHistory=function(){return X},A.prototype.shiftHistory=function(){return X.shift()},A.prototype.popHistory=function(){return X.pop()},A.prototype.pushHistory=function(A){X.push(A)},A.prototype.clearHistory=function(){X=[]},A.prototype.getUndoClickNum=function(){return N},A.prototype.setUndoClickNum=function(A){N=A},A.prototype.getColorPanel=function(){return rA=document.getElementById("colorPanel")},A.prototype.setColorPanelStatus=function(A){null!=(rA=this.getColorPanel())&&(rA.style.display=A?"flex":"none")},A.prototype.getNoScrollStatus=function(){return aA},A.prototype.setNoScrollStatus=function(A){null!=A&&(aA=A)},A.prototype.setActiveToolName=function(A){lA=A},A.prototype.getActiveToolName=function(){return lA},A.prototype.setTextInfo=function(A){a=A},A.prototype.getTextInfo=function(){return a},A.prototype.getRightPanel=function(){return nA=document.getElementById("rightPanel")},A.prototype.setRightPanel=function(A){null!=(nA=this.getRightPanel())&&(nA.style.display=A?"flex":"none")},A.prototype.setUndoStatus=function(A){if(null!=(iA=this.getUndoController())){if(A)return iA.classList.add("undo"),iA.classList.remove("undo-disabled"),void iA.addEventListener("click",this.cancelEvent);iA.classList.add("undo-disabled"),iA.classList.remove("undo"),iA.removeEventListener("click",this.cancelEvent)}},A.prototype.cancelEvent=function(){i()},A.prototype.getUndoController=function(){return iA=document.getElementById("undoPanel")},A.prototype.destroyDOM=function(){if(VA(),null!=W&&null!=z&&null!=q&&null!=tA&&null!=j&&null!=Z){var A=new D;aA&&document.body.classList.remove("__screenshot-lock-scroll"),document.body.removeChild(W),document.body.removeChild(z),document.body.removeChild(q),document.body.removeChild(tA),document.body.removeChild(j),document.body.removeChild(Z),wA&&document.body.removeChild(wA),uA&&document.body.removeChild(uA),document.body.classList.contains("no-cursor")&&document.body.classList.remove("no-cursor"),cA&&(document.documentElement.classList.remove("hidden-screen-shot-scroll"),document.body.classList.remove("hidden-screen-shot-scroll")),A.setInitStatus(!0)}},A.prototype.setCutBoxController=function(A){uA=A},A.prototype.setCutBoxButtonController=function(A){wA=A},A}();function QA(A,e,t){var r=window.devicePixelRatio||1;A.width=Math.round(e*r),A.height=Math.round(t*r),A.style.width=e+"px",A.style.height=t+"px";var n=A.getContext("2d");return n&&n.scale(r,r),n}function dA(A,e,t,r,n,o,i){void 0===o&&(o=.75),void 0===i&&(i=!0);var s=window.devicePixelRatio||1,a=A.getImageData(e*s,t*s,r*s,n*s),B=document.createElement("canvas"),l=QA(B,r,n);return l?(l.putImageData(a,0,0),i&&(null==B||B.toBlob((function(A){var e,t;if(null!=A){var r=window.ClipboardItem;if(null==r)return B.toDataURL("png");var n=new r(((e={})[A.type]=A,e));null===(t=navigator.clipboard)||void 0===t||t.write([n]).then((function(){return"写入成功"}))}}),"image/png",o)),B.toDataURL("png")):""}function CA(A){var e,t=new hA,r=new D,n=null===(e=t.getScreenShotContainer())||void 0===e?void 0:e.getContext("2d"),o=t.getCutOutBoxPosition(),i=o.startX,s=o.startY,a=o.width,B=o.height,l="";return n&&(A?function(A,e,t,r,n){var o=new D,i=window.devicePixelRatio||1,s=A.getImageData(e*i,t*i,r*i,n*i),a=document.createElement("canvas"),B=QA(a,r,n);if(B){B.putImageData(s,0,0);var l=document.createElement("a");l.href=a.toDataURL("png");var c=(null==o?void 0:o.getSaveImgTitle())||(new Date).getTime();l.download="".concat(c,".png"),l.click()}}(n,i,s,a,B):l=dA(n,i,s,a,B,.75,r.getWriteImgState())),l}function UA(A,e,t,r,n,o,i,s,a){void 0===a&&(a=!0);var B=null==i?void 0:i.width,l=null==i?void 0:i.height,c=window.devicePixelRatio||1,g=new D;if(B&&l&&s&&i){if(n.clearRect(0,0,B,l),t=0!=t?t:5,r=0!=r?r:5,n.save(),g.getMaskColor(),n.fillStyle="#333333",n.fillRect(0,0,B,l),n.globalCompositeOperation="source-atop",n.clearRect(A,e,t,r),n.globalCompositeOperation="source-over",n.fillStyle=g.getCutBoxBdColor(),a){var u=o;n.fillRect(A-u/2,e-u/2,u,u),n.fillRect(A-u/2+t/2,e-u/2,u,u),n.fillRect(A-u/2+t,e-u/2,u,u),n.fillRect(A-u/2,e-u/2+r/2,u,u),n.fillRect(A-u/2+t,e-u/2+r/2,u,u),n.fillRect(A-u/2,e-u/2+r,u,u),n.fillRect(A-u/2+t/2,e-u/2+r,u,u),n.fillRect(A-u/2+t,e-u/2+r,u,u)}n.restore(),n.save(),n.globalCompositeOperation="destination-over";var w={imgWidth:parseInt(null==i?void 0:i.style.width),imgHeight:parseInt(null==i?void 0:i.style.height)},h=w.imgWidth,Q=w.imgHeight,d=g.getScreenShotDom();if(null!=d&&(h=d.clientWidth,Q=d.clientHeight),g.getCustomImgSize().useCustomImgSize){var C=g.getCustomImgSize().customImgSize;h=C.w,Q=C.h}return g.getWebRtcStatus()||g.getImgAutoFit()||g.getCustomImgSize().useCustomImgSize||null!=d||(h=s.width/c,Q=s.height/c),n.drawImage(s,0,0,h,Q),n.restore(),t>0&&r>0?{startX:A,startY:e,width:t,height:r}:t<0&&r<0?{startX:A+t,startY:e+r,width:Math.abs(t),height:Math.abs(r)}:t>0&&r<0?{startX:A,startY:e+r,width:t,height:Math.abs(r)}:t<0&&r>0?{startX:A+t,startY:e,width:Math.abs(t),height:r}:{startX:A,startY:e,width:t,height:r}}}function pA(A,e,t,r,n,o){o.save(),o.lineWidth=1,o.fillStyle=r,o.textBaseline="middle",o.font="bold ".concat(n,"px none");var i=A.split("\n"),s=1.4*n;i.forEach((function(A,r){var n=t+s*r;o.fillText(A,e,n)})),o.restore()}function FA(){var A=new hA,e=new D,t=A.getScreenShotContainer();if(null!=t){var r=t.getContext("2d"),n=t;A.getHistory().length>e.getMaxUndoNum()&&A.shiftHistory(),A.pushHistory({data:r.getImageData(0,0,n.width,n.height)}),A.setUndoStatus(!0)}}function fA(A){var e=new hA;A.putImageData(e.getHistory()[e.getHistory().length-1].data,0,0)}var mA=!1,EA=null,HA=null,IA=null,yA=!1,vA=null,bA=8,SA=null,xA=null,KA=null,LA=null,DA=null,TA={0:"nwse-resize",1:"ns-resize",2:"nesw-resize",3:"ew-resize",4:"ew-resize",5:"nesw-resize",6:"ns-resize",7:"nwse-resize",move:"move"},PA=null,MA=20;function OA(){var A=new hA,e=A.getTextInputController(),t=A.getScreenShotContainer(),r=A.getScreenShotImageController();if(null==t||null==r)return null;var n=t.getContext("2d");return{textInputController:e,screenShotController:t,ScreenShotImageController:r,screenShotCanvas:n}}function kA(A,e){var t=new hA,r=t.getTextInputController();if(null!=r&&t.getTextStatus()||null!=r&&"text"!==A){var n=r.innerText;if(n&&""!==n){var o=t.getTextInfo();pA(n,o.positionX,o.positionY,o.color,o.size,e),FA()}r.innerHTML="",t.setTextStatus(!1)}}function GA(A,e,t,r,s,a){var B,l=new hA,c=new D;l.setActiveToolName(A),l.setToolId(e);var g=OA();if(null!=g){var u=g.screenShotController,w=g.ScreenShotImageController,h=g.screenShotCanvas;l.setToolName(A),o(t,e,!1);var Q=function(){l.getHistory().length>=2&&l.setUndoStatus(!0),null==LA||LA.remove(),null==EA||EA.remove(),null==xA||xA.remove(),null==KA||KA.remove(),EA=HA=xA=KA=null,mA=!1,IA=null,yA=!1,PA=null,l.setCutBoxButtonController(null),l.setCutBoxController(null);var A=n(e);if(DA=null,A.includes("active")){var t=document.querySelector(".cutbox");t&&t.classList.remove(t.classList[2])}};if("cutbox"==A){kA(A,h),l.setOptionStatus(!1),l.setUndoStatus(!1);var d=u.getBoundingClientRect(),C=function(){return IA?[[IA.x,IA.y],[IA.x+IA.w/2,IA.y],[IA.x+IA.w,IA.y],[IA.x,IA.y+IA.h/2],[IA.x+IA.w,IA.y+IA.h/2],[IA.x,IA.y+IA.h],[IA.x+IA.w/2,IA.y+IA.h],[IA.x+IA.w,IA.y+IA.h]]:[]},U=function(A,e){if(!IA)return null;for(var t=C(),r=0;r<t.length;r++){var n=t[r],o=n[0],i=n[1];if(Math.abs(A-o)<bA&&Math.abs(e-i)<bA)return"resize-".concat(r)}return A>IA.x&&A<IA.x+IA.w&&e>IA.y&&e<IA.y+IA.h?"move":"crosshair"},p=function(){null==EA||EA.addEventListener("mousedown",(function(A){var e=A.offsetX,t=A.offsetY,r=U(e,t);IA&&r?vA=r:(IA={x:e,y:t,w:0,h:0},vA="crosshair"),PA={x:e,y:t},yA=!0})),null==EA||EA.addEventListener("mousemove",(function(A){var e=A,t=e.offsetX,r=e.offsetY;if(e.movementX,e.movementY,yA){if(IA&&PA&&vA){if("crosshair"===vA)IA={x:Math.min(PA.x,t),y:Math.min(PA.y,r),w:Math.abs(t-PA.x),h:Math.abs(r-PA.y)};else if("move"===vA){var n=t-PA.x,o=r-PA.y;IA.x+=n,IA.y+=o,PA={x:t,y:r}}else if(vA.startsWith("resize")){var i=parseInt(vA.split("-")[1],10),s=IA.x,a=IA.y,B=IA.x+IA.w,l=IA.y+IA.h;switch(i){case 0:s=t,a=r;break;case 1:a=r;break;case 2:B=t,a=r;break;case 3:s=t;break;case 4:B=t;break;case 5:s=t,l=r;break;case 6:l=r;break;case 7:B=t,l=r}IA.x=Math.min(s,B),IA.y=Math.min(a,l),IA.w=Math.abs(B-s),IA.h=Math.abs(l-a)}IA&&(IA.w<MA&&(IA.w=MA),IA.h<MA&&(IA.h=MA),F()),HA&&(HA.clearRect(0,0,EA.width,EA.height),HA.fillStyle="rgba(0,0,0,0.4)",HA.fillRect(0,0,EA.width,EA.height),IA&&(HA.clearRect(IA.x,IA.y,IA.w,IA.h),HA.strokeStyle="#FFFFFF",HA.lineWidth=2,HA.strokeRect(IA.x,IA.y,IA.w,IA.h),HA.globalCompositeOperation="source-over",C().forEach((function(A){var e=A[0],t=A[1];HA.beginPath(),HA.arc(e,t,5,0,2*Math.PI),HA.fillStyle="#3369FF",HA.fill(),HA.lineWidth=2,HA.strokeStyle="#FFFFFF",HA.stroke()})),f()))}}else{var c=IA?U(t,r):null;EA.style.cursor=c?TA[c.startsWith("resize")?parseInt(c.split("-")[1],10):c]:"crosshair"}})),null==EA||EA.addEventListener("mouseup",(function(){yA=!1,vA=null,l.setUndoStatus(!1)})),null==EA||EA.addEventListener("mouseleave",(function(){yA=!1,vA=null,l.setUndoStatus(!1)}))},F=function(){IA&&(IA.w<20&&(IA.w=20),IA.h<20&&(IA.h=20),IA.x<0&&(IA.x=0),IA.y<0&&(IA.y=0),EA&&(IA.x+IA.w>EA.width&&(IA.x=EA.width-IA.w),IA.y+IA.h>EA.height&&(IA.y=EA.height-IA.h)))},f=function(){if(EA&&LA&&IA&&DA){var A=IA.y+IA.h+10,e=IA.x+IA.w-80;IA.y+IA.h>=EA.height-50&&(A=IA.y-50),IA.y<50&&(A=10),LA.style.top=A+DA.y+"px",LA.style.left=e+DA.x+"px"}},m=function(){if(u&&IA){var A=IA.x,e=IA.y,t=IA.w,r=IA.h,n=h;if(n){var o=null;o=SA?dA(n,A+SA.startX,e+SA.startY,t,r,.75,c.getWriteImgState()):dA(n,A,e,t,r,.75,c.getWriteImgState());var i=new Image;i.onload=function(){var A=d.width/d.height,e=t*A>d.width?d.width:t*A,n=r*A>d.height?d.height:r*A,o=Math.round((d.width-e)/2),s=Math.round((d.height-n)/2),a=UA(o,s,e,n,h,l.getBorderSize(),u,w,!1);a&&(l.setCutOutBoxPosition(a.startX,a.startY,a.width,a.height),IA={x:a.startX,y:a.startY,w:100,h:100},SA=a),h.drawImage(i,o,s,e,n)},i.src=o,function(){var A=new hA;A.clearHistory(),A.getHistory().length-1<=0&&(A.setUndoClickNum(0),A.setUndoStatus(!1))}(),Q()}}};return mA?Q():(!function(){var A,e;(EA=document.createElement("canvas")).style.position="absolute",SA?(EA.width=SA.width,EA.height=SA.height,EA.style.left=SA.startX+d.left+"px",EA.style.top=SA.startY+d.top+"px"):(EA.width=d.width,EA.height=d.height,EA.style.left=d.left+"px",EA.style.top=d.top+"px"),EA.style.cursor="crosshair",EA.style.zIndex="9999",null===(A=u.parentElement)||void 0===A||A.appendChild(EA),HA=EA.getContext("2d"),(LA=document.createElement("div")).className="crop-btn-container",null===(e=u.parentElement)||void 0===e||e.appendChild(LA),(KA=document.createElement("div")).className="crop-btn-close",KA.onclick=Q,null==LA||LA.appendChild(KA),(xA=document.createElement("div")).className="crop-btn-confirm",xA.onclick=m,null==LA||LA.appendChild(xA),l.setCutBoxButtonController(LA),l.setCutBoxController(EA),DA=EA.getBoundingClientRect(),p()}(),mA=!0),void l.setToolClickStatus(!0)}if(mA=!1,Q(),"text"===A?(l.setTextSizePanelStatus(!0),l.setBrushSelectionStatus(!1),null===(B=l.getColorSelectPanel())||void 0===B||B.classList.add("text-select-status")):(l.setTextSizePanelStatus(!1),l.setBrushSelectionStatus(!0)),l.setOptionStatus(!0),l.setOptionPosition(function(A){switch(A){case 1:return 16;case 2:return 56;case 3:return 90;case 4:return 128;case 5:return 270;case 6:return 210;default:return 0}}(e)),l.setRightPanel(!0),"mosaicPen"==A&&(l.setRightPanel(!1),l.hiddenOptionIcoStatus()),kA(A,h),l.setDragging(!1),l.setDraggingTrim(!1),"save"==A){CA(!0);var E=c.getSaveCallback();E&&E(0,"保存成功"),l.destroyDOM(),l.setInitStatus(!0)}if("close"==A&&(s&&s(),l.destroyDOM(),l.setInitStatus(!0)),"confirm"==A){var H=CA(!1);if(r&&r({base64:H,cutInfo:l.getCutOutBoxPosition()}),!c.getDestroyContainerState())return l.setToolStatus(!1),void l.setOptionStatus(!1);l.destroyDOM(),l.setInitStatus(!0)}"undo"==A&&(l.setOptionStatus(!1),i()),l.setToolClickStatus(!0)}}function RA(A,e,t,r,n){var i=new hA;i.setActiveToolName(e),i.setToolId(A),n.target.style.backgroundImage="url(".concat(t,")");var s=OA();if(null!=s){var a=s.screenShotController,B=s.ScreenShotImageController,l=s.screenShotCanvas;i.getToolClickStatus()||function(A,e,t){var r,n,o=new hA,i=(null===(r=o.getToolPosition())||void 0===r?void 0:r.left)||0,s=(null===(n=o.getToolPosition())||void 0===n?void 0:n.top)||0;s&&o.getToolPositionStatus()&&o.setToolInfo(i,s-46),o.setToolStatus(!0);var a=o.getCutOutBoxPosition();UA(a.startX,a.startY,a.width,a.height,A,o.getBorderSize(),e,t,!1)}(l,a,B),r({screenShotCanvas:l,screenShotController:a,ScreenShotImageController:B,currentInfo:{toolName:e,toolId:A},imageInfo:CA(!1)}),i.setToolName(e),o(n,Number.MAX_VALUE,!1),i.setOptionStatus(!1),kA(e,l),i.setDragging(!1),i.setDraggingTrim(!1),i.setToolClickStatus(!0)}}function VA(){var A=new hA;A.getHistory().length>=2&&A.setUndoStatus(!0),null==LA||LA.remove(),null==EA||EA.remove(),EA=HA=null,mA=!1,IA=null,yA=!1,PA=null,A.setCutBoxButtonController(null),A.setCutBoxController(null),DA=null,SA=null}function NA(A,e,t){var r=new hA;o(t,e,!0);var n=2;switch(A){case"small":n=2;break;case"medium":n=5;break;case"big":n=10}return r.setPenSize(n),n}function XA(A,e,t){var r=new hA;o(t,e,!0);var n=10;switch(A){case"small":n=10;break;case"medium":n=20;break;case"big":n=40}return r.setMosaicPenSize(n),n}var JA=function(){function A(A){var e;this.textFontSizeList=[12,13,14,15,16,17,18,24,28,32,36,48,96],this.fontSizePanelBgColor="#FFFFFF",this.colorList=["#FF4019","#884DFF","#00A9FE","#00D358","#FFE001","#999999"],this.sizeMap={14:"小",22:"中",32:"大"},this.sizeMapNumber={"小":14,"中":22,"大":32};var t=new D;if(this.screenShotController=document.createElement("canvas"),this.toolController=document.createElement("div"),this.optionIcoController=document.createElement("div"),this.optionController=document.createElement("div"),this.cutBoxSizeContainer=document.createElement("div"),this.textInputController=document.createElement("div"),this.completeCallback=null==A?void 0:A.completeCallback,this.cutCompleteCallback=null==A?void 0:A.cutCompleteCallback,this.closeCallback=null==A?void 0:A.closeCallback,this.hiddenIcoArr=[],this.toolbar=Object.assign([],r),this.data=new hA,this.optionController.addEventListener("click",(function(A){var e=A.target;"colorSelectPanel"!==e.id&&"textSizePanel"!==e.id&&"textSizeIcon"!==e.id&&"textSpan"!==e.id&&(new hA).setTextSizeOptionStatus(!1)})),this.fontSizePanelBgColor=t.getFontSizePanelBgColor(),this.colorList=t.getColorList(),this.textFontSizeList=t.getFontSizeList(),A&&Object.prototype.hasOwnProperty.call(A,"completeCallback")||(this.completeCallback=function(A){sessionStorage.setItem("screenShotImg",JSON.stringify(A))}),null==A?void 0:A.hiddenToolIco)for(var n in A.hiddenToolIco)A.hiddenToolIco[n]&&this.filterHideIcon(n);this.setAllControllerId(),this.setOptionIcoClassName(),(e=this.toolbar).splice.apply(e,function(A,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||Array.prototype.slice.call(e))}([r.length-2,0],t.getUserToolbar(),!1)),this.setToolBarIco(),this.setTextSizeSelectPanel(),this.setBrushSelectPanel(),this.setTextInputPanel(),this.setDomToBody(),this.hiddenAllDom()}return A.prototype.setToolBarIco=function(){for(var A=0;A<this.toolbar.length;A++){for(var e=this.toolbar[A],t=!1,r=0;r<this.hiddenIcoArr.length;r++)if(this.hiddenIcoArr[r]===e.title){t=!0;break}if(!t){var n=document.createElement("div");this.bindToolClickEvent(n,e),n.setAttribute("data-title",e.title),n.setAttribute("toolTip",e.name),n.setAttribute("data-id",e.id+""),(null==e?void 0:e.icon)&&n.setAttribute("data-icon",e.icon),"confirm"==e.title&&(n.innerText="完成并复制"),"close"==e.title&&(n.innerText="取消"),this.toolController.appendChild(n)}}this.hiddenIcoArr.length>0&&(this.toolController.style.minWidth="24px")},A.prototype.setTextSizeSelectPanel=function(){var A=this,e=document.createElement("div");e.className="text-size-panel",e.id="textSizePanel";var t=document.createElement("span");t.innerText="".concat(this.sizeMap[(new hA).getFontSize()]),t.style.display="block",t.id="textSpan";var r=document.createElement("div");r.className="text-size-icon",r.id="textSizeIcon",e.appendChild(t),e.appendChild(r);var n=document.createElement("div");n.className="text-select-panel",n.id="textSelectPanel",n.style.backgroundColor=this.fontSizePanelBgColor,n.style.backdropFilter="blur(10px)";for(var o=function(e){var r=document.createElement("div"),o=i.textFontSizeList[e];r.className="text-item",r.setAttribute("data-value","".concat(o)),r.innerText="".concat(o),r.addEventListener("click",(function(){n.style.display="none";var e=r.getAttribute("data-value");t.innerText="".concat(e),e&&function(A){(new hA).setFontSize(A)}(+A.sizeMapNumber[e||"小"])})),n.appendChild(r)},i=this,s=0;s<this.textFontSizeList.length;s++)o(s);e.style.display="none",n.style.display="none",e.addEventListener("click",(function(){(new hA).setTextSizeOptionStatus(!0)})),this.optionController.appendChild(e),this.optionController.appendChild(n)},A.prototype.setBrushSelectPanel=function(){var A=this,e=document.createElement("div");e.id="brushSelectPanel",e.className="brush-select-panel";for(var t=0;t<3;t++){var r=document.createElement("div");switch(r.className="item-panel",t){case 0:r.classList.add("brush-small"),r.classList.add("brush-small-active"),r.addEventListener("click",(function(A){NA("small",1,A),XA("small",1,A)}));break;case 1:r.classList.add("brush-medium"),r.addEventListener("click",(function(A){NA("medium",2,A),XA("medium",2,A)}));break;case 2:r.classList.add("brush-big"),r.addEventListener("click",(function(A){NA("big",3,A),XA("big",3,A)}))}e.appendChild(r)}var n=document.createElement("div");n.className="right-panel";var o=document.createElement("div");o.id="colorPanel",o.className="color-panel",o.style.display="flex";var i=function(e){var t=document.createElement("div");t.className="color-item",t.style.backgroundColor=s.colorList[e],t.addEventListener("click",(function(){!function(A,e){var t=new hA,r=e[A];t.setSelectedColor(r)}(e,A.colorList),o.querySelectorAll(".color-item").forEach((function(A){A.classList.remove("active")})),t.classList.add("active")})),t.setAttribute("data-index",e+""),o.appendChild(t)},s=this;for(t=0;t<this.colorList.length;t++)i(t);n.appendChild(o),n.id="rightPanel",this.optionController.appendChild(e),this.optionController.appendChild(n),o.querySelectorAll(".color-item")[0].classList.add("active")},A.prototype.setTextInputPanel=function(){this.textInputController.contentEditable="true",this.textInputController.spellcheck=!1},A.prototype.setAllControllerId=function(){this.screenShotController.id="screenShotContainer",this.toolController.id="toolPanel",this.optionIcoController.id="optionIcoController",this.optionController.id="optionPanel",this.cutBoxSizeContainer.id="cutBoxSizePanel",this.textInputController.id="textInputPanel"},A.prototype.hiddenAllDom=function(){this.screenShotController.style.display="none",this.toolController.style.display="none",this.optionIcoController.style.display="none",this.optionController.style.display="none",this.cutBoxSizeContainer.style.display="none",this.textInputController.style.display="none"},A.prototype.setDomToBody=function(){this.clearBody(),document.body.appendChild(this.screenShotController),document.body.appendChild(this.toolController),document.body.appendChild(this.optionIcoController),document.body.appendChild(this.optionController),document.body.appendChild(this.cutBoxSizeContainer),document.body.appendChild(this.textInputController)},A.prototype.clearBody=function(){var A,e,t,r,n,o;null===(A=document.getElementById("screenShotContainer"))||void 0===A||A.remove(),null===(e=document.getElementById("toolPanel"))||void 0===e||e.remove(),null===(t=document.getElementById("optionIcoController"))||void 0===t||t.remove(),null===(r=document.getElementById("optionPanel"))||void 0===r||r.remove(),null===(n=document.getElementById("optionPanel"))||void 0===n||n.remove(),null===(o=document.getElementById("textInputPanel"))||void 0===o||o.remove()},A.prototype.setOptionIcoClassName=function(){this.optionIcoController.className="ico-panel"},A.prototype.filterHideIcon=function(A){if("rightTop"===A)this.hiddenIcoArr.push("right-top");else this.hiddenIcoArr.push(A)},A.prototype.bindToolClickEvent=function(A,e){var t=this;if("undo"==e.title)return A.className="item-panel undo-disabled",void(A.id="undoPanel");A.className="item-panel ".concat(e.title),e.id<=100?A.addEventListener("click",(function(A){GA(e.title,e.id,A,t.completeCallback,t.closeCallback,t.cutCompleteCallback)})):(A.addEventListener("click",(function(A){RA(e.id,e.title,e.activeIcon,e.clickFn,A)})),A.style.backgroundImage="url(".concat(e.icon,")"),A.style.backgroundSize="cover",A.addEventListener("mouseenter",(function(A){t.switchBgIcon(A,e.activeIcon,t.data.getToolId())})),A.addEventListener("mouseleave",(function(A){t.switchBgIcon(A,e.icon,t.data.getToolId())})))},A.prototype.switchBgIcon=function(A,e,t){var r=A.target;t!==Number(r.getAttribute("data-id"))&&(r.style.backgroundImage="url(".concat(e,")"))},A}();function YA(A){return A>0?A:0}function WA(A,e,t){return YA(A)+e>t?YA(t-e):YA(A)}!function(A,e){void 0===e&&(e={});var t=e.insertAt;if(A&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=A:n.appendChild(document.createTextNode(A))}}('#screenShotContainer{cursor:crosshair;left:0;position:absolute;top:0}#toolControllerBox{justify-content:center;width:100%}#toolControllerBox,#toolPanel{background:#fff;display:flex;left:50%;position:absolute;top:0;transform:translatex(-50%);z-index:9999}#toolPanel{app-region:no-drag;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:6px;box-sizing:border-box;height:40px;min-width:392px;padding:8px 16px}#toolPanel .item-panel{height:24px;margin-right:15px;position:relative;width:24px}#toolPanel .item-panel:last-child{margin-right:0}#toolPanel .item-panel:hover{background-color:rgba(70,89,140,.1)!important;border-radius:4px}#toolPanel .square{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZBJREFUaEPtWLFNxEAQ3HVABAVACxQAMaIMRALcnSuAiIAIKrDvHhJEGYgYCqAFKICPCDzIkh+hFy+vf22hQ+v0PLs7M3dr3zJl/nDm9ZMR+GsHzQFzQKmAbSGlgGr4IAcAcFmWp03TnDDzLoBNdQVExMxzAK9FUdxVVXXLzJDGFRNwzm0z8wOAA2nwdd5j5icARymldwleRKBVPoTwOHXxi4JbEnVdH0qcEBEIIZw1TZO6BJ/MfAngXqpSn5Kdu8cArohoo32/KApX1/WsDysi4Jx7JqK9NhgzX8QYb/oCr7PuvT8HcN1hX1JK+31xRAS89x8/DuzOWMovF9c6QURvnVDzGOPWKAScc99dIaUkIt2XeNX60FyiYoYGXbf4Fjc0lxHQqP0b1hwYQxWNK+aAOaDZP9ZGV6g39GBpTBiayz5kGrXHaBjmgDmwpIAd4jEOlmZbTeLAf7hS5n2pz36skv1gq7ts5ztaXHSVrIe7mtY4JVb0LzRlAdrYRkCroBZvDmgV1OLNAa2CWnz2DnwBGRdGQPzTjv0AAAAASUVORK5CYII=");background-size:cover}#toolPanel .square-active,#toolPanel .square:active,#toolPanel .square:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAY5JREFUaEPtWLtOw0AQnE2BG/iA8AuU5lVHfAai4SHFNHRQUaSCjgZH4tEgPgOl5uWSX4APIA0UWeTokiIiuj2vDTpp3Z5nbmfmbu07QuQPRV4/TMB/J2gJWAJKB2wJKQ1Uw4MSYGZaP8TeCNgFsALGorqCkoAwBPDWAm6fL3FDRCzlFQtIj7iNL9wD6EjJK743QILt4oI+JHiRgNL51QwPf1D8pObBa44tSRIiAWsZ748YV479G8ApEtxJXfI56dLdAdADsFC+3yIcvOR07cOKBKQZP4Kx4chOij6d+4irjKddPgZwNsYSnoqcNn08UgGf0w2bYLku52eLc0m8OwHDIqelegR0edoVij6JRPsmnjeeBs4lKiaUtGrxJS50LhOgcfs3rCVQhyuaVCwBS0CzfqyNznEvdGNpQgidyz5kGrfraBiWgCUw44Bt4jo2lmZZNZNAxpEfKWM/1Ed/rRL9xdb4sB3z1eKkq0R9uatpjU1iRf9CTRag5TYBWge1eEtA66AWbwloHdTio0/gBzuUEkCb2kEBAAAAAElFTkSuQmCC")}#toolPanel .round{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAw9JREFUaEPtmD1oFEEUgN+bDbkUljYJ/pQ2dlppugsK0aigREsbd5bDoEK08Hf9LTRgJHLsGxtLDQpqYsCQ66KV6Wws/SFpLC1yITtP5tiV5dDsX8IxcANb7byfb96bN28GwfKBlvsPXYBOR7AbgW4ESq5AN4WSC1ir1bZprQ9rrfci4gAAmM+MZWZeFkJ8EUJ8qNfrv0su/F/xTYmAlPI4ALgAUGXmykbOIWITABoAoIjobVmQUgC1Wu1AGIYPmflgEUcQ8aPjOFfq9fqnIvJGpjCAlPI6M9/5h44lkyZa629CiGVjRGs9IITYbdILAPa1OcuIeJOI7hWByA3g+37fysrKc2Y+nTC4iohPe3t7n0xNTf3cyJGxsbEda2trF5j5PAD0xXMR8WV/f/9Z3/dX84DkBpBSvmhzfh4Azimlvucx7LruLgB4BgCHkhBEdCaPnlwAUdrcTRicrFar46Ojo2Eeo/Hc6elpp9FoTDDzxYTOG3nSKTOA2bDr6+uLcc4j4iQRXSrieLuMlPJxAoJ7enoGs27szABSysVEtZkfGhoaLrry7QAmEgsLC3NxOpnqRESDWRYnE4Cp88z8JlJoNtmevDmf5ky0J77GGxsRT2Q5J7ICvGfm4VbdRZwgostpDhX5L6V8xMzjkZ05IjqSpicVwLQHYRj+ik/YSqWyM61Uphn9339TYpvN5o8IoOk4zva0tiMVwPO8k1rrV5HRJaXU/qIOZpFzXfdzfNgJIU4FQfB6I7lUANd1bwGAb5QIIR4EQXAtiyNF53ied19rfTWS95VSt0sBSCmJmU2jZoZUSqmizmWRc13X2KIojUzDJ8sCzDDz0SgCI0EQzGZxpOgcz/OOaq1nIoBZIhrZNABEPEZELeVbNaSUI8z8bjMB7E4h6zex9WXU+oOsVTultLeViADsbuYiCHvbaQNg/YUmioJ5ibDzShmfvFZf6g2E9c8qiUjY+bCVbOKsflpMglj7uNveUlv7vL5Vd4MselPvxFmUdHJOF6CTq9+6dnbagbL2uwBlV7CsvPUR+AOdowZP90iF2gAAAABJRU5ErkJggg==");background-size:cover}#toolPanel .round-active,#toolPanel .round:active,#toolPanel .round:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAxJJREFUaEPtmDtoFUEUhv+zN2qK2IlF8IE2NnZ3o6ApIoKBmKjgs7QxYTeRKESL+Lo+Cw2YYLJLYmPpE3zEQAJiiihodjsbG8UHKcTOFInm7pG57l7WC96d3Y2Egd1258z5v3POzJwZguIfKa4fGcBSZzDLQJaBlBHISigcwCaT62Y1NMPDZjDqGagX/wmYAWEGGt7VeRiftGg2ZeDL5ouSAb2T94LRzsBOMFZUFUeYJ+AFCCPOED1JC5IKoMHkbcy4zsD2JEIIeEWE09MWvU5i72c3mWm+k8/Cw6U/FfLX5xIwDuCTpmFG/PG8UimtZ6AZQL5iPEPDeXeIriRREjsDTQWunf2GO8w4HDgkYI4JgzU5DLy5RV+rCdl6nNcsFNFNjC4GastzEO7VrcbRyQLNxQGJDaCbfDcsHoQJLMMxd4A+x3Gc7+Z1+IXbYOwKQzgWHYkzTywAv2wuhyLfv2EHeh4comIcp8HYg/c59/El+hg4UbbXcC5OOUkDiAXrMaaCmieg37HpZBLhlTa6wTdDEKwRGmUXtjSAbvBUebchTGxsQkvSyFcCiEx8mMRYUE5id3JsapQJjhSA2OfZw2N/25rj5dgUt+ajxIg1QT/xPljYpGGfzDkhB2Dyc2a0lEQQ+lyLTkUJSvI/b/INMHpKbghjjkW7o+aJBBDtwQ/ge3DC1tRgbdRWGeX0X/9LW+wCvviBml8JrIpqOyIB9C7ez0U89J26rk16UoEydnmDneCwoxwOOIP0qJpdNIDJF5hR8Ov/mmPTGRkhScfoBl9loNcvo4Jj0cV0AAYPM9DuA3Q4No0kFSdjpxssmsJh39+IY1NHKoC8wc8AtIpJchra3g7RqIyQpGO2dHJr0YPwKb5R16a2RQPQCHumLQomT6qxql2DyW0e4+miAeiql5Cu/CJWfRtV/iATi0lXuZUoAajezJUgVG6nBYDyFxoBofSVMjg+lb7UCwjln1WCTCj7sBXuxJR+WgyDKPu4W9kXK/u8/l8uBpKTRt6JJedZsmEZwJKF3necZSDLQMoIKF9CvwH/ErhA7CeIsQAAAABJRU5ErkJggg==")}#toolPanel .right-top{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAjNJREFUaEPtlztvE0EUhc9d27JoQAgorBRBBImOAloqSjoqegLjF0tDg6jc0dGAvTMTnB7+AA0h9Ej8AERFSxGl9GsvGhRLxorDTHbWO5Z2Gxe+e+c758zc3SVs+EUbzo9SQNEJlgmUCWR0oNxCGQ3MfHuZQGYLMzYoNIE4juvT6fR6mqY7AHaYebtarX4YDAbfbHXlLoCZqdPp3EnT9CYz/wUlohvmF8AWM0eLsET0Rin1IhgBQognAPZsgaIoiqWU72zrc0+g2+1emUwmXwDctoGqVCoPkiT5ZFNranIXYBYRQlwFcGAjolar3er3+z+CEmArgojSRqNxodfrjYMTYIDiOL42Ho9/MvPFFYC/tNbbtvBr20JmITONms3mewCPzwA81FrfD07ACvhjAJeWRuhQKWWmlvWV+yFeAb9fr9dfjkajz4sHm4heKaVeW9PnPYVWwRuXiYiXp1MURY+klB+DEPA/+Dnkkoi7WuvvhQs4DZ6IhlLKp8b5ZcCTh91DpdTwtP/PEuT9DNg67+Ly2gSsG97rc6AIeG8CioL3IqBI+MwCiobPJCAE+HMLCAX+XAIMfKvV2mPm3YX5vD9/PfA13237OD3IQoN3TkAI8RbAsxCcnzNYJ9Buty/PZrPfAConNxe2bf75hrDda6ZOCPEVwD0AiVLqueuLl8tatrXWCcwbmiSSJDmyXSDvOmcBeQO59i8FuDrmu75MwLejrv3KBFwd811fJuDbUdd+G5/AH1FVBkCys0Q7AAAAAElFTkSuQmCC");background-size:cover}#toolPanel .right-top-active,#toolPanel .right-top:active,#toolPanel .right-top:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAitJREFUaEPtl79vUlEUx7/nMhiWNqbapUMbMHFzEGw64NKt3Tp1rzgI4sJiOrm5dSkPBop72z+gS384OPU9/AOMkyuDcRFjhNNcIg0QXnsv78K7JJeEicO5n8/5Xu59EOb8RXPODycQd4IuAZdAxAm4LRRxgJG/7hKIPMKIDWJNYKvED1oCa/iHNHeRBmFVAMd+lXxVr6kLMDNtFPC8S3jChDS4906BkGZgBQwxCEsCB4FHZWsEMkXOo4u6MhChFFSpolyvWjhp3XqRlzqMSzCeqfSgBLaDCp2p1MqaqW8huUimzI/QxoWKRELg6bVH36wSUJYgdFPLSJ5+oL/WCUiglyV+3O7gOzMWQgB/NGu0qgo/sy0kF5Kn0YsijpixFwpIuGpWadM6gRD4XwAWh45QQiOoUt4qgXHwRPiUTOD97w7OB3/YAtj3a/TRGoEweN9Dnoh49HQSAru+RydWCNwH34cckhDIND36GrtACHzD9/BaTn4UsHfZATtBBY1xn98lZPwiU528zpRnJjBreKP3QBzwxgTigjciECd8ZIG44SMJ2AA/sYAt8BMJ/IevM+NV/3yWzzb9xwNT57tqH62LzDZ47QSyBT5kxlsbJn/LoBpV7g0//AO0GEj0zGPcNkP/IVQFZF22wJ/ByIFQ8z28033w0llLtVbrNyCbyiS+1Oin6gLTrtMWmDaQbn8noDsx0/UuAdMT1e3nEtCdmOl6l4Dpier2m/sEbgC+oQ5AyekXNQAAAABJRU5ErkJggg==")}#toolPanel .brush{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA7RJREFUaEPtmN+LVGUYx5/nzO4Mu0mzEmKzafSDMAxBEoQkIYr9YWiZRaFdCXbe9z07h/XG66bbvVpZdppzILqoVEQRxB+oZUWYlqHihf+FUNnFzk7neeRdzpHDtjvMOe+ZmRbOXM68z3s+3+/3eX+cQVjjH1zj/JAL6HeCeQJ5AoYO5C1kaKBxeZ6AsYWGE/QlAdd1S81mUwDANkS8X6lUvFqttphGS88FuK67odlsXgWA7REwIt4dGBgYm5+ff5hURE8FTE9Pb1xYWLjOzFtXAL0/ODj4dlIRPRNQrVZHW62Wht+i4RGxCQAXmXkvABRDQXdGR0ffSNJOPRHguu6mxcVFDf9KCLpgWdb+RqNxRQhxgJlPA0Ah/M3xff/LTlup6wJs234eEX9k5pci5xHxfQ0fQdq2/QsAvBn+Xvc8b+p/IaBarb4Yts0LsQVLAHDE87yv9XdCiMPM/JXuqnCM8H3f77sA27ZfDp3fvBwGEZdEICJreGa2QvdvVSqV3bVa7d++ChBC6F7XbfNcrOcPE9ExAHg9hNUiIAb/x9DQ0Njs7OyfncIvzZNkcCdjbdt+FQCuA0Bl+YJVSq0PguD7SERsvtvDw8PjSeEzFzA1NfVaq9X6AQA2LoePLVgFAPU4PACM+b7/VycG/acd0xStVGPb9jYA0PAbVoMXQhxk5m+iLRMRf2fm8bTwmSXgOM523RrM/Ewb+E+Y+bss4TMRoJTaQUTXmHn9avBSyo+J6ETssPoNACZMnH+yLZu0kJRyJxHpA2mkjfMfAcBJZh4Ix2QGb5SA4zi7giC4zMxPt3H+Q2Y+FYcvlUrjc3Nzf5sYF69NtY0qpXYT0SVmXtcG/gN9x4ngEfFWsVicyBI+VQJSyreI6AIAPNVmq9wPAPqCNhgeWl2BTyxACPEOM58HgOHV4JVS7wVBcCYGf7NYLE5m7XziRew4zrNBEDxot9sIIfYxs4Zfut8j4s1yuTwxMzPzKKueT32QSSk/I6LolvjkPh9NKKXcS0RnYy8nv46MjEx2Ez5RC0kpa0T0eejscc/zjkbwQoh3mflcr+FTC7As64tGo1HTEyil9hDROWYuheJulMvlPd12PvEaiCcAAD9blvUTM+sDTPYLPnUCKy1IRLxRKBQm6/X6P91asCs+t9OHSSk/JaJvV4G/VigUDvQaPlECzIxKqUMAEP2zoOtbRHTP87xL+vWwUzOyHJfqKpElgOlcuQBTB03r8wRMHTStzxMwddC0Pk/A1EHT+jWfwGOZQsVAynCxKQAAAABJRU5ErkJggg==");background-size:cover}#toolPanel .brush-active,#toolPanel .brush:active,#toolPanel .brush:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA6FJREFUaEPtmNuLG2UYxn9vsm5As8UidT2jK0VRCsUcFrULouxJqtYqinpVUGomifXGa9dLvVK0WRTEC49URRCt1B52RVbb7a5KL/wjBKFVoXabzCOZnQlhu9kmk0niQnKRkMn3vfN7nvcwHzE2+cs2OT99Ab3OYD8D/Qy06UC/hNo0sO3t/Qy0bWGbAXqSgemiEn+47MdlB3BmZJh3P5+xlTBaui5grKht5yt8L7EzADb4NRZjfPGg/dmqiK4KGD2g4fIKJ4C7LgE1zsSNB1sV0TUB9xd0w4UKJwR3ePDGBYNvJXYDg/61X0au5d5WyqkrAkaLuqlc9pzfvsrOv7E4exbfsSMZR3slDgninogYzvJBm222lDouIHVAt9gKc4KRwPl4jMeq8AFkytGPiF3+76XlkuX/FwKyBd1WqXjO31oDMtyYeP70rH1QvZbJaZ8L768mxnvbvzRr7/VcQKqo263CnMTN6zSsJwJDHryI+WtODg0zNj9j5Z4KGH1J28sXmQNuDGqeGPskXkHc45eK63368GYsJQcZn3/TzjYL78duZfnl16YKupPVsrl+bcPuymnreeNYTYQfzozTyUEmWoWPXEAmr7sljksMr4WvNWxeOVxKwfcqvIYYX37dzl3enktXRDaFUgXtwOU4Ylsj+LSjZxAfBiPTYFFbmAgLH1kGMo52Co5JXNMIPuPoaYmPo4SPRMBoTqkyHAW2NoTP6ym5fFJ7WBmnGGKyHedrJRim7oI96aKyqnAEcfUGZfMk8KnEgD99IoNvKwMZR/cJvpPY0hC+oCdw+awefiDOxKm37a92jKvfG6qJs0WNVSocRiQbwWfzetytnnEC5+HkwACTUcKHykC6oAfk8g3iqoajMqc9wCHgCt+tjsC3LCCT10Ouy9fAlRuUzaOq8EUAb8bP8ThTUTvfchNnHF3nit83nDaOHnHlwXvn+yp8Isnkwhv2d1Q1vzZO0z2QcfSCK7xTYv15PgiYzWt3xeXLOvifEkmmOgnfUgmlHc1IvOqPwreWS/ZybZzm9bBcvuo2fGgBZry2VLKZaoB0QdMevEj4ARcSQ0x32vmWe6A+A2b8AMwL7wH2Yq/gQ2dgvYY0WEgaU/Ml+6dTDdvgvs3dLuPoOVd8tG4Q42gS9nYbvqUMSLJsnmfl/7PgC7ko8dtSicNmpuasiHZV02M02ttGF60vIDovw0XqZyCcb9Ht6mcgOi/DRepnIJxv0e3a9Bn4D+fIhEDLZXMUAAAAAElFTkSuQmCC")}#toolPanel .mosaicPen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAh9JREFUaEPtWE1rU0EUvWcCWenKTQr9BbpxZ5ci7lxbKrqzTiaF/AQl6E8IJDOj2QmKLgVX4qIr3bmxv6DQbroo7SrgXHmSV0pIOzd5famBm1Vg7tc5587Mmwta8R9WvH5SANetoCqgClRkQFuoIoGV3edSgJnR6XS2U0rPAdxh5huVKyAiAKfM/NsYMxoOh+8AsDSuGIC1dg3Ae2Z+IA2+iB2A78z8LMZ4IPEXASiYd859q7v4suAChPf+oUQJEQDn3IuUUpQwMsNm8zI/Y0wjpXQbwA4z3yptjTHWe/82l1MEwFr7g4ju5YLNWo8xinJ0u9318Xj86xyInzHGjVxOUfB2u32y6IaVAigKtda+JqKXxf9iY4cQbl4JAGut+FSYTjgPAOfcVkrpQxlD4itSYFkArLWPieiTAphuA1UgtxMn69pCFxGlLaQtdDEDi9wDmzHGz0JSi9u11ktQAeSUUAUyDGkLaQtdwkBdn9OrfYwaY5547z/mWqdc/y9Ooakn5ZsY46u6AQA4DCGs5fJIT6GzRz2Ao2azebff7+/ngk/euQvdxAC+hhAe5XKIAEyPVQoQzDwwxuyllP5kkpw9EXPFnF8HsB1CGOV8RACuYbC1672/f2WDrUkrLG202Gg0ng4Gg8Mc+//GLxKj0qau4S4RHQPYBfCl1WqNer1ektY1FwBp0GXaKYBlsj0rlyqgClRkQFuoIoGV3Vdegb99r0JAj93gagAAAABJRU5ErkJggg==");background-size:cover}#toolPanel .mosaicPen-active,#toolPanel .mosaicPen:active,#toolPanel .mosaicPen:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAhtJREFUaEPtWL1KHFEU/r7ZIk1SCYKQJ0iawPhXSki3dSQhdlHBEcEXiIi+gBD2Lmi2CyQkZcBKLKxidgbSJE8Q0MZCtEmxc2TUXZZlN/fsjjtx4Ux77/n5fu7M3EOM+MMR7x8G4H8raAqYAjkZMAvlJDB3eF8KiAinV7GYAm8BPIXgYe4OsgTEJYBfAVD7UcEHkqLNqwYQrssE/uIjgOfa5APuO8QDLCQ7PNHEqwBkzE9GOCig+WbPh7HDC40SKgBTkSylgl0NI132zP8rjgFKInhCIBLBWHNvQCzXHfd8NVUAwki+QzDjS9ZtPalSVWNmTR43GvjZAkEcJ46zvpqq5GEkF4MeWC2ArNEwki0I3l03TVwmjo/uBsCKqN8KnQX7ATC5Kq8kxadmDk2sToGCAIQr8hLAFwPQaYPQFPAdxZt1s1AvnsxCOgeZhXry1GGh+aTKr0pSM1aH+hEc5ENmALTqDetXwhQwBdoYsEPss8O9e40ywOu4ws++xpvr9wNA+5WS2E4cN4YNgMRp7Djhq6M7A22XehJnpRKeHb/nH1/y21/kgb7EJPZjx7KvhgpA51glAyGAI/FbUjQ8RVpXRF8z7eskFmPHmi9GBaDowRaJo3oFc3c22Lq2QoGjxYB4U3c89bF/M33p4xnacBc4z1gn8K08jtrmJlNtW30B0CYtcp8BKJLtbrVMAVMgJwNmoZwE5g4feQWuAMAGG0AJpAv4AAAAAElFTkSuQmCC")}#toolPanel .separateLine{border-left:1px solid rgba(0,0,0,.1);height:16px;width:1px}#toolPanel .text{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAQFJREFUaEPtmDESgjAQRX+4ih7GkwC9NtqIjTbaQ07iYfQqiYMVDcNuNowT51PC7if7/k+KOBT+uMLXDw7wawfpAB0wEmCEjADN7XTAjNAoIHagrusNgCeArfGfS+0vADvv/XupcPyuGWAP4C4RzVBz8N4/JDqaAcp2QEJjWtO2bRdCOI/vqqq69H3faTUk9WIHJGIcQEtJs4m12oyQkBj3wBwoRogREhJghIygeAoxQoyQkQAjZATIU4gRYoSMBP42Qk3THGOM1+/lk3OnYRhua7Ba7RSa3OSN6xbftGmHXG0A7UJS6zlAKrlcfXQgF8lUHTqQSi5XHx3IRTJVp3gHPlPuzjHrWBk9AAAAAElFTkSuQmCC");background-size:cover}#toolPanel .text-active,#toolPanel .text:active,#toolPanel .text:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAARBJREFUaEPtmE0OAUEUhOtxFG6AO7iKSazYsDE2bFhJxlXcgbkBR6GlN2Jh5HW/nkhLzXLyfrq+qswkLcj8kczPDwr4tYN0gA4YCTBCRoDmdjpgRmgcoHZgMHU93HGCQ9+483u74IouxvVBbpo9egGFm8FhpxlqrhHM60r2mjl6Abk7oKHxXjMsXOkcVv6dCNaXSsrQGZp6tQOaYRQQSsm7G9GjamGEVJjoQDMmRogRUhJoKmOElAD5H2CElFFpKmOEGCFGyEiAETIC5FfobyM0mrjFA9h4gR1geT7K1piWj+2tReh1k+fXBty0hYpsTUDoQWLrKSCWXKo+OpCKZOwcOhBLLlUfHUhFMnZO9g48AScFvDFeeDPNAAAAAElFTkSuQmCC")}#toolPanel .cutbox{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAepJREFUaEPtmM9Kw0AQxmeSg0fPehQ8iljtWaF9hgoqeNskT2F9iiR7E1Swz9CCnv1TxKPgUc8ePXRHVlIIgmazkzREN6eW7iTfb75vymYRWn5hy/WDA2jaQeeAc4DZgf8XISLCKIoOdOPiOL5ERGI2kVVe2oEwDA+VUuf6qZ7nHSVJcsFSwCy2ARgqpU4ygNMkSYZMDazyvw+Qy/y6bhUR7RLRnv6MiNeIeGPTQqXUKwDc9fv9x8FgMLO5x5eGosJ85ovW2vyOiFMiOpZSPlnVFxXVDZA5+UFEXRuIQgfqihARrRDRPgAsZxDTXq/XLRunQoDvDoVhWNm/UBRFa7PZ7GEOAQDbUkr93fhqFECrDIIgJSKRKQ6klNJYvckQ1+mAvjfX0cYdcABl8laF5VVH0kWIu5lzM+BmgPk+4CLkItS2CAkh9MYrzbbAMk3ToKyL+fULnwEhRAcA7jMR777vd+I4frGFWDjAaDTyJ5PJLRFtzSEQ8QoR32wgfnnHfjY5dyq9ldAihRAbiKghlmxEm9aYnDtZAeQgznJOmOoyXlcrgFah4zQejzcBYMfzvFVjZbmFjUTIRuhPNQsf4irFV/F+YT0DVYFwD4sbB+Ae1zcOwHXSAXA7yK13DnA7yK13DnA7yK1vvQOfsw23QEVRDkEAAAAASUVORK5CYII=");background-size:cover}#toolPanel .cut-active,#toolPanel .cutbox:active,#toolPanel .cutbox:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAe9JREFUaEPtWLtOAkEUPXcpLK21k8TSGHnYoh+hJmpihwH8B/EfBAKdiZqoH6G0LkiMpQl2WltasNcMQkJIcGfn7iPobLdhDnMe997dHcKcXzTn/GEFJJ2gTcAmIHTg/5UQM9NmBfvKuMcaromIhSaK4IETyJf5wGNcql0dwqFbpysRAyE4sIBcmavMOFX7EuGsU6eqkIMI/vcFjGuegVVlFTMKALZGtj0QoW1kIeOdHXTSBTzf7dLA6D9UFfgBJ2veb63J7wT0OIWj7jm9GOJ/h0UtYLg74QsO8iYifBOIsISWGNgDsPijAb2VbeSDlpOvgOl8wpxC+RKnPeBpLAIOst0aqXvtK1EBimWuxE0GiqMUjjsNammz12niKBMYChA+V5JPwAoIUnAhRB52SdoSkr7M2SYO2ALisWd7YMoB28S2iWN/Epe4yEBz9PLV6jToOOggmFwf+xjNVjgDD90RiU8HyLgN6puKiF3Azi2n3u7hMrAxFkHADQgfJiJmfWMT8Kpz7hR4CimS2RNegwcXjAUT0roYnXMnIwFjETTAxUQSury010UqQLFQ5dRvY5085EBY1mY2sTCREjIhOgsTexOHST6RT8qwBUgPi42bOCwh0uP6xAVIjbACpA5K8TYBqYNSvE1A6qAUP/cJfAOWo3BANRNSRQAAAABJRU5ErkJggg==")}#toolPanel .save{background-size:cover}#toolPanel .save,#toolPanel .save:active,#toolPanel .save:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAldJREFUaEPtWDuL1FAU/s4VEaZJY7laaGdhpaUggo9a7bQQhHszs8wP8IWzKApTjeDA3NgoKPgLRHYbrQSxE7bbbu0UBAtxcOaTSCJhmUxu9s7DgZs255z7Pc5JTiJY8UtWHD8CgWU7GBwIDngqEFrIU0Dv9Lk5oLU+DuBthvBSkiQ73mgnFJgbAWPMLZKP0jNF5La19vFKEYjjuDMej+9noDtJkmwEAotsoeCAY7/NbYiDA8EBRwXKwkILOQoYhjgVqtlsnlRKfen3+99y4aa1kNb6KICDs9iPvBwgKXEcPyN5U0R+ArhqrX2TkigjoLVeB/AEgBKRO747khcBrXVDRD6TPJYtbb8AXE5JTCKQgX9aaO/3SZKcdWz3iWFeBNKKrVbryGg0elckQfKKUup0cZkD8BXAP/Ai8iGKoovdbvfHUgmUkQDwkeSZzJltkidyoLMC/7e2D/ti7l4nyurOEnwtAi5fWFUkpoF3qT9JFGcHXL+wykhUKe9afy8JZwLFp4pSamMwGHTK2qTdbq8Nh8MXJM8BoIi8jqLITBvYOvWL586FQH6A1vpwo9H43ev1vlfN2n9JoAp08X4gUKVWUSEReWitvVeVU+e+MeYBybtpTtWM7WsGik8JALsi8lxERnVAlsWSPEDyBoC17MXn/B/JeYiNMedJbs4CcFUNEblgrd2qiqv1IkuDjTEvSV5zKbzfGBF5Za297prv7EBeMHUCwCkROeR6iEscyXST/eSqfF6zNgEXMIuMCQQWqbbXMrdsoGXnhxZatjPBgeCApwIr30J/AO4UkkB/h2bTAAAAAElFTkSuQmCC")}#toolPanel .close{background:#f2f3f7;border-radius:4px;color:#3369ff;cursor:pointer;font-size:12px;height:24px;line-height:24px;text-align:center;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;width:48px}#toolPanel .undo-disabled{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAwRJREFUaEPtVz1rFFEUvWcmQUExsYqSTlgEEbLz3hNSBIxNUAQt/PgBiVY2CmJpoSBY2xmD2tlo8KMJacSvQt7M7KBbaPxILBQUUdIssjtzZZZd2ITEfTOz+Vic175z7znnnrvDW1CXH3S5fsoNbHSCeQJ5AhknkK9QxgFmLv+/E9BajxHRHSI6rZR6kXmcKRqkTqAh/iERbSUiXyklUvBnLkllYJn4WMSsUipOY91PYgPLxQOYBzAqhFhYd/VEyd5CK4hfsCxr1HGc+Y0QH3MaJ1AqlZxarfaqsfOZ9AL4Q0Tf4t8OgOkoiu4ppappmhobcF33OjNfSkNiUPMRwDkp5YwBdgkkiYFhInrKzFuSkpjgAUQAzgshbpjgmxhjA3GB53lHmHm6xcQnIjqklPpiSsrMtu/7A8w8QkQXmDkeTP0AYACnhBD3TfslMtApE01xzGx5nneRiK40hwLgl2VZexzH+W1iIrGBlUwAmJFSHjYhXAnjed54FEVTLXdXlVKXTfqlMrDcBIBASlk0IVwNo7V+QkRHG/fvlVJ7TfqlNtBi4i6Ak0KIZyaEq2GCINhfrVbfNO97e3sHhoaGvrfrmclAu+ZJ77XWX4lod1zX09MjisWi367HpjLguu5rZj4Qi7Ys66BJqpvNQJmZ98UGbNsecRznZdckEATBtlqt9rPlc1qQUn7oGgOu655l5psNwZW+vr6dhUIhfjP982yKFSqVSoNhGL5l5v5YLYBHUsrj7cTXsSagtcT4vt8fhuGD+EnS5LFte8xxnFkT3g010HhbTTLzYFMsgMdSymMm4hMnUC6Xt1cqlXEiqked5liWZTPzLiIaaX5xWvq8s2172PQdlNiA1nqSiM6kEd6uBsBzACeEED/aYVvvE62Q1voWEU0kITDAfiaia1LK2wBCA/wSSCIDc3NzOxYXFycApF6hmJ