wp.prototype.z=function(a){var b=this.d().e(),d=w.fa().getElementById(b),b=0,e=-1;"]"==a.charAt(a.length-1)&&(e=a.lastIndexOf("["),b=1*a.substring(e+1,a.length-1));a=0<e?a.substring(0,e):a;var f;"summary"==a?f="af|message::type":"detail"==a?f="af|message::detail":"intro"==a&&(f="af|message::intro");if(!f)return n;f=F.c.u().getStyleClass(f);if(0==b)return vh.nh(d,"class",f);f=vh.Gu(d,"class",f);return b<f.length?f[b]:n};z.a("AdfDhtmlMessagePeer.prototype.GetSubIdDomElement",{z:wp.prototype.z});
wp.prototype.D=function(a){var b=F.c.u(),d=a.getAttribute("class"),e=b.getStyleClass("af|message::intro"),f=b.getStyleClass("af|message::detail"),g=b.getStyleClass("af|message::type"),b=RegExp(e.replace("|","\\|")).test(d),h=!b&&RegExp(f.replace("|","\\|")).test(d),d=!h&&RegExp(g.replace("|","\\|")).test(d);if(!b&&!h&&!d)return n;d=this.d().e();d=w.fa().getElementById(d);e=vh.Gu(d,"class",b?e:h?f:g);f=b?"intro":h?"detail":"summary";for(b=0;b<e.length;b++)if(e[b]==a)return f+"["+b+"]";return n};
z.a("AdfDhtmlMessagePeer.prototype.GetBestMatchSubId",{D:wp.prototype.D});