(function(){return function(e,r,s){var t,a,n,d=r.getNullSpan();for(t=0;t<e.address.length&&(!d||!d.exists());t++)if(n=r.getSpan().innerCapture(e.address[t],1),n.exists()&&(/%2/.test(""+n)&&(n=n.replace(/(?:%2B|%252c)/g," ")),n=n.replace(/\[\/?t(?:[hrd]|able)\d+]/g,""),n=n.replace(/\s{2,}/g," "),n=n.trim(),!n.innerLink().exists())){var i=n.innerAddress();d=i.exists()?i:n}if(!(void 0===e.addressPrefix||d&&d.exists()))for(t=0;t<e.addressPrefix.length&&(!d||!d.exists());t++)if(a=r.getSpan().next(e.addressPrefix[t]),n=a.nextAddress(),n.exists()){var l=n.getStart()-a.getEnd();l<301&&(d=n)}if(d.exists())for(t=0;t<e.footer.length;t++)r.getSpan().next(e.footer[t]).contains(d)&&(d=r.getNullSpan());if(s&&(!d||!d.exists())&&void 0!==e.addressCaptureHTML)for(t=0;t<e.addressCaptureHTML.length;t++){var g=e.addressCaptureHTML[t].exec(s.html);g&&2===g.length&&(d=r.getDetachedSpan(g[1].replace("\\u002D","-").replace(/[\\\",]/g,"").replace(/\s+/g," ")).innerAddress())}return d}}).call();