function Sc(){this.Init()}v("AdfGeckoEditingAgent",Sc);z.l(Sc,Qc);Sc.da=function(){this.RSa="backcolor";this.TSa="hilitecolor";this.YW="data-adf-tmp-rte-enabler";this.j$="\x3cbr "+this.YW;this.fUa=this.j$+'\x3d"true"\x3e'};v("AdfGeckoEditingAgent.InitClass",Sc.da);
Sc.prototype.An=function(a,b){var d=this.Jc(a),e=d.body;if(!b){var f=e.childNodes;if(f){var g=e.getElementsByTagName("BR"),h=f.length;if(g&&1>=g.length&&1<h){for(;0<h;)g=f[0],1==g.nodeType&&0==g.offsetWidth?(e.removeChild(g),h--):h=0;0==e.childNodes.length&&(d=d.createElement("br"),d.setAttribute(Sc.YW,"true"),e.appendChild(d))}d=p;if(1==f.length&&"BR"==f[0].nodeName)return"";1<=f.length&&"BR"==f[f.length-1].nodeName&&"true"==f[f.length-1].getAttribute(Sc.YW)?d=l:H.f0(e,l,this.jha,n)&&(d=l);if(d)return e=
e.innerHTML,f=e.lastIndexOf(Sc.j$),d=e.indexOf("\x3e",f+Sc.j$.length),e.substring(0,f)+e.substring(d+1)}}return e.innerHTML};z.a("AdfGeckoEditingAgent.prototype.getInlineFrameContent",{An:Sc.prototype.An});Sc.prototype.jha=function(a){return"BR"==a.nodeName&&"true"==a.getAttribute(Sc.YW)?H.bl:H.Ps};z.a("AdfGeckoEditingAgent.prototype.isDummyBrFnc",{jha:Sc.prototype.jha});Sc.prototype.xn=function(){return Sc.fUa};z.a("AdfGeckoEditingAgent.prototype.getDefaultContent",{xn:Sc.prototype.xn});
Sc.prototype.As=function(a){var b=a;a==Sc.RSa&&(b=Sc.TSa);return b};z.a("AdfGeckoEditingAgent.prototype.toBrowserSpecificCommand",{As:Sc.prototype.As});Sc.prototype.Ap=function(a){B.p(a,"IFRAME");return this.Jc(a)};z.a("AdfGeckoEditingAgent.prototype.getFocusBlurElement",{Ap:Sc.prototype.Ap});Sc.prototype.jf=function(a){B.p(a,"IFRAME");if((a=this.Ro(a))&&0<a.rangeCount)return a.getRangeAt(0)};z.a("AdfGeckoEditingAgent.prototype.getSelectionRange",{jf:Sc.prototype.jf});
Sc.prototype.setSelectionRange=function(a,b){B.p(a,"IFRAME");var d=this.Ro(a);d&&(d.removeAllRanges(),d.addRange(b))};z.a("AdfGeckoEditingAgent.prototype.setSelectionRange",{setSelectionRange:Sc.prototype.setSelectionRange});Sc.prototype.Ro=function(a){B.p(a,"IFRAME");return this.Jc(a).defaultView.getSelection()};Sc.prototype.Hn=function(a,b){b.shiftKey||(w.b.preventDefault(b),O.Ud(a,n,l))};z.a("AdfGeckoEditingAgent.prototype.handleTab",{Hn:Sc.prototype.Hn});
Sc.prototype.queryCommandValue=function(a,b){if(this.hm(a))return Sc.f.queryCommandValue.call(this,a,b)};z.a("AdfGeckoEditingAgent.prototype.queryCommandValue",{queryCommandValue:Sc.prototype.queryCommandValue});Sc.prototype.queryCommandState=function(a,b){if(this.hm(a))return Sc.f.queryCommandState.call(this,a,b)};z.a("AdfGeckoEditingAgent.prototype.queryCommandState",{queryCommandState:Sc.prototype.queryCommandState});Sc.prototype.Tp=function(a,b){return!this.hm(a)?p:Sc.f.Tp.call(this,a,b)};
z.a("AdfGeckoEditingAgent.prototype.queryCommandIndeterminate",{Tp:Sc.prototype.Tp});Sc.prototype.queryCommandEnabled=function(a,b,d){return!this.hm(b)?p:Sc.f.queryCommandEnabled.call(this,a,b,d)};z.a("AdfGeckoEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:Sc.prototype.queryCommandEnabled});
Sc.prototype.jz=function(a,b,d){for(var e="",f="",g=0;g<d.length;g++){for(var h=f=d.charAt(g),m=k,m=0;256>m;++m){var q=m.toString(16);1==q.length&&(q="0"+q);q="%"+q;q=unescape(q);if(q==h)break}e=256==m?e+encodeURI(f):e+f}return Sc.f.jz(a,b,e)};z.a("AdfGeckoEditingAgent.prototype.CreateLink",{jz:Sc.prototype.jz});