function md(){this.Init();this.Zd=q.b.rm()[q.zl]!=q.Al}m("AdfSafariEditingAgent",md);r.v(md,gd);md.prototype.il=function(a,b){if(this.Zd&&q.b.S()==q.Sc&&null==a.contentWindow)return"";var d=this.Mc(a).body;if(!b){var e=d.childNodes;if(e)if(1==e.length){if(e=e[0],"BR"==e.nodeName&&""==e.innerText)return""}else if(2==e.length&&this.Zd&&q.b.S()==q.Sc&&""==e[0].innerText&&""==e[1].innerText)return""}return d.innerHTML};r.a("AdfSafariEditingAgent.prototype.getInlineFrameContent",{il:md.prototype.il});
md.prototype.wh=function(){return"\x3cbr\x3e"};r.a("AdfSafariEditingAgent.prototype.getDefaultContent",{wh:md.prototype.wh});
md.prototype.wo=function(a,b){if("TEXTAREA"==a.nodeName||"INPUT"==a.nodeName){var d=a.selectionStart+b.length;a.value=a.value.substr(0,a.selectionStart)+b+a.value.substr(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d}else if(d=this.je(a),null==d){var e=this.Mc(a),f=e.createElement("div");f.innerHTML=b;for(var f=f.childNodes,g=f.length,d=e.body,g=g-1;0<=g;g--)e=f[g],d.insertBefore(e,d.firstChild)}else{0<d.toString().length&&d.deleteContents();e=this.Mc(a);f=e.createElement("div");f.innerHTML=
b;for(var f=f.childNodes,g=f.length,h=null,g=g-1;0<=g;g--)e=f[g],null==h&&(h=e),d.insertNode(e);null!=h&&(d.selectNode(h),d.setStartAfter(h))}};r.a("AdfSafariEditingAgent.prototype.insertHtmlAtSelection",{wo:md.prototype.wo});md.prototype.Ls=function(a){return this.Oi(a)?!1:md.h.Ls.call(this,a)};r.a("AdfSafariEditingAgent.prototype.setInlineFrameContentEditable",{Ls:md.prototype.Ls});md.prototype.hl=function(a){u.u(a,"IFRAME");a=this.Mc(a).body;a.tabIndex=0;return a};
r.a("AdfSafariEditingAgent.prototype.getFocusBlurElement",{hl:md.prototype.hl});md.prototype.je=function(a){u.u(a,"IFRAME");if((a=this.$l(a))&&0<a.rangeCount)return a.getRangeAt(0)};r.a("AdfSafariEditingAgent.prototype.getSelectionRange",{je:md.prototype.je});md.prototype.setSelectionRange=function(a,b){u.u(a,"IFRAME");var d=this.$l(a);d&&(d.removeAllRanges(),d.addRange(b))};r.a("AdfSafariEditingAgent.prototype.setSelectionRange",{setSelectionRange:md.prototype.setSelectionRange});
md.prototype.$l=function(a){u.u(a,"IFRAME");return this.Mc(a).defaultView.getSelection()};md.prototype.ql=function(a,b){b.shiftKey?(q.b.preventDefault(b),J.ni(a)):(q.b.preventDefault(b),J.be(a,null,!0))};r.a("AdfSafariEditingAgent.prototype.handleTab",{ql:md.prototype.ql});md.prototype.queryCommandValue=function(a,b){if(this.Oi(a))return md.h.queryCommandValue.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.queryCommandValue",{queryCommandValue:md.prototype.queryCommandValue});
md.prototype.queryCommandState=function(a,b){if(this.Oi(a))return md.h.queryCommandState.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.queryCommandState",{queryCommandState:md.prototype.queryCommandState});md.prototype.ul=function(a,b){return this.Oi(a)?md.h.ul.call(this,a,b):!1};r.a("AdfSafariEditingAgent.prototype.queryCommandIndeterminate",{ul:md.prototype.ul});md.prototype.queryCommandEnabled=function(a,b,d){return this.Oi(b)?md.h.queryCommandEnabled.call(this,a,b,d):!1};
r.a("AdfSafariEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:md.prototype.queryCommandEnabled});md.prototype.zv=function(a,b,d){var e=q.b;this.Zd&&e.S()==q.Sc&&536>e.Ib()?(this.Bp||(this.Bp=[]),a=this.Bp.length,0<a&&this.Bp[a-1]==d||this.Bp.push(d)):md.h.zv.call(this,a,b,d)};r.a("AdfSafariEditingAgent.prototype.updateValueHistory",{zv:md.prototype.zv});
md.prototype.Xs=function(a,b,d){var e=q.b;this.Zd&&e.S()==q.Sc&&536>e.Ib()?(this.vp||(this.vp=[]),this.Bp&&0<this.Bp.length&&(a=this.Bp.pop(),this.vp.push(a),0<this.Bp.length&&this.a_(b,this.Bp[this.Bp.length-1]))):md.h.Xs.call(this,a,b,d)};r.a("AdfSafariEditingAgent.prototype.ExecuteUndo",{Xs:md.prototype.Xs});md.prototype.Ws=function(a,b,d){var e=q.b;this.Zd&&e.S()==q.Sc&&536>e.Ib()?this.vp&&0<this.vp.length&&this.a_(b,this.vp.pop()):md.h.Ws.call(this,a,b,d)};
r.a("AdfSafariEditingAgent.prototype.ExecuteRedo",{Ws:md.prototype.Ws});md.prototype.ot=function(a,b){var d=q.b;return this.Zd&&d.S()==q.Sc&&536>d.Ib()?this.Bp&&0<this.Bp.length?!0:!1:md.h.ot.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.QueryUndoEnabled",{ot:md.prototype.ot});md.prototype.nt=function(a,b){var d=q.b;return this.Zd&&d.S()==q.Sc&&536>d.Ib()?this.vp&&0<this.vp.length?!0:!1:md.h.nt.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.QueryRedoEnabled",{nt:md.prototype.nt});