javascript:%7B(()=%3E%7Bclass%20e%7Bget%20width()%7Breturn%20this._81-this._y%7Dget%20height()%7Breturn%20this._91-this._z%7Dget%20_l8()%7Breturn%20null==this._y%7Dget%20_66()%7Breturn%20Math.max(0,this._y)%7Dget%20_76()%7Breturn%20Math.max(0,this._z)%7Dget%20_m8()%7Breturn%20Math.max(0,this._81)-this._66%7Dget%20_n8()%7Breturn%20Math.max(0,this._91)-this._76%7Dconstructor(t=null,e=null,i=null,s=null)%7Bthis._y=t,this._z=e,this._81=i,this._91=s%7D_j1(t,e,i)%7Breturn%20this._Z1(t-i,e-i)._Z1(t+i,e+i),this%7D_Z1(t,e)%7Breturn%20null==this._y&&(this._81=this._y=t,this._91=this._z=e),this._y=Math.min(this._y,Math.floor(t)),this._z=Math.min(this._z,Math.floor(e)),this._81=Math.max(this._81,Math.ceil(t)),this._91=Math.max(this._91,Math.ceil(e)),this%7D_O3(t)%7Breturn%20this._Z1(t._y,t._z)._Z1(t._81,t._91)%7Dclear()%7Bthis._81=this._y=null,this._91=this._z=null%7D_V()%7Breturn%20new%20e(this._y,this._z,this._81,this._91)%7D_h2(t)%7Breturn%20Math.max(0,Math.min(this._y,t))%7D_i2(t)%7Breturn%20Math.max(0,Math.min(this._z,t))%7D_H2(t)%7Breturn%20Math.max(0,Math.min(this._81,t))-this._h2(t)%7D_I2(t)%7Breturn%20Math.max(0,Math.min(this._91,t))-this._i2(t)%7D%7Dclass%20h%7Bstatic%20_3(t=null,e=null)%7Bvar%20i=document.createElement(%22canvas%22);return%20null!=t&&(i.width=t,i.height=e),i%7Dstatic%20_w(t)%7Breturn%20t.getContext(%222d%22,%7BwillReadFrequently:!0%7D)%7Dstatic%20_j2(t,e,i=h._K2(t))%7Bvar%20s=h._w(t),_=i._h2(t.width),a=i._i2(t.height),r=i._H2(t.width),n=i._I2(t.height);s.clearRect(_,a,r,n),s.save(),s.globalAlpha=1,h._I1(s),s.fillStyle=e._n(),s.beginPath(),s.fillRect(_,a,r,n),s.restore()%7Dstatic%20_02(t,e)%7Bvar%20i=e._h2(t.width),s=e._i2(t.height),_=e._H2(t.width),a=e._I2(t.height);h._w(t).clearRect(i,s,_,a)%7Dstatic%20_M(t)%7Bvar%20e=h._3(t.width,t.height);return%20h._w(e).drawImage(t,0,0),e%7Dstatic%20_J2(t,e)%7Bvar%20i,s=e._h2(t.width),_=e._i2(t.height),a=e._H2(t.width),r=e._I2(t.height);return%200==a%7C%7C0==r?null:(i=h._3(a,r),h._w(i).drawImage(t,s,_,a,r,0,0,a,r),i)%7Dstatic%20_k2(t,e)%7Be.width=t.width,e.height=t.height,h._w(e).drawImage(t,0,0)%7Dstatic%20_K2(t)%7Breturn%20null==t?null:new%20e(0,0,t.width,t.height)%7Dstatic%20_d3(t,e,i=null)%7Bnull==i&&(i=h._K2(t));var%20s=h._w(e);s.clearRect(i._66,i._76,i._m8,i._n8),h._I1(s),h._C(t,e,i)%7Dstatic%20_C(t,e,i)%7Bvar%20s=i._h2(e.width),_=i._i2(e.height),a=i._H2(e.width),r=i._I2(e.height);0!=a&&0!=r&&h._w(e).drawImage(t,s,_,a,r,s,_,a,r)%7Dstatic%20_e3(t,e,i)%7Bvar%20s=h._w(t).getImageData(e,i,1,1).data;return%20new%20_(s%5B0%5D,s%5B1%5D,s%5B2%5D,s%5B3%5D)%7Dstatic%20_86(t,e,i)%7Breturn%200%3C=e&&e%3Ct.width&&0%3C=i&&i%3Ct.height%7Dstatic%20_l2(t,e,i)%7Bvar%20s,_,a,r,n;null!=e&&(s=i._h2(t.width),_=i._i2(t.height),a=i._H2(t.width),r=i._I2(t.height),(n=h._w(t)).clearRect(s,_,a,r),h._I1(n),n.drawImage(e,s,_))%7Dstatic%20_f3(t,e,i,s,_,a,r)%7Bs=Math.max(0,s),r=Math.max(0,r);var%20n=Math.asin((r-s)/2/Math.sqrt(Math.pow(e-_,2)+Math.pow(i-a,2))),h=Math.PI/2+Math.atan2(i-a,e-_)-n,o=h-Math.PI+2*n;isNaN(h)&&(h=0,o=2*Math.PI),t.beginPath(),t.arc(e,i,s/2,o,h),t.arc(_,a,r/2,h,o),t.fill()%7Dstatic%20_I1(t)%7Bh._12(t,r._S3)%7Dstatic%20_12(t,e)%7Bt.globalCompositeOperation=e%7D%7Dclass%20_%7Bget%20_22()%7Bvar%20t=this.r/255,e=this.g/255,i=this.b/255,s=Math.max(t,e,i),_=s-Math.min(t,e,i);return%200==_?0:s==t?Math.PI/3*(((e-i)/_+6)%256):s==e?Math.PI/3*((i-t)/_+2):Math.PI/3*((t-e)/_+4)%7Dget%20value()%7Breturn%20Math.max(this.r,this.g,this.b)/255%7Dget%20_J1()%7Bvar%20t=Math.max(this.r,this.g,this.b);return%200==t?0:(t-Math.min(this.r,this.g,this.b))/t%7Dconstructor(t=0,e=0,i=0,s=255)%7Bthis.r=t,this.g=e,this.b=i,this.a=s%7D_n(t=1)%7Breturn%20_._n(this.r,this.g,this.b,this.a/255*t)%7Dstatic%20get%20_N4()%7Breturn%20new%20_(0,0,0,0)%7Dstatic%20get%20_P3()%7Breturn%20new%20_(255,255,255)%7Dstatic%20get%20_96()%7Breturn%20new%20_(0,0,0)%7Dstatic%20get%20_o8()%7Breturn%20new%20_(255,0,0)%7Dstatic%20get%20_p8()%7Breturn%20new%20_(255,255,0)%7Dstatic%20get%20_q8()%7Breturn%20new%20_(0,255,0)%7Dstatic%20get%20_r8()%7Breturn%20new%20_(0,255,255)%7Dstatic%20get%20_s8()%7Breturn%20new%20_(0,0,255)%7Dstatic%20get%20_t8()%7Breturn%20new%20_(255,0,255)%7Dstatic%20get%20_Q3()%7Breturn%20new%20_(128,0,0)%7Dstatic%20get%20_L2()%7Breturn%20new%20_(240,224,214)%7Dstatic%20get%20_a6()%7Breturn%20new%20_(238,96,96)%7Dstatic%20get%20_a1()%7Breturn%20new%20_(240,208,195)%7Dstatic%20get%20_b6()%7Breturn%20new%20_(255,255,238)%7Dstatic%20get%20_u8()%7Breturn%20new%20_(224,160,128)%7Dstatic%20_v8(t,e,i)%7Breturn%20new%20_(e.r*i+t.r*(1-i),e.g*i+t.g*(1-i),e.b*i+t.b*(1-i))%7Dstatic%20_O4(t,e=1,i=1)%7Bvar%20s=%5B0,0,0,0%5D;return%20a(s,t,e,i),new%20_(s%5B0%5D,s%5B1%5D,s%5B2%5D)%7Dstatic%20_n(t,e,i,s=1)%7Breturn%22rgba(%22+Math.round(t)+%22,%22+Math.round(e)+%22,%22+Math.round(i)+%22,%22+s+%22)%22%7Dstatic%20_c6(t)%7Bvar%20e=t.substr(1,2),i=t.substr(3,2),s=t.substr(5,2);return%20new%20_(parseInt(e,16),parseInt(i,16),parseInt(s,16))%7D%7Dfunction%20a(t,e,i=1,s=1,_=0)%7Bvar%20a=s*i,r=a*(1-Math.abs(e/(Math.PI/3)%252-1)),n=s-a;let%20h=0,o=0,c=0;e%3CMath.PI/3?(h=a,o=r):e%3C2*Math.PI/3?(h=r,o=a):c=e%3CMath.PI?(o=a,r):e%3C4*Math.PI/3?(o=r,a):e%3C5*Math.PI/3?(h=r,a):(h=a,r),t%5B_%5D=255*(h+n),t%5B_+1%5D=255*(o+n),t%5B_+2%5D=255*(c+n),t%5B_+3%5D=255%7Dclass%20r%7Bstatic%20get%20_S3()%7Breturn%22source-over%22%7D%7Dclass%20n%7Bget%20_2()%7Breturn%20this.m_0%7Dconstructor(t)%7Bvar%20e;%22string%22==typeof%20t?((e=n._f()._2).innerHTML=t,this.m_0=e.firstElementChild):this.m_0=t%7Dstatic%20_3(t)%7Breturn%20o(document.createElement(t))%7D_k1()%7Bvar%20t=this._2.getBoundingClientRect();return%20new%20v(t.left+t.width/2,t.top+t.height/2)%7Don(t,e,i=%7B%7D)%7Breturn%20this.m_0.addEventListener(t,e,i),this%7Dclick(t,e=%7B%7D)%7Breturn%20this.on(%22click%22,t,e)%7D_h(t,e=%7B%7D)%7Breturn%20this.on(%22pointerdown%22,t,e)%7D_o(t,e=%7B%7D)%7Breturn%20this.on(%22pointermove%22,t,e)%7D_b(t,e=%7B%7D)%7Breturn%20this.on(%22pointerup%22,t,e)%7Dfind(t)%7Breturn%20o(this.m_0.querySelector(t))%7D_4(t)%7Breturn%20n._4(this._2,t),this%7D_1(t,e)%7Bif(%22string%22==typeof%20t)%7Bvar%20i,s=t,_=e;for(i%20of%20c._f6(s))this._2.style.setProperty(i+s,_)%7Delse%7Bvar%20a,r=t;for(a%20in%20r)this._1(a,r%5Ba%5D)%7Dreturn%20this%7Dappend(t)%7Breturn%20null!=t.appendChild?this._2.appendChild(t):%22string%22==typeof%20t?this.append(o(t)):this.append(t._2),this%7D_0(t)%7Breturn%20t.append(this),this%7Dremove()%7Breturn%20this._2.remove(),this%7D_a(t)%7Breturn%20this._2.classList.add(...t.split(%22%20%22)),this%7D_32(t)%7Breturn%20this._2.classList.remove(...t.split(%22%20%22)),this%7D_sb(t)%7Breturn%20this._d6(t)?this._32(t):this._a(t),this%7D_d6(t)%7Breturn%20this._2.classList.contains(t)%7D_8(t)%7Breturn%20this._2.textContent=t,this%7D_M2(t)%7Breturn%20this._2.innerHTML=t,this%7D_5(t)%7Breturn%20this._1(%22visibility%22,t?%22%22:%22hidden%22)%7D_R4()%7Bvar%20t,e=this._2.parentElement;return%20null==e?%5B%5D:%5Bt=o(e)%5D.concat(t._R4())%7D_l1(t)%7Breturn%20this.on(t,t=%3E%7Bt.stopPropagation()%7D),this%7D_S4()%7Breturn%20this._l1(%22click%22)%7D_T3()%7Breturn%20this._l1(%22pointermove%22)%7D_6(t,e)%7Breturn%20this._1(%7Bwidth:this.m_1(t),height:this.m_1(e)%7D)%7D_m(t,e)%7Breturn%20this._1(%7Bleft:this.m_1(t),top:this.m_1(e)%7D)%7D_D(t)%7Breturn%20this._1(%7Bposition:t%7D)%7D_r()%7Breturn%20this._D(%22absolute%22)%7Dm_1(t)%7Breturn%22number%22==typeof%20t?t+%22px%22:t%7Dstatic%20_j(t)%7Breturn%20o(document.createElementNS(%22http://www.w3.org/2000/svg%22,t))%7Dstatic%20_4(t,e)%7Bfor(var%20i%20in%20e)t.setAttribute(i,e%5Bi%5D)%7Dstatic%20_9()%7Breturn%20n._f()._1(%7Bdisplay:%22flex%22%7D)%7Dstatic%20_f()%7Breturn%20n._3(%22div%22)%7D%7Dfunction%20o(t)%7Breturn%20new%20n(t)%7Dclass%20c%7Bstatic%20_e6(t)%7Breturn%20t.deltaY%7Dstatic%20_f6(e)%7Breturn%5B%22user-select%22%5D.some(t=%3Et==e)?%5B%22%22,%22-moz-%22,%22-webkit-%22,%22-ms-%22%5D:%5B%22%22%5D%7Dstatic%20get%20_x8()%7Bif(null==c.m_0)%7Blet%20e=navigator.userAgent.toLowerCase(),t=%5B%22apple%22,%22android%22%5D;c.m_0=t.some(t=%3E-1!=e.indexOf(t))%7Dreturn%20c.m_0%7Dstatic%20get%20_y8()%7Breturn%20c._x8?.7:.3%7Dstatic%20get%20_z8()%7Breturn%5B%22apple%22%5D.some(t=%3E-1!=navigator.userAgent.toLowerCase().indexOf(t))%7D%7Dclass%20i%7Bconstructor()%7Bthis.m_0=new%20Array%7Dadd(t)%7Bthis.m_0.push(t)%7Dremove(e)%7Bthis.m_0=this.m_0.filter(t=%3Et!=e)%7D_d(t=null)%7Bfor(var%20e%20of%20this.m_0)e(t)%7D%7Dclass%20l%7Bstatic%20_g6(t,e)%7BglobalThis%5Bt%5D=e,l.m_0.push(t)%7Dstatic%20getData(t)%7Breturn%20globalThis%5Bt%5D%7Dstatic%20clear()%7Bfor(var%20t%20of%5B...l.m_0%5D)l._g6(t,null)%7Dstatic%20set%20_W(t)%7Bl._g6(%22canvas98%22,t)%7Dstatic%20get%20_W()%7Breturn%20l.getData(%22canvas98%22)%7D%7Dl.m_0=%5B%5D;class%20m%7Bstatic%20_b1(i)%7Breturn%20new%20Promise(t=%3E%7Blet%20e=new%20Image;e.onload=()=%3E%7Bt(e)%7D,e.src=i%7D)%7D%7Dclass%20s%7Bconstructor()%7Bthis.canvas=h._3(),this._c1=h._3(),this.background=_._N4,this.opacity=1%7D_6(t,e)%7Bvar%20i=h._M(this.canvas),s=h._3();return%20s.width=t,s.height=e,h._j2(s,this.background),h._d3(i,s),this._31(s),%7Bundo:()=%3E%7Bthis._31(i)%7D,redo:()=%3E%7Bthis._31(s)%7D%7D%7D_31(t)%7Bh._k2(t,this.canvas),h._k2(this.canvas,this._c1)%7D_U3(t,e)%7Bh._l2(this.canvas,t,e),h._l2(this._c1,t,e)%7D_V3(t)%7Bt(this)%7D_W3(t)%7Bt(this)%7D_E()%7Bthis._N2=!0,this._t&&this._t._E()%7D%7Dclass%20t%7Bget%20_A8()%7Breturn%20this.m_0()%7Dconstructor(t,e=()=%3Er._S3,i=1,s=t=%3Et)%7Bthis.name=t,this.m_0=e,this._R2=i,this.m_1=s%7D_A1(t)%7Breturn%20this.m_1(t)%7D%7Dt._h6=new%20t(%22default%22),t._i6=new%20t(%22maker%22,()=%3E%22darken%22,.5);class%20u%7Bstatic%20_K1(e)%7Breturn%20new%20Promise(t=%3E%7BsetTimeout(()=%3E%7Bt()%7D,e)%7D)%7D%7Dclass%20d%7Bget%20$()%7Breturn%20this.m_0%7Dget%20_8()%7Breturn%20this.$._2.textContent%7Dconstructor(t,e)%7Bthis.m_0=n._3(%22style%22),null!=t&&this._p(t,e)%7D_p(t,e)%7Breturn%20this.$._8(this._8+d._C8(t,e)),this%7Dstatic%20_B8(t)%7Bvar%20e,i=new%20d;for(e%20of%20t)i.$._8(i._8+e._8);return%20i%7Dstatic%20_C8(t,e)%7Bvar%20i,s=t+%22%7B%22;for(i%20in%20e)for(var%20_%20of%20c._f6(i))s+=_+i+%22:%22+e%5Bi%5D+%22;%22;return%20s+=%22%7D%22%7D%7Dclass%20g%7Bstatic%20get%20_j6()%7Breturn%22--canvas98SelectedColor%22%7Dstatic%20get%20_k6()%7Breturn%20g._q(g._j6)%7Dstatic%20get%20_R()%7Breturn%22canvas98MenuItemSelected%22%7Dstatic%20get%20_o2()%7Breturn%22canvas98MenuItemParent%22%7Dstatic%20get%20_j3()%7Breturn%22--canvas98DefaultColor%22%7Dstatic%20get%20_X()%7Breturn%20g._q(g._j3)%7Dstatic%20get%20_l6()%7Breturn%22--canvas98HighlightedBackground%22%7Dstatic%20get%20_V4()%7Breturn%20g._q(g._l6)%7Dstatic%20get%20_a1()%7Breturn%22--canvas98MenuBackground%22%7Dstatic%20get%20_L1()%7Breturn%20g._q(g._a1)%7Dstatic%20get%20_n1()%7Breturn%22--canvas98MenuColor%22%7Dstatic%20get%20_W4()%7Breturn%22--canvas98PageBackground%22%7Dstatic%20get%20_M1()%7Breturn%20g._q(g._n1)%7Dstatic%20_q(t)%7Breturn%22var(%22+t+%22)%22%7Dstatic%20get%20_J()%7Breturn%22--canvas98MenuDefaultBackground%22%7Dstatic%20get%20_S()%7Breturn%22var(--canvas98Shadow)%22%7D%7Dclass%20v%7Bconstructor(t=0,e=0)%7Bthis.x=t,this.y=e%7D_X4(t)%7Bthis.x=t.x,this.y=t.y%7Dset(t,e)%7Breturn%20this.x=t,this.y=e,this%7Dlength()%7Breturn%20Math.sqrt(this.x*this.x+this.y*this.y)%7D_V()%7Breturn%20new%20v(this.x,this.y)%7Drotate(t)%7Bvar%20e=this.x*Math.cos(t)-this.y*Math.sin(t),i=this.x*Math.sin(t)+this.y*Math.cos(t);return%20this.x=e,this.y=i,this%7Dscale(t)%7Breturn%20this.x*=t,this.y*=t,this%7D_S2(t,e)%7Breturn%20this.x+=t.x*e,this.y+=t.y*e,this%7Dadd(t)%7Breturn%20this._S2(t,1)%7D_p2(t)%7Breturn%20this._S2(t,-1)%7D_m6(t,e)%7Breturn%20this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this%7Dstatic%20_Z3(t,e)%7Breturn%20Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))%7D%7Dclass%20w%7Bstatic%20get%20_F()%7Breturn%2250px%22%7Dstatic%20get%20style()%7Breturn(new%20d)._p(%22.canvas98MenuItem%22,%7Bmargin:0,%22list-style%22:%22none%22,%22text-align%22:%22center%22,cursor:%22pointer%22,%22user-select%22:%22none%22,background:g._q(g._a1),color:g._q(g._n1),position:%22relative%22,display:%22flex%22,%22align-items%22:%22center%22,%22justify-content%22:%22center%22%7D)._p(%22.canvas98MenuItem:hover%22,%7B%5Bg._a1%5D:g._V4,%5Bg._n1%5D:g._X%7D)._p(%22.canvas98MenuItemSelected%22,%7B%5Bg._a1%5D:g._V4,%5Bg._n1%5D:g._k6%7D)._p(%22.canvas98MenuItemSelected:hover%22,%7B%5Bg._a1%5D:g._V4,%5Bg._n1%5D:g._k6%7D)._p(%22.canvas98MenuItem.material-icons%22,%7Bwidth:w._F,height:w._F,%22font-size%22:%2226px%22%7D)._p(%22.canvas98VerticalMenu%20.canvas98MenuItem%22,%7Bwidth:w._F,height:%2245px%22%7D)%7Dstatic%20_m2(t,e)%7Bfor(var%20i%20of%20e)i._7=!1;t._7=!0%7Dget%20_m1()%7Breturn%20this.m_2%7Dget%20_h3()%7Breturn%20this.m_3%7Dget%20_i3()%7Breturn%20this.m_4%7Dget%20_2()%7Breturn%20this.$._2%7Dget%20$()%7Breturn%20this.m_1%7Dget%20_T4()%7Breturn%20this.m_0%7Dset%20_7(t)%7Bt?this.$._a(g._R):this.$._32(g._R),null!=this._T4&&(this._T4._U4=this._7),this._m1._d()%7Dget%20_7()%7Breturn%20this.$._d6(g._R)%7Dconstructor(t=n._3(%22li%22))%7Bthis.m_2=new%20i,this.m_3=new%20i,this.m_4=new%20i,this.m_1=t._a(%22canvas98MenuItem%22).click(()=%3E%7B(this._7?this._i3:this._h3)._d()%7D)%7Dstatic%20_O2()%7Breturn%20n._j(%22svg%22)._4(%7Bwidth:%2247%22,height:%2247%22,viewBox:%22-25,%20-25,%2050,%2050%22%7D)._1(%7B%22vertical-align%22:%22middle%22%7D)%7D_k(t,e)%7Breturn%20this.$._a(%22material-icons%22)._4(%7Btitle:e%7D)._8(t),this%7D_P2()%7Breturn%20this.m_0=new%20p,this.m_0._U4=!1,w._O2()._r()._1(%7Bbottom:0,right:0%7D).append(this._T4.$)._0(this.$),this%7Dstatic%20_X3()%7Breturn%20n._3(%22ul%22)._a(g._o2)%7D%7D(class%20extends%20w%7B%7D);class%20p%7Bget%20$()%7Breturn%20this.m_0%7Dset%20_U4(t)%7Bthis.m_1=t,this.m_0._5(t)%7Dget%20_U4()%7Breturn%20this.m_1%7Dconstructor()%7Bthis.m_0=n._j(%22polygon%22)._4(%7Bpoints:%2220,%2020%2013,%2020%2020,%2013%22,fill:g._M1%7D)%7D%7Dclass%20f%7Bstatic%20_p5(t)%7Bvar%20e=%7Blayers:%5B%5D%7D;return%20e.layers=t.map(t=%3Ef._s3(t)),JSON.stringify(e)%7Dstatic%20_s3(t)%7Breturn%7Bdata:t.canvas.toDataURL(),background:t.background._n(),opacity:t.opacity,blendingMode:t.blendingMode%7D%7Dstatic%20_g4(i)%7Breturn%20new%20Promise(async%20t=%3E%7Bvar%20e=i.layers.map(i=%3Em._b1(i.data).then(t=%3E%7Bvar%20e=new%20s;return%20e._31(h._M(t)),e.background=f._77(i.background),e.opacity=null==i.opacity?1:i.opacity,e.blendingMode=i.blendingMode,e%7D));t(await%20Promise.all(e))%7D)%7Dstatic%20_77(t)%7Bvar%20e;return%20null!=t&&(e=t.match(/%5Ergba%5Cs*%5C(%5Cs*(%5Cd+)%5Cs*,%5Cs*(%5Cd+)%5Cs*,%5Cs*(%5Cd+)%5Cs*%5C,%5Cs*(%5Cd+)%5Cs*%5C)$/i))?new%20_(parseInt(e%5B1%5D),parseInt(e%5B2%5D),parseInt(e%5B3%5D),Math.round(255*parseFloat(e%5B4%5D))):_._N4%7D%7D(class%20extends%20s%7B%7D);class%20y%7Bget%20$()%7Breturn%20this.m_7%7Dget%20_2()%7Breturn%20this.$._2%7Dconstructor(t,e)%7Bthis.m_2=%5B%5D,this.m_0=new%20S(%22アルバム%22),this._G=e,this._N=t,this.m_h(),this.m_f()%7Dasync%20m_f()%7Bvar%20t,e=await%20this._N._W6();e.reverse();for(t%20of%20e)%7Bvar%20i=await%20this._N._q9(t);this.add(i)%7D%7Dm_g()%7Breturn(new%20d)._p(%22.canvas98MenuItem:disabled%22,%7Bopacity:.2,%5Bg._a1%5D:g._q(g._J),%5Bg._n1%5D:g._q(g._j3),cursor:%22default%22%7D)._p(%22.canvas98FileItem%22,%7B%22box-shadow%22:g._S%7D)._p(%22.canvas98FileItem:hover%22,%7B%22box-shadow%22:%220px%200px%208px%20%22+_._a6._n(.5)%7D).$%7Dm_h()%7Bthis.m_7=this.m_i();var%20t=this.m_g(),e=(this.$.append(t),n._9()._6(%22calc(100%25%20-%20300px)%22,%22calc(100%25%20-%20300px)%22)._1(%7Bbackground:%22yellow%22,%22flex-direction%22:%22column%22,position:%22absolute%22%7D)._0(this.$)),i=n._9()._1(%7Bbackground:g._q(g._J),%22box-shadow%22:g._S,%22z-index%22:1,%22flex-direction%22:%22column%22%7D)._0(e);this.m_j(i),this.m_1=n._9()._0(i),this.m_3=n._3(%22div%22)._6(%22100%25%22,%22100%25%22)._1(%7Bbackground:_._b6._n(),position:%22relative%22%7D)._0(e),this.m_0.$._0(this.m_3)%7Dm_i()%7Breturn%20class%7Bstatic%20_3()%7Blet%20e=n._3(%22div%22)._1(%7Bposition:%22fixed%22,background:%22rgba(0,%200,%200,%200.5)%22,display:%22flex%22,%22justify-content%22:%22center%22,%22align-items%22:%22center%22%7D)._m(0,0)._6(%22100%25%22,%22100%25%22).click(t=%3E%7Bt.target==e._2&&e.remove()%7D);return%20e%7D%7D._3()._4(%7Bid:%22canvas98AlbumDialog%22%7D)%7Dm_j(t)%7Bvar%20e=new%20x;e._K6=()=%3E%7Bthis.m_p()%7D,e._L6=t=%3E%7Bthis.m_t(t)%7D,e._M6=async()=%3E%7Bvar%20t=await%20this.m_s();this.m_4(%22はっちゃんアルバムデータ.html%22,t)%7D,e._N6=async%20t=%3E%7Bawait%20this.m_l(t)%7D,e._O6=()=%3E%7Bthis.m_k()%7D,e._q3=async()=%3E%7Bfor(var%20t%20of%20this.m_0._t9)t._q3(),await%20u._K1(1e3)%7D,e.$._0(t),this.$.click(()=%3E%7Be._k9()%7D)%7Dasync%20m_k()%7Bif(confirm(%22作品をすべて削除します%E3%80%82よろしいですか?%22)&&confirm(%22この操作は取り消せません%E3%80%82アルバムの作品データはすべて失われます%E3%80%82続行しますか?%22))%7Bfor(var%20t%20of%20await%20this._N._W6())await%20this._N.remove(t);this.m_0._w9()%7D%7Dm_4(t,e)%7Bvar%20i=document.createElement(%22a%22);i.href=e,i.download=t,i.click()%7Dasync%20m_l(t)%7B0==this.m_1._2.childElementCount&&(this.m_0._84._0(this.m_1).click(()=%3E%7Bthis.m_5(this.m_0)%7D),this.m_2.push(this.m_0)),await%20this.m_m(t)%7Dm_5(t)%7BS._x9(this.m_2,t)%7Dasync%20m_m(t)%7Blet%20e=new%20S(t.name);e._84._0(this.m_1).click(()=%3E%7Bthis.m_5(e)%7D),this.m_2.push(e),this.m_5(e),e.$._0(this.m_3);var%20i,s=await%20this.m_8(t);for(i%20of%20b._J6(s).reverse())await%20this.m_n(i,e)%7Dasync%20m_8(t)%7Breturn%20new%20Promise(e=%3E%7Blet%20i=new%20FileReader;i.onload=()=%3E%7Bvar%20t=i.result;e(t)%7D,i.readAsText(t)%7D)%7Dasync%20m_n(e,t)%7Bvar%20i=await%20m._b1(e.thumbnail),s=(await%20u._K1(0),new%20M(e.dateTime,i));s._n9(),this._G._r4(s._t2,async()=%3E%7Bawait%20this.m_c(e.content)%7D),s._t2.click(()=%3E%7Bthis.m_a(e.content)%7D),s._U6=async()=%3E%7Bvar%20t=await%20this._N.add(e.content,e.dateTime,e.thumbnail);this.m_d(t),this.m_6(t),this.m_0._u9()%7D,t.add(s)%7Dm_9()%7Breturn%20null!=this._G.ui.$._2.querySelector(%22%23canvas98LayerButton%22)%7Dasync%20m_a(t)%7Blet%20e=await%20this._j5._g4(JSON.parse(t));1%3Ce.length&&!this.m_9()?alert(%22レイヤーを使用した作品です%E3%80%82レイヤー拡張を実行してください%22):(this._G.layers._c2(()=%3Ee,e%5B0%5D),this.m_b())%7Dm_b()%7Bthis.$.remove()%7Dasync%20m_c(t)%7Blet%20e=await%20this._j5._g4(JSON.parse(t));1%3Ce.length&&!this.m_9()?alert(%22レイヤーを使用した作品です%E3%80%82レイヤー拡張を実行してください%22):(this._G.layers._c2(()=%3Ethis.m_o(e),e%5B0%5D),this.m_b())%7Dm_o(t)%7Bvar%20e=this._G.layers.layers,i=e%5B0%5D.canvas,s=t%5B0%5D.canvas;if(s.width!=i.width%7C%7Cs.height!=i.height)for(var%20_%20of%20t)_._6(i.width,i.height);return%20e.concat(t)%7Dasync%20m_d(t)%7Bvar%20e=await%20m._b1(t.thumbnail);this._N._X6(t.id,t.dateTime,this.m_q(e))%7Dget%20_j5()%7Bvar%20t=this._G._33._u5;return%20t%7C%7Cf%7Dasync%20m_p()%7Bvar%20t=this._j5._p5(this._G.layers.layers),e=await%20this._N.add(t,new%20Date,this._G.layers._P.toDataURL());this._N._X6(e.id,e.dateTime,this.m_r(this._G.layers._P)),this.m_6(e)%7Dm_q(t)%7Breturn%20h._M(t).toDataURL()%7Dm_r(t)%7Bvar%20e=Math.min(t.width,150)/t.width,i=Math.min(t.height,150)/t.height,s=Math.min(e,i),_=h._M(t);return%20this._G._43._u2(_,s).toDataURL()%7Dasync%20m_s()%7Breturn%20new%20Promise(async%20t=%3E%7Bvar%20e=await%20this._N._p9(),i=new%20Blob(%5Bb._I6(e)%5D,%7Btype:%22text/html%22%7D);t(URL.createObjectURL(i))%7D)%7Dasync%20m_t(t)%7Bvar%20e,i=await%20this.m_8(t);for(e%20of%20b._J6(i))%7Bvar%20s=await%20this._N.add(e.content,e.dateTime,e.thumbnail);this.m_d(s),this.m_6(s)%7D%7Dm_e(s)%7Breturn%20new%20Promise(async%20t=%3E%7Bvar%20e=await%20m._b1(s.thumbnail),i=new%20M(s.dateTime,e);this._G._r4(i._t2,async()=%3E%7Bvar%20t=await%20this._N.get(s.id);await%20this.m_c(t.content)%7D),i._t2.click(async()=%3E%7Bvar%20t=await%20this._N.get(s.id);await%20this.m_a(t.content)%7D),i._R6=()=%3E%7Bconfirm(%22作品を削除します%E3%80%82よろしいですか?%22)&&(this._N.remove(s.id),i._S6())%7D,i._T6=()=%3E%7Bthis.m_u(s.id,s.dateTime)%7D,i._q3=async()=%3E%7Bvar%20t=(await%20this._N.get(s.id)).thumbnail;this.m_4(M._V6(s.dateTime)+%22.png%22,t)%7D,t(i)%7D)%7Dasync%20m_u(t,e)%7Bvar%20i=await%20this._N.get(t),s=%22data:text/html,%22+b._I6(%5B%7Bid:t,content:i.content,dateTime:i.dateTime,thumbnail:i.thumbnail%7D%5D);this.m_4(%22はっちゃん作品データ_%22+M._V6(e)+%22.html%22,s)%7Dasync%20add(t)%7Bvar%20e=await%20this.m_e(t);this.m_0.add(e)%7Dasync%20m_6(t)%7Bvar%20e=await%20this.m_e(t);this.m_0._v9(e)%7D%7Dclass%20b%7Bstatic%20_I6(t)%7Bvar%20e,i=n._3(%22div%22),s=n._3(%22div%22)._0(i),_=n._3(%22div%22)._0(s)._1(%7Bposition:%22absolute%22,left:0,top:0,%22overflow-y%22:%22scroll%22,display:%22flex%22,%22flex-wrap%22:%22wrap%22,background:%22%23FFFFEE%22,width:%22100%25%22,height:%22100%25%22%7D);for(e%20of%20t)%7Bvar%20a=new%20Image;a.src=e.thumbnail,a.title=e.dateTime.toLocaleString(),o(a)._0(_)._1(%7Bmargin:%225px%22,%22box-shadow%22:%222px%202px%204px%20rgba(0,%200,%200,%200.1)%22,%22object-fit%22:%22scale-down%22%7D)._4(%7Bcanvas98Content:e.content%7D)%7Dreturn%20n._3(%22div%22)._0(s)._1(%7Bvisibility:%22hidden%22%7D)._a(%22signature%22)._8(b._j9(t)),i._2.innerHTML%7Dstatic%20_j9(t)%7Bvar%20e=new%20I(32);return%20e._r9(%5B%22This%20is%20an%20exported%20album%20file%20of%20canvas98.%22%5D.concat(t.map(t=%3Et.content)).reduce((t,e)=%3Et+e)),e._s9()%7Dstatic%20_J6(t)%7Bvar%20e,i=%5B%5D;for(e%20of%20o(t)._2.querySelectorAll(%22img%22))%7Bvar%20s,_=e.getAttribute(%22canvas98Content%22);null!=_&&(s=%7Bid:null,content:_,dateTime:new%20Date(e.title),thumbnail:e.src%7D,i.push(s))%7Dreturn%20i%7D%7D(class%7Bstatic%20async%20run(t)%7Bawait%20u._K1(0);var%20e=globalThis.canvas98Loaded;e&&(await%20e,t())%7D%7D).run(()=%3Eclass%20s%7Bstatic%20async%20run()%7Bconsole.log(%22album%22);var%20t,e,i=l._W;s._B1%7C%7C(t=await%20k._o9(),e=new%20y(t,i),i.ui.$.append(e._2))%7Dstatic%20get%20_B1()%7Breturn%20null!=document.getElementById(%22canvas98AlbumDialog%22)%7D%7D.run());class%20x%7Bget%20$()%7Breturn%20this.m_1%7Dconstructor()%7Bthis.m_2=()=%3E%7B%7D,this._K6=()=%3E%7B%7D,this._L6=t=%3E%7B%7D,this._M6=()=%3E%7B%7D,this._N6=async%20t=%3E%7B%7D,this._q3=()=%3E%7B%7D,this._O6=()=%3E%7B%7D;var%20t=n._3(%22div%22)._1(%7Bbackground:g._q(g._J),%22z-index%22:1,display:%22flex%22,%22justify-content%22:%22space-between%22%7D),e=(this.m_1=t,n._3(%22button%22)._8(%22save%22)._1(%7Bwidth:%2250px%22,height:%2250px%22,border:%220%22,outline:%220%22%7D)._a(%22canvas98MenuItem%20material-icons%22).on(%22click%22,t=%3E%7Be.disabled%7C%7C(this._K6(),e.disabled=!0)%7D)._4(%7Btitle:%22保存%22%7D)._2);t.append(e),this.m_3(t)%7Dm_3(t)%7Bvar%20e=n._3(%22div%22)._1(%7Bposition:%22relative%22%7D)._0(t),i=(n._3(%22div%22)._8(%22more_vert%22)._1(%7Bwidth:%2250px%22,height:%2250px%22,padding:%220%22%7D)._a(%22canvas98MenuItem%20material-icons%22)._0(e).click(t=%3E%7Bi=!i,s._5(i),t.stopPropagation()%7D),!1),s=(this.m_2=()=%3E%7Bi=!1,s._5(i)%7D,n._3(%22div%22)._1(%7Bposition:%22absolute%22,right:%220%22,width:%22300px%22,%22box-shadow%22:g._S%7D)._0(e)._5(i)),_=(this.m_4(s),n._3(%22label%22)._0(s)),a=n._3(%22input%22)._4(%7Btype:%22file%22,accept:%22text/html%22,multiple:%22multiple%22%7D)._1(%7Bwidth:0,height:0,overflow:%22hidden%22,position:%22absolute%22%7D)._0(_).on(%22change%22,()=%3E%7Bfor(var%20t%20of%20a.files)this._L6(t)%7D)._2;this.m_0(%22インポート%22)._0(_),this.m_0(%22エクスポート%22)._0(s).click(()=%3E%7Bthis._M6()%7D),this.m_0(%22すべて画像として保存%22)._0(s).click(()=%3E%7Bthis._q3()%7D),this.m_0(%22すべて削除%22)._0(s).click(()=%3E%7Bthis._O6()%7D)%7Dm_0(t)%7Breturn%20n._3(%22div%22)._a(%22canvas98MenuItem%22)._1(%7B%22font-size%22:%2216px%22,height:%2250px%22,%22justify-content%22:%22flex-start%22,%22padding-left%22:%2220px%22%7D)._8(t)%7Dm_4(t)%7Bvar%20e=n._3(%22label%22)._0(t),i=n._3(%22input%22)._4(%7Btype:%22file%22,accept:%22text/html%22,multiple:%22multiple%22%7D)._1(%7Bwidth:0,height:0,overflow:%22hidden%22,position:%22absolute%22%7D)._0(e).on(%22change%22,async()=%3E%7Bfor(var%20t%20of%20i.files)await%20this._N6(t)%7D)._2;n._3(%22div%22)._0(e)._a(%22canvas98MenuItem%22)._1(%7B%22font-size%22:%2216px%22,height:%2250px%22,%22justify-content%22:%22flex-start%22,%22padding-left%22:%2220px%22%7D)._8(%22開く%22)%7D_k9()%7Bthis.m_2()%7D%7Dclass%20M%7Bget%20$()%7Breturn%20this.m_0%7Dget%20_k5()%7Breturn%20this.m_1%7Dget%20_l9()%7Breturn%20this.m_2%7Dget%20_m9()%7Breturn%20this.m_3%7Dget%20_t2()%7Breturn%20this.m_4%7Dconstructor(t,e)%7Bthis._P6=150,this._Q6=150,this._R6=()=%3E%7B%7D,this._S6=()=%3E%7B%7D,this._T6=()=%3E%7B%7D,this._U6=()=%3E%7B%7D,this._q3=()=%3E%7B%7D;var%20i=n._3(%22div%22)._1(%7Bmargin:%2210px%22,position:%22relative%22,overflow:%22hidden%22,padding:0,%22border-radius%22:%225px%22%7D)._a(%22canvas98FileItem%22),s=(this.m_0=i,n._3(%22div%22)._1(%7Bwidth:this._P6+%22px%22,height:this._Q6+%22px%22,overflow:%22hidden%22,display:%22flex%22,%22justify-content%22:%22center%22,%22align-items%22:%22center%22,cursor:%22pointer%22%7D)._0(i)._4(%7Btitle:t.toLocaleString()%7D)),_=(this.m_4=s,e),a=Math.min(this._P6/_.width,this._Q6/_.height);_.style.transform=%22scale(%22+a+%22)%22,s.append(_),this.m_5()%7Dm_5()%7Bvar%20t=n._3(%22div%22)._0(this.$)._1(%7Bdisplay:%22flex%22,%22justify-content%22:%22flex-end%22,background:g._q(g._J)%7D),e=n._3(%22a%22)._0(t)._a(%22canvas98MenuItem%20material-icons%22)._1(%7B%22font-size%22:%2216px%22,width:%2240px%22,height:%2240px%22,%22border-radius%22:%2220px%22,padding:%220%22,%22text-decoration%22:%22none%22%7D)._8(%22save_alt%22)._4(%7Btitle:%22ファイルに保存%22%7D).click(()=%3E%7Bthis._T6()%7D);this.m_2=e,this.m_1=n._3(%22div%22)._1(%7Bwidth:%2240px%22,height:%2240px%22,%22border-radius%22:%2220px%22,padding:%220%22%7D)._a(%22canvas98MenuItem%20material-icons%22)._8(%22delete%22)._4(%7Btitle:%22削除%22%7D).click(t=%3E%7Bthis._R6(),t.stopPropagation()%7D)._0(t),this.m_3=n._3(%22div%22)._1(%7Bwidth:%2240px%22,height:%2240px%22,%22border-radius%22:%2220px%22,padding:%220%22,display:%22none%22%7D)._a(%22canvas98MenuItem%20material-icons%22)._8(%22unarchive%22)._4(%7Btitle:%22アルバムに追加%22%7D).click(t=%3E%7Bthis._U6(),t.stopPropagation()%7D)._0(t)%7Dstatic%20_V6(t)%7Bvar%20e=%22%22;return(e+=t.getFullYear()+%22-%22)+(t.getMonth()+1+%22-%22)+(t.getDate()+%22%20%22)+(t.getHours()+%22-%22)+(t.getMinutes()+%22-%22)+t.getSeconds()%7D_n9()%7Bthis._k5._1(%7Bdisplay:%22none%22%7D),this._l9._1(%7Bdisplay:%22none%22%7D),this._m9._1(%7Bdisplay:%22%22%7D)%7D%7Dclass%20k%7Bstatic%20_o9()%7Breturn%20new%20Promise((t,e)=%3E%7Blet%20i=new%20k(()=%3E%7Bt(i)%7D)%7D)%7Dconstructor(e=()=%3E%7B%7D)%7Bthis.m_1=%22works%22,this.m_2=%22thumbnails_150%22,this.m_0=null;var%20i=window.indexedDB.open(%22canvas98Works2%22,1);i.onerror=()=%3E%7Bconsole.log(%22error%22)%7D,i.onupgradeneeded=t=%3E%7Bconsole.log(%22upgrade%22),this.m_0=i.result,this.m_0.objectStoreNames.contains(this.m_1)%7C%7Cthis.m_0.createObjectStore(this.m_1,%7BkeyPath:%22id%22,autoIncrement:!0%7D),this.m_0.objectStoreNames.contains(this.m_2)%7C%7Cthis.m_0.createObjectStore(this.m_2,%7BkeyPath:%22id%22%7D)%7D,i.onsuccess=t=%3E%7Bconsole.log(%22success%22),this.m_0=i.result,console.log(this.m_0.objectStoreNames),e()%7D%7Dadd(s,_,a)%7Breturn%20new%20Promise(e=%3E%7Bvar%20i=%7Bcontent:s,dateTime:_,thumbnail:a%7D,t=this.m_0.transaction(%5Bthis.m_1%5D,%22readwrite%22).objectStore(this.m_1).add(i);t.onsuccess=t=%3E%7Be(%7Bid:t.target.result,content:i.content,dateTime:i.dateTime,thumbnail:a%7D)%7D,t.onerror=t=%3E%7Bconsole.log(%22error%22)%7D%7D)%7Dget(t)%7Breturn%20new%20Promise(e=%3E%7Bvar%20i=this.m_0.transaction(%5Bthis.m_1%5D).objectStore(this.m_1).get(t);i.onsuccess=t=%3E%7Be(i.result)%7D%7D)%7D_p9()%7Breturn%20new%20Promise(t=%3E%7Blet%20e=this.m_0.transaction(%5Bthis.m_1%5D).objectStore(this.m_1).getAll();e.onsuccess=()=%3E%7Bt(e.result)%7D%7D)%7D_W6()%7Breturn%20new%20Promise(e=%3E%7Bvar%20i=this.m_0.transaction(%5Bthis.m_2%5D).objectStore(this.m_2).getAllKeys();i.onsuccess=t=%3E%7Be(i.result.map(t=%3Et))%7D%7D)%7Dremove(t)%7Bvar%20e=this.m_0.transaction(%5Bthis.m_1,this.m_2%5D,%22readwrite%22);e.objectStore(this.m_1).delete(t),e.objectStore(this.m_2).delete(t)%7D_X6(t,e,i)%7Bvar%20s=%7Bid:t,dateTime:e,thumbnail:i%7D;this.m_0.transaction(%5Bthis.m_2%5D,%22readwrite%22).objectStore(this.m_2).add(s)%7D_q9(t)%7Breturn%20new%20Promise(e=%3E%7Bvar%20i=this.m_0.transaction(%5Bthis.m_2%5D).objectStore(this.m_2).get(t);i.onsuccess=t=%3E%7Be(i.result)%7D%7D)%7D%7Dclass%20I%7Bget%20length()%7Breturn%20this.values.length%7Dconstructor(e)%7Bthis.values=%5B%5D;for(let%20t=this.index=0;t%3Ce;t++)this.values.push(0)%7D_s(e)%7Bfor(let%20t=0;t%3Ce.length;t++)this.values%5Bthis.index%5D%5E=e%5Bt%5D,this.index++,this.index%25=this.values.length%7D_r9(e)%7Bvar%20i=new%20Uint8Array(e.length);for(let%20t=0;t%3Ci.length;t++)i%5Bt%5D=e.charCodeAt(t);this._s(i)%7D_s9()%7Bvar%20e,i=%22%22;for(e%20of%20this.values)%7Blet%20t=e.toString(16);i+=t=t.length%3C=1?%220%22+t:t%7Dreturn%20i%7D%7Dclass%20S%7Bget%20_84()%7Breturn%20this.m_1%7Dget%20$()%7Breturn%20this.m_4%7Dget%20_t9()%7Breturn%20this.m_2%7Dconstructor(t)%7Bthis.m_0=0,this.m_3=%22%22,this.m_2=new%20Set,this.m_3=t;var%20e=this.m_7(t).click(()=%3E%7Bthis.m_0=0,this.m_1._8(t)._4(%7Btitle:t%7D)%7D);this.m_1=e,this.m_4=n._9()._6(%22100%25%22,%22100%25%22)._m(0,0)._1(%7B%22flex-wrap%22:%22wrap%22,%22align-items%22:%22flex-start%22,%22overflow-y%22:%22auto%22,%22-webkit-overflow-scrolling%22:%22touch%22,position:%22absolute%22,outline:%22none%22%7D)._4(%7Btabindex:0%7D).on(%22keydown%22,t=%3E%7B%22ArrowDown%22==t.key&&this.$._2.scrollBy(0,30),%22ArrowUp%22==t.key&&this.$._2.scrollBy(0,-30)%7D),this.m_6()%7Dm_6()%7Bvar%20i=!1,s=null;this.$._h(t=%3E%7Bs=t.offsetY,i=!0%7D)._o(t=%3E%7Bvar%20e;i&&(e=t.offsetY-s,this.$._2.scrollBy(0,-e),s=t.offsetY)%7D)._b(t=%3E%7Bi=!1%7D)%7Dm_7(t)%7Breturn%20n._3(%22div%22)._a(%22canvas98MenuItem%22)._6(240,50)._1(%7B%22font-size%22:%2216px%22%7D)._8(t)._4(%7Btitle:t%7D)%7D_u9()%7Bthis.m_0++,this.m_1._8(this.m_3+%22%20(%22+this.m_0+%22)%22)._4(%7Btitle:this.m_3+%22%20(%22+this.m_0+%22)%22%7D)%7Dadd(t)%7Bthis.$._2.appendChild(t.$._2),this.m_5(t)%7Dm_5(t)%7Bt._S6=()=%3E%7Bthis.remove(t)%7D,this.m_2.add(t)%7Dremove(t)%7Bt.$.remove(),this.m_2.delete(t)%7D_v9(t)%7Bthis.$._2.insertBefore(t.$._2,this.$._2.firstChild),this.m_5(t)%7D_w9()%7Bfor(var%20t%20of%5B...this.m_2.values()%5D)this.remove(t)%7Dstatic%20_x9(t,e)%7Bthis.m_9(t),e.$._5(!0),this.m_8(t,e._84)%7Dstatic%20m_8(t,e)%7Bfor(var%20i%20of%20t)i._84._32(g._R);e._a(g._R)%7Dstatic%20m_9(t)%7Bfor(var%20e%20of%20t)e.$._5(!1)%7D%7D%7D)();%7D