summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/basilisk/app/profile/basilisk.js18
-rw-r--r--application/basilisk/base/content/aboutNetError.xhtml2
-rw-r--r--application/basilisk/base/content/browser-addons.js13
-rw-r--r--application/basilisk/base/content/browser.js42
-rw-r--r--application/basilisk/base/content/newtab/alternativeDefaultSites.json50
-rw-r--r--application/basilisk/base/content/newtab/customize.js8
-rw-r--r--application/basilisk/base/content/newtab/grid.js15
-rw-r--r--application/basilisk/base/content/newtab/newTab.css112
-rw-r--r--application/basilisk/base/content/newtab/newTab.inadjacent.json3209
-rw-r--r--application/basilisk/base/content/newtab/newTab.js1
-rw-r--r--application/basilisk/base/content/newtab/newTab.xhtml1
-rw-r--r--application/basilisk/base/content/newtab/page.js61
-rw-r--r--application/basilisk/base/content/newtab/sites.js105
-rw-r--r--application/basilisk/base/content/tab-content.js6
-rw-r--r--application/basilisk/base/content/utilityOverlay.js2
-rw-r--r--application/basilisk/base/jar.mn2
-rw-r--r--application/basilisk/components/newtab/NewTabPrefsProvider.jsm2
-rw-r--r--application/basilisk/components/nsBrowserGlue.js3
-rw-r--r--application/basilisk/components/search/moz.build2
-rw-r--r--application/basilisk/components/search/service/SearchStaticData.jsm43
-rw-r--r--application/basilisk/components/search/service/SearchSuggestionController.jsm398
-rw-r--r--application/basilisk/components/search/service/moz.build24
-rw-r--r--application/basilisk/components/search/service/nsSearchService.js4324
-rw-r--r--application/basilisk/components/search/service/nsSearchSuggestions.js197
-rw-r--r--application/basilisk/components/search/service/nsSidebar.js66
-rw-r--r--application/basilisk/components/search/service/toolkitsearch.manifest10
-rw-r--r--application/basilisk/installer/package-manifest.in4
-rw-r--r--application/basilisk/locales/Makefile.in2
-rw-r--r--application/basilisk/locales/en-US/chrome/browser/newTab.dtd3
-rw-r--r--application/basilisk/locales/en-US/chrome/browser/newTab.properties39
-rw-r--r--application/basilisk/locales/l10n.ini2
-rw-r--r--application/basilisk/modules/AboutNewTab.jsm1
-rw-r--r--application/basilisk/modules/DirectoryLinksProvider.jsm1251
-rw-r--r--application/basilisk/modules/PermissionUI.jsm23
-rw-r--r--application/basilisk/modules/moz.build1
-rw-r--r--application/basilisk/themes/shared/newtab/newTab.inc.css100
-rw-r--r--application/palemoon/app/moz.build1
-rw-r--r--application/palemoon/app/permissions14
-rw-r--r--application/palemoon/app/profile/palemoon.js9
-rw-r--r--application/palemoon/base/content/baseMenuOverlay.xul14
-rw-r--r--application/palemoon/base/content/browser-appmenu.inc13
-rw-r--r--application/palemoon/base/content/browser.js5
-rw-r--r--application/palemoon/base/content/tabbrowser.xml21
-rw-r--r--application/palemoon/base/content/utilityOverlay.js12
-rw-r--r--application/palemoon/branding/official/VisualElements_150.pngbin33851 -> 27921 bytes
-rw-r--r--application/palemoon/branding/official/VisualElements_70.pngbin9272 -> 7785 bytes
-rw-r--r--application/palemoon/branding/official/content/about-logo.pngbin47114 -> 42128 bytes
-rw-r--r--application/palemoon/branding/official/content/about-logo@2x.pngbin171175 -> 166292 bytes
-rw-r--r--application/palemoon/branding/official/content/about-wordmark.pngbin11708 -> 10178 bytes
-rw-r--r--application/palemoon/branding/official/content/about-wordmark.svg222
-rw-r--r--application/palemoon/branding/official/content/about.pngbin64588 -> 47380 bytes
-rw-r--r--application/palemoon/branding/official/content/icon48.pngbin4390 -> 3885 bytes
-rw-r--r--application/palemoon/branding/official/content/icon64.pngbin6928 -> 6176 bytes
-rw-r--r--application/palemoon/branding/official/default16.pngbin881 -> 767 bytes
-rw-r--r--application/palemoon/branding/official/default22.pngbin1324 -> 1198 bytes
-rw-r--r--application/palemoon/branding/official/default24.pngbin1493 -> 1372 bytes
-rw-r--r--application/palemoon/branding/official/default256.pngbin80380 -> 70279 bytes
-rw-r--r--application/palemoon/branding/official/default32.pngbin2325 -> 2079 bytes
-rw-r--r--application/palemoon/branding/official/default48.pngbin4425 -> 3885 bytes
-rw-r--r--application/palemoon/branding/official/disk.icnsbin184077 -> 164632 bytes
-rw-r--r--application/palemoon/branding/official/disk.icobin77586 -> 0 bytes
-rw-r--r--application/palemoon/branding/official/document.icnsbin132198 -> 111772 bytes
-rw-r--r--application/palemoon/branding/official/document.icobin55494 -> 54261 bytes
-rw-r--r--application/palemoon/branding/official/firefox.icnsbin286658 -> 251912 bytes
-rw-r--r--application/palemoon/branding/official/firefox.icobin105959 -> 101320 bytes
-rw-r--r--application/palemoon/branding/official/mozicon128.pngbin23032 -> 20601 bytes
-rw-r--r--application/palemoon/branding/official/palemoon.desktop2
-rw-r--r--application/palemoon/branding/official/wizHeader.bmpbin25818 -> 25818 bytes
-rw-r--r--application/palemoon/branding/official/wizHeaderRTL.bmpbin25818 -> 25818 bytes
-rw-r--r--application/palemoon/branding/official/wizWatermark.bmpbin154542 -> 154542 bytes
-rw-r--r--application/palemoon/components/fuel/fuelApplication.js4
-rw-r--r--application/palemoon/components/newtab/grid.js4
-rw-r--r--application/palemoon/components/newtab/page.js52
-rw-r--r--application/palemoon/components/newtab/sites.js14
-rw-r--r--application/palemoon/installer/package-manifest.in1
-rw-r--r--application/palemoon/installer/windows/nsis/installer.nsi6
-rw-r--r--application/palemoon/installer/windows/nsis/shared.nsh29
-rw-r--r--application/palemoon/installer/windows/nsis/uninstaller.nsi52
-rw-r--r--application/palemoon/locales/en-US/chrome/browser/baseMenuOverlay.dtd2
-rw-r--r--application/palemoon/themes/linux/browser.css2
-rw-r--r--application/palemoon/themes/osx/browser.css2
-rw-r--r--application/palemoon/themes/windows/browser.css2
82 files changed, 5274 insertions, 5351 deletions
diff --git a/application/basilisk/app/profile/basilisk.js b/application/basilisk/app/profile/basilisk.js
index fc3b4546b..c229f3523 100644
--- a/application/basilisk/app/profile/basilisk.js
+++ b/application/basilisk/app/profile/basilisk.js
@@ -346,18 +346,6 @@ pref("browser.search.order.1", "chrome://browser-region/locale/re
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties");
pref("browser.search.order.3", "chrome://browser-region/locale/region.properties");
-// Market-specific search defaults
-// This is disabled globally, and then enabled for individual locales
-// in firefox-l10n.js (eg. it's enabled for en-US).
-pref("browser.search.geoSpecificDefaults", false);
-pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla.com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%");
-
-// US specific default (used as a fallback if the geoSpecificDefaults request fails).
-pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Google");
-pref("browser.search.order.US.1", "data:text/plain,browser.search.order.US.1=Google");
-pref("browser.search.order.US.2", "data:text/plain,browser.search.order.US.2=Yahoo");
-pref("browser.search.order.US.3", "data:text/plain,browser.search.order.US.3=Bing");
-
// search bar results always open in a new tab
pref("browser.search.openintab", false);
@@ -1052,12 +1040,6 @@ pref("browser.newtabpage.introShown", false);
// Toggles the content of 'about:newtab'. Shows the grid when enabled.
pref("browser.newtabpage.enabled", true);
-// Toggles the enhanced content of 'about:newtab'. Shows sponsored tiles.
-sticky_pref("browser.newtabpage.enhanced", false);
-
-// enables Activity Stream inspired layout
-pref("browser.newtabpage.compact", false);
-
// Disables capturing of page thumbnails
pref("browser.pagethumbnails.capturing_disabled", false);
diff --git a/application/basilisk/base/content/aboutNetError.xhtml b/application/basilisk/base/content/aboutNetError.xhtml
index 3296600c8..5ff79ea12 100644
--- a/application/basilisk/base/content/aboutNetError.xhtml
+++ b/application/basilisk/base/content/aboutNetError.xhtml
@@ -362,7 +362,7 @@
// First, find the index of the <a> tag we care about, being
// careful not to use an over-greedy regex.
var re = /<a id="cert_domain_link" title="([^"]+)">/;
- var result = domainRe.exec(desc);
+ var result = re.exec(desc);
if (!result)
return;
diff --git a/application/basilisk/base/content/browser-addons.js b/application/basilisk/base/content/browser-addons.js
index 1d881536a..733114ba9 100644
--- a/application/basilisk/base/content/browser-addons.js
+++ b/application/basilisk/base/content/browser-addons.js
@@ -145,10 +145,6 @@ const gXPInstallObserver = {
for (let install of installInfo.installs)
install.install();
installInfo = null;
-
- Services.telemetry
- .getHistogramById("SECURITY_UI")
- .add(Ci.nsISecurityUITelemetry.WARNING_CONFIRM_ADDON_INSTALL_CLICK_THROUGH);
};
break;
}
@@ -208,10 +204,6 @@ const gXPInstallObserver = {
options);
removeNotificationOnEnd(popup, installInfo.installs);
-
- Services.telemetry
- .getHistogramById("SECURITY_UI")
- .add(Ci.nsISecurityUITelemetry.WARNING_CONFIRM_ADDON_INSTALL);
},
observe: function (aSubject, aTopic, aData)
@@ -262,8 +254,6 @@ const gXPInstallObserver = {
messageString = gNavigatorBundle.getFormattedString("xpinstallPromptMessage",
[brandShortName]);
- let secHistogram = Components.classes["@mozilla.org/base/telemetry;1"].getService(Ci.nsITelemetry).getHistogramById("SECURITY_UI");
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_ADDON_ASKING_PREVENTED);
let popup = PopupNotifications.show(browser, notificationID,
messageString, anchorID,
null, null, options);
@@ -273,17 +263,14 @@ const gXPInstallObserver = {
messageString = gNavigatorBundle.getFormattedString("xpinstallPromptMessage",
[brandShortName]);
- let secHistogram = Components.classes["@mozilla.org/base/telemetry;1"].getService(Ci.nsITelemetry).getHistogramById("SECURITY_UI");
action = {
label: gNavigatorBundle.getString("xpinstallPromptAllowButton"),
accessKey: gNavigatorBundle.getString("xpinstallPromptAllowButton.accesskey"),
callback: function() {
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_ADDON_ASKING_PREVENTED_CLICK_THROUGH);
installInfo.install();
}
};
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_ADDON_ASKING_PREVENTED);
let popup = PopupNotifications.show(browser, notificationID,
messageString, anchorID,
action, null, options);
diff --git a/application/basilisk/base/content/browser.js b/application/basilisk/base/content/browser.js
index 926a369dd..1dee19a1d 100644
--- a/application/basilisk/base/content/browser.js
+++ b/application/basilisk/base/content/browser.js
@@ -2808,15 +2808,10 @@ var BrowserOnClick = {
},
onCertError: function (browser, elementId, isTopFrame, location, securityInfoAsString) {
- let secHistogram = Services.telemetry.getHistogramById("SECURITY_UI");
let securityInfo;
switch (elementId) {
case "exceptionDialogButton":
- if (isTopFrame) {
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_BAD_CERT_TOP_CLICK_ADD_EXCEPTION);
- }
-
securityInfo = getSecurityInfo(securityInfoAsString);
let sslStatus = securityInfo.QueryInterface(Ci.nsISSLStatusProvider)
.SSLStatus;
@@ -2844,64 +2839,27 @@ var BrowserOnClick = {
break;
case "returnButton":
- if (isTopFrame) {
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_BAD_CERT_TOP_GET_ME_OUT_OF_HERE);
- }
goBackFromErrorPage();
break;
-
- case "advancedButton":
- if (isTopFrame) {
- secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_BAD_CERT_TOP_UNDERSTAND_RISKS);
- }
-
- break;
}
},
onAboutBlocked: function (elementId, reason, isTopFrame, location) {
// Depending on what page we are displaying here (malware/phishing/unwanted)
// use the right strings and links for each.
- let bucketName = "";
- let sendTelemetry = false;
- if (reason === 'malware') {
- sendTelemetry = true;
- bucketName = "WARNING_MALWARE_PAGE_";
- } else if (reason === 'phishing') {
- sendTelemetry = true;
- bucketName = "WARNING_PHISHING_PAGE_";
- } else if (reason === 'unwanted') {
- sendTelemetry = true;
- bucketName = "WARNING_UNWANTED_PAGE_";
- }
- let secHistogram = Services.telemetry.getHistogramById("SECURITY_UI");
- let nsISecTel = Ci.nsISecurityUITelemetry;
- bucketName += isTopFrame ? "TOP_" : "FRAME_";
switch (elementId) {
case "getMeOutButton":
- if (sendTelemetry) {
- secHistogram.add(nsISecTel[bucketName + "GET_ME_OUT_OF_HERE"]);
- }
getMeOutOfHere();
break;
case "reportButton":
// This is the "Why is this site blocked" button. We redirect
// to the generic page describing phishing/malware protection.
-
- // We log even if malware/phishing/unwanted info URL couldn't be found:
- // the measurement is for how many users clicked the WHY BLOCKED button
- if (sendTelemetry) {
- secHistogram.add(nsISecTel[bucketName + "WHY_BLOCKED"]);
- }
openHelpLink("phishing-malware", false, "current");
break;
case "ignoreWarningButton":
if (gPrefService.getBoolPref("browser.safebrowsing.allowOverride")) {
- if (sendTelemetry) {
- secHistogram.add(nsISecTel[bucketName + "IGNORE_WARNING"]);
- }
this.ignoreWarningButton(reason);
}
break;
diff --git a/application/basilisk/base/content/newtab/alternativeDefaultSites.json b/application/basilisk/base/content/newtab/alternativeDefaultSites.json
deleted file mode 100644
index 018d3edcc..000000000
--- a/application/basilisk/base/content/newtab/alternativeDefaultSites.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "directory": [
- {
- "bgColor": "#ffffff",
- "directoryId": 10000000,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAIX0lEQVR4nO1afXDbZh1+sxbWsbGvsrLbuBt36766sR3sOEgiuU4kx2vTpFGKm0SKsyyOlI8laUZTulLojQEHx4CyAaNnt72yrivklo1YSpxcW7YVbKXHgCvduCvroDt6o6OtLSWN1MRWX/5I4imyJMu2bPNHnrvfSZbf6P09z+/jfV+3ACxhCUsoAEouNWGlMRLri5GuZwUSe1Ug8bcFEjsjUPgHAoX/UyCxkyKJjQoU/iOhCd8WJSvW/8vpXFFsx7PGeaJsVaytul+g8KMiic+IFA7NTNB/rggk/jeRcu26RGFris3JEqIUtkFsdo2KFK6kI52pCSR2UmirZgY9YFmxeaYg1uyqFSj8lMXI5mofRb3rOwEAJcXmDS72ex8QvO43skjv3MeT2DtRX2150cgLzVUDIonF8xBh64KQ2FWRwncPejyFK4tYq/Nmoa1mPE/pnZ1ILe4TFxpdd+SdvOhxrhabXaeLTVjfsHfzSj5K4V8QKfyjnGs3P2UiCt/v/1LeyAsNlXebkbeRSOZ/Q+JCrBH/Yt7IX+qlbhS96dM+Y+dJLC6S+BWRwmazFizf5AEAQPRtHLEhukqMwo8KTfg2oamy8t+e0uvUczwDwDWxhopHBBLvElrc+wUSm/r/IN9a3ZtrbYqUe9eHTc7PZDLvoAcsi/lq2wQSO1M88k93r7ayjzdI76sxEv/5hdryT+foRknM696q9qMg5AEAQHx83WhWtU5i56PtG1E7fYkO+B4SKNd7AoWLBSEv9G3Asol8zOs+ddFTeWc+fDrXgq2MNmEP5+PdKZB/XR4RvRnWe8tjJ8+1ECsL4mA+EQ+vcCg8gHHuPjjZvc5S6guU6/3/POG5rdi+24IEv+KwEgFQ4QFU/rAKTu90pal5fCY60PlQsf22BefHwfUKD2YVfl6ACIAKfx2UX0QNBYj6arqL7bdtSIQBnYy+2iIAzg49Cid9bm3qv11sn21FggeHUwSILGQCgIljd8Kpreq+4Koqts+2QuGBmBL9FLsFSj+sgAKFnyq2v7ZCDoO7dKOvvc7fS3vcW4rts61I8OBxXdI6/UCJADgVvmGVHfMSAelgfUA6VBeQDqmv2nuzZ3rf6Y2r3SM7DB1RwmCnOsLaiGuenbWD/JwAcqI+IEPCL8H6gAwX7omADIn5z/Wqe0Iz1sgI3edSv6EjcR78OEk4jQiJCNhnlwD1ATlBmDqdCUHzcYRf3mXoSCIMXjdK95SeEAbfslUAk4iaEc1EsLnx0vNmAhw3q3mNAFvtFCBd2i8i4bdWAgYCDBkLwIMJw8antTDos12ARSTNM8JK5Amd8URAPmosQAS8Zdr41N/lIQOS0Z2/pkZe0iWoS35+rIY8rPfLvzcWgAdDljMgAr5tlwCEWgArjUxnnJXSmX8eMnQkPrH8OasCJMJgfyEE0KZxMrJ+i2WgyZq6gHTQ0BGFv+abujs//ab4gV0CqEvAar1n0gQXizj9PUNHEmHgTSFt1At4O3eCH+8D0tW2YUmoMkKvfyQzwC/vMHREegN8Tpe4zjIY55fD14+X9tgiwC8mV2ZrHS/LGOGXRd3y8aeKVee/3GrqjBIGMcMsmL/GJu6AW4+1QZRl/mKHADmipD4gz1jJHCIgw9oXJ+8zfVsi/ImXU7bDquvfI2ugZ7wHoiwDUY6BTrbTWRie+ti0d7rGrHTU5UD45StpX5iILPMZrQTD4Q0QG+2GKMckzcF28AXgaYiv7ZNesdokCb90PO0LP2TBpxQezKpFkPmb4Q/ebFlEHOWYZBY8FtriKwDXFDAHhLvr/bJi9TzQtPeycQNUI3HihkML5M9NfB4+caRTl/jHRsvtb333gTzzTUHDPonNZFkkfjVl7Zfr+MRtiMID+McICqtDvfrE2cWfHRxz2j321K155pxE84HLLWb7BK0odX75TEYTBI43hB1ch0HE554h7GJhKrkn/4wPMjfliXMSO4alcsIvx/UanZE17pcGMppkU2iL2zDt9QSZtwqu66/Okdbb88Qd7PydVFYfkGVthLWHHk1JyOteuHRjxpNh3JNjRtE3EgDlGIiwzLlqrq/MbvKtLwkewi/PalPc8PyQPDdIP8lqQvdw92qEZWbNyBqJgnD0VTTI7H74Je/1uRL/8mDr7VWjfYeJkecgdfC/6c8JavPL0+6fitn3JtdIzxbdqLPqiNMmwtAxR7BzZ+mgL2MnHGzHPQhL/wzlmCsLc64PbYPU4Xd1zwN6WdCwT/p61uQXsH6sL5TS/dOUgY4QCZRlxsuD9EDZsM/x4KDnk5ppSsqGfHehw3QjytHfQVj6HaP+U8F1wZbhMf1Dkerzpr3Sn4Ad/5/Yc2T7TQ6OOW2YBWZimAsVRzlaRoL0DMLRV/WW19SVh05+v5nbAxsPCPpZ4Jclwj95b87kF+BgO+5Bg8yFFHKZZkO68XqimoyvGd0FqUNnU/pA1yvTdbaRXwDCtj2CsszFjFLfSjZoRbEiqEqoqtE+6H2VT5LfvPfydtvJJ0V4jb537QhzxjLRdMSsimIhq5q538DNgSnbfqs0FoHrusUd6j2ScdTNyGZTNovfHa8Z6/fmnbwaTq5r+1wj0ziZrjlmvIKYP3ew9Hvk+NOPFpT8AjxHd6ypGOl607Z+YDUL5s4iChpkdq8b7b22KOTVQIPtGxet3bmQtVA6eKhnyBP6hvnPW8UAwvpq1nIdoeS6bpWY0fK3aMfJTCMc/csqtuf+YvNMi68Mt38WDTJPoSx9DGHpmaxLI8hcqBzpCiDB9ibnM87lxeaVLUrKg+1fRVimby3LPItw9G9Rlj6Bssw/EI4+i3DM+0iQPomy9JiD69hdztI7SoPtTWWvddry7w5LWIIx/gdCuvcjoZqlLQAAAABJRU5ErkJggg==",
- "type": "affiliate",
- "title": "Google",
- "url": "https://www.google.com/"
- },
- {
- "bgColor": "#E62117",
- "directoryId": 10000001,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACd0lEQVR4nO3av0tVYRzH8WOIBEVDUUIGCa32FwQ5OrS42NKeRUOTdGmoqUGiLVBqa5UG+7WUREGiEqhTDkVJEA2iYZBkxKvhHumo96o3uM9z0ucNZ7zn834+XO59znm+WZZIJBKJRCKRSGwCx3AWfbiIaxjEPYzgOd7gLWbwIb8WsFjjWrU9q3U+u1C4/0yeOZ47jOROg6jkrn25e3uji27NbzC9A9n/hWnVNbVut/hOTMZ1bSqT6Ky3+A58jOsXhE/o2Lj4FryILBaSF2gpFtAT2ygCPcUCHse2icDTtcW3YSW2TQRW0JahK7ZJRLoy9Ma2iEhvhoHYFhEZyDAU2yIiwxkeBgj6FSDjXxjN8CpA0A1cxucAWY0wkeFdgKBK/pe7H1fxNUDmTpjLMB8gqLJh631A9dF6IUD2Vsxn+BYgaF0BhSIO4WYgh1osZVgOEFSzgEIRh3EL3wO4FFnOAgVtWUChiKO4gx+BvJSqgEIRx3EXP5stVsoCCkWcxH1N3EeUuoBCEafwshlipS8AJzTxW1DaAnAEtzX5B7F0BeAgrmMphFhpClB9M3UFXwI5oQQFYB8u4H0gl3VE3QninOoxVyyWozwL4AxeB8jdjqWgT4M4jUcB8nbKfKj3AUN4gN8BshphLtQbobIyEeqdYFkZzTAc2yIiw+lcQDoZSmeDe/t0ON+gPIltE4Fnxa3pnp8QacFYbKOAjCnOCOUldKhOUO12Nk+JFUroxFRkwWYypd6cYKGEVvTbfZOil2w3KVqjjHZ047xqKRWbZ4XHVed2Z/2d5a0167vYgHC9z6/df9bWs8L9uXO3RmeFE4lEIpFIJPYKfwAcall+TY3q/wAAAABJRU5ErkJggg==",
- "type": "affiliate",
- "title": "YouTube",
- "url": "https://www.youtube.com/"
- },
- {
- "directoryId": 10000002,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACT0lEQVR4nO3bzWsTQRgG8PlPHMVLqRVMoQiFehJyUBAFtRCFHspExaaSoFg8CMGPSg+R3kQhh3osIbOlMVrbGKtrsbYESTbB0gqNVGu1WCkWutnXg+ihQjqxi7Oz8w481533+V32iyGEEEIZ76Rho0SZ4ewOG+D3UMatXSx9nPwqb5ySPZC0dPMzhDJelD6IrDCjQijjtvRBJIWGeY3IHkJ2EED2ALKDALIHkB2lAJoujkIwnoNQwoQL96aha3AKQgkTTtyZhKM383D4+gQEoll/AQRiWbg1XILZ+VWwaw6IrE3bgZbejNoAe8+PwEC6DOsbm0Klt679lxQGCESzMD335Z+KKw+wrzcDpcVvOyqvNMCwubjj8soCnBx44Up5ZQGeFZf1BWi7/BhqjthtzpcAseRsQwVrjgNzS9/hZWUFJq3Pf6U5MqoWQHJ8Qbh8aqoKB688cWVfzwBMvP0kVN6srMCec+7t6xmAmfmvQgCRBzOu7usZgHJ1TQjgyI283gCHrj3VG6C9bwwBEAABEEAtgAPRR9A3VKibpdUfQgD9KWvba529+8pbAMF4TqicW+th/r3eAP0pS2+Anvtv9AY4dvu53gCtMfGfI74DWN+wG5rNdwDl6preAGOFj3oDJMcXvAfQHMlAKGHWTeWD2KPw1aFC3et0NPi9wDPvAq/fif0LDMZzru6LALKLIwACIAACIAACIAACIAACIAACIAACIAACIMD/BvDKwUkZAJRx2zNHZyUBFAntTp+WXV4iQCf5c3yecUsXAMq49bv8Txsl6ZCTabOAAAAAAElFTkSuQmCC",
- "title": "Facebook",
- "type": "affiliate",
- "url": "https://www.facebook.com/"
- },
- {
- "bgColor": "#ffffff",
- "directoryId": 10000003,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA/CAYAAABQHc7KAAAEyUlEQVRoge2abYhVRRjHf7veVqSFhIQwa7E3ojXNpSiNgl0S+tAHKUjohbQohUgqKKwMSXpbsATdqOgFU4zKpAzMioploxI/WFBZmhRlL/S2lbpsudvd24dzjve5c58558ycey9B84MB95x5/vM/d+bMzDNHCAQCgUAgEAgE/rf0AOd6lJmKVrdDfI8SfxawIKNcEscfa8TOzBFrlj6Aimd5XnmAbx01TD5xiL3IiH3Y8zm4DXgaGALGMip/DDwHDACXKQ9wA/AiMJyi8T3wAnCvEr841t9tiR2JY/uB443YC4BHgA3ApyntTxD90FuAlaaBU4EfLIHvKIZtnAT8ZtE5O6fGCiNuFJiTM7YNWKe0PQScmRV8ncX4+zkbT1hq0bkyZ/wyI+5ux/bPM+I/ACbnCSyhv8tloMvBQAnYr+h8mDP+PRHzGXCMQ9sA14j4ceAMl+A70HtvjaMJ22jqy4i70Kh/sWO7AO+K+Jdcg6cCh6k3/gfQ6aBTAr5UdN7OiHtL1H3NxXhMN9Fkl2jM89BgPXrv3eKoc71Fx2ZqvqhTJv+kKRkQGjs94gE4PTZgGt9DNMvmpQR8pehst9R/Q9TZ5OG7EzgkNK720DjKNvTeu9RRZ4miMUH9bnCeuH8EOMXD881C40egw0PjKL3oP8Cbjjq2FWGrUW+HuDfg6XmP0NA2W060GYKy97odtbQVoQzMiu+fL66PACd4+O0VGqPANA+NOm5CHwVPOeqUgH2Kzub4/uvi2gOeXrcU8GdlCtG7ZBr/C5juqHWtojMOXCX+HgaO8/B5YqyV6GjZpjf3oI+C+x11JgF7FZ1/xL/v9PS4WmgMempYsW2MfsdtYwTRsqT9mBXgANGIc6WD2lG60EMjk0fRTS931GkHPrdo3ejpbZHQ2B+30XC6iNZm0/Q3RBOcC7Yc4WRPb0NC43ZPjVxsRDe+yFHHHLJJWevhabaIP0z0ujaNWdQmGUn5yEPrPkVnBPe1+0kRv97DhzPb0UdBr6OObZv9kIOGnJzLRPlL0+lFN+6yPe5BH0kV4E/yD+PlIm6bQ/uF2Um98Qlgbs74V5V4WVbl0GgDvsB/BBbiCnTj2lG5yVyqvX+QaOSYOsNk7y8WiPo+c1Ah2tFPesbJTmFfEfX7qU2BZVmRoSPnkMU+D1EUW5L0WErMHKq9P0o149NeqZ+w7wq7qO77f02p11Qmo6/laWnoVlFvnbh+uaJTAW616Dwo6rjmIw3lLnTjminZ+38DM8Q92yv1HfUnOh3AL/H9I7hnpA1lKrXnb0nRkqSXxf0nFC3bK7XMqCdT6o2NeIiirEE3Lvfks6kesI6hf1m2nTt8TW2uIeeLhub8vsxAT5IOUB2+8qTm2RStlYqOnOV7xLXBRj5EUWxJ0hKic/2k98dJ367azh32Es0Tz4hrTcn5fZE9I8s+ajc6m20CgrUWrdVEK0yFJub8RRhEN56UMjk+TVO7xtuK6yFMS1hIuuk82+SETSk6h3A/hmsJ7egfPypEh555ej/hHOzZYktyfl9keiqLzzc+LUlqWc7vSyfRJ3Rpegw4zUOrj/ofoKU5vy/91Jp+vIDWLkPL/J9h/0mmAT9TXa58vvIkzKe6ydpQ3FogEAgEAoFAIBCI+Rf5q90lTPZHIwAAAABJRU5ErkJggg==",
- "title": "Wikipedia",
- "type": "affiliate",
- "url": "https://www.wikipedia.org/"
- },
- {
- "bgColor": "#400090",
- "directoryId": 10000004,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAD3ElEQVR4nO3bS4xecxjH8WmLBVVEx63JBIkEISkhJqURpAsZQioWqpeNSxraYlKpSwiDIRY0aSakqgS9qHRBIhKxYdFFFxWXIGkilYZEUCKj4zLzsfi/LN55zpiZc/lr+/6Ss3nfc57ze77n9r88/y7swxaswgLM7jpMhTlYiNWtnPd1Ga9RfIVtuB+L0J3b/FSFeejDQ9iBvRhrTzYCUKTv8RFewlrcgAtxQsYk5+Ii3IQHsBm78ONkk5oKgIn0Mz7BO3gBA7gHS3EtLsXZre1UnITj2pI5vvV7D85BL67DCvRjEJvwHj7HcBXGqwJwyKoDILeB3OoAyG0gt8oAGMYj0qdnJ17DY3i2vK1CPYmn8Cq2YwgP4rfpBix7BwwE3+aZ2F0ybqQPMSM439NlgpYFMILzAlO9glZXCf2F+cF5LsafZQJX8Q4oujKbK4j9j4aC+EdhT9nAVb0Ebw8MduNABbF/wMlB/LUVxK4MwE84JTC5uoLYK4O48/BrBbEr/Qy+XnCbfloi5h7MCuJurcSxagGMYWFg9qr/SbxQVTeEiq7Ym9OI9UYQ52ipJ1iZ6mgJ3h0Y7zG17usvOC2I01+12ToAHBCMIGHdFGKsCo4/QwJTqerqC2wMEjgGX0zi2KLH6JU6jNYFYBSXBElc/R/HjaE3OO4y1bYs/1WdvcFd4hbilgmOie6cGa1Ytaju7vDSIKHTxc9yUYtvWZ0G6wawH8cGSa0J9r0t2G92K0ZtamJA5PEgsfaOTNHjMlC3uSYADKMnSG6B9GIr6uqehYN1m2tqSGxre4KtJDdhfcF/O5ow1hSAMVweJNmNOcHvlbb3J1KTg6K7MTO62m3Jz1LBQMdk1fSo8IpJALizSUNNA/jWBNPvOFGahG1MOeYFnpgAwHNNm8kB4CDODJI/F380bSbXzNAzAYD1OYzkAjAYABjKYaQDIMdJxQDqnFMsVC4A6wIAgzmMdADkOKkYwKM5jOQCcFcAYCqjxpUpF4Bovu+IB3BfDiO5AIzrFWJlDiO5ACzpABgP4I4cRnIBWBwAWJLDSC4AfR0A4wHcksNILgCLAgB9OYzkAnDFkQ5gDZbj3ta2XCp5bVydYuncBnKrAyC3gdzqAMhtILfqBDCCb6SZ3velatGXsUFa5NC+vdjatrf2/QAfSyUyv9dlsgyAEXyGt/G8VBl+PS7A3PaGTllJCy7n40Zp8GQD3sWXSgCaDIBRqcBxGx7GYmll57hixlySaojPx83SuqW3pLXC0wKwX7oF+3GloILjUJE03X6NtAh8J76LAOzFRtwqKGY63CStX14mLen5+m9Vgqdbrd+9cgAAAABJRU5ErkJggg==",
- "title": "Yahoo!",
- "type": "affiliate",
- "url": "https://www.yahoo.com/"
- },
- {
- "directoryId": 10000005,
- "imageURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAJdklEQVR4nO1ba1QTZwL9iCY8hCDxDUpYOIUDBOVZAlJ5NQXRFlEQ8YGiRaqESlhxeRQ3FAWURRC6FYglqBHTEaI8Eg+CRMRatfKwLNL6oqer1h57XEWYbwJK9sdKixiSmRCCbrnn3D8w351770wy3zd8ADCJSUxiPMHhcPS3bdv2/tq1a9MWL16MODs7t5iamt4zMjLq0dfX76VSqU8sLCzueHt7S+3t7QtjYmLWJyYmzp1o32NGSUmJd0BAQLmRkVEPAEBOhCQS6bm3t7c0MjIyHACgMyEB1AGCILTY2NgUOzu7fwGCoUfj/Pnz/x0XF/fXgoICXW3nIYTs7Owlpqam94CGgo+ktbX1j4mJiY7azIQbMTExu3V0dF6AcQo/RF1dXYggSIj2kuFAfHx8Lhjn4ODVElCxWOygpXjKkZWVxQZaDD9EOp3eXV9fb6yVkKOho6Njgb6+fp8ig9pgfHx8gjZyjgYdX1/fhtHMqSKJRHpOJpNl6o4HAMidnJxatJJUEWpraz3xmBxOExOT30JDQ/+elpZmD14+26uqqubExcVFzJs3T53H5uCJEydMtZN4BKKiovKJmA0KChLu3bt3zmh6Bw4c0F+3bl0BEU0AgLygoCByXAKqgq2tbSdek0FBQTV4dZlM5kW8ugAAOZPJ/IeGIuHH9evXp+no6DzHa7K+vt4Lr3ZiYuIOvLoAALmnp6dQQ7HwIzc31xqvQRsbmy5AYC6fnJzsjlcbACD38/M7p5lUBBEeHp5lbm7+E4lEUnonREdHpxPRLSwsNFWmN5Kurq5XNZNITfj4+EwtLCw0dXFxcebz+UFhYWFbmExm6qZNm/IjIiKyampqDIjonTp1ajp4mwrQNP70BfD5/D9PAcXFxQZcLteOwWCw9u/f/3FwcHC6paVlOfg/K4CUlpbmEB0dvSEkJCTLxsamwtnZuXXmzJmPAACDgEBYRXxjC8jJyfFYtmzZYWNj48dgjCGV8Y0qICsryyQiIiKVTqf/BMYxNHgTC8jPz/+ISqU+AVoKDt6kAnbs2MGeMmXKANByePAmFBAbG5utyJi2OKEFJCcnx+MxqYizZs361d/fvyw9PX0bg8FgZWRk2FZVVc1pampaQERnwgoQi8VLVK0DRpJMJstWrlx5hMPhvMflckmKdN+amSDRdbuenl5fRkaGnyrdt6KAsrKyD4iYpFKpTy9cuPAuHu23ogAmk9lIxGRCQsLneLVLS0tnEdHWegFisXgu0b8ANTc3W+LVT0pKsiSirfUCDh06tJyIQSsrq5tE9PPy8jyI6Gu9gMDAQA5Bg9VE9Hfu3BlFRJ/BYHSMPRUBsNnsfUQMksnkciL6q1ev5hHRNzQ07AHa3D9A9N19QEAA7lfiAAAdOp3eTUQfACBHEMR87MlwgmgBZmZm9wHOK1RUVLSFiPYQd+/eHaOheKrB4XCyiBrk8XguqnTb29vNDAwMeolqAwDkCxcuvKbBiMoREhLyKVGDy5cvr1Cm2d3dPd3Ly+sCUd3h3LNnT7xGg46GoqKiQHUMbt68uZjL5VJG6qWkpPjS6fS76miO4Ivm5maVd9qYUV5ePlPdtb+FhUV3cHBwkbm5efrGjRvz7O3tr2og+O90dHRslUqlUxX5lkq5U7HmJEtUsnTxwG0kEJ7b4Cer32ArlXIVHq8ULBarVpPGNcng4GDP4V6xloxArNq3oq+M9hTlUeSvsfwvPxMuoKGhwWO8N0RRKBSM6Bg6nf4jgiC0zk6Egl3czsYQhxsKQ48g4QIAAMDf3//0eIWn0WiPjh075jx79uyHeMfY2dl1IAgyFwAAZA1rjqE8ihw9rPscrXRp7xO5lckaN6X0t+dt7m/LiYanPI+iPPLgmApoa2t75+W7fY2GX7RoUcvx48fpAAAgEom88NwJLBbr65ycnGlD3gZuli15VhfC6JZy9Ubzj1W6to6pAAAAEAgEDsbGxv/RVHh3d/ezEomEOvwcqamp6crGsNns/NHeLg0HPPOhV98Pf2ynQRHG+ZcFDKpdAAAAFBcX+6qzF3gkly5dqjCIVCrVs7e3v6RozKpVqw6q8idrybCFonfrUB5FDqsWfzv0c1jh2IHyKHIotL0J+lsyY7CqJXmyO4hamw/Ly8vnhIeH51Op1KdEQtNotN9WrFjxpVAodFOmv337dkMmk1k9NI5CoWCZmZk7EQSZouj4bilfT/ZtUjhW4yNCDxv0ozyKHJaZ9Mq+S1sDAACdnQgF8o1RlEeRy5picsDA3dPv9QnMHqI88iAUudYNdJV4q1NEXFyc7q5duzZ4eXmdtLKyukUikV6ZL1Cp1CeOjo6tHh4eRVwudwWfzx/1MzoSXC53alRUVCaLxapjs9kBio55fC3bGPvm0wRUQL/3yjc9n9Yz0HX090zolTSP//2OPIjdEVkDAAB42nmYJjsbWjo0CEMcfoCNkXvR5lh3BAlT2LQqhIWFTZFIJFSJRELdunUrWR0NVXhc/zdj9MxHa6B4qRAemfHasx6rYUnQjn8uGD5G9k3CHpRHkcvqQk+8Joh1lX2AHl9wf+RkAWtYvx9eSvaWSn2Iz5w0jId1O6fJLn8Wila6iVCe/oCiZ3sff8YT7CLnE6BgJQoRhxtoqcmz3l8vK9629+xW6Sx4dnUmLJv55DXxo3MeQ8ThDKxlfS77Pm8F1pxkqegkmsItSZxu75nAhf1NMZFY47ov4MlFzejLz69ClhrB/vObc3uuZM5QpIf9fM4K5VHk/W25sSpP3tdaaArPrBSgJbovlM6m+LQeWO13HqtwO4i1Zn0CRZ5+2Hf7bB5cK8a9P6hbytfDOgqsMJErC7vyWRw87VUERR5X0VJDiGc2h/IocljL+rr3Klfpv9pg9xttsLOrVIcfDtltEQOtcP0CFZg/wGvmjysyvQ8VmP8ChTa3McThBiZya8NEbm3YSUYXFNrcRgXmv8Ay2jOUp0tMd9gdidWHFsiuH2QQCqUOuFwuSXY5ZT1a6dyullkNEiKMLky6NaYTeX2JrRXILqcslIkDk2GFYyP6lSE27oGPzHiKVTiJZdV+qf2dh50mJPRo6Jby9bBLycvRSpcCeNLpe7SEovw7Aw+/MpDBUx5XsNqAbHgp2buzc4KutDp4dHGXEVq3xh02fbwFq2Htg5WuQljlcwFWLOqAJ97p7hOYPewTmD2EQuu76Emn67DauxmtdEawap8ceH5TNFofznxQs5XQBstJTGISk1AX/wUPVWOeSpK50AAAAABJRU5ErkJggg==",
- "title": "Amazon",
- "type": "affiliate",
- "url": "https://www.amazon.com/"
- }
- ]
-}
diff --git a/application/basilisk/base/content/newtab/customize.js b/application/basilisk/base/content/newtab/customize.js
index 39724fa91..bc4903f6c 100644
--- a/application/basilisk/base/content/newtab/customize.js
+++ b/application/basilisk/base/content/newtab/customize.js
@@ -9,7 +9,6 @@ var gCustomize = {
"blank",
"button",
"classic",
- "enhanced",
"panel",
"overlay",
"learn"
@@ -83,13 +82,10 @@ var gCustomize = {
}
switch (event.currentTarget.id) {
case "newtab-customize-blank":
- sendAsyncMessage("NewTab:Customize", {enabled: false, enhanced: false});
+ sendAsyncMessage("NewTab:Customize", {enabled: false});
break;
case "newtab-customize-classic":
- sendAsyncMessage("NewTab:Customize", {enabled: true, enhanced: false});
- break;
- case "newtab-customize-enhanced":
- sendAsyncMessage("NewTab:Customize", {enabled: true, enhanced: !gAllPages.enhanced});
+ sendAsyncMessage("NewTab:Customize", {enabled: true});
break;
case "newtab-customize-learn":
this.showLearn();
diff --git a/application/basilisk/base/content/newtab/grid.js b/application/basilisk/base/content/newtab/grid.js
index b6f98fa17..726150a6c 100644
--- a/application/basilisk/base/content/newtab/grid.js
+++ b/application/basilisk/base/content/newtab/grid.js
@@ -9,7 +9,6 @@
*/
const GRID_BOTTOM_EXTRA = 7; // title's line-height extends 7px past the margin
const GRID_WIDTH_EXTRA = 1; // provide 1px buffer to allow for rounding error
-const SPONSORED_TAG_BUFFER = 2; // 2px buffer to clip off top of sponsored tag
/**
* This singleton represents the grid that contains all sites.
@@ -142,13 +141,9 @@ var gGrid = {
// Create sites.
let numLinks = Math.min(links.length, cells.length);
- let hasHistoryTiles = false;
for (let i = 0; i < numLinks; i++) {
if (links[i]) {
this.createSite(links[i], cells[i]);
- if (links[i].type == "history") {
- hasHistoryTiles = true;
- }
}
}
@@ -157,9 +152,6 @@ var gGrid = {
this._gridDefaultContent.nextSibling.remove();
}
this._node.appendChild(fragment);
-
- document.getElementById("topsites-heading").textContent =
- hasHistoryTiles ? "Your Top Sites" : "Top Sites";
},
/**
@@ -182,18 +174,15 @@ var gGrid = {
// Create the site's inner HTML code.
site.innerHTML =
- '<span class="newtab-sponsored">' + newTabString("sponsored.button") + '</span>' +
'<a class="newtab-link">' +
' <span class="newtab-thumbnail placeholder"/>' +
' <span class="newtab-thumbnail thumbnail"/>' +
- ' <span class="newtab-thumbnail enhanced-content"/>' +
' <span class="newtab-title"/>' +
'</a>' +
'<input type="button" title="' + newTabString("pin") + '"' +
' class="newtab-control newtab-control-pin"/>' +
'<input type="button" title="' + newTabString("block") + '"' +
- ' class="newtab-control newtab-control-block"/>' +
- '<span class="newtab-suggested"/>';
+ ' class="newtab-control newtab-control-block"/>';
this._siteFragment = document.createDocumentFragment();
this._siteFragment.appendChild(site);
@@ -274,6 +263,6 @@ var gGrid = {
this._node.style.maxWidth = gGridPrefs.gridColumns * this._cellWidth +
GRID_WIDTH_EXTRA + "px";
this._node.style.height = this._computeHeight() + "px";
- this._node.style.maxHeight = this._computeHeight(gridRows) - SPONSORED_TAG_BUFFER + "px";
+ this._node.style.maxHeight = this._computeHeight(gridRows) + "px";
}
};
diff --git a/application/basilisk/base/content/newtab/newTab.css b/application/basilisk/base/content/newtab/newTab.css
index 658ad2ed3..64b3ed7ef 100644
--- a/application/basilisk/base/content/newtab/newTab.css
+++ b/application/basilisk/base/content/newtab/newTab.css
@@ -122,10 +122,6 @@ input[type=button] {
pointer-events: none;
}
-body:not(.compact) #topsites-heading {
- display: none;
-}
-
/*
* If you change the sizes here, make sure you
* change the preferences:
@@ -140,12 +136,6 @@ body:not(.compact) #topsites-heading {
width: 290px;
}
-body.compact .newtab-cell {
- width: 110px;
- height: 110px;
- margin: 12px;
-}
-
/* SITES */
.newtab-site {
position: relative;
@@ -175,16 +165,13 @@ body.compact .newtab-cell {
}
/* TITLES */
-.newtab-sponsored,
-.newtab-title,
-.newtab-suggested {
+.newtab-title {
overflow: hidden;
position: absolute;
right: 0;
text-align: center;
}
-.newtab-sponsored,
.newtab-title {
bottom: 0;
white-space: nowrap;
@@ -192,103 +179,11 @@ body.compact .newtab-cell {
vertical-align: middle;
}
-.newtab-suggested {
- border: 1px solid transparent;
- border-radius: 2px;
- font-size: 12px;
- height: 17px;
- line-height: 17px;
- margin-bottom: -1px;
- padding: 2px 8px;
- display: none;
- margin-left: auto;
- margin-right: auto;
- left: 0;
- top: 215px;
- -moz-user-select: none;
-}
-
-.newtab-suggested-bounds {
- max-height: 34px; /* 34 / 17 = 2 lines maximum */
-}
-
.newtab-title {
left: 0;
padding: 0 4px;
}
-.newtab-sponsored {
- background-color: #FFFFFF;
- border: 1px solid #E2E2E2;
- border-radius: 3px;
- color: #4A4A4A;
- cursor: pointer;
- display: none;
- font-family: Arial;
- font-size: 9px;
- height: 17px;
- left: 0;
- line-height: 6px;
- padding: 4px;
- right: auto;
- top: -15px;
-}
-
-.newtab-site[suggested=true] > .newtab-sponsored {
- background-color: #E2E2E2;
- border: none;
-}
-
-.newtab-site > .newtab-sponsored:-moz-any(:hover, [active]) {
- background-color: #4A90E2;
- border: 0;
- color: white;
-}
-
-.newtab-site > .newtab-sponsored[active] {
- background-color: #000000;
-}
-
-.newtab-sponsored:dir(rtl) {
- right: 0;
- left: auto;
-}
-
-.newtab-site:-moz-any([type=enhanced], [type=sponsored], [suggested]) .newtab-sponsored {
- display: block;
-}
-
-.newtab-site[suggested] .newtab-suggested {
- display: table;
-}
-
-.sponsored-explain,
-.sponsored-explain a,
-.suggested-explain,
-.suggested-explain a {
- color: white;
-}
-
-.sponsored-explain,
-.suggested-explain {
- background-color: rgba(51, 51, 51, 0.95);
- bottom: 30px;
- line-height: 20px;
- padding: 15px 10px;
- position: absolute;
- text-align: start;
-}
-
-.sponsored-explain input,
-.suggested-explain input {
- background-size: 18px;
- height: 18px;
- opacity: 1;
- pointer-events: none;
- position: static;
- width: 18px;
-}
-
/* CONTROLS */
.newtab-control {
position: absolute;
@@ -333,11 +228,6 @@ body.compact .newtab-cell {
margin: 40px 0 15px;
}
-body.compact #newtab-search-container {
- margin-top: 0;
- margin-bottom: 80px;
-}
-
#newtab-search-container[page-disabled] {
opacity: 0;
pointer-events: none;
diff --git a/application/basilisk/base/content/newtab/newTab.inadjacent.json b/application/basilisk/base/content/newtab/newTab.inadjacent.json
deleted file mode 100644
index 53fb542af..000000000
--- a/application/basilisk/base/content/newtab/newTab.inadjacent.json
+++ /dev/null
@@ -1,3209 +0,0 @@
-{
- "domains": [
- "rp5slFCxq/e7hYhXJCd0vQ==",
- "2rEimAJDNX5g8HPZehOrGg==",
- "nvLEpj6ZZF3LWH3wUB6lKg==",
- "9Cqd4Lm3VvXuJxz79Bbqyg==",
- "vNRy4LR+7TOKTixqsr5ybw==",
- "N4zSgsZCo6Z4XRwZ4fu8WQ==",
- "jsDtRfVbMsFg3KkEl2UiZQ==",
- "TckkKpiq0a6J6NTw7uOZqw==",
- "9Or7IAYuuIgZA370w9rNIg==",
- "ul8WvOjCkxTz9LjT4RqTHg==",
- "ZGJrbwb5878Nsqm0z+A7nQ==",
- "5iT64HTeeG5SIFXG7A9o3w==",
- "YSeSEghPe1kV6g8ghFcNAA==",
- "0jIUl1NDmJZQkDY12VDeIQ==",
- "aos6UyDyIw0R1nTK5wTawA==",
- "G1xxubsq65ugK06UT2DO5A==",
- "lbhavoDrDPP/8m0onwo63w==",
- "ObcLsjW0SkdvY0nkZmiTGQ==",
- "FHZ5084LC0nTAzZlnSKN3Q==",
- "cdEr+0Fv5iaVZzalZToseg==",
- "Co8WbNYbCPTFPcHpeK3hRQ==",
- "qXSzhCEhByLQq9N84tqV+Q==",
- "h3ufhRk5IEFaNH11rIACtQ==",
- "fQ1PJ/JwazIaYoy/zy49QQ==",
- "zAJqfbn54Nsm2ddGtkb59A==",
- "ixPM9T8ik/gWGZ7BRIcaig==",
- "/E9pwA3E3hVAZoYq3FmCyw==",
- "U6ygonI8CxpruhpGB2+Q6A==",
- "Igi4voB8oVMVw6WUeDSjZg==",
- "jtuHIJhwoTGzavFpM7ilNw==",
- "eBvTV27n6Gs+ZsBkpVynvw==",
- "sFbzw0AUOGG0NEzkaSxVDg==",
- "yAkIS+Ezj6woEff9YvdO7Q==",
- "IP1+BwG6q60QzDADi8j7oA==",
- "Q/teQEBFepHtwZ7UHa2TEA==",
- "B1vDep5a1Gok5Gnth39+LA==",
- "cyEIyQ2MZaPGf+K1x9Bbkg==",
- "aaM+oEJnF4/nwMWyXJU8rA==",
- "qpDNIpxah8FUiqXm5IRaUg==",
- "ZTeJ35gMPqIv2WWbeNyIEg==",
- "nzoAGQAnC/Xgg5PmOgXqkA==",
- "J5pJDuNi3cqQiyaRJAJk4g==",
- "2vqN53BXhXzPrKYsh6QH1A==",
- "QlrzHNYxCwCBMVENvbXjQA==",
- "Ou2HGn43nmsL3RWSNvMdXw==",
- "3qk9lsvGTMqVMAZW+xihfw==",
- "RncMe42RB2bhmUbYtGVnKQ==",
- "hzNXR6dqPq1+vf4Qh5ByWA==",
- "sRq3S2ZRs3H39cEQHv4Vig==",
- "B4ThUBTVJOUPyOsHxikHXA==",
- "A2lU9GkAdSibLO1JJfFnIA==",
- "ef3HNkSvuWQrAzkuty2iqg==",
- "yKDiRM6bf2xc0QXIwHYuaA==",
- "AdCk4ccJuhA0bIT/61J+RQ==",
- "UXvAZ7ULCVz2f505K0Wkvg==",
- "ueKWblrOwVJNgiOvkXKLBQ==",
- "s8u/jPuBAxu1d18HfV5Z0g==",
- "hUT0Uc5YMUdNZQEGLz4hJw==",
- "6jo/phmMTrEXKrNRsionGQ==",
- "s/Ea/3fkyJ9honzPJkgEQQ==",
- "hgu2/Jf+WrQAHfO+asW2zw==",
- "kiVuTNwZ1r2lqYEZxIHyiQ==",
- "24T5KVrVE2mYwJ5Goj3xJw==",
- "fiWBVlfj97GGjEvf/Q9Spg==",
- "5VWdlvJe7eoXMGkTtHzCUg==",
- "+cFQxKa5RWVtc1z00Jujew==",
- "nVa+rLH5p+yXBksLwQsjRQ==",
- "5tyI6bMdb3tMIi4ewvr/SQ==",
- "S6Roj31yS5bZbSFcd3f4Hg==",
- "uW1Zl8iuEF8ZT/gwCBEqwA==",
- "YwL+FJgxlZ8JVig+9iP5Cw==",
- "ThIYK/mQsp9cMf8+rws/4Q==",
- "w0oSxOhRG6kE9B868aoYVQ==",
- "DJUDGQ0J32dF1kfItyxALg==",
- "34/ab69lPkuAKt6WBxJPpA==",
- "25jH4C9apgqWZGZP15lM6Q==",
- "GxvwleSaSwILD1pG9k9buA==",
- "YRAMt2ArEINo83ms6AqJ0A==",
- "15HyTJNoMYzi3XCkeU5Z7A==",
- "/SqjXGD+TKC90uz1vsjqUw==",
- "karhKOknkhtg/LSFo9BGRA==",
- "+tD1d0t3vfJvc1hUAvTT4Q==",
- "rkaKbtlnyVr53D0rexLqdQ==",
- "fAugw4rtnXzzRXfC1wRgOQ==",
- "RgxoepF/XOwIsGat5r5HpQ==",
- "Y49/EnzVz3ugXCYxFjFN7g==",
- "tHMyzBm/2wNDw7TeNeujbg==",
- "LlqzYV4uZpiJy4ORWPSekA==",
- "M3Huar7/ded9OGgDwJhZgw==",
- "QkNNATSx/PJ1XjgZyTtkUQ==",
- "skVw0v6Wx00sfHAScPK1Bw==",
- "v1gsIvg+C68T9wixMzL2sQ==",
- "hDL75EXhl7BaYnAxkoGwbw==",
- "tReG97snx2ESpXbfllCL7Q==",
- "EiZBXR15dT1TMrkgkzmkvw==",
- "5hRHirfD90/sdp0ILJQU8A==",
- "rabElvtYtG0jW6dxAOHofg==",
- "JpxoTRKWN+SEeBQ453R1YQ==",
- "Faz4Lm0cpjvF0IjVkHiZMg==",
- "jGErFAIoXx+50KFpVIGZiA==",
- "5GzBkduKpUX7u1uwtYIFug==",
- "cRBe0J9/KWRX19N2vPkCiw==",
- "t/7g8t4Kr3/+SCnOn3XFWQ==",
- "sd08c6jUXs5/hxND0fBkPA==",
- "nTxKpqIdnHNdpDk7Dx3TEg==",
- "5l+RALcce+lTDnmXI+Wqqg==",
- "pzJ4QmEBGRNiiX6z0xHh8g==",
- "Vfl3YbqR6JRR7SIdsUA/vA==",
- "cgfhOdB376a4GAcuACADvA==",
- "inAefsQM6tiIhQCMtcPcyA==",
- "FTSULGL8CMhmcc7Cyf/X8A==",
- "9XSWpaZyHEy7V/tuw5uZEw==",
- "+VtM1opKlgb/jrCwc4YjFA==",
- "oF46xheuI/NUxUOnOttzvA==",
- "Qy+lvhDbJCumr6kiPLd1oA==",
- "swps7UEKpIbVBJ9SnPK3zQ==",
- "b7wyIiJvJs+29QePxsdWtQ==",
- "x3iDZxYyuHtG/9rNW5HMYg==",
- "r1dx1g5UOksywvOaQTamfA==",
- "KvVF3Si/fr4JQtr7jCJiog==",
- "spvZ7hhtG5QY7JXs96lBUg==",
- "ECL8mA5B6CswyDH6yJ4hVw==",
- "7Uu+YsdS69dMSDYUr6vTag==",
- "Rnm9pSvQRRbkHpOijraLZw==",
- "aQJqpnXdzqNSFhMn3EJA2Q==",
- "TctnXpd7Wd5ZXKMnOFHAQA==",
- "+lPqG8l6mf2FWVGWflyF/g==",
- "mPmnmL2oRRJmKYjQ6TfN3g==",
- "fyXFcT5ZCawDBg74n1WSpg==",
- "uq5Zrxq10pO1HoPxReT5og==",
- "3eoCsOKXY8RDrHSdlXqmrA==",
- "9nQv2BFG56xsHViN5UpHYw==",
- "RtP/nJgy/ItyuDrpBbAotg==",
- "5E/drRptfHmBhJ7qplujGg==",
- "cUxyZvoqXbQ0a/0I9s6Zbg==",
- "womzqSigwEF30V422YmxKw==",
- "FPvZqDfN8dTFHLVOuYEbUA==",
- "YZMXx+scKXp/v9GaJjb1bA==",
- "bjURu5MRsNIZavG5HV0eZw==",
- "iY0C9uSMEOn8ikT+J7+/Eg==",
- "aXkD6BzsdkMEv7A+eYqQQQ==",
- "dOcOfEDGHYG2kgmrglDkPw==",
- "c7GjtY05Mh+cp6SNuWY3Ig==",
- "lM1uY1oVncHXNzKs/cCEtQ==",
- "7jXnQJkutLsi+r9aYmrMxw==",
- "NgrugWWduj2qdWnEQf9dLA==",
- "faYjmy/yn5iXdS28QCIdWw==",
- "68XbaOvIZpCGb4G1gaKErA==",
- "Yi67HkOLtGYXeL7WD4GPrA==",
- "Puo8gXuUkwcoQViaXwkdSQ==",
- "L202Et5aZh60Vl20LTKNFg==",
- "4agAzQ5+dnTmLZEjsZs26g==",
- "LegGM1ft8Y7Ka3CUxpObvg==",
- "KRdILc1QDOpow5im/qY+Kw==",
- "peMW+rpwmXrSwplVuB/gTA==",
- "Pic1ncr+Zn6wv75zjAdzQA==",
- "ilSPlWYbiPzIC13vQUBlOw==",
- "GUlDufLoTalBqrG/h3mZ6w==",
- "5twANNlT57T9BG4r2D9+Hw==",
- "ENrnM8HlMi+5y8Hsu4Pn4A==",
- "K/DzpLEbz1MpRjA6qyYn4Q==",
- "yN1cHJRHDXoFxFZacL6wsw==",
- "Rc6r+KqIePH+dnj1aNYCsQ==",
- "8u/z5htgqXVU5Dqwd9whJQ==",
- "jV575O42EYoqDNxCm9643Q==",
- "xCxGo0h3lS8N6X+ivKfpjA==",
- "us+2nfpj2gjI7s14Hw0gmA==",
- "bp90A/rbESwVU7eh9xRTfQ==",
- "5QtMXzbTafvKDQOWZP7M8w==",
- "1gFCxPLjQlQGKmSGmHwmJQ==",
- "m+/dnOIe6SaIFhfvg+ybDg==",
- "9Dcg87+RPq9U+swRg4dH3Q==",
- "mnjbL7WFmrWp0RUqS8AMGA==",
- "/0e0E+NFmq8GeE5+y2Gekw==",
- "y11mbpHHtka9Ep8cr2nEvQ==",
- "GdmjRyliw+W21Q+dHO4CWA==",
- "X65wWQTpkg756V/Nfn92kQ==",
- "xj06KvacQOxRSofbhzBNgA==",
- "nVDxVhaa2o38gd1XJgE3aw==",
- "4IV+JOGXrltpkQamBRXMgA==",
- "jIfp8LqaYXT88r/K3a8gNw==",
- "vhT4dDtbMFVyevS6yCGy0g==",
- "zMs7/x8hDt8xj2FFc5+6vA==",
- "1J7u2N62JGb2VrnCRlJIrw==",
- "3hJs9P/RRxB0CO4q0Icb+g==",
- "ZpuVY1ZyoKD3hqosdsfT6Q==",
- "6KIM7C7eWgxZtqZboiJvZQ==",
- "vtb6fdqirkuUkqITAmXTlw==",
- "C/rEVr22mw2u/1dwUx9VTg==",
- "NrY4Q5C67haCWLK8HXHq9g==",
- "X9qvEftCEFWX3gBU5hXy+Q==",
- "0zgw7xNB3xVGaH48TyxaNQ==",
- "g7J9Jy/PJrAGRgVdvA+bEg==",
- "9zb+anAyZVBzuU9rW4cJtg==",
- "6Zc5FzT/m0YIjxEPYA6zDQ==",
- "R2YPNlvCbVK0EodTR7czIw==",
- "gsI6EGgXMtDu+1u364A8mw==",
- "Bg2wBFb1/xaxeEiHfBHX+A==",
- "64aapfVI6dV3LpTK56KZlg==",
- "HdgcJU0W3yVnH69VYStmug==",
- "qTDCcv+LK3JPFB/++t66IQ==",
- "P0HEIXMnAmbvq+QYREwFzw==",
- "aaU7CAmtyE35jNKTkyXOkg==",
- "r9G97WKDiQ48qJHP9LBRNg==",
- "8mPgQhYVDn8KshDDvvf5SA==",
- "GCQiiOLDguXLiYwuLcFPsA==",
- "R2Use39If2C0FVBP7KDerA==",
- "23C4eh3yBb5n/RNZeTyJkA==",
- "2QQtKtBAm2AjJ5c0WQ6BQA==",
- "Qc+XYy2qyWJ5VVwd2PExbw==",
- "zJ7ScHNxr2leCDNNcuDApA==",
- "vFtC0B2oe1gck28JOM1dyg==",
- "bLEntCrCHFy9pg3T3gbBzg==",
- "G3PmmPGHaWHpPW30xQgm3Q==",
- "me61ST+JrXM5k3/a11gRAA==",
- "+LJYVZl1iPrdMU3L5+nxZw==",
- "CLPzjXKGGpJ0VrkSJp7wPQ==",
- "Pc+u0MAzp4lndTz4m6oQ5w==",
- "cwBNvZc0u4bGABo88YUsVQ==",
- "q7m/EtZySBjZNBjQ5m1hKw==",
- "8ZBiwr842ZMKphlqmNngHw==",
- "LMCZqd3UoF/kHHwzTdj7Tw==",
- "0ODJyWKJSfObo+FNdRQkkA==",
- "ViweSJuNWbx5Lc49ETEs/A==",
- "x+8rwkqKCv0juoT5m1A4eg==",
- "pxuSWn1u+bHtRjyh2Z8veA==",
- "GKzs8mlnQQc58CyOBTlfIg==",
- "Owg8qCpjZa+PmbhZew6/sw==",
- "YLz+HA6qIneP+4naavq44Q==",
- "9ajIS45NTicqRANzRhDWFA==",
- "DjeSrUoWW2QAZOAybeLGJg==",
- "qxALQrqHoDq9d91nU0DckA==",
- "yPIeWcW8+3HjDagegrN8bw==",
- "ocpLRASvTgqfkY20YlVFHQ==",
- "RuLeQHP1wHsxhdmYMcgtrQ==",
- "3WwITQML938W9+MUM56a3A==",
- "ZbLVNTQSVZQWTNgC4ZGfQg==",
- "X6Ln4si8G5aKar52ZH/FEQ==",
- "+gbitI/gpxebN/rK7qj8Fw==",
- "7cnUHeaPO8txZGGWHL9tKg==",
- "epY+dsm5EMoXnZCnO4WSHw==",
- "nf8x+F03kOpMhsCSUWEhVg==",
- "VE4sLM5bKlLdk85sslxiLQ==",
- "Hs3vUOOs2TWQdQZHs+FaQQ==",
- "hkOBNoHbno2iNR7t3/d4vg==",
- "Ar9N1VYgE7riwmcrM3bA2Q==",
- "SbMjjI8/P8B9a9H2G0wHEQ==",
- "tU31r8zla146sqczdKXufg==",
- "tFmWYH82I3zb+ymk5dhepA==",
- "XHjrTLXkm/bBY/BewmJcCQ==",
- "FV/D5uSco+Iz8L+5t7E8SA==",
- "yKLLiqzxfrCsr6+Rm6kx1Q==",
- "B6reUwMkQFaCHb9BYZExpw==",
- "5jyuDp82Fux+B0+zlx8EXw==",
- "WGKFTWJac8uehn3N59yHJw==",
- "JQf9UmutPh3tAnu7FDk3nA==",
- "hv5GrLEIjPb4bGOi8RSO0w==",
- "p3V7NfveB6cNxFW7+XQNeQ==",
- "DinJuuBX9OKsK5fUtcaTcQ==",
- "UEMwF4kwgIGxGT4jrBhMPQ==",
- "Y78dviyBS3Jq9zoRD5sZtQ==",
- "zbjXhZaeyMfdTb2zxvmRMg==",
- "kydoXVaNcx1peR5g6i588g==",
- "M2suCoFHJ5fh9oKEpUG3xA==",
- "/VnKh/NDv7y/bfO6CWsLaQ==",
- "S+b37XhKRm8cDwRb1gSsKQ==",
- "jz7QlwxCIzysP39Cgro8jg==",
- "IjmLaf3stWDAwvjzNbJpQA==",
- "cHSj5dpQ04h/WyefjABfmQ==",
- "+gO0bg8LY+py2dLM1sM7Ag==",
- "fSANOaHD0Koaqg7AoieY9A==",
- "vqYHQ3MnHrAIAr1QHwfIag==",
- "Uh1mvZNGehK1AaI4a1auKQ==",
- "HCbHUfsTDl6+bxPjT57lrA==",
- "S7Vjy/gOWp0HozPP1RUOZw==",
- "KPh6TwYpspne4KZA6NyMbw==",
- "cfh5VZFmIqJH/bKboDvtlA==",
- "H1zH9I8RwfEy5DGz3z+dHw==",
- "2ksediOVrh4asSBxKcudTg==",
- "+jVN/3ASc2O44sX6ab8/cg==",
- "uvKYnKE01D5r7kR9UQyo5A==",
- "BB9PTlwKAWkExt3kKC/Wog==",
- "yqQPU4jT9XvRABZgNQXjgg==",
- "6v3eTZtPYBfKFSjfOo2UaA==",
- "49z/15Nx9Og7dN9ebVqIzg==",
- "VjclDY8HN4fSpB263jsEiQ==",
- "vSKsa0JhLCe9QFZKkcj58Q==",
- "PolhKCedOsplEcaX4hQ0YQ==",
- "D0Qt9sRlMaPnOv1xaq+XUg==",
- "gBgJF0PiGEfcUnXF0RO7/w==",
- "sC11Rf/mau3FG5SnON4+vQ==",
- "rKb3TBM4EPx/RErFOFVCnQ==",
- "+n0K7OB2ItzhySZ4rhUrMg==",
- "Epm0d/DvXkOFeM4hoPCBrg==",
- "K8PVQhEJCEH1ghwOdztjRw==",
- "xjA21QjNdThLW3VV7SCnrg==",
- "nE72uQToQFVLOzcu/nMjww==",
- "2Hc5oyl0AYRy2VzcDKy+VA==",
- "Y7XpxIwsGK3Lm/7jX/rRmg==",
- "MK7AqlJIGqK2+K5mCvMXRQ==",
- "mXycPfF5zOvcj1p4hnikWw==",
- "V1fvtnJ0L3sluj9nI5KzRw==",
- "TahqPgS7kEg+y6Df0HBASw==",
- "EKU3OVlT4b/8j3MTBqpMNg==",
- "EdvIAKdRAXj7e42mMlFOGQ==",
- "uPm+cF4Jq08S5pQhYFjU8A==",
- "CnIwpRVC2URVfoiymnsdYQ==",
- "wyx5mnUMgP5wjykjAfTO7w==",
- "OwIGvTh8FPFqa4ijNkguAw==",
- "4ID0PHTzIMZz2rQqDGBVfA==",
- "rlXt6zKE7DswUl0oWGOQUQ==",
- "4NP8EFFJyPcuQKnBSxzKgQ==",
- "bJgsuw29cO2WozqsGZxl7w==",
- "b3q8kjHJPj9DWrz3yNgwjQ==",
- "QGYFMpkv37CS2wmyp42ppg==",
- "Kzs+/IZJO8v4uIv9mlyJ2Q==",
- "ZJY+hujfd58mTKTdsmHoQQ==",
- "R8FxgXWKBpEVbnl41+tWEw==",
- "+CvLiih/gf2ugXAF+LgWqw==",
- "BDbfe/xa9Mz1lVD82ZYRGA==",
- "Dz90OhYEjpaJ/pxwg1Qxhg==",
- "MLHt6Ak288G0RGhCVaOeqA==",
- "r0QffVKB9OD9yGsOtqzlhA==",
- "hK8KhTFcR06onlIJjTji/Q==",
- "wMum67lfk5E1ohUObJgrOg==",
- "JKmZqz9cUnj6eTsWnFaB0A==",
- "rtJdfki8fG6CB36CADp0QA==",
- "cUyqCa7Oue934riyC17F8g==",
- "y4Y4mSSTw/WrIdRpktc5Hw==",
- "r36kVMpF+9J+sfI3GeGqow==",
- "ydVj2odhergi+2zGUwK4/A==",
- "J2NFyb8cXEpZyxWDthYQiA==",
- "qYuo5vY8V3tZx41Kh9/4Dw==",
- "jrfRznO0nAz6tZM1mHOKIA==",
- "JSr/lqDej81xqUvd/O2s7w==",
- "vHGjRRSlZHJIliCwIkCAmQ==",
- "sQAxqWXeiu/Su0pnnXgI9A==",
- "xPe76nHyHmald6kmMQsKdg==",
- "50jASqzGm4VyHJbFv8qVRA==",
- "uuiJ+yB7JLDh2ulthM0mjg==",
- "TI90EuS/bHq/CAlX32UFXg==",
- "JgxNrUlL8wutG04ogKFPvw==",
- "aMa1yVA71/w6Uf1Szc9rMA==",
- "k/Aou2Jmyh8Bu3k8/+ndsQ==",
- "iANKiuMqWzrHSk9nbPe3bQ==",
- "7GgNLBppgAKcgJCDSsRqOQ==",
- "bzVeU2qM9zHuzf7cVIsSZw==",
- "rkeLYwMZ1/pW2EmIibALfA==",
- "91+Yms6Oy/rP0rVjha5z9w==",
- "JgXSPXDqaS1G9NqmJXZG0A==",
- "ZzduJxTnXLD9EPKMn1LI4Q==",
- "6W79FmpUN1ByNtv5IEXY4w==",
- "Y1Nm3omeWX2MXaCjDDYnWQ==",
- "ejfikwrSPMqEHjZAk3DMkA==",
- "WNfDNaWUOqABQ6c6kR+eyw==",
- "4BkqgraeXY7yaI1FE07Evw==",
- "AjHz9GkRTFPjrqBokCDzFw==",
- "T/6gSz2HwWJDFIVrmcm8Ug==",
- "VWy9lB5t4fNCp4O/4n8S4w==",
- "/FdZzSprPnNDPwbhV1C0Cg==",
- "LUWxfy4lfgB5wUrqCOUisw==",
- "r1VGXWeqGeGbfKjigaAS+Q==",
- "ztULoqHvCOE6qV7ocqa4/w==",
- "QCpzCTReHxGm5lcLsgwPCA==",
- "Hst3yfyTB7yBUinvVzYROQ==",
- "gf1Ypna/Tt+TZ08Y+GcvGg==",
- "3rbml1D0gfXnwOs5jRZ3gA==",
- "2vm7g3rk1ACJOTCXkLB3zA==",
- "11FE2kknwYi2Qu0JUKMn3A==",
- "1b2uf+CdVjufqiVpUShvHw==",
- "0a4SafpDIe8V4FlFWYkMHw==",
- "7btpMFgeGkUsiTtsmNxGQA==",
- "dUx1REyXKiDFAABooqrKEA==",
- "knYKU74onR6NkGVjQLezZg==",
- "Scto+9TWxj1eZgvNKo+a9A==",
- "cvZT1pvNbIL8TWg+SoTZdA==",
- "1nXByug2eKq0kR3H3VjnWQ==",
- "tG+rpfJBXlyGXxTmkceiKA==",
- "7W9aF7dxnL+E8lbS/F7brg==",
- "8vr+ERVrM99dp+IGnCWDGQ==",
- "oFNMOKbQXcydxnp8fUNOHw==",
- "uJZGw3IY2nCcdVeWW1geNQ==",
- "q6LG0VzO1oxiogAAU63hyg==",
- "f0H/AFSx2KLZi9kVx5BAZg==",
- "1RQZ2pWSxT+RKyhBigtSFg==",
- "scCQPl0em2Zmv/RQYar60g==",
- "A2ODff+ImIkreJtDPUVrlg==",
- "vRgkZZGVN7YZrlml0vxrKA==",
- "68jPYo3znYoU4uWI7FH3/g==",
- "iJ2nT8w8LuK11IXYqBK+YA==",
- "54XELlPm8gBvx8D5bN3aUg==",
- "PTAm/jGkie7OlgVOvPKpaA==",
- "v7BrkRmK0FfWSHunTRHQFQ==",
- "dVh/XMTUIx1nYN4q1iH1bA==",
- "TSGL3iQYUgVg/O9SBKP9EA==",
- "wTO49YX/ePHMWtcoxUAHpw==",
- "bMb1ia0rElr2ZpZVhva0Jw==",
- "sNmW2b2Ud7dZi3qOF8O8EQ==",
- "3djRJvkZk9O2bZeUTe+7xQ==",
- "I9KNZC1tijiG1T72C4cVqQ==",
- "sQzCwNDlRsSH7iB9cTbBcg==",
- "mk1CKDah7EzDJEdhL22B7w==",
- "lON3WM0uMJ30F8poBMvAjQ==",
- "88PNi9+yn3Bp4/upgxtWGA==",
- "C+Ssp+v1r+00+qiTy2d7kA==",
- "11U5XEwfMI7avx014LfC8g==",
- "xsf0m31Am0W9eLhopAkfnA==",
- "d13Rj3NJdcat0K/kxlHLFw==",
- "UP7NXAE0uxHRXUAWPhto0w==",
- "ZKXxq9yr7NGBOHidht34uQ==",
- "Fd2fYFs8vtjws2kx1gf6Rw==",
- "ojf6uL85EuEYgLvHoGhUrw==",
- "KjnL3x+56r3M2pDj1pPihA==",
- "WdCWezJU4JK43EOZ9YHVdg==",
- "/jH6imhTPZ/tHI4gYz2+HA==",
- "+OLntmlsMBBYPREPnS6iVw==",
- "5lfLJAk1L3QzGMML3fOuSw==",
- "AZs3v4KJYxdi8T1gjVjI2Q==",
- "7pkUY2UzSbGnwLvyRrbxfA==",
- "BjfOelfc1IBgmUxMJFjlbQ==",
- "TcGhAJHRr7eMwGeFgpFBhg==",
- "Y7iDCWYrO1coopM3RZWIPg==",
- "mnalaO6xJucSiZ0+99r3Cg==",
- "plXHHzA8X9QGwWzlJxhLRw==",
- "Zqd6+81TwYuiIgLrToFOTQ==",
- "1Pmnur6TbZ9cmemvu0+dSA==",
- "OaNpzwshdHUZMphQXa6i8w==",
- "WKehT4nGF2T7aKuzABDMlA==",
- "4LvQSicqsgxQFWauqlcEjw==",
- "BMZB1FwvAuEqyrd0rZrEzw==",
- "YfbfE3WyYOW7083Y8sGfwQ==",
- "46FCwqh+eMkf+czjhjworw==",
- "734u4Y1R3u7UNUnD+wWUoA==",
- "yf06Slv9l3IZEjVqvxP2aA==",
- "bIk7Fa6SW7X18hfDjTKowg==",
- "DnF6TYSJxlc+cwdfevLYng==",
- "ionqS0piAOY2LeSReAz4zg==",
- "hlMumZ7RJFpILuKs09ABtw==",
- "NjeDgQ1nzH1XGRnLNqCmSg==",
- "o7y4zQXQAryST2cak4gVbw==",
- "29EybnMEO95Ng4l/qK4NWQ==",
- "udU65VtsvJspYmamiOsgXw==",
- "v1AWe5qb5y3vSKFb7ADeEw==",
- "wK6Srd83eLigZ11Q20XGrg==",
- "GmC+0rNDMIR+YbUudoNUXw==",
- "W4utAK3ws0zjiba/3i91YA==",
- "MlKWxeEh8404vXenBLq4bw==",
- "Gdf4VEDLBrKJNQ8qzDsIyw==",
- "Z9bDWIgcq6XwMoU2ECDR5Q==",
- "VIkS30v268x+M1GCcq/A8A==",
- "iPwX3SbbG9ez9HoHsrHbKw==",
- "yKrsKX4/1B1C0TyvciNz5w==",
- "BophnnMszW5o+ywgb+3Qbw==",
- "eJLrGwPRa6NgWiOrw1pA7w==",
- "eV+RwWPiGEB+76bqvw+hbA==",
- "oad5SwflzN0vfNcyEyF4EA==",
- "Uw6Iw+TP9ZdZGm2b/DAmkg==",
- "9qWLbRLXWIBJUXYjYhY2pg==",
- "dxWv00FN/2Cgmgq9U3NVDQ==",
- "AX1HxQKXD12Yv5HWi39aPQ==",
- "J0NauydfKsACUUEpMhQg8A==",
- "mxug34EekabLz0JynutfBg==",
- "bNq/hj0Cjt4lkLQeVxDVdQ==",
- "nW3zZshjZEoM8KVJoVfnuQ==",
- "ghp8sWGKWw20S/z1tbTxFg==",
- "S4rFuiKLFKZ+cL7ldiTwpg==",
- "8ZqmPJDnQSOFXvNMRQYG2Q==",
- "6XYqR2WvDzx4fWO7BIOTjA==",
- "Uo+FIhw1mfjF6/M8cE1c/Q==",
- "bsHIShcLS134C+dTxFQHyA==",
- "19yQHaBemtlgo2QkU5M6jQ==",
- "sWLcS+m4aWk31BiBF+vfJQ==",
- "BlCgDd7EYDIqnoAiKOXX6Q==",
- "MrxR3cJaDHp0t3jQNThEyg==",
- "cMo6l1EQESx1rIo+R4Vogg==",
- "VOvrzqiZ1EHw+ZzzTWtpsw==",
- "1/ZheMsbojazxt31j/l3iA==",
- "0QxPAqRF8inBuFEEzNmLjA==",
- "UXUNYEOffgW3AdBs7zTMFA==",
- "lOPJhHqCtMRFZfWMX/vFZQ==",
- "rXSbbRABEf4Ymtda45w8Fw==",
- "jfegbZSZWkDoPulFomVntA==",
- "hfcH5Az2M7rp+EjtVpPwsg==",
- "VsXEBIaMkVftkxt1kIh7TA==",
- "M20iX2sUfw5SXaZLZYlTaA==",
- "VUDsc9RMS1fSM43c+Jo9dQ==",
- "itPtn+JaO4i7wz2wOPOmDQ==",
- "rCxoo4TP/+fupXMuIM0sDA==",
- "cSHSg9xJz/3F6kc+hKXkwg==",
- "b4BoZmzVErvuynxirLxn0w==",
- "e4B3HmWjW+6hQzcOLru6Xg==",
- "lTE6u9G/RzvmbuAzq2J2/Q==",
- "897ptlztTjr7yk+pk8MT0Q==",
- "jd6IpPJwOJW1otHKtKZ5Gw==",
- "b4aFwwcWMXsSdgS1AdFOXA==",
- "FltEN+7NKvzt+XAktHpfHA==",
- "ZyDh3vCQWzS5DI1zSasXWA==",
- "kcJ1acgBv6FtUhV8KuWoow==",
- "zgEyxj/sCs63O98sZS94Yw==",
- "/kGxvyEokQsVz0xlKzCn2A==",
- "cxqHS4UbPolcYUwMMzgoOA==",
- "62RHCbpGU8Hb+Ubn+SCTBg==",
- "ePlsM/iOMme2jEUYwi15ng==",
- "0fN+eHlbRS6mVZBbH/B9FQ==",
- "k0XIjxp2vFG7sTrKcfAihA==",
- "0rfG4gRugAwVP0i3AGVxxg==",
- "M98hjSxCwvZ27aBaJTGozQ==",
- "kzGNkWh3fz27cZer4BspUQ==",
- "3CJbrUdW68E3Drhe4ahUnQ==",
- "NGApiVkDSwzO45GT57GDQw==",
- "lMjip5hbCjkD9JQjuhewDg==",
- "GrSbnecYAC3j5gtoKntL0A==",
- "9dbn0Kzwr9adCEfBJh78uQ==",
- "64QzHOYX0A9++FqRzZRHlQ==",
- "YZt6HwCvdI5DRQqndA/hBQ==",
- "6GXHGF62/+jZ7PfIBlMxZw==",
- "PBULPuFXb6V3Di713n3Gug==",
- "8Cm19vJW8ivhFPy0oQXVNA==",
- "zDSQ3NJuUGkVOlvVCATRwA==",
- "6QAtjOK9enNLRhcVa2iaTg==",
- "v/PshI6JjkL9nojLlMNfhg==",
- "yTgN5xFIdz1MzFS6xMl5uQ==",
- "SCO9nQncEcyVXGCtx30Jdg==",
- "7b0oo4+qphu6HRvJq6qkHQ==",
- "ol9xhVTG9e1wNo50JdZbOA==",
- "hIABph+vhtSF5kkZQtOCTA==",
- "k+IBS52XdOe5/hLp28ufnA==",
- "6HnWgYNKohqhoa1tnjjU3A==",
- "HDxGhvdQwGh0aLRYEGFqnw==",
- "LDuBcL5r3PUuzKKZ9x6Kfw==",
- "HPvYV94ufwiNHEImu4OYvQ==",
- "h2cnQQF2/R3Mq2hWdDdrTg==",
- "nqpKfidczdgrNaAyPi7BOQ==",
- "2ywo4t5PPSVUCWDwUlOVwQ==",
- "jZMDIu95ITTjaUX0pk4V5g==",
- "bA2kaTpeXflTElTnQRp6GQ==",
- "lwYQm2ynA3ik2gE1m11IEg==",
- "5ugVOraop5P5z5XLlYPJyQ==",
- "l2NppPcweAtmA1V2CNdk2Q==",
- "DbWQI3H2tcJsVJThszfHGA==",
- "H6HPFAcdHFbQUNrYnB74dA==",
- "H1NJEI+fvOQbI51kaNQQjQ==",
- "53UccFNzMi9mKmdeD82vAw==",
- "lffapwUUgaQOIqLz2QPbAg==",
- "rSvhrHyIlnIBlfNJqemEbw==",
- "BLJk9wA88z6e0IQNrWJIVw==",
- "5m1ijXEW+4RTNGZsDA/rxQ==",
- "GG8a3BlwGrYIwZH9j3cnPA==",
- "HhBHt5lQauNl7EZXpsDHJA==",
- "/XjB6c5fxFGcKVAQ4o+OMw==",
- "+tuUmnRDRWVLA+1k0dcUvg==",
- "SM7E98MyViSSS9G0Pwzwyw==",
- "c5q/8n7Oeffv3B1snHM/lA==",
- "kwlAQhR2jPMmfLTAwcmoxw==",
- "0b/xj6fd0x+aB8EB0LC4SA==",
- "S8jlvuYuankCnvIvMVMzmg==",
- "kZkmDatUOdIqs7GzH3nI1A==",
- "obW3kzv2KBvuckU7F+tfjA==",
- "pa8nkpAAzDKUldWjIvYMYg==",
- "m+eh+ZqS74w2q0vejBkjaw==",
- "LcoJBEPTlSsQwfuoKQUxEw==",
- "KO2XVYyNZadcQv8aCNn5JA==",
- "uvzmRcvgepW6mZbMfYgcNw==",
- "KhUT2buOXavGCpcDOcbOYg==",
- "fo3JL+2kPgDWfP+CCrFlFw==",
- "wIfvvLKC61gOpsddUFjVog==",
- "SPHU6ES1WVm0Mu2LB+YjrA==",
- "LWWfRqgtph1XrpxF4N64TA==",
- "LCvz/h9hbouXCmdWDPGWqg==",
- "PXC6ZpdMH0ATis/jGW12iA==",
- "z920R8eahJPiTsifrPYdxA==",
- "GIHKW6plyLra0BmMOurFgA==",
- "k6OmSlaSZ5CB0i7SD9LczQ==",
- "YZ39RIXpeLAhyMgmW2vfkQ==",
- "bs2QG8yYWxPzhtyMqO6u3A==",
- "pKaTI+TfcV3p/sxbd2e7YQ==",
- "xWYecfzAtXT9WyQ8NYY/hw==",
- "Fz8EI+ZpYlbcttSHs5PfpA==",
- "wfwuxn+Vja1DNwiDwL2pcQ==",
- "wux5Y8AipBnc5tJapTzgEQ==",
- "U+oTpcjhc0E+6UjP11OE/Q==",
- "yTVJKBn72RjakMBXDoBKHg==",
- "0TxcYwG72dT7Tg+eG8pP1w==",
- "imZ+mwiT22sW2M9alcUFfg==",
- "CkDIoAFLlIRXra78bxT/ZA==",
- "4qMSNAxichi3ori/pR+o0w==",
- "zNLlWGW/aKBhUwQZ4DZWoQ==",
- "D31ZticrjGWAO45l5hFh7A==",
- "HdXg64DBy5WcL5fRRiUVOg==",
- "yhI5jHlfFJxu4eV5VJO2zQ==",
- "e9GqAEnk8XI5ix6kJuieNQ==",
- "EC0+iUdSZvmIEzipXgj7Gg==",
- "chwv4+xbEAa93PHg8q9zgQ==",
- "B1VVUbl8pU0Phyl1RYrmBg==",
- "A+DLpIlYyCb9DaarpLN76g==",
- "wHA+D5cObfV3kGORCdEknw==",
- "+Mp+JIyO0XC5urvMyi3wvQ==",
- "vUE8Iw3NyWXURpXyoNJdaw==",
- "ParhxI6RtLETBSwB0vwChQ==",
- "NxSdT2+MUkQN49pyNO2bJw==",
- "JSyhTcHLTfzHsPrxJyiVrA==",
- "PAlx9+U+yQCAc5Fi0BOG0w==",
- "W/0s1x3Qm+wN8DhROk6FrQ==",
- "L3Jt5dHQpWQk74IAuDOL8g==",
- "VWb8U4jF/Ic0+wpoXi/y/g==",
- "1wBuHqS1ciup31WTfm3NPg==",
- "BDNM1u/9mefjuW1YM2DuBg==",
- "SDi5+FoP9bMyKYp+vVv1XA==",
- "23d9B9Gz5kUOi1I//EYsSQ==",
- "/a9O7kWeXa0le45ab3+nVw==",
- "PcoVtZrS1x1Q+6nfm4f80w==",
- "A6TLWhipfymkjPYq8kaoDQ==",
- "lzUQ1o7JAbdJYpmEqi6KnQ==",
- "/2jGyMekNu7U136K+2N3Jg==",
- "ZItMIn1vhGqAlpDHclg0Ig==",
- "Ee4A3lTMLQ7iDQ7b8QP8Qg==",
- "bO55S58bqDiRWXSAIUGJKw==",
- "zeHF6fdeqcOId3fRUGscRw==",
- "BxsDnI8jXr4lBwDbyHaYXw==",
- "ylA6sU7Kaf9fMNIx1+sIlw==",
- "ZWXfE3uGU91WpPMGyknmqw==",
- "f1+fHgR5rDPsCZOzqrHM7Q==",
- "8VqeoQELbCs232+Mu+HblA==",
- "beSrliUu0BOadCWmx+yZyA==",
- "NQVQfN3nIg9ipHiFh4BvfQ==",
- "4wnUAbPT3AHRJrPwTTEjyw==",
- "/cdR1i5TuQvO+u3Ov3b0KQ==",
- "wtyAZIfhomcHe9dLbYoSvA==",
- "ulpDxLeQnIRPnq6oaah2AA==",
- "pdPwUHauXOowaq9hpL2yFw==",
- "1+A9FCGP3bZhk6gU3LQtNg==",
- "raYifKqev8pASjjuV+UTKQ==",
- "+OERSmo7OQUUjudkccSMOA==",
- "FeRovookFQIsXmHXUJhGOw==",
- "USCvrMEm/Wqeu9oX6FrgcQ==",
- "kly/2kE4/7ffbO34WTgoGg==",
- "IindlAnepkazs5DssBCPhA==",
- "Bq82MoMcDjIo/exqd/6UoA==",
- "ocvA1/NbyxM0hanwwY6EiA==",
- "rtd6mqFgGe98mqO0pFGbSw==",
- "nvLEpj6ZZF3LWH3wUB6lKg==",
- "AGd0rcLnQ0n+meYyJur1Pw==",
- "wI7JrSPQwYHpv2lRsQu9nQ==",
- "OnmvXbyT2BYsSDJYZhLScA==",
- "CmBf5qchS1V3C2mS6Rl4bw==",
- "TafM7nTE5d+tBpRCsb8TjQ==",
- "wxkb8evGEaGf/rg/1XUWiA==",
- "y1J+o6DC2sETFsySgpDZyA==",
- "SVLHWPCCH7GPVCF7QApPbw==",
- "HMWOlMmzocOIiJ7yG1YaDQ==",
- "DJmrmNRKARzsTCKSMLmcNA==",
- "/XC/FmMIOdhMTPqmy4DfUA==",
- "63OTPaKM0xCfJOy9EDto+Q==",
- "PxReytUUn/BbxYTFMu1r2Q==",
- "WjDqf1LyFyhdd8qkwWk+MA==",
- "/DiUApY7cVp5W9o24rkgRA==",
- "alJtvTAD7dH/zss/Ek1DMQ==",
- "xLm/bJBonpTs0PwsF0DvRg==",
- "eAOEgF5N80A/oDVnlZYRAw==",
- "LqgzKxbI6WTMz0AMIDJR5w==",
- "MJ1FuK8PXcmnBAG9meU84A==",
- "JLq/DrW2f26NaRwfpDXIEA==",
- "fsrX00onlGvfsuiCc35pGg==",
- "tXVb5f90k9l3e1oK2NGXog==",
- "1JRgSHnfAQFQtSkFTttkqQ==",
- "B0TaUQ6dKhPfSc5V/MjLEQ==",
- "nkbLVLvh3ClKED97+nH+7Q==",
- "avFTp3rS6z5zxQUZQuaBHQ==",
- "lNF8PvUIN02NattcGi5u4g==",
- "bBEndaOStXBpAK79FrgHaw==",
- "dM9up4vKQV5LeX82j//1jQ==",
- "4WO6eT0Rh6sokb29zSJQnQ==",
- "RHKCMAqrPjvUYt13BVcmvw==",
- "Ju4YwtPw+MKzpbC0wJsZow==",
- "tzV7ixFH37ze4zuLILTlfA==",
- "oPlhC4ebXdkIDazeMSn1fQ==",
- "5pje7qyz8BRsa8U4a4rmoA==",
- "7E6V6/zSjbtqraG7Umj+Jw==",
- "8QK7emHS6rAcAF5QQemW/A==",
- "LhqRc9oewY4XaaXTcnXIHQ==",
- "p/7qM5+Lwzw1/lIPY91YxQ==",
- "fy54Milpa7KZH/zgrDmMXQ==",
- "LyPXOoOPMieqINtX8C9Zag==",
- "aD4QvtMlr8Lk/zZgZ6zIMg==",
- "dsueq9eygFXILDC7ZpamuA==",
- "+mJLK+6qq8xFv7O/mbILTw==",
- "nHUpYmfV59fe3RWaXhPs3Q==",
- "VbCoGr8apEcN7xfdaVwVXw==",
- "/2Chaw2M9DzsadFFkCu6WQ==",
- "rKAQxu80Q8g1EEhW5Wh8tg==",
- "RJJqFMeiCZHdsqs72J17MQ==",
- "GF2yvI9UWf1WY7V7HXmKPA==",
- "JyIDGL1m/w+pQDOyyeYupA==",
- "wR2Gxb07nkaPcZHlEjr8iA==",
- "PbDVq2Iw1eeM8c2o/XYdTA==",
- "BL3buzSCV78rCXNEhUhuKQ==",
- "i42XumprV/aDT5R0HcmfIQ==",
- "DuEKxykezAvyaFO2/5ZmKQ==",
- "6ACvJNfryPSjGOK39ov8Qg==",
- "YaUKOTyByjUvp1XaoLiW5Q==",
- "jNcMS2zX1iSZN9uYnb2EIg==",
- "VRnx+kd6VdxChwsfbo1oeQ==",
- "4Qinl7cWmVeLJgah8bcNkw==",
- "Fiy3hkcGZQjNKSQP9vRqyA==",
- "HaSc7MZphCMysTy2JbTJkw==",
- "VhYGC8KYe5Up+UJ2OTLKUw==",
- "K2gk9zWGd0lJFRMQ1AjQ/Q==",
- "NfxVYc3RNWZwzh2RmfXpiA==",
- "JGeqHRQpf4No74aCs+YTfA==",
- "7VHlLw20dWck+I8tCEZilA==",
- "V5HKdaTHjA8IzvHNd9C51g==",
- "9TalxEyFgy6hFCM73hgb7Q==",
- "R/y6+JJP8rzz1KITJ4qWBw==",
- "7bM/pn4G7g7Zl6Xf1r62Lg==",
- "CHsFJfsvZkPWDXkA6ZMsDQ==",
- "uXuPA/2KJbb7ZX+NymN3dw==",
- "o+nYS4TqJc6XOiuUzEpC3A==",
- "8N3mhHt29FZDHn1P2WH1wQ==",
- "uZ2gUA74/7Q33tI2TcGQlg==",
- "8B12CamjOGzJDnQ+RkUf4w==",
- "9FdpxlIFu11qIPdO7WC5nw==",
- "G+sGF13VXPH4Ih6XgFEXxg==",
- "y+1I05LDAYJ09tKMs3zW6g==",
- "gnkadeCgjdmLdlu/AjBZJg==",
- "1I+UVx3krrD4NhzO7dgfHQ==",
- "8LNNoHe6rEQyJ0ebl151Mw==",
- "yOE90OHQdyOfrAgwDvn2gA==",
- "ayBGGPEy++biljvGcwIjXA==",
- "o/Y4U6rWfsUCXJ72p5CUGw==",
- "5kvyy902llnYGQdn2Py04w==",
- "6k2cuk0McTThSMW/QRHfjA==",
- "2XrR2hjDEvx8MQpHk9dnjw==",
- "fv/PW8oexJYWf5De30fdLQ==",
- "861mBNvjIkVgkBiocCUj/Q==",
- "NKGY0ANVZ0gnUtzVx1pKSw==",
- "4DIPP/yWRgRuFqVeqIyxMQ==",
- "cgSEbLqqvDsNUyeA3ryJ6Q==",
- "xbBxUP9JyY0wDgHDipBHeg==",
- "c3WVxyC5ZFtzGeQlH5Gw+w==",
- "ZKeTDCboOgCptrjSfgu0xw==",
- "DjHszpS8Dgocv3oQkW/VZQ==",
- "Iqszlv4R49UevjGxIPMhIA==",
- "uChFnF0oCwARhAOz/d47eA==",
- "0egBaMnAf0CQEXf1pCIKnA==",
- "FnVNxl5AFH1AieYru2ZG+A==",
- "2Ct+pLXrK6Ku1f4qehjurQ==",
- "x2nSgcTjA3oGgI8mMgiqjw==",
- "AUGmvZkpkKBry5bHZn4DJA==",
- "x8kRVzohTdhkryvYeMvkMw==",
- "rXfWkabSPN+23Ei1bdxfmQ==",
- "ElTNyMR4Rg8ApKrPw88WPg==",
- "9jxA/t3TQx8dQ+FBsn/YCg==",
- "I07W2eDQwe6DVsm1zHKM8A==",
- "0p1jMr06OyBoXQuSLYN4aQ==",
- "odGhKtO4bDW5R8SYiI5yCg==",
- "5Q/Y2V0iSVTK8HE8JerEig==",
- "Ily2MKoFI1zr5LxBy93EmQ==",
- "8dUcSkd2qnX5lD9B+fUe+Q==",
- "80UE+Ivby3nwplO/HA7cPw==",
- "sS6QcitMPdvUBLiMXkWQkw==",
- "5VY++KiWgo7jXSdFJsPN3A==",
- "aY6B28XdPnuYnbOy9uSP8A==",
- "ZfRlID+pC1Rr4IY14jolMw==",
- "/YuQw7oAF08KDptxJEBS9g==",
- "16d+fhFlgayu3ttKVV/pbg==",
- "8dBIsHMEAk7aoArLZKDZtg==",
- "wRqaDZVHHurp5whOQ1kDbQ==",
- "lFUq6PGk9dBRtUuiEW7Cug==",
- "FoJZ61VrU8i084pAuoWhDQ==",
- "4mig4AMLUw+T/ect9p4CfA==",
- "Po0lhBfiMaXhl+vYh1D8gA==",
- "z9cd+Qj+ueX34Zf3997MNQ==",
- "1dsKN1nG6upj7kKTKuJWsQ==",
- "UtLYUlQJ02oKcjNR3l+ktg==",
- "O538ibsrI4gkE5tfwjxjmg==",
- "G736AX070whraDxChqUrqw==",
- "THs1r8ZEPChSGrrhrNTlsA==",
- "pVG1hL96/+hQ+58rJJy6/A==",
- "1BjsijOzgHt/0i36ZGffoQ==",
- "6rIWazDEWU5WPZHLkqznuQ==",
- "cdWUm6uLNzR/knuj2x75eA==",
- "nsnX3tKkN1elr18E31tXDw==",
- "0fnruVOCxEczscBuv4yL9A==",
- "SVuEYfQ9FGyVMo1672n0Yg==",
- "ZRWyfXyXqAaOEjkzWl949Q==",
- "S2MAIYeDQeJ1pl9vhtYtUg==",
- "vsRNZx4thFFFPneubKq1Fw==",
- "kuWGANwzNRpG4XmY7KjjNg==",
- "i6r+mZfyhZyqlYv56o0H+w==",
- "wqWqe0KRjZlUIrGgEOG9Mg==",
- "t5wh9JGSkQO78QoQoEqvXA==",
- "AGoVLd0QPcXnTedT5T95JQ==",
- "aRrcmH+Ud3mF1vEXcpEm4w==",
- "C65PZm8rZxJ6tTEb6d08Eg==",
- "oAHVGBSJ2cf4dVnb/KEYmw==",
- "BuDVDLl0OGdomEcr+73XhQ==",
- "bLsStF0DDebpO+xulqGNtg==",
- "xukOAM0QVsA72qEy0yku9A==",
- "LpoayYsTO8WLFLCSh2kf2w==",
- "LEVYAE54618FrlXkDN01Kw==",
- "Jm862vBTCYbv/V4T1t46+Q==",
- "X4kdXUuhcUqMSduqhfLpxA==",
- "cLR0Ry4/N5swqga1R6QDMw==",
- "0klouNfZRHFFpdHi4ZR2hA==",
- "JGx8sTyvr4bLREIhSqpFkw==",
- "ZiJ/kJ9GneF3TIEm08lfvQ==",
- "hP7dSa8lLn9KTE/Z0s4GVQ==",
- "600bwlyhcy754W1E6tuyYg==",
- "U49SfOBeqQV9wzsNkboi8Q==",
- "5DDb7fFJQEb3XTc3YyOTjg==",
- "6uT7LZiWjLnnqnnSEW4e/Q==",
- "tq5xUJt8GtjDIh1b48SthQ==",
- "eJFIQh/TR7JriMzYiTw4Sg==",
- "jdRzkUJrWxrqoyNH9paHfQ==",
- "RKVDdE1AkILTFndYWi9wFg==",
- "AEpTVUQhIEJGlXJB6rS26A==",
- "PD+yHtJxZJ2XEvjIPIJHsQ==",
- "dOS+mVCy3rFX9FvpkTxGXA==",
- "lz+SeifYXxamOLs1FsFmSQ==",
- "QTz21WkhpPjfK8YoBrpo+w==",
- "9wUIeSgNN36SFxy8v2unVg==",
- "ash1r2J6B0PUxJe8P0otVQ==",
- "y7yS9x3yshVhMpDbQtfYOQ==",
- "f07bdNVAe9x+cAMdF1bByQ==",
- "N2KovXW14hN/6+iWa1Yv3g==",
- "2DNbXVgesUa7PgYQ4zX5Lw==",
- "WQznrwqvMhUlM3CzmbhAOQ==",
- "FpWDTLTDmkUhH/Sgo+g1Gg==",
- "OVHqwV8oQMC5KSMzd5VemA==",
- "Bv4mNIC72KppYw/nHQxfpQ==",
- "MI+HSMRh8KTW+Afiaxd/Fw==",
- "10OltdxPXOvfatJuwPVKbQ==",
- "y4/HohCJxtt+cT7nLJB08w==",
- "RhcqXY4OsZlVVF7ZlkTeRw==",
- "/mrqas0eDX+sFUNJvCQY8g==",
- "ZIZx4MehWTVXPN9cVQBmyA==",
- "z20AAnvj7WsfJeOu3vemlA==",
- "dL6n/JsK+Iq6UTbQuo/GOw==",
- "rMm9bHK69h0fcMkMdGgeeA==",
- "ftsf2qztw3NC78ep/CZXWQ==",
- "/n1RLTTVpygre1dl36PDwQ==",
- "/FsJYFNe+7UvsSkiotNJEQ==",
- "Yy2pPhITTmkEwoudXizHqQ==",
- "lizovLQxu6L9sbafNQuShQ==",
- "XV5MYe0Q7YMtoBD6/iMdSw==",
- "5jHgQF4SfO/zy9xy9t+9dw==",
- "16iT/jCcPDrJEfi2bE5F+Q==",
- "syeBfQBUmkXNWCZ1GV8xSA==",
- "sr3UXbMg5zzkRduFx/as7g==",
- "xUXEE7OBBCudsQnuj5ycOA==",
- "ojZY7Gi2QJXE/fp6Wy31iA==",
- "RlNPyhgYOIn28R4vKCVtYA==",
- "KOm8PTa+ICgDrgK9QxCJZw==",
- "DJoy1NSZZw87oxWGlNHhfg==",
- "jEdanvXKyZdZJG6mj/3FWw==",
- "Omr+zPWVucPCSfkgOzLmSQ==",
- "71w3aSvuh2mBLtdqJCN3wA==",
- "xjTMO2mvtpvwQrounD4e8g==",
- "Zz/5VMbw1TqwazReplvsEg==",
- "hIjgi20+km+Ks23NJ4VQ6Q==",
- "00TVKawojyqrJkC7YqT41Q==",
- "YgVpC5d5V6K/BpOD663yQA==",
- "wX70jKLKJApHnhyK0r6t3A==",
- "lacCCRiWdquNm4YRO7FoKA==",
- "cWdlhVZD7NWHUGte24tMjg==",
- "t5U+VMsTtlWAAWSW+00SfQ==",
- "AMfL0rH+g8c0VqOUSgNzQw==",
- "0G93AxGPVwmr66ZOleM90A==",
- "9tiibT8V9VwnPOErWGNT3w==",
- "+dBv88reDrjEz6a2xX3Hzw==",
- "xX6atcCApI08oVLjjLteLg==",
- "+YrqTEJlJCv0A2RHQ8tr1A==",
- "aqcOby9QyEbizPsgO3g0yw==",
- "s/BZAhh1cTV3JCDUQsV8mA==",
- "x9VwDdFPp/rJ+SF16ooWYg==",
- "k/OVIllJvW6BefaLEPq7DA==",
- "rIMXaCaozDvrdpvpWvyZOQ==",
- "qQQwJ/aF87BbnLu3okXxaw==",
- "TIWSM78m0RprwgPGK/e0JA==",
- "r/b5px/UImGNjT/X5sYjuA==",
- "7K8l6KoP0BH82/WMLntfrg==",
- "gEHGeR2F82OgBeAlnYhRSw==",
- "1/SGIab+NnizimUmNDC4wA==",
- "WADmxH7R6B4LR+W6HqQQ6A==",
- "pcoBh5ic7baSD4TZWb3BSw==",
- "es/L9iW8wsyLeC5S4Q8t+g==",
- "D175i+2bZ7aWa4quSSkQpA==",
- "WQMffxULFKJ+bun6NrCURA==",
- "82hTTe1Nr4N2g7zwgGjxkw==",
- "oyYtf08AkWLR52bXm5+sKw==",
- "8uP4HUnSodw88yoiWXOIcw==",
- "x2NpqNnqRihktNzpxmepkQ==",
- "x5zMDuW66467ofgL3spLUQ==",
- "OMO4pqzfcbQ11YO4nkTXfg==",
- "N4/mQFyhDpPzmihjFJJn6w==",
- "NN/ymVQNa17JOTGr6ki3eQ==",
- "htDbVu1xGhCRd8qoMlBoMg==",
- "S47hklz3Ow+n5aY6+qsCoA==",
- "ji+1YHlRvzevs3q5Uw1gfA==",
- "3Y4w0nETru3SiSVUMcWXqw==",
- "XfBOCJwi2dezYzLe316ivw==",
- "kMUdiwM7WR8KGOucLK4Brw==",
- "V/xG5QFyx1pihimKmAo8ZA==",
- "sQskMBELEq86o1SJGQqfzg==",
- "6+jhreeBLfw64tJ+Nhyipw==",
- "8iYdEleTXGM+Wc85/7vU9w==",
- "D7piVoB2NJlBxK5owyo4+g==",
- "hDGa2yLwNvgBd/v6mxmQaQ==",
- "WLsh3UF4WXdHwgnbKEwRlQ==",
- "D5jaV+HtXkSpSxJPmaBDXg==",
- "jCgdKXsBCgf7giUKnr6paQ==",
- "XqW7UBTobbV4lt1yfh0LZw==",
- "EbGG4X18upaiVQmPfwKytg==",
- "dXDPnL1ggEoBqR13aaW9HA==",
- "Vik8tGNxO0xfdV0pFmmFDw==",
- "Swjn3YkWgj0uxbZ1Idtk+A==",
- "JPxEncA4IkfBDvpjHsQzig==",
- "F5FcNti7lUa9DyF2iEpBug==",
- "HJYgUxFZ66fRT8Ka73RaUg==",
- "Jbxl8Nw1vlHO9rtu0q/Fpg==",
- "fmC+85h5WBuk8fDEUWPjtQ==",
- "dZgMquvZmfLqP4EcFaWCiA==",
- "XF/yncdoT4ruPeXCxEhl9Q==",
- "QJEbr3+42P9yiAfrekKdRQ==",
- "Sr9c0ReRpkDYGAiqSy683g==",
- "Nr4zGo5VUrjXbI8Lr4YVWQ==",
- "NDZWIhhixq7NT8baJUR4VQ==",
- "GFRJoPcXlkKSvJRuBOAYHQ==",
- "WHutPin+uUEqtrA7L8878A==",
- "2rhjiY0O0Lo36wTHjmlNyw==",
- "XsF7R12agx/KkRWl0TyXRA==",
- "R6cO8GzYfOGTIi773jtkXw==",
- "zrZWcqQsUE3ocWE0fG+SOA==",
- "uNzpptKjihEfKRo5A1nWmw==",
- "gICaI06E9scnisonpvqCsA==",
- "TA9WjiLAFgJubLN4StPwLw==",
- "sBpytpE38xz0zYeT+0qc2A==",
- "Ej7W3+67kCIng3yulXGpRQ==",
- "nR3ACzeVF5YcLX6Gj6AGyQ==",
- "b0vZfEyuTja2JYMa20Rtbg==",
- "f1h+Vp+xmdZsZIziHrB2+g==",
- "WzjvUJ4jZAEK7sBqw+m07A==",
- "OzMR5D2LriC5yrVd5hchnA==",
- "cw1gBLtxH/m4H7dSM7yvFg==",
- "CZbd+UoTz0Qu1kkCS3k8Xg==",
- "WtT0QAERZSiIt2SFDiAizg==",
- "QsquNcCZL9wv7oZFqm64vQ==",
- "FXzaxi3nAXBc8WZfFElQeA==",
- "Ml3mi1lGS1IspHp3dYYClg==",
- "XGAXhUFjORwKmAq9gGEcRg==",
- "wOhbpTzmFla8R0kI9OiHaA==",
- "qoK2keBg3hdbn7Q24kkVXg==",
- "ZAQHWU6RMg4IadOxuaukyw==",
- "RiahBXX2JbPzt8baPiP/8g==",
- "Qx6rVv9Xj8CBjqikWI9KFA==",
- "ZRnR6i+5WKMRfs3BDRBCJg==",
- "91LQuW6bMSxl10J/UDX23A==",
- "0dIeIM5Zvm5nSVWLy94LWg==",
- "Ja3ECL7ClwDrWMTdcSQ6Ug==",
- "f6iLrMpxKhFxIlfRsFAuew==",
- "iSeH0JFSGK73F470Rhtesw==",
- "DwOTyyCoUfaSShHZx9u6xg==",
- "rdeftHE7gwAT67wwhCmkYQ==",
- "kUhyc3G8Zvx8+q5q5nVEhw==",
- "W8bATujVUT80v2XGJTKXDg==",
- "dMRx4Mf6LrN64tiJuyWmDw==",
- "9cvHJmim9e0pOaoUEtiM6A==",
- "RHToSGASrwEmvzjX6VPvNQ==",
- "V7eji28JSg3vTi30BCS7gw==",
- "4+htiqjEz9oq0YcI/ErBVg==",
- "jKJn4czwUl/6wtZklcMsSg==",
- "bvyB6OEwhwCIfJ6KRhjnRw==",
- "59ipbMH7cKBsF9bNf4PLeQ==",
- "M/cQja3uIk1im9++brbBOA==",
- "AChOz8avRYsvxlbWcorQ3w==",
- "FcKjlHKfQAGoovtpf+DxWQ==",
- "y+cl1/Knb9MZPz8nBB0M+w==",
- "b8BZV1NfBdLi70ir4vYvZg==",
- "aFJuE/s+Kbge4ppn+wulkA==",
- "CWBGcRFYwZ0va6115vV/oQ==",
- "glnqaRfwm6NxivtB2nySzw==",
- "mPk1IsU5DmDFA/Ym5+1ojw==",
- "LGwcvetzQ3QqKjNh5vA8vw==",
- "yctId8ltkl3+xqi9bj+RqA==",
- "spJI3xFUlpCDqzg0XCxopA==",
- "V8m51xgUgywRoV6BGKUrgg==",
- "rgcXxjx3pDLotH7TTfAoZw==",
- "/TSsi/AwKHtP6kQaeReI3w==",
- "8dbyfox/isKLsnVjQNsEXg==",
- "MOrAbuJTyGKPC6MgYJlx5Q==",
- "uNWFZlP7DA96sf+LWiAhtQ==",
- "hNHqznsrIVRSQdII6crkww==",
- "GT6WUDXiheKAM7tPg3he9A==",
- "JC8Q+8yOJ52NvtVeyHo68w==",
- "HMQarkPWOUDIg5+5ja2dBQ==",
- "nknBKPgb7US42v8A0fTl/w==",
- "fDOUzPTU2ndpbH0vgkgrJQ==",
- "GTNttXfMniNhrbhn92Aykg==",
- "D2JcY4zWwqaCKebLM8lPiQ==",
- "/c34NtdUZAHWIwGl3JM8Tw==",
- "/G26n5Xoviqldr5sg/Jl3w==",
- "GF0lY77rx1NQzAsZpFtXIQ==",
- "BMOi5JmFUg5sCkbTTffXHw==",
- "R+beucURp/H5jLs4kW6wmg==",
- "xfYZ6qhWNBqqJ0PdWRjOwA==",
- "Ahpi9+nl13kPTdzL+jgqMw==",
- "oIU19xAvLJwQSZzIH577aA==",
- "50xwiYvGQytEDyVgeeOnMg==",
- "M0ESOGwJ4WZ4Ons1ljP0bQ==",
- "fS471/rN4K2m10mUwGFuLg==",
- "RrE3B3X/SJi3CqCUlTYwaw==",
- "oDca3JEdRb4vONT9GUUsaQ==",
- "pHo1O5zrCHCiLvopP2xaWw==",
- "7sCJ4RxbxRqVnF4MBoKfuQ==",
- "7R5rFaXCxM3moIUtoCfM2g==",
- "4rrSL6N0wyucuxeRELfAmw==",
- "9Gkw+hvsR/tFY1cO89topg==",
- "aw4CzX8pYbPVMuNrGCEcWg==",
- "KyLQxi5UP+qOiyZl0PoHNQ==",
- "T1pMWdoNDpIsHF8nKuOn2A==",
- "Qv6wWP4PpycDGxe7EZNSCw==",
- "ZJc7GV0Yb6MrXkpDVIuc8g==",
- "aXrbsro7KLV8s4I4NMi4Eg==",
- "7k5rBuh8FbTTI4TP87wBPQ==",
- "NRyFx6jqO/oo9ojvbYzsAg==",
- "P7eMlOz9YUcJO+pJy0Kpkw==",
- "jpjpNjL1IKzJdGqWujhxCw==",
- "9k1u/5TgPmXrsx3/NsYUhg==",
- "c1wbFbN7AdUERO/xVPJlgw==",
- "Yw4ztKv6yqxK9U1L0noFXg==",
- "GnJKlRzmgKN9vWyGfMq3aA==",
- "91VcAVv7YDzkC1XtluPigw==",
- "h1NNwMy0RjQmLloSw1hvdg==",
- "pzC8Y0Vj9MPBy3YXR32z6w==",
- "UTmTgvl+vGiCDQpLXyVgOg==",
- "CzWhuxwYbNB/Ffj/uSCtbw==",
- "VOB+9Bcfu8aHKGdNO0iMRw==",
- "X2Tawm2Cra6H7WtXi1Z4Qw==",
- "6cTETZ9iebhWl+4W5CB+YQ==",
- "X4hrgqMIcApsjA9qOWBoCw==",
- "1buQEv2YlH/ljTgH0uJEtw==",
- "FH5Z60RXXUiDk+dSZBxD3g==",
- "FI2WhaSMb3guFLe3e9il8Q==",
- "O/EizzJSuFY8MpusBRn7Tg==",
- "b6rrRA0W247O+FfvDHbVCQ==",
- "ng1Q0A7ljho3TUWWYl46sw==",
- "1Ym0lyBJ9aFjhJb/GdUPvQ==",
- "+OXdvbTxHtSoLg7bZMho4w==",
- "cuQslgfqD2VOMhAdnApHrA==",
- "pCQmlnn3BxhsV2GwqjRhXg==",
- "6PzjncEw2wHZg7SP7SQk9w==",
- "nqtQI1bSM7DCO9P1jGV97Q==",
- "O1ckWUwuhD44MswpaD6/rw==",
- "RUmhye56tQu9xXs4SRJpOQ==",
- "llujnWE17U8MIHmx4SbrSA==",
- "UwqBVd4Wfias4ElOjk2BzQ==",
- "kBAB2PSjXwqoQOXNrv80AA==",
- "w1zN28mSrI/gqHsgs4ME3A==",
- "301utVPZ93AnPLYbsiJggw==",
- "qIFpKKwUmztsBpJgMaVvSg==",
- "QmcURiMzmVeUNaYPSOtTTg==",
- "x/MpsQvziUpW40nNUHDS5Q==",
- "t1O9jSNjg4DTIv/Za4NbtA==",
- "1B5gxGQSGzVKoNd5Ol4N7g==",
- "81iQLU+YwxNwq4of6e9z7A==",
- "x0eIHCvQLd2jdDaXwSWTYQ==",
- "96ORaz1JRHY1Gk8H74+C2g==",
- "bNDKcFu8T5Y6OoLSV+o/Sw==",
- "WrJMOuXSLKKzgmIDALkyNw==",
- "+gpHnUj2GWocP74t5XWz4w==",
- "z5DveTu377UW8IHnsiUGZg==",
- "irnD9K8bsT+up/JUrxPw6A==",
- "ginkFyNVMwkZLE49AbfqfA==",
- "2hEzujfG3mR5uQJXbvOPTQ==",
- "E9yeifEZtpqlD0N3pomnGw==",
- "OpC/sL320wl5anx6AVEL+A==",
- "D7wN7b5u5PKkMaLJBP9Ksw==",
- "83WGpQGWyt6mCV+emaomog==",
- "X6ulLp4noBgefQTsbuIbYQ==",
- "BH+rkZWQjTp7au6vtll/CQ==",
- "Ex3x5HeDPhgO2S9jjCFy4g==",
- "YNqIHCmBp/EbCgaPKJ7phw==",
- "312g8iTB9oJgk/OqcgR7Cw==",
- "LcF0OqPWrcpHby8RwXz1Yg==",
- "gaEtlJtD6ZjF5Ftx0IFt0A==",
- "bvbMJZMHScwjJALxEyGIyg==",
- "StoXC7TBzyRViPzytAlzyQ==",
- "XqFSbgvgZn0CpaZoZiRauQ==",
- "AqHVaj3JcR44hnMzUPvVYg==",
- "jTg9Y6EfpON4CRFOq0QovA==",
- "q/siBRjx6wNu+OTvpFKDwA==",
- "goSgZ8N5UbT5NMnW3PjIlQ==",
- "9onh6QKp70glZk9cX3s34A==",
- "o5XVEpdP4OXH0NEO4Yfc/A==",
- "a5gZ5uuRrXEAjgaoh7PXAg==",
- "PaROi5U16Tk35p0EKX5JpA==",
- "dtnE401dC0zRWU0S/QOTAg==",
- "7J3FoFGuTIW36q0PZkgBiw==",
- "hiYg+aVzdBUDCG0CXz9kCw==",
- "vhdFtKVH4bVatb4n8KzeXw==",
- "DWKsPfKDAtfuwgmc2dKUNg==",
- "M2JMnViESVHTZaru6LDM6w==",
- "G/PA+kt0N+jXDVKjR/054A==",
- "6rqK8sjLPJUIp7ohkEwfZg==",
- "wajwXfWz2J+O+NVaj6j2UQ==",
- "C4QEzQKGxyRi2rjwioHttA==",
- "N/HgDydvaXuJvTCBhG/KtA==",
- "6erpZS36qZRXeZ9RN9L+kw==",
- "bbBsi6tXMVWyq3SDVTIXUg==",
- "aySnrShOW4/xRSzl/dtSKQ==",
- "rxfACPLtKXbYua18l3WlUw==",
- "L4+C6I7ausPl6JbIbmozAg==",
- "R3ijnutzvK6IKV3AKHQZSA==",
- "leDlMcM+B1mDE8k5SWtUeg==",
- "KGI/cXVz6v6CfL8H6akcUQ==",
- "NtwqUO3SKZE/9MXLbTJo/g==",
- "dJHKDkfMFJeoULg7U4wwDQ==",
- "IEz72W2/W8xBx5aCobUFOQ==",
- "wUYhs4j3W9nIywu1HIv2JA==",
- "GzbeM7snhe+M+J7X+gAsQw==",
- "3/1puZTGSrD9qNKPGaUZww==",
- "eKQCVzLuzoCLcB4im8147A==",
- "CCK+6Dr72G3WlNCzV7nmqw==",
- "CJoZn5wdTXbhrWO5LkiW0g==",
- "bJ1cZW7KsXmoLw0BcoppJg==",
- "OlpA9HsF8MBh7b45WZSSlg==",
- "JZRjdJLgZ+S0ieWVDj8IJg==",
- "uhT12XY79CtbwhcSfAmAXQ==",
- "isep9d+Q7DEUf0W7CJJYzw==",
- "K9A87aMlJC8XB9LuFM913g==",
- "uqe3rFveJ2JIkcZQ3ZMXHQ==",
- "0e8hM3E5tnABRyy29A8yFw==",
- "4iiCq+HhC+hPMldNQMt0NA==",
- "X4o0OkTz0ec70mzgwRfltA==",
- "1E3pMgAHOnHx3ALdNoHr8Q==",
- "xNilc7UOu1kyP0+nK5MrLw==",
- "DQlZWBgdTCoYB1tJrNS5YQ==",
- "iruDC5MeywV4yA8o1tw/KQ==",
- "z+1oDVy8GJ5u/UDF+bIQdA==",
- "uExgqZkkJnZj252l5dKAGg==",
- "ZgdpqFrVGiaHkh9o3rDszg==",
- "5N2oi2pB69NxeNt08yPLhw==",
- "G37U8XTFyshfCs7qzFxATg==",
- "0ZEC3hy411LkOhKblvTcqg==",
- "ITZ3P47ALS0JguFms6/cDA==",
- "WWN44lbUnEdHmxSfMCZc6w==",
- "r2f2MyT+ww1g9uEBzdYI1w==",
- "ZvvxwDd0I6MsYd7aobjLUA==",
- "uQs79rbD/wEakMUxqMI48A==",
- "022B0oiRMx8Xb4Af98mTvQ==",
- "afMd/Hr3rYz/l7a3CfdDjg==",
- "xmsYnsJq78/f9xuKuQ2pBQ==",
- "dFetwmFw+D6bPMAZodUMZQ==",
- "TBQpcKq2huNC5OmI2wzRQw==",
- "skrQRB9xbOsiSA19YgAdIQ==",
- "anyANMnNkUqr3JuPJz5Qzw==",
- "6QUGE2S8oFYx4T4nW56cCw==",
- "rwtF86ZAbWyKI6kLn4+KBw==",
- "6txm8z4/LGCH0cpaet/Hsg==",
- "wdRyYjaM11VmqkkxV/5bsA==",
- "+k5lDb+QdNc9iZ01hL5yBg==",
- "k/pBSWE2BvUsvJhA9Zl5uw==",
- "jQjyjWCEo9nWFjP4O8lehw==",
- "R6Me6sSGP5xpNI8R0xGOWw==",
- "9+hjTVMQUsvVKs7Tmp52tg==",
- "VQIpquUqmeyt/q6OgxzduQ==",
- "KXvdjZ3rRKn60djPTCENGA==",
- "5HovoyHtul8lXh+z8ywq9A==",
- "1+XWdu4qCqLLVjqkKz3nmA==",
- "LCj4hI520tA685Sscq6uLw==",
- "b53qqLnrTBthRXmmnuXWvw==",
- "WTr3q/gDkmB4Zyj7Ly20+w==",
- "FbxScyuRacAQkdQ034ShTA==",
- "qaTdVEeZ6S8NMOxfm+wOMA==",
- "ZNrjP1fLdQpGykFXoLBNPw==",
- "/Bwpt5fllzDHq2Ul6v86fA==",
- "/mFp3GFkGNLhx2CiDvJv4A==",
- "RppDe/WGt1Ed6Vqg1+cCkQ==",
- "6M6QapJ5xtMXfiD3bMaiLA==",
- "Ghuj9hAyfehmYgebBktfgA==",
- "GncGQgmWpI/fZyb/6zaFCg==",
- "R1TCCfgltnXBvt5AiUnCtQ==",
- "5NEP7Xt7ynj6xCzWzt21hQ==",
- "4yEkKp2FYZ09mAhw2IcrrA==",
- "y2Tn2gmhKs5WKc01ce74rg==",
- "wnfYUctNK+UPwefX5y4/Rw==",
- "BV1moliPL15M14xkL+H1zw==",
- "80C9TB9/XT1gGFfQDJxRoA==",
- "yL1DwlIIREPuyuCFULi0uw==",
- "D09afzGpwCEH0EgZUSmIZA==",
- "eCy/T+a8kXggn1L8SQwgvA==",
- "+dIEf5FBrHpkjmwUmGS6eg==",
- "kzXsrxWRnWhkA82LsLRYog==",
- "Nf9fbRHm844KZ2sqUjNgkA==",
- "XAq/C+XyR6m3uzzLlMWO5Q==",
- "jiV+b/1EFMnHG6J0hHpzBg==",
- "HK0yf7F97bkf1VYCrEFoWA==",
- "Cz1G77hsDtAjpe0WzEgQog==",
- "xdCCdP8SNBOK3IsX6PiPQA==",
- "8snljTGo/uICl9q0Hxy7/A==",
- "sLdxIKap0ZfC3GpUk3gjog==",
- "IA1jmtfpYkz/E2wD0+27WA==",
- "PPa7BDMpRdxJdBxkuWCxKA==",
- "CuGIxWhRLN7AalafBZLCKQ==",
- "MWcV03ULc0vSt/pFPYPvFA==",
- "QVwuN66yPajcjiRnVk/V8g==",
- "aLY2pCT0WfFO5EJyinLpPg==",
- "dGrf9SWJ13+eWS6BtmKCNw==",
- "YtZ8CYfnIpMd2FFA5fJ+1Q==",
- "Umd+5fTcxa3mzRFDL9Z8Ww==",
- "Al8+d/dlOA5BXsUc5GL8Tg==",
- "/KYZdUWrkfxSsIrp46xxow==",
- "kr8tw1+3NxoPExnAtTmfxg==",
- "PwvPBc+4L73xK22S9kTrdA==",
- "VWNDBOtjiiI4uVNntOlu/A==",
- "lJFPmPWcDzDp5B2S8Ad8AA==",
- "Mofqu40zMRrlcGRLS42eBw==",
- "BuENxPg7JNrWXcCxBltOPg==",
- "nmD7fEU4u7/4+W/pkC4/0Q==",
- "axEl7xXt/bwlvxKhI7hx4g==",
- "W04GeDh+Tk/I1S85KlozRA==",
- "tVw8U1AsslIFmQs4H1xshg==",
- "TSPFvkgw6uLsJh66Ou0H9w==",
- "IYIbEaErHoFBn8sTT9ICIQ==",
- "WBu0gJmmjVdVbjDmQOkU6w==",
- "ZgjifTVKmxOieco81gnccQ==",
- "ZrCnZB/U/vcqEtI1cSvnww==",
- "2D6yhuABiaFFoXz0Lh0C+w==",
- "SfwnYZCKP1iUJyU1yq4eKg==",
- "tsiqwelcBAMU/HpLGBtMGw==",
- "S9L29U2P5K8wNW+sWbiH7w==",
- "sGLPmr568+SalaQr8SE/PA==",
- "Hm6MG6BXbAGURVJKWRM6ZA==",
- "euxzbIq4vfGYoY3s1QmLcw==",
- "/FchS2nPezycB8Bcqc2dbg==",
- "ZKvox7BaQg4/p5jIX69Umw==",
- "HkbdaMuDTPBDnt3wAn5RpQ==",
- "eddhS+FkXxiUnbPoCd5JJw==",
- "Muf2Eafcf9G3U2ZvQ9OgtQ==",
- "a7Pv1SOWYnkhIUC22dhdDA==",
- "O839JUrR+JS30/nOp428QA==",
- "2qK2ZEY9LgdKSTaLf6VnLA==",
- "BTiGLT6XdZIpFBc91IJY6g==",
- "EqYq2aVOrdX5r7hBqUJP7g==",
- "SIuKH/Qediq0TyvqUF93HQ==",
- "c5ymZKqx/td1MiS2ERiz9A==",
- "rqucO37p86LpzehR/asCSQ==",
- "1tpM0qgdo7JDFwvT0TD78g==",
- "Ar1Eb/f/LtuIjXnnVPYQlA==",
- "V8q+xz4ljszLZMrOMOngug==",
- "P5WPQc5NOaK7WQiRtFabkw==",
- "Xo8ZjXOIoXlBjFCGdlPuZw==",
- "jTmPbq+wh30+yJ/dRXk1cA==",
- "KSumhnbKxMXQDkZIpDSWmQ==",
- "Kh/J1NpDBGoyDU+Mrnnxkg==",
- "3BjLFon1Il0SsjxHE2A1LQ==",
- "dml2gqLPsKpbIZ93zTXwCQ==",
- "ZyoaR1cMiKAsElmYZqKjLA==",
- "vnOJ3e9Zd4wPx8PX7QgZzQ==",
- "2melaInV0wnhBpiI3da6/A==",
- "mUek9NkXm8HiVhQ6YXiyzA==",
- "RZTpYKxOAH9JgF1QFGN+hw==",
- "a/Y6IAVFv0ykRs9WD+ming==",
- "yhRi5M9Etuu9HSu4d24i3w==",
- "+1gcqAqaRZwCj5BGiZp3CA==",
- "o1zeXHJEKevURAAbUE/Vog==",
- "cvOg7N4DmTM+ok1NBLyBiQ==",
- "uPdjKJIGzN7pbGZDZdCGaA==",
- "REnDNe9mGfqVGZt+GdsmjQ==",
- "XqTK/2QuGWj50tGmiDxysA==",
- "bL2FuwsPT7a7oserJQnPcw==",
- "uO+uK1DntCxVRr1KttfUIw==",
- "Xconi1dtldH90Wou9swggw==",
- "HRF3WL/ue3/QlYyu7NUTrA==",
- "5LuFDNKzMd2BzpWEIYO2Ww==",
- "dNTU+/2DdZyGGTdc+3KMhQ==",
- "H+NHjk/GJDh/GaNzMQSzjg==",
- "/Ph/6l/lFNVqxAje1+PgFA==",
- "4WRdAjiUmOQg2MahsunjAg==",
- "j+lDhAnWAyso+1N8cm85hQ==",
- "nFBXCPeiwxK9mLXPScXzTA==",
- "vGKknndb4j6VTV8DxeT4fQ==",
- "fdqt93OrpG13KAJ5cASvkg==",
- "1MIn73MLroxXirrb+vyg2Q==",
- "Q7teXmTHAC5qBy+t7ugf0w==",
- "bWwtTFlhO3xEh/pdw0uWaQ==",
- "Omi2ZB9kdR1HrVP2nueQkA==",
- "+ZozWaPWw8ws1cE5DJACeg==",
- "3FH4D31nKV13sC9RpRZFIg==",
- "4kXlJNuT79XXf1HuuFOlHw==",
- "36XDmX6j542q+Oei1/x0gw==",
- "MqqDg9Iyt4k3vYVW5F+LDw==",
- "cvrGmub2LoJ+FaM5HTPt9A==",
- "uC2lzm7HaMAoczJO6Z/IhQ==",
- "MnStiFQAr3QlaRZ02SYGaQ==",
- "ZuayB6IpbeITokKGVi9R5w==",
- "FtxpWdhEmC6MT61qQv4DGA==",
- "KujFdhhgB9q4oJfjYMSsLg==",
- "ZV8mEgJweIYk0/l0BFKetA==",
- "gDLjxT7vm07arF4SRX5/Vg==",
- "/MEOgAhwb7F0nBnV4tIRZA==",
- "k2KP9oPMnHmFlZO6u6tgyw==",
- "fbTm027Ms0/tEzbGnKZMDA==",
- "HOi+vsGAae4vhr+lJ5ATnQ==",
- "9Bet5waJF5/ZvsYaHUVEjQ==",
- "Wd0dOs7eIMqW5wnILTQBtg==",
- "z/e5M2lE9qh3bzB97jZCKA==",
- "b16O4LF7sVqB7aLU2f3F1A==",
- "lsBTMnse2BgPS6wvPbe7JA==",
- "0nOg18ZJ/NicqVUz5Jr0Hg==",
- "MFeXfNZy6Q9wBfZmPQy3xg==",
- "ksOFI9C7IrDNk4OP6SpPgw==",
- "NquRbPn8fFQhBrUCQeRRoQ==",
- "ccmy4GVuX967KaQyycmO0w==",
- "DY0IolKTYlW+jbKLPAlYjQ==",
- "aJFbBhYtMbTyMFBFIz/dTA==",
- "9pdeedz1UZUlv8jPfPeZ1g==",
- "qZ2q5j2gH3O56xqxkNhlIA==",
- "N7fHwb397tuQHtBz1P80ZQ==",
- "uOkMpYy/7DYYoethJdixfQ==",
- "E9ajQQMe02gyUiW3YLjO/A==",
- "dFSavcNwGd8OaLUdWq3sng==",
- "TAD0Lk95CD86vbwrcRogaQ==",
- "jLI3XpVfjJ6IzrwOc4g9Pw==",
- "CzP13PM/mNpJcJg8JD3s6w==",
- "GSWncBq4nwomZCBoxCULww==",
- "9k17UqdR1HzlF7OBAjpREA==",
- "TrWS+reCJ0vbrDNT5HDR9w==",
- "CXMKIdGvm60bgfsNc+Imvg==",
- "6NP81geiL14BeQW6TpLnUA==",
- "hW9DJA1YCxHmVUAF7rhSmQ==",
- "8M0kSvjn5KN8bjsMdUqKZQ==",
- "eS/vTdSlMUnpmnl1PbHjyw==",
- "h2B0ty0GobQhDnFqmKOpKQ==",
- "n7KL1Kv027TSxBVwzt9qeA==",
- "yYmnM/WOgi+48Rw7foGyXA==",
- "FhthAO5IkMyW4dFwpFS7RA==",
- "81ZH3SO0NrOO+xoR/Ngw1g==",
- "t7HaNlXL16fVwjgSXmeOAQ==",
- "N+K1ibXAOyMWdfYctNDSZQ==",
- "yQCLV9IoPyXEOaj3IdFMWw==",
- "3+zsjCi7TnJhti//YXK35w==",
- "600mjiWke4u0CDaSQKLOOg==",
- "K4VS+DDkTdBblG93l2eNkA==",
- "5KOgetfZR+O2wHQSKt41BQ==",
- "kj5WqpRCjWAfjM7ULMcuPQ==",
- "AxEjImKz4tMFieSo7m60Sg==",
- "jp5Em/0Ml4Txr1ptTUQjpg==",
- "jQVlDU+HjZ2OHSDBidxX5A==",
- "4NHQwbb3zWq2klqbT/pG6g==",
- "PeJS+mXnAA6jQ0WxybRQ8w==",
- "l6Ssc04/CnsqUua9ELu2iQ==",
- "nFPDZGZowr3XXLmDVpo7hg==",
- "yYBIS9PZbKo7Gram7IXWPA==",
- "/HU2+fBqfWTEuqINc0UZSA==",
- "adT+OjEB2kqpeYi4kQ6FPg==",
- "GW1Uaq622QamiiF24QUA0g==",
- "rTwJggSxTbwIYdp07ly0LA==",
- "4yrFNgqWq17zVCyffULocA==",
- "vvh9vAIrXjIwLVkuJb5oDQ==",
- "C7UaoIEXsVRxjeA0u99Qmw==",
- "x1A74vg/hwwjAx6GrkU8zw==",
- "7XRiYvytcwscemlxd9iXIQ==",
- "64AA4jLHXc1Dp15aMaGVcA==",
- "u/QxrP1NOM/bOJlJlsi/jQ==",
- "5M3dFrAOemzQ0MAbA8bI5w==",
- "wyqmQGB6vgRVrYtmB2vB7w==",
- "8vLA9MOdmLTo3Qg+/2GzLA==",
- "/u5W2Gab4GgCMIc4KTp2mg==",
- "lhAOM81Ej6YZYBu45pQYgg==",
- "MArbGuIAGnw4+fw6mZIxaw==",
- "ZZImGypBWwYOAW43xDRWCQ==",
- "L2IeUnATZHqOPcrnW2APbA==",
- "bQKkL+/KUCsAXlwwIH0N3w==",
- "f09F7+1LRolRL5nZTcfKGA==",
- "hPnPQOhz4QKhZi02KD6C+A==",
- "78b8sDBp28zUlYPV5UTnYw==",
- "iVDd2Zk7vwmEh97LkOONpQ==",
- "LHQETSI5zsejvDaPpsO29g==",
- "Yjm5tSq1ejZn3aWqqysNvA==",
- "gkrg0NR0iCaL7edq0vtewA==",
- "Lo1xTCEWSxVuIGEbBEkVxA==",
- "8GyPup4QAiolFJ9v80/Nkw==",
- "3L3KEBHhgDwH615w4OvgZA==",
- "hJSP7CostefBkJrwVEjKHA==",
- "9oQ/SVNJ4Ye9lq8AaguGAQ==",
- "n7Bns42aTungqxKkRfQ5OQ==",
- "K5lhaAIZkGeP5rH2ebSJFw==",
- "ZaPsR9X77SNt7dLjMJUh8A==",
- "18ndtDM9UaNfBR1cr3SHdA==",
- "0QbH4oI8IjZ9BRcqRyvvDQ==",
- "J/eAtAPswMELIj8K2ai+Xg==",
- "qenHZKKlTUiEFv6goKM/Mw==",
- "vjrSYGUpeKOtJ2cNgLFg2g==",
- "DA+3fjr7mgpwf6BZcExj0w==",
- "rh7bzsTQ1UZjG7amysr0Gg==",
- "tFMJRXfWE9g78O1uBUxeqQ==",
- "e/nWuo5YalCAFKsoJmFyFA==",
- "gqehq46BhFX2YLknuMv02w==",
- "Uudn69Kcv2CGz2FbfJSSEA==",
- "Otz/PgYOEZ1CQDW54FWJIQ==",
- "IwfeA6d0cT4nDTCCRhK+pA==",
- "jgNijyoj2JrQNSlUv4gk4A==",
- "KzWdWPP2gH0DoMYV4ndJRg==",
- "pv/m2mA/RJiEQu2Qyfv9RA==",
- "ATmMzriwGLl+M3ppkfcZNA==",
- "tVvWdA+JqH0HR2OlNVRoag==",
- "n6QVaozMGniCO0PCwGQZ6w==",
- "gU3gu8Y5CYVPqHrZmLYHbQ==",
- "cBBOQn7ZjxDku0CUrxq2ng==",
- "w+jzM0I5DRzoUiLS/9QIMQ==",
- "MLlVniZ08FHAS5xe+ZKRaA==",
- "wMyJLQJdmrC2TSeFkIuSvQ==",
- "dG98w8MynOoX7aWmkvt+jg==",
- "zm+z+OOyHhljV2TjA3U9zw==",
- "Tk5MAqd1gyHpkYi8ErlbWg==",
- "g6zSo8BvLuKqdmBFM1ejLA==",
- "d0VAZLbLcDUgLgIfT1GmVQ==",
- "SNPYH4r/J9vpciGN2ybP5Q==",
- "XA2hUgq3GVPpxtRYiqnclg==",
- "fVCRaPsTCKEVLkoF4y3zEw==",
- "FpgdsQ2OG+bVEy3AeuLXFQ==",
- "JquDByOmaQEpFb47ZJ4+JA==",
- "e369ZIQjxMZJtopA//G55Q==",
- "Nsd+DfRX6L54xs+iWeMjCQ==",
- "+/UCpAhZhz368iGioEO8aQ==",
- "e5l9ZiNWXglpw6nVCtO8JQ==",
- "Cl1u5nGyXaoGyDmNdt38Bw==",
- "6sNP0rzCCm3w976I2q2s/w==",
- "qcpeZWUlPllQYZU6mHVwUw==",
- "kzYddqiMsY3EYrpxve2/CQ==",
- "3iC21ByW/YVL+pSyppanWw==",
- "3HPOzIZxoaQAmWRy9OkoSg==",
- "xsCZVhCk2qJmOqvUjK3Y8Q==",
- "i2sSvrTh/RdLJX0uKhbrew==",
- "7Y87wVJok20UfuwkGbXxLg==",
- "ibsb1ncaLZXAYgGkMO7tjQ==",
- "+VfRcTBQ80KSeJRdg0cDfw==",
- "kgKWQJJQKLUuD2VYKIKvxA==",
- "ARKIvf4+zRF8eCvUITWPng==",
- "1fztTtQWNMIMSAc5Hr6jMQ==",
- "md6zNd7ZBn3qArYqQz7/fw==",
- "kvAaIJb+aRAfKK104dxFAA==",
- "UIXytIHyVODxlrg+eQoARA==",
- "Dk0L/lQizPEb3Qud6VHb1Q==",
- "64YsV2qeDxk2Q6WK/h7OqA==",
- "90dtIMq0ozJXezT2r79vMQ==",
- "wy/Z8505o4sVovk4UuBp1A==",
- "ytDXLDBqWiU1w3sTurYmaw==",
- "9pk75mBzhmcdT+koHvgDlw==",
- "DQeib845UqBMEl96sqsaSg==",
- "UPYR575ASaBSZIR3aX1IgQ==",
- "swsVVsPi/5aPFBGP+jmPIw==",
- "1cj1Fpd3+UiBAOahEhsluA==",
- "ifuJCv9ZA84Vz1FYAPsyEA==",
- "uu+ncs63SdQIvG6z4r7Q3Q==",
- "UvC1WADanMrhT+gPp/yVqA==",
- "llOvGOUDVfX68jKnAlvVRA==",
- "SusSOsWNoAerAIMBVWHtfA==",
- "VznvTPAAwAev+yhl9oZT0w==",
- "luR/kvHLwA6tSdLeTM4TzA==",
- "PcdBtV8pfKU0YbDpsjPgwg==",
- "5l6kDfjtZjkTZPJvNNOVFw==",
- "4FBBtWPvqJ3dv4w25tRHiQ==",
- "JJbzQ/trOeqQomsKXKwUpQ==",
- "0bj069wXgEJbw7dpiPr8Tg==",
- "tejpAZp7y32SO2+o4OGvwQ==",
- "kq26VyDyJTH/eM6QvS2cMw==",
- "+zBkeHF4P8vLzk1iO1Zn3Q==",
- "BzkNYH03gF/mQY71RwO3VA==",
- "RnxOYPSQdHS6fw4KkDJtrA==",
- "65KhGKUBFQubRRIEdh9SwQ==",
- "k1DPiH6NkOFXP/r3N12GyA==",
- "DqzWt1gfyu/e7RQl5zWnuQ==",
- "gnez1VrH+UHT8C/SB9qGdA==",
- "vZtL0yWpSIA+9v8i23bZSg==",
- "FNvQqYoe0s/SogpAB7Hr1Q==",
- "6nwR+e9Qw0qp8qIwH9S/Mg==",
- "BPT4PQxeQcsZsUQl33VGmg==",
- "rOYeIcB+Rg5V6JG2k4zS2w==",
- "Je1UESovkBa9T6wS0hevLw==",
- "HFHMGgfOeO0UPrray1G+Zw==",
- "NBmB/cQfS+ipERd7j9+oVg==",
- "iIm8c9uDotr87Aij+4vnMw==",
- "S3VQa6DH+BdlSrxT/g6B5g==",
- "BwRA+tMtwEvth28IwpZx+w==",
- "vg3jozLXEmAnmJwdfcEN0g==",
- "gW0oKhtQQ7BxozxUWw5XvQ==",
- "Q6vGRQiNwoyz7bDETGvi5g==",
- "Ak3rlzEOds6ykivfg39xmw==",
- "G4qzBI1sFP2faN+tlRL/Bw==",
- "ND9l4JWcncRaSLATsq0LVw==",
- "yQmNZnp/JZywbBiZs3gecA==",
- "ZoNSxARrRiKZF5Wvpg7bew==",
- "GhpJfRSWZigLg/azTssyVA==",
- "QyyiJ5I/OZC50o89fa5EmQ==",
- "4kj0S8XlmhHXoUP7dQItUw==",
- "Dt8Q5ORzTmpPR2Wdk0k+Aw==",
- "/hFhjFGJx2wRfz6hyrIpvA==",
- "eFimq+LuHi42byKnBeqnZQ==",
- "JrKGKAKdjfAaYeQH8Y2ZRQ==",
- "JFFeXsFsMA59iNtZey7LAA==",
- "91SdBFJEZ65M+ixGaprY/A==",
- "+S+WXgVDSU1oGmCzGwuT3g==",
- "1X14kHeKwGmLeYqpe60XEA==",
- "4xojeUxTFmMLGm6jiMYh/Q==",
- "+1e7jvUo8f2/2l0TFrQqfA==",
- "8WU1vLKV1GhrL7oS9PpABg==",
- "DYWCPUq/hpjr6puBE7KBHg==",
- "birqO8GOwGEI97zYaHyAuw==",
- "6e8boFcyc8iF0/tHVje4eQ==",
- "FLvED9nB9FEl9LqPn7OOrA==",
- "ji306HRiq965zb8EZD2uig==",
- "AklOdt9/2//3ylUhWebHRw==",
- "VGRCSrgGTkBNb8sve0fYnQ==",
- "oqlkgrYe9aCOwHXddxuyag==",
- "KXuFON8tMBizNkCC48ICLA==",
- "9aKH1u5+4lgYhhLztQ4KWA==",
- "3hVslsq98QCDIiO40JNOuA==",
- "OOS6wQCJsXH8CsWEidB35A==",
- "YXHQ3JI9+oca8pc/jMH6mA==",
- "V9vkAanK+Pkc4FGAokJsTA==",
- "OFLn4wun6lq484I7f6yEwg==",
- "3WVBP9fyAiBPZAq3DpMwOQ==",
- "5gGoDPTc/sOIDLngmlEq4A==",
- "E2lvMXqHdTw0x+KCKVnblg==",
- "f1Gs++Iilgq9GHukcnBG3w==",
- "uIkVijg7RPi/1j7c18G1qA==",
- "9T7gB0ZkdWB0VpbKIXiujQ==",
- "KCJJfgLe00+tjSfP6EBcUg==",
- "WbAdlac/PhYUq7J2+n5f+w==",
- "GLnS9wDCje7TOMvBX9jJVA==",
- "VAg/aU5nl72O+cdNuPRO4g==",
- "kzTl7WH/JXsX1fqgnuTOgw==",
- "1HDgfU7xU7LWO/BXsODZAQ==",
- "D0W5F7gKMljoG5rlue1jrg==",
- "9reBKZ1Rp6xcdH1pFQacjw==",
- "SSKhl2L3Mvy93DcZulADtA==",
- "hlu7os0KtAkpBTBV6D2jyQ==",
- "sfte/o9vVNyida/yLvqADA==",
- "gYGQBLo5TdMyXks0LsZhsQ==",
- "dNq2InSVDGnYXjkxPNPRxA==",
- "fiv0DJivQeqUkrzDNlluRw==",
- "msstzxq++XO0AqNTmA7Bmg==",
- "DCjgaGV5hgSVtFY5tcwkuA==",
- "aMmrAzoRWLOMPHhBuxczKg==",
- "qNOSm15bdkIDSc/iUr+UTQ==",
- "2nSTEYzLK77h5Rgyti+ULQ==",
- "BhKO1s1O693Fjy1LItR/Jw==",
- "kRnBEH6ILR5GNSmjHYOclw==",
- "R97chlspND/sE9/HMScXjQ==",
- "1Oykse0jQVbuR3MvW5ot4A==",
- "Dmyb+a7/QFsU4d2cVQsxDw==",
- "W5now3RWSzzMDAxsHSl++Q==",
- "IrDuBrVu1HWm0BthAHyOLQ==",
- "V6zyoX6MERIybGhhULnZiw==",
- "ZQSDYgpsimK+lYGdXBWE/w==",
- "lV70RNlE++04G1KFB3BMXA==",
- "QmSBVvdk0tqH9RAicXq2zA==",
- "qNyy6Fc0b8oOMWqqaliZ/w==",
- "xvipmmwKdYt4eoKvvRnjEg==",
- "Q7Df6zGwvb4rC+EtIKfaSw==",
- "n1M2dgFPpmaICP+JwxHUug==",
- "1k8tL2xmGFVYMgKUcmDcEw==",
- "fFvXa1dbMoOOoWZdHxPGjw==",
- "UP9mmAKzeQqGhod7NCqzhg==",
- "PMCWKgog/G+GFZcIruSONw==",
- "dnvatwSEcl73ROwcZ4bbIQ==",
- "hY82j+sUQQRpCi6CCGea5A==",
- "QoUC9nyK1BAzoUVnBLV2zw==",
- "+aF4ilbjQbLpAuFXQEYMWQ==",
- "XTCcsVfEvqxnjc0K5PLcyw==",
- "ML7ipnY/g8mA1PUIju1j8Q==",
- "tOkYq1BZY152/7IJ6ZYKUg==",
- "2bsIpvnGcFhTCSrK9EW1FQ==",
- "Af9j1naGtnZf0u1LyYmK1w==",
- "ZmblZauRqO5tGysY3/0kDw==",
- "PF0lpolQQXlpc3qTLMBk8w==",
- "emVLJVzha7ui5OFHPJzeRQ==",
- "gR0sgItXIH8hE4FVs9Q07w==",
- "PTW+fhZq/ErxHqpM0DZwHQ==",
- "g0kHTNRI7x/lAsr92EEppw==",
- "24H9q+E8pgCEdFS7JO5kzQ==",
- "HtDXgMuF8PJ1haWk88S0Ew==",
- "pulldyBt2sw6QDvTrCh6zw==",
- "ehwc2vvwNUAI7MxU4MWQZw==",
- "enj9VEzLbmeOyYugTmdGfQ==",
- "auvG6kWMnhCMi7c7e9eHrw==",
- "R36O31Pj8jn0AWSuqI7X2Q==",
- "3AVYtcIv7A5mVbVnQMaCeA==",
- "T9WoUJNwp8h4Yydixbx6nA==",
- "t0WN8TwMLgi8UVEImoFXKg==",
- "mS99D+CXhwyfVt8xJ+dJZA==",
- "AFdelaqvxRj6T3YdLgCFyg==",
- "Lu02ic/E94s42A14m7NGCA==",
- "7w3b73nN/fIBvuLuGZDCYQ==",
- "O209ftgvu0vSr0UZywRFXA==",
- "MQvAr+OOfnYnr/Il/2Ubkg==",
- "e5txnNRcGs2a9+mBFcF1Qg==",
- "YA0kMTJ82PYuLA4pkn4rfw==",
- "QIKjir/ppRyS63BwUcHWmw==",
- "P3y5MoXrkRTSLhCdLlnc4A==",
- "WY7mCUGvpXrC8gkBB46euw==",
- "g0GbRp2hFVIdc7ct7Ky7ag==",
- "Cv079ZF55RnbsDT27MOQIA==",
- "cvMJ714elj/HUh89a9lzOQ==",
- "9inw7xzbqAnZDKOl/MfCqA==",
- "F58ktE4O0f7C9HdsXYm+lw==",
- "CsPkyTZADMnKcgSuNu1qxg==",
- "mAzsVkijuqihhmhNTTz65g==",
- "FxnbKnuDct4OWcnFMT/a5w==",
- "P5wS+xB8srW4a5KDp/JVkA==",
- "ctJYJegZhG42i+vnPFWAWw==",
- "OrqJKjRndcZ8OjE3cSQv7g==",
- "aXqiibI6BpW3qilV6izHaQ==",
- "BA18GEAOOyVXO2yZt2U35w==",
- "saEpnDGBSZWqeXSJm34eOA==",
- "CUEueo8QXRxkfVdfNIk/gg==",
- "H0UMAUfHFQH92A2AXRCBKA==",
- "CT9g8mKsIN/VeHLSTFJcNQ==",
- "E4NtzxQruLcetC23zKVIng==",
- "203EqmJI9Q4tWxTJaBdSzA==",
- "Do3aqbRKtmlQI2fXtSZfxQ==",
- "JaYQXntiyznQzrTlEeZMIw==",
- "VK95g27ws2C6J2h/7rC2qA==",
- "CQ0PPwgdG3N6Ohfwx1C8xA==",
- "/MeHciFhvFzQsCIw39xIZA==",
- "u5cUPxM6/spLIV8VidPrAA==",
- "OwArFF1hpdBupCkanpwT+Q==",
- "PdBgXFq5mBqNxgCiqaRnkw==",
- "lC5EumoIcctvxYqwELqIqw==",
- "xoPSM86Se+1hHX0y3hhdkw==",
- "F5bs0GGWBx9eBwcJJpXbqg==",
- "1mw6LfTiirFyfjejf8QNGA==",
- "daBhAvmE9shDgmciDAC5eg==",
- "AvdeYb9XNOUFWiiz+XGfng==",
- "JJJkp1TpuDx5wrua2Wml7g==",
- "3y5Xk65ShGvWFbQxcZaQAQ==",
- "l6QHU5JsJExNoOnqxBPVbw==",
- "X2YfnPXgF2VHVX95ZcBaxQ==",
- "g6udffWh7qUnSIo1Ldn3eA==",
- "V2P75JFB4Se9h7TCUMfeNA==",
- "IUZ5aGpkJ9rLgSg6oAmMlw==",
- "pyrUqiZ98gVXxlXQNXv5fA==",
- "83ERX2XJV3ST4XwvN7YWCg==",
- "eJDUejE/Ez/7kV+S74PDYg==",
- "M9oqlPb63e0kZE0zWOm+JQ==",
- "0rTYcuVYdilO7zEfKrxY3A==",
- "rfPTskbnoh3hRJH6ZAzQRg==",
- "QtD35QhE8sAccPrDnhtQmQ==",
- "jpNUgFnanr9Sxvj2xbBXZw==",
- "nykEOLL/o7h0cs0yvdeT2g==",
- "wX2URK6eDDHeEOF3cgPgHA==",
- "jqPQ0aOuvOJte/ghI1RVng==",
- "nHTsDl0xeQPC5zNRnoa0Rw==",
- "mNv2Q67zePjk/jbQuvkAFA==",
- "HjlPM2FQWdILUXHalIhQ5w==",
- "cHkOsVd80Rgwepeweq4S1g==",
- "kTCHqcb3Cos51o8cL+MXcg==",
- "nvmBgp0YlUrdZ05INsEE8Q==",
- "kFrRjz7Cf2KvLtz9X6oD+w==",
- "Tmx0suRHzlUK4FdBivwOwA==",
- "bG+P+p34t/IJ1ubRiWg6IA==",
- "uESeJe/nYrHCq4RQbrNpGA==",
- "ehfPlu6YctzzpQmFiQDxGA==",
- "ZH5Es/4lJ+D5KEkF1BVSGg==",
- "HHxn4iIQ7m0tF1rSd+BZBg==",
- "DQJRsUwO1fOuGlkgJavcwQ==",
- "HITIVoFoWNg04NExe13dNA==",
- "MeKXnEfxeuQu9t3r/qWvcw==",
- "Y7OofF9eUvp7qlpgdrzvkg==",
- "XSb71ae0v+yDxNF5HJXGbQ==",
- "p8W1LgFuW6JSOKjHkx3+aA==",
- "y2JOIoIiT9cV1VxplZPraQ==",
- "MN94B0r5CNAF9sl3Kccdbw==",
- "Q1pdQadt12anX1QRmU2Y/A==",
- "JIC8R48jGVqro6wmG2KXIw==",
- "eWgLAqJOU+fdn8raHb9HCw==",
- "5CMadLqS2KWwwMCpzlDmLw==",
- "H1y2iXVaQYwP0SakN6sa+Q==",
- "CUCjG2UaEBmiYWQc6+AS1Q==",
- "yV3IbbTWAbHMhMGVvgb/ZQ==",
- "80PCwYh4llIKAplcDvMj4g==",
- "fgdUFvQPb5h+Rqz8pzLsmw==",
- "2SI4F7Vvde2yjzMLAwxOog==",
- "kJdY3XEdJS/hyHdR+IN0GA==",
- "IKgNa2oPaFVGYnOsL+GC5Q==",
- "eXFOya6x5inTdGwJx/xtUQ==",
- "uTA0XbiH3fTeVV7u5z0b3w==",
- "onFcHOO1c3pDdfCb5N4WkQ==",
- "Slu3z535ijcs5kzDnR7kfA==",
- "SElc2+YVi3afE1eG1MI7dQ==",
- "ND2hYtAIQGMxBF7o7+u7nQ==",
- "Pv9FWQEDLKnG/9K9EIz4Gw==",
- "6CjtF1S2Y6RCbhl7hMsD+g==",
- "rs2QrN4qzAHCHhkcrAvIfA==",
- "eTMPXa60OTGjSPmvR4IgGw==",
- "pvXHwJ3dwf9GDzfDD9JI3g==",
- "CRmAj3JcasAb4iZ9ZbNIbw==",
- "rcY4Ot40678ByCfqvGOGdg==",
- "l4ddTxbTCW5UmZW+KRmx6A==",
- "NKRzJndo2uXNiNppVnqy1g==",
- "0NrvBuyjcJ2q6yaHpz/FOA==",
- "3YXp1PmMldUjBz3hC6ItbA==",
- "CmVD6nh8b/04/6JV9SovlA==",
- "HjyxyL0db2hGDq2ZjwOOhg==",
- "4PBaoeEwUj79njftnYYqLg==",
- "vFFzkWgGyw6OPADONtEojQ==",
- "czBWiYsQtNFrksWwoQxlOw==",
- "9iB7+VwXRbi6HLkWyh9/kg==",
- "zwY6tCjjya/bgrYaCncaag==",
- "mW6TCje9Zg2Ep7nzmDjSYQ==",
- "5LJqHFRyIwQKA4HbtqAYQQ==",
- "INNBBin5ePwTyhPIyndHHg==",
- "dChBe9QR29ObPFu/9PusLg==",
- "1dhq3ozNCx0o4dV1syLVDA==",
- "nyaekSYTKzfSeSfPrB114Q==",
- "TfNHjSTV8w6Pg6+FaGlxvA==",
- "m/Lp4U75AQyk9c8cX14HJg==",
- "uU1TX5DoDg6EcFKgFcn0GA==",
- "B+TsxQZf0IiQrU8X9S4dsQ==",
- "6b7ue29cBDsvmj1VSa5njw==",
- "RvXWAFwM+mUAPW1MjPBaHA==",
- "pdaY6kZ8+QqkMOInvvACNA==",
- "7nr3zyWL+HHtJhRrCPhYZA==",
- "BXGlq54wIH6R3OdYfSSDRw==",
- "b06KGv5zDYsTxyTbQ9/eyA==",
- "8ylI1AS3QJpAi3I/NLMYdg==",
- "0fpe9E6m3eLp/5j5rLrz2Q==",
- "Qrh7OEHjp80IW+YzQwzlJg==",
- "lqhgbgEqROAdfzEnJ17eXA==",
- "Dulw855DfgIwiK7hr3X8vg==",
- "wsp+vmW8sEqXYVURd/gjHA==",
- "VoPth5hDHhkQcrQTxHXbuw==",
- "TgWe70YalDPyyUz6n88ujg==",
- "9lLhHcrPWI4EsA4fHIIXuw==",
- "UymZUnEEQWVnLDdRemv+Tw==",
- "qnkFUlJ8QT322JuCI3LQgg==",
- "/p/aCTIhi1bU0/liuO/a2Q==",
- "hWoxz5HhE50oYBNRoPp1JQ==",
- "88tB/HgUIUnqWXEX++b5Aw==",
- "Z8T1b9RsUWf59D06MUrXCQ==",
- "BZTzHJGhzhs3mCXHDqMjnQ==",
- "XfY+QUriCAA1+3QAsswdgg==",
- "TZ3ATPOFjNqFGSKY3vP2Hw==",
- "cl4t9FXabQg7tbh1g7a0OA==",
- "9SgfpAY0UhNC6sYGus9GgQ==",
- "d/Wd3Ma1xYyoMByPQnA9Cw==",
- "DDitrRSvovaiXe2nfAtp4g==",
- "s+eHg5K9zZ2Jozu5Oya9ZQ==",
- "z3L2BNjQOMOfTVBUxcpnRA==",
- "v4xIYrfPGILEbD/LwVDDzA==",
- "HoaBBw2aPCyhh0f5GxF+/Q==",
- "i9IRqAqKjBTppsxtPB7rdw==",
- "cWUg7AfqhiiEmBIu+ryImA==",
- "E+02smwQGBIxv42LIF2Y4Q==",
- "W4CfeVp9mXgk04flryL7iA==",
- "9SUOfKtfKmkGICJnvbIDMg==",
- "xweGAZf+Yb3TtwR/sGmGIA==",
- "EJgedRYsZPc4cT9rlwaZhg==",
- "wv4NC9CIpwuGf/nOQYe/oA==",
- "ZXeMG5eqQpZO/SGKC4WQkA==",
- "bzXXzQGZs8ustv0K4leklA==",
- "RkQK9S1ezo+dFYHQP57qrw==",
- "mrinv7KooPQPrLCNTRWCFg==",
- "qIUJPanWmGzTD1XxvHp+6w==",
- "Js7g8Dr6XsnGURA4UNF0Ug==",
- "dpSTNOCPFHN5yGoMpl1EUA==",
- "ugY8rTtJkN4CXWMVcRZiZw==",
- "rqHKB91H3qVuQAm+Ym5cUA==",
- "UjmDFO7uzjl4RZDPeMeNyg==",
- "cu4ZluwohhfIYLkWp72pqA==",
- "ZydKlOpn2ySBW0G3uAqwuw==",
- "LWd0+N3M94n81qd346LfJQ==",
- "VbHoWmtiiPdABvkbt+3XKQ==",
- "J4MC9He6oqjOWsYQh9nl3Q==",
- "ahAbmGJZvUOXrcK6OydNGQ==",
- "Byhi4ymFqqH8uIeoMRvPug==",
- "LSN9GmT6LUHlCAMFqpuPIA==",
- "IAMInfSYb76GxDlAr1dsTg==",
- "qYHdgFAXhF/XcW4lxqfvWQ==",
- "26+yXbqI+fmIZsYl4UhUzw==",
- "AwPTZpC28NJQhf5fNiJuLA==",
- "SESKbGF35rjO64gktmLTWA==",
- "YVlRQHQglkbj3J2nHiP/Hw==",
- "DdaT4JLC7U0EkF50LzIj9w==",
- "G0LChrb0OE5YFqsfTpIL1Q==",
- "5Yrj6uevT8wHRyqqgnSfeg==",
- "NmWmDxwK5FpKlZbo0Rt8RA==",
- "iUsUCB0mfRsE9KPEQctIzw==",
- "Tm4zk2Lmg8w4ITMI31NfTA==",
- "Vu0E+IJXBnc25x4n41kQig==",
- "6wkfN8hyKmKU6tG3YetCmw==",
- "trjM81KANPZrg9iSThWx6Q==",
- "iGuY4VxcotHvMFXuXum7KA==",
- "ICPdBCdONUqPwD5BXU5lrw==",
- "alqHQBz8V446EdzuVfeY5Q==",
- "74FW/QYTzr/P1k6QwVHMcw==",
- "avZp5K7zJvRvJvpLSldNAw==",
- "TIKadc6FAaRWSQUg5OATgg==",
- "PfkWkSbAxIt1Iso0znW0+Q==",
- "Z+bsbVP91KrJvxrujBLrrQ==",
- "mrxlFD3FBqpSZr1kuuwxGg==",
- "nUgYO7/oVNSX8fJqP2dbdg==",
- "tVhXk9Ff3wAg56FbdNtcFg==",
- "DdiNGiOSoIZxrMrGNvqkXw==",
- "CDsanJz7e3r/eQe+ZYFeVQ==",
- "wVfSZYjMjbTsD2gaSbwuqQ==",
- "6c0iuya20Ys8BsvoI4iQaQ==",
- "qCPfJTR8ecTw6u6b1yHibA==",
- "fZrj3wGQSt8RXv0ykJROcQ==",
- "gR3B8usSEb0NLos51BmJQg==",
- "vTAmgfq3GxL4+ubXpzwk5w==",
- "jLkmUZ6fV56GfhC0nkh4GA==",
- "3v09RHCPTLUztqapThYaHg==",
- "nULSbtw2dXbfVjZh33pDiA==",
- "IHhyR6+5sZXTH+/NrghIPg==",
- "tnUtJ/DQX9WaVJyTgemsUA==",
- "7xTKFcog69nTmMfr5qFUTA==",
- "IshzWega6zr3979khNVFQQ==",
- "Ng5v/B9Z10TTfsDFQ/XrXQ==",
- "hnCUnoxofUiqQvrxl73M8w==",
- "VPa7DG6v7KnzMvtJPb88LQ==",
- "4LtQrahKXVtsbXrEzYU1zQ==",
- "Ev/xjTi7akYBI7IeZJ4Igw==",
- "41WEjhYUlG6jp2UPGj11eQ==",
- "JvXTdChcE3AqMbFYTT3/wg==",
- "2rOkEVl90EPqfHOF5q2FYw==",
- "mjFBVRJ7TgnJx+Q74xllPg==",
- "Uy4QI8D2y1bq/HDNItCtAw==",
- "wMOE/pEKVIklE75xjt6b6w==",
- "ZcuIvc8fDI+2uF0I0uLiVA==",
- "CX/N/lHckmAtHKysYtGdZA==",
- "j8to4gtSIRYpCogv2TESuQ==",
- "iS9wumBV5ktCTefFzKYfkA==",
- "ewPT4dM12nDWEDoRfiZZnA==",
- "vWn9OPnrJgfPavg4D6T/HQ==",
- "J/PNYu4y6ZMWFFXsAhaoow==",
- "catI+QUNk3uJ+mUBY3bY8Q==",
- "F8tEIT5EhcvLNRU5f0zlXQ==",
- "zyA9f5J7mw5InjhcfeumAQ==",
- "MlOOZOwcRGIkifaktEq0aQ==",
- "Pt3i49uweYVgWze3OjkjJA==",
- "sfIClgTMtZo9CM9MHaoqhQ==",
- "HeQbUuBM9sqfXFXRBDISSw==",
- "SFn78uklZfMtKoz2N0xDaQ==",
- "H6j2nPbBaxHecXruxiWYkA==",
- "fU32wmMeD44UsFSqFY0wBA==",
- "hDILjSpTLqJpiSSSGu445A==",
- "ieEAgvK9LsWh2t6DsQOpWA==",
- "xfjBQk3CrNjhufdPIhr91A==",
- "j+8/VARfbQSYhHzj0KPurQ==",
- "/zFLRvi75UL8qvg+a6zqGg==",
- "U0KmEI6e5zJkaI4YJyA5Ew==",
- "uXvr6vi5kazZ9BCg2PWPJA==",
- "jEqP0dyHKHiUjZ9dNNGTlQ==",
- "1xWx5V3G9murZP7srljFmA==",
- "OIwtfdq37eQ0qoXuB2j7Hw==",
- "fUAy3f9bAglLvZWvkO2Lug==",
- "duRFqmvqF93uf/vWn8aOmg==",
- "ysRQ+7Aq7eVLOp88KnFVMA==",
- "CkZUmKBAGu0FLpgPDrybpw==",
- "TrLmfgwaNATh24eSrOT+pw==",
- "83wtvSoSP9FVBsdWaiWfpA==",
- "pUfWmRXo70yGkUD/x5oIvA==",
- "PybPZhJErbRTuAafrrkb3g==",
- "8hsfXqi4uiuL+bV1VrHqCw==",
- "TVlHoi8J7sOZ2Ti7Dm92cQ==",
- "za4rzveYVMFe3Gw531DQJQ==",
- "JKphO0UYjFqcbPr6EeBuqg==",
- "hqeSvwu8eqA072iidlJBAw==",
- "bUF0JIfS4uKd3JZj2xotLQ==",
- "hKOsXOBoFTl/K4xE+RNHDA==",
- "JHBjKpCgSgrNNACZW1W+1w==",
- "Rrq0ak9YexLqqbSD4SSXlw==",
- "+NmjwjsPhGJh9bM10SFkLw==",
- "xMIHeno2qj3V8q9H1xezeg==",
- "TcFinyBrUoAEcLzWdFymow==",
- "Rvchz/xjcY9uKiDAkRBMmA==",
- "TYlnrwgyeZoRgOpBYneRAg==",
- "PbnxuVerGwHyshkumqAARg==",
- "iFtadcw8v6betKka9yaJfg==",
- "7wgT9WIiMVcrj48PVAMIgw==",
- "2HHqeGRMfzf3RXwVybx+ZQ==",
- "tdgI9v7cqJsgCAeW1Fii1A==",
- "4ZFYKa7ZgvHyZLS6WpM8gA==",
- "gB8wkuIzvuDAIhDtNT1gyA==",
- "g1ELwsk6hQ+RAY1BH640Pg==",
- "UZoibx+y1YJy/uRSa9Oa2w==",
- "yS/yMnJDHW0iaOsbj4oPTg==",
- "JzW+yhrjXW1ivKu3mUXPXg==",
- "/wIZAye9h1TUiZmDW0ZmYA==",
- "YK+q7uJObkQZvOwQ9hplMg==",
- "Rs8deApkoosIJSfX7NXtAA==",
- "MsCloSmTFoBpm7XWYb+ueQ==",
- "3ltw31yJuAl4VT6MieEXXw==",
- "1+qmrbC8c7MJ6pxmDMcKuA==",
- "AYxGETZs477n2sa1Ulu/RQ==",
- "Q0TJZxpn3jk67L7N+YDaNA==",
- "OGpsXRHlaN8BvZftxh1e7A==",
- "UbABE6ECnjB+9YvblE9CYw==",
- "kZ0D191c/uv4YMG15yVLDw==",
- "QWURrsEgxbJ8MWcaRmOWqw==",
- "xiFlcSfa/gnPiO+LwbixcQ==",
- "Szko0IPE7RX2+mfsWczrMg==",
- "Ugt8HVC/aUzyWpiHd0gCOQ==",
- "8j9GVPiFdfIRm/+ho7hpoA==",
- "KR401XBdgCrtVDSaXqPEiA==",
- "d0NBFiwGlQNclKObRtGVMQ==",
- "XEwOJG24eaEtAuBWtMxhwg==",
- "0Y6iiZjCwPDwD/CwJzfioQ==",
- "MvMbvZNKbXFe2XdN+HtnpQ==",
- "fsoXIbq0T0nmSpW8b+bj+g==",
- "Uje3Ild84sN41JEg3PEHDg==",
- "i6ZYpFwsyWyMJNgqUMSV1A==",
- "+P5q4YD1Rr5SX26Xr+tzlw==",
- "z4oKy2wKH+sbNSgGjbdHGw==",
- "XwKWd03sAz8MmvJEuN08xA==",
- "Xv0mNYedaBc57RrcbHr9OA==",
- "9oUawSwUGOmb0sDn3XS6og==",
- "9RGIQ2qyevNbSSEF36xk/A==",
- "q8YF9G2jqydAxSqwyyys5Q==",
- "m5JIUETVXcRza4VL4xlJbg==",
- "aRpdnrOyu5mWB1P5YMbvOA==",
- "rM/BOovNgnvebKMxZQdk7g==",
- "fQS0jnQMnHBn7+JZWkiE/g==",
- "gAoV4BZYdW1Wm712YXOhWQ==",
- "hCzsi1yDv9ja5/o7t94j9Q==",
- "CoLvjQDQGldGDqRxfQo+WQ==",
- "pfGcaa49SM3S6yJIPk/EJQ==",
- "yYp4iuI5f/y/l1AEJxYolQ==",
- "Jj4IrSVpqQnhFrzNvylSzA==",
- "4jeOFKuKpCmMXUVJSh9y0g==",
- "+NMUaQ7XPsAi0rk7tTT9wQ==",
- "Jt4Eg6MJn8O4Ph/K2LeSUA==",
- "CiiUeJ0LeWfm7+gmEmYXtg==",
- "c5Tc7rTFXNJqYyc0ppW+Iw==",
- "4KJZPCE9NKTfzFxl76GWjg==",
- "aXs9qTEXLTkN956ch3pnOA==",
- "f5Xo7F1uaiM760Qbt978iw==",
- "wpZqFkKafFpLcykN2IISqg==",
- "vIORTYSHFIXk5E2NyIvWcQ==",
- "prOsOG0adI4o+oz50moipw==",
- "blygTgAHZJ3NzyAT33Bfww==",
- "rBt6L/KLT7eybxKt5wtFdg==",
- "vMuaLvAntJB5o7lmt/kVXA==",
- "iujlt9fXcUXEYc+T2s5UjA==",
- "LyYPOZKm8bBegMr5NTSBfg==",
- "ZtWvgitOSRDWq7LAKYYd4Q==",
- "kh51WUI5TRnKhur6ZEpRTQ==",
- "VzQ1NwNv9btxUzxwVqvHQg==",
- "8fJLQeIHaTnJ8wGqUiKU6g==",
- "vvEH5A39TTe1AOC11rRCLA==",
- "dihDsG7+6aocG6M9BWrCzQ==",
- "3jqsY8/xTWELmu/az3Daug==",
- "mpOtwBvle+nyY6lUBwTemw==",
- "E1CvxFbuu9AYW604mnpGTw==",
- "1LPC0BzhJbepHTSAiZ3QTw==",
- "XpGXh76RDgXC4qnTCsnNHA==",
- "3Gg9N7vjAfQEYOtQKuF/Eg==",
- "+WpF8+poKmHPUBB4UYh/ig==",
- "UNt7CNMtltJWq8giDciGyA==",
- "RIZYDgXqsIdTf9o2Tp/S7g==",
- "0QCQORCYfLuSbq94Sbt0bQ==",
- "hvsZ5JmVevK1zclFYmxHaw==",
- "3+9nURtBK3FKn0J9DQDa3g==",
- "jdVMQqApseHH3fd91NFhxg==",
- "VX+cVXV8p9i5EBTMoiQOQQ==",
- "I5qDndyelK4Njv4YrX7S6w==",
- "rWliqgfZ3/uCRBOZ9sMmdA==",
- "vwno3vugCvt6ooT3CD4qIQ==",
- "cffrYrBX3UQhfX1TbAF+GQ==",
- "nOiwBFnXxCBfPCHYITgqNg==",
- "LQttmX92SI94+hDNVd8Gtw==",
- "iCF+GWw9/YGQXsOOPAnPHQ==",
- "nwtCsN1xEYaHvEOPzBv+qQ==",
- "CQpJFrpOvcQhsTXIlJli+Q==",
- "tYeIZjIm0tVEsYxH1iIiUQ==",
- "iCnm5fPmSmxsIzuRK6osrA==",
- "tX8X8KoxUQ8atFSCxgwE1Q==",
- "hZlX6qOfwxW5SPfqtRqaMw==",
- "2aIx9UdMxxZWvrfeJ+DcTw==",
- "TlJizlASbPtShZhkPww4UA==",
- "p+bx+/WQWALXEBCTnIMr4w==",
- "4VR5LiXLew6Nyn91zH9L4w==",
- "bfUD03N2PRDT+MZ+WFVtow==",
- "cTvDd8okNUx0RCMer6O8sw==",
- "49jZr/mEW6fvnyzskyN40w==",
- "vHmQUl4WHXs1E/Shh+TeyA==",
- "fgXfRuqFfAu8qxbTi4bmhA==",
- "Wn+Vj4eiWx0WPUHr3nFbyA==",
- "2SwIiUwT4vRZPrg7+vZqDA==",
- "nkedTagkmf6YE4tEY+0fKw==",
- "8nOTDhFyZ8YUA4b6M5p84w==",
- "qnzWszsyJhYtx8wkMN6b1g==",
- "ka7pMp8eSiv92WgAsz2vdA==",
- "pGQEWJ38hb/ZYy2P1+FIuw==",
- "cVhdRFuZaW/09CYPmtNv5g==",
- "prCOYlboBnzmLEBG/OeVrQ==",
- "oIWwTbkVS5DDL47mY9/1KQ==",
- "PKtXc4x4DEjM45dnmPWzyg==",
- "f9ywiGXsz+PuEsLTV3zIbQ==",
- "6G2bD3Y7qbGmfPqH9TqLFA==",
- "DMHmyn2U2n+UXxkqdvKpnA==",
- "XOG1PYgqoG8gVLIbVLTQgg==",
- "1FSrgkUXgZot2CsmbAtkPw==",
- "BxFP+4o6PSlGN78eSVT1pA==",
- "EZVQGsXTZvht1qedRLF8bQ==",
- "eYAQWuWZX2346VMCD6s7/A==",
- "jkUpkLoIXuu7aSH8ZghIAQ==",
- "mXPtbPaoNAAlGmUMmJEWBQ==",
- "HLesnV3DL+FhWF3h6RXe8g==",
- "nDAsSla+9XfAlQSPsXtzPA==",
- "RAECgYZmcF4WxcFcZ4A0Ww==",
- "W+M4BcYNmjj7xAximDGWsA==",
- "ueODvMv/f9ZD8O0aIHn4sg==",
- "cszpMdGbsbe6BygqMlnC9Q==",
- "siHwJx6EgeB1gBT9z/vTyw==",
- "FN7oLGBQGHXXn5dLnr/ElA==",
- "Tud+AMyuFkWYYZ73yoJGpQ==",
- "TuaG3wRdM9BWKAxh2UmAsg==",
- "8CjmgWQSAAGcXX9kz3kssw==",
- "ays5/F7JANIgPHN0vp2dqQ==",
- "PCOGl7GIqbizAKj/sZmlwQ==",
- "rZKD8oJnIj5fSNGiccfcvA==",
- "gFEnTI8os2BfRGqx9p5x8w==",
- "5r1ZsGkrzNQEpgt/gENibw==",
- "1YO9G8qAhLIu2rShvekedw==",
- "6ZKmm7IW7IdWuVytLr68CQ==",
- "mMfn8OaKBxtetweulho+xQ==",
- "GQJxu1SoMBH14KPV/G/KrQ==",
- "IYIP2UBRyWetVfYLRsi1SQ==",
- "Jit0X0srSNFnn8Ymi1EY+g==",
- "ARCWkHAnVgBOIkCDQ19ZuA==",
- "qA0sTaeNPNIiQbjIe1bOgQ==",
- "iGI9uqMoBBAjPszpxjZBWQ==",
- "+L1FDsr5VQtuYc2Is5QGjw==",
- "4XNUmgwxsqDYsNmPkgNQYQ==",
- "Yig+Wh18VIqdsmwtwfoUQw==",
- "uqp92lAqjec8UQYfyjaEZw==",
- "QiozlNcQCbqXtwItWExqJQ==",
- "JFHutgSe1/SlcYKIbNNYwQ==",
- "Y26jxXvl79RcffH8O8b9Ew==",
- "bQ7J5mebp38rfP/fuqQOsg==",
- "HI4ZIE5s8ez8Rb+Mv39FxA==",
- "OzH7jTcyeM7RPVFtBdakpQ==",
- "HLxROy6fx/mLXFTDSX4eLA==",
- "s5RUHVRNAoKMuPR/Jkfc2Q==",
- "X9QAaNjgiOeAWSphrGtyVw==",
- "ALJWKUImVE40MbEooqsrng==",
- "9MDG0WeBPpjGJLEmUJgBWg==",
- "9RXymE9kCkDvBzWGyMgIWA==",
- "vFox1d3llOeBeCUZGvTy0A==",
- "r3lQAYOYhwlLnDWQIunKqg==",
- "2os5s7j7Tl46ZmoZJH8FjA==",
- "O5N2yd+QQggPBinQ+zIhtQ==",
- "ZygAjaN62XhW5smlLkks+Q==",
- "AgDJsaW0LkpGE65Kxk5+IA==",
- "omAjyj1l6gyQAlBGfdxJTw==",
- "fY9VATklOvceDfHZDDk57A==",
- "StpQm/cQF8cT0LFzKUhC5w==",
- "CYJB3qy5GalPLAv1KGFEZA==",
- "coGEgMVs2b314qrXMjNumQ==",
- "DQQB/l55iPN9XcySieNX3A==",
- "6dshA8knH5qqD+KmR/kdSQ==",
- "qyRmvxh8p4j4f+61c10ZFQ==",
- "apWEPWUvMC24Y+2vTSLXoA==",
- "RzX2OfSFEd//LhZwRwzBVw==",
- "NdULoUDGhIolzw1PyYKV0A==",
- "5w/c9WkI/FA+4lOtdPxoww==",
- "bV9r7j2kNJpDCEM5E2339Q==",
- "vbyiKeDCQ4q9dDRI1Q0Ong==",
- "9xIgKpZGqq0/OU6wM5ZSHw==",
- "RYkDwwng6eeffPHxt8iD9A==",
- "w5N/aHbtOIKzcvG3GlMjGA==",
- "3P2aJxV8Trll2GH9ptElYA==",
- "yteeQr3ub2lDXgLziZV+DQ==",
- "yqtj8GfLaUHYv/BsdjxIVw==",
- "NyF+4VRog7etp90B9FuEjA==",
- "uwA6N5LptSXqIBkTO0Jd7Q==",
- "6lVSzYUQ/r0ep4W2eCzFpg==",
- "1d7RPHdZ9qzAbG3Vi9BdFA==",
- "7br49X11xc2GxQLSpZWjKQ==",
- "peMW+rpwmXrSwplVuB/gTA==",
- "RqYpA5AY7mKPaSxoQfI1CA==",
- "dqVw2q2nhCvTcW82MT7z0g==",
- "5S5/asYfWjOwnzYpbK6JDw==",
- "NvkR0inSzAdetpI4SOXGhw==",
- "tIqwBotg052wGBL65DZ+yA==",
- "S4RvORcJ3m6WhnAgV4YfYA==",
- "UAqf4owQ+EmrE45hBcUMEw==",
- "4aPU6053cfMLHgLwAZJRNg==",
- "3Y6/HqS1trYc9Dh778sefg==",
- "ck86G8HsbXflyrK7MBntLg==",
- "GLmWLXURlUOJ+PMjpWEXVA==",
- "jNJQ6otieHBYIXA9LjXprg==",
- "AsAHrIkMgc3RRWnklY9lJw==",
- "FCLQocqxxhJeleARZ6kSPg==",
- "3Leu2Sc+YOntJFlrvhaXeg==",
- "hSkY45CeB6Ilvh0Io4W6cg==",
- "DwrNdmU5VFFf3TwCCcptPA==",
- "u2WQlcMxOACy6VbJXK4FwA==",
- "E9IlDyULLdeaVUzN6eky8g==",
- "EXveRXjzsjh8zbbQY2pM9g==",
- "5VO1inwXMvLDBQSOahT6rg==",
- "HaHTsLzx7V3G1SFknXpGxA==",
- "MMaegl2Md9s/wOx5o9564w==",
- "mpWNaUH9kn4WY26DWNAh3Q==",
- "w3G+qXXqqKi8F5s+qvkBUg==",
- "wM8tnXO4PDlLVHspZFcjYw==",
- "LFcpCtnSnsCPD2gT/RA+Zg==",
- "bhVbgJ4Do4v56D9mBuR/EA==",
- "yU3N0HMSP5etuHPNrVkZtg==",
- "FzqIpOcTsckSNHExrl+9jg==",
- "BYz52gYI/Z6AbYbjWefcEA==",
- "h3vYYI9yhpSZV2MQMJtwFQ==",
- "adJAjAFyR2ne1puEgRiH+g==",
- "eDcyiPaB954q5cPXcuxAQw==",
- "40gCrW4YWi+2lkqMSPKBPg==",
- "ulLuTZqhEDkX0EJ3xwRP9A==",
- "y4iBxAMn/KzMmaWShdYiIw==",
- "ilBBNK/IV69xKTShvI94fQ==",
- "0HN6MIGtkdzNPsrGs611xA==",
- "twPn6wTGqI0aR//0wP3xtA==",
- "3UNJ37f+gnNyYk9yLFeoYA==",
- "4SdHWowXgCpCDL28jEFpAw==",
- "Mr5mCtC53+wwmwujOU/fWw==",
- "81pAhreEPxcKse+++h1qBg==",
- "KmcGEE0pacQ/HDUgjlt7Pg==",
- "Gt4/MMrLBErhbFjGbiNqQQ==",
- "lf1fwA0YoWUZaEybE+LyMQ==",
- "RIVYGO2smx9rmRoDVYMPXw==",
- "rJ9qVn8/2nOxexWzqIHlcQ==",
- "lfOLLyZNbsWQgHRhicr4ag==",
- "wgH1GlUxWi6/yLLFzE76uQ==",
- "Qg1ubGl+orphvT990e5ZPA==",
- "Z5B+uOmPZbpbFWHpI9WhPw==",
- "snGTzo540cCqgBjxrfNpKw==",
- "ZqkmoGB0p5uT5J6XBGh7Tw==",
- "uPi8TsGY3vQsMVo/nsbgVQ==",
- "Y5XR8Igvau/h+c1pRgKayg==",
- "ZmVpw1TUVuT13Zw/MNI5hQ==",
- "60suecbWRfexSh7C67RENA==",
- "kZ/mZZg9YSDmk2rCGChYAg==",
- "OpL+vHwPasW30s2E1TYgpA==",
- "ZVnErH1Si4u51QoT0OT7pA==",
- "3pi3aNVq1QNJmu1j0iyL0g==",
- "tb5+2dmYALJibez1W4zXgA==",
- "jOPdd330tB6+7C29a9wn0Q==",
- "5oD/aGqoakxaezq43x0Tvw==",
- "HdB7Se47cWjPgpJN0pZuiA==",
- "6WhHPWlqEUqXC52rHGRHjA==",
- "WLwpjgr9KzevuogoHZaVUw==",
- "E8yMPK7W0SIGTK6gIqhxiQ==",
- "1/Hxu8M9N/oNwk8bCj4FNQ==",
- "Uo1ebgsOxc3eDRds1ah3ag==",
- "5pqqzC/YmRIMA9tMFPi7rg==",
- "ri4AOITPdB1YHyXV+5S51g==",
- "HfvsiCQN/3mT0FabCU5ygQ==",
- "UQTQk5rrs6lEb1a+nkLwfg==",
- "VH70dN82yPCRctmAHMfCig==",
- "yD3Dd4ToRrl53k/2NSCJiw==",
- "fO0+6TsjL+45p9mSsMRiIg==",
- "fM5uYpkvJFArnYiQ3MrQnA==",
- "V+QzdKh5gxTPp2yPC9ZNEg==",
- "XHHEg/8KZioW/4/wgSEkbQ==",
- "2abfl3N46tznOpr+94VONQ==",
- "gxwbqZDHLbQVqXjaq42BCg==",
- "WnHK5ZQDR6Da5cGODXeo0A==",
- "SChDh/Np1HyTPWfICfE1uA==",
- "yhexr/OFKfZl0o3lS70e4w==",
- "N65PqIWiQeS082D6qpfrAg==",
- "RM5CpIiB94Sqxi462G7caA==",
- "CBAGa5l95f3hVzNi6MPWeQ==",
- "OHJBT2SEv5b5NxBpiAf7oQ==",
- "p48i7AfSSAyTdJSyHvOONw==",
- "/SP6pOdYFzcAl2OL05z4uQ==",
- "N8dXCawxSBX40fgRRSDqlQ==",
- "bMWFvjM8eVezU1ZXKmdgqw==",
- "Um1ftRBycvb+363a90Osog==",
- "QAz7FA+jpz9GgLvwdoNTEQ==",
- "qO4HlyHMK5ygX+6HbwQe8w==",
- "UgvtdE2eBZBUCAJG/6c0og==",
- "q5g3c8tnQTW2EjNfb2sukw==",
- "gsC/mWD8KFblxB0JxNuqJw==",
- "SVFbcjXbV7HRg+7jUrzpwg==",
- "bz294kSG4egZnH2dJ8HwEg==",
- "ybpTgPr3SjJ12Rj5lC/IMA==",
- "yDrAd1ot38soBk7zKdnT8A==",
- "BB/R8oQOcoE4j63Hrh8ifg==",
- "GNrMvNXQkW7PydlyJa+f1w==",
- "w0PKdssv+Zc5J/BbphoxpA==",
- "D5ibbo8UJMfFZ48RffuhgQ==",
- "MdvhC1cuXqni/0mtQlSOCw==",
- "wQKL8Ga6JQkpZ7yymDkC3w==",
- "o1uhaQg5/zfne84BFAINUQ==",
- "Ft2wXUokFdUf6d2Y/lwriw==",
- "sLJrshdEANp0qk2xOUtTnQ==",
- "jx7rpxbm1NaUMcE2ktg5sA==",
- "ZQ0ZnTsZKWxbRj7Tilh24Q==",
- "KhrIIHfqXl9zGE9aGrkRVg==",
- "jS0JuioLGAVaHdo/96JFoQ==",
- "tr+U/vt+MIGXPRQYYWJfRg==",
- "TXab/hqNGWaSK+fXAoB2bg==",
- "0K4NBxqEa3RYpnrkrD/XjQ==",
- "3oMTbWf7Bv83KRlfjNWQZA==",
- "yLAhLNezvqVHmN1SfMRrPw==",
- "ZYW30FfgwHmW6nAbUGmwzA==",
- "CZNoTy26VUQirvYxSPc/5A==",
- "CF1sAlhjDQY/KWOBnSSveA==",
- "+CLf5witKkuOvPCulTlkqw==",
- "1m1yD4L9A7Q1Ot+wCsrxJQ==",
- "2E41e0MgM3WhFx2oasIQeA==",
- "mDXHuOmI4ayjy2kLSHku1Q==",
- "sCLMrLjEUQ6P1L8tz90Kxg==",
- "zDUZCzQesFjO1JI3PwDjfg==",
- "x/BIDm6TKMhqu/gtb3kGyw==",
- "DEaZD/8aWV6+zkiLSVN/gA==",
- "7dz+W494zwU5sg63v5flCg==",
- "Y5iDQySR2c3MK7RPMCgSrw==",
- "GglPoW5fvr4JSM3Zv99oiA==",
- "myzvc+2MfxGD9uuvZYdnqQ==",
- "V9G1we3DOIQGKXjjPqIppQ==",
- "gYvdNJCDDQmNhtJ6NKSuTA==",
- "rXtGpN17Onx8LnccJnXwJQ==",
- "/a+bLXOq02sa/s8h7PhUTg==",
- "htNVAogFakQkTX6GHoCVXg==",
- "eshD40tvOA6bXb0Fs/cH3A==",
- "K1CGbMfhlhIuS0YHLG30PQ==",
- "aOeJZUIZM9YWjIEokFPnzQ==",
- "r0hAwlS0mPZVfCSB+2G6uQ==",
- "0q+erphtrB+6HBnnYg7O6w==",
- "bkRdUHAksJZGzE1gugizYQ==",
- "J8v2f6hWFu8oLuwhOeoQjA==",
- "qkvEep4vvXhc2ZJ6R449Mg==",
- "6HGeEPyTAu9oiKhNVLjQnA==",
- "JoATsk/aJH0UcDchFMksWA==",
- "QozQL0DTtr+PXNKifv6l6g==",
- "HiAgt86AyznvbI2pnLalVQ==",
- "lY+tivtsfvU0LJzBQ6itYQ==",
- "EfXDc6h69aBPE6qsB+6+Ig==",
- "gnAIpoCyl3mQytLFgBEgGA==",
- "p2JPOX8yDQ0agG+tUyyT/g==",
- "zeELfk015D5krExLKRUYtg==",
- "wDiGoFEfIVEDyyc4VpwhWQ==",
- "7Ephy+mklG2Y3MFdqmXqlA==",
- "8ZFPMJJYVJHsfRpU4DigSg==",
- "ocRh5LR1ZIN9Johnht8fhQ==",
- "l5f3I6osM9oxLRAwnUnc5A==",
- "yxCyBXqGWA735JEyljDP7Q==",
- "qE/h/Z+6buZWf+cmPdhxog==",
- "HCu4ZMrcLMZbPXbTlWuvvQ==",
- "TDrq23VUdzEU/8L5i8jRJQ==",
- "L+N/6geuokiLPPSDXM9Qkg==",
- "v6jZicMNM3ysm3U5xu0HoQ==",
- "b85nxzs8xiHxaqezuDVWvg==",
- "ca+kx+kf7JuZ3pfYKDwFlg==",
- "KlY5TGg0pR/57TVX+ik1KQ==",
- "3jmCreW5ytSuGfmeLv7NfQ==",
- "ucLMWnNDSqE4NOCGWvcGWw==",
- "NSrzwNlB0bde3ph8k6ZQcQ==",
- "nL4iEd3b5v4Y9fHWDs+Lrw==",
- "W2x0SBzSIsTRgyWUCOZ/lg==",
- "ifZM0gBm9g9L09YlL+vXBg==",
- "4WcFEswYU/HHQPw77DYnyA==",
- "TLJbasOoVO435E5NE5JDcA==",
- "WyCFB4+6lVtlzu3ExHAGbQ==",
- "BW0A06zoQw7S+YMGaegT7g==",
- "qP1cCE4zsKGTPhjbcpczMw==",
- "UVEZPoH9cysC+17MKHFraw==",
- "eQ45Mvf5in9xKrP6/qjYbg==",
- "fOARCnIg/foF/6tm7m9+3w==",
- "lK2xe+OuPutp4os0ZAZx5w==",
- "Tug3eh+28ttyf+U7jfpg5w==",
- "ENFfP93LA257G6pXQkmIdg==",
- "FuWspiqu5g8Eeli5Az+BkA==",
- "kIGxCUxSlNgsKZ45Al1lWw==",
- "RzeH+G3gvuK1z+nJGYqARQ==",
- "0ofMbUCA3/v5L8lHnX4S5w==",
- "VI8pgqBZeGWNaxkuqQVe7g==",
- "x6lNRGgJcRxgKTlzhc1WPg==",
- "La0gzdbDyXUq6YAXeKPuJA==",
- "dAq8/1JSQf1f4QPLUitp0g==",
- "WN7lFJfw4lSnTCcbmt5nsg==",
- "2aDK0tGNgMLyxT+BQPDE8Q==",
- "9W57pTzc572EvSURqwrRhw==",
- "37Nkh06O979nt7xzspOFyQ==",
- "4TQkMnRsXBobbtnBmfPKnA==",
- "f/BjtP5fmFw2dRHgocbFlg==",
- "9vEgJVJLEfed6wJ7hBUGgQ==",
- "HRWYX2XOdsOqYzCcqkwIyw==",
- "StDtLMlCI75g4XC59mESEQ==",
- "99+SBN45LwKCPfrjUKRPmw==",
- "HbT6W1Ssd3W7ApKzrmsbcg==",
- "l8/KMItWaW3n4g1Yot/rcQ==",
- "s7iW1M6gkAMp+D/3jHY58w==",
- "GWwJ32SZqD5wldrXUdNTLA==",
- "YhLEPsi/TNyeUJw69SPYzQ==",
- "g0aTR8aJ0uVy3YvGYu5xrw==",
- "m6get5wjq5j1i5abnpXuZQ==",
- "ymtA8EMPMgmMcimWZZ0A1Q==",
- "HEcOaEd9zCoOVbEmroSvJg==",
- "F8l+Qd9TZgzV+r8G584lKA==",
- "3yDD+xT8iRfUVdxcc7RxKw==",
- "1eRUCdIJe3YGD5jOMbkkOg==",
- "DO1/jfP/xBI9N0RJNqB2Rw==",
- "SiSlasZ+6U2IZYogqr2UPg==",
- "tBQDfy48FnIOZI04rxfdcA==",
- "HEghmKg3GN60K7otpeNhaA==",
- "mTLBkP+yGHsdk5g7zLjVUw==",
- "RgtwfY5pTolKrUGT+6Pp6g==",
- "EyIsYQxgFa4huyo/Lomv7g==",
- "HwLSUie8bzH+pOJT3XQFyg==",
- "7Tauesu7bgs5lJmQROVFiQ==",
- "ojugpLIfzflgU2lonfdGxA==",
- "ZqjnqxZE/BjOUY0CMdVl0g==",
- "oQjugfjraFziga1BcwRLRA==",
- "JXCYeWjFqcdSf6QwB54G+A==",
- "TeBGJCqSqbzvljIh9viAqA==",
- "1Gpj4TPXhdPEI4zfQFsOCg==",
- "asouSfUjJa8yfMG7BBe+fA==",
- "ccy3Ke2k4+evIw0agHlh3w==",
- "CzSumIcYrZlxOUwUnLR2Zw==",
- "9QFYrCXsGsInUb4SClS3cQ==",
- "3RTtSaMp1TZegJo5gFtwwA==",
- "aTWiWjyeSDVY/q8y9xc2zg==",
- "UK+R+hAoVeZ4xvsoZjdWpw==",
- "rHagXw+CkF3uEWPWDKXvog==",
- "MfkyURTBfkNZwB+wZKjP4g==",
- "Qf7JFJJuuacSzl6djUT2EQ==",
- "K1RL+tLjICBvMupe7QppIQ==",
- "R2OOV18CV/YpWL1xzr/VQg==",
- "o+areESiXgSO0Lby56cBeg==",
- "VPqyIomYm7HbK5biVDvlpw==",
- "pw1jplCdTC+b0ThX0FXOjw==",
- "gTnsH3IzALFscTZ1JkA9pw==",
- "JYJvOZ4CHktLrYJyAbdOnA==",
- "P8lUiLFoL100c9YSQWYqDA==",
- "LATQEY7f47i77M6p11wjWA==",
- "U9kE50Wq5/EHO03c5hE4Ug==",
- "pFKzcRHSUBqSMtkEJvrR1Q==",
- "vHVXsAMQqc0qp7HA5Q+YkA==",
- "3XyoREdvhmSbyvAbgw2y/A==",
- "qOEIUWtGm5vx/+fg4tuazg==",
- "a6IszND1m+6w+W+CvseC7g==",
- "KuNY8qAJBce+yUIluW8AYw==",
- "5Wcq+6hgnWsQZ/bojERpUw==",
- "l2ZB9TvT68rn8AAN4MdxWw==",
- "h5HsEsObPuPFqREfynVblw==",
- "fvm0IQfnbfZFETg9v3z/Fg==",
- "QV0OG5bpjrjku4AzDvp9yw==",
- "nMuMtK/Zkb3Xr34oFuX/Lg==",
- "jMZKSMP2THqwpWqJNJRWdw==",
- "fX4G68hFL7DmEmjbWlCBJQ==",
- "ZlBNHAiYsfaEEiPQ1z+rCA==",
- "ckugAisBNX18eQz+EnEjjw==",
- "Dt6hvhPJu94CJpiyJ5uUkg==",
- "eYE9No9sN5kUZ5ePEyS3+Q==",
- "Tp52d1NndiC9w3crFqFm9g==",
- "MBjMU/17AXBK0tqyARZP5w==",
- "1EI9aa955ejNo1dJepcZJw==",
- "FqWLkhWl0iiD/u2cp+XK9A==",
- "j8nMH8mK/0Aae7ZkqyPgdg==",
- "ZtmnX24AwYAXHb2ZDC6MeQ==",
- "who8uUamlHWHXnBf7dwy4A==",
- "CmkmWcMK4eqPBcRbdnQvhw==",
- "61V74uIjaSfZM8au1dxr1A==",
- "778O1hdVKHLG2q9dycUS0Q==",
- "IdadoCPmSgHDHzn1zyf8Jw==",
- "Z2rwGmVEMCY6nCfHO3qOzw==",
- "Q3TpCE+wnmH/1h/EPWsBtQ==",
- "HnVfyqgJ+1xSsN4deTXcIA==",
- "XgPHx2+ULpm14IOZU2lrDg==",
- "IbN736G1Px5bsYqE5gW1JQ==",
- "nY/H7vThZ+dDxoPRyql+Cg==",
- "wlWxtQDJ+siGhN2fJn3qtw==",
- "MrbEUlTagbesBNg0OemHpw==",
- "LJtRcR70ug6UHiuqbT6NGw==",
- "hSNZWNKUtDtMo6otkXA/DA==",
- "LawT9ZygiVtBk0XJ+KkQgQ==",
- "DLzHkTjjuH6LpWHo2ITD0Q==",
- "i8XXN7jcrmhnrOVDV8a2Hw==",
- "ogcuGHUZJkmv+vCz567a2g==",
- "rUp5Mfc57+A8Q29SPcvH/Q==",
- "6706ncrH1OANFnaK6DUMqQ==",
- "gK7dhke5ChQzlYc/bcIkcg==",
- "t3Txxjq43e/CtQmfQTKwWg==",
- "6ZMs9vCzK9lsbS6eyzZlIA==",
- "uTHBqApdKOAgdwX3cjrCYQ==",
- "zirOtGUXeRL22ezfotZfQg==",
- "iK0dWKHjVVexuXvMWJV9pg==",
- "uzEgwx1iAXAvWPKSVwYSeQ==",
- "FHvI0IVNvih8tC7JgzvCOw==",
- "jjNMPXbmpFNsCpWY0cv3eg==",
- "/cJ0Nn5YbXeUpOHMfWXNHQ==",
- "WkSJpxBa45XJRWWZFee7hw==",
- "edlXkskLx287vOBZ9+gVYg==",
- "+Pl0bSMBAdXpRIA+zE02JA==",
- "3xw8+0/WU51Yz4TWIMK8mw==",
- "GdTanUprpE3X/YjJDPpkhQ==",
- "qnsBdl050y9cUaWxbCczRw==",
- "pnJnBzAJlO4j3IRqcfmhkQ==",
- "USq1iF90eUv41QBebs3bhw==",
- "QH3lAwOYBAJ0Fd5pULAZqw==",
- "gvvyX5ATi4q9NhnwxRxC8w==",
- "7xDIG/80SnhgxAYPL9YJtg==",
- "WVhfn2yJZ43qCTu0TVWJwA==",
- "twjiDKJM7528oIu/el4Zbg==",
- "6sBemZt4qY/TBwqk3YcLOQ==",
- "m3XYojKO+I6PXlVRUQBC3w==",
- "gUNP5w7ANJm257qjFxSJrA==",
- "mMLhjdWNnZ8zts9q+a2v3g==",
- "kjWYVC7Eok2w2YT4rrI+IA==",
- "ZzT5b0dYQXkQHTXySpWEaA==",
- "YzTV0esAxBFVls3e0qRsnA==",
- "9xmtuClkFlpz/X5E9JBWBA==",
- "nhAnHuCGXcYlqzOxrrEe1g==",
- "cbBXgB1WQ/i8Xul0bYY2fg==",
- "AkAes5oErTaJiGD2I4A1Pw==",
- "Wx9jh/teM0LJHrvTScssyQ==",
- "fU5ZZ1bIVsV+eXxOpGWo/Q==",
- "k8eZxqwxiN/ievXdLSEL/w==",
- "E2LR1aZ3DcdCBuVT7BhReA==",
- "1eCHcz4swFH+uRhiilOinQ==",
- "JipruVZx4ban3Zo5nNM37g==",
- "IPLD9nT5EEYG9ioaSIYuuA==",
- "pHozgRyMiEmyzThtJnY4MQ==",
- "p0eNK7zJd7D/HEGaVOrtrQ==",
- "dGjcKAOGBd4gIjJq7fL+qQ==",
- "uMq8cDVWFD+tpn8aeP8Pqg==",
- "gC7gUwGumN7GNlWwfIOjJQ==",
- "It+K/RCYMOfNrDZxo7lbcA==",
- "4CfEP8TeMKX33ktwgifGgA==",
- "nxDGRpePV3H4NChn4eLwag==",
- "300hoYyMR/mk1mfWJxS8/w==",
- "DmxgZsQg+Qy1GP0fPkW3VA==",
- "1vqRt79ukuvdJNyIlIag8Q==",
- "RWI0HfpP7643OSEZR8kxzw==",
- "zZtYkKU50PPEj6qSbO5/Sw==",
- "UNRlg6+CYVOt68NwgufGNA==",
- "kkbX+a00dfiTgbMI+aJpMg==",
- "VIC7inSiqzM6v9VqtXDyCw==",
- "l+x2QhxG8wb5AQbcRxXlmA==",
- "GUiinC3vgBjbQC2ybMrMNQ==",
- "6uMF5i0b/xsk55DlPumT7A==",
- "aK9nybtiIBUvxgs1iQFgsw==",
- "BLbTFLSb4mkxMaq4/B2khg==",
- "mTAqtg6oi0iytHQCaSVUsA==",
- "eBapvE+hdyFTsZ0y5yrahg==",
- "lHN2dn2cUKJ8ocVL3vEhUQ==",
- "Mj87ajJ/yR41XwAbFzJbcA==",
- "FA+nK6mpFWdD0kLFcEdhxA==",
- "FrTgaF5YZCNkyfR1kVzTLQ==",
- "5eHStFN7wEmIE+uuRwIlPQ==",
- "AyWlT+EGzIXc395zTlEU5Q==",
- "I+wVQA+jpPTJ6xEsAlYucg==",
- "Y1flEyZZAYxauMo4cmtJ1w==",
- "1AeReq55UQotRQVKJ66pmg==",
- "xzGzN5Hhbh0m/KezjNvXbQ==",
- "meHzY9dIF7llDpFQo1gyMg==",
- "RnOXOygwJFqrD+DlM3R5Ew==",
- "JKg64m6mU7C/CkTwVn4ASg==",
- "gGLz3Ss+amU7y6JF09jq7A==",
- "Pu9pEf+Tek3J+3jmQNqrKw==",
- "EATnlYm0p3h04cLAL95JgA==",
- "o64LDtKq/Fulf1PkVfFcyg==",
- "hUWqqG1QwYgGC5uXJpCvJw==",
- "RfSwpO/ywQx4lfgeYlBr2w==",
- "VaJc9vtYlqJbRPGb5Tf0ow==",
- "9JKIJrlQjhNSC46H3Cstcw==",
- "6Z9myGCF5ylWljgIYAmhqw==",
- "9bAWYElyRN1oJ6eJwPtCtQ==",
- "ohK6EftXOqBzIMI+5XnESw==",
- "AVjwqrTBQH1VREuBlOyUOg==",
- "G2UponGde3/Z+9b2m9abpQ==",
- "DoiItHSms0B9gYmunVbRkQ==",
- "vUC0HlTTHj6qNHwfviDtAw==",
- "hq35Fjgvrcx6I9e6egWS4w==",
- "sw+bmpzqsM4gEQtnqocQLQ==",
- "ApiuEPWr8UjuRyJjsYZQBw==",
- "VXu4ARjq7DS2IR/gT24Pfw==",
- "3TbRZtFtsh9ez8hqZuTDeA==",
- "CazLJMJjQMeHhYLwXW7YNg==",
- "ROSt+NlEoiPFtpRqKtDUrQ==",
- "IUwVHH6+8/0c+nOrjclOWA==",
- "lkzFdvtBx5bV6xZO0cxK7g==",
- "4ekt4m38G9m599xJCmhlug==",
- "fzkmVWKhJsxyCwiqB/ULnQ==",
- "LZAKplVoNjeQgfaHqkyEJA==",
- "91vfsZ7Lx9x5gqWTOdM4sg==",
- "MVoxyIA+emaulH8Oks8Weg==",
- "oGH7SMLI2/qjd9Vnhi3s0A==",
- "vmqfGJE6r4yDahtU/HLrxw==",
- "Y5KKN7t/v9JSxG/m1GMPSA==",
- "gXlb7bbRqHXusTE5deolGA==",
- "/2c4oNniwhL3z5IOngfggg==",
- "HgIFX42oUdRPu7sKAXhNWg==",
- "A3dX2ShyL9+WOi6MNJBoYQ==",
- "hN9bmMHfmnVBVr+7Ibd2Ng==",
- "DB706G73NpBSRS8TKQOVZw==",
- "JSyq2MIuObPnEgEUDyALjQ==",
- "kSUectNPXpXNg+tIveTFRw==",
- "XVVy3e6dTnO3HpgD6BtwQw==",
- "td7nDgTDmKPSODRusMcupw==",
- "Lt/pVD4TFRoiikmgAxEWEw==",
- "mmRob7iyTkTLDu8ObmTPow==",
- "Fd0c8f2eykUp9GYhqOcKoA==",
- "18RKixTv12q3xoBLz6eKiA==",
- "RClzwwKh51rbB4ekl99EZA==",
- "oONlXCW4aAqGczQ/bUllBw==",
- "foPAmiABJ3IXBoed2EgQXA==",
- "wEJDulZafLuXCvcqBYioFQ==",
- "K1RgR6HR5uDEQgZ32TAFgA==",
- "SEIZhyguLoyH7So0p1KY0A==",
- "ggIfX1J4dX3xQoHnHUI7VA==",
- "HBRzLacCVYfwUVGzrefZYg==",
- "aWZRql2IUPVe9hS3dxgVfQ==",
- "Err1mbWJud80JNsDEmXcYg==",
- "Z2MkqmpQXdlctCTCUDPyzw==",
- "JnE6BK0vpWIhNkaeaYNUzw==",
- "5dUry23poD+0wxZ3hH6WmA==",
- "DwP0MQf71VsqvAbAMtC3QQ==",
- "kHcBZXoxnFJ+GMwBZ/xhfQ==",
- "SUAwMWLMml8uGqagz5oqhQ==",
- "79uTykH43voFC3XhHHUzKg==",
- "P5fucOJhtcRIoElFJS4ffg==",
- "s8NpalwgPdHPla7Zi9FJ3w==",
- "8cXqZub6rjgJXmh1CYJBOg==",
- "tY916jrSySzrL+YTcVmYKQ==",
- "DRiFNojs7wM8sfkWcmLnhQ==",
- "wqUJ1Gq1Yz2cXFkbcCmzHQ==",
- "0u+0WHr7WI6IlVBBgiRi6w==",
- "GCYI9Dn1h3gOuueKc7pdKA==",
- "nVDxVhaa2o38gd1XJgE3aw==",
- "5I/heFSQG/UpWGx0uhAqGQ==",
- "1PvTn90xwZJPoVfyT5/uIQ==",
- "jHOoSl3ldFYr9YErEBnD3w==",
- "swJhrPwllq5JORWiP5EkDA==",
- "tj2rWvF2Fl+XIccctj8Mhw==",
- "QvYZxsLdu+3nV/WhY1DsYg==",
- "fKalNdhsyxTt1w08bv9fJA==",
- "CHLHizLruvCrVi9chj9sXA==",
- "sa2DECaqYH1z1/AFhpHi+g==",
- "LbPp1oL0t3K2BAlIN+l8DA==",
- "5SbwLDNT6sBOy6nONtUcTg==",
- "AfVPdxD3FyfwwNrQnVNQ7A==",
- "jt9Ocr9D8EwGRgrXVz//aQ==",
- "KkwQL0DeUM3nPFfHb2ej+A==",
- "WwraoO97OTalvavjUsqhxQ==",
- "fAKFfwlCOyhtdBK6yNnsNg==",
- "EqMlrz1to7HG4GIFTPaehQ==",
- "YmjZJyNfHN5FaTL/HAm8ww==",
- "L2D7G0btrwxl9V4dP3XM5Q==",
- "oUqO4HrBvkpSL781qAC9+w==",
- "c6Yhwy/q3j7skXq52l36Ww==",
- "FWphIPZMumqnXr1glnbK4w==",
- "AcKwfS8FRVqb72uSkDNY/Q==",
- "uSIiF1r9F18avZczmlEuMQ==",
- "XrFDomoH2qFjQ2jJ2yp9lA==",
- "N2X7KWekNN+fMmwyXgKD5w==",
- "IdmcpJXyVDajzeiGZixhSA==",
- "Wf2olJCYZRGTTZxZoBePuQ==",
- "oVlG+0rjrg2tdFImxIeVBA==",
- "7w4PDRJxptG8HMe/ijL6cQ==",
- "rueNryrchijjmWaA3kljYg==",
- "ZybIEGf1Rn/26vlHmuMxhw==",
- "yYVW07lOZHdgtX42xJONIA==",
- "4ifNsmjYf1iOn2YpMfzihg==",
- "KTjwL+qswa+Bid8xLdjMTg==",
- "THfzE2G2NVKKfO+A2TjeFw==",
- "QoqHzpHDHTwQD5UF30NruQ==",
- "dTMoNd6DDr1Tu8tuZWLudw==",
- "wOc4TbwQGUwOC1B3BEZ4OQ==",
- "gfhkPuMvjoC3CGcnOvki3Q==",
- "vljJciS+uuIvL7XXm5688g==",
- "EGLOaMe6Nvzs/cmb7pNpbg==",
- "oLWWIn/2AbKRHnddr2og9g==",
- "7l0RMKbONGS/goW/M+gnMQ==",
- "eFkXKRd2dwu/KWI5ZFpEzw==",
- "jWsC7kdp2YmIZpfXGUimiA==",
- "Jcxjli2tcIAjCe+5LyvqdQ==",
- "MUkRa/PjeWMhbCTq43g6Aw==",
- "g2nh2xENCFOpHZfdEXnoQA==",
- "x6M66krXSi0EhppwmDmsxA==",
- "26Wmdp6SkKN74W0/XPcnmA==",
- "ycjv4XkS5O7zcF3sqq9MwQ==",
- "gfnbviaVhKvv1UvlRGznww==",
- "aIPde9CtyZrhbHLK740bfw==",
- "0p8YbEMxeb73HbAfvPLQRw==",
- "Is3uxoSNqoIo5I15z6Z2UQ==",
- "NZtcY8fIpSKPso/KA6ZfzA==",
- "iQ304I1hmLZktA1d1cuOJA==",
- "0QB0OUW5x2JLHfrtmpZQ+w==",
- "kgyUtd8MFe0tuuxDEUZA9w==",
- "AcbG0e6xN8pZfYAv7QJe1Q==",
- "bb/U8UynPHwczew/hxLQxw==",
- "NuBYjwlxadAH+vLWYRZ3bg==",
- "Ao1Zc0h5AdSHtYt1caWZnQ==",
- "FL/j3GJBuXdAo54JYiWklQ==",
- "E2v8Kk60qVpQ232YzjS2ow==",
- "zVupSPz7cD0v/mD/eUIIjg==",
- "sEeblUmISi1HK4omrWuPTA==",
- "xQpYjaAmrQudWgsdu24J0A==",
- "vCekQ2nOQKiN/q8Be/qwZg==",
- "8g08gjG/QtvAYer32xgNAg==",
- "miiOqnhtef1ODjFzMHnxjA==",
- "sXlFMSTBFnq0STHj6cS/8w==",
- "+SclwwY8R2RPrnX54Z+A6w==",
- "g8TcogVxHpw7uhgNFt5VCQ==",
- "9viAzLFGYYudBYFu7kFamg==",
- "BAJ+/jbk2HyobezZyB9LiQ==",
- "/DJgKE9ouibewuZ2QEnk6w==",
- "fxg/vQq9WPpmQsqQ4RFYaA==",
- "lM/EhwTsbivA7MDecaVTPw==",
- "pVgjGg4TeTNhKimyOu3AAw==",
- "gYnznEt9r97haD/j2Cko7g==",
- "/ngbFuKIAVpdSwsA3VxvNw==",
- "VCL3xfPVCL5RjihQM59fgg==",
- "eDWsx4isnr2xPveBOGc7Hw==",
- "FIOCTEbzb2+KMCnEdJ7jZw==",
- "40HzgVKYnqIb6NJhpSIF0A==",
- "ccK42Lm8Tsv73YMVZRwL6A==",
- "MpAwWMt7bcs4eL7hCSLudQ==",
- "zxsSqovedB3HT99jVblCnQ==",
- "4erEA42TqGA9K4iFKkxMMA==",
- "BaRwTrc5ulyKbW4+QqD0dw==",
- "CT3ldhWpS1SEEmPtjejR/Q==",
- "lkl6XkrTMUpXi46dPxTPxg==",
- "3EhLkC9NqD3A6ApV6idmgg==",
- "fsW2DaKYTCC7gswCT+ByQQ==",
- "pW4gDKtVLj48gNz6V17QdA==",
- "KjfL7YyVqmCJGBGDFdJ0gw==",
- "bGGUhiG9SqJMHQWitXTcYQ==",
- "8RtLlzkGEiisy1v9Xo0sbw==",
- "R81DX/5a7DYKkS4CU+TL+w==",
- "Tu6w6DtX2RJJ3Ym3o3QAWw==",
- "nx/U4Tode5ILux4DSR+QMg==",
- "mjQS8CpyGnsZIDOIEdYUxg==",
- "wJpepvmtQQ3sz3tVFDnFqw==",
- "a4rPqbDWiMivVzaRxvAj7g==",
- "6o5g9JfKLKQ2vBPqKs6kjg==",
- "UzPPFSXgeV7KW4CN5GIQXA==",
- "NdVyHoTbBhX6Umz/9vbi0g==",
- "Fzuq+Wg7clo6DTujNrxsSA==",
- "XXFr0WUuGsH5nXPas7hR3Q==",
- "JVSLiwurnCelNBiG2nflpQ==",
- "NiawWuMBDo0Q3P2xK/vnLQ==",
- "nNaGqigseHw30DaAhjBU3g==",
- "+edqJYGvcy1AH2mEjJtSIg==",
- "1WIi4I62GqkjDXOYqHWJfQ==",
- "rwplpbNJz0ADUHTmzAj15Q==",
- "iWNlSnwrtCmVF89B+DZqOQ==",
- "tHDbi43e6k6uBgO0hA+Uiw==",
- "fHNpW230mNib08aB7IM3XQ==",
- "OChiB4BzcRE8Qxilu6TgJg==",
- "d+ctfXU0j07rpRRzb5/HDA==",
- "GDMqfhPQN0PxfJPnK1Bb9A==",
- "bLd38ZNkVeuhf0joEAxnBQ==",
- "nvUKoKfC6j8fz3gEDQrc/w==",
- "fhcbn9xE/6zobqQ2niSBgA==",
- "HGxe+5/kkh6R9GXzEOOFHA==",
- "mPwCyD0yrIDonVi+fhXyEQ==",
- "5PfGtbH9fmVuNnq83xIIgQ==",
- "XePy/hhnQwHXFeXUQQ55Vg==",
- "yfAaL0MMtSXPQ37pBdmHxQ==",
- "NiQ/m4DZXUbpca9aZdzWAw==",
- "uT6WRh5UpVdeABssoP2VTg==",
- "oxoZP897lgMg/KLcZAtkAg==",
- "oKt57TPe4PogmsGssc3Cbg==",
- "RxmdoO8ak8y/HzMSIm+yBQ==",
- "6leyDVmC5jglAa98NQ3+Hg==",
- "+QosBAnSM2h4lsKuBlqEZw==",
- "hy303iin+Wm7JA6MeelwiQ==",
- "m9iuy4UtsjmyPzy6FTTZvw==",
- "f6Ye5F0Lkn34uLVDCzogFQ==",
- "iGykaF+h4p46HhrWqL8Ffg==",
- "LPYFDbTEp5nGtG6uO8epSw==",
- "t2vWMIh2BvfDSQaz5T1TZw==",
- "OONAvFS/kmH7+vPhAGTNSg==",
- "g/z9yk94XaeBRFj4hqPzdw==",
- "2wesXiib76wM9sqRZ7JYwQ==",
- "n7h9v2N1gOcvMuBEf8uThw==",
- "ITYL3tDwddEdWSD6J6ULaA==",
- "inrUwXyKikpOW0y2Kl1wGw==",
- "iwKBOGDTFzV4aXgDGfyUkw==",
- "+fcjH2kZKNj8quOytUk4nQ==",
- "Srl4HivgHMxMOUHyM3jvNw==",
- "qngzBJbiTB4fivrdnE5gOg==",
- "G0MlFNCbRjXk4ekcPO/chQ==",
- "t+bYn9UqrzKiuxAYGF7RLA==",
- "RVD3Ij6sRwwxTUDAxwELtA==",
- "RNdyt6ZRGvwYG5Ws3QTuEA==",
- "9DRHdyX8ECKHUoEsGuqR4Q==",
- "oMJLQTH1wW7LvOV0KRx/dw==",
- "bjLZ7ot/X/vWSVx4EYwMCg==",
- "+p8pofUlwn8vV6Rp6+sz9g==",
- "cchuqe+CWCJpoakjHLvUfA==",
- "NvurnIHin4O+wNP7MnrZ1w==",
- "RBMv0IxXEO3o7MnV47Bzow==",
- "xTizUioizbMQxD0T6fy/EQ==",
- "ZCdad3AwhVArttapWFwT/Q==",
- "Hy1nqC40l5ItxumkIC2LAA==",
- "W/5ThNLu43uT1O+fg0Fzwg==",
- "b3BQG9/9qDNC/bNSTBY/sQ==",
- "neQoa8pvETr07blVMN3pgA==",
- "oR8rvIZoeoaZ/ufpo0htfQ==",
- "zEzWZ6l7EKoVUxvk/l78Mw==",
- "IHyIeMad23fSDisblwyfpA==",
- "m6srF+pMehggHB1tdoxlPg==",
- "kggaIvN2tlbZdZRI8S5Apw==",
- "2RFaMPlSbVuoEqKXgkIa5A==",
- "//eHwmDOQRSrv+k9C/k3ZQ==",
- "X/Gha4Ajjm/GStp/tv+Jvw==",
- "+H0Rglt/HnhZwdty2hsDHg==",
- "a1aL8zQ+ie3YPogE3hyFFg==",
- "HxEU37uBMeiR5y8q/pM42g==",
- "68nqDtXOuxF7DSw6muEZvg==",
- "s5+78jS4hQYrFtxqTW3g1Q==",
- "drfODfDI6GyMW7hzkmzQvA==",
- "pT1raq2fChffFSIBX3fRiA==",
- "sfowXUMdN2mCoBVrUzulZg==",
- "AV/YJfdoDUdRcrXVwinhQg==",
- "3AKEYQqpkfW7CZMFQZoxOw==",
- "PHwJ5ZAqqftZ4ypr8H1qiQ==",
- "AoN/pnK4KEUaGw4V9SFjpg==",
- "soBA65OmZdfBGJkBmY/4Iw==",
- "mSstwJq7IkJ0JBJ5T8xDKg==",
- "h13Xuonj+0dD1xH86IhSyQ==",
- "HK9xG03FjgCy8vSR+hx8+Q==",
- "oFanDWdePmmZN0xqwpUukA==",
- "zCRZgVsHbQZcVMHd9pGD3A==",
- "EvSB+rCggob2RBeXyDQRvQ==",
- "tXuu7YpZOuMLTv87NjKerA==",
- "DJ+a37tCaGF5OgUhG+T0NA==",
- "KkXlgPJPen6HLxbNn5llBw==",
- "2W6lz1Z7PhkvObEAg2XKJw==",
- "n+xYzfKmMoB3lWkdZ+D3rg==",
- "CPDs+We/1wvsGdaiqxzeCQ==",
- "2Wvk/kouEEOY0evUkQLhOQ==",
- "ezsm4aFd6+DO9FUxz0A8Pg==",
- "9sYLg75/hudZaBA3FrzKHw==",
- "Pp1ZMxJ8yajdbfKM4HAQxA==",
- "xiyRfVG0EfBA+rCk+tgWRQ==",
- "/IarsLzJB8bf0AupJJ+/Eg==",
- "LJeLdqmriyAQp+QjZGFkdQ==",
- "IhHyHbHGyQS+VawxteLP0w==",
- "nGzPc0kI/EduVjiK7bzM6Q==",
- "m06wctjNc3o7iyBHDMZs2w==",
- "mSJF9dJnxZ15lTC6ilbJ2A==",
- "xdmY+qyoxxuRZa9kuNpDEg==",
- "oNOI17POQCAkDwj6lJsYOA==",
- "p73gSu4d+4T/ZNNkIv9Nlw==",
- "vOJ55zFdgPPauPyFYBf01w==",
- "4A+RHIw+aDzw0rSRYfbc7g==",
- "/gi3UZmunVOIXhZSktZ8zQ==",
- "a6vem8n6WmRZAalDrHNP0g==",
- "kGeXrHEN6o7h5qJYcThCPw==",
- "wrewZ0hoHODf7qmoGcOd7g==",
- "Z0sjccxzKylgEiPCFBqPSA==",
- "LKyOFgUKKGUU/PxpFYMILw==",
- "L2RofFWDO0fVgSz4D2mtdw==",
- "KI7tQFYW38zYHOzkKp9/lQ==",
- "ewe/P3pJLYu/kMb5tpvVog==",
- "IADk81pIu8NIL/+9Fi94pA==",
- "0L0FVcH5Dlj3oL8+e9Na7g==",
- "tdiTXKrkqxstDasT0D5BPA==",
- "R906Kxp2VFVR3VD+o6Vxcw==",
- "wc+8ohFWgOF4VlSYiZIGwQ==",
- "wJKFMqh6MGctWfasjHrPEg==",
- "UHpge5Bldt9oPGo2oxnYvQ==",
- "vX7RIhatQeXAMr1+OjzhZw==",
- "s2AKVTwrY65/SWqQxDGJQg==",
- "Q4bfQslDSqU64MOQbBQEUw==",
- "mVT74Eht+gAowINoMKV7IQ==",
- "EuGWtIbyKToOe6DN3NkVpQ==",
- "ALlGgVDO8So71ccX0D6u2g==",
- "Rww3qkF3kWSd+AaMT0kfdw==",
- "hlvtFGW8r0PkbUAYXEM+Hw==",
- "Oc3BqTF3ZBW3xE0QsnFn/A==",
- "3j0kFUZ6g+yeeEljx+WXGg==",
- "8BLkvEkfnOizJq0OTCYGzw==",
- "Lqel4GdU0ZkfoJVXI5WC/Q==",
- "rvE64KQGkVkbl07y7JwBqw==",
- "HbXv8InyZqFT7i3VrllBgg==",
- "zwQ/3MzTJ9rfBmrANIh14w==",
- "gglLMohmJDPRGMY1XKndjQ==",
- "lyfqic/AbEJbCiw+wA01FA==",
- "XqUO7ULEYhDOuT/I2J8BOA==",
- "wPhJcp7U7IVX83szbIOOxQ==",
- "1gA65t5FiBTEgMELTQFUPQ==",
- "ll2M0QQzBsj5OFi02fv3Yg==",
- "wt+qDLU38kzNU75ZYi3Hbw==",
- "a4EYNljinYTx9vb1VvUA6A==",
- "T6LA+daQqRI38iDKZTdg1A==",
- "gwyVIrTk5o0YMKQq4lpJ+Q==",
- "bPRX2zl+K1S0iWAWUn1DZw==",
- "KQw25X4LnQ9is+qdqfxo0w==",
- "6tfM6dx3R5TiVKaqYQjnCg==",
- "OlwHO6Sg2zIwsCOCRu0HiQ==",
- "mr1qjhliRfl87wPOrJbFQg==",
- "8c+lvG5sZNimvx9NKNH3ug==",
- "5Nk2Z94DhlIdfG5HNgvBbQ==",
- "F50iXjRo1aSTr37GQQXuJA==",
- "tfgO55QqUyayjDfQh+Zo1Q==",
- "h7Fc+eT/GuC8iWI+YTD0UQ==",
- "3TjntNWtpG7VqBt3729L6Q==",
- "+DWs0vvFGt6d3mzdcsdsyA==",
- "VJt2kPVBLEBpGpgvuv1oUw==",
- "XLq/nWX8lQqjxsK9jlCqUg==",
- "9s3ar9q32Y5A3tla5GW/2Q==",
- "51yLpfEdvqXmtB6+q27/AQ==",
- "AiMtfedwGcddA+XYNc+21g==",
- "p/48hurJ1kh2FFPpyChzJg==",
- "CRiL6zpjfznhGXhCIbz8pQ==",
- "/jDVt9dRIn+o4IQ1DPwbsg==",
- "UNdKik7Vy23LjjPzEdzNsg==",
- "Koiog/hpN7ew5kgJbty34A==",
- "4itEKfbRCJvqlgKnyEdIOQ==",
- "zi04Yc01ZheuFAQc59E45A==",
- "etRjRvfL/IwceY/IJ1tgzQ==",
- "3sNJJIx1NnjYcgJhjOLJOg==",
- "4yVqq66iHYQjiTSxGgX2oA==",
- "Q8RVI/kRbKuXa8HAQD7zUA==",
- "OERGn45uzfDfglzFFn6JAg==",
- "JGEy6VP3sz3LHiyT2UwNHQ==",
- "1zDfWw5LdG20ClNP1HYxgw==",
- "TGB+FIzzKnouLh5bAiVOQg==",
- "n5GA+pA9mO/f4RN9NL9lNg==",
- "bUxQBaqKyvlSHcuRL9whjg==",
- "tOdlnsE3L3XCBDJRmb/OqA==",
- "XdkxmYYooeDKzy7PXVigBQ==",
- "PMvG4NqJP76kMRAup6TSZA==",
- "qpFJZqzkklby+u1UT3c1iA==",
- "fW3QZyq5UixIA1mP6eWgqQ==",
- "9nMltdrrBmM5ESBY2FRjGA==",
- "1Vtrv6QUAfiYQjlLTpNovg==",
- "ur9JDCVNwzSH4q4ngDlHNQ==",
- "4u3eyKc+y3uRnkASrgBVUw==",
- "XddlSluOH6VkR7spFIFmdQ==",
- "NOmu8oZc6CcKLu+Wfz2YOQ==",
- "3Ejtsqw3Iep/UQd0tXnSlg==",
- "y/e3HSdg7T19FanRpJ7+7Q==",
- "YodhkayN5wsgPZEYN7/KNA==",
- "pZfn6IiG+V28fN8E2hawDQ==",
- "jGHMJqbj6X1NdTDyWmXYAQ==",
- "olTSlmirL9MFhKORiOKYkQ==",
- "CrJDgdfzOea2M2hVedTrIg==",
- "fpXijBOM3Ai1RkmHven5Ww==",
- "eLYKLr4labZeLiRrDJ9mnA==",
- "9vmJUS7WIVOlhMqwipAknQ==",
- "G7J/za99BFbAZH+Q+/B8WA==",
- "Hb+pdSavvJ9lUXkSVZW8Og==",
- "gTB2zM3RPm27mUQRXc/YRg==",
- "e5KCqQ/1GAyVMRNgQpYf6g==",
- "1ApqwW7pE+XUB2Cs2M6y7g==",
- "/wiA2ltAuWyBhIvQAYBTQw==",
- "HFCQEiZf7/SNc+oNSkkwlA==",
- "JFi6N1PlrpKaYECOnI7GFg==",
- "E4ojRDwGsIiyuxBuXHsKBA==",
- "+25t/2lo0FUEtWYK8LdQZQ==",
- "up2MVDi9ve+s83/nwNtZ7Q==",
- "cXpfd6Io6Glj2/QzrDMCvA==",
- "DCvI9byhw0wOFwF1uP6xIQ==",
- "PibGJQNw7VHPTgqeCzGUGA==",
- "0ZRGz+oj2infCAkuKKuHiQ==",
- "2QS/6OBA1T01NlIbfkTYJg==",
- "P14k+fyz0TG9yIPdojp52w==",
- "g5EzTJ0KA4sO3+Opss3LMg==",
- "R5oOM58zdbVxFSDQnNWqeA==",
- "Vg2E5qEDfC+QxZTZDCu9yQ==",
- "YPgMthbpcBN2CMkugV60hQ==",
- "gZWTFt5CuLqMz6OhWL+hqQ==",
- "YrEP9z2WPQ8l7TY1qWncDA==",
- "7p4NpnoNSQR7ISg+w+4yFg==",
- "9L6yLO93sRN70+3qq3ObfA==",
- "QH36wzyIhh6I56Vnx79hRA==",
- "9DtM1vls4rFTdrSnQ7uWXw==",
- "ZlOAnCLV1PkR0kb3E+Nfuw==",
- "9UhKmKtr4vMzXTEn74BEhg==",
- "Ndx5LDiVyyTz/Fh3oBTgvA==",
- "mXZ4JeBwT2WJQL4a/Tm4jQ==",
- "N9nD7BGEM7LDwWIMDB+rEQ==",
- "dmAfbd9F0OJHRAhNMEkRsA==",
- "jV/D2B11NLXZRH77sG9lBw==",
- "1C50kisi9nvyVJNfq2hOEQ==",
- "NMbAjbnuK7EkVeY3CQI5VA==",
- "J1nYqJ7tIQK1+a/3sMXI/Q==",
- "m416yrrAlv+YPClGvGh+qQ==",
- "rLZII1R6EGus+tYCiUtm6g==",
- "xktOghh1S9nIX6fXWnT+Ug==",
- "FcFcn4qmPse5mJCX5yNlsA==",
- "xAAipGfHTGTjp9Qk1MR8RQ==",
- "RQOlmzHwQKFpafKPJj0D8w==",
- "WRjYdKdtnd1G9e/vFXCt0g==",
- "z0BU//aSjYHAkGGk3ZSGNg==",
- "M55eersiJuN9v61r8DoAjQ==",
- "l2mAbuFF3QBIUILDODiUHQ==",
- "IhpXs1TK7itQ3uTzZPRP5Q==",
- "t2EkpUsLOEOsrnep0nZSmA==",
- "lMaO8Yf+6YNowGyhDkPhQA==",
- "UbSFw5jtyLk5MealqJw++A==",
- "5u2PdDcIY3RQgtchSGDCGg==",
- "MQYM3BT77i35LG9HcqxY2Q==",
- "8AfCSZC0uasVON9Y/0P2Pw==",
- "evaWFoxZNQcRszIRnxqB+A==",
- "+8PiQt6O7pJI/nIvQpDaAg==",
- "eRwaYiog2DdlGQyaltCMJg==",
- "JyUJEnU6hJu8x2NCnGrYFw==",
- "l0E0U/CJsyCVSTsXW4Fp+w==",
- "XV13yK0QypJXmgI+dj4KYw==",
- "jrRH0aTUYCOpPLZwzwPRfQ==",
- "N3YDSkBUqSmrmNvZZx4a1Q==",
- "0yJ7TQYzcp3DXVSvwavr+w==",
- "rhgtLQh0F9bRA6IllM7AGw==",
- "IWZnTJ3Hb9qw9HAK/M9gTw==",
- "izeyFvXOumNgVyLrbKW45g==",
- "xYD8jrCDmuQna+p1ebnKDQ==",
- "SOdpdrk2ayeyv0xWdNuy9g==",
- "HYylUirJRqLm+dkp39fSOQ==",
- "q4z6A4l3nhX3smTmXr+Sig==",
- "Zyo0fzewcqXiKe2mAwKx5g==",
- "LMEtzh0+J27+4zORfcjITw==",
- "LoUv/f2lcWpjftzpdivMww==",
- "mXBfDUt/sBW5OUZs2sihvw==",
- "PggVPQL5YKqSU/1asihcrg==",
- "mI0eT4Rlr7QerMIngcu/ng==",
- "NmQrsmb8PVP05qnSulPe5Q==",
- "TcyyXrSsQsnz0gJ36w4Dxw==",
- "y4mfEDerrhaqApDdhP5vjA==",
- "ynaj4XjU27b7XbqPyxI8Ig==",
- "Ua6aO6HwM+rY4sPR19CNFA==",
- "3go7bJ9WqH/PPUTjNP3q/Q==",
- "n1ixvP7SfwYT3L2iWpJg6A==",
- "W8y32OLHihfeV0XFw7LmOg==",
- "uzkNhmo2d08tv5AmnyqkoQ==",
- "hJ8leLNuJ6DK5V8scnDaZQ==",
- "KodYHHN62zESrXUye7M01g==",
- "H+yPRiooEh5J7lAJB4RZ7Q==",
- "dZg5w8rFETMp9SgW7m0gfg==",
- "LsmsPokAwWNCuC74MaqFCQ==",
- "1QGhj9NONF2rC44UdO+Izw==",
- "uwGivY3/C9WK+dirRPJZ4A==",
- "rXGWY/Gq+ZEsmvBHUfFMmQ==",
- "j4FBMnNfdBwx0VsDeTvhFg==",
- "81nkjWtpBhqhvOp6K8dcWg==",
- "dCDaYYrgASXPMGFRV0RCGg==",
- "Kj1QI+s9261S3lTtPKd9eg==",
- "LblwOqNiciHmt2NXjd89tg==",
- "46piyANQVvvLqcoMq5G8tQ==",
- "XJihma9zSRrXLC+T+VcFDA==",
- "K3NBEG8jJTJbSrYSOC3FKw==",
- "cT3PwwS6ALZA/na9NjtdzA==",
- "wJ4uCrl4DPg70ltw1dZO3w==",
- "JATLdpQm//SQnkyCfI5x7Q==",
- "X1PaCfEDScclLtOTiF5JUw==",
- "444F9T6Y7J67Y9sULG81qg==",
- "8JVHFRwAd/SCLU0CRJYofg==",
- "aLh1XEUrfR9W82gzusKcOg==",
- "U+bB5NjFIuQr/Y5UpXHwxA==",
- "Egs14xVbRWjfBBX7X5Z60g==",
- "KSorNz/PLR/YYkxaj1fuqw==",
- "RDgGGxTtcPvRg/5KRRlz4w==",
- "5T39s5CtSrK5awMPUcEWJg==",
- "+PUVXkoTqHxJHO18z4KMfw==",
- "Bvk8NX4l6WktLcRDRKsK/A==",
- "kNGIV3+jQmJlZDTXy1pnyA==",
- "E3jMjAgXwvwR8PA53g4+PQ==",
- "MbI04HlTGCoc/6WDejwtaQ==",
- "aEnHUfn7UE/Euh6jsMuZ7g==",
- "z4Bft++f72QeDh4PWGr/sw==",
- "1lCcQWGDePPYco4vYrA5vw==",
- "iu5csar0IQQBOTgw5OvJwQ==",
- "raKMXnnX6PFFsbloDqyVzQ==",
- "uPnL9tboMZo0Kl2fe24CmA==",
- "8OFxXwnPmrogpNoueZlC4Q==",
- "V6CRKrKezPwsRdbm0DJ2Yg==",
- "xmGgK3W5y+oCd0K2u8XjZQ==",
- "Ry3zgZ6KHrpNyb7+Tt2Pkw==",
- "IwLbkL33z+LdTjaFYh93kg==",
- "caepyBOAFu0MxbcXrGf6TA==",
- "iIWxFdolLcnXqIjPMg+5kQ==",
- "P430CeF2MDkuq11YdjvV8A==",
- "yCu+DVU/ceMTOZ5h/7wQTg==",
- "4mQVNv7FHj+/O6XFqWFt/Q==",
- "OEJ40VmMDYzc2ESEMontRA==",
- "D66Suu3tWBD+eurBpPXfjA==",
- "RNK9G1hfuz3ETY/RmA9+aA==",
- "BYpHADmEnzBsegdYTv8B5Q==",
- "DBKrdpCE0awppxST4o/zzg==",
- "KOmdvm+wJuZ/nT/o1+xOuw==",
- "gDxqUdxxeXDYhJk9zcrNyA==",
- "UPzS4LR3p/h0u69+7YemrQ==",
- "hf9HFxWRNX2ucH8FLS7ytA==",
- "ozVqYsmUueKifb4lDyVyrg==",
- "TfHvdbl2M4deg65QKBTPng==",
- "SzCGM8ypE58FLaR1+1ccxQ==",
- "3nthUmLZ30HxQrzr2d7xFA==",
- "1jBaRO8Bg5l6TH7qJ8EPiw==",
- "eJlcN+gJnqAnctbWSIO9uA==",
- "G8LFBop8u6IIng+gQuVg3w==",
- "3JhnM6G4L06NHt31lR0zXA==",
- "342VOUOxoLHUqtHANt83Hw==",
- "hRxbdeniAVFgKUgB9Q3Y+g==",
- "cFFE2R4GztNoftYkqalqUQ==",
- "YmaksRzoU+OwlpiEaBDYaQ==",
- "jon1y9yMEGfiIBjsDeeJdA==",
- "oSnrpW4UmmVXtUGWqLq+tQ==",
- "zaqyy3GaJ7cp8qDoLJWcTw==",
- "luO1R8dUM9gy1E2lojRQoA==",
- "YHM6NNHjmodv+G0mRLK7kw==",
- "ZSmN8mmI9lDEHkJqBBg0Nw==",
- "520wTzrysiRi2Td92Zq0HQ==",
- "RAAw14BA1ws5Wu/rU7oegw==",
- "vb6Agwzk4JG0Nn7qRPPFMQ==",
- "joDXdLpXvRjOqkRiYaD/Sw==",
- "dK2DU3t1ns+DWDwfBvH3SQ==",
- "gZNJ1Qq6OcnwXqc+jXzMLQ==",
- "R8ULpSNu9FcCwXZM0QedSg==",
- "mc45FSMtzdw2PTcEBwHWPw==",
- "d0qvm3bl38rRCpYdWqolCQ==",
- "o9tdzmIu+3J/EYU4YWyTkA==",
- "5eXpiczlRdmqMYSaodOUiQ==",
- "KYuUNrkTvjUWQovw9dNakA==",
- "02im2RooJQ/9UfUrh5LO+A==",
- "kWPUUi7x9kKKa6nJ+FDR5Q==",
- "6z8CRivao3IMyV4p4gMh7g==",
- "SmRWEzqddY9ucGAP5jXjAg==",
- "DJscTYNFPyPmTb57g/1w+Q==",
- "uOHrw37yF9oLLVd16nUpeg==",
- "HaIRV9SNPRTPDOSX9sK/bg==",
- "K4yZNVoqHjXNhrZzz2gTew==",
- "bTNRjJm+FfSQVfd56nNNqQ==",
- "x5lyMArsv1MuJmEFlWCnNw==",
- "cxpZ4bloGv734LBf4NpVhA==",
- "kUudvRfA33uJDzHIShQd3Q==",
- "3Wfj05vCLFAB9vII5AU9tw==",
- "FUQySDFodnRhr+NUsWt0KA==",
- "eC/RcoCVQBlXdE9WtcgXIw==",
- "NoX8lkY+kd2GPuGjp+s0tQ==",
- "EzjbinBHx3Wr08eXpH3HXA==",
- "0VsaJHR0Ms8zegsCpAKoyg==",
- "e2xLFVavnZIUUtxJx+qa1g==",
- "Kt6BTG1zdeBZ3nlVk+BZKQ==",
- "EUXQZwLgnDG+C8qxVoBNdw==",
- "0SkC/4PtnX1bMYgD6r6CLA==",
- "rzj6mjHCcMEouL66083BAg==",
- "V5HEaY3v9agOhsbYOAZgJA==",
- "tJt6VDdAPEemBUvnoc4viA==",
- "g0lWrzEYMntVIahC7i0O2g==",
- "zCpibjrZOA3FQ4lYt0WoVA==",
- "4Xh/B3C16rrjbES+FM1W8g==",
- "GHEdXgGWOeOa6RuPMF0xXg==",
- "3kREs/qaMX0AwFXN0LO5ow==",
- "GLDNTSwygNBmuFwCIm7HtA==",
- "JBkbaBiorCtFq9M9lSUdMg==",
- "rJCuanCy51ydVD4nInf9IQ==",
- "OzFRv+PzPqTNmOnvZGoo5g==",
- "7mxU5fJl/c6dXss9H3vGcQ==",
- "9J53kk+InE3CKa7cPyCXMw==",
- "x9TIZ9Ua++3BX+MpjgTuWA==",
- "h0MH5NGFfChgmRJ3E/R3HQ==",
- "25w3ZRUzCvJwAVHYCIO5uw==",
- "1Wc8jQlDSB4Dp32wkL2odw==",
- "ipPPjxpXHS1tcykXmrHPMQ==",
- "r95wJtP5rsTExKMS7QhHcw==",
- "TZT86wXfzFffjt0f95UF5w==",
- "VpmBstwR7qPVqPgKYQTA3g==",
- "3++dZXzZ6AFEz7hK+i5hww==",
- "mAiD16zf+rCc7Qzxjd5buA==",
- "1JI9bT92UzxI8txjhst9LQ==",
- "TNyvLixb03aP2f8cDozzfA==",
- "spHVvA/pc7nF9Q4ON020+w==",
- "GA8k6GQ20DGduVoC+gieRA==",
- "T7waQc3PvTFr0yWGKmFQdQ==",
- "P0Pc8owrqt6spdf7FgBFSw==",
- "DKApp/alXiaPSRNm3MfSuA==",
- "UreSZCIdDgloih8KLeX7gg==",
- "xJi0T+psHOXMivSOVpMWeQ==",
- "cNsC9bH30eM1EZS6IdEdtQ==",
- "XjjrIpsmATV/lyln4tPb+g==",
- "qt5CsMts2aD4lw/4Q6bHYQ==",
- "h+KRDKIvyVUBmRjv1LcCyg==",
- "2j83jrPwPfYlpJJ2clEBYQ==",
- "ZrCezGLz38xKmzAom6yCTQ==",
- "SEGu+cSbeeeZg4xWwsSErQ==",
- "Duz/8Ebbd0w6oHwOs0Wnwg==",
- "Ci7sS7Yi1+IwAM3VMAB4ew==",
- "DG2Qe2DqPs5MkZPOqX363Q==",
- "v0Bvws1WYVoEgDt8xmVKew==",
- "CtDj/h2Q/lRey20G8dzSgA==",
- "WRoJMO0BCJyn5V6qnpUi4Q==",
- "RQywrOLZEKw9+kG6qTzr3g==",
- "mU4CqbAwpwqegxJaOz9ofQ==",
- "aN5x46Gw1VihRalwCt1CGg==",
- "U6VQghxOXsydh3Naa5Nz4A==",
- "YA+zdEC+yEgFWRIgS1Eiqw==",
- "oPcxgoismve6+jXyIKK6AQ==",
- "PqLCd/pwc+q5GkL6MB0jTg==",
- "fHL+fHtDxhALZFb9W/uHuw==",
- "dhTevyxTYAuKbdLWhG47Kw==",
- "VllbOAjeW3Dpbj5lp2OSmA==",
- "3itfXtlLPRmPCSYaSvc39Q==",
- "GNak/LFeoHWlTdLW1iU4eg==",
- "HuDuxs2KiGqmeyY1s1PjpQ==",
- "xs8J3cesq7lDhP/dNltqOw==",
- "foXSDEUwMhfHWJSmSejsQg==",
- "6fWom3YoKvW6NIg6y9o9CQ==",
- "NhZbSq0CjDNOAIvBHBM9zA==",
- "5w4FbRhWACP7k2WnNitiHg==",
- "0UeRwDID2RBIikInqFI7uw==",
- "/y/jHHEpUu5TR+R2o96kXA==",
- "voO3krg4sdy4Iu+MZEr8+g==",
- "hdzol5dk//Q6tCm4+OndIA==",
- "Nc5kiwXCAyjpzt43G5RF1A==",
- "3UBYBMejKInSbCHRoJJ7dg==",
- "dRFCIbVu0Y8XbjG5i+UFCQ==",
- "t8pjhdyNJirkvYgWIO/eKg==",
- "FAXzjjIr8l1nsQFPpgxM/g==",
- "SPGpjEJrpflv1hF0qsFlPw==",
- "9Y1ZmfiHJd9vCiZ6KfO1xQ==",
- "7Eqzyb+Kep+dIahYJWNNxQ==",
- "9rL8nC/VbSqrvnUtH9WsxQ==",
- "H4FZ5Wcnb40hQM1DMGGe8A==",
- "AjoXWGb/l9xH/hscgEc6kQ==",
- "6nzFl41uutgDdC30oOeCqg==",
- "3jo1jRy3MybXtoLR+JIbJw==",
- "mXdE08dv+OlIhlcqMBH2Gg==",
- "Ifd7DI6o8N5gnyAKqZTlRw==",
- "JNUvg/kxL3rdcZnD4IqUxw==",
- "ry8B+sAHNeFIZHCCDynFyw==",
- "TXaEd5lIKhzjcncfNcBgSg==",
- "Mr3ehuDMUimOSn+FlkchdA==",
- "cwiGhjmX9v8I7E/ekQ0h+g==",
- "I/r5+1jnqumCPprKC/2BqA==",
- "S4V3MfGYk8I4fd3WH09yYw==",
- "A+crVyUeynAkEMYKbnFjZw==",
- "vtyHcNQPcUTRuZcQvRUX4Q==",
- "UNKx1ZVv3HNp21zrUSm6ew==",
- "rsAlvGLv2D0swd6ol3WlvA==",
- "2qwqb8ENAR2fpQnw55sPDw==",
- "xBJJuYYnsTJOeFggZSKC4Q==",
- "omvtZZKruPiEt6fV0YXTdg==",
- "JZEgKUhUN+USJsvtF4HZOg==",
- "euG/kpJ5elSDOGNbWWDfNQ==",
- "DiiVmM6/WNcp0MUjSaFq6w==",
- "QCNS8gAml1M2pJ+MxZsueg==",
- "M6+pggFsHfM3alFxcMOFNQ==",
- "YLoWpDTwXnszEQm8FA164Q==",
- "N08oUZtlXbQvO9t3vXnGog==",
- "jkjuJowWuOa4CLY+RZiErQ==",
- "mPf+S+6oAoVIYEVveaiNFA==",
- "R0iVyo5qreP/68uZlZphDA==",
- "GYlqhQgp03B0mXpUhQ+ZCA==",
- "lQNbmWD7PhwNGye+zbc3GQ==",
- "cNeaOJEOzUSDdRmenPQyuw==",
- "Gp66/Txv6ebv5bn85TuQtA==",
- "xAda6DVkcvvqhI8vWZeGyA==",
- "Ggk1Qa0lEdAgCXG6SmCkBA==",
- "MYuO7ZURXtyaf56q7hH4Zw==",
- "RUIdZRTgJBudWUZQFgiFaQ==",
- "bgFJxLirUom2zT0h7LdOpw==",
- "A2gaOpIlrS7TKVQgy9XMSw==",
- "zevXp0lqqnXv9X6Bgmjtqg==",
- "a5iuFqWAdFFsRgp7SFYwNg==",
- "TxTy0TaDsWTcRH3wdBEQLQ==",
- "jephVdKDeJIhXPrdMOJ4qA==",
- "C4KdamfqUPuJ3RGFdpIEdw==",
- "zl6l2Ioz1qovRUIWrSyxVA==",
- "+gGaDxUe0UnNrf3PPg1qQQ==",
- "1HgbrlaLMHS6Qj/0kkaJxg==",
- "eGxTly6Pnu7eV/MKYMmuYw==",
- "RAMKfnlrzNjpyh2BWt6JHg==",
- "4pZQm9ogCZ/EAR9pjJm1eA==",
- "l1zv3erwXIegQFd02NlCag==",
- "uHGyRZchuA4ulmuD5LqquQ==",
- "/vFu89tsV+lbcoiqM/XWog==",
- "63SUgqfQimrmjvy/bEDQ0w==",
- "JLHuf+FlChFDa9LYfTQ4Eg==",
- "I+ZnPePTFX8ZODe14bxgyA==",
- "CtoK1k3U82BkvzuPfQ4pjQ==",
- "6nqQm4C7y+wZ+qX0kVjwmA==",
- "+C3kBxRXIjqBk0EJxe3Xfg==",
- "qVu748pIxEZtiywg4/4qhw==",
- "07o+sKjjRCYkwy/ACyoYhg==",
- "CiLF4dkbLURekBcQbwPUVA==",
- "W/N5/nkp4iQIPYfAagVV7A==",
- "3PJOphhEjw0E4arTfVVwdg==",
- "YdMbARHwB+bSOd0PlTlXiA==",
- "41hbx5Yr7UWxsV6+bWUYUA==",
- "SqJHXD0MorNwHtHL9TbWLg==",
- "pWKGUzm/muwOiBtzkRMnRg==",
- "az9zZ7HTa4FJGRQMcamvEw==",
- "zavAAN8C9Wo8oBLyztp63Q==",
- "yBAnPmwrMJ8kpPP292S/Lw==",
- "E6szQhjuUAz2e0h9ffQfEQ==",
- "Fs3cQxQyS9kM4T8j5R7rWw==",
- "GB5fRLZxnjRUfEe0SwcePQ==",
- "+9OY8xkT9dM/rb2T6ACtOQ==",
- "If2xFBD1p91iDD7ZrsfgjA==",
- "QCFfoMhy8EleZAOpfRY88w==",
- "NobWPk1Z6bHt5s9NHXt/pg==",
- "nK6T4vV4384OIcqO5tQMhA==",
- "Zov1EzK+VomiuwT1+ulQ8g==",
- "pF98OKDvLUlnTzo7wmlpOw==",
- "Wrq9YDsieAMC3Y2DSY5Rcg=="
- ]
-}
diff --git a/application/basilisk/base/content/newtab/newTab.js b/application/basilisk/base/content/newtab/newTab.js
index bbd2ef39d..1731edadc 100644
--- a/application/basilisk/base/content/newtab/newTab.js
+++ b/application/basilisk/base/content/newtab/newTab.js
@@ -11,7 +11,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/PageThumbs.jsm");
Cu.import("resource://gre/modules/BackgroundPageThumbs.jsm");
-Cu.import("resource:///modules/DirectoryLinksProvider.jsm");
Cu.import("resource://gre/modules/NewTabUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "Rect",
diff --git a/application/basilisk/base/content/newtab/newTab.xhtml b/application/basilisk/base/content/newtab/newTab.xhtml
index eef51b4b2..7de1ff3d4 100644
--- a/application/basilisk/base/content/newtab/newTab.xhtml
+++ b/application/basilisk/base/content/newtab/newTab.xhtml
@@ -73,7 +73,6 @@
<div id="newtab-horizontal-margin">
<div class="newtab-side-margin"/>
<div id="newtab-grid">
- <h1 id="topsites-heading"/>
</div>
<div class="newtab-side-margin"/>
</div>
diff --git a/application/basilisk/base/content/newtab/page.js b/application/basilisk/base/content/newtab/page.js
index f7626ced2..7c19a9827 100644
--- a/application/basilisk/base/content/newtab/page.js
+++ b/application/basilisk/base/content/newtab/page.js
@@ -48,11 +48,6 @@ var gPage = {
let enabled = gAllPages.enabled;
this._updateAttributes(enabled);
- // Update thumbnails to the new enhanced setting
- if (aData == "browser.newtabpage.enhanced") {
- this.update();
- }
-
// Initialize the whole page if we haven't done that, yet.
if (enabled) {
this._init();
@@ -79,10 +74,7 @@ var gPage = {
update(reason = "") {
// Update immediately if we're visible.
if (!document.hidden) {
- // Ignore updates where reason=links-changed as those signal that the
- // provider's set of links changed. We don't want to update visible pages
- // in that case, it is ok to wait until the user opens the next tab.
- if (reason != "links-changed" && gGrid.ready) {
+ if (gGrid.ready) {
gGrid.refresh();
}
@@ -119,10 +111,6 @@ var gPage = {
document.getElementById("newtab-search-submit").value =
document.body.getAttribute("dir") == "ltr" ? "\u25B6" : "\u25C0";
- if (Services.prefs.getBoolPref("browser.newtabpage.compact")) {
- document.body.classList.add("compact");
- }
-
// Initialize search.
gSearch.init();
@@ -174,16 +162,6 @@ var gPage = {
*/
_handleUnloadEvent: function Page_handleUnloadEvent() {
gAllPages.unregister(this);
- // compute page life-span and send telemetry probe: using milli-seconds will leave
- // many low buckets empty. Instead we use half-second precision to make low end
- // of histogram linear and not lose the change in user attention
- let delta = Math.round((Date.now() - this._firstVisibleTime) / 500);
- if (this._suggestedTilePresent) {
- Services.telemetry.getHistogramById("NEWTAB_PAGE_LIFE_SPAN_SUGGESTED").add(delta);
- }
- else {
- Services.telemetry.getHistogramById("NEWTAB_PAGE_LIFE_SPAN").add(delta);
- }
},
/**
@@ -258,40 +236,5 @@ var gPage = {
},
onPageVisibleAndLoaded() {
- // Send the index of the last visible tile.
- this.reportLastVisibleTileIndex();
- // Maybe tell the user they can undo an initial automigration
- this.maybeShowAutoMigrationUndoNotification();
- },
-
- reportLastVisibleTileIndex() {
- let cwu = window.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils);
-
- let rect = cwu.getBoundsWithoutFlushing(gGrid.node);
- let nodes = cwu.nodesFromRect(rect.left, rect.top, 0, rect.width,
- rect.height, 0, true, false);
-
- let i = -1;
- let lastIndex = -1;
- let sites = gGrid.sites;
-
- for (let node of nodes) {
- if (node.classList && node.classList.contains("newtab-cell")) {
- if (sites[++i]) {
- lastIndex = i;
- if (sites[i].link.targetedSite) {
- // record that suggested tile is shown to use suggested-tiles-histogram
- this._suggestedTilePresent = true;
- }
- }
- }
- }
-
- DirectoryLinksProvider.reportSitesAction(sites, "view", lastIndex);
- },
-
- maybeShowAutoMigrationUndoNotification() {
- sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
- },
+ }
};
diff --git a/application/basilisk/base/content/newtab/sites.js b/application/basilisk/base/content/newtab/sites.js
index 9d103ce9b..00f81869a 100644
--- a/application/basilisk/base/content/newtab/sites.js
+++ b/application/basilisk/base/content/newtab/sites.js
@@ -62,7 +62,7 @@ Site.prototype = {
this._updateAttributes(true);
let changed = gPinnedLinks.pin(this._link, aIndex);
if (changed) {
- // render site again to remove suggested/sponsored tags
+ // render site again
this._render();
}
return changed;
@@ -136,15 +136,6 @@ Site.prototype = {
return str;
},
- _getSuggestedTileExplanation: function() {
- let targetedName = `<strong> ${this.link.targetedName} </strong>`;
- let targetedSite = `<strong> ${this.link.targetedSite} </strong>`;
- if (this.link.explanation) {
- return this._newTabString(this.link.explanation, [targetedName, targetedSite]);
- }
- return newTabString("suggested.button", [targetedName]);
- },
-
/**
* Checks for and modifies link at campaign end time
*/
@@ -155,11 +146,8 @@ Site.prototype = {
this.link.url = Services.io.newURI(this.url, null, null).resolve("/");
// clear supplied images - this triggers thumbnail download for new url
delete this.link.imageURI;
- delete this.link.enhancedImageURI;
// remove endTime to avoid further time checks
delete this.link.endTime;
- // clear enhanced-content image that may still exist in preloaded page
- this._querySelector(".enhanced-content").style.backgroundImage = "";
gPinnedLinks.replace(oldUrl, this.link);
}
},
@@ -171,11 +159,8 @@ Site.prototype = {
// first check for end time, as it may modify the link
this._checkLinkEndTime();
// setup display variables
- let enhanced = gAllPages.enhanced && DirectoryLinksProvider.getEnhancedLink(this.link);
let url = this.url;
- let title = enhanced && enhanced.title ? enhanced.title :
- this.link.type == "history" ? this.link.baseDomain :
- this.title;
+ let title = this.link.type == "history" ? this.link.baseDomain : this.title;
let tooltip = (this.title == url ? this.title : this.title + "\n" + url);
let link = this._querySelector(".newtab-link");
@@ -189,22 +174,6 @@ Site.prototype = {
titleNode.style.backgroundColor = this.link.titleBgColor;
}
- // remove "suggested" attribute to avoid showing "suggested" tag
- // after site was pinned or dropped
- this.node.removeAttribute("suggested");
-
- if (this.link.targetedSite) {
- if (this.node.getAttribute("type") != "sponsored") {
- this._querySelector(".newtab-sponsored").textContent =
- newTabString("suggested.tag");
- }
-
- this.node.setAttribute("suggested", true);
- let explanation = this._getSuggestedTileExplanation();
- this._querySelector(".newtab-suggested").innerHTML =
- `<div class='newtab-suggested-bounds'> ${explanation} </div>`;
- }
-
if (this.isPinned())
this._updateAttributes(true);
// Capture the page if the thumbnail is missing, which will cause page.js
@@ -244,8 +213,7 @@ Site.prototype = {
*/
refreshThumbnail: function Site_refreshThumbnail() {
// Only enhance tiles if that feature is turned on
- let link = gAllPages.enhanced && DirectoryLinksProvider.getEnhancedLink(this.link) ||
- this.link;
+ let link = this.link;
let thumbnail = this._querySelector(".newtab-thumbnail.thumbnail");
if (link.bgColor) {
@@ -267,16 +235,6 @@ Site.prototype = {
placeholder.style.backgroundColor = "hsl(" + hue + ",80%,40%)";
placeholder.textContent = link.baseDomain.substr(0,1).toUpperCase();
}
-
- if (link.enhancedImageURI) {
- let enhanced = this._querySelector(".enhanced-content");
- enhanced.style.backgroundImage = 'url("' + link.enhancedImageURI + '")';
-
- if (this.link.type != link.type) {
- this.node.setAttribute("type", "enhanced");
- this.enhancedId = link.directoryId;
- }
- }
},
_ignoreHoverEvents: function(element) {
@@ -296,13 +254,6 @@ Site.prototype = {
this._node.addEventListener("dragstart", this, false);
this._node.addEventListener("dragend", this, false);
this._node.addEventListener("mouseover", this, false);
-
- // Specially treat the sponsored icon & suggested explanation
- // text to prevent regular hover effects
- let sponsored = this._querySelector(".newtab-sponsored");
- let suggested = this._querySelector(".newtab-suggested");
- this._ignoreHoverEvents(sponsored);
- this._ignoreHoverEvents(suggested);
},
/**
@@ -333,31 +284,6 @@ Site.prototype = {
.add(aIndex);
},
- _toggleLegalText: function(buttonClass, explanationTextClass) {
- let button = this._querySelector(buttonClass);
- if (button.hasAttribute("active")) {
- let explain = this._querySelector(explanationTextClass);
- explain.parentNode.removeChild(explain);
-
- button.removeAttribute("active");
- }
- else {
- let explain = document.createElementNS(HTML_NAMESPACE, "div");
- explain.className = explanationTextClass.slice(1); // Slice off the first character, '.'
- this.node.appendChild(explain);
-
- let link = '<a href="' + TILES_EXPLAIN_LINK + '">' +
- newTabString("learn.link") + "</a>";
- let type = (this.node.getAttribute("suggested") && this.node.getAttribute("type") == "affiliate") ?
- "suggested" : this.node.getAttribute("type");
- let icon = '<input type="button" class="newtab-control newtab-' +
- (type == "enhanced" ? "customize" : "control-block") + '"/>';
- explain.innerHTML = newTabString(type + (type == "sponsored" ? ".explain2" : ".explain"), [icon, link]);
-
- button.setAttribute("active", "true");
- }
- },
-
/**
* Handles site click events.
*/
@@ -376,48 +302,25 @@ Site.prototype = {
action = "click";
}
}
- // Handle sponsored explanation link click
- else if (target.parentElement.classList.contains("sponsored-explain")) {
- action = "sponsored_link";
- }
- else if (target.parentElement.classList.contains("suggested-explain")) {
- action = "suggested_link";
- }
// Only handle primary clicks for the remaining targets
else if (button == 0) {
aEvent.preventDefault();
if (target.classList.contains("newtab-control-block")) {
- // Notify DirectoryLinksProvider of suggested tile block, this may
- // affect if and how suggested tiles are recommended and needs to
- // be reported before pages are updated inside block() call
- if (this.link.targetedSite) {
- DirectoryLinksProvider.handleSuggestedTileBlock();
- }
this.block();
action = "block";
}
- else if (target.classList.contains("sponsored-explain") ||
- target.classList.contains("newtab-sponsored")) {
- this._toggleLegalText(".newtab-sponsored", ".sponsored-explain");
- action = "sponsored";
- }
else if (pinned && target.classList.contains("newtab-control-pin")) {
this.unpin();
action = "unpin";
}
else if (!pinned && target.classList.contains("newtab-control-pin")) {
if (this.pin()) {
- // suggested link has changed - update rest of the pages
+ // link has changed - update rest of the pages
gAllPages.update(gPage);
}
action = "pin";
}
}
-
- // Report all link click actions
- if (action) {
- DirectoryLinksProvider.reportSitesAction(gGrid.sites, action, tileIndex);
- }
},
/**
diff --git a/application/basilisk/base/content/tab-content.js b/application/basilisk/base/content/tab-content.js
index 35ef8ceb2..fec13eba7 100644
--- a/application/basilisk/base/content/tab-content.js
+++ b/application/basilisk/base/content/tab-content.js
@@ -20,6 +20,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "AboutReader",
"resource://gre/modules/AboutReader.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ReaderMode",
"resource://gre/modules/ReaderMode.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Readerable",
+ "resource://gre/modules/Readerable.jsm");
XPCOMUtils.defineLazyGetter(this, "SimpleServiceDiscovery", function() {
let ssdp = Cu.import("resource://gre/modules/SimpleServiceDiscovery.jsm", {}).SimpleServiceDiscovery;
// Register targets
@@ -336,7 +338,7 @@ var AboutReaderListener = {
* painted is not going to work.
*/
updateReaderButton: function(forceNonArticle) {
- if (!ReaderMode.isEnabledForParseOnLoad || this.isAboutReader ||
+ if (!Readerable.isEnabledForParseOnLoad || this.isAboutReader ||
!content || !(content.document instanceof content.HTMLDocument) ||
content.document.mozSyntheticDocument) {
return;
@@ -375,7 +377,7 @@ var AboutReaderListener = {
this.cancelPotentialPendingReadabilityCheck();
// Only send updates when there are articles; there's no point updating with
// |false| all the time.
- if (ReaderMode.isProbablyReaderable(content.document)) {
+ if (Readerable.isProbablyReaderable(content.document)) {
sendAsyncMessage("Reader:UpdateReaderButton", { isArticle: true });
} else if (forceNonArticle) {
sendAsyncMessage("Reader:UpdateReaderButton", { isArticle: false });
diff --git a/application/basilisk/base/content/utilityOverlay.js b/application/basilisk/base/content/utilityOverlay.js
index ee26ad22f..3d27f7d27 100644
--- a/application/basilisk/base/content/utilityOverlay.js
+++ b/application/basilisk/base/content/utilityOverlay.js
@@ -37,7 +37,7 @@ var gBidiUI = false;
* Determines whether the given url is considered a special URL for new tabs.
*/
function isBlankPageURL(aURL) {
- return aURL == "about:blank" || aURL == "about:newtab" || aURL == "about:logopage";
+ return aURL == "about:blank" || aURL == BROWSER_NEW_TAB_URL || aURL == "about:logopage";
}
function getBrowserURL()
diff --git a/application/basilisk/base/jar.mn b/application/basilisk/base/jar.mn
index 72061a622..76727731b 100644
--- a/application/basilisk/base/jar.mn
+++ b/application/basilisk/base/jar.mn
@@ -114,8 +114,6 @@ browser.jar:
content/browser/newtab/newTab.xhtml (content/newtab/newTab.xhtml)
* content/browser/newtab/newTab.js (content/newtab/newTab.js)
content/browser/newtab/newTab.css (content/newtab/newTab.css)
- content/browser/newtab/newTab.inadjacent.json (content/newtab/newTab.inadjacent.json)
- content/browser/newtab/alternativeDefaultSites.json (content/newtab/alternativeDefaultSites.json)
* content/browser/pageinfo/pageInfo.xul (content/pageinfo/pageInfo.xul)
content/browser/pageinfo/pageInfo.js (content/pageinfo/pageInfo.js)
content/browser/pageinfo/pageInfo.css (content/pageinfo/pageInfo.css)
diff --git a/application/basilisk/components/newtab/NewTabPrefsProvider.jsm b/application/basilisk/components/newtab/NewTabPrefsProvider.jsm
index c1d8b4149..ad0d1e581 100644
--- a/application/basilisk/components/newtab/NewTabPrefsProvider.jsm
+++ b/application/basilisk/components/newtab/NewTabPrefsProvider.jsm
@@ -21,7 +21,6 @@ const gPrefsMap = new Map([
["browser.newtabpage.remote.mode", "str"],
["browser.newtabpage.remote.version", "str"],
["browser.newtabpage.enabled", "bool"],
- ["browser.newtabpage.enhanced", "bool"],
["browser.newtabpage.introShown", "bool"],
["browser.newtabpage.updateIntroShown", "bool"],
["browser.newtabpage.pinned", "str"],
@@ -34,7 +33,6 @@ const gPrefsMap = new Map([
// prefs that are important for the newtab page
const gNewtabPagePrefs = new Set([
"browser.newtabpage.enabled",
- "browser.newtabpage.enhanced",
"browser.newtabpage.pinned",
"browser.newtabpage.blocked",
"browser.newtabpage.introShown",
diff --git a/application/basilisk/components/nsBrowserGlue.js b/application/basilisk/components/nsBrowserGlue.js
index b4256523f..d29009b13 100644
--- a/application/basilisk/components/nsBrowserGlue.js
+++ b/application/basilisk/components/nsBrowserGlue.js
@@ -32,7 +32,6 @@ XPCOMUtils.defineLazyServiceGetter(this, "AlertsService", "@mozilla.org/alerts-s
["ContentPrefServiceParent", "resource://gre/modules/ContentPrefServiceParent.jsm"],
["ContentSearch", "resource:///modules/ContentSearch.jsm"],
["DateTimePickerHelper", "resource://gre/modules/DateTimePickerHelper.jsm"],
- ["DirectoryLinksProvider", "resource:///modules/DirectoryLinksProvider.jsm"],
["Feeds", "resource:///modules/Feeds.jsm"],
["FileUtils", "resource://gre/modules/FileUtils.jsm"],
["FormValidationHandler", "resource:///modules/FormValidationHandler.jsm"],
@@ -655,9 +654,7 @@ BrowserGlue.prototype = {
webrtcUI.init();
AboutHome.init();
- DirectoryLinksProvider.init();
NewTabUtils.init();
- NewTabUtils.links.addProvider(DirectoryLinksProvider);
AboutNewTab.init();
NewTabMessages.init();
diff --git a/application/basilisk/components/search/moz.build b/application/basilisk/components/search/moz.build
index aac3a838c..b406d5f16 100644
--- a/application/basilisk/components/search/moz.build
+++ b/application/basilisk/components/search/moz.build
@@ -4,4 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+DIRS += ['service']
+
JAR_MANIFESTS += ['jar.mn']
diff --git a/application/basilisk/components/search/service/SearchStaticData.jsm b/application/basilisk/components/search/service/SearchStaticData.jsm
new file mode 100644
index 000000000..de2be695c
--- /dev/null
+++ b/application/basilisk/components/search/service/SearchStaticData.jsm
@@ -0,0 +1,43 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+/*
+ * This module contains additional data about default search engines that is the
+ * same across all languages. This information is defined outside of the actual
+ * search engine definition files, so that localizers don't need to update them
+ * when a change is made.
+ *
+ * This separate module is also easily overridable, in case a hotfix is needed.
+ * No high-level processing logic is applied here.
+ */
+
+"use strict";
+
+this.EXPORTED_SYMBOLS = [
+ "SearchStaticData",
+];
+
+const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
+
+// To update this list of known alternate domains, just cut-and-paste from
+// https://www.google.com/supported_domains
+const gGoogleDomainsSource = ".google.com .google.ad .google.ae .google.com.af .google.com.ag .google.com.ai .google.al .google.am .google.co.ao .google.com.ar .google.as .google.at .google.com.au .google.az .google.ba .google.com.bd .google.be .google.bf .google.bg .google.com.bh .google.bi .google.bj .google.com.bn .google.com.bo .google.com.br .google.bs .google.bt .google.co.bw .google.by .google.com.bz .google.ca .google.cd .google.cf .google.cg .google.ch .google.ci .google.co.ck .google.cl .google.cm .google.cn .google.com.co .google.co.cr .google.com.cu .google.cv .google.com.cy .google.cz .google.de .google.dj .google.dk .google.dm .google.com.do .google.dz .google.com.ec .google.ee .google.com.eg .google.es .google.com.et .google.fi .google.com.fj .google.fm .google.fr .google.ga .google.ge .google.gg .google.com.gh .google.com.gi .google.gl .google.gm .google.gp .google.gr .google.com.gt .google.gy .google.com.hk .google.hn .google.hr .google.ht .google.hu .google.co.id .google.ie .google.co.il .google.im .google.co.in .google.iq .google.is .google.it .google.je .google.com.jm .google.jo .google.co.jp .google.co.ke .google.com.kh .google.ki .google.kg .google.co.kr .google.com.kw .google.kz .google.la .google.com.lb .google.li .google.lk .google.co.ls .google.lt .google.lu .google.lv .google.com.ly .google.co.ma .google.md .google.me .google.mg .google.mk .google.ml .google.com.mm .google.mn .google.ms .google.com.mt .google.mu .google.mv .google.mw .google.com.mx .google.com.my .google.co.mz .google.com.na .google.com.nf .google.com.ng .google.com.ni .google.ne .google.nl .google.no .google.com.np .google.nr .google.nu .google.co.nz .google.com.om .google.com.pa .google.com.pe .google.com.pg .google.com.ph .google.com.pk .google.pl .google.pn .google.com.pr .google.ps .google.pt .google.com.py .google.com.qa .google.ro .google.ru .google.rw .google.com.sa .google.com.sb .google.sc .google.se .google.com.sg .google.sh .google.si .google.sk .google.com.sl .google.sn .google.so .google.sm .google.sr .google.st .google.com.sv .google.td .google.tg .google.co.th .google.com.tj .google.tk .google.tl .google.tm .google.tn .google.to .google.com.tr .google.tt .google.com.tw .google.co.tz .google.com.ua .google.co.ug .google.co.uk .google.com.uy .google.co.uz .google.com.vc .google.co.ve .google.vg .google.co.vi .google.com.vn .google.vu .google.ws .google.rs .google.co.za .google.co.zm .google.co.zw .google.cat";
+const gGoogleDomains = gGoogleDomainsSource.split(" ").map(d => "www" + d);
+
+this.SearchStaticData = {
+ /**
+ * Returns a list of alternate domains for a given search engine domain.
+ *
+ * @param aDomain
+ * Lowercase host name to look up. For example, if this argument is
+ * "www.google.com" or "www.google.co.uk", the function returns the
+ * full list of supported Google domains.
+ *
+ * @return Array containing one entry for each alternate host name, or empty
+ * array if none is known. The returned array should not be modified.
+ */
+ getAlternateDomains: function (aDomain) {
+ return gGoogleDomains.indexOf(aDomain) == -1 ? [] : gGoogleDomains;
+ },
+};
diff --git a/application/basilisk/components/search/service/SearchSuggestionController.jsm b/application/basilisk/components/search/service/SearchSuggestionController.jsm
new file mode 100644
index 000000000..952838c0c
--- /dev/null
+++ b/application/basilisk/components/search/service/SearchSuggestionController.jsm
@@ -0,0 +1,398 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
+this.EXPORTED_SYMBOLS = ["SearchSuggestionController"];
+
+const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
+
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+Cu.import("resource://gre/modules/Services.jsm");
+Cu.import("resource://gre/modules/Promise.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "NS_ASSERT", "resource://gre/modules/debug.js");
+
+const SEARCH_RESPONSE_SUGGESTION_JSON = "application/x-suggestions+json";
+const DEFAULT_FORM_HISTORY_PARAM = "searchbar-history";
+const HTTP_OK = 200;
+const REMOTE_TIMEOUT = 500; // maximum time (ms) to wait before giving up on a remote suggestions
+const BROWSER_SUGGEST_PREF = "browser.search.suggest.enabled";
+
+/**
+ * Remote search suggestions will be shown if gRemoteSuggestionsEnabled
+ * is true. Global because only one pref observer is needed for all instances.
+ */
+var gRemoteSuggestionsEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
+Services.prefs.addObserver(BROWSER_SUGGEST_PREF, function(aSubject, aTopic, aData) {
+ gRemoteSuggestionsEnabled = Services.prefs.getBoolPref(BROWSER_SUGGEST_PREF);
+}, false);
+
+/**
+ * SearchSuggestionController.jsm exists as a helper module to allow multiple consumers to request and display
+ * search suggestions from a given engine, regardless of the base implementation. Much of this
+ * code was originally in nsSearchSuggestions.js until it was refactored to separate it from the
+ * nsIAutoCompleteSearch dependency.
+ * One instance of SearchSuggestionController should be used per field since form history results are cached.
+ */
+
+/**
+ * @param {function} [callback] - Callback for search suggestion results. You can use the promise
+ * returned by the search method instead if you prefer.
+ * @constructor
+ */
+this.SearchSuggestionController = function SearchSuggestionController(callback = null) {
+ this._callback = callback;
+};
+
+this.SearchSuggestionController.prototype = {
+ /**
+ * The maximum number of local form history results to return. This limit is
+ * only enforced if remote results are also returned.
+ */
+ maxLocalResults: 5,
+
+ /**
+ * The maximum number of remote search engine results to return.
+ * We'll actually only display at most
+ * maxRemoteResults - <displayed local results count> remote results.
+ */
+ maxRemoteResults: 10,
+
+ /**
+ * The maximum time (ms) to wait before giving up on a remote suggestions.
+ */
+ remoteTimeout: REMOTE_TIMEOUT,
+
+ /**
+ * The additional parameter used when searching form history.
+ */
+ formHistoryParam: DEFAULT_FORM_HISTORY_PARAM,
+
+ // Private properties
+ /**
+ * The last form history result used to improve the performance of subsequent searches.
+ * This shouldn't be used for any other purpose as it is never cleared and therefore could be stale.
+ */
+ _formHistoryResult: null,
+
+ /**
+ * The remote server timeout timer, if applicable. The timer starts when form history
+ * search is completed.
+ */
+ _remoteResultTimer: null,
+
+ /**
+ * The deferred for the remote results before its promise is resolved.
+ */
+ _deferredRemoteResult: null,
+
+ /**
+ * The optional result callback registered from the constructor.
+ */
+ _callback: null,
+
+ /**
+ * The XMLHttpRequest object for remote results.
+ */
+ _request: null,
+
+ // Public methods
+
+ /**
+ * Fetch search suggestions from all of the providers. Fetches in progress will be stopped and
+ * results from them will not be provided.
+ *
+ * @param {string} searchTerm - the term to provide suggestions for
+ * @param {bool} privateMode - whether the request is being made in the context of private browsing
+ * @param {nsISearchEngine} engine - search engine for the suggestions.
+ * @param {int} userContextId - the userContextId of the selected tab.
+ *
+ * @return {Promise} resolving to an object containing results or null.
+ */
+ fetch: function(searchTerm, privateMode, engine, userContextId) {
+ // There is no smart filtering from previous results here (as there is when looking through
+ // history/form data) because the result set returned by the server is different for every typed
+ // value - e.g. "ocean breathes" does not return a subset of the results returned for "ocean".
+
+ this.stop();
+
+ if (!Services.search.isInitialized) {
+ throw new Error("Search not initialized yet (how did you get here?)");
+ }
+ if (typeof privateMode === "undefined") {
+ throw new Error("The privateMode argument is required to avoid unintentional privacy leaks");
+ }
+ if (!(engine instanceof Ci.nsISearchEngine)) {
+ throw new Error("Invalid search engine");
+ }
+ if (!this.maxLocalResults && !this.maxRemoteResults) {
+ throw new Error("Zero results expected, what are you trying to do?");
+ }
+ if (this.maxLocalResults < 0 || this.maxRemoteResults < 0) {
+ throw new Error("Number of requested results must be positive");
+ }
+
+ // Array of promises to resolve before returning results.
+ let promises = [];
+ this._searchString = searchTerm;
+
+ // Remote results
+ if (searchTerm && gRemoteSuggestionsEnabled && this.maxRemoteResults &&
+ engine.supportsResponseType(SEARCH_RESPONSE_SUGGESTION_JSON)) {
+ this._deferredRemoteResult = this._fetchRemote(searchTerm, engine, privateMode, userContextId);
+ promises.push(this._deferredRemoteResult.promise);
+ }
+
+ // Local results from form history
+ if (this.maxLocalResults) {
+ let deferredHistoryResult = this._fetchFormHistory(searchTerm);
+ promises.push(deferredHistoryResult.promise);
+ }
+
+ function handleRejection(reason) {
+ if (reason == "HTTP request aborted") {
+ // Do nothing since this is normal.
+ return null;
+ }
+ Cu.reportError("SearchSuggestionController rejection: " + reason);
+ return null;
+ }
+ return Promise.all(promises).then(this._dedupeAndReturnResults.bind(this), handleRejection);
+ },
+
+ /**
+ * Stop pending fetches so no results are returned from them.
+ *
+ * Note: If there was no remote results fetched, the fetching cannot be stopped and local results
+ * will still be returned because stopping relies on aborting the XMLHTTPRequest to reject the
+ * promise for Promise.all.
+ */
+ stop: function() {
+ if (this._request) {
+ this._request.abort();
+ } else if (!this.maxRemoteResults) {
+ Cu.reportError("SearchSuggestionController: Cannot stop fetching if remote results were not "+
+ "requested");
+ }
+ this._reset();
+ },
+
+ // Private methods
+
+ _fetchFormHistory: function(searchTerm) {
+ let deferredFormHistory = Promise.defer();
+
+ let acSearchObserver = {
+ // Implements nsIAutoCompleteSearch
+ onSearchResult: (search, result) => {
+ this._formHistoryResult = result;
+
+ if (this._request) {
+ this._remoteResultTimer = Cc["@mozilla.org/timer;1"].
+ createInstance(Ci.nsITimer);
+ this._remoteResultTimer.initWithCallback(this._onRemoteTimeout.bind(this),
+ this.remoteTimeout || REMOTE_TIMEOUT,
+ Ci.nsITimer.TYPE_ONE_SHOT);
+ }
+
+ switch (result.searchResult) {
+ case Ci.nsIAutoCompleteResult.RESULT_SUCCESS:
+ case Ci.nsIAutoCompleteResult.RESULT_NOMATCH:
+ if (result.searchString !== this._searchString) {
+ deferredFormHistory.resolve("Unexpected response, this._searchString does not match form history response");
+ return;
+ }
+ let fhEntries = [];
+ for (let i = 0; i < result.matchCount; ++i) {
+ fhEntries.push(result.getValueAt(i));
+ }
+ deferredFormHistory.resolve({
+ result: fhEntries,
+ formHistoryResult: result,
+ });
+ break;
+ case Ci.nsIAutoCompleteResult.RESULT_FAILURE:
+ case Ci.nsIAutoCompleteResult.RESULT_IGNORED:
+ deferredFormHistory.resolve("Form History returned RESULT_FAILURE or RESULT_IGNORED");
+ break;
+ }
+ },
+ };
+
+ let formHistory = Cc["@mozilla.org/autocomplete/search;1?name=form-history"].
+ createInstance(Ci.nsIAutoCompleteSearch);
+ formHistory.startSearch(searchTerm, this.formHistoryParam || DEFAULT_FORM_HISTORY_PARAM,
+ this._formHistoryResult,
+ acSearchObserver);
+ return deferredFormHistory;
+ },
+
+ /**
+ * Fetch suggestions from the search engine over the network.
+ */
+ _fetchRemote: function(searchTerm, engine, privateMode, userContextId) {
+ let deferredResponse = Promise.defer();
+ this._request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].
+ createInstance(Ci.nsIXMLHttpRequest);
+ let submission = engine.getSubmission(searchTerm,
+ SEARCH_RESPONSE_SUGGESTION_JSON);
+ let method = (submission.postData ? "POST" : "GET");
+ this._request.open(method, submission.uri.spec, true);
+
+ this._request.setOriginAttributes({userContextId,
+ privateBrowsingId: privateMode ? 1 : 0});
+
+ this._request.mozBackgroundRequest = true; // suppress dialogs and fail silently
+
+ this._request.addEventListener("load", this._onRemoteLoaded.bind(this, deferredResponse));
+ this._request.addEventListener("error", (evt) => deferredResponse.resolve("HTTP error"));
+ // Reject for an abort assuming it's always from .stop() in which case we shouldn't return local
+ // or remote results for existing searches.
+ this._request.addEventListener("abort", (evt) => deferredResponse.reject("HTTP request aborted"));
+
+ this._request.send(submission.postData);
+
+ return deferredResponse;
+ },
+
+ /**
+ * Called when the request completed successfully (thought the HTTP status could be anything)
+ * so we can handle the response data.
+ * @private
+ */
+ _onRemoteLoaded: function(deferredResponse) {
+ if (!this._request) {
+ deferredResponse.resolve("Got HTTP response after the request was cancelled");
+ return;
+ }
+
+ let status, serverResults;
+ try {
+ status = this._request.status;
+ } catch (e) {
+ // The XMLHttpRequest can throw NS_ERROR_NOT_AVAILABLE.
+ deferredResponse.resolve("Unknown HTTP status: " + e);
+ return;
+ }
+
+ if (status != HTTP_OK || this._request.responseText == "") {
+ deferredResponse.resolve("Non-200 status or empty HTTP response: " + status);
+ return;
+ }
+
+ try {
+ serverResults = JSON.parse(this._request.responseText);
+ } catch (ex) {
+ deferredResponse.resolve("Failed to parse suggestion JSON: " + ex);
+ return;
+ }
+
+ if (!serverResults[0] ||
+ this._searchString.localeCompare(serverResults[0], undefined,
+ { sensitivity: "base" })) {
+ // something is wrong here so drop remote results
+ deferredResponse.resolve("Unexpected response, this._searchString does not match remote response");
+ return;
+ }
+ let results = serverResults[1] || [];
+ deferredResponse.resolve({ result: results });
+ },
+
+ /**
+ * Called when this._remoteResultTimer fires indicating the remote request took too long.
+ */
+ _onRemoteTimeout: function () {
+ this._request = null;
+
+ // FIXME: bug 387341
+ // Need to break the cycle between us and the timer.
+ this._remoteResultTimer = null;
+
+ // The XMLHTTPRequest for suggest results is taking too long
+ // so send out the form history results and cancel the request.
+ if (this._deferredRemoteResult) {
+ this._deferredRemoteResult.resolve("HTTP Timeout");
+ this._deferredRemoteResult = null;
+ }
+ },
+
+ /**
+ * @param {Array} suggestResults - an array of result objects from different sources (local or remote)
+ * @return {Object}
+ */
+ _dedupeAndReturnResults: function(suggestResults) {
+ if (this._searchString === null) {
+ // _searchString can be null if stop() was called and remote suggestions
+ // were disabled (stopping if we are fetching remote suggestions will
+ // cause a promise rejection before we reach _dedupeAndReturnResults).
+ return null;
+ }
+
+ let results = {
+ term: this._searchString,
+ remote: [],
+ local: [],
+ formHistoryResult: null,
+ };
+
+ for (let result of suggestResults) {
+ if (typeof result === "string") { // Failure message
+ Cu.reportError("SearchSuggestionController: " + result);
+ } else if (result.formHistoryResult) { // Local results have a formHistoryResult property.
+ results.formHistoryResult = result.formHistoryResult;
+ results.local = result.result || [];
+ } else { // Remote result
+ results.remote = result.result || [];
+ }
+ }
+
+ // If we have remote results, cap the number of local results
+ if (results.remote.length) {
+ results.local = results.local.slice(0, this.maxLocalResults);
+ }
+
+ // We don't want things to appear in both history and suggestions so remove entries from
+ // remote results that are already in local.
+ if (results.remote.length && results.local.length) {
+ for (let i = 0; i < results.local.length; ++i) {
+ let term = results.local[i];
+ let dupIndex = results.remote.indexOf(term);
+ if (dupIndex != -1) {
+ results.remote.splice(dupIndex, 1);
+ }
+ }
+ }
+
+ // Trim the number of results to the maximum requested (now that we've pruned dupes).
+ results.remote =
+ results.remote.slice(0, this.maxRemoteResults - results.local.length);
+
+ if (this._callback) {
+ this._callback(results);
+ }
+ this._reset();
+
+ return results;
+ },
+
+ _reset: function() {
+ this._request = null;
+ if (this._remoteResultTimer) {
+ this._remoteResultTimer.cancel();
+ this._remoteResultTimer = null;
+ }
+ this._deferredRemoteResult = null;
+ this._searchString = null;
+ },
+};
+
+/**
+ * Determines whether the given engine offers search suggestions.
+ *
+ * @param {nsISearchEngine} engine - The search engine
+ * @return {boolean} True if the engine offers suggestions and false otherwise.
+ */
+this.SearchSuggestionController.engineOffersSuggestions = function(engine) {
+ return engine.supportsResponseType(SEARCH_RESPONSE_SUGGESTION_JSON);
+};
diff --git a/application/basilisk/components/search/service/moz.build b/application/basilisk/components/search/service/moz.build
new file mode 100644
index 000000000..423faeffd
--- /dev/null
+++ b/application/basilisk/components/search/service/moz.build
@@ -0,0 +1,24 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DIST_SUBDIR = ''
+
+DEFINES['HAVE_SIDEBAR'] = True
+
+EXTRA_COMPONENTS += [
+ 'nsSearchSuggestions.js',
+ 'nsSidebar.js',
+]
+
+EXTRA_PP_COMPONENTS += [
+ 'nsSearchService.js',
+ 'toolkitsearch.manifest',
+]
+
+EXTRA_JS_MODULES += [
+ 'SearchStaticData.jsm',
+ 'SearchSuggestionController.jsm',
+]
diff --git a/application/basilisk/components/search/service/nsSearchService.js b/application/basilisk/components/search/service/nsSearchService.js
new file mode 100644
index 000000000..b4db31dee
--- /dev/null
+++ b/application/basilisk/components/search/service/nsSearchService.js
@@ -0,0 +1,4324 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+const Ci = Components.interfaces;
+const Cc = Components.classes;
+const Cr = Components.results;
+const Cu = Components.utils;
+
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+Cu.import("resource://gre/modules/Services.jsm");
+Cu.import("resource://gre/modules/Promise.jsm");
+Cu.import("resource://gre/modules/debug.js");
+Cu.import("resource://gre/modules/AppConstants.jsm");
+
+XPCOMUtils.defineLazyModuleGetter(this, "AsyncShutdown",
+ "resource://gre/modules/AsyncShutdown.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "DeferredTask",
+ "resource://gre/modules/DeferredTask.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "OS",
+ "resource://gre/modules/osfile.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Task",
+ "resource://gre/modules/Task.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
+ "resource://gre/modules/Deprecated.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "SearchStaticData",
+ "resource://gre/modules/SearchStaticData.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "setTimeout",
+ "resource://gre/modules/Timer.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "clearTimeout",
+ "resource://gre/modules/Timer.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Lz4",
+ "resource://gre/modules/lz4.js");
+
+XPCOMUtils.defineLazyServiceGetter(this, "gTextToSubURI",
+ "@mozilla.org/intl/texttosuburi;1",
+ "nsITextToSubURI");
+XPCOMUtils.defineLazyServiceGetter(this, "gEnvironment",
+ "@mozilla.org/process/environment;1",
+ "nsIEnvironment");
+
+Cu.importGlobalProperties(["XMLHttpRequest"]);
+
+// A text encoder to UTF8, used whenever we commit the cache to disk.
+XPCOMUtils.defineLazyGetter(this, "gEncoder",
+ function() {
+ return new TextEncoder();
+ });
+
+const MODE_RDONLY = 0x01;
+const MODE_WRONLY = 0x02;
+const MODE_CREATE = 0x08;
+const MODE_APPEND = 0x10;
+const MODE_TRUNCATE = 0x20;
+
+// Directory service keys
+const NS_APP_SEARCH_DIR_LIST = "SrchPluginsDL";
+const NS_APP_DISTRIBUTION_SEARCH_DIR_LIST = "SrchPluginsDistDL";
+const NS_APP_USER_SEARCH_DIR = "UsrSrchPlugns";
+const NS_APP_SEARCH_DIR = "SrchPlugns";
+const NS_APP_USER_PROFILE_50_DIR = "ProfD";
+
+// Loading plugins from NS_APP_SEARCH_DIR is no longer supported.
+// Instead, we now load plugins from APP_SEARCH_PREFIX, where a
+// list.txt file needs to exist to list available engines.
+const APP_SEARCH_PREFIX = "resource://search-plugins/";
+
+// See documentation in nsIBrowserSearchService.idl.
+const SEARCH_ENGINE_TOPIC = "browser-search-engine-modified";
+const QUIT_APPLICATION_TOPIC = "quit-application";
+
+const SEARCH_ENGINE_REMOVED = "engine-removed";
+const SEARCH_ENGINE_ADDED = "engine-added";
+const SEARCH_ENGINE_CHANGED = "engine-changed";
+const SEARCH_ENGINE_LOADED = "engine-loaded";
+const SEARCH_ENGINE_CURRENT = "engine-current";
+const SEARCH_ENGINE_DEFAULT = "engine-default";
+
+// The following constants are left undocumented in nsIBrowserSearchService.idl
+// For the moment, they are meant for testing/debugging purposes only.
+
+/**
+ * Topic used for events involving the service itself.
+ */
+const SEARCH_SERVICE_TOPIC = "browser-search-service";
+
+/**
+ * Sent whenever the cache is fully written to disk.
+ */
+const SEARCH_SERVICE_CACHE_WRITTEN = "write-cache-to-disk-complete";
+
+// Delay for lazy serialization (ms)
+const LAZY_SERIALIZE_DELAY = 100;
+
+// Delay for batching invalidation of the JSON cache (ms)
+const CACHE_INVALIDATION_DELAY = 1000;
+
+// Current cache version. This should be incremented if the format of the cache
+// file is modified.
+const CACHE_VERSION = 1;
+
+const CACHE_FILENAME = "search.json.mozlz4";
+
+const NEW_LINES = /(\r\n|\r|\n)/;
+
+// Set an arbitrary cap on the maximum icon size. Without this, large icons can
+// cause big delays when loading them at startup.
+const MAX_ICON_SIZE = 32768;
+
+// Default charset to use for sending search parameters. ISO-8859-1 is used to
+// match previous nsInternetSearchService behavior.
+const DEFAULT_QUERY_CHARSET = "ISO-8859-1";
+
+const SEARCH_BUNDLE = "chrome://global/locale/search/search.properties";
+const BRAND_BUNDLE = "chrome://branding/locale/brand.properties";
+
+const OPENSEARCH_NS_10 = "http://a9.com/-/spec/opensearch/1.0/";
+const OPENSEARCH_NS_11 = "http://a9.com/-/spec/opensearch/1.1/";
+
+// Although the specification at http://opensearch.a9.com/spec/1.1/description/
+// gives the namespace names defined above, many existing OpenSearch engines
+// are using the following versions. We therefore allow either.
+const OPENSEARCH_NAMESPACES = [
+ OPENSEARCH_NS_11, OPENSEARCH_NS_10,
+ "http://a9.com/-/spec/opensearchdescription/1.1/",
+ "http://a9.com/-/spec/opensearchdescription/1.0/"
+];
+
+const OPENSEARCH_LOCALNAME = "OpenSearchDescription";
+
+const MOZSEARCH_NS_10 = "http://www.mozilla.org/2006/browser/search/";
+const MOZSEARCH_LOCALNAME = "SearchPlugin";
+
+const URLTYPE_SUGGEST_JSON = "application/x-suggestions+json";
+const URLTYPE_SEARCH_HTML = "text/html";
+const URLTYPE_OPENSEARCH = "application/opensearchdescription+xml";
+
+const BROWSER_SEARCH_PREF = "browser.search.";
+const LOCALE_PREF = "general.useragent.locale";
+
+const USER_DEFINED = "{searchTerms}";
+
+// Custom search parameters
+const MOZ_OFFICIAL = AppConstants.MOZ_OFFICIAL_BRANDING ? "official" : "unofficial";
+
+const MOZ_PARAM_LOCALE = /\{moz:locale\}/g;
+const MOZ_PARAM_DIST_ID = /\{moz:distributionID\}/g;
+const MOZ_PARAM_OFFICIAL = /\{moz:official\}/g;
+
+// Supported OpenSearch parameters
+// See http://opensearch.a9.com/spec/1.1/querysyntax/#core
+const OS_PARAM_USER_DEFINED = /\{searchTerms\??\}/g;
+const OS_PARAM_INPUT_ENCODING = /\{inputEncoding\??\}/g;
+const OS_PARAM_LANGUAGE = /\{language\??\}/g;
+const OS_PARAM_OUTPUT_ENCODING = /\{outputEncoding\??\}/g;
+
+// Default values
+const OS_PARAM_LANGUAGE_DEF = "*";
+const OS_PARAM_OUTPUT_ENCODING_DEF = "UTF-8";
+const OS_PARAM_INPUT_ENCODING_DEF = "UTF-8";
+
+// "Unsupported" OpenSearch parameters. For example, we don't support
+// page-based results, so if the engine requires that we send the "page index"
+// parameter, we'll always send "1".
+const OS_PARAM_COUNT = /\{count\??\}/g;
+const OS_PARAM_START_INDEX = /\{startIndex\??\}/g;
+const OS_PARAM_START_PAGE = /\{startPage\??\}/g;
+
+// Default values
+const OS_PARAM_COUNT_DEF = "20"; // 20 results
+const OS_PARAM_START_INDEX_DEF = "1"; // start at 1st result
+const OS_PARAM_START_PAGE_DEF = "1"; // 1st page
+
+// Optional parameter
+const OS_PARAM_OPTIONAL = /\{(?:\w+:)?\w+\?\}/g;
+
+// A array of arrays containing parameters that we don't fully support, and
+// their default values. We will only send values for these parameters if
+// required, since our values are just really arbitrary "guesses" that should
+// give us the output we want.
+var OS_UNSUPPORTED_PARAMS = [
+ [OS_PARAM_COUNT, OS_PARAM_COUNT_DEF],
+ [OS_PARAM_START_INDEX, OS_PARAM_START_INDEX_DEF],
+ [OS_PARAM_START_PAGE, OS_PARAM_START_PAGE_DEF],
+];
+
+// The default engine update interval, in days. This is only used if an engine
+// specifies an updateURL, but not an updateInterval.
+const SEARCH_DEFAULT_UPDATE_INTERVAL = 7;
+
+// The default interval before checking again for the name of the
+// default engine for the region, in seconds. Only used if the response
+// from the server doesn't specify an interval.
+const SEARCH_GEO_DEFAULT_UPDATE_INTERVAL = 2592000; // 30 days.
+
+this.__defineGetter__("FileUtils", function() {
+ delete this.FileUtils;
+ Components.utils.import("resource://gre/modules/FileUtils.jsm");
+ return FileUtils;
+});
+
+this.__defineGetter__("NetUtil", function() {
+ delete this.NetUtil;
+ Components.utils.import("resource://gre/modules/NetUtil.jsm");
+ return NetUtil;
+});
+
+this.__defineGetter__("gChromeReg", function() {
+ delete this.gChromeReg;
+ return this.gChromeReg = Cc["@mozilla.org/chrome/chrome-registry;1"].
+ getService(Ci.nsIChromeRegistry);
+});
+
+/**
+ * Prefixed to all search debug output.
+ */
+const SEARCH_LOG_PREFIX = "*** Search: ";
+
+/**
+ * Outputs aText to the JavaScript console as well as to stdout.
+ */
+function DO_LOG(aText) {
+ dump(SEARCH_LOG_PREFIX + aText + "\n");
+ Services.console.logStringMessage(aText);
+}
+
+/**
+ * In debug builds, use a live, pref-based (browser.search.log) LOG function
+ * to allow enabling/disabling without a restart. Otherwise, don't log at all by
+ * default. This can be overridden at startup by the pref, see SearchService's
+ * _init method.
+ */
+var LOG = function() {};
+
+if (AppConstants.DEBUG) {
+ LOG = function (aText) {
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "log", false)) {
+ DO_LOG(aText);
+ }
+ };
+}
+
+/**
+ * Presents an assertion dialog in non-release builds and throws.
+ * @param message
+ * A message to display
+ * @param resultCode
+ * The NS_ERROR_* value to throw.
+ * @throws resultCode
+ */
+function ERROR(message, resultCode) {
+ NS_ASSERT(false, SEARCH_LOG_PREFIX + message);
+ throw Components.Exception(message, resultCode);
+}
+
+/**
+ * Logs the failure message (if browser.search.log is enabled) and throws.
+ * @param message
+ * A message to display
+ * @param resultCode
+ * The NS_ERROR_* value to throw.
+ * @throws resultCode or NS_ERROR_INVALID_ARG if resultCode isn't specified.
+ */
+function FAIL(message, resultCode) {
+ LOG(message);
+ throw Components.Exception(message, resultCode || Cr.NS_ERROR_INVALID_ARG);
+}
+
+/**
+ * Truncates big blobs of (data-)URIs to console-friendly sizes
+ * @param str
+ * String to tone down
+ * @param len
+ * Maximum length of the string to return. Defaults to the length of a tweet.
+ */
+function limitURILength(str, len) {
+ len = len || 140;
+ if (str.length > len)
+ return str.slice(0, len) + "...";
+ return str;
+}
+
+/**
+ * Ensures an assertion is met before continuing. Should be used to indicate
+ * fatal errors.
+ * @param assertion
+ * An assertion that must be met
+ * @param message
+ * A message to display if the assertion is not met
+ * @param resultCode
+ * The NS_ERROR_* value to throw if the assertion is not met
+ * @throws resultCode
+ */
+function ENSURE_WARN(assertion, message, resultCode) {
+ NS_ASSERT(assertion, SEARCH_LOG_PREFIX + message);
+ if (!assertion)
+ throw Components.Exception(message, resultCode);
+}
+
+function loadListener(aChannel, aEngine, aCallback) {
+ this._channel = aChannel;
+ this._bytes = [];
+ this._engine = aEngine;
+ this._callback = aCallback;
+}
+loadListener.prototype = {
+ _callback: null,
+ _channel: null,
+ _countRead: 0,
+ _engine: null,
+ _stream: null,
+
+ QueryInterface: XPCOMUtils.generateQI([
+ Ci.nsIRequestObserver,
+ Ci.nsIStreamListener,
+ Ci.nsIChannelEventSink,
+ Ci.nsIInterfaceRequestor,
+ // See FIXME comment below.
+ Ci.nsIHttpEventSink,
+ Ci.nsIProgressEventSink
+ ]),
+
+ // nsIRequestObserver
+ onStartRequest: function SRCH_loadStartR(aRequest, aContext) {
+ LOG("loadListener: Starting request: " + aRequest.name);
+ this._stream = Cc["@mozilla.org/binaryinputstream;1"].
+ createInstance(Ci.nsIBinaryInputStream);
+ },
+
+ onStopRequest: function SRCH_loadStopR(aRequest, aContext, aStatusCode) {
+ LOG("loadListener: Stopping request: " + aRequest.name);
+
+ var requestFailed = !Components.isSuccessCode(aStatusCode);
+ if (!requestFailed && (aRequest instanceof Ci.nsIHttpChannel))
+ requestFailed = !aRequest.requestSucceeded;
+
+ if (requestFailed || this._countRead == 0) {
+ LOG("loadListener: request failed!");
+ // send null so the callback can deal with the failure
+ this._callback(null, this._engine);
+ } else
+ this._callback(this._bytes, this._engine);
+ this._channel = null;
+ this._engine = null;
+ },
+
+ // nsIStreamListener
+ onDataAvailable: function SRCH_loadDAvailable(aRequest, aContext,
+ aInputStream, aOffset,
+ aCount) {
+ this._stream.setInputStream(aInputStream);
+
+ // Get a byte array of the data
+ this._bytes = this._bytes.concat(this._stream.readByteArray(aCount));
+ this._countRead += aCount;
+ },
+
+ // nsIChannelEventSink
+ asyncOnChannelRedirect: function SRCH_loadCRedirect(aOldChannel, aNewChannel,
+ aFlags, callback) {
+ this._channel = aNewChannel;
+ callback.onRedirectVerifyCallback(Components.results.NS_OK);
+ },
+
+ // nsIInterfaceRequestor
+ getInterface: function SRCH_load_GI(aIID) {
+ return this.QueryInterface(aIID);
+ },
+
+ // FIXME: bug 253127
+ // nsIHttpEventSink
+ onRedirect: function (aChannel, aNewChannel) {},
+ // nsIProgressEventSink
+ onProgress: function (aRequest, aContext, aProgress, aProgressMax) {},
+ onStatus: function (aRequest, aContext, aStatus, aStatusArg) {}
+}
+
+function isPartnerBuild() {
+ try {
+ let distroID = Services.prefs.getCharPref("distribution.id");
+
+ // Mozilla-provided builds (i.e. funnelcake) are not partner builds
+ if (distroID && !distroID.startsWith("mozilla")) {
+ return true;
+ }
+ } catch (e) {}
+
+ return false;
+}
+
+function getVerificationHash(aName) {
+ let disclaimer = "By modifying this file, I agree that I am doing so " +
+ "only within $appName itself, using official, user-driven search " +
+ "engine selection processes, and in a way which does not circumvent " +
+ "user consent. I acknowledge that any attempt to change this file " +
+ "from outside of $appName is a malicious act, and will be responded " +
+ "to accordingly."
+
+ let salt = OS.Path.basename(OS.Constants.Path.profileDir) + aName +
+ disclaimer.replace(/\$appName/g, Services.appinfo.name);
+
+ let converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"]
+ .createInstance(Ci.nsIScriptableUnicodeConverter);
+ converter.charset = "UTF-8";
+
+ // Data is an array of bytes.
+ let data = converter.convertToByteArray(salt, {});
+ let hasher = Cc["@mozilla.org/security/hash;1"]
+ .createInstance(Ci.nsICryptoHash);
+ hasher.init(hasher.SHA256);
+ hasher.update(data, data.length);
+
+ return hasher.finish(true);
+}
+
+/**
+ * Safely close a nsISafeOutputStream.
+ * @param aFOS
+ * The file output stream to close.
+ */
+function closeSafeOutputStream(aFOS) {
+ if (aFOS instanceof Ci.nsISafeOutputStream) {
+ try {
+ aFOS.finish();
+ return;
+ } catch (e) { }
+ }
+ aFOS.close();
+}
+
+/**
+ * Wrapper function for nsIIOService::newURI.
+ * @param aURLSpec
+ * The URL string from which to create an nsIURI.
+ * @returns an nsIURI object, or null if the creation of the URI failed.
+ */
+function makeURI(aURLSpec, aCharset) {
+ try {
+ return NetUtil.newURI(aURLSpec, aCharset);
+ } catch (ex) { }
+
+ return null;
+}
+
+/**
+ * Wrapper function for nsIIOService::newChannel2.
+ * @param url
+ * The URL string from which to create an nsIChannel.
+ * @returns an nsIChannel object, or null if the url is invalid.
+ */
+function makeChannel(url) {
+ try {
+ return NetUtil.newChannel({
+ uri: url,
+ loadUsingSystemPrincipal: true
+ });
+ } catch (ex) { }
+
+ return null;
+}
+
+/**
+ * Gets a directory from the directory service.
+ * @param aKey
+ * The directory service key indicating the directory to get.
+ */
+function getDir(aKey, aIFace) {
+ if (!aKey)
+ FAIL("getDir requires a directory key!");
+
+ return Services.dirsvc.get(aKey, aIFace || Ci.nsIFile);
+}
+
+/**
+ * Gets the current value of the locale. It's possible for this preference to
+ * be localized, so we have to do a little extra work here. Similar code
+ * exists in nsHttpHandler.cpp when building the UA string.
+ */
+function getLocale() {
+ let locale = getLocalizedPref(LOCALE_PREF);
+ if (locale)
+ return locale;
+
+ // Not localized.
+ return Services.prefs.getCharPref(LOCALE_PREF);
+}
+
+/**
+ * Wrapper for nsIPrefBranch::getComplexValue.
+ * @param aPrefName
+ * The name of the pref to get.
+ * @returns aDefault if the requested pref doesn't exist.
+ */
+function getLocalizedPref(aPrefName, aDefault) {
+ const nsIPLS = Ci.nsIPrefLocalizedString;
+ try {
+ return Services.prefs.getComplexValue(aPrefName, nsIPLS).data;
+ } catch (ex) {}
+
+ return aDefault;
+}
+
+/**
+ * @return a sanitized name to be used as a filename, or a random name
+ * if a sanitized name cannot be obtained (if aName contains
+ * no valid characters).
+ */
+function sanitizeName(aName) {
+ const maxLength = 60;
+ const minLength = 1;
+ var name = aName.toLowerCase();
+ name = name.replace(/\s+/g, "-");
+ name = name.replace(/[^-a-z0-9]/g, "");
+
+ // Use a random name if our input had no valid characters.
+ if (name.length < minLength)
+ name = Math.random().toString(36).replace(/^.*\./, '');
+
+ // Force max length.
+ return name.substring(0, maxLength);
+}
+
+/**
+ * Retrieve a pref from the search param branch.
+ *
+ * @param prefName
+ * The name of the pref.
+ **/
+function getMozParamPref(prefName) {
+ let branch = Services.prefs.getDefaultBranch(BROWSER_SEARCH_PREF + "param.");
+ return encodeURIComponent(branch.getCharPref(prefName));
+}
+
+/**
+ * Notifies watchers of SEARCH_ENGINE_TOPIC about changes to an engine or to
+ * the state of the search service.
+ *
+ * @param aEngine
+ * The nsISearchEngine object to which the change applies.
+ * @param aVerb
+ * A verb describing the change.
+ *
+ * @see nsIBrowserSearchService.idl
+ */
+var gInitialized = false;
+function notifyAction(aEngine, aVerb) {
+ if (gInitialized) {
+ LOG("NOTIFY: Engine: \"" + aEngine.name + "\"; Verb: \"" + aVerb + "\"");
+ Services.obs.notifyObservers(aEngine, SEARCH_ENGINE_TOPIC, aVerb);
+ }
+}
+
+function parseJsonFromStream(aInputStream) {
+ const json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
+ const data = json.decodeFromStream(aInputStream, aInputStream.available());
+ return data;
+}
+
+/**
+ * Simple object representing a name/value pair.
+ */
+function QueryParameter(aName, aValue, aPurpose) {
+ if (!aName || (aValue == null))
+ FAIL("missing name or value for QueryParameter!");
+
+ this.name = aName;
+ this.value = aValue;
+ this.purpose = aPurpose;
+}
+
+/**
+ * Perform OpenSearch parameter substitution on aParamValue.
+ *
+ * @param aParamValue
+ * A string containing OpenSearch search parameters.
+ * @param aSearchTerms
+ * The user-provided search terms. This string will inserted into
+ * aParamValue as the value of the OS_PARAM_USER_DEFINED parameter.
+ * This value must already be escaped appropriately - it is inserted
+ * as-is.
+ * @param aEngine
+ * The engine which owns the string being acted on.
+ *
+ * @see http://opensearch.a9.com/spec/1.1/querysyntax/#core
+ */
+function ParamSubstitution(aParamValue, aSearchTerms, aEngine) {
+ var value = aParamValue;
+
+ var distributionID = Services.prefs.getCharPref(BROWSER_SEARCH_PREF + "distributionID",
+ Services.appinfo.distributionID || "");
+ var official = MOZ_OFFICIAL;
+ try {
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "official"))
+ official = "official";
+ else
+ official = "unofficial";
+ }
+ catch (ex) { }
+
+ // Custom search parameters. These are only available to default search
+ // engines.
+ if (aEngine._isDefault) {
+ value = value.replace(MOZ_PARAM_LOCALE, getLocale());
+ value = value.replace(MOZ_PARAM_DIST_ID, distributionID);
+ value = value.replace(MOZ_PARAM_OFFICIAL, official);
+ }
+
+ // Insert the OpenSearch parameters we're confident about
+ value = value.replace(OS_PARAM_USER_DEFINED, aSearchTerms);
+ value = value.replace(OS_PARAM_INPUT_ENCODING, aEngine.queryCharset);
+ value = value.replace(OS_PARAM_LANGUAGE,
+ getLocale() || OS_PARAM_LANGUAGE_DEF);
+ value = value.replace(OS_PARAM_OUTPUT_ENCODING,
+ OS_PARAM_OUTPUT_ENCODING_DEF);
+
+ // Replace any optional parameters
+ value = value.replace(OS_PARAM_OPTIONAL, "");
+
+ // Insert any remaining required params with our default values
+ for (var i = 0; i < OS_UNSUPPORTED_PARAMS.length; ++i) {
+ value = value.replace(OS_UNSUPPORTED_PARAMS[i][0],
+ OS_UNSUPPORTED_PARAMS[i][1]);
+ }
+
+ return value;
+}
+
+/**
+ * Creates an engineURL object, which holds the query URL and all parameters.
+ *
+ * @param aType
+ * A string containing the name of the MIME type of the search results
+ * returned by this URL.
+ * @param aMethod
+ * The HTTP request method. Must be a case insensitive value of either
+ * "GET" or "POST".
+ * @param aTemplate
+ * The URL to which search queries should be sent. For GET requests,
+ * must contain the string "{searchTerms}", to indicate where the user
+ * entered search terms should be inserted.
+ * @param aResultDomain
+ * The root domain for this URL. Defaults to the template's host.
+ *
+ * @see http://opensearch.a9.com/spec/1.1/querysyntax/#urltag
+ *
+ * @throws NS_ERROR_NOT_IMPLEMENTED if aType is unsupported.
+ */
+function EngineURL(aType, aMethod, aTemplate, aResultDomain) {
+ if (!aType || !aMethod || !aTemplate)
+ FAIL("missing type, method or template for EngineURL!");
+
+ var method = aMethod.toUpperCase();
+ var type = aType.toLowerCase();
+
+ if (method != "GET" && method != "POST")
+ FAIL("method passed to EngineURL must be \"GET\" or \"POST\"");
+
+ this.type = type;
+ this.method = method;
+ this.params = [];
+ this.rels = [];
+ // Don't serialize expanded mozparams
+ this.mozparams = {};
+
+ var templateURI = makeURI(aTemplate);
+ if (!templateURI)
+ FAIL("new EngineURL: template is not a valid URI!", Cr.NS_ERROR_FAILURE);
+
+ switch (templateURI.scheme) {
+ case "http":
+ case "https":
+ // Disable these for now, see bug 295018
+ // case "file":
+ // case "resource":
+ this.template = aTemplate;
+ break;
+ default:
+ FAIL("new EngineURL: template uses invalid scheme!", Cr.NS_ERROR_FAILURE);
+ }
+
+ // If no resultDomain was specified in the engine definition file, use the
+ // host from the template.
+ this.resultDomain = aResultDomain || templateURI.host;
+ // We never want to return a "www." prefix, so eventually strip it.
+ if (this.resultDomain.startsWith("www.")) {
+ this.resultDomain = this.resultDomain.substr(4);
+ }
+}
+EngineURL.prototype = {
+
+ addParam: function SRCH_EURL_addParam(aName, aValue, aPurpose) {
+ this.params.push(new QueryParameter(aName, aValue, aPurpose));
+ },
+
+ // Note: This method requires that aObj has a unique name or the previous MozParams entry with
+ // that name will be overwritten.
+ _addMozParam: function SRCH_EURL__addMozParam(aObj) {
+ aObj.mozparam = true;
+ this.mozparams[aObj.name] = aObj;
+ },
+
+ getSubmission: function SRCH_EURL_getSubmission(aSearchTerms, aEngine, aPurpose) {
+ var url = ParamSubstitution(this.template, aSearchTerms, aEngine);
+ // Default to searchbar if the purpose is not provided
+ var purpose = aPurpose || "searchbar";
+
+ // If a particular purpose isn't defined in the plugin, fallback to 'searchbar'.
+ if (!this.params.some(p => p.purpose !== undefined && p.purpose == purpose))
+ purpose = "searchbar";
+
+ // Create an application/x-www-form-urlencoded representation of our params
+ // (name=value&name=value&name=value)
+ var dataString = "";
+ for (var i = 0; i < this.params.length; ++i) {
+ var param = this.params[i];
+
+ // If this parameter has a purpose, only add it if the purpose matches
+ if (param.purpose !== undefined && param.purpose != purpose)
+ continue;
+
+ var value = ParamSubstitution(param.value, aSearchTerms, aEngine);
+
+ dataString += (i > 0 ? "&" : "") + param.name + "=" + value;
+ }
+
+ var postData = null;
+ if (this.method == "GET") {
+ // GET method requests have no post data, and append the encoded
+ // query string to the url...
+ if (url.indexOf("?") == -1 && dataString)
+ url += "?";
+ url += dataString;
+ } else if (this.method == "POST") {
+ // POST method requests must wrap the encoded text in a MIME
+ // stream and supply that as POSTDATA.
+ var stringStream = Cc["@mozilla.org/io/string-input-stream;1"].
+ createInstance(Ci.nsIStringInputStream);
+ stringStream.data = dataString;
+
+ postData = Cc["@mozilla.org/network/mime-input-stream;1"].
+ createInstance(Ci.nsIMIMEInputStream);
+ postData.addHeader("Content-Type", "application/x-www-form-urlencoded");
+ postData.addContentLength = true;
+ postData.setData(stringStream);
+ }
+
+ return new Submission(makeURI(url), postData);
+ },
+
+ _getTermsParameterName: function SRCH_EURL__getTermsParameterName() {
+ let queryParam = this.params.find(p => p.value == USER_DEFINED);
+ return queryParam ? queryParam.name : "";
+ },
+
+ _hasRelation: function SRC_EURL__hasRelation(aRel) {
+ return this.rels.some(e => e == aRel.toLowerCase());
+ },
+
+ _initWithJSON: function SRC_EURL__initWithJSON(aJson, aEngine) {
+ if (!aJson.params)
+ return;
+
+ this.rels = aJson.rels;
+
+ for (let i = 0; i < aJson.params.length; ++i) {
+ let param = aJson.params[i];
+ if (param.mozparam) {
+ if (param.condition == "pref") {
+ let value = getMozParamPref(param.pref);
+ this.addParam(param.name, value);
+ }
+ this._addMozParam(param);
+ }
+ else
+ this.addParam(param.name, param.value, param.purpose || undefined);
+ }
+ },
+
+ /**
+ * Creates a JavaScript object that represents this URL.
+ * @returns An object suitable for serialization as JSON.
+ **/
+ toJSON: function SRCH_EURL_toJSON() {
+ var json = {
+ template: this.template,
+ rels: this.rels,
+ resultDomain: this.resultDomain
+ };
+
+ if (this.type != URLTYPE_SEARCH_HTML)
+ json.type = this.type;
+ if (this.method != "GET")
+ json.method = this.method;
+
+ function collapseMozParams(aParam) {
+ return this.mozparams[aParam.name] || aParam;
+ }
+ json.params = this.params.map(collapseMozParams, this);
+
+ return json;
+ }
+};
+
+/**
+ * nsISearchEngine constructor.
+ * @param aLocation
+ * A nsILocalFile or nsIURI object representing the location of the
+ * search engine data file.
+ * @param aIsReadOnly
+ * Boolean indicating whether the engine should be treated as read-only.
+ */
+function Engine(aLocation, aIsReadOnly) {
+ this._readOnly = aIsReadOnly;
+ this._urls = [];
+ this._metaData = {};
+
+ let file, uri;
+ if (typeof aLocation == "string") {
+ this._shortName = aLocation;
+ } else if (aLocation instanceof Ci.nsILocalFile) {
+ if (!aIsReadOnly) {
+ // This is an engine that was installed in NS_APP_USER_SEARCH_DIR by a
+ // previous version. We are converting the file to an engine stored only
+ // in JSON, but we need to keep the reference to the profile file to
+ // remove it if the user ever removes the engine.
+ this._filePath = aLocation.persistentDescriptor;
+ }
+ file = aLocation;
+ } else if (aLocation instanceof Ci.nsIURI) {
+ switch (aLocation.scheme) {
+ case "https":
+ case "http":
+ case "ftp":
+ case "data":
+ case "file":
+ case "resource":
+ case "chrome":
+ uri = aLocation;
+ break;
+ default:
+ ERROR("Invalid URI passed to the nsISearchEngine constructor",
+ Cr.NS_ERROR_INVALID_ARG);
+ }
+ } else
+ ERROR("Engine location is neither a File nor a URI object",
+ Cr.NS_ERROR_INVALID_ARG);
+
+ if (!this._shortName) {
+ // If we don't have a shortName at this point, it's the first time we load
+ // this engine, so let's generate the shortName, id and loadPath values.
+ let shortName;
+ if (file) {
+ shortName = file.leafName;
+ }
+ else if (uri && uri instanceof Ci.nsIURL) {
+ if (aIsReadOnly || (gEnvironment.get("XPCSHELL_TEST_PROFILE_DIR") &&
+ uri.scheme == "resource")) {
+ shortName = uri.fileName;
+ }
+ }
+ if (shortName && shortName.endsWith(".xml")) {
+ this._shortName = shortName.slice(0, -4);
+ }
+ this._loadPath = this.getAnonymizedLoadPath(file, uri);
+
+ if (!shortName && !aIsReadOnly) {
+ // We are in the process of downloading and installing the engine.
+ // We'll have the shortName and id once we are done parsing it.
+ return;
+ }
+
+ // Build the id used for the legacy metadata storage, so that we
+ // can do a one-time import of data from old profiles.
+ if (this._isDefault ||
+ (uri && uri.spec.startsWith(APP_SEARCH_PREFIX))) {
+ // The second part of the check is to catch engines from language packs.
+ // They aren't default engines (because they aren't app-shipped), but we
+ // still need to give their id an [app] prefix for backward compat.
+ this._id = "[app]/" + this._shortName + ".xml";
+ }
+ else if (!aIsReadOnly) {
+ this._id = "[profile]/" + this._shortName + ".xml";
+ }
+ else {
+ // If the engine is neither a default one, nor a user-installed one,
+ // it must be extension-shipped, so use the full path as id.
+ LOG("Setting _id to full path for engine from " + this._loadPath);
+ this._id = file ? file.path : uri.spec;
+ }
+ }
+}
+
+Engine.prototype = {
+ // Data set by the user.
+ _metaData: null,
+ // The data describing the engine, in the form of an XML document element.
+ _data: null,
+ // Whether or not the engine is readonly.
+ _readOnly: true,
+ // Anonymized path of where we initially loaded the engine from.
+ // This will stay null for engines installed in the profile before we moved
+ // to a JSON storage.
+ _loadPath: null,
+ // The engine's description
+ _description: "",
+ // Used to store the engine to replace, if we're an update to an existing
+ // engine.
+ _engineToUpdate: null,
+ // Set to true if the engine has a preferred icon (an icon that should not be
+ // overridden by a non-preferred icon).
+ _hasPreferredIcon: null,
+ // The engine's name.
+ _name: null,
+ // The name of the charset used to submit the search terms.
+ _queryCharset: null,
+ // The engine's raw SearchForm value (URL string pointing to a search form).
+ __searchForm: null,
+ get _searchForm() {
+ return this.__searchForm;
+ },
+ set _searchForm(aValue) {
+ if (/^https?:/i.test(aValue))
+ this.__searchForm = aValue;
+ else
+ LOG("_searchForm: Invalid URL dropped for " + this._name ||
+ "the current engine");
+ },
+ // Whether to obtain user confirmation before adding the engine. This is only
+ // used when the engine is first added to the list.
+ _confirm: false,
+ // Whether to set this as the current engine as soon as it is loaded. This
+ // is only used when the engine is first added to the list.
+ _useNow: false,
+ // A function to be invoked when this engine object's addition completes (or
+ // fails). Only used for installation via addEngine.
+ _installCallback: null,
+ // The number of days between update checks for new versions
+ _updateInterval: null,
+ // The url to check at for a new update
+ _updateURL: null,
+ // The url to check for a new icon
+ _iconUpdateURL: null,
+ /* The extension ID if added by an extension. */
+ _extensionID: null,
+
+ /**
+ * Retrieves the data from the engine's file.
+ * The document element is placed in the engine's data field.
+ */
+ _initFromFile: function SRCH_ENG_initFromFile(file) {
+ if (!file || !file.exists())
+ FAIL("File must exist before calling initFromFile!", Cr.NS_ERROR_UNEXPECTED);
+
+ var fileInStream = Cc["@mozilla.org/network/file-input-stream;1"].
+ createInstance(Ci.nsIFileInputStream);
+
+ fileInStream.init(file, MODE_RDONLY, FileUtils.PERMS_FILE, false);
+
+ var domParser = Cc["@mozilla.org/xmlextras/domparser;1"].
+ createInstance(Ci.nsIDOMParser);
+ var doc = domParser.parseFromStream(fileInStream, "UTF-8",
+ file.fileSize,
+ "text/xml");
+
+ this._data = doc.documentElement;
+ fileInStream.close();
+
+ // Now that the data is loaded, initialize the engine object
+ this._initFromData();
+ },
+
+ /**
+ * Retrieves the data from the engine's file asynchronously.
+ * The document element is placed in the engine's data field.
+ *
+ * @param file The file to load the search plugin from.
+ *
+ * @returns {Promise} A promise, resolved successfully if initializing from
+ * data succeeds, rejected if it fails.
+ */
+ _asyncInitFromFile: Task.async(function* (file) {
+ if (!file || !(yield OS.File.exists(file.path)))
+ FAIL("File must exist before calling initFromFile!", Cr.NS_ERROR_UNEXPECTED);
+
+ let fileURI = NetUtil.ioService.newFileURI(file);
+ yield this._retrieveSearchXMLData(fileURI.spec);
+
+ // Now that the data is loaded, initialize the engine object
+ this._initFromData();
+ }),
+
+ /**
+ * Retrieves the engine data from a URI. Initializes the engine, flushes to
+ * disk, and notifies the search service once initialization is complete.
+ *
+ * @param uri The uri to load the search plugin from.
+ */
+ _initFromURIAndLoad: function SRCH_ENG_initFromURIAndLoad(uri) {
+ ENSURE_WARN(uri instanceof Ci.nsIURI,
+ "Must have URI when calling _initFromURIAndLoad!",
+ Cr.NS_ERROR_UNEXPECTED);
+
+ LOG("_initFromURIAndLoad: Downloading engine from: \"" + uri.spec + "\".");
+
+ var chan = NetUtil.newChannel({
+ uri: uri,
+ loadUsingSystemPrincipal: true
+ });
+
+ if (this._engineToUpdate && (chan instanceof Ci.nsIHttpChannel)) {
+ var lastModified = this._engineToUpdate.getAttr("updatelastmodified");
+ if (lastModified)
+ chan.setRequestHeader("If-Modified-Since", lastModified, false);
+ }
+ this._uri = uri;
+ var listener = new loadListener(chan, this, this._onLoad);
+ chan.notificationCallbacks = listener;
+ chan.asyncOpen2(listener);
+ },
+
+ /**
+ * Retrieves the engine data from a URI asynchronously and initializes it.
+ *
+ * @param uri The uri to load the search plugin from.
+ *
+ * @returns {Promise} A promise, resolved successfully if retrieveing data
+ * succeeds.
+ */
+ _asyncInitFromURI: Task.async(function* (uri) {
+ LOG("_asyncInitFromURI: Loading engine from: \"" + uri.spec + "\".");
+ yield this._retrieveSearchXMLData(uri.spec);
+ // Now that the data is loaded, initialize the engine object
+ this._initFromData();
+ }),
+
+ /**
+ * Retrieves the engine data for a given URI asynchronously.
+ *
+ * @returns {Promise} A promise, resolved successfully if retrieveing data
+ * succeeds.
+ */
+ _retrieveSearchXMLData: function SRCH_ENG__retrieveSearchXMLData(aURL) {
+ let deferred = Promise.defer();
+ let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].
+ createInstance(Ci.nsIXMLHttpRequest);
+ request.overrideMimeType("text/xml");
+ request.onload = (aEvent) => {
+ let responseXML = aEvent.target.responseXML;
+ this._data = responseXML.documentElement;
+ deferred.resolve();
+ };
+ request.onerror = function(aEvent) {
+ deferred.resolve();
+ };
+ request.open("GET", aURL, true);
+ request.send();
+
+ return deferred.promise;
+ },
+
+ _initFromURISync: function SRCH_ENG_initFromURISync(uri) {
+ ENSURE_WARN(uri instanceof Ci.nsIURI,
+ "Must have URI when calling _initFromURISync!",
+ Cr.NS_ERROR_UNEXPECTED);
+
+ ENSURE_WARN(uri.schemeIs("resource"), "_initFromURISync called for non-resource URI",
+ Cr.NS_ERROR_FAILURE);
+
+ LOG("_initFromURISync: Loading engine from: \"" + uri.spec + "\".");
+
+ var chan = NetUtil.newChannel({
+ uri: uri,
+ loadUsingSystemPrincipal: true
+ });
+
+ var stream = chan.open2();
+ var parser = Cc["@mozilla.org/xmlextras/domparser;1"].
+ createInstance(Ci.nsIDOMParser);
+ var doc = parser.parseFromStream(stream, "UTF-8", stream.available(), "text/xml");
+
+ this._data = doc.documentElement;
+
+ // Now that the data is loaded, initialize the engine object
+ this._initFromData();
+ },
+
+ /**
+ * Attempts to find an EngineURL object in the set of EngineURLs for
+ * this Engine that has the given type string. (This corresponds to the
+ * "type" attribute in the "Url" node in the OpenSearch spec.)
+ * This method will return the first matching URL object found, or null
+ * if no matching URL is found.
+ *
+ * @param aType string to match the EngineURL's type attribute
+ * @param aRel [optional] only return URLs that with this rel value
+ */
+ _getURLOfType: function SRCH_ENG__getURLOfType(aType, aRel) {
+ for (var i = 0; i < this._urls.length; ++i) {
+ if (this._urls[i].type == aType && (!aRel || this._urls[i]._hasRelation(aRel)))
+ return this._urls[i];
+ }
+
+ return null;
+ },
+
+ _confirmAddEngine: function SRCH_SVC_confirmAddEngine() {
+ var stringBundle = Services.strings.createBundle(SEARCH_BUNDLE);
+ var titleMessage = stringBundle.GetStringFromName("addEngineConfirmTitle");
+
+ // Display only the hostname portion of the URL.
+ var dialogMessage =
+ stringBundle.formatStringFromName("addEngineConfirmation",
+ [this._name, this._uri.host], 2);
+ var checkboxMessage = null;
+ if (!Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "noCurrentEngine", false))
+ checkboxMessage = stringBundle.GetStringFromName("addEngineAsCurrentText");
+
+ var addButtonLabel =
+ stringBundle.GetStringFromName("addEngineAddButtonLabel");
+
+ var ps = Services.prompt;
+ var buttonFlags = (ps.BUTTON_TITLE_IS_STRING * ps.BUTTON_POS_0) +
+ (ps.BUTTON_TITLE_CANCEL * ps.BUTTON_POS_1) +
+ ps.BUTTON_POS_0_DEFAULT;
+
+ var checked = {value: false};
+ // confirmEx returns the index of the button that was pressed. Since "Add"
+ // is button 0, we want to return the negation of that value.
+ var confirm = !ps.confirmEx(null,
+ titleMessage,
+ dialogMessage,
+ buttonFlags,
+ addButtonLabel,
+ null, null, // button 1 & 2 names not used
+ checkboxMessage,
+ checked);
+
+ return {confirmed: confirm, useNow: checked.value};
+ },
+
+ /**
+ * Handle the successful download of an engine. Initializes the engine and
+ * triggers parsing of the data. The engine is then flushed to disk. Notifies
+ * the search service once initialization is complete.
+ */
+ _onLoad: function SRCH_ENG_onLoad(aBytes, aEngine) {
+ /**
+ * Handle an error during the load of an engine by notifying the engine's
+ * error callback, if any.
+ */
+ function onError(errorCode = Ci.nsISearchInstallCallback.ERROR_UNKNOWN_FAILURE) {
+ // Notify the callback of the failure
+ if (aEngine._installCallback) {
+ aEngine._installCallback(errorCode);
+ }
+ }
+
+ function promptError(strings = {}, error = undefined) {
+ onError(error);
+
+ if (aEngine._engineToUpdate) {
+ // We're in an update, so just fail quietly
+ LOG("updating " + aEngine._engineToUpdate.name + " failed");
+ return;
+ }
+ var brandBundle = Services.strings.createBundle(BRAND_BUNDLE);
+ var brandName = brandBundle.GetStringFromName("brandShortName");
+
+ var searchBundle = Services.strings.createBundle(SEARCH_BUNDLE);
+ var msgStringName = strings.error || "error_loading_engine_msg2";
+ var titleStringName = strings.title || "error_loading_engine_title";
+ var title = searchBundle.GetStringFromName(titleStringName);
+ var text = searchBundle.formatStringFromName(msgStringName,
+ [brandName, aEngine._location],
+ 2);
+
+ Services.ww.getNewPrompter(null).alert(title, text);
+ }
+
+ if (!aBytes) {
+ promptError();
+ return;
+ }
+
+ var parser = Cc["@mozilla.org/xmlextras/domparser;1"].
+ createInstance(Ci.nsIDOMParser);
+ var doc = parser.parseFromBuffer(aBytes, aBytes.length, "text/xml");
+ aEngine._data = doc.documentElement;
+
+ try {
+ // Initialize the engine from the obtained data
+ aEngine._initFromData();
+ } catch (ex) {
+ LOG("_onLoad: Failed to init engine!\n" + ex);
+ // Report an error to the user
+ promptError();
+ return;
+ }
+
+ if (aEngine._engineToUpdate) {
+ let engineToUpdate = aEngine._engineToUpdate.wrappedJSObject;
+
+ // Make this new engine use the old engine's shortName, and preserve
+ // metadata.
+ aEngine._shortName = engineToUpdate._shortName;
+ Object.keys(engineToUpdate._metaData).forEach(key => {
+ aEngine.setAttr(key, engineToUpdate.getAttr(key));
+ });
+ aEngine._loadPath = engineToUpdate._loadPath;
+
+ // Keep track of the last modified date, so that we can make conditional
+ // requests for future updates.
+ aEngine.setAttr("updatelastmodified", (new Date()).toUTCString());
+
+ // Set the new engine's icon, if it doesn't yet have one.
+ if (!aEngine._iconURI && engineToUpdate._iconURI)
+ aEngine._iconURI = engineToUpdate._iconURI;
+ } else {
+ // Check that when adding a new engine (e.g., not updating an
+ // existing one), a duplicate engine does not already exist.
+ if (Services.search.getEngineByName(aEngine.name)) {
+ // If we're confirming the engine load, then display a "this is a
+ // duplicate engine" prompt; otherwise, fail silently.
+ if (aEngine._confirm) {
+ promptError({ error: "error_duplicate_engine_msg",
+ title: "error_invalid_engine_title"
+ }, Ci.nsISearchInstallCallback.ERROR_DUPLICATE_ENGINE);
+ } else {
+ onError(Ci.nsISearchInstallCallback.ERROR_DUPLICATE_ENGINE);
+ }
+ LOG("_onLoad: duplicate engine found, bailing");
+ return;
+ }
+
+ // If requested, confirm the addition now that we have the title.
+ // This property is only ever true for engines added via
+ // nsIBrowserSearchService::addEngine.
+ if (aEngine._confirm) {
+ var confirmation = aEngine._confirmAddEngine();
+ LOG("_onLoad: confirm is " + confirmation.confirmed +
+ "; useNow is " + confirmation.useNow);
+ if (!confirmation.confirmed) {
+ onError();
+ return;
+ }
+ aEngine._useNow = confirmation.useNow;
+ }
+
+ aEngine._shortName = sanitizeName(aEngine.name);
+ aEngine._loadPath = aEngine.getAnonymizedLoadPath(null, aEngine._uri);
+ aEngine.setAttr("loadPathHash", getVerificationHash(aEngine._loadPath));
+ }
+
+ // Notify the search service of the successful load. It will deal with
+ // updates by checking aEngine._engineToUpdate.
+ notifyAction(aEngine, SEARCH_ENGINE_LOADED);
+
+ // Notify the callback if needed
+ if (aEngine._installCallback) {
+ aEngine._installCallback();
+ }
+ },
+
+ /**
+ * Creates a key by serializing an object that contains the icon's width
+ * and height.
+ *
+ * @param aWidth
+ * Width of the icon.
+ * @param aHeight
+ * Height of the icon.
+ * @returns key string
+ */
+ _getIconKey: function SRCH_ENG_getIconKey(aWidth, aHeight) {
+ let keyObj = {
+ width: aWidth,
+ height: aHeight
+ };
+
+ return JSON.stringify(keyObj);
+ },
+
+ /**
+ * Add an icon to the icon map used by getIconURIBySize() and getIcons().
+ *
+ * @param aWidth
+ * Width of the icon.
+ * @param aHeight
+ * Height of the icon.
+ * @param aURISpec
+ * String with the icon's URI.
+ */
+ _addIconToMap: function SRCH_ENG_addIconToMap(aWidth, aHeight, aURISpec) {
+ if (aWidth == 16 && aHeight == 16) {
+ // The 16x16 icon is stored in _iconURL, we don't need to store it twice.
+ return;
+ }
+
+ // Use an object instead of a Map() because it needs to be serializable.
+ this._iconMapObj = this._iconMapObj || {};
+ let key = this._getIconKey(aWidth, aHeight);
+ this._iconMapObj[key] = aURISpec;
+ },
+
+ /**
+ * Sets the .iconURI property of the engine. If both aWidth and aHeight are
+ * provided an entry will be added to _iconMapObj that will enable accessing
+ * icon's data through getIcons() and getIconURIBySize() APIs.
+ *
+ * @param aIconURL
+ * A URI string pointing to the engine's icon. Must have a http[s],
+ * ftp, or data scheme. Icons with HTTP[S] or FTP schemes will be
+ * downloaded and converted to data URIs for storage in the engine
+ * XML files, if the engine is not readonly.
+ * @param aIsPreferred
+ * Whether or not this icon is to be preferred. Preferred icons can
+ * override non-preferred icons.
+ * @param aWidth (optional)
+ * Width of the icon.
+ * @param aHeight (optional)
+ * Height of the icon.
+ */
+ _setIcon: function SRCH_ENG_setIcon(aIconURL, aIsPreferred, aWidth, aHeight) {
+ var uri = makeURI(aIconURL);
+
+ // Ignore bad URIs
+ if (!uri)
+ return;
+
+ LOG("_setIcon: Setting icon url \"" + limitURILength(uri.spec) + "\" for engine \""
+ + this.name + "\".");
+ // Only accept remote icons from http[s] or ftp
+ switch (uri.scheme) {
+ case "resource":
+ case "chrome":
+ // We only allow chrome and resource icon URLs for built-in search engines
+ if (!this._isDefault) {
+ return;
+ }
+ // Fall through to the data case
+ case "data":
+ if (!this._hasPreferredIcon || aIsPreferred) {
+ this._iconURI = uri;
+ notifyAction(this, SEARCH_ENGINE_CHANGED);
+ this._hasPreferredIcon = aIsPreferred;
+ }
+
+ if (aWidth && aHeight) {
+ this._addIconToMap(aWidth, aHeight, aIconURL)
+ }
+ break;
+ case "http":
+ case "https":
+ case "ftp":
+ LOG("_setIcon: Downloading icon: \"" + uri.spec +
+ "\" for engine: \"" + this.name + "\"");
+ var chan = NetUtil.newChannel({
+ uri: uri,
+ loadUsingSystemPrincipal: true
+ });
+
+ let iconLoadCallback = function (aByteArray, aEngine) {
+ // This callback may run after we've already set a preferred icon,
+ // so check again.
+ if (aEngine._hasPreferredIcon && !aIsPreferred)
+ return;
+
+ if (!aByteArray || aByteArray.length > MAX_ICON_SIZE) {
+ LOG("iconLoadCallback: load failed, or the icon was too large!");
+ return;
+ }
+
+ let type = chan.contentType;
+ if (!type.startsWith("image/"))
+ type = "image/x-icon";
+ let dataURL = "data:" + type + ";base64," +
+ btoa(String.fromCharCode.apply(null, aByteArray));
+
+ aEngine._iconURI = makeURI(dataURL);
+
+ if (aWidth && aHeight) {
+ aEngine._addIconToMap(aWidth, aHeight, dataURL)
+ }
+
+ notifyAction(aEngine, SEARCH_ENGINE_CHANGED);
+ aEngine._hasPreferredIcon = aIsPreferred;
+ };
+
+ // If we're currently acting as an "update engine", then the callback
+ // should set the icon on the engine we're updating and not us, since
+ // |this| might be gone by the time the callback runs.
+ var engineToSet = this._engineToUpdate || this;
+
+ var listener = new loadListener(chan, engineToSet, iconLoadCallback);
+ chan.notificationCallbacks = listener;
+ chan.asyncOpen2(listener);
+ break;
+ }
+ },
+
+ /**
+ * Initialize this Engine object from the collected data.
+ */
+ _initFromData: function SRCH_ENG_initFromData() {
+ ENSURE_WARN(this._data, "Can't init an engine with no data!",
+ Cr.NS_ERROR_UNEXPECTED);
+
+ // Ensure we have a supported engine type before attempting to parse it.
+ let element = this._data;
+ if ((element.localName == MOZSEARCH_LOCALNAME &&
+ element.namespaceURI == MOZSEARCH_NS_10) ||
+ (element.localName == OPENSEARCH_LOCALNAME &&
+ OPENSEARCH_NAMESPACES.indexOf(element.namespaceURI) != -1)) {
+ LOG("_init: Initing search plugin from " + this._location);
+
+ this._parse();
+
+ } else
+ FAIL(this._location + " is not a valid search plugin.", Cr.NS_ERROR_FAILURE);
+
+ // No need to keep a ref to our data (which in some cases can be a document
+ // element) past this point
+ this._data = null;
+ },
+
+ /**
+ * Initialize this Engine object from a collection of metadata.
+ */
+ _initFromMetadata: function SRCH_ENG_initMetaData(aName, aIconURL, aAlias,
+ aDescription, aMethod,
+ aTemplate, aExtensionID) {
+ ENSURE_WARN(!this._readOnly,
+ "Can't call _initFromMetaData on a readonly engine!",
+ Cr.NS_ERROR_FAILURE);
+
+ this._urls.push(new EngineURL(URLTYPE_SEARCH_HTML, aMethod, aTemplate));
+
+ this._name = aName;
+ this.alias = aAlias;
+ this._description = aDescription;
+ this._setIcon(aIconURL, true);
+ this._extensionID = aExtensionID;
+ },
+
+ /**
+ * Extracts data from an OpenSearch URL element and creates an EngineURL
+ * object which is then added to the engine's list of URLs.
+ *
+ * @throws NS_ERROR_FAILURE if a URL object could not be created.
+ *
+ * @see http://opensearch.a9.com/spec/1.1/querysyntax/#urltag.
+ * @see EngineURL()
+ */
+ _parseURL: function SRCH_ENG_parseURL(aElement) {
+ var type = aElement.getAttribute("type");
+ // According to the spec, method is optional, defaulting to "GET" if not
+ // specified
+ var method = aElement.getAttribute("method") || "GET";
+ var template = aElement.getAttribute("template");
+ var resultDomain = aElement.getAttribute("resultdomain");
+
+ try {
+ var url = new EngineURL(type, method, template, resultDomain);
+ } catch (ex) {
+ FAIL("_parseURL: failed to add " + template + " as a URL",
+ Cr.NS_ERROR_FAILURE);
+ }
+
+ if (aElement.hasAttribute("rel"))
+ url.rels = aElement.getAttribute("rel").toLowerCase().split(/\s+/);
+
+ for (var i = 0; i < aElement.childNodes.length; ++i) {
+ var param = aElement.childNodes[i];
+ if (param.localName == "Param") {
+ try {
+ url.addParam(param.getAttribute("name"), param.getAttribute("value"));
+ } catch (ex) {
+ // Ignore failure
+ LOG("_parseURL: Url element has an invalid param");
+ }
+ } else if (param.localName == "MozParam" &&
+ // We only support MozParams for default search engines
+ this._isDefault) {
+ var value;
+ let condition = param.getAttribute("condition");
+
+ // MozParams must have a condition to be valid
+ if (!condition) {
+ let engineLoc = this._location;
+ let paramName = param.getAttribute("name");
+ LOG("_parseURL: MozParam (" + paramName + ") without a condition attribute found parsing engine: " + engineLoc);
+ continue;
+ }
+
+ switch (condition) {
+ case "purpose":
+ url.addParam(param.getAttribute("name"),
+ param.getAttribute("value"),
+ param.getAttribute("purpose"));
+ // _addMozParam is not needed here since it can be serialized fine without. _addMozParam
+ // also requires a unique "name" which is not normally the case when @purpose is used.
+ break;
+ case "pref":
+ try {
+ value = getMozParamPref(param.getAttribute("pref"), value);
+ url.addParam(param.getAttribute("name"), value);
+ url._addMozParam({"pref": param.getAttribute("pref"),
+ "name": param.getAttribute("name"),
+ "condition": "pref"});
+ } catch (e) { }
+ break;
+ default:
+ let engineLoc = this._location;
+ let paramName = param.getAttribute("name");
+ LOG("_parseURL: MozParam (" + paramName + ") has an unknown condition: " + condition + ". Found parsing engine: " + engineLoc);
+ break;
+ }
+ }
+ }
+
+ this._urls.push(url);
+ },
+
+ /**
+ * Get the icon from an OpenSearch Image element.
+ * @see http://opensearch.a9.com/spec/1.1/description/#image
+ */
+ _parseImage: function SRCH_ENG_parseImage(aElement) {
+ LOG("_parseImage: Image textContent: \"" + limitURILength(aElement.textContent) + "\"");
+
+ let width = parseInt(aElement.getAttribute("width"), 10);
+ let height = parseInt(aElement.getAttribute("height"), 10);
+ let isPrefered = width == 16 && height == 16;
+
+ if (isNaN(width) || isNaN(height) || width <= 0 || height <=0) {
+ LOG("OpenSearch image element must have positive width and height.");
+ return;
+ }
+
+ this._setIcon(aElement.textContent, isPrefered, width, height);
+ },
+
+ /**
+ * Extract search engine information from the collected data to initialize
+ * the engine object.
+ */
+ _parse: function SRCH_ENG_parse() {
+ var doc = this._data;
+
+ // The OpenSearch spec sets a default value for the input encoding.
+ this._queryCharset = OS_PARAM_INPUT_ENCODING_DEF;
+
+ for (var i = 0; i < doc.childNodes.length; ++i) {
+ var child = doc.childNodes[i];
+ switch (child.localName) {
+ case "ShortName":
+ this._name = child.textContent;
+ break;
+ case "Description":
+ this._description = child.textContent;
+ break;
+ case "Url":
+ try {
+ this._parseURL(child);
+ } catch (ex) {
+ // Parsing of the element failed, just skip it.
+ LOG("_parse: failed to parse URL child: " + ex);
+ }
+ break;
+ case "Image":
+ this._parseImage(child);
+ break;
+ case "InputEncoding":
+ this._queryCharset = child.textContent.toUpperCase();
+ break;
+
+ // Non-OpenSearch elements
+ case "SearchForm":
+ this._searchForm = child.textContent;
+ break;
+ case "UpdateUrl":
+ this._updateURL = child.textContent;
+ break;
+ case "UpdateInterval":
+ this._updateInterval = parseInt(child.textContent);
+ break;
+ case "IconUpdateUrl":
+ this._iconUpdateURL = child.textContent;
+ break;
+ case "ExtensionID":
+ this._extensionID = child.textContent;
+ break;
+ }
+ }
+ if (!this.name || (this._urls.length == 0))
+ FAIL("_parse: No name, or missing URL!", Cr.NS_ERROR_FAILURE);
+ if (!this.supportsResponseType(URLTYPE_SEARCH_HTML))
+ FAIL("_parse: No text/html result type!", Cr.NS_ERROR_FAILURE);
+ },
+
+ /**
+ * Init from a JSON record.
+ **/
+ _initWithJSON: function SRCH_ENG__initWithJSON(aJson) {
+ this._name = aJson._name;
+ this._shortName = aJson._shortName;
+ this._loadPath = aJson._loadPath;
+ this._description = aJson.description;
+ this._hasPreferredIcon = aJson._hasPreferredIcon == undefined;
+ this._queryCharset = aJson.queryCharset || DEFAULT_QUERY_CHARSET;
+ this.__searchForm = aJson.__searchForm;
+ this._updateInterval = aJson._updateInterval || null;
+ this._updateURL = aJson._updateURL || null;
+ this._iconUpdateURL = aJson._iconUpdateURL || null;
+ this._readOnly = aJson._readOnly == undefined;
+ this._iconURI = makeURI(aJson._iconURL);
+ this._iconMapObj = aJson._iconMapObj;
+ this._metaData = aJson._metaData || {};
+ if (aJson.filePath) {
+ this._filePath = aJson.filePath;
+ }
+ if (aJson.dirPath) {
+ this._dirPath = aJson.dirPath;
+ this._dirLastModifiedTime = aJson.dirLastModifiedTime;
+ }
+ if (aJson.extensionID) {
+ this._extensionID = aJson.extensionID;
+ }
+ for (let i = 0; i < aJson._urls.length; ++i) {
+ let url = aJson._urls[i];
+ let engineURL = new EngineURL(url.type || URLTYPE_SEARCH_HTML,
+ url.method || "GET", url.template,
+ url.resultDomain || undefined);
+ engineURL._initWithJSON(url, this);
+ this._urls.push(engineURL);
+ }
+ },
+
+ /**
+ * Creates a JavaScript object that represents this engine.
+ * @returns An object suitable for serialization as JSON.
+ **/
+ toJSON: function SRCH_ENG_toJSON() {
+ var json = {
+ _name: this._name,
+ _shortName: this._shortName,
+ _loadPath: this._loadPath,
+ description: this.description,
+ __searchForm: this.__searchForm,
+ _iconURL: this._iconURL,
+ _iconMapObj: this._iconMapObj,
+ _metaData: this._metaData,
+ _urls: this._urls
+ };
+
+ if (this._updateInterval)
+ json._updateInterval = this._updateInterval;
+ if (this._updateURL)
+ json._updateURL = this._updateURL;
+ if (this._iconUpdateURL)
+ json._iconUpdateURL = this._iconUpdateURL;
+ if (!this._hasPreferredIcon)
+ json._hasPreferredIcon = this._hasPreferredIcon;
+ if (this.queryCharset != DEFAULT_QUERY_CHARSET)
+ json.queryCharset = this.queryCharset;
+ if (!this._readOnly)
+ json._readOnly = this._readOnly;
+ if (this._filePath) {
+ // File path is stored so that we can remove legacy xml files
+ // from the profile if the user removes the engine.
+ json.filePath = this._filePath;
+ }
+ if (this._dirPath) {
+ // The directory path is only stored for extension-shipped engines,
+ // it's used to invalidate the cache.
+ json.dirPath = this._dirPath;
+ json.dirLastModifiedTime = this._dirLastModifiedTime;
+ }
+ if (this._extensionID) {
+ json.extensionID = this._extensionID;
+ }
+
+ return json;
+ },
+
+ setAttr(name, val) {
+ this._metaData[name] = val;
+ },
+
+ getAttr(name) {
+ return this._metaData[name] || undefined;
+ },
+
+ // nsISearchEngine
+ get alias() {
+ return this.getAttr("alias");
+ },
+ set alias(val) {
+ var value = val ? val.trim() : null;
+ this.setAttr("alias", value);
+ notifyAction(this, SEARCH_ENGINE_CHANGED);
+ },
+
+ /**
+ * Return the built-in identifier of app-provided engines.
+ *
+ * Note that this identifier is substantially similar to _id, with the
+ * following exceptions:
+ *
+ * * There is no trailing file extension.
+ * * There is no [app] prefix.
+ *
+ * @return a string identifier, or null.
+ */
+ get identifier() {
+ // No identifier if If the engine isn't app-provided
+ return this._isDefault ? this._shortName : null;
+ },
+
+ get description() {
+ return this._description;
+ },
+
+ get hidden() {
+ return this.getAttr("hidden") || false;
+ },
+ set hidden(val) {
+ var value = !!val;
+ if (value != this.hidden) {
+ this.setAttr("hidden", value);
+ notifyAction(this, SEARCH_ENGINE_CHANGED);
+ }
+ },
+
+ get iconURI() {
+ if (this._iconURI)
+ return this._iconURI;
+ return null;
+ },
+
+ get _iconURL() {
+ if (!this._iconURI)
+ return "";
+ return this._iconURI.spec;
+ },
+
+ // Where the engine is being loaded from: will return the URI's spec if the
+ // engine is being downloaded and does not yet have a file. This is only used
+ // for logging and error messages.
+ get _location() {
+ if (this._uri)
+ return this._uri.spec;
+
+ return this._loadPath;
+ },
+
+ // This indicates where we found the .xml file to load the engine,
+ // and attempts to hide user-identifiable data (such as username).
+ getAnonymizedLoadPath(file, uri) {
+ /* Examples of expected output:
+ * jar:[app]/omni.ja!browser/engine.xml
+ * 'browser' here is the name of the chrome package, not a folder.
+ * [profile]/searchplugins/engine.xml
+ * [distribution]/searchplugins/common/engine.xml
+ * [other]/engine.xml
+ */
+
+ const NS_XPCOM_CURRENT_PROCESS_DIR = "XCurProcD";
+ const NS_APP_USER_PROFILE_50_DIR = "ProfD";
+ const XRE_APP_DISTRIBUTION_DIR = "XREAppDist";
+
+ const knownDirs = {
+ app: NS_XPCOM_CURRENT_PROCESS_DIR,
+ profile: NS_APP_USER_PROFILE_50_DIR,
+ distribution: XRE_APP_DISTRIBUTION_DIR
+ };
+
+ let leafName = this._shortName;
+ if (!leafName)
+ return "null";
+ leafName += ".xml";
+
+ let prefix = "", suffix = "";
+ if (!file) {
+ if (uri.schemeIs("resource")) {
+ uri = makeURI(Services.io.getProtocolHandler("resource")
+ .QueryInterface(Ci.nsISubstitutingProtocolHandler)
+ .resolveURI(uri));
+ }
+ let scheme = uri.scheme;
+ let packageName = "";
+ if (scheme == "chrome") {
+ packageName = uri.hostPort;
+ uri = gChromeReg.convertChromeURL(uri);
+ }
+
+ if (AppConstants.platform == "android") {
+ // On Android the omni.ja file isn't at the same path as the binary
+ // used to start the process. We tweak the path here so that the code
+ // shared with Desktop will correctly identify files from the omni.ja
+ // file as coming from the [app] folder.
+ let appPath = Services.io.getProtocolHandler("resource")
+ .QueryInterface(Ci.nsIResProtocolHandler)
+ .getSubstitution("android");
+ if (appPath) {
+ appPath = appPath.spec;
+ let spec = uri.spec;
+ if (spec.includes(appPath)) {
+ let appURI = Services.io.newFileURI(getDir(knownDirs["app"]));
+ uri = NetUtil.newURI(spec.replace(appPath, appURI.spec));
+ }
+ }
+ }
+
+ if (uri instanceof Ci.nsINestedURI) {
+ prefix = "jar:";
+ suffix = "!" + packageName + "/" + leafName;
+ uri = uri.innermostURI;
+ }
+ if (uri instanceof Ci.nsIFileURL) {
+ file = uri.file;
+ } else {
+ let path = "[" + scheme + "]";
+ if (/^(?:https?|ftp)$/.test(scheme)) {
+ path += uri.host;
+ }
+ return path + "/" + leafName;
+ }
+ }
+
+ let id;
+ let enginePath = file.path;
+
+ for (let key in knownDirs) {
+ let path;
+ try {
+ path = getDir(knownDirs[key]).path;
+ } catch (e) {
+ // Getting XRE_APP_DISTRIBUTION_DIR throws during unit tests.
+ continue;
+ }
+ if (enginePath.startsWith(path)) {
+ id = "[" + key + "]" + enginePath.slice(path.length).replace(/\\/g, "/");
+ break;
+ }
+ }
+
+ // If the folder doesn't have a known ancestor, don't record its path to
+ // avoid leaking user identifiable data.
+ if (!id)
+ id = "[other]/" + file.leafName;
+
+ return prefix + id + suffix;
+ },
+
+ get _isDefault() {
+ // If we don't have a shortName, the engine is being parsed from a
+ // downloaded file, so this can't be a default engine.
+ if (!this._shortName)
+ return false;
+
+ // An engine is a default one if we initially loaded it from the application
+ // or distribution directory.
+ if (/^(?:jar:)?(?:\[app\]|\[distribution\])/.test(this._loadPath))
+ return true;
+
+ // If we are using a non-default locale or in the xpcshell test case,
+ // we'll accept as a 'default' engine anything that has been registered at
+ // resource://search-plugins/ even if the file doesn't come from the
+ // application folder. If not, skip costly additional checks.
+ if (!Services.prefs.prefHasUserValue(LOCALE_PREF) &&
+ !gEnvironment.get("XPCSHELL_TEST_PROFILE_DIR"))
+ return false;
+
+ // Some xpcshell tests use the search service without registering
+ // resource://search-plugins/.
+ if (!Services.io.getProtocolHandler("resource")
+ .QueryInterface(Ci.nsIResProtocolHandler)
+ .hasSubstitution("search-plugins"))
+ return false;
+
+ let uri = makeURI(APP_SEARCH_PREFIX + this._shortName + ".xml");
+ if (this.getAnonymizedLoadPath(null, uri) == this._loadPath) {
+ // This isn't a real default engine, but it's very close.
+ LOG("_isDefault, pretending " + this._loadPath + " is a default engine");
+ return true;
+ }
+
+ return false;
+ },
+
+ get _hasUpdates() {
+ // Whether or not the engine has an update URL
+ let selfURL = this._getURLOfType(URLTYPE_OPENSEARCH, "self");
+ return !!(this._updateURL || this._iconUpdateURL || selfURL);
+ },
+
+ get name() {
+ return this._name;
+ },
+
+ get searchForm() {
+ return this._getSearchFormWithPurpose();
+ },
+
+ _getSearchFormWithPurpose(aPurpose = "") {
+ // First look for a <Url rel="searchform">
+ var searchFormURL = this._getURLOfType(URLTYPE_SEARCH_HTML, "searchform");
+ if (searchFormURL) {
+ let submission = searchFormURL.getSubmission("", this, aPurpose);
+
+ // If the rel=searchform URL is not type="get" (i.e. has postData),
+ // ignore it, since we can only return a URL.
+ if (!submission.postData)
+ return submission.uri.spec;
+ }
+
+ if (!this._searchForm) {
+ // No SearchForm specified in the engine definition file, use the prePath
+ // (e.g. https://foo.com for https://foo.com/search.php?q=bar).
+ var htmlUrl = this._getURLOfType(URLTYPE_SEARCH_HTML);
+ ENSURE_WARN(htmlUrl, "Engine has no HTML URL!", Cr.NS_ERROR_UNEXPECTED);
+ this._searchForm = makeURI(htmlUrl.template).prePath;
+ }
+
+ return ParamSubstitution(this._searchForm, "", this);
+ },
+
+ get queryCharset() {
+ if (this._queryCharset)
+ return this._queryCharset;
+ return this._queryCharset = "windows-1252"; // the default
+ },
+
+ // from nsISearchEngine
+ addParam: function SRCH_ENG_addParam(aName, aValue, aResponseType) {
+ if (!aName || (aValue == null))
+ FAIL("missing name or value for nsISearchEngine::addParam!");
+ ENSURE_WARN(!this._readOnly,
+ "called nsISearchEngine::addParam on a read-only engine!",
+ Cr.NS_ERROR_FAILURE);
+ if (!aResponseType)
+ aResponseType = URLTYPE_SEARCH_HTML;
+
+ var url = this._getURLOfType(aResponseType);
+ if (!url)
+ FAIL("Engine object has no URL for response type " + aResponseType,
+ Cr.NS_ERROR_FAILURE);
+
+ url.addParam(aName, aValue);
+ },
+
+ get _defaultMobileResponseType() {
+ let type = URLTYPE_SEARCH_HTML;
+
+ let sysInfo = Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2);
+ let isTablet = sysInfo.get("tablet");
+ if (isTablet && this.supportsResponseType("application/x-moz-tabletsearch")) {
+ // Check for a tablet-specific search URL override
+ type = "application/x-moz-tabletsearch";
+ } else if (!isTablet && this.supportsResponseType("application/x-moz-phonesearch")) {
+ // Check for a phone-specific search URL override
+ type = "application/x-moz-phonesearch";
+ }
+
+ delete this._defaultMobileResponseType;
+ return this._defaultMobileResponseType = type;
+ },
+
+ get _isWhiteListed() {
+ let url = this._getURLOfType(URLTYPE_SEARCH_HTML).template;
+ let hostname = makeURI(url).host;
+ let whitelist = Services.prefs.getDefaultBranch(BROWSER_SEARCH_PREF)
+ .getCharPref("reset.whitelist")
+ .split(",");
+ if (whitelist.includes(hostname)) {
+ LOG("The hostname " + hostname + " is white listed, " +
+ "we won't show the search reset prompt");
+ return true;
+ }
+
+ return false;
+ },
+
+ // from nsISearchEngine
+ getSubmission: function SRCH_ENG_getSubmission(aData, aResponseType, aPurpose) {
+ if (!aResponseType) {
+ aResponseType = AppConstants.platform == "android" ? this._defaultMobileResponseType :
+ URLTYPE_SEARCH_HTML;
+ }
+
+ if (aResponseType == URLTYPE_SEARCH_HTML &&
+ Services.prefs.getDefaultBranch(BROWSER_SEARCH_PREF).getBoolPref("reset.enabled") &&
+ this.name == Services.search.currentEngine.name &&
+ !this._isDefault &&
+ this.name != Services.search.originalDefaultEngine.name &&
+ (!this.getAttr("loadPathHash") ||
+ this.getAttr("loadPathHash") != getVerificationHash(this._loadPath)) &&
+ !this._isWhiteListed) {
+ let url = "about:searchreset";
+ let data = [];
+ if (aData)
+ data.push("data=" + encodeURIComponent(aData));
+ if (aPurpose)
+ data.push("purpose=" + aPurpose);
+ if (data.length)
+ url += "?" + data.join("&");
+ return new Submission(makeURI(url));
+ }
+
+ var url = this._getURLOfType(aResponseType);
+
+ if (!url)
+ return null;
+
+ if (!aData) {
+ // Return a dummy submission object with our searchForm attribute
+ return new Submission(makeURI(this._getSearchFormWithPurpose(aPurpose)));
+ }
+
+ LOG("getSubmission: In data: \"" + aData + "\"; Purpose: \"" + aPurpose + "\"");
+ var data = "";
+ try {
+ data = gTextToSubURI.ConvertAndEscape(this.queryCharset, aData);
+ } catch (ex) {
+ LOG("getSubmission: Falling back to default queryCharset!");
+ data = gTextToSubURI.ConvertAndEscape(DEFAULT_QUERY_CHARSET, aData);
+ }
+ LOG("getSubmission: Out data: \"" + data + "\"");
+ return url.getSubmission(data, this, aPurpose);
+ },
+
+ // from nsISearchEngine
+ supportsResponseType: function SRCH_ENG_supportsResponseType(type) {
+ return (this._getURLOfType(type) != null);
+ },
+
+ // from nsISearchEngine
+ getResultDomain: function SRCH_ENG_getResultDomain(aResponseType) {
+ if (!aResponseType) {
+ aResponseType = AppConstants.platform == "android" ? this._defaultMobileResponseType :
+ URLTYPE_SEARCH_HTML;
+ }
+
+ LOG("getResultDomain: responseType: \"" + aResponseType + "\"");
+
+ let url = this._getURLOfType(aResponseType);
+ if (url)
+ return url.resultDomain;
+ return "";
+ },
+
+ /**
+ * Returns URL parsing properties used by _buildParseSubmissionMap.
+ */
+ getURLParsingInfo: function () {
+ let responseType = AppConstants.platform == "android" ? this._defaultMobileResponseType :
+ URLTYPE_SEARCH_HTML;
+
+ LOG("getURLParsingInfo: responseType: \"" + responseType + "\"");
+
+ let url = this._getURLOfType(responseType);
+ if (!url || url.method != "GET") {
+ return null;
+ }
+
+ let termsParameterName = url._getTermsParameterName();
+ if (!termsParameterName) {
+ return null;
+ }
+
+ let templateUrl = NetUtil.newURI(url.template).QueryInterface(Ci.nsIURL);
+ return {
+ mainDomain: templateUrl.host,
+ path: templateUrl.filePath.toLowerCase(),
+ termsParameterName: termsParameterName,
+ };
+ },
+
+ // nsISupports
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsISearchEngine]),
+
+ get wrappedJSObject() {
+ return this;
+ },
+
+ /**
+ * Returns a string with the URL to an engine's icon matching both width and
+ * height. Returns null if icon with specified dimensions is not found.
+ *
+ * @param width
+ * Width of the requested icon.
+ * @param height
+ * Height of the requested icon.
+ */
+ getIconURLBySize: function SRCH_ENG_getIconURLBySize(aWidth, aHeight) {
+ if (aWidth == 16 && aHeight == 16)
+ return this._iconURL;
+
+ if (!this._iconMapObj)
+ return null;
+
+ let key = this._getIconKey(aWidth, aHeight);
+ if (key in this._iconMapObj) {
+ return this._iconMapObj[key];
+ }
+ return null;
+ },
+
+ /**
+ * Gets an array of all available icons. Each entry is an object with
+ * width, height and url properties. width and height are numeric and
+ * represent the icon's dimensions. url is a string with the URL for
+ * the icon.
+ */
+ getIcons: function SRCH_ENG_getIcons() {
+ let result = [];
+ if (this._iconURL)
+ result.push({width: 16, height: 16, url: this._iconURL});
+
+ if (!this._iconMapObj)
+ return result;
+
+ for (let key of Object.keys(this._iconMapObj)) {
+ let iconSize = JSON.parse(key);
+ result.push({
+ width: iconSize.width,
+ height: iconSize.height,
+ url: this._iconMapObj[key]
+ });
+ }
+
+ return result;
+ },
+
+ /**
+ * Opens a speculative connection to the engine's search URI
+ * (and suggest URI, if different) to reduce request latency
+ *
+ * @param options
+ * An object that must contain the following fields:
+ * {window} the content window for the window performing the search
+ *
+ * @throws NS_ERROR_INVALID_ARG if options is omitted or lacks required
+ * elemeents
+ */
+ speculativeConnect: function SRCH_ENG_speculativeConnect(options) {
+ if (!options || !options.window) {
+ Cu.reportError("invalid options arg passed to nsISearchEngine.speculativeConnect");
+ throw Cr.NS_ERROR_INVALID_ARG;
+ }
+ let connector =
+ Services.io.QueryInterface(Components.interfaces.nsISpeculativeConnect);
+
+ let searchURI = this.getSubmission("dummy").uri;
+
+ let callbacks = options.window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
+ .getInterface(Components.interfaces.nsIWebNavigation)
+ .QueryInterface(Components.interfaces.nsILoadContext);
+
+ connector.speculativeConnect(searchURI, callbacks);
+
+ if (this.supportsResponseType(URLTYPE_SUGGEST_JSON)) {
+ let suggestURI = this.getSubmission("dummy", URLTYPE_SUGGEST_JSON).uri;
+ if (suggestURI.prePath != searchURI.prePath)
+ connector.speculativeConnect(suggestURI, callbacks);
+ }
+ },
+};
+
+// nsISearchSubmission
+function Submission(aURI, aPostData = null) {
+ this._uri = aURI;
+ this._postData = aPostData;
+}
+Submission.prototype = {
+ get uri() {
+ return this._uri;
+ },
+ get postData() {
+ return this._postData;
+ },
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsISearchSubmission])
+}
+
+// nsISearchParseSubmissionResult
+function ParseSubmissionResult(aEngine, aTerms, aTermsOffset, aTermsLength) {
+ this._engine = aEngine;
+ this._terms = aTerms;
+ this._termsOffset = aTermsOffset;
+ this._termsLength = aTermsLength;
+}
+ParseSubmissionResult.prototype = {
+ get engine() {
+ return this._engine;
+ },
+ get terms() {
+ return this._terms;
+ },
+ get termsOffset() {
+ return this._termsOffset;
+ },
+ get termsLength() {
+ return this._termsLength;
+ },
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsISearchParseSubmissionResult]),
+}
+
+const gEmptyParseSubmissionResult =
+ Object.freeze(new ParseSubmissionResult(null, "", -1, 0));
+
+function executeSoon(func) {
+ Services.tm.mainThread.dispatch(func, Ci.nsIThread.DISPATCH_NORMAL);
+}
+
+/**
+ * Check for sync initialization has completed or not.
+ *
+ * @param {aPromise} A promise.
+ *
+ * @returns the value returned by the invoked method.
+ * @throws NS_ERROR_ALREADY_INITIALIZED if sync initialization has completed.
+ */
+function checkForSyncCompletion(aPromise) {
+ return aPromise.then(function(aValue) {
+ if (gInitialized) {
+ throw Components.Exception("Synchronous fallback was called and has " +
+ "finished so no need to pursue asynchronous " +
+ "initialization",
+ Cr.NS_ERROR_ALREADY_INITIALIZED);
+ }
+ return aValue;
+ });
+}
+
+// nsIBrowserSearchService
+function SearchService() {
+ // Replace empty LOG function with the useful one if the log pref is set.
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "log", false))
+ LOG = DO_LOG;
+
+ this._initObservers = Promise.defer();
+}
+
+SearchService.prototype = {
+ classID: Components.ID("{7319788a-fe93-4db3-9f39-818cf08f4256}"),
+
+ // The current status of initialization. Note that it does not determine if
+ // initialization is complete, only if an error has been encountered so far.
+ _initRV: Cr.NS_OK,
+
+ // The boolean indicates that the initialization has started or not.
+ _initStarted: null,
+
+ // Reading the JSON cache file is the first thing done during initialization.
+ // During the async init, we save it in a field so that if we have to do a
+ // sync init before the async init finishes, we can avoid reading the cache
+ // with sync disk I/O and handling lz4 decompression synchronously.
+ // This is set back to null as soon as the initialization is finished.
+ _cacheFileJSON: null,
+
+ // If initialization has not been completed yet, perform synchronous
+ // initialization.
+ // Throws in case of initialization error.
+ _ensureInitialized: function SRCH_SVC__ensureInitialized() {
+ if (gInitialized) {
+ if (!Components.isSuccessCode(this._initRV)) {
+ LOG("_ensureInitialized: failure");
+ throw this._initRV;
+ }
+ return;
+ }
+
+ let performanceWarning =
+ "Search service falling back to synchronous initialization. " +
+ "This is generally the consequence of an add-on using a deprecated " +
+ "search service API.";
+ Deprecated.perfWarning(performanceWarning, "https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIBrowserSearchService#async_warning");
+ LOG(performanceWarning);
+
+ this._syncInit();
+ if (!Components.isSuccessCode(this._initRV)) {
+ throw this._initRV;
+ }
+ },
+
+ // Synchronous implementation of the initializer.
+ // Used by |_ensureInitialized| as a fallback if initialization is not
+ // complete.
+ _syncInit: function SRCH_SVC__syncInit() {
+ LOG("_syncInit start");
+ this._initStarted = true;
+
+ let cache = this._readCacheFile();
+ if (cache.metaData)
+ this._metaData = cache.metaData;
+
+ try {
+ this._syncLoadEngines(cache);
+ } catch (ex) {
+ this._initRV = Cr.NS_ERROR_FAILURE;
+ LOG("_syncInit: failure loading engines: " + ex);
+ }
+ this._addObservers();
+
+ gInitialized = true;
+ this._cacheFileJSON = null;
+
+ this._initObservers.resolve(this._initRV);
+
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "init-complete");
+ Services.telemetry.getHistogramById("SEARCH_SERVICE_INIT_SYNC").add(true);
+ this._recordEngineTelemetry();
+
+ LOG("_syncInit end");
+ },
+
+ /**
+ * Asynchronous implementation of the initializer.
+ *
+ * @returns {Promise} A promise, resolved successfully if the initialization
+ * succeeds.
+ */
+ _asyncInit: Task.async(function* () {
+ LOG("_asyncInit start");
+
+ // See if we have a cache file so we don't have to parse a bunch of XML.
+ let cache = {};
+ // Not using checkForSyncCompletion here because we want to ensure we
+ // fetch the country code and geo specific defaults asynchronously even
+ // if a sync init has been forced.
+ cache = yield this._asyncReadCacheFile();
+
+ if (!gInitialized && cache.metaData)
+ this._metaData = cache.metaData;
+
+ try {
+ yield checkForSyncCompletion(this._asyncLoadEngines(cache));
+ } catch (ex) {
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ throw ex;
+ }
+ this._initRV = Cr.NS_ERROR_FAILURE;
+ LOG("_asyncInit: failure loading engines: " + ex);
+ }
+ this._addObservers();
+ gInitialized = true;
+ this._cacheFileJSON = null;
+ this._initObservers.resolve(this._initRV);
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "init-complete");
+ Services.telemetry.getHistogramById("SEARCH_SERVICE_INIT_SYNC").add(false);
+ this._recordEngineTelemetry();
+
+ LOG("_asyncInit: Completed _asyncInit");
+ }),
+
+ _metaData: { },
+ setGlobalAttr(name, val) {
+ this._metaData[name] = val;
+ this.batchTask.disarm();
+ this.batchTask.arm();
+ },
+ setVerifiedGlobalAttr(name, val) {
+ this.setGlobalAttr(name, val);
+ this.setGlobalAttr(name + "Hash", getVerificationHash(val));
+ },
+
+ getGlobalAttr(name) {
+ return this._metaData[name] || undefined;
+ },
+ getVerifiedGlobalAttr(name) {
+ let val = this.getGlobalAttr(name);
+ if (val && this.getGlobalAttr(name + "Hash") != getVerificationHash(val)) {
+ LOG("getVerifiedGlobalAttr, invalid hash for " + name);
+ return "";
+ }
+ return val;
+ },
+
+ _engines: { },
+ __sortedEngines: null,
+ _visibleDefaultEngines: [],
+ get _sortedEngines() {
+ if (!this.__sortedEngines)
+ return this._buildSortedEngineList();
+ return this.__sortedEngines;
+ },
+
+ // Get the original Engine object that is the default for this region,
+ // ignoring changes the user may have subsequently made.
+ get originalDefaultEngine() {
+ let defaultEngine = this.getVerifiedGlobalAttr("searchDefault");
+ if (!defaultEngine) {
+ let defaultPrefB = Services.prefs.getDefaultBranch(BROWSER_SEARCH_PREF);
+ let nsIPLS = Ci.nsIPrefLocalizedString;
+
+ try {
+ defaultEngine = defaultPrefB.getComplexValue("defaultenginename", nsIPLS).data;
+ } catch (ex) {
+ // If the default pref is invalid (e.g. an add-on set it to a bogus value)
+ // getEngineByName will just return null, which is the best we can do.
+ }
+ }
+
+ return this.getEngineByName(defaultEngine);
+ },
+
+ resetToOriginalDefaultEngine: function SRCH_SVC__resetToOriginalDefaultEngine() {
+ this.currentEngine = this.originalDefaultEngine;
+ },
+
+ _buildCache: function SRCH_SVC__buildCache() {
+ if (this._batchTask)
+ this._batchTask.disarm();
+
+ let cache = {};
+ let locale = getLocale();
+ let buildID = Services.appinfo.platformBuildID;
+
+ // Allows us to force a cache refresh should the cache format change.
+ cache.version = CACHE_VERSION;
+ // We don't want to incur the costs of stat()ing each plugin on every
+ // startup when the only (supported) time they will change is during
+ // app updates (where the buildID is obviously going to change).
+ // Extension-shipped plugins are the only exception to this, but their
+ // directories are blown away during updates, so we'll detect their changes.
+ cache.buildID = buildID;
+ cache.locale = locale;
+
+ cache.visibleDefaultEngines = this._visibleDefaultEngines;
+ cache.metaData = this._metaData;
+ cache.engines = [];
+
+ for (let name in this._engines) {
+ cache.engines.push(this._engines[name]);
+ }
+
+ try {
+ if (!cache.engines.length)
+ throw "cannot write without any engine.";
+
+ LOG("_buildCache: Writing to cache file.");
+ let path = OS.Path.join(OS.Constants.Path.profileDir, CACHE_FILENAME);
+ let data = gEncoder.encode(JSON.stringify(cache));
+ let promise = OS.File.writeAtomic(path, data, {compression: "lz4",
+ tmpPath: path + ".tmp"});
+
+ promise.then(
+ function onSuccess() {
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, SEARCH_SERVICE_CACHE_WRITTEN);
+ },
+ function onError(e) {
+ LOG("_buildCache: failure during writeAtomic: " + e);
+ }
+ );
+ } catch (ex) {
+ LOG("_buildCache: Could not write to cache file: " + ex);
+ }
+ },
+
+ _syncLoadEngines: function SRCH_SVC__syncLoadEngines(cache) {
+ LOG("_syncLoadEngines: start");
+ // See if we have a cache file so we don't have to parse a bunch of XML.
+ let chromeURIs = this._findJAREngines();
+
+ let distDirs = [];
+ let locations;
+ try {
+ locations = getDir(NS_APP_DISTRIBUTION_SEARCH_DIR_LIST,
+ Ci.nsISimpleEnumerator);
+ } catch (e) {
+ // NS_APP_DISTRIBUTION_SEARCH_DIR_LIST is defined by each app
+ // so this throws during unit tests (but not xpcshell tests).
+ locations = {hasMoreElements: () => false};
+ }
+ while (locations.hasMoreElements()) {
+ let dir = locations.getNext().QueryInterface(Ci.nsIFile);
+ if (dir.directoryEntries.hasMoreElements())
+ distDirs.push(dir);
+ }
+
+ let otherDirs = [];
+ let userSearchDir = getDir(NS_APP_USER_SEARCH_DIR);
+ locations = getDir(NS_APP_SEARCH_DIR_LIST, Ci.nsISimpleEnumerator);
+ while (locations.hasMoreElements()) {
+ let dir = locations.getNext().QueryInterface(Ci.nsIFile);
+ if ((!cache.engines || !dir.equals(userSearchDir)) &&
+ dir.directoryEntries.hasMoreElements())
+ otherDirs.push(dir);
+ }
+
+ function modifiedDir(aDir) {
+ return cacheOtherPaths.get(aDir.path) != aDir.lastModifiedTime;
+ }
+
+ function notInCacheVisibleEngines(aEngineName) {
+ return cache.visibleDefaultEngines.indexOf(aEngineName) == -1;
+ }
+
+ let buildID = Services.appinfo.platformBuildID;
+ let cacheOtherPaths = new Map();
+ if (cache.engines) {
+ for (let engine of cache.engines) {
+ if (engine._dirPath) {
+ cacheOtherPaths.set(engine._dirPath, engine._dirLastModifiedTime);
+ }
+ }
+ }
+
+ let rebuildCache = !cache.engines ||
+ cache.version != CACHE_VERSION ||
+ cache.locale != getLocale() ||
+ cache.buildID != buildID ||
+ cacheOtherPaths.size != otherDirs.length ||
+ otherDirs.some(d => !cacheOtherPaths.has(d.path)) ||
+ cache.visibleDefaultEngines.length != this._visibleDefaultEngines.length ||
+ this._visibleDefaultEngines.some(notInCacheVisibleEngines) ||
+ otherDirs.some(modifiedDir);
+
+ if (rebuildCache) {
+ LOG("_loadEngines: Absent or outdated cache. Loading engines from disk.");
+ distDirs.forEach(this._loadEnginesFromDir, this);
+
+ this._loadFromChromeURLs(chromeURIs);
+
+ LOG("_loadEngines: load user-installed engines from the obsolete cache");
+ this._loadEnginesFromCache(cache, true);
+
+ otherDirs.forEach(this._loadEnginesFromDir, this);
+
+ this._loadEnginesMetadataFromCache(cache);
+ this._buildCache();
+ return;
+ }
+
+ LOG("_loadEngines: loading from cache directories");
+ this._loadEnginesFromCache(cache);
+
+ LOG("_loadEngines: done");
+ },
+
+ /**
+ * Loads engines asynchronously.
+ *
+ * @returns {Promise} A promise, resolved successfully if loading data
+ * succeeds.
+ */
+ _asyncLoadEngines: Task.async(function* (cache) {
+ LOG("_asyncLoadEngines: start");
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "find-jar-engines");
+ let chromeURIs =
+ yield checkForSyncCompletion(this._asyncFindJAREngines());
+
+ // Get the non-empty distribution directories into distDirs...
+ let distDirs = [];
+ let locations;
+ try {
+ locations = getDir(NS_APP_DISTRIBUTION_SEARCH_DIR_LIST,
+ Ci.nsISimpleEnumerator);
+ } catch (e) {
+ // NS_APP_DISTRIBUTION_SEARCH_DIR_LIST is defined by each app
+ // so this throws during unit tests (but not xpcshell tests).
+ locations = {hasMoreElements: () => false};
+ }
+ while (locations.hasMoreElements()) {
+ let dir = locations.getNext().QueryInterface(Ci.nsIFile);
+ let iterator = new OS.File.DirectoryIterator(dir.path,
+ { winPattern: "*.xml" });
+ try {
+ // Add dir to distDirs if it contains any files.
+ yield checkForSyncCompletion(iterator.next());
+ distDirs.push(dir);
+ } catch (ex) {
+ // Catch for StopIteration exception.
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ throw ex;
+ }
+ } finally {
+ iterator.close();
+ }
+ }
+
+ // Add the non-empty directories of NS_APP_SEARCH_DIR_LIST to
+ // otherDirs...
+ let otherDirs = [];
+ let userSearchDir = getDir(NS_APP_USER_SEARCH_DIR);
+ locations = getDir(NS_APP_SEARCH_DIR_LIST, Ci.nsISimpleEnumerator);
+ while (locations.hasMoreElements()) {
+ let dir = locations.getNext().QueryInterface(Ci.nsIFile);
+ if (cache.engines && dir.equals(userSearchDir))
+ continue;
+ let iterator = new OS.File.DirectoryIterator(dir.path,
+ { winPattern: "*.xml" });
+ try {
+ // Add dir to otherDirs if it contains any files.
+ yield checkForSyncCompletion(iterator.next());
+ otherDirs.push(dir);
+ } catch (ex) {
+ // Catch for StopIteration exception.
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ throw ex;
+ }
+ } finally {
+ iterator.close();
+ }
+ }
+
+ let hasModifiedDir = Task.async(function* (aList) {
+ let modifiedDir = false;
+
+ for (let dir of aList) {
+ let lastModifiedTime = cacheOtherPaths.get(dir.path);
+ if (!lastModifiedTime) {
+ continue;
+ }
+
+ let info = yield OS.File.stat(dir.path);
+ if (lastModifiedTime != info.lastModificationDate.getTime()) {
+ modifiedDir = true;
+ break;
+ }
+ }
+ return modifiedDir;
+ });
+
+ function notInCacheVisibleEngines(aEngineName) {
+ return cache.visibleDefaultEngines.indexOf(aEngineName) == -1;
+ }
+
+ let buildID = Services.appinfo.platformBuildID;
+ let cacheOtherPaths = new Map();
+ if (cache.engines) {
+ for (let engine of cache.engines) {
+ if (engine._dirPath) {
+ cacheOtherPaths.set(engine._dirPath, engine._dirLastModifiedTime);
+ }
+ }
+ }
+
+ let rebuildCache = !cache.engines ||
+ cache.version != CACHE_VERSION ||
+ cache.locale != getLocale() ||
+ cache.buildID != buildID ||
+ cacheOtherPaths.size != otherDirs.length ||
+ otherDirs.some(d => !cacheOtherPaths.has(d.path)) ||
+ cache.visibleDefaultEngines.length != this._visibleDefaultEngines.length ||
+ this._visibleDefaultEngines.some(notInCacheVisibleEngines) ||
+ (yield checkForSyncCompletion(hasModifiedDir(otherDirs)));
+
+ if (rebuildCache) {
+ LOG("_asyncLoadEngines: Absent or outdated cache. Loading engines from disk.");
+ for (let loadDir of distDirs) {
+ let enginesFromDir =
+ yield checkForSyncCompletion(this._asyncLoadEnginesFromDir(loadDir));
+ enginesFromDir.forEach(this._addEngineToStore, this);
+ }
+ let enginesFromURLs =
+ yield checkForSyncCompletion(this._asyncLoadFromChromeURLs(chromeURIs));
+ enginesFromURLs.forEach(this._addEngineToStore, this);
+
+ LOG("_asyncLoadEngines: loading user-installed engines from the obsolete cache");
+ this._loadEnginesFromCache(cache, true);
+
+ for (let loadDir of otherDirs) {
+ let enginesFromDir =
+ yield checkForSyncCompletion(this._asyncLoadEnginesFromDir(loadDir));
+ enginesFromDir.forEach(this._addEngineToStore, this);
+ }
+
+ this._loadEnginesMetadataFromCache(cache);
+ this._buildCache();
+ return;
+ }
+
+ LOG("_asyncLoadEngines: loading from cache directories");
+ this._loadEnginesFromCache(cache);
+
+ LOG("_asyncLoadEngines: done");
+ }),
+
+ _asyncReInit: function () {
+ LOG("_asyncReInit");
+ // Start by clearing the initialized state, so we don't abort early.
+ gInitialized = false;
+
+ Task.spawn(function* () {
+ try {
+ if (this._batchTask) {
+ LOG("finalizing batch task");
+ let task = this._batchTask;
+ this._batchTask = null;
+ yield task.finalize();
+ }
+
+ // Clear the engines, too, so we don't stick with the stale ones.
+ this._engines = {};
+ this.__sortedEngines = null;
+ this._currentEngine = null;
+ this._visibleDefaultEngines = [];
+ this._metaData = {};
+ this._cacheFileJSON = null;
+
+ // Tests that want to force a synchronous re-initialization need to
+ // be notified when we are done uninitializing.
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC,
+ "uninit-complete");
+
+ let cache = {};
+ cache = yield this._asyncReadCacheFile();
+ if (!gInitialized && cache.metaData)
+ this._metaData = cache.metaData;
+
+ yield this._asyncLoadEngines(cache);
+
+ // Typically we'll re-init as a result of a pref observer,
+ // so signal to 'callers' that we're done.
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "init-complete");
+ this._recordEngineTelemetry();
+ gInitialized = true;
+ } catch (err) {
+ LOG("Reinit failed: " + err);
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "reinit-failed");
+ } finally {
+ Services.obs.notifyObservers(null, SEARCH_SERVICE_TOPIC, "reinit-complete");
+ }
+ }.bind(this));
+ },
+
+ /**
+ * Read the cache file synchronously. This also imports data from the old
+ * search-metadata.json file if needed.
+ *
+ * @returns A JS object containing the cached data.
+ */
+ _readCacheFile: function SRCH_SVC__readCacheFile() {
+ if (this._cacheFileJSON) {
+ return this._cacheFileJSON;
+ }
+
+ let cacheFile = getDir(NS_APP_USER_PROFILE_50_DIR);
+ cacheFile.append(CACHE_FILENAME);
+
+ let stream;
+ try {
+ stream = Cc["@mozilla.org/network/file-input-stream;1"].
+ createInstance(Ci.nsIFileInputStream);
+ stream.init(cacheFile, MODE_RDONLY, FileUtils.PERMS_FILE, 0);
+
+ let bis = Cc["@mozilla.org/binaryinputstream;1"]
+ .createInstance(Ci.nsIBinaryInputStream);
+ bis.setInputStream(stream);
+
+ let count = stream.available();
+ let array = new Uint8Array(count);
+ bis.readArrayBuffer(count, array.buffer);
+
+ let bytes = Lz4.decompressFileContent(array);
+ let json = JSON.parse(new TextDecoder().decode(bytes));
+ if (!json.engines || !json.engines.length)
+ throw "no engine in the file";
+ return json;
+ } catch (ex) {
+ LOG("_readCacheFile: Error reading cache file: " + ex);
+ } finally {
+ stream.close();
+ }
+
+ try {
+ cacheFile.leafName = "search-metadata.json";
+ stream = Cc["@mozilla.org/network/file-input-stream;1"].
+ createInstance(Ci.nsIFileInputStream);
+ stream.init(cacheFile, MODE_RDONLY, FileUtils.PERMS_FILE, 0);
+ let metadata = parseJsonFromStream(stream);
+ let json = {};
+ if ("[global]" in metadata) {
+ LOG("_readCacheFile: migrating metadata from search-metadata.json");
+ let data = metadata["[global]"];
+ json.metaData = {};
+ let fields = ["searchDefault", "searchDefaultHash", "searchDefaultExpir",
+ "current", "hash",
+ "visibleDefaultEngines", "visibleDefaultEnginesHash"];
+ for (let field of fields) {
+ let name = field.toLowerCase();
+ if (name in data)
+ json.metaData[field] = data[name];
+ }
+ }
+ delete metadata["[global]"];
+ json._oldMetadata = metadata;
+
+ return json;
+ } catch (ex) {
+ LOG("_readCacheFile: failed to read old metadata: " + ex);
+ return {};
+ } finally {
+ stream.close();
+ }
+ },
+
+ /**
+ * Read the cache file asynchronously. This also imports data from the old
+ * search-metadata.json file if needed.
+ *
+ * @returns {Promise} A promise, resolved successfully if retrieveing data
+ * succeeds.
+ */
+ _asyncReadCacheFile: Task.async(function* () {
+ let json;
+ try {
+ let cacheFilePath = OS.Path.join(OS.Constants.Path.profileDir, CACHE_FILENAME);
+ let bytes = yield OS.File.read(cacheFilePath, {compression: "lz4"});
+ json = JSON.parse(new TextDecoder().decode(bytes));
+ if (!json.engines || !json.engines.length)
+ throw "no engine in the file";
+ this._cacheFileJSON = json;
+ } catch (ex) {
+ LOG("_asyncReadCacheFile: Error reading cache file: " + ex);
+ json = {};
+
+ let oldMetadata =
+ OS.Path.join(OS.Constants.Path.profileDir, "search-metadata.json");
+ try {
+ let bytes = yield OS.File.read(oldMetadata);
+ let metadata = JSON.parse(new TextDecoder().decode(bytes));
+ if ("[global]" in metadata) {
+ LOG("_asyncReadCacheFile: migrating metadata from search-metadata.json");
+ let data = metadata["[global]"];
+ json.metaData = {};
+ let fields = ["searchDefault", "searchDefaultHash", "searchDefaultExpir",
+ "current", "hash",
+ "visibleDefaultEngines", "visibleDefaultEnginesHash"];
+ for (let field of fields) {
+ let name = field.toLowerCase();
+ if (name in data)
+ json.metaData[field] = data[name];
+ }
+ }
+ delete metadata["[global]"];
+ json._oldMetadata = metadata;
+ } catch (ex) {}
+ }
+ return json;
+ }),
+
+ _batchTask: null,
+ get batchTask() {
+ if (!this._batchTask) {
+ let task = function taskCallback() {
+ LOG("batchTask: Invalidating engine cache");
+ this._buildCache();
+ }.bind(this);
+ this._batchTask = new DeferredTask(task, CACHE_INVALIDATION_DELAY);
+ }
+ return this._batchTask;
+ },
+
+ _addEngineToStore: function SRCH_SVC_addEngineToStore(aEngine) {
+ LOG("_addEngineToStore: Adding engine: \"" + aEngine.name + "\"");
+
+ // See if there is an existing engine with the same name. However, if this
+ // engine is updating another engine, it's allowed to have the same name.
+ var hasSameNameAsUpdate = (aEngine._engineToUpdate &&
+ aEngine.name == aEngine._engineToUpdate.name);
+ if (aEngine.name in this._engines && !hasSameNameAsUpdate) {
+ LOG("_addEngineToStore: Duplicate engine found, aborting!");
+ return;
+ }
+
+ if (aEngine._engineToUpdate) {
+ // We need to replace engineToUpdate with the engine that just loaded.
+ var oldEngine = aEngine._engineToUpdate;
+
+ // Remove the old engine from the hash, since it's keyed by name, and our
+ // name might change (the update might have a new name).
+ delete this._engines[oldEngine.name];
+
+ // Hack: we want to replace the old engine with the new one, but since
+ // people may be holding refs to the nsISearchEngine objects themselves,
+ // we'll just copy over all "private" properties (those without a getter
+ // or setter) from one object to the other.
+ for (var p in aEngine) {
+ if (!(aEngine.__lookupGetter__(p) || aEngine.__lookupSetter__(p)))
+ oldEngine[p] = aEngine[p];
+ }
+ aEngine = oldEngine;
+ aEngine._engineToUpdate = null;
+
+ // Add the engine back
+ this._engines[aEngine.name] = aEngine;
+ notifyAction(aEngine, SEARCH_ENGINE_CHANGED);
+ } else {
+ // Not an update, just add the new engine.
+ this._engines[aEngine.name] = aEngine;
+ // Only add the engine to the list of sorted engines if the initial list
+ // has already been built (i.e. if this.__sortedEngines is non-null). If
+ // it hasn't, we're loading engines from disk and the sorted engine list
+ // will be built once we need it.
+ if (this.__sortedEngines) {
+ this.__sortedEngines.push(aEngine);
+ this._saveSortedEngineList();
+ }
+ notifyAction(aEngine, SEARCH_ENGINE_ADDED);
+ }
+
+ if (aEngine._hasUpdates) {
+ // Schedule the engine's next update, if it isn't already.
+ if (!aEngine.getAttr("updateexpir"))
+ engineUpdateService.scheduleNextUpdate(aEngine);
+ }
+ },
+
+ _loadEnginesMetadataFromCache: function SRCH_SVC__loadEnginesMetadataFromCache(cache) {
+ if (cache._oldMetadata) {
+ // If we have old metadata in the cache, we had no valid cache
+ // file and read data from search-metadata.json.
+ for (let name in this._engines) {
+ let engine = this._engines[name];
+ if (engine._id && cache._oldMetadata[engine._id])
+ engine._metaData = cache._oldMetadata[engine._id];
+ }
+ return;
+ }
+
+ if (!cache.engines)
+ return;
+
+ for (let engine of cache.engines) {
+ let name = engine._name;
+ if (name in this._engines) {
+ LOG("_loadEnginesMetadataFromCache, transfering metadata for " + name);
+ this._engines[name]._metaData = engine._metaData;
+ }
+ }
+ },
+
+ _loadEnginesFromCache: function SRCH_SVC__loadEnginesFromCache(cache,
+ skipReadOnly) {
+ if (!cache.engines)
+ return;
+
+ LOG("_loadEnginesFromCache: Loading " +
+ cache.engines.length + " engines from cache");
+
+ let skippedEngines = 0;
+ for (let engine of cache.engines) {
+ if (skipReadOnly && engine._readOnly == undefined) {
+ ++skippedEngines;
+ continue;
+ }
+
+ this._loadEngineFromCache(engine);
+ }
+
+ if (skippedEngines) {
+ LOG("_loadEnginesFromCache: skipped " + skippedEngines + " read-only engines.");
+ }
+ },
+
+ _loadEngineFromCache: function SRCH_SVC__loadEngineFromCache(json) {
+ try {
+ let engine = new Engine(json._shortName, json._readOnly == undefined);
+ engine._initWithJSON(json);
+ this._addEngineToStore(engine);
+ } catch (ex) {
+ LOG("Failed to load " + json._name + " from cache: " + ex);
+ LOG("Engine JSON: " + json.toSource());
+ }
+ },
+
+ _loadEnginesFromDir: function SRCH_SVC__loadEnginesFromDir(aDir) {
+ LOG("_loadEnginesFromDir: Searching in " + aDir.path + " for search engines.");
+
+ // Check whether aDir is the user profile dir
+ var isInProfile = aDir.equals(getDir(NS_APP_USER_SEARCH_DIR));
+
+ var files = aDir.directoryEntries
+ .QueryInterface(Ci.nsIDirectoryEnumerator);
+
+ while (files.hasMoreElements()) {
+ var file = files.nextFile;
+
+ // Ignore hidden and empty files, and directories
+ if (!file.isFile() || file.fileSize == 0 || file.isHidden())
+ continue;
+
+ var fileURL = NetUtil.ioService.newFileURI(file).QueryInterface(Ci.nsIURL);
+ var fileExtension = fileURL.fileExtension.toLowerCase();
+
+ if (fileExtension != "xml") {
+ // Not an engine
+ continue;
+ }
+
+ var addedEngine = null;
+ try {
+ addedEngine = new Engine(file, !isInProfile);
+ addedEngine._initFromFile(file);
+ if (!isInProfile && !addedEngine._isDefault) {
+ addedEngine._dirPath = aDir.path;
+ addedEngine._dirLastModifiedTime = aDir.lastModifiedTime;
+ }
+ } catch (ex) {
+ LOG("_loadEnginesFromDir: Failed to load " + file.path + "!\n" + ex);
+ continue;
+ }
+
+ this._addEngineToStore(addedEngine);
+ }
+ },
+
+ /**
+ * Loads engines from a given directory asynchronously.
+ *
+ * @param aDir the directory.
+ *
+ * @returns {Promise} A promise, resolved successfully if retrieveing data
+ * succeeds.
+ */
+ _asyncLoadEnginesFromDir: Task.async(function* (aDir) {
+ LOG("_asyncLoadEnginesFromDir: Searching in " + aDir.path + " for search engines.");
+
+ // Check whether aDir is the user profile dir
+ let isInProfile = aDir.equals(getDir(NS_APP_USER_SEARCH_DIR));
+ let dirPath = aDir.path;
+ let iterator = new OS.File.DirectoryIterator(dirPath);
+
+ let osfiles = yield iterator.nextBatch();
+ iterator.close();
+
+ let engines = [];
+ for (let osfile of osfiles) {
+ if (osfile.isDir || osfile.isSymLink)
+ continue;
+
+ let fileInfo = yield OS.File.stat(osfile.path);
+ if (fileInfo.size == 0)
+ continue;
+
+ let parts = osfile.path.split(".");
+ if (parts.length <= 1 || (parts.pop()).toLowerCase() != "xml") {
+ // Not an engine
+ continue;
+ }
+
+ let addedEngine = null;
+ try {
+ let file = new FileUtils.File(osfile.path);
+ addedEngine = new Engine(file, !isInProfile);
+ yield checkForSyncCompletion(addedEngine._asyncInitFromFile(file));
+ if (!isInProfile && !addedEngine._isDefault) {
+ addedEngine._dirPath = dirPath;
+ let info = yield OS.File.stat(dirPath);
+ addedEngine._dirLastModifiedTime =
+ info.lastModificationDate.getTime();
+ }
+ engines.push(addedEngine);
+ } catch (ex) {
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ throw ex;
+ }
+ LOG("_asyncLoadEnginesFromDir: Failed to load " + osfile.path + "!\n" + ex);
+ }
+ }
+ return engines;
+ }),
+
+ _loadFromChromeURLs: function SRCH_SVC_loadFromChromeURLs(aURLs) {
+ aURLs.forEach(function (url) {
+ try {
+ LOG("_loadFromChromeURLs: loading engine from chrome url: " + url);
+
+ let uri = makeURI(url);
+ let engine = new Engine(uri, true);
+
+ engine._initFromURISync(uri);
+
+ this._addEngineToStore(engine);
+ } catch (ex) {
+ LOG("_loadFromChromeURLs: failed to load engine: " + ex);
+ }
+ }, this);
+ },
+
+ /**
+ * Loads engines from Chrome URLs asynchronously.
+ *
+ * @param aURLs a list of URLs.
+ *
+ * @returns {Promise} A promise, resolved successfully if loading data
+ * succeeds.
+ */
+ _asyncLoadFromChromeURLs: Task.async(function* (aURLs) {
+ let engines = [];
+ for (let url of aURLs) {
+ try {
+ LOG("_asyncLoadFromChromeURLs: loading engine from chrome url: " + url);
+ let uri = NetUtil.newURI(url);
+ let engine = new Engine(uri, true);
+ yield checkForSyncCompletion(engine._asyncInitFromURI(uri));
+ engines.push(engine);
+ } catch (ex) {
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ throw ex;
+ }
+ LOG("_asyncLoadFromChromeURLs: failed to load engine: " + ex);
+ }
+ }
+ return engines;
+ }),
+
+ _convertChannelToFile: function(chan) {
+ let fileURI = chan.URI;
+ while (fileURI instanceof Ci.nsIJARURI)
+ fileURI = fileURI.JARFile;
+ fileURI.QueryInterface(Ci.nsIFileURL);
+
+ return fileURI.file;
+ },
+
+ _findJAREngines: function SRCH_SVC_findJAREngines() {
+ LOG("_findJAREngines: looking for engines in JARs")
+
+ let chan = makeChannel(APP_SEARCH_PREFIX + "list.json");
+ if (!chan) {
+ LOG("_findJAREngines: " + APP_SEARCH_PREFIX + " isn't registered");
+ return [];
+ }
+
+ let uris = [];
+
+ let sis = Cc["@mozilla.org/scriptableinputstream;1"].
+ createInstance(Ci.nsIScriptableInputStream);
+ try {
+ sis.init(chan.open2());
+ this._parseListJSON(sis.read(sis.available()), uris);
+ // parseListJSON will catch its own errors, so we
+ // should only go into this catch if list.json
+ // doesn't exist
+ } catch (e) {
+ chan = makeChannel(APP_SEARCH_PREFIX + "list.txt");
+ sis.init(chan.open2());
+ this._parseListTxt(sis.read(sis.available()), uris);
+ }
+ return uris;
+ },
+
+ /**
+ * Loads jar engines asynchronously.
+ *
+ * @returns {Promise} A promise, resolved successfully if finding jar engines
+ * succeeds.
+ */
+ _asyncFindJAREngines: Task.async(function* () {
+ LOG("_asyncFindJAREngines: looking for engines in JARs")
+
+ let listURL = APP_SEARCH_PREFIX + "list.json";
+ let chan = makeChannel(listURL);
+ if (!chan) {
+ LOG("_asyncFindJAREngines: " + APP_SEARCH_PREFIX + " isn't registered");
+ return [];
+ }
+
+ let uris = [];
+
+ // Read list.json to find the engines we need to load.
+ let deferred = Promise.defer();
+ let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].
+ createInstance(Ci.nsIXMLHttpRequest);
+ request.overrideMimeType("text/plain");
+ request.onload = function(aEvent) {
+ deferred.resolve(aEvent.target.responseText);
+ };
+ request.onerror = function(aEvent) {
+ LOG("_asyncFindJAREngines: failed to read " + listURL);
+ // Couldn't find list.json, try list.txt
+ request.onerror = function(aEvent) {
+ LOG("_asyncFindJAREngines: failed to read " + APP_SEARCH_PREFIX + "list.txt");
+ deferred.resolve("");
+ }
+ request.open("GET", NetUtil.newURI(APP_SEARCH_PREFIX + "list.txt").spec, true);
+ request.send();
+ };
+ request.open("GET", NetUtil.newURI(listURL).spec, true);
+ request.send();
+ let list = yield deferred.promise;
+
+ if (request.responseURL.endsWith(".txt")) {
+ this._parseListTxt(list, uris);
+ } else {
+ this._parseListJSON(list, uris);
+ }
+ return uris;
+ }),
+
+ _parseListJSON: function SRCH_SVC_parseListJSON(list, uris) {
+ let searchSettings;
+ try {
+ searchSettings = JSON.parse(list);
+ } catch (e) {
+ LOG("failing to parse list.json: " + e);
+ return;
+ }
+
+ let jarNames = new Set();
+ for (let region in searchSettings) {
+ // Artifact builds use the full list.json which parses
+ // slightly differently
+ if (!("visibleDefaultEngines" in searchSettings[region])) {
+ continue;
+ }
+ for (let engine of searchSettings[region]["visibleDefaultEngines"]) {
+ jarNames.add(engine);
+ }
+ }
+
+ // Check if we have a useable country specific list of visible default engines.
+ let engineNames;
+ let visibleDefaultEngines = this.getVerifiedGlobalAttr("visibleDefaultEngines");
+ if (visibleDefaultEngines) {
+ engineNames = visibleDefaultEngines.split(",");
+ for (let engineName of engineNames) {
+ // If all engineName values are part of jarNames,
+ // then we can use the country specific list, otherwise ignore it.
+ // The visibleDefaultEngines string containing the name of an engine we
+ // don't ship indicates the server is misconfigured to answer requests
+ // from the specific Firefox version we are running, so ignoring the
+ // value altogether is safer.
+ if (!jarNames.has(engineName)) {
+ LOG("_parseListJSON: ignoring visibleDefaultEngines value because " +
+ engineName + " is not in the jar engines we have found");
+ engineNames = null;
+ break;
+ }
+ }
+ }
+
+ // Fallback to building a list based on the regions in the JSON
+ if (!engineNames || !engineNames.length) {
+ engineNames = searchSettings["default"]["visibleDefaultEngines"];
+ }
+
+ for (let name of engineNames) {
+ uris.push(APP_SEARCH_PREFIX + name + ".xml");
+ }
+
+ // Store this so that it can be used while writing the cache file.
+ this._visibleDefaultEngines = engineNames;
+ },
+
+ _parseListTxt: function SRCH_SVC_parseListTxt(list, uris) {
+ let names = list.split("\n").filter(n => !!n);
+ // This maps the names of our built-in engines to a boolean
+ // indicating whether it should be hidden by default.
+ let jarNames = new Map();
+ for (let name of names) {
+ if (name.endsWith(":hidden")) {
+ name = name.split(":")[0];
+ jarNames.set(name, true);
+ } else {
+ jarNames.set(name, false);
+ }
+ }
+
+ // Check if we have a useable country specific list of visible default engines.
+ let engineNames;
+ let visibleDefaultEngines = this.getVerifiedGlobalAttr("visibleDefaultEngines");
+ if (visibleDefaultEngines) {
+ engineNames = visibleDefaultEngines.split(",");
+
+ for (let engineName of engineNames) {
+ // If all engineName values are part of jarNames,
+ // then we can use the country specific list, otherwise ignore it.
+ // The visibleDefaultEngines string containing the name of an engine we
+ // don't ship indicates the server is misconfigured to answer requests
+ // from the specific Firefox version we are running, so ignoring the
+ // value altogether is safer.
+ if (!jarNames.has(engineName)) {
+ LOG("_parseListTxt: ignoring visibleDefaultEngines value because " +
+ engineName + " is not in the jar engines we have found");
+ engineNames = null;
+ break;
+ }
+ }
+ }
+
+ // Fallback to building a list based on the :hidden suffixes found in list.txt.
+ if (!engineNames) {
+ engineNames = [];
+ for (let [name, hidden] of jarNames) {
+ if (!hidden)
+ engineNames.push(name);
+ }
+ }
+
+ for (let name of engineNames) {
+ uris.push(APP_SEARCH_PREFIX + name + ".xml");
+ }
+
+ // Store this so that it can be used while writing the cache file.
+ this._visibleDefaultEngines = engineNames;
+ },
+
+
+ _saveSortedEngineList: function SRCH_SVC_saveSortedEngineList() {
+ LOG("SRCH_SVC_saveSortedEngineList: starting");
+
+ // Set the useDB pref to indicate that from now on we should use the order
+ // information stored in the database.
+ Services.prefs.setBoolPref(BROWSER_SEARCH_PREF + "useDBForOrder", true);
+
+ var engines = this._getSortedEngines(true);
+
+ for (var i = 0; i < engines.length; ++i) {
+ engines[i].setAttr("order", i + 1);
+ }
+
+ LOG("SRCH_SVC_saveSortedEngineList: done");
+ },
+
+ _buildSortedEngineList: function SRCH_SVC_buildSortedEngineList() {
+ LOG("_buildSortedEngineList: building list");
+ var addedEngines = { };
+ this.__sortedEngines = [];
+ var engine;
+
+ // If the user has specified a custom engine order, read the order
+ // information from the metadata instead of the default prefs.
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "useDBForOrder", false)) {
+ LOG("_buildSortedEngineList: using db for order");
+
+ // Flag to keep track of whether or not we need to call _saveSortedEngineList.
+ let needToSaveEngineList = false;
+
+ for (let name in this._engines) {
+ let engine = this._engines[name];
+ var orderNumber = engine.getAttr("order");
+
+ // Since the DB isn't regularly cleared, and engine files may disappear
+ // without us knowing, we may already have an engine in this slot. If
+ // that happens, we just skip it - it will be added later on as an
+ // unsorted engine.
+ if (orderNumber && !this.__sortedEngines[orderNumber-1]) {
+ this.__sortedEngines[orderNumber-1] = engine;
+ addedEngines[engine.name] = engine;
+ } else {
+ // We need to call _saveSortedEngineList so this gets sorted out.
+ needToSaveEngineList = true;
+ }
+ }
+
+ // Filter out any nulls for engines that may have been removed
+ var filteredEngines = this.__sortedEngines.filter(function(a) { return !!a; });
+ if (this.__sortedEngines.length != filteredEngines.length)
+ needToSaveEngineList = true;
+ this.__sortedEngines = filteredEngines;
+
+ if (needToSaveEngineList)
+ this._saveSortedEngineList();
+ } else {
+ // The DB isn't being used, so just read the engine order from the prefs
+ var i = 0;
+ var engineName;
+ var prefName;
+
+ try {
+ var extras =
+ Services.prefs.getChildList(BROWSER_SEARCH_PREF + "order.extra.");
+
+ for (prefName of extras) {
+ engineName = Services.prefs.getCharPref(prefName);
+
+ engine = this._engines[engineName];
+ if (!engine || engine.name in addedEngines)
+ continue;
+
+ this.__sortedEngines.push(engine);
+ addedEngines[engine.name] = engine;
+ }
+ }
+ catch (e) { }
+
+ while (true) {
+ engineName = getLocalizedPref(BROWSER_SEARCH_PREF + "order." + (++i));
+ if (!engineName)
+ break;
+
+ engine = this._engines[engineName];
+ if (!engine || engine.name in addedEngines)
+ continue;
+
+ this.__sortedEngines.push(engine);
+ addedEngines[engine.name] = engine;
+ }
+ }
+
+ // Array for the remaining engines, alphabetically sorted.
+ let alphaEngines = [];
+
+ for (let name in this._engines) {
+ let engine = this._engines[name];
+ if (!(engine.name in addedEngines))
+ alphaEngines.push(this._engines[engine.name]);
+ }
+
+ let locale = Cc["@mozilla.org/intl/nslocaleservice;1"]
+ .getService(Ci.nsILocaleService)
+ .newLocale(getLocale());
+ let collation = Cc["@mozilla.org/intl/collation-factory;1"]
+ .createInstance(Ci.nsICollationFactory)
+ .CreateCollation(locale);
+ const strength = Ci.nsICollation.kCollationCaseInsensitiveAscii;
+ let comparator = (a, b) => collation.compareString(strength, a.name, b.name);
+ alphaEngines.sort(comparator);
+ return this.__sortedEngines = this.__sortedEngines.concat(alphaEngines);
+ },
+
+ /**
+ * Get a sorted array of engines.
+ * @param aWithHidden
+ * True if hidden plugins should be included in the result.
+ */
+ _getSortedEngines: function SRCH_SVC_getSorted(aWithHidden) {
+ if (aWithHidden)
+ return this._sortedEngines;
+
+ return this._sortedEngines.filter(function (engine) {
+ return !engine.hidden;
+ });
+ },
+
+ // nsIBrowserSearchService
+ init: function SRCH_SVC_init(observer) {
+ LOG("SearchService.init");
+ let self = this;
+ if (!this._initStarted) {
+ this._initStarted = true;
+ Task.spawn(function* task() {
+ try {
+ // Complete initialization by calling asynchronous initializer.
+ yield self._asyncInit();
+ } catch (ex) {
+ if (ex.result == Cr.NS_ERROR_ALREADY_INITIALIZED) {
+ // No need to pursue asynchronous because synchronous fallback was
+ // called and has finished.
+ } else {
+ self._initObservers.reject(ex);
+ }
+ }
+ });
+ }
+ if (observer) {
+ this._initObservers.promise.then(
+ function onSuccess() {
+ try {
+ observer.onInitComplete(self._initRV);
+ } catch (e) {
+ Cu.reportError(e);
+ }
+ },
+ function onError(aReason) {
+ Cu.reportError("Internal error while initializing SearchService: " + aReason);
+ observer.onInitComplete(Components.results.NS_ERROR_UNEXPECTED);
+ }
+ );
+ }
+ },
+
+ get isInitialized() {
+ return gInitialized;
+ },
+
+ getEngines: function SRCH_SVC_getEngines(aCount) {
+ this._ensureInitialized();
+ LOG("getEngines: getting all engines");
+ var engines = this._getSortedEngines(true);
+ aCount.value = engines.length;
+ return engines;
+ },
+
+ getVisibleEngines: function SRCH_SVC_getVisible(aCount) {
+ this._ensureInitialized();
+ LOG("getVisibleEngines: getting all visible engines");
+ var engines = this._getSortedEngines(false);
+ aCount.value = engines.length;
+ return engines;
+ },
+
+ getDefaultEngines: function SRCH_SVC_getDefault(aCount) {
+ this._ensureInitialized();
+ function isDefault(engine) {
+ return engine._isDefault;
+ }
+ var engines = this._sortedEngines.filter(isDefault);
+ var engineOrder = {};
+ var engineName;
+ var i = 1;
+
+ // Build a list of engines which we have ordering information for.
+ // We're rebuilding the list here because _sortedEngines contain the
+ // current order, but we want the original order.
+
+ // First, look at the "browser.search.order.extra" branch.
+ try {
+ var extras = Services.prefs.getChildList(BROWSER_SEARCH_PREF + "order.extra.");
+
+ for (var prefName of extras) {
+ engineName = Services.prefs.getCharPref(prefName);
+
+ if (!(engineName in engineOrder))
+ engineOrder[engineName] = i++;
+ }
+ } catch (e) {
+ LOG("Getting extra order prefs failed: " + e);
+ }
+
+ // Now look through the "browser.search.order" branch.
+ for (var j = 1; ; j++) {
+ engineName = getLocalizedPref(BROWSER_SEARCH_PREF + "order." + j);
+ if (!engineName)
+ break;
+
+ if (!(engineName in engineOrder))
+ engineOrder[engineName] = i++;
+ }
+
+ LOG("getDefaultEngines: engineOrder: " + engineOrder.toSource());
+
+ function compareEngines (a, b) {
+ var aIdx = engineOrder[a.name];
+ var bIdx = engineOrder[b.name];
+
+ if (aIdx && bIdx)
+ return aIdx - bIdx;
+ if (aIdx)
+ return -1;
+ if (bIdx)
+ return 1;
+
+ return a.name.localeCompare(b.name);
+ }
+ engines.sort(compareEngines);
+
+ aCount.value = engines.length;
+ return engines;
+ },
+
+ getEngineByName: function SRCH_SVC_getEngineByName(aEngineName) {
+ this._ensureInitialized();
+ return this._engines[aEngineName] || null;
+ },
+
+ getEngineByAlias: function SRCH_SVC_getEngineByAlias(aAlias) {
+ this._ensureInitialized();
+ for (var engineName in this._engines) {
+ var engine = this._engines[engineName];
+ if (engine && engine.alias == aAlias)
+ return engine;
+ }
+ return null;
+ },
+
+ addEngineWithDetails: function SRCH_SVC_addEWD(aName, aIconURL, aAlias,
+ aDescription, aMethod,
+ aTemplate, aExtensionID) {
+ this._ensureInitialized();
+ if (!aName)
+ FAIL("Invalid name passed to addEngineWithDetails!");
+ if (!aMethod)
+ FAIL("Invalid method passed to addEngineWithDetails!");
+ if (!aTemplate)
+ FAIL("Invalid template passed to addEngineWithDetails!");
+ if (this._engines[aName])
+ FAIL("An engine with that name already exists!", Cr.NS_ERROR_FILE_ALREADY_EXISTS);
+
+ var engine = new Engine(sanitizeName(aName), false);
+ engine._initFromMetadata(aName, aIconURL, aAlias, aDescription,
+ aMethod, aTemplate, aExtensionID);
+ engine._loadPath = "[other]addEngineWithDetails";
+ this._addEngineToStore(engine);
+ },
+
+ addEngine: function SRCH_SVC_addEngine(aEngineURL, aDataType, aIconURL,
+ aConfirm, aCallback) {
+ LOG("addEngine: Adding \"" + aEngineURL + "\".");
+ this._ensureInitialized();
+ try {
+ var uri = makeURI(aEngineURL);
+ var engine = new Engine(uri, false);
+ if (aCallback) {
+ engine._installCallback = function (errorCode) {
+ try {
+ if (errorCode == null)
+ aCallback.onSuccess(engine);
+ else
+ aCallback.onError(errorCode);
+ } catch (ex) {
+ Cu.reportError("Error invoking addEngine install callback: " + ex);
+ }
+ // Clear the reference to the callback now that it's been invoked.
+ engine._installCallback = null;
+ };
+ }
+ engine._initFromURIAndLoad(uri);
+ } catch (ex) {
+ // Drop the reference to the callback, if set
+ if (engine)
+ engine._installCallback = null;
+ FAIL("addEngine: Error adding engine:\n" + ex, Cr.NS_ERROR_FAILURE);
+ }
+ engine._setIcon(aIconURL, false);
+ engine._confirm = aConfirm;
+ },
+
+ removeEngine: function SRCH_SVC_removeEngine(aEngine) {
+ this._ensureInitialized();
+ if (!aEngine)
+ FAIL("no engine passed to removeEngine!");
+
+ var engineToRemove = null;
+ for (var e in this._engines) {
+ if (aEngine.wrappedJSObject == this._engines[e])
+ engineToRemove = this._engines[e];
+ }
+
+ if (!engineToRemove)
+ FAIL("removeEngine: Can't find engine to remove!", Cr.NS_ERROR_FILE_NOT_FOUND);
+
+ if (engineToRemove == this.currentEngine) {
+ this._currentEngine = null;
+ }
+
+ if (engineToRemove._readOnly) {
+ // Just hide it (the "hidden" setter will notify) and remove its alias to
+ // avoid future conflicts with other engines.
+ engineToRemove.hidden = true;
+ engineToRemove.alias = null;
+ } else {
+ // Remove the engine file from disk if we had a legacy file in the profile.
+ if (engineToRemove._filePath) {
+ let file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
+ file.persistentDescriptor = engineToRemove._filePath;
+ if (file.exists()) {
+ file.remove(false);
+ }
+ engineToRemove._filePath = null;
+ }
+
+ // Remove the engine from _sortedEngines
+ var index = this._sortedEngines.indexOf(engineToRemove);
+ if (index == -1)
+ FAIL("Can't find engine to remove in _sortedEngines!", Cr.NS_ERROR_FAILURE);
+ this.__sortedEngines.splice(index, 1);
+
+ // Remove the engine from the internal store
+ delete this._engines[engineToRemove.name];
+
+ // Since we removed an engine, we need to update the preferences.
+ this._saveSortedEngineList();
+ }
+ notifyAction(engineToRemove, SEARCH_ENGINE_REMOVED);
+ },
+
+ moveEngine: function SRCH_SVC_moveEngine(aEngine, aNewIndex) {
+ this._ensureInitialized();
+ if ((aNewIndex > this._sortedEngines.length) || (aNewIndex < 0))
+ FAIL("SRCH_SVC_moveEngine: Index out of bounds!");
+ if (!(aEngine instanceof Ci.nsISearchEngine))
+ FAIL("SRCH_SVC_moveEngine: Invalid engine passed to moveEngine!");
+ if (aEngine.hidden)
+ FAIL("moveEngine: Can't move a hidden engine!", Cr.NS_ERROR_FAILURE);
+
+ var engine = aEngine.wrappedJSObject;
+
+ var currentIndex = this._sortedEngines.indexOf(engine);
+ if (currentIndex == -1)
+ FAIL("moveEngine: Can't find engine to move!", Cr.NS_ERROR_UNEXPECTED);
+
+ // Our callers only take into account non-hidden engines when calculating
+ // aNewIndex, but we need to move it in the array of all engines, so we
+ // need to adjust aNewIndex accordingly. To do this, we count the number
+ // of hidden engines in the list before the engine that we're taking the
+ // place of. We do this by first finding newIndexEngine (the engine that
+ // we were supposed to replace) and then iterating through the complete
+ // engine list until we reach it, increasing aNewIndex for each hidden
+ // engine we find on our way there.
+ //
+ // This could be further simplified by having our caller pass in
+ // newIndexEngine directly instead of aNewIndex.
+ var newIndexEngine = this._getSortedEngines(false)[aNewIndex];
+ if (!newIndexEngine)
+ FAIL("moveEngine: Can't find engine to replace!", Cr.NS_ERROR_UNEXPECTED);
+
+ for (var i = 0; i < this._sortedEngines.length; ++i) {
+ if (newIndexEngine == this._sortedEngines[i])
+ break;
+ if (this._sortedEngines[i].hidden)
+ aNewIndex++;
+ }
+
+ if (currentIndex == aNewIndex)
+ return; // nothing to do!
+
+ // Move the engine
+ var movedEngine = this.__sortedEngines.splice(currentIndex, 1)[0];
+ this.__sortedEngines.splice(aNewIndex, 0, movedEngine);
+
+ notifyAction(engine, SEARCH_ENGINE_CHANGED);
+
+ // Since we moved an engine, we need to update the preferences.
+ this._saveSortedEngineList();
+ },
+
+ restoreDefaultEngines: function SRCH_SVC_resetDefaultEngines() {
+ this._ensureInitialized();
+ for (let name in this._engines) {
+ let e = this._engines[name];
+ // Unhide all default engines
+ if (e.hidden && e._isDefault)
+ e.hidden = false;
+ }
+ },
+
+ get defaultEngine() { return this.currentEngine; },
+
+ set defaultEngine(val) {
+ this.currentEngine = val;
+ },
+
+ get currentEngine() {
+ this._ensureInitialized();
+ if (!this._currentEngine) {
+ let name = this.getGlobalAttr("current");
+ let engine = this.getEngineByName(name);
+ if (engine && (this.getGlobalAttr("hash") == getVerificationHash(name) ||
+ engine._isDefault)) {
+ // If the current engine is a default one, we can relax the
+ // verification hash check to reduce the annoyance for users who
+ // backup/sync their profile in custom ways.
+ this._currentEngine = engine;
+ }
+ if (!name)
+ this._currentEngine = this.originalDefaultEngine;
+ }
+
+ // If the current engine is not set or hidden, we fallback...
+ if (!this._currentEngine || this._currentEngine.hidden) {
+ // first to the original default engine
+ let originalDefault = this.originalDefaultEngine;
+ if (!originalDefault || originalDefault.hidden) {
+ // then to the first visible engine
+ let firstVisible = this._getSortedEngines(false)[0];
+ if (firstVisible && !firstVisible.hidden) {
+ this.currentEngine = firstVisible;
+ return firstVisible;
+ }
+ // and finally as a last resort we unhide the original default engine.
+ if (originalDefault)
+ originalDefault.hidden = false;
+ }
+ if (!originalDefault)
+ return null;
+
+ // If the current engine wasn't set or was hidden, we used a fallback
+ // to pick a new current engine. As soon as we return it, this new
+ // current engine will become user-visible, so we should persist it.
+ // by calling the setter.
+ this.currentEngine = originalDefault;
+ }
+
+ return this._currentEngine;
+ },
+
+ set currentEngine(val) {
+ this._ensureInitialized();
+ // Sometimes we get wrapped nsISearchEngine objects (external XPCOM callers),
+ // and sometimes we get raw Engine JS objects (callers in this file), so
+ // handle both.
+ if (!(val instanceof Ci.nsISearchEngine) && !(val instanceof Engine))
+ FAIL("Invalid argument passed to currentEngine setter");
+
+ var newCurrentEngine = this.getEngineByName(val.name);
+ if (!newCurrentEngine)
+ FAIL("Can't find engine in store!", Cr.NS_ERROR_UNEXPECTED);
+
+ if (!newCurrentEngine._isDefault) {
+ // If a non default engine is being set as the current engine, ensure
+ // its loadPath has a verification hash.
+ if (!newCurrentEngine._loadPath)
+ newCurrentEngine._loadPath = "[other]unknown";
+ let loadPathHash = getVerificationHash(newCurrentEngine._loadPath);
+ let currentHash = newCurrentEngine.getAttr("loadPathHash");
+ if (!currentHash || currentHash != loadPathHash) {
+ newCurrentEngine.setAttr("loadPathHash", loadPathHash);
+ notifyAction(newCurrentEngine, SEARCH_ENGINE_CHANGED);
+ }
+ }
+
+ if (newCurrentEngine == this._currentEngine)
+ return;
+
+ this._currentEngine = newCurrentEngine;
+
+ // If we change the default engine in the future, that change should impact
+ // users who have switched away from and then back to the build's "default"
+ // engine. So clear the user pref when the currentEngine is set to the
+ // build's default engine, so that the currentEngine getter falls back to
+ // whatever the default is.
+ let newName = this._currentEngine.name;
+ if (this._currentEngine == this.originalDefaultEngine) {
+ newName = "";
+ }
+
+ this.setGlobalAttr("current", newName);
+ this.setGlobalAttr("hash", getVerificationHash(newName));
+
+ notifyAction(this._currentEngine, SEARCH_ENGINE_DEFAULT);
+ notifyAction(this._currentEngine, SEARCH_ENGINE_CURRENT);
+ },
+
+ getDefaultEngineInfo() {
+ let result = {};
+
+ let engine;
+ try {
+ engine = this.defaultEngine;
+ } catch (e) {
+ // The defaultEngine getter will throw if there's no engine at all,
+ // which shouldn't happen unless an add-on or a test deleted all of them.
+ // Our preferences UI doesn't let users do that.
+ Cu.reportError("getDefaultEngineInfo: No default engine");
+ }
+
+ if (!engine) {
+ result.name = "NONE";
+ } else {
+ if (engine.name)
+ result.name = engine.name;
+
+ result.loadPath = engine._loadPath;
+
+ let origin;
+ if (engine._isDefault)
+ origin = "default";
+ else {
+ let currentHash = engine.getAttr("loadPathHash");
+ if (!currentHash)
+ origin = "unverified";
+ else {
+ let loadPathHash = getVerificationHash(engine._loadPath);
+ origin = currentHash == loadPathHash ? "verified" : "invalid";
+ }
+ }
+ result.origin = origin;
+
+ // For privacy, we only collect the submission URL for default engines...
+ let sendSubmissionURL = engine._isDefault;
+
+ // ... or engines sorted by default near the top of the list.
+ if (!sendSubmissionURL) {
+ let extras =
+ Services.prefs.getChildList(BROWSER_SEARCH_PREF + "order.extra.");
+
+ for (let prefName of extras) {
+ try {
+ if (result.name == Services.prefs.getCharPref(prefName)) {
+ sendSubmissionURL = true;
+ break;
+ }
+ } catch (e) {}
+ }
+
+ let i = 0;
+ while (!sendSubmissionURL) {
+ let engineName = getLocalizedPref(BROWSER_SEARCH_PREF + "order." + (++i));
+ if (!engineName)
+ break;
+ if (result.name == engineName) {
+ sendSubmissionURL = true;
+ break;
+ }
+ }
+ }
+
+ if (sendSubmissionURL) {
+ let uri = engine._getURLOfType("text/html")
+ .getSubmission("", engine, "searchbar").uri;
+ uri.userPass = ""; // Avoid reporting a username or password.
+ result.submissionURL = uri.spec;
+ }
+ }
+
+ return result;
+ },
+
+ _recordEngineTelemetry: function() {
+ Services.telemetry.getHistogramById("SEARCH_SERVICE_ENGINE_COUNT")
+ .add(Object.keys(this._engines).length);
+ let hasUpdates = false;
+ let hasIconUpdates = false;
+ for (let name in this._engines) {
+ let engine = this._engines[name];
+ if (engine._hasUpdates) {
+ hasUpdates = true;
+ if (engine._iconUpdateURL) {
+ hasIconUpdates = true;
+ break;
+ }
+ }
+ }
+ Services.telemetry.getHistogramById("SEARCH_SERVICE_HAS_UPDATES").add(hasUpdates);
+ Services.telemetry.getHistogramById("SEARCH_SERVICE_HAS_ICON_UPDATES").add(hasIconUpdates);
+ },
+
+ /**
+ * This map is built lazily after the available search engines change. It
+ * allows quick parsing of an URL representing a search submission into the
+ * search engine name and original terms.
+ *
+ * The keys are strings containing the domain name and lowercase path of the
+ * engine submission, for example "www.google.com/search".
+ *
+ * The values are objects with these properties:
+ * {
+ * engine: The associated nsISearchEngine.
+ * termsParameterName: Name of the URL parameter containing the search
+ * terms, for example "q".
+ * }
+ */
+ _parseSubmissionMap: null,
+
+ _buildParseSubmissionMap: function SRCH_SVC__buildParseSubmissionMap() {
+ LOG("_buildParseSubmissionMap");
+ this._parseSubmissionMap = new Map();
+
+ // Used only while building the map, indicates which entries do not refer to
+ // the main domain of the engine but to an alternate domain, for example
+ // "www.google.fr" for the "www.google.com" search engine.
+ let keysOfAlternates = new Set();
+
+ for (let engine of this._sortedEngines) {
+ LOG("Processing engine: " + engine.name);
+
+ if (engine.hidden) {
+ LOG("Engine is hidden.");
+ continue;
+ }
+
+ let urlParsingInfo = engine.getURLParsingInfo();
+ if (!urlParsingInfo) {
+ LOG("Engine does not support URL parsing.");
+ continue;
+ }
+
+ // Store the same object on each matching map key, as an optimization.
+ let mapValueForEngine = {
+ engine: engine,
+ termsParameterName: urlParsingInfo.termsParameterName,
+ };
+
+ let processDomain = (domain, isAlternate) => {
+ let key = domain + urlParsingInfo.path;
+
+ // Apply the logic for which main domains take priority over alternate
+ // domains, even if they are found later in the ordered engine list.
+ let existingEntry = this._parseSubmissionMap.get(key);
+ if (!existingEntry) {
+ LOG("Adding new entry: " + key);
+ if (isAlternate) {
+ keysOfAlternates.add(key);
+ }
+ } else if (!isAlternate && keysOfAlternates.has(key)) {
+ LOG("Overriding alternate entry: " + key +
+ " (" + existingEntry.engine.name + ")");
+ keysOfAlternates.delete(key);
+ } else {
+ LOG("Keeping existing entry: " + key +
+ " (" + existingEntry.engine.name + ")");
+ return;
+ }
+
+ this._parseSubmissionMap.set(key, mapValueForEngine);
+ };
+
+ processDomain(urlParsingInfo.mainDomain, false);
+ SearchStaticData.getAlternateDomains(urlParsingInfo.mainDomain)
+ .forEach(d => processDomain(d, true));
+ }
+ },
+
+ /**
+ * Checks to see if any engine has an EngineURL of type URLTYPE_SEARCH_HTML
+ * for this request-method, template URL, and query params.
+ */
+ hasEngineWithURL: function(method, template, formData) {
+ this._ensureInitialized();
+
+ // Quick helper method to ensure formData filtered/sorted for compares.
+ let getSortedFormData = data => {
+ return data.filter(a => a.name && a.value).sort((a, b) => {
+ if (a.name > b.name) {
+ return 1;
+ } else if (b.name > a.name) {
+ return -1;
+ } else if (a.value > b.value) {
+ return 1;
+ }
+ return (b.value > a.value) ? -1 : 0;
+ });
+ };
+
+ // Sanitize method, ensure formData is pre-sorted.
+ let methodUpper = method.toUpperCase();
+ let sortedFormData = getSortedFormData(formData);
+ let sortedFormLength = sortedFormData.length;
+
+ return this._getSortedEngines(false).some(engine => {
+ return engine._urls.some(url => {
+ // Not an engineURL match if type, method, url, #params don't match.
+ if (url.type != URLTYPE_SEARCH_HTML ||
+ url.method != methodUpper ||
+ url.template != template ||
+ url.params.length != sortedFormLength) {
+ return false;
+ }
+
+ // Ensure engineURL formData is pre-sorted. Then, we're
+ // not an engineURL match if any queryParam doesn't compare.
+ let sortedParams = getSortedFormData(url.params);
+ for (let i = 0; i < sortedFormLength; i++) {
+ let formData = sortedFormData[i];
+ let param = sortedParams[i];
+ if (param.name != formData.name ||
+ param.value != formData.value ||
+ param.purpose != formData.purpose) {
+ return false;
+ }
+ }
+ // Else we're a match.
+ return true;
+ });
+ });
+ },
+
+ parseSubmissionURL: function SRCH_SVC_parseSubmissionURL(aURL) {
+ this._ensureInitialized();
+ LOG("parseSubmissionURL: Parsing \"" + aURL + "\".");
+
+ if (!this._parseSubmissionMap) {
+ this._buildParseSubmissionMap();
+ }
+
+ // Extract the elements of the provided URL first.
+ let soughtKey, soughtQuery;
+ try {
+ let soughtUrl = NetUtil.newURI(aURL).QueryInterface(Ci.nsIURL);
+
+ // Exclude any URL that is not HTTP or HTTPS from the beginning.
+ if (soughtUrl.scheme != "http" && soughtUrl.scheme != "https") {
+ LOG("The URL scheme is not HTTP or HTTPS.");
+ return gEmptyParseSubmissionResult;
+ }
+
+ // Reading these URL properties may fail and raise an exception.
+ soughtKey = soughtUrl.host + soughtUrl.filePath.toLowerCase();
+ soughtQuery = soughtUrl.query;
+ } catch (ex) {
+ // Errors while parsing the URL or accessing the properties are not fatal.
+ LOG("The value does not look like a structured URL.");
+ return gEmptyParseSubmissionResult;
+ }
+
+ // Look up the domain and path in the map to identify the search engine.
+ let mapEntry = this._parseSubmissionMap.get(soughtKey);
+ if (!mapEntry) {
+ LOG("No engine associated with domain and path: " + soughtKey);
+ return gEmptyParseSubmissionResult;
+ }
+
+ // Extract the search terms from the parameter, for example "caff%C3%A8"
+ // from the URL "https://www.google.com/search?q=caff%C3%A8&client=firefox".
+ let encodedTerms = null;
+ for (let param of soughtQuery.split("&")) {
+ let equalPos = param.indexOf("=");
+ if (equalPos != -1 &&
+ param.substr(0, equalPos) == mapEntry.termsParameterName) {
+ // This is the parameter we are looking for.
+ encodedTerms = param.substr(equalPos + 1);
+ break;
+ }
+ }
+ if (encodedTerms === null) {
+ LOG("Missing terms parameter: " + mapEntry.termsParameterName);
+ return gEmptyParseSubmissionResult;
+ }
+
+ let length = 0;
+ let offset = aURL.indexOf("?") + 1;
+ let query = aURL.slice(offset);
+ // Iterate a second time over the original input string to determine the
+ // correct search term offset and length in the original encoding.
+ for (let param of query.split("&")) {
+ let equalPos = param.indexOf("=");
+ if (equalPos != -1 &&
+ param.substr(0, equalPos) == mapEntry.termsParameterName) {
+ // This is the parameter we are looking for.
+ offset += equalPos + 1;
+ length = param.length - equalPos - 1;
+ break;
+ }
+ offset += param.length + 1;
+ }
+
+ // Decode the terms using the charset defined in the search engine.
+ let terms;
+ try {
+ terms = gTextToSubURI.UnEscapeAndConvert(
+ mapEntry.engine.queryCharset,
+ encodedTerms.replace(/\+/g, " "));
+ } catch (ex) {
+ // Decoding errors will cause this match to be ignored.
+ LOG("Parameter decoding failed. Charset: " +
+ mapEntry.engine.queryCharset);
+ return gEmptyParseSubmissionResult;
+ }
+
+ LOG("Match found. Terms: " + terms);
+ return new ParseSubmissionResult(mapEntry.engine, terms, offset, length);
+ },
+
+ // nsIObserver
+ observe: function SRCH_SVC_observe(aEngine, aTopic, aVerb) {
+ switch (aTopic) {
+ case SEARCH_ENGINE_TOPIC:
+ switch (aVerb) {
+ case SEARCH_ENGINE_LOADED:
+ var engine = aEngine.QueryInterface(Ci.nsISearchEngine);
+ LOG("nsSearchService::observe: Done installation of " + engine.name
+ + ".");
+ this._addEngineToStore(engine.wrappedJSObject);
+ if (engine.wrappedJSObject._useNow) {
+ LOG("nsSearchService::observe: setting current");
+ this.currentEngine = aEngine;
+ }
+ // The addition of the engine to the store always triggers an ADDED
+ // or a CHANGED notification, that will trigger the task below.
+ break;
+ case SEARCH_ENGINE_ADDED:
+ case SEARCH_ENGINE_CHANGED:
+ case SEARCH_ENGINE_REMOVED:
+ this.batchTask.disarm();
+ this.batchTask.arm();
+ // Invalidate the map used to parse URLs to search engines.
+ this._parseSubmissionMap = null;
+ break;
+ }
+ break;
+
+ case QUIT_APPLICATION_TOPIC:
+ this._removeObservers();
+ break;
+
+ case "nsPref:changed":
+ if (aVerb == LOCALE_PREF) {
+ // Locale changed. Re-init. We rely on observers, because we can't
+ // return this promise to anyone.
+ this._asyncReInit();
+ break;
+ }
+ }
+ },
+
+ // nsITimerCallback
+ notify: function SRCH_SVC_notify(aTimer) {
+ LOG("_notify: checking for updates");
+
+ if (!Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "update", true))
+ return;
+
+ // Our timer has expired, but unfortunately, we can't get any data from it.
+ // Therefore, we need to walk our engine-list, looking for expired engines
+ var currentTime = Date.now();
+ LOG("currentTime: " + currentTime);
+ for (let name in this._engines) {
+ let engine = this._engines[name].wrappedJSObject;
+ if (!engine._hasUpdates)
+ continue;
+
+ LOG("checking " + engine.name);
+
+ var expirTime = engine.getAttr("updateexpir");
+ LOG("expirTime: " + expirTime + "\nupdateURL: " + engine._updateURL +
+ "\niconUpdateURL: " + engine._iconUpdateURL);
+
+ var engineExpired = expirTime <= currentTime;
+
+ if (!expirTime || !engineExpired) {
+ LOG("skipping engine");
+ continue;
+ }
+
+ LOG(engine.name + " has expired");
+
+ engineUpdateService.update(engine);
+
+ // Schedule the next update
+ engineUpdateService.scheduleNextUpdate(engine);
+
+ } // end engine iteration
+ },
+
+ _addObservers: function SRCH_SVC_addObservers() {
+ if (this._observersAdded) {
+ // There might be a race between synchronous and asynchronous
+ // initialization for which we try to register the observers twice.
+ return;
+ }
+ this._observersAdded = true;
+
+ Services.obs.addObserver(this, SEARCH_ENGINE_TOPIC, false);
+ Services.obs.addObserver(this, QUIT_APPLICATION_TOPIC, false);
+
+ // The current stage of shutdown. Used to help analyze crash
+ // signatures in case of shutdown timeout.
+ let shutdownState = {
+ step: "Not started",
+ latestError: {
+ message: undefined,
+ stack: undefined
+ }
+ };
+ OS.File.profileBeforeChange.addBlocker(
+ "Search service: shutting down",
+ () => Task.spawn(function* () {
+ if (this._batchTask) {
+ shutdownState.step = "Finalizing batched task";
+ try {
+ yield this._batchTask.finalize();
+ shutdownState.step = "Batched task finalized";
+ } catch (ex) {
+ shutdownState.step = "Batched task failed to finalize";
+
+ shutdownState.latestError.message = "" + ex;
+ if (ex && typeof ex == "object") {
+ shutdownState.latestError.stack = ex.stack || undefined;
+ }
+
+ // Ensure that error is reported and that it causes tests
+ // to fail.
+ Promise.reject(ex);
+ }
+ }
+ }.bind(this)),
+
+ () => shutdownState
+ );
+ },
+ _observersAdded: false,
+
+ _removeObservers: function SRCH_SVC_removeObservers() {
+ Services.obs.removeObserver(this, SEARCH_ENGINE_TOPIC);
+ Services.obs.removeObserver(this, QUIT_APPLICATION_TOPIC);
+ },
+
+ QueryInterface: XPCOMUtils.generateQI([
+ Ci.nsIBrowserSearchService,
+ Ci.nsIObserver,
+ Ci.nsITimerCallback
+ ])
+};
+
+
+const SEARCH_UPDATE_LOG_PREFIX = "*** Search update: ";
+
+/**
+ * Outputs aText to the JavaScript console as well as to stdout, if the search
+ * logging pref (browser.search.update.log) is set to true.
+ */
+function ULOG(aText) {
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "update.log", false)) {
+ dump(SEARCH_UPDATE_LOG_PREFIX + aText + "\n");
+ Services.console.logStringMessage(aText);
+ }
+}
+
+var engineUpdateService = {
+ scheduleNextUpdate: function eus_scheduleNextUpdate(aEngine) {
+ var interval = aEngine._updateInterval || SEARCH_DEFAULT_UPDATE_INTERVAL;
+ var milliseconds = interval * 86400000; // |interval| is in days
+ aEngine.setAttr("updateexpir", Date.now() + milliseconds);
+ },
+
+ update: function eus_Update(aEngine) {
+ let engine = aEngine.wrappedJSObject;
+ ULOG("update called for " + aEngine._name);
+ if (!Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "update", true) || !engine._hasUpdates)
+ return;
+
+ let testEngine = null;
+ let updateURL = engine._getURLOfType(URLTYPE_OPENSEARCH);
+ let updateURI = (updateURL && updateURL._hasRelation("self")) ?
+ updateURL.getSubmission("", engine).uri :
+ makeURI(engine._updateURL);
+ if (updateURI) {
+ if (engine._isDefault && !updateURI.schemeIs("https")) {
+ ULOG("Invalid scheme for default engine update");
+ return;
+ }
+
+ ULOG("updating " + engine.name + " from " + updateURI.spec);
+ testEngine = new Engine(updateURI, false);
+ testEngine._engineToUpdate = engine;
+ testEngine._initFromURIAndLoad(updateURI);
+ } else
+ ULOG("invalid updateURI");
+
+ if (engine._iconUpdateURL) {
+ // If we're updating the engine too, use the new engine object,
+ // otherwise use the existing engine object.
+ (testEngine || engine)._setIcon(engine._iconUpdateURL, true);
+ }
+ }
+};
+
+this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SearchService]);
diff --git a/application/basilisk/components/search/service/nsSearchSuggestions.js b/application/basilisk/components/search/service/nsSearchSuggestions.js
new file mode 100644
index 000000000..a05d8b4b4
--- /dev/null
+++ b/application/basilisk/components/search/service/nsSearchSuggestions.js
@@ -0,0 +1,197 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
+
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+Cu.import("resource://gre/modules/nsFormAutoCompleteResult.jsm");
+Cu.import("resource://gre/modules/Services.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "SearchSuggestionController",
+ "resource://gre/modules/SearchSuggestionController.jsm");
+
+/**
+ * SuggestAutoComplete is a base class that implements nsIAutoCompleteSearch
+ * and can collect results for a given search by using this._suggestionController.
+ * We do it this way since the AutoCompleteController in Mozilla requires a
+ * unique XPCOM Service for every search provider, even if the logic for two
+ * providers is identical.
+ * @constructor
+ */
+function SuggestAutoComplete() {
+ this._init();
+}
+SuggestAutoComplete.prototype = {
+
+ _init: function() {
+ this._suggestionController = new SearchSuggestionController(obj => this.onResultsReturned(obj));
+ this._suggestionController.maxLocalResults = this._historyLimit;
+ },
+
+ get _suggestionLabel() {
+ let bundle = Services.strings.createBundle("chrome://global/locale/search/search.properties");
+ let label = bundle.GetStringFromName("suggestion_label");
+ Object.defineProperty(SuggestAutoComplete.prototype, "_suggestionLabel", {value: label});
+ return label;
+ },
+
+ /**
+ * The object implementing nsIAutoCompleteObserver that we notify when
+ * we have found results
+ * @private
+ */
+ _listener: null,
+
+ /**
+ * Maximum number of history items displayed. This is capped at 7
+ * because the primary consumer (Firefox search bar) displays 10 rows
+ * by default, and so we want to leave some space for suggestions
+ * to be visible.
+ */
+ _historyLimit: 7,
+
+ /**
+ * Callback for handling results from SearchSuggestionController.jsm
+ * @private
+ */
+ onResultsReturned: function(results) {
+ let finalResults = [];
+ let finalComments = [];
+
+ // If form history has results, add them to the list.
+ for (let i = 0; i < results.local.length; ++i) {
+ finalResults.push(results.local[i]);
+ finalComments.push("");
+ }
+
+ // If there are remote matches, add them.
+ if (results.remote.length) {
+ // "comments" column values for suggestions starts as empty strings
+ let comments = new Array(results.remote.length).fill("", 1);
+ comments[0] = this._suggestionLabel;
+ // now put the history results above the suggestions
+ finalResults = finalResults.concat(results.remote);
+ finalComments = finalComments.concat(comments);
+ }
+
+ // Notify the FE of our new results
+ this.onResultsReady(results.term, finalResults, finalComments, results.formHistoryResult);
+ },
+
+ /**
+ * Notifies the front end of new results.
+ * @param searchString the user's query string
+ * @param results an array of results to the search
+ * @param comments an array of metadata corresponding to the results
+ * @private
+ */
+ onResultsReady: function(searchString, results, comments, formHistoryResult) {
+ if (this._listener) {
+ // Create a copy of the results array to use as labels, since
+ // FormAutoCompleteResult doesn't like being passed the same array
+ // for both.
+ let labels = results.slice();
+ let result = new FormAutoCompleteResult(
+ searchString,
+ Ci.nsIAutoCompleteResult.RESULT_SUCCESS,
+ 0,
+ "",
+ results,
+ labels,
+ comments,
+ formHistoryResult);
+
+ this._listener.onSearchResult(this, result);
+
+ // Null out listener to make sure we don't notify it twice
+ this._listener = null;
+ }
+ },
+
+ /**
+ * Initiates the search result gathering process. Part of
+ * nsIAutoCompleteSearch implementation.
+ *
+ * @param searchString the user's query string
+ * @param searchParam unused, "an extra parameter"; even though
+ * this parameter and the next are unused, pass
+ * them through in case the form history
+ * service wants them
+ * @param previousResult unused, a client-cached store of the previous
+ * generated resultset for faster searching.
+ * @param listener object implementing nsIAutoCompleteObserver which
+ * we notify when results are ready.
+ */
+ startSearch: function(searchString, searchParam, previousResult, listener) {
+ // Don't reuse a previous form history result when it no longer applies.
+ if (!previousResult)
+ this._formHistoryResult = null;
+
+ var formHistorySearchParam = searchParam.split("|")[0];
+
+ // Receive the information about the privacy mode of the window to which
+ // this search box belongs. The front-end's search.xml bindings passes this
+ // information in the searchParam parameter. The alternative would have
+ // been to modify nsIAutoCompleteSearch to add an argument to startSearch
+ // and patch all of autocomplete to be aware of this, but the searchParam
+ // argument is already an opaque argument, so this solution is hopefully
+ // less hackish (although still gross.)
+ var privacyMode = (searchParam.split("|")[1] == "private");
+
+ // Start search immediately if possible, otherwise once the search
+ // service is initialized
+ if (Services.search.isInitialized) {
+ this._triggerSearch(searchString, formHistorySearchParam, listener, privacyMode);
+ return;
+ }
+
+ Services.search.init((function startSearch_cb(aResult) {
+ if (!Components.isSuccessCode(aResult)) {
+ Cu.reportError("Could not initialize search service, bailing out: " + aResult);
+ return;
+ }
+ this._triggerSearch(searchString, formHistorySearchParam, listener, privacyMode);
+ }).bind(this));
+ },
+
+ /**
+ * Actual implementation of search.
+ */
+ _triggerSearch: function(searchString, searchParam, listener, privacyMode) {
+ this._listener = listener;
+ this._suggestionController.fetch(searchString,
+ privacyMode,
+ Services.search.currentEngine);
+ },
+
+ /**
+ * Ends the search result gathering process. Part of nsIAutoCompleteSearch
+ * implementation.
+ */
+ stopSearch: function() {
+ this._suggestionController.stop();
+ },
+
+ // nsISupports
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsIAutoCompleteSearch,
+ Ci.nsIAutoCompleteObserver])
+};
+
+/**
+ * SearchSuggestAutoComplete is a service implementation that handles suggest
+ * results specific to web searches.
+ * @constructor
+ */
+function SearchSuggestAutoComplete() {
+ // This calls _init() in the parent class (SuggestAutoComplete) via the
+ // prototype, below.
+ this._init();
+}
+SearchSuggestAutoComplete.prototype = {
+ classID: Components.ID("{aa892eb4-ffbf-477d-9f9a-06c995ae9f27}"),
+ __proto__: SuggestAutoComplete.prototype,
+ serviceURL: ""
+};
+
+var component = [SearchSuggestAutoComplete];
+this.NSGetFactory = XPCOMUtils.generateNSGetFactory(component);
diff --git a/application/basilisk/components/search/service/nsSidebar.js b/application/basilisk/components/search/service/nsSidebar.js
new file mode 100644
index 000000000..63976cba7
--- /dev/null
+++ b/application/basilisk/components/search/service/nsSidebar.js
@@ -0,0 +1,66 @@
+/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+const { interfaces: Ci, utils: Cu } = Components;
+
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+
+// File extension for Sherlock search plugin description files
+const SHERLOCK_FILE_EXT_REGEXP = /\.src$/i;
+
+function nsSidebar() {
+}
+
+nsSidebar.prototype = {
+ init: function(window) {
+ this.window = window;
+ try {
+ this.mm = window.QueryInterface(Ci.nsIInterfaceRequestor)
+ .getInterface(Ci.nsIDocShell)
+ .QueryInterface(Ci.nsIInterfaceRequestor)
+ .getInterface(Ci.nsIContentFrameMessageManager);
+ } catch (e) {
+ Cu.reportError(e);
+ }
+ },
+
+ // Deprecated, only left here to avoid breaking old browser-detection scripts.
+ addSearchEngine: function(engineURL, iconURL, suggestedTitle, suggestedCategory) {
+ if (SHERLOCK_FILE_EXT_REGEXP.test(engineURL)) {
+ Cu.reportError("Installing Sherlock search plugins is no longer supported.");
+ return;
+ }
+
+ this.AddSearchProvider(engineURL);
+ },
+
+ // This function implements window.external.AddSearchProvider().
+ // The capitalization, although nonstandard here, is to match other browsers'
+ // APIs and is therefore important.
+ AddSearchProvider: function(engineURL) {
+ if (!this.mm) {
+ Cu.reportError(`Installing a search provider from this context is not currently supported: ${Error().stack}.`);
+ return;
+ }
+
+ this.mm.sendAsyncMessage("Search:AddEngine", {
+ pageURL: this.window.document.documentURIObject.spec,
+ engineURL
+ });
+ },
+
+ // This function exists to implement window.external.IsSearchProviderInstalled(),
+ // for compatibility with other browsers. The function has been deprecated
+ // and so will not be implemented.
+ IsSearchProviderInstalled: function(engineURL) {
+ return 0;
+ },
+
+ classID: Components.ID("{22117140-9c6e-11d3-aaf1-00805f8a4905}"),
+ QueryInterface: XPCOMUtils.generateQI([Ci.nsISupports,
+ Ci.nsIDOMGlobalPropertyInitializer])
+}
+
+this.NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSidebar]);
diff --git a/application/basilisk/components/search/service/toolkitsearch.manifest b/application/basilisk/components/search/service/toolkitsearch.manifest
new file mode 100644
index 000000000..b7c55da0e
--- /dev/null
+++ b/application/basilisk/components/search/service/toolkitsearch.manifest
@@ -0,0 +1,10 @@
+component {7319788a-fe93-4db3-9f39-818cf08f4256} nsSearchService.js process=main
+contract @mozilla.org/browser/search-service;1 {7319788a-fe93-4db3-9f39-818cf08f4256} process=main
+# 21600 == 6 hours
+category update-timer nsSearchService @mozilla.org/browser/search-service;1,getService,search-engine-update-timer,browser.search.update.interval,21600
+component {aa892eb4-ffbf-477d-9f9a-06c995ae9f27} nsSearchSuggestions.js
+contract @mozilla.org/autocomplete/search;1?name=search-autocomplete {aa892eb4-ffbf-477d-9f9a-06c995ae9f27}
+#ifdef HAVE_SIDEBAR
+component {22117140-9c6e-11d3-aaf1-00805f8a4905} nsSidebar.js
+contract @mozilla.org/sidebar;1 {22117140-9c6e-11d3-aaf1-00805f8a4905}
+#endif
diff --git a/application/basilisk/installer/package-manifest.in b/application/basilisk/installer/package-manifest.in
index 22655bc33..71f775904 100644
--- a/application/basilisk/installer/package-manifest.in
+++ b/application/basilisk/installer/package-manifest.in
@@ -477,8 +477,10 @@
@RESPATH@/browser/components/SelfSupportService.manifest
@RESPATH@/browser/components/SelfSupportService.js
#endif
+#ifdef MOZ_SERVICES_SYNC
@RESPATH@/components/SyncComponents.manifest
@RESPATH@/components/Weave.js
+#endif
@RESPATH@/components/CaptivePortalDetectComponents.manifest
@RESPATH@/components/captivedetect.js
@RESPATH@/components/servicesComponents.manifest
@@ -629,7 +631,9 @@
@RESPATH@/defaults/pref/channel-prefs.js
; Services (gre) prefs
+#ifdef MOZ_SERVICES_SYNC
@RESPATH@/defaults/pref/services-sync.js
+#endif
; [Layout Engine Resources]
; Style Sheets, Graphics and other Resources used by the layout engine.
diff --git a/application/basilisk/locales/Makefile.in b/application/basilisk/locales/Makefile.in
index b8aee0f14..527922b11 100644
--- a/application/basilisk/locales/Makefile.in
+++ b/application/basilisk/locales/Makefile.in
@@ -97,7 +97,9 @@ DEFINES += -DBOOKMARKS_INCLUDE_DIR=$(dir $(call MERGE_FILE,profile/bookmarks.inc
libs-%:
$(NSINSTALL) -D $(DIST)/install
@$(MAKE) -C $(DEPTH)/toolkit/locales libs-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
+ifdef MOZ_SERVICES_SYNC
@$(MAKE) -C $(DEPTH)/services/sync/locales AB_CD=$* XPI_NAME=locale-$*
+endif
@$(MAKE) -C $(DEPTH)/extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$*
# @$(MAKE) -C ../extensions/pocket/locale AB_CD=$* XPI_NAME=locale-$*
@$(MAKE) -C $(DEPTH)/intl/locales AB_CD=$* XPI_NAME=locale-$*
diff --git a/application/basilisk/locales/en-US/chrome/browser/newTab.dtd b/application/basilisk/locales/en-US/chrome/browser/newTab.dtd
index 392aeb957..32a3ad70d 100644
--- a/application/basilisk/locales/en-US/chrome/browser/newTab.dtd
+++ b/application/basilisk/locales/en-US/chrome/browser/newTab.dtd
@@ -5,12 +5,9 @@
<!-- These strings are used in the about:newtab page -->
<!ENTITY newtab.pageTitle "New Tab">
<!ENTITY newtab.customize.classic "Show your top sites">
-<!ENTITY newtab.customize.cog.enhanced "Include suggested sites">
<!ENTITY newtab.customize.cog.title2 "NEW TAB CONTROLS">
<!ENTITY newtab.customize.cog.learn "Learn about New Tab">
<!ENTITY newtab.customize.title "Customize your New Tab page">
-<!ENTITY newtab.customize.suggested "Show suggested and your top sites">
-<!ENTITY newtab.customize.topsites "Show your top sites">
<!ENTITY newtab.customize.blank2 "Show blank page">
<!ENTITY newtab.undo.removedLabel "Thumbnail removed.">
<!ENTITY newtab.undo.undoButton "Undo.">
diff --git a/application/basilisk/locales/en-US/chrome/browser/newTab.properties b/application/basilisk/locales/en-US/chrome/browser/newTab.properties
index 7b3fe248e..922aa5847 100644
--- a/application/basilisk/locales/en-US/chrome/browser/newTab.properties
+++ b/application/basilisk/locales/en-US/chrome/browser/newTab.properties
@@ -5,42 +5,3 @@
newtab.pin=Pin this site at its current position
newtab.unpin=Unpin this site
newtab.block=Remove this site
-# LOCALIZATION NOTE(newtab.sponsored.button): This text appears for sponsored
-# and enhanced tiles on the same line as the tile's title, so prefer short
-# strings to avoid overlap. This string should be uppercase.
-newtab.sponsored.button=SPONSORED
-# LOCALIZATION NOTE(newtab.suggested.button): This text appears for sponsored
-# and suggested tiles on the same line as the tile's title, so prefer short
-# strings to avoid overlap. This string should be uppercase.
-newtab.suggested.tag=SUGGESTED
-# LOCALIZATION NOTE(newtab.suggested.button): %1$S will be replaced inline by
-# one of the user's top 100 sites that triggered this suggested tile.
-# This text appears for suggested tiles under the tile's title, so prefer short
-# strings to avoid truncating important text.
-newtab.suggested.button=Suggested for %1$S visitors
-# LOCALIZATION NOTE(newtab.sponsored.explain): %1$S will be replaced inline by
-# the (X) block icon. %2$S will be replaced by an active link using string
-# newtab.learn.link as text.
-newtab.sponsored.explain=This tile is being shown to you on behalf of a Mozilla partner. You can remove it at any time by clicking the %1$S button. %2$S
-# LOCALIZATION NOTE(newtab.sponsored.explain2): %1$S will be replaced inline by
-# the (X) block icon. %2$S will be replaced by an active link using string
-# newtab.learn.link as text.
-newtab.sponsored.explain2=This site is suggested to you on behalf of a Mozilla partner. You can remove it at any time by clicking the %1$S button. %2$S
-# LOCALIZATION NOTE(newtab.suggested.explain): %1$S will be replaced inline by
-# the (X) block icon. %2$S will be replaced by an active link using string
-# newtab.learn.link as text.
-newtab.suggested.explain=This site is suggested to you by Mozilla. You can remove it at any time by clicking the %1$S button. %2$S
-# LOCALIZATION NOTE(newtab.enhanced.explain): %1$S will be replaced inline by
-# the gear icon used to customize the new tab window. %2$S will be replaced by
-# an active link using string newtab.learn.link as text.
-newtab.enhanced.explain=A Mozilla partner has visually enhanced this tile, replacing the screenshot. You can turn off enhanced tiles by clicking the %1$S button for your preferences. %2$S
-newtab.intro1.paragraph1=Now when you open New Tab, you’ll also see sites we think might be interesting to you. Some may be suggested by Mozilla or sponsored by one of our partners.
-# LOCALIZATION NOTE(newtab.intro1.paragraph2): %1$S will be replaced inline by
-# an active link using string newtab.privacy.link as text. %2$S will be replaced
-# inline by the gear icon used to customize the new tab window.
-newtab.intro1.paragraph2=In order to provide this service, some data is automatically sent back to us in accordance with our %1$S. You can turn this off by unchecking the option under the gear icon (%2$S).
-newtab.learn.link=Learn more…
-newtab.privacy.link=Privacy Notice
-newtab.learn.link2=More about New Tab
-newtab.intro.header.update=New Tab got an update!
-newtab.intro.gotit=Got it!
diff --git a/application/basilisk/locales/l10n.ini b/application/basilisk/locales/l10n.ini
index f1d22c259..78bafe8ca 100644
--- a/application/basilisk/locales/l10n.ini
+++ b/application/basilisk/locales/l10n.ini
@@ -16,7 +16,9 @@ dirs = browser
# non-central apps might want to use %(topsrcdir)s here, or other vars
# RFE: that needs to be supported by compare-locales, too, though
toolkit = toolkit/locales/l10n.ini
+#ifdef MOZ_SERVICES_SYNC
services_sync = services/sync/locales/l10n.ini
+#endif
[extras]
dirs = extensions/spellcheck
diff --git a/application/basilisk/modules/AboutNewTab.jsm b/application/basilisk/modules/AboutNewTab.jsm
index 4337c5a2d..e170e9c8a 100644
--- a/application/basilisk/modules/AboutNewTab.jsm
+++ b/application/basilisk/modules/AboutNewTab.jsm
@@ -33,7 +33,6 @@ var AboutNewTab = {
customize: function(message) {
NewTabUtils.allPages.enabled = message.data.enabled;
- NewTabUtils.allPages.enhanced = message.data.enhanced;
},
uninit: function() {
diff --git a/application/basilisk/modules/DirectoryLinksProvider.jsm b/application/basilisk/modules/DirectoryLinksProvider.jsm
deleted file mode 100644
index 85d8b296b..000000000
--- a/application/basilisk/modules/DirectoryLinksProvider.jsm
+++ /dev/null
@@ -1,1251 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-this.EXPORTED_SYMBOLS = ["DirectoryLinksProvider"];
-
-const Ci = Components.interfaces;
-const Cc = Components.classes;
-const Cu = Components.utils;
-const ParserUtils = Cc["@mozilla.org/parserutils;1"].getService(Ci.nsIParserUtils);
-
-Cu.importGlobalProperties(["XMLHttpRequest"]);
-
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-Cu.import("resource://gre/modules/Services.jsm");
-Cu.import("resource://gre/modules/Task.jsm");
-Cu.import("resource://gre/modules/Timer.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
- "resource://gre/modules/NetUtil.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "NewTabUtils",
- "resource://gre/modules/NewTabUtils.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "OS",
- "resource://gre/modules/osfile.jsm")
-XPCOMUtils.defineLazyModuleGetter(this, "Promise",
- "resource://gre/modules/Promise.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
- "resource://gre/modules/UpdateUtils.jsm");
-XPCOMUtils.defineLazyServiceGetter(this, "eTLD",
- "@mozilla.org/network/effective-tld-service;1",
- "nsIEffectiveTLDService");
-XPCOMUtils.defineLazyGetter(this, "gTextDecoder", () => {
- return new TextDecoder();
-});
-XPCOMUtils.defineLazyGetter(this, "gCryptoHash", function () {
- return Cc["@mozilla.org/security/hash;1"].createInstance(Ci.nsICryptoHash);
-});
-XPCOMUtils.defineLazyGetter(this, "gUnicodeConverter", function () {
- let converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"]
- .createInstance(Ci.nsIScriptableUnicodeConverter);
- converter.charset = 'utf8';
- return converter;
-});
-
-
-// The filename where directory links are stored locally
-const DIRECTORY_LINKS_FILE = "directoryLinks.json";
-const DIRECTORY_LINKS_TYPE = "application/json";
-
-// The preference that tells whether to match the OS locale
-const PREF_MATCH_OS_LOCALE = "intl.locale.matchOS";
-
-// The preference that tells what locale the user selected
-const PREF_SELECTED_LOCALE = "general.useragent.locale";
-
-// The preference that tells where to obtain directory links
-const PREF_DIRECTORY_SOURCE = "browser.newtabpage.directory.source";
-
-// The preference that tells where to send click/view pings
-const PREF_DIRECTORY_PING = "browser.newtabpage.directory.ping";
-
-// The preference that tells if newtab is enhanced
-const PREF_NEWTAB_ENHANCED = "browser.newtabpage.enhanced";
-
-// Only allow link urls that are http(s)
-const ALLOWED_LINK_SCHEMES = new Set(["http", "https"]);
-
-// Only allow link image urls that are https or data
-const ALLOWED_IMAGE_SCHEMES = new Set(["https", "data"]);
-
-// Only allow urls to Mozilla's CDN or empty (for data URIs)
-const ALLOWED_URL_BASE = new Set(["mozilla.net", ""]);
-
-// The frecency of a directory link
-const DIRECTORY_FRECENCY = 1000;
-
-// The frecency of a suggested link
-const SUGGESTED_FRECENCY = Infinity;
-
-// The filename where frequency cap data stored locally
-const FREQUENCY_CAP_FILE = "frequencyCap.json";
-
-// Default settings for daily and total frequency caps
-const DEFAULT_DAILY_FREQUENCY_CAP = 3;
-const DEFAULT_TOTAL_FREQUENCY_CAP = 10;
-
-// Default timeDelta to prune unused frequency cap objects
-// currently set to 10 days in milliseconds
-const DEFAULT_PRUNE_TIME_DELTA = 10*24*60*60*1000;
-
-// The min number of visible (not blocked) history tiles to have before showing suggested tiles
-const MIN_VISIBLE_HISTORY_TILES = 8;
-
-// The max number of visible (not blocked) history tiles to test for inadjacency
-const MAX_VISIBLE_HISTORY_TILES = 15;
-
-// Allowed ping actions remotely stored as columns: case-insensitive [a-z0-9_]
-const PING_ACTIONS = ["block", "click", "pin", "sponsored", "sponsored_link", "unpin", "view"];
-
-// Location of inadjacent sites json
-const INADJACENCY_SOURCE = "chrome://browser/content/newtab/newTab.inadjacent.json";
-
-// Fake URL to keep track of last block of a suggested tile in the frequency cap object
-const FAKE_SUGGESTED_BLOCK_URL = "ignore://suggested_block";
-
-// Time before suggested tile is allowed to play again after block - default to 1 day
-const AFTER_SUGGESTED_BLOCK_DECAY_TIME = 24*60*60*1000;
-
-/**
- * Singleton that serves as the provider of directory links.
- * Directory links are a hard-coded set of links shown if a user's link
- * inventory is empty.
- */
-var DirectoryLinksProvider = {
-
- __linksURL: null,
-
- _observers: new Set(),
-
- // links download deferred, resolved upon download completion
- _downloadDeferred: null,
-
- // download default interval is 24 hours in milliseconds
- _downloadIntervalMS: 86400000,
-
- /**
- * A mapping from eTLD+1 to an enhanced link objects
- */
- _enhancedLinks: new Map(),
-
- /**
- * A mapping from site to a list of suggested link objects
- */
- _suggestedLinks: new Map(),
-
- /**
- * Frequency Cap object - maintains daily and total tile counts, and frequency cap settings
- */
- _frequencyCaps: {},
-
- /**
- * A set of top sites that we can provide suggested links for
- */
- _topSitesWithSuggestedLinks: new Set(),
-
- /**
- * lookup Set of inadjacent domains
- */
- _inadjacentSites: new Set(),
-
- /**
- * This flag is set if there is a suggested tile configured to avoid
- * inadjacent sites in new tab
- */
- _avoidInadjacentSites: false,
-
- /**
- * This flag is set if _avoidInadjacentSites is true and there is
- * an inadjacent site in the new tab
- */
- _newTabHasInadjacentSite: false,
-
- get _observedPrefs() {
- return Object.freeze({
- enhanced: PREF_NEWTAB_ENHANCED,
- linksURL: PREF_DIRECTORY_SOURCE,
- matchOSLocale: PREF_MATCH_OS_LOCALE,
- prefSelectedLocale: PREF_SELECTED_LOCALE,
- });
- },
-
- get _linksURL() {
- if (!this.__linksURL) {
- try {
- this.__linksURL = Services.prefs.getCharPref(this._observedPrefs["linksURL"]);
- this.__linksURLModified = Services.prefs.prefHasUserValue(this._observedPrefs["linksURL"]);
- }
- catch (e) {
- Cu.reportError("Error fetching directory links url from prefs: " + e);
- }
- }
- return this.__linksURL;
- },
-
- /**
- * Gets the currently selected locale for display.
- * @return the selected locale or "en-US" if none is selected
- */
- get locale() {
- let matchOS = Services.prefs.getBoolPref(PREF_MATCH_OS_LOCALE, false);
-
- if (matchOS) {
- return Services.locale.getLocaleComponentForUserAgent();
- }
-
- try {
- let locale = Services.prefs.getComplexValue(PREF_SELECTED_LOCALE,
- Ci.nsIPrefLocalizedString);
- if (locale) {
- return locale.data;
- }
- }
- catch (e) {}
-
- try {
- return Services.prefs.getCharPref(PREF_SELECTED_LOCALE);
- }
- catch (e) {}
-
- return "en-US";
- },
-
- /**
- * Set appropriate default ping behavior controlled by enhanced pref
- */
- _setDefaultEnhanced: function DirectoryLinksProvider_setDefaultEnhanced() {
- if (!Services.prefs.prefHasUserValue(PREF_NEWTAB_ENHANCED)) {
- let enhanced = Services.prefs.getBoolPref(PREF_NEWTAB_ENHANCED);
- try {
- // Default to not enhanced if DNT is set to tell websites to not track
- if (Services.prefs.getBoolPref("privacy.donottrackheader.enabled")) {
- enhanced = false;
- }
- }
- catch (ex) {}
- Services.prefs.setBoolPref(PREF_NEWTAB_ENHANCED, enhanced);
- }
- },
-
- observe: function DirectoryLinksProvider_observe(aSubject, aTopic, aData) {
- if (aTopic == "nsPref:changed") {
- switch (aData) {
- // Re-set the default in case the user clears the pref
- case this._observedPrefs.enhanced:
- this._setDefaultEnhanced();
- break;
-
- case this._observedPrefs.linksURL:
- delete this.__linksURL;
- // fallthrough
-
- // Force directory download on changes to fetch related prefs
- case this._observedPrefs.matchOSLocale:
- case this._observedPrefs.prefSelectedLocale:
- this._fetchAndCacheLinksIfNecessary(true);
- break;
- }
- }
- },
-
- _addPrefsObserver: function DirectoryLinksProvider_addObserver() {
- for (let pref in this._observedPrefs) {
- let prefName = this._observedPrefs[pref];
- Services.prefs.addObserver(prefName, this, false);
- }
- },
-
- _removePrefsObserver: function DirectoryLinksProvider_removeObserver() {
- for (let pref in this._observedPrefs) {
- let prefName = this._observedPrefs[pref];
- Services.prefs.removeObserver(prefName, this);
- }
- },
-
- _cacheSuggestedLinks: function(link) {
- // Don't cache links that don't have the expected 'frecent_sites'
- if (!link.frecent_sites) {
- return;
- }
-
- for (let suggestedSite of link.frecent_sites) {
- let suggestedMap = this._suggestedLinks.get(suggestedSite) || new Map();
- suggestedMap.set(link.url, link);
- this._setupStartEndTime(link);
- this._suggestedLinks.set(suggestedSite, suggestedMap);
- }
- },
-
- _fetchAndCacheLinks: function DirectoryLinksProvider_fetchAndCacheLinks(uri) {
- // Replace with the same display locale used for selecting links data
- uri = uri.replace("%LOCALE%", this.locale);
- uri = uri.replace("%CHANNEL%", UpdateUtils.UpdateChannel);
-
- return this._downloadJsonData(uri).then(json => {
- return OS.File.writeAtomic(this._directoryFilePath, json, {tmpPath: this._directoryFilePath + ".tmp"});
- });
- },
-
- /**
- * Downloads a links with json content
- * @param download uri
- * @return promise resolved to json string, "{}" returned if status != 200
- */
- _downloadJsonData: function DirectoryLinksProvider__downloadJsonData(uri) {
- let deferred = Promise.defer();
- let xmlHttp = this._newXHR();
-
- xmlHttp.onload = function(aResponse) {
- let json = this.responseText;
- if (this.status && this.status != 200) {
- json = "{}";
- }
- deferred.resolve(json);
- };
-
- xmlHttp.onerror = function(e) {
- deferred.reject("Fetching " + uri + " results in error code: " + e.target.status);
- };
-
- try {
- xmlHttp.open("GET", uri);
- // Override the type so XHR doesn't complain about not well-formed XML
- xmlHttp.overrideMimeType(DIRECTORY_LINKS_TYPE);
- // Set the appropriate request type for servers that require correct types
- xmlHttp.setRequestHeader("Content-Type", DIRECTORY_LINKS_TYPE);
- xmlHttp.send();
- } catch (e) {
- deferred.reject("Error fetching " + uri);
- Cu.reportError(e);
- }
- return deferred.promise;
- },
-
- /**
- * Downloads directory links if needed
- * @return promise resolved immediately if no download needed, or upon completion
- */
- _fetchAndCacheLinksIfNecessary: function DirectoryLinksProvider_fetchAndCacheLinksIfNecessary(forceDownload=false) {
- if (this._downloadDeferred) {
- // fetching links already - just return the promise
- return this._downloadDeferred.promise;
- }
-
- if (forceDownload || this._needsDownload) {
- this._downloadDeferred = Promise.defer();
- this._fetchAndCacheLinks(this._linksURL).then(() => {
- // the new file was successfully downloaded and cached, so update a timestamp
- this._lastDownloadMS = Date.now();
- this._downloadDeferred.resolve();
- this._downloadDeferred = null;
- this._callObservers("onManyLinksChanged")
- },
- error => {
- this._downloadDeferred.resolve();
- this._downloadDeferred = null;
- this._callObservers("onDownloadFail");
- });
- return this._downloadDeferred.promise;
- }
-
- // download is not needed
- return Promise.resolve();
- },
-
- /**
- * @return true if download is needed, false otherwise
- */
- get _needsDownload () {
- // fail if last download occured less then 24 hours ago
- if ((Date.now() - this._lastDownloadMS) > this._downloadIntervalMS) {
- return true;
- }
- return false;
- },
-
- /**
- * Create a new XMLHttpRequest that is anonymous, i.e., doesn't send cookies
- */
- _newXHR() {
- return new XMLHttpRequest({mozAnon: true});
- },
-
- /**
- * Reads directory links file and parses its content
- * @return a promise resolved to an object with keys 'directory' and 'suggested',
- * each containing a valid list of links,
- * or {'directory': [], 'suggested': []} if read or parse fails.
- */
- _readDirectoryLinksFile: function DirectoryLinksProvider_readDirectoryLinksFile() {
- let emptyOutput = {directory: [], suggested: [], enhanced: []};
- return OS.File.read(this._directoryFilePath).then(binaryData => {
- let output;
- try {
- let json = gTextDecoder.decode(binaryData);
- let linksObj = JSON.parse(json);
- output = {directory: linksObj.directory || [],
- suggested: linksObj.suggested || [],
- enhanced: linksObj.enhanced || []};
- }
- catch (e) {
- Cu.reportError(e);
- }
- return output || emptyOutput;
- },
- error => {
- Cu.reportError(error);
- return emptyOutput;
- });
- },
-
- /**
- * Translates link.time_limits to UTC miliseconds and sets
- * link.startTime and link.endTime properties in link object
- */
- _setupStartEndTime: function DirectoryLinksProvider_setupStartEndTime(link) {
- // set start/end limits. Use ISO_8601 format: '2014-01-10T20:20:20.600Z'
- // (details here http://en.wikipedia.org/wiki/ISO_8601)
- // Note that if timezone is missing, FX will interpret as local time
- // meaning that the server can sepecify any time, but if the capmaign
- // needs to start at same time across multiple timezones, the server
- // omits timezone indicator
- if (!link.time_limits) {
- return;
- }
-
- let parsedTime;
- if (link.time_limits.start) {
- parsedTime = Date.parse(link.time_limits.start);
- if (parsedTime && !isNaN(parsedTime)) {
- link.startTime = parsedTime;
- }
- }
- if (link.time_limits.end) {
- parsedTime = Date.parse(link.time_limits.end);
- if (parsedTime && !isNaN(parsedTime)) {
- link.endTime = parsedTime;
- }
- }
- },
-
- /*
- * Handles campaign timeout
- */
- _onCampaignTimeout: function DirectoryLinksProvider_onCampaignTimeout() {
- // _campaignTimeoutID is invalid here, so just set it to null
- this._campaignTimeoutID = null;
- this._updateSuggestedTile();
- },
-
- /*
- * Clears capmpaign timeout
- */
- _clearCampaignTimeout: function DirectoryLinksProvider_clearCampaignTimeout() {
- if (this._campaignTimeoutID) {
- clearTimeout(this._campaignTimeoutID);
- this._campaignTimeoutID = null;
- }
- },
-
- /**
- * Setup capmpaign timeout to recompute suggested tiles upon
- * reaching soonest start or end time for the campaign
- * @param timeout in milliseconds
- */
- _setupCampaignTimeCheck: function DirectoryLinksProvider_setupCampaignTimeCheck(timeout) {
- // sanity check
- if (!timeout || timeout <= 0) {
- return;
- }
- this._clearCampaignTimeout();
- // setup next timeout
- this._campaignTimeoutID = setTimeout(this._onCampaignTimeout.bind(this), timeout);
- },
-
- /**
- * Test link for campaign time limits: checks if link falls within start/end time
- * and returns an object containing a use flag and the timeoutDate milliseconds
- * when the link has to be re-checked for campaign start-ready or end-reach
- * @param link
- * @return object {use: true or false, timeoutDate: milliseconds or null}
- */
- _testLinkForCampaignTimeLimits: function DirectoryLinksProvider_testLinkForCampaignTimeLimits(link) {
- let currentTime = Date.now();
- // test for start time first
- if (link.startTime && link.startTime > currentTime) {
- // not yet ready for start
- return {use: false, timeoutDate: link.startTime};
- }
- // otherwise check for end time
- if (link.endTime) {
- // passed end time
- if (link.endTime <= currentTime) {
- return {use: false};
- }
- // otherwise link is still ok, but we need to set timeoutDate
- return {use: true, timeoutDate: link.endTime};
- }
- // if we are here, the link is ok and no timeoutDate needed
- return {use: true};
- },
-
- /**
- * Handles block on suggested tile: updates fake block url with current timestamp
- */
- handleSuggestedTileBlock: function DirectoryLinksProvider_handleSuggestedTileBlock() {
- this._updateFrequencyCapSettings({url: FAKE_SUGGESTED_BLOCK_URL});
- this._writeFrequencyCapFile();
- this._updateSuggestedTile();
- },
-
- /**
- * Checks if suggested tile is being blocked for the rest of "decay time"
- * @return True if blocked, false otherwise
- */
- _isSuggestedTileBlocked: function DirectoryLinksProvider__isSuggestedTileBlocked() {
- let capObject = this._frequencyCaps[FAKE_SUGGESTED_BLOCK_URL];
- if (!capObject || !capObject.lastUpdated) {
- // user never blocked suggested tile or lastUpdated is missing
- return false;
- }
- // otherwise, make sure that enough time passed after suggested tile was blocked
- return (capObject.lastUpdated + AFTER_SUGGESTED_BLOCK_DECAY_TIME) > Date.now();
- },
-
- /**
- * Report some action on a newtab page (view, click)
- * @param sites Array of sites shown on newtab page
- * @param action String of the behavior to report
- * @param triggeringSiteIndex optional Int index of the site triggering action
- * @return download promise
- */
- reportSitesAction: function DirectoryLinksProvider_reportSitesAction(sites, action, triggeringSiteIndex) {
- // Check if the suggested tile was shown
- if (action == "view") {
- sites.slice(0, triggeringSiteIndex + 1).filter(s => s).forEach(site => {
- let {targetedSite, url} = site.link;
- if (targetedSite) {
- this._addFrequencyCapView(url);
- }
- });
- }
- // any click action on a suggested tile should stop that tile suggestion
- // click/block - user either removed a tile or went to a landing page
- // pin - tile turned into history tile, should no longer be suggested
- // unpin - the tile was pinned before, should not matter
- else {
- // suggested tile has targetedSite, or frecent_sites if it was pinned
- let {frecent_sites, targetedSite, url} = sites[triggeringSiteIndex].link;
- if (frecent_sites || targetedSite) {
- this._setFrequencyCapClick(url);
- }
- }
-
- let newtabEnhanced = false;
- let pingEndPoint = "";
- try {
- newtabEnhanced = Services.prefs.getBoolPref(PREF_NEWTAB_ENHANCED);
- pingEndPoint = Services.prefs.getCharPref(PREF_DIRECTORY_PING);
- }
- catch (ex) {}
-
- // Bug 1240245 - We no longer send pings, but frequency capping and fetching
- // tests depend on the following actions, so references to PING remain.
- let invalidAction = PING_ACTIONS.indexOf(action) == -1;
- if (!newtabEnhanced || pingEndPoint == "" || invalidAction) {
- return Promise.resolve();
- }
-
- return Task.spawn(function* () {
- // since we updated views/clicks we need write _frequencyCaps to disk
- yield this._writeFrequencyCapFile();
- // Use this as an opportunity to potentially fetch new links
- yield this._fetchAndCacheLinksIfNecessary();
- }.bind(this));
- },
-
- /**
- * Get the enhanced link object for a link (whether history or directory)
- */
- getEnhancedLink: function DirectoryLinksProvider_getEnhancedLink(link) {
- // Use the provided link if it's already enhanced
- return link.enhancedImageURI && link ? link :
- this._enhancedLinks.get(NewTabUtils.extractSite(link.url));
- },
-
- /**
- * Check if a url's scheme is in a Set of allowed schemes and if the base
- * domain is allowed.
- * @param url to check
- * @param allowed Set of allowed schemes
- * @param checkBase boolean to check the base domain
- */
- isURLAllowed(url, allowed, checkBase) {
- // Assume no url is an allowed url
- if (!url) {
- return true;
- }
-
- let scheme = "", base = "";
- try {
- // A malformed url will not be allowed
- let uri = Services.io.newURI(url, null, null);
- scheme = uri.scheme;
-
- // URIs without base domains will be allowed
- base = Services.eTLD.getBaseDomain(uri);
- }
- catch (ex) {}
- // Require a scheme match and the base only if desired
- return allowed.has(scheme) && (!checkBase || ALLOWED_URL_BASE.has(base));
- },
-
- _escapeChars(text) {
- let charMap = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#039;'
- };
-
- return text.replace(/[&<>"']/g, (character) => charMap[character]);
- },
-
- /**
- * Gets the current set of directory links.
- * @param aCallback The function that the array of links is passed to.
- */
- getLinks: function DirectoryLinksProvider_getLinks(aCallback) {
- this._readDirectoryLinksFile().then(rawLinks => {
- // Reset the cache of suggested tiles and enhanced images for this new set of links
- this._enhancedLinks.clear();
- this._suggestedLinks.clear();
- this._clearCampaignTimeout();
- this._avoidInadjacentSites = false;
-
- // Only check base domain for images when using the default pref
- let checkBase = !this.__linksURLModified;
- let validityFilter = function(link) {
- // Make sure the link url is allowed and images too if they exist
- return this.isURLAllowed(link.url, ALLOWED_LINK_SCHEMES, false) &&
- (!link.imageURI ||
- this.isURLAllowed(link.imageURI, ALLOWED_IMAGE_SCHEMES, checkBase)) &&
- (!link.enhancedImageURI ||
- this.isURLAllowed(link.enhancedImageURI, ALLOWED_IMAGE_SCHEMES, checkBase));
- }.bind(this);
-
- rawLinks.suggested.filter(validityFilter).forEach((link, position) => {
- // Suggested sites must have an adgroup name.
- if (!link.adgroup_name) {
- return;
- }
-
- let sanitizeFlags = ParserUtils.SanitizerCidEmbedsOnly |
- ParserUtils.SanitizerDropForms |
- ParserUtils.SanitizerDropNonCSSPresentation;
-
- link.explanation = this._escapeChars(link.explanation ? ParserUtils.convertToPlainText(link.explanation, sanitizeFlags, 0) : "");
- link.targetedName = this._escapeChars(ParserUtils.convertToPlainText(link.adgroup_name, sanitizeFlags, 0));
- link.lastVisitDate = rawLinks.suggested.length - position;
- // check if link wants to avoid inadjacent sites
- if (link.check_inadjacency) {
- this._avoidInadjacentSites = true;
- }
-
- // We cache suggested tiles here but do not push any of them in the links list yet.
- // The decision for which suggested tile to include will be made separately.
- this._cacheSuggestedLinks(link);
- this._updateFrequencyCapSettings(link);
- });
-
- rawLinks.enhanced.filter(validityFilter).forEach((link, position) => {
- link.lastVisitDate = rawLinks.enhanced.length - position;
-
- // Stash the enhanced image for the site
- if (link.enhancedImageURI) {
- this._enhancedLinks.set(NewTabUtils.extractSite(link.url), link);
- }
- });
-
- let links = rawLinks.directory.filter(validityFilter).map((link, position) => {
- link.lastVisitDate = rawLinks.directory.length - position;
- link.frecency = DIRECTORY_FRECENCY;
- return link;
- });
-
- // Allow for one link suggestion on top of the default directory links
- this.maxNumLinks = links.length + 1;
-
- // prune frequency caps of outdated urls
- this._pruneFrequencyCapUrls();
- // write frequency caps object to disk asynchronously
- this._writeFrequencyCapFile();
-
- return links;
- }).catch(ex => {
- Cu.reportError(ex);
- return [];
- }).then(links => {
- aCallback(links);
- this._populatePlacesLinks();
- });
- },
-
- init: function DirectoryLinksProvider_init() {
- this._setDefaultEnhanced();
- this._addPrefsObserver();
- // setup directory file path and last download timestamp
- this._directoryFilePath = OS.Path.join(OS.Constants.Path.localProfileDir, DIRECTORY_LINKS_FILE);
- this._lastDownloadMS = 0;
-
- // setup frequency cap file path
- this._frequencyCapFilePath = OS.Path.join(OS.Constants.Path.localProfileDir, FREQUENCY_CAP_FILE);
- // setup inadjacent sites URL
- this._inadjacentSitesUrl = INADJACENCY_SOURCE;
-
- NewTabUtils.placesProvider.addObserver(this);
- NewTabUtils.links.addObserver(this);
-
- return Task.spawn(function*() {
- // get the last modified time of the links file if it exists
- let doesFileExists = yield OS.File.exists(this._directoryFilePath);
- if (doesFileExists) {
- let fileInfo = yield OS.File.stat(this._directoryFilePath);
- this._lastDownloadMS = Date.parse(fileInfo.lastModificationDate);
- }
- // read frequency cap file
- yield this._readFrequencyCapFile();
- // fetch directory on startup without force
- yield this._fetchAndCacheLinksIfNecessary();
- // fecth inadjacent sites on startup
- yield this._loadInadjacentSites();
- }.bind(this));
- },
-
- _handleManyLinksChanged: function() {
- this._topSitesWithSuggestedLinks.clear();
- this._suggestedLinks.forEach((suggestedLinks, site) => {
- if (NewTabUtils.isTopPlacesSite(site)) {
- this._topSitesWithSuggestedLinks.add(site);
- }
- });
- this._updateSuggestedTile();
- },
-
- /**
- * Updates _topSitesWithSuggestedLinks based on the link that was changed.
- *
- * @return true if _topSitesWithSuggestedLinks was modified, false otherwise.
- */
- _handleLinkChanged: function(aLink) {
- let changedLinkSite = NewTabUtils.extractSite(aLink.url);
- let linkStored = this._topSitesWithSuggestedLinks.has(changedLinkSite);
-
- if (!NewTabUtils.isTopPlacesSite(changedLinkSite) && linkStored) {
- this._topSitesWithSuggestedLinks.delete(changedLinkSite);
- return true;
- }
-
- if (this._suggestedLinks.has(changedLinkSite) &&
- NewTabUtils.isTopPlacesSite(changedLinkSite) && !linkStored) {
- this._topSitesWithSuggestedLinks.add(changedLinkSite);
- return true;
- }
-
- // always run _updateSuggestedTile if aLink is inadjacent
- // and there are tiles configured to avoid it
- if (this._avoidInadjacentSites && this._isInadjacentLink(aLink)) {
- return true;
- }
-
- return false;
- },
-
- _populatePlacesLinks: function () {
- NewTabUtils.links.populateProviderCache(NewTabUtils.placesProvider, () => {
- this._handleManyLinksChanged();
- });
- },
-
- onDeleteURI: function(aProvider, aLink) {
- let {url} = aLink;
- // remove clicked flag for that url and
- // call observer upon disk write completion
- this._removeTileClick(url).then(() => {
- this._callObservers("onDeleteURI", url);
- });
- },
-
- onClearHistory: function() {
- // remove all clicked flags and call observers upon file write
- this._removeAllTileClicks().then(() => {
- this._callObservers("onClearHistory");
- });
- },
-
- onLinkChanged: function (aProvider, aLink) {
- // Make sure NewTabUtils.links handles the notification first.
- setTimeout(() => {
- if (this._handleLinkChanged(aLink) || this._shouldUpdateSuggestedTile()) {
- this._updateSuggestedTile();
- }
- }, 0);
- },
-
- onManyLinksChanged: function () {
- // Make sure NewTabUtils.links handles the notification first.
- setTimeout(() => {
- this._handleManyLinksChanged();
- }, 0);
- },
-
- _getCurrentTopSiteCount: function() {
- let visibleTopSiteCount = 0;
- let newTabLinks = NewTabUtils.links.getLinks();
- for (let link of newTabLinks.slice(0, MIN_VISIBLE_HISTORY_TILES)) {
- // compute visibleTopSiteCount for suggested tiles
- if (link && (link.type == "history" || link.type == "enhanced")) {
- visibleTopSiteCount++;
- }
- }
- // since newTabLinks are available, set _newTabHasInadjacentSite here
- // note that _shouldUpdateSuggestedTile is called by _updateSuggestedTile
- this._newTabHasInadjacentSite = this._avoidInadjacentSites && this._checkForInadjacentSites(newTabLinks);
-
- return visibleTopSiteCount;
- },
-
- _shouldUpdateSuggestedTile: function() {
- let sortedLinks = NewTabUtils.getProviderLinks(this);
-
- let mostFrecentLink = {};
- if (sortedLinks && sortedLinks.length) {
- mostFrecentLink = sortedLinks[0]
- }
-
- let currTopSiteCount = this._getCurrentTopSiteCount();
- if ((!mostFrecentLink.targetedSite && currTopSiteCount >= MIN_VISIBLE_HISTORY_TILES) ||
- (mostFrecentLink.targetedSite && currTopSiteCount < MIN_VISIBLE_HISTORY_TILES)) {
- // If mostFrecentLink has a targetedSite then mostFrecentLink is a suggested link.
- // If we have enough history links (8+) to show a suggested tile and we are not
- // already showing one, then we should update (to *attempt* to add a suggested tile).
- // OR if we don't have enough history to show a suggested tile (<8) and we are
- // currently showing one, we should update (to remove it).
- return true;
- }
-
- return false;
- },
-
- /**
- * Chooses and returns a suggested tile based on a user's top sites
- * that we have an available suggested tile for.
- *
- * @return the chosen suggested tile, or undefined if there isn't one
- */
- _updateSuggestedTile: function() {
- let sortedLinks = NewTabUtils.getProviderLinks(this);
-
- if (!sortedLinks) {
- // If NewTabUtils.links.resetCache() is called before getting here,
- // sortedLinks may be undefined.
- return undefined;
- }
-
- // Delete the current suggested tile, if one exists.
- let initialLength = sortedLinks.length;
- if (initialLength) {
- let mostFrecentLink = sortedLinks[0];
- if (mostFrecentLink.targetedSite) {
- this._callObservers("onLinkChanged", {
- url: mostFrecentLink.url,
- frecency: SUGGESTED_FRECENCY,
- lastVisitDate: mostFrecentLink.lastVisitDate,
- type: mostFrecentLink.type,
- }, 0, true);
- }
- }
-
- if (this._topSitesWithSuggestedLinks.size == 0 ||
- !this._shouldUpdateSuggestedTile() ||
- this._isSuggestedTileBlocked()) {
- // There are no potential suggested links we can show or not
- // enough history for a suggested tile, or suggested tile was
- // recently blocked and wait time interval has not decayed yet
- return undefined;
- }
-
- // Create a flat list of all possible links we can show as suggested.
- // Note that many top sites may map to the same suggested links, but we only
- // want to count each suggested link once (based on url), thus possibleLinks is a map
- // from url to suggestedLink. Thus, each link has an equal chance of being chosen at
- // random from flattenedLinks if it appears only once.
- let nextTimeout;
- let possibleLinks = new Map();
- let targetedSites = new Map();
- this._topSitesWithSuggestedLinks.forEach(topSiteWithSuggestedLink => {
- let suggestedLinksMap = this._suggestedLinks.get(topSiteWithSuggestedLink);
- suggestedLinksMap.forEach((suggestedLink, url) => {
- // Skip this link if we've shown it too many times already
- if (!this._testFrequencyCapLimits(url)) {
- return;
- }
-
- // as we iterate suggestedLinks, check for campaign start/end
- // time limits, and set nextTimeout to the closest timestamp
- let {use, timeoutDate} = this._testLinkForCampaignTimeLimits(suggestedLink);
- // update nextTimeout is necessary
- if (timeoutDate && (!nextTimeout || nextTimeout > timeoutDate)) {
- nextTimeout = timeoutDate;
- }
- // Skip link if it falls outside campaign time limits
- if (!use) {
- return;
- }
-
- // Skip link if it avoids inadjacent sites and newtab has one
- if (suggestedLink.check_inadjacency && this._newTabHasInadjacentSite) {
- return;
- }
-
- possibleLinks.set(url, suggestedLink);
-
- // Keep a map of URL to targeted sites. We later use this to show the user
- // what site they visited to trigger this suggestion.
- if (!targetedSites.get(url)) {
- targetedSites.set(url, []);
- }
- targetedSites.get(url).push(topSiteWithSuggestedLink);
- })
- });
-
- // setup timeout check for starting or ending campaigns
- if (nextTimeout) {
- this._setupCampaignTimeCheck(nextTimeout - Date.now());
- }
-
- // We might have run out of possible links to show
- let numLinks = possibleLinks.size;
- if (numLinks == 0) {
- return undefined;
- }
-
- let flattenedLinks = [...possibleLinks.values()];
-
- // Choose our suggested link at random
- let suggestedIndex = Math.floor(Math.random() * numLinks);
- let chosenSuggestedLink = flattenedLinks[suggestedIndex];
-
- // Add the suggested link to the front with some extra values
- this._callObservers("onLinkChanged", Object.assign({
- frecency: SUGGESTED_FRECENCY,
-
- // Choose the first site a user has visited as the target. In the future,
- // this should be the site with the highest frecency. However, we currently
- // store frecency by URL not by site.
- targetedSite: targetedSites.get(chosenSuggestedLink.url).length ?
- targetedSites.get(chosenSuggestedLink.url)[0] : null
- }, chosenSuggestedLink));
- return chosenSuggestedLink;
- },
-
- /**
- * Loads inadjacent sites
- * @return a promise resolved when lookup Set for sites is built
- */
- _loadInadjacentSites: function DirectoryLinksProvider_loadInadjacentSites() {
- return this._downloadJsonData(this._inadjacentSitesUrl).then(jsonString => {
- let jsonObject = {};
- try {
- jsonObject = JSON.parse(jsonString);
- }
- catch (e) {
- Cu.reportError(e);
- }
-
- this._inadjacentSites = new Set(jsonObject.domains);
- });
- },
-
- /**
- * Genegrates hash suitable for looking up inadjacent site
- * @param value to hsh
- * @return hased value, base64-ed
- */
- _generateHash: function DirectoryLinksProvider_generateHash(value) {
- let byteArr = gUnicodeConverter.convertToByteArray(value);
- gCryptoHash.init(gCryptoHash.MD5);
- gCryptoHash.update(byteArr, byteArr.length);
- return gCryptoHash.finish(true);
- },
-
- /**
- * Checks if link belongs to inadjacent domain
- * @param link to check
- * @return true for inadjacent domains, false otherwise
- */
- _isInadjacentLink: function DirectoryLinksProvider_isInadjacentLink(link) {
- let baseDomain = link.baseDomain || NewTabUtils.extractSite(link.url || "");
- if (!baseDomain) {
- return false;
- }
- // check if hashed domain is inadjacent
- return this._inadjacentSites.has(this._generateHash(baseDomain));
- },
-
- /**
- * Checks if new tab has inadjacent site
- * @param new tab links (or nothing, in which case NewTabUtils.links.getLinks() is called
- * @return true if new tab shows has inadjacent site
- */
- _checkForInadjacentSites: function DirectoryLinksProvider_checkForInadjacentSites(newTabLink) {
- let links = newTabLink || NewTabUtils.links.getLinks();
- for (let link of links.slice(0, MAX_VISIBLE_HISTORY_TILES)) {
- // check links against inadjacent list - specifically include ALL link types
- if (this._isInadjacentLink(link)) {
- return true;
- }
- }
- return false;
- },
-
- /**
- * Reads json file, parses its content, and returns resulting object
- * @param json file path
- * @param json object to return in case file read or parse fails
- * @return a promise resolved to a valid object or undefined upon error
- */
- _readJsonFile: Task.async(function* (filePath, nullObject) {
- let jsonObj;
- try {
- let binaryData = yield OS.File.read(filePath);
- let json = gTextDecoder.decode(binaryData);
- jsonObj = JSON.parse(json);
- }
- catch (e) {}
- return jsonObj || nullObject;
- }),
-
- /**
- * Loads frequency cap object from file and parses its content
- * @return a promise resolved upon load completion
- * on error or non-exstent file _frequencyCaps is set to empty object
- */
- _readFrequencyCapFile: Task.async(function* () {
- // set _frequencyCaps object to file's content or empty object
- this._frequencyCaps = yield this._readJsonFile(this._frequencyCapFilePath, {});
- }),
-
- /**
- * Saves frequency cap object to file
- * @return a promise resolved upon file i/o completion
- */
- _writeFrequencyCapFile: function DirectoryLinksProvider_writeFrequencyCapFile() {
- let json = JSON.stringify(this._frequencyCaps || {});
- return OS.File.writeAtomic(this._frequencyCapFilePath, json, {tmpPath: this._frequencyCapFilePath + ".tmp"});
- },
-
- /**
- * Clears frequency cap object and writes empty json to file
- * @return a promise resolved upon file i/o completion
- */
- _clearFrequencyCap: function DirectoryLinksProvider_clearFrequencyCap() {
- this._frequencyCaps = {};
- return this._writeFrequencyCapFile();
- },
-
- /**
- * updates frequency cap configuration for a link
- */
- _updateFrequencyCapSettings: function DirectoryLinksProvider_updateFrequencyCapSettings(link) {
- let capsObject = this._frequencyCaps[link.url];
- if (!capsObject) {
- // create an object with empty counts
- capsObject = {
- dailyViews: 0,
- totalViews: 0,
- lastShownDate: 0,
- };
- this._frequencyCaps[link.url] = capsObject;
- }
- // set last updated timestamp
- capsObject.lastUpdated = Date.now();
- // check for link configuration
- if (link.frequency_caps) {
- capsObject.dailyCap = link.frequency_caps.daily || DEFAULT_DAILY_FREQUENCY_CAP;
- capsObject.totalCap = link.frequency_caps.total || DEFAULT_TOTAL_FREQUENCY_CAP;
- }
- else {
- // fallback to defaults
- capsObject.dailyCap = DEFAULT_DAILY_FREQUENCY_CAP;
- capsObject.totalCap = DEFAULT_TOTAL_FREQUENCY_CAP;
- }
- },
-
- /**
- * Prunes frequency cap objects for outdated links
- * @param timeDetla milliseconds
- * all cap objects with lastUpdated less than (now() - timeDelta)
- * will be removed. This is done to remove frequency cap objects
- * for unused tile urls
- */
- _pruneFrequencyCapUrls: function DirectoryLinksProvider_pruneFrequencyCapUrls(timeDelta = DEFAULT_PRUNE_TIME_DELTA) {
- let timeThreshold = Date.now() - timeDelta;
- Object.keys(this._frequencyCaps).forEach(url => {
- // remove url if it is not ignorable and wasn't updated for a while
- if (!url.startsWith("ignore") && this._frequencyCaps[url].lastUpdated <= timeThreshold) {
- delete this._frequencyCaps[url];
- }
- });
- },
-
- /**
- * Checks if supplied timestamp happened today
- * @param timestamp in milliseconds
- * @return true if the timestamp was made today, false otherwise
- */
- _wasToday: function DirectoryLinksProvider_wasToday(timestamp) {
- let showOn = new Date(timestamp);
- let today = new Date();
- // call timestamps identical if both day and month are same
- return showOn.getDate() == today.getDate() &&
- showOn.getMonth() == today.getMonth() &&
- showOn.getYear() == today.getYear();
- },
-
- /**
- * adds some number of views for a url
- * @param url String url of the suggested link
- */
- _addFrequencyCapView: function DirectoryLinksProvider_addFrequencyCapView(url) {
- let capObject = this._frequencyCaps[url];
- // sanity check
- if (!capObject) {
- return;
- }
-
- // if the day is new: reset the daily counter and lastShownDate
- if (!this._wasToday(capObject.lastShownDate)) {
- capObject.dailyViews = 0;
- // update lastShownDate
- capObject.lastShownDate = Date.now();
- }
-
- // bump both daily and total counters
- capObject.totalViews++;
- capObject.dailyViews++;
-
- // if any of the caps is reached - update suggested tiles
- if (capObject.totalViews >= capObject.totalCap ||
- capObject.dailyViews >= capObject.dailyCap) {
- this._updateSuggestedTile();
- }
- },
-
- /**
- * Sets clicked flag for link url
- * @param url String url of the suggested link
- */
- _setFrequencyCapClick(url) {
- let capObject = this._frequencyCaps[url];
- // sanity check
- if (!capObject) {
- return;
- }
- capObject.clicked = true;
- // and update suggested tiles, since current tile became invalid
- this._updateSuggestedTile();
- },
-
- /**
- * Tests frequency cap limits for link url
- * @param url String url of the suggested link
- * @return true if link is viewable, false otherwise
- */
- _testFrequencyCapLimits: function DirectoryLinksProvider_testFrequencyCapLimits(url) {
- let capObject = this._frequencyCaps[url];
- // sanity check: if url is missing - do not show this tile
- if (!capObject) {
- return false;
- }
-
- // check for clicked set or total views reached
- if (capObject.clicked || capObject.totalViews >= capObject.totalCap) {
- return false;
- }
-
- // otherwise check if link is over daily views limit
- if (this._wasToday(capObject.lastShownDate) &&
- capObject.dailyViews >= capObject.dailyCap) {
- return false;
- }
-
- // we passed all cap tests: return true
- return true;
- },
-
- /**
- * Removes clicked flag from frequency cap entry for tile landing url
- * @param url String url of the suggested link
- * @return promise resolved upon disk write completion
- */
- _removeTileClick: function DirectoryLinksProvider_removeTileClick(url = "") {
- // remove trailing slash, to accomodate Places sending site urls ending with '/'
- let noTrailingSlashUrl = url.replace(/\/$/, "");
- let capObject = this._frequencyCaps[url] || this._frequencyCaps[noTrailingSlashUrl];
- // return resolved promise if capObject is not found
- if (!capObject) {
- return Promise.resolve();
- }
- // otherwise remove clicked flag
- delete capObject.clicked;
- return this._writeFrequencyCapFile();
- },
-
- /**
- * Removes all clicked flags from frequency cap object
- * @return promise resolved upon disk write completion
- */
- _removeAllTileClicks: function DirectoryLinksProvider_removeAllTileClicks() {
- Object.keys(this._frequencyCaps).forEach(url => {
- delete this._frequencyCaps[url].clicked;
- });
- return this._writeFrequencyCapFile();
- },
-
- /**
- * Return the object to its pre-init state
- */
- reset: function DirectoryLinksProvider_reset() {
- delete this.__linksURL;
- this._removePrefsObserver();
- this._removeObservers();
- },
-
- addObserver: function DirectoryLinksProvider_addObserver(aObserver) {
- this._observers.add(aObserver);
- },
-
- removeObserver: function DirectoryLinksProvider_removeObserver(aObserver) {
- this._observers.delete(aObserver);
- },
-
- _callObservers(methodName, ...args) {
- for (let obs of this._observers) {
- if (typeof(obs[methodName]) == "function") {
- try {
- obs[methodName](this, ...args);
- } catch (err) {
- Cu.reportError(err);
- }
- }
- }
- },
-
- _removeObservers: function() {
- this._observers.clear();
- }
-};
diff --git a/application/basilisk/modules/PermissionUI.jsm b/application/basilisk/modules/PermissionUI.jsm
index 5fa0f9f06..5c8b94421 100644
--- a/application/basilisk/modules/PermissionUI.jsm
+++ b/application/basilisk/modules/PermissionUI.jsm
@@ -437,26 +437,12 @@ GeolocationPermissionPrompt.prototype = {
},
get promptActions() {
- // We collect Telemetry data on Geolocation prompts and how users
- // respond to them. The probe keys are a bit verbose, so let's alias them.
- const SHARE_LOCATION =
- Ci.nsISecurityUITelemetry.WARNING_GEOLOCATION_REQUEST_SHARE_LOCATION;
- const ALWAYS_SHARE =
- Ci.nsISecurityUITelemetry.WARNING_GEOLOCATION_REQUEST_ALWAYS_SHARE;
- const NEVER_SHARE =
- Ci.nsISecurityUITelemetry.WARNING_GEOLOCATION_REQUEST_NEVER_SHARE;
-
- let secHistogram = Services.telemetry.getHistogramById("SECURITY_UI");
-
let actions = [{
label: gBrowserBundle.GetStringFromName("geolocation.shareLocation"),
accessKey:
gBrowserBundle.GetStringFromName("geolocation.shareLocation.accesskey"),
action: null,
expireType: null,
- callback: function() {
- secHistogram.add(SHARE_LOCATION);
- },
}];
if (!this.principal.URI.schemeIs("file")) {
@@ -467,9 +453,6 @@ GeolocationPermissionPrompt.prototype = {
gBrowserBundle.GetStringFromName("geolocation.alwaysShareLocation.accesskey"),
action: Ci.nsIPermissionManager.ALLOW_ACTION,
expireType: null,
- callback: function() {
- secHistogram.add(ALWAYS_SHARE);
- },
});
// Never share location action.
@@ -479,9 +462,6 @@ GeolocationPermissionPrompt.prototype = {
gBrowserBundle.GetStringFromName("geolocation.neverShareLocation.accesskey"),
action: Ci.nsIPermissionManager.DENY_ACTION,
expireType: null,
- callback: function() {
- secHistogram.add(NEVER_SHARE);
- },
});
}
@@ -489,9 +469,6 @@ GeolocationPermissionPrompt.prototype = {
},
onBeforeShow() {
- let secHistogram = Services.telemetry.getHistogramById("SECURITY_UI");
- const SHOW_REQUEST = Ci.nsISecurityUITelemetry.WARNING_GEOLOCATION_REQUEST;
- secHistogram.add(SHOW_REQUEST);
},
};
diff --git a/application/basilisk/modules/moz.build b/application/basilisk/modules/moz.build
index d043d4799..cd8f2ce62 100644
--- a/application/basilisk/modules/moz.build
+++ b/application/basilisk/modules/moz.build
@@ -16,7 +16,6 @@ EXTRA_JS_MODULES += [
'ContentObservers.jsm',
'ContentSearch.jsm',
'ContentWebRTC.jsm',
- 'DirectoryLinksProvider.jsm',
'E10SUtils.jsm',
'Feeds.jsm',
'FormSubmitObserver.jsm',
diff --git a/application/basilisk/themes/shared/newtab/newTab.inc.css b/application/basilisk/themes/shared/newtab/newTab.inc.css
index 8ecd603c9..5cbdb240e 100644
--- a/application/basilisk/themes/shared/newtab/newTab.inc.css
+++ b/application/basilisk/themes/shared/newtab/newTab.inc.css
@@ -99,19 +99,6 @@
border-radius: 2px;
}
-/* GRID */
-#topsites-heading {
- color: #7A7A7A;
- font-size: 1em;
- font-weight: normal;
- /* Position the heading such that it doesn't affect how many cells we
- can fit into the grid. */
- position: absolute;
- /* The top margin moves the heading away from the grid.
- The horizontal margin aligns the heading with the cells. */
- margin: -1em 10px 0;
-}
-
/* CELLS */
.newtab-cell {
--cell-corner-radius: 8px;
@@ -119,10 +106,6 @@
border-radius: var(--cell-corner-radius);
}
-body.compact .newtab-cell {
- --cell-corner-radius: 2px;
-}
-
.newtab-cell:empty {
outline: 2px dashed #c1c1c1;
outline-offset: -2px;
@@ -172,49 +155,16 @@ body.compact .newtab-cell {
transition: opacity 100ms ease-out;
}
-body.compact .newtab-thumbnail {
- height: 100%;
- border-radius: calc(var(--cell-corner-radius) + 1px);
- outline: 1px solid hsla(0,0%,0%,.1);
- -moz-outline-radius: var(--cell-corner-radius);
- outline-offset: -1px;
-}
-
.newtab-thumbnail.placeholder {
color: white;
font-size: 85px;
line-height: 200%;
}
-body.compact .newtab-thumbnail.placeholder {
- font-size: 45px;
-}
-
-.newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
- opacity: 0;
-}
-
-.newtab-site[type=affiliate] .newtab-thumbnail,
-.newtab-site[type=enhanced] .newtab-thumbnail,
-.newtab-site[type=organic] .newtab-thumbnail,
-.newtab-site[type=sponsored] .newtab-thumbnail {
- background-position: center center;
-}
-
-body.compact .newtab-site[type=affiliate] .newtab-thumbnail {
- background-position: center 30%;
-}
-
-.newtab-site[type=affiliate] .newtab-thumbnail,
-body:not(.compact) .newtab-site[type=enhanced] .newtab-thumbnail,
-body:not(.compact) .newtab-site[type=organic] .newtab-thumbnail,
-body:not(.compact) .newtab-site[type=sponsored] .newtab-thumbnail {
- background-size: auto;
-}
-
/* TITLES */
.newtab-title {
+ color: #5c5c5c;
background-color: #F2F2F2;
font-size: 13px;
line-height: 30px;
@@ -222,45 +172,13 @@ body:not(.compact) .newtab-site[type=sponsored] .newtab-thumbnail {
border-radius: 0 0 var(--cell-corner-radius) var(--cell-corner-radius);
}
-body.compact .newtab-title {
- background-color: hsla(0,0%,100%,.85);
- font-size: 12px;
- line-height: 21px;
- border: 1px solid hsla(0,0%,80%,.8);
- border-top-color: hsla(0,0%,0%,.1);
- background-clip: padding-box;
-}
-
-.newtab-title,
-.newtab-suggested {
- color: #5c5c5c;
-}
-
-body.compact .newtab-title,
-body.compact .newtab-suggested {
- color: black;
-}
-
-.newtab-suggested[active] {
- background-color: rgba(51, 51, 51, 0.95);
- border: 0;
- color: white;
-}
-
-body:not(.compact) .newtab-site:hover .newtab-title {
+.newtab-site:hover .newtab-title {
color: white;
background-color: #333;
border-color: #333;
border-top-color: white;
}
-body.compact .newtab-site:hover .newtab-title {
- color: white;
- background-color: hsla(0,0%,20%,.85);
- border-color: hsla(0,0%,0%,.8);
- border-top-color: white;
-}
-
.newtab-site[pinned] .newtab-title {
padding-inline-start: 24px;
}
@@ -302,20 +220,6 @@ body.compact .newtab-site:hover .newtab-title {
right: 4px;
}
-body.compact .newtab-control {
- top: -8px;
-}
-
-body.compact .newtab-control-pin:dir(ltr),
-body.compact .newtab-control-block:dir(rtl) {
- left: -8px;
-}
-
-body.compact .newtab-control-block:dir(ltr),
-body.compact .newtab-control-pin:dir(rtl) {
- right: -8px;
-}
-
.newtab-control-pin,
.newtab-site[pinned] .newtab-control-pin:hover:active {
background-image: -moz-image-rect(url(chrome://browser/skin/newtab/controls.svg), 0, 96, 32, 64);
diff --git a/application/palemoon/app/moz.build b/application/palemoon/app/moz.build
index c11f4c37e..8166760af 100644
--- a/application/palemoon/app/moz.build
+++ b/application/palemoon/app/moz.build
@@ -20,6 +20,7 @@ if CONFIG['LIBXUL_SDK']:
SOURCES += ['nsBrowserApp.cpp']
FINAL_TARGET_FILES += ['blocklist.xml']
+FINAL_TARGET_FILES.defaults += ['permissions']
FINAL_TARGET_FILES.defaults.profile += ['profile/prefs.js']
DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
diff --git a/application/palemoon/app/permissions b/application/palemoon/app/permissions
new file mode 100644
index 000000000..4d90be82a
--- /dev/null
+++ b/application/palemoon/app/permissions
@@ -0,0 +1,14 @@
+# This file has default permissions for the permission manager.
+# The file-format is strict:
+# * matchtype \t type \t permission \t host
+# * "origin" should be used for matchtype, "host" is supported for legacy reasons
+# * type is a string that identifies the type of permission (e.g. "cookie")
+# * permission is an integer between 1 and 15
+# See nsPermissionManager.cpp for more...
+
+# XPInstall
+origin install 1 http://www.palemoon.org
+origin install 1 https://www.palemoon.org
+
+origin install 1 http://addons.palemoon.org
+origin install 1 https://addons.palemoon.org
diff --git a/application/palemoon/app/profile/palemoon.js b/application/palemoon/app/profile/palemoon.js
index bd1b62cc3..d0e078eb7 100644
--- a/application/palemoon/app/profile/palemoon.js
+++ b/application/palemoon/app/profile/palemoon.js
@@ -206,9 +206,6 @@ pref("extensions.dss.switchPending", false); // Non-dynamic switch pending af
pref("extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.name", "chrome://browser/locale/browser.properties");
pref("extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.description", "chrome://browser/locale/browser.properties");
-pref("xpinstall.whitelist.add", "addons.mozilla.org,www.palemoon.org,addons.palemoon.org");
-pref("xpinstall.whitelist.add.36", "");
-pref("xpinstall.whitelist.add.180", "");
pref("xpinstall.whitelist.required", false);
// Allow installing XPI add-ons by direct URL requests (no referrer)
pref("xpinstall.whitelist.directRequest", true);
@@ -1080,9 +1077,6 @@ pref("browser.newtab.preload", false);
// Toggles the content of 'about:newtab'. Shows the grid when enabled.
pref("browser.newtabpage.enabled", true);
-// XXX: Remove this when "enhanced" tiles are dead
-pref("browser.newtabpage.enhanced", false);
-
// Disables capturing of page thumbnails
pref("browser.pagethumbnails.capturing_disabled", false);
@@ -1103,6 +1097,9 @@ pref("full-screen-api.enabled", true);
// 0-100 (currently)
pref("permissions.places-sites-limit", 50);
+// Built-in default permissions.
+pref("permissions.manager.defaultsUrl", "resource://app/defaults/permissions");
+
// Startup Crash Tracking
// number of startup crashes that can occur before starting into safe mode automatically
// (this pref has no effect if more than 6 hours have passed since the last crash)
diff --git a/application/palemoon/base/content/baseMenuOverlay.xul b/application/palemoon/base/content/baseMenuOverlay.xul
index a006ed5c6..bccdec265 100644
--- a/application/palemoon/base/content/baseMenuOverlay.xul
+++ b/application/palemoon/base/content/baseMenuOverlay.xul
@@ -57,15 +57,21 @@
label="&helpTroubleshootingInfo.label;"
oncommand="openTroubleshootingPage()"
onclick="checkForMiddleClick(this, event);"/>
+ <menuitem id="helpSafeMode"
+ accesskey="&helpSafeMode.accesskey;"
+ label="&helpSafeMode.label;"
+ oncommand="restart(true);"/>
+ <menuseparator/>
+ <menuitem id="releaseNotes"
+ accesskey="&helpReleaseNotes.accesskey;"
+ label="&helpReleaseNotes.label;"
+ oncommand="openReleaseNotes();"
+ onclick="checkForMiddleClick(this, event);"/>
<menuitem id="feedbackPage"
accesskey="&helpFeedbackPage.accesskey;"
label="&helpFeedbackPage.label;"
oncommand="openFeedbackPage()"
onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="helpSafeMode"
- accesskey="&helpSafeMode.accesskey;"
- label="&helpSafeMode.label;"
- oncommand="restart(true);"/>
<menuseparator id="updatesSeparator"/>
<menuitem id="checkForUpdates" class="menuitem-iconic"
#ifdef MOZ_UPDATER
diff --git a/application/palemoon/base/content/browser-appmenu.inc b/application/palemoon/base/content/browser-appmenu.inc
index ffb117a60..9d202c965 100644
--- a/application/palemoon/base/content/browser-appmenu.inc
+++ b/application/palemoon/base/content/browser-appmenu.inc
@@ -350,14 +350,19 @@
label="&helpTroubleshootingInfo.label;"
oncommand="openTroubleshootingPage()"
onclick="checkForMiddleClick(this,event);"/>
+ <menuitem id="appmenu_safeMode"
+ label="&appMenuSafeMode.label;"
+ oncommand="restart(true);"/>
+ <menuseparator/>
+ <menuitem id="appmenu_releaseNotes"
+ accesskey="&helpReleaseNotes.accesskey;"
+ label="&helpReleaseNotes.label;"
+ oncommand="openReleaseNotes();"
+ onclick="checkForMiddleClick(this, event);"/>
<menuitem id="appmenu_feedbackPage"
label="&helpFeedbackPage.label;"
oncommand="openFeedbackPage()"
onclick="checkForMiddleClick(this, event);"/>
- <menuseparator/>
- <menuitem id="appmenu_safeMode"
- label="&appMenuSafeMode.label;"
- oncommand="restart(true);"/>
#ifdef MOZ_UPDATER
<menuseparator/>
<menuitem id="appmenu_checkForUpdates"
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index 3f8a584bf..16b7c0019 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -4481,14 +4481,15 @@ nsBrowserAccess.prototype = {
}
let loadInBackground = gPrefService.getBoolPref("browser.tabs.loadDivertedInBackground");
- let referrer = aOpener ? makeURI(aOpener.location.href) : null;
+ let openerWindow = (aContext & Ci.nsIBrowserDOMWindow.OPEN_NO_OPENER) ? null : aOpener;
let tab = win.gBrowser.loadOneTab(aURI ? aURI.spec : "about:blank", {
triggeringPrincipal: triggeringPrincipal,
referrerURI: referrer,
referrerPolicy: referrerPolicy,
fromExternal: isExternal,
- inBackground: loadInBackground});
+ inBackground: loadInBackground,
+ opener: openerWindow });
let browser = win.gBrowser.getBrowserForTab(tab);
if (gPrefService.getBoolPref("browser.tabs.noWindowActivationOnExternal")) {
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index 81fc33b3e..b5edd54b7 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -402,11 +402,18 @@
let promptBox = {
appendPrompt : function(args, onCloseCallback) {
let newPrompt = document.createElementNS(XUL_NS, "tabmodalprompt");
- stack.appendChild(newPrompt);
+ // stack.appendChild(newPrompt);
+ stack.insertBefore(newPrompt, browser.nextSibling);
browser.setAttribute("tabmodalPromptShowing", true);
newPrompt.clientTop; // style flush to assure binding is attached
+ let prompts = this.listPrompts();
+ if (prompts.length > 1) {
+ // Let's hide ourself behind the current prompt.
+ newPrompt.hidden = true;
+ }
+
let tab = self._getTabForContentWindow(browser.contentWindow);
newPrompt.init(args, tab, onCloseCallback);
return newPrompt;
@@ -418,6 +425,7 @@
let prompts = this.listPrompts();
if (prompts.length) {
let prompt = prompts[prompts.length - 1];
+ prompt.hidden = false;
prompt.Dialog.setDefaultFocus();
} else {
browser.removeAttribute("tabmodalPromptShowing");
@@ -1329,6 +1337,7 @@
var aFromExternal;
var aRelatedToCurrent;
var aOriginPrincipal;
+ var aOpener;
if (arguments.length == 2 &&
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
@@ -1343,6 +1352,7 @@
aFromExternal = params.fromExternal;
aRelatedToCurrent = params.relatedToCurrent;
aOriginPrincipal = params.originPrincipal;
+ aOpener = params.opener;
}
var bgLoad = (aLoadInBackground != null) ? aLoadInBackground :
@@ -1358,7 +1368,8 @@
allowThirdPartyFixup: aAllowThirdPartyFixup,
fromExternal: aFromExternal,
originPrincipal: aOriginPrincipal,
- relatedToCurrent: aRelatedToCurrent});
+ relatedToCurrent: aRelatedToCurrent,
+ opener: aOpener });
if (!bgLoad)
this.selectedTab = tab;
@@ -1481,6 +1492,7 @@
var aSkipAnimation;
var aOriginPrincipal;
var aSkipBackgroundNotify;
+ var aOpener;
if (arguments.length == 2 &&
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
@@ -1496,6 +1508,7 @@
aRelatedToCurrent = params.relatedToCurrent;
aSkipAnimation = params.skipAnimation;
aOriginPrincipal = params.originPrincipal;
+ aOpener = params.opener;
aSkipBackgroundNotify = params.skipBackgroundNotify;
}
@@ -1570,6 +1583,10 @@
b.setAttribute("showresizer", "true");
}
+ if (aOpener) {
+ b.QueryInterface(Ci.nsIFrameLoaderOwner).presetOpenerWindow(aOpener);
+ }
+
if (this.hasAttribute("autocompletepopup"))
b.setAttribute("autocompletepopup", this.getAttribute("autocompletepopup"));
b.setAttribute("autoscrollpopup", this._autoScrollPopup.id);
diff --git a/application/palemoon/base/content/utilityOverlay.js b/application/palemoon/base/content/utilityOverlay.js
index cd1715b2e..1d284ba2a 100644
--- a/application/palemoon/base/content/utilityOverlay.js
+++ b/application/palemoon/base/content/utilityOverlay.js
@@ -721,6 +721,18 @@ function openAdvancedPreferences(tabID)
}
/**
+ * Opens the release notes page for this version of the application.
+ */
+function openReleaseNotes()
+{
+ var relnotesURL = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
+ .getService(Components.interfaces.nsIURLFormatter)
+ .formatURLPref("app.releaseNotesURL");
+
+ openUILinkIn(relnotesURL, "tab");
+}
+
+/**
* Opens the troubleshooting information (about:support) page for this version
* of the application.
*/
diff --git a/application/palemoon/branding/official/VisualElements_150.png b/application/palemoon/branding/official/VisualElements_150.png
index aa784449d..0100b7dde 100644
--- a/application/palemoon/branding/official/VisualElements_150.png
+++ b/application/palemoon/branding/official/VisualElements_150.png
Binary files differ
diff --git a/application/palemoon/branding/official/VisualElements_70.png b/application/palemoon/branding/official/VisualElements_70.png
index e785bfbc1..147a6f804 100644
--- a/application/palemoon/branding/official/VisualElements_70.png
+++ b/application/palemoon/branding/official/VisualElements_70.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/about-logo.png b/application/palemoon/branding/official/content/about-logo.png
index 0a475c028..93536f033 100644
--- a/application/palemoon/branding/official/content/about-logo.png
+++ b/application/palemoon/branding/official/content/about-logo.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/about-logo@2x.png b/application/palemoon/branding/official/content/about-logo@2x.png
index c9d9d43de..d87a62309 100644
--- a/application/palemoon/branding/official/content/about-logo@2x.png
+++ b/application/palemoon/branding/official/content/about-logo@2x.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/about-wordmark.png b/application/palemoon/branding/official/content/about-wordmark.png
index bf09f15a0..1b849be2e 100644
--- a/application/palemoon/branding/official/content/about-wordmark.png
+++ b/application/palemoon/branding/official/content/about-wordmark.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/about-wordmark.svg b/application/palemoon/branding/official/content/about-wordmark.svg
index 166ea2c37..708adaaec 100644
--- a/application/palemoon/branding/official/content/about-wordmark.svg
+++ b/application/palemoon/branding/official/content/about-wordmark.svg
@@ -1,77 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="314.56464"
- height="44.113129"
- id="svg2"
version="1.1"
- inkscape:version="0.92.1 r15371"
- sodipodi:docname="about-wordmark.svg">
+ id="svg2"
+ height="44.113129"
+ width="314.56464">
<defs
id="defs4">
<filter
- style="color-interpolation-filters:sRGB"
- inkscape:label="Drop Shadow"
- id="filter4610">
+ id="filter4610"
+ style="color-interpolation-filters:sRGB">
<feFlood
- flood-opacity="1"
- flood-color="rgb(252,252,247)"
+ id="feFlood4600"
result="flood"
- id="feFlood4600" />
+ flood-color="rgb(252,252,247)"
+ flood-opacity="1" />
<feComposite
- in="flood"
- in2="SourceGraphic"
- operator="in"
+ id="feComposite4602"
result="composite1"
- id="feComposite4602" />
+ operator="in"
+ in2="SourceGraphic"
+ in="flood" />
<feGaussianBlur
- in="composite1"
- stdDeviation="1"
+ id="feGaussianBlur4604"
result="blur"
- id="feGaussianBlur4604" />
+ stdDeviation="1"
+ in="composite1" />
<feOffset
- dx="2.77556e-017"
- dy="0"
+ id="feOffset4606"
result="offset"
- id="feOffset4606" />
+ dy="0"
+ dx="2.77556e-017" />
<feComposite
- in="SourceGraphic"
- in2="offset"
- operator="over"
+ id="feComposite4608"
result="composite2"
- id="feComposite4608" />
+ operator="over"
+ in2="offset"
+ in="SourceGraphic" />
</filter>
</defs>
- <sodipodi:namedview
- id="base"
- pagecolor="#000000"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="140.32026"
- inkscape:cy="-32.25665"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:window-width="1169"
- inkscape:window-height="763"
- inkscape:window-x="66"
- inkscape:window-y="66"
- inkscape:window-maximized="0"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0" />
<metadata
id="metadata7">
<rdf:RDF>
@@ -85,95 +56,78 @@
</rdf:RDF>
</metadata>
<g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-29.067649,-53.687969)">
+ transform="translate(-29.067649,-53.687969)"
+ id="layer1">
<text
- xml:space="preserve"
- style="font-style:normal;font-weight:normal;font-size:12.80000019px;line-height:0%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.06666672"
- x="34.479874"
+ id="text2985"
y="32.093662"
- id="text2985"><tspan
- sodipodi:role="line"
- id="tspan2987"
- x="34.479874"
+ x="34.479874"
+ style="font-style:normal;font-weight:normal;font-size:12.80000019px;line-height:0%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.06666672"
+ xml:space="preserve"><tspan
+ style="font-size:51.20000076px;line-height:1.25;stroke-width:1.06666672"
y="32.093662"
- style="font-size:51.20000076px;line-height:1.25;stroke-width:1.06666672"> </tspan></text>
+ x="34.479874"
+ id="tspan2987"> </tspan></text>
<flowRoot
- xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:12.80000019px;line-height:0.01%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.06666672"
id="flowRoot2989"
- style="font-style:normal;font-weight:normal;font-size:12.80000019px;line-height:0.01%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.06666672"><flowRegion
- id="flowRegion2991"
- style="stroke-width:1.06666672"><rect
- id="rect2993"
- width="698.21747"
- height="396.51855"
- x="47.409828"
+ xml:space="preserve"><flowRegion
+ style="stroke-width:1.06666672"
+ id="flowRegion2991"><rect
+ style="stroke-width:1.13777781"
y="111.82838"
- style="stroke-width:1.13777781" /></flowRegion><flowPara
- id="flowPara2995"
- style="font-size:51.20000076px;line-height:1.25;stroke-width:1.06666672"> </flowPara></flowRoot> <g
- id="g3795"
- style="filter:url(#filter4610)">
- <g
- id="text2997"
- style="font-style:normal;font-weight:normal;font-size:48px;line-height:125%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#262678;fill-opacity:1;stroke:none">
- <path
- id="path3779"
- d="M 58.609493,93.510938 V 61.767187 h -3.328124 v -4.403124 h 15.923436 c 3.34477,3.5e-5 6.066904,1.032587 8.166407,3.097655 2.09945,2.065136 3.149189,4.804196 3.149219,8.217189 -3e-5,3.413042 -1.058101,6.177882 -3.174219,8.294531 -2.11617,2.11668 -4.82997,3.175013 -8.141407,3.174999 h -7.474999 v 13.362501 z m 5.120313,-17.765626 h 6.656249 c 2.115607,1.8e-5 3.788,-0.631491 5.017188,-1.894531 1.229143,-1.263 1.843727,-2.986696 1.84375,-5.171094 -2.3e-5,-2.151014 -0.606013,-3.840856 -1.817969,-5.069531 -1.212,-1.228615 -2.875801,-1.842937 -4.991406,-1.842969 h -6.707812 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3781"
- d="m 85.529806,86.240625 c -2e-6,-1.331242 0.273174,-2.517438 0.819531,-3.558594 0.54635,-1.041134 1.305986,-1.860403 2.278906,-2.457812 0.972911,-0.597382 1.97994,-1.100767 3.021094,-1.510156 1.041137,-0.40936 2.21874,-0.708058 3.532812,-0.896094 1.314049,-0.188005 2.397643,-0.307536 3.250781,-0.358594 0.853109,-0.05103 1.7578,-0.07654 2.71406,-0.07656 h 1.12657 v -0.256251 c -2e-5,-2.252064 -0.44377,-3.847635 -1.33125,-4.786718 -0.88752,-0.939041 -2.355227,-1.408572 -4.403129,-1.408594 -0.956263,2.2e-5 -1.903658,0.145074 -2.842188,0.435156 -0.93855,0.290126 -1.407821,0.810699 -1.407812,1.561719 v 1.485938 h -4.659375 v -2.560938 c -4e-6,-0.98956 0.332807,-1.834352 0.998437,-2.534375 0.665619,-0.699976 1.527337,-1.20336 2.585156,-1.510156 1.057804,-0.306746 2.013532,-0.520027 2.867188,-0.639844 0.853634,-0.119766 1.689831,-0.179661 2.508594,-0.179688 3.926029,2.7e-5 6.682529,0.89612 8.269529,2.688282 1.58696,1.792209 2.38045,4.27528 2.38047,7.449218 v 11.007813 c -2e-5,0.751046 0.3755,1.126567 1.12656,1.126562 h 2.09844 v 4.25 h -4.65781 c -2.15106,0 -3.22658,-0.990103 -3.22656,-2.970312 l 0.10312,-1.535937 h -0.10312 c -0.0677,0.136462 -0.15289,0.324223 -0.25547,0.563281 -0.10263,0.239065 -0.3844,0.648701 -0.84532,1.228905 -0.46095,0.580212 -0.98152,1.09219 -1.561714,1.535939 -0.580224,0.44375 -1.365119,0.853385 -2.354688,1.228905 -0.989596,0.375521 -2.064596,0.563281 -3.225,0.563281 -2.389591,0 -4.454955,-0.699738 -6.196094,-2.099218 -1.741149,-1.399476 -2.61172,-3.32786 -2.611718,-5.785156 z m 6.042187,-3.020312 c -0.682299,0.716676 -1.023445,1.638029 -1.023437,2.764062 -8e-6,1.126048 0.426554,2.098703 1.279687,2.917968 0.853116,0.819275 2.047906,1.22891 3.584375,1.228907 1.979153,3e-6 3.625766,-0.861714 4.939842,-2.585156 1.31405,-1.723431 1.97108,-3.609105 1.9711,-5.657032 V 81.01875 h -1.27969 c -1.262519,1.3e-5 -2.363298,0.04246 -3.302346,0.127344 -0.939075,0.08491 -2.031522,0.272668 -3.277344,0.563281 -1.245843,0.290637 -2.209904,0.794282 -2.892187,1.510938 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3783"
- d="M 115.78606,90.234375 V 62.739062 c -1e-5,-0.749968 -0.37553,-1.124968 -1.12657,-1.124999 h -2.1 v -4.25 h 4.91562 c 1.16042,3.5e-5 1.99661,0.256024 2.5086,0.767968 0.51197,0.512014 0.76796,1.348211 0.76797,2.508594 v 27.49375 c -10e-6,0.751046 0.37551,1.126567 1.12656,1.126563 h 2.1 v 4.25 h -4.91563 c -1.16041,0 -1.99662,-0.25599 -2.50858,-0.767969 -0.51199,-0.511978 -0.76798,-1.348175 -0.76797,-2.508594 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3785"
- d="m 127.07981,80.557812 c 0,-4.062483 1.22864,-7.339562 3.68593,-9.83125 2.45729,-2.49164 5.56353,-3.737473 9.31875,-3.7375 3.51561,2.7e-5 6.25467,1.143515 8.2172,3.43047 1.96247,2.286999 2.94372,5.188298 2.94374,8.703906 l -0.15312,2.048437 h -18.89375 c 0.13749,2.66251 1.05936,4.77032 2.76562,6.323437 1.70624,1.55313 3.75416,2.329692 6.14375,2.329687 1.33124,5e-6 2.62837,-0.255985 3.89141,-0.767968 1.263,-0.511974 2.18461,-1.007026 2.76484,-1.485156 l 0.92188,-0.76875 2.14999,3.532812 c -0.27294,0.273962 -0.68257,0.624222 -1.2289,1.050782 -0.54638,0.426564 -1.68987,0.989584 -3.43047,1.689062 -1.74065,0.699479 -3.51565,1.049218 -5.325,1.049218 -4.06147,0 -7.37214,-1.28854 -9.93203,-3.865624 -2.5599,-2.577077 -3.83984,-5.810928 -3.83984,-9.701563 z m 5.325,-3.021875 h 13.72031 c -0.0677,-2.081232 -0.68179,-3.702323 -1.84219,-4.863281 -1.16043,-1.160915 -2.5771,-1.741383 -4.25,-1.741406 -1.94585,2.3e-5 -3.60991,0.571897 -4.99218,1.715625 -1.38231,1.143769 -2.26095,2.773456 -2.63594,4.889062 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3787"
- d="m 168.35949,93.510938 v -4.403126 h 1.74063 c 0.68333,5e-6 1.05885,-0.375515 1.12656,-1.126562 l 2.45781,-30.617187 h 5.27344 l 8.5,19.148437 1.79219,4.55625 h 0.10155 c 0.61456,-1.740611 1.21196,-3.259359 1.79219,-4.55625 l 8.5,-19.148437 h 5.27343 l 2.45781,30.617187 c 0.0676,0.751047 0.44267,1.126567 1.12501,1.126562 h 1.69062 v 4.403126 h -4.55781 c -1.12608,0 -1.93649,-0.25599 -2.43125,-0.767969 -0.49482,-0.511978 -0.77659,-1.348175 -0.84531,-2.508594 L 200.87198,71.135937 200.77043,65.8125 h -0.10314 c -0.68233,2.252109 -1.31358,4.026586 -1.89375,5.323437 l -7.32188,15.871875 h -4.30156 l -7.32188,-15.871875 c -0.27292,-0.54581 -0.57137,-1.27107 -0.89531,-2.175781 -0.32397,-0.904662 -0.57136,-1.663775 -0.74219,-2.277343 l -0.30781,-0.921875 h -0.10154 c 0.0333,2.150025 -0.001,3.94169 -0.10315,5.374999 l -1.43281,19.098438 c -0.0688,1.160419 -0.35053,1.996616 -0.84531,2.508594 -0.4948,0.511979 -1.3224,0.767969 -2.48282,0.767969 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3789"
- d="m 217.12355,90.234375 c -2.69583,-2.594786 -4.04374,-5.837751 -4.04374,-9.728906 0,-3.891129 1.34817,-7.116647 4.04453,-9.676562 2.69634,-2.559871 5.99035,-3.839818 9.88203,-3.839845 3.92498,2.7e-5 7.23566,1.279974 9.93203,3.839845 2.69632,2.559915 4.0445,5.785433 4.04453,9.676562 -3e-5,3.891155 -1.3568,7.13386 -4.07031,9.728125 -2.71357,2.594272 -6.01591,3.891405 -9.90703,3.891405 -3.89116,0 -7.18516,-1.296873 -9.88204,-3.890624 z m 3.60938,-16.332812 c -1.72292,1.740643 -2.58439,3.942202 -2.58438,6.604687 -1e-5,2.662511 0.86171,4.881258 2.58516,6.65625 1.72343,1.775005 3.81431,2.662504 6.27266,2.662499 2.49165,5e-6 4.5992,-0.878901 6.32265,-2.636717 1.72342,-1.757805 2.58513,-3.985147 2.58516,-6.682032 -3e-5,-2.662485 -0.86174,-4.864044 -2.58516,-6.604687 -1.72345,-1.740604 -3.831,-2.610916 -6.32265,-2.610938 -2.45835,2.2e-5 -4.5495,0.870334 -6.27344,2.610938 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3791"
- d="m 248.72355,90.234375 c -2.69583,-2.594786 -4.04374,-5.837751 -4.04374,-9.728906 0,-3.891129 1.34817,-7.116647 4.04453,-9.676562 2.69634,-2.559871 5.99035,-3.839818 9.88203,-3.839845 3.92498,2.7e-5 7.23566,1.279974 9.93203,3.839845 2.69632,2.559915 4.0445,5.785433 4.04453,9.676562 -3e-5,3.891155 -1.3568,7.13386 -4.07031,9.728125 -2.71357,2.594272 -6.01591,3.891405 -9.90703,3.891405 -3.89116,0 -7.18516,-1.296873 -9.88204,-3.890624 z m 3.60938,-16.332812 c -1.72292,1.740643 -2.58439,3.942202 -2.58438,6.604687 -1e-5,2.662511 0.86171,4.881258 2.58516,6.65625 1.72343,1.775005 3.81431,2.662504 6.27266,2.662499 2.49165,5e-6 4.5992,-0.878901 6.32265,-2.636717 1.72342,-1.757805 2.58513,-3.985147 2.58516,-6.682032 -3e-5,-2.662485 -0.86174,-4.864044 -2.58516,-6.604687 -1.72345,-1.740604 -3.831,-2.610916 -6.32265,-2.610938 -2.45835,2.2e-5 -4.5495,0.870334 -6.27344,2.610938 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3793"
- d="M 278.78762,93.510938 V 72.979687 c 0,-0.75102 -0.37552,-1.12654 -1.12656,-1.126562 h -2.09845 v -4.25 h 4.76094 c 2.18438,2.6e-5 3.27656,0.955754 3.27657,2.867188 v 0.973437 l -0.10155,1.484375 h 0.10155 c 0.68333,-1.467687 1.84425,-2.824456 3.48281,-4.070313 1.63853,-1.245807 3.72029,-1.868723 6.24532,-1.86875 3.03851,2.7e-5 5.28305,0.819297 6.73358,2.457813 1.4505,1.638564 2.17576,4.130228 2.17579,7.475 v 11.2125 c -3e-5,0.751046 0.37549,1.126567 1.12656,1.126563 h 2.09843 v 4.25 h -4.91406 c -1.16043,0 -1.99664,-0.25599 -2.50859,-0.767969 -0.512,-0.511978 -0.76799,-1.348175 -0.76797,-2.508594 V 78.048437 c -2e-5,-2.082274 -0.33283,-3.686439 -0.99843,-4.8125 -0.66566,-1.12602 -1.95419,-1.68904 -3.86563,-1.689062 -1.98023,2.2e-5 -3.71277,0.588823 -5.19766,1.766406 -1.4849,1.177624 -2.48308,2.704965 -2.99453,4.582031 -0.3073,0.887516 -0.46095,2.047931 -0.46093,3.48125 v 12.134376 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- </g>
- <g
- id="text3769"
- style="font-style:normal;font-weight:normal;font-size:10px;line-height:125%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#262678;fill-opacity:1;stroke:none">
- <path
- id="path3774"
- d="m 304.55762,64.957287 v -6.613281 h -1.51465 c -0.15647,7e-6 -0.2347,0.07824 -0.2347,0.234701 v 0.479818 h -0.94922 v -0.991863 c 0,-0.241746 0.0462,-0.408847 0.13851,-0.501302 0.0924,-0.09244 0.2595,-0.138663 0.50146,-0.138671 h 5.18392 c 0.24175,8e-6 0.40885,0.04623 0.50131,0.138671 0.0925,0.09246 0.13866,0.259556 0.13866,0.501302 v 0.991863 h -0.94921 v -0.479818 c 0,-0.156461 -0.0783,-0.234694 -0.2347,-0.234701 h -1.51465 v 6.613281 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- <path
- id="path3776"
- d="M 308.70378,64.957287 V 64.03997 h 0.36263 c 0.14236,10e-7 0.22059,-0.07823 0.2347,-0.234701 l 0.51204,-6.37858 h 1.09864 l 1.77082,3.989258 0.37338,0.949218 h 0.0211 c 0.12803,-0.362627 0.25249,-0.679033 0.37336,-0.949218 l 1.77084,-3.989258 h 1.09864 l 0.51204,6.37858 c 0.0141,0.156469 0.0923,0.234702 0.23438,0.234701 h 0.35221 v 0.917317 h -0.94955 c -0.2346,0 -0.40343,-0.05333 -0.50651,-0.159993 -0.10304,-0.106656 -0.16178,-0.280869 -0.17611,-0.522623 l -0.30924,-3.978842 -0.0211,-1.109049 h -0.0214 c -0.14215,0.469189 -0.27366,0.838872 -0.39452,1.109049 l -1.5254,3.306641 h -0.89616 l -1.52539,-3.306641 c -0.0568,-0.113711 -0.11903,-0.264806 -0.18653,-0.453287 -0.0675,-0.188472 -0.11903,-0.346621 -0.15461,-0.474447 l -0.0641,-0.192058 h -0.0211 c 0.007,0.447922 -2.2e-4,0.821186 -0.0214,1.119792 l -0.2985,3.978842 c -0.0143,0.241754 -0.0731,0.415962 -0.17611,0.522623 -0.10304,0.106667 -0.2755,0.159993 -0.51725,0.159993 z"
- inkscape:connector-curvature="0"
- style="stroke-width:1.06666672" />
- </g>
+ x="47.409828"
+ height="396.51855"
+ width="698.21747"
+ id="rect2993" /></flowRegion><flowPara
+ style="font-size:51.20000076px;line-height:1.25;stroke-width:1.06666672"
+ id="flowPara2995"> </flowPara></flowRoot> <g
+ id="text2997"
+ style="font-style:normal;font-weight:normal;font-size:48px;line-height:125%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#0b3575;fill-opacity:1;stroke:none;filter:url(#filter4610)">
+ <path
+ id="path3779"
+ d="M 58.609493,93.510938 V 61.767187 h -3.328124 v -4.403124 h 15.923436 c 3.34477,3.5e-5 6.066904,1.032587 8.166407,3.097655 2.09945,2.065136 3.149189,4.804196 3.149219,8.217189 -3e-5,3.413042 -1.058101,6.177882 -3.174219,8.294531 -2.11617,2.11668 -4.82997,3.175013 -8.141407,3.174999 h -7.474999 v 13.362501 z m 5.120313,-17.765626 h 6.656249 c 2.115607,1.8e-5 3.788,-0.631491 5.017188,-1.894531 1.229143,-1.263 1.843727,-2.986696 1.84375,-5.171094 -2.3e-5,-2.151014 -0.606013,-3.840856 -1.817969,-5.069531 -1.212,-1.228615 -2.875801,-1.842937 -4.991406,-1.842969 h -6.707812 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3781"
+ d="m 85.529806,86.240625 c -2e-6,-1.331242 0.273174,-2.517438 0.819531,-3.558594 0.54635,-1.041134 1.305986,-1.860403 2.278906,-2.457812 0.972911,-0.597382 1.97994,-1.100767 3.021094,-1.510156 1.041137,-0.40936 2.21874,-0.708058 3.532812,-0.896094 1.314049,-0.188005 2.397643,-0.307536 3.250781,-0.358594 0.853109,-0.05103 1.7578,-0.07654 2.71406,-0.07656 h 1.12657 v -0.256251 c -2e-5,-2.252064 -0.44377,-3.847635 -1.33125,-4.786718 -0.88752,-0.939041 -2.355227,-1.408572 -4.403129,-1.408594 -0.956263,2.2e-5 -1.903658,0.145074 -2.842188,0.435156 -0.93855,0.290126 -1.407821,0.810699 -1.407812,1.561719 v 1.485938 h -4.659375 v -2.560938 c -4e-6,-0.98956 0.332807,-1.834352 0.998437,-2.534375 0.665619,-0.699976 1.527337,-1.20336 2.585156,-1.510156 1.057804,-0.306746 2.013532,-0.520027 2.867188,-0.639844 0.853634,-0.119766 1.689831,-0.179661 2.508594,-0.179688 3.926029,2.7e-5 6.682529,0.89612 8.269529,2.688282 1.58696,1.792209 2.38045,4.27528 2.38047,7.449218 v 11.007813 c -2e-5,0.751046 0.3755,1.126567 1.12656,1.126562 h 2.09844 v 4.25 h -4.65781 c -2.15106,0 -3.22658,-0.990103 -3.22656,-2.970312 l 0.10312,-1.535937 h -0.10312 c -0.0677,0.136462 -0.15289,0.324223 -0.25547,0.563281 -0.10263,0.239065 -0.3844,0.648701 -0.84532,1.228905 -0.46095,0.580212 -0.98152,1.09219 -1.561714,1.535939 -0.580224,0.44375 -1.365119,0.853385 -2.354688,1.228905 -0.989596,0.375521 -2.064596,0.563281 -3.225,0.563281 -2.389591,0 -4.454955,-0.699738 -6.196094,-2.099218 -1.741149,-1.399476 -2.61172,-3.32786 -2.611718,-5.785156 z m 6.042187,-3.020312 c -0.682299,0.716676 -1.023445,1.638029 -1.023437,2.764062 -8e-6,1.126048 0.426554,2.098703 1.279687,2.917968 0.853116,0.819275 2.047906,1.22891 3.584375,1.228907 1.979153,3e-6 3.625766,-0.861714 4.939842,-2.585156 1.31405,-1.723431 1.97108,-3.609105 1.9711,-5.657032 V 81.01875 h -1.27969 c -1.262519,1.3e-5 -2.363298,0.04246 -3.302346,0.127344 -0.939075,0.08491 -2.031522,0.272668 -3.277344,0.563281 -1.245843,0.290637 -2.209904,0.794282 -2.892187,1.510938 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3783"
+ d="M 115.78606,90.234375 V 62.739062 c -1e-5,-0.749968 -0.37553,-1.124968 -1.12657,-1.124999 h -2.1 v -4.25 h 4.91562 c 1.16042,3.5e-5 1.99661,0.256024 2.5086,0.767968 0.51197,0.512014 0.76796,1.348211 0.76797,2.508594 v 27.49375 c -10e-6,0.751046 0.37551,1.126567 1.12656,1.126563 h 2.1 v 4.25 h -4.91563 c -1.16041,0 -1.99662,-0.25599 -2.50858,-0.767969 -0.51199,-0.511978 -0.76798,-1.348175 -0.76797,-2.508594 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3785"
+ d="m 127.07981,80.557812 c 0,-4.062483 1.22864,-7.339562 3.68593,-9.83125 2.45729,-2.49164 5.56353,-3.737473 9.31875,-3.7375 3.51561,2.7e-5 6.25467,1.143515 8.2172,3.43047 1.96247,2.286999 2.94372,5.188298 2.94374,8.703906 l -0.15312,2.048437 h -18.89375 c 0.13749,2.66251 1.05936,4.77032 2.76562,6.323437 1.70624,1.55313 3.75416,2.329692 6.14375,2.329687 1.33124,5e-6 2.62837,-0.255985 3.89141,-0.767968 1.263,-0.511974 2.18461,-1.007026 2.76484,-1.485156 l 0.92188,-0.76875 2.14999,3.532812 c -0.27294,0.273962 -0.68257,0.624222 -1.2289,1.050782 -0.54638,0.426564 -1.68987,0.989584 -3.43047,1.689062 -1.74065,0.699479 -3.51565,1.049218 -5.325,1.049218 -4.06147,0 -7.37214,-1.28854 -9.93203,-3.865624 -2.5599,-2.577077 -3.83984,-5.810928 -3.83984,-9.701563 z m 5.325,-3.021875 h 13.72031 c -0.0677,-2.081232 -0.68179,-3.702323 -1.84219,-4.863281 -1.16043,-1.160915 -2.5771,-1.741383 -4.25,-1.741406 -1.94585,2.3e-5 -3.60991,0.571897 -4.99218,1.715625 -1.38231,1.143769 -2.26095,2.773456 -2.63594,4.889062 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3787"
+ d="m 168.35949,93.510938 v -4.403126 h 1.74063 c 0.68333,5e-6 1.05885,-0.375515 1.12656,-1.126562 l 2.45781,-30.617187 h 5.27344 l 8.5,19.148437 1.79219,4.55625 h 0.10155 c 0.61456,-1.740611 1.21196,-3.259359 1.79219,-4.55625 l 8.5,-19.148437 h 5.27343 l 2.45781,30.617187 c 0.0676,0.751047 0.44267,1.126567 1.12501,1.126562 h 1.69062 v 4.403126 h -4.55781 c -1.12608,0 -1.93649,-0.25599 -2.43125,-0.767969 -0.49482,-0.511978 -0.77659,-1.348175 -0.84531,-2.508594 L 200.87198,71.135937 200.77043,65.8125 h -0.10314 c -0.68233,2.252109 -1.31358,4.026586 -1.89375,5.323437 l -7.32188,15.871875 h -4.30156 l -7.32188,-15.871875 c -0.27292,-0.54581 -0.57137,-1.27107 -0.89531,-2.175781 -0.32397,-0.904662 -0.57136,-1.663775 -0.74219,-2.277343 l -0.30781,-0.921875 h -0.10154 c 0.0333,2.150025 -0.001,3.94169 -0.10315,5.374999 l -1.43281,19.098438 c -0.0688,1.160419 -0.35053,1.996616 -0.84531,2.508594 -0.4948,0.511979 -1.3224,0.767969 -2.48282,0.767969 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3789"
+ d="m 217.12355,90.234375 c -2.69583,-2.594786 -4.04374,-5.837751 -4.04374,-9.728906 0,-3.891129 1.34817,-7.116647 4.04453,-9.676562 2.69634,-2.559871 5.99035,-3.839818 9.88203,-3.839845 3.92498,2.7e-5 7.23566,1.279974 9.93203,3.839845 2.69632,2.559915 4.0445,5.785433 4.04453,9.676562 -3e-5,3.891155 -1.3568,7.13386 -4.07031,9.728125 -2.71357,2.594272 -6.01591,3.891405 -9.90703,3.891405 -3.89116,0 -7.18516,-1.296873 -9.88204,-3.890624 z m 3.60938,-16.332812 c -1.72292,1.740643 -2.58439,3.942202 -2.58438,6.604687 -1e-5,2.662511 0.86171,4.881258 2.58516,6.65625 1.72343,1.775005 3.81431,2.662504 6.27266,2.662499 2.49165,5e-6 4.5992,-0.878901 6.32265,-2.636717 1.72342,-1.757805 2.58513,-3.985147 2.58516,-6.682032 -3e-5,-2.662485 -0.86174,-4.864044 -2.58516,-6.604687 -1.72345,-1.740604 -3.831,-2.610916 -6.32265,-2.610938 -2.45835,2.2e-5 -4.5495,0.870334 -6.27344,2.610938 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3791"
+ d="m 248.72355,90.234375 c -2.69583,-2.594786 -4.04374,-5.837751 -4.04374,-9.728906 0,-3.891129 1.34817,-7.116647 4.04453,-9.676562 2.69634,-2.559871 5.99035,-3.839818 9.88203,-3.839845 3.92498,2.7e-5 7.23566,1.279974 9.93203,3.839845 2.69632,2.559915 4.0445,5.785433 4.04453,9.676562 -3e-5,3.891155 -1.3568,7.13386 -4.07031,9.728125 -2.71357,2.594272 -6.01591,3.891405 -9.90703,3.891405 -3.89116,0 -7.18516,-1.296873 -9.88204,-3.890624 z m 3.60938,-16.332812 c -1.72292,1.740643 -2.58439,3.942202 -2.58438,6.604687 -1e-5,2.662511 0.86171,4.881258 2.58516,6.65625 1.72343,1.775005 3.81431,2.662504 6.27266,2.662499 2.49165,5e-6 4.5992,-0.878901 6.32265,-2.636717 1.72342,-1.757805 2.58513,-3.985147 2.58516,-6.682032 -3e-5,-2.662485 -0.86174,-4.864044 -2.58516,-6.604687 -1.72345,-1.740604 -3.831,-2.610916 -6.32265,-2.610938 -2.45835,2.2e-5 -4.5495,0.870334 -6.27344,2.610938 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3793"
+ d="M 278.78762,93.510938 V 72.979687 c 0,-0.75102 -0.37552,-1.12654 -1.12656,-1.126562 h -2.09845 v -4.25 h 4.76094 c 2.18438,2.6e-5 3.27656,0.955754 3.27657,2.867188 v 0.973437 l -0.10155,1.484375 h 0.10155 c 0.68333,-1.467687 1.84425,-2.824456 3.48281,-4.070313 1.63853,-1.245807 3.72029,-1.868723 6.24532,-1.86875 3.03851,2.7e-5 5.28305,0.819297 6.73358,2.457813 1.4505,1.638564 2.17576,4.130228 2.17579,7.475 v 11.2125 c -3e-5,0.751046 0.37549,1.126567 1.12656,1.126563 h 2.09843 v 4.25 h -4.91406 c -1.16043,0 -1.99664,-0.25599 -2.50859,-0.767969 -0.512,-0.511978 -0.76799,-1.348175 -0.76797,-2.508594 V 78.048437 c -2e-5,-2.082274 -0.33283,-3.686439 -0.99843,-4.8125 -0.66566,-1.12602 -1.95419,-1.68904 -3.86563,-1.689062 -1.98023,2.2e-5 -3.71277,0.588823 -5.19766,1.766406 -1.4849,1.177624 -2.48308,2.704965 -2.99453,4.582031 -0.3073,0.887516 -0.46095,2.047931 -0.46093,3.48125 v 12.134376 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ </g>
+ <g
+ id="text3769"
+ style="font-style:normal;font-weight:normal;font-size:10px;line-height:125%;font-family:'Museo 500';-inkscape-font-specification:'Museo 500';letter-spacing:0px;word-spacing:0px;fill:#0b3575;fill-opacity:1;stroke:none;filter:url(#filter4610)">
+ <path
+ id="path3774"
+ d="m 304.55762,64.957287 v -6.613281 h -1.51465 c -0.15647,7e-6 -0.2347,0.07824 -0.2347,0.234701 v 0.479818 h -0.94922 v -0.991863 c 0,-0.241746 0.0462,-0.408847 0.13851,-0.501302 0.0924,-0.09244 0.2595,-0.138663 0.50146,-0.138671 h 5.18392 c 0.24175,8e-6 0.40885,0.04623 0.50131,0.138671 0.0925,0.09246 0.13866,0.259556 0.13866,0.501302 v 0.991863 h -0.94921 v -0.479818 c 0,-0.156461 -0.0783,-0.234694 -0.2347,-0.234701 h -1.51465 v 6.613281 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
+ <path
+ id="path3776"
+ d="M 308.70378,64.957287 V 64.03997 h 0.36263 c 0.14236,10e-7 0.22059,-0.07823 0.2347,-0.234701 l 0.51204,-6.37858 h 1.09864 l 1.77082,3.989258 0.37338,0.949218 h 0.0211 c 0.12803,-0.362627 0.25249,-0.679033 0.37336,-0.949218 l 1.77084,-3.989258 h 1.09864 l 0.51204,6.37858 c 0.0141,0.156469 0.0923,0.234702 0.23438,0.234701 h 0.35221 v 0.917317 h -0.94955 c -0.2346,0 -0.40343,-0.05333 -0.50651,-0.159993 -0.10304,-0.106656 -0.16178,-0.280869 -0.17611,-0.522623 l -0.30924,-3.978842 -0.0211,-1.109049 h -0.0214 c -0.14215,0.469189 -0.27366,0.838872 -0.39452,1.109049 l -1.5254,3.306641 h -0.89616 l -1.52539,-3.306641 c -0.0568,-0.113711 -0.11903,-0.264806 -0.18653,-0.453287 -0.0675,-0.188472 -0.11903,-0.346621 -0.15461,-0.474447 l -0.0641,-0.192058 h -0.0211 c 0.007,0.447922 -2.2e-4,0.821186 -0.0214,1.119792 l -0.2985,3.978842 c -0.0143,0.241754 -0.0731,0.415962 -0.17611,0.522623 -0.10304,0.106667 -0.2755,0.159993 -0.51725,0.159993 z"
+ style="fill:#0b3575;fill-opacity:1;stroke-width:1.06666672" />
</g>
</g>
</svg>
diff --git a/application/palemoon/branding/official/content/about.png b/application/palemoon/branding/official/content/about.png
index e34dd11ed..0a4fbb393 100644
--- a/application/palemoon/branding/official/content/about.png
+++ b/application/palemoon/branding/official/content/about.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/icon48.png b/application/palemoon/branding/official/content/icon48.png
index abc17585f..c3a98f128 100644
--- a/application/palemoon/branding/official/content/icon48.png
+++ b/application/palemoon/branding/official/content/icon48.png
Binary files differ
diff --git a/application/palemoon/branding/official/content/icon64.png b/application/palemoon/branding/official/content/icon64.png
index bccb5e8ec..93a7ce23c 100644
--- a/application/palemoon/branding/official/content/icon64.png
+++ b/application/palemoon/branding/official/content/icon64.png
Binary files differ
diff --git a/application/palemoon/branding/official/default16.png b/application/palemoon/branding/official/default16.png
index d58dbc5cc..a2e8b1a01 100644
--- a/application/palemoon/branding/official/default16.png
+++ b/application/palemoon/branding/official/default16.png
Binary files differ
diff --git a/application/palemoon/branding/official/default22.png b/application/palemoon/branding/official/default22.png
index 3b7a33e4a..6508e7b84 100644
--- a/application/palemoon/branding/official/default22.png
+++ b/application/palemoon/branding/official/default22.png
Binary files differ
diff --git a/application/palemoon/branding/official/default24.png b/application/palemoon/branding/official/default24.png
index e70cc06f3..1d4e66a27 100644
--- a/application/palemoon/branding/official/default24.png
+++ b/application/palemoon/branding/official/default24.png
Binary files differ
diff --git a/application/palemoon/branding/official/default256.png b/application/palemoon/branding/official/default256.png
index 9a5e7ccab..53adcfa73 100644
--- a/application/palemoon/branding/official/default256.png
+++ b/application/palemoon/branding/official/default256.png
Binary files differ
diff --git a/application/palemoon/branding/official/default32.png b/application/palemoon/branding/official/default32.png
index 5be7a3378..ce9630745 100644
--- a/application/palemoon/branding/official/default32.png
+++ b/application/palemoon/branding/official/default32.png
Binary files differ
diff --git a/application/palemoon/branding/official/default48.png b/application/palemoon/branding/official/default48.png
index 9cd9712f7..c3a98f128 100644
--- a/application/palemoon/branding/official/default48.png
+++ b/application/palemoon/branding/official/default48.png
Binary files differ
diff --git a/application/palemoon/branding/official/disk.icns b/application/palemoon/branding/official/disk.icns
index 8dc67b202..f3a549583 100644
--- a/application/palemoon/branding/official/disk.icns
+++ b/application/palemoon/branding/official/disk.icns
Binary files differ
diff --git a/application/palemoon/branding/official/disk.ico b/application/palemoon/branding/official/disk.ico
deleted file mode 100644
index cc5412a3a..000000000
--- a/application/palemoon/branding/official/disk.ico
+++ /dev/null
Binary files differ
diff --git a/application/palemoon/branding/official/document.icns b/application/palemoon/branding/official/document.icns
index 74c2b4c1e..c9f33dbfa 100644
--- a/application/palemoon/branding/official/document.icns
+++ b/application/palemoon/branding/official/document.icns
Binary files differ
diff --git a/application/palemoon/branding/official/document.ico b/application/palemoon/branding/official/document.ico
index 762655001..2f843dbd1 100644
--- a/application/palemoon/branding/official/document.ico
+++ b/application/palemoon/branding/official/document.ico
Binary files differ
diff --git a/application/palemoon/branding/official/firefox.icns b/application/palemoon/branding/official/firefox.icns
index e1a2f9a46..64f17ff62 100644
--- a/application/palemoon/branding/official/firefox.icns
+++ b/application/palemoon/branding/official/firefox.icns
Binary files differ
diff --git a/application/palemoon/branding/official/firefox.ico b/application/palemoon/branding/official/firefox.ico
index 33bb04e99..0d142c5f1 100644
--- a/application/palemoon/branding/official/firefox.ico
+++ b/application/palemoon/branding/official/firefox.ico
Binary files differ
diff --git a/application/palemoon/branding/official/mozicon128.png b/application/palemoon/branding/official/mozicon128.png
index b19a61fdc..35eafcb08 100644
--- a/application/palemoon/branding/official/mozicon128.png
+++ b/application/palemoon/branding/official/mozicon128.png
Binary files differ
diff --git a/application/palemoon/branding/official/palemoon.desktop b/application/palemoon/branding/official/palemoon.desktop
index 0e6c104b4..3f678e1bf 100644
--- a/application/palemoon/branding/official/palemoon.desktop
+++ b/application/palemoon/branding/official/palemoon.desktop
@@ -64,7 +64,7 @@ Comment[ko]=웹을 돌아 다닙니다
Comment[ku]=Li torê bigere
Comment[lt]=Naršykite internete
Comment[nb]=Surf på nettet
-Comment[nl]=Verken het internet
+Comment[nl]=Surf op het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
diff --git a/application/palemoon/branding/official/wizHeader.bmp b/application/palemoon/branding/official/wizHeader.bmp
index 368e01b90..c023036b6 100644
--- a/application/palemoon/branding/official/wizHeader.bmp
+++ b/application/palemoon/branding/official/wizHeader.bmp
Binary files differ
diff --git a/application/palemoon/branding/official/wizHeaderRTL.bmp b/application/palemoon/branding/official/wizHeaderRTL.bmp
index 0671342c1..11edaa883 100644
--- a/application/palemoon/branding/official/wizHeaderRTL.bmp
+++ b/application/palemoon/branding/official/wizHeaderRTL.bmp
Binary files differ
diff --git a/application/palemoon/branding/official/wizWatermark.bmp b/application/palemoon/branding/official/wizWatermark.bmp
index 778749aa2..ad7703d8f 100644
--- a/application/palemoon/branding/official/wizWatermark.bmp
+++ b/application/palemoon/branding/official/wizWatermark.bmp
Binary files differ
diff --git a/application/palemoon/components/fuel/fuelApplication.js b/application/palemoon/components/fuel/fuelApplication.js
index 017813143..bc3a091ea 100644
--- a/application/palemoon/components/fuel/fuelApplication.js
+++ b/application/palemoon/components/fuel/fuelApplication.js
@@ -6,6 +6,8 @@ const Ci = Components.interfaces;
const Cc = Components.classes;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
+ "resource://gre/modules/Deprecated.jsm");
const APPLICATION_CID = Components.ID("fe74cf80-aa2d-11db-abbd-0800200c9a66");
const APPLICATION_CONTRACTID = "@mozilla.org/fuel/application;1";
@@ -734,6 +736,8 @@ var ApplicationFactory = {
//=================================================
// Application constructor
function Application() {
+ Deprecated.warning("FUEL is deprecated, you should use the standard Toolkit API instead.",
+ "https://github.com/MoonchildProductions/UXP/issues/1083");
this.initToolkitHelpers();
}
diff --git a/application/palemoon/components/newtab/grid.js b/application/palemoon/components/newtab/grid.js
index db3d319c3..e63ea54a6 100644
--- a/application/palemoon/components/newtab/grid.js
+++ b/application/palemoon/components/newtab/grid.js
@@ -130,13 +130,9 @@ var gGrid = {
// Create sites.
let numLinks = Math.min(links.length, cells.length);
- let hasHistoryTiles = false;
for (let i = 0; i < numLinks; i++) {
if (links[i]) {
this.createSite(links[i], cells[i]);
- if (links[i].type == "history") {
- hasHistoryTiles = true;
- }
}
}
diff --git a/application/palemoon/components/newtab/page.js b/application/palemoon/components/newtab/page.js
index 7117d4527..34387fd44 100644
--- a/application/palemoon/components/newtab/page.js
+++ b/application/palemoon/components/newtab/page.js
@@ -47,11 +47,6 @@ var gPage = {
let enabled = gAllPages.enabled;
this._updateAttributes(enabled);
- // Update thumbnails to the new enhanced setting
- if (aData == "browser.newtabpage.enhanced") {
- this.update();
- }
-
// Initialize the whole page if we haven't done that, yet.
if (enabled) {
this._init();
@@ -166,16 +161,6 @@ var gPage = {
*/
_handleUnloadEvent: function Page_handleUnloadEvent() {
gAllPages.unregister(this);
- // compute page life-span and send telemetry probe: using milli-seconds will leave
- // many low buckets empty. Instead we use half-second precision to make low end
- // of histogram linear and not lose the change in user attention
- let delta = Math.round((Date.now() - this._firstVisibleTime) / 500);
- if (this._suggestedTilePresent) {
- Services.telemetry.getHistogramById("NEWTAB_PAGE_LIFE_SPAN_SUGGESTED").add(delta);
- }
- else {
- Services.telemetry.getHistogramById("NEWTAB_PAGE_LIFE_SPAN").add(delta);
- }
},
/**
@@ -250,43 +235,10 @@ var gPage = {
},
onPageVisibleAndLoaded() {
- // Send the index of the last visible tile.
- this.reportLastVisibleTileIndex();
- // Maybe tell the user they can undo an initial automigration
- this.maybeShowAutoMigrationUndoNotification();
- },
-
- reportLastVisibleTileIndex() {
- let cwu = window.QueryInterface(Ci.nsIInterfaceRequestor)
- .getInterface(Ci.nsIDOMWindowUtils);
-
- let rect = cwu.getBoundsWithoutFlushing(gGrid.node);
- let nodes = cwu.nodesFromRect(rect.left, rect.top, 0, rect.width,
- rect.height, 0, true, false);
-
- let i = -1;
- let lastIndex = -1;
- let sites = gGrid.sites;
-
- for (let node of nodes) {
- if (node.classList && node.classList.contains("newtab-cell")) {
- if (sites[++i]) {
- lastIndex = i;
- if (sites[i].link.targetedSite) {
- // record that suggested tile is shown to use suggested-tiles-histogram
- this._suggestedTilePresent = true;
- }
- }
- }
- }
},
toggleEnabled: function(aEvent) {
gAllPages.enabled = !gAllPages.enabled;
- event.stopPropagation();
- },
-
- maybeShowAutoMigrationUndoNotification() {
- // sendAsyncMessage("NewTab:MaybeShowAutoMigrationUndoNotification");
- },
+ aEvent.stopPropagation();
+ }
};
diff --git a/application/palemoon/components/newtab/sites.js b/application/palemoon/components/newtab/sites.js
index a368146bb..cb5675238 100644
--- a/application/palemoon/components/newtab/sites.js
+++ b/application/palemoon/components/newtab/sites.js
@@ -136,15 +136,6 @@ Site.prototype = {
return str;
},
- _getSuggestedTileExplanation: function() {
- let targetedName = `<strong> ${this.link.targetedName} </strong>`;
- let targetedSite = `<strong> ${this.link.targetedSite} </strong>`;
- if (this.link.explanation) {
- return this._newTabString(this.link.explanation, [targetedName, targetedSite]);
- }
- return newTabString("suggested.button", [targetedName]);
- },
-
/**
* Checks for and modifies link at campaign end time
*/
@@ -155,11 +146,8 @@ Site.prototype = {
this.link.url = Services.io.newURI(this.url, null, null).resolve("/");
// clear supplied images - this triggers thumbnail download for new url
delete this.link.imageURI;
- delete this.link.enhancedImageURI;
// remove endTime to avoid further time checks
delete this.link.endTime;
- // clear enhanced-content image that may still exist in preloaded page
- this._querySelector(".enhanced-content").style.backgroundImage = "";
gPinnedLinks.replace(oldUrl, this.link);
}
},
@@ -337,7 +325,7 @@ Site.prototype = {
}
else if (!pinned && target.classList.contains("newtab-control-pin")) {
if (this.pin()) {
- // suggested link has changed - update rest of the pages
+ // link has changed - update rest of the pages
gAllPages.update(gPage);
}
action = "pin";
diff --git a/application/palemoon/installer/package-manifest.in b/application/palemoon/installer/package-manifest.in
index d8722bf08..0d80e15f9 100644
--- a/application/palemoon/installer/package-manifest.in
+++ b/application/palemoon/installer/package-manifest.in
@@ -231,6 +231,7 @@
; [Default Preferences]
; All the pref files must be part of base to prevent migration bugs
+@RESPATH@/browser/defaults/permissions
@RESPATH@/browser/@PREF_DIR@/palemoon.js
@RESPATH@/browser/@PREF_DIR@/palemoon-branding.js
@RESPATH@/greprefs.js
diff --git a/application/palemoon/installer/windows/nsis/installer.nsi b/application/palemoon/installer/windows/nsis/installer.nsi
index 9216bb6e1..9f61c9cbb 100644
--- a/application/palemoon/installer/windows/nsis/installer.nsi
+++ b/application/palemoon/installer/windows/nsis/installer.nsi
@@ -34,7 +34,6 @@ RequestExecutionLevel user
Var TmpVal
Var InstallType
Var AddStartMenuSC
-Var AddTaskbarSC
Var AddQuickLaunchSC
Var AddDesktopSC
Var InstallMaintenanceService
@@ -92,7 +91,6 @@ VIAddVersionKey "OriginalFilename" "setup.exe"
!insertmacro InitHashAppModelId
!insertmacro IsHandlerForInstallDir
!insertmacro IsPinnedToTaskBar
-!insertmacro IsUserAdmin
!insertmacro LogDesktopShortcut
!insertmacro LogQuickLaunchShortcut
!insertmacro LogStartMenuShortcut
@@ -391,12 +389,10 @@ Section "-Application" APP_IDX
; If we are writing to HKLM and create either the desktop or start menu
; shortcuts set IconsVisible to 1 otherwise to 0.
- ; Taskbar shortcuts imply having a start menu shortcut.
${StrFilter} "${FileMainEXE}" "+" "" "" $R9
StrCpy $0 "Software\Clients\StartMenuInternet\$R9\InstallInfo"
${If} $AddDesktopSC == 1
${OrIf} $AddStartMenuSC == 1
- ${OrIf} $AddTaskbarSC == 1
WriteRegDWORD HKLM "$0" "IconsVisible" 1
${Else}
WriteRegDWORD HKLM "$0" "IconsVisible" 0
@@ -410,12 +406,10 @@ Section "-Application" APP_IDX
; If we create either the desktop or start menu shortcuts, then
; set IconsVisible to 1 otherwise to 0.
- ; Taskbar shortcuts imply having a start menu shortcut.
${StrFilter} "${FileMainEXE}" "+" "" "" $R9
StrCpy $0 "Software\Clients\StartMenuInternet\$R9\InstallInfo"
${If} $AddDesktopSC == 1
${OrIf} $AddStartMenuSC == 1
- ${OrIf} $AddTaskbarSC == 1
WriteRegDWORD HKCU "$0" "IconsVisible" 1
${Else}
WriteRegDWORD HKCU "$0" "IconsVisible" 0
diff --git a/application/palemoon/installer/windows/nsis/shared.nsh b/application/palemoon/installer/windows/nsis/shared.nsh
index 815853ae7..385a411a3 100644
--- a/application/palemoon/installer/windows/nsis/shared.nsh
+++ b/application/palemoon/installer/windows/nsis/shared.nsh
@@ -322,11 +322,9 @@
WriteRegStr SHCTX "$0\.xhtml" "" "PaleMoonHTML"
${EndIf}
- ${AddAssociationIfNoneExist} ".pdf"
${AddAssociationIfNoneExist} ".oga"
${AddAssociationIfNoneExist} ".ogg"
${AddAssociationIfNoneExist} ".ogv"
- ${AddAssociationIfNoneExist} ".pdf"
${AddAssociationIfNoneExist} ".webm"
; An empty string is used for the 5th param because PaleMoonHTML is not a
@@ -842,24 +840,17 @@
ClearErrors
WriteIniStr "$0" "TASKBAR" "Migrated" "true"
${If} ${AtLeastWin7}
- ; If we didn't run the stub installer, AddTaskbarSC will be empty.
- ; We determine whether to pin based on whether we're the default
- ; browser, or if we're on win8 or later, we always pin.
- ${If} $AddTaskbarSC == ""
- ; No need to check the default on Win8 and later
- ${If} ${AtMostWin2008R2}
- ; Check if the PaleMoon is the http handler for this user
- SetShellVarContext current ; Set SHCTX to the current user
- ${IsHandlerForInstallDir} "http" $R9
- ${If} $TmpVal == "HKLM"
- SetShellVarContext all ; Set SHCTX to all users
- ${EndIf}
- ${EndIf}
- ${If} "$R9" == "true"
- ${OrIf} ${AtLeastWin8}
- ${PinToTaskBar}
+ ; No need to check the default on Win8 and later
+ ${If} ${AtMostWin2008R2}
+ ; Check if the Pale Moon is the http handler for this user
+ SetShellVarContext current ; Set SHCTX to the current user
+ ${IsHandlerForInstallDir} "http" $R9
+ ${If} $TmpVal == "HKLM"
+ SetShellVarContext all ; Set SHCTX to all users
${EndIf}
- ${ElseIf} $AddTaskbarSC == "1"
+ ${EndIf}
+ ${If} "$R9" == "true"
+ ${OrIf} ${AtLeastWin8}
${PinToTaskBar}
${EndIf}
${EndIf}
diff --git a/application/palemoon/installer/windows/nsis/uninstaller.nsi b/application/palemoon/installer/windows/nsis/uninstaller.nsi
index c85af3656..44b7c060b 100644
--- a/application/palemoon/installer/windows/nsis/uninstaller.nsi
+++ b/application/palemoon/installer/windows/nsis/uninstaller.nsi
@@ -76,7 +76,6 @@ VIAddVersionKey "OriginalFilename" "helper.exe"
!insertmacro InitHashAppModelId
!insertmacro IsHandlerForInstallDir
!insertmacro IsPinnedToTaskBar
-!insertmacro IsUserAdmin
!insertmacro LogDesktopShortcut
!insertmacro LogQuickLaunchShortcut
!insertmacro LogStartMenuShortcut
@@ -168,56 +167,6 @@ UninstPage custom un.preConfirm
ChangeUI IDD_VERIFY "${NSISDIR}\Contrib\UIs\default.exe"
################################################################################
-# Helper Functions
-
-; This function is used to uninstall the maintenance service if the
-; application currently being uninstalled is the last application to use the
-; maintenance service.
-Function un.UninstallServiceIfNotUsed
- ; $0 will store if a subkey exists
- ; $1 will store the first subkey if it exists or an empty string if it doesn't
- ; Backup the old values
- Push $0
- Push $1
-
- ; The maintenance service always uses the 64-bit registry on x64 systems
- ${If} ${RunningX64}
- SetRegView 64
- ${EndIf}
-
- ; Figure out the number of subkeys
- StrCpy $0 0
- ${Do}
- EnumRegKey $1 HKLM "Software\Mozilla\MaintenanceService" $0
- ${If} "$1" == ""
- ${ExitDo}
- ${EndIf}
- IntOp $0 $0 + 1
- ${Loop}
-
- ; Restore back the registry view
- ${If} ${RunningX64}
- SetRegView lastUsed
- ${EndIf}
- ${If} $0 == 0
- ; Get the path of the maintenance service uninstaller
- ReadRegStr $1 HKLM ${MaintUninstallKey} "UninstallString"
-
- ; If the uninstall string does not exist, skip executing it
- StrCmp $1 "" doneUninstall
-
- ; $1 is already a quoted string pointing to the install path
- ; so we're already protected against paths with spaces
- nsExec::Exec "$1 /S"
-doneUninstall:
- ${EndIf}
-
- ; Restore the old value of $1 and $0
- Pop $1
- Pop $0
-FunctionEnd
-
-################################################################################
# Install Sections
; Empty section required for the installer to compile as an uninstaller
Section ""
@@ -297,7 +246,6 @@ Section "Uninstall"
${un.RegCleanFileHandler} ".oga" "PaleMoonHTML"
${un.RegCleanFileHandler} ".ogg" "PaleMoonHTML"
${un.RegCleanFileHandler} ".ogv" "PaleMoonHTML"
- ${un.RegCleanFileHandler} ".pdf" "PaleMoonHTML"
${un.RegCleanFileHandler} ".webm" "PaleMoonHTML"
${EndIf}
diff --git a/application/palemoon/locales/en-US/chrome/browser/baseMenuOverlay.dtd b/application/palemoon/locales/en-US/chrome/browser/baseMenuOverlay.dtd
index 27de3797f..dd88a3384 100644
--- a/application/palemoon/locales/en-US/chrome/browser/baseMenuOverlay.dtd
+++ b/application/palemoon/locales/en-US/chrome/browser/baseMenuOverlay.dtd
@@ -15,6 +15,8 @@
<!ENTITY helpMenuWin.label "Help">
<!ENTITY helpMenuWin.accesskey "H">
<!ENTITY updateCmd.label "Check for Updates…">
+<!ENTITY helpReleaseNotes.label "Release Notes">
+<!ENTITY helpReleaseNotes.accesskey "N">
<!ENTITY aboutProduct.label "About &brandShortName;">
<!ENTITY aboutProduct.accesskey "A">
<!ENTITY productHelp.label "&brandShortName; Help">
diff --git a/application/palemoon/themes/linux/browser.css b/application/palemoon/themes/linux/browser.css
index 01b3f5c9e..4933b4069 100644
--- a/application/palemoon/themes/linux/browser.css
+++ b/application/palemoon/themes/linux/browser.css
@@ -1608,7 +1608,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
}
/* When the tab bar is collapsed, show a 1px border in its place. */
-#TabsToolbar[tabsontop="false"][collapsed="true"] {
+#TabsToolbar[tabsontop="false"][collapsed="true"]:not([customizing="true"]) {
visibility: visible;
height: 1px;
border-bottom-width: 1px;
diff --git a/application/palemoon/themes/osx/browser.css b/application/palemoon/themes/osx/browser.css
index 6d0d92015..20e453d11 100644
--- a/application/palemoon/themes/osx/browser.css
+++ b/application/palemoon/themes/osx/browser.css
@@ -1631,7 +1631,7 @@ richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-
}
/* When the tab bar is collapsed, show a 1px border in its place. */
-#TabsToolbar[tabsontop="false"][collapsed="true"] {
+#TabsToolbar[tabsontop="false"][collapsed="true"]:not([customizing="true"]) {
visibility: visible;
height: 1px;
border-bottom-width: 1px;
diff --git a/application/palemoon/themes/windows/browser.css b/application/palemoon/themes/windows/browser.css
index 9f32b59cf..88c3087ae 100644
--- a/application/palemoon/themes/windows/browser.css
+++ b/application/palemoon/themes/windows/browser.css
@@ -1844,7 +1844,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
}
/* When the tab bar is collapsed, show a 1px border in its place. */
-#TabsToolbar[tabsontop="false"][collapsed="true"] {
+#TabsToolbar[tabsontop="false"][collapsed="true"]:not([customizing="true"]) {
visibility: visible;
height: 1px;
border-bottom-width: 1px;