/*
Copyright (c) Ascensio System SIA 2012-2015. All rights reserved
http://www.onlyoffice.com
Version: 3.7.0 (build:3209, rev:68762)
*/
var A;var ba="",ca=!1,da=!1,ea=!1,fa=!1,ga=!1,ha=!1,ia=!1,ja=!1,ka=!1,ma=!1,aaa=!1,na=!1,pa=!1,qa=!1,ba=navigator.userAgent.toLowerCase(),ca=-1Math.abs(2-window.devicePixelRatio/ya))}za();qa=.01>Math.abs(2-window.devicePixelRatio/ya);(function(b,c){function d(b){this.Wa=this.pc=this.id=null;this.state=c;this.Ne=-1;this.color=null;this.view=!1;this.$c(b);return this}b.Asc||(b.Asc={});var e;d.prototype.$c=function(b){b&&(this.id=b.id,this.pc=b.idOriginal,this.Wa=b.username,this.Ne=b.indexUser,this.color=Ca(this.pc,this.Wa,!1,!0),this.view=b.view)};d.prototype.NK=function(){return this.id};d.prototype.C_=function(){return this.Wa};d.prototype.T8a=function(){return this.state};d.prototype.fe=function(){return"#"+("000000"+this.color.toString(16)).substr(-6)};
d.prototype.xSa=function(){return this.view};d.prototype.Jr=function(b){this.id=b};d.prototype.BYa=function(b){this.Wa=b};d.prototype.Y0b=function(b){this.state=b};b.Asc.iva=d;e=d.prototype;e.asc_getId=e.NK;e.asc_getUserName=e.C_;e.asc_getState=e.T8a;e.asc_getColor=e.fe;e.asc_getView=e.xSa})(window);var baa={};(function(b,c){function d(b){this.Yk=new f;this.ZE=!1;b&&(this.YX=b.YX,this.Zaa=b.Zaa,this.onMessage=b.onMessage,this.k6=b.k6,this.U0=b.U0,this.ZU=b.ZU,this.V0=b.V0,this.onDisconnect=b.onDisconnect,this.aba=b.aba,this.T0=b.T0,this.j6=b.j6,this.o6=b.o6,this.p6=b.p6,this.W0=b.W0,this.$aa=b.$aa,this.Jha=b.Jha,this.$X=b.$X,this.n6=b.n6,this.Xaa=b.Xaa,this.l6=b.l6,this.m6=b.m6)}function e(b,c){this.QEb=b;this._callback=c}function f(b){b&&(this.YX=b.YX,this.Zaa=b.Zaa,this.onMessage=b.onMessage,this.k6=
b.k6,this.U0=b.U0,this.ZU=b.ZU,this.V0=b.V0,this.lWb=b.lWb,this.onDisconnect=b.onDisconnect,this.aba=b.aba,this.o6=b.o6,this.p6=b.p6,this.W0=b.W0,this.T0=b.T0,this.j6=b.j6,this.$X=b.$X,this.n6=b.n6,this.Xaa=b.Xaa,this.l6=b.l6,this.m6=b.m6);this.AC=0;this.A9={};this.Iea=this.uma=0;this.Zbb=this.dcb=!1;this.lw={};this.Jua=[];this.w_={};this.wma={};this.Q3=[];this.Iua=this.CAa=this.m1=this.uba=null;this.LRa=-1;this.o0=this.pxa=!1;this.edb=2E4;this.deleteIndex=this.Ifa=0;this.gSa=null;this.ncb=-1;this.iGa=
0;this.yUa=null;this.zma="";this.Zha=null;this.xFa=0;this.$cb=50;this.Q_b=2E3;this.xUa=1E4;this.BPb=6E4;this.JEa=this.C7a=this.k7a=this.EEa=null;this.WRa="Anonymous";this.iKa=[];this.U6=this.wLa=null;this.Bab=-1;this.MRa=this.Kea=this.y9=!1;this.l7a=0;this.q7a=this.NRa=!1;this.HEa=[]}var h=b.Asc;d.prototype.init=function(b,c,d,e,f,h){if(this.Yk&&this.Yk.LVa()){var B=this;this.Yk.YX=function(b,c){B.uNb(b,c)};this.Yk.Zaa=function(b,c){B.FNb(b,c)};this.Yk.onMessage=function(b,c){B.ENb(b,c)};this.Yk.k6=
function(b){B.wNb(b)};this.Yk.U0=function(b){B.m$a(b)};this.Yk.ZU=function(b,c){B.CNb(b,c)};this.Yk.V0=function(){B.DNb()};this.Yk.onDisconnect=function(b,c,d){B.qTa(b,c,d)};this.Yk.aba=function(b){B.KNb(b)};this.Yk.T0=function(){B.ANb()};this.Yk.j6=function(b){B.vNb(b)};this.Yk.o6=function(b){B.n$a(b)};this.Yk.p6=function(b){B.o$a(b)};this.Yk.W0=function(b,c,d){B.HNb(b,c,d)};this.Yk.$aa=function(b){B.JNb(b)};this.Yk.Jha=function(b){B.yNb(b)};this.Yk.$X=function(){B.p$a()};this.Yk.n6=function(b){B.GNb(b)};
this.Yk.Xaa=function(b){B.xNb(b)};this.Yk.l6=function(){B.zNb()};this.Yk.m6=function(b){B.BNb(b)};this.Yk.init(b,c,d,e,f,h);this.ZE=!0}else this.l6(),this.m6(null)};d.prototype.RUa=function(){return this.Yk?this.Yk.RUa():c};d.prototype.auth=function(c){this.Yk&&this.ZE?this.Yk.auth(c):(this.o$a(b.g_cAscSpellCheckUrl?b.g_cAscSpellCheckUrl:""),this.n$a("123"),this.T0())};d.prototype.Kba=function(b){this.Yk&&this.Yk.Kba(b)};d.prototype.vga=function(){return this.Yk?this.Yk.vga():0};d.prototype.zXa=function(b){this.Yk&&
this.ZE&&this.Yk.zXa(b)};d.prototype.XUa=function(){this.Yk&&this.ZE&&this.Yk.XUa()};d.prototype.sendMessage=function(b){this.Yk&&this.ZE&&this.Yk.sendMessage(b)};d.prototype.vYa=function(b){this.Yk&&this.ZE&&this.Yk.vYa(b)};d.prototype.vFa=function(c,d){if(this.Yk&&this.ZE)this.Yk.vFa(c,d);else{var e=this;b.setTimeout(function(){if(d&&_.isFunction(d)){var b=c?c.length:0;if(0=b.$cb;d&&(b.AC=4);if(b.onDisconnect)b.onDisconnect(c.reason,d,b.o0);b.xFa>0;d.width/=36E3;null!=b.YG&&d.Z8a(b.YG);null!=b.$v&&d.a9a(b.$v.type);if(null!=b.qj){d.ASa(null==b.qj.type?pe:b.qj.type);var e=null==b.qj.Hh?1:2-b.qj.Hh,f=null==b.qj.$a?1:2-
b.qj.$a;d.Y8a(3*f+e)}else d.ASa(pe);null!=b.ni?(d.BSa(null==b.ni.type?pe:b.ni.type),e=null==b.ni.Hh?1:2-b.ni.Hh,f=null==b.ni.$a?1:2-b.ni.$a,d.$8a(3*f+e)):d.BSa(pe);!0===c&&(d.hR=!0);return d}
function re(b,c,d){if(null==b)return c;null==c&&(c=new se);var e=b.type,f=b.width;null!=f&&void 0!==f&&(c.$a=36E3*f);f=b.color;e==ne?(c.Vb=new Td,c.Vb.fill=new Ud):null!=e&&null!=f&&void 0!==f&&(c.Vb=new Td,c.Vb.type=Na,c.Vb.fill=new ke,c.Vb.fill.color=Yd(f,c.Vb.fill.color,d));d=b.CCa;null!=d&&(c.$v=new te,c.$v.type=d);d=b.BCa;null!=d&&(c.YG=d);d=b.LOa;null!=d&&(null==c.qj&&(c.qj=new ve),c.qj.type=d);d=b.POa;null!=d&&(null==c.ni&&(c.ni=new ve),c.ni.type=d);d=b.KOa;null!=d&&(null==c.qj&&(c.qj=new ve),
c.qj.$a=2-(d/3>>0),c.qj.Hh=2-d%3);b=b.OOa;null!=b&&(null==c.ni&&(c.ni=new ve),c.ni.$a=2-(b/3>>0),c.ni.Hh=2-b%3);return c}function Ja(b,c,d,e){var f=new zc;f.type=ib;f.r=b;f.g=c;f.b=d;f.a=255;f.yh=void 0===e?!1:e;return f}function Oa(b){if(null==b||null==b.color)return new zc;var c=new zc;c.r=b.RGBA.Sa;c.g=b.RGBA.G;c.b=b.RGBA.ab;c.a=b.RGBA.Be;b=b.color;switch(b.type){case we:case xe:c.type=b.type,c.value=b.id}return c}
function ye(b){var c=new Td;c.fill=new ke;c.fill.color=Yd(b,c.fill.color);return c}
function Yd(b,c,d){if(null==b)return c;null==c&&(c=new ze);switch(b.BC()){case we:if(null==c.color||c.color.type!=we)c.color=new Ae;c.color.id=b.value;0!=c.ad.ad.length&&c.ad.ad.splice(0,c.ad.ad.length);break;case xe:if(null==c.color||c.color.type!=xe)c.color=new Be;var e=parseInt(b.value);if(isNaN(e))break;b=e/6>>0;var e=e-6*b,f=[6,15,7,16,0,1,2,3,4,5];c.color.id=f[b];c.ad||(c.ad=new Ce);0!=c.ad.ad.length&&c.ad.ad.splice(0,c.ad.ad.length);var h=null;if(editor&&editor.fa&&editor.fa.Qb&&editor.fa.Qb.i8)f=
editor.fa.Qb.i8,d=C(d)?d:1,h=GetDefaultMods(f[b].r,f[b].g,f[b].b,e,d);else{var m=window.Asc&&window.Asc.editor;if(m&&m.hca){var n=m.hca.Lc,m=m.hca.T_;n&&m&&(h=new Be,h.id=f[b],h.ev(n,m.cr,{Sa:0,G:0,ab:0,Be:255}),d=C(d)?d:0,h=GetDefaultMods(h.RGBA.Sa,h.RGBA.G,h.RGBA.ab,e,d))}}if(null!=h)for(d=0;dh&&d()};return v}d.prototype.init=function(b){if(this.RQ&&this.RQ.LVa()){var c=this;this.RQ.onDisconnect=function(b,d,e){c.qTa(b,d,e)};this.RQ.ZX=function(b){c.INb(b)};this.RQ.init(b);this.ZE=!0}};d.prototype.Kba=function(b){this.RQ&&this.RQ.Kba(b)};d.prototype.vga=function(){return this.RQ?this.RQ.vga():
0};d.prototype.disconnect=function(){this.RQ&&this.ZE&&this.RQ.disconnect()};d.prototype.zLa=function(b){this.RQ&&this.ZE&&this.RQ.zLa(b)};d.prototype.INb=function(b){this.ZX&&this.ZX(b)};d.prototype.qTa=function(b,c,d){if(this.onDisconnect)return this.onDisconnect(b,c,d)};c.prototype.LVa=function(){return""!=this.zma};c.prototype.Kba=function(b){this.zma=b};c.prototype.vga=function(){return this.AC};c.prototype.zLa=function(b){this._send({type:"spellCheck",spellCheckData:b})};c.prototype.disconnect=
function(){this.o0=!0;return this.U6.close()};c.prototype._send=function(b){null!==b&&"object"===typeof b&&(0b||(this.I0a=b)};this.hmb=function(b){b=b/this.I0a;b=(1+b)/2*100>>0;b/=100;return""+b+"em"}}function Fe(b){for(var c={},d=[],e=[],f=0;f"+f+""+d.av+">"):e+"/>"}b+=d}return b};function Ye(b,c){this.gk=b;this.mj=b.fa.ka;this.Beb=c;this.Z5=new kf(this.mj);this.zn=new lf;this.zn.LM();this.zn.ODa(this.gk.pUa);this.AJ=new gf("root")}
Ye.prototype={L$:function(){return this.AJ.L$()},oja:function(b,c,d){var e=this.mj,f=null,h=mf(c);h&&(e=e.ei.oQ(h).toLowerCase(),0==e.indexOf("heading")&&(e=parseInt(e.substring(7)),1<=e&&6>=e&&(f=new gf("h"+e))));null==f&&(f=new gf("p"));var m,n=!1;Se?(m=nf(c),n=null==m||0==m.jd):(m=c.lT.yj,n=0==m.Rx);e=!1;h="";if(!n)if(Se){var u=of(this.mj.fd,m.jd);if(null!=u&&(m=u.fc[m.fc],null!=m))switch(m.Cn){case pf:h="decimal";break;case qf:h="lower-roman";break;case rf:h="upper-roman";break;case sf:h="lower-alpha";
break;case tf:h="upper-alpha";break;default:h="disc",e=!0}}else switch(c.lT.yj.Rx){case xf:case yf:h="decimal";break;case zf:h="lower-roman";break;case Af:h="upper-roman";break;case Bf:case Cf:h="lower-alpha";break;case Df:case Ef:h="upper-alpha";break;default:h="disc",e=!0}m=f;var u=[],v=this.mj.ei?this.mj.ei.kc.Za:null,w=c.Ic&&c.Ic.A&&c.Ic.A.Za?c.Ic.A.Za:c.A;if(w&&v){v.kb.ma!=w.kb.ma&&u.push("margin-left:"+w.kb.ma*Ff+"pt");v.kb.ya!=w.kb.ya&&u.push("margin-right:"+w.kb.ya*Ff+"pt");v.kb.wd!=w.kb.wd&&
u.push("text-indent:"+w.kb.wd*Ff+"pt");if(v.Md!=w.Md)switch(w.Md){case Gf:u.push("text-align:left");break;case Jf:u.push("text-align:center");break;case Kf:u.push("text-align:right");break;case Lf:u.push("text-align:justify")}if(v.hj!=w.hj||v.Pk!=w.Pk)v.hj!=w.hj&&v.Pk!=w.Pk?u.push("mso-pagination:none lines-together"):v.hj!=w.hj?u.push("mso-pagination:widow-orphan lines-together"):v.Pk!=w.Pk&&u.push("mso-pagination:none");v.Bj!=w.Bj&&u.push("page-break-after:avoid");v.Yj!=w.Yj&&u.push("page-break-before:always");
v.ob.cc!=w.ob.cc&&(Za==w.ob.Wi?u.push("line-height:"+w.ob.cc*Ff+"pt"):ab==w.ob.Wi&&(1==w.ob.cc?u.push("line-height:normal"):u.push("line-height:"+parseInt(100*w.ob.cc)+"%")));v.ob.Wi!=w.ob.Wi&&cb==w.ob.Wi&&u.push("mso-line-height-rule:exactly");u.push("margin-top:"+w.ob.Ig*Ff+"pt");u.push("margin-bottom:"+w.ob.rg*Ff+"pt");null==w.Ya||Pa==w.Ya.T||null==w.Ya.la&&null==w.Ya.Oa||u.push("background-color:"+Mf(this,w.Ya.la,w.Ya.Oa));if(0m&&(m=n.Wc);f=0;for(h=d.length;fh&&(H=h-e+1,0>=H&&(H=1));var w=b,B=n,J=y,J=G,M=H,G=new gf("td"),H="";0
Qe)){window.fl=window.setTimeout(u,100);return}window.$c&&2!=window.ji&&!window.fe?window.fl=window.setTimeout(u,10):(document.body.style.MozUserSelect="none",document.body.style["-khtml-user-select"]="none",document.body.style["-o-user-select"]="none",document.body.style["user-select"]="none",document.body.style["-webkit-user-select"]="none",document.body.style.overflow=e,window.$c||(f.onpaste=null),d.MFa?f.style.display=Le:Ug(b,f),window.fl=-1)},h=window.yE?200:0;-1!=window.fl&&clearTimeout(window.fl);
Qe=0;window.fl=window.setTimeout(u,h)}}}function wg(b){b=b.replace(/&/g,"&");b=b.replace(//g,">");b=b.replace(/'/g,"'");return b=b.replace(/"/g,""")}
function Rg(b,c){var d=b.fa;if(c&&c.clipboardData&&c.clipboardData.getData){var e=!1,f=ja,h=null,m=function(f,h){if(null!=f){var m=document.getElementById("pasteFrame");m?m.style.width="10000px":(m=document.createElement("iframe"),m.name="pasteFrame",m.id="pasteFrame",m.style.position="absolute",m.style.top="-100px",m.style.left="0px",m.style.width="10000px",m.style.height="100px",m.style.overflow="hidden",m.style.zIndex=-1E3,document.body.appendChild(m));var n=window.frames.pasteFrame;n&&(n.document.open(),
n.document.write(f),n.document.close(),null!=n.document&&null!=n.document.body&&(m.style.display="block",Ug(b,n.document.body,m),e=!0));m.style.width="100px"}else h&&Ug(b,null,null,h);e&&(d.MFa=!0,c.preventDefault&&(c.stopPropagation(),c.preventDefault()))},n=function(b){if(!b)return!1;for(var c=0,d=b.length;c"),-1!=f&&(h=h.substring(0,f+7));else if(f&&n(c.clipboardData.types)){for(var e=!0,n=c.clipboardData.getData("text/plain"),h="",u="",f=v=0,w=n.length;f
":(h+=""+u+"
",u=""),v++):13!==B&&(u=32==B||160==B?u+" ":9===B?u+" ":u+wg(y))}""!=u&&(h=0==v?h+(""+u+""):h+(""+
u+"
"),u="");h+=""}if(h)m(h);else if(h=c.clipboardData.items,null!=h)for(f=0;f