function getI18nMessage(e){return{message:stringBundle.GetStringFromName(e)}}function loadI18nStrings(){for(var e=document.querySelectorAll("[class^='i18n_']"),n=0;n<e.length;n++){var t=e[n],arguments=JSON.parse("["+t.textContent+"]");0==arguments.length&&(arguments=null);var r=t.className;r instanceof SVGAnimatedString&&(r=r.animVal);var a=r.split(/\s/)[0].substring(5);i18n.setElementText(t,a,arguments)}}function i18n_timeDateStrings(e){var n=new Date(e),t=n.toLocaleTimeString(),r=new Date;return n.toDateString()==r.toDateString()?[t]:[t,n.toLocaleDateString()]}var i18n;if("undefined"!=typeof chrome)i18n=chrome.i18n;else{var pageName=location.pathname.replace(/.*\//,"").replace(/\..*?$/,""),stringBundle=Services.strings.createBundle("chrome://adblockplus/locale/"+pageName+".properties?"+Math.random());i18n=function(){function e(e,n){var t=e.message,r=e.placeholders;if(!n||!r)return t;for(var a in r){var i=r[a].content;if(i){var o=parseInt(i.slice(1),10);if(!isNaN(o)){var s=n[o-1];"undefined"!=typeof s&&(t=t.split("$"+a+"$").join(s))}}}return t}return{getMessage:function(n,t){try{var r=getI18nMessage(n);return e(r,t)}catch(a){return Cu.reportError(a),"Missing translation: "+n}}}}()}i18n.setElementText=function(e,n,arguments){function t(e,n){var r=/^(.*?)<(a|strong)>(.*?)<\/\2>(.*)$/.exec(e);if(r){t(r[1],n);var a=document.createElement(r[2]);t(r[3],a),n.appendChild(a),t(r[4],n)}else n.appendChild(document.createTextNode(e))}for(;e.lastChild;)e.removeChild(e.lastChild);t(i18n.getMessage(n,arguments),e)},window.addEventListener("DOMContentLoaded",loadI18nStrings,!0);