2 lines
647 KiB
JavaScript
Vendored
2 lines
647 KiB
JavaScript
Vendored
/*! For license information please see 954.js.LICENSE.txt */
|
||
(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[954,486,206],{50917:(t,e,n)=>{var r;r=function(t,e,r){var i=[];function o(t){i.push(t)}function a(t){this.selector=t;for(var e=0;e<i.length;e++)"function"==typeof i[e]&&i[e].call(this,this)}return a.assemble=o,o(n(80952)),o(n(92840)),o(n(87361)),o(n(70368)),o(n(23425)),o(n(95998)),o(n(11324)),o(n(7862)),o(n(43122)),!0!==window.__minderReadOnly&&(o(n(54771)),o(n(37641)),o(n(75357)),o(n(73642)),o(n(95593))),r.exports=a}.call(e,n,e,t),void 0===r||(t.exports=r)},56294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>Dn});n(43666),n(29157);var r=n(93379),i=n.n(r),o=n(34051),a={insert:"head",singleton:!1};i()(o.Z,a);o.Z.locals;let s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function c(t){for(var e="",n=0;n<t;n++){var r=Math.ceil(35*Math.random());e+=s[r]}return e}var u=n(19139),l={insert:"head",singleton:!1};i()(u.Z,l);u.Z.locals;function h(t){return h="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},h(t)}var f=Uint8Array,d=Uint16Array,p=Uint32Array,g=new f([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),m=new f([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),v=new f([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b=function(t,e){for(var n=new d(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new p(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},y=b(g,2),w=y[0],x=y[1];w[28]=258,x[258]=28;for(var A=b(m,0),_=A[0],S=A[1],k=new d(32768),N=0;N<32768;++N){var L=(43690&N)>>>1|(21845&N)<<1;L=(61680&(L=(52428&L)>>>2|(13107&L)<<2))>>>4|(3855&L)<<4,k[N]=((65280&L)>>>8|(255&L)<<8)>>>1}var C=function(t,e,n){for(var r=t.length,i=0,o=new d(e);i<r;++i)++o[t[i]-1];var a,s=new d(e);for(i=0;i<e;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new d(1<<e);var c=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],l=e-t[i],h=s[t[i]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)a[k[h]>>>c]=u}else for(a=new d(r),i=0;i<r;++i)a[i]=k[s[t[i]-1]++]>>>15-t[i];return a},P=new f(288);for(N=0;N<144;++N)P[N]=8;for(N=144;N<256;++N)P[N]=9;for(N=256;N<280;++N)P[N]=7;for(N=280;N<288;++N)P[N]=8;var E=new f(32);for(N=0;N<32;++N)E[N]=5;var I=C(P,9,0),M=C(P,9,1),T=C(E,5,0),O=C(E,5,1),D=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},R=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},B=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},F=function(t){return(t/8>>0)+(7&t&&1)},j=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof d?d:t instanceof p?p:f)(n-e);return r.set(t.subarray(e,n)),r},q=function(t,e,n){var r=t.length,i=!e||n,o=!n||n.i;n||(n={}),e||(e=new f(3*r));var a=function(t){var n=e.length;if(t>n){var r=new f(Math.max(2*n,t));r.set(e),e=r}},s=n.f||0,c=n.p||0,u=n.b||0,l=n.l,h=n.d,d=n.m,p=n.n,b=8*r;do{if(!l){n.f=s=R(t,c,1);var y=R(t,c+1,3);if(c+=3,!y){var x=t[(z=F(c)+4)-4]|t[z-3]<<8,A=z+x;if(A>r){if(o)throw"unexpected EOF";break}i&&a(u+x),e.set(t.subarray(z,A),u),n.b=u+=x,n.p=c=8*A;continue}if(1==y)l=M,h=O,d=9,p=5;else{if(2!=y)throw"invalid block type";var S=R(t,c,31)+257,k=R(t,c+10,15)+4,N=S+R(t,c+5,31)+1;c+=14;for(var L=new f(N),P=new f(19),E=0;E<k;++E)P[v[E]]=R(t,c+3*E,7);c+=3*k;var I=D(P),T=(1<<I)-1;if(!o&&c+N*(I+7)>b)break;var q=C(P,I,1);for(E=0;E<N;){var z,V=q[R(t,c,T)];if(c+=15&V,(z=V>>>4)<16)L[E++]=z;else{var U=0,H=0;for(16==z?(H=3+R(t,c,3),c+=2,U=L[E-1]):17==z?(H=3+R(t,c,7),c+=3):18==z&&(H=11+R(t,c,127),c+=7);H--;)L[E++]=U}}var G=L.subarray(0,S),W=L.subarray(S);d=D(G),p=D(W),l=C(G,d,1),h=C(W,p,1)}if(c>b)throw"unexpected EOF"}i&&a(u+131072);for(var Y=(1<<d)-1,X=(1<<p)-1,J=d+p+18;o||c+J<b;){var Z=(U=l[B(t,c)&Y])>>>4;if((c+=15&U)>b)throw"unexpected EOF";if(!U)throw"invalid length/literal";if(Z<256)e[u++]=Z;else{if(256==Z){l=null;break}var K=Z-254;if(Z>264){var Q=g[E=Z-257];K=R(t,c,(1<<Q)-1)+w[E],c+=Q}var $=h[B(t,c)&X],tt=$>>>4;if(!$)throw"invalid distance";c+=15&$;W=_[tt];if(tt>3){Q=m[tt];W+=B(t,c)&(1<<Q)-1,c+=Q}if(c>b)throw"unexpected EOF";i&&a(u+131072);for(var et=u+K;u<et;u+=4)e[u]=e[u-W],e[u+1]=e[u+1-W],e[u+2]=e[u+2-W],e[u+3]=e[u+3-W];u=et}}n.l=l,n.p=c,n.b=u,l&&(s=1,n.m=d,n.d=h,n.n=p)}while(!s);return u==e.length?e:j(e,0,u)},z=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},V=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},U=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,o=n.slice();if(!i)return[new f(0),0];if(1==i){var a=new f(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],u=0,l=1,h=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=i-1;)s=n[n[u].f<n[h].f?u++:h++],c=n[u!=l&&n[u].f<n[h].f?u++:h++],n[l++]={s:-1,f:s.f+c.f,l:s,r:c};var p=o[0].s;for(r=1;r<i;++r)o[r].s>p&&(p=o[r].s);var g=new d(p+1),m=H(n[l-1],g,0);if(m>e){r=0;var v=0,b=m-e,y=1<<b;for(o.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));r<i;++r){var w=o[r].s;if(!(g[w]>e))break;v+=y-(1<<m-g[w]),g[w]=e}for(v>>>=b;v>0;){var x=o[r].s;g[x]<e?v-=1<<e-g[x]++-1:++r}for(;r>=0&&v;--r){var A=o[r].s;g[A]==e&&(--g[A],++v)}m=e}return[new f(g),m]},H=function(t,e,n){return-1==t.s?Math.max(H(t.l,e,n+1),H(t.r,e,n+1)):e[t.s]=n},G=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new d(++e),r=0,i=t[0],o=1,a=function(t){n[r++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=t[s]}return[n.subarray(0,r),e]},W=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},Y=function(t,e,n){var r=n.length,i=F(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=n[o];return 8*(i+4+r)},X=function(t,e,n,r,i,o,a,s,c,u,l){z(e,l++,n),++i[256];for(var h=U(i,15),f=h[0],p=h[1],b=U(o,15),y=b[0],w=b[1],x=G(f),A=x[0],_=x[1],S=G(y),k=S[0],N=S[1],L=new d(19),M=0;M<A.length;++M)L[31&A[M]]++;for(M=0;M<k.length;++M)L[31&k[M]]++;for(var O=U(L,7),D=O[0],R=O[1],B=19;B>4&&!D[v[B-1]];--B);var F,j,q,H,X=u+5<<3,J=W(i,P)+W(o,E)+a,Z=W(i,f)+W(o,y)+a+14+3*B+W(L,D)+(2*L[16]+3*L[17]+7*L[18]);if(X<=J&&X<=Z)return Y(e,l,t.subarray(c,c+u));if(z(e,l,1+(Z<J)),l+=2,Z<J){F=C(f,p,0),j=f,q=C(y,w,0),H=y;var K=C(D,R,0);z(e,l,_-257),z(e,l+5,N-1),z(e,l+10,B-4),l+=14;for(M=0;M<B;++M)z(e,l+3*M,D[v[M]]);l+=3*B;for(var Q=[A,k],$=0;$<2;++$){var tt=Q[$];for(M=0;M<tt.length;++M){var et=31&tt[M];z(e,l,K[et]),l+=D[et],et>15&&(z(e,l,tt[M]>>>5&127),l+=tt[M]>>>12)}}}else F=I,j=P,q=T,H=E;for(M=0;M<s;++M)if(r[M]>255){et=r[M]>>>18&31;V(e,l,F[et+257]),l+=j[et+257],et>7&&(z(e,l,r[M]>>>23&31),l+=g[et]);var nt=31&r[M];V(e,l,q[nt]),l+=H[nt],nt>3&&(V(e,l,r[M]>>>5&8191),l+=m[nt])}else V(e,l,F[r[M]]),l+=j[r[M]];return V(e,l,F[256]),l+j[256]},J=new p([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Z=new f(0),K=function(t,e,n,r,i,o){var a=t.length,s=new f(r+a+5*(1+Math.floor(a/7e3))+i),c=s.subarray(r,s.length-i),u=0;if(!e||a<8)for(var l=0;l<=a;l+=65535){var h=l+65535;h<a?u=Y(c,u,t.subarray(l,h)):(c[l]=o,u=Y(c,u,t.subarray(l,a)))}else{for(var v=J[e-1],b=v>>>13,y=8191&v,w=(1<<n)-1,A=new d(32768),_=new d(w+1),k=Math.ceil(n/3),N=2*k,L=function(e){return(t[e]^t[e+1]<<k^t[e+2]<<N)&w},C=new p(25e3),P=new d(288),E=new d(32),I=0,M=0,T=(l=0,0),O=0,D=0;l<a;++l){var R=L(l),B=32767&l,q=_[R];if(A[B]=q,_[R]=B,O<=l){var z=a-l;if((I>7e3||T>24576)&&z>423){u=X(t,c,0,C,P,E,M,T,D,l-D,u),T=I=M=0,D=l;for(var V=0;V<286;++V)P[V]=0;for(V=0;V<30;++V)E[V]=0}var U=2,H=0,G=y,W=B-q&32767;if(z>2&&R==L(l-W))for(var K=Math.min(b,z)-1,Q=Math.min(32767,l),$=Math.min(258,z);W<=Q&&--G&&B!=q;){if(t[l+U]==t[l+U-W]){for(var tt=0;tt<$&&t[l+tt]==t[l+tt-W];++tt);if(tt>U){if(U=tt,H=W,tt>K)break;var et=Math.min(W,tt-2),nt=0;for(V=0;V<et;++V){var rt=l-W+V+32768&32767,it=rt-A[rt]+32768&32767;it>nt&&(nt=it,q=rt)}}}W+=(B=q)-(q=A[B])+32768&32767}if(H){C[T++]=268435456|x[U]<<18|S[H];var ot=31&x[U],at=31&S[H];M+=g[ot]+m[at],++P[257+ot],++E[at],O=l+U,++I}else C[T++]=t[l],++P[t[l]]}}u=X(t,c,o,C,P,E,M,T,D,l-D,u),o||(u=Y(c,u,Z))}return j(s,0,r+F(u)+i)},Q=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)i+=r+=n[a];r%=65521,i%=65521}t=r,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},$=function(t,e,n,r,i){return K(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},tt=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},et=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},nt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function rt(t,e){void 0===e&&(e={});var n=Q();n.p(t);var r=$(t,e,2,4);return et(r,e),tt(r,r.length-4,n.d()),r}function it(t,e){return q((nt(t),t.subarray(2,-4)),e)}var ot=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function at(){ot.console&&"function"==typeof ot.console.log&&ot.console.log.apply(ot.console,arguments)}var st={log:at,warn:function(t){ot.console&&("function"==typeof ot.console.warn?ot.console.warn.apply(ot.console,arguments):at.call(null,arguments))},error:function(t){ot.console&&("function"==typeof ot.console.error?ot.console.error.apply(ot.console,arguments):at(t))}};function ct(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){dt(r.response,e,n)},r.onerror=function(){st.error("could not download file")},r.send()}function ut(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function lt(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var ht,ft,dt=ot.saveAs||("object"!==("undefined"==typeof window?"undefined":h(window))||window!==ot?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=ot.URL||ot.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?ut(i.href)?ct(t,e,n):lt(i,i.target="_blank"):lt(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){lt(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(ut(t))ct(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){lt(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==h(e)&&(st.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return ct(t,e,n);var i="application/octet-stream"===t.type,o=/constructor/i.test(ot.HTMLElement)||ot.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":h(FileReader))){var s=new FileReader;s.onloadend=function(){var t=s.result;t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},s.readAsDataURL(t)}else{var c=ot.URL||ot.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout((function(){c.revokeObjectURL(u)}),4e4)}});function pt(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(t);a&&(e=o(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function gt(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=vt(n,r,i,o,e[0],7,-680876936),o=vt(o,n,r,i,e[1],12,-389564586),i=vt(i,o,n,r,e[2],17,606105819),r=vt(r,i,o,n,e[3],22,-1044525330),n=vt(n,r,i,o,e[4],7,-176418897),o=vt(o,n,r,i,e[5],12,1200080426),i=vt(i,o,n,r,e[6],17,-1473231341),r=vt(r,i,o,n,e[7],22,-45705983),n=vt(n,r,i,o,e[8],7,1770035416),o=vt(o,n,r,i,e[9],12,-1958414417),i=vt(i,o,n,r,e[10],17,-42063),r=vt(r,i,o,n,e[11],22,-1990404162),n=vt(n,r,i,o,e[12],7,1804603682),o=vt(o,n,r,i,e[13],12,-40341101),i=vt(i,o,n,r,e[14],17,-1502002290),n=bt(n,r=vt(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=bt(o,n,r,i,e[6],9,-1069501632),i=bt(i,o,n,r,e[11],14,643717713),r=bt(r,i,o,n,e[0],20,-373897302),n=bt(n,r,i,o,e[5],5,-701558691),o=bt(o,n,r,i,e[10],9,38016083),i=bt(i,o,n,r,e[15],14,-660478335),r=bt(r,i,o,n,e[4],20,-405537848),n=bt(n,r,i,o,e[9],5,568446438),o=bt(o,n,r,i,e[14],9,-1019803690),i=bt(i,o,n,r,e[3],14,-187363961),r=bt(r,i,o,n,e[8],20,1163531501),n=bt(n,r,i,o,e[13],5,-1444681467),o=bt(o,n,r,i,e[2],9,-51403784),i=bt(i,o,n,r,e[7],14,1735328473),n=yt(n,r=bt(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=yt(o,n,r,i,e[8],11,-2022574463),i=yt(i,o,n,r,e[11],16,1839030562),r=yt(r,i,o,n,e[14],23,-35309556),n=yt(n,r,i,o,e[1],4,-1530992060),o=yt(o,n,r,i,e[4],11,1272893353),i=yt(i,o,n,r,e[7],16,-155497632),r=yt(r,i,o,n,e[10],23,-1094730640),n=yt(n,r,i,o,e[13],4,681279174),o=yt(o,n,r,i,e[0],11,-358537222),i=yt(i,o,n,r,e[3],16,-722521979),r=yt(r,i,o,n,e[6],23,76029189),n=yt(n,r,i,o,e[9],4,-640364487),o=yt(o,n,r,i,e[12],11,-421815835),i=yt(i,o,n,r,e[15],16,530742520),n=wt(n,r=yt(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=wt(o,n,r,i,e[7],10,1126891415),i=wt(i,o,n,r,e[14],15,-1416354905),r=wt(r,i,o,n,e[5],21,-57434055),n=wt(n,r,i,o,e[12],6,1700485571),o=wt(o,n,r,i,e[3],10,-1894986606),i=wt(i,o,n,r,e[10],15,-1051523),r=wt(r,i,o,n,e[1],21,-2054922799),n=wt(n,r,i,o,e[8],6,1873313359),o=wt(o,n,r,i,e[15],10,-30611744),i=wt(i,o,n,r,e[6],15,-1560198380),r=wt(r,i,o,n,e[13],21,1309151649),n=wt(n,r,i,o,e[4],6,-145523070),o=wt(o,n,r,i,e[11],10,-1120210379),i=wt(i,o,n,r,e[2],15,718787259),r=wt(r,i,o,n,e[9],21,-343485551),t[0]=Ct(n,t[0]),t[1]=Ct(r,t[1]),t[2]=Ct(i,t[2]),t[3]=Ct(o,t[3])}function mt(t,e,n,r,i,o){return e=Ct(Ct(e,t),Ct(r,o)),Ct(e<<i|e>>>32-i,n)}function vt(t,e,n,r,i,o,a){return mt(e&n|~e&r,t,e,i,o,a)}function bt(t,e,n,r,i,o,a){return mt(e&r|n&~r,t,e,i,o,a)}function yt(t,e,n,r,i,o,a){return mt(e^n^r,t,e,i,o,a)}function wt(t,e,n,r,i,o,a){return mt(n^(e|~r),t,e,i,o,a)}function xt(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)gt(r,At(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(gt(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,gt(r,i),r}function At(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}ht=ot.atob.bind(ot),ft=ot.btoa.bind(ot);var _t="0123456789abcdef".split("");function St(t){for(var e="",n=0;n<4;n++)e+=_t[t>>8*n+4&15]+_t[t>>8*n&15];return e}function kt(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Nt(t){return xt(t).map(kt).join("")}var Lt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=St(t[e]);return t.join("")}(xt("hello"));function Ct(t,e){if(Lt){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function Pt(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+a.charCodeAt(c))%256,s[c]=s[u],s[u]=l}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(c=0;c<h;c++)d=(d+(l=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=l,a=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^a);return p}var Et={print:4,modify:8,copy:16,"annot-forms":32};function It(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==Et.perm)throw new Error("Invalid permission: "+t);i+=Et[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=Nt(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Pt(this.encryptionKey,this.padding)}function Mt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function Tt(t){if("object"!==h(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var a=e[n][o];try{a[0].apply(t,r)}catch(n){ot.console&&st.error("jsPDF PubSub Error",n.message,n)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ot(t){if(!(this instanceof Ot))return new Ot(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Dt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Rt(t,e,n,r,i){if(!(this instanceof Rt))return new Rt(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Dt.call(this,r,i)}function Bt(t,e,n,r,i){if(!(this instanceof Bt))return new Bt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Dt.call(this,r,i)}function Ft(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,c=16,u="S",l=null;"object"===h(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,null!==(l=t.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),s="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(!0===o?["FlateEncode"]:a),r=r||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=Tt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};i=i||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function x(){this.saveGraphicsState(),$(new Gt(yt,0,0,-yt,0,qn()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),u="n",w=y.ADVANCED}function A(){this.restoreGraphicsState(),u="S",w=y.COMPAT}var _=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===y.COMPAT;return e&&x.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&A.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var S,k=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},N=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,16)};var L=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return N(t,2)},C=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return N(t,3)},P=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*yt:w===y.ADVANCED?t:void 0},E=function(t){return w===y.COMPAT?qn()-t:w===y.ADVANCED?t:void 0},I=function(t){return P(E(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var M,T="00000000000000000000000000000000",O=p.__private__.getFileId=function(){return T},D=p.__private__.setFileId=function(t){return T=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():T.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(Ye=new It(l.userPermissions,l.userPassword,l.ownerPassword,T)),T};p.setFileId=function(t){return D(t),this},p.getFileId=function(){return O()};var R=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),o].join("")},B=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},F=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return M=e},j=p.__private__.getCreationDate=function(t){var e=M;return"jsDate"===t&&(e=B(M)),e};p.setCreationDate=function(t){return F(t),this},p.getCreationDate=function(t){return j(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},V=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},U=0,H=[],G=[],W=0,Y=[],X=[],J=!1,Z=G,K=function(){U=0,W=0,G=[],H=[],Y=[],$t=Zt(),te=Zt()};p.__private__.setCustomOutputDestination=function(t){J=!0,Z=t};var Q=function(t){J||(Z=t)};p.__private__.resetCustomOutputDestination=function(){J=!1,Z=G};var $=p.__private__.out=function(t){return t=t.toString(),W+=t.length+1,Z.push(t),Z},tt=p.__private__.write=function(t){return $(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},et=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},nt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return nt};var rt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return rt=w===y.ADVANCED?t/yt:t,this};var it,at=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?rt:rt*yt},ct=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ct=t,this},p.__private__.getR2L=p.getR2L=function(){return ct};var ut,lt=p.__private__.setZoomMode=function(t){if(/^\d*\.?\d*%$/.test(t))it=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');it=t}else it=parseInt(t,10)};p.__private__.getZoomMode=function(){return it};var ht,gt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ut=t};p.__private__.getPageMode=function(){return ut};var mt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');ht=t};p.__private__.getLayoutMode=function(){return ht},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return lt(t),mt(e),gt(n),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[t]},p.__private__.getDocumentProperties=function(){return vt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in vt)vt.hasOwnProperty(e)&&t[e]&&(vt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[t]=e};var bt,yt,wt,xt,At,_t={},St={},kt=[],Nt={},Lt={},Ct={},Pt={},Et=null,Dt=0,jt=[],qt=new Tt(p),zt=t.hotfixes||[],Vt={},Ut={},Ht=[],Gt=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Gt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Gt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Gt(e,n,r,i,o,a)},Gt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var c=Math.sqrt(n*n+r*r);return s/=c,t*(r/=c)<e*(n/=c)&&(t=-t,e=-e,s=-s,a=-a),{scale:new Gt(a,0,0,c,0,0),translate:new Gt(1,0,0,1,i,o),rotate:new Gt(t,e,-e,t,0,0),skew:new Gt(1,0,s,1,0,0)}},Gt.prototype.toString=function(t){return this.join(" ")},Gt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=1/(t*r-e*n),s=r*a,c=-e*a,u=-n*a,l=t*a;return new Gt(s,c,u,l,-s*i-u*o,-c*i-l*o)},Gt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new Mn(e,n)},Gt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new Mn(t.x+t.w,t.y+t.h));return new Tn(e.x,e.y,n.x-e.x,n.y-e.y)},Gt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new Gt(t,e,n,r,i,o)},p.Matrix=Gt;var Wt=p.matrixMult=function(t,e){return e.multiply(t)},Yt=new Gt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Yt;var Xt=function(t,e){if(!Lt[t]){var n=(e instanceof Rt?"Sh":"P")+(Object.keys(Nt).length+1).toString(10);e.id=n,Lt[t]=n,Nt[n]=e,qt.publish("addPattern",e)}};p.ShadingPattern=Rt,p.TilingPattern=Bt,p.addShadingPattern=function(t,e){return k("addShadingPattern()"),Xt(t,e),this},p.beginTilingPattern=function(t){k("beginTilingPattern()"),Dn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},p.endTilingPattern=function(t,e){k("endTilingPattern()"),e.stream=X[q].join("\n"),Xt(t,e),qt.publish("endTilingPattern",e),Ht.pop().restore()};var Jt=p.__private__.newObject=function(){var t=Zt();return Kt(t,!0),t},Zt=p.__private__.newObjectDeferred=function(){return U++,H[U]=function(){return W},U},Kt=function(t,e){return e="boolean"==typeof e&&e,H[t]=W,e&&$(t+" 0 obj"),t},Qt=p.__private__.newAdditionalObject=function(){var t={objId:Zt(),content:""};return Y.push(t),t},$t=Zt(),te=Zt(),ee=p.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new pt(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,i=255&c}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else if(2===t.precision)e=L(n/255)+" "+a[0];else e=C(n/255)+" "+a[0];else if(void 0===o||"object"===h(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else if(2===t.precision)e=[L(n/255),L(r/255),L(i/255),a[1]].join(" ");else e=[C(n/255),C(r/255),C(i/255),a[1]].join(" ")}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else if(2===t.precision)e=[L(n),L(r),L(i),L(o),a[2]].join(" ");else e=[C(n),C(r),C(i),C(o),a[2]].join(" ");return e},re=p.__private__.getFilters=function(){return a},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==l&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(s=Ye.encryptor(a,0));var c={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(c=void 0!==Ft.API.processDataByFilters?Ft.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var f=0;f<u.length;f+=1)if("DecodeParms"===u[f].key){for(var d=[],p=0;p<c.reverseChain.split("/").length-1;p+=1)d.push("null");d.push(u[f].value),u[f].value="["+d.join(" ")+"]"}}$("<<");for(var g=0;g<u.length;g++)$("/"+u[g].key+" "+u[g].value);$(">>"),0!==c.data.length&&($("stream"),$(s(c.data)),$("endstream"))},oe=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Kt(r,!0),$("<</Type /Page"),$("/Parent "+t.rootDictionaryObjId+" 0 R"),$("/Resources "+t.resourceDictionaryObjId+" 0 R"),$("/MediaBox ["+parseFloat(S(t.mediaBox.bottomLeftX))+" "+parseFloat(S(t.mediaBox.bottomLeftY))+" "+S(t.mediaBox.topRightX)+" "+S(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&$("/CropBox ["+S(t.cropBox.bottomLeftX)+" "+S(t.cropBox.bottomLeftY)+" "+S(t.cropBox.topRightX)+" "+S(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&$("/BleedBox ["+S(t.bleedBox.bottomLeftX)+" "+S(t.bleedBox.bottomLeftY)+" "+S(t.bleedBox.topRightX)+" "+S(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&$("/TrimBox ["+S(t.trimBox.bottomLeftX)+" "+S(t.trimBox.bottomLeftY)+" "+S(t.trimBox.topRightX)+" "+S(t.trimBox.topRightY)+"]"),null!==t.artBox&&$("/ArtBox ["+S(t.artBox.bottomLeftX)+" "+S(t.artBox.bottomLeftY)+" "+S(t.artBox.topRightX)+" "+S(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&$("/UserUnit "+t.userUnit),qt.publish("putPage",{objId:r,pageContext:jt[e],pageNumber:e,page:n}),$("/Contents "+i+" 0 R"),$(">>"),$("endobj");var o=n.join("\n");return w===y.ADVANCED&&(o+="\nQ"),Kt(i,!0),ie({data:o,filters:re(),objectId:i}),$("endobj"),r},ae=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Dt;t++)jt[t].objId=Zt(),jt[t].contentsObjId=Zt();for(t=1;t<=Dt;t++)n.push(oe({number:t,data:X[t],objId:jt[t].objId,contentsObjId:jt[t].contentsObjId,mediaBox:jt[t].mediaBox,cropBox:jt[t].cropBox,bleedBox:jt[t].bleedBox,trimBox:jt[t].trimBox,artBox:jt[t].artBox,userUnit:jt[t].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:te}));Kt($t,!0),$("<</Type /Pages");var r="/Kids [";for(e=0;e<Dt;e++)r+=n[e]+" 0 R ";$(r+"]"),$("/Count "+Dt),$(">>"),$("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:$,newObject:Jt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Jt(),$("<<"),$("/Type /Font"),$("/BaseFont /"+Mt(t.postScriptName)),$("/Subtype /Type1"),"string"==typeof t.encoding&&$("/Encoding /"+t.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj"))},ce=function(){for(var t in _t)_t.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(_t[t])},ue=function(t){t.objectNumber=Jt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),$("endobj")},le=function(){for(var t in Vt)Vt.hasOwnProperty(t)&&ue(Vt[t])},he=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",c=0,u=0;u<r.length;u++){for(n=r[u];n>t[c+1].offset;)c++;var l=t[c].offset,h=(n-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=V(Math.round((1-h)*f[0]+h*d[0]).toString(16))+V(Math.round((1-h)*f[1]+h*d[1]).toString(16))+V(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var n=Jt(),r=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),$("endobj"),t.objectNumber=Jt(),$("<< /ShadingType "+t.type),$("/ColorSpace /DeviceRGB");var o="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),$(o+="]"),t.matrix&&$("/Matrix ["+t.matrix.toString()+"]"),$("/Function "+n+" 0 R"),$("/Extend [true true]"),$(">>"),$("endobj")},de=function(t,e){var n=Zt(),r=Jt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),i.push({key:"XStep",value:S(t.xStep)}),i.push({key:"YStep",value:S(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),$("endobj")},pe=function(t){var e;for(e in Nt)Nt.hasOwnProperty(e)&&(Nt[e]instanceof Rt?fe(Nt[e]):Nt[e]instanceof Bt&&de(Nt[e],t))},ge=function(t){for(var e in t.objectNumber=Jt(),$("<<"),t)switch(e){case"opacity":$("/ca "+L(t[e]));break;case"stroke-opacity":$("/CA "+L(t[e]))}$(">>"),$("endobj")},me=function(){var t;for(t in Ct)Ct.hasOwnProperty(t)&&ge(Ct[t])},ve=function(){for(var t in $("/XObject <<"),Vt)Vt.hasOwnProperty(t)&&Vt[t].objectNumber>=0&&$("/"+t+" "+Vt[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),$(">>")},be=function(){Ye.oid=Jt(),$("<<"),$("/Filter /Standard"),$("/V "+Ye.v),$("/R "+Ye.r),$("/U <"+Ye.toHexString(Ye.U)+">"),$("/O <"+Ye.toHexString(Ye.O)+">"),$("/P "+Ye.P),$(">>"),$("endobj")},ye=function(){for(var t in $("/Font <<"),_t)_t.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&$("/"+t+" "+_t[t].objectNumber+" 0 R");$(">>")},we=function(){if(Object.keys(Nt).length>0){for(var t in $("/Shading <<"),Nt)Nt.hasOwnProperty(t)&&Nt[t]instanceof Rt&&Nt[t].objectNumber>=0&&$("/"+t+" "+Nt[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),$(">>")}},xe=function(t){if(Object.keys(Nt).length>0){for(var e in $("/Pattern <<"),Nt)Nt.hasOwnProperty(e)&&Nt[e]instanceof p.TilingPattern&&Nt[e].objectNumber>=0&&Nt[e].objectNumber<t&&$("/"+e+" "+Nt[e].objectNumber+" 0 R");qt.publish("putTilingPatternDict"),$(">>")}},Ae=function(){if(Object.keys(Ct).length>0){var t;for(t in $("/ExtGState <<"),Ct)Ct.hasOwnProperty(t)&&Ct[t].objectNumber>=0&&$("/"+t+" "+Ct[t].objectNumber+" 0 R");qt.publish("putGStateDict"),$(">>")}},_e=function(t){Kt(t.resourcesOid,!0),$("<<"),$("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),xe(t.objectOid),Ae(),ve(),$(">>"),$("endobj")},Se=function(){var t=[];ce(),me(),le(),pe(t),qt.publish("putResources"),t.forEach(_e),_e({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},ke=function(){qt.publish("putAdditionalObjects");for(var t=0;t<Y.length;t++){var e=Y[t];Kt(e.objId,!0),$(e.content),$("endobj")}qt.publish("postPutAdditionalObjects")},Ne=function(t){St[t.fontName]=St[t.fontName]||{},St[t.fontName][t.fontStyle]=t.id},Le=function(t,e,n,r,i){var o={id:"F"+(Object.keys(_t).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return qt.publish("addFont",{font:o,instance:this}),_t[o.id]=o,Ne(o),o.id},Ce=function(t){for(var e=0,n=nt.length;e<n;e++){var r=Le.call(this,t[e][0],t[e][1],t[e][2],nt[e][3],!0);!1===f&&(d[r]=!0);var i=t[e][0].split("-");Ne({id:r,fontName:i[0],fontStyle:i[1]||""})}qt.publish("addFonts",{fonts:_t,dictionary:St})},Pe=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!ot.console)throw new Error(n);ot.console.error(n,t),ot.alert&&alert(n)}},t.foo.bar=t,t.foo},Ee=function(t,e){var n,r,i,o,a,s,c,u,l;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&_t[bt].metadata&&_t[bt].metadata[i]&&_t[bt].metadata[i].encoding&&(o=_t[bt].metadata[i].encoding,!a&&_t[bt].encoding&&(a=_t[bt].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(c=!1,s=[],n=0,r=t.length;n<r;n++)(u=a[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(n=t.length;void 0===c&&0!==n;)t.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((l=(u=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)},Ie=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Me=p.__private__.beginPage=function(t){X[++Dt]=[],jt[Dt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},De(Dt),Q(X[q])},Te=function(t,e){var r,o,a;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(t)&&(o=t[0]*yt,a=t[1]*yt),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(st.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}Me(i),gn(dn),$(_n),0!==Pn&&$(Pn+" J"),0!==En&&$(En+" j"),qt.publish("addPage",{pageNumber:Dt})},Oe=function(t){t>0&&t<=Dt&&(X.splice(t,1),jt.splice(t,1),Dt--,q>Dt&&(q=Dt),this.setPage(q))},De=function(t){t>0&&t<=Dt&&(q=t)},Re=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return X.length-1},Be=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:_t[bt].fontName,e=void 0!==e?e:_t[bt].fontStyle,r=t.toLowerCase(),void 0!==St[r]&&void 0!==St[r][e]?i=St[r][e]:void 0!==St[t]&&void 0!==St[t][e]?i=St[t][e]:!1===n.disableWarning&&st.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=St.times[e])&&(i=St.times.normal),i},Fe=p.__private__.putInfo=function(){var t=Jt(),e=function(t){return t};for(var n in null!==l&&(e=Ye.encryptor(t,0)),$("<<"),$("/Producer ("+Ie(e("jsPDF "+Ft.version))+")"),vt)vt.hasOwnProperty(n)&&vt[n]&&$("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Ie(e(vt[n]))+")");$("/CreationDate ("+Ie(e(M))+")"),$(">>"),$("endobj")},je=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||$t;switch(Jt(),$("<<"),$("/Type /Catalog"),$("/Pages "+e+" 0 R"),it||(it="fullwidth"),it){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+it;"%"===n.substr(n.length-1)&&(it=parseInt(it)/100),"number"==typeof it&&$("/OpenAction [3 0 R /XYZ null null "+L(it)+"]")}switch(ht||(ht="continuous"),ht){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}ut&&$("/PageMode /"+ut),qt.publish("putCatalog"),$(">>"),$("endobj")},qe=p.__private__.putTrailer=function(){$("trailer"),$("<<"),$("/Size "+(U+1)),$("/Root "+U+" 0 R"),$("/Info "+(U-1)+" 0 R"),null!==l&&$("/Encrypt "+Ye.oid+" 0 R"),$("/ID [ <"+T+"> <"+T+"> ]"),$(">>")},ze=p.__private__.putHeader=function(){$("%PDF-"+g),$("%ºß¬à")},Ve=p.__private__.putXRef=function(){var t="0000000000";$("xref"),$("0 "+(U+1)),$("0000000000 65535 f ");for(var e=1;e<=U;e++)"function"==typeof H[e]?$((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?$((t+H[e]).slice(-10)+" 00000 n "):$("0000000000 00000 n ")},Ue=p.__private__.buildDocument=function(){K(),Q(G),qt.publish("buildDocument"),ze(),ae(),ke(),Se(),null!==l&&be(),Fe(),je();var t=W;return Ve(),qe(),$("startxref"),$(""+t),$("%%EOF"),Q(X[q]),G.join("\n")},He=p.__private__.getBlob=function(t){return new Blob([et(t)],{type:"application/pdf"})},Ge=p.output=p.__private__.output=Pe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Ue();case"save":p.save(e.filename);break;case"arraybuffer":return et(Ue());case"blob":return He(Ue());case"bloburi":case"bloburl":if(void 0!==ot.URL&&"function"==typeof ot.URL.createObjectURL)return ot.URL&&ot.URL.createObjectURL(He(Ue()))||void 0;st.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Ue();try{n=ft(r)}catch(t){n=ft(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(ot)){var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",o=ot.open();return null!==o&&o.document.write(i),o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(ot)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',s=ot.open();if(null!==s){s.document.write(a);var c=this;s.document.documentElement.querySelector("#pdfViewer").onload=function(){s.document.title=e.filename,s.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return s}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(ot))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',l=ot.open();if(null!==l&&(l.document.write(u),l.document.title=e.filename),l||"undefined"==typeof safari)return l;break;case"datauri":case"dataurl":return ot.document.location.href=this.output("datauristring",e);default:return null}})),We=function(t){return!0===Array.isArray(zt)&&zt.indexOf(t)>-1};switch(r){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=1==We("px_scaling")?.75:96/72;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);yt=r}var Ye=null;F(),D();var Xe=function(t){return null!==l?Ye.encryptor(t,0):function(t){return t}},Je=p.__private__.getPageInfo=p.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:jt[t].objId,pageNumber:t,pageContext:jt[t]}},Ze=p.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in jt)if(jt[e].objId===t)break;return Je(e)},Ke=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:jt[q].objId,pageNumber:q,pageContext:jt[q]}};p.addPage=function(){return Te.apply(this,arguments),this},p.setPage=function(){return De.apply(this,arguments),Q.call(this,X[q]),this},p.insertPage=function(t){return this.addPage(),this.movePage(q,t),this},p.movePage=function(t,e){var n,r;if(t>e){n=X[t],r=jt[t];for(var i=t;i>e;i--)X[i]=X[i-1],jt[i]=jt[i-1];X[e]=n,jt[e]=r,this.setPage(e)}else if(t<e){n=X[t],r=jt[t];for(var o=t;o<e;o++)X[o]=X[o+1],jt[o]=jt[o+1];X[e]=n,jt[e]=r,this.setPage(e)}return this},p.deletePage=function(){return Oe.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,r,i){var o,a,s,c,u,l,f,p,g,m=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var v=n;n=e,e=t,t=v}if(arguments[3]instanceof Gt==0?(s=arguments[4],c=arguments[5],"object"===h(f=arguments[3])&&null!==f||("string"==typeof s&&(c=s,s=null),"string"==typeof f&&(c=f,f=null),"number"==typeof f&&(s=f,f=null),r={flags:f,angle:s,align:c})):(k("The transform parameter of text() with a Matrix value"),g=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var b="",x=!1,A="number"==typeof r.lineHeightFactor?r.lineHeightFactor:fn,_=m.internal.scaleFactor;function N(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),Ie(t,f)}function L(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function C(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var E=!1,I=!0;if("string"==typeof t)E=!0;else if(Array.isArray(t)){var M=t.concat();a=[];for(var T,O=M.length;O--;)("string"!=typeof(T=M.shift())||Array.isArray(T)&&"string"!=typeof T[0])&&(I=!1);E=I}if(!1===E)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var D=rt/m.internal.scaleFactor,R=D*(A-1);switch(r.baseline){case"bottom":n-=R;break;case"top":n+=D-R;break;case"hanging":n+=D-2*R;break;case"middle":n+=D/2-R}if((l=r.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(m.splitTextToSize(e,l))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Ie,activeFontKey:bt,fonts:_t,activeFontSize:rt}},qt.publish("preProcessText",o),t=o.text,s=(r=o.options).angle,g instanceof Gt==0&&s&&"number"==typeof s){s*=Math.PI/180,0===r.rotationDirection&&(s=-s),w===y.ADVANCED&&(s=-s);var B=Math.cos(s),F=Math.sin(s);g=new Gt(B,F,-F,B,0,0)}else s&&s instanceof Gt&&(g=s);w!==y.ADVANCED||g||(g=Yt),void 0!==(u=r.charSpace||Ln)&&(b+=S(P(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=r.horizontalScale)&&(b+=S(100*p)+" Tz\n"),r.lang;var j=-1,q=void 0!==r.renderingMode?r.renderingMode:r.stroke,z=m.internal.getCurrentPageInfo().pageContext;switch(q){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var V=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==j?b+=j+" Tr\n":-1!==V&&(b+="0 Tr\n"),-1!==j&&(z.usedRenderingMode=j),c=r.align||"left";var U,H=rt*A,G=m.internal.pageSize.getWidth(),W=_t[bt];u=r.charSpace||Ln,l=r.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},r.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var X;a=L(t),"left"!==c&&(U=a.map((function(t){return m.getStringUnitWidth(t,{font:W,charSpace:u,fontSize:rt,doKerning:!1})*rt/_})));var J,Z=0;if("right"===c){e-=U[0],t=[],O=a.length;for(var K=0;K<O;K++)0===K?(J=yn(e),X=wn(n)):(J=P(Z-U[K]),X=-H),t.push([a[K],J,X]),Z=U[K]}else if("center"===c){e-=U[0]/2,t=[],O=a.length;for(var Q=0;Q<O;Q++)0===Q?(J=yn(e),X=wn(n)):(J=P((Z-U[Q])/2),X=-H),t.push([a[Q],J,X]),Z=U[Q]}else if("left"===c){t=[],O=a.length;for(var tt=0;tt<O;tt++)t.push(a[tt])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],O=a.length,l=0!==l?l:G;for(var et=0;et<O;et++)X=0===et?wn(n):-H,J=0===et?yn(e):0,et<O-1?Y.push(S(P((l-U[et])/(a[et].split(" ").length-1)))):Y.push(0),t.push([a[et],J,X])}}var nt="boolean"==typeof r.R2L?r.R2L:ct;!0===nt&&(t=C(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Ie,activeFontKey:bt,fonts:_t,activeFontSize:rt}},qt.publish("postProcessText",o),t=o.text,x=o.mutex.isHex||!1;var it=_t[bt].encoding;"WinAnsiEncoding"!==it&&"StandardEncoding"!==it||(t=C(t,(function(t,e,n){return[N(t),e,n]}))),a=L(t),t=[];for(var ot,at,st,ut=0,lt=1,ht=Array.isArray(a[0])?lt:ut,ft="",dt=function(t,e,n){var i="";return n instanceof Gt?(n="number"==typeof r.angle?Wt(n,new Gt(1,0,0,1,t,e)):Wt(new Gt(1,0,0,1,t,e),n),w===y.ADVANCED&&(n=Wt(new Gt(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=S(t)+" "+S(e)+" Td\n",i},pt=0;pt<a.length;pt++){switch(ft="",ht){case lt:st=(x?"<":"(")+a[pt][0]+(x?">":")"),ot=parseFloat(a[pt][1]),at=parseFloat(a[pt][2]);break;case ut:st=(x?"<":"(")+a[pt]+(x?">":")"),ot=yn(e),at=wn(n)}void 0!==Y&&void 0!==Y[pt]&&(ft=Y[pt]+" Tw\n"),0===pt?t.push(ft+dt(ot,at,g)+st):ht===ut?t.push(ft+st):ht===lt&&t.push(ft+dt(ot,at,g)+st)}t=ht===ut?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var gt="BT\n/";return gt+=bt+" "+rt+" Tf\n",gt+=S(rt*A)+" TL\n",gt+=kn+"\n",gt+=b,gt+=t,$(gt+="ET"),d[bt]=!0,m};var Qe=p.__private__.clip=p.clip=function(t){return $("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return Qe("evenodd")},p.__private__.discardPath=p.discardPath=function(){return $("n"),this};var $e=p.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(t){return $e(t)&&(u=t),this};var tn=p.__private__.getStyle=p.getStyle=function(t){var e=u;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},en=p.close=function(){return $("h"),this};p.stroke=function(){return $("S"),this},p.fill=function(t){return nn("f",t),this},p.fillEvenOdd=function(t){return nn("f*",t),this},p.fillStroke=function(t){return nn("B",t),this},p.fillStrokeEvenOdd=function(t){return nn("B*",t),this};var nn=function(t,e){"object"===h(e)?an(e,t):$(t)},rn=function(t){null===t||w===y.ADVANCED&&void 0===t||(t=tn(t),$(t))};function on(t,e,n,r,i){var o=new Bt(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return Xt(a,o),o}var an=function(t,e){var n=Lt[t.key],r=Nt[n];if(r instanceof Rt)$("q"),$(sn(e)),r.gState&&p.setGState(r.gState),$(t.matrix.toString()+" cm"),$("/"+n+" sh"),$("Q");else if(r instanceof Bt){var i=new Gt(1,0,0,-1,0,qn());t.matrix&&(i=i.multiply(t.matrix||Yt),n=on.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),$("q"),$("/Pattern cs"),$("/"+n+" scn"),r.gState&&p.setGState(r.gState),$(e),$("Q")}},sn=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},cn=p.moveTo=function(t,e){return $(S(P(t))+" "+S(I(e))+" m"),this},un=p.lineTo=function(t,e){return $(S(P(t))+" "+S(I(e))+" l"),this},ln=p.curveTo=function(t,e,n,r,i,o){return $([S(P(t)),S(I(e)),S(P(n)),S(I(r)),S(P(i)),S(I(o)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.line");return w===y.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,r,i,o){var a,s,c,u,l,h,f,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!$e(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(cn(e,n),a=r[0],s=r[1],u=t.length,g=e,m=n,c=0;c<u;c++)2===(l=t[c]).length?(g=l[0]*a+g,m=l[1]*s+m,un(g,m)):(h=l[0]*a+g,f=l[1]*s+m,d=l[2]*a+g,p=l[3]*s+m,g=l[4]*a+g,m=l[5]*s+m,ln(h,f,d,p,g,m));return o&&en(),rn(i),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":cn(r[0],r[1]);break;case"l":un(r[0],r[1]);break;case"c":ln.apply(this,r);break;case"h":en()}}return this},p.__private__.rect=p.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.rect");return w===y.COMPAT&&(r=-r),$([S(P(t)),S(I(e)),S(P(n)),S(P(r)),"re"].join(" ")),rn(i),this},p.__private__.triangle=p.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!$e(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!$e(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return cn(t+n,e),ln(t+n,e-a,t+o,e-r,t,e-r),ln(t-o,e-r,t-n,e-a,t-n,e),ln(t-n,e+a,t-o,e+r,t,e+r),ln(t+o,e+r,t+n,e+a,t+n,e),rn(i),this},p.__private__.circle=p.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!$e(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},p.setFont=function(t,e,n){return n&&(e=_(e,n)),bt=Be(t,e,{disableWarning:!1}),this};var hn=p.__private__.getFont=p.getFont=function(){return _t[Be.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in St)if(St.hasOwnProperty(t))for(e in n[t]=[],St[t])St[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,r,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(n=_(n,r)),i=i||"Identity-H",Le.call(this,t,e,n,i)};var fn,dn=t.lineWidth||.200025,pn=p.__private__.getLineWidth=p.getLineWidth=function(){return dn},gn=p.__private__.setLineWidth=p.setLineWidth=function(t){return dn=t,$(S(P(t))+" w"),this};p.__private__.setLineDash=Ft.API.setLineDash=Ft.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return S(P(t))})).join(" "),e=S(P(e)),$("["+t+"] "+e+" d"),this};var mn=p.__private__.getLineHeight=p.getLineHeight=function(){return rt*fn};p.__private__.getLineHeight=p.getLineHeight=function(){return rt*fn};var vn=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(fn=t),this},bn=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return fn};vn(t.lineHeight);var yn=p.__private__.getHorizontalCoordinate=function(t){return P(t)},wn=p.__private__.getVerticalCoordinate=function(t){return w===y.ADVANCED?t:jt[q].mediaBox.topRightY-jt[q].mediaBox.bottomLeftY-P(t)},xn=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return S(yn(t))},An=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return S(wn(t))},_n=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ee(_n)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,r){return _n=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),$(_n),this};var Sn=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ee(Sn)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,r){return Sn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),$(Sn),this};var kn=t.textColor||"0 g",Nn=p.__private__.getTextColor=p.getTextColor=function(){return ee(kn)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,r){return kn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Ln=t.charSpace,Cn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Ln||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ln=t,this};var Pn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pn=e,$(e+" J"),this};var En=0;p.__private__.setLineJoin=p.setLineJoin=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return En=e,$(e+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return $(S(P(t))+" M"),this},p.GState=Ot,p.setGState=function(t){(t="string"==typeof t?Ct[Pt[t]]:In(null,t)).equals(Et)||($("/"+t.id+" gs"),Et=t)};var In=function(t,e){if(!t||!Pt[t]){var n=!1;for(var r in Ct)if(Ct.hasOwnProperty(r)&&Ct[r].equals(e)){n=!0;break}if(n)e=Ct[r];else{var i="GS"+(Object.keys(Ct).length+1).toString(10);Ct[i]=e,e.id=i}return t&&(Pt[t]=e.id),qt.publish("addGState",e),e}};p.addGState=function(t,e){return In(t,e),this},p.saveGraphicsState=function(){return $("q"),kt.push({key:bt,size:rt,color:kn}),this},p.restoreGraphicsState=function(){$("Q");var t=kt.pop();return bt=t.key,rt=t.size,kn=t.color,Et=null,this},p.setCurrentTransformationMatrix=function(t){return $(t.toString()+" cm"),this},p.comment=function(t){return $("#"+t),this};var Mn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Tn=function(t,e,n,r){Mn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},On=function(){this.page=Dt,this.currentPage=q,this.pages=X.slice(0),this.pagesContext=jt.slice(0),this.x=wt,this.y=xt,this.matrix=At,this.width=Fn(q),this.height=qn(q),this.outputDestination=Z,this.id="",this.objectNumber=-1};On.prototype.restore=function(){Dt=this.page,q=this.currentPage,jt=this.pagesContext,X=this.pages,wt=this.x,xt=this.y,At=this.matrix,jn(q,this.width),zn(q,this.height),Z=this.outputDestination};var Dn=function(t,e,n,r,i){Ht.push(new On),Dt=q=0,X=[],wt=t,xt=e,At=i,Me([n,r])},Rn=function(t){if(Ut[t])Ht.pop().restore();else{var e=new On,n="Xo"+(Object.keys(Vt).length+1).toString(10);e.id=n,Ut[t]=n,Vt[n]=e,qt.publish("addFormObject",e),Ht.pop().restore()}};for(var Bn in p.beginFormObject=function(t,e,n,r,i){return Dn(t,e,n,r,i),this},p.endFormObject=function(t){return Rn(t),this},p.doFormObject=function(t,e){var n=Vt[Ut[t]];return $("q"),$(e.toString()+" cm"),$("/"+n.id+" Do"),$("Q"),this},p.getFormObject=function(t){var e=Vt[Ut[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},p.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(dt(He(Ue()),t),"function"==typeof dt.unload&&ot.setTimeout&&setTimeout(dt.unload,911),this):new Promise((function(e,n){try{var r=dt(He(Ue()),t);"function"==typeof dt.unload&&ot.setTimeout&&setTimeout(dt.unload,911),e(r)}catch(t){n(t.message)}}))},Ft.API)Ft.API.hasOwnProperty(Bn)&&("events"===Bn&&Ft.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(qt,Ft.API.events):p[Bn]=Ft.API[Bn]);var Fn=p.getPageWidth=function(t){return(jt[t=t||q].mediaBox.topRightX-jt[t].mediaBox.bottomLeftX)/yt},jn=p.setPageWidth=function(t,e){jt[t].mediaBox.topRightX=e*yt+jt[t].mediaBox.bottomLeftX},qn=p.getPageHeight=function(t){return(jt[t=t||q].mediaBox.topRightY-jt[t].mediaBox.bottomLeftY)/yt},zn=p.setPageHeight=function(t,e){jt[t].mediaBox.topRightY=e*yt+jt[t].mediaBox.bottomLeftY};return p.internal={pdfEscape:Ie,getStyle:tn,getFont:hn,getFontSize:at,getCharSpace:Cn,getTextColor:Nn,getLineHeight:mn,getLineHeightFactor:bn,getLineWidth:pn,write:tt,getHorizontalCoordinate:yn,getVerticalCoordinate:wn,getCoordinateString:xn,getVerticalCoordinateString:An,collections:{},newObject:Jt,newAdditionalObject:Qt,newObjectDeferred:Zt,newObjectDeferredBegin:Kt,getFilters:re,putStream:ie,events:qt,scaleFactor:yt,pageSize:{getWidth:function(){return Fn(q)},setWidth:function(t){jn(q,t)},getHeight:function(){return qn(q)},setHeight:function(t){zn(q,t)}},encryptionOptions:l,encryption:Ye,getEncryptor:Xe,output:Ge,getNumberOfPages:Re,pages:X,out:$,f2:L,f3:C,getPageInfo:Je,getPageInfoByObjId:Ze,getCurrentPageInfo:Ke,getPDFVersion:m,Point:Mn,Rectangle:Tn,Matrix:Gt,hasHotfix:We},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Fn(q)},set:function(t){jn(q,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return qn(q)},set:function(t){zn(q,t)},enumerable:!0,configurable:!0}),Ce.call(p,nt),bt="F1",Te(i,n),qt.publish("initialized"),p}It.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},It.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},It.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},It.prototype.processOwnerPassword=function(t,e){return Pt(Nt(e).substr(0,5),t)},It.prototype.encryptor=function(t,e){var n=Nt(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return Pt(n,t)}},Ot.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||h(t)!==h(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},Ft.API={events:[]},Ft.version="2.5.0";var jt=Ft.API,qt=1,zt=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Vt=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ut=function(t){return t.toFixed(2)},Ht=function(t){return t.toFixed(5)};jt.__acroform__={};var Gt=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},Wt=function(t){return t*qt},Yt=function(t){var e=new le,n=Se.internal.getHeight(t)||0,r=Se.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ut(r)),Number(Ut(n))],e},Xt=jt.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},Jt=jt.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},Zt=jt.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},Kt=jt.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Zt(t,e-1)},Qt=jt.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Xt(t,e-1)},$t=jt.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Jt(t,e-1)},te=jt.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],a=t[2],s=t[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(o+s)||0,c.upperRight_X=n(i+a)||0,c.upperRight_Y=r(o)||0,[Number(Ut(c.lowerLeft_X)),Number(Ut(c.lowerLeft_Y)),Number(Ut(c.upperRight_X)),Number(Ut(c.upperRight_Y))]},ee=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=ne(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+Ut(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Yt(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},ne=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var o=n,a=Se.internal.getHeight(t)||0;a=a<0?-a:a;var s=Se.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,n,r){if(e+1<i.length){var o=n+" "+i[e+1][0];return re(o,t,r).width<=s-4}return!1};o++;t:for(;o>0;){e="",o--;var u,l,h=re("3",t,o).height,f=t.multiline?a-o:(a-h)/2,d=f+=2,p=0,g=0,m=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+re(e,t,o=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((h+2)*(b+2)+2>a)continue t;v+=i[y][m],w=!0,g=y,y--}else{v=" "==(v+=i[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),A=c(x,v,o),_=y>=i.length-1;if(A&&!_){v+=" ",m=0;continue}if(A||_){if(_)g=x;else if(t.multiline&&(h+2)*(b+2)+2>a)continue t}else{if(!t.multiline)continue t;if((h+2)*(b+2)+2>a)continue t;g=x}}for(var S="",k=p;k<=g;k++){var N=i[k];if(t.multiline){if(k===g){S+=N[m]+" ",m=(m+1)%N.length;continue}if(k===p){S+=N[N.length-1]+" ";continue}}S+=N[0]+" "}switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,l=re(S,t,o).width,t.textAlign){case"right":u=s-l-2;break;case"center":u=(s-l)/2;break;default:u=2}e+=Ut(u)+" "+Ut(d)+" Td\n",e+="("+zt(S)+") Tj\n",e+=-Ut(u)+" 0 Td\n",d=-(o+2),l=0,p=w?g:g+1,b++,v=""}break}return r.text=e,r.fontSize=o,r},re=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},ie={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},oe=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},ae=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(fe.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(ie)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");qt=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new he,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&oe(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],o=[],a=i.Rect;if(i.Rect&&(i.Rect=te(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Se.createDefaultAppearanceStream(i),"object"===h(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=a,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=ee(i);o.push({key:"AP",value:"<</N "+s+">>"}),e.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var l=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var f=l[r];"function"==typeof f&&(f=f.call(e,i)),c+="/"+r+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=l)&&(f=f.call(e,i)),c+="/"+r+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:i.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),"object"===h(i)&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},se=jt.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(0!==o&&(i+=" "),h(t[o])){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),i+="("+zt(r(t[o].toString()))+")"):i+=t[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ce=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+zt(r(t))+")"},ue=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ue.prototype.toString=function(){return this.objId+" 0 R"},ue.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ue.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:se(i,this.objId,this.scope)}):i instanceof ue?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var le=function(){ue.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};Gt(le,ue);var he=function(){ue.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+zt(e(t))+")"}},set:function(e){t=e}})};Gt(he,ue);var fe=function t(){ue.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(e,3))},set:function(t){!0===Boolean(t)?this.F=Qt(e,3):this.F=$t(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof we)return;o="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+zt(e(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/qt:u},set:function(t){u=t}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof we||this instanceof Ae))return ce(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ve==0?ce(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ve==0?"("===t.substr(0,1)?Vt(t.substr(1,t.length-2)):Vt(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ve==1?Vt(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ve==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ve==0?ce(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ve==0?"("===t.substr(0,1)?Vt(t.substr(1,t.length-2)):Vt(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ve==1?Vt(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ve==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,1):this.Ff=$t(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,2):this.Ff=$t(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,3):this.Ff=$t(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Gt(fe,ue);var de=function(){fe.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return se(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,18):this.Ff=$t(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Qt(this.Ff,19):this.Ff=$t(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Qt(this.Ff,20),e.sort()):this.Ff=$t(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,22):this.Ff=$t(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,23):this.Ff=$t(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,27):this.Ff=$t(this.Ff,27)}}),this.hasAppearanceStream=!1};Gt(de,fe);var pe=function(){de.call(this),this.fontName="helvetica",this.combo=!1};Gt(pe,de);var ge=function(){pe.call(this),this.combo=!0};Gt(ge,pe);var me=function(){ge.call(this),this.edit=!0};Gt(me,ge);var ve=function(){fe.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,15):this.Ff=$t(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,16):this.Ff=$t(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,17):this.Ff=$t(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,26):this.Ff=$t(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+zt(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===h(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};Gt(ve,fe);var be=function(){ve.call(this),this.pushButton=!0};Gt(be,ve);var ye=function(){ve.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};Gt(ye,ve);var we=function(){var t,e;fe.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+zt(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===h(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Se.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Gt(we,fe),ye.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},ye.prototype.createOption=function(t){var e=new we;return e.Parent=this,e.optionName=t,this.Kids.push(e),ke.call(this.scope,e),e};var xe=function(){ve.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Se.CheckBox.createAppearanceStream()};Gt(xe,ve);var Ae=function(){fe.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,13):this.Ff=$t(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,21):this.Ff=$t(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,23):this.Ff=$t(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,24):this.Ff=$t(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,25):this.Ff=$t(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,26):this.Ff=$t(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Gt(Ae,fe);var _e=function(){Ae.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Kt(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Qt(this.Ff,14):this.Ff=$t(this.Ff,14)}}),this.password=!0};Gt(_e,Ae);var Se={CheckBox:{createAppearanceStream:function(){return{N:{On:Se.CheckBox.YesNormal},D:{On:Se.CheckBox.YesPushDown,Off:Se.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=ne(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+Ut(Se.internal.getWidth(t))+" "+Ut(Se.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+Ut(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=Yt(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=Se.internal.getHeight(t),a=Se.internal.getWidth(t),s=ne(t,t.caption);return i.push("1 g"),i.push("0 0 "+Ut(a)+" "+Ut(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Ut(a-1)+" "+Ut(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+Ut(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ut(Se.internal.getWidth(t))+" "+Ut(Se.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Se.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Se.RadioButton.Circle.YesNormal,e.D[t]=Se.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Yt(t);e.scope=t.scope;var n=[],r=Se.internal.getWidth(t)<=Se.internal.getHeight(t)?Se.internal.getWidth(t)/4:Se.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Se.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ht(Se.internal.getWidth(t)/2)+" "+Ht(Se.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=[],r=Se.internal.getWidth(t)<=Se.internal.getHeight(t)?Se.internal.getWidth(t)/4:Se.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Se.internal.Bezier_C).toFixed(5)),a=Number((r*Se.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ht(Se.internal.getWidth(t)/2)+" "+Ht(Se.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ht(Se.internal.getWidth(t)/2)+" "+Ht(Se.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=[],r=Se.internal.getWidth(t)<=Se.internal.getHeight(t)?Se.internal.getWidth(t)/4:Se.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Se.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ht(Se.internal.getWidth(t)/2)+" "+Ht(Se.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Se.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Se.RadioButton.Cross.YesNormal,e.D[t]=Se.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Yt(t);e.scope=t.scope;var n=[],r=Se.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+Ut(Se.internal.getWidth(t)-2)+" "+Ut(Se.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Ut(r.x1.x)+" "+Ut(r.x1.y)+" m"),n.push(Ut(r.x2.x)+" "+Ut(r.x2.y)+" l"),n.push(Ut(r.x4.x)+" "+Ut(r.x4.y)+" m"),n.push(Ut(r.x3.x)+" "+Ut(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=Se.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ut(Se.internal.getWidth(t))+" "+Ut(Se.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ut(Se.internal.getWidth(t)-2)+" "+Ut(Se.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ut(n.x1.x)+" "+Ut(n.x1.y)+" m"),r.push(Ut(n.x2.x)+" "+Ut(n.x2.y)+" l"),r.push(Ut(n.x4.x)+" "+Ut(n.x4.y)+" m"),r.push(Ut(n.x3.x)+" "+Ut(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Yt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ut(Se.internal.getWidth(t))+" "+Ut(Se.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Se.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Se.internal.getWidth(t),n=Se.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Se.internal.getWidth=function(t){var e=0;return"object"===h(t)&&(e=Wt(t.Rect[2])),e},Se.internal.getHeight=function(t){var e=0;return"object"===h(t)&&(e=Wt(t.Rect[3])),e};var ke=jt.addField=function(t){if(ae(this,t),!(t instanceof fe))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};jt.AcroFormChoiceField=de,jt.AcroFormListBox=pe,jt.AcroFormComboBox=ge,jt.AcroFormEditBox=me,jt.AcroFormButton=ve,jt.AcroFormPushButton=be,jt.AcroFormRadioButton=ye,jt.AcroFormCheckBox=xe,jt.AcroFormTextField=Ae,jt.AcroFormPasswordField=_e,jt.AcroFormAppearance=Se,jt.AcroForm={ChoiceField:de,ListBox:pe,ComboBox:ge,EditBox:me,Button:ve,PushButton:be,RadioButton:ye,CheckBox:xe,TextField:Ae,PasswordField:_e,Appearance:Se},Ft.AcroForm={ChoiceField:de,ListBox:pe,ComboBox:ge,EditBox:me,Button:ve,PushButton:be,RadioButton:ye,CheckBox:xe,TextField:Ae,PasswordField:_e,Appearance:Se};var Ne,Le;Ft.AcroForm;function Ce(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,o,a,s,c,u=e;if("RGBA"===(r=r||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(_(t))for(c in n)for(a=n[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t[o]){s=!1;break}if(!0===s){u=c;break}}else for(c in n)for(a=n[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){u=c;break}}return u===e&&r!==e&&(u=r),u},i=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:e.width}),o.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var a="",s=0,c=e.transparency.length;s<c;s++)a+=e.transparency[s]+" "+e.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==e.sMask&&o.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:o,alreadyAppliedFilters:u,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var l="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:l,data:e.sMask};"filter"in e&&(h.filter=e.filter),t.call(this,h)}if(e.colorSpace===v.INDEXED){var f=this.internal.newObject();r({data:k(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)i.call(this,t[e])},a=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var t=this.internal.collections.addImage_images;return s.call(this),t},u=function(){return Object.keys(this.internal.collections.addImage_images).length},l=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===h(t)&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return ht(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return ht(e.toDataURL(o,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},m=function(t,e,n,r,i,o){var a=g.call(this,n,r,i),s=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,l=c.call(this);if(n=a[0],r=a[1],l[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),f=Math.sin(o),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(t),u(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),u(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(_(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},w=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},x=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var _=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},k=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=_(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,n,r,i,o,a,c,u,l;if("number"==typeof arguments[1]?(n=e,r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],c=arguments[5],u=arguments[6],l=arguments[7]):(n=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],a=arguments[5],c=arguments[6],u=arguments[7],l=arguments[8]),"object"===h(t=arguments[0])&&!f(t)&&"imageData"in t){var d=t;t=d.imageData,n=d.format||n||e,r=d.x||r||0,i=d.y||i||0,o=d.w||d.width||o,a=d.h||d.height||a,c=d.alias||c,u=d.compression||u,l=d.rotation||d.angle||l}var p=this.internal.getFilters();if(void 0===u&&-1!==p.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var g=N.call(this,t,n,c,u);return m.call(this,r,i,o,a,g,l),this};var N=function(n,i,o,a){var s,c,h;if("string"==typeof n&&r(n)===e){n=unescape(n);var g=L(n,!1);(""!==g||void 0!==(g=t.loadFile(n,!0)))&&(n=g)}if(f(n)&&(n=d(n,i)),i=r(n,i),!l(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(h=o)||0===h.length)&&(o=function(t){return"string"==typeof t||_(t)?y(t):_(t.data)?y(t.data):null}(n)),(s=p.call(this,o))||(A()&&(n instanceof Uint8Array||"RGBA"===i||(c=n,n=S(n))),s=this["process"+i.toUpperCase()](n,u.call(this),o,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(a),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},L=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=x(t))?n.data:t;try{i=ht(r)}catch(t){if(e)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var i,o,a="";if(f(n)&&(n=d(n)),"string"==typeof n&&r(n)===e&&(""===(a=L(n,!1))&&(a=t.loadFile(n)||""),n=a),o=r(n),!l(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!A()||n instanceof Uint8Array||(n=S(n)),!(i=this["process"+o.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=o,i}}(Ft.API),Ne=Ft.API,Le=function(t){if(void 0!==t&&""!=t)return!0},Ft.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Ne.events.push(["putPage",function(t){for(var e,n,r,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,c=!1,u=0;u<s.length&&!c;u++)switch((e=s[u]).type){case"link":(Le(e.options.url)||Le(e.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var l=0;l<s.length;l++){e=s[l];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(d.objId),m=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(e.bounds.x)+" "+o(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+o(e.bounds.y)+"] ")+"/Contents ("+h(g(e.contents))+")",r+=" /Popup "+p.objId+" 0 R",r+=" /P "+a.objId+" 0 R",r+=" /T ("+h(g(m))+") >>",d.content=r;var v=d.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(e.bounds.x+30)+" "+o(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+o(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(r+=" /Open true"),r+=" >>",p.content=r,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+i(e.bounds.x)+" "+o(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+o(e.bounds.y+e.bounds.h)+"] ";var b=e.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(f(e.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;default:var w=o(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+w+" "+e.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),Ne.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},Ne.link=function(t,e,n,r,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(t),y:s(e),w:a(t+n),h:s(e+r)},options:i,type:"link"})},Ne.textWithLink=function(t,e,n,r){var i,o,a=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){o=r.maxWidth;var c=this.splitTextToSize(t,o).length;i=Math.ceil(s*c)}else o=a,i=s;return this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=a/2),"right"===r.align&&(e-=a),this.link(e,n-s,o,i,r),a},Ne.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var l=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(o++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,o=0),e===t.length-1&&(r=n,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(r=n,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!u(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&c(e)||s(t)&&s(e)?0:l(t)&&a(e)&&!s(e)&&a(n)&&u(n)?3:s(t)||!a(n)?1:2:-1},d=function(t){var n=0,r=0,i=0,o="",s="",c="",u=(t=t||"").split("\\s+"),l=[];for(n=0;n<u.length;n+=1){for(l.push(""),r=0;r<u[n].length;r+=1)o=u[n][r],s=u[n][r-1],c=u[n][r+1],a(o)?(i=f(o,s,c),l[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):l[n]+=o;l[n]=h(l[n])}return l.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(Ft.API),Ft.API.autoPrint=function(t){var e;if("javascript"===((t=t||{}).variant=t.variant||"non-conform",t.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}));return this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ft.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,a=0,s=0,c=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var l=e.maxWidth;l>0?"string"==typeof t?t=this.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,l))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)a<(c=this.getStringUnitWidth(t[h],{font:i})*n)&&(a=c);return 0!==a&&(s=t.length),{w:a/=o,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,c,u,l){if(r.call(this),!c)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},x=[],A=[],_=(l=l||{}).autoSize||!1,S=!1!==l.printHeaders,k=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,N=l.margins||Object.assign({width:this.getPageWidth()},e),L="number"==typeof l.padding?l.padding:3,C=l.headerBackgroundColor||"#c8c8c8",P=l.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=S,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=k,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=C,this.internal.__cell__.headerTextColor=P,this.setFontSize(k),null==u)v=m=Object.keys(c[0]),b=m.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===h(u[0]))for(m=u.map((function(t){return t.name})),v=u.map((function(t){return t.prompt||t.name||""})),b=u.map((function(t){return t.align||"left"})),f=0;f<u.length;f+=1)w[u[f].name]=u[f].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(v=m=u,b=m.map((function(){return"left"})));if(_||Array.isArray(u)&&"string"==typeof u[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=c.map((function(t){return t[g]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)x.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,x)+L+L,x=[]}if(S){var E={};for(f=0;f<m.length;f+=1)E[m[f]]={},E[m[f]].text=v[f],E[m[f]].align=b[f];var I=s.call(this,E,w);A=m.map((function(e){return new o(t,n,w[e],I,E[e].text,void 0,E[e].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var M=u.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<c.length;f+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:f,data:c[f]},this);var T=s.call(this,c[f],w);for(p=0;p<m.length;p+=1){var O=c[f][m[p]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:f,col:p,data:O},this),a.call(this,new o(t,n,w[m[p]],T,O,f+2,M[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var s=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){i=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,c.push(i)),i.lineNumber=t;var l=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,i),this.setTextColor(l)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(Ft.API);var Pe={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ee=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ie=Ce(Ee),Me=[100,200,300,400,500,600,700,800,900],Te=Ce(Me);function Oe(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return Pe[t=t||"normal"]?t:"normal"}(t.style),r=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),i=function(t){return"number"==typeof Ie[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function De(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Re={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Be={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Fe(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function je(t){return t.trimLeft()}function qe(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function ze(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Ve,Ue,He,Ge=["times"];!function(t){var e,n,r,i,o,a,s,c,u,l=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new a,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new a,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new f(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,u=new l}]);var f=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),u.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof l&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var h=[];Object.defineProperty(this,"ctxStack",{get:function(){return h},set:function(t){h=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=d(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var f=null;function p(t,e){if(null===f){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(t.getFontList());f=function(t){for(var e={},n=0;n<t.length;++n){var r=Oe(t[n]),i=r.family,o=r.stretch,a=r.style,s=r.weight;e[i]=e[i]||{},e[i][o]=e[i][o]||{},e[i][o][a]=e[i][o][a]||{},e[i][o][a][s]=r}return e}(n.concat(e))}return f}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(t){f=null,g=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=(e[5],e[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return Ge;if(i in Be)return[Be[i]];for(;""!==i;){switch(n=null,e=(i=je(i)).charAt(0)){case'"':case"'":n=qe(i.substring(1),e);break;default:n=ze(i)}if(null===n)return Ge;if(r.push(n[0]),""!==(i=je(n[1]))&&","!==i.charAt(0))return Ge;i=i.replace(/^,/,"")}return r}(o);if(this.fontFaces){var c=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Re,n.genericFontFamilies||{}),o=null,a=null,s=0;s<e.length;++s)if(i[(o=Oe(e[s])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){a=t[o.family];break}if(!(a=a||t[r]))throw new Error("Could not find a font-family for the rule '"+Fe(o)+"' and default family '"+r+"'.");if(a=function(t,e){if(e[t])return e[t];var n=Ie[t],r=n<=Ie.normal?-1:1,i=De(e,Ee,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(o.stretch,a),a=function(t,e){if(e[t])return e[t];for(var n=Pe[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(o.style,a),!(a=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=Te[t],r=De(e,Me,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Fe(o)+"'.");return a}(p(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var l="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],u,{noFallback:!0,disableWarning:!0})){l=s[f];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))l=s[f],u="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){l=s[f],u="normal";break}}if(""===l)for(var d=0;d<s.length;d++)if(h[s[d]]){l=h[s[d]];break}l=""===l?"Times":l,this.pdf.setFont(l,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,F.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,F.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.setLineDash=function(t){this.lineDash=t},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,"fill",!1)},f.prototype.stroke=function(){x.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw st.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(t,e)},f.prototype.closePath=function(){var t=new a(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===h(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new a(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(t.x,t.y)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw st.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw st.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new a(n,r)),o=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new a(i.x,i.y)},f.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw st.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new a(i,o)),c=this.ctx.transform.applyToPoint(new a(t,e)),u=this.ctx.transform.applyToPoint(new a(n,r));this.path.push({type:"bct",x1:c.x,y1:c.y,x2:u.x,y2:u.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},f.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw st.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new a(t,e));t=s.x,e=s.y;var c=this.ctx.transform.applyToPoint(new a(0,n)),u=this.ctx.transform.applyToPoint(new a(0,0));n=Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},f.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw st.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw st.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw st.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},f.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw st.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},f.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new pt(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw st.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){var i=D(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;P.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw st.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){r=isNaN(r)?void 0:r;var i=D(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;P.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw st.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:i*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw st.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw st.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw st.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw st.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new c(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},f.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new c(t,e,n,r,i,o)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(t,e,n,r,i,o,a,u,l){var h=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==r&&void 0!==u&&(p=u/r,g=l/i,f=h.width/r*u/r,d=h.height/i*l/i),void 0===o&&(o=e,a=n,e=0,n=0),void 0!==r&&void 0===u&&(u=r,l=i),void 0===r&&void 0===u&&(u=h.width,l=h.height);for(var b,x=this.ctx.transform.decompose(),_=D(x.rotate.shx),S=new c,k=(S=(S=(S=S.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new s(o-e*p,a-n*g,r*f,i*d)),N=v.call(this,k),L=[],C=0;C<N.length;C+=1)-1===L.indexOf(N[C])&&L.push(N[C]);if(w(L),this.autoPaging)for(var P=L[0],E=L[L.length-1],I=P;I<E+1;I++){this.pdf.setPage(I);var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],T=1===I?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],R=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],B=1===I?0:O+(I-2)*R;if(0!==this.ctx.clip_path.length){var F=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(b,this.posX+this.margin[3],-B+T+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=F}var j=JSON.parse(JSON.stringify(k));j=y([j],this.posX+this.margin[3],-B+T+this.ctx.prevPageLastElemOffset)[0];var q=(I>P||I<E)&&m.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,R,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",j.x,j.y,j.w,j.h,null,null,_),q&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",k.x,k.y,k.w,k.h,null,null,_)};var v=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"bct":var a=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)b.call(this);return r},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},y=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;default:t[r].x+=e,t[r].y+=n}return t},w=function(t){return t.sort((function(t,e){return t-e}))},x=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=this.lineCap,s=this.lineWidth,c=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=v.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var x=0;x<f.length;x++)for(;this.pdf.internal.getNumberOfPages()<f[x];)b.call(this);if(w(f),this.autoPaging)for(var _=f[0],S=f[f.length-1],k=_;k<S+1;k++){this.pdf.setPage(k),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=c,this.lineJoin=u;var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],L=1===k?this.posY+this.margin[0]:this.margin[0],C=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],P=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===k?0:C+(k-2)*P;if(0!==this.ctx.clip_path.length){var I=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-E+L+this.ctx.prevPageLastElemOffset),A.call(this,t,!0),this.path=I}if(r=JSON.parse(JSON.stringify(l)),this.path=y(r,this.posX+this.margin[3],-E+L+this.ctx.prevPageLastElemOffset),!1===e||0===k){var M=(k>_||k<S)&&m.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,P,null).clip().discardPath()),A.call(this,t,e),M&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=c,A.call(this,t,e),this.lineWidth=s;this.path=l},A=function(t,e){if(("stroke"!==t||e||!g.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,r,i=[],o=this.path,a=0;a<o.length;a++){var s=o[a];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(o[a-1]&&!isNaN(o[a-1].x)&&(n=[s.x-o[a-1].x,s.y-o[a-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-1].abs.push(s);break}break;case"bct":n=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=o[a-1].x+2/3*(s.x1-o[a-1].x),l=o[a-1].y+2/3*(s.y1-o[a-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,m=s.y;n=[u-o[a-1].x,l-o[a-1].y,h-o[a-1].x,f-o[a-1].y,d-o[a-1].x,m-o[a-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,b=0;b<i.length;b++)if(i[b].arc)for(var y=i[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?k.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,e,!v):E.call(this,x.x,x.y),v=!0}else if(!0===i[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==i[b].begin){var A=i[b].start.x,_=i[b].start.y;I.call(this,i[b].deltas,A,_),v=!0}r&&N.call(this,r),e&&L.call(this)}},_=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},S=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(t,e,n,r,i,o,a,s,c){for(var u=T.call(this,n,r,i,o),l=0;l<u.length;l++){var h=u[l];0===l&&(c?C.call(this,h.x1+t,h.y1+e):E.call(this,h.x1+t,h.y1+e)),M.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?L.call(this):N.call(this,a)},N=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},L=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},P=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n=this.pdf.getTextDimensions(t.text),r=_.call(this,t.y),i=S.call(this,r)-n.h,o=this.ctx.transform.applyToPoint(new a(t.x,r)),u=this.ctx.transform.decompose(),l=new c;l=(l=(l=l.multiply(u.translate)).multiply(u.skew)).multiply(u.scale);for(var h,f,d,p=this.ctx.transform.applyToRectangle(new s(t.x,r,n.w,n.h)),g=l.applyToRectangle(new s(t.x,i,n.w,n.h)),b=v.call(this,g),x=[],k=0;k<b.length;k+=1)-1===x.indexOf(b[k])&&x.push(b[k]);if(w(x),this.autoPaging)for(var N=x[0],L=x[x.length-1],C=N;C<L+1;C++){this.pdf.setPage(C);var P=1===C?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],M=I-this.margin[0],T=this.pdf.internal.pageSize.width-this.margin[1],O=T-this.margin[3],D=1===C?0:E+(C-2)*M;if(0!==this.ctx.clip_path.length){var R=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(h,this.posX+this.margin[3],-1*D+P),A.call(this,"fill",!0),this.path=R}var B=y([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-D+P+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var F="text"!==this.autoPaging;if(F||B.y+B.h<=I){if(F||B.y>=P&&B.x<=T){var j=F?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||T-B.x)[0],q=y([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-D+P+this.ctx.prevPageLastElemOffset)[0],z=F&&(C>N||C<L)&&m.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,M,null).clip().discardPath()),this.pdf.text(j,q.x,q.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else B.y<I&&(this.ctx.prevPageLastElemOffset+=I-B.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,o.x+this.posX,o.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},E=function(t,e,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(t+i)+" "+r(e+o)+" l")},I=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},M=function(t,n,r,a,s,c,u,l){this.pdf.internal.out([e(i(r+t)),e(o(a+n)),e(i(s+t)),e(o(c+n)),e(i(u+t)),e(o(l+n)),"c"].join(" "))},T=function(t,e,n,r){for(var i=2*Math.PI,o=Math.PI/2;e>n;)e-=i;var a=Math.abs(n-e);a<i&&r&&(a=i-a);for(var s=[],c=r?-1:1,u=e;a>1e-5;){var l=u+c*Math.min(a,o);s.push(O.call(this,t,u,l)),a-=Math.abs(l-u),u=l}return s},O=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,c=a*a+s*s,u=c+a*i+s*o,l=4/3*(Math.sqrt(2*c*u)-u)/(a*o-s*i),h=a-l*s,f=s+l*a,d=h,p=-f,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},D=function(t){return 180*t/Math.PI},R=function(t,e,n,r,i,o){var a=t+.5*(n-t),c=e+.5*(r-e),u=i+.5*(n-i),l=o+.5*(r-o),h=Math.min(t,i,a,u),f=Math.max(t,i,a,u),d=Math.min(e,o,c,l),p=Math.max(e,o,c,l);return new s(h,d,f-h,p-d)},B=function(t,e,n,r,i,o,a,c){var u,l,h,f,d,p,g,m,v,b,y,w,x,A,_=n-t,S=r-e,k=i-n,N=o-r,L=a-i,C=c-o;for(l=0;l<41;l++)v=(g=(h=t+(u=l/40)*_)+u*((d=n+u*k)-h))+u*(d+u*(i+u*L-d)-g),b=(m=(f=e+u*S)+u*((p=r+u*N)-f))+u*(p+u*(o+u*C-p)-m),0==l?(y=v,w=b,x=v,A=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),A=Math.max(A,b));return new s(Math.round(y),Math.round(w),Math.round(x-y),Math.round(A-w))},F=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Ft.API),function(t){var e=function(t){var e,n,r,i,o,a,s,c,u,l;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(l=o%85))/85)-(u=o%85))/85)-(c=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,c+33,u+33,l+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,o,a=String,s="length",c=255,u="charCodeAt",l="slice",h="replace";for(t[l](-2),t=t[l](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[l](t[s]%5||5))[s];o>i;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),a.fromCharCode.apply(a,r)},r=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=rt(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,o){var a=0,s=t||"",c=[];for("string"==typeof(o=o||[])&&(o=[o]),a=0;a<o.length;a+=1)switch(o[a]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(Ft.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,o=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(o(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return o(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.loadImageFile=t.loadFile}(Ft.API),function(t){function e(){return(ot.html2canvas?Promise.resolve(ot.html2canvas):n.e(120).then(n.t.bind(n,61120,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(ot.DOMPurify?Promise.resolve(ot.DOMPurify):n.e(856).then(n.t.bind(n,27856,23))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var i=function(t){var e=h(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},o=function(t,e){var n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},a=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(t,e){return t.__proto__=e||a.prototype,t},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(i(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(r).then((function(e){return this.set({src:o("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},a.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},a.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var o=0;o<n.length;++o){var a=n[o],s=a.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,a.ref.name,a.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},a.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},a.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},a.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},a.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},a.prototype.set=function(t){if("object"!==i(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in a.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},a.prototype.get=function(t,e){return this.then((function(){var n=t in a.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},a.prototype.setMargin=function(t){return this.then((function(){switch(i(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},a.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||Ft.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},a.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},a.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},a.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:a.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return a.convert(i,this.__proto__)},a.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},a.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},a.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return a.convert(e,this)},a.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},a.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,Ft.getPageSize=function(t,e,n){if("object"===h(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var s,c=0,u=0;if(a.hasOwnProperty(o))c=a[o][1]/i,u=a[o][0]/i;else try{c=n[1],u=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",u>c&&(s=u,u=c,c=s);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",c>u&&(s=u,u=c,c=s)}return{width:u,height:c,unit:e,k:i,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Oe):null;var n=new a(e);return e.worker?n:n.from(t).doCallback()}}(Ft.API),Ft.API.addJS=function(t){return He=t,this.internal.events.subscribe("postPutResources",(function(){Ve=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ve+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ue=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+He+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Ve&&void 0!==Ue&&this.internal.out("/Names <</JavaScript "+Ve+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],a=n.exec(o);if(null!=a){var s=a[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var l=t.internal.newObject();u.push(l);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(Ft.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,o,a){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=r,-1!==e.indexOf(t.charCodeAt(a+1))){n=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),o={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:n,numcomponents:t.charCodeAt(a+9)};break}r=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:c,index:n,alias:r}}return u}}(Ft.API);var We,Ye,Xe,Je,Ze,Ke=function(){var t,e,n;function r(t){var e,n,r,i,o,a,s,c,u,l,h,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((l=r-this.transparency.indexed.length)>0)for(d=0;0<=l?d<l:d>l;0<=l?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(h=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,h.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(o,a,s,c){var u,l,h,f,d,p,g,m,v,b,y,w,x,A,_,S,k,N,L,C,P,E=Math.ceil((i.width-o)/s),I=Math.ceil((i.height-a)/c),M=i.width==E&&i.height==I;for(A=e*E,w=M?n:new Uint8Array(A*I),p=t.length,x=0,l=0;x<I&&r<p;){switch(t[r++]){case 0:for(f=k=0;k<A;f=k+=1)w[l++]=t[r++];break;case 1:for(f=N=0;N<A;f=N+=1)u=t[r++],d=f<e?0:w[l-e],w[l++]=(u+d)%256;break;case 2:for(f=L=0;L<A;f=L+=1)u=t[r++],h=(f-f%e)/e,_=x&&w[(x-1)*A+h*e+f%e],w[l++]=(_+u)%256;break;case 3:for(f=C=0;C<A;f=C+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],_=x&&w[(x-1)*A+h*e+f%e],w[l++]=(u+Math.floor((d+_)/2))%256;break;case 4:for(f=P=0;P<A;f=P+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[l-e],0===x?_=S=0:(_=w[(x-1)*A+h*e+f%e],S=h&&w[(x-1)*A+(h-1)*e+f%e]),g=d+_-S,m=Math.abs(g-d),b=Math.abs(g-_),y=Math.abs(g-S),v=m<=b&&m<=y?d:b<=y?_:S,w[l++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!M){var T=((a+x*c)*i.width+o)*e,O=x*A;for(f=0;f<E;f+=1){for(var D=0;D<e;D+=1)n[T++]=w[O++];T+=(s-1)*e}}x++}}return t=it(t),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,c;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,t=0,e=a=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(c=o[t++])?c:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,c,u,l,h,f;if(r=this.colors,l=null,n=this.hasAlphaChannel,this.palette.length&&(l=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(i=t.data||t).length,a=l||e,o=s=0,1===r)for(;o<u;)c=l?4*e[o/4]:s,h=a[c++],i[o++]=h,i[o++]=h,i[o++]=h,i[o++]=n?a[c++]:255,s=c;else for(;o<u;)c=l?4*e[o/4]:s,i[o++]=a[c++],i[o++]=a[c++],i[o++]=a[c++],i[o++]=n?a[c++]:255,s=c},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var i=function(){if("[object Window]"===Object.prototype.toString.call(ot)){try{e=ot.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return i(),t=function(t){var r;if(!0===i())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(e){var n,r,i,o,a,s,c,u;if(this.animation){for(u=[],r=a=0,s=(c=this.animation.frames).length;a<s;r=++a)n=c[r],i=e.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,u.push(n.image=t(i));return u}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,c;if(a=n++%i,c=r[a],s.renderFrame(t,a),i>1&&n/i<o)return s.animation._timeout=setTimeout(e,c.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}();function Qe(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null,c=null;o&&(s=e,c=a,e+=3*a);var u=!0,l=[],h=0,f=null,d=0,p=null;for(this.width=n,this.height=r;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((L=t[e++])>=0))throw Error("Invalid block size");if(0===L)break;e+=L}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((L=t[e++])>=0))throw Error("Invalid block size");if(0===L)break;e+=L}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,A=1<<1+(7&w),_=s,S=c,k=!1;w>>7&&(k=!0,_=e,S=A,e+=3*A);var N=e;for(e++;;){var L;if(!((L=t[e++])>=0))throw Error("Invalid block size");if(0===L)break;e+=L}l.push({x:m,y:v,width:b,height:y,has_local_palette:k,palette_offset:_,palette_size:S,data_offset:N,data_length:e-N,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);$e(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*n*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];r[p++]=A,r[p++]=x,r[p++]=w,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);$e(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,l=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*l;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=a.length;v<b;++v){var y=a[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*l+4*n*(m-1),p=f+(u+l)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=A,r[p++]=255}--h}}}function $e(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,c=i+1,u=(1<<c)-1,l=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;l<16&&0!==d;)h|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<c)break;var m=h&u;if(h>>=c,l-=c,m!==o){if(m===a)break;for(var v=m<s?m:g,b=0,y=v;y>o;)y=p[y]>>8,++b;var w=y;if(f+b+(v!==m?1:0)>r)return void st.log("Warning, gif stream longer than expected.");n[f++]=w;var x=f+=b;for(v!==m&&(n[f++]=w),y=v;b--;)y=p[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(p[s++]=g<<8|w,s>=u+1&&c<12&&(++c,u=u<<1|1)),g=m}else s=a+1,u=(1<<(c=i+1))-1,g=null}return f!==r&&st.log("Warning, gif stream shorter than expected."),n}function tn(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),A=new Array(2048),_=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function M(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function T(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(O(255),O(0)):O(m),v=7,m=0)}function O(t){g.push(t)}function D(t){O(t>>8&255),O(255&t)}function R(t,e,n,r,i){for(var o,a=i[0],s=i[240],c=function(t,e){var n,r,i,o,a,s,c,u,l,h,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6];var p=n+(u=t[f+7]),g=n-u,m=r+c,v=r-c,b=i+s,y=i-s,w=o+a,x=o-a,A=p+w,_=p-w,S=m+b,k=m-b;t[f]=A+S,t[f+4]=A-S;var N=.707106781*(k+_);t[f+2]=_+N,t[f+6]=_-N;var L=.382683433*((A=x+y)-(k=v+g)),C=.5411961*A+L,P=1.306562965*k+L,E=.707106781*(S=y+v),I=g+E,M=g-E;t[f+5]=M+C,t[f+3]=M-C,t[f+1]=I+P,t[f+7]=I-P,f+=8}for(f=0,l=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48];var T=n+(u=t[f+56]),O=n-u,D=r+c,R=r-c,B=i+s,F=i-s,j=o+a,q=o-a,z=T+j,V=T-j,U=D+B,H=D-B;t[f]=z+U,t[f+32]=z-U;var G=.707106781*(H+V);t[f+16]=V+G,t[f+48]=V-G;var W=.382683433*((z=q+F)-(H=R+O)),Y=.5411961*z+W,X=1.306562965*H+W,J=.707106781*(U=F+R),Z=O+J,K=O-J;t[f+40]=K+Y,t[f+24]=K-Y,t[f+8]=Z+X,t[f+56]=Z-X,f++}for(l=0;l<64;++l)h=t[l]*e[l],d[l]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[_[u]]=c[u];var l=p[0]-n;n=p[0],0==l?T(r[0]):(T(r[f[o=32767+l]]),T(h[o]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return T(a),n;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)T(s);y&=15}o=32767+p[v],T(i[(y<<4)+f[o]]),T(h[o]),v++}return 63!=g&&T(a),n}function B(t){t=Math.min(Math.max(t,1),100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[_[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var h=a((i[o]*t+50)/100);h=Math.min(Math.max(h,1),255),c[_[o]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[_[d]]*f[p]*f[g]*8),l[d]=1/(c[_[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&B(o),g=new Array,m=0,v=7,D(65496),D(65504),D(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),D(1),D(1),O(0),O(0),function(){D(65499),D(132),O(0);for(var t=0;t<64;t++)O(s[t]);O(1);for(var e=0;e<64;e++)O(c[e])}(),function(t,e){D(65472),D(17),O(8),D(e),D(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){D(65476),D(418),O(0);for(var t=0;t<16;t++)O(S[t+1]);for(var e=0;e<=11;e++)O(k[e]);O(16);for(var n=0;n<16;n++)O(N[n+1]);for(var r=0;r<=161;r++)O(L[r]);O(1);for(var i=0;i<16;i++)O(C[i+1]);for(var o=0;o<=11;o++)O(P[o]);O(17);for(var a=0;a<16;a++)O(E[a+1]);for(var s=0;s<=161;s++)O(I[s])}(),D(65498),D(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var a=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,_,M,F,j,q,z,V=t.data,U=t.width,H=t.height,G=4*U,W=0;W<H;){for(d=0;d<G;){for(M=G*W+d,j=-1,q=0,z=0;z<64;z++)F=M+(q=z>>3)*G+(j=4*(7&z)),W+q>=H&&(F-=G*(W+1+q-H)),d+j>=G&&(F-=d+j-G+4),p=V[F++],x=V[F++],_=V[F++],b[z]=(A[p]+A[x+256>>0]+A[_+512>>0]>>16)-128,y[z]=(A[p+768>>0]+A[x+1024>>0]+A[_+1280>>0]>>16)-128,w[z]=(A[p+1280>>0]+A[x+1536>>0]+A[_+1792>>0]>>16)-128;a=R(b,u,a,e,r),h=R(y,l,h,n,i),f=R(w,l,f,n,i),d+=32}W+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,T(Y)}return D(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=M(S,k),n=M(C,P),r=M(N,L),i=M(E,I),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)A[t]=19595*t,A[t+256>>0]=38470*t,A[t+512>>0]=7471*t+32768,A[t+768>>0]=-11059*t,A[t+1024>>0]=-21709*t,A[t+1280>>0]=32768*t+8421375,A[t+1536>>0]=-27439*t,A[t+1792>>0]=-5329*t}(),B(t)}function en(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function nn(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var o=0;o<i;o++)t[e+o]=n[r+o]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function o(t){return new Int32Array(t)}function a(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var o=i[r],a=0;a<o&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));a++)t(n[a],r+1,i)}(n,0,t),n}var c=function(){var t=this;function c(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function u(t,n,r,i,o){e(!(i%r));do{t[n+(i-=r)]=o}while(0<i)}function l(t,n,r,i,a){if(e(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(t,n,r,i,a,s){var l,f,d=n,p=1<<r,g=o(16),m=o(16);for(e(0!=a),e(null!=i),e(null!=t),e(0<r),f=0;f<a;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==a)return 0;for(m[1]=0,l=1;15>l;++l){if(g[l]>1<<l)return 0;m[l+1]=m[l]+g[l]}for(f=0;f<a;++f)l=i[f],0<i[f]&&(s[m[l]++]=f);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,x=1,A=1,_=1<<r;for(f=0,l=1,a=2;l<=r;++l,a<<=1){if(x+=A<<=1,0>(A-=g[l]))return 0;for(;0<g[l];--g[l])(i=new h).g=l,i.value=s[f++],u(t,d+w,a,_,i),w=c(w,l)}for(l=r+1,a=2;15>=l;++l,a<<=1){if(x+=A<<=1,0>(A-=g[l]))return 0;for(;0<g[l];--g[l]){if(i=new h,(w&y)!=b){for(d+=_,v=1<<(b=l)-r;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=_=1<<(v=b-r),t[n+(b=w&y)].g=v+r,t[n+b].value=d-n-b}i.g=l-r,i.value=s[f++],u(t,d+(w>>r),a,_,i),w=c(w,l)}}return x!=2*m[15]-1?0:p}(t,n,r,i,a,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=a(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(jn,f)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,N(t)}function g(t,e){for(var n=0;0<e--;)n|=C(t,128)<<e;return n}function m(t,e){var n=g(t,e);return L(t)?-n:n}function v(t,n,r,i){var o,a=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)a+=n[r+o]<<8*o;t.Ra=a,t.bb=i,t.oa=n,t.pa=r}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Vn-8>>>0,++t.bb,t.u-=8;_(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=zn){var r=A(t)&qn[n];return t.u+=n,b(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function A(t){return t.Ra>>>(t.u&Vn-1)>>>0}function _(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Vn}function S(t,e){t.u=e,t.h=_(t)}function k(t){t.u>=Un&&(e(t.u>=Un),b(t))}function N(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function L(t){return g(t,1)}function C(t,e){var n=t.Ca;0>t.b&&N(t);var r=t.b,i=n*e>>>8,o=(t.I>>>r>i)+0;for(o?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Hn[r],t.b-=r,t.Ca=(n<<r)-1,o}function P(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function E(t,e){return t[e+0]<<0|t[e+1]<<8}function I(t,e){return E(t,e)|t[e+2]<<16}function M(t,e){return E(t,e)|E(t,e+2)<<16}function T(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=o(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function O(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function R(t,n,r,i){e(null!=r),e(null!=i);var o=r[0],a=i[0];return 0==o&&(o=(t*a+n/2)/n),0==a&&(a=(n*o+t/2)/t),0>=o||0>=a?0:(r[0]=o,i[0]=a,1)}function B(t,e){return t+(1<<e)-1>>>e}function F(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function j(e,n){t[n]=function(n,r,i,o,a,s,c){var u;for(u=0;u<a;++u){var l=t[e](s[c+u-1],i,o+u);s[c+u]=F(n[r+u],l)}}}function q(){this.ud=this.hd=this.jd=0}function z(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function V(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function U(t,e){return V(t+(t-e+.5>>1))}function H(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function G(t,e,n,r,i,o,a){for(r=o[a-1],n=0;n<i;++n)o[a+n]=r=F(t[e+n],r)}function W(t,e,n,r,i){var o;for(o=0;o<n;++o){var a=t[e+o],s=a>>8&255,c=16711935&(c=(c=16711935&a)+((s<<16)+s));r[i+o]=(4278255360&a)+c>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function X(t,e,n,r,i,o){var a;for(a=0;a<r;++a){var s=e[n+a],c=s>>>8,u=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(c<<24>>24)>>>5)+((t.ud<<24>>24)*(l<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(l<<16)+u}}function J(e,n,r,i,o){t[n]=function(t,e,n,r,a,s,c,u,l){for(r=c;r<u;++r)for(c=0;c<l;++c)a[s++]=o(n[i(t[e++])])},t[e]=function(e,n,a,s,c,u,l){var h=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;n<a;++n){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[c++])),u[l++]=o(d[m&p]),m>>=h}else t["VP8LMapColor"+r](s,c,d,p,u,l,n,a,f)}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function K(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function Q(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[i++]=o,r[i++]=a}}function $(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[i++]=o,r[i++]=a}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function et(t,e,n,i,o,a){if(0==a)for(n=e+n;e<n;)P(i,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else r(i,o,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==Ur||t==Hr||t==Gr||t==Wr}function it(){this.eb=[],this.size=this.A=this.fb=0}function ot(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function at(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new ot,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ct(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function lt(t,e){var n=t.T,i=e.ba.f.RGBA,o=i.eb,a=i.fb+t.ka*i.A,s=vi[e.ba.S],c=t.y,u=t.O,l=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==b?s(c,u,null,null,l,h,f,d,l,h,f,d,o,a,null,null,w):(s(e.ec,e.fc,c,u,p,g,m,v,l,h,f,d,o,a-i.A,o,a,w),++n);b+2<y;b+=2)p=l,g=h,m=f,v=d,h+=t.Rc,d+=t.Rc,a+=2*i.A,s(c,(u+=2*t.fa)-t.fa,c,u,p,g,m,v,l,h,f,d,o,a-i.A,o,a,w);return u+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,c,u,w),r(e.cc,e.dc,l,h,x),r(e.Mc,e.Nc,f,d,x),n--):1&y||s(c,u,null,null,l,h,f,d,l,h,f,d,o,a+i.A,null,null,w),n}function ht(t,n,r){var i=t.F,o=[t.J];if(null!=i){var a=t.U,s=n.ba.S,c=s==qr||s==Gr;n=n.ba.f.RGBA;var u=[0],l=t.ka;u[0]=t.T,t.Kb&&(0==l?--u[0]:(--l,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-l));var h=n.eb;l=n.fb+l*n.A,t=kr(i,o[0],t.width,a,u,h,l+(c?0:3),n.A),e(r==u),t&&rt(s)&&_r(h,l,c,a,u,n.A)}return 0}function ft(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Br||n==jr||n==qr||n==zr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Rn(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&yn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ut,t.Kb){if(n=t.U+1>>1,e.memory=o(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=lt,yn()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,r&&vn())}if(r&&!Ii){for(t=0;256>t;++t)Mi[t]=89858*(t-128)+Ni>>ki,Di[t]=-22014*(t-128)+Ni,Oi[t]=-45773*(t-128),Ti[t]=113618*(t-128)+Ni>>ki;for(t=Li;t<Ci;++t)e=76283*(t-16)+Ni>>ki,Ri[t-Li]=Gt(e,255),Bi[t-Li]=Gt(e+8>>4,15);Ii=1}return 1}function dt(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function pt(t){t.ma.memory=null}function gt(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=Qr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var r=A(n),i=t[e+=255&r].g-8;return 0<i&&(S(n,n.u+8),r=A(n),e+=t[e].value,e+=r&(1<<i)-1),S(n,n.u+t[e].g),t[e].value}function yt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function wt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function xt(t,n,i,o){var a=t.ab,s=t.c*n,c=t.C;n=c+n;var u=i,l=o;for(o=t.Ta,i=t.Ua;0<a--;){var h=t.gc[a],f=c,d=n,p=u,g=l,m=(l=o,u=i,h.Ea);switch(e(f<d),e(d<=h.nc),h.hc){case 2:Yn(p,g,(d-f)*m,l,u);break;case 0:var v=f,b=d,y=l,w=u,x=(N=h).Ea;0==v&&(Gn(p,g,null,null,1,y,w),G(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++v);for(var A=1<<N.b,_=A-1,S=B(x,N.b),k=N.K,N=N.w+(v>>N.b)*S;v<b;){var L=k,C=N,P=1;for(Wn(p,g,y,w-x,1,y,w);P<x;){var E=(P&~_)+A;E>x&&(E=x),(0,Qn[L[C++]>>8&15])(p,g+ +P,y,w+P-x,E-P,y,w+P),P=E}g+=x,w+=x,++v&_||(N+=S)}d!=h.nc&&r(l,u-m,l,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,x=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),v=B(p,h.b),A=h.K,h=h.w+(f>>h.b)*v;f<d;){for(_=A,S=h,k=new q,N=b+w,L=b+p;b<N;)Y(_[S++],k),$n(k,m,b,g,l,u),b+=g,u+=g;b<L&&(Y(_[S++],k),$n(k,m,b,x,l,u),b+=x,u+=x),++f&y||(h+=v)}break;case 3:if(p==l&&g==u&&0<h.b){for(b=l,p=m=u+(d-f)*m-(w=(d-f)*B(h.Ea,h.b)),g=l,y=u,v=[],w=(x=w)-1;0<=w;--w)v[w]=g[y+w];for(w=x-1;0<=w;--w)b[p+w]=v[w];Xn(h,f,d,l,m,l,u)}else Xn(h,f,d,p,g,l,u)}u=o,l=i}l!=i&&r(o,i,u,l,s)}function At(t,n){var r=t.V,i=t.Ba+t.c*t.C,o=n-t.C;if(e(n<=t.l.o),e(16>=o),0<o){var a=t.l,s=t.Ta,c=t.Ua,u=a.width;if(xt(t,o,r,i),o=c=[c],e((r=t.C)<(i=n)),e(a.v<a.va),i>a.o&&(i=a.o),r<a.j){var l=a.j-r;r=a.j,o[0]+=l*u}if(r>=i?r=0:(o[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=i-r,r=1),r){if(c=c[0],11>(r=t.ca).S){var h=r.f.RGBA,f=(i=r.S,o=a.U,a=a.T,l=h.eb,h.A),d=a;for(h=h.fb+t.Ma*h.A;0<d--;){var p=s,g=c,m=o,v=l,b=h;switch(i){case Rr:tr(p,g,m,v,b);break;case Br:er(p,g,m,v,b);break;case Ur:er(p,g,m,v,b),_r(v,b,0,m,1,0);break;case Fr:ir(p,g,m,v,b);break;case jr:et(p,g,m,v,b,1);break;case Hr:et(p,g,m,v,b,1),_r(v,b,0,m,1,0);break;case qr:et(p,g,m,v,b,0);break;case Gr:et(p,g,m,v,b,0),_r(v,b,1,m,1,0);break;case zr:nr(p,g,m,v,b);break;case Wr:nr(p,g,m,v,b),Sr(v,b,m,1,0);break;case Vr:rr(p,g,m,v,b);break;default:e(0)}c+=u,h+=f}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function _t(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function St(t,n,r,i,o,a){if(0!=t.Z){var s=t.qd,c=t.rd;for(e(null!=mi[t.Z]);n<r;++n)mi[t.Z](s,c,i,o,i,o,a),s=i,c=o,o+=a;t.qd=s,t.rd=c}}function kt(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var o=t.l.width,a=r.ca,s=r.tb+o*i,c=t.V,u=t.Ba+t.c*i,l=t.gc;e(1==t.ab),e(3==l[0].hc),Zn(l[0],i,n,c,u,a,s),St(r,i,n,a,s,o)}t.C=t.Ma=n}function Nt(t,n,r,i,o,a,s){var c=t.$/i,u=t.$%i,l=t.m,h=t.s,f=r+t.$,d=f;o=r+i*o;var p=r+i*a,g=280+h.ua,m=t.Pb?c:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?wt(h,u,c):null;e(t.C<a),e(p<=o);var w=!1;t:for(;;){for(;w||f<p;){var x=0;if(c>=m){var N=f-r;e((m=t).Pb),m.wd=m.m,m.xd=N,0<m.s.ua&&O(m.s.Wa,m.s.vb),m=c+ti}if(u&b||(y=wt(h,u,c)),e(null!=y),y.Qb&&(n[f]=y.qb,w=!0),!w)if(k(l),y.jc){x=l,N=n;var L=f,C=y.pd[A(x)&jn-1];e(y.jc),256>C.g?(S(x,x.u+C.g),N[L]=C.value,x=0):(S(x,x.u+C.g-256),e(256<=C.value),x=C.value),0==x&&(w=!0)}else x=bt(y.G[0],y.H[0],l);if(l.h)break;if(w||256>x){if(!w)if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(k(l),w=bt(y.G[1],y.H[1],l),k(l),N=bt(y.G[2],y.H[2],l),L=bt(y.G[3],y.H[3],l),l.h)break;n[f]=(L<<24|w<<16|x<<8|N)>>>0}if(w=!1,++f,++u>=i&&(u=0,++c,null!=s&&c<=a&&!(c%16)&&s(t,c),null!=v))for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=mt(x-256,l),N=bt(y.G[4],y.H[4],l),k(l),N=vt(i,N=mt(N,l)),l.h)break;if(f-r<N||o-f<x)break t;for(L=0;L<x;++L)n[f+L]=n[f+L-N];for(f+=x,u+=x;u>=i;)u-=i,++c,null!=s&&c<=a&&!(c%16)&&s(t,c);if(e(f<=o),u&b&&(y=wt(h,u,c)),null!=v)for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break t;for(w=x-280,e(null!=v);d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=f,e(!(w>>>(N=v).Xa)),n[x]=N.X[w],w=!0}w||e(l.h==_(l))}if(t.Pb&&l.h&&f<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&O(t.s.vb,t.s.Wa);else{if(l.h)break t;null!=s&&s(t,c>a?a:c),t.a=0,t.$=f-r}return 1}return t.a=3,0}function Lt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Ct(){var e=new sn;return null==e?null:(e.a=0,e.xb=gi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Yn=W,$n=X,tr=Z,er=K,nr=Q,rr=$,ir=tt,t.VP8LMapColor32b=Jn,t.VP8LMapColor8b=Kn,e)}function Pt(t,n,r,s,c){var u=1,f=[t],p=[n],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(r)for(;u&&y(g,1);){var w=f,x=p,_=s,N=1,L=_.m,C=_.gc[_.ab],P=y(L,2);if(_.Oc&1<<P)u=0;else{switch(_.Oc|=1<<P,C.hc=P,C.Ea=w[0],C.nc=x[0],C.K=[null],++_.ab,e(4>=_.ab),P){case 0:case 1:C.b=y(L,3)+2,N=Pt(B(C.Ea,C.b),B(C.nc,C.b),0,_,C.K),C.K=C.K[0];break;case 3:var E,I=y(L,8)+1,M=16<I?0:4<I?1:2<I?2:3;if(w[0]=B(C.Ea,M),C.b=M,E=N=Pt(I,1,0,_,C.K)){var O,D=I,R=C,j=1<<(8>>R.b),q=o(j);if(null==q)E=0;else{var z=R.K[0],V=R.w;for(q[0]=R.K[0][0],O=1;O<1*D;++O)q[O]=F(z[V+O],q[O-1]);for(;O<4*j;++O)q[O]=0;R.K[0]=null,R.K[0]=q,E=1}}N=E;break;case 2:break;default:e(0)}u=N}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var U;if(U=u)e:{var H,G,W,Y=s,X=f,J=p,Z=b,K=r,Q=Y.m,$=Y.s,tt=[null],et=1,nt=0,rt=$r[Z];n:for(;;){if(K&&y(Q,1)){var it=y(Q,3)+2,ot=B(X,it),at=B(J,it),st=ot*at;if(!Pt(ot,at,0,Y,tt))break n;for(tt=tt[0],$.xc=it,H=0;H<st;++H){var ct=tt[H]>>8&65535;tt[H]=ct,ct>=et&&(et=ct+1)}}if(Q.h)break n;for(G=0;5>G;++G){var ut=Jr[G];!G&&0<Z&&(ut+=1<<Z),nt<ut&&(nt=ut)}var lt=a(et*rt,h),ht=et,ft=a(ht,d);if(null==ft)var dt=null;else e(65536>=ht),dt=ft;var pt=o(nt);if(null==dt||null==pt||null==lt){Y.a=1;break n}var gt=lt;for(H=W=0;H<et;++H){var mt=dt[H],vt=mt.G,bt=mt.H,wt=0,xt=1,At=0;for(G=0;5>G;++G){ut=Jr[G],vt[G]=gt,bt[G]=W,!G&&0<Z&&(ut+=1<<Z);r:{var _t,St=ut,kt=Y,Ct=pt,Et=gt,It=W,Mt=0,Tt=kt.m,Ot=y(Tt,1);if(i(Ct,0,0,St),Ot){var Dt=y(Tt,1)+1,Rt=y(Tt,1),Bt=y(Tt,0==Rt?1:8);Ct[Bt]=1,2==Dt&&(Ct[Bt=y(Tt,8)]=1);var Ft=1}else{var jt=o(19),qt=y(Tt,4)+4;if(19<qt){kt.a=3;var zt=0;break r}for(_t=0;_t<qt;++_t)jt[Kr[_t]]=y(Tt,3);var Vt=void 0,Ut=void 0,Ht=kt,Gt=jt,Wt=St,Yt=Ct,Xt=0,Jt=Ht.m,Zt=8,Kt=a(128,h);i:for(;l(Kt,0,7,Gt,19);){if(y(Jt,1)){var Qt=2+2*y(Jt,3);if((Vt=2+y(Jt,Qt))>Wt)break i}else Vt=Wt;for(Ut=0;Ut<Wt&&Vt--;){k(Jt);var $t=Kt[0+(127&A(Jt))];S(Jt,Jt.u+$t.g);var te=$t.value;if(16>te)Yt[Ut++]=te,0!=te&&(Zt=te);else{var ee=16==te,ne=te-16,re=Xr[ne],ie=y(Jt,Yr[ne])+re;if(Ut+ie>Wt)break i;for(var oe=ee?Zt:0;0<ie--;)Yt[Ut++]=oe}}Xt=1;break i}Xt||(Ht.a=3),Ft=Xt}(Ft=Ft&&!Tt.h)&&(Mt=l(Et,It,8,Ct,St)),Ft&&0!=Mt?zt=Mt:(kt.a=3,zt=0)}if(0==zt)break n;if(xt&&1==Zr[G]&&(xt=0==gt[W].g),wt+=gt[W].g,W+=zt,3>=G){var ae,se=pt[0];for(ae=1;ae<ut;++ae)pt[ae]>se&&(se=pt[ae]);At+=se}}if(mt.nd=xt,mt.Qb=0,xt&&(mt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==wt&&256>vt[0][bt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][bt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>At,mt.jc){var ce,ue=mt;for(ce=0;ce<jn;++ce){var le=ce,he=ue.pd[le],fe=ue.G[0][ue.H[0]+le];256<=fe.value?(he.g=fe.g+256,he.value=fe.value):(he.g=0,he.value=0,le>>=yt(fe,8,he),le>>=yt(ue.G[1][ue.H[1]+le],16,he),le>>=yt(ue.G[2][ue.H[2]+le],0,he),yt(ue.G[3][ue.H[3]+le],24,he))}}}$.vc=tt,$.Wb=et,$.Ya=dt,$.yc=lt,U=1;break e}U=0}if(!(u=U)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!T(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=B(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,r){s.xb=pi;break t}if(null==(v=o(f*p))){s.a=1,u=0;break t}u=(u=Nt(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=c?c[0]=v:(e(null==v),e(r)),s.$=0,r||Lt(m)):Lt(m),u}function Et(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function It(t,n){var r=t.C,i=n-r,o=t.V,a=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,c=t.l.ma,u=t.l.width,l=u*s,h=c.ca,f=c.tb+u*r,d=t.Ta,p=t.Ua;xt(t,s,o,a),Nr(d,p,h,f,l),St(c,r,r+s,h,f,u),i-=s,o+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function Mt(){this.ub=this.yd=this.td=this.Rb=0}function Tt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Dt(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],o=0;o<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));o++)t(e[o],n+1,r)}(t,0,[3,11]),t}()}function Rt(){this.jb=o(3),this.Wc=s([4,8],Dt),this.Xc=s([4,17],Dt)}function Bt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Ft(){this.ld=this.La=this.dd=this.tc=0}function jt(){this.Na=this.la=0}function qt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function zt(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Vt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ft),this.Y=0,this.ya=Array(new zt),this.aa=0,this.l=new Wt}function Ut(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Ht(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Mt,this.Kc=new Tt,this.ed=new Bt,this.Qa=new Ot,this.Ic=this.$c=this.Aa=0,this.D=new Vt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,qt),this.Pa=new Rt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ut),this.Hd=0,this.rb=Array(new jt),this.sb=0,this.wa=Array(new Ft),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new zt),this.L=this.aa=0,this.gd=s([4,2],Ft),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Gt(t,e){return 0>t?0:t>e?e:t}function Wt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var t=new Ht;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=Kt)),t}function Xt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Jt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Zt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Xt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,a=n.ha;if(4>a)return Xt(t,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Xt(t,3,"Incorrect keyframe parameters.");if(!c.yd)return Xt(t,4,"Frame not displayable.");o+=3,a-=3;var u=t.Kc;if(c.Rb){if(7>a)return Xt(t,7,"cannot parse picture header");if(!Jt(r,o,a))return Xt(t,3,"Bad code word");u.c=16383&(r[o+4]<<8|r[o+3]),u.Td=r[o+4]>>6,u.i=16383&(r[o+6]<<8|r[o+5]),u.Ud=r[o+6]>>6,o+=7,a-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>a)return Xt(t,7,"bad partition length");p(s=t.m,r,o,c.ub),o+=c.ub,a-=c.ub,c.Rb&&(u.Ld=L(s),u.Kd=L(s)),u=t.Qa;var l,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=L(s),u.Cb){if(u.Bb=L(s),L(s)){for(u.Fb=L(s),l=0;4>l;++l)u.Zb[l]=L(s)?m(s,7):0;for(l=0;4>l;++l)u.Lb[l]=L(s)?m(s,6):0}if(u.Bb)for(l=0;3>l;++l)h.jb[l]=L(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Xt(t,3,"cannot parse segment header");if((u=t.ed).zd=L(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=L(s),u.Pc&&L(s)){for(h=0;4>h;++h)L(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)L(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Xt(t,3,"cannot parse filter header");var f=a;if(a=l=o,o=l+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(h=t.Xb))r=7;else{for(l+=3*h,u-=3*h,f=0;f<h;++f){var d=r[a+0]|r[a+1]<<8|r[a+2]<<16;d>u&&(d=u),p(t.Jc[+f],r,l,d),l+=d,u-=d,a+=3}p(t.Jc[+h],r,l,u),r=l<o?0:5}if(0!=r)return Xt(t,r,"cannot parse partitions");for(r=g(l=t.m,7),a=L(l)?m(l,4):0,o=L(l)?m(l,4):0,u=L(l)?m(l,4):0,h=L(l)?m(l,4):0,l=L(l)?m(l,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=r)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=r}var b=t.pb[d];b.Sc[0]=ei[Gt(v+a,127)],b.Sc[1]=ni[Gt(v+0,127)],b.Eb[0]=2*ei[Gt(v+o,127)],b.Eb[1]=101581*ni[Gt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ei[Gt(v+h,117)],b.Qc[1]=ni[Gt(v+l,127)],b.lc=v+l}if(!c.Rb)return Xt(t,4,"Not a key frame.");for(L(s),c=t.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(o=0;3>o;++o)for(u=0;11>u;++u)h=C(s,ui[r][a][o][u])?g(s,8):si[r][a][o][u],c.Wc[r][a].Yb[o][u]=h;for(a=0;17>a;++a)c.Xc[r][a]=c.Wc[r][li[a]]}return t.kc=L(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Kt(t,e,n,r,i,o,a){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!C(t,s[n+0]))return i;for(;!C(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var c=e[i+1].Yb;if(C(t,s[n+2])){var u=t,l=0;if(C(u,(f=s)[(h=n)+3]))if(C(u,f[h+6])){for(s=0,h=2*(l=C(u,f[h+8]))+(f=C(u,f[h+9+l])),l=0,f=ii[h];f[s];++s)l+=l+C(u,f[s]);l+=3+(8<<h)}else C(u,f[h+7])?(l=7+2*C(u,165),l+=C(u,145)):l=5+C(u,159);else l=C(u,f[h+4])?3+C(u,f[h+5]):2;s=c[2]}else l=1,s=c[1];c=a+oi[i],0>(u=t).b&&N(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<<f,o[c]=((l^d)-d)*r[(0<i)+0]}return 16}function Qt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function $t(t,n){if(null==t)return 0;if(null==n)return Xt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Zt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=ji[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var c=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=c.Tb)}else l=c.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],f=l;if(c.Pc&&(f+=c.vd[0],u&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<c.wb&&(d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=u}}}s=0}else Xt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=zi);t:{s=t.Ic,c=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((h=c+832+(u=3*(16*s+ji[t.L])/2*p)+(l=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=o(h),t.Fc=0,null==t.Ec){s=Xt(t,1,"no memory during frame initialization.");break t}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=c,t.Gd=a(p,Ut),t.Hd=0,t.rb=a(g+1,jt),t.sb=1,t.wa=m?a(m,Ft):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=h,t.pc=f,f+=832,t.ya=a(v,zt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=ji[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=f+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=u,t.mb=l?h:null,t.nb=l?f:null,e(f+l<=t.Fc+t.Vb),Qt(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Ir){for(s=-255;255>=s;++s)Lr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Cr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Pr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Er[255+s]=0>s?0:255<s?255:s;Ir=1}or=ue,ar=oe,cr=ae,ur=se,lr=ce,sr=ie,hr=Xe,fr=Je,dr=Qe,pr=$e,gr=Ze,mr=Ke,vr=tn,br=en,yr=Ve,wr=Ue,xr=He,Ar=Ge,fi[0]=Se,fi[1]=he,fi[2]=Ae,fi[3]=_e,fi[4]=ke,fi[5]=Le,fi[6]=Ne,fi[7]=Ce,fi[8]=Ee,fi[9]=Pe,hi[0]=ve,hi[1]=de,hi[2]=pe,hi[3]=ge,hi[4]=be,hi[5]=ye,hi[6]=we,di[0]=Oe,di[1]=fe,di[2]=Ie,di[3]=Me,di[4]=Re,di[5]=De,di[6]=Be,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var a,s=t.Jc[t.M&t.Xb],c=t.m,u=t;for(a=0;a<u.za;++a){var l=c,h=u,f=h.Ac,d=h.Bc+4*a,p=h.zc,g=h.ya[h.aa+a];if(h.Qa.Bb?g.$b=C(l,h.Pa.jb[0])?2+C(l,h.Pa.jb[2]):C(l,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=C(l,h.Bd)),g.Za=!C(l,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=ci[f[d+b]][y];for(var w=ai[C(l,y[0])];0<w;)w=ai[2*w+C(l,y[w])];y=-w,f[d+b]=y}r(m,v,f,d,4),v+=4,p[0+h]=y}}else y=C(l,156)?C(l,128)?1:3:C(l,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=C(l,142)?C(l,114)?C(l,183)?1:3:2:0}if(u.m.Ka)return Xt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,l=(c=t).rb[c.sb-1],f=c.rb[c.sb+c.ja],a=c.ya[c.aa+c.ja],d=c.kc?a.Ad:0)l.la=f.la=0,a.Za||(l.Na=f.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var x,A;if(l=f,f=u,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b],h=p.ad,m=0,v=c.rb[c.sb-1],y=b=0,i(h,m,0,384),p.Za)var _=0,S=d[3];else{w=o(16);var k=l.Na+v.Na;if(k=ri(f,d[1],k,g.Eb,0,w,0),l.Na=v.Na=(0<k)+0,1<k)or(w,0,h,m);else{var N=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=N}_=1,S=d[0]}var L=15&l.la,P=15&v.la;for(w=0;4>w;++w){var E=1&P;for(N=A=0;4>N;++N)L=L>>1|(E=(k=ri(f,S,k=E+(1&L),g.Sc,_,h,m))>_)<<7,A=A<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;L>>=4,P=P>>1|E<<7,b=(b<<8|A)>>>0}for(S=L,_=P>>4,x=0;4>x;x+=2){for(A=0,L=l.la>>4+x,P=v.la>>4+x,w=0;2>w;++w){for(E=1&P,N=0;2>N;++N)k=E+(1&L),L=L>>1|(E=0<(k=ri(f,d[2],k,g.Qc,0,h,m)))<<3,A=A<<2|(3<k?3:1<k?2:0!=h[m+0]),m+=16;L>>=2,P=P>>1|E<<5}y|=A<<4*x,S|=L<<4<<x,_|=(240&P)<<x}l.la=S,v.la=_,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[a.$b][a.Za],c.wa[c.Y+c.ja].La|=!d),u.Ka)return Xt(t,7,"Premature end-of-file encountered.")}if(Qt(t),c=n,u=1,a=(s=t).D,l=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(a.M=s.M,a.uc=l,On(s,a),u=1,a=(A=s.D).Nb,l=(y=ji[s.L])*s.R,f=y/2*s.B,w=16*a*s.R,N=8*a*s.B,d=s.sa,p=s.ta-l+w,g=s.qa,h=s.ra-f+N,m=s.Ha,v=s.Ia-f+N,P=0==(L=A.M),b=L>=s.Va-1,2==s.Aa&&On(s,A),A.uc)for(E=(k=s).D.M,e(k.D.uc),A=k.yb;A<k.Hb;++A){_=A,S=E;var I=(M=(z=k).D).Nb;x=z.R;var M=M.wa[M.Y+_],T=z.sa,O=z.ta+16*I*x+16*_,D=M.dd,R=M.tc;if(0!=R)if(e(3<=R),1==z.L)0<_&&wr(T,O,x,R+4),M.La&&Ar(T,O,x,R),0<S&&yr(T,O,x,R+4),M.La&&xr(T,O,x,R);else{var B=z.B,F=z.qa,j=z.ra+8*I*B+8*_,q=z.Ha,z=z.Ia+8*I*B+8*_;I=M.ld,0<_&&(fr(T,O,x,R+4,D,I),pr(F,j,q,z,B,R+4,D,I)),M.La&&(mr(T,O,x,R,D,I),br(F,j,q,z,B,R,D,I)),0<S&&(hr(T,O,x,R+4,D,I),dr(F,j,q,z,B,R+4,D,I)),M.La&&(gr(T,O,x,R,D,I),vr(F,j,q,z,B,R,D,I))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(A=16*L,L=16*(L+1),P?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+N,c.ea=s.Ha,c.W=s.Ia+N):(A-=y,c.y=d,c.O=p,c.f=g,c.N=h,c.ea=m,c.W=v),b||(L-=y),L>c.o&&(L=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&A<L&&(c.J=fn(s,c,A,L-A),c.F=s.mb,null==c.F&&0==c.F.length)){u=Xt(s,3,"Could not decode alpha data.");break t}A<c.j&&(y=c.j-A,A=c.j,e(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),A<L&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=A-c.j,c.U=c.va-c.v,c.T=L-A,u=c.put(c))}a+1!=s.Ic||b||(r(s.sa,s.ta-l,d,p+16*s.R,l),r(s.qa,s.ra-f,g,h+8*s.B,f),r(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Xt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function ee(t,e,n,r,i,o){te(t,e,0,n,r+i),te(t,e,1,n,r+o),te(t,e,2,n,r-o),te(t,e,3,n,r-i)}function ne(t){return(20091*t>>16)+t}function re(t,e,n,r){var i,a=0,s=o(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-ne(t[e+12]),h=ne(t[e+4])+(35468*t[e+12]>>16);s[a+0]=c+h,s[a+1]=u+l,s[a+2]=u-l,s[a+3]=c-h,a+=4,e++}for(i=a=0;4>i;++i)c=(t=s[a+0]+4)+s[a+8],u=t-s[a+8],l=(35468*s[a+4]>>16)-ne(s[a+12]),te(n,r,0,0,c+(h=ne(s[a+4])+(35468*s[a+12]>>16))),te(n,r,1,0,u+l),te(n,r,2,0,u-l),te(n,r,3,0,c-h),a++,r+=32}function ie(t,e,n,r){var i=t[e+0]+4,o=35468*t[e+4]>>16,a=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,r,0,i+a,t=ne(t[e+1]),s),ee(n,r,1,i+o,t,s),ee(n,r,2,i-o,t,s),ee(n,r,3,i-a,t,s)}function oe(t,e,n,r,i){re(t,e,n,r),i&&re(t,e+16,n,r+4)}function ae(t,e,n,r){ar(t,e+0,n,r,1),ar(t,e+32,n,r+128,1)}function se(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(n,r,e,i,t)}function ce(t,e,n,r){t[e+0]&&ur(t,e+0,n,r),t[e+16]&&ur(t,e+16,n,r+4),t[e+32]&&ur(t,e+32,n,r+128),t[e+48]&&ur(t,e+48,n,r+128+4)}function ue(t,e,n,r){var i,a=o(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],l=t[e+0+i]-t[e+12+i];a[0+i]=s+c,a[8+i]=s-c,a[4+i]=l+u,a[12+i]=l-u}for(i=0;4>i;++i)s=(t=a[0+4*i]+3)+a[3+4*i],c=a[1+4*i]+a[2+4*i],u=a[1+4*i]-a[2+4*i],l=t-a[3+4*i],n[r+0]=s+c>>3,n[r+16]=l+u>>3,n[r+32]=s-c>>3,n[r+48]=l-u>>3,r+=64}function le(t,e,n){var r,i=e-32,o=Or,a=255-t[i-1];for(r=0;r<n;++r){var s,c=o,u=a+t[e-1];for(s=0;s<n;++s)t[e+s]=c[u+t[i+s]];e+=32}}function he(t,e){le(t,e,4)}function fe(t,e){le(t,e,8)}function de(t,e){le(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function ge(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function me(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function ve(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];me(r>>5,t,e)}function be(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];me(r>>4,t,e)}function ye(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];me(r>>4,t,e)}function we(t,e){me(128,t,e)}function xe(t,e,n){return t+2*e+n+2>>2}function Ae(t,e){var n,i=e-32;for(i=new Uint8Array([xe(t[i-1],t[i+0],t[i+1]),xe(t[i+0],t[i+1],t[i+2]),xe(t[i+1],t[i+2],t[i+3]),xe(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function _e(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];P(t,e+0,16843009*xe(t[e-1-32],n,r)),P(t,e+32,16843009*xe(n,r,i)),P(t,e+64,16843009*xe(r,i,o)),P(t,e+96,16843009*xe(i,o,o))}function Se(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function ke(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=xe(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=xe(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=xe(o,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=xe(a,o,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=xe(s,a,o),t[e+3+32]=t[e+2+0]=xe(c,s,a),t[e+3+0]=xe(u,c,s)}function Ne(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],a=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=xe(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=xe(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=xe(r,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=xe(i,o,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=xe(o,a,s),t[e+3+64]=t[e+2+96]=xe(a,s,c),t[e+3+96]=xe(s,c,c)}function Le(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=o+a+1>>1,t[e+1+0]=t[e+2+64]=a+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=xe(i,r,n),t[e+0+64]=xe(r,n,o),t[e+0+32]=t[e+1+96]=xe(n,o,a),t[e+1+32]=t[e+2+96]=xe(o,a,s),t[e+2+32]=t[e+3+96]=xe(a,s,c),t[e+3+32]=xe(s,c,u)}function Ce(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],o=t[e+3-32],a=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+a+1>>1,t[e+0+32]=xe(n,r,i),t[e+1+32]=t[e+0+96]=xe(r,i,o),t[e+2+32]=t[e+1+96]=xe(i,o,a),t[e+3+32]=t[e+2+96]=xe(o,a,s),t[e+3+64]=xe(a,s,c),t[e+3+96]=xe(s,c,u)}function Pe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=xe(n,r,i),t[e+3+0]=t[e+1+32]=xe(r,i,o),t[e+3+32]=t[e+1+64]=xe(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function Ee(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96],a=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+a+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=xe(s,c,u),t[e+2+0]=xe(a,s,c),t[e+1+0]=t[e+3+32]=xe(n,a,s),t[e+1+32]=t[e+3+64]=xe(r,n,a),t[e+1+64]=t[e+3+96]=xe(i,r,n),t[e+1+96]=xe(o,i,r)}function Ie(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function Me(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Te(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Oe(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Te(r>>4,t,e)}function De(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Te(r>>3,t,e)}function Re(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Te(r>>3,t,e)}function Be(t,e){Te(128,t,e)}function Fe(t,e,n){var r=t[e-n],i=t[e+0],o=3*(i-r)+Mr[1020+t[e-2*n]-t[e+n]],a=Tr[112+(o+4>>3)];t[e-n]=Or[255+r+Tr[112+(o+3>>3)]],t[e+0]=Or[255+i-a]}function je(t,e,n,r){var i=t[e+0],o=t[e+n];return Dr[255+t[e-2*n]-t[e-n]]>r||Dr[255+o-i]>r}function qe(t,e,n,r){return 4*Dr[255+t[e-n]-t[e+0]]+Dr[255+t[e-2*n]-t[e+n]]<=r}function ze(t,e,n,r,i){var o=t[e-3*n],a=t[e-2*n],s=t[e-n],c=t[e+0],u=t[e+n],l=t[e+2*n],h=t[e+3*n];return 4*Dr[255+s-c]+Dr[255+a-u]>r?0:Dr[255+t[e-4*n]-o]<=i&&Dr[255+o-a]<=i&&Dr[255+a-s]<=i&&Dr[255+h-l]<=i&&Dr[255+l-u]<=i&&Dr[255+u-c]<=i}function Ve(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r,n,i)&&Fe(t,e+r,n)}function Ue(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r*n,1,i)&&Fe(t,e+r*n,1)}function He(t,e,n,r){var i;for(i=3;0<i;--i)Ve(t,e+=4*n,n,r)}function Ge(t,e,n,r){var i;for(i=3;0<i;--i)Ue(t,e+=4,n,r)}function We(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(ze(t,e,n,o,a))if(je(t,e,n,s))Fe(t,e,n);else{var c=t,u=e,l=n,h=c[u-2*l],f=c[u-l],d=c[u+0],p=c[u+l],g=c[u+2*l],m=27*(b=Mr[1020+3*(d-f)+Mr[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;c[u-3*l]=Or[255+c[u-3*l]+b],c[u-2*l]=Or[255+h+v],c[u-l]=Or[255+f+m],c[u+0]=Or[255+d-m],c[u+l]=Or[255+p-v],c[u+2*l]=Or[255+g-b]}e+=r}}function Ye(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(ze(t,e,n,o,a))if(je(t,e,n,s))Fe(t,e,n);else{var c=t,u=e,l=n,h=c[u-l],f=c[u+0],d=c[u+l],p=Tr[112+(4+(g=3*(f-h))>>3)],g=Tr[112+(g+3>>3)],m=p+1>>1;c[u-2*l]=Or[255+c[u-2*l]+m],c[u-l]=Or[255+h+g],c[u+0]=Or[255+f-p],c[u+l]=Or[255+d-m]}e+=r}}function Xe(t,e,n,r,i,o){We(t,e,n,1,16,r,i,o)}function Je(t,e,n,r,i,o){We(t,e,1,n,16,r,i,o)}function Ze(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ye(t,e+=4*n,n,1,16,r,i,o)}function Ke(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ye(t,e+=4,1,n,16,r,i,o)}function Qe(t,e,n,r,i,o,a,s){We(t,e,i,1,8,o,a,s),We(n,r,i,1,8,o,a,s)}function $e(t,e,n,r,i,o,a,s){We(t,e,1,i,8,o,a,s),We(n,r,1,i,8,o,a,s)}function tn(t,e,n,r,i,o,a,s){Ye(t,e+4*i,i,1,8,o,a,s),Ye(n,r+4*i,i,1,8,o,a,s)}function en(t,e,n,r,i,o,a,s){Ye(t,e+4,1,i,8,o,a,s),Ye(n,r+4,1,i,8,o,a,s)}function nn(){this.ba=new at,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ct,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function sn(){this.xb=this.a=0,this.l=new Wt,this.ca=new at,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,on),this.Oc=0}function cn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(t,e,n,r,i,o,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)i[o+e]=t+n[r+e]&255,t=i[o+e]}function ln(t,e,n,r,i,o,a){var s;if(null==t)un(null,null,n,r,i,o,a);else for(s=0;s<a;++s)i[o+s]=t[e+s]+n[r+s]&255}function hn(t,e,n,r,i,o,a){if(null==t)un(null,null,n,r,i,o,a);else{var s,c=t[e+0],u=c,l=c;for(s=0;s<a;++s)u=l+(c=t[e+s])-u,l=n[r+s]+(-256&u?0>u?0:255:u)&255,u=c,i[o+s]=l}}function fn(t,n,i,a){var s=n.width,c=n.o;if(e(null!=t&&null!=n),0>i||0>=a||i+a>c)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new cn,(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=o(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var l=t.Fa,h=t.P,f=t.qc,d=t.mb,p=t.nb,g=h+1,m=f-1,b=u.l;if(e(null!=l&&null!=d&&null!=n),mi[0]=null,mi[1]=un,mi[2]=ln,mi[3]=hn,u.ca=d,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=f)n=0;else if(u.$a=l[h+0]>>0&3,u.Z=l[h+0]>>2&3,u.Lc=l[h+0]>>4&3,h=l[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(b.put=dt,b.ac=ft,b.bc=pt,b.ma=u,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,u.$a)t:{e(1==u.$a),n=Ct();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,l,g,m),!Pt(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&_t(n.s)?(u.ic=1,l=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(l),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Et(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:a=c-i}e(null!=t.ga),e(i+a<=c);t:{if(n=(l=t.ga).c,c=l.l.o,0==l.$a){if(g=t.rc,m=t.Vc,b=t.Fa,h=t.P+1+i*n,f=t.mb,d=t.nb+i*n,e(h<=t.P+t.qc),0!=l.Z)for(e(null!=mi[l.Z]),u=0;u<a;++u)mi[l.Z](g,m,b,h,f,d,n),g=f,m=d,d+=n,h+=n;else for(u=0;u<a;++u)r(f,d,b,h,n),g=f,m=d,d+=n,h+=n;t.rc=g,t.Vc=m}else{if(e(null!=l.mc),n=i+a,e(null!=(u=l.mc)),e(n<=u.i),u.C>=n)n=1;else if(l.ic||vn(),l.ic){l=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,h=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),x=m*y,A=m*n,S=p.wc,N=w<A?wt(p,f,h):null;e(w<=x),e(n<=y),e(_t(p));e:for(;;){for(;!d.h&&w<A;){if(f&S||(N=wt(p,f,h)),e(null!=N),k(d),256>(y=bt(N.G[0],N.H[0],d)))l[g+w]=y,++w,++f>=m&&(f=0,++h<=n&&!(h%16)&&kt(u,h));else{if(!(280>y)){b=0;break e}y=mt(y-256,d);var L,C=bt(N.G[4],N.H[4],d);if(k(d),!(w>=(C=vt(m,C=mt(C,d)))&&x-w>=y)){b=0;break e}for(L=0;L<y;++L)l[g+w+L]=l[g+w+L-C];for(w+=y,f+=y;f>=m;)f-=m,++h<=n&&!(h%16)&&kt(u,h);w<A&&f&S&&(N=wt(p,f,h))}e(d.h==_(d))}kt(u,h>n?n:h);break e}!b||d.h&&w<x?(b=0,u.a=d.h?5:3):u.$=w,n=b}else n=Nt(u,u.V,u.Ba,u.c,u.i,n,It);if(!n){a=0;break t}}i+a>=c&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function dn(t,e,n,r,i,o){for(;0<i--;){var a,s=t,c=e+(n?1:0),u=t,l=e+(n?0:3);for(a=0;a<r;++a){var h=u[l+4*a];255!=h&&(h*=32897,s[c+4*a+0]=s[c+4*a+0]*h>>23,s[c+4*a+1]=s[c+4*a+1]*h>>23,s[c+4*a+2]=s[c+4*a+2]*h>>23)}e+=o}}function pn(t,e,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var a=t[e+2*o+0],s=15&(u=t[e+2*o+1]),c=4369*s,u=(240&u|u>>4)*c>>16;t[e+2*o+0]=(240&a|a>>4)*c>>16&240|(15&a|a<<4)*c>>16>>4&15,t[e+2*o+1]=240&u|s}e+=i}}function gn(t,e,n,r,i,o,a,s){var c,u,l=255;for(u=0;u<i;++u){for(c=0;c<r;++c){var h=t[e+c];o[a+4*c]=h,l&=h}e+=n,a+=s}return 255!=l}function mn(t,e,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=t[e+o]>>8}function vn(){_r=dn,Sr=pn,kr=gn,Nr=mn}function bn(n,r,i){t[n]=function(t,n,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y){var w,x=y-1>>1,A=s[c+0]|u[l+0]<<16,_=h[f+0]|d[p+0]<<16;e(null!=t);var S=3*A+_+131074>>2;for(r(t[n+0],255&S,S>>16,g,m),null!=o&&(S=3*_+A+131074>>2,r(o[a+0],255&S,S>>16,v,b)),w=1;w<=x;++w){var k=s[c+w]|u[l+w]<<16,N=h[f+w]|d[p+w]<<16,L=A+k+_+N+524296,C=L+2*(k+_)>>3;S=C+A>>1,A=(L=L+2*(A+N)>>3)+k>>1,r(t[n+2*w-1],255&S,S>>16,g,m+(2*w-1)*i),r(t[n+2*w-0],255&A,A>>16,g,m+(2*w-0)*i),null!=o&&(S=L+_>>1,A=C+N>>1,r(o[a+2*w-1],255&S,S>>16,v,b+(2*w-1)*i),r(o[a+2*w+0],255&A,A>>16,v,b+(2*w+0)*i)),A=k,_=N}1&y||(S=3*A+_+131074>>2,r(t[n+y-1],255&S,S>>16,g,m+(y-1)*i),null!=o&&(S=3*_+A+131074>>2,r(o[a+y-1],255&S,S>>16,v,b+(y-1)*i)))}}function yn(){vi[Rr]=bi,vi[Br]=wi,vi[Fr]=yi,vi[jr]=xi,vi[qr]=Ai,vi[zr]=_i,vi[Vr]=Si,vi[Ur]=wi,vi[Hr]=xi,vi[Gr]=Ai,vi[Wr]=_i}function wn(t){return t&~Ei?0>t?0:255:t>>Pi}function xn(t,e){return wn((19077*t>>8)+(26149*e>>8)-14234)}function An(t,e,n){return wn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function _n(t,e){return wn((19077*t>>8)+(33050*e>>8)-17685)}function Sn(t,e,n,r,i){r[i+0]=xn(t,n),r[i+1]=An(t,e,n),r[i+2]=_n(t,e)}function kn(t,e,n,r,i){r[i+0]=_n(t,e),r[i+1]=An(t,e,n),r[i+2]=xn(t,n)}function Nn(t,e,n,r,i){var o=An(t,e,n);e=o<<3&224|_n(t,e)>>3,r[i+0]=248&xn(t,n)|o>>5,r[i+1]=e}function Ln(t,e,n,r,i){var o=240&_n(t,e)|15;r[i+0]=240&xn(t,n)|An(t,e,n)>>4,r[i+1]=o}function Cn(t,e,n,r,i){r[i+0]=255,Sn(t,e,n,r,i+1)}function Pn(t,e,n,r,i){kn(t,e,n,r,i),r[i+3]=255}function En(t,e,n,r,i){Sn(t,e,n,r,i),r[i+3]=255}function Gt(t,e){return 0>t?0:t>e?e:t}function In(e,n,r){t[e]=function(t,e,i,o,a,s,c,u,l){for(var h=u+(-2&l)*r;u!=h;)n(t[e+0],i[o+0],a[s+0],c,u),n(t[e+1],i[o+0],a[s+0],c,u+r),e+=2,++o,++s,u+=2*r;1&l&&n(t[e+0],i[o+0],a[s+0],c,u)}}function Mn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Tn(t,e,n,r,i){switch(t>>>30){case 3:ar(e,n,r,i,0);break;case 2:sr(e,n,r,i);break;case 1:ur(e,n,r,i)}}function On(t,e){var n,o,a=e.M,s=e.Nb,c=t.oc,u=t.pc+40,l=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(n=0;16>n;++n)c[u+32*n-1]=129;for(n=0;8>n;++n)l[h+32*n-1]=129,f[d+32*n-1]=129;for(0<a?c[u-1-32]=l[h-1-32]=f[d-1-32]=129:(i(c,u-32-1,127,21),i(l,h-32-1,127,9),i(f,d-32-1,127,9)),o=0;o<t.za;++o){var p=e.ya[e.aa+o];if(0<o){for(n=-1;16>n;++n)r(c,u+32*n-4,c,u+32*n+12,4);for(n=-1;8>n;++n)r(l,h+32*n-4,l,h+32*n+4,4),r(f,d+32*n-4,f,d+32*n+4,4)}var g=t.Gd,m=t.Hd+o,v=p.ad,b=p.Hc;if(0<a&&(r(c,u-32,g[m].y,0,16),r(l,h-32,g[m].f,0,8),r(f,d-32,g[m].ea,0,8)),p.Za){var y=c,w=u-32+16;for(0<a&&(o>=t.za-1?i(y,w,g[m].y[15],4):r(y,w,g[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=c,w=u+Fi[n],fi[p.Ob[n]](y,w),Tn(b,v,16*+n,y,w)}else if(y=Mn(o,a,p.Ob[0]),hi[y](c,u),0!=b)for(n=0;16>n;++n,b<<=2)Tn(b,v,16*+n,c,u+Fi[n]);for(n=p.Gc,y=Mn(o,a,p.Dd),di[y](l,h),di[y](f,d),b=v,y=l,w=h,255&(p=n>>0)&&(170&p?cr(b,256,y,w):lr(b,256,y,w)),p=f,b=d,255&(n>>=8)&&(170&n?cr(v,320,p,b):lr(v,320,p,b)),a<t.Ub-1&&(r(g[m].y,0,c,u+480,16),r(g[m].f,0,l,h+224,8),r(g[m].ea,0,f,d+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*o+16*s*t.R,v=t.qa,p=t.ra+8*o+n,b=t.Ha,y=t.Ia+8*o+n,n=0;16>n;++n)r(g,m+n*t.R,c,u+32*n,16);for(n=0;8>n;++n)r(v,p+n*t.B,l,h+32*n,8),r(b,y+n*t.B,f,d+32*n,8)}}function Dn(t,r,i,o,a,s,c,u,l){var h=[0],f=[0],d=0,p=null!=l?l.kd:0,g=null!=l?l:new rn;if(null==t||12>i)return 7;g.data=t,g.w=r,g.ha=i,r=[r],i=[i],g.gb=[g.gb];t:{var m=r,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){y=3;break t}var w=M(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var A=t;b=r,y=i;var _=h,S=f,k=m=[0];if((C=d=[d])[0]=0,8>y[0])y=7;else{if(!n(A,b[0],"VP8X")){if(10!=M(A,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var N=M(A,b[0]+8),L=1+I(A,b[0]+12);if(2147483648<=L*(A=1+I(A,b[0]+15))){y=3;break t}null!=k&&(k[0]=N),null!=_&&(_[0]=L),null!=S&&(S[0]=A),b[0]+=18,y[0]-=18,C[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=u&&(u[0]=0),c=h[0],m=f[0],d&&b&&null==l){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!n(t,r[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{N=t,y=r,w=i;var C=g.gb;_=g.na,S=g.P,k=g.Sa,L=22,e(null!=N),e(null!=w),A=y[0];var P=w[0];for(e(null!=_),e(null!=k),_[0]=null,S[0]=null,k[0]=0;;){if(y[0]=A,w[0]=P,8>P){y=7;break t}var E=M(N,A+4);if(4294967286<E){y=3;break t}var T=8+E+1&-2;if(L+=T,0<C&&L>C){y=3;break t}if(!n(N,A,"VP8 ")||!n(N,A,"VP8L")){y=0;break t}if(P[0]<T){y=7;break t}n(N,A,"ALPH")||(_[0]=N,S[0]=A+8,k[0]=E),A+=T,P-=T}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(C=t,y=r,w=i,_=g.gb[0],S=g.Ja,k=g.xa,N=y[0],A=!n(C,N,"VP8 "),L=!n(C,N,"VP8L"),e(null!=C),e(null!=w),e(null!=S),e(null!=k),8>w[0])y=7;else{if(A||L){if(C=M(C,N+4),12<=_&&C>_-12){y=3;break t}if(p&&C>w[0]-8){y=7;break t}S[0]=C,y[0]+=8,w[0]-=8,k[0]=L}else k[0]=5<=w[0]&&47==C[N+0]&&!(C[N+4]>>5),S[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),c=[c],m=[m],g.xa){if(5>i){y=7;break}u=c,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],C=[0],_=[0],v(S=new x,t,r,i),gt(S,w,C,_)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=C[0]),null!=b&&(b[0]=_[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Jt(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,b=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(c&&(c[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(c=c[0],m=m[0],d&&(h[0]!=c||f[0]!=m))return 3;null!=l&&(l[0]=g,l.offset=r-l.w,e(4294967286>r-l.w),e(l.offset==l.ha-i));break}return 0==y||7==y&&d&&null==l?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=o&&(o[0]=c),null!=a&&(a[0]=m),0):y}function Rn(t,e,n){var r=e.width,i=e.height,o=0,a=0,s=r,c=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,c=t.bd,o=t.v,a=t.j,11>n||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=c||o+s>r||a+c>i))return 0;if(e.v=o,e.j=a,e.va=o+s,e.o=a+c,e.U=s,e.T=c,e.da=null!=t&&0<t.da,e.da){if(!R(s,c,n=[t.ib],o=[t.hb]))return 0;e.ib=n[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Bn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Fn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,a=n.bd,s=-2&n.v,c=-2&n.j;if(0>s||0>c||0>=i||0>=a||s+i>t||c+a>e)return 2;t=i,e=a}if(n.da){if(!R(t,e,i=[n.ib],a=[n.hb]))return 2;t=i[0],e=a[0]}}r.width=t,r.height=e;t:{var u=r.width,l=r.height;if(t=r.S,0>=u||0>=l||!(t>=Rr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=a=i=e=0;var h=(c=u*Vi[t])*l;if(11>t||(a=(l+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*l)),null==(l=o(h+2*a+s))){t=1;break t}r.sd=l,11>t?((u=r.f.RGBA).eb=l,u.fb=0,u.A=c,u.size=h):((u=r.f.kb).y=l,u.O=0,u.fa=c,u.Fd=h,u.f=l,u.N=0+h,u.Ab=e,u.Cd=a,u.ea=l,u.W=0+h+a,u.Db=e,u.Ed=a,12==t&&(u.F=l,u.J=0+h+2*a),u.Tc=s,u.lb=i)}if(e=1,i=r.S,a=r.width,s=r.height,i>=Rr&&13>i)if(11>i)t=r.f.RGBA,e&=(c=Math.abs(t.A))*(s-1)+a<=t.size,e&=c>=a*Vi[i],e&=null!=t.eb;else{t=r.f.kb,c=(a+1)/2,h=(s+1)/2,u=Math.abs(t.fa),l=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+a;e&=u*(s-1)+a<=t.Fd,e&=l*(h-1)+c<=t.Cd,e=(e&=f*(h-1)+c<=t.Ed)&u>=a&l>=c&f>=c,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=a,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Bn(r)),t}var jn=64,qn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],zn=24,Vn=32,Un=8,Hn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];j("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return z(z(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return z(t,e[n-1])},t.Predictor7=function(t,e,n){return z(t,e[n+0])},t.Predictor8=function(t,e,n){return z(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return z(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return z(z(t,e[n-1]),z(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=H(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+H(r>>16&255,t>>16&255,e>>16&255)+H(r>>8&255,t>>8&255,e>>8&255)+H(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(V((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|V((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|V((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|V((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(U((t=z(t,e[n+0]))>>24&255,r>>24&255)<<24|U(t>>16&255,r>>16&255)<<16|U(t>>8&255,r>>8&255)<<8|U(t>>0&255,r>>0&255))>>>0};var Gn=t.PredictorAdd0;t.PredictorAdd1=G,j("Predictor2","PredictorAdd2"),j("Predictor3","PredictorAdd3"),j("Predictor4","PredictorAdd4"),j("Predictor5","PredictorAdd5"),j("Predictor6","PredictorAdd6"),j("Predictor7","PredictorAdd7"),j("Predictor8","PredictorAdd8"),j("Predictor9","PredictorAdd9"),j("Predictor10","PredictorAdd10"),j("Predictor11","PredictorAdd11"),j("Predictor12","PredictorAdd12"),j("Predictor13","PredictorAdd13");var Wn=t.PredictorAdd2;J("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),J("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Yn,Xn=t.ColorIndexInverseTransform,Jn=t.MapARGB,Zn=t.VP8LColorIndexInverseTransformAlpha,Kn=t.MapAlpha,Qn=t.VP8LPredictorsAdd=[];Qn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $n,tr,er,nr,rr,ir,or,ar,sr,cr,ur,lr,hr,fr,dr,pr,gr,mr,vr,br,yr,wr,xr,Ar,_r,Sr,kr,Nr,Lr=o(511),Cr=o(2041),Pr=o(225),Er=o(767),Ir=0,Mr=Cr,Tr=Pr,Or=Er,Dr=Lr,Rr=0,Br=1,Fr=2,jr=3,qr=4,zr=5,Vr=6,Ur=7,Hr=8,Gr=9,Wr=10,Yr=[2,3,7],Xr=[3,3,11],Jr=[280,256,256,256,40],Zr=[0,1,1,1,0],Kr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],$r=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ri=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ai=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ci=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ui=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],li=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],fi=[],di=[],pi=1,gi=2,mi=[],vi=[];bn("UpsampleRgbLinePair",Sn,3),bn("UpsampleBgrLinePair",kn,3),bn("UpsampleRgbaLinePair",En,4),bn("UpsampleBgraLinePair",Pn,4),bn("UpsampleArgbLinePair",Cn,4),bn("UpsampleRgba4444LinePair",Ln,2),bn("UpsampleRgb565LinePair",Nn,2);var bi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,xi=t.UpsampleBgraLinePair,Ai=t.UpsampleArgbLinePair,_i=t.UpsampleRgba4444LinePair,Si=t.UpsampleRgb565LinePair,ki=16,Ni=1<<ki-1,Li=-227,Ci=482,Pi=6,Ei=(256<<Pi)-1,Ii=0,Mi=o(256),Ti=o(256),Oi=o(256),Di=o(256),Ri=o(Ci-Li),Bi=o(Ci-Li);In("YuvToRgbRow",Sn,3),In("YuvToBgrRow",kn,3),In("YuvToRgbaRow",En,4),In("YuvToBgraRow",Pn,4),In("YuvToArgbRow",Cn,4),In("YuvToRgba4444Row",Ln,2),In("YuvToRgb565Row",Nn,2);var Fi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ji=[0,2,8],qi=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(t,n,r,i,o){var a=Br,s=new nn,c=new at;s.ba=c,c.S=a,c.width=[c.width],c.height=[c.height];var u=c.width,l=c.height,h=new st;if(null==h||null==t)var f=2;else e(null!=h),f=Dn(t,n,r,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?u=0:(null!=u&&(u[0]=h.width[0]),null!=l&&(l[0]=h.height[0]),u=1),u){c.width=c.width[0],c.height=c.height[0],null!=i&&(i[0]=c.width),null!=o&&(o[0]=c.height);t:{if(i=new Wt,(o=new rn).data=t,o.w=n,o.ha=r,o.kd=1,n=[0],e(null!=o),(0==(t=Dn(o.data,o.w,o.ha,null,null,null,n,null,o))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=dt,i.ac=ft,i.bc=pt,i.ma=s,o.xa){if(null==(t=Ct())){s=1;break t}if(function(t,n){var r=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,v(t.m,n.data,n.w,n.ha),!gt(t.m,r,i,o)){t.a=3;break e}if(t.xb=gi,n.width=r[0],n.height=i[0],!Pt(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=Fn(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(o=r.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,e(null!=i.ca),!Rn(o.Oa,r,jr)){i.a=2;break n}if(!Et(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&vn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&vn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!T(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!Nt(i,i.V,i.Ba,i.c,i.i,r.o,At))break n;o.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=o.na,t.P=o.P,t.qc=o.Sa,Zt(t,i)){if(0==(n=Fn(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(o=t)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(l=h=0;4>l;++l)12>(f=o.pb[l]).lc&&(f.ia=u*qi[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=r.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}$t(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Bn(s.ba))}s=n}a=0!=s?null:11>a?c.f.RGBA.eb:c.f.kb.y}else a=null;return a};var Vi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function h(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new c;var f=[0],d=[0],p=[],g=new c,m=t,v=function(t,e){var n={},r=0,i=!1,o=0,a=0;if(n.frames=[],!function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!="RIFF".charCodeAt(i))return!0;return!1}(t,e)){var s,c;for(h(t,e+=4),e+=8;e<t.length;){var f=u(t,e),d=h(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=i?a:e-8,v.src_size=o+d+8,r++,i&&(i=!1,o=0,a=0);break;case"VP8X":(v=n.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+l(t,g),g+=3,v.canvas_height=1+l(t,g),g+=3;break;case"ALPH":i=!0,o=p+8,a=e-8;break;case"ANIM":(v=n.header).bgcolor=h(t,e),g=e+4,v.loop_count=(s=t)[(c=g)+0]<<0|s[c+1]<<8,g+=2;break;case"ANMF":var m,v;(v=n.frames[r]={}).offset_x=2*l(t,e),e+=3,v.offset_y=2*l(t,e),e+=3,v.width=1+l(t,e),e+=3,v.height=1+l(t,e),e+=3,v.duration=l(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return n}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],A=g.WebPDecodeRGBA(m,x.src_off,x.src_size,d,f);x.rgba=A,x.imgwidth=d[0],x.imgheight=f[0];for(var _=0;_<d[0]*f[0]*4;_++)p[_]=A[_];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(e,r,c,u){var l=4,h=o;switch(u){case t.image_compression.FAST:l=1,h=i;break;case t.image_compression.MEDIUM:l=6,h=a;break;case t.image_compression.SLOW:l=9,h=s}var f=rt(e=n(e,r,c,h),{level:l});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,n,r){for(var i,o,a,s=t.length/e,c=new Uint8Array(t.length+s),h=u(),f=0;f<s;f+=1){if(a=f*e,i=t.subarray(a,a+e),r)c.set(r(i,n,o),a+f);else{for(var d,p=h.length,g=[];d<p;d+=1)g[d]=h[d](i,n,o);var m=l(g.concat());c.set(g[m],a+f)}o=i}return c},r=function(t){var e=Array.apply([],t);return e.unshift(0),e},i=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var o=0;o<i;o+=1)n=t[o-e]||0,r[o+1]=t[o]-n+256&255;return r},o=function(t,e,n){var r,i=[],o=t.length;i[0]=2;for(var a=0;a<o;a+=1)r=n&&n[a]||0,i[a+1]=t[a]-r+256&255;return i},a=function(t,e,n){var r,i,o=[],a=t.length;o[0]=3;for(var s=0;s<a;s+=1)r=t[s-e]||0,i=n&&n[s]||0,o[s+1]=t[s]+256-(r+i>>>1)&255;return o},s=function(t,e,n){var r,i,o,a,s=[],u=t.length;s[0]=4;for(var l=0;l<u;l+=1)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=c(r,i,o),s[l+1]=t[l]-a+256&255;return s},c=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),o=Math.abs(t+e-n-n);return r<=i&&r<=o?t:i<=o?e:n},u=function(){return[r,i,o,a,s]},l=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,r,i,o){var a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x=this.decode.FLATE_DECODE,A="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(c=new Ke(n)).imgData,s=c.bits,a=c.colorSpace,l=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){p=(d=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*c.colors),g=new Uint8Array(p);var _,S=c.pixelBitlength-c.bits;for(y=0,w=0;y<p;y++){for(b=d[y],_=0;_<S;)m[w++]=b>>>_&255,_+=c.bits;g[y]=b>>>_&255}}if(16===c.bits){p=(d=new Uint32Array(c.decodePixels().buffer)).length,m=new Uint8Array(p*(32/c.pixelBitlength)*c.colors),g=new Uint8Array(p*(32/c.pixelBitlength)),v=c.colors>1,y=0,w=0;for(var k=0;y<p;)b=d[y++],m[w++]=b>>>0&255,v&&(m[w++]=b>>>16&255,b=d[y++],m[w++]=b>>>0&255),g[k++]=b>>>16&255;s=8}o!==t.image_compression.NONE?(n=e(m,c.width*c.colors,c.colors,o),f=e(g,c.width,1,o)):(n=m,f=g,x=void 0)}if(3===c.colorType&&(a=this.color_spaces.INDEXED,h=c.palette,c.transparency.indexed)){var N=c.transparency.indexed,L=0;for(y=0,p=N.length;y<p;++y)L+=N[y];if((L/=255)==p-1&&-1!==N.indexOf(0))u=[N.indexOf(0)];else if(L!==p){for(d=c.decodePixels(),g=new Uint8Array(d.length),y=0,p=d.length;y<p;y++)g[y]=N[d[y]];f=e(g,c.width,1)}}var C=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(o);return x===this.decode.FLATE_DECODE&&(A="/Predictor "+C+" "),A+="/Colors "+l+" /BitsPerComponent "+s+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:n,index:r,filter:x,decodeParameters:A,transparency:u,palette:h,sMask:f,predictor:C,width:c.width,height:c.height,bitsPerComponent:s,colorSpace:a}}}}(Ft.API),function(t){t.processGIF89A=function(e,n,r,i){var o=new Qe(e),a=o.width,s=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:a,height:s},l=new tn(100).encode(u,100);return t.processJPEG.call(this,l,n,r,i)},t.processGIF87A=t.processGIF89A}(Ft.API),en.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},en.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){st.log("bit decode error:"+t)}},en.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[o>>7-s&1];this.data[a+4*s]=c.blue,this.data[a+4*s+1]=c.green,this.data[a+4*s+2]=c.red,this.data[a+4*s+3]=255}0!==n&&(this.pos+=4-n)}},en.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,c=15&o,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},en.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==t&&(this.pos+=4-t)}},en.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,c=(o>>10&e)/e*255|0,u=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=c,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=u}this.pos+=t}},en.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,c=(a>>5&n)/n*255|0,u=(a>>11)/e*255|0,l=i*this.width*4+4*o;this.data[l]=u,this.data[l+1]=c,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},en.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},en.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},en.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var o=new en(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new tn(100).encode(c,100);return t.processJPEG.call(this,u,n,r,i)}}(Ft.API),nn.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var o=new nn(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new tn(100).encode(c,100);return t.processJPEG.call(this,u,n,r,i)}}(Ft.API),Ft.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,c=0,u=0;u<i;u+=4){var l=r[u],h=r[u+1],f=r[u+2],d=r[u+3];o[s++]=l,o[s++]=h,o[s++]=f,a[c++]=d}var p=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ft.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},We=Ft.API,Ye=We.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,l=u.fof?u.fof:1,f=!1!==e.doKerning,d=0,p=t.length,g=0,m=s[0]||c,v=[];for(n=0;n<p;n++)r=t.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):(d=f&&"object"===h(u[r])&&!isNaN(parseInt(u[r][g],10))?u[r][g]/l:0,v.push((s[r]||m)/c+d)),g=r;return v},Xe=We.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return We.processArabic&&(t=We.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Ye.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Je=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var c=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(c,o)),s=0,c=o),s+=e[o],o++;return c!==o&&i.push(t.slice(c,o)),i},Ze=function(t,e,n){n||(n={});var r,i,o,a,s,c,u,l=[],h=[l],f=n.textIndent||0,d=0,p=0,g=t.split(" "),m=Ye.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var v=Array(c).join(" "),b=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),g=b,c=Xe.apply(this,[v,n])}for(o=0,a=g.length;o<a;o++){var y=0;if(r=g[o],c&&"\n"==r[0]&&(r=r.substr(1),y=1),f+d+(p=(i=Ye.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Je.apply(this,[r,i,e-(f+d),e]),l.push(s.shift()),l=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(r.length-(l[0]?l[0].length:0)).reduce((function(t,e){return t+e}),0)}else l=[r];h.push(l),f=p+c,d=m}else l.push(r),f+=d+p,d=m}return u=c?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},We.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,c,u=[];for(s=0,c=r.length;s<c;s++)u=u.concat(Ze.apply(this,[r[s],a,o]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},i=0;i<e.length;i++)n[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var o=function(t){return"0x"+parseInt(t,10).toString(16)},a=t.__fontmetrics__.compress=function(t){var e,n,i,s,c=["{"];for(var u in t){if(e=t[u],isNaN(parseInt(u,10))?n="'"+u+"'":(u=parseInt(u,10),n=(n=o(u).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof e)e<0?(i=o(e).slice(3),s="-"):(i=o(e).slice(2),s=""),i=s+i.slice(0,-1)+r[i.slice(-1)];else{if("object"!==h(e))throw new Error("Don't know what to do with value type "+h(e)+".");i=a(e)}c.push(n+i)}return c.push("}"),c.join("")},s=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,o,a={},s=1,c=a,u=[],l="",h="",f=t.length-1,d=1;d<f;d+=1)"'"==(o=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(u.push([c,i]),c={},i=void 0):"}"==o?((r=u.pop())[0][r[1]]=c,i=void 0,c=r[0]):"-"==o?s=-1:void 0===i?n.hasOwnProperty(o)?(l+=n[o],i=parseInt(l,16)*s,s=1,l=""):l+=o:n.hasOwnProperty(o)?(h+=n[o],c[i]=parseInt(h,16)*s,s=1,i=void 0,h=""):h+=o;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},l={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=l.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=u.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(Ft.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(ht(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(Ft),function(t){function e(){return(ot.canvg?Promise.resolve(ot.canvg):n.e(494).then(n.bind(n,18494))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}Ft.API.addSvgAsImage=function(t,n,r,i,o,a,s,c){if(isNaN(n)||isNaN(r))throw st.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw st.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=o;var l=u.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then((function(e){return e.fromString(l,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){f.addImage(u.toDataURL("image/jpeg",1),n,r,i,o,s,c)}))}}(),Ft.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},Ft.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),c=[],u=0,l=0,f=0;function d(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=s.length;for(f=0;f<p;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if("object"===h(t))for(i in t)if(o=t[i],d(s,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&d(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(u=0;u<o.length;u+=1)if(r=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(l=0;l<o[u].length;l+=1)"number"!=typeof o[u][l]&&(r=!1);!0===r&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Ft.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(t){var e,n,r,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;a<s;a++)e=n[a],r.length>=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l]);var h=o();a({data:u,addLength1:!0,objectId:h}),i("endobj");var f=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+Mt(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+Mt(n.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+Mt(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var l=o();a({data:c,addLength1:!0,objectId:l}),i("endobj");var h=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var f=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+l+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+Mt(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+Mt(n.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},c=s.pdfEscape,u=s.activeFontKey,l=s.fonts,h=u,f="",d=0,p="",g=l[h].encoding;if("Identity-H"!==l[h].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),d=0;d<p.length;d+=1)l[h].metadata.hasOwnProperty("cmap")&&(e=l[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&l[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=c(f,h).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=n(f,l[h])),s.isHex=!0,{text:m,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?n.push([i(Object.assign({},r,{text:e[o][0]})).text,e[o][1],e[o][2]]):n.push(i(Object.assign({},r,{text:e[o]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(Ft),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(Ft.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,c,u=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?u[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=b(t.charAt(n))))return!1;if("R"===e)return!0}return!1},w=function(t,e,a,s){var c,u,l,h,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(c=a[s-1])&&"AN"!==c||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===c?u:"N";break;case"ES":f="EN"===(c=s>0?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){f="EN";break}if(m){f="N";break}for(l=s+1,h=e.length;l<h&&"ET"===e[l];)l++;f=l<h&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!o){for(h=e.length,l=s+1;l<h&&"NSM"===e[l];)l++;if(l<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(c=e[l],p&&("R"===c||"AL"===c)){f="R";break}}}f=s<1||"B"===(c=e[s-1])?"N":a[s-1];break;case"B":m=!1,n=!0,f=v;break;case"S":r=!0,f="N"}return f},x=function(t,e,n){var r=t.split("");return n&&A(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},A=function(t,e,i){var o,a,s,c,u,d=-1,p=t.length,g=0,y=[],x=v?h:l,A=[];for(m=!1,n=!1,r=!1,a=0;a<p;a++)A[a]=b(t[a]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,A,y,s),o=240&(g=x[u][f[y[s]]]),g&=15,e[s]=c=x[g][5],o>0)if(16===o){for(a=d;a<s;a++)e[a]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(a=d;a<s;a++)e[a]=c;d=-1}"B"===A[s]&&(e[s]=0),i.hiLevel|=c}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=v;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(A,e,p)},_=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,c,u,l=e.length,h=0;h<l;){if(i[h]>=t){for(c=h+1;c<l&&i[c]>=t;)c++;for(u=h,s=c-1;u<s;u++,s--)a=e[u],e[u]=e[s],e[s]=a,r&&(a=r[u],r[u]=r[s],r[s]=a);h=c}h++}}},S=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),A(r,n,i),function(t,e,n){if(0!==n.hiLevel&&c)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),_(2,r,e,n,i),_(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=y(t)),void 0===s&&(s=y(t))}(t,e),i||!a||s)if(i&&a&&o^s)v=o?1:0,t=x(t,e,n);else if(!i&&a&&s)v=o?1:0,t=S(t,e,n),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),o?(v=0,t=S(t,e,n)):(v=1,t=S(t,e,n),t=x(t,e));else if(i&&o&&!a&&s)v=1,t=S(t,e,n),t=x(t,e);else if(!i&&!a&&o^s){var r=c;o?(v=1,t=S(t,e,n),v=0,c=!1,t=S(t,e,n),c=r):(v=0,t=S(t,e,n),t=x(t,e),v=1,c=!1,t=S(t,e,n),c=r,t=x(t,e))}}else v=0,t=S(t,e,n);else v=o?1:0,t=S(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,c=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(Ft),Ft.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new on(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Sn(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new an(this.contents),this.head=new un(this),this.name=new mn(this),this.cmap=new hn(this),this.toUnicode={},this.hhea=new fn(this),this.maxp=new vn(this),this.hmtx=new bn(this),this.post=new pn(this),this.os2=new dn(this),this.loca=new _n(this),this.glyf=new wn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a;for(o=0,i=0,a=(t=""+t).length;0<=a?i<a:i>a;i=0<=a?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var rn,on=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),an=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,a,s,c,u,l,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),o=Math.floor(l/s),u=16*f-l,(r=new on).writeInt(this.scalarType),r.writeShort(f),r.writeShort(l),r.writeShort(o),r.writeShort(u),i=16*f,c=r.pos+i,a=null,d=[],e)for(h=e[p],r.writeString(p),r.writeInt(t(h)),r.writeInt(c),r.writeInt(h.length),d=d.concat(h),"head"===p&&(a=c),c+=h.length;c%4;)d.push(0),c++;return r.write(d),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=yn.call(t);t.length%4;)t.push(0);for(r=new on(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),sn={}.hasOwnProperty,cn=function(t,e){for(var n in e)sn.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};rn=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var un=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new on).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),ln=function(){function t(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),h=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],n=v=d=p[s];d<=g?v<=g:v>=g;n=d<=g?++v:--v)0===u[s]?o=n+c[s]:0!==(o=a[u[s]/2+(n-d)-(h-s)]||0)&&(o+=c[s]),this.codeMap[n]=65535&o}t.pos=l}return t.encode=function(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m,v,b,y,w,x,A,_,S,k,N,L,C,P,E,I,M,T,O,D,R,B,F,j,q,z,V,U,H,G,W,Y;switch(P=new on,o=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},E=0,O=o.length;E<O;E++)null==v[H=t[r=o[E]]]&&(v[H]=++p),i[r]={old:t[r],new:v[t[r]]},g[r]=v[t[r]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(g),{charMap:i,subtable:P.data,maxGlyphID:p+1};case"unicode":for(L=[],l=[],b=0,v={},n={},m=c=null,I=0,D=o.length;I<D;I++)null==v[w=t[r=o[I]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},a=v[w]-r,null!=m&&a===c||(m&&l.push(m),L.push(r),c=a),m=r;for(m&&l.push(m),l.push(65535),L.push(65535),k=2*(S=L.length),_=2*Math.pow(Math.log(S)/Math.LN2,2),h=Math.log(_/2)/Math.LN2,A=2*S-_,s=[],x=[],f=[],d=M=0,R=L.length;M<R;d=++M){if(N=L[d],u=l[d],65535===N){s.push(0),x.push(0);break}if(N-(C=n[N].new)>=32768)for(s.push(0),x.push(2*(f.length+S-d)),r=T=N;N<=u?T<=u:T>=u;r=N<=u?++T:--T)f.push(n[r].new);else s.push(C-N),x.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*S+2*f.length),P.writeUInt16(0),P.writeUInt16(k),P.writeUInt16(_),P.writeUInt16(h),P.writeUInt16(A),V=0,B=l.length;V<B;V++)r=l[V],P.writeUInt16(r);for(P.writeUInt16(0),U=0,F=L.length;U<F;U++)r=L[U],P.writeUInt16(r);for(G=0,j=s.length;G<j;G++)a=s[G],P.writeUInt16(a);for(W=0,q=x.length;W<q;W++)y=x[W],P.writeUInt16(y);for(Y=0,z=f.length;Y<z;Y++)p=f[Y],P.writeUInt16(p);return{charMap:n,subtable:P.data,maxGlyphID:b+1}}},t}(),hn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new ln(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=ln.encode(t,e),(r=new on).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),fn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),dn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),pn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),gn=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},mn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,c,u,l,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,l=n.length;u<l;i=++u)r=n[i],t.pos=r.offset,c=t.readString(r.length),o=new gn(c,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),vn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),bn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=o=0;0<=r?o<r:o>r;e=0<=r?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),yn=[].slice,wn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,c,u,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new on(e.read(r))).readShort(),c=a.readShort(),l=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[t]=-1===o?new An(a,c,l,s,u):new xn(a,o,c,l,s,u),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),xn=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),An=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new on(yn.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),_n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return cn(e,rn),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(r+=s)}for(var c=new Array(4*n.length),u=0;u<n.length;++u)c[4*u+3]=255&n[u],c[4*u+2]=(65280&n[u])>>8,c[4*u+1]=(16711680&n[u])>>16,c[4*u]=(4278190080&n[u])>>24;return c},e}(),Sn=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,c,u,l,h,f,d,p,g,m;for(r in n=hn.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(d in h=n.maxGlyphID,o)d in f||(f[d]=h++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),l=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=l.length;t<e;t++)a=l[t],n.push(u[a]);return n}(),i=this.font.glyf.encode(o,p,f),c=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();Ft.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")}return""+n},e}();const kn=Ft;function Nn(t){return Nn="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},Nn(t)}const Ln={name:"mind-editor",props:{value:{type:Object,default:function(){return{}}},AccessKey:{type:String,default:""},SecretKey:{type:String,default:""},Domain:{type:String,default:""},scope:{type:String,default:""},isImageUpload:{type:Boolean,default:!0},saveShow:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},id:{type:String,default:"minder-component-"+c(12)}},data:function(){return{minder:null,isHand:!1,bakValue:"",zoom:100}},methods:{execCommand:function(t,e){var n=this;!0===this.readOnly?(this.minder.enable(),this.$nextTick((function(){n.minder.execCommand(t,e),n.$nextTick((function(){n.minder.disable(),n.isHand&&n.minder.execCommand("Hand")}))}))):this.minder.execCommand(t,e)},exportHandle:function(t,e){e=e||this.value.root.data.text||this.$L("无标题"),0===t||"png"===t?this.minder.exportData("png").then((function(t){var n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)})):1!==t&&"pdf"!==t||this.minder.exportData("png").then((function(t){var n=new kn;n.addImage(t,"PNG",0,0,0,0),n.save("".concat(e,".pdf"))}))},rendData:function(){var t=this;this.$nextTick((function(){setTimeout((function(){if(null!==t.minder){if(t.bakValue==JSON.stringify(t.value))return;return t.bakValue=JSON.stringify(t.value),void t.minder.importJson(t.value)}window.__minderReadOnly=t.readOnly;var e=n(50917);t.minder=window.editor=new e(document.getElementById(t.id)).minder,t.bakValue=JSON.stringify(t.value),t.minder.importJson(t.value),!0===t.readOnly&&(t.minder.disable(),t.minder.execCommand("Hand"),t.isHand=!0),t.$emit("minderHandle",t.minder),t.minder.on("contentchange",(function(e){var n=t.minder.exportJson();t.bakValue!=JSON.stringify(n)&&(t.bakValue=JSON.stringify(n),t.$emit("input",n))}))}),300)}))}},watch:{value:{handler:function(t){"object"===Nn(t)&&null!==t||(t={root:t,theme:"fresh-blue",template:"default"}),"object"===Nn(t.root)&&null!==t.root&&0!=t.root.length||(t.root={data:{id:c(12),text:this.$L("默认节点")},children:[]}),"string"!=typeof t.theme&&(t.theme="fresh-blue"),"string"!=typeof t.template&&(t.template="default"),this.rendData()},deep:!0,immediate:!0},zoom:function(t){this.execCommand("Zoom",t)}}},Cn=Ln;var Pn=n(26910),En={insert:"head",singleton:!1};i()(Pn.Z,En);Pn.Z.locals;var In=n(50433),Mn={insert:"head",singleton:!1};i()(In.Z,Mn);In.Z.locals;var Tn={Minder:(0,n(51900).Z)(Cn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"minder-editor-container"},[n("div",{staticClass:"quickbar"},[n("ETooltip",{attrs:{placement:"top",effect:"light"}},[n("div",[n("i",{staticClass:"ft icon",attrs:{title:t.$L("缩放")}},[t._v("")])]),t._v(" "),n("div",{staticClass:"minder-editor-slider",attrs:{slot:"content"},slot:"content"},[n("Slider",{attrs:{min:10,max:300},model:{value:t.zoom,callback:function(e){t.zoom=e},expression:"zoom"}})],1)]),t._v(" "),!0!==t.readOnly?n("ETooltip",{attrs:{placement:"top",effect:"light"}},[n("div",[n("i",{staticClass:"ft icon",attrs:{title:t.$L("图形")}},[t._v("")])]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"minder-editor-quickul mold"},[n("li",{on:{click:function(e){return t.execCommand("template","default")}}},[n("span",{staticClass:"default"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","structure")}}},[n("span",{staticClass:"structure"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","filetree")}}},[n("span",{staticClass:"filetree"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","right")}}},[n("span",{staticClass:"right"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","fish-bone")}}},[n("span",{staticClass:"fish-bone"})]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("template","tianpan")}}},[n("span",{staticClass:"tianpan"})])])])]):t._e(),t._v(" "),!0!==t.readOnly?n("ETooltip",{attrs:{placement:"top",effect:"light"}},[n("div",[n("i",{staticClass:"ft icon",attrs:{title:t.$L("样式")}},[t._v("")])]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"minder-editor-quickul"},[n("li",{on:{click:function(e){return t.execCommand("theme","fresh-blue")}}},[t._v(t._s(t.$L("天空蓝")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","wire")}}},[t._v(t._s(t.$L("线框")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","fish")}}},[t._v(t._s(t.$L("鱼骨图")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","classic")}}},[t._v(t._s(t.$L("脑图经典")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","classic-compact")}}},[t._v(t._s(t.$L("紧凑经典")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","snow")}}},[t._v(t._s(t.$L("温柔冷光")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","snow-compact")}}},[t._v(t._s(t.$L("紧凑冷光")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","tianpan")}}},[t._v(t._s(t.$L("经典天盘")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("theme","tianpan-compact")}}},[t._v(t._s(t.$L("紧凑天盘")))])])])]):t._e(),t._v(" "),n("ETooltip",{attrs:{placement:"top",effect:"light"}},[n("div",[n("i",{staticClass:"ft icon",attrs:{title:t.$L("折叠")}},[t._v("")])]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("ul",{staticClass:"minder-editor-quickul"},[n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",1)}}},[t._v(t._s(t.$L("展开到一级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",2)}}},[t._v(t._s(t.$L("展开到二级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",3)}}},[t._v(t._s(t.$L("展开到三级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",4)}}},[t._v(t._s(t.$L("展开到四级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",5)}}},[t._v(t._s(t.$L("展开到五级节点")))]),t._v(" "),n("li",{on:{click:function(e){return t.execCommand("ExpandToLevel",99)}}},[t._v(t._s(t.$L("展开全部节点")))])])])]),t._v(" "),n("ETooltip",{attrs:{placement:"top",content:t.$L("居中")}},[n("div",{on:{click:function(e){t.minder.execCommand("camera",t.minder.getRoot(),600)}}},[n("i",{staticClass:"ft icon"},[t._v("")])])]),t._v(" "),n("ETooltip",{attrs:{placement:"top",content:t.$L("移动")}},[n("div",{on:{click:function(e){t.minder.execCommand("Hand"),t.isHand=!t.isHand}}},[n("i",{staticClass:"ft icon",class:{active:t.isHand}},[t._v("")])])])],1),t._v(" "),n("div",{attrs:{id:t.id}})])}),[],!1,null,"62e9d866",null).exports},On=function(t){Object.keys(Tn).forEach((function(e){t.component(e,Tn[e])}))};"undefined"!=typeof window&&window.Vue&&On(window.Vue);const Dn=Object.assign(Tn,{install:On})},43666:()=>{function _typeof(t){return _typeof="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},_typeof(t)}(function(){var _p={r:function(t){if(_p[t].inited)return _p[t].value;if("function"!=typeof _p[t].value)return _p[t].inited=!0,_p[t].value;var e={exports:{}},n=_p[t].value(null,e.exports,e);if(_p[t].inited=!0,_p[t].value=n,void 0!==n)return n;for(var r in e.exports)if(e.exports.hasOwnProperty(r))return _p[t].inited=!0,_p[t].value=e.exports,e.exports}};_p[0]={value:function(t){function e(t){var e=parseFloat(t,10);return/ms/.test(t)?e:/s/.test(t)?1e3*e:/min/.test(t)?60*e*1e3:e}var n=_p.r(8),r=_p.r(1),i=_p.r(11).createClass("Animator",{constructor:function(t,e,n){if(1==arguments.length){var r=arguments[0];this.beginValue=r.beginValue,this.finishValue=r.finishValue,this.setter=r.setter}else this.beginValue=t,this.finishValue=e,this.setter=n},start:function(t,n,r,i,o){2===arguments.length&&"object"==_typeof(n)&&(r=n.easing,i=n.delay,o=n.callback,n=n.duration),4===arguments.length&&"function"==typeof i&&(o=i,i=0);var a=this.create(t,n,r,o);return(i=e(i))>0?setTimeout((function(){a.play()}),i):a.play(),a},create:function(t,o,a,s){var c;return o=o&&e(o)||i.DEFAULT_DURATION,"string"==typeof(a=a||i.DEFAULT_EASING)&&(a=r[a]),c=new n(this,t,o,a),"function"==typeof s&&c.on("finish",s),c},reverse:function(){return new i(this.finishValue,this.beginValue,this.setter)}});i.DEFAULT_DURATION=300,i.DEFAULT_EASING="linear";var o=_p.r(61);return _p.r(11).extendClass(o,{animate:function(t,e,n,r,i){var o=this._KityAnimateQueue=this._KityAnimateQueue||[],a=t.create(this,e,n,i);return a.on("finish",(function(){o.shift(),o.length&&setTimeout(o[0].t.play.bind(o[0].t),o[0].d)})),o.push({t:a,d:r}),1==o.length&&setTimeout(a.play.bind(a),r),this},timeline:function(){return this._KityAnimateQueue[0].t},stop:function(){var t=this._KityAnimateQueue;if(t)for(;t.length;)t.shift().t.stop();return this}}),i}},_p[1]={value:function(t,e,n){var r={linear:function(t,e,n,r){return n*(t/r)+e},swing:function(t,e,n,i){return r.easeOutQuad(t,e,n,i)},ease:function(t,e,n,i){return r.easeInOutCubic(t,e,n,i)},easeInQuad:function(t,e,n,r){return n*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return n*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return n*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-n*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){return-n*Math.cos(t/r*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-n/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return 0===t?e:n*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){return t==r?e+n:n*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,n,r){return 0===t?e:t==r?e+n:(t/=r/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,r){return-n*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return n*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){return(t/=r/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;return 0===t?e:1==(t/=r)?e+n:(o||(o=.3*r),a<Math.abs(n)?(a=n,i=o/4):i=o/(2*Math.PI)*Math.asin(n/a),-a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)+e)},easeOutElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;return 0===t?e:1==(t/=r)?e+n:(o||(o=.3*r),a<Math.abs(n)?(a=n,i=o/4):i=o/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*t)*Math.sin((t*r-i)*(2*Math.PI)/o)+n+e)},easeInOutElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;if(0===t)return e;if(2==(t/=r/2))return e+n;if(o||(o=r*(.3*1.5)),a<Math.abs(n)){a=n;i=o/4}else i=o/(2*Math.PI)*Math.asin(n/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)*-.5+e:a*Math.pow(2,-10*(t-=1))*Math.sin((t*r-i)*(2*Math.PI)/o)*.5+n+e},easeInBack:function(t,e,n,r,i){return null==i&&(i=1.70158),n*(t/=r)*t*((i+1)*t-i)+e},easeOutBack:function(t,e,n,r,i){return null==i&&(i=1.70158),n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},easeInOutBack:function(t,e,n,r,i){return null==i&&(i=1.70158),(t/=r/2)<1?n/2*(t*t*((1+(i*=1.525))*t-i))+e:n/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},easeInBounce:function(t,e,n,i){return n-r.easeOutBounce(i-t,0,n,i)+e},easeOutBounce:function(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,n,i){return t<i/2?.5*r.easeInBounce(2*t,0,n,i)+e:.5*r.easeOutBounce(2*t-i,0,n,i)+.5*n+e}};return r}},_p[2]={value:function(t,e){var n,r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)},i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.clearTimeout,o=[];function a(t){1===o.push(t)&&(n=r(s))}function s(){var t=o;for(o=[];t.length;)c(t.pop());n=0}function c(t){var e=+new Date,n=e-t.time;n>200&&(n=1e3/60),t.dur=n,t.elapsed+=n,t.time=e,t.action.call(null,t),t.index++}e.requestFrame=function(t){var e=function(t){var e={index:0,time:+new Date,elapsed:0,action:t,next:function(){a(e)}};return e}(t);return a(e),e},e.releaseFrame=function(t){var e=o.indexOf(t);~e&&o.splice(e,1),0===o.length&&i(n)}}},_p[3]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(47),i=_p.r(61),o=_p.r(11).createClass("MotionAnimator",{base:e,constructor:function(t,e){var i=this;this.callBase({beginValue:0,finishValue:1,setter:function(t,e){var o=i.motionPath instanceof r?i.motionPath.getPathData():i.motionPath,a=n.pointAtPath(o,e);t.setTranslate(a.x,a.y),this.doRotate&&t.setRotate(a.tan.getAngle())}}),this.doRotate=e,this.motionPath=t}});return _p.r(11).extendClass(i,{motion:function(t,e,n,r,i){return this.animate(new o(t),e,n,r,i)}}),o}},_p[4]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return t.getOpacity()},finishValue:t,setter:function(t,e){t.setOpacity(e)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxOpacity:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)},fadeTo:function(){return this.fxOpacity.apply(this,arguments)},fadeIn:function(){return this.fxOpacity.apply(this,[1].concat([].slice.call(arguments)))},fadeOut:function(){return this.fxOpacity.apply(this,[0].concat([].slice.call(arguments)))}}),n}},_p[5]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return this.beginPath=t.getPathData(),0},finishValue:1,setter:function(e,r){e.setPathData(n.pathTween(this.beginPath,t,r))}})}}),i=_p.r(47);return _p.r(11).extendClass(i,{fxPath:function(t,e,n,i,o){return this.animate(new r(t),e,n,i,o)}}),r}},_p[6]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("RotateAnimator",{base:e,constructor:function(t){this.callBase({beginValue:0,finishValue:t,setter:function(t,e,n){var r=n.getDelta();t.rotate(r)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxRotate:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)}}),n}},_p[7]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("ScaleAnimator",{base:e,constructor:function(t,e){this.callBase({beginValue:0,finishValue:1,setter:function(n,r,i){var o=i.getDelta(),a=Math.pow(t,o),s=Math.pow(e,o);n.scale(s,a)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxScale:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[8]={value:function(t){var e=_p.r(34),n=_p.r(12),r=_p.r(2);function i(t,e,n){for(var r in this.timeline=t,this.target=t.target,this.type=e,n)n.hasOwnProperty(r)&&(this[r]=n[r])}var o=_p.r(11).createClass("Timeline",{mixins:[e],constructor:function(t,e,n,r){this.callMixin(),this.target=e,this.time=0,this.duration=n,this.easing=r,this.animator=t,this.beginValue=t.beginValue,this.finishValue=t.finishValue,this.setter=t.setter,this.status="ready"},nextFrame:function(t){"playing"==this.status&&(this.time+=t.dur,this.setValue(this.getValue()),this.time>=this.duration&&this.timeUp(),t.next())},getPlayTime:function(){return this.rollbacking?this.duration-this.time:this.time},getTimeProportion:function(){return this.getPlayTime()/this.duration},getValueProportion:function(){return this.easing(this.getPlayTime(),0,1,this.duration)},getValue:function(){return function(t,e,r){return n.paralle(t,e,(function(t,e){return t+(e-t)*r}))}(this.beginValue,this.finishValue,this.getValueProportion())},setValue:function(t){this.lastValue=this.currentValue,this.currentValue=t,this.setter.call(this.target,this.target,t,this)},getDelta:function(){return this.lastValue=void 0===this.lastValue?this.beginValue:this.lastValue,t=this.lastValue,e=this.currentValue,n.paralle(t,e,(function(t,e){return e-t}));var t,e},play:function(){var t=this.status;switch(this.status="playing",t){case"ready":n.isFunction(this.beginValue)&&(this.beginValue=this.beginValue.call(this.target,this.target)),n.isFunction(this.finishValue)&&(this.finishValue=this.finishValue.call(this.target,this.target)),this.time=0,this.setValue(this.beginValue),this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"finished":case"stoped":this.time=0,this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"paused":this.frame.next()}return this.fire("play",new i(this,"play",{lastStatus:t})),this},pause:function(){return this.status="paused",this.fire("pause",new i(this,"pause")),r.releaseFrame(this.frame),this},stop:function(){return this.status="stoped",this.setValue(this.finishValue),this.rollbacking=!1,this.fire("stop",new i(this,"stop")),r.releaseFrame(this.frame),this},timeUp:function(){this.repeatOption?(this.time=0,this.rollback?this.rollbacking?(this.decreaseRepeat(),this.rollbacking=!1):(this.rollbacking=!0,this.fire("rollback",new i(this,"rollback"))):this.decreaseRepeat(),this.repeatOption?this.fire("repeat",new i(this,"repeat")):this.finish()):this.finish()},finish:function(){this.setValue(this.finishValue),this.status="finished",this.fire("finish",new i(this,"finish")),r.releaseFrame(this.frame)},decreaseRepeat:function(){!0!==this.repeatOption&&this.repeatOption--},repeat:function(t,e){return this.repeatOption=t,this.rollback=e,this}});return o.requestFrame=r.requestFrame,o.releaseFrame=r.releaseFrame,o}},_p[9]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("TranslateAnimator",{base:e,constructor:function(t,e){this.callBase({x:0,y:0},{x:t,y:e},(function(t,e,n){var r=n.getDelta();t.translate(r.x,r.y)}))}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxTranslate:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[10]={value:function(){return function(){var t,e=navigator.userAgent.toLowerCase(),n=window.opera;t={platform:function(t){return{win32:"Win",macintel:"Mac"}[t.platform.toLowerCase()]||"Lux"}(navigator),lb:function(t){return!!~t.indexOf("lbbrowser")&&(~t.indexOf("msie")?"ie":"chrome")}(e),sg:/se[\s\S]+metasr/.test(e),bd:!!~e.indexOf("bidubrowser"),edge:!!~e.indexOf("edge"),chrome:!1,opera:!!n&&n.version,webkit:e.indexOf(" applewebkit/")>-1,mac:e.indexOf("macintosh")>-1},t.ie=!t.lb&&/(msie\s|trident.*rv:)([\w.]+)/.test(e),t.gecko="Gecko"==navigator.product&&!t.webkit&&!t.opera&&!t.ie;var r=0;if(t.ie&&(r=1*(e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2]||0),t.ie11Compat=11==document.documentMode,t.ie9Compat=9==document.documentMode),t.gecko){var i=e.match(/rv:([\d\.]+)/);i&&(r=1e4*(i=i[1].split("."))[0]+100*(i[1]||0)+1*(i[2]||0))}return!/chrome\/(\d+\.\d)/i.test(e)||t.bd||t.opera||t.lb||t.sg||t.edge||(t.chrome=+RegExp.$1),/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(t.safari=+(RegExp.$1||RegExp.$2)),t.opera&&(r=parseFloat(n.version())),t.webkit&&(r=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),t.bd&&(r=parseFloat(e.match(/bidubrowser\/(\d+)/)[1])),t.opera&&(r=parseFloat(e.match(/opr\/(\d+)/)[1])),t.edge&&(r=parseFloat(e.match(/edge\/(\d+)/)[1])),t.version=r,t.isCompatible=!t.mobile&&(t.ie&&r>=6||t.gecko&&r>=10801||t.opera&&r>=9.5||t.air&&r>=1||t.webkit&&r>=522||!1),t}()}},_p[11]={value:function value(require,exports){function Class(){}function checkBaseConstructorCall(t,e){var n=t.toString();if(!/this\.callBase/.test(n))throw new Error(e+" : 类构造函数没有调用父类的构造函数!为了安全,请调用父类的构造函数")}exports.Class=Class,Class.__KityClassName="Class",Class.prototype.base=function(t){var e=arguments.callee.caller,n=e.__KityMethodClass.__KityBaseClass.prototype[t];return n.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callBase=function(){var t=arguments.callee.caller,e=t.__KityMethodClass.__KityBaseClass.prototype[t.__KityMethodName];return e.apply(this,arguments)},Class.prototype.mixin=function(t){var e=arguments.callee.caller,n=e.__KityMethodClass.__KityMixins;if(!n)return this;var r=n[t];return r.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callMixin=function(){var t=arguments.callee.caller,e=t.__KityMethodName,n=t.__KityMethodClass.__KityMixins;if(!n)return this;var r=n[e];if("constructor"==e){for(var i=0,o=r.length;i<o;i++)r[i].call(this);return this}return r.apply(this,arguments)},Class.prototype.pipe=function(t){return"function"==typeof t&&t.call(this,this),this},Class.prototype.getType=function(){return this.__KityClassName},Class.prototype.getClass=function(){return this.constructor};var KITY_INHERIT_FLAG="__KITY_INHERIT_FLAG_"+ +new Date;function inherit(constructor,BaseClass,classname){var KityClass=eval("(function "+classname+"( __inherit__flag ) {if( __inherit__flag != KITY_INHERIT_FLAG ) {KityClass.__KityConstructor.apply(this, arguments);}this.__KityClassName = KityClass.__KityClassName;})");for(var methodName in KityClass.__KityConstructor=constructor,KityClass.prototype=new BaseClass(KITY_INHERIT_FLAG),BaseClass.prototype)BaseClass.prototype.hasOwnProperty(methodName)&&0!==methodName.indexOf("__Kity")&&(KityClass.prototype[methodName]=BaseClass.prototype[methodName]);return KityClass.prototype.constructor=KityClass,KityClass}function mixin(t,e){if(!1==e instanceof Array)return t;var n,r,i,o=e.length;for(t.__KityMixins={constructor:[]},n=0;n<o;n++)for(i in r=e[n].prototype)!1!==r.hasOwnProperty(i)&&0!==i.indexOf("__Kity")&&("constructor"===i?t.__KityMixins.constructor.push(r[i]):t.prototype[i]=t.__KityMixins[i]=r[i]);return t}function extend(t,e){for(var n in e.__KityClassName&&(e=e.prototype),e)if(e.hasOwnProperty(n)&&n.indexOf("__Kity")&&"constructor"!=n){var r=t.prototype[n]=e[n];r.__KityMethodClass=t,r.__KityMethodName=n}return t}exports.createClass=function(t,e){var n,r,i;return 1===arguments.length&&(e=arguments[0],t="AnonymousClass"),i=e.base||Class,e.hasOwnProperty("constructor")?(n=e.constructor,i!=Class&&checkBaseConstructorCall(n,t)):n=function(){this.callBase.apply(this,arguments),this.callMixin.apply(this,arguments)},(r=mixin(r=inherit(n,i,t),e.mixins)).__KityClassName=n.__KityClassName=t,r.__KityBaseClass=n.__KityBaseClass=i,r.__KityMethodName=n.__KityMethodName="constructor",r.__KityMethodClass=n.__KityMethodClass=r,delete e.mixins,delete e.constructor,delete e.base,r=extend(r,e)},exports.extendClass=extend}},_p[12]={value:function(){var t={each:function(t,e,n){if(null!==t)if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(!1===e.call(n,t[r],r,t))return!1}else for(var o in t)if(t.hasOwnProperty(o)&&!1===e.call(n,t[o],o,t))return!1},extend:function(t){for(var e=arguments,n=!!this.isBoolean(e[e.length-1])&&e[e.length-1],r=this.isBoolean(e[e.length-1])?e.length-1:e.length,i=1;i<r;i++){var o=e[i];for(var a in o)n&&t.hasOwnProperty(a)||(t[a]=o[a])}return t},deepExtend:function(t,e){for(var n=arguments,r=!!this.isBoolean(n[n.length-1])&&n[n.length-1],i=this.isBoolean(n[n.length-1])?n.length-1:n.length,o=1;o<i;o++){var a=n[o];for(var s in a)r&&t.hasOwnProperty(s)||(this.isObject(t[s])&&this.isObject(a[s])?this.deepExtend(t[s],a[s],r):t[s]=a[s])}return t},clone:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(t){return"object"!==_typeof(t)?t:"function"==typeof t?null:JSON.parse(JSON.stringify(t))},queryPath:function(t,e){for(var n=t.split("."),r=0,i=e,o=n.length;r<o;){if(!(n[r]in i))return;if(i=i[n[r]],++r>=o||void 0===i)return i}},getValue:function(t,e){return void 0!==t?t:e},flatten:function(e){var n,r=[],i=e.length;for(n=0;n<i;n++)e[n]instanceof Array?r=r.concat(t.flatten(e[n])):r.push(e[n]);return r},paralle:function(e,n,r){var i,o,a,s;if(e instanceof Array){for(s=[],o=0;o<e.length;o++)s.push(t.paralle(e[o],n[o],r));return s}if(e instanceof Object){if((i=e.getClass&&e.getClass())&&i.parse)e=e.valueOf(),n=n.valueOf(),s=t.paralle(e,n,r),s=i.parse(s);else for(a in s={},e)e.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(s[a]=t.paralle(e[a],n[a],r));return s}return!1===isNaN(parseFloat(e))?r(e,n):s},parallelize:function(e){return function(n,r){return t.paralle(n,r,e)}}};return t.each(["String","Function","Array","Number","RegExp","Object","Boolean"],(function(e){t["is"+e]=function(t){return Object.prototype.toString.apply(t)=="[object "+e+"]"}})),t}},_p[13]={value:function(t,e,n){n.exports=window.kity=_p.r(77)}},_p[14]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("ColorMatrixEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_COLOR_MATRIX),this.set("type",i.getValue(t,o.TYPE_MATRIX)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}});return i.extend(o,{TYPE_MATRIX:"matrix",TYPE_SATURATE:"saturate",TYPE_HUE_ROTATE:"hueRotate",TYPE_LUMINANCE_TO_ALPHA:"luminanceToAlpha",MATRIX_ORIGINAL:"10000010000010000010".split("").join(" "),MATRIX_EMPTY:"00000000000000000000".split("").join(" ")}),o}},_p[15]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("CompositeEffect",{base:r,constructor:function(t,e,n){this.callBase(r.NAME_COMPOSITE),this.set("operator",i.getValue(t,o.OPERATOR_OVER)),e&&this.set("in",e),n&&this.set("in2",n)}});return i.extend(o,{OPERATOR_OVER:"over",OPERATOR_IN:"in",OPERATOR_OUT:"out",OPERATOR_ATOP:"atop",OPERATOR_XOR:"xor",OPERATOR_ARITHMETIC:"arithmetic"}),o}},_p[16]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12),o=_p.r(11).createClass("ConvolveMatrixEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_CONVOLVE_MATRIX),this.set("edgeMode",i.getValue(t,o.MODE_DUPLICATE)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}});return i.extend(o,{MODE_DUPLICATE:"duplicate",MODE_WRAP:"wrap",MODE_NONE:"none"}),o}},_p[17]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11).createClass("Effect",{constructor:function(t){this.node=r.createNode(t)},getId:function(){return this.node.id},setId:function(t){return this.node.id=t,this},set:function(t,e){return this.node.setAttribute(t,e),this},get:function(t){return this.node.getAttribute(t)},getNode:function(){return this.node},toString:function(){return this.node.getAttribute("result")||""}});return _p.r(12).extend(i,{NAME_GAUSSIAN_BLUR:"feGaussianBlur",NAME_OFFSET:"feOffset",NAME_COMPOSITE:"feComposite",NAME_COLOR_MATRIX:"feColorMatrix",NAME_CONVOLVE_MATRIX:"feConvolveMatrix",INPUT_SOURCE_GRAPHIC:"SourceGraphic",INPUT_SOURCE_ALPHA:"SourceAlpha",INPUT_BACKGROUND_IMAGE:"BackgroundImage",INPUT_BACKGROUND_ALPHA:"BackgroundAlpha",INPUT_FILL_PAINT:"FillPaint",INPUT_STROKE_PAINT:"StrokePaint"}),i}},_p[18]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12);return _p.r(11).createClass("GaussianblurEffect",{base:r,constructor:function(t,e){this.callBase(r.NAME_GAUSSIAN_BLUR),this.set("stdDeviation",i.getValue(t,1)),this.set("in",i.getValue(e,r.INPUT_SOURCE_GRAPHIC))}})}},_p[19]={value:function(t,e,n){var r=_p.r(17),i=_p.r(12);return _p.r(11).createClass("OffsetEffect",{base:r,constructor:function(t,e,n){this.callBase(r.NAME_OFFSET),this.set("dx",i.getValue(t,0)),this.set("dy",i.getValue(e,0)),this.set("in",i.getValue(n,r.INPUT_SOURCE_GRAPHIC))}})}},_p[20]={value:function(t){return _p.r(11).createClass("EffectContainer",{base:_p.r(30),addEffect:function(t,e){return this.addItem.apply(this,arguments)},prependEffect:function(){return this.prependItem.apply(this,arguments)},appendEffect:function(){return this.appendItem.apply(this,arguments)},removeEffect:function(t){return this.removeItem.apply(this,arguments)},addEffects:function(){return this.addItems.apply(this,arguments)},setEffects:function(){return this.setItems.apply(this,arguments)},getEffect:function(){return this.getItem.apply(this,arguments)},getEffects:function(){return this.getItems.apply(this,arguments)},getFirstEffect:function(){return this.getFirstItem.apply(this,arguments)},getLastEffect:function(){return this.getLastItem.apply(this,arguments)},handleAdd:function(t,e){var n=this.getEffects().length,r=this.getItem(e+1);n!==e+1?this.node.insertBefore(t.getNode(),r.getNode()):this.node.appendChild(t.getNode())}})}},_p[21]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11),o=i.createClass("Filter",{mixins:[_p.r(20)],constructor:function(t,e,n,i){this.node=r.createNode("filter"),void 0!==t&&this.set("x",t),void 0!==e&&this.set("y",e),void 0!==n&&this.set("width",n),void 0!==i&&this.set("height",i)},getId:function(){return this.id},setId:function(t){return this.node.id=t,this},set:function(t,e){return this.node.setAttribute(t,e),this},get:function(t){return this.node.getAttribute(t)},getNode:function(){return this.node}}),a=_p.r(61);return i.extendClass(a,{applyFilter:function(t){var e=t.get("id");return e&&this.node.setAttribute("filter","url(#"+e+")"),this}}),o}},_p[22]={value:function(t,e,n){var r=_p.r(18);return _p.r(11).createClass("GaussianblurFilter",{base:_p.r(21),constructor:function(t){this.callBase(),this.addEffect(new r(t))}})}},_p[23]={value:function(t,e,n){var r=_p.r(18),i=_p.r(17),o=_p.r(14),a=_p.r(29),s=_p.r(12),c=_p.r(15),u=_p.r(19);return _p.r(11).createClass("ProjectionFilter",{base:_p.r(21),constructor:function(t,e,n){this.callBase(),this.gaussianblurEffect=new r(t,i.INPUT_SOURCE_ALPHA),this.gaussianblurEffect.set("result","gaussianblur"),this.addEffect(this.gaussianblurEffect),this.offsetEffect=new u(e,n,this.gaussianblurEffect),this.offsetEffect.set("result","offsetBlur"),this.addEffect(this.offsetEffect),this.colorMatrixEffect=new o(o.TYPE_MATRIX,this.offsetEffect),this.colorMatrixEffect.set("values",o.MATRIX_ORIGINAL),this.colorMatrixEffect.set("result","colorOffsetBlur"),this.addEffect(this.colorMatrixEffect),this.compositeEffect=new c(c.OPERATOR_OVER,i.INPUT_SOURCE_GRAPHIC,this.colorMatrixEffect),this.addEffect(this.compositeEffect)},setColor:function(t){var e=null,n=[];if(s.isString(t)&&(t=a.parse(t)),!t)return this;e=o.MATRIX_EMPTY.split(" "),n.push(t.get("r")),n.push(t.get("g")),n.push(t.get("b"));for(var r=0,i=n.length;r<i;r++)e[5*r+3]=n[r]/255;return e[18]=t.get("a"),this.colorMatrixEffect.set("values",e.join(" ")),this},setOpacity:function(t){var e=this.colorMatrixEffect.get("values").split(" ");return e[18]=t,this.colorMatrixEffect.set("values",e.join(" ")),this},setOffset:function(t,e){this.setOffsetX(t),this.setOffsetY(e)},setOffsetX:function(t){this.offsetEffect.set("dx",t)},setOffsetY:function(t){this.offsetEffect.set("dy",t)},setDeviation:function(t){this.gaussianblurEffect.set("stdDeviation",t)}})}},_p[24]={value:function(t,e,n){return _p.r(11).createClass("Bezier",{mixins:[_p.r(52)],base:_p.r(47),constructor:function(t){this.callBase(),t=t||[],this.changeable=!0,this.setBezierPoints(t)},getBezierPoints:function(){return this.getPoints()},setBezierPoints:function(t){return this.setPoints(t)},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var t=null,e=this.getBezierPoints();if(!(e.length<2)){(t=this.getDrawer()).clear();var n=e[0].getVertex(),r=null,i=null;t.moveTo(n.x,n.y);for(var o=1,a=e.length;o<a;o++)n=e[o].getVertex(),i=e[o].getBackward(),r=e[o-1].getForward(),t.bezierTo(r.x,r.y,i.x,i.y,n.x,n.y);return this}}})}},_p[25]={value:function(t,e,n){var r=_p.r(64),i=_p.r(74),o=_p.r(11).createClass("BezierPoint",{constructor:function(t,e,n){this.vertex=new r(t,e),this.forward=new r(t,e),this.backward=new r(t,e),this.setSmooth(void 0===n||n),this.setSymReflaction(!0)},clone:function(){var t=new o,e=null;return e=this.getVertex(),t.setVertex(e.x,e.y),e=this.getForward(),t.setForward(e.x,e.y),e=this.getBackward(),t.setBackward(e.x,e.y),t.setSymReflaction(this.isSymReflaction),t.setSmooth(this.isSmooth()),t},setVertex:function(t,e){return this.vertex.setPoint(t,e),this.update(),this},moveTo:function(t,e){var n=this.forward.getPoint(),r=this.backward.getPoint(),i=this.vertex.getPoint(),o=t-i.x,a=e-i.y;this.forward.setPoint(n.x+o,n.y+a),this.backward.setPoint(r.x+o,r.y+a),this.vertex.setPoint(t,e),this.update()},setForward:function(t,e){return this.forward.setPoint(t,e),this.smooth&&this.updateAnother(this.forward,this.backward),this.update(),this.lastControlPointSet=this.forward,this},setBackward:function(t,e){return this.backward.setPoint(t,e),this.smooth&&this.updateAnother(this.backward,this.forward),this.update(),this.lastControlPointSet=this.backward,this},setSymReflaction:function(t){return this.symReflaction=t,this.smooth&&this.setSmooth(!0),this},isSymReflaction:function(){return this.symReflaction},updateAnother:function(t,e){var n=this.getVertex(),r=i.fromPoints(t.getPoint(),n),o=i.fromPoints(n,e.getPoint());return o=r.normalize(this.isSymReflaction()?r.length():o.length()),e.setPoint(n.x+o.x,n.y+o.y),this},setSmooth:function(t){var e;return this.smooth=!!t,this.smooth&&(e=this.lastControlPointSet)&&this.updateAnother(e,e==this.forward?this.backward:this.forward),this},isSmooth:function(){return this.smooth},getVertex:function(){return this.vertex.getPoint()},getForward:function(){return this.forward.getPoint()},getBackward:function(){return this.backward.getPoint()},update:function(){if(!this.container)return this;this.container.update&&this.container.update(this)}});return o}},_p[26]={value:function(t,e,n){var r=_p.r(11).createClass("Box",{constructor:function(t,e,n,r){var i=arguments[0];i&&"object"===_typeof(i)&&(t=i.x,e=i.y,n=i.width,r=i.height),n<0&&(t-=n=-n),r<0&&(e-=r=-r),this.x=t||0,this.y=e||0,this.width=n||0,this.height=r||0,this.left=this.x,this.right=this.x+this.width,this.top=this.y,this.bottom=this.y+this.height,this.cx=this.x+this.width/2,this.cy=this.y+this.height/2},getRangeX:function(){return[this.left,this.right]},getRangeY:function(){return[this.top,this.bottom]},merge:function(t){if(this.isEmpty())return new r(t.x,t.y,t.width,t.height);var e=Math.min(this.left,t.left),n=Math.max(this.right,t.right),i=Math.min(this.top,t.top),o=Math.max(this.bottom,t.bottom);return new r(e,i,n-e,o-i)},intersect:function(t){!t instanceof r&&(t=new r(t));var e=Math.max(this.left,t.left),n=Math.min(this.right,t.right),i=Math.max(this.top,t.top),o=Math.min(this.bottom,t.bottom);return e>n||i>o?new r:new r(e,i,n-e,o-i)},expand:function(t,e,n,i){if(arguments.length<1)return new r(this);arguments.length<2&&(e=t),arguments.length<3&&(n=t),arguments.length<4&&(i=e);var o=this.left-i,a=this.top-t,s=this.width+e+i,c=this.height+t+n;return new r(o,a,s,c)},valueOf:function(){return[this.x,this.y,this.width,this.height]},toString:function(){return this.valueOf().join(" ")},isEmpty:function(){return!this.width||!this.height}});return r.parse=function(t){return"string"==typeof t?r.parse(t.split(/[\s,]+/).map(parseFloat)):t instanceof Array?new r(t[0],t[1],t[2],t[3]):"x"in t?new r(t):null},r}},_p[27]={value:function(t,e,n){return _p.r(11).createClass("Circle",{base:_p.r(33),constructor:function(t,e,n){this.callBase(t,t,e,n)},getRadius:function(){return this.getRadiusX()},setRadius:function(t){return this.callBase(t,t)}})}},_p[28]={value:function(t,e,n){var r=_p.r(11),i=_p.r(61),o=r.createClass("Clip",{base:i,mixins:[_p.r(62)],constructor:function(t){this.callBase("clipPath",t)},clip:function(t){return t.getNode().setAttribute("clip-path",this),this}});return r.extendClass(i,{clipWith:function(t){return t instanceof i&&(t=new o(t.getPaper()).addShape(t)),t.clip(this),this}}),o}},_p[29]={value:function(t,e,n){var r=_p.r(12),i=_p.r(65),o={},a=_p.r(11).createClass("Color",{constructor:function(){var t=null;"string"==typeof arguments[0]?null===(t=o.parseToValue(arguments[0]))&&(t={r:0,g:0,b:0,h:0,s:0,l:0,a:1}):(t={r:0|arguments[0],g:0|arguments[1],b:0|arguments[2],a:void 0===arguments[3]?1:parseFloat(arguments[3])},t=o.overflowFormat(t),t=r.extend(t,o.rgbValueToHslValue(t))),this._color=t},set:function(t,e){if(!a._MAX_VALUE[t])throw new Error("Color set(): Illegal parameter");return"a"!==t&&(e=Math.floor(e)),"h"==t&&(e=(e+360)%360),this._color[t]=Math.max(a._MIN_VALUE[t],Math.min(a._MAX_VALUE[t],e)),-1!=="rgb".indexOf(t)?this._color=r.extend(this._color,o.rgbValueToHslValue(this._color)):-1!=="hsl".indexOf(t)&&(this._color=r.extend(this._color,o.hslValueToRGBValue(this._color))),this},inc:function(t,e){return e=this.get(t)+e,"h"==t?e=(e+360)%360:(e=Math.min(a._MAX_VALUE[t],e),e=Math.max(a._MIN_VALUE[t],e)),this.clone().set(t,e)},dec:function(t,e){return this.inc(t,-e)},clone:function(){return new a(this.toRGBA())},get:function(t){return a._MAX_VALUE[t]?this._color[t]:null},getValues:function(){return r.clone(this._color)},valueOf:function(){return this.getValues()},toRGB:function(){return o.toString(this._color,"rgb")},toRGBA:function(){return o.toString(this._color,"rgba")},toHEX:function(){return o.toString(this._color,"hex")},toHSL:function(){return o.toString(this._color,"hsl")},toHSLA:function(){return o.toString(this._color,"hsla")},toString:function(){return 1===this._color.a?this.toRGB():this.toRGBA()}});return r.extend(a,{_MAX_VALUE:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},_MIN_VALUE:{r:0,g:0,b:0,h:0,s:0,l:0,a:0},R:"r",G:"g",B:"b",H:"h",S:"s",L:"l",A:"a",parse:function(t){var e;return r.isString(t)&&(e=o.parseToValue(t)),r.isObject(t)&&"r"in t&&(e=t),null===e?new a:new a(e.r,e.g,e.b,e.a)},createHSL:function(t,e,n){return a.createHSLA(t,e,n,1)},createHSLA:function(t,e,n,r){var i=null;return i=["hsla("+t,e+="%",n+="%",r+")"],a.parse(i.join(", "))},createRGB:function(t,e,n){return a.createRGBA(t,e,n,1)},createRGBA:function(t,e,n,r){return new a(t,e,n,r)}}),r.extend(o,{parseToValue:function(t){var e={};if(t=i.EXTEND_STANDARD[t]||i.COLOR_STANDARD[t]||t,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t))e=o.hexToValue(t);else if(/^(rgba?)/i.test(t))e=o.rgbaToValue(t);else{if(!/^(hsla?)/i.test(t))return null;e=o.hslaToValue(t)}return o.overflowFormat(e)},hexToValue:function(t){var e={};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)?(t=RegExp.$1.split(""),r.each(["r","g","b"],(function(n,r){3===t.length?e[n]=o.toNumber(t[r]+t[r]):e[n]=o.toNumber(t[2*r]+t[2*r+1])})),(e=r.extend(e,o.rgbValueToHslValue(e))).a=1,e):null},rgbaToValue:function(t){var e={},n=!1;return/^(rgba?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^rgba?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),r.each(["r","g","b"],(function(n,r){e[n]=0|t[r]})),(e=r.extend(e,o.rgbValueToHslValue(e))).a=n?parseFloat(t[3]):1,e):null},hslaToValue:function(t){var e={},n=!1;return/^(hsla?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^hsla?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),e.h=0|t[0],e.s=0|t[1],e.l=0|t[2],e=r.extend(e,o.hslValueToRGBValue(e)),(e=o.hslValueToRGBValue(e)).a=n?parseFloat(t[3]):1,e):null},hslValueToRGBValue:function(t){function e(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+6*(2/3-n)*(e-t):t}var n=null,i=null,o={};return(t=r.extend({},t)).h=t.h/360,t.s=t.s/100,t.l=t.l/100,0===t.s?o.r=o.g=o.b=t.l:(n=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,i=2*t.l-n,o.r=e(i,n,t.h+1/3),o.g=e(i,n,t.h),o.b=e(i,n,t.h-1/3)),o.r=Math.min(Math.round(255*o.r),255),o.g=Math.min(Math.round(255*o.g),255),o.b=Math.min(Math.round(255*o.b),255),o},rgbValueToHslValue:function(t){var e,n,i={};return(t=r.extend({},t)).r=t.r/255,t.g=t.g/255,t.b=t.b/255,(e=Math.max(t.r,t.g,t.b))===(n=Math.min(t.r,t.g,t.b))?i.h=0:e===t.r?t.g>=t.b?i.h=60*(t.g-t.b)/(e-n):i.h=60*(t.g-t.b)/(e-n)+360:e===t.g?i.h=60*(t.b-t.r)/(e-n)+120:e===t.b&&(i.h=60*(t.r-t.g)/(e-n)+240),i.l=(e+n)/2,0===i.l||e===n?i.s=0:i.l>0&&i.l<=.5?i.s=(e-n)/(e+n):i.s=(e-n)/(2-e-n),i.h=Math.round(i.h),i.s=Math.round(100*i.s),i.l=Math.round(100*i.l),i},toString:function(t,e){var n=[];return t=r.extend({},t),-1!==e.indexOf("hsl")&&(t.s+="%",t.l+="%"),"hex"!==e?(r.each(e.split(""),(function(e){n.push(t[e])})),(e+"("+n.join(", ")+")").toLowerCase()):(n.push(o.toHexValue(+t.r)),n.push(o.toHexValue(+t.g)),n.push(o.toHexValue(+t.b)),("#"+n.join("")).toLowerCase())},toNumber:function(t){return 0|Number("0x"+t)},toHexValue:function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},overflowFormat:function(t){var e=r.extend({},t);return r.each("rgba".split(""),(function(t){e.hasOwnProperty(t)&&(e[t]=Math.min(a._MAX_VALUE[t],e[t]),e[t]=Math.max(a._MIN_VALUE[t],e[t]))})),e}}),a}},_p[30]={value:function(t,e,n){function r(){return this.container.removeItem(this),this}return _p.r(11).createClass("Container",{getItems:function(){return this.items||(this.items=[])},getItem:function(t){return this.getItems()[t]},getFirstItem:function(){return this.getItem(0)},getLastItem:function(){return this.getItem(this.getItems().length-1)},indexOf:function(t){return this.getItems().indexOf(t)},eachItem:function(t){var e,n=this.getItems(),r=n.length;for(e=0;e<r;e++)t.call(this,e,n[e]);return this},addItem:function(t,e,n){var i=this.getItems(),o=i.length;return~i.indexOf(t)||(e>=0&&e<o||(e=o),i.splice(e,0,t),"object"===_typeof(t)&&(t.container=this,t.remove=r),this.handleAdd(t,e),n||this.onContainerChanged("add",[t])),this},addItems:function(t){for(var e=0,n=t.length;e<n;e++)this.addItem(t[e],-1,!0);return this.onContainerChanged("add",t),this},setItems:function(t){return this.clear().addItems(t)},appendItem:function(t){return this.addItem(t)},prependItem:function(t){return this.addItem(t,0)},removeItem:function(t,e){if("number"!=typeof t)return this.removeItem(this.indexOf(t));var n=this.getItems(),r=(n.length,n[t]);return void 0===r||(n.splice(t,1),r.container&&delete r.container,r.remove&&delete r.remove,this.handleRemove(r,t),e||this.onContainerChanged("remove",[r])),this},clear:function(){for(var t,e=[];t=this.getFirstItem();)e.push(t),this.removeItem(0,!0);return this.onContainerChanged("remove",e),this},onContainerChanged:function(t,e){},handleAdd:function(t,e){},handleRemove:function(t,e){}})}},_p[31]={value:function(t,e,n){var r=_p.r(12),i={getCurvePanLines:function(t,e){var n=i.getCenterPoints(t),r=i.getPanLine(t.length,n);return i.getMovedPanLines(t,r,e)},getCenterPoints:function(t){for(var e={},n=0,r=0,i=t.length;n<i;n++)e[n+","+(r=n===i-1?0:n+1)]={x:(t[n].x+t[r].y)/2,y:(t[n].x+t[r].y)/2};return e},getPanLine:function(t,e){for(var n,r={},i=null,o=0;o<t;o++){var a,s;i=n=(o+1)%t,a=e[o+","+n],s=e[(o=n)+","+(n=(o+1)%t)],r[i]={points:[{x:a.x,y:a.y},{x:s.x,y:s.y}],center:{x:(a.x+s.x)/2,y:(a.y+s.y)/2}},o=(i+t-1)%t}return r},getMovedPanLines:function(t,e,n){var i={};return r.each(t,(function(t,o){var a=e[o],s=a.center,c=s.x-t.x,u=s.y-t.y,l=i[o]={points:[],center:{x:t.x,y:t.y}};r.each(a.points,(function(t,e){var r={x:t.x-c,y:t.y-u},i=l.center,o=r.x-i.x,a=r.y-i.y;r.x=i.x+n*o,r.y=i.y+n*a,l.points.push(r)}))})),i}};return _p.r(11).createClass("Curve",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(t,e){this.callBase(),this.setPoints(t||[]),this.closeState=!!e,this.changeable=!0,this.smoothFactor=1,this.update()},onContainerChanged:function(){this.changeable&&this.update()},setSmoothFactor:function(t){return this.smoothFactor=t<0?0:t,this.update(),this},getSmoothFactor:function(){return this.smoothFactor},update:function(){var t,e=this.getPoints(),n=this.getDrawer(),r=null,o=null,a=null;if(n.clear(),0===e.length)return this;if(n.moveTo(e[0]),1===e.length)return this;if(2===e.length)return n.lineTo(e[1]),this;t=i.getCurvePanLines(e,this.getSmoothFactor());for(var s=1,c=e.length;s<c;s++)r=t[s].center,o=this.closeState||s!=c-1?t[s].points[0]:t[s].center,a=this.closeState||1!=s?t[s-1].points[1]:t[s-1].center,n.bezierTo(a.x,a.y,o.x,o.y,r.x,r.y);return this.closeState&&(r=t[0].center,o=t[0].points[0],a=t[e.length-1].points[1],n.bezierTo(a.x,a.y,o.x,o.y,r.x,r.y)),this},close:function(){return this.closeState=!0,this.update()},open:function(){return this.closeState=!1,this.update()},isClose:function(){return!!this.closeState}})}},_p[32]={value:function(t,e,n){return _p.r(11).createClass("Data",{constructor:function(){this._data={}},setData:function(t,e){return this._data[t]=e,this},getData:function(t){return this._data[t]},removeData:function(t){return delete this._data[t],this}})}},_p[33]={value:function(t,e,n){_p.r(12);var r=_p.r(51);return _p.r(11).createClass("Ellipse",{base:_p.r(47),constructor:function(t,e,n,r){this.callBase(),this.rx=t||0,this.ry=e||0,this.cx=n||0,this.cy=r||0,this.update()},update:function(){var t=this.rx,e=this.ry,n=this.cx+t,r=this.cx-t,i=this.cy,o=this.getDrawer();return o.clear(),o.moveTo(n,i),o.arcTo(t,e,0,1,1,r,i),o.arcTo(t,e,0,1,1,n,i),this},getRadius:function(){return{x:this.rx,y:this.ry}},getRadiusX:function(){return this.rx},getRadiusY:function(){return this.ry},getCenter:function(){return new r(this.cx,this.cy)},getCenterX:function(){return this.cx},getCenterY:function(){return this.cy},setRadius:function(t,e){return this.rx=t,this.ry=e,this.update()},setRadiusX:function(t){return this.rx=t,this.update()},setRadiusY:function(t){return this.ry=t,this.update()},setCenter:function(t,e){if(1==arguments.length){var n=r.parse(arguments[0]);t=n.x,e=n.y}return this.cx=t,this.cy=e,this.update()},setCenterX:function(t){return this.cx=t,this.update()},setCenterY:function(t){return this.cy=t,this.update()}})}},_p[34]={value:function(t,e,n){!function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var r=_p.r(12),i=_p.r(63),o={},a={},s=0;function c(t,e,n){return n=!!n,r.isString(t)&&(t=t.match(/\S+/g)),r.each(t,(function(t){l.call(this,this.node,t,e,n)}),this),this}function u(t,e){var n=null,i=this._EVNET_UID,s=void 0===e;return n=a[i][t],s||(s=!0,r.each(n,(function(t,r){t===e?delete n[r]:s=!1}))),s&&(!function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent(e,n)}(this.node,t,o[i][t]),delete a[i][t],delete o[i][t]),this}function l(t,e,n,s){var c=this._EVNET_UID,u=this;o[c]||(o[c]={}),o[c][e]||(o[c][e]=function(t){t=new i(t||window.event),r.each(a[c][e],(function(n){var r;return n&&(r=n.call(u,t),s&&u.off(e,n)),r}),u)}),a[c]||(a[c]={}),a[c][e]?a[c][e].push(n):(a[c][e]=[n],t&&"on"+e in t&&function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}(t,e,o[c][e]))}return _p.r(11).createClass("EventHandler",{constructor:function(){this._EVNET_UID=++s},addEventListener:function(t,e){return c.call(this,t,e,!1)},addOnceEventListener:function(t,e){return c.call(this,t,e,!0)},removeEventListener:function(t,e){return u.call(this,t,e)},on:function(t,e){return this.addEventListener.apply(this,arguments)},once:function(t,e){return this.addOnceEventListener.apply(this,arguments)},off:function(){return this.removeEventListener.apply(this,arguments)},fire:function(t,e){return this.trigger.apply(this,arguments)},trigger:function(t,e){return function(t,e,n){var i,a=null,s=o[t._EVNET_UID];s&&(a=s[e])&&(i=r.extend({type:e,target:t},n||{}),a.call(t,i))}(this,t,e),this}})}},_p[35]={value:function(t){var e=_p.r(12),n=_p.r(51),r=_p.r(74),i=_p.r(44),o={},a=/([achlmrqstvz])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?\s*)+)/gi,s=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/gi,c={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0};function u(t){var e,n,r,i,o;for(e=[],n=0;n<t.length;n++)for(i=t[n],e.push(o=[]),r=0;r<i.length;r++)o.push(i[r]);return t.isUniform&&(e.isUniform=!0),t.isAbsolute&&(e.isAbsolute=!0),t.isCurve&&(e.isCurve=!0),e}function l(t,e,n){function r(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}return function i(){var o=Array.prototype.slice.call(arguments,0),a=o.join("␀"),s=i.cache=i.cache||{},c=i.count=i.count||[];return s.hasOwnProperty(a)?(r(c,a),n?n(s[a]):s[a]):(c.length>=1e3&&delete s[c.shift()],c.push(a),s[a]=t.apply(e,o),n?n(s[a]):s[a])}}function h(t,e,n,r,i,o,a,s,c,u){var l,f,d,p,g,m,v,b,y,w,x,A,_,S,k,N,L,C,P,E,I,M,T,O,D,R,B,F,j,q=Math,z=q.PI,V=Math.abs,U=120*z/180,H=z/180*(+i||0),G=[],W=function(t,e,n){return{x:t*q.cos(n)-e*q.sin(n),y:t*q.sin(n)+e*q.cos(n)}};if(u?(w=u[0],x=u[1],b=u[2],y=u[3]):(t=(l=W(t,e,-H)).x,e=l.y,s=(l=W(s,c,-H)).x,c=l.y,q.cos(z/180*i),q.sin(z/180*i),(f=(d=(t-s)/2)*d/(n*n)+(p=(e-c)/2)*p/(r*r))>1&&(n*=f=q.sqrt(f),r*=f),g=n*n,m=r*r,b=(v=(o==a?-1:1)*q.sqrt(V((g*m-g*p*p-m*d*d)/(g*p*p+m*d*d))))*n*p/r+(t+s)/2,y=v*-r*d/n+(e+c)/2,w=q.asin(((e-y)/r).toFixed(9)),x=q.asin(((c-y)/r).toFixed(9)),(w=t<b?z-w:w)<0&&(w=2*z+w),(x=s<b?z-x:x)<0&&(x=2*z+x),a&&w>x&&(w-=2*z),!a&&x>w&&(x-=2*z)),V(A=x-w)>U&&(_=x,S=s,k=c,x=w+U*(a&&x>w?1:-1),G=h(s=b+n*q.cos(x),c=y+r*q.sin(x),n,r,i,0,a,S,k,[x,_,b,y])),A=x-w,N=q.cos(w),L=q.sin(w),C=q.cos(x),P=q.sin(x),D=[s+(I=4/3*n*(E=q.tan(A/4)))*P,c-(M=4/3*r*E)*C],R=[s,c],(O=[t+I*L,e-M*N])[0]=2*(T=[t,e])[0]-O[0],O[1]=2*T[1]-O[1],u)return[O,D,R].concat(G);for(B=[],F=0,j=(G=[O,D,R].concat(G).join().split(",")).length;F<j;F++)B[F]=F%2?W(G[F-1],G[F],H).y:W(G[F],G[F+1],H).x;return B}function f(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]}function d(t,e){var n=function(t){return function(e,n){return e+t*(n-e)}}(e||.5),r=t,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],u=r[5],l=r[6],h=r[7],f=n(i,a),d=n(o,s),p=n(a,c),g=n(s,u),m=n(c,l),v=n(u,h),b=n(f,p),y=n(d,g),w=n(p,m),x=n(g,v),A=n(b,w),_=n(y,x);return[[i,o,f,d,b,y,A,_],[A,_,w,x,m,v,l,h]]}o.pathToString=function(t){return"string"==typeof(t=t||this)?t:t instanceof Array?(t=e.flatten(t)).join(",").replace(/,?([achlmqrstvxz]),?/gi,"$1"):void 0},o.parsePathString=l((function(t){var e=[];return t.replace(a,(function(t,n,r){var i=[],o=n.toLowerCase();if(r.replace(s,(function(t,e){e&&i.push(+e)})),"m"==o&&i.length>2&&(e.push([n].concat(i.splice(0,2))),o="l",n="m"==n?"l":"L"),"r"==o)e.push([n].concat(i));else for(;i.length>=c[o]&&(e.push([n].concat(i.splice(0,c[o]))),c[o]););})),e.isUniform=!0,e.toString=o.pathToString,e})),o.pathToAbsolute=l((function(t){var e,n,r,i,a,s,c,u,l=t.isUniform?t:o.parsePathString(o.pathToString(t)),h=[],f=0,d=0,p=0,g=0,m=0;for("M"==l[0][0]&&(p=f=+l[0][1],g=d=+l[0][2],m++,h[0]=["M",f,d]),r=m,s=l.length;r<s;r++){if(h.push(e=[]),(n=l[r])[0]!=n[0].toUpperCase())switch(e[0]=n[0].toUpperCase(),e[0]){case"A":e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=+(n[6]+f),e[7]=+(n[7]+d);break;case"V":e[1]=+n[1]+d;break;case"H":e[1]=+n[1]+f;break;case"M":p=+n[1]+f,g=+n[2]+d;break;default:for(i=1,c=n.length;i<c;i++)e[i]=+n[i]+(i%2?f:d)}else for(a=0,u=n.length;a<u;a++)e[a]=n[a];switch(e[0]){case"Z":f=p,d=g;break;case"H":f=e[1];break;case"V":d=e[1];break;case"M":p=e[e.length-2],g=e[e.length-1];break;default:f=e[e.length-2],d=e[e.length-1]}}return h.isUniform=!0,h.isAbsolute=!0,h.toString=o.pathToString,h})),o.pathToCurve=l((function(t){var e,n,r,i,a,s,c,u,l,d,p,g,m=[];for(t.isAbsolute||(t=o.pathToAbsolute(t)),e=0;e<t.length;e++)if(r=t[e][0],i=t[e].slice(1),"M"!=r){switch("Z"==r&&(u=!0,r="L",i=a),c=i.slice(i.length-2),"H"==r&&(c=[i[0],s[1]],r="L"),"V"==r&&(c=[s[0],i[0]],r="L"),"S"!=r&&"T"!=r||(d=[s[0]+(s[0]-l[0]),s[1]+(s[1]-l[1])]),r){case"L":p=s,g=c;break;case"C":p=i.slice(0,2),g=i.slice(2,4);break;case"S":p=d.slice(),g=i.slice(0,2);break;case"Q":l=i.slice(0,2),p=(i=f.apply(null,s.concat(i))).slice(0,2),g=i.slice(2,4);break;case"T":p=(i=f.apply(null,s.concat(d).concat(i))).slice(0,2),g=i.slice(2,4);break;case"A":for(i=h.apply(null,s.concat(i)),n=0;n in i;)p=i.slice(n,n+2),g=i.slice(n+2,n+4),c=i.slice(n+4,n+6),m.push(["C"].concat(p).concat(g).concat(c)),n+=6}"A"!=r&&m.push(["C"].concat(p).concat(g).concat(c)),s=c,"Q"!=r&&(l=g),u&&(m.push(["Z"]),u=!1)}else a=l=s=i,m.push(t[e]);return m.isUniform=!0,m.isAbsolute=!0,m.isCurve=!0,m.toString=o.pathToString,m})),o.cutBezier=l(d),o.subBezier=function(t,e,n){var r=d(t,e)[0];return n?d(r,n/e)[1]:r},o.pointAtBezier=function(t,e){var i=d(t,e)[0],a=n.parse(i.slice(6)),s=n.parse(i.slice(4,2)),c=r.fromPoints(s,a);return a.tan=0===e?o.pointAtBezier(t,.01).tan:c.normalize(),a},o.bezierLength=l((function(t){function e(t){var e=c*Math.pow(t,4)+u*Math.pow(t,3)+l*Math.pow(t,2)+h*t+f;return e<0&&(e=0),Math.pow(e,.5)}var n,r,i,o,a,s,c,u,l,h,f,d=t;return n=-3*d[0]+9*d[2]-9*d[4]+3*d[6],r=6*d[0]-12*d[2]+6*d[4],i=-3*d[0]+3*d[2],o=-3*d[1]+9*d[3]-9*d[5]+3*d[7],a=6*d[1]-12*d[3]+6*d[5],s=-3*d[1]+3*d[3],c=Math.pow(n,2)+Math.pow(o,2),u=2*(n*r+o*a),l=2*(n*i+o*s)+Math.pow(r,2)+Math.pow(a,2),h=2*(r*i+a*s),f=Math.pow(i,2)+Math.pow(s,2),(e(0)+e(1)+4*(e(.125)+e(.375)+e(.625)+e(.875))+2*(e(.25)+e(.5)+e(.75)))/24}));var p=l((function(t){var e,n,r,i,a,s,c;for(s=[],c=0,e=0,n=t.length;e<n;e++)"M"!=(r=t[e])[0]?"Z"!=r[0]?(a=o.bezierLength(i.concat(r.slice(1))),s.push([c,c+a]),c+=a,i=r.slice(4)):s.push(null):(i=r.slice(1),s.push(null));return s.totalLength=c,s}));o.subPath=function(t,e,n){var r;if(r=e-(n=n||0),(e=(n-=0|n)+(r-=0|r))>1)return o.subPath(t,1,n).concat(o.subPath(t,e-1));t.isCurve||(t=o.pathToCurve(t));var i,a,s,c,u,l,h,f,d,g=p(t),m=g.totalLength,v=m*e,b=m*(n||0),y=[];for(i=0,a=t.length;i<a;i++)if("M"!=t[i][0]){if("Z"!=t[i][0])if(s=g[i][0],u=(c=g[i][1])-s,h=l.concat(t[i].slice(1)),b>c)l=h.slice(h.length-2);else{if(b>=s)d=!0,l=(f=o.subBezier(h,Math.min((v-s)/u,1),(b-s)/u)).slice(0,2),y.push(["M"].concat(f.slice(0,2))),y.push(["C"].concat(f.slice(2)));else if(v>=c)y.push(t[i].slice());else{if(!(v>=s))break;f=o.subBezier(h,(v-s)/u),y.push(["C"].concat(f.slice(2))),d=!1}l=h.slice(h.length-2)}}else l=t[i].slice(1),d&&y.push(t[i].slice());return y.isAbsolute=!0,y.isCurve=!0,y.isUniform=!0,y.toString=o.pathToString,y},o.pointAtPath=function(t,e){t.isCurve||(t=o.pathToCurve(t));var i=o.subPath(t,e),a="Z"==i[i.length-1][0]?i[i.length-2]:i[i.length-1];a=a.slice(1);var s=n.parse(a.slice(4)),c=n.parse(a.slice(2,4));return s.tan=r.fromPoints(c,s).normalize(),s},o.pathLength=l((function(t){return t.isCurve||(t=o.pathToCurve(t)),p(t).totalLength})),o.pathKeyPoints=l((function(t){var e,n,r;for(t.isCurve||(t=o.pathToCurve(t)),r=[],e=0,n=t.length;e<n;e++)"z"!=t[e][0]&&r.push(t[e].slice(t[e].length-2));return r}));var g=l((function(t,e){t.isCurve||(t=o.pathToCurve(t)),e.isCurve||(e=o.pathToCurve(e));var n=u(t),r=u(e);function i(t,e){return t[e||t.i]&&t[e||t.i][0]}function a(t,e){var n=function(t,e){return t[e||t.i]&&t[e||t.i].slice(1)}(t,e);return n&&n.slice(-2)}function s(t){return"Z"==i(t)&&(t.splice(t.i,1),!0)}function c(t){return"M"==i(t)&&(t.o.splice(t.o.i,0,["M"].concat(a(t.o,t.o.i-1))),t.i++,t.o.i++,!0)}function l(t){for(var e,n=1;!e;)e=a(t,t.length-n++);for(t.o.i=t.i;t.length<t.o.length;)s(t.o)||c(t.o)||(t.push(["C"].concat(e).concat(e).concat(e)),t.i++,t.o.i++)}for(n.i=0,r.i=0,n.o=r,r.o=n;n.i<n.length&&r.i<r.length;)s(n)||s(r)||i(n)!=i(r)&&(c(n)||c(r))||(n.i++,r.i++);return n.i==n.length&&l(n),r.i==r.length&&l(r),delete n.i,delete n.o,delete r.i,delete r.o,[n,r]}));return o.alignCurve=g,o.pathTween=function(t,e,n){if(0===n)return t;if(1===n)return e;var r,i,o,a=g(t,e),s=[];for(t=a[0],e=a[1],i=0;i<t.length;i++)for(s.push(r=[]),r.push(t[i][0]),o=1;o<t[i].length;o++)r.push(t[i][o]+n*(e[i][o]-t[i][o]));return s.isUniform=s.isCurve=s.isAbsolute=!0,s},o.transformPath=l((function(t,e){var r,i,a,s,c;for(t.isCurve||(t=o.pathToCurve(t)),s=[],r=0,i=t.length;r<i;r++)for(s.push([t[r][0]]),a=1;a<t[r].length;a+=2)c=t[r].slice(a,a+2),c=e.transformPoint(n.parse(c)),s.push(c);return s})),_p.r(11).extendClass(i,{transformPath:function(t){return o.transformPath(t,this)}}),o}},_p[36]={value:function(t,e,n){var r=_p.r(68),i=_p.r(59),o=_p.r(29);return _p.r(11).createClass("GradientBrush",{base:i,constructor:function(t,e){this.callBase(t,e),this.stops=[]},addStop:function(t,e,n){var i=r.createNode("stop");return e instanceof o||(e=o.parse(e)),void 0===n&&(n=e.get("a")),i.setAttribute("offset",t),i.setAttribute("stop-color",e.toRGB()),n<1&&i.setAttribute("stop-opacity",n),this.node.appendChild(i),this}})}},_p[37]={value:function(t,e,n){var r=_p.r(62);return _p.r(11).createClass("Group",{mixins:[r],base:_p.r(61),constructor:function(){this.callBase("g")}})}},_p[38]={value:function(t,e,n){var r=_p.r(62);return _p.r(11).createClass("HyperLink",{mixins:[r],base:_p.r(61),constructor:function(t){this.callBase("a"),this.setHref(t)},setHref:function(t){return this.node.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t),this},getHref:function(){return this.node.getAttributeNS("xlink:href")},setTarget:function(t){return this.node.setAttribute("target",t),this},getTarget:function(){return this.node.getAttribute("target")}})}},_p[39]={value:function(t,e,n){return _p.r(11).createClass("Image",{base:_p.r(61),constructor:function(t,e,n,r,i){this.callBase("image"),this.url=t,this.width=e||0,this.height=n||0,this.x=r||0,this.y=i||0,this.update()},update:function(){return this.node.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",this.url),this.node.setAttribute("x",this.x),this.node.setAttribute("y",this.y),this.node.setAttribute("width",this.width),this.node.setAttribute("height",this.height),this},setUrl:function(t){return this.url=""===t?null:t,this.update()},getUrl:function(){return this.url},setWidth:function(t){return this.width=t,this.update()},getWidth:function(){return this.width},setHeight:function(t){return this.height=t,this.update()},getHeight:function(){return this.height},setX:function(t){return this.x=t,this.update()},getX:function(){return this.x},setY:function(t){return this.y=t,this.update()},getY:function(){return this.y}})}},_p[40]={value:function(t,e,n){return _p.r(11).createClass("Line",{base:_p.r(47),constructor:function(t,e,n,r){this.callBase(),this.point1={x:t||0,y:e||0},this.point2={x:n||0,y:r||0},this.update()},setPoint1:function(t,e){return this.point1.x=t,this.point1.y=e,this.update()},setPoint2:function(t,e){return this.point2.x=t,this.point2.y=e,this.update()},getPoint1:function(){return{x:this.point1.x,y:this.point1.y}},getPoint2:function(){return{x:this.point2.x,y:this.point2.y}},update:function(){var t=this.getDrawer();return t.clear(),t.moveTo(this.point1.x,this.point1.y),t.lineTo(this.point2.x,this.point2.y),this}})}},_p[41]={value:function(t,e,n){_p.r(68);var r=_p.r(36);return _p.r(11).createClass("LinearGradientBrush",{base:r,constructor:function(t){this.callBase("linearGradient",t),this.setStartPosition(0,0),this.setEndPosition(1,0)},setStartPosition:function(t,e){return this.node.setAttribute("x1",t),this.node.setAttribute("y1",e),this},setEndPosition:function(t,e){return this.node.setAttribute("x2",t),this.node.setAttribute("y2",e),this},getStartPosition:function(){return{x:+this.node.getAttribute("x1"),y:+this.node.getAttribute("y1")}},getEndPosition:function(){return{x:+this.node.getAttribute("x2"),y:+this.node.getAttribute("y2")}}})}},_p[42]={value:function(t,e,n){var r=_p.r(51),i=_p.r(11).createClass("Marker",{base:_p.r(59),mixins:[_p.r(62),_p.r(76)],constructor:function(){this.callBase("marker"),this.setOrient("auto")},setRef:function(t,e){return 1===arguments.length&&(e=t.y,t=t.x),this.node.setAttribute("refX",t),this.node.setAttribute("refY",e),this},getRef:function(){return new r(+this.node.getAttribute("refX"),+this.node.getAttribute("refY"))},setWidth:function(t){return this.node.setAttribute("markerWidth",this.width=t),this},setOrient:function(t){return this.node.setAttribute("orient",this.orient=t),this},getOrient:function(){return this.orient},getWidth:function(){return+this.width},setHeight:function(t){return this.node.setAttribute("markerHeight",this.height=t),this},getHeight:function(){return+this.height}}),o=_p.r(47);return _p.r(11).extendClass(o,{setMarker:function(t,e){return e=e||"end",t?this.node.setAttribute("marker-"+e,t.toString()):this.node.removeAttribute("marker-"+e),this}}),i}},_p[43]={value:function(t,e,n){var r=_p.r(11),i=_p.r(61),o=r.createClass("Mask",{base:i,mixins:[_p.r(62)],constructor:function(){this.callBase("mask")},mask:function(t){return t.getNode().setAttribute("mask","url(#"+this.getId()+")"),this}});return r.extendClass(i,{maskWith:function(t){return t.mask(this),this}}),o}},_p[44]={value:function(t,e,n){var r=_p.r(12),i=_p.r(26),o=/matrix\s*\((.+)\)/i,a=_p.r(51);function s(t,e){return{a:e.a*t.a+e.c*t.b,b:e.b*t.a+e.d*t.b,c:e.a*t.c+e.c*t.d,d:e.b*t.c+e.d*t.d,e:e.a*t.e+e.c*t.f+e.e,f:e.b*t.e+e.d*t.f+e.f}}function c(t){return t*Math.PI/180}var u=_p.r(11).createClass("Matrix",{constructor:function(){arguments.length?this.setMatrix.apply(this,arguments):this.setMatrix(1,0,0,1,0,0)},translate:function(t,e){return this.m=s(this.m,{a:1,c:0,e:t,b:0,d:1,f:e}),this},rotate:function(t){var e=c(t),n=Math.sin(e),r=Math.cos(e);return this.m=s(this.m,{a:r,c:-n,e:0,b:n,d:r,f:0}),this},scale:function(t,e){return void 0===e&&(e=t),this.m=s(this.m,{a:t,c:0,e:0,b:0,d:e,f:0}),this},skew:function(t,e){void 0===e&&(e=t);var n=Math.tan(c(t)),r=Math.tan(c(e));return this.m=s(this.m,{a:1,c:n,e:0,b:r,d:1,f:0}),this},inverse:function(){var t,e=this.m,n=e.a,r=e.b,i=e.c,o=e.d,a=e.e,s=e.f;return new u(o/(t=n*o-r*i),-r/t,-i/t,n/t,(i*s-a*o)/t,(r*a-n*s)/t)},setMatrix:function(t,e,n,i,o,a){return this.m=1===arguments.length?r.clone(arguments[0]):{a:t,b:e,c:n,d:i,e:o,f:a},this},getMatrix:function(){return r.clone(this.m)},getTranslate:function(){var t=this.m;return{x:t.e/t.a,y:t.f/t.d}},mergeMatrix:function(t){return new u(s(this.m,t.m))},merge:function(t){return this.mergeMatrix(t)},toString:function(){return this.valueOf().join(" ")},valueOf:function(){var t=this.m;return[t.a,t.b,t.c,t.d,t.e,t.f]},equals:function(t){var e=this.m,n=t.m;return e.a==n.a&&e.b==n.b&&e.c==n.c&&e.d==n.d&&e.e==n.e&&e.f==n.f},transformPoint:function(){return u.transformPoint.apply(null,[].slice.call(arguments).concat([this.m]))},transformBox:function(t){return u.transformBox(t,this.m)},clone:function(){return new u(this.m)}});return u.parse=function(t){var e,n=parseFloat;if(t instanceof Array)return new u({a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]});if(e=o.exec(t)){var r=e[1].split(",");return 6!=r.length&&(r=e[1].split(" ")),new u({a:n(r[0]),b:n(r[1]),c:n(r[2]),d:n(r[3]),e:n(r[4]),f:n(r[5])})}return new u},u.transformPoint=function(t,e,n){return 2===arguments.length&&(n=e,e=t.y,t=t.x),new a(n.a*t+n.c*e+n.e,n.b*t+n.d*e+n.f)},u.transformBox=function(t,e){for(var n,o,a=Number.MAX_VALUE,s=-Number.MAX_VALUE,c=Number.MAX_VALUE,l=-Number.MAX_VALUE,h=[[t.x,t.y],[t.x+t.width,t.y],[t.x,t.y+t.height],[t.x+t.width,t.y+t.height]],f=[];n=h.pop();)o=u.transformPoint(n[0],n[1],e),f.push(o),a=Math.min(a,o.x),s=Math.max(s,o.x),c=Math.min(c,o.y),l=Math.max(l,o.y);return t=new i({x:a,y:c,width:s-a,height:l-c}),r.extend(t,{closurePoints:f}),t},u.getCTM=function(t,e){var n={a:1,b:0,c:0,d:1,e:0,f:0},r=t.shapeNode||t.node;function i(t,e){var n;try{n=e.getScreenCTM().inverse()}catch(t){throw new Error("Can not inverse source element' ctm.")}return n.multiply(t.getScreenCTM())}switch(e=e||"parent"){case"screen":n=r.getScreenCTM();break;case"doc":case"paper":n=r.getCTM();break;case"view":case"top":t.getPaper()&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(t.getPaper().shapeNode):i(r,t.getPaper().shapeNode));break;case"parent":t.node.parentNode&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(t.node.parentNode):i(r,t.node.parentNode));break;default:e.node&&(n=void 0!==r.getTransformToElement?r.getTransformToElement(e.shapeNode||e.node):i(r,e.shapeNode||e.node))}return n?new u(n.a,n.b,n.c,n.d,n.e,n.f):new u},u}},_p[45]={value:function(t,e,n){var r=_p.r(65),i=_p.r(29),o=_p.r(12),a=_p.r(11).createClass("Palette",{constructor:function(){this.color={}},get:function(t){var e=this.color[t]||r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||"";return e?new i(e):null},getColorValue:function(t){return this.color[t]||r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||""},add:function(t,e){return this.color[t]="string"==typeof e?new i(e).toRGBA():e.toRGBA(),e},remove:function(t){return!!this.color.hasOwnProperty(t)&&(delete this.color[t],!0)}});return o.extend(a,{getColor:function(t){var e=r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t];return e?new i(e):null},getColorValue:function(t){return r.EXTEND_STANDARD[t]||r.COLOR_STANDARD[t]||""},addColor:function(t,e){return r.EXTEND_STANDARD[t]="string"==typeof e?new i(e).toRGBA():e.toRGBA(),e},removeColor:function(t){return!!r.EXTEND_STANDARD.hasOwnProperty(t)&&(delete r.EXTEND_STANDARD[t],!0)}}),a}},_p[46]={value:function(t,e,n){var r=_p.r(11),i=_p.r(12),o=_p.r(68),a=_p.r(30),s=_p.r(62),c=_p.r(76),u=_p.r(34),l=_p.r(67),h=_p.r(44),f=r.createClass("Paper",{mixins:[s,u,l,c],constructor:function(t){this.callBase(),this.node=this.createSVGNode(),this.node.paper=this,this.node.appendChild(this.resourceNode=o.createNode("defs")),this.node.appendChild(this.shapeNode=o.createNode("g")),this.resources=new a,this.setWidth("100%").setHeight("100%"),t&&this.renderTo(t),this.callMixin()},renderTo:function(t){i.isString(t)&&(t=document.getElementById(t)),this.container=t,t.appendChild(this.node)},createSVGNode:function(){var t=o.createNode("svg");return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.setAttribute("version","1.1"),t},getNode:function(){return this.node},getContainer:function(){return this.container},getWidth:function(){return this.node.clientWidth},setWidth:function(t){return this.node.setAttribute("width",t),this},getHeight:function(){return this.node.clientHeight},setHeight:function(t){return this.node.setAttribute("height",t),this},setViewPort:function(t,e,n){var r,i;1==arguments.length&&(t=(r=arguments[0]).center.x,e=r.center.y,n=r.zoom),n=n||1,i=this.getViewBox();var o=new h,a=i.x+i.width/2-t,s=i.y+i.height/2-e;return o.translate(-t,-e),o.scale(n),o.translate(t,e),o.translate(a,s),this.shapeNode.setAttribute("transform","matrix("+o+")"),this.viewport={center:{x:t,y:e},offset:{x:a,y:s},zoom:n},this},getViewPort:function(){if(!this.viewport){var t=this.getViewBox();return{zoom:1,center:{x:t.x+t.width/2,y:t.y+t.height/2},offset:{x:0,y:0}}}return this.viewport},getViewPortMatrix:function(){return h.parse(this.shapeNode.getAttribute("transform"))},getViewPortTransform:function(){var t=this.shapeNode.getCTM();return new h(t.a,t.b,t.c,t.d,t.e,t.f)},getTransform:function(){return this.getViewPortTransform().reverse()},addResource:function(t){return this.resources.appendItem(t),t.node&&this.resourceNode.appendChild(t.node),this},removeResource:function(t){return t.remove&&t.remove(),t.node&&this.resourceNode.removeChild(t.node),this},getPaper:function(){return this}}),d=_p.r(61);return r.extendClass(d,{getPaper:function(){for(var t=this.container;t&&t instanceof f==!1;)t=t.container;return t},isAttached:function(){return!!this.getPaper()},whenPaperReady:function(t){var e=this;function n(){var n=e.getPaper();return n&&t&&t.call(e,n),n}return n()||this.on("add treeadd",(function t(){n()&&(e.off("add",t),e.off("treeadd",t))})),this}}),f}},_p[47]={value:function(t,e,n){var r=_p.r(12),i=_p.r(11).createClass,o=_p.r(61),a=_p.r(68),s=_p.r(35),c=Array.prototype.slice,u=(r.flatten,i("PathDrawer",{constructor:function(t){this.segment=[],this.path=t,this.__clear=!1},getPath:function(){return this.path},redraw:function(){return this._transation=this._transation||[],this.clear()},done:function(){var t=this._transation;return this._transation=null,this.push(t),this},clear:function(){return this._transation?this._transation=[]:this.path.setPathData("M 0 0"),this._clear=!0,this},push:function(){var t,e=c.call(arguments);return this._transation?(this._transation.push(e),this):(this._clear?(t="",this._clear=!1):t=this.path.getPathData(),t=t||"",this.path.setPathData(t+s.pathToString(e)),this)},moveTo:function(t,e){return this.push("M",c.call(arguments))},moveBy:function(t,e){return this.push("m",c.call(arguments))},lineTo:function(t,e){return this.push("L",c.call(arguments))},lineBy:function(t,e){return this.push("l",c.call(arguments))},arcTo:function(t,e,n,r,i,o,a){return this.push("A",c.call(arguments))},arcBy:function(t,e,n,r,i,o,a){return this.push("a",arguments)},carcTo:function(t,e,n,r,i){return this.push("A",[t,t,0].concat(c.call(arguments,1)))},carcBy:function(t,e,n,r,i){return this.push("a",[t,t,0].concat(c.call(arguments,1)))},bezierTo:function(t,e,n,r,i,o){return this.push("C",c.call(arguments))},bezierBy:function(t,e,n,r,i,o){return this.push("c",c.call(arguments))},close:function(){return this.push("z")}}));return i("Path",{base:o,constructor:function(t){this.callBase("path"),t&&this.setPathData(t),this.node.setAttribute("fill",a.defaults.fill),this.node.setAttribute("stroke",a.defaults.stroke)},setPathData:function(t){return t=t||"M0,0",this.pathdata=s.pathToString(t),this.node.setAttribute("d",this.pathdata),this.trigger("shapeupdate",{type:"pathdata"}),this},getPathData:function(){return this.pathdata||""},getDrawer:function(){return new u(this)},isClosed:function(){var t=this.getPathData();return!!~t.indexOf("z")||!!~t.indexOf("Z")}})}},_p[48]={value:function(t,e,n){var r=_p.r(59),i=_p.r(62);_p.r(68);return _p.r(11).createClass("PatternBrush",{base:r,mixins:[i],constructor:function(t){this.callBase("pattern",t),this.node.setAttribute("patternUnits","userSpaceOnUse")},setX:function(t){return this.x=t,this.node.setAttribute("x",t),this},setY:function(t){return this.y=t,this.node.setAttribute("y",t),this},setWidth:function(t){return this.width=t,this.node.setAttribute("width",t),this},setHeight:function(t){return this.height=t,this.node.setAttribute("height",t),this},getWidth:function(){return this.width},getHeight:function(){return this.height}})}},_p[49]={value:function(t,e,n){var r=_p.r(29);return _p.r(11).createClass("Pen",{constructor:function(t,e){this.brush=t,this.width=e||1,this.linecap=null,this.linejoin=null,this.dashArray=null,this.opacity=1},getBrush:function(){return this.brush},setBrush:function(t){return this.brush=t,this},setColor:function(t){return this.setBrush(t)},getColor:function(){return this.brush instanceof r?this.brush:null},getWidth:function(){return this.width},setWidth:function(t){return this.width=t,this},getOpacity:function(){return this.opacity},setOpacity:function(t){this.opacity=t},getLineCap:function(){return this.linecap},setLineCap:function(t){return this.linecap=t,this},getLineJoin:function(){return this.linejoin},setLineJoin:function(t){return this.linejoin=t,this},getDashArray:function(){return this.dashArray},setDashArray:function(t){return this.dashArray=t,this},stroke:function(t){var e=t.node;e.setAttribute("stroke",this.brush.toString()),e.setAttribute("stroke-width",this.getWidth()),this.getOpacity()<1&&e.setAttribute("stroke-opacity",this.getOpacity()),this.getLineCap()&&e.setAttribute("stroke-linecap",this.getLineCap()),this.getLineJoin()&&e.setAttribute("stroke-linejoin",this.getLineJoin()),this.getDashArray()&&e.setAttribute("stroke-dasharray",this.getDashArray())}})}},_p[50]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(69),constructor:function(t,e,n){this.callBase([0,t],e,n)},getRadius:function(){return this.getSectionArray()[1]},setRadius:function(t){this.setSectionArray([0,t])}})}},_p[51]={value:function(t,e,n){var r=_p.r(11).createClass("Point",{constructor:function(t,e){this.x=t||0,this.y=e||0},offset:function(t,e){return 1==arguments.length&&(e=t.y,t=t.x),new r(this.x+t,this.y+e)},valueOf:function(){return[this.x,this.y]},toString:function(){return this.valueOf().join(" ")},spof:function(){return new r(.5+(0|this.x),.5+(0|this.y))},round:function(){return new r(0|this.x,0|this.y)},isOrigin:function(){return 0===this.x&&0===this.y}});return r.fromPolar=function(t,e,n){return"rad"!=n&&(e=e/180*Math.PI),new r(t*Math.cos(e),t*Math.sin(e))},r.parse=function(t){return t?t instanceof r?t:"string"==typeof t?r.parse(t.split(/\s*[\s,]\s*/)):"0"in t&&"1"in t?new r(t[0],t[1]):void 0:new r},r}},_p[52]={value:function(t,e,n){return _p.r(11).createClass("PointContainer",{base:_p.r(30),constructor:function(){this.callBase()},addPoint:function(t,e){return this.addItem.apply(this,arguments)},prependPoint:function(){return this.prependItem.apply(this,arguments)},appendPoint:function(){return this.appendItem.apply(this,arguments)},removePoint:function(t){return this.removeItem.apply(this,arguments)},addPoints:function(){return this.addItems.apply(this,arguments)},setPoints:function(){return this.setItems.apply(this,arguments)},getPoint:function(){return this.getItem.apply(this,arguments)},getPoints:function(){return this.getItems.apply(this,arguments)},getFirstPoint:function(){return this.getFirstItem.apply(this,arguments)},getLastPoint:function(){return this.getLastItem.apply(this,arguments)}})}},_p[53]={value:function(t,e,n){_p.r(12);return _p.r(11).createClass("Poly",{base:_p.r(47),mixins:[_p.r(52)],constructor:function(t,e){this.callBase(),this.closeable=!!e,this.setPoints(t||[]),this.changeable=!0,this.update()},onContainerChanged:function(){this.changeable&&this.update()},update:function(){var t=this.getDrawer(),e=this.getPoints();if(t.clear(),!e.length)return this;t.moveTo(e[0]);for(var n,r=1,i=e.length;r<i;r++)n=e[r],t.lineTo(n);return this.closeable&&e.length>2&&t.close(),this}})}},_p[54]={value:function(t,e,n){return _p.r(11).createClass("Polygon",{base:_p.r(53),constructor:function(t){this.callBase(t,!0)}})}},_p[55]={value:function(t,e,n){return _p.r(11).createClass("Polyline",{base:_p.r(53),constructor:function(t){this.callBase(t)}})}},_p[56]={value:function(t,e,n){var r=_p.r(36);return _p.r(11).createClass("RadialGradientBrush",{base:r,constructor:function(t){this.callBase("radialGradient",t),this.setCenter(.5,.5),this.setFocal(.5,.5),this.setRadius(.5)},setCenter:function(t,e){return this.node.setAttribute("cx",t),this.node.setAttribute("cy",e),this},getCenter:function(){return{x:+this.node.getAttribute("cx"),y:+this.node.getAttribute("cy")}},setFocal:function(t,e){return this.node.setAttribute("fx",t),this.node.setAttribute("fy",e),this},getFocal:function(){return{x:+this.node.getAttribute("fx"),y:+this.node.getAttribute("fy")}},setRadius:function(t){return this.node.setAttribute("r",t),this},getRadius:function(){return+this.node.getAttribute("r")}})}},_p[57]={value:function(t,e,n){var r={},i=_p.r(12),o=_p.r(51),a=_p.r(26);i.extend(r,{formatRadius:function(t,e,n){var r=Math.floor(Math.min(t/2,e/2));return Math.min(r,n)}});var s=_p.r(11).createClass("Rect",{base:_p.r(47),constructor:function(t,e,n,i,o){this.callBase(),this.x=n||0,this.y=i||0,this.width=t||0,this.height=e||0,this.radius=r.formatRadius(this.width,this.height,o||0),this.update()},update:function(){var t=this.x,e=this.y,n=this.width,r=this.height,i=this.radius,o=this.getDrawer().redraw();return i?(n-=2*i,r-=2*i,o.push("M",t+i,e),o.push("h",n),o.push("a",i,i,0,0,1,i,i),o.push("v",r),o.push("a",i,i,0,0,1,-i,i),o.push("h",-n),o.push("a",i,i,0,0,1,-i,-i),o.push("v",-r),o.push("a",i,i,0,0,1,i,-i),o.push("z")):(o.push("M",t,e),o.push("h",n),o.push("v",r),o.push("h",-n),o.push("z")),o.done(),this},setWidth:function(t){return this.width=t,this.update()},setHeight:function(t){return this.height=t,this.update()},setSize:function(t,e){return this.width=t,this.height=e,this.update()},setBox:function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this.update()},getBox:function(){return new a(this.x,this.y,this.width,this.height)},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=r.formatRadius(this.width,this.height,t||0),this.update()},getPosition:function(){return new o(this.x,this.y)},setPosition:function(t,e){if(1==arguments.length){var n=o.parse(arguments[0]);e=n.y,t=n.x}return this.x=t,this.y=e,this.update()},getWidth:function(){return this.width},getHeight:function(){return this.height},getPositionX:function(){return this.x},getPositionY:function(){return this.y},setPositionX:function(t){return this.x=t,this.update()},setPositionY:function(t){return this.y=t,this.update()}});return s}},_p[58]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("RegularPolygon",{base:_p.r(47),constructor:function(t,e,n,i){this.callBase(),this.radius=e||0,this.side=Math.max(t||3,3),arguments.length>2&&3==arguments.length&&(i=n.y,n=n.x),this.center=new r(n,i),this.draw()},getSide:function(){return this.side},setSide:function(t){return this.side=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},draw:function(){var t,e=this.radius,n=this.side,i=2*Math.PI/n,o=this.getDrawer();for(o.clear(),o.moveTo(r.fromPolar(e,Math.PI/2,"rad").offset(this.center)),t=0;t<=n;t++)o.lineTo(r.fromPolar(e,i*t+Math.PI/2,"rad").offset(this.center));return o.close(),this}})}},_p[59]={value:function(t,e,n){var r=_p.r(68);return _p.r(11).createClass("Resource",{constructor:function(t,e){this.callBase(),this.node=r.createNode(t),e&&e.addResource(this)},toString:function(){return"url(#"+this.node.id+")"}})}},_p[60]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(69),constructor:function(t,e){this.callBase([t,e],360,0)},getInnerRadius:function(){return this.getSectionArray()[0]},getOuterRadius:function(){return this.getSectionArray()[1]},setInnerRadius:function(t){this.setSectionArray([t,this.getOuterRadius()])},setOuterRadius:function(t){this.setSectionArray([this.getInnerRadius(),t])}})}},_p[61]={value:function(t,e,n){var r=_p.r(68),i=_p.r(12),o=_p.r(34),a=_p.r(67),s=_p.r(32),c=_p.r(44),u=(_p.r(49),Array.prototype.slice),l=_p.r(26),h=_p.r(11).createClass("Shape",{mixins:[o,a,s],constructor:function(t){this.node=r.createNode(t),this.node.shape=this,this.transform={translate:null,rotate:null,scale:null,matrix:null},this.callMixin()},getId:function(){return this.node.id},setId:function(t){return this.node.id=t,this},getNode:function(){return this.node},getBoundaryBox:function(){var t;try{t=this.node.getBBox()}catch(e){t={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}return new l(t)},getRenderBox:function(t){var e=this.getBoundaryBox();return this.getTransform(t).transformBox(e)},getWidth:function(){return this.getRenderBox().width},getHeight:function(){return this.getRenderBox().height},getSize:function(){var t=this.getRenderBox();return delete t.x,delete t.y,t},setOpacity:function(t){return this.node.setAttribute("opacity",t),this},getOpacity:function(){var t=this.node.getAttribute("opacity");return t?+t:1},setVisible:function(t){return t?this.node.removeAttribute("display"):this.node.setAttribute("display","none"),this},getVisible:function(){this.node.getAttribute("display")},hasAncestor:function(t){for(var e=this.container;e;){if(e===t)return!0;e=e.container}return!1},getTransform:function(t){return c.getCTM(this,t)},clearTransform:function(){return this.node.removeAttribute("transform"),this.transform={translate:null,rotate:null,scale:null,matrix:null},this.trigger("shapeupdate",{type:"transform"}),this},_applyTransform:function(){var t=this.transform,e=[];return t.translate&&e.push(["translate(",t.translate,")"]),t.rotate&&e.push(["rotate(",t.rotate,")"]),t.scale&&e.push(["scale(",t.scale,")"]),t.matrix&&e.push(["matrix(",t.matrix,")"]),this.node.setAttribute("transform",i.flatten(e).join(" ")),this},setMatrix:function(t){return this.transform.matrix=t,this._applyTransform()},setTranslate:function(t){return this.transform.translate=null!==t&&u.call(arguments)||null,this._applyTransform()},setRotate:function(t){return this.transform.rotate=null!==t&&u.call(arguments)||null,this._applyTransform()},setScale:function(t){return this.transform.scale=null!==t&&u.call(arguments)||null,this._applyTransform()},translate:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=0),this.transform.matrix=n.translate(t,e),this._applyTransform()},rotate:function(t){var e=this.transform.matrix||new c;return this.transform.matrix=e.rotate(t),this._applyTransform()},scale:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.scale(t,e),this._applyTransform()},skew:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.skew(t,e),this._applyTransform()},stroke:function(t,e){return t&&t.stroke?t.stroke(this):t?(this.node.setAttribute("stroke",t.toString()),e&&this.node.setAttribute("stroke-width",e)):null===t&&this.node.removeAttribute("stroe"),this},fill:function(t){return t&&this.node.setAttribute("fill",t.toString()),null===t&&this.node.removeAttribute("fill"),this},setAttr:function(t,e){var n=this;return i.isObject(t)&&i.each(t,(function(t,e){n.setAttr(e,t)})),null==e||""===e?this.node.removeAttribute(t):this.node.setAttribute(t,e),this},getAttr:function(t){return this.node.getAttribute(t)}});return h}},_p[62]={value:function(t,e,n){var r=_p.r(30),i=_p.r(12),o=_p.r(11).createClass("ShapeContainer",{base:r,isShapeContainer:!0,handleAdd:function(t,e){var n=this.getShapeNode();n.insertBefore(t.node,n.childNodes[e]||null),t.trigger("add",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeadd",this)},handleRemove:function(t,e){this.getShapeNode().removeChild(t.node),t.trigger("remove",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeremove",this)},notifyTreeModification:function(t,e){this.eachItem((function(n,r){r.notifyTreeModification&&r.notifyTreeModification(t,e),r.trigger(t,{container:e})}))},getShape:function(t){return this.getItem(t)},addShape:function(t,e){return this.addItem(t,e)},put:function(t){return this.addShape(t),t},appendShape:function(t){return this.addShape(t)},prependShape:function(t){return this.addShape(t,0)},replaceShape:function(t,e){var n=this.indexOf(e);if(-1!==n)return this.removeShape(n),this.addShape(t,n),this},addShapeBefore:function(t,e){var n=this.indexOf(e);return this.addShape(t,n)},addShapeAfter:function(t,e){var n=this.indexOf(e);return this.addShape(t,-1===n?void 0:n+1)},addShapes:function(t){return this.addItems(t)},removeShape:function(t){return this.removeItem(t)},getShapes:function(){return this.getItems()},getShapesByType:function(t){var e=[];return function n(r){t.toLowerCase()==r.getType().toLowerCase()&&e.push(r),r.isShapeContainer&&i.each(r.getShapes(),(function(t){n(t)}))}(this),e},getShapeById:function(t){return this.getShapeNode().getElementById(t).shape},arrangeShape:function(t,e){return this.removeShape(t).addShape(t,e)},getShapeNode:function(){return this.shapeNode||this.node}}),a=_p.r(61);return _p.r(11).extendClass(a,{bringTo:function(t){return this.container.arrangeShape(this,t),this},bringFront:function(){return this.bringTo(this.container.indexOf(this)+1)},bringBack:function(){return this.bringTo(this.container.indexOf(this)-1)},bringTop:function(){return this.container.removeShape(this).addShape(this),this},bringRear:function(){return this.bringTo(0)},bringRefer:function(t,e){return t.container&&(this.remove&&this.remove(),t.container.addShape(this,t.container.indexOf(t)+(e||0))),this},bringAbove:function(t){return this.bringRefer(t)},bringBelow:function(t){return this.bringRefer(t,1)},replaceBy:function(t){return this.container&&(t.bringAbove(this),this.remove()),this}}),o}},_p[63]={value:function(t,e,n){var r=_p.r(44),i=_p.r(12),o=_p.r(51);return _p.r(11).createClass("ShapeEvent",{constructor:function(t){var e=null;i.isObject(t.target)?i.extend(this,t):(this.type=t.type,(e=t.target).correspondingUseElement&&(e=e.correspondingUseElement),this.originEvent=t,this.targetShape=e.shape||e.paper||t.currentTarget&&(t.currentTarget.shape||t.currentTarget.paper),t._kityParam&&i.extend(this,t._kityParam))},preventDefault:function(){var t=this.originEvent;return!t||(t.preventDefault?(t.preventDefault(),t.cancelable):(t.returnValue=!1,!0))},getPosition:function(t,e){if(!this.originEvent)return null;var n=this.originEvent.touches?this.originEvent.touches[e||0]:this.originEvent,i=this.targetShape,a=i.shapeNode||i.node,s=new o(n&&n.clientX||0,n&&n.clientY||0),c=r.transformPoint(s,a.getScreenCTM().inverse());return r.getCTM(i,t||"view").transformPoint(c)},stopPropagation:function(){var t=this.originEvent;if(!t)return!0;t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}})}},_p[64]={value:function(t,e,n){return _p.r(11).createClass("ShapePoint",{base:_p.r(51),constructor:function(t,e){this.callBase(t,e)},setX:function(t){return this.setPoint(t,this.y)},setY:function(t){return this.setPoint(this.x,t)},setPoint:function(t,e){return this.x=t,this.y=e,this.update(),this},getPoint:function(){return this},update:function(){return this.container&&this.container.update&&this.container.update(),this}})}},_p[65]={value:{COLOR_STANDARD:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"},EXTEND_STANDARD:{}}},_p[66]={value:function(t,e,n){var r={3:.2,5:.38196601125,6:.57735026919,8:.541196100146,10:.726542528005,12:.707106781187},i=_p.r(51);return _p.r(11).createClass("Star",{base:_p.r(47),constructor:function(t,e,n,r,o){this.callBase(),this.vertex=t||3,this.radius=e||0,this.shrink=n,this.offset=r||new i(0,0),this.angleOffset=o||0,this.draw()},getVertex:function(){return this.vertex},setVertex:function(t){return this.vertex=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},getShrink:function(){return this.shrink},setShrink:function(t){return this.shrink=t,this.draw()},getOffset:function(){return this.offset},setOffset:function(t){return this.offset=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e,n=this.radius,o=this.radius*(this.shrink||r[this.vertex]||.5),a=this.vertex,s=this.offset,c=180/a,u=this.angleOffset,l=this.getDrawer();for(l.clear(),l.moveTo(i.fromPolar(o,90)),t=1;t<=2*a;t++)e=90+c*t,t%2?l.lineTo(i.fromPolar(n,e+u).offset(s)):l.lineTo(i.fromPolar(o,e));l.close()}})}},_p[67]={value:function(t,e,n){var r=_p.r(11).createClass("ClassList",{constructor:function(t){this._node=t,this._list=t.className.toString().split(" ")},_update:function(){this._node.className=this._list.join(" ")},add:function(t){this._list.push(t),this._update()},remove:function(t){var e=this._list.indexOf(t);~e&&this._list.splice(e,1),this._update()},contains:function(t){return!!~this._list.indexOf(t)}});function i(t){return t.classList||(t.classList=new r(t)),t.classList}return _p.r(11).createClass("Styled",{addClass:function(t){return i(this.node).add(t),this},removeClass:function(t){return i(this.node).remove(t),this},hasClass:function(t){return i(this.node).contains(t)},setStyle:function(t){if(2==arguments.length)return this.node.style[arguments[0]]=arguments[1],this;for(var e in t)t.hasOwnProperty(e)&&(this.node.style[e]=t[e]);return this}})}},_p[68]={value:function(t,e,n){var r=document,i=0,o={createNode:function(t){var e=r.createElementNS(o.ns,t);return e.id="kity_"+t+"_"+i++,e},defaults:{stroke:"none",fill:"none"},xlink:"http://www.w3.org/1999/xlink",ns:"http://www.w3.org/2000/svg"};return o}},_p[69]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("Sweep",{base:_p.r(47),constructor:function(t,e,n){this.callBase(),this.sectionArray=t||[],this.angle=e||0,this.angleOffset=n||0,this.draw()},getSectionArray:function(){return this.sectionArray},setSectionArray:function(t){return this.sectionArray=t,this.draw()},getAngle:function(){return this.angle},setAngle:function(t){return this.angle=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e=this.sectionArray;for(t=0;t<e.length;t+=2)this.drawSection(e[t],e[t+1]);return this},drawSection:function(t,e){var n=this.angle&&(this.angle%360?this.angle%360:360),i=this.angleOffset,o=i+n/2,a=i+n,s=n<0?0:1,c=this.getDrawer();c.redraw(),0!==n?(c.moveTo(r.fromPolar(t,i)),c.lineTo(r.fromPolar(e,i)),e&&(c.carcTo(e,0,s,r.fromPolar(e,o)),c.carcTo(e,0,s,r.fromPolar(e,a))),c.lineTo(r.fromPolar(t,a)),t&&(c.carcTo(t,0,s,r.fromPolar(t,o)),c.carcTo(t,0,s,r.fromPolar(t,i))),c.close(),c.done()):c.done()}})}},_p[70]={value:function(t,e,n){var r=_p.r(71),i=_p.r(62),o=_p.r(68),a=_p.r(12),s={};function c(t){var e=t._cachedFontHash;if(s[e])return s[e];var n=t.getContent();t.setContent("百度Fex");var r=t.getBoundaryBox(),i=t.getY();if(!r.height)return{top:0,bottom:0,middle:0};var o=i-r.y+ +t.node.getAttribute("dy"),a=o-r.height;return t.setContent(n),s[e]={top:o,bottom:a,middle:(o+a)/2}}return _p.r(11).createClass("Text",{base:r,mixins:[i],constructor:function(t){this.callBase("text"),void 0!==t&&this.setContent(t),this._buildFontHash()},fixPosition:function(){this.__fixedPosition||this.setVerticalAlign(this.getVerticalAlign())},_buildFontHash:function(){var t=window.getComputedStyle(this.node);this._cachedFontHash=[t.fontFamily,t.fontSize,t.fontStretch,t.fontStyle,t.fontVariant,t.fontWeight].join("-")},_fontChanged:function(t){var e=this._lastFont,n=a.extend({},e,t);if(!e)return this._lastFont=t,!0;var r=e.family!=n.family||e.size!=n.size||e.style!=n.style||e.weight!=n.weight;return this._lastFont=n,r},setX:function(t){return this.node.setAttribute("x",t),this},setPosition:function(t,e){return this.setX(t).setY(e)},setY:function(t){return this.node.setAttribute("y",t),this},getX:function(){return+this.node.getAttribute("x")||0},getY:function(){return+this.node.getAttribute("y")||0},setFont:function(t){return this.callBase(t),this._fontChanged(t)&&(this._buildFontHash(),this.setVerticalAlign(this.getVerticalAlign())),this},setTextAnchor:function(t){return this.node.setAttribute("text-anchor",t),this},getTextAnchor:function(){return this.node.getAttribute("text-anchor")||"start"},setVerticalAlign:function(t){return this.whenPaperReady((function(){var e;switch(t){case"top":e=c(this).top;break;case"bottom":e=c(this).bottom;break;case"middle":e=c(this).middle;break;default:e=0}e&&(this.__fixedPosition=!0),this.node.setAttribute("dy",e)})),this.verticalAlign=t,this},getVerticalAlign:function(){return this.verticalAlign||"baseline"},setStartOffset:function(t){this.shapeNode!=this.node&&this.shapeNode.setAttribute("startOffset",100*t+"%")},addSpan:function(t){return this.addShape(t),this},setPath:function(t){var e=this.shapeNode;if(this.shapeNode==this.node){for(e=this.shapeNode=o.createNode("textPath");this.node.firstChild;)this.shapeNode.appendChild(this.node.firstChild);this.node.appendChild(e)}return e.setAttributeNS(o.xlink,"xlink:href","#"+t.node.id),this.setTextAnchor(this.getTextAnchor()),this}})}},_p[71]={value:function(t,e,n){var r=_p.r(61);return _p.r(11).createClass("TextContent",{base:r,constructor:function(t){this.callBase(t),this.shapeNode=this.shapeNode||this.node,this.shapeNode.setAttribute("text-rendering","geometricPrecision")},clearContent:function(){for(;this.shapeNode.firstChild;)this.shapeNode.removeChild(this.shapeNode.firstChild);return this},setContent:function(t){return this.shapeNode.textContent=t,this},getContent:function(){return this.shapeNode.textContent},appendContent:function(t){return this.shapeNode.textContent+=t,this},setSize:function(t){return this.setFontSize(t)},setFontSize:function(t){return this.setFont({size:t})},setFontFamily:function(t){return this.setFont({family:t})},setFontBold:function(t){return this.setFont({weight:t?"bold":"normal"})},setFontItalic:function(t){return this.setFont({style:t?"italic":"normal"})},setFont:function(t){var e=this.node;return["family","size","weight","style"].forEach((function(n){null===t[n]?e.removeAttribute("font-"+n):t[n]&&e.setAttribute("font-"+n,t[n])})),this},getExtentOfChar:function(t){return this.node.getExtentOfChar(t)},getRotationOfChar:function(t){return this.node.getRotationOfChar(t)},getCharNumAtPosition:function(t,e){return this.node.getCharNumAtPosition(this.node.viewportElement.createSVGPoint(t,e))}})}},_p[72]={value:function(t,e,n){var r=_p.r(71),i=_p.r(67);return _p.r(11).createClass("TextSpan",{base:r,mixins:[i],constructor:function(t){this.callBase("tspan"),this.setContent(t)}})}},_p[73]={value:function(t,e,n){var r=_p.r(68),i=_p.r(11),o=i.createClass("Use",{base:_p.r(61),constructor:function(t){this.callBase("use"),this.ref(t)},ref:function(t){if(!t)return this.node.removeAttributeNS(r.xlink,"xlink:href"),this;var e=t.getId();return e&&this.node.setAttributeNS(r.xlink,"xlink:href","#"+e),"none"===t.node.getAttribute("fill")&&t.node.removeAttribute("fill"),"none"===t.node.getAttribute("stroke")&&t.node.removeAttribute("stroke"),this}}),a=_p.r(61);return i.extendClass(a,{use:function(){return new o(this)}}),o}},_p[74]={value:function(t,e,n){var r=_p.r(51),i=_p.r(44),o=_p.r(11).createClass("Vector",{base:r,constructor:function(t,e){this.callBase(t,e)},square:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.square())},add:function(t){return new o(this.x+t.x,this.y+t.y)},minus:function(t){return new o(this.x-t.x,this.y-t.y)},dot:function(t){return this.x*t.x+this.y*t.y},project:function(t){return t.multipy(this.dot(t)/t.square())},normalize:function(t){return void 0===t&&(t=1),this.multipy(t/this.length())},multipy:function(t){return new o(this.x*t,this.y*t)},rotate:function(t,e){"rad"==e&&(t=t/Math.PI*180);var n=(new i).rotate(t).transformPoint(this);return new o(n.x,n.y)},vertical:function(){return new o(this.y,-this.x)},reverse:function(){return this.multipy(-1)},getAngle:function(){var t=this.length();if(0===t)return 0;var e=Math.acos(this.x/t);return 180*(this.y>0?1:-1)*e/Math.PI}});return o.fromPoints=function(t,e){return new o(e.x-t.x,e.y-t.y)},o.fromPolar=function(){var t=r.fromPolar.apply(r,arguments);return new o(t.x,t.y)},_p.r(11).extendClass(r,{asVector:function(){return new o(this.x,this.y)}}),o}},_p[75]={value:function(t,e,n){var r=_p.r(62),i=_p.r(76);return _p.r(11).createClass("View",{mixins:[r,i],base:_p.r(75),constructor:function(){this.callBase("view")}})}},_p[76]={value:function(t,e,n){return _p.r(11).createClass("ViewBox",{getViewBox:function(){var t=this.node.getAttribute("viewBox");return null===t?{x:0,y:0,width:this.node.clientWidth||this.node.parentNode.clientWidth,height:this.node.clientHeight||this.node.parentNode.clientHeight}:{x:+(t=t.split(" "))[0],y:+t[1],width:+t[2],height:+t[3]}},setViewBox:function(t,e,n,r){return this.node.setAttribute("viewBox",[t,e,n,r].join(" ")),this}})}},_p[77]={value:function(t,e,n){var r={},i=_p.r(12);r.version="2.0.0",i.extend(r,{createClass:_p.r(11).createClass,extendClass:_p.r(11).extendClass,Utils:i,Browser:_p.r(10),Box:_p.r(26),Bezier:_p.r(24),BezierPoint:_p.r(25),Circle:_p.r(27),Clip:_p.r(28),Color:_p.r(29),Container:_p.r(30),Curve:_p.r(31),Ellipse:_p.r(33),Group:_p.r(37),Gradient:_p.r(36),HyperLink:_p.r(38),Image:_p.r(39),Line:_p.r(40),LinearGradient:_p.r(41),Mask:_p.r(43),Matrix:_p.r(44),Marker:_p.r(42),Palette:_p.r(45),Paper:_p.r(46),Path:_p.r(47),Pattern:_p.r(48),Pen:_p.r(49),Point:_p.r(51),PointContainer:_p.r(52),Polygon:_p.r(54),Polyline:_p.r(55),Pie:_p.r(50),RadialGradient:_p.r(56),Resource:_p.r(59),Rect:_p.r(57),RegularPolygon:_p.r(58),Ring:_p.r(60),Shape:_p.r(61),ShapePoint:_p.r(64),ShapeContainer:_p.r(62),Sweep:_p.r(69),Star:_p.r(66),Text:_p.r(70),TextSpan:_p.r(72),Use:_p.r(73),Vector:_p.r(74),g:_p.r(35),Animator:_p.r(0),Easing:_p.r(1),OpacityAnimator:_p.r(4),RotateAnimator:_p.r(6),ScaleAnimator:_p.r(7),Timeline:_p.r(8),TranslateAnimator:_p.r(9),PathAnimator:_p.r(5),MotionAnimator:_p.r(3),requestFrame:_p.r(2).requestFrame,releaseFrame:_p.r(2).releaseFrame,Filter:_p.r(21),GaussianblurFilter:_p.r(22),ProjectionFilter:_p.r(23),ColorMatrixEffect:_p.r(14),CompositeEffect:_p.r(15),ConvolveMatrixEffect:_p.r(16),Effect:_p.r(17),GaussianblurEffect:_p.r(18),OffsetEffect:_p.r(19)}),n.exports=r}};var moduleMapping={"expose-kity":13};function use(t){_p.r([moduleMapping[t]])}use("expose-kity")})()},29157:(t,e,n)=>{var r=n(34155);function i(t){return i="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},i(t)}!function(){var t={r:function(e){if(t[e].inited)return t[e].value;if("function"!=typeof t[e].value)return t[e].inited=!0,t[e].value;var n={exports:{}},r=t[e].value(null,n.exports,n);if(t[e].inited=!0,t[e].value=r,void 0!==r)return r;for(var i in n.exports)if(n.exports.hasOwnProperty(i))return t[e].inited=!0,t[e].value=n.exports,n.exports}};t[0]={value:function(e,n,r){var i=t.r(17),o=t.r(11),a=(new i.Marker).pipe((function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")}));o.register("arc",(function(t,e,n,r,o){var s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=Math.abs,d=[],p=l.x>h.x?"right":"left";t.getMinder().getPaper().addResource(a),s=new i.Point(h.cx,h.cy),c="left"==p?new i.Point(l.right+2,l.cy):new i.Point(l.left-2,l.cy),u=i.Vector.fromPoints(s,c),d.push("M",s),d.push("A",f(u.x),f(u.y),0,0,u.x*u.y>0?0:1,c),n.setMarker(a),a.dot.fill(o),n.setPathData(d)}))}},t[1]={value:function(e,n,r){var i=t.r(17),o=t.r(11),a=(new i.Marker).pipe((function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")}));o.register("arc_tp",(function(t,e,n,r,o){var s=t.getLayoutBox(),c=e.getLayoutBox(),u=t.getIndex(),l=e.getChildren()[u+1];t.getIndex()>0&&(c=e.getChildren()[u-1].getLayoutBox());var h,f,d=(Math.abs,[]);s.x,c.x,t.getMinder().getPaper().addResource(a),h=new i.Point(c.cx,c.cy),f=new i.Point(s.cx,s.cy);var p=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2));if(p=0==t.getIndex()?.4*p:p,i.Vector.fromPoints(h,f),d.push("M",h),d.push("A",p,p,0,0,1,f),n.setMarker(a),a.dot.fill(o),n.setPathData(d),l&&l.getConnection()){var g=l.getConnection(),m=l.getLayoutBox(),v=new i.Point(m.cx,m.cy),b=Math.sqrt(Math.pow(f.x-v.x,2)+Math.pow(f.y-v.y,2));(d=[]).push("M",f),d.push("A",b,b,0,0,1,v),g.setMarker(a),a.dot.fill(o),g.setPathData(d)}}))}},t[2]={value:function(e,n,r){t.r(17),t.r(11).register("bezier",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut().normalize(),a=Math.round,s=Math.abs,c=[];if(c.push("M",a(r.x),a(r.y)),s(o.x)>s(o.y)){var u=(i.x+r.x)/2;c.push("C",u,r.y,u,i.y,i.x,i.y)}else{var l=(i.y+r.y)/2;c.push("C",r.x,l,i.x,l,i.x,i.y)}n.setMarker(null),n.setPathData(c)}))}},t[3]={value:function(e,n,r){t.r(17),t.r(11).register("fish-bone-master",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=Math.abs,a=o(r.y-i.y),s=o(r.x-i.x),c=[];c.push("M",r.x,r.y),c.push("h",s-a),c.push("L",i.x,i.y),n.setMarker(null),n.setPathData(c)}))}},t[4]={value:function(e,n,r){t.r(17),t.r(11).register("l",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut(),a=[],s=Math.round,c=Math.abs;a.push("M",r.round()),c(o.x)>c(o.y)?a.push("H",s(i.x)):a.push("V",i.y),a.push("L",i),n.setPathData(a)}))}},t[5]={value:function(e,n,r){t.r(17),t.r(11).register("poly",(function(t,e,n,r){var i=e.getLayoutVertexOut(),o=t.getLayoutVertexIn(),a=e.getLayoutVectorOut().normalize(),s=Math.round,c=Math.abs,u=[];switch(u.push("M",s(i.x),s(i.y)),!0){case c(a.x)>c(a.y)&&a.x<0:u.push("h",-e.getStyle("margin-left")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)>c(a.y)&&a.x>=0:u.push("h",e.getStyle("margin-right")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)<=c(a.y)&&a.y<0:u.push("v",-e.getStyle("margin-top")),u.push("h",o.x-i.x),u.push("V",o.y);break;case c(a.x)<=c(a.y)&&a.y>=0:u.push("v",e.getStyle("margin-bottom")),u.push("h",o.x-i.x),u.push("V",o.y)}n.setMarker(null),n.setPathData(u)}))}},t[6]={value:function(e,n,r){var i=t.r(17);t.r(11).register("under",(function(t,e,n,r,o){var a,s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=(Math.abs,[]),d=l.x>h.x?"right":"left",p=(t.getStyle("connect-radius"),l.bottom+3),g="sub"==e.getType()?h.bottom+3:h.cy;"right"==d?(a=new i.Point(h.right,g),s=new i.Point(l.left-10,p),c=new i.Point(l.right,p)):(a=new i.Point(h.left,g),s=new i.Point(l.right+10,p),c=new i.Point(l.left,p)),u=(a.x+s.x)/2,f.push("M",a),f.push("C",u,a.y,u,s.y,s),f.push("L",c),n.setMarker(null),n.setPathData(f)}))}},t[7]={value:function(e,n,r){var i,o=t.r(17),a=t.r(19);-1!=location.href.indexOf("boxv")&&(Object.defineProperty(o.Box.prototype,"visualization",{get:function(){return i?i.setBox(this):null}}),a.registerInitHook((function(){this.on("paperrender",(function(){(i=new o.Rect).fill("rgba(200, 200, 200, .5)"),i.stroke("orange"),this.getRenderContainer().addShape(i)}))})))}},t[8]={value:function(e,n,r){var i=t.r(19),o={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},a={};i.registerInitHook((function(){this.setDefaultOptions(o),this.getOption("enableAnimation")||this.disableAnimation()})),i.prototype.enableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&this.setOption(a[t])},i.prototype.disableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&(a[t]=this.getOption(t),this.setOption(t,0))}}},t[9]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(13)),s=i.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(t,e){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(t){this._isContentChange=!!t},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(t){this._isSelectionChange=!!t},isSelectionChanged:function(){return this._isContentChange},queryState:function(t){return 0},queryValue:function(t){return 0},isNeedUndo:function(){return!0}});s.STATE_NORMAL=0,s.STATE_ACTIVE=1,s.STATE_DISABLED=-1,i.extendClass(o,{_getCommand:function(t){return this._commands[t.toLowerCase()]},_queryCommand:function(t,e,n){var r=this._getCommand(t);if(r){var i=r["query"+e];if(i)return i.apply(r,[this].concat(n))}return 0},queryCommandState:function(t){return this._queryCommand(t,"State",[].slice.call(arguments,1))},queryCommandValue:function(t){return this._queryCommand(t,"Value",[].slice.call(arguments,1))},execCommand:function(t){if(!t)return null;t=t.toLowerCase();var e,n,r,i=[].slice.call(arguments,1),o=this;return r={command:e=this._getCommand(t),commandName:t.toLowerCase(),commandArgs:i},!(!e||!~this.queryCommandState(t))&&(this._hasEnterExecCommand?(n=e.execute.apply(e,[o].concat(i)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,this._fire(new a("beforeExecCommand",r,!0))||(this._fire(new a("preExecCommand",r,!1)),n=e.execute.apply(e,[o].concat(i)),this._fire(new a("execCommand",r,!1)),e.isContentChanged()&&this._firePharse(new a("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===n?null:n)}}),r.exports=s}},t[10]={value:function(e,n,r){function i(t,e){e(t),t.children&&t.children.forEach((function(t){i(t,e)}))}return t.r(33),function(t){switch(t.version||(t.root?"1.4.0":"1.1.3")){case"1.1.3":!function(t){var e=t.data.currentstyle;delete t.data.currentstyle,"bottom"==e?(t.template="structure",t.theme="snow"):"default"==e&&(t.template="default",t.theme="classic"),i(t,(function(t){var e=t.data;"PriorityIcon"in e&&(e.priority=e.PriorityIcon,delete e.PriorityIcon),"ProgressIcon"in e&&(e.progress=1+(e.ProgressIcon-1<<1),delete e.ProgressIcon),delete e.point,delete e.layout}))}(t);case"1.2.0":case"1.2.1":!function(t){i(t,(function(t){var e=t.data;delete e.layout_bottom_offset,delete e.layout_default_offset,delete e.layout_filetree_offset}))}(t);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":!function(t){t.root={data:t.data,children:t.children},delete t.data,delete t.children}(t)}return t}}},t[11]={value:function(e,n,r){function i(t,e){l[t]=e}var o=t.r(17),a=t.r(33),s=t.r(20),c=t.r(19),u=t.r(21),l={};i("default",(function(t,e,n){n.setPathData(["M",e.getLayoutVertexOut(),"L",t.getLayoutVertexIn()])})),o.extendClass(u,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return l[this.getConnect()]||l.default},getConnection:function(){return this._connection||null}}),o.extendClass(c,{getConnectContainer:function(){return this._connectContainer},createConnect:function(t){if(!t.isRoot()){var e=new o.Path;t._connection=e,this._connectContainer.addShape(e),this.updateConnect(t)}},removeConnect:function(t){var e=this;t.traverse((function(t){e._connectContainer.removeShape(t._connection),t._connection=null}))},updateConnect:function(t){var e=t._connection,n=t.parent;if(n&&e){if(n.isCollapsed())return void e.setVisible(!1);e.setVisible(!0);var r=t.getConnectProvider(),i=t.getStyle("connect-color")||"white",o=t.getStyle("connect-width")||2;e.stroke(i,o),r(t,n,e,o,i),o%2==0?e.setTranslate(.5,.5):e.setTranslate(0,0)}}}),s.register("Connect",{init:function(){this._connectContainer=(new o.Group).setId(a.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(t){this.createConnect(t.node)},nodedetach:function(t){this.removeConnect(t.node)},"layoutapply layoutfinish noderender":function(t){this.updateConnect(t.node)}}}),n.register=i}},t[12]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(13)),s=t.r(10),c=t.r(25),u={};n.registerProtocol=function(t,e){for(var n in u[t]=e,u)u.hasOwnProperty(n)&&(u[n]=u[n],u[n].name=n)},n.getRegisterProtocol=function(t){return void 0===t?u:u[t]||null},i.extendClass(o,{setup:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){var e=t.getAttribute("minder-data-type");if(e in u){var n=t.textContent;t.textContent=null,this.renderTo(t),this.importData(e,n)}return this}},exportJson:function(){var t={root:function t(e){var n={};n.data=e.getData();var r=e.getChildren();n.children=[];for(var i=0;i<r.length;i++)n.children.push(t(r[i]));return n}(this.getRoot())};return t.template=this.getTemplate(),t.theme=this.getTheme(),t.version=o.version,JSON.parse(JSON.stringify(t))},Text2Children:function(t,e){function n(t){return""===t&&!/\S/.test(t)}function r(t){return{data:{text:t.replace(/^(\t|\x20{4})+/,"").replace(/(\t|\x20{4})+$/,"")},children:[]}}function i(t){for(var e=0;l.test(t);)t=t.replace(l,""),e++;return e}function o(t,e){t.children.push(e)}if(t instanceof kityminder.Node){for(var a,s=[],c={},u=0,l=/^(\t|\x20{4})/,h=e.split(/\r|\n|\r\n/),f="",d=0,p=this;void 0!==(f=h[d++]);)if(!n(f=f.replace(/ /g,"")))if(u=i(f),a=r(f),0===u)c={},s.push(a),c[0]=s[s.length-1];else{if(!c[u-1])throw new Error("Invalid local format");o(c[u-1],a),c[u]=a}(function t(e,n){for(var r=0,i=n.length;r<i;r++){var o=p.createNode(null,e);o.setData("text",n[r].data.text||""),t(o,n[r].children)}})(t,s),p.refresh()}},exportNode:function(t){var e={};e.data=t.getData();var n=t.getChildren();e.children=[];for(var r=0;r<n.length;r++)e.children.push(this.exportNode(n[r]));return e},importNode:function(t,e){var n=e.data;for(var r in t.data={},n)t.setData(r,n[r]);for(var i=e.children||[],o=0;o<i.length;o++){var a=this.createNode(null,t);this.importNode(a,i[o])}return t},importJson:function(t){if(t){for(this._fire(new a("preimport",null,!1));this._root.getChildren().length;)this.removeNode(this._root.getChildren()[0]);return t=s(t),this.importNode(this._root,t.root),this.setTemplate(t.template||"default"),this.setTheme(t.theme||null),this.refresh(),this.fire("import"),this._firePharse({type:"contentchange"}),this._interactChange(),this}},exportData:function(t,e){var n,r;return n=this.exportJson(),!t||(r=u[t])&&r.encode?(this._fire(new a("beforeexport",{json:n,protocolName:t,protocol:r})),c.resolve(r.encode(n,this,e))):c.reject(new Error("Not supported protocol:"+t))},importData:function(t,e,n){var r,i=this;if(t&&(!(r=u[t])||!r.decode))return c.reject(new Error("Not supported protocol:"+t));var o={local:e,protocolName:t,protocol:r};return this._fire(new a("beforeimport",o)),c.resolve(r.decode(e,this,n)).then((function(t){return i.importJson(t),t}))},decodeData:function(t,e,n){var r;if(t&&(!(r=u[t])||!r.decode))return c.reject(new Error("Not supported protocol:"+t));var i={local:e,protocolName:t,protocol:r};return this._fire(new a("beforeimport",i)),c.resolve(r.decode(e,this,n))}})}},t[13]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=i.createClass("MindEvent",{constructor:function(t,e,n){(e=e||{}).getType&&"ShapeEvent"==e.getType()?(this.kityEvent=e,this.originEvent=e.originEvent):e.target&&e.preventDefault?this.originEvent=e:i.Utils.extend(this,e),this.type=t,this._canstop=n||!1},getPosition:function(t){if(this.kityEvent)return t&&"minder"!=t?this.kityEvent.getPosition.call(this.kityEvent,t):this.kityEvent.getPosition(this.minder.getRenderContainer())},getTargetNode:function(){var t=this.kityEvent&&this.kityEvent.targetShape;if(!t)return null;for(;!t.minderNode&&t.container;)t=t.container;var e=t.minderNode;return e&&t.getOpacity()<1?null:e||null},stopPropagation:function(){this._stoped=!0},stopPropagationImmediately:function(){this._immediatelyStoped=!0,this._stoped=!0},shouldStopPropagation:function(){return this._canstop&&this._stoped},shouldStopPropagationImmediately:function(){return this._canstop&&this._immediatelyStoped},preventDefault:function(){this.originEvent.preventDefault()},isRightMB:function(){var t=!1;return!!this.originEvent&&("which"in this.originEvent?t=3==this.originEvent.which:"button"in this.originEvent&&(t=2==this.originEvent.button),t)},getKeyCode:function(){var t=this.originEvent;return t.keyCode||t.which}});o.registerInitHook((function(t){this._initEvents()})),i.extendClass(o,{_initEvents:function(){this._eventCallbacks={}},_resetEvents:function(){this._initEvents(),this._bindEvents()},_bindEvents:function(){this._paper.on("click dblclick mousedown contextmenu mouseup mousemove mouseover mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop",this._firePharse.bind(this)),window&&window.addEventListener("resize",this._firePharse.bind(this))},dispatchKeyEvent:function(t){this._firePharse(t)},_firePharse:function(t){var e,n,r;"DOMMouseScroll"==t.type&&(t.type="mousewheel",t.wheelDelta=t.originEvent.wheelDelta=-10*t.originEvent.detail,t.wheelDeltaX=t.originEvent.mozMovementX,t.wheelDeltaY=t.originEvent.mozMovementY),e=new a("before"+t.type,t,!0),this._fire(e)||(n=new a("pre"+t.type,t,!0),r=new a(t.type,t,!0),(this._fire(n)||this._fire(r))&&this._fire(new a("after"+t.type,t,!1)))},_interactChange:function(t){var e=this;e._interactScheduled||(setTimeout((function(){e._fire(new a("interactchange")),e._interactScheduled=!1}),100),e._interactScheduled=!0)},_listen:function(t,e){(this._eventCallbacks[t]||(this._eventCallbacks[t]=[])).push(e)},_fire:function(t){t.minder=this;var e=this.getStatus(),n=this._eventCallbacks[t.type.toLowerCase()]||[];if(e&&(n=n.concat(this._eventCallbacks[e+"."+t.type.toLowerCase()]||[])),0!==n.length){for(var r=(this.getStatus(),0);r<n.length&&(n[r].call(this,t),!t.shouldStopPropagationImmediately());r++);return t.shouldStopPropagation()}},on:function(t,e){var n=this;return t.split(/\s+/).forEach((function(t){n._listen(t.toLowerCase(),e)})),this},off:function(t,e){var n,r,i,o,a=t.split(/\s+/);for(n=0;n<a.length;n++)if(i=this._eventCallbacks[a[n].toLowerCase()]){for(o=null,r=0;r<i.length;r++)i[r]==e&&(o=r);null!==o&&i.splice(o,1)}},fire:function(t,e){var n=new a(t,e);return this._fire(n),this}}),r.exports=a}},t[14]={value:function(e,n,r){var i=t.r(17),o=t.r(19);o.registerInitHook((function(){this.on("beforemousedown",(function(t){this.focus(),t.preventDefault()})),this.on("paperrender",(function(){this.focus()}))})),i.extendClass(o,{focus:function(){return this.isFocused()||(this._renderTarget.classList.add("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("focus"),this},blur:function(){return this.isFocused()&&(this._renderTarget.classList.remove("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("blur"),this},isFocused:function(){var t=this._renderTarget;return t&&t.classList.contains("focus")}})}},t[15]={value:function(t,e,n){var r={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,direction:{37:1,38:1,39:1,40:1},Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190,controlKeys:{16:1,17:1,18:1,20:1,91:1,224:1},notContentChange:{13:1,9:1,33:1,34:1,35:1,36:1,16:1,17:1,18:1,20:1,91:1,37:1,38:1,39:1,40:1,113:1,114:1,115:1,144:1,27:1},isSelectedNodeKey:{37:1,38:1,39:1,40:1,13:1,9:1}};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(t){r[t]=t.charCodeAt(0)-o+65}));var a=9;do{r[a.toString()]=a+48}while(--a);n.exports=r}},t[16]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19));o.registerInitHook((function(t){this.setDefaultOptions({enableKeyReceiver:!0}),this.getOption("enableKeyReceiver")&&this.on("paperrender",(function(){this._initKeyReceiver()}))})),i.extendClass(o,{_initKeyReceiver:function(){if(!this._keyReceiver){var t=this._keyReceiver=document.createElement("input");t.classList.add("km-receiver"),this._renderTarget.appendChild(t);var e=this;(function(t,e,n){e.split(" ").forEach((function(e){t.addEventListener(e,n,!1)}))})(t,"keydown keyup keypress copy paste blur focus input",(function(n){switch(n.type){case"blur":e.blur();break;case"focus":e.focus();break;case"input":t.value=null}e._firePharse(n),n.preventDefault()})),this.on("focus",(function(){t.select(),t.focus()})),this.on("blur",(function(){t.blur()})),this.isFocused()&&(t.select(),t.focus())}}})}},t[17]={value:function(t,e,n){n.exports=window.kity}},t[18]={value:function(e,n,r){var i,o=t.r(17),a=t.r(33),s=t.r(19),c=t.r(21),u=(t.r(13),t.r(9),{}),l=o.createClass("Layout",{doLayout:function(t,e){throw new Error("Not Implement: Layout.doLayout()")},align:function(t,e,n){var r=this;n=n||0,t.forEach((function(t){var i=r.getTreeBox([t]),o=t.getLayoutTransform();switch(e){case"left":return o.translate(n-i.left,0);case"right":return o.translate(n-i.right,0);case"top":return o.translate(0,n-i.top);case"bottom":return o.translate(0,n-i.bottom)}}))},stack:function(t,e,n){var r=this,i=0;return n=n||function(t,e,n){return t.getStyle({x:"margin-right",y:"margin-bottom"}[n])+e.getStyle({x:"margin-left",y:"margin-top"}[n])},t.forEach((function(t,o,a){var s=r.getTreeBox([t]),c={x:s.width,y:s.height}[e],u={x:s.left,y:s.top}[e],l=t.getLayoutTransform();"x"==e?l.translate(i-u,0):l.translate(0,i-u),i+=c,a[o+1]&&(i+=n(t,a[o+1],e))})),i},move:function(t,e,n){t.forEach((function(t){t.getLayoutTransform().translate(e,n)}))},getBranchBox:function(t){var e,n,r,i,a=new o.Box;for(e=0;e<t.length;e++)r=(n=t[e]).getLayoutTransform(),i=n.getContentBox(),a=a.merge(r.transformBox(i));return a},getTreeBox:function(t){var e,n,r,i,a=new o.Box;for(t instanceof Array||(t=[t]),e=0;e<t.length;e++)r=(n=t[e]).getLayoutTransform(),i=n.getContentBox(),n.isExpanded()&&n.children.length&&(i=i.merge(this.getTreeBox(n.children))),a=a.merge(r.transformBox(i));return a},getOrderHint:function(t){return[]}});l.register=function(t,e){u[t]=e,i=i||t},s.registerInitHook((function(t){this.refresh()})),a.extend(s,{getLayoutList:function(){return u},getLayoutInstance:function(t){var e=u[t];if(!e)throw new Error("Missing Layout: "+t);return new e}}),o.extendClass(c,{getLayout:function(){var t=this.getData("layout");return t||(this.isRoot()?i:this.parent.getLayout())},setLayout:function(t){return t&&("inherit"==t?this.setData("layout"):this.setData("layout",t)),this},layout:function(t){return this.setLayout(t).getMinder().layout(),this},getLayoutInstance:function(){return s.getLayoutInstance(this.getLayout())},getOrderHint:function(t){return this.parent.getLayoutInstance().getOrderHint(this)},getLayoutTransform:function(){return this._layoutTransform||new o.Matrix},getGlobalLayoutTransformPreview:function(){var t=this.parent?this.parent.getLayoutTransform():new o.Matrix,e=this.getLayoutTransform(),n=this.getLayoutOffset();return n&&(e=e.clone().translate(n.x,n.y)),t.merge(e)},getLayoutPointPreview:function(){return this.getGlobalLayoutTransformPreview().transformPoint(new o.Point)},getGlobalLayoutTransform:function(){return this._globalLayoutTransform?this._globalLayoutTransform:this.parent?this.parent.getGlobalLayoutTransform():new o.Matrix},setLayoutTransform:function(t){return this._layoutTransform=t,this},setGlobalLayoutTransform:function(t){return this.getRenderContainer().setMatrix(this._globalLayoutTransform=t),this},setVertexIn:function(t){this._vertexIn=t},setVertexOut:function(t){this._vertexOut=t},getVertexIn:function(){return this._vertexIn||new o.Point},getVertexOut:function(){return this._vertexOut||new o.Point},getLayoutVertexIn:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexIn())},getLayoutVertexOut:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexOut())},setLayoutVectorIn:function(t){return this._layoutVectorIn=t,this},setLayoutVectorOut:function(t){return this._layoutVectorOut=t,this},getLayoutVectorIn:function(){return this._layoutVectorIn||new o.Vector},getLayoutVectorOut:function(){return this._layoutVectorOut||new o.Vector},getLayoutBox:function(){return this.getGlobalLayoutTransform().transformBox(this.getContentBox())},getLayoutPoint:function(){return this.getGlobalLayoutTransform().transformPoint(new o.Point)},getLayoutOffset:function(){if(!this.parent)return new o.Point;var t=this.getData("layout_"+this.parent.getLayout()+"_offset");return t?new o.Point(t.x,t.y):new o.Point},setLayoutOffset:function(t){return this.parent?(this.setData("layout_"+this.parent.getLayout()+"_offset",t?{x:t.x,y:t.y}:void 0),this):this},hasLayoutOffset:function(){return!!this.getData("layout_"+this.parent.getLayout()+"_offset")},resetLayoutOffset:function(){return this.setLayoutOffset(null)},getLayoutRoot:function(){return this.isLayoutRoot()?this:this.parent.getLayoutRoot()},isLayoutRoot:function(){return this.getData("layout")||this.isRoot()}}),o.extendClass(s,{layout:function(){function t(e,n){e.isExpanded(),e.children.forEach((function(e){t(e,n)})),e.getLayoutInstance().doLayout(e,e.getChildren(),n)}var e=this.getOption("layoutAnimationDuration");this.getRoot().traverse((function(t){t.setLayoutTransform(null)})),t(this.getRoot(),1),t(this.getRoot(),2);var n=this;return this.applyLayoutResult(this.getRoot(),e,(function(){setTimeout((function(){n.fire("layoutallfinish")}),0)})),this.fire("layout")},refresh:function(){return this.getRoot().renderTree(),this.layout().fire("contentchange")._interactChange(),this},applyLayoutResult:function(t,e,n){function r(){--s||n&&n()}function i(t,e){t.setGlobalLayoutTransform(e),a.fire("layoutapply",{node:t,matrix:e})}t=t||this.getRoot();var a=this,s=t.getComplex();return s>200&&(e=0),function t(n,s){var c=n.getLayoutTransform().merge(s.clone()),u=n.getGlobalLayoutTransform()||new o.Matrix,l=n.getLayoutOffset();c.translate(l.x,l.y),c.m.e=Math.round(c.m.e),c.m.f=Math.round(c.m.f),n._layoutTimeline&&(n._layoutTimeline.stop(),n._layoutTimeline=null),e?n._layoutTimeline=new o.Animator(u,c,i).start(n,e,"ease").on("finish",(function(){setTimeout((function(){i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r()}),150)})):(i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r());for(var h=0;h<n.children.length;h++)t(n.children[h],c)}(t,t.parent?t.parent.getGlobalLayoutTransform():new o.Matrix),this}}),r.exports=l}},t[19]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=[],s=i.createClass("Minder",{constructor:function(t){this._options=o.extend({},t);for(var e,n=a.slice();n.length;)"function"==typeof(e=n.shift())&&e.call(this,this._options);this.fire("finishInitHook")}});s.version="1.4.43",s.registerInitHook=function(t){a.push(t)},r.exports=s}},t[20]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s={};n.register=function(t,e){s[t]=e},a.registerInitHook((function(){this._initModules()})),i.extendClass(a,{_initModules:function(){var t=s,e=this._options.modules||o.keys(t);this._commands={},this._query={},this._modules={},this._rendererClasses={};var n,r,i,a,c,u,l,h=this;for(n=0;n<e.length;n++)if(t[r=e[n]]&&(a="function"==typeof t[r]?t[r].call(h):t[r],this._modules[r]=a,a)){for(r in a.defaultOptions&&h.setDefaultOptions(a.defaultOptions),a.init&&a.init.call(h,this._options),c=a.commands)this._commands[r.toLowerCase()]=new c[r];if(u=a.events)for(i in u)h.on(i,u[i]);if(l=a.renderers)for(i in l)this._rendererClasses[i]=this._rendererClasses[i]||[],o.isArray(l[i])?this._rendererClasses[i]=this._rendererClasses[i].concat(l[i]):this._rendererClasses[i].push(l[i]);a.commandShortcutKeys&&this.addCommandShortcutKeys(a.commandShortcutKeys)}},_garbage:function(){for(this.clearSelect();this._root.getChildren().length;)this._root.removeChild(0)},destroy:function(){var t=this._modules;for(var e in this._resetEvents(),this._garbage(),t)t[e].destroy&&t[e].destroy.call(this)},reset:function(){var t=this._modules;for(var e in this._garbage(),t)t[e].reset&&t[e].reset.call(this)}})}},t[21]={value:function(e,n,r){var o=t.r(17),a=t.r(33),s=t.r(19),c=o.createClass("MinderNode",{constructor:function(t){this.parent=null,this.root=this,this.children=[],this.data={id:a.guid(),created:+new Date},this.initContainers(),a.isString(t)?this.setText(t):a.isObject(t)&&a.extend(this.data,t)},initContainers:function(){this.rc=(new o.Group).setId(a.uuid("minder_node")),this.rc.minderNode=this},isRoot:function(){return this.root===this},isLeaf:function(){return 0===this.children.length},getRoot:function(){return this.root||this},getParent:function(){return this.parent},getSiblings:function(){var t=this.parent.children,e=[],n=this;return t.forEach((function(t){t!=n&&e.push(t)})),e},getLevel:function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},getComplex:function(){var t=0;return this.traverse((function(){t++})),t},getType:function(t){return this.type=["root","main","sub"][Math.min(this.getLevel(),2)],this.type},isAncestorOf:function(t){for(var e=t.parent;e;){if(e==this)return!0;e=e.parent}return!1},getData:function(t){return t?this.data[t]:this.data},setData:function(t,e){if("object"==i(t)){var n=t;for(t in n)n.hasOwnProperty(t)&&(this.data[t]=n[t])}else this.data[t]=e;return this},setText:function(t){return this.data.text=t},getText:function(){return this.data.text||null},preTraverse:function(t,e){var n=this.getChildren();e||t(this);for(var r=0;r<n.length;r++)n[r].preTraverse(t)},postTraverse:function(t,e){for(var n=this.getChildren(),r=0;r<n.length;r++)n[r].postTraverse(t);e||t(this)},traverse:function(t,e){return this.postTraverse(t,e)},getChildren:function(){return this.children},getIndex:function(){return this.parent?this.parent.children.indexOf(this):-1},insertChild:function(t,e){void 0===e&&(e=this.children.length),t.parent&&t.parent.removeChild(t),t.parent=this,t.root=this.root,this.children.splice(e,0,t)},appendChild:function(t){return this.insertChild(t)},prependChild:function(t){return this.insertChild(t,0)},removeChild:function(t){var e,n=t;t instanceof c&&(n=this.children.indexOf(t)),n>=0&&((e=this.children.splice(n,1)[0]).parent=null,e.root=e)},clearChildren:function(){this.children=[]},getChild:function(t){return this.children[t]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(t){return c.getCommonAncestor(this,t)},contains:function(t){return this==t||this.isAncestorOf(t)},clone:function(){var t=new c;return t.data=a.clone(this.data),this.children.forEach((function(e){t.appendChild(e.clone())})),t},compareTo:function(t){if(!a.comparePlainObject(this.data,t.data))return!1;if(!a.comparePlainObject(this.temp,t.temp))return!1;if(this.children.length!=t.children.length)return!1;for(var e=0;this.children[e];){if(!this.children[e].compareTo(t.children[e]))return!1;e++}return!0},getMinder:function(){return this.getRoot().minder}});c.getCommonAncestor=function(t,e){if(t instanceof Array)return c.getCommonAncestor.apply(this,t);switch(arguments.length){case 1:return t.parent||t;case 2:if(t.isAncestorOf(e))return t;if(e.isAncestorOf(t))return e;for(var n=t.parent;n&&!n.isAncestorOf(e);)n=n.parent;return n;default:return Array.prototype.reduce.call(arguments,(function(t,e){return c.getCommonAncestor(t,e)}),t)}},o.extendClass(s,{getRoot:function(){return this._root},setRoot:function(t){this._root=t,t.minder=this},getAllNode:function(){var t=[];return this.getRoot().traverse((function(e){t.push(e)})),t},getNodeById:function(t){return this.getNodesById([t])[0]},getNodesById:function(t){var e=this.getAllNode(),n=[];return e.forEach((function(e){-1!=t.indexOf(e.getData("id"))&&n.push(e)})),n},createNode:function(t,e,n){var r=new c(t);return this.fire("nodecreate",{node:r,parent:e,index:n}),this.appendNode(r,e,n),r},appendNode:function(t,e,n){return e&&e.insertChild(t,n),this.attachNode(t),this},removeNode:function(t){t.parent&&(t.parent.removeChild(t),this.detachNode(t),this.fire("noderemove",{node:t}))},attachNode:function(t){var e=this.getRenderContainer();t.traverse((function(t){t.attached=!0,e.addShape(t.getRenderContainer())})),e.addShape(t.getRenderContainer()),this.fire("nodeattach",{node:t})},detachNode:function(t){var e=this.getRenderContainer();t.traverse((function(t){t.attached=!1,e.removeShape(t.getRenderContainer())})),this.fire("nodedetach",{node:t})},getMinderTitle:function(){return this.getRoot().getText()}}),r.exports=c}},t[22]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19);a.registerInitHook((function(t){this._defaultOptions={}})),i.extendClass(a,{setDefaultOptions:function(t){return o.extend(this._defaultOptions,t),this},getOption:function(t){return t?t in this._options?this._options[t]:this._defaultOptions[t]:o.extend({},this._defaultOptions,this._options)},setOption:function(t,e){this._options[t]=e}})}},t[23]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19);a.registerInitHook((function(){this._initPaper()})),i.extendClass(a,{_initPaper:function(){this._paper=new i.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(t){t.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new i.Group).setId(o.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){if("script"==t.tagName.toLowerCase()){var e=document.createElement("div");e.id=t.id,e.class=t.class,t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t),t=e}t.classList.add("km-view"),this._paper.renderTo(this._renderTarget=t),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},t[24]={value:function(e,n,r){function i(t,e,n,r){return n=t.createNode(e.data,n,r),e.children.forEach((function(e,r){i(t,e,n,r)})),n}function o(t,e){var n=e.path.split("/");n.shift();var r,o=n.shift();if("root"==o){var a,s,c=n.indexOf("data");if(c>-1){o="data";var u=n.splice(c+1);e.dataPath=u}else o="node";for(r=t.getRoot();a=n.shift();)"children"!=a&&(void 0!==s&&(r=r.getChild(s)),s=+a);e.index=s,e.node=r}switch(e.express=[o,e.op].join(".")){case"theme.replace":t.useTheme(e.value);break;case"template.replace":t.useTemplate(e.value);break;case"node.add":i(t,e.value,e.node,e.index).renderTree(),t.layout();break;case"node.remove":t.removeNode(e.node.getChild(e.index)),t.layout();break;case"data.add":case"data.replace":case"data.remove":var l,h=e.node.data;for(n=e.dataPath.slice();h&&n.length>1;)(l=n.shift())in h?h=h[l]:"remove"!=e.op&&(h=h[l]={});h&&(h[l=n.shift()]=e.value),"expandState"==l?r.renderTree():r.render(),t.layout()}t.fire("patch",{patch:e})}var a=t.r(17),s=t.r(19);a.extendClass(s,{applyPatches:function(t){for(var e=0;e<t.length;e++)o(this,t[e]);return this.fire("contentchange"),this}})}},t[25]={value:function(t,e,n){var o=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};o.prototype={fulfill:function(t){return a(this,1,"fulfillValue",t)},reject:function(t){return a(this,2,"rejectReason",t)},then:function(t,e){var n=this,r=new o;return n.onFulfilled.push(u(t,r,"fulfill")),n.onRejected.push(u(e,r,"reject")),s(n),r}},o.all=function(t){return new o((function(e,n){var r=t.length,i=0,o=0,a=[];for(0===r&&e(a);i<r;)t[i].then((function(t){a.push(t),++o===r&&e(a)}),(function(t){n(t)})),i++}))};var a=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,s(t)),t},s=function(t){1===t.state?c(t,"onFulfilled",t.fulfillValue):2===t.state&&c(t,"onRejected",t.rejectReason)},c=function(t,e,n){if(0!==t[e].length){var o=t[e];t[e]=[];var a=function(){for(var t=0;t<o.length;t++)o[t](n)};"object"==(void 0===r?"undefined":i(r))&&"function"==typeof r.nextTick?r.nextTick(a):"function"==typeof setImmediate?setImmediate(a):setTimeout(a,0)}},u=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var i;try{i=r instanceof o?r.then(t):t(r)}catch(t){return void e.reject(t)}l(e,i)}}},l=function t(e,n){if(e!==n){var r;if("object"==i(n)&&null!==n||"function"==typeof n)try{r=n.then}catch(n){return void e.reject(n)}if("function"!=typeof r)e.fulfill(n);else{var o=!1;try{r.call(n,(function(r){o||(o=!0,r===n?e.reject(new TypeError("circular thenable chain")):t(e,r))}),(function(t){o||(o=!0,e.reject(t))}))}catch(n){o||e.reject(n)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};o.resolve=function(t){return new o((function(e){e(t)}))},o.reject=function(t){return new o((function(e,n){n(t)}))},n.exports=o}},t[26]={value:function(e,n,r){var i=t.r(17),o=t.r(19);t.r(13),o.registerInitHook((function(t){t.readOnly&&this.setDisabled()})),i.extendClass(o,{disable:function(){var t=this;t.bkqueryCommandState=t.queryCommandState,t.bkqueryCommandValue=t.queryCommandValue,t.queryCommandState=function(e){var n=this._getCommand(e);return n&&n.enableReadOnly?t.bkqueryCommandState.apply(t,arguments):-1},t.queryCommandValue=function(e){var n=this._getCommand(e);return n&&n.enableReadOnly?t.bkqueryCommandValue.apply(t,arguments):null},this.setStatus("readonly"),t._interactChange()},enable:function(){var t=this;t.bkqueryCommandState&&(t.queryCommandState=t.bkqueryCommandState,delete t.bkqueryCommandState),t.bkqueryCommandValue&&(t.queryCommandValue=t.bkqueryCommandValue,delete t.bkqueryCommandValue),this.setStatus("normal"),t._interactChange()}})}},t[27]={value:function(e,n,r){var i=t.r(17),o=t.r(19),a=t.r(21),s=i.createClass("Renderer",{constructor:function(t){this.node=t},create:function(t){throw new Error("Not implement: Renderer.create()")},shouldRender:function(t){return!0},watchChange:function(t){void 0===this.watchingData||this.watchingData,this.watchingData=t},shouldDraw:function(t){return!0},update:function(t,e,n){return this.shouldDraw()&&this.draw(t,e),this.place(t,e,n)},draw:function(t,e){throw new Error("Not implement: Renderer.draw()")},place:function(t,e,n){throw new Error("Not implement: Renderer.place()")},getRenderShape:function(){return this._renderShape||null},setRenderShape:function(t){this._renderShape=t}});i.extendClass(o,function(){function t(t,e){var n=[];["center","left","right","top","bottom","outline","outside"].forEach((function(t){var r="before"+t,i="after"+t;e[r]&&(n=n.concat(e[r])),e[t]&&(n=n.concat(e[t])),e[i]&&(n=n.concat(e[i]))})),t._renderers=n.map((function(e){return new e(t)}))}return{renderNodeBatch:function(e){var n,r,o,a,s=this._rendererClasses,c=[],u=0;if(e.length){for(r=0;r<e.length;r++)(a=e[r])._renderers||t(a,s),a._contentBox=new i.Box,this.fire("beforerender",{node:a});for(u=e[0]._renderers.length,n=0;n<u;n++){for(r=0;r<e.length;r++)"function"==typeof c[r]&&(c[r]=c[r]()),c[r]instanceof i.Box||(c[r]=new i.Box(c[r]));for(r=0;r<e.length;r++)o=(a=e[r])._renderers[n],c[r]&&(a._contentBox=a._contentBox.merge(c[r]),o.contentBox=c[r]),o.shouldRender(a)?(o.getRenderShape()||(o.setRenderShape(o.create(a)),o.bringToBack?a.getRenderContainer().prependShape(o.getRenderShape()):a.getRenderContainer().appendShape(o.getRenderShape())),o.getRenderShape().setVisible(!0),c[r]=o.update(o.getRenderShape(),a,a._contentBox)):o.getRenderShape()&&(o.getRenderShape().setVisible(!1),c[r]=null)}for(r=0;r<e.length;r++)this.fire("noderender",{node:e[r]})}},renderNode:function(e){var n,r=this._rendererClasses;e._renderers||t(e,r),this.fire("beforerender",{node:e}),e._contentBox=new i.Box,e._renderers.forEach((function(t){t.shouldRender(e)?(t.getRenderShape()||(t.setRenderShape(t.create(e)),t.bringToBack?e.getRenderContainer().prependShape(t.getRenderShape()):e.getRenderContainer().appendShape(t.getRenderShape())),t.getRenderShape().setVisible(!0),"function"==typeof(n=t.update(t.getRenderShape(),e,e._contentBox))&&(n=n()),n&&(e._contentBox=e._contentBox.merge(n),t.contentBox=n)):t.getRenderShape()&&t.getRenderShape().setVisible(!1)})),this.fire("noderender",{node:e})}}}()),i.extendClass(a,{render:function(){if(this.attached)return this.getMinder().renderNode(this),this},renderTree:function(){if(this.attached){var t=[];return this.traverse((function(e){t.push(e)})),this.getMinder().renderNodeBatch(t),this}},getRenderer:function(t){var e=this._renderers;if(!e)return null;for(var n=0;n<e.length;n++)if(e[n].getType()==t)return e[n];return null},getContentBox:function(){return this.parent&&this.parent.isCollapsed()?new i.Box:this._contentBox||new i.Box},getRenderBox:function(t,e){var n=t&&this.getRenderer(t),r=n?n.contentBox:this.getContentBox();return i.Matrix.getCTM(this.getRenderContainer(),e||"paper").transformBox(r)}}),r.exports=s}},t[28]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s=t.r(21);a.registerInitHook((function(){this._initSelection()})),i.extendClass(a,{_initSelection:function(){this._selectedNodes=[]},renderChangedSelection:function(t){var e=this.getSelectedNodes(),n=[];for(e.forEach((function(e){-1==t.indexOf(e)&&n.push(e)})),t.forEach((function(t){-1==e.indexOf(t)&&n.push(t)})),n.length&&(this._interactChange(),this.fire("selectionchange"));n.length;)n.shift().render()},getSelectedNodes:function(){return this._selectedNodes},getSelectedNode:function(){return this.getSelectedNodes()[0]||null},removeAllSelectedNodes:function(){var t=this._selectedNodes.splice(0);return this._selectedNodes=[],this.renderChangedSelection(t),this.fire("selectionclear")},removeSelectedNodes:function(t){var e=this,n=this._selectedNodes.slice(0);return(t=o.isArray(t)?t:[t]).forEach((function(t){var n;-1!==(n=e._selectedNodes.indexOf(t))&&e._selectedNodes.splice(n,1)})),this.renderChangedSelection(n),this},select:function(t,e){var n=this.getSelectedNodes().slice(0);e&&(this._selectedNodes=[]);var r=this;return(t=o.isArray(t)?t:[t]).forEach((function(t){-1===r._selectedNodes.indexOf(t)&&r._selectedNodes.unshift(t)})),this.renderChangedSelection(n),this},selectById:function(t,e){t=o.isArray(t)?t:[t];var n=this.getNodesById(t);return this.select(n,e)},toggleSelect:function(t){return o.isArray(t)?t.forEach(this.toggleSelect.bind(this)):t.isSelected()?this.removeSelectedNodes(t):this.select(t),this},isSingleSelect:function(){return 1==this._selectedNodes.length},getSelectedAncestors:function(t){function e(t,e){for(var n=t.length-1;n>=0;--n)if(t[n].isAncestorOf(e))return!0;return!1}var n,r=this.getSelectedNodes().slice(0),i=[],o=r.indexOf(this.getRoot());for(~o&&!t&&r.splice(o,1),r.sort((function(t,e){return t.getLevel()-e.getLevel()}));n=r.pop();)e(r,n)||i.push(n);return i}}),i.extendClass(s,{isSelected:function(){var t=this.getMinder();return t&&-1!=t.getSelectedNodes().indexOf(this)}})}},t[29]={value:function(e,n,r){function i(t){var e=0;return"string"==typeof t?t.toLowerCase().split(/\+\s*/).forEach((function(t){switch(t){case"ctrl":case"cmd":e|=4096;break;case"alt":e|=8192;break;case"shift":e|=16384;break;default:e|=s[t]}})):((t.ctrlKey||t.metaKey)&&(e|=4096),t.altKey&&(e|=8192),t.shiftKey&&(e|=16384),e|=t.keyCode),e}var o=t.r(17),a=t.r(33),s=t.r(15),c=t.r(19),u=t.r(13);o.extendClass(u,{isShortcutKey:function(t){var e=this.originEvent;return!!e&&i(t)==i(e)}}),c.registerInitHook((function(){this._initShortcutKey()})),o.extendClass(c,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var t=this._shortcutKeys={};this.on("keydown",(function(e){for(var n in t)if(t.hasOwnProperty(n)&&e.isShortcutKey(n)){var r=t[n];if(r.__statusCondition&&r.__statusCondition!=this.getStatus())return;r(),e.preventDefault()}}))},addShortcut:function(t,e){var n=this._shortcutKeys;t.split(/\|\s*/).forEach((function(t){var r,i=t.split("::");i.length>1&&(t=i[1],r=i[0],e.__statusCondition=r),n[t]=e}))},addCommandShortcutKeys:function(t,e){var n=this._commandShortcutKeys||(this._commandShortcutKeys={}),r={};e?r[t]=e:r=t;var i=this;a.each(r,(function(t,e){n[e]=t,i.addShortcut(t,(function(){-1!==i.queryCommandState(e)&&i.execCommand(e)}))}))},getCommandShortcutKey:function(t){var e=this._commandShortcutKeys;return e&&e[t]||null},supportClipboardEvent:!!window.ClipboardEvent})}},t[30]={value:function(e,n,r){var i=t.r(17),o=t.r(19),a=~window.location.href.indexOf("status"),s=~window.location.href.indexOf("trace");o.registerInitHook((function(){this._initStatus()})),i.extendClass(o,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(t,e){return"readonly"!=this._status||e?(t!=this._status&&(this._rollbackStatus=this._status,this._status=t,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),a&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),s&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},t[31]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s=t.r(9),c=t.r(21),u=t.r(20),l={};n.register=function(t,e){l[t]=e},o.extend(a,{getTemplateList:function(){return l}}),i.extendClass(a,function(){var t=a.prototype.getTheme;return{useTemplate:function(t,e){this.setTemplate(t),this.refresh(e||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(t){this._template=t||null},getTemplateSupport:function(t){var e=l[this.getTemplate()];return e&&e[t]},getTheme:function(e){return(this.getTemplateSupport("getTheme")||t).call(this,e)}}}()),i.extendClass(c,function(){var t=c.prototype.getLayout,e=c.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||t).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||e).call(this,this)}}}()),u.register("TemplateModule",{commands:{template:i.createClass("TemplateCommand",{base:s,execute:function(t,e){t.useTemplate(e),t.execCommand("camera")},queryValue:function(t){return t.getTemplate()||"default"}})}})}},t[32]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s=t.r(21),c=t.r(20),u=t.r(9),l={left:function(t){return 3 in t&&t[3]||1 in t&&t[1]||t[0]},right:function(t){return 1 in t&&t[1]||t[0]},top:function(t){return t[0]},bottom:function(t){return 2 in t&&t[2]||t[0]}},h={};n.register=function(t,e){h[t]=e},o.extend(a,{getThemeList:function(){return h}}),i.extendClass(a,{useTheme:function(t){return this.setTheme(t),this.refresh(800),!0},setTheme:function(t){if(t&&!h[t])throw new Error("Theme "+t+" not exists!");var e=this._theme;this._theme=t||null;var n=this.getRenderTarget();return n&&(n.classList.remove("km-theme-"+e),t&&n.classList.add("km-theme-"+t),n.style.background=this.getStyle("background")),this.fire("themechange",{theme:t}),this},getTheme:function(t){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeItems:function(t){return this.getTheme(t),h[this.getTheme(t)]},getStyle:function(t,e){var n,r,i,a,s=this.getThemeItems(e);if(t in s)return s[t];if((n=t.split("-")).length<2)return null;if(r=n.pop(),(t=n.join("-"))in s){if(i=s[t],o.isArray(i)&&(a=l[r]))return a(i);if(!isNaN(i))return i}return null},getNodeStyle:function(t,e){var n=this.getStyle(t.getType()+"-"+e,t);return null!==n?n:this.getStyle(e,t)}}),i.extendClass(s,{getStyle:function(t){return this.getMinder().getNodeStyle(this,t)}}),c.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:i.createClass("ThemeCommand",{base:u,execute:function(t,e){return t.useTheme(e)},queryValue:function(t){return t.getTheme()||"default"}})}}),a.registerInitHook((function(){this.setTheme()}))}},t[33]={value:function(e,n){var r=t.r(17),i={};n.extend=r.Utils.extend.bind(r.Utils),n.each=r.Utils.each.bind(r.Utils),n.uuid=function(t){return i[t]=i[t]?i[t]+1:1,t+i[t]},n.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},n.trim=function(t){return t.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},n.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},n.clone=function(t){return JSON.parse(JSON.stringify(t))},n.comparePlainObject=function(t,e){return JSON.stringify(t)==JSON.stringify(e)},n.encodeHtml=function(t,e){return t?t.replace(e||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,(function(t,e){return e?t:{"<":"<","&":"&",'"':""",">":">","'":"'"}[t]})):""},n.clearWhiteSpace=function(t){return t.replace(/[\u200b\t\r\n]/g,"")},n.each(["String","Function","Array","Number","RegExp","Object"],(function(t){var e=Object.prototype.toString;n["is"+t]=function(n){return e.apply(n)=="[object "+t+"]"}}))}},t[34]={value:function(e,n,r){r.exports=window.kityminder=t.r(35)}},t[35]={value:function(e,n,r){var i={version:t.r(19).version};t.r(33),i.Minder=t.r(19),i.Command=t.r(9),i.Node=t.r(21),t.r(22),t.r(8),i.Event=t.r(13),i.data=t.r(12),t.r(10),i.KeyMap=t.r(15),t.r(29),t.r(30),t.r(23),t.r(28),t.r(14),t.r(16),i.Module=t.r(20),t.r(26),i.Render=t.r(27),i.Connect=t.r(11),i.Layout=t.r(18),i.Theme=t.r(32),i.Template=t.r(31),i.Promise=t.r(25),t.r(7),t.r(24),t.r(42),t.r(43),t.r(44),t.r(45),t.r(46),t.r(47),t.r(48),t.r(50),t.r(49),t.r(51),t.r(52),t.r(53),t.r(54),t.r(55),t.r(56),t.r(57),t.r(58),t.r(59),t.r(60),t.r(61),t.r(62),t.r(63),t.r(64),t.r(68),t.r(65),t.r(67),t.r(66),t.r(40),t.r(36),t.r(37),t.r(38),t.r(39),t.r(41),t.r(75),t.r(78),t.r(77),t.r(76),t.r(78),t.r(80),t.r(79),t.r(0),t.r(1),t.r(2),t.r(3),t.r(4),t.r(5),t.r(6),t.r(69),t.r(73),t.r(70),t.r(72),t.r(71),t.r(74),r.exports=i}},t[36]={value:function(e,n,r){var i=t.r(17),o=t.r(18);["left","right","top","bottom"].forEach((function(t){var e="left"==t||"right"==t?"x":"y",n="left"==t||"top"==t?-1:1,r={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};o.register(t,i.createClass({base:o,doLayout:function(o,a){var s=o.getContentBox();if("x"==e?(o.setVertexOut(new i.Point(s[t],s.cy)),o.setLayoutVectorOut(new i.Vector(n,0))):(o.setVertexOut(new i.Point(s.cx,s[t])),o.setLayoutVectorOut(new i.Vector(0,n))),!a.length)return!1;a.forEach((function(o){var a=o.getContentBox();o.setLayoutTransform(new i.Matrix),"x"==e?(o.setVertexIn(new i.Point(a[r[t]],a.cy)),o.setLayoutVectorIn(new i.Vector(n,0))):(o.setVertexIn(new i.Point(a.cx,a[r[t]])),o.setLayoutVectorIn(new i.Vector(0,n)))})),this.align(a,r[t]),this.stack(a,r[e]);var c=this.getBranchBox(a),u=0,l=0;"x"==e?(u=s[t],u+=n*o.getStyle("margin-"+t),u+=n*a[0].getStyle("margin-"+r[t]),l=s.bottom,l-=s.height/2,l-=c.height/2,l-=c.y):(u=s.right,u-=s.width/2,u-=c.width/2,u-=c.x,l=s[t],l+=n*o.getStyle("margin-"+t),l+=n*a[0].getStyle("margin-"+r[t])),this.move(a,u,l)},getOrderHint:function(t){var n=[],r=t.getLayoutBox();return"x"==e?(n.push({type:"up",node:t,area:new i.Box({x:r.x,y:r.top-t.getStyle("margin-top")-5,width:r.width,height:t.getStyle("margin-top")}),path:["M",r.x,r.top-5,"L",r.right,r.top-5]}),n.push({type:"down",node:t,area:new i.Box({x:r.x,y:r.bottom+5,width:r.width,height:t.getStyle("margin-bottom")}),path:["M",r.x,r.bottom+5,"L",r.right,r.bottom+5]})):(n.push({type:"up",node:t,area:new i.Box({x:r.left-t.getStyle("margin-left")-5,y:r.top,width:t.getStyle("margin-left"),height:r.height}),path:["M",r.left-5,r.top,"L",r.left-5,r.bottom]}),n.push({type:"down",node:t,area:new i.Box({x:r.right+5,y:r.top,width:t.getStyle("margin-right"),height:r.height}),path:["M",r.right+5,r.top,"L",r.right+5,r.bottom]})),n}}))}))}},t[37]={value:function(e,n,r){var i=t.r(17),o=t.r(18);[-1,1].forEach((function(t){var e="filetree-"+(t>0?"down":"up");o.register(e,i.createClass({base:o,doLayout:function(e,n,r){var o=e.getContentBox();if(e.setVertexOut(new i.Point(o.left+20,t>0?o.bottom:o.top)),e.setLayoutVectorOut(new i.Vector(0,t)),n.length){n.forEach((function(t){var e=t.getContentBox();t.setLayoutTransform(new i.Matrix),t.setVertexIn(new i.Point(e.left,e.cy)),t.setLayoutVectorIn(new i.Vector(1,0))})),this.align(n,"left"),this.stack(n,"y");var a=0;a+=o.left,a+=20,a+=n[0].getStyle("margin-left");var s=0;t>0?(s+=o.bottom,s+=e.getStyle("margin-bottom"),s+=n[0].getStyle("margin-top")):(s-=this.getTreeBox(n).bottom,s+=o.top,s-=e.getStyle("margin-top"),s-=n[0].getStyle("margin-bottom")),this.move(n,a,s)}},getOrderHint:function(t){var e=[],n=t.getLayoutBox(),r=t.getLevel()>1?3:5;return e.push({type:"up",node:t,area:new i.Box({x:n.x,y:n.top-t.getStyle("margin-top")-r,width:n.width,height:t.getStyle("margin-top")}),path:["M",n.x,n.top-r,"L",n.right,n.top-r]}),e.push({type:"down",node:t,area:new i.Box({x:n.x,y:n.bottom+r,width:n.width,height:t.getStyle("margin-bottom")}),path:["M",n.x,n.bottom+r,"L",n.right,n.bottom+r]}),e}}))}))}},t[38]={value:function(e,n,r){var i=t.r(17),o=t.r(18);o.register("fish-bone-master",i.createClass("FishBoneMasterLayout",{base:o,doLayout:function(t,e,n){var r=[],o=[],a=e[0],s=t.getContentBox();if(t.setVertexOut(new i.Point(s.right,s.cy)),t.setLayoutVectorOut(new i.Vector(1,0)),a){var c=(a.getContentBox(),t.getStyle("margin-right")),u=a.getStyle("margin-left"),l=a.getStyle("margin-top"),h=a.getStyle("margin-bottom");e.forEach((function(t,e){t.setLayoutTransform(new i.Matrix);var n=t.getContentBox();e%2?(o.push(t),t.setVertexIn(new i.Point(n.left,n.top)),t.setLayoutVectorIn(new i.Vector(1,1))):(r.push(t),t.setVertexIn(new i.Point(n.left,n.bottom)),t.setLayoutVectorIn(new i.Vector(1,-1)))})),this.stack(r,"x"),this.stack(o,"x"),this.align(r,"bottom"),this.align(o,"top");var f=s.right+c+u,d=s.cy-h-t.getStyle("margin-top"),p=s.cy+l+t.getStyle("margin-bottom");this.move(r,f,d),this.move(o,f+u,p)}}}))}},t[39]={value:function(e,n,r){var i=t.r(17),o=t.r(18);o.register("fish-bone-slave",i.createClass("FishBoneSlaveLayout",{base:o,doLayout:function(t,e,n){var r=this,o=Math.abs,a=t.getContentBox(),s=t.getLayoutVectorIn();t.setLayoutVectorOut(s);var c=a.left+.382*a.width,u=new i.Point(c,s.y>0?a.bottom:a.top);t.setVertexOut(u);var l=e[0];if(l){var h=l.getContentBox();e.forEach((function(t,e){t.setLayoutTransform(new i.Matrix),t.setLayoutVectorIn(new i.Vector(1,0)),t.setVertexIn(new i.Point(h.left,h.cy))})),this.stack(e,"y"),this.align(e,"left");var f=0,d=0;f+=u.x,t.getLayoutVectorOut().y<0?(d-=this.getTreeBox(e).bottom,d+=t.getContentBox().top,d-=t.getStyle("margin-top"),d-=l.getStyle("margin-bottom")):(d+=t.getContentBox().bottom,d+=t.getStyle("margin-bottom"),d+=l.getStyle("margin-top")),this.move(e,f,d),2==n&&e.forEach((function(t){var e=t.getLayoutTransform(),n=t.getContentBox(),a=e.transformPoint(new i.Point(n.left,0));r.move([t],o(a.y-u.y),0)}))}}}))}},t[40]={value:function(e,n,r){var i=t.r(17),o=t.r(18),a=t.r(19);o.register("mind",i.createClass({base:o,doLayout:function(t,e){var n=Math.ceil(t.children.length/2),r=[],o=[];e.forEach((function(t){t.getIndex()<n?r.push(t):o.push(t)}));var s=a.getLayoutInstance("left"),c=a.getLayoutInstance("right");s.doLayout(t,o),c.doLayout(t,r);var u=t.getContentBox();t.setVertexOut(new i.Point(u.cx,u.cy)),t.setLayoutVectorOut(new i.Vector(0,0))},getOrderHint:function(t){var e=[],n=t.getLayoutBox();return e.push({type:"up",node:t,area:new i.Box({x:n.x,y:n.top-t.getStyle("margin-top")-5,width:n.width,height:t.getStyle("margin-top")}),path:["M",n.x,n.top-5,"L",n.right,n.top-5]}),e.push({type:"down",node:t,area:new i.Box({x:n.x,y:n.bottom+5,width:n.width,height:t.getStyle("margin-bottom")}),path:["M",n.x,n.bottom+5,"L",n.right,n.bottom+5]}),e}}))}},t[41]={value:function(e,n,r){var i=t.r(17),o=t.r(18);t.r(19),o.register("tianpan",i.createClass({base:o,doLayout:function(t,e){if(0!=e.length){var n,r,o,a=this,s=t.getContentBox(),c=5,u=Math.max(s.width,50);e.forEach((function(t,e){t.setLayoutTransform(new i.Matrix),o=a.getTreeBox(t),u=Math.max(Math.max(o.width,o.height),u)})),u=u/1.5/Math.PI,e.forEach((function(t,e){n=u*(Math.cos(c)+Math.sin(c)*c),r=u*(Math.sin(c)-Math.cos(c)*c),c+=.9-.02*e,t.setLayoutVectorIn(new i.Vector(1,0)),t.setVertexIn(new i.Point(s.cx,s.cy)),t.setLayoutTransform(new i.Matrix),a.move([t],n,r)}))}},getOrderHint:function(t){var e=[],n=t.getLayoutBox();return e.push({type:"up",node:t,area:{x:n.x,y:n.top-t.getStyle("margin-top")-5,width:n.width,height:t.getStyle("margin-top")},path:["M",n.x,n.top-5,"L",n.right,n.top-5]}),e.push({type:"down",node:t,area:{x:n.x,y:n.bottom+5,width:n.width,height:t.getStyle("margin-bottom")},path:["M",n.x,n.bottom+5,"L",n.right,n.bottom+5]}),e}}))}},t[42]={value:function(e,n,r){function i(t,e){return t.getIndex()-e.getIndex()}function o(t,e){return-i(t,e)}var a=t.r(17),s=t.r(21),c=t.r(9),u=t.r(20);a.extendClass(s,{arrange:function(t){var e=this.parent;if(e){var n=e.children;if(!(t<0||t>=n.length))return n.splice(this.getIndex(),1),n.splice(t,0,this),this}}});var l=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(i);var n=e.map((function(t){return t.getIndex()}));e.forEach((function(t,e){t.arrange(n[e]-1)})),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),h=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(o);var n=e.map((function(t){return t.getIndex()}));e.forEach((function(t,e){t.arrange(n[e]+1)})),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),f=a.createClass("ArrangeCommand",{base:c,execute:function(t,e){var n=t.getSelectedNodes().slice();if(n.length&&s.getCommonAncestor(n)==n[0].parent){var r=n.map((function(t){return{index:t.getIndex(),node:t}})),i=Math.min.apply(Math,r.map((function(t){return t.index})))>=e;r.sort((function(t,e){return i?e.index-t.index:t.index-e.index})),r.forEach((function(t){t.node.arrange(e)})),t.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});u.register("ArrangeModule",{commands:{arrangeup:l,arrangedown:h,arrange:f},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},t[43]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=t.r(61);a.register("basestylemodule",(function(){function t(t,e){return t.getData(e)||t.getStyle(e)}var e=this;return s.registerStyleHook((function(e,n){var r=t(e,"font-weight"),i=t(e,"font-style");[r,i].join("/"),n.eachItem((function(t,e){e.setFont({weight:r,style:i})}))})),{commands:{bold:i.createClass("boldCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("bold")?e.forEach((function(t){t.setData("font-weight").render()})):e.forEach((function(t){t.setData("font-weight","bold").render()})),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach((function(t){if(t&&t.getData("font-weight"))return n=1,!1})),n)}}),italic:i.createClass("italicCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("italic")?e.forEach((function(t){t.setData("font-style").render()})):e.forEach((function(t){t.setData("font-style","italic").render()})),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach((function(t){if(t&&t.getData("font-style"))return n=1,!1})),n)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}}))}},t[44]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(21)),a=t.r(9);t.r(20).register("ClipboardModule",(function(){function t(e,r){s.push(r),n.appendNode(r,e),r.render(),r.setLayoutOffset(null);var i=r.children.map((function(t){return t.clone()}));r.clearChildren();for(var o,a=0;o=i[a];a++)t(r,o)}function e(t){t.length&&(t.sort((function(t,e){return t.getIndex()-e.getIndex()})),r=t.map((function(t){return t.clone()})))}var n=this,r=[],s=[],c=i.createClass("CopyCommand",{base:a,execute:function(t){e(t.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),u=i.createClass("CutCommand",{base:a,execute:function(t){var n=t.getSelectedAncestors();0!==n.length&&(e(n),t.select(o.getCommonAncestor(n),!0),n.slice().forEach((function(e){t.removeNode(e)})),t.layout(300))}}),l=i.createClass("PasteCommand",{base:a,execute:function(e){if(r.length){var n=e.getSelectedNodes();if(!n.length)return;for(var i,o=0;i=r[o];o++)for(var a,c=0;a=n[c];c++)t(a,i.clone());e.select(s,!0),s=[],e.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});if(n.supportClipboardEvent&&!i.Browser.gecko){return{commands:{copy:c,cut:u,paste:l},clipBoardEvents:{copy:function(t){this.fire("beforeCopy",t)}.bind(n),cut:function(t){this.fire("beforeCut",t)}.bind(n),paste:function(t){this.fire("beforePaste",t)}.bind(n)},sendToClipboard:e}}return{commands:{copy:c,cut:u,paste:l},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:e}}))}},t[45]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(21)),a=t.r(9),s=t.r(20),c=i.createClass("MoveToParentCommand",{base:a,execute:function(t,e,n){for(var r,i=0;i<e.length;i++)(r=e[i]).parent&&(r.parent.removeChild(r),n.appendChild(r),r.render());n.expand(),t.select(e,!0)}}),u=i.createClass("DropHinter",{base:i.Group,constructor:function(){this.callBase(),this.rect=new i.Rect,this.addShape(this.rect)},render:function(t){this.setVisible(!!t),t&&(this.rect.setBox(t.getLayoutBox()).setRadius(t.getStyle("radius")||0).stroke(t.getStyle("drop-hint-color")||"yellow",t.getStyle("drop-hint-width")||2),this.bringTop())}}),l=i.createClass("OrderHinter",{base:i.Group,constructor:function(){this.callBase(),this.area=new i.Rect,this.path=new i.Path,this.addShapes([this.area,this.path])},render:function(t){this.setVisible(!!t),t&&(this.area.setBox(t.area),this.area.fill(t.node.getStyle("order-hint-area-color")||"rgba(0, 255, 0, .5)"),this.path.setPathData(t.path),this.path.stroke(t.node.getStyle("order-hint-path-color")||"#0f0",t.node.getStyle("order-hint-path-width")||1))}}),h=i.createClass("TreeDragger",{constructor:function(t){this._minder=t,this._dropHinter=new u,this._orderHinter=new l,t.getRenderContainer().addShapes([this._dropHinter,this._orderHinter])},dragStart:function(t){this._startPosition=t},dragMove:function(t){if(this._startPosition){var e=i.Vector.fromPoints(this._dragPosition||this._startPosition,t),n=this._minder;if(this._dragPosition=t,!this._dragMode){if(i.Vector.fromPoints(this._dragPosition,this._startPosition).length()<10)return;if(!this._enterDragMode())return}for(var r=0;r<this._dragSources.length;r++)this._dragSources[r].setLayoutOffset(this._dragSources[r].getLayoutOffset().offset(e)),n.applyLayoutResult(this._dragSources[r]);this._dropTest()?this._renderOrderHint(this._orderSucceedHint=null):this._orderTest()}},dragEnd:function(){if(this._startPosition=null,this._dragPosition=null,this._dragMode){if(this._fadeDragSources(1),this._dropSucceedTarget)this._dragSources.forEach((function(t){t.setLayoutOffset(null)})),this._minder.layout(-1),this._minder.execCommand("movetoparent",this._dragSources,this._dropSucceedTarget);else if(this._orderSucceedHint){var t=this._orderSucceedHint,e=t.node.getIndex(),n=this._dragSources.map((function(t){return t.setLayoutOffset(null),t.getIndex()})),r=Math.max.apply(Math,n);e<Math.min.apply(Math,n)&&"down"==t.type&&e++,e>r&&"up"==t.type&&e--,t.node.setLayoutOffset(null),this._minder.execCommand("arrange",e),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(t){var e=this._minder;this._dragSources.forEach((function(n){n.getRenderContainer().setOpacity(t,200),n.traverse((function(n){t<1?e.detachNode(n):e.attachNode(n)}),!0)}))},_calcDropTargets:function(){this._dropTargets=function t(e,n){var r,i=[];return i.push(n),n.getChildren().forEach((function(n){for(r=0;r<e.length;r++)if(e[r]==n)return;i=i.concat(t(e,n))})),i}(this._dragSources,this._minder.getRoot()),this._dropTargetBoxes=this._dropTargets.map((function(t){return t.getLayoutBox()}))},_calcOrderHints:function(){var t=this._dragSources,e=o.getCommonAncestor(t);if(e==t[0]&&(e=t[0].parent),0!==t.length&&e==t[0].parent){var n=e.children;this._orderHints=n.reduce((function(e,n){return-1==t.indexOf(n)&&(e=e.concat(n.getOrderHint())),e}),[])}else this._orderHints=[]},_leaveDragMode:function(){this._dragMode=!1,this._dropSucceedTarget=null,this._orderSucceedHint=null,this._renderDropHint(null),this._renderOrderHint(null),this._minder.rollbackStatus()},_drawForDragMode:function(){this._text.setContent(this._dragSources.length+" items"),this._text.setPosition(this._startPosition.x,this._startPosition.y+5),this._minder.getRenderContainer().addShape(this)},_boxTest:function(t,e,n){var r,i,o,a,s,c=this._dragSources.map((function(t){return t.getLayoutBox()}));for(n=n||function(t,e,n){return t&&!t.isEmpty()},r=0;r<t.length;r++)for(o=t[r],s=e.call(this,o,r),i=0;i<c.length;i++){if(n((a=c[i]).intersect(s),a,s))return o}return null},_dropTest:function(){return this._dropSucceedTarget=this._boxTest(this._dropTargets,(function(t,e){return this._dropTargetBoxes[e]}),(function(t,e,n){function r(t){return t.width*t.height}return!!t&&!!r(t)&&(r(t)>.5*Math.min(r(e),r(n))||t.width+1>=Math.min(e.width,n.width)||t.height+1>=Math.min(e.height,n.height))})),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,(function(t){return t.area})),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(t){this._dropHinter.render(t)},_renderOrderHint:function(t){this._orderHinter.render(t)},preventDragMove:function(){this._startPosition=null}});s.register("DragTree",(function(){var t;return{init:function(){t=new h(this),window.addEventListener("mouseup",(function(){t.dragEnd()}))},events:{"normal.mousedown inputready.mousedown":function(e){e.originEvent.button||e.getTargetNode()&&e.getTargetNode()!=this.getRoot()&&t.dragStart(e.getPosition())},"normal.mousemove dragtree.mousemove":function(e){t.dragMove(e.getPosition())},"normal.mouseup dragtree.beforemouseup":function(e){t.dragEnd(),e.preventDefault()},statuschange:function(e){"textedit"==e.lastStatus&&"normal"==e.currentStatus&&t.preventDragMove()}},commands:{movetoparent:c}}}))}},t[46]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(15),s=t.r(21),c=t.r(9),u=t.r(20),l=t.r(27);u.register("Expand",(function(){var t=this,e="expandState",n="collapse";i.extendClass(s,{expand:function(){return this.setData(e,"expand"),this},collapse:function(){return this.setData(e,n),this},isExpanded:function(){return this.getData(e)!==n&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var r=i.createClass("ExpandCommand",{base:c,execute:function(t,e){var n=t.getSelectedNode();if(n){for(e&&(n=n.parent);n.parent;)n.expand(),n=n.parent;n.renderTree(),t.layout(100)}},queryState:function(t){var e=t.getSelectedNode();return!e||e.isRoot()||e.isExpanded()?-1:0}}),u=i.createClass("ExpandToLevelCommand",{base:c,execute:function(t,e){t.getRoot().traverse((function(t){t.getLevel()<e&&t.expand(),t.getLevel()!=e||t.isLeaf()||t.collapse()})),t.refresh(100)},enableReadOnly:!0}),h=i.createClass("CollapseCommand",{base:c,execute:function(t){var e=t.getSelectedNode();e&&(e.collapse(),e.renderTree(),t.layout())},queryState:function(t){var e=t.getSelectedNode();return e&&!e.isRoot()&&e.isExpanded()?0:-1}}),f=i.createClass("Expander",{base:i.Group,constructor:function(t){this.callBase(),this.radius=6,this.outline=new i.Circle(this.radius).stroke("gray").fill("white"),this.sign=(new i.Path).stroke("gray"),this.addShapes([this.outline,this.sign]),this.initEvent(t),this.setId(o.uuid("node_expander")),this.setStyle("cursor","pointer")},initEvent:function(e){this.on("mousedown",(function(n){t.select([e],!0),e.isExpanded()?e.collapse():e.expand(),e.renderTree().getMinder().layout(100),e.getMinder().fire("contentchange"),n.stopPropagation(),n.preventDefault()})),this.on("dblclick click mouseup",(function(t){t.stopPropagation(),t.preventDefault()}))},setState:function(t){if("hide"!=t){this.setVisible(!0);var e=["M",1.5-this.radius,0,"L",this.radius-1.5,0];t==n&&e.push(["M",0,1.5-this.radius,"L",0,this.radius-1.5]),this.sign.setPathData(e)}else this.setVisible(!1)}}),d=i.createClass("ExpanderRenderer",{base:l,create:function(t){if(!t.isRoot())return this.expander=new f(t),t.getRenderContainer().prependShape(this.expander),t.expanderRenderer=this,this.node=t,this.expander},shouldRender:function(t){return!t.isRoot()},update:function(t,n,r){if(n.parent){var i=n.parent.isExpanded();t.setState(i&&n.children.length?n.getData(e):"hide");var o=n.getLayoutVectorIn().normalize(t.radius+n.getStyle("stroke-width")),a=n.getVertexIn().offset(o.reverse());this.expander.setTranslate(a)}}});return{commands:{expand:r,expandtolevel:u,collapse:h},events:{layoutapply:function(t){var e=t.node.getRenderer("ExpanderRenderer");e.getRenderShape()&&e.update(e.getRenderShape(),t.node)},beforerender:function(t){var e=t.node,n=!e.parent||e.parent.isExpanded();e.getRenderContainer().setVisible(n),n||t.stopPropagation()},"normal.keydown":function(t){if("textedit"!=this.getStatus()){if(t.originEvent.keyCode==a["/"]){var e=this.getSelectedNode();if(!e||e==this.getRoot())return;var n=e.isExpanded();this.getSelectedNodes().forEach((function(t){n?t.collapse():t.expand(),t.renderTree()})),this.layout(100),this.fire("contentchange"),t.preventDefault(),t.stopPropagationImmediately()}t.isShortcutKey("Alt+`")&&this.execCommand("expandtolevel",9999);for(var r=1;r<6;r++)t.isShortcutKey("Alt+"+r)&&this.execCommand("expandtolevel",r)}}},renderers:{outside:d},contextmenu:[{command:"expandtoleaf",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",9999)}},{command:"expandtolevel1",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",1)}},{command:"expandtolevel2",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",2)}},{command:"expandtolevel3",query:function(){return!t.getSelectedNode()},fn:function(t){t.execCommand("expandtolevel",3)}},{divider:!0}]}}))}},t[47]={value:function(e,n,r){function i(t,e){return t.getData(e)||t.getStyle(e)}var o=t.r(17),a=(t.r(33),t.r(19),t.r(21),t.r(9)),s=t.r(20);t.r(61).registerStyleHook((function(t,e){var n=t.getData("color"),r=t.getStyle("selected-color"),o=t.getStyle("color"),a=n||(t.isSelected()&&r?r:o),s=i(t,"font-family"),c=i(t,"font-size");e.fill(a),e.eachItem((function(t,e){e.setFont({family:s,size:c})}))})),s.register("fontmodule",{commands:{forecolor:o.createClass("fontcolorCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach((function(t){t.setData("color",e),t.render()}))},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){return 1==t.getSelectedNodes().length?t.getSelectedNodes()[0].getData("color"):"mixed"}}),background:o.createClass("backgroudCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach((function(t){t.setData("background",e),t.render()}))},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){return 1==t.getSelectedNodes().length?t.getSelectedNodes()[0].getData("background"):"mixed"}}),fontfamily:o.createClass("fontfamilyCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach((function(n){n.setData("font-family",e),n.render(),t.layout()}))},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){var e=t.getSelectedNode();return e?e.getData("font-family"):null}}),fontsize:o.createClass("fontsizeCommand",{base:a,execute:function(t,e){t.getSelectedNodes().forEach((function(n){n.setData("font-size",e),n.render(),t.layout(300)}))},queryState:function(t){return 0===t.getSelectedNodes().length?-1:0},queryValue:function(t){var e=t.getSelectedNode();return e?e.getData("font-size"):null}})}})}},t[48]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=t.r(27);a.register("hyperlink",{commands:{hyperlink:i.createClass("hyperlink",{base:o,execute:function(t,e,n){t.getSelectedNodes().forEach((function(t){t.setData("hyperlink",e),t.setData("hyperlinkTitle",e&&n),t.render()})),t.layout()},queryState:function(t){var e=t.getSelectedNodes(),n=0;return 0===e.length?-1:(e.forEach((function(t){if(t&&t.getData("hyperlink"))return n=0,!1})),n)},queryValue:function(t){var e=t.getSelectedNode();return{url:e.getData("hyperlink"),title:e.getData("hyperlinkTitle")}}})},renderers:{right:i.createClass("hyperlinkrender",{base:s,create:function(){var t=new i.HyperLink,e=new i.Path,n=new i.Rect(24,22,-2,-6,4).fill("rgba(255, 255, 255, 0)");return e.setPathData("M16.614,10.224h-1.278c-1.668,0-3.07-1.07-3.599-2.556h4.877c0.707,0,1.278-0.571,1.278-1.278V3.834 c0-0.707-0.571-1.278-1.278-1.278h-4.877C12.266,1.071,13.668,0,15.336,0h1.278c2.116,0,3.834,1.716,3.834,3.834V6.39 C20.448,8.508,18.73,10.224,16.614,10.224z M5.112,5.112c0-0.707,0.573-1.278,1.278-1.278h7.668c0.707,0,1.278,0.571,1.278,1.278 S14.765,6.39,14.058,6.39H6.39C5.685,6.39,5.112,5.819,5.112,5.112z M2.556,3.834V6.39c0,0.707,0.573,1.278,1.278,1.278h4.877 c-0.528,1.486-1.932,2.556-3.599,2.556H3.834C1.716,10.224,0,8.508,0,6.39V3.834C0,1.716,1.716,0,3.834,0h1.278 c1.667,0,3.071,1.071,3.599,2.556H3.834C3.129,2.556,2.556,3.127,2.556,3.834z").fill("#666"),t.addShape(n),t.addShape(e),t.setTarget("_blank"),t.setStyle("cursor","pointer"),t.on("mouseover",(function(){n.fill("rgba(255, 255, 200, .8)")})).on("mouseout",(function(){n.fill("rgba(255, 255, 255, 0)")})),t},shouldRender:function(t){return t.getData("hyperlink")},update:function(t,e,n){var r=e.getData("hyperlink");t.setHref("#");for(var o=["^http:","^https:","^ftp:","^mailto:"],a=0;a<o.length;a++)if(new RegExp(o[a]).test(r)){t.setHref(r);break}var s=e.getData("hyperlinkTitle");s=s?[s,"(",r,")"].join(""):r,t.node.setAttributeNS("http://www.w3.org/1999/xlink","title",s);var c=e.getStyle("space-right");return t.setTranslate(n.right+c+2,-5),new i.Box({x:n.right+c,y:-11,width:24,height:22})}})}})}},t[49]={value:function(e,n,r){var i=t.r(17),o=t.r(15),a=t.r(20);t.r(9),a.register("ImageViewer",(function(){function t(t,e,r){var i=document.createElement(t);return n(i,e),r&&r.length&&r.forEach((function(t){i.appendChild(t)})),i}function e(t,e,n){t.addEventListener(e,n)}function n(t,e){e&&e.split(" ").forEach((function(e){t.classList.add(e)}))}var r=i.createClass("ImageViewer",{constructor:function(){var n=t("button","km-image-viewer-btn km-image-viewer-close"),r=t("button","km-image-viewer-btn km-image-viewer-source"),i=this.image=t("img"),o=this.toolbar=t("div","km-image-viewer-toolbar",[r,n]),a=t("div","km-image-viewer-container",[i]),s=this.viewer=t("div","km-image-viewer",[o,a]);this.hotkeyHandler=this.hotkeyHandler.bind(this),e(n,"click",this.close.bind(this)),e(r,"click",this.viewSource.bind(this)),e(i,"click",this.zoomImage.bind(this)),e(s,"contextmenu",this.toggleToolbar.bind(this)),e(document,"keydown",this.hotkeyHandler)},dispose:function(){this.close(),document.removeEventListener("remove",this.hotkeyHandler)},hotkeyHandler:function(t){this.actived&&t.keyCode===o.esc&&this.close()},toggleToolbar:function(t){t&&t.preventDefault(),this.toolbar.classList.toggle("hidden")},zoomImage:function(t){var e=this.image;"boolean"==typeof t?t&&n(e,"limited"):e.classList.toggle("limited")},viewSource:function(t){window.open(this.image.src)},open:function(t){var e=document.querySelector("input");e&&(e.focus(),e.blur()),this.image.src=t,this.zoomImage(!0),document.body.appendChild(this.viewer),this.actived=!0},close:function(){this.image.src="",document.body.removeChild(this.viewer),this.actived=!1}});return{init:function(){this.viewer=new r},events:{"normal.dblclick":function(t){var e=t.kityEvent.targetShape;"Image"===e.__KityClassName&&e.url&&this.viewer.open(e.url)}}}}))}},t[50]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=t.r(27);a.register("image",(function(){return{defaultOptions:{maxImageWidth:200,maxImageHeight:200},commands:{image:i.createClass("ImageCommand",{base:o,execute:function(t,e,n){var r=t.getSelectedNodes();!function(t,e){var n=document.createElement("img");n.onload=function(){e(n.width,n.height)},n.onerror=function(){e(null)},n.src=t}(e,(function(i,o){r.forEach((function(r){var a=function(t,e,n,r){var i=t/e;return t>n&&i>n/r?e=(t=n)/i:e>r&&(t=(e=r)*i),{width:0|t,height:0|e}}(i,o,t.getOption("maxImageWidth"),t.getOption("maxImageHeight"));r.setData("image",e),r.setData("imageTitle",e&&n),r.setData("imageSize",e&&a),r.render()})),t.fire("saveScene"),t.layout(300)}))},queryState:function(t){var e=t.getSelectedNodes(),n=0;return 0===e.length?-1:(e.forEach((function(t){if(t&&t.getData("image"))return n=0,!1})),n)},queryValue:function(t){var e=t.getSelectedNode();return{url:e.getData("image"),title:e.getData("imageTitle")}}})},renderers:{top:i.createClass("ImageRenderer",{base:s,create:function(t){return new i.Image(t.getData("image"))},shouldRender:function(t){return t.getData("image")},update:function(t,e,n){var r=e.getData("image"),o=e.getData("imageTitle"),a=e.getData("imageSize"),s=e.getStyle("space-top");if(a){o&&t.node.setAttributeNS("http://www.w3.org/1999/xlink","title",o);var c=n.cx-a.width/2,u=n.y-a.height-s;return t.setUrl(r).setX(0|c).setY(0|u).setWidth(0|a.width).setHeight(0|a.height),new i.Box(0|c,0|u,0|a.width,0|a.height)}}})}}}))}},t[51]={value:function(e,n,r){var i=(t.r(17),t.r(33),t.r(15),t.r(19),t.r(21),t.r(9),t.r(20));t.r(27),i.register("KeyboardModule",(function(){function t(t){var e,r=[];t.traverse((function(t){(e=t.getLayoutBox()).width&&e.height&&r.push({left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height,width:e.width,height:e.height,node:t})}));for(var i=0;i<r.length;i++)n(r,i)}function e(t,e){var n,r,s,c,u,l,h;n=i(t.left,e.left),r=o(t.right,e.right),s=i(t.top,e.top),c=o(t.bottom,e.bottom),u=r-n-t.width-e.width,l=c-s-t.height-e.height,h=u<0?l:l<0?u:a(u*u+l*l);var f=t.node,d=e.node;return f.parent==d.parent&&(h/=10),d.parent==f&&(h/=5),h}function n(t,n){for(var r,i,o=t[n],a={},s=0;s<t.length;s++)s!=n&&(i=e(r=t[s],o),r.right<o.left&&(!a.left||i<a.left.dist)&&(a.left={dist:i,node:r.node}),r.left>o.right&&(!a.right||i<a.right.dist)&&(a.right={dist:i,node:r.node}),r.bottom<o.top&&(!a.top||i<a.top.dist)&&(a.top={dist:i,node:r.node}),r.top>o.bottom&&(!a.down||i<a.down.dist)&&(a.down={dist:i,node:r.node}));o.node._nearestNodes={right:a.right&&a.right.node||null,top:a.top&&a.top.node||null,left:a.left&&a.left.node||null,down:a.down&&a.down.node||null}}function r(e,n){var r=e.getSelectedNode();if(!r)return e.select(e.getRoot()),void t(e.getRoot());r._nearestNodes||t(e.getRoot());var i=r._nearestNodes[n];i&&e.select(i,!0)}var i=Math.min,o=Math.max,a=(Math.abs,Math.sqrt);return Math.exp,{events:{layoutallfinish:function(){t(this.getRoot())},"normal.keydown readonly.keydown":function(t){var e=this;["left","right","up","down"].forEach((function(n){t.isShortcutKey(n)&&(r(e,"up"==n?"top":n),t.preventDefault())}))}}}}))}},t[52]={value:function(e,n,r){var i=t.r(17),o=t.r(9),a=t.r(20),s=i.createClass("LayoutCommand",{base:o,execute:function(t,e){t.getSelectedNodes().forEach((function(t){t.layout(e)}))},queryValue:function(t){var e=t.getSelectedNode();if(e)return e.getData("layout")},queryState:function(t){return t.getSelectedNode()?0:-1}}),c=i.createClass("ResetLayoutCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();e.length||(e=[t.getRoot()]),e.forEach((function(t){t.traverse((function(t){t.resetLayoutOffset(),t.isRoot()||t.setData("layout",null)}))})),t.layout(300)},enableReadOnly:!0});a.register("LayoutModule",{commands:{layout:s,resetlayout:c},contextmenu:[{command:"resetlayout"},{divider:!0}],commandShortcutKeys:{resetlayout:"Ctrl+Shift+L"}})}},t[53]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21)),a=t.r(9),s=t.r(20),c=(t.r(27),i.createClass("AppendChildCommand",{base:a,execute:function(t,e){var n=t.getSelectedNode();if(!n)return null;var r=t.createNode(e,n);t.select(r,!0),n.isExpanded()?r.render():(n.expand(),n.renderTree()),t.layout(600)},queryState:function(t){return t.getSelectedNode()?0:-1}})),u=i.createClass("AppendSiblingCommand",{base:a,execute:function(t,e){var n=t.getSelectedNode(),r=n.parent;if(!r)return t.execCommand("AppendChildNode",e);var i=t.createNode(e,r,n.getIndex()+1);i.setGlobalLayoutTransform(n.getGlobalLayoutTransform()),t.select(i,!0),i.render(),t.layout(600)},queryState:function(t){return t.getSelectedNode()?0:-1}}),l=i.createClass("RemoverNodeCommand",{base:a,execute:function(t){var e=t.getSelectedNodes(),n=o.getCommonAncestor.apply(null,e),r=e[0].getIndex();if(e.forEach((function(e){e.isRoot()||t.removeNode(e)})),1==e.length){var i=n.children[r-1]||n.children[r];t.select(i||n||t.getRoot(),!0)}else t.select(n||t.getRoot(),!0);t.layout(600)},queryState:function(t){var e=t.getSelectedNode();return e&&!e.isRoot()?0:-1}}),h=i.createClass("AppendParentCommand",{base:a,execute:function(t,e){var n=t.getSelectedNodes();n.sort((function(t,e){return t.getIndex()-e.getIndex()}));var r=n[0].parent,i=t.createNode(e,r,n[0].getIndex());n.forEach((function(t){i.appendChild(t)})),i.setGlobalLayoutTransform(n[n.length>>1].getGlobalLayoutTransform()),t.select(i,!0),t.layout(600)},queryState:function(t){var e=t.getSelectedNodes();if(!e.length)return-1;var n=e[0].parent;if(!n)return-1;for(var r=1;r<e.length;r++)if(e[r].parent!=n)return-1;return 0}});s.register("NodeModule",(function(){return{commands:{AppendChildNode:c,AppendSiblingNode:u,RemoveNode:l,AppendParentNode:h},commandShortcutKeys:{appendsiblingnode:"normal::Enter",appendchildnode:"normal::Insert|Tab",appendparentnode:"normal::Shift+Tab|normal::Shift+Insert",removenode:"normal::Del|Backspace"}}}))}},t[54]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=t.r(27);a.register("NoteModule",(function(){var t=i.createClass("NoteCommand",{base:o,execute:function(t,e){var n=t.getSelectedNode();n.setData("note",e),n.render(),n.getMinder().layout(300)},queryState:function(t){return 1===t.getSelectedNodes().length?0:-1},queryValue:function(t){var e=t.getSelectedNode();return e&&e.getData("note")}}),e=i.createClass("NoteIcon",{base:i.Group,constructor:function(){this.callBase(),this.width=16,this.height=17,this.rect=new i.Rect(16,17,.5,-8.5,2).fill("transparent"),this.path=(new i.Path).setPathData("M9,9H3V8h6L9,9L9,9z M9,7H3V6h6V7z M9,5H3V4h6V5z M8.5,11H2V2h8v7.5 M9,12l2-2V1H1v11").setTranslate(2.5,-6.5),this.addShapes([this.rect,this.path]),this.on("mouseover",(function(){this.rect.fill("rgba(255, 255, 200, .8)")})).on("mouseout",(function(){this.rect.fill("transparent")})),this.setStyle("cursor","pointer")}});return{renderers:{right:i.createClass("NoteIconRenderer",{base:s,create:function(t){var n=new e;return n.on("mousedown",(function(e){e.preventDefault(),t.getMinder().fire("editnoterequest")})),n.on("mouseover",(function(){t.getMinder().fire("shownoterequest",{node:t,icon:n})})),n.on("mouseout",(function(){t.getMinder().fire("hidenoterequest",{node:t,icon:n})})),n},shouldRender:function(t){return t.getData("note")},update:function(t,e,n){var r=n.right+e.getStyle("space-left"),o=n.cy;return t.path.fill(e.getStyle("color")),t.setTranslate(r,o),new i.Box(r,Math.round(o-t.height/2),t.width,t.height)}})},commands:{note:t}}}))}},t[55]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=(t.r(19),t.r(21),t.r(9),t.r(20)),s=t.r(27),c=i.createClass("OutlineRenderer",{base:s,create:function(t){var e=(new i.Rect).setId(o.uuid("node_outline"));return this.bringToBack=!0,e},update:function(t,e,n){var r=e.getStyle("shape"),o=e.getStyle("padding-left"),a=e.getStyle("padding-right"),s=e.getStyle("padding-top"),c=e.getStyle("padding-bottom"),u={x:n.x-o,y:n.y-s,width:n.width+o+a,height:n.height+s+c},l=e.getStyle("radius");if(r&&"circle"==r){var h=Math.pow;l=(0,Math.round)(Math.sqrt(h(u.width,2)+h(u.height,2))/2),u.x=n.cx-l,u.y=n.cy-l,u.width=2*l,u.height=2*l}var f=e.isSelected()?e.getMinder().isFocused()?"selected-":"blur-selected-":"";return t.setPosition(u.x,u.y).setSize(u.width,u.height).setRadius(l).fill(e.getData("background")||e.getStyle(f+"background")||e.getStyle("background")).stroke(e.getStyle(f+"stroke"||0),e.getStyle(f+"stroke-width")),new i.Box(u)}}),u=i.createClass("ShadowRenderer",{base:s,create:function(t){return this.bringToBack=!0,new i.Rect},shouldRender:function(t){return t.getStyle("shadow")},update:function(t,e,n){t.setPosition(n.x+4,n.y+5).fill(e.getStyle("shadow"));var r=e.getStyle("shape");if(r){if("circle"==r){var i=Math.max(n.width,n.height);t.setSize(i,i),t.setRadius(i/2)}}else t.setSize(n.width,n.height),t.setRadius(e.getStyle("radius"))}}),l=new i.Marker;l.setWidth(10),l.setHeight(12),l.setRef(0,0),l.setViewBox(-6,-4,8,10),l.addShape((new i.Path).setPathData("M-5-3l5,3,-5,3").stroke("#33ffff"));var h=/wire/.test(window.location.href),f=i.createClass("WireframeRenderer",{base:s,create:function(){var t=new i.Group,e=this.oxy=(new i.Path).stroke("#f6f").setPathData("M0,-50L0,50M-50,0L50,0"),n=this.wireframe=(new i.Rect).stroke("lightgreen"),r=this.vectorIn=(new i.Path).stroke("#66ffff"),o=this.vectorOut=(new i.Path).stroke("#66ffff");return r.setMarker(l,"end"),o.setMarker(l,"end"),t.addShapes([e,n,r,o])},shouldRender:function(){return h},update:function(t,e,n){this.wireframe.setPosition(n.x,n.y).setSize(n.width,n.height);var r=e.getVertexIn(),i=e.getVertexOut(),o=e.getLayoutVectorIn().normalize(30),a=e.getLayoutVectorOut().normalize(30);this.vectorIn.setPathData(["M",r.offset(o.reverse()),"L",r]),this.vectorOut.setPathData(["M",i,"l",a])}});a.register("OutlineModule",(function(){return{events:h?{ready:function(){this.getPaper().addResource(l)},layoutallfinish:function(){this.getRoot().traverse((function(t){t.getRenderer("WireframeRenderer").update(null,t,t.getContentBox())}))}}:null,renderers:{outline:c,outside:[u,f]}}}))}},t[56]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=(t.r(19),t.r(21),t.r(9)),s=t.r(20),c=t.r(27);s.register("PriorityModule",(function(){var t=[null,["#FF1200","#840023"],["#0074FF","#01467F"],["#00AF00","#006300"],["#FF962E","#B25000"],["#A464FF","#4720C4"],["#A3A3A3","#515151"],["#A3A3A3","#515151"],["#A3A3A3","#515151"],["#A3A3A3","#515151"]],e="M20,10c0,3.866-3.134,7-7,7H7c-3.866,0-7-3.134-7-7V7c0-3.866,3.134-7,7-7h6c3.866,0,7,3.134,7,7V10z",n="priority",r=i.createClass("PriorityIcon",{base:i.Group,constructor:function(){this.callBase(),this.setSize(20),this.create(),this.setId(o.uuid("node_priority"))},setSize:function(t){this.width=this.height=t},create:function(){var t,n,r;(new i.Path).setPathData(e).fill("white"),t=(new i.Path).setPathData("M0,13c0,3.866,3.134,7,7,7h6c3.866,0,7-3.134,7-7V7H0V13z").setTranslate(.5,.5),n=(new i.Path).setPathData(e).setOpacity(.8).setTranslate(.5,.5),r=(new i.Text).setX(this.width/2-.5).setY(this.height/2).setTextAnchor("middle").setVerticalAlign("middle").setFontItalic(!0).setFontSize(12).fill("white"),this.addShapes([t,n,r]),this.mask=n,this.back=t,this.number=r},setValue:function(e){var n=this.back,r=this.mask,i=this.number,o=t[e];o&&(n.fill(o[1]),r.fill(o[0])),i.setContent(e)}});return{commands:{priority:i.createClass("SetPriorityCommand",{base:a,execute:function(t,e){for(var r=t.getSelectedNodes(),i=0;i<r.length;i++)r[i].setData(n,e||null).render();t.layout()},queryValue:function(t){for(var e,r=t.getSelectedNodes(),i=0;i<r.length&&!(e=r[i].getData(n));i++);return e||null},queryState:function(t){return t.getSelectedNodes().length?0:-1}})},renderers:{left:i.createClass("PriorityRenderer",{base:c,create:function(t){return new r},shouldRender:function(t){return t.getData(n)},update:function(t,e,r){var o,a,s=e.getData(n),c=e.getStyle("space-left");return t.setValue(s),o=r.left-t.width-c,a=-t.height/2,t.setTranslate(o,a),new i.Box({x:o,y:a,width:t.width,height:t.height})}})}}}))}},t[57]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=(t.r(19),t.r(21),t.r(9)),s=t.r(20),c=t.r(27);s.register("ProgressModule",(function(){var t="progress",e=(new i.LinearGradient).pipe((function(t){t.setStartPosition(0,0),t.setEndPosition(0,1),t.addStop(0,"#fff"),t.addStop(1,"#ccc")}));this.getPaper().addResource(e);var n=i.createClass("ProgressIcon",{base:i.Group,constructor:function(t){this.callBase(),this.setSize(20),this.create(),this.setValue(t),this.setId(o.uuid("node_progress")),this.translate(.5,.5)},setSize:function(t){this.width=this.height=t},create:function(){var t,n,r,o,a;t=new i.Circle(9).fill("#FFED83"),n=new i.Pie(9,0).fill("#43BC00"),r=(new i.Path).setPathData("M10,3c4.418,0,8,3.582,8,8h1c0-5.523-3.477-10-9-10S1,5.477,1,11h1C2,6.582,5.582,3,10,3z").setTranslate(-10,-10).fill("#8E8E8E"),o=(new i.Path).setTranslate(-10,-10).setPathData("M10,0C4.477,0,0,4.477,0,10c0,5.523,4.477,10,10,10s10-4.477,10-10C20,4.477,15.523,0,10,0zM10,18c-4.418,0-8-3.582-8-8s3.582-8,8-8s8,3.582,8,8S14.418,18,10,18z").fill(e),a=(new i.Path).setTranslate(-10,-10).setPathData("M15.812,7.896l-6.75,6.75l-4.5-4.5L6.25,8.459l2.812,2.803l5.062-5.053L15.812,7.896z").fill("#EEE"),this.addShapes([t,n,r,a,o]),this.pie=n,this.check=a},setValue:function(t){this.pie.setAngle(-360*(t-1)/8),this.check.setVisible(9==t)}});return{commands:{progress:i.createClass("ProgressCommand",{base:a,execute:function(e,n){for(var r=e.getSelectedNodes(),i=0;i<r.length;i++)r[i].setData(t,n||null).render();e.layout()},queryValue:function(e){for(var n,r=e.getSelectedNodes(),i=0;i<r.length&&!(n=r[i].getData(t));i++);return n||null},queryState:function(t){return t.getSelectedNodes().length?0:-1}})},renderers:{left:i.createClass("ProgressRenderer",{base:c,create:function(t){return new n},shouldRender:function(e){return e.getData(t)},update:function(e,n,r){var o,a,s=n.getData(t),c=n.getStyle("space-left");return e.setValue(s),o=r.left-e.width-c,a=-e.height/2,e.setTranslate(o+e.width/2,a+e.height/2),new i.Box(o,a,e.width,e.height)}})}}}))}},t[58]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(9)),s=t.r(20),c=t.r(27);s.register("Resource",(function(){var t=function(){var t,e,n,r,i,o,a,s,c,u;return 4*(1<<30),t=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479],u=function(t){return t<0&&(t+=4294967296),("00000000"+t.toString(16)).slice(-8)},o=[[16,50,84,118,152,186,220,254],[174,132,249,109,193,32,123,53],[139,12,37,223,234,99,23,73],[151,19,205,235,98,165,4,143],[9,117,66,250,30,203,134,211],[194,166,176,56,212,87,239,145],[92,241,222,164,112,54,41,184],[189,231,28,147,5,79,104,162],[246,158,59,128,44,125,65,90],[42,72,103,81,191,233,195,13]],a=function(t,e,n){var r=s[t]^s[e];s[t]=r>>>n|r<<32-n},e=function(t,e,u,l,h){var f=r+o[n][t]%16,d=r+(o[n][t]>>4);u=4+u%4,l=8+l%4,h=12+h%4,s[e%=4]+=s[u]+(c[f]^i[d%16]),a(h,e,16),s[l]+=s[h],a(u,l,12),s[e]+=s[u]+(c[d]^i[f%16]),a(h,e,8),s[l]+=s[h],a(u,l,7)},function(o,a){var l,h,f,d,p,g,m,v;for(a instanceof Array&&4===a.length||(a=[0,0,0,0]),h=t.slice(0),l=i.slice(0,8),n=0;n<4;n+=1)l[n]^=a[n];if(p=(f=16*o.length)%512>446||f%512==0?0:f,f%512==432)o+="老";else{for(o+="耀";o.length%32!=27;)o+="\0";o+=""}for(c=[],v=0;v<o.length;v+=2)c.push(65536*o.charCodeAt(v)+o.charCodeAt(v+1));for(c.push(0),c.push(f),g=c.length-16,m=0,r=0;r<c.length;r+=16){for(m+=512,d=r===g?p:Math.min(f,m),(s=h.concat(l))[12]^=d,s[13]^=d,n=0;n<10;n+=1)for(v=0;v<8;v+=1)v<4?e(v,v,v,v,v):e(v,v,v+1,v+2,v+3);for(v=0;v<8;v+=1)h[v]^=a[v%4]^s[v]^s[v+8]}return h.map(u).join("")}}(),e=[51,303,75,200,157,0,26,254].map((function(t){return i.Color.createHSL(t,100,85)}));i.extendClass(o,{getHashCode:function(e){var n,r=1315423911;for(n=(e=t(e)).length-1;n>=0;n--)r^=(r<<5)+e.charCodeAt(n)+(r>>2);return 2147483647&r},getResourceColor:function(t){var n,r=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(r,t)||(n=this._getNextResourceColorIndex(),r[t]=n),e[r[t]]||i.Color.createHSL(Math.floor(this.getHashCode(t)/2147483647*359),100,85)},getUsedResource:function(){var t,e=this._getResourceColorIndexMapping(),n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n},_getNextResourceColorIndex:function(){var t,n,r,i=this._getResourceColorIndexMapping();for(t in n=[],i)Object.prototype.hasOwnProperty.call(i,t)&&n.push(i[t]);for(r=0;r<e.length;r++)if(!~n.indexOf(r))return r;return-1},_getResourceColorIndexMapping:function(){return this._resourceColorMapping||(this._resourceColorMapping={})}});var n=i.createClass("ResourceCommand",{base:a,execute:function(t,e){var n=t.getSelectedNodes();"string"==typeof e&&(e=[e]),n.forEach((function(t){t.setData("resource",e).render()})),t.layout(200)},queryValue:function(t){var e=t.getSelectedNodes(),n=[];return e.forEach((function(t){var e=t.getData("resource");e&&e.forEach((function(t){~n.indexOf(t)||n.push(t)}))})),n},queryState:function(t){return t.getSelectedNode()?0:-1}}),r=i.createClass("ResourceOverlay",{base:i.Group,constructor:function(){var t,e;this.callBase(),e=this.rect=(new i.Rect).setRadius(4),t=this.text=(new i.Text).setFontSize(12).setVerticalAlign("middle"),this.addShapes([e,t])},setValue:function(t,e){var n,r,i;n=this.text,t==this.lastResourceName?r=this.lastBox:(n.setContent(t),r=n.getBoundaryBox(),this.lastResourceName=t,this.lastBox=r),n.setX(8).fill(e.dec("l",70)),(i=this.rect).setPosition(0,r.y-4),this.width=Math.round(r.width+16),this.height=Math.round(r.height+8),i.setSize(this.width,this.height),i.fill(e)}});return{commands:{resource:n},renderers:{right:i.createClass("ResourceRenderer",{base:c,create:function(t){return this.overlays=[],new i.Group},shouldRender:function(t){return t.getData("resource")&&t.getData("resource").length},update:function(t,e,n){var o=e.getStyle("space-right"),a=this.overlays,s=e.getData("resource").filter((function(t){return null!==t}));if(0!==s.length){var c,u,l,h=e.getMinder();for(l=0,c=0;c<s.length;c++)l+=o,(u=a[c])||(u=new r,a.push(u),t.addShape(u)),u.setVisible(!0),u.setValue(s[c],h.getResourceColor(s[c])),u.setTranslate(l,-1),l+=u.width;for(;u=a[c++];)u.setVisible(!1);return t.setTranslate(n.right,0),new i.Box({x:n.right,y:Math.round(-a[0].height/2),width:l,height:a[0].height})}}})}}}))}},t[59]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9),t.r(20));t.r(27),o.register("Select",(function(){var t=this,e=t.getRenderContainer(),n=function(){var n=null,r=new i.Path,o=!1;return{selectStart:function(t){if(!t.originEvent.button&&!t.originEvent.altKey)return n?this.selectEnd():void(n=t.getPosition(e).round())},selectMove:function(a){if("textedit"!=t.getStatus()&&n){var s=n,c=a.getPosition(e);if(!o){if(i.Vector.fromPoints(s,c).length()<10)return;o=!0,e.addShape(r),r.fill(t.getStyle("marquee-background")).stroke(t.getStyle("marquee-stroke")).setOpacity(.8).getDrawer().clear()}var u=new i.Box(s.x,s.y,c.x-s.x,c.y-s.y),l=[];u.left=Math.round(u.left),u.top=Math.round(u.top),u.right=Math.round(u.right),u.bottom=Math.round(u.bottom),r.getDrawer().pipe((function(){this.clear(),this.moveTo(u.left,u.top),this.lineTo(u.right,u.top),this.lineTo(u.right,u.bottom),this.lineTo(u.left,u.bottom),this.close()})),t.getRoot().traverse((function(t){t.getLayoutBox().intersect(u).isEmpty()||l.push(t)})),t.select(l,!0),window.getSelection().removeAllRanges()}},selectEnd:function(t){n&&(n=null),o&&(r.fadeOut(200,"ease",0,(function(){r.remove&&r.remove()})),o=!1)}}}(),r=null,o=null;return{init:function(){window.addEventListener("mouseup",(function(){n.selectEnd()}))},events:{mousedown:function(t){var e=t.getTargetNode();e?t.isShortcutKey("Ctrl")?this.toggleSelect(e):e.isSelected()?this.isSingleSelect()||(r=e,o=t.getPosition()):this.select(e,!0):(this.removeAllSelectedNodes(),n.selectStart(t),this.setStatus("normal"))},mousemove:n.selectMove,mouseup:function(t){var e=t.getTargetNode();if(e&&e==r){var a=t.getPosition();i.Vector.fromPoints(o,a).length()<1&&this.select(r,!0),r=null}n.selectEnd(t)},"normal.keydown":function(t){if(t.isShortcutKey("ctrl+a")){var e=[];this.getRoot().traverse((function(t){e.push(t)})),this.select(e,!0),t.preventDefault()}}}}}))}},t[60]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20);t.r(27),a.register("StyleModule",(function(){function t(t){for(var n=t.getData(),r=0;r<e.length;r++)if(e[r]in n)return!0}var e=["font-size","font-family","font-weight","font-style","background","color"],n=null;return{commands:{copystyle:i.createClass("CopyStyleCommand",{base:o,execute:function(t){var r=t.getSelectedNode().getData();return n={},e.forEach((function(t){t in r?n[t]=r[t]:(n[t]=null,delete n[t])})),n},queryState:function(e){var n=e.getSelectedNodes();return 1!==n.length?-1:t(n[0])?0:-1}}),pastestyle:i.createClass("PastStyleCommand",{base:o,execute:function(t){return t.getSelectedNodes().forEach((function(t){for(var e in n)n.hasOwnProperty(e)&&t.setData(e,n[e])})),t.renderNodeBatch(t.getSelectedNodes()),t.layout(300),n},queryState:function(t){return n&&t.getSelectedNodes().length?0:-1}}),clearstyle:i.createClass("ClearStyleCommand",{base:o,execute:function(t){return t.getSelectedNodes().forEach((function(t){e.forEach((function(e){t.setData(e)}))})),t.renderNodeBatch(t.getSelectedNodes()),t.layout(300),n},queryState:function(e){var n=e.getSelectedNodes();if(!n.length)return-1;for(var r=0;r<n.length;r++)if(t(n[r]))return 0;return-1}})}}}))}},t[61]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=(t.r(19),t.r(21)),s=t.r(9),c=t.r(20),u=t.r(27),l={safari:{"微软雅黑,Microsoft YaHei":-.17,"楷体,楷体_GB2312,SimKai":-.1,"隶书, SimLi":-.1,"comic sans ms":-.23,"impact,chicago":-.15,"times new roman":-.1,"arial black,avant garde":-.17,default:0},ie:{10:{"微软雅黑,Microsoft YaHei":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"times new roman":.04,"arial black,avant garde":-.17,default:-.15},11:{"微软雅黑,Microsoft YaHei":-.17,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"times new roman":.04,"sans-serif":-.16,"arial black,avant garde":-.17,default:-.15}},edge:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.17,"impact,chicago":-.08,"sans-serif":-.16,"arial black,avant garde":-.17,default:-.15},sg:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.05,"comic sans ms":-.22,"impact,chicago":-.16,"times new roman":-.03,"arial black,avant garde":-.22,default:-.15},chrome:{Mac:{"andale mono":-.05,"comic sans ms":-.3,"impact,chicago":-.13,"times new roman":-.1,"arial black,avant garde":-.17,default:0},Win:{"微软雅黑,Microsoft YaHei":-.15,"arial,helvetica,sans-serif":-.02,"arial black,avant garde":-.2,"comic sans ms":-.2,"impact,chicago":-.12,"times new roman":-.02,default:-.15},Lux:{"andale mono":-.05,"comic sans ms":-.3,"impact,chicago":-.13,"times new roman":-.1,"arial black,avant garde":-.17,default:0}},firefox:{Mac:{"微软雅黑,Microsoft YaHei":-.2,"宋体,SimSun":.05,"comic sans ms":-.2,"impact,chicago":-.15,"arial black,avant garde":-.17,"times new roman":-.1,default:.05},Win:{"微软雅黑,Microsoft YaHei":-.16,"andale mono":-.17,"arial,helvetica,sans-serif":-.17,"comic sans ms":-.22,"impact,chicago":-.23,"times new roman":-.22,"sans-serif":-.22,"arial black,avant garde":-.17,default:-.16},Lux:{"宋体,SimSun":-.2,"微软雅黑,Microsoft YaHei":-.2,"黑体, SimHei":-.2,"隶书, SimLi":-.2,"楷体,楷体_GB2312,SimKai":-.2,"andale mono":-.2,"arial,helvetica,sans-serif":-.2,"comic sans ms":-.2,"impact,chicago":-.2,"times new roman":-.2,"sans-serif":-.2,"arial black,avant garde":-.2,default:-.16}}},h=i.createClass("TextRenderer",{base:u,create:function(){return(new i.Group).setId(o.uuid("node_text"))},update:function(t,e){function n(t){return e.getData(t)||e.getStyle(t)}var r,o=e.getText(),a=o?o.split("\n"):[" "],s=e.getStyle("line-height"),c=n("font-size"),u=n("font-family")||"default",h=-(s*c*a.length-(s-1)*c)/2,f=i.Browser;f.chrome||f.opera||f.bd||"chrome"===f.lb?r=l.chrome[f.platform][u]:f.gecko?r=l.firefox[f.platform][u]:f.sg?r=l.sg[u]:f.safari?r=l.safari[u]:f.ie?r=l.ie[f.version][u]:f.edge?r=l.edge[u]:f.lb&&(r=.9),t.setTranslate(0,(r||0)*c);var d=new i.Box,p=Math.round;this.setTextStyle(e,t);var g,m,v,b=a.length,y=t.getItems().length;if(b<y)for(g=b;t.getItem(g);)t.removeItem(g);else if(b>y)for(var w=b-y;w--;)m=(new i.Text).setAttr("text-rendering","inherit"),i.Browser.ie||i.Browser.edge?m.setVerticalAlign("top"):m.setAttr("dominant-baseline","text-before-edge"),t.addItem(m);for(g=0;v=a[g],m=t.getItem(g);g++)m.setContent(v),(i.Browser.ie||i.Browser.edge)&&m.fixPosition();this.setTextStyle(e,t);var x=e.getText()+["font-size","font-name","font-weight","font-style"].map(n).join("/");return e._currentTextHash==x&&e._currentTextGroupBox?e._currentTextGroupBox:(e._currentTextHash=x,function(){t.eachItem((function(t,e){var n=h+t*c*s;e.setY(n);var r=e.getBoundaryBox();d=d.merge(new i.Box(0,n,r.height&&r.width||1,c))}));var n=new i.Box(p(d.x),p(d.y),p(d.width),p(d.height));return e._currentTextGroupBox=n,n})},setTextStyle:function(t,e){h._styleHooks.forEach((function(n){n(t,e)}))}}),f=i.createClass({base:s,execute:function(t,e){var n=t.getSelectedNode();n&&(n.setText(e),n.render(),t.layout())},queryState:function(t){return 1==t.getSelectedNodes().length?0:-1},queryValue:function(t){var e=t.getSelectedNode();return e?e.getText():null}});o.extend(h,{_styleHooks:[],registerStyleHook:function(t){h._styleHooks.push(t)}}),i.extendClass(a,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),c.register("text",{commands:{text:f},renderers:{center:h}}),r.exports=h}},t[62]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=(t.r(27),i.createClass("ViewDragger",{constructor:function(t){this._minder=t,this._enabled=!1,this._bind();var e=this;this._minder.getViewDragger=function(){return e},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(t){var e=this._minder.getPaper();e.setStyle("cursor",t?"pointer":"default"),e.setStyle("cursor",t?"-webkit-grab":"default"),this._enabled=t},timeline:function(){return this._moveTimeline},move:function(t,e){var n=(this._minder,this.getMovement().offset(t));this.moveTo(n,e)},moveTo:function(t,e){if(e){var n=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new i.Animator(this.getMovement(),t,(function(t,e){n.moveTo(e)})),e,"easeOutCubic").timeline(),this._moveTimeline.on("finish",(function(){n._moveTimeline=null})),this}this._minder.getRenderContainer().setTranslate(t.round()),this._minder.fire("viewchange")},getMovement:function(){var t=this._minder.getRenderContainer().transform.translate;return t?t[0]:new i.Point},getView:function(){var t=this._minder,e=t._lastClientSize||{width:t.getRenderTarget().clientWidth,height:t.getRenderTarget().clientHeight},n=this.getMovement(),r=new i.Box(0,0,e.width,e.height);return t.getPaper().getViewPortMatrix().inverse().translate(-n.x,-n.y).transformBox(r)},_bind:function(){function t(t){r&&(r=null,t.stopPropagation(),n&&(e.setEnabled(!1),n=!1,"hand"==e._minder.getStatus()&&e._minder.rollbackStatus()),e._minder.getPaper().setStyle("cursor","hand"==e._minder.getStatus()?"-webkit-grab":"default"),e._minder.fire("viewchanged"))}var e=this,n=!1,r=null,o=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",(function(t){2==t.originEvent.button&&t.originEvent.preventDefault(),(t.getTargetNode()==this.getRoot()||2==t.originEvent.button||t.originEvent.altKey)&&(r=t.getPosition("view"),n=!0)})).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",(function(t){"touchmove"==t.type&&t.preventDefault(),n&&i.Vector.fromPoints(r,t.getPosition("view")).length()>10&&(this.setStatus("hand",!0),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))})).on("hand.beforemousedown hand.beforetouchstart",(function(t){e.isEnabled()&&(r=t.getPosition("view"),t.stopPropagation(),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))})).on("hand.beforemousemove hand.beforetouchmove",(function(t){if(r){o=t.getPosition("view");var n=i.Vector.fromPoints(r,o);e.move(n),t.stopPropagation(),t.preventDefault(),t.originEvent.preventDefault(),r=o}})).on("mouseup touchend",t),window.addEventListener("mouseup",t),this._minder.on("contextmenu",(function(t){t.preventDefault()}))}}));a.register("View",(function(){var t=i.createClass("ToggleHandCommand",{base:o,execute:function(t){"hand"!=t.getStatus()?t.setStatus("hand",!0):t.rollbackStatus(),this.setContentChanged(!1)},queryState:function(t){return"hand"==t.getStatus()?1:0},enableReadOnly:!0}),e=i.createClass("CameraCommand",{base:o,execute:function(t,e){e=e||t.getRoot();var n=t.getPaper().getViewPort(),r=e.getRenderContainer().getRenderBox("view"),o=n.center.x-r.x-r.width/2,a=n.center.y-r.y,s=t._viewDragger,c=t.getOption("viewAnimationDuration");s.move(new i.Point(o,a),c),this.setContentChanged(!1)},enableReadOnly:!0}),n=i.createClass("MoveCommand",{base:o,execute:function(t,e){var n=t._viewDragger,r=t._lastClientSize,o=t.getOption("viewAnimationDuration");switch(e){case"up":n.move(new i.Point(0,r.height/2),o);break;case"down":n.move(new i.Point(0,-r.height/2),o);break;case"left":n.move(new i.Point(r.width/2,0),o);break;case"right":n.move(new i.Point(-r.width/2,0),o)}},enableReadOnly:!0});return{init:function(){this._viewDragger=new s(this)},commands:{hand:t,camera:e,move:n},events:{statuschange:function(t){this._viewDragger.setEnabled("hand"==t.currentStatus)},mousewheel:function(t){var e,n;if(!(t=t.originEvent).ctrlKey&&!t.shiftKey){"wheelDeltaX"in t?(e=t.wheelDeltaX||0,n=t.wheelDeltaY||0):(e=0,n=t.wheelDelta),this._viewDragger.move({x:e/2.5,y:n/2.5});var r=this;clearTimeout(this._mousewheeltimer),this._mousewheeltimer=setTimeout((function(){r.fire("viewchanged")}),100),t.preventDefault()}},"normal.dblclick readonly.dblclick":function(t){t.kityEvent.targetShape instanceof i.Paper&&this.execCommand("camera",this.getRoot(),800)},"paperrender finishInitHook":function(){this.getRenderTarget()&&(this.execCommand("camera",null,0),this._lastClientSize={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight})},resize:function(t){var e={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight},n=this._lastClientSize;this._viewDragger.move(new i.Point((e.width-n.width)/2|0,(e.height-n.height)/2|0)),this._lastClientSize=e},"selectionchange layoutallfinish":function(t){var e=this.getSelectedNode(),n=this;if(i.Browser.edge&&this.fire("paperrender"),e){var r=this._viewDragger,o=r.timeline();if(o)return void o.on("finish",(function(){n.fire("selectionchange")}));var a=r.getView(),s=e.getLayoutBox(),c=0,u=0;s.right>a.right?c+=a.right-s.right-50:s.left<a.left&&(c+=a.left-s.left+50),s.bottom>a.bottom&&(u+=a.bottom-s.bottom-50),s.top<a.top&&(u+=a.top-s.top+50),(c||u)&&r.move(new i.Point(c,u),100)}}}}}))}},t[63]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(9)),s=t.r(20);t.r(27),s.register("Zoom",(function(){function t(){var t=r._zoomValue>=100?"optimize-speed":"geometricPrecision";r.getRenderContainer().setAttr("text-rendering",t)}function e(e,r){if(e.getPaper().getViewPort(),r){t();var o=e.getOption("zoomAnimationDuration");if(e.getRoot().getComplex()>200||!o)e._zoomValue=r,e.zoom(r),e.fire("viewchange");else{var a=new i.Animator({beginValue:e._zoomValue,finishValue:r,setter:function(t,e){t.zoom(e)}});e._zoomValue=r,n&&n.pause(),(n=a.start(e,o,"easeInOutSine")).on("finish",(function(){e.fire("viewchange")}))}e.fire("zoom",{zoom:r})}}var n,r=this;i.extendClass(o,{zoom:function(t){var e=this.getPaper(),n=e.getViewPort();n.zoom=t/100,n.center={x:n.center.x,y:n.center.y},e.setViewPort(n),100==t&&function(t){var e=t.shapeNode,n=e.getCTM(),r=new i.Matrix(n.a,n.b,n.c,n.d,.5+(0|n.e),.5+(0|n.f));e.setAttribute("transform","matrix("+r.toString()+")")}(e)},getZoomValue:function(){return this._zoomValue}});var s=i.createClass("Zoom",{base:a,execute:e,queryValue:function(t){return t._zoomValue}}),c=i.createClass("ZoomInCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=0;e<n.length;e++)if(n[e]>t._zoomValue)return n[e];return 0},enableReadOnly:!0}),u=i.createClass("ZoomOutCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=n.length-1;e>=0;e--)if(n[e]<t._zoomValue)return n[e];return 0},enableReadOnly:!0});return{init:function(){this._zoomValue=100,this.setDefaultOptions({zoom:[10,20,50,100,200]}),t()},commands:{zoomin:c,zoomout:u,zoom:s},events:{"normal.mousewheel readonly.mousewheel":function(t){if(t.originEvent.ctrlKey||t.originEvent.metaKey){var e=t.originEvent.wheelDelta,n=this;Math.abs(e)>100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout((function(){n.getPaper()._zoom,e>0?n.execCommand("zoomin"):e<0&&n.execCommand("zoomout")}),100),t.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}}))}},t[64]={value:function(e,n,r){t.r(12).registerProtocol("json",r.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(t)}})}},t[65]={value:function(e,n,r){function i(t){return o(t,1).join("\n")}function o(t,e){var n=[],r=function(t){for(var e="";t--;)e+="#";return e}(e=e||1);n.push(r+" "+t.data.text),n.push(f);var i=t.data.note;if(i){var a=/^#/.test(i);a&&(n.push(d),i=i.replace(/^#+/gm,(function(t){return r+t}))),n.push(i),a&&n.push(p),n.push(f)}return t.children&&t.children.forEach((function(t){n=n.concat(o(t,e+1))})),n}function a(t,e){var n={data:{text:t,note:""}};return e&&(e.children?e.children.push(n):e.children=[n]),n}function s(t,e){t.data.note+=e+"\n"}function c(t){var e=/^(#+)?\s*(.*)$/.exec(t);return{level:e[1]&&e[1].length||null,content:e[2],noteStart:t==d,noteClose:t==p,codeBlock:/^\s*```/.test(t)}}function u(t){if(/\S/.test(t.data.note)){for(var e=t.data.note.split("\n");e.length&&!/\S/.test(e[0]);)e.shift();for(;e.length&&!/\S/.test(e[e.length-1]);)e.pop();t.data.note=e.join("\n")}else t.data.note=null,delete t.data.note;t.children&&t.children.forEach(u)}var l=t.r(12),h=/\r\n|\r|\n/,f="",d="\x3c!--Note--\x3e",p="\x3c!--/Note--\x3e";l.registerProtocol("markdown",r.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(t){return i(t.root)},decode:function(t){return function(t){var e,n,r,i,o,l,f,d={};t=t.replace(/^(.+)\n={3,}/,(function(t,e){return"# "+e})),e=t.split(h);for(var p=0;p<e.length;p++)(r=c(n=e[p])).noteClose?l=!1:r.noteStart?l=!0:(f=r.codeBlock?!f:f,l||f||!r.level||r.level>i+1?o&&s(o,n):(i=r.level,o=a(r.content,d[i-1]),d[i]=o));return u(d[1]),d[1]}(t)}})}},t[66]={value:function(e,n,r){function i(t,e){return new s((function(e,n){var r=document.createElement("img");r.onload=function(){e({element:this,x:t.x,y:t.y,width:t.width,height:t.height})},r.onerror=function(t){n(t)},r.crossOrigin="anonymous",r.src=t.url}))}var o=t.r(17),a=t.r(12),s=t.r(25),c=window.URL||window.webkitURL||window;a.registerProtocol("png",r.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:function(t,e,n){function r(t,e){t.save(),t.fillStyle=e,t.fillRect(0,0,f.width,f.height),t.restore()}function a(t,e,n,r,i,o){i&&o?t.drawImage(e,n+S,r+S,i,o):t.drawImage(e,n+S,r+S)}function u(t){return t.toDataURL("image/png")}function l(t){var e=t.map((function(t){return function(t,e){return s((function(e,n){var r=new XMLHttpRequest;r.open("GET",t.url+"?_="+Date.now(),!0),r.responseType="blob",r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var n=r.response,i=document.createElement("img");i.src=c.createObjectURL(n),i.onload=function(){c.revokeObjectURL(i.src),e({element:i,x:t.x,y:t.y,width:t.width,height:t.height})}}},r.send()}))}(t)}));return s.all(e)}function h(){return i({url:A}).then((function(t){return a(d,t.element,w,x,t.width,t.height),l(_)})).then((function(t){for(var e=0;e<t.length;e++)a(d,t[e].element,t[e].x+w,t[e].y+x,t[e].width,t[e].height);c.revokeObjectURL(A),document.body.appendChild(f);var n=u(f);return document.body.removeChild(f),n}),(function(t){alert("脑图的节点中包含跨域图片,导出的 png 中节点图片不显示,你可以替换掉这些跨域的图片并重试。"),c.revokeObjectURL(A),document.body.appendChild(f);var e=u(f);return document.body.removeChild(f),e}))}var f=document.createElement("canvas"),d=f.getContext("2d"),p=e.getStyle("background").toString(),g=/url\(\"(.+)\"\)/.exec(p),m=o.Color.parse(p),v=function(t){var e,n,r,i,o,a,s=t.getPaper(),u=(s.container,t.getRenderContainer()),l=u.getRenderBox(),h=l.width+1,f=l.height+1;e=s.shapeNode.getAttribute("transform"),s.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),u.translate(-l.x,-l.y),n=s.container.innerHTML,u.translate(l.x,l.y),s.shapeNode.setAttribute("transform",e),(r=document.createElement("div")).innerHTML=n,(i=r.querySelector("svg")).setAttribute("width",l.width+1),i.setAttribute("height",l.height+1),i.setAttribute("style",'font-family: Arial, "Microsoft Yahei","Heiti SC";'),(r=document.createElement("div")).appendChild(i),n=(n=(n=(n=r.innerHTML).replace(' xmlns="http://www.w3.org/2000/svg" xmlns:NS1="" NS1:ns1:xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:NS2="" NS2:xmlns:ns1=""',"")).replace(/ |[\x00-\x1F\x7F-\x9F]/g,"")).replace(/NS\d+:title/gi,"xlink:title"),o=new Blob([n],{type:"image/svg+xml"}),a=c.createObjectURL(o);var d=[];return function e(n){if((r=n.data).image){t.renderNode(n);var r,i=(r=n.data).image,o=r.imageSize,a=n.getRenderBox("ImageRenderer",t.getRenderContainer()),s={url:i,width:o.width,height:o.height,x:-u.getBoundaryBox().x+a.x,y:-u.getBoundaryBox().y+a.y};d.push(s)}if("collapse"!==r.expandState)for(var c=n.getChildren(),l=0;l<c.length;l++)e(c[l])}(t.getRoot()),{width:h,height:f,dataUrl:a,xml:n,imagesInfo:d}}(e),b=n&&n.width&&n.width>v.width?n.width:v.width,y=n&&n.height&&n.height>v.height?n.height:v.height,w=n&&n.width&&n.width>v.width?(n.width-v.width)/2:0,x=n&&n.height&&n.height>v.height?(n.height-v.height)/2:0,A=v.dataUrl,_=v.imagesInfo,S=20;return f.width=b+2*S,f.height=y+2*S,g?i({url:g[1]}).then((function(t){return r(d,d.createPattern(t.element,"repeat")),h()})):(r(d,m.toString()),h())}})}},t[67]={value:function(e,n,r){function i(t,e,n){t.style.visibility="hidden",function t(e,n,r){if(e&&"defs"!==e.tagName){if("transparent"===e.getAttribute("fill")&&e.setAttribute("fill","none"),e.getAttribute("marker-end")&&e.removeAttribute("marker-end"),n=n||0,r=r||0,e.getAttribute("transform")){var i=function(t,e){var n;try{n=e.getScreenCTM().inverse()}catch(t){throw new Error("Can not inverse source element' ctm.")}return n.multiply(t.getScreenCTM())}(e,e.parentElement);n-=i.e,r-=i.f,e.removeAttribute("transform")}switch(e.tagName.toLowerCase()){case"g":break;case"path":var o=e.getAttribute("d");return void(o&&(o=function(t,e){e instanceof Function||(e=function(){});for(var n=[],r=[],i=[],o=0,a=t.length;o<a;o++)switch(t[o]){case"M":case"L":case"T":case"S":case"A":case"C":case"H":case"V":case"Q":i.length&&(r.push(i.join("")),i=[]),","===r[r.length-1]&&r.pop(),r.length&&(e(r),n.push(r.join("")),r=[]),r.push(t[o]);break;case"Z":case"z":r.push(i.join(""),t[o]),e(r),n.push(r.join("")),i=[],r=[];break;case".":case"e":i.push(t[o]);break;case"-":"e"!==t[o-1]&&(i.length&&r.push(i.join(""),","),i=[]),i.push("-");break;case" ":case",":i.length&&(r.push(i.join(""),","),i=[]);break;default:/\d/.test(t[o])?i.push(t[o]):i.length?(r.push(i.join(""),t[o]),i=[]):(","===r[r.length-1]&&r.pop(),r.push(t[o])),o+1===a&&(i.length&&r.push(i.join("")),e(r),n.push(r.join("")),i=null,r=null)}return n.join("")}(o,(function(t){switch(t[0]){case"V":t[1]=+t[1]-r;break;case"H":t[1]=+t[1]-n;break;case"M":case"L":case"T":t[1]=+t[1]-n,t[3]=+t[3]-r;break;case"Q":case"S":t[1]=+t[1]-n,t[3]=+t[3]-r,t[5]=+t[5]-n,t[7]=+t[7]-r;break;case"A":t[11]=+t[11]-n,t[13]=+t[13]-r;break;case"C":t[1]=+t[1]-n,t[3]=+t[3]-r,t[5]=+t[5]-n,t[7]=+t[7]-r,t[9]=+t[9]-n,t[11]=+t[11]-r}})),e.setAttribute("d",o),e.removeAttribute("transform")));case"image":case"text":if(n&&r){var a=+e.getAttribute("x")||0,s=+e.getAttribute("y")||0;e.setAttribute("x",a-n),e.setAttribute("y",s-r)}return e.getAttribute("dominant-baseline")&&(e.removeAttribute("dominant-baseline"),e.setAttribute("dy",".8em")),void e.removeAttribute("transform")}if(e.children)for(var c=0,u=e.children.length;c<u;c++)t(e.children[c],n,r)}}(t,e||0,n||0),t.style.visibility="visible"}t.r(12).registerProtocol("svg",r.exports={fileDescription:"SVG 矢量图",fileExtension:".svg",mineType:"image/svg+xml",dataType:"text",encode:function(t,e){var n,r,o,a=e.getPaper(),s=a.shapeNode.getAttribute("transform"),c=e.getRenderContainer(),u=c.getRenderBox(),l=(c.getTransform(),u.width),h=u.height,f=20;return a.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),n=a.container.innerHTML,a.shapeNode.setAttribute("transform",s),r=document.createElement("div"),document.body.appendChild(r),r.innerHTML=n,(o=r.querySelector("svg")).setAttribute("width",l+40|0),o.setAttribute("height",h+40|0),o.setAttribute("style","background: "+e.getStyle("background")),o.setAttribute("viewBox",[0,0,l+40|0,h+40|0].join(" ")),tempSvgContainer=document.createElement("div"),i(o,u.x-f|0,u.y-f|0),document.body.removeChild(r),tempSvgContainer.appendChild(o),(n=tempSvgContainer.innerHTML).replace(/ /g," ")}})}},t[68]={value:function(e,n,r){function i(t){if(!t)return"";for(var e=[],n=["\\","\\","n"],r=0,i=0,o=t.length;r<o;r++)if(t[r]!==n[i])switch(i){case 0:e.push(t[r]),i=0;break;case 1:"n"===t[r]?e.push("\n"):e.push(t[r-1],t[r]),i=0;break;case 2:e.push(t[r-2]),"\\"!==t[r]&&(i=0,e.push(t[r-1],t[r]))}else 3==++i&&(i=0,e.push("\\n"));return e.join("")}function o(t,e){var n="";return n+=function(t,e){for(var n="";e--;)n+=t;return n}("\t",e=e||0),n+=function(t){if(!t)return"";for(var e=[],n=["\\","n"],r=0,i=0,o=t.length;r<o;r++)if("\n"!==t[r]&&"\r"!==t[r])if(t[r]!==n[i]){switch(i){case 0:e.push(t[r]);break;case 1:e.push(t[r-1],t[r])}i=0}else 2==++i&&(i=0,e.push("\\\\n"));else e.push("\\n"),i=0;return e.join("")}(t.data.text)+h,t.children&&t.children.forEach((function(t){n+=o(t,e+1)})),n}function a(t){return!/\S/.test(t)}function s(t){for(var e=0;d.REGEXP.test(t);)t=t.replace(d.REGEXP,""),e++;return e}function c(t){return{data:{text:i(t.replace(d.DELETE,""))}}}var u=t.r(12),l=t.r(17).Browser,h="\r",f=/\r\n|\r|\n/,d=function(t){return t.gecko?{REGEXP:new RegExp("^(\t|"+String.fromCharCode(160,160,32,160)+")"),DELETE:new RegExp("^(\t|"+String.fromCharCode(160,160,32,160)+")+")}:t.ie||t.edge?{REGEXP:new RegExp("^("+String.fromCharCode(32)+"|"+String.fromCharCode(160)+")"),DELETE:new RegExp("^("+String.fromCharCode(32)+"|"+String.fromCharCode(160)+")+")}:{REGEXP:/^(\t|\x20{4})/,DELETE:/^(\t|\x20{4})+/}}(l);u.registerProtocol("text",r.exports={fileDescription:"大纲文本",fileExtension:".txt",dataType:"text",mineType:"text/plain",encode:function(t){return o(t.root,0)},decode:function(t){return function(t){function e(t,e){(t.children||(t.children=[])).push(e)}for(var n,r,i,o,u={},l=t.split(f),h=0;h<l.length;h++)if(!a(r=l[h])){if(i=s(r),o=c(r),0===i){if(n)throw new Error("Invalid local format");n=o}else{if(!u[i-1])throw new Error("Invalid local format");e(u[i-1],o)}u[i]=o}return n}(t)},Node2Text:function(t){return function(t){if(t)return/^\s*$/.test(t.data.text)&&(t.data.text="分支主题"),o(function t(e){var n={};n.data=e.getData();var r=e.getChildren();n.children=[];for(var i=0;i<r.length;i++)n.children.push(t(r[i]));return n}(t))}(t)}})}},t[69]={value:function(e,n,r){t.r(31).register("default",{getLayout:function(t){if(t.getData("layout"))return t.getData("layout");var e=t.getLevel();return 0===e?"mind":1===e?t.getLayoutPointPreview().x>0?"right":"left":t.parent.getLayout()},getConnect:function(t){return 1==t.getLevel()?"arc":"under"}})}},t[70]={value:function(e,n,r){t.r(31).register("filetree",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):t.isRoot()?"bottom":"filetree-down"},getConnect:function(t){return 1==t.getLevel()?"poly":"l"}})}},t[71]={value:function(e,n,r){t.r(31).register("fish-bone",{getLayout:function(t){if(t.getData("layout"))return t.getData("layout");var e=t.getLevel();return 0===e?"fish-bone-master":1===e?"fish-bone-slave":t.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(t){switch(t.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},t[72]={value:function(e,n,r){t.r(31).register("right",{getLayout:function(t){return t.getData("layout")||"right"},getConnect:function(t){return 1==t.getLevel()?"arc":"bezier"}})}},t[73]={value:function(e,n,r){t.r(31).register("structure",{getLayout:function(t){return t.getData("layout")||"bottom"},getConnect:function(t){return"poly"}})}},t[74]={value:function(e,n,r){t.r(31).register("tianpan",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):0===t.getLevel()?"tianpan":t.parent.getLayout()},getConnect:function(t){return"arc_tp"}})}},t[75]={value:function(e,n,r){var i=t.r(32);["classic","classic-compact"].forEach((function(t){var e="classic-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[10,25]:[15,25],"root-margin":e?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[5,15]:[6,20],"main-margin":e?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}))}},t[76]={value:function(e,n,r){t.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},t[77]={value:function(e,n,r){function i(t,e,n){return s.Color.createHSL(t,e,n)}function o(t,e){return{background:"#fbfbfb","root-color":"white","root-background":i(t,37,60),"root-stroke":i(t,37,60),"root-font-size":16,"root-padding":e?[6,12]:[12,24],"root-margin":e?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":i(t,33,95),"main-stroke":i(t,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":e?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":e?[3,5]:[5,10],"sub-margin":e?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":i(t,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":i(t,26,30),"selected-stroke-width":"3","blur-selected-stroke":i(t,10,60),"marquee-background":i(t,100,80).set("a",.1),"marquee-stroke":i(t,37,60),"drop-hint-color":i(t,26,35),"drop-hint-width":5,"order-hint-area-color":i(t,100,30).set("a",.5),"order-hint-path-color":i(t,100,25),"order-hint-path-width":1,"text-selection-color":i(t,100,20),"line-height":1.5}}var a,s=t.r(17),c=t.r(32),u={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(a in u)c.register("fresh-"+a,o(u[a])),c.register("fresh-"+a+"-compat",o(u[a],!0))}},t[78]={value:function(e,n,r){var i=t.r(32);["snow","snow-compact"].forEach((function(t){var e="snow-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[5,10]:[15,25],"root-margin":e?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[4,10]:[6,20],"main-margin":e?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}))}},t[79]={value:function(e,n,r){var i=t.r(32);["tianpan","tianpan-compact"].forEach((function(t){var e="tianpan-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":e?15:20,"root-margin":e?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":e?10:12,"main-margin":e?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":e?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})}))}},t[80]={value:function(e,n,r){t.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}};var e={"expose-kityminder":34};!function(n){t.r([e[n]])}("expose-kityminder")}()},15940:(t,e,n)=>{var r;r=function(t,e,r){var i=n(80423),o=n(83677);function a(t){return document.createElement(t)}function s(t,e){t.classList.add(e)}function c(t,e){t.classList.remove(e)}function u(t,e){t.appendChild(e)}var l=d.STATE_IDLE="idle",h="div";function f(t,e){return"object"!=typeof e&&(e=[].slice.apply(arguments,1)),String(t).replace(/\{(\w+)\}/g,(function(t,n){return e[n]||t}))}function d(t){if("string"==typeof t&&(t=document.querySelector(t)),!(t&&t instanceof HTMLElement))throw new Error("No container or not invalid container for hot box");var e=a(h);s(e,"hotbox"),u(t,e),this.$element=e,this.$container=t,this.isIME=!1,this.browser={sg:/se[\s\S]+metasr/.test(navigator.userAgent.toLowerCase())},this._parentFSM={},this.position={};var n,r={},c=null,f=l,d=[],g=this;function m(t,e){if(g.position=e,t==l)f!=l&&(d.shift().deactive(),d=[]),f=l;else if("back"==t)f!=l&&(f.deactive(),d.shift(),(f=d[0])?f.active():f="idle");else{f!=l&&f.deactive();var n=r[t];d.unshift(n),"function"==typeof g.position&&(e=g.position(e)),n.active(e),f=n}}this.control=function(t){if(!n)return(n=new(t=t||o)(g)).active(),e.onmousedown=function(t){t.stopPropagation(),t.preventDefault()},g;n.active()},this.state=function(t){if(!t)return f;if(t==l)throw new Error("Can not define or use the `idle` state.");return r[t]=r[t]||new p(this,t),"main"==t&&(c=r[t]),r[t]},this.active=m,this.dispatch=function(e){var n=e.type.toLowerCase();if(e.keyHash=i.hash(e),e.isKey=function(t){if(!t)return!1;for(var n=t.split(/\s*\|\s*/);n.length;)if(e.keyHash==i.hash(n.shift()))return!0;return!1},e[n]=!0,!(e.keyup&&g.activeKey&&e.isKey(g.activeKey)&&f==l&&c)){var r=f==l?c:f;if(r){var o=r.handleKeyEvent(e);return"function"==typeof g.onkeyevent&&(e.handleResult=o,g.onkeyevent(e,o)),o}return null}m("main",{x:t.clientWidth/2,y:t.clientHeight/2})},this.setParentFSM=function(t){g._parentFSM=t},this.getParentFSM=function(){return g._parentFSM},this.activeKey="space",this.actionKey="space"}function p(t,e){var n="selected",r="pressed",i="active",o=a(h),d=a(h),p=a(h),g=a("div"),m=a(h),v=a(h);s(o,"state"),s(o,e),s(d,"center"),s(p,"ring"),s(g,"ring-shape"),s(m,"top"),s(v,"bottom"),u(t.$element,o),u(o,g),u(o,d),u(o,p),u(o,m),u(o,v),this.name=e;var b={center:null,ring:[],top:[],bottom:[],behind:[]},y=[],w=null,x=null,A=!1,_=!0;function S(){return!0}function k(t,e){return t('<span class="label">{label}</span><span class="key">{key}</span>',{label:e.label,key:e.key&&e.key.split("|")[0]})}function N(t){x&&x.$button&&c(x.$button,r),(x=t)&&x.$button&&s(x.$button,r)}function L(t){w&&w.$button&&w.$button&&c(w.$button,n),(w=t)&&w.$button&&s(w.$button,n)}function C(e){e&&(e.enable&&!e.enable()||(e.action&&e.action(e),t.active(e.next||l,t.position)),N(null),L(null))}this.button=function(t){var e=function(t){var e=a(h);s(e,"button");var n=t.render||k;switch(e.innerHTML=n(f,t),t.position){case"center":u(d,e);break;case"ring":u(p,e);break;case"top":u(m,e);break;case"bottom":u(v,e)}return{action:t.action,enable:t.enable||S,beforeShow:t.beforeShow,key:t.key,next:t.next,label:t.label,data:t.data||null,$button:e}}(t);"center"==t.position?b.center=e:b[t.position]&&b[t.position].push(e),y.push(e),_=!0},this.active=function(e){var n,r;(e=e||{x:t.$container.clientWidth/2,y:t.$container.clientHeight/2})&&(o.style.left=e.x+"px",o.style.top=e.y+"px"),y.forEach((function(t){var e=t.$button;e&&e.classList[t.enable()?"add":"remove"]("enabled"),t.beforeShow&&t.beforeShow()})),s(o,i),_&&(function(t){var e,n,r,i,o=b.ring,a=2*Math.PI/o.length;b.center&&(b.center.indexedPosition=[0,0]),g.style.marginLeft=g.style.marginTop=-t+"px",g.style.width=g.style.height=t+t+"px";for(var s=0;s<o.length;s++)e=o[s].$button,n=a*s-Math.PI/2,r=t*Math.cos(n),i=t*Math.sin(n),o[s].indexedPosition=[r,i],e.style.left=r+"px",e.style.top=i+"px"}(r=15*b.ring.length),function(t){var e=-m.clientWidth/2,n=2*-t-m.clientHeight/2;m.style.marginLeft=e+"px",m.style.marginTop=n+"px",b.top.forEach((function(t){var r=t.$button;t.indexedPosition=[e+r.offsetLeft+r.clientWidth/2,n]}))}(r),function(t){var e=-v.clientWidth/2,n=2*t-v.clientHeight/2;v.style.marginLeft=e+"px",v.style.marginTop=n+"px",b.bottom.forEach((function(t){var r=t.$button;t.indexedPosition=[e+r.offsetLeft+r.clientWidth/2,n]}))}(r),(n=y.filter((function(t){return t.indexedPosition}))).forEach((function(t){var e,r,i,o,a,s,c={},u=0,l={},h=t.indexedPosition,f=Math.abs;n.forEach((function(n){if(t!=n)for(e=n.indexedPosition,a=[],r=e[0]-h[0],i=e[1]-h[1],o=Math.sqrt(r*r+i*i),f(r)>2&&(a.push(r>0?"right":"left"),a.push(o+f(i))),f(i)>2&&(a.push(i>0?"down":"up"),a.push(o+f(r)));a.length;)s=a.shift(),u=a.shift(),(!c[s]||u<l[s])&&(c[s]=n,l[s]=u)})),t.neighbor=c})),_=!1),w||L(b.center||b.ring[0]||b.top[0]||b.bottom[0]),A=!0},this.deactive=function(){c(o,i),L(null),A=!1},o.onmouseup=function(t){if(!t.button)for(var e=t.target;e&&e!=o;)e.classList.contains("button")&&y.forEach((function(t){t.$button==e&&C(t)})),e=e.parentNode},this.handleKeyEvent=function(n){var r=null;if(t.browser.sg&&n.isKey("esc"))return x?n.isKey(x.key)||N(null):t.active("back",t.position),"back";if(n.keydown||t.isIME&&n.keyup){if(y.forEach((function(i){if(i.enable()&&n.isKey(i.key)){if(A||t.hintDeactiveMainState){if(L(i),N(i),r="buttonpress",n.keyup)return C(i),r="execute"}else C(i),r="execute";n.preventDefault(),n.stopPropagation(),!A&&t.hintDeactiveMainState&&t.active(e,t.position)}})),A){if(n.isKey("esc"))return x?n.isKey(x.key)||N(null):t.active("back",t.position),"back";["up","down","left","right"].forEach((function(t){if(n.isKey(t))if(w){for(var e=w.neighbor[t];e&&!e.enable();)e=e.neighbor[t];e&&L(e),r="navigate"}else L(b.center||b.ring[0]||b.top[0]||b.bottom[0])})),n.isKey("space")&&n.keyup?(C(w),n.preventDefault(),n.stopPropagation(),r="execute"):n.isKey("space")&&w?(N(w),r="buttonpress"):x&&x!=w&&(N(null),r="selectcancel")}}else!n.keyup||!A&&t.hintDeactiveMainState||x&&(n.isKey("space")&&w==x||n.isKey(x.key))&&(C(x),n.preventDefault(),n.stopPropagation(),r="execute");return t.isIME=229==n.keyCode&&n.keydown,r}}r.exports=d}.call(e,n,e,t),void 0===r||(t.exports=r)},80423:(t,e,n)=>{var r;r=function(t,e,r){var i=n(26479),o=4096,a=8192,s=16384;function c(t){return"string"==typeof t?(e=0,t.toLowerCase().split(/\s*\+\s*/).forEach((function(t){switch(t){case"ctrl":case"cmd":e|=o;break;case"alt":e|=a;break;case"shift":e|=s;break;default:e|=i[t]}})),e):function(t){var e=0;(t.ctrlKey||t.metaKey)&&(e|=o);t.altKey&&(e|=a);t.shiftKey&&(e|=s);-1==[16,17,18,91].indexOf(t.keyCode)&&(e|=t.keyCode);return e}(t);var e}e.hash=c,e.is=function(t,e){return t&&e&&c(t)==c(e)}}.call(e,n,e,t),void 0===r||(t.exports=r)},83677:(t,e,n)=>{var r;r=function(t,e,r){n(80423);var i="hotbox-focus";r.exports=function(t){var e,n=!0,r=!1,o=t.$container;function a(e){n&&t.dispatch(e)}function s(){e.select(),e.focus(),n=!0,o.classList.add(i)}function c(){e.blur(),n=!1,o.classList.remove(i)}(e=document.createElement("input")).classList.add("hotbox-key-receiver"),o.appendChild(e),r=!0,e.onkeyup=a,e.onkeypress=a,e.onkeydown=a,e.onfocus=s,e.onblur=c,r&&(e.oninput=function(t){e.value=null}),o.onmousedown=function(t){s(),t.preventDefault()},s(),this.handle=a,this.active=s,this.deactive=c}}.call(e,n,e,t),void 0===r||(t.exports=r)},26479:(t,e,n)=>{var r;r=function(t,e,n){var r={Shift:16,Control:17,Alt:18,CapsLock:20,BackSpace:8,Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Direction:{37:1,38:1,39:1,40:1},Delete:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(t){r[t]=t.charCodeAt(0)-o+65}));var a=9;do{r[a.toString()]=a+48}while(a--);n.exports=r}.call(e,n,e,t),void 0===r||(t.exports=r)},78875:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,".single-file[data-v-4977e05f]{align-items:center;display:flex}.single-file .file-content[data-v-4977e05f],.single-file .file-preview[data-v-4977e05f]{border-radius:0}",""]);const o=i},34051:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.hotbox{font-family:Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;left:0;top:0}.hotbox,.hotbox .state{overflow:visible;position:absolute}.hotbox .state{display:none}.hotbox .state .center .button,.hotbox .state .ring .button{border-radius:100%;box-shadow:0 0 30px rgba(0,0,0,.3);height:70px;margin-left:-35px;margin-top:-35px;position:absolute;width:70px}.hotbox .state .center .key,.hotbox .state .center .label,.hotbox .state .ring .key,.hotbox .state .ring .label{display:block;line-height:1.4em;text-align:center;vertical-align:middle}.hotbox .state .center .label,.hotbox .state .ring .label{color:#000;font-size:16px;font-weight:400;line-height:1em;margin-top:17px}.hotbox .state .center .key,.hotbox .state .ring .key{color:#999;font-size:12px}.hotbox .state .ring-shape{border:25px solid rgba(0,0,0,.3);border-radius:100%;box-sizing:content-box;left:-25px;position:absolute;top:-25px}.hotbox .state .bottom,.hotbox .state .top{position:absolute;white-space:nowrap}.hotbox .state .bottom .button,.hotbox .state .top .button{border-radius:15px;box-shadow:0 0 30px rgba(0,0,0,.3);display:inline-block;margin:0 10px;padding:8px 15px;position:relative}.hotbox .state .bottom .button .label,.hotbox .state .top .button .label{color:#000;font-size:14px;line-height:14px;line-height:1em;vertical-align:middle}.hotbox .state .bottom .button .key,.hotbox .state .top .button .key{color:#999;font-size:12px;line-height:12px;margin-left:3px;vertical-align:middle}.hotbox .state .bottom .button .key:before,.hotbox .state .top .button .key:before{content:"("}.hotbox .state .bottom .button .key:after,.hotbox .state .top .button .key:after{content:")"}.hotbox .state .button{background:#f9f9f9;cursor:default;overflow:hidden}.hotbox .state .button .key,.hotbox .state .button .label{opacity:.3}.hotbox .state .button.enabled{background:#fff}.hotbox .state .button.enabled .key,.hotbox .state .button.enabled .label{opacity:1}.hotbox .state .button.enabled:hover{background:#e87372}.hotbox .state .button.enabled:hover .label{color:#fff}.hotbox .state .button.enabled:hover .key{color:#fadfdf}.hotbox .state .button.enabled.selected{-webkit-animation:selected .1s ease;background:#e45d5c}.hotbox .state .button.enabled.selected .label{color:#fff}.hotbox .state .button.enabled.selected .key{color:#fadfdf}.hotbox .state .button.enabled.pressed,.hotbox .state .button.enabled:active{background:#ff974d}.hotbox .state .button.enabled.pressed .label,.hotbox .state .button.enabled:active .label{color:#fff}.hotbox .state .button.enabled.pressed .key,.hotbox .state .button.enabled:active .key{color:#fff0e6}.hotbox .state.active{display:block}@-webkit-keyframes selected{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.hotbox-key-receiver{height:20px;left:-999999px;margin:0;outline:none;position:absolute;top:-999999px;width:20px}',""]);const o=i},26910:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,".basebtn[data-v-62e9d866]{-webkit-appearance:none;background-color:#409eff;border:1px solid #dcdfe6;border-radius:4px;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-size:14px;font-weight:500;line-height:1;margin:0;outline:none;padding:8px 12px;text-align:center;transition:.1s;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap}.baseSelect[data-v-62e9d866]{height:32px}.baseSelect option[data-v-62e9d866]{min-height:1.5em}.quickbar[data-v-62e9d866]{align-items:center;background-color:#fff;border-radius:3px;bottom:20px;box-shadow:3px 3px 10px rgba(0,0,0,.2);display:flex;left:20px;padding:0 6px;position:fixed;z-index:10}.quickbar[data-v-62e9d866],.quickbar i[data-v-62e9d866]{color:#666;height:34px}.quickbar i[data-v-62e9d866]{cursor:pointer;display:block;font-size:22px;font-style:normal;line-height:34px;padding:0;text-align:center;transform:scale(1);width:34px}.quickbar i[data-v-62e9d866]:hover{color:#232323}.quickbar i.active[data-v-62e9d866]{color:#0285d7}",""]);const o=i},50433:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,".minder-editor-quickul li{cursor:pointer;list-style:none;padding:8px 0}.minder-editor-quickul li:hover{color:#0285d7}.minder-editor-quickul.mold span{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAAoCAYAAAAIXQhqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABDnSURBVHja7J17cFRVnse/5z6684TmEUAYJTAQmFFCsqCAqAQJyOjOEBTHstqR0FqjlqMDfww2NVMTcKbW1MzUBMqdVXbXTtw1s7MLG0B3NqxEkigvgUgSghAFDA4RHwRCXpDuvvfsH/c0JiHpdHdu0jfN71PV1Unf0+fec/re8z2/c37ndxjnHARBEARBDG8kqgKCIAiCIEEnCIIgCMICKFQFBBH7PPHUhj6PaZoODg5d57Cp/TYJNgDxADoBXAvjEuI0TXcD/Mm4OPsUTdO9nZ3eKkWRX2aM7Q41k7feeIV+TILoT9CfeGqDA0ABgNwI8ikCsK7Yk98c7hedLvdNdV6ziZVyUJ0MDib6yNg0TX/W7/c/DoY0cDTKsvy2osgFAJr6+7KmaXkjRya7f7D0XmSkz0Bbe4etvPLwggOHa4rBeQ5j7ANqjgnCPAu94HszpuY+41qFsWNHhZzBxYuXsdWzPfdk/VkAWBPBNUTtvBE2+OjyvTUW+A1jpRym1kmU7qmYbSc0Tfv9iBFJL963cC7Spt2Gxgtfj654/+isL7+6OEdR5LUAZgFYBWAigPGibeEALnHOv5AkacmjK5dhSda865mmTZuM9qvXRld9dGKtzabuE+kJgjBB0MNuAAFg7NhReMa1Cmtf+l2u0+WuAbCz2JPfEIIVlQogx4zzRtj45g6w7iI9r9nESjkGYpFnAXAAyDDrXiZB72blL7Gp6vOrnStw97zZAIA7Acz6/nT88dV/W37pcsteWZY6AHwG4FMAewHoAHwAdL9fWzJ+/Niku+bO6pavqipYOC8DRz+qmw8gCUAr1TZBmCPoZjAbQJ7T5d6JPoYtuwyH5gDYST8BEYGABzqDq4WIVwNoBlBJtWM+Pp8/K21aqjyvhyB/d+qtyMz4Pna/+8FFWbY/KsT8RiuboR7AUvQy/M85Bzj8ogNAEMQA6OrlXrTVsx0XL14OKwMxTAkARcWe/DUApghrqVyId0/KxfEpIv2Azxth2YsGWHdFFvkNY6UcoQh5htPl3gHgmOg8bgIwqtiTn1nsyV9c7MnfWOzJ3xjFe2rYonNu03Rd7fWYrifHJ8RBlm9cFJOclADO+UUAn6CPIXNFluubmi43HzpyvNvnXq8f+z+sBmPsOIB2ao4JwjwLfd3J+rOB4cZIRGEdAAirfKXT5T4GIC/wuWiQC0SalWafNwIC3xvq85pNrJQjmJA7xL2UC2ALgDX9OK1F654alp16n8+/ymZTn0xMiE9ubWl7Jy7O/ioML3YAgKqqxxoaGnG+8St8Z9L461/saL+Kuo8/haIoNcFOwBir1zTtT9t3vvvL1rZ2ZKbPRGt7B8orj6D2eL1PVZW5AB4H8B/UJBNE5LCAFyxjzOxGOBXGnNqUYk9+Q8//h4GI8GJPPhvuP/BwL4fT5c4AUAhjSH3NcLh3+ijDDgCpQZI1A1hc7MmvNjOPwPPd17I1r8+3fPq0ydsfW7k8MSHRjtI9+3HgYPVvJEnKY+y6xZ3i8/lLZ89Km7Nq5TLc+p0JuNjUjP8prcQH+6u+YYwtY4xV91MNdk3Tf8E5X22326bpun7N6/UdVhQ5nzE2D8B6AE/1J+q0bI0gQrPQTUWIeBGAnwuL5+cwhuUbqNqJMISwHMAWMZQ+XCl4eEV26sM/WtJngpK333OU7CorALB4MPLQNO2GTruuc6ZI8upHVmQnps+aDgBYns1x5GjdU51e72uKLF8Q37mmqsq1mrpPGs+cPZ/icCTb2to60NzSWqPI8oYQxBwAOmVZ+i3n/J99Pv8ExtCpqsrfAHQAKIXhFFcI4DwAWsJGEBEw2JHi3oThvATx/iZVORGimDuEmK8b5mIOAFnLsxcGTSCOZw1mHpzzbi+Acx06s6nfTp3bbDbYbGqb3+9v0791YnsRwAhVURZ1XL225HzjV0+2tLb9QFWUbMZYaTgVwRj7WpJYLWOsXoh5gJcA7APwFoylbwRBWMVCF1Z6hdPldjhd7lwAjmJPfoUFhIKbnTYaQ9qxUo4glMNYAlkUYWeAAst0QZZlcM57Wul2v1/DO6XvY8SIRNhtNry/7yja2jt22FS1TTLS3gLgOQC/BnBGlqUzsiztG4RL1AA8C6AKwC8BPE/NM0FYSNAFFTAcmiqsUmgzhSscYaVyhHwtG0X5Il0LbrXAMhW7y/ZnBRsu3122H/08I2bk0c1YBvCyIsvNx6o/fvr0mYbVNlVNbLrUsldR5d9JjAXuh8dgzM2/NQQ//WkArwD4BwBvAPiImmiCsJag14CG24nQxTwVhr/F4hDSpYp/M2AshQxgtcAy60p2lZWX7CpzBEnTgODe9Wbk0ZVcAOlgeEyW5ZaWlvZCzuFQFPkS694+PAQjXoQ3jPImivdIlqL9UVzbCzCG+q/BCFBDEMTNZqGHMtwaxBotQo/hVrPzu9nKEQF5MIbaq7tcVwaMueFFQsQzhNVY3UXIzln1IRNlGSXKkgvD+WtNONMJZuQBBObRkSJJ7IcANgJoAQBFkXXOcanHkPwoAJMA7Akx+wWiQzFfjAAcBLAZwIEwLjHe79dOa5q2GsCDAM4oivIXWZZeD7NTQRAk6IMlojACzQyFWJg93BorMe4tH99c3Ec5ADK7WOo5XTqGlTA83iv6yWfyVs/2SMsauCcHo3wRC7EZeXDO4fX5FnCdv+jz+5Pi4uJOqaoMJjHouuEopyhy1/R/xzmSGUMSYywB3Z3YepINY8nZ2C6fPQrgfhhrzEPpFIz0a1rxuJTRD2XddycmTRw37vSZz8e9v69qwZXWtu8qspwnOnIEQQyihW6lDULMHm6NWqz5GClHuB0/wIhX0GvnL8SOn+UCy0RbzHWdx/n92jNp01J/c+ecO5IbG7/yHjpS+4am609LktQsMQmQDac5znmcpunrOec/jYuzT9I0bZvX6wtsddqbMCcKa39sL8fGiGMH0M8QvKbpT4x2jHjoZ88+jrRpkwEA8+bOwtTUW/Hav/7n8z6f/zSAV6nZJojBFfRcE75Pm2HEPkPS8ROiv8aseyrEoC4BNhd78tdZScwBoNPbOXvK5EnrX3zOmTxh/BgAsNls6iOle/b9NSkxvpBLDAAD51zya9pGx8jkl5YvvQcZ6TPQ2toev7fy8D0fHqn9M4AfMcYO9sj+VgBzg5x+DoDbAJwMdo0+n29p5uzvXRfzAHfNvR17ym+Va49/sowEnSD6RorBMpkdxztqseZjpBxmd/yiQV6IYg4Aa0UHwDJiDgB+nzYzZczo8ULMAQAz0lIBzqfq+reuE5zz22VJevbHDz+AnL9fjNTbJmLW7dPx3NM/RvodM8b6fP61MObHu2IXr77o73jg3COTkxJv+FyWZSQkxINzPpKabIIYfAu9aICNbZGJZTJ7uDVqseZjpByxQE4E6autIuYAoKjKx2fPnT917vMLt0++7Ra0tV9FdW09mCQf4tyYX5ckBp9fS584IWVkz61ObTYVC+bNRtWxEwsAxKP7fPoFGE6Jk/s4/TmRJvg1KkrViZOns9o7riIxIf76519c+AaffdYIRVGqqMkmiL4xJZb7zRzIYzjHSh/qa3e63IUD7fiFsjbd7PvRSmv0u1Bd7MnPDMHqBWDEcvf5/I+MHu34Q0Z6WuoXF77x1X967p8Y2HpJYt7A4+/1+VdNnJCy7bd5LyApMb5bXpX7qvCPr//5b3a7bSZudJD7NYzd73pjY5BjXa91Nud8z713z0n54YOLMHaMA+cbv8b2nXtwrOZktaLIrmJP/jFqtgliEC30YHOWTpc7C0bUr8VWiBRHRJWB7AwHAOecLndWCPeR2R79O8O00jODbLJihtXugLFqpDDU4Ducc8iy9N9NTZdP7N6z/z5Zkh+029UDjLGuS8FGqIp8yzcXL3kPHz1uu3/RXdcPeL0+HPywBmL+/Govp8gHMBrGyoQAlwH8izjWv3XBWA2AJyv2Hcmvrj11R1JSgtx8pVVra+v4QFWVtTBiWhAEMZiC3g9ZXd5J0K1vtQ/aaEsozmrCiu8WJa7HOvQV4v9m9L0O3WyP/k0w1r6nhpDN5r7EXJSrSCzfLHS63IhE1Is9+c1Ol3txuKIOAIoin1JV5RRj7IAQ33kw9jJPBnA3Y6zOr2lb/6vk/15oaW0POMVhb+Vh1NbVn1NVpQC973vuBZAAYD+AP4k0deIVMoyx3aqiHL3S2pZ3+UrLSlmSXaqqHADQRk8nQURf0GeLBnf2MBO2WI+VPlTWbbhsAnDM6XJvCQijeK+GEaQkUOep6DtSnKmI808xMb+oirqgDsDPANwHIF10kH4P4KAiy7YrV9ou/WVb6U92vrN3qqZpnV6vz64o8v8yxg71klcKgD/ACCjzgHjeB8JFRZZ9kOU6AO9SM00Q1rLQ1wmrb1gRq7HS+yGq69XFtrtbYAxLZwZL10U4KnrUtSUDywyiqB+LUNQ7YQR86bm23CvL0kbO+eter288Y/CqqjITgBtGcJ9SGLECJCHiS2DEYc9CCM5vIRAHYDmAt6mJJgiLCLqYP28WjVdeiPOfhEVHIoawI7XR6XKviFCkAAt79Pexpr0wMNUgaIbhc1IdRh65Yn6+Wx74dloibBhjXzKGL8W/JwGUwfAluAdGmFcNQD2Mofv3TKymOTA85v9KTyhBWMdCXw3DoQjifTUsMo9+E8dKDzoK4XS5Cy1i3S4G8JnT5a4M13o1O7CMyRQ8vCI7NdiuaSVvv+co2VVWgL43qDEjj0hoBfDv4jWY/BRA40A6IwRxUwv6ICz1SRV5BeYet4gGepMYLh2U84bTsN5ssdKHk3XbY444tdiTvzFGnrms5dkLgyZYnr0QJbvKsgY5j6jDOR/HOSYwBi9j7HMYS+HSYMR+Xy86EARBRGChmy1IO2B4/DaIBrrB6XJvFp9nWkAIYy5WullCahXrttiTXy1EvdDpci+CsdSrgR7bYY9d0/RfcM5X2+22abqud3q9vsOKIucxxh4H8OUQjAIQREwLuimCJCzuwNKjntbaJgBZTpd7h2icm2NFCIlBF/U8CO930VHsc1TG4oGOKnaX7c8KNly+u2w/EHxqyow8ooWkafqvRoxI/NUD2QuRmT4Tre0d9vLKI/d+eKRmBwCdMbYWQBPd/QQRuaAPGOHYkwNjvnxxb9afaJwLYAy/74xi2YtMnisusrpndYi/oeXEUOS3zulyvymEPXDv7AJQ0cv5rDz9sa5kV1l5ya4yR5A0DQg+dWFGHlGBcz5Dktjzq3KWYen9869/PnP6FFy7dm1k1bGPa202dRs1zQQxMEEfqCBVwIjktCnYsGhgSNfpcm8S4l+x1bM9KwpCSLHSe8eyYii8vlcK/4wcGN7VO5wudzUMr+5KkdSyoz6iDKOGKo+33njFUg2OpmmzxqWMGTX/zp6x4hXcPT8TRz86MQI3bv5CEESYgj5gQQrHMhOiv9npchedrD9bMNRCaPZcscU9q8PB8lMggXtHvALLIx0wAswQFoZzIde97B3BjB1cbQBkqimCGICgR0uQYkgIhyXDKOBNsHuoQvy5U5RpcixMf8Rkg6PIdU1Nzc2Hjx53LMmad/1zn8+PA4eqwcAOgcK8EsSALXTiJqO3SHgWWoc+EGirWIvCGDuladpr23a8u6Gt7Soy0megrb0D5ZWHUVNbf1lVlc3oPVY8QRD9PV9mbJ9KxJTF7sBNuhVuLBJ4vp0uN7o+61F+3uM0Td8A8J/ExdmnaJru6+z0VimK/DJjrDTYF63mE0AQlhR0giAIgiCGLxJVAUEQBEEMf/5/AJFbIIR0qdf/AAAAAElFTkSuQmCC) no-repeat;background-size:300px 24px;display:block;height:30px;width:30px}.minder-editor-quickul.mold span.default{background-position:0 3px}.minder-editor-quickul.mold span.structure{background-position:-30px 3px}.minder-editor-quickul.mold span.filetree{background-position:-60px 3px}.minder-editor-quickul.mold span.right{background-position:-90px 3px}.minder-editor-quickul.mold span.fish-bone{background-position:-120px 3px}.minder-editor-quickul.mold span.tianpan{background-position:-150px 3px}.minder-editor-slider{margin:0 6px;width:200px}",""]);const o=i},19139:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.km-editor{height:100%;overflow:hidden;width:100%;z-index:2}.km-editor>.mask{background-color:transparent;bottom:0;display:block;left:0;position:absolute;right:0;top:0}.km-editor>.receiver{word-wrap:break-word;background:#fff;border:none;-webkit-box-shadow:0 0 20px rgba(0,0,0,.5);box-shadow:0 0 20px rgba(0,0,0,.5);-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;left:0;line-height:1.4em;margin-left:-3px;margin-top:-5px;max-width:300px;min-height:1.4em;opacity:0;outline:0;overflow:hidden;padding:3px 5px;pointer-events:none;position:absolute;top:0;-webkit-user-select:text;width:auto;word-break:break-all;z-index:-1000}.km-editor>.receiver.debug{background:0 0;opacity:1;outline:1px solid green;z-index:0}.km-editor>.receiver.input{background:#fff;opacity:1;outline:0;pointer-events:all;z-index:999}div.minder-editor-container{font-family:Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif}.minder-editor,.minder-viewer,div.minder-editor-container{bottom:0;left:0;position:absolute;right:0;top:0}.control-panel{border-left:1px solid #ccc;right:0;width:250px}.control-panel,.minder-divider{bottom:0;position:absolute;top:0}.minder-divider{background-color:#fbfbfb;cursor:ew-resize;right:250px;width:2px}.upload-image{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.top-tab .nav-tabs{background-color:#e1e1e1;border:0;height:32px}.top-tab .nav-tabs li{margin:0}.top-tab .nav-tabs li a{border:0;border-radius:0;margin:0;padding:6px 15px;vertical-align:middle}.top-tab .nav-tabs li a:focus,.top-tab .nav-tabs li a:hover{background:inherit;border:0}.top-tab .nav-tabs li.active a{background-color:#fff;border:0}.top-tab .nav-tabs li.active a:focus,.top-tab .nav-tabs li.active a:hover{border:0}.top-tab .tab-content{background-color:#fff;border-bottom:1px solid #dbdbdb;height:60px}.top-tab .tab-pane{font-size:0}.km-btn-group{border-right:1px dashed #eee;display:inline-block;margin:5px 0;padding:0 5px;vertical-align:middle}.km-btn-item{cursor:default;display:inline-block;font-size:0;margin:0 3px}.km-btn-item[disabled]{opacity:.5}.km-btn-item[disabled]:active,.km-btn-item[disabled]:hover{background-color:#fff}.km-btn-item .km-btn-icon{background:url(images/icons.png) no-repeat;background-position:0 20px;display:inline-block;height:20px;margin:1px;padding:2px;vertical-align:middle;width:20px}.km-btn-item .km-btn-caption{display:inline-block;font-size:12px;vertical-align:middle}.km-btn-item:hover{background-color:#eff3fa}.km-btn-item:active{background-color:#c4d0ee}.do-group{width:38px}.undo .km-btn-icon{background-position:0 -1240px}.redo .km-btn-icon{background-position:0 -1220px}.append-group{width:212px}.append-child-node .km-btn-icon{background-position:0 0}.append-sibling-node .km-btn-icon{background-position:0 -20px}.append-parent-node .km-btn-icon{background-position:0 -40px}.arrange-group{width:64px}.arrange-up .km-btn-icon{background-position:0 -280px}.arrange-down .km-btn-icon{background-position:0 -300px}.operation-group{width:64px}.edit-node .km-btn-icon{background-position:0 -60px}.remove-node .km-btn-icon{background-position:0 -80px}.btn-group-vertical .hyperlink,.btn-group-vertical .hyperlink-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .hyperlink-caption:hover,.btn-group-vertical .hyperlink:hover{background-color:#eff3fa}.btn-group-vertical .hyperlink-caption:active,.btn-group-vertical .hyperlink:active{background-color:#c4d0ee}.btn-group-vertical .hyperlink-caption.active,.btn-group-vertical .hyperlink.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .hyperlink{background:url(images/icons.png) no-repeat center -100px;height:25px}.btn-group-vertical .hyperlink-caption{height:20px}.btn-group-vertical .hyperlink-caption .caption{font-size:12px}.btn-group-vertical .image-btn,.btn-group-vertical .image-btn-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .image-btn-caption:hover,.btn-group-vertical .image-btn:hover{background-color:#eff3fa}.btn-group-vertical .image-btn-caption:active,.btn-group-vertical .image-btn:active{background-color:#c4d0ee}.btn-group-vertical .image-btn-caption.active,.btn-group-vertical .image-btn.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .image-btn{background:url(images/icons.png) no-repeat center -125px;height:25px}.btn-group-vertical .image-btn-caption{height:20px}.btn-group-vertical .image-btn-caption .caption{font-size:12px}.image-preview{display:block;max-width:50%}.modal-body .tab-pane{font-size:inherit;padding-top:15px}.search-result{height:370px;margin-top:15px;overflow:hidden}.search-result ul{clear:both;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0}.search-result ul li{border:2px solid #fcfcfc;cursor:pointer;display:block;float:left;font-size:12px;height:130px;line-height:130px;list-style:none;margin:6px;overflow:hidden;padding:0;position:relative;text-align:center;vertical-align:top;width:130px}.search-result ul li.selected{border:2px solid #fc8383}.search-result ul li img{max-height:130px;max-width:126px;vertical-align:middle}.search-result ul li span{background:rgba(0,0,0,.5);bottom:0;color:#fff;display:block;height:20px;left:0;line-height:20px;opacity:0;overflow:hidden;position:absolute;right:0;text-overflow:ellipsis;-webkit-transform:translateY(20px);transform:translateY(20px);-webkit-transition:all .2s ease;transition:all .2s ease;white-space:nowrap;word-break:break-all}.search-result ul li:hover span{opacity:1;-webkit-transform:translate(0);transform:translate(0)}@media (min-width:768px){.form-inline .form-control{width:422px}}.btn-group-vertical{vertical-align:top}.btn-group-vertical.note-btn-group{border-right:1px dashed #eee;padding-right:5px}.btn-group-vertical .note-btn,.btn-group-vertical .note-btn-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .note-btn-caption:hover,.btn-group-vertical .note-btn:hover{background-color:#eff3fa}.btn-group-vertical .note-btn-caption:active,.btn-group-vertical .note-btn:active{background-color:#c4d0ee}.btn-group-vertical .note-btn-caption.active,.btn-group-vertical .note-btn.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .note-btn{background:url(images/icons.png) no-repeat center -1150px;height:25px}.btn-group-vertical .note-btn-caption{height:20px}.btn-group-vertical .note-btn-caption .caption{font-size:12px}.open>.dropdown-toggle.btn-default{background-color:#eff3fa}.gfm-render{color:#333;font-size:12px;line-height:1.8em;-webkit-user-select:text}.gfm-render blockquote,.gfm-render hr,.gfm-render p,.gfm-render pre,.gfm-render table,.gfm-render ul{cursor:text;margin:1em 0}.gfm-render blockquote:first-child:last-child,.gfm-render hr:first-child:last-child,.gfm-render p:first-child:last-child,.gfm-render pre:first-child:last-child,.gfm-render table:first-child:last-child,.gfm-render ul:first-child:last-child{margin:0}.gfm-render img{max-width:100%}.gfm-render a{color:#00f}.gfm-render a:hover{color:red}.gfm-render blockquote{border-left:4px solid #e4ad91;color:#da8e68;display:block;font-style:italic;margin-left:2em;padding-left:10px}.gfm-render ol,.gfm-render ul{padding-left:3em}.gfm-render table{border-collapse:collapse;margin:1em 0;width:100%}.gfm-render table td,.gfm-render table th{border:1px solid #666;padding:2px 4px}.gfm-render table th{background:rgba(45,141,234,.2)}.gfm-render table tr:nth-child(2n) td{background:rgba(45,141,234,.03)}.gfm-render em{color:red}.gfm-render del{color:#999}.gfm-render pre{word-wrap:break-word;background:rgba(45,141,234,.1);border-radius:5px;padding:5px;word-break:break-all}.gfm-render code{background:rgba(45,141,234,.1);border-radius:3px;padding:0 5px}.gfm-render pre code{background:0 0}.gfm-render hr{border:none;border-top:1px solid #ccc}.gfm-render .highlight{background:#ff0;color:red}.km-note{background:#fff;border-left:1px solid #babfcd;bottom:0;left:auto;padding:5px 10px;position:absolute;right:0;top:92px;width:300px;z-index:3}.km-note.panel{margin:0;padding:0}.km-note.panel .panel-heading h3{display:inline-block}.km-note.panel .panel-heading .close-note-editor{display:inline-block;float:right;height:15px;width:15px}.km-note.panel .panel-heading .close-note-editor:hover{cursor:pointer}.km-note.panel .panel-body{padding:0}.km-note .CodeMirror{bottom:0;cursor:text;font-family:consolas;font-size:14px;height:auto;line-height:1.3em;position:absolute;top:41px}.km-note-tips{color:#ccc;padding:3px 8px}#previewer-content{background:#ffd;border-radius:5px;-webkit-box-shadow:0 0 15px rgba(0,0,0,.5);box-shadow:0 0 15px rgba(0,0,0,.5);color:#333;font-size:12px;line-height:1.8em;max-height:200px;max-width:400px;overflow:auto;padding:5px 15px;position:absolute;-webkit-user-select:text;word-break:break-all;z-index:10}#previewer-content blockquote,#previewer-content hr,#previewer-content p,#previewer-content pre,#previewer-content table,#previewer-content ul{cursor:text;margin:1em 0}#previewer-content blockquote:first-child:last-child,#previewer-content hr:first-child:last-child,#previewer-content p:first-child:last-child,#previewer-content pre:first-child:last-child,#previewer-content table:first-child:last-child,#previewer-content ul:first-child:last-child{margin:0}#previewer-content img{max-width:100%}#previewer-content a{color:#00f}#previewer-content a:hover{color:red}#previewer-content blockquote{border-left:4px solid #e4ad91;color:#da8e68;display:block;font-style:italic;margin-left:2em;padding-left:10px}#previewer-content ol,#previewer-content ul{padding-left:3em}#previewer-content table{border-collapse:collapse;margin:1em 0;width:100%}#previewer-content table td,#previewer-content table th{border:1px solid #666;padding:2px 4px}#previewer-content table th{background:rgba(45,141,234,.2)}#previewer-content table tr:nth-child(2n) td{background:rgba(45,141,234,.03)}#previewer-content em{color:red}#previewer-content del{color:#999}#previewer-content pre{word-wrap:break-word;background:rgba(45,141,234,.1);border-radius:5px;padding:5px;word-break:break-all}#previewer-content code{background:rgba(45,141,234,.1);border-radius:3px;padding:0 5px}#previewer-content pre code{background:0 0}#previewer-content hr{border:none;border-top:1px solid #ccc}#previewer-content .highlight{background:#ff0;color:red}#previewer-content.ng-hide{display:block!important;left:-99999px!important;top:-99999px!important}.panel-body{padding:10px}.tab-content .km-priority{border-right:1px dashed #eee;display:inline-block;font-size:inherit;margin:5px;vertical-align:middle;width:140px}.tab-content .km-priority .km-priority-item{margin:0 1px;padding:1px}.tab-content .km-priority .km-priority-item .km-priority-icon{background:url(images/iconpriority.png) repeat-y;background-color:transparent}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-0{background-position:0 20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-1{background-position:0 0}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-2{background-position:0 -20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-3{background-position:0 -40px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-4{background-position:0 -60px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-5{background-position:0 -80px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-6{background-position:0 -100px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-7{background-position:0 -120px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-8{background-position:0 -140px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-9{background-position:0 -160px}.tab-content .km-progress{border-right:1px dashed #eee;display:inline-block;font-size:inherit;margin:5px;vertical-align:middle;width:140px}.tab-content .km-progress .km-progress-item{margin:0 1px;padding:1px}.tab-content .km-progress .km-progress-item .km-progress-icon{background:url(images/iconprogress.png) repeat-y;background-color:transparent}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-0{background-position:0 20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-1{background-position:0 0}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-2{background-position:0 -20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-3{background-position:0 -40px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-4{background-position:0 -60px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-5{background-position:0 -80px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-6{background-position:0 -100px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-7{background-position:0 -120px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-8{background-position:0 -140px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-9{background-position:0 -160px}.resource-editor{display:inline-block;margin:5px;vertical-align:middle}.resource-editor .input-group,.resource-editor .km-resource{font-size:12px}.resource-editor .input-group{height:20px;width:168px}.resource-editor .resource-dropdown{border:1px solid #ccc;border-bottom-left-radius:4px;border-bottom-right-radius:4px;margin-top:-1px;position:relative;width:168px}.resource-editor .resource-dropdown .km-resource{list-style-type:none;margin-bottom:3px;max-height:500px;overflow:scroll;padding:0;position:absolute;width:154px}.resource-editor .resource-dropdown .km-resource.open{background-color:#fff;z-index:3}.resource-editor .resource-dropdown .km-resource li{border-radius:4px;display:inline-block;margin:2px 3px;padding:1px 2px}.resource-editor .resource-dropdown .km-resource li[disabled]{opacity:.5}.resource-editor .resource-dropdown .resource-caret{display:block;float:right;height:24px;padding:8px 1px;vertical-align:middle;width:12px}.resource-editor .resource-dropdown .resource-caret:hover{background-color:#eff3fa}.resource-editor .resource-dropdown .resource-caret:active{background-color:#c4d0ee}.resource-editor .btn,.resource-editor input.form-control{font-size:12px}.resource-editor input.form-control{border-bottom-left-radius:0;height:24px;padding:2px 4px}.resource-editor .input-group-btn{line-height:24px}.resource-editor .input-group-btn .btn{border-bottom-right-radius:0;height:24px;padding:2px 4px}.temp-panel{border-right:1px dashed #eee;display:inline-block;margin:5px 5px 5px 10px;vertical-align:middle}.temp-list{min-width:124px}.temp-item-wrap{margin:5px;padding:0 2px}.temp-item,.temp-item-wrap{display:inline-block;height:40px;width:50px}.temp-item{background-image:url(images/template.png);background-repeat:no-repeat}.temp-item.default{background-position:0 0}.temp-item.structure{background-position:-50px 0}.temp-item.filetree{background-position:-100px 0}.temp-item.right{background-position:-150px 0}.temp-item.fish-bone{background-position:-200px 0}.temp-item.tianpan{background-position:-250px 0}.current-temp-item{border:1px solid #fff;padding:0 0 0 5px;width:74px}.current-temp-item:hover{background-color:#eff3fa}.current-temp-item[disabled]{opacity:.5}.current-temp-item .caret{margin-left:5px}.temp-item-selected{background-color:#87a9da}.theme-panel{border-right:1px dashed #eee;display:inline-block;height:42px;margin:5px;padding:0 5px 0 0;vertical-align:middle}.theme-list{min-width:162px}div a.theme-item{color:#000;cursor:pointer;display:inline-block;font-size:12px;height:30px;line-height:30px;padding:0 5px;text-align:center;text-decoration:none;width:70px}.theme-item-selected{border:1px solid #fff;padding:6px 7px;width:100px}.theme-item-selected:hover{background-color:#eff3fa}.theme-item-selected .caret{margin-left:5px}.theme-item-selected[disabled]{opacity:.5}.theme-item-wrap{display:inline-block;height:40px;padding:5px;width:80px}.theme-item-wrap:hover{background-color:#eff3fa}.readjust-layout{border-right:1px dashed #eee;display:inline-block;padding:0 10px 0 5px;vertical-align:middle}.btn-icon{display:block;height:25px;margin-left:12px;width:25px}.btn-label{font-size:12px}.btn-wrap{cursor:pointer;display:inline-block;height:42px;text-decoration:none;width:50px}.btn-wrap[disabled] span{opacity:.5}.btn-wrap[disabled]{cursor:default}.btn-wrap[disabled]:active,.btn-wrap[disabled]:hover{background-color:transparent}.btn-wrap:hover,.btn-wrap:link,.btn-wrap:visited{text-decoration:none}.btn-wrap:hover{background-color:#eff3fa}.btn-wrap:active{background-color:#c4d0ee}.reset-layout-icon{background:url(images/icons.png) no-repeat;background-position:0 -150px}.style-operator{border-right:1px dashed #eee;display:inline-block;padding:0 5px}.style-operator,.style-operator .clear-style{vertical-align:middle}.clear-style-icon{background:url(images/icons.png) no-repeat;background-position:0 -175px}.s-btn-group-vertical,.s-btn-icon{display:inline-block;vertical-align:middle}.s-btn-icon{height:20px;margin-right:3px;width:20px}.s-btn-label{display:inline-block;font-size:12px;vertical-align:middle}.s-btn-wrap{display:inline-block;font-size:0;padding:0 5px 0 3px;text-decoration:none}.s-btn-wrap[disabled] span{opacity:.5}.s-btn-wrap[disabled]{cursor:default}.s-btn-wrap[disabled]:active,.s-btn-wrap[disabled]:hover{background-color:transparent}.s-btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.s-btn-wrap:active{background-color:#c4d0ee}.copy-style-icon{background:url(images/icons.png) no-repeat;background-position:0 -200px}.paste-style-wrap{display:block}.paste-style-icon{background-position:0 -220px}.font-operator{display:inline-block;font-size:12px;padding:0 5px;vertical-align:middle;width:170px}.font-operator .font-family-list,.font-operator .font-size-list{border:1px solid #eee;display:inline-block;padding:2px 4px}.current-font-item a{display:inline-block;text-decoration:none}.current-font-family{width:75px}.current-font-family,.current-font-size{height:18px;overflow:hidden;vertical-align:bottom}.current-font-size{width:32px}.current-font-item[disabled]{opacity:.5}.font-item{line-height:1em;text-align:left}.font-item-selected{background-color:#87a9da}.font-bold,.font-italics{background:url(images/icons.png) no-repeat;cursor:pointer;display:inline-block;margin:0 3px}.font-bold:hover,.font-italics:hover{background-color:#eff3fa}.font-bold:active,.font-italics:active{background-color:#c4d0ee}.font-bold[disabled],.font-italics[disabled]{opacity:.5}.font-bold{background-position:0 -240px}.font-italics{background-position:0 -260px}.font-bold-selected,.font-italics-selected{background-color:#87a9da}.font-color-wrap{border:1px solid #efefef;display:inline-block;font-size:0;height:22px;margin:3px 3px 0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:30px}.font-color-wrap[disabled]{opacity:.5}.font-color-wrap .quick-font-color{color:#000;cursor:default;display:inline-block;font-size:14px;height:16px;line-height:16px;text-align:center;vertical-align:top;width:20px}.font-color-wrap .quick-font-color:hover{background-color:#eff3fa}.font-color-wrap .quick-font-color:active{background-color:#c4d0ee}.font-color-wrap .quick-font-color[disabled]{opacity:.5}.font-color-wrap .font-color-preview{background-color:#000;display:inline-block;height:2px;margin:0 4px;width:12px}.font-color-wrap .font-color-preview[disabled]{opacity:.5}.font-color{display:inline-block;height:16px;width:8px}.font-color:hover{background-color:#eff3fa}.font-color:active{background-color:#c4d0ee}.font-color[disabled]{opacity:.5}.font-color .caret{margin-left:-2px;margin-top:7px}.bg-color-wrap{border:1px solid #efefef;display:inline-block;font-size:0;height:22px;margin:3px 3px 0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:30px}.bg-color-wrap[disabled]{opacity:.5}.bg-color-wrap .quick-bg-color{background:url(images/icons.png) no-repeat center -1260px;color:#000;cursor:default;display:inline-block;font-size:14px;height:16px;line-height:16px;text-align:center;vertical-align:top;width:20px}.bg-color-wrap .quick-bg-color:hover{background-color:#eff3fa}.bg-color-wrap .quick-bg-color:active{background-color:#c4d0ee}.bg-color-wrap .quick-bg-color[disabled]{opacity:.5}.bg-color-wrap .bg-color-preview{background-color:#fff;display:inline-block;height:2px;margin:0 4px;width:12px}.bg-color-wrap .bg-color-preview[disabled]{opacity:.5}.bg-color{display:inline-block;height:16px;width:8px}.bg-color:hover{background-color:#eff3fa}.bg-color:active{background-color:#c4d0ee}.bg-color[disabled]{opacity:.5}.bg-color .caret{margin-left:-2px;margin-top:7px}.btn-group-vertical .expand,.btn-group-vertical .expand-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .expand-caption:hover,.btn-group-vertical .expand:hover{background-color:#eff3fa}.btn-group-vertical .expand-caption:active,.btn-group-vertical .expand:active{background-color:#c4d0ee}.btn-group-vertical .expand-caption.active,.btn-group-vertical .expand.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .expand{background:url(images/icons.png) no-repeat 0 -995px;background-position-x:50%;height:25px}.btn-group-vertical .expand-caption{height:20px}.btn-group-vertical .expand-caption .caption{font-size:12px}.btn-group-vertical .select,.btn-group-vertical .select-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .select-caption:hover,.btn-group-vertical .select:hover{background-color:#eff3fa}.btn-group-vertical .select-caption:active,.btn-group-vertical .select:active{background-color:#c4d0ee}.btn-group-vertical .select-caption.active,.btn-group-vertical .select.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .select{background:url(images/icons.png) no-repeat 7px -1175px;height:25px}.btn-group-vertical .select-caption{height:20px}.btn-group-vertical .select-caption .caption{font-size:12px}.btn-group-vertical{margin:5px;vertical-align:middle}.btn-group-vertical .search,.btn-group-vertical .search-caption{border:none!important;border-radius:0!important;margin:0;padding:0;width:40px}.btn-group-vertical .search-caption:hover,.btn-group-vertical .search:hover{background-color:#eff3fa}.btn-group-vertical .search-caption:active,.btn-group-vertical .search:active{background-color:#c4d0ee}.btn-group-vertical .search-caption.active,.btn-group-vertical .search.active{background-color:#eff3fa;-webkit-box-shadow:none;box-shadow:none}.btn-group-vertical .search{background:url(images/icons.png) no-repeat 0 -345px;background-position-x:50%;height:25px}.btn-group-vertical .search-caption{height:20px}.btn-group-vertical .search-caption .caption{font-size:12px}.search-box{background-color:#fff;border:1px solid #dbdbdb;float:right;height:40px;opacity:1;padding:3px 6px;position:relative;top:0;width:330px;z-index:3}.search-box .prev-and-next-btn,.search-box .search-input-wrap{float:left}.search-box .close-search{border-radius:100%;float:right;height:16px;margin-right:10px;margin-top:6px;padding:1px;width:16px}.search-box .close-search .glyphicon{top:-1px}.search-box .close-search:hover{background-color:#efefef}.search-box .close-search:active{background-color:#999}.search-box .search-input-wrap{width:240px}.search-box .prev-and-next-btn{margin-left:5px}.search-box .prev-and-next-btn .btn:focus{outline:0}.search-box .search-addon{background-color:#fff}.tool-group{padding:0}.tool-group[disabled]{opacity:.5}.tool-group .tool-group-item{border-radius:4px;display:inline-block}.tool-group .tool-group-item .tool-group-icon{height:20px;margin:1px;padding:2px;width:20px}.tool-group .tool-group-item:hover{background-color:#eff3fa}.tool-group .tool-group-item.active,.tool-group .tool-group-item:active{background-color:#c4d0ee}.nav-bar{-ms-flex-pack:space-evenly;-webkit-box-pack:space-evenly;background:#dc8686;border-radius:4px;bottom:10px;-webkit-box-shadow:3px 3px 10px rgba(0,0,0,.2);box-shadow:3px 3px 10px rgba(0,0,0,.2);color:#fff;justify-content:space-evenly;left:10px;padding:5px 0;position:absolute;-webkit-transition:-webkit-transform .7s ease .1s;transition:-webkit-transform .7s ease .1s;transition:transform .7s ease .1s;transition:transform .7s ease .1s,-webkit-transform .7s ease .1s;width:240px;z-index:10}.nav-bar,.nav-bar .nav-btn{-ms-flex-align:center;-webkit-box-align:center;align-items:center;display:-ms-flexbox;display:-webkit-box;display:flex;height:35px}.nav-bar .nav-btn{-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;line-height:35px;text-align:center;width:35px}.nav-bar .nav-btn.active .icon,.nav-bar .nav-btn:hover .icon{fill:#5c94f3}.nav-bar .zoom-in .icon{background-position:0 -730px}.nav-bar .zoom-out .icon{background-position:0 -750px}.nav-bar .hand .icon{background-position:0 -770px;height:25px;margin:0 auto;width:25px}.nav-bar .nav-trigger .icon{background-position:0 -845px;height:25px;margin:0 auto;width:25px}.nav-bar .zoom-pan{background:#fff;-webkit-box-shadow:0 1px #e50000;box-shadow:0 1px #e50000;height:70px;margin:3px auto;overflow:visible;position:relative;width:2px}.nav-bar .zoom-pan .origin{background:0 0;height:8px;left:-9px;margin-top:-4px;position:absolute;width:20px}.nav-bar .zoom-pan .origin:after{background:#fff;content:" ";display:block;height:2px;left:7px;position:absolute;top:3px;width:6px}.nav-bar .zoom-pan .indicator{background:#fff;border-radius:100%;height:8px;left:-3px;margin-top:-4px;position:absolute;width:8px}.nav-previewer{background:#fff;border-radius:0 2px 2px 0;bottom:30px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);cursor:crosshair;height:120px;left:45px;padding:1px;position:absolute;-webkit-transition:-webkit-transform .7s ease .1s;transition:-webkit-transform .7s ease .1s;transition:transform .7s ease .1s;transition:transform .7s ease .1s,-webkit-transform .7s ease .1s;width:140px;z-index:9}.nav-previewer.grab{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}',""]);const o=i},32641:(t,e,n)=>{var r;r=function(t,e,r){return window.HotBox=n(15940),r.exports=window.HotBox}.call(e,n,e,t),void 0===r||(t.exports=r)},29029:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=window.kityminder.Minder}.call(e,n,e,t),void 0===r||(t.exports=r)},11324:(t,e,n)=>{var r;r=function(t,e,n){function r(){var t={"application/km":""},e={"\ufeff":"SPLITOR","":"application/km"};function n(t,e){if(!this.isPureText(e)){if(!this.whichMimeType(e))throw new Error("unknow mimetype!");e=this.getPureText(e)}return!1===t?e:t+"\ufeff"+e}this.registMimeTypeProtocol=function(n,r){if(r&&e[r])throw new Error("sing has registed!");if(n&&t[n])throw new Error("mimetype has registed!");e[r]=n,t[n]=r},this.getMimeTypeProtocol=function(e,r){var i=t[e]||!1;return void 0===r?n.bind(this,i):n(i,r)},this.getSpitor=function(){return"\ufeff"},this.getMimeType=function(n){return void 0!==n?e[n]||null:t}}return r.prototype.isPureText=function(t){return!~t.indexOf(this.getSpitor())},r.prototype.getPureText=function(t){return this.isPureText(t)?t:t.split(this.getSpitor())[1]},r.prototype.whichMimeType=function(t){return this.isPureText(t)?null:this.getMimeType(t.split(this.getSpitor())[0])},n.exports=function(){this.minder.supportClipboardEvent&&!kity.Browser.gecko&&(this.MimeType=new r)}}.call(e,n,e,t),void 0===r||(t.exports=r)},7862:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(){var t=this.minder,e=window.kityminder.data;if(t.supportClipboardEvent&&!kity.Browser.gecko){var n=this.fsm,r=this.receiver,i=this.MimeType,o=i.getMimeTypeProtocol("application/km"),a=e.getRegisterProtocol("json").decode,s=[];document.addEventListener("copy",(function(e){if(document.activeElement==r.element){var i=e;switch(n.state()){case"input":break;case"normal":var o=[].concat(t.getSelectedNodes());if(o.length){var a;if(o.length>1)if(o.sort((function(t,e){return t.getLevel()-e.getLevel()})),(a=o[0].getLevel())!==o[o.length-1].getLevel()){var s,u=0,l=o.length,h=l-1;for(s=o[h];s.getLevel()!==a;){for(u=0;u<l&&o[u].getLevel()===a;){if(o[u].isAncestorOf(s)){o.splice(h,1);break}u++}s=o[--h]}}var f=c(o);i.clipboardData.setData("text/plain",f)}e.preventDefault()}}})),document.addEventListener("cut",(function(e){if(document.activeElement==r.element){if("normal"!==t.getStatus())return void e.preventDefault();var i=e;switch(n.state()){case"input":break;case"normal":var o=t.getSelectedNodes();o.length&&(i.clipboardData.setData("text/plain",c(o)),t.execCommand("removenode")),e.preventDefault()}}})),document.addEventListener("paste",(function(e){if(document.activeElement==r.element){if("normal"!==t.getStatus())return void e.preventDefault();var o=e,c=n.state(),u=o.clipboardData.getData("text/plain");switch(c){case"input":if(!i.isPureText(u))return void e.preventDefault();break;case"normal":var l=t.getSelectedNodes();if("application/km"===i.whichMimeType(u)){var h,f=a(i.getPureText(u));l.forEach((function(e){for(var n=f.length-1;n>=0;n--)h=t.createNode(null,e),t.importNode(h,f[n]),s.push(h),e.appendChild(h)})),t.select(s,!0),s=[],t.refresh()}else{if(o.clipboardData&&o.clipboardData.items[0].type.indexOf("image")>-1){var d=o.clipboardData.items[0].getAsFile();return angular.element(document.body).injector().get("server").uploadImage(d).then((function(e){var n=e.data;0===n.errno&&t.execCommand("image",n.data.url)}))}l.forEach((function(e){t.Text2Children(e,u)}))}e.preventDefault()}}}))}function c(n){for(var r=[],i=0,a=n.length;i<a;i++)r.push(t.exportNode(n[i]));return o(e.getRegisterProtocol("json").encode(r))}}}.call(e,n,e,t),void 0===r||(t.exports=r)},80952:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(){var t;if(!(t="string"==typeof this.selector?document.querySelector(this.selector):this.selector))throw new Error("Invalid selector: "+this.selector);t.classList.add("km-editor"),this.container=t}}.call(e,n,e,t),void 0===r||(t.exports=r)},43122:(t,e,n)=>{var r;r=function(t,e,r){var i=n(32641);new(n(91522))("drag");return r.exports=function(){var t,e,n=this.fsm,r=this.minder,o=this.hotbox;this.receiver.element,n.when("* -> drag",(function(){})),n.when("drag -> *",(function(t,e,n){}));var a,s,c,u,l,h,f=20,d=1,p=!1,g=!1;function m(t,e){if(!t)return p=g=!1,h&&kity.releaseFrame(h),void(h=null);h||(h=kity.requestFrame(function(t,e,n){return function(r){switch(t){case"left":n._viewDragger.move({x:-e,y:0},0);break;case"top":n._viewDragger.move({x:0,y:-e},0);break;case"right":n._viewDragger.move({x:e,y:0},0);break;case"bottom":n._viewDragger.move({x:0,y:e},0);break;default:return}r.next()}}(t,e,r)))}r.on("mousedown",(function(n){d=0;var i=r.getPaper().container.getBoundingClientRect();t=n.originEvent.clientX,e=n.originEvent.clientY,l=i.top,a=i.width,s=i.height})),r.on("mousemove",(function(h){if("drag"===n.state()&&0==d&&r.getSelectedNode()&&(Math.abs(t-h.originEvent.clientX)>f||Math.abs(e-h.originEvent.clientY)>f)&&(c=h.originEvent.clientX,u=h.originEvent.clientY-l,c<f?m("right",f-c):c>a-f?m("left",f+c-a):p=!0,u<f?m("bottom",u):u>s-f?m("top",f+u-s):g=!0,p&&g&&m(!1)),"drag"!==n.state()&&0===d&&r.getSelectedNode()&&(Math.abs(t-h.originEvent.clientX)>f||Math.abs(e-h.originEvent.clientY)>f))return"hotbox"===n.state()&&o.active(i.STATE_IDLE),n.jump("drag","user-drag")})),window.addEventListener("mouseup",(function(){if(d=1,"drag"===n.state())return m(!1),n.jump("normal","drag-finish")}),!1)}}.call(e,n,e,t),void 0===r||(t.exports=r)},92840:(t,e,n)=>{var r;r=function(t,e,r){var i=new(n(91522))("fsm");function o(t,e,n,r){return t.when==e&&(("*"==t.enter||t.enter==r)&&("*"==t.exit||t.exit==n||void 0))}function a(t){var e=t,n=" -> ",r=[];this.jump=function(t,n){if(!n)throw new Error("Please tell fsm the reason to jump");var a,s,c=e,u=[c,t].concat([].slice.call(arguments,1));for(a=0;a<r.length;a++)if(o((s=r[a]).condition,"before",c,t)&&s.apply(null,u))return;for(e=t,i.log("[{0}] {1} -> {2}",n,c,t),a=0;a<r.length;a++)o((s=r[a]).condition,"after",c,t)&&s.apply(null,u);return e},this.state=function(){return e},this.when=function(t,e){var i,o,a,s;if(1==arguments.length&&(e=t,t="* -> *"),2==(o=t.split(" - ")).length?i="before":2==(o=t.split(n)).length&&(i="after"),!i)throw new Error("Illegal fsm condition: "+t);a=o[0],s=o[1],e.condition={when:i,exit:a,enter:s},r.push(e)}}return r.exports=function(){this.fsm=new a("normal")}}.call(e,n,e,t),void 0===r||(t.exports=r)},37641:(t,e,n)=>{var r;r=function(t,e,r){var i=n(4223).Z;return window.diff=i,r.exports=function(){var t,e,n,r,o=this.minder,a=this.hotbox;function s(){n=[],r=[],t=o.exportJson()}function c(){var e=o.exportJson(),r=i(e,t);if(r.length){for(n.push(r);n.length>100;)n.shift();return t=e,!0}}function u(){e=!0;var a,s=n.pop();s&&(o.applyPatches(s),a=o.exportJson(),r.push(i(a,t)),t=a),e=!1}function l(){e=!0;var t=r.pop();t&&(o.applyPatches(t),c()),e=!1}function h(){return!!n.length}function f(){return!!r.length}this.history={reset:s,undo:u,redo:l,hasUndo:h,hasRedo:f},s(),o.on("contentchange",(function(){e||c()&&(r=[])})),o.on("import",s),o.on("patch",(function(t){if(e){var n=t.patch;switch(n.express){case"node.add":o.select(n.node.getChild(n.index),!0);break;case"node.remove":case"data.replace":case"data.remove":case"data.add":o.select(n.node,!0)}}}));var d=a.state("main");d.button({position:"top",label:"撤销",key:"Ctrl + Z",enable:h,action:u,next:"idle"}),d.button({position:"top",label:"重做",key:"Ctrl + Y",enable:f,action:l,next:"idle"})}}.call(e,n,e,t),void 0===r||(t.exports=r)},23425:(t,e,n)=>{var r;r=function(t,e,r){var i=n(32641);return r.exports=function(){var t=this.fsm,e=this.minder,n=this.receiver,r=this.container,o=new i(r);o.setParentFSM(t),t.when("normal -> hotbox",(function(t,n,r){var i,a=e.getSelectedNode();if(a){var s=a.getRenderBox();i={x:s.cx,y:s.cy}}o.active("main",i)})),t.when("normal -> normal",(function(t,n,r,i){"shortcut-handle"==r&&(o.dispatch(i)?i.preventDefault():e.dispatchKeyEvent(i))})),t.when("modal -> normal",(function(t,e,r,i){"import-text-finish"==r&&n.element.focus()})),this.hotbox=o}}.call(e,n,e,t),void 0===r||(t.exports=r)},95998:(t,e,n)=>{var r;r=function(t,e,r){n(56717);var i=new(n(91522))("input");return r.exports=function(){var t=this.fsm,e=this.minder,n=this.hotbox,r=this.receiver,o=r.element,a=window.kity.Browser.gecko;function s(){var n=e.getSelectedNode();if(n){var i=o;if(o.innerText="","bold"===n.getData("font-weight")){var s=document.createElement("b");i.appendChild(s),i=s}if("italic"===n.getData("font-style")){var c=document.createElement("i");i.appendChild(c),i=c}i.innerText=e.queryCommandValue("text"),a&&r.fixFFCaretDisappeared(),t.jump("input","input-request"),r.selectAll()}}function c(){var t=e.getSelectedNode();if(t){var n=t.getData("font-size")||t.getStyle("font-size");o.style.fontSize=n+"px",o.style.minWidth=0,o.style.minWidth=o.clientWidth+"px",o.style.fontWeight=t.getData("font-weight")||"",o.style.fontStyle=t.getData("font-style")||"",o.classList.add("input"),o.focus()}}function u(){o.classList.remove("input"),r.selectAll()}function l(){var t=l,n=e.getSelectedNode();n&&(t.timer||(t.timer=setTimeout((function(){var e=n.getRenderBox("TextRenderer");o.style.left=Math.round(e.x)+"px",o.style.top=(i.flaged?Math.round(e.bottom+30):Math.round(e.y))+"px",t.timer=0}))))}!function(){i.flaged&&o.classList.add("debug");o.onmousedown=function(t){t.stopPropagation()},e.on("layoutallfinish viewchange viewchanged selectionchange",(function(e){"viewchange"==e.type&&"input"!=t.state()||l()})),l()}(),t.when("* -> input",c),t.when("input -> *",(function(t,n,r){return"input-cancel"===r?u():function(){var t=[].slice.call(o.childNodes);setTimeout((function(){o.innerHTML=""}),0);var n=e.getSelectedNode();if(t=function(t){for(var n,r,i,o="",a="\t",s="\n",c=/\S/,l=" ",h=new RegExp("( |"+String.fromCharCode(160)+")"),f=document.createElement("br"),d=!1,p=!1,g=0,m=t.length;g<m;g++)switch(n=t[g],Object.prototype.toString.call(n)){case"[object HTMLBRElement]":o+=s;break;case"[object Text]":if(n=n.textContent.replace(" "," "),c.test(n))o+=n;else for(i=n.length;i--;)h.test(n[i])?o+=l:n[i]===a&&(o+=a);break;case"[object HTMLElement]":switch(n.nodeName){case"B":d=!0;break;case"I":p=!0}[].splice.apply(t,[g,1].concat([].slice.call(n.childNodes))),m=t.length,g--;break;case"[object HTMLSpanElement]":[].splice.apply(t,[g,1].concat([].slice.call(n.childNodes))),m=t.length,g--;break;case"[object HTMLImageElement]":n.src&&/http(|s):\/\//.test(n.src)&&e.execCommand("Image",n.src,n.alt);break;case"[object HTMLDivElement]":r=[];var v=0;for(m=n.childNodes.length;v<m;v++)r.push(n.childNodes[v]);r.push(f),[].splice.apply(t,[g,1].concat(r)),m=t.length,g--;break;default:if(n&&n.childNodes.length){for(r=[],v=0,m=n.childNodes.length;v<m;v++)r.push(n.childNodes[v]);r.push(f),[].splice.apply(t,[g,1].concat(r)),m=t.length,g--}else n&&void 0!==n.textContent?o+=n.textContent:o+=""}return o=(o=o.replace(/^\n*|\n*$/g,"")).replace(new RegExp("(\n|\r|\n\r)( |"+String.fromCharCode(160)+"){4}","g"),"$1\t"),e.getSelectedNode().setText(o),d?e.queryCommandState("bold")||e.execCommand("bold"):e.queryCommandState("bold")&&e.execCommand("bold"),p?e.queryCommandState("italic")||e.execCommand("italic"):e.queryCommandState("italic")&&e.execCommand("italic"),u(),o}(t),function(t,n){try{e.decodeData("text",n).then((function(n){function r(t,e,n){var i=e.data;t.setText(i.text||"");for(var o=e.children||[],a=0;a<o.length;a++)r(n.createNode(null,t),o[a],n);return t}r(t,n,e),e.fire("contentchange"),e.getRoot().renderTree(),e.layout(300)}))}catch(t){if(e.fire("contentchange"),e.getRoot().renderTree(),"Error: Invalid local format"!==t.toString())throw t}}(n,t),"root"==n.type){var r=e.getRoot().getText();e.fire("initChangeRoot",{text:r})}}()})),r.onblur((function(e){"input"==t.state()&&t.jump("normal","input-commit")})),e.on("beforemousedown",(function(){"input"==t.state()&&t.jump("normal","input-commit")})),e.on("dblclick",(function(){e.getSelectedNode()&&"readonly"!==e._status&&s()})),n.state("main").button({position:"center",label:"编辑",key:"F2",enable:function(){return-1!=e.queryCommandState("text")},action:s}),this.editText=s}}.call(e,n,e,t),void 0===r||(t.exports=r)},75357:(t,e,n)=>{var r;r=function(t,e,r){var i=n(32641);return console.log("Hotbox",i),r.exports=function(){var t,e,n=this.fsm,r=this.minder,o=this.receiver,a=this.container,s=o.element,c=this.hotbox,u=!1;o.listen("normal",(function(t){if(o.enable(),t.is("Space"))return t.preventDefault(),kity.Browser.safari&&(s.innerHTML=""),n.jump("hotbox","space-trigger");if("keydown"===t.type){if(r.getSelectedNode()){if(function(t){return!(t.ctrlKey||t.metaKey||t.altKey)&&(t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||108!=t.keyCode&&t.keyCode>=96&&t.keyCode<=111||108!=t.keyCode&&t.keyCode>=96&&t.keyCode<=111||229==t.keyCode||0===t.keyCode)}(t))return n.jump("input","user-input")}else s.innerHTML="";n.jump("normal","shortcut-handle",t)}})),o.listen("hotbox",(function(t){o.disable(),t.preventDefault();c.dispatch(t);if(c.state()==i.STATE_IDLE&&"hotbox"==n.state())return n.jump("normal","hotbox-idle")})),o.listen("input",(function(t){if(o.enable(),"keydown"==t.type){if(t.is("Enter"))return t.preventDefault(),n.jump("normal","input-commit");if(t.is("Esc"))return t.preventDefault(),n.jump("normal","input-cancel");(t.is("Tab")||t.is("Shift + Tab"))&&t.preventDefault()}else if("keyup"==t.type&&t.is("Esc")){if(t.preventDefault(),!u)return n.jump("normal","input-cancel")}else"compositionstart"==t.type?u=!0:"compositionend"==t.type&&setTimeout((function(){u=!1}))})),a.addEventListener("mousedown",(function(r){2==r.button&&r.preventDefault(),"hotbox"==n.state()?(c.active(i.STATE_IDLE),n.jump("normal","blur")):"normal"==n.state()&&2==r.button&&(t=r.clientX,e=r.clientY)}),!1),a.addEventListener("mousewheel",(function(t){"hotbox"==n.state()&&(c.active(i.STATE_IDLE),n.jump("normal","mousemove-blur"))}),!1),a.addEventListener("contextmenu",(function(t){t.preventDefault()})),a.addEventListener("mouseup",(function(i){"normal"==n.state()&&2==i.button&&i.clientX==t&&i.clientY==e&&r.getSelectedNode()&&n.jump("hotbox","content-menu")}),!1),c.$element.addEventListener("mousedown",(function(t){t.stopPropagation()}))}}.call(e,n,e,t),void 0===r||(t.exports=r)},87361:(t,e,n)=>{var r;r=function(t,e,r){var i=n(29029);return r.exports=function(){var t=new i({enableKeyReceiver:!1,enableAnimation:!0});t.renderTo(this.selector),t.setTheme(null),t.select(t.getRoot(),!0),t.execCommand("text","中心主题"),this.minder=t,console.log("minder",this.minder)}}.call(e,n,e,t),void 0===r||(t.exports=r)},54771:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(){var t=this,e=this.minder,n=this.hotbox,r=this.fsm,i=n.state("main"),o=0;["前移:Alt+Up:ArrangeUp","下级:Tab|Insert:AppendChildNode","同级:Enter:AppendSiblingNode","后移:Alt+Down:ArrangeDown","删除:Delete|Backspace:RemoveNode","上级:Shift+Tab|Shift+Insert:AppendParentNode"].forEach((function(n){var a=n.split(":"),s=a.shift(),c=a.shift(),u=a.shift();i.button({position:"ring",label:s,key:c,action:function(){if(0===u.indexOf("Append")){o++,e.execCommand(u,"分支主题"),e.on("layoutallfinish",(function n(){--o||t.editText(),e.off("layoutallfinish",n)}))}else e.execCommand(u),r.jump("normal","command-executed")},enable:function(){return-1!=e.queryCommandState(u)}})})),i.button({position:"bottom",label:"导入节点",key:"Alt + V",enable:function(){return 1==e.getSelectedNodes().length},action:function(){e.fire("importNodeData")},next:"idle"}),i.button({position:"bottom",label:"导出节点",key:"Alt + C",enable:function(){return 1==e.getSelectedNodes().length},action:function(){e.fire("exportNodeData")},next:"idle"})}}.call(e,n,e,t),void 0===r||(t.exports=r)},73642:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(){var t=this.minder,e=this.hotbox;e.state("main").button({position:"top",label:"优先级",key:"P",next:"priority",enable:function(){return-1!=t.queryCommandState("priority")}});var n=e.state("priority");"123456789".replace(/./g,(function(e){n.button({position:"ring",label:"P"+e,key:e,action:function(){t.execCommand("Priority",e)}})})),n.button({position:"center",label:"移除",key:"Del",action:function(){t.execCommand("Priority",0)}}),n.button({position:"top",label:"返回",key:"esc",next:"back"})}}.call(e,n,e,t),void 0===r||(t.exports=r)},95593:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(){var t=this.minder,e=this.hotbox;e.state("main").button({position:"top",label:"进度",key:"G",next:"progress",enable:function(){return-1!=t.queryCommandState("progress")}});var n=e.state("progress");"012345678".replace(/./g,(function(e){n.button({position:"ring",label:"G"+e,key:e,action:function(){t.execCommand("Progress",parseInt(e)+1)}})})),n.button({position:"center",label:"移除",key:"Del",action:function(){t.execCommand("Progress",0)}}),n.button({position:"top",label:"返回",key:"esc",next:"back"})}}.call(e,n,e,t),void 0===r||(t.exports=r)},70368:(t,e,n)=>{var r;r=function(t,e,r){var i=n(30468);return r.exports=function(){var t=this.fsm,e=this.minder,n=document.createElement("div");n.contentEditable=!0,n.setAttribute("tabindex",-1),n.classList.add("receiver"),n.onkeydown=n.onkeypress=n.onkeyup=a,n.addEventListener("compositionstart",a),this.container.appendChild(n);var r={element:n,selectAll:function(){n.innerHTML||(n.innerHTML=" ");var t=document.createRange(),e=window.getSelection();t.selectNodeContents(n),e.removeAllRanges(),e.addRange(t),n.focus()},enable:function(){n.setAttribute("contenteditable",!0)},disable:function(){n.setAttribute("contenteditable",!1)},fixFFCaretDisappeared:function(){n.removeAttribute("contenteditable"),n.setAttribute("contenteditable","true"),n.blur(),n.focus()},onblur:function(t){n.onblur=t}};r.selectAll(),e.on("beforemousedown",r.selectAll),e.on("receiverfocus",r.selectAll),e.on("readonly",(function(){e.disable(),editor.receiver.element.parentElement.removeChild(editor.receiver.element),editor.hotbox.$container.removeChild(editor.hotbox.$element)}));var o=[];function a(e){var n;e.is=function(t){for(var e=t.split("|"),n=0;n<e.length;n++)if(i.is(this,e[n]))return!0;return!1};for(var r=0;r<o.length;r++)if(("*"==(n=o[r]).notifyState||n.notifyState==t.state())&&n.call(null,e))return}r.listen=function(t,e){1==arguments.length&&(e=t,t="*"),e.notifyState=t,o.push(e)},this.receiver=r}}.call(e,n,e,t),void 0===r||(t.exports=r)},91522:(t,e,n)=>{var r;r=function(t,e,r){var i=n(31458);function o(){}return r.exports=function(t){if(this.flaged=-1!=window.location.search.indexOf(t)){var e=function(t){for(var e=0,n=0;n<t.length;n++)e+=t.charCodeAt(n);return e}(t)%360;i("background: hsl({0}, 50%, 80%); color: hsl({0}, 100%, 30%); padding: 2px 3px; margin: 1px 3px 0 0;border-radius: 2px;",e);this.log=function(){i.apply(null,arguments)}}else this.log=o}}.call(e,n,e,t),void 0===r||(t.exports=r)},31458:(t,e,n)=>{var r;r=function(t,e,n){return n.exports=function(t,e){return"object"!=typeof e&&(e=[].slice.call(arguments,1)),String(t).replace(/\{(\w+)\}/gi,(function(t,n){return e[n]||n}))}}.call(e,n,e,t),void 0===r||(t.exports=r)},56717:(t,e,n)=>{var r;void 0===(r=function(t,e,n){!("innerText"in document.createElement("a"))&&"getSelection"in window&&(HTMLElement.prototype.__defineGetter__("innerText",(function(){var t,e,n=window.getSelection(),r=[];for(e=0;e<n.rangeCount;e++)r[e]=n.getRangeAt(e);for(n.removeAllRanges(),n.selectAllChildren(this),t=n.toString(),n.removeAllRanges(),e=0;e<r.length;e++)n.addRange(r[e]);return t})),HTMLElement.prototype.__defineSetter__("innerText",(function(t){this.innerHTML=(t||"").replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>")})))}.call(e,n,e,t))||(t.exports=r)},4223:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=Object.keys?Object.keys:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};function i(t){return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function o(t){return"object"==typeof t?JSON.parse(JSON.stringify(t)):t}function a(t,e,n,s){for(var c=r(e),u=r(t),l=!1,h=u.length-1;h>=0;h--){var f=t[p=u[h]];if(e.hasOwnProperty(p)){var d=e[p];"object"==typeof f&&null!=f&&"object"==typeof d&&null!=d?a(f,d,n,s+"/"+i(p)):f!=d&&(!0,n.push({op:"replace",path:s+"/"+i(p),value:o(d)}))}else n.push({op:"remove",path:s+"/"+i(p)}),l=!0}if(l||c.length!=u.length)for(h=0;h<c.length;h++){var p=c[h];t.hasOwnProperty(p)||n.push({op:"add",path:s+"/"+i(p),value:o(e[p])})}}const s=function(t,e){var n=[];return a(t,e,n,""),n}},30468:(t,e,n)=>{var r;r=function(t,e){var r=n(6743),i=4096,o=8192,a=16384;function s(t){return"string"==typeof t?(e=0,t.toLowerCase().split(/\s*\+\s*/).forEach((function(t){switch(t){case"ctrl":case"cmd":e|=i;break;case"alt":e|=o;break;case"shift":e|=a;break;default:e|=r[t]}})),e):function(t){var e=0;(t.ctrlKey||t.metaKey)&&(e|=i);t.altKey&&(e|=o);t.shiftKey&&(e|=a);if(-1===[16,17,18,91].indexOf(t.keyCode)){if(229===t.keyCode&&t.keyIdentifier)return e|parseInt(t.keyIdentifier.substr(2),16);e|=t.keyCode}return e}(t);var e}e.hash=s,e.is=function(t,e){return t&&e&&s(t)==s(e)}}.call(e,n,e,t),void 0===r||(t.exports=r)},6743:(t,e,n)=>{var r;r=function(t,e,n){var r={Shift:16,Control:17,Alt:18,CapsLock:20,BackSpace:8,Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Direction:{37:1,38:1,39:1,40:1},Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(t){r[t]=t.charCodeAt(0)-o+65}));var a=9;do{r[a.toString()]=a+48}while(--a);n.exports=r}.call(e,n,e,t),void 0===r||(t.exports=r)},54206:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(70538),i=n(56294),o=n(20629);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}r.default.use(i.Z);const u={name:"FileContent",components:{AceEditor:function(){return n.e(911).then(n.bind(n,3911))},TEditor:function(){return n.e(722).then(n.bind(n,30722))},MDEditor:function(){return n.e(544).then(n.bind(n,94544))},OnlyOffice:function(){return n.e(942).then(n.bind(n,17942))},Drawio:function(){return n.e(34).then(n.bind(n,67034))}},props:{value:{type:Boolean,default:!1},file:{type:Object,default:function(){return{}}}},data:function(){return{ready:!1,loadContent:0,loadIng:0,fileId:0,unsaveTip:!1,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0}},mounted:function(){var t=this;document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleMessage),this.$isSubElectron&&(window.__onBeforeUnload=function(){if(!t.equalContent)return $A.modalConfirm({content:"修改的内容尚未保存,真的要放弃修改吗?",cancelText:"取消",okText:"放弃",onOk:function(){t.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy:function(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleMessage)},watch:{file:{handler:function(t){this.fileId!=t.id&&(this.fileId=t.id,this.contentDetail=null,this.getContent())},immediate:!0,deep:!0},value:{handler:function(t){t?(this.ready=!0,this.editUser=[this.userId]):this.fileContent[this.fileId]=this.contentDetail},immediate:!0},wsMsg:{handler:function(t){var e=this,n=t.type,r=t.data;switch(n){case"path":r.path=="file/content/"+this.fileId&&(this.editUser=r.userids);break;case"file":"content"==r.action&&this.value&&r.id==this.fileId&&$A.modalConfirm({title:"更新提示",content:"团队成员("+t.nickname+")更新了内容,<br/>更新时间:"+$A.formatDate("Y-m-d H:i:s",t.time)+"。<br/><br/>点击【确定】加载最新内容。",onOk:function(){e.getContent()}})}},deep:!0},wsOpenNum:function(){this.$isSubElectron&&this.$store.dispatch("websocketPath","file/content/"+this.fileId)}},computed:s(s({},(0,o.rn)(["fileContent","wsMsg","userId","wsOpenNum"])),{},{equalContent:function(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad:function(){return this.loadContent>0||this.previewLoad},isPreview:function(){return this.contentDetail&&!0===this.contentDetail.preview},previewLoad:function(){return this.isPreview&&!0===this.loadPreview},previewUrl:function(){return this.isPreview?$A.apiUrl("../fileview/onlinePreview?url="+encodeURIComponent(this.contentDetail.url)):""}}),methods:{handleMessage:function(t){if("ready"===t.data.act)this.loadPreview=!1},keySave:function(t){this.value&&83===t.keyCode&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.onSaveSave())},getContent:function(){var t=this;return this.fileId?void 0!==this.fileContent[this.fileId]?(this.contentDetail=this.fileContent[this.fileId],void this.updateBak()):["word","excel","ppt"].includes(this.file.type)?(this.contentDetail=$A.cloneJSON(this.file),void this.updateBak()):(this.loadIng++,this.loadContent++,void this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then((function(e){var n=e.data;t.loadIng--,t.loadContent--,t.contentDetail=n.content,t.updateBak(),t.$isSubElectron&&t.$store.dispatch("websocketConnection")})).catch((function(e){var n=e.msg;$A.modalError(n),t.loadIng--,t.loadContent--}))):(this.contentDetail={},void this.updateBak())},updateBak:function(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick:function(t){var e=this;switch(t){case"saveBefore":return void(this.equalContent||0!=this.loadIng?$A.messageWarning("没有任何修改!"):this.handleClick("save"));case"save":if(this.file.only_view)return;this.updateBak(),this.loadIng++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then((function(t){var n=t.data,r=t.msg;$A.messageSuccess(r),e.loadIng--,e.$store.dispatch("saveFile",{id:e.fileId,size:n.size})})).catch((function(t){var n=t.msg;$A.modalError(n),e.loadIng--,e.getContent()}))}},exportMenu:function(t){if("mind"===this.file.type)this.$refs.myMind.exportHandle("pdf"==t?1:0,this.file.name)},unSaveGive:function(){delete this.fileContent[this.fileId],this.getContent(),this.unsaveTip=!1},onSaveSave:function(){this.handleClick("save"),this.unsaveTip=!1},documentKey:function(){var t=this;return new Promise((function(e){t.$store.dispatch("call",{url:"file/content",data:{id:t.fileId,only_update_at:"yes"}}).then((function(t){var n=t.data;e($A.Date(n.update_at,!0))})).catch((function(){e(0)}))}))},formatName:function(t){var e=t.name,n=t.ext;return""!=n&&(e+="."+n),e}}};const l=(0,n(51900).Z)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ready?n("div",{staticClass:"file-content"},[t.isPreview?n("iframe",{ref:"myPreview",staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):[n("div",{directives:[{name:"show",rawName:"v-show",value:!["word","excel","ppt"].includes(t.file.type),expression:"!['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[n("div",{staticClass:"header-title"},[t.equalContent?t._e():n("EPopover",{staticClass:"file-unsave-tip",model:{value:t.unsaveTip,callback:function(e){t.unsaveTip=e},expression:"unsaveTip"}},[n("div",{staticClass:"task-detail-delete-file-popover"},[n("p",[t._v(t._s(t.$L("未保存当前修改内容?")))]),t._v(" "),n("div",{staticClass:"buttons"},[n("Button",{attrs:{size:"small",type:"text"},on:{click:t.unSaveGive}},[t._v(t._s(t.$L("放弃")))]),t._v(" "),n("Button",{attrs:{size:"small",type:"primary"},on:{click:t.onSaveSave}},[t._v(t._s(t.$L("保存")))])],1)]),t._v(" "),n("span",{attrs:{slot:"reference"},slot:"reference"},[t._v("["+t._s(t.$L("未保存"))+"*]")])]),t._v("\n "+t._s(t.formatName(t.file))+"\n ")],1),t._v(" "),n("div",{staticClass:"header-user"},[n("ul",[t._l(t.editUser,(function(e,r){return r<=10?n("li",{key:r},[n("UserAvatar",{attrs:{userid:e,size:28,"border-witdh":2}})],1):t._e()})),t._v(" "),t.editUser.length>10?n("li",{staticClass:"more"},[t._v(t._s(t.editUser.length>99?"99+":t.editUser.length))]):t._e()],2)]),t._v(" "),"document"==t.file.type&&t.contentDetail?n("div",{staticClass:"header-hint"},[n("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[n("Button",{attrs:{type:"md"==t.contentDetail.type?"primary":"default"},on:{click:function(e){return t.$set(t.contentDetail,"type","md")}}},[t._v(t._s(t.$L("MD编辑器")))]),t._v(" "),n("Button",{attrs:{type:"md"!=t.contentDetail.type?"primary":"default"},on:{click:function(e){return t.$set(t.contentDetail,"type","text")}}},[t._v(t._s(t.$L("文本编辑器")))])],1)],1):t._e(),t._v(" "),"mind"==t.file.type?n("div",{staticClass:"header-hint"},[t._v("\n "+t._s(t.$L("选中节点,按enter键添加同级节点,tab键添加子节点"))+"\n ")]):t._e(),t._v(" "),"mind"==t.file.type?n("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":t.exportMenu}},[n("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("导出"))),n("Icon",{attrs:{type:"ios-arrow-down"}})],1),t._v(" "),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"png"}},[t._v(t._s(t.$L("导出PNG图片")))]),t._v(" "),n("DropdownItem",{attrs:{name:"pdf"}},[t._v(t._s(t.$L("导出PDF文件")))])],1)],1):t._e(),t._v(" "),t.file.only_view?t._e():n("Button",{staticClass:"header-button",attrs:{disabled:t.equalContent,loading:t.loadIng>0,size:"small",type:"primary"},on:{click:function(e){return t.handleClick("save")}}},[t._v(t._s(t.$L("保存")))])],1),t._v(" "),t.contentDetail?n("div",{staticClass:"content-body"},["document"==t.file.type?["md"==t.contentDetail.type?n("MDEditor",{attrs:{height:"100%"},model:{value:t.contentDetail.content,callback:function(e){t.$set(t.contentDetail,"content",e)},expression:"contentDetail.content"}}):n("TEditor",{attrs:{height:"100%"},on:{editorSave:function(e){return t.handleClick("saveBefore")}},model:{value:t.contentDetail.content,callback:function(e){t.$set(t.contentDetail,"content",e)},expression:"contentDetail.content"}})]:"drawio"==t.file.type?n("Drawio",{ref:"myFlow",attrs:{title:t.file.name},on:{saveData:function(e){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(e){t.contentDetail=e},expression:"contentDetail"}}):"mind"==t.file.type?n("Minder",{ref:"myMind",on:{saveData:function(e){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(e){t.contentDetail=e},expression:"contentDetail"}}):["code","txt"].includes(t.file.type)?n("AceEditor",{attrs:{ext:t.file.ext},on:{saveData:function(e){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(e){t.contentDetail=e},expression:"contentDetail"}}):["word","excel","ppt"].includes(t.file.type)?n("OnlyOffice",{attrs:{documentKey:t.documentKey},model:{value:t.contentDetail,callback:function(e){t.contentDetail=e},expression:"contentDetail"}}):t._e()],2):t._e()],t._v(" "),t.contentLoad?n("div",{staticClass:"content-load"},[n("Loading")],1):t._e()],2):t._e()}),[],!1,null,null,null).exports},26486:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(70538),i=n(56294);r.default.use(i.Z);const o={name:"FilePreview",components:{AceEditor:function(){return n.e(911).then(n.bind(n,3911))},TEditor:function(){return n.e(722).then(n.bind(n,30722))},MDPreview:function(){return n.e(173).then(n.bind(n,81173))},OnlyOffice:function(){return n.e(942).then(n.bind(n,17942))},Drawio:function(){return n.e(34).then(n.bind(n,67034))}},props:{code:{type:String,default:""},file:{type:Object,default:function(){return{}}}},data:function(){return{loadContent:0,contentDetail:null,loadPreview:!0}},mounted:function(){window.addEventListener("message",this.handleMessage)},beforeDestroy:function(){window.removeEventListener("message",this.handleMessage)},watch:{"file.id":{handler:function(t){t&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad:function(){return this.loadContent>0||this.previewLoad},isPreview:function(){return this.contentDetail&&!0===this.contentDetail.preview},previewLoad:function(){return this.isPreview&&!0===this.loadPreview},previewUrl:function(){return this.isPreview?$A.apiUrl("../fileview/onlinePreview?url="+encodeURIComponent(this.contentDetail.url)):""}},methods:{handleMessage:function(t){if("ready"===t.data.act)this.loadPreview=!1},getContent:function(){var t=this;["word","excel","ppt"].includes(this.file.type)?this.contentDetail=$A.cloneJSON(this.file):(this.loadContent++,this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id}}).then((function(e){var n=e.data;t.loadContent--,t.contentDetail=n.content})).catch((function(e){var n=e.msg;$A.modalError(n),t.loadContent--})))},documentKey:function(){var t=this;return new Promise((function(e){t.$store.dispatch("call",{url:"file/content",data:{id:t.code||t.file.id,only_update_at:"yes"}}).then((function(t){var n=t.data;e($A.Date(n.update_at,!0))})).catch((function(){e(0)}))}))},exportMenu:function(t){if("mind"===this.file.type)this.$refs.myMind.exportHandle("pdf"==t?1:0,this.file.name)},formatName:function(t){var e=t.name,n=t.ext;return""!=n&&(e+="."+n),e}}};const a=(0,n(51900).Z)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-preview"},[t.isPreview?n("iframe",{ref:"myPreview",staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):[n("div",{directives:[{name:"show",rawName:"v-show",value:!["word","excel","ppt"].includes(t.file.type),expression:"!['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[n("div",{staticClass:"header-title"},[t._v("\n "+t._s(t.formatName(t.file))+"\n "),n("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("只读")))]),t._v(" "),n("div",{staticClass:"refresh"},[t.contentLoad?n("Loading"):n("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getContent}})],1)],1),t._v(" "),"mind"==t.file.type?n("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":t.exportMenu}},[n("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("导出"))),n("Icon",{attrs:{type:"ios-arrow-down"}})],1),t._v(" "),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"png"}},[t._v(t._s(t.$L("导出PNG图片")))]),t._v(" "),n("DropdownItem",{attrs:{name:"pdf"}},[t._v(t._s(t.$L("导出PDF文件")))])],1)],1):t._e()],1),t._v(" "),t.contentDetail?n("div",{staticClass:"content-body"},["document"==t.file.type?["md"==t.contentDetail.type?n("MDPreview",{attrs:{initialValue:t.contentDetail.content}}):n("TEditor",{attrs:{value:t.contentDetail.content,height:"100%",readOnly:""}})]:"drawio"==t.file.type?n("Drawio",{ref:"myFlow",attrs:{value:t.contentDetail,title:t.file.name,readOnly:""}}):"mind"==t.file.type?n("Minder",{ref:"myMind",attrs:{value:t.contentDetail,readOnly:""}}):["code","txt"].includes(t.file.type)?n("AceEditor",{attrs:{value:t.contentDetail,ext:t.file.ext,readOnly:""}}):["word","excel","ppt"].includes(t.file.type)?n("OnlyOffice",{attrs:{value:t.contentDetail,code:t.code,documentKey:t.documentKey,readOnly:""}}):t._e()],2):t._e()],t._v(" "),t.contentLoad?n("div",{staticClass:"content-load"},[n("Loading")],1):t._e()],2)}),[],!1,null,null,null).exports},29954:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(54206);const i={components:{FilePreview:n(26486).default,FileContent:r.default},data:function(){return{loadIng:0,code:null,fileShow:!0,fileInfo:{}}},mounted:function(){},watch:{$route:{handler:function(){this.getInfo()},immediate:!0}},methods:{getInfo:function(){var t=this,e=this.$route.params.id,n={id:e};if(/^\d+$/.test(e))this.code=null;else{if(!e)return;this.code=e}this.loadIng++,this.$store.dispatch("call",{url:"file/one",data:n}).then((function(e){var n=e.data;t.loadIng--,t.fileInfo=n})).catch((function(e){var n=e.msg;t.loadIng--,$A.modalError({content:n,onOk:function(){window.close()}})}))}}};var o=n(93379),a=n.n(o),s=n(78875),c={insert:"head",singleton:!1};a()(s.Z,c);s.Z.locals;const u=(0,n(51900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"single-file"},[n("PageTitle",{attrs:{title:t.fileInfo.name}}),t._v(" "),t.loadIng>0?n("Loading"):[t.code||0===t.fileInfo.permission?n("FilePreview",{attrs:{code:t.code,file:t.fileInfo}}):n("FileContent",{attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(e){t.fileShow=e},expression:"fileShow"}})]],2)}),[],!1,null,"4977e05f",null).exports}}]); |