/*!
 * 
 * MCAFEE RESTRICTED CONFIDENTIAL
 * Copyright (c) 2020 McAfee, LLC
 * 
 * The source code contained or described herein and all documents related
 * to the source code ("Material") are owned by McAfee or its
 * suppliers or licensors. Title to the Material remains with McAfee
 * or its suppliers and licensors. The Material contains trade
 * secrets and proprietary and confidential information of McAfee or its
 * suppliers and licensors. The Material is protected by worldwide copyright
 * and trade secret laws and treaty provisions. No part of the Material may
 * be used, copied, reproduced, modified, published, uploaded, posted,
 * transmitted, distributed, or disclosed in any way without McAfee's prior
 * express written permission.
 * 
 * No license under any patent, copyright, trade secret or other intellectual
 * property right is granted to or conferred upon you by disclosure or
 * delivery of the Materials, either expressly, by implication, inducement,
 * estoppel or otherwise. Any license under such intellectual property rights
 * must be expressed and approved by McAfee in writing.
 * 
 * 
 */!function(e){function t(t){for(var n,s,a=t[0],i=t[1],o=0,c=[];o<a.length;o++)s=a[o],Object.prototype.hasOwnProperty.call(r,s)&&r[s]&&c.push(r[s][0]),r[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);c.length;)c.shift()()}var n={},r={1:0};var s={};var a={122:function(){return{"./wasm_lib.js":{__wbindgen_object_drop_ref:function(e){return n[119].exports.__wbindgen_object_drop_ref(e)},__wbindgen_debug_string:function(e,t){return n[119].exports.__wbindgen_debug_string(e,t)},__wbindgen_throw:function(e,t){return n[119].exports.__wbindgen_throw(e,t)},__wbindgen_cb_drop:function(e){return n[119].exports.__wbindgen_cb_drop(e)},__wbg_then_486e2e2b1fb1bbf4:function(e,t,r){return n[119].exports.__wbg_then_486e2e2b1fb1bbf4(e,t,r)},__wbg_resolve_04ca3cb0d333a4f0:function(e){return n[119].exports.__wbg_resolve_04ca3cb0d333a4f0(e)},__wbg_then_1fa2e92ee4bdbc93:function(e,t){return n[119].exports.__wbg_then_1fa2e92ee4bdbc93(e,t)},__wbindgen_string_new:function(e,t){return n[119].exports.__wbindgen_string_new(e,t)},__widl_f_error_1_:function(e){return n[119].exports.__widl_f_error_1_(e)},__wbg_call_34f87007c5d2a397:function(e,t,r){return n[119].exports.__wbg_call_34f87007c5d2a397(e,t,r)},__wbindgen_string_get:function(e,t){return n[119].exports.__wbindgen_string_get(e,t)},__widl_f_log_1_:function(e){return n[119].exports.__widl_f_log_1_(e)},__wbg_new_de17f04ab3be4063:function(){return n[119].exports.__wbg_new_de17f04ab3be4063()},__wbg_set_e11a72d9733dadef:function(e,t,r){return n[119].exports.__wbg_set_e11a72d9733dadef(e,t,r)},__widl_f_new_with_str_and_init_Request:function(e,t,r){return n[119].exports.__widl_f_new_with_str_and_init_Request(e,t,r)},__wbg_globalThis_4fa2faeae7a7a380:function(){return n[119].exports.__wbg_globalThis_4fa2faeae7a7a380()},__wbg_self_ed02073ec1d8fef4:function(){return n[119].exports.__wbg_self_ed02073ec1d8fef4()},__wbg_window_356847be61f4a80f:function(){return n[119].exports.__wbg_window_356847be61f4a80f()},__wbg_global_6580a67633b0dbc1:function(){return n[119].exports.__wbg_global_6580a67633b0dbc1()},__wbindgen_is_undefined:function(e){return n[119].exports.__wbindgen_is_undefined(e)},__wbg_newnoargs_0c3c518a7f7c56bf:function(e,t){return n[119].exports.__wbg_newnoargs_0c3c518a7f7c56bf(e,t)},__wbg_call_aa56d0132fec7569:function(e,t){return n[119].exports.__wbg_call_aa56d0132fec7569(e,t)},__wbindgen_object_clone_ref:function(e){return n[119].exports.__wbindgen_object_clone_ref(e)},__widl_instanceof_Window:function(e){return n[119].exports.__widl_instanceof_Window(e)},__widl_f_fetch_with_request_Window:function(e,t){return n[119].exports.__widl_f_fetch_with_request_Window(e,t)},__widl_f_error_2_:function(e,t){return n[119].exports.__widl_f_error_2_(e,t)},__widl_instanceof_Response:function(e){return n[119].exports.__widl_instanceof_Response(e)},__widl_f_text_Response:function(e){return n[119].exports.__widl_f_text_Response(e)},__wbg_new_5e8d465c199e6ff3:function(e,t){return n[119].exports.__wbg_new_5e8d465c199e6ff3(e,t)},__wbindgen_closure_wrapper350:function(e,t,r){return n[119].exports.__wbindgen_closure_wrapper350(e,t,r)}}}}};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,s){n=r[e]=[t,s]}));t.push(n[2]=o);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+""+({40:"wasm_lib"}[e]||e)+".bundle.js"}(e);var u=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=r[e];if(0!==n){if(n){var s=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",u.name="ChunkLoadError",u.type=s,u.request=a,n[1](u)}r[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return({40:[122]}[e]||[]).forEach((function(e){var n=s[e];if(n)t.push(n);else{var r,o=a[e](),c=fetch(i.p+""+{122:"2bff314b9487a95c89f1"}[e]+".module.wasm");if(o instanceof Promise&&"function"==typeof WebAssembly.compileStreaming)r=Promise.all([WebAssembly.compileStreaming(c),o]).then((function(e){return WebAssembly.instantiate(e[0],e[1])}));else if("function"==typeof WebAssembly.instantiateStreaming)r=WebAssembly.instantiateStreaming(c,o);else{r=c.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,o)}))}t.push(s[e]=r.then((function(t){return i.w[e]=(t.instance||t).exports})))}})),Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e},i.w={};var o=window.webpackJsonp=window.webpackJsonp||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var l=0;l<o.length;l++)t(o[l]);var u=c;i(i.s=117)}([function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"j",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return R})),n.d(t,"n",(function(){return L})),n.d(t,"m",(function(){return v})),n.d(t,"c",(function(){return D}));var r=n(2);const s={WHITELIST:"whitelist",PREFERENCE:"preference",STATISTICS:"statistics",ABOUT:"about"},a={ADBLOCK:{BUBBLE:"AdblockBubble",WHITELISTED:"AdblockWhitelisted"},ADBLOCK_INTERACTION:"AdBlock_Interaction",BADGE:"Badge",BLOCK_PAGE:"Block_Page",BROWSER_ACTION_CLICKED:"BrowserAction_Clicked",BROWSER_BADGE_UPDATE:"BrowserBadgeUpdate",BROWSER_NAVIGATE:"Browser_Navigate",CRYPTOJACKING_BLOCK:"Cryptojacking_Block",DOWNLOAD_BLOCK:"Download_Block",DOWNLOAD_SCAN_UI:"Download_Scan_UI",GET_SEARCH_EXTENSION:"EmbedSearchExtension",PRODUCT_UPSELL_PROMPT:"ProductUpsellPrompt",PRODUCT_UPSELL_TOAST:"ProductUpsellToast",PROFILE_INFO:"ProfileInfo",SEARCH_SUGGEST:"SearchSuggest",SEARCH_SUGGEST_BLOCK_PAGE:"SearchSuggest_BlockPage",SEARCH_SUGGEST_TYPOSQUATTING:"SearchSuggest_TypoSquatting",SECURE_SEARCH:"Secure_Search",SECURE_SEARCH_HIT:"Secure_Search_Hit",SIDEBAR_PANEL:"SideBar_Panel",SITE_REPORT:"SiteReport",SMA_REPUTATION:"SMA_Reputation",TOAST:"Toast",TYPOSQUATTING:"Typosquatting",AMAZON_UPSELL_SIDEBAR_TOAST:"AmazonUpsellSidebarToast",REMOTE_ACCESS_TROJAN:"RemoteAccessTrojan",SECURE_SEARCH_TOAST:"Secure_Search_Toast",FIND_SIMILAR_PAGES:"SimilarPages",WELCOME_SS_ON:"WelcomeSSON",WSS_ANALYTICS:"WSS_Analytics"},i={SECURE_SEARCH_TOAST:"SecureSearchToast"},o={FIRST_ANNOTATION:"FirstAnnotation"},c={YAHOO:"Yahoo"},l={BROWSER_ACTION_CLICKED:"BrowserActionClicked",TYPOSQUATTING:"Typosquatting",BLOCK_PAGE:"BlockPage",SECURE_SEARCH_HIT:"SecureSearchHit",CRYPTOJACKING_BLOCK:"CryptojackingBlock",SIDEBAR_PANEL:"SideBarPanel",SMA_REPUTATION:"SMAReputation",DOWNLOAD_SCAN_UI:"DownloadScanUI",DOWNLOAD_BLOCK:"DownloadBlock"},u={IMPRESSION:"Impression",WEBADVISOR:"WebAdvisor",CRYPTOJACKING:{LEARN_MORE_CLICKED:"LearnMoreClicked",WHITELISTED:"Whitelisted"},SIDEBAR_PANEL:{SMA:"SocialMediaAnnotation",MAIN:"Main"},SELECTION:"Selection",DISMISSED:"Dismissed",HOVERED:"Hovered",CLOSE_CLICKED:"CloseClicked",ENABLE:"Enable",ADD:"Add",ADBLOCK:{DISMISS:"Dismiss",WHITELISTED:"Whitelisted",UNWHITELISTED:"Unwhitelisted"},PPS:{ACCEPT_RISK:"AcceptRisk",BLOCKED:"Blocked",ACKNOWLEDGED:"Acknowledged",GO_PROFILE:"GoProfile",WHITELIST_ADDED:"WhitelistAdded",WHITELIST_DELETED:"WhitelistDeleted",RESET_CLICKED:"ResetClicked"},BROWSER_BADGE:{SMA:"SMA"},UPSELL_SIDEBAR:{ACCEPTED:"Accepted",DECLINED:"Declined",CLOSED:"Closed",CLICKED:"Clicked"},RAT_DETECTION:{ACKNOWLEDGED:"Acknowledged",WHITELISTED:"Whitelisted"},FIND_SIMILAR_PAGES:{LINK_CLICKED:"LinkNavigated"},ACCEPTED:"Accepted",DECLINED:"Declined"},d={TOP:"Top",FRAME:"Frame",INLINE:"Inline"},_={EDUCATION:"Education",NORMAL:"Normal"},h={ACCEPT_SECURE_SEARCH:"AcceptSecureSearch",BLOCK_BAD_PAGE:"BlockBadPage",DELETE_BAD_DOWNLOAD:"DeleteBadDownload"},p="About",E="Preferences",g="Whitelist",T="UserStatistics",f="UNKNOWN",m="Red",S="Yellow",A="Green",O="Yellow",N="Red",I="UNKNOWN",C="Hackersafe",b="Typosquatting",y="Phishing",R={DEFAULT:"DefaultSearch"},L={TOAST:"Toast",FIRST_ANNOTATION:"FirstAnnotation"},v={ACTION:{CLICK:"click",KEYDOWN:"keydown",RETURN_KEY_CODE:13,SHOW:"show",SEARCH_SUGGEST_KEY_CODES:[8,32,46,...Object(r.k)(48,57),...Object(r.k)(65,90),...Object(r.k)(96,107),...Object(r.k)(109,111),...Object(r.k)(186,192),...Object(r.k)(219,222)]},MISC:{LOADED:"Loaded",CHECKED:"checked",UNKNOWN:"UNKNOWN",ACTION_PANEL:"ActionPanel",ACCEPTED:"Accepted",DECLINED:"Declined",SETTINGS_TAB_PREFIX:"settings_tab_",GREEN:"GREEN",YELLOW:"YELLOW",RED:"RED",HACKERSAFE:"HACKERSAFE",PREFERENCE:"Preference"},SIDEBAR_AMAZON_UPSELL:{PRODUCT:"AmazonExtension",NO_THANKS:"_no_thanks",REMIND_ME_LATER:"_remind_me_later",SIDEBAR_PROTECT:"sidebar_protect_"},SEARCH_ENGINE:{GOOGLE:"google",YAHOO:"yahoo"},SOCIAL_MEDIA:{LINKEDIN:"linkedin",FACEBOOK:"facebook",YOUTUBE:"youtube",INSTAGRAM:"instagram",REDDIT:"reddit",TWITTER:"twitter"},TRIGGER:{AMAZON_EXTN_UPSELL:{INSTALLED_REJECTED:"installed_rejected",INSTALLED_DISABLED:"installed_disabled",NOT_INSTALLED:"not_installed"}}};class D{static toColorTelemetry(e){let t=f;switch(e){case r.h.RED:t=m;break;case r.h.YELLOW:t=S}return t}static toTelemetryBlockState(e){let t=I;switch(e){case r.c.GREEN:t=A;break;case r.c.YELLOW:t=O;break;case r.c.RED:t=N;break;case r.c.HACKERSAFE:t=C;break;case r.c.TYPOSQUATTING:t=b;break;case r.c.PHISHING:t=y}return t}static toTelemetrySettingTab(e){let t=E;switch(e){case s.WHITELIST:t=g;break;case s.STATISTICS:t=T;break;case s.ABOUT:t=p}return t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return _})),n.d(t,"a",(function(){return h}));const r={CACHE_STORE:"CACHE_STORE",CONTENT_HANDLER:"CONTENT_HANDLER",EXECUTE_COMMAND:"EXECUTE_COMMAND",FOCUS_OR_CREATE_TAB:"FOCUS_OR_CREATE_TAB",GET_BK_GLOBALS:"GET_BK_GLOBALS",GET_EXTENSION_STATUS:"GET_EXTENSION_STATUS",GET_TAB_DATA:"GET_TAB_DATA",GET_VALUES:"GET_VALUES",GTI_REQUEST:"GTI_REQUEST",INSTALL_EXTENSION:"INSTALL_EXTENSION",LOGGER:"LOGGER",PLACEHOLDER_TEXT:"PLACEHOLDER_TEXT",REMOVE_TAB:"REMOVE_TAB",SEND_TELEMETRY:"SEND_TELEMETRY",SET_TAB_ACTION_PANEL_DATA:"SET_TAB_ACTION_PANEL_DATA",SET_VIEWPORT:"SET_VIEWPORT",UPDATE_BROWSER_ACTION:"UPDATE_BROWSER_ACTION",WHITELIST:"WHITELIST",RESET_NATIVE_SETTING:"RESET_NATIVE_SETTING",GET_POPUP_DATA:"GET_POPUP_DATA",GET_SETTINGS_DATA:"GET_SETTINGS_DATA",RESET_SETTINGS:"RESET_SETTINGS",ADD_ADBLOCK_WHITELIST:"ADD_ADBLOCK_WHITELIST",GET_COSMETIC_FILTERS:"GET_COSMETIC_FILTERS",REMOVE_ADBLOCK_WHITELIST:"REMOVE_ADBLOCK_WHITELIST",TOGGLE_ADBLOCK_ENGINE:"TOGGLE_ADBLOCK_ENGINE",SHOW_PERM_REQUEST_BALLOON:"SHOW_PERM_REQUEST_BALLOON",AUTO_RUN_VIDEO_SITE:"AUTO_RUN_VIDEO_SITE",GET_CLICK_EVENT_TIME:"GET_CLICK_EVENT_TIME",SAVE_CLICK_EVENT_TIME:"SAVE_CLICK_EVENT_TIME",CLOSE_TOAST:"CLOSE_TOAST",SHOULD_SHOW_TOAST:"SHOULD_SHOW_TOAST",GET_TYPOSQUATTING_DATA:"GET_TYPOSQUATTING_DATA",IS_FRAME_BLOCKED:"IS_FRAME_BLOCKED",IS_WHITELISTED:"IS_WHITELISTED",ANY_BLOCKED_IFRAMES:"ANY_BLOCKED_IFRAMES",ANY_BLOCKED_CRYPTOSCRIPTS:"ANY_BLOCKED_CRYPTOSCRIPTS",UNBLOCK_ALL_IFRAMES:"UNBLOCK_ALL_IFRAMES",VIEW_SITE_REPORT:"VIEW_SITE_REPORT",SEARCH_ANNOTATION:"SEARCH_ANNOTATION",UPDATE_ENGINE_STATS:"UPDATE_ENGINE_STATS",SHOW_NPS_CHECKLIST:"SHOW_NPS_CHECKLIST",SOCIAL_MEDIA_ANNOTATION:"SOCIAL_MEDIA_ANNOTATION",DOWNLOAD_SCANNING_DELETE_FILE:"DOWNLOAD_SCANNING_DELETE_FILE",TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING:"TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING",REMOVE_FROM_DOWNLOAD_SCAN_QUEUE:"REMOVE_FROM_DOWNLOAD_SCAN_QUEUE",UPDATE_RAT_DETECTION_SHOWING_FLAG:"UPDATE_RAT_DETECTION_SHOWING_FLAG",GET_DOMAIN_VISITED_DETAILS:"GET_DOMAIN_VISITED_DETAILS",SEARCH_SUGGEST:"SEARCH_SUGGEST",SHOW_SS_WELCOME_ANNOTATION:"SHOW_SS_WELCOME_ANNOTATION",GET_AMAZON_UPSELL_CATEGORY_DETAILS:"GET_AMAZON_UPSELL_CATEGORY_DETAILS",SHOW_AMAZON_UPSELL_TOAST:"SHOW_AMAZON_UPSELL_TOAST",BLAST_SEARCH_BASE:"BLAST_SEARCH_BASE"},s={UNBLOCK_IFRAME:"UNBLOCK_IFRAME",BALLOON_MESSAGE:"BALLOON_MESSAGE",FLOATING_BALLOON:"FLOATING_BALLOON",PAGE_OVERLAY:"PAGE_OVERLAY",SIDEBAR:"SIDEBAR",TOAST:"TOAST",TOPBAR:"TOPBAR"},a={BADGE_COLLECTION:"BADGE_COLLECTION",BLOCK_PAGE:"BLOCK_PAGE",DOWNLOAD_SCANNING_MALICIOUS:"DOWNLOAD_SCANNING_MALICIOUS",DOWNLOAD_SCANNING_FILE_DELETED:"DOWNLOAD_SCANNING_FILE_DELETED",DOWNLOAD_SCANNING_FILE_NOT_DELETED:"DOWNLOAD_SCANNING_FILE_NOT_DELETED",IFRAME_BLOCK:"IFRAME_BLOCK",MAIN:"MAIN",RELOAD:"RELOAD",SITE_REPORT:"SITE_REPORT",SMA:"SMA",SS_ACCEPTED:"SS_ACCEPTED",RAT_DETECTION:"RAT_DETECTION",AMAZON_UPSELL_TOAST:"AMAZON_UPSELL_TOAST"},i={SS_EXPERIENCE:"SS_EXPERIENCE",FIND_SIMILAR_PAGES:"FIND_SIMILAR_PAGES"},o={CRYPTO_BLOCK:"CRYPTO_BLOCK",IFRAME_BLOCK:"IFRAME_BLOCK",TRIGGER_ALLOW:"TRIGGER_ALLOW"},c={CLOSE_ALL_TOAST:"CLOSE_ALL_TOASTS",SECURE_SEARCH:"SECURE_SEARCH"},l={SEARCH_EXTENSION_OVERLAY:"SEARCH_EXTENSION_OVERLAY",FINISH_DOWNLOAD:"FINISH_DOWNLOAD"},u={UPDATE_AD_COUNT:"UPDATE_AD_COUNT",UPDATE_TRACKER_COUNT:"UPDATE_TRACKER_COUNT",UPDATE_DOWNLOAD_SCAN_COUNT:"UPDATE_DOWNLOAD_SCAN_COUNT",HIDE_BUBBLE:"HIDE_BUBBLE",SHOW_FIND_SIMILAR_PAGES_BALLOON:"SHOW_FIND_SIMILAR_PAGES_BALLOON",SHOW_SS_EXPERIENCE_BALLOON:"SHOW_SS_EXPERIENCE_BALLOON"},d={PING:0,DISCONNECT_NATIVE:1,ADBLOCK:"ADBLOCK",SET_PROPERTY:3,GET_PROPERTY:4,CLEAR_GTI_CACHE:5,RESET_CRYPTO:6,CLEAN_TYPOSQUATING_WHITELIST:7,CLEAR_TYPOSQUATING_CACHE:8,SHOW_UNUSED_SELECTORS:9,CLEAN_CRYPTO_WHITELIST:10,WB_VIDEO_STATS:11,CLEAN_RAT_WHITELIST:12,CLEAN_RAT_CACHE:13,WB_TELEMETRY:14,REPLACE_TRUSTED_DOMAIN:15,PROFILER_DEBUGGER:16},_={PONG:0},h={ADD_WHITELIST:"ADD_WHITELIST",REMOVE_WHITELIST:"REMOVE_WHITELIST",IS_DISABLED:"IS_DISABLED",AD_BLOCKED:"AD_BLOCKED",TRACKER_BLOCKED:"TRACKER_BLOCKED",TURN_ON:"TURN_ON",TURN_OFF:"TURN_OFF",ADBLOCKER_READY:"ADBLOCKER_READY"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"o",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"p",(function(){return _})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"b",(function(){return E})),n.d(t,"k",(function(){return g})),n.d(t,"j",(function(){return T})),n.d(t,"a",(function(){return f}));const r={GREEN:0,YELLOW:1,RED:2,UNKNOWN:3,HACKERSAFE:4,TYPOSQUATTING:5,PHISHING:6,*[Symbol.iterator](){for(const e of Object.keys(this))"GREEN"!==e&&"HACKERSAFE"!==e&&"UNKNOWN"!==e&&(yield this[e])}},s={UNKNOWN:-1,FIREFOX:1,CHROME:2,EDGE:3},a={BROWSER_TYPE:2,DEBUG_MODE:!1,EXTENSION_VERSION:"8.1.0.436",LOG_LEVEL:0,PPS_MODE:!1,ENGINES_VERSION:"1.0.0.1"},i={GREEN:0,YELLOW:1,RED:2,UNKNOWN:3,HACKERSAFE:4,DISABLED:5},o={RAISE_NEW_TAB_EVENT:3,UPDATE_CACHE_STATS:4},c={[i.GREEN]:"GREEN",[i.YELLOW]:"YELLOW",[i.RED]:"RED",[i.UNKNOWN]:"WHITE",[i.HACKERSAFE]:"HACKERSAFE",[i.DISABLED]:"DISABLED"},l={SMA:"SMA",SS_ACCEPTED:"SS_ACCEPTED"},u={[r.GREEN]:"green",[r.YELLOW]:"yellow",[r.RED]:"red",[r.PHISHING]:"phishing",[r.UNKNOWN]:"unknown",[r.HACKERSAFE]:"green"},d={MINIMAL:15,UNKNOWN:30,MEDIUM:50},_=e=>{const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t},h={FF:"https://sadownload.mcafee.com/products/SA/Win/xpi/searchextension/searchextension.xpi"},p={CH:"https://chrome.google.com/webstore/detail/mcafee%C2%AE-secure-search/enppghjcblldgigemljohkgpcompnjgh",ED:"https://microsoftedge.microsoft.com/addons/detail/dbghilognjpbmkdcpjgodiieiflmlaeb"},E={GTI_CATEGORY_SIDEBAR:[1,2],GTI_CATEGORY_TOAST:[3,4]},g=(e,t)=>Array.from(Array(t+1).keys()).slice(e),T={ADBLOCK:"ADBLOCK",FIND_SIMILAR_PAGES:"FIND_SIMILAR_PAGES"},f={INSTALLED_REJECTED:"installed_rejected",INSTALLED_DISABLED:"installed_disabled",NOT_INSTALLED:"not_installed"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=chrome},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),s=n(9),a=n(3),i=n(8),o=n(20);class c{static toGTICategoriesString(e,t=!1){const n=[];for(const r of e){const e=parseInt(r,10);isNaN(e)||o.ResourceManager.getResString(`category_id_${e}_name`,r=>{const s={};if(s.name=r,!t)return n.push(s);o.ResourceManager.getResString(`category_id_${e}_description`,e=>{s.description=e,n.push(s)})})}return n}static browserTypeToString(e=!1){let t="";switch(r.g.BROWSER_TYPE){case 1:t="FF";break;case 2:t="CH";break;case 3:t="ED";break;default:t="UN"}return e?t.toLowerCase():t}static toImagePaths(e){let t="images/browser_action/";switch(e.startsWith("small_")?e:`small_${e}`){case"small_button_green.gif":t+="green";break;case"small_button_yellow.gif":t+="yellow";break;case"small_button_red.gif":t+="red";break;case"small_button_grey.gif":t+="white";break;case"small_button_hs.gif":t+="hackersafe";break;case"small_button_disabled.gif":t+="disabled";break;default:t+=e}return{size16:`${t}_16.png`,size20:`${t}_20.png`,size32:`${t}_32.png`,size40:`${t}_40.png`}}static colorToImagePaths(e){let t="white";switch(e){case r.h.GREEN:t="green";break;case r.h.YELLOW:t="yellow";break;case r.h.RED:t="red";break;case r.h.UNKNOWN:t="white";break;case r.h.HACKERSAFE:t="hackersafe";break;case r.h.DISABLED:t="disabled"}return c.toImagePaths(t)}static toAnnotationImageClass(e){let t="";switch(c.toColor(e)){case r.h.GREEN:t="OK";break;case r.h.RED:t="WARN";break;case r.h.YELLOW:t="INFO";break;case r.h.HACKERSAFE:t="HACKERSAFE";break;case r.h.UNKNOWN:t="UNKNOWN"}return t}static isPhishingURI(e){return e&&e.includes(s.a.PHISHING_CATEGORY)}static getIFrameBlockPageUrl(){return a.a.runtime.getURL("html/iframe_block_page.html")}static toBlockState(e){const t=c.toColor(e);return t!==r.h.RED&&t!==r.h.YELLOW||!c.isPhishingURI(e.cat)?isNaN(t)?r.c.UNKNOWN:t:r.c.PHISHING}static toColor(e){let t=r.h.UNKNOWN;return t=e.rep<r.n.MINIMAL?c.isHackerSafe(e.ufg)?r.h.HACKERSAFE:r.h.GREEN:e.rep<r.n.UNKNOWN?r.h.UNKNOWN:e.rep<r.n.MEDIUM?r.h.YELLOW:r.h.RED,t}static toSiteReportUrl(e){const t=a.a.runtime.getURL("html/site_status_site_report.html");return i.a.PPS_MODE?"#":`${t}?url=${escape(e)}`}static isExtensionUrl(e){if(r.f.CHROME===r.g.BROWSER_TYPE&&e.startsWith(`chrome-extension://${a.a.runtime.id}`)||r.f.EDGE===r.g.BROWSER_TYPE&&e.startsWith(`ms-browser-extension://${a.a.runtime.id}`))return!0;if(r.f.FIREFOX===r.g.BROWSER_TYPE){let t=a.a.i18n.getMessage("@@extension_id");if(!t){const e=a.a.runtime.getURL("images/web_advisor/logo.png").split("/");t=e.length>=3?e[2]:""}return t&&e.startsWith(`moz-extension://${t}`)}return!1}static isHackerSafeUrl(e){return c.isSiteAdvisorUrl(e)||c.isExtensionUrl(e)}static isSiteAdvisorUrl(e){return e.startsWith(`http://${s.a.SITE_ADVISOR_URL}`)||e.startsWith(`https://${s.a.SITE_ADVISOR_URL}`)}static isHackerSafe(e){return 1&e}static isPropertRedirectUrl(e){return c.isPropertyWebURL(e)||e.startsWith("edge://")||e.startsWith("chrome://")}static isProperWebURL(e){return!!(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("ftp://"))}static isSearchEngineResultPage(e,t){return t.some(t=>{for(const n of t.urlre){if(null!==e.match(new RegExp(n,"i")))return!0}return!1})}static getUINumber(e){if(e>=1e4)return"10k+";if(e>=1e3){let t=(e/1e3).toFixed(1);return t="0"===t.substring(2,3)?t.substring(0,1):t,`${t}k+`}return`${e}`}static hasEpochTimeElapsed(e,t){return(new Date).getTime()/1e3>e+t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),s=n(1),a=n(2),i=n(4),o=n(12),c=n(14);class l{static handlePromiseMessage(e,t=null){return new Promise((n,s)=>{r.a.runtime.sendMessage(e,e=>{"function"==typeof t?t(n,s,e):((e,t,n)=>{r.a.runtime.lastError&&t(r.a.runtime.lastError.message),e(n)})(n,s,e)})})}static logger(e,t){if(Object(o.f)()!==o.a.NONE){Object(o.e)(e,t,o.d.CONTENT);const n=s.b.LOGGER;r.a.runtime.sendMessage({command:n,message:e,logType:t})}}static logError(e){l.logger(e,o.b.ERROR)}static logInfo(e){l.logger(e,o.b.INFO)}static cacheStore(e,t){const n=s.b.CACHE_STORE;return this.handlePromiseMessage({command:n,action:e,data:t})}static saveLastClickedTime(){const e=s.b.SAVE_CLICK_EVENT_TIME;r.a.runtime.sendMessage({command:e,last_event:Date.now()})}static getLastClickedTime(){const e=s.b.GET_CLICK_EVENT_TIME;return this.handlePromiseMessage({command:e})}static autoRunVideo(e){const t=s.b.AUTO_RUN_VIDEO_SITE;r.a.runtime.sendMessage({command:t,url:e})}static isFrameBlocked(e){const t=s.b.IS_FRAME_BLOCKED;return this.handlePromiseMessage({command:t,url:e})}static makeGTIRequest(e,t,n,r){const a={command:s.b.GTI_REQUEST,url:e,isSecureSearch:t,requestData:n,referer:r};return this.handlePromiseMessage(a)}static executeCommand(e,t){const n=s.b.EXECUTE_COMMAND;r.a.runtime.sendMessage({command:n,commandId:e,params:t})}static focusOrCreateTab(e){const t=s.b.FOCUS_OR_CREATE_TAB;r.a.runtime.sendMessage({command:t,url:e})}static closeTab(){const e=s.b.REMOVE_TAB;r.a.runtime.sendMessage({command:e})}static whitelist(e,t,n){const r=s.b.WHITELIST;return this.handlePromiseMessage({action:e,command:r,type:t,data:n})}static getPopupData(){const e=s.b.GET_POPUP_DATA;return this.handlePromiseMessage({command:e})}static getSettingsData(){const e=s.b.GET_SETTINGS_DATA;return this.handlePromiseMessage({command:e})}static searchAnnotation(e,t){const n=s.b.SEARCH_ANNOTATION;return this.handlePromiseMessage({action:e,data:t,command:n})}static socialMediaAnnotation(e,t){const n=s.b.SOCIAL_MEDIA_ANNOTATION;return this.handlePromiseMessage({action:e,data:t,command:n})}static getBkGlobals(){const e=s.b.GET_BK_GLOBALS;return this.handlePromiseMessage({command:e})}static viewSiteReport(e=null,t=!1){const n=s.b.VIEW_SITE_REPORT;r.a.runtime.sendMessage({command:n,url:e,showInNewTab:t})}static getTypoSquattingData(e){const t=s.b.GET_TYPOSQUATTING_DATA;return this.handlePromiseMessage({command:t,domain:e})}static getPlaceholderText(e){const t=s.b.PLACEHOLDER_TEXT;return this.handlePromiseMessage({command:t,id:e})}static setViewPort(e,t){const n=s.b.SET_VIEWPORT;r.a.runtime.sendMessage({command:n,x:e,y:t})}static sendTelemetry(e){const t=s.b.SEND_TELEMETRY;r.a.runtime.sendMessage({command:t,telemetry:e})}static anyBlockedIframes(e){const t=s.b.ANY_BLOCKED_IFRAMES;return this.handlePromiseMessage({command:t,frameUrls:e})}static anyBlockedCryptoScripts(){const e=s.b.ANY_BLOCKED_CRYPTOSCRIPTS;return this.handlePromiseMessage({command:e})}static updateBrowserAction(e,t=!1){const n=s.b.UPDATE_BROWSER_ACTION;r.a.runtime.sendMessage({details:e,allTabs:t,command:n})}static resetSettings(){const e=s.b.RESET_SETTINGS;r.a.runtime.sendMessage({command:e})}static sendEngineStat(e){r.a.runtime.sendMessage({command:s.b.UPDATE_ENGINE_STATS,engine:e})}static contentHandler(e){const t=s.b.CONTENT_HANDLER;r.a.runtime.sendMessage({command:t,message:e})}static shouldShowToast(){const e=s.b.SHOULD_SHOW_TOAST;return this.handlePromiseMessage({command:e})}static closeToast(e){const t=s.b.CLOSE_TOAST;r.a.runtime.sendMessage({command:t,userConfirmation:e})}static showNPSChecklist(e){const t=s.b.SHOW_NPS_CHECKLIST,n=window.location.href;r.a.runtime.sendMessage({command:t,fromBlockPage:e,location:n})}static updateAdblockWhitelist(e){r.a.runtime.sendMessage({command:e})}static toggleAdblockEngine(e){const t=s.b.TOGGLE_ADBLOCK_ENGINE;r.a.runtime.sendMessage({command:t,enableAdblockEngine:e})}static setTabActionPanelData(e){const t=s.b.SET_TAB_ACTION_PANEL_DATA;r.a.runtime.sendMessage({command:t,data:e})}static getTabData(e={}){const t={command:s.b.GET_TAB_DATA,...e};return this.handlePromiseMessage(t)}static isWhitelisted(e){const t={command:s.b.IS_WHITELISTED,url:e};return this.handlePromiseMessage(t)}static reloadSideBarPanel(){const e=s.b.RELOAD_SIDEBAR_PANEL;r.a.runtime.sendMessage({command:e})}static deleteMaliciousFile(e){const t=s.b.DOWNLOAD_SCANNING_DELETE_FILE;r.a.runtime.sendMessage({command:t,payload:e})}static triggerNextEventForDownloadScanning(){const e=s.b.TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING;r.a.runtime.sendMessage({command:e})}static removeFromDownloadScanQueue(){const e=s.b.REMOVE_FROM_DOWNLOAD_SCAN_QUEUE;r.a.runtime.sendMessage({command:e})}static getSEStatus(){const e=c.a.get("SearchExtension"),t=s.b.GET_EXTENSION_STATUS;return this.handlePromiseMessage({command:t,extension_id:e})}static getExtensionStatus(e){if(e)return this.handlePromiseMessage({command:s.b.GET_EXTENSION_STATUS,extension_id:e})}static installSE(){const e=c.a.get("SearchExtension"),t=s.b.INSTALL_EXTENSION,n=a.m[i.a.browserTypeToString()];r.a.runtime.sendMessage({command:t,extension_id:e,redirect_url:n})}static showPermRequestBalloon(){const e=s.b.SHOW_PERM_REQUEST_BALLOON;r.a.runtime.sendMessage({command:e})}static unblockAllIframes(){const e=s.b.UNBLOCK_ALL_IFRAMES;r.a.runtime.sendMessage({command:e})}static showAmazonExtnUpsellToast(e,t,n,a){const i=s.b.SHOW_AMAZON_UPSELL_TOAST,o={category:e,count:t,amazonExtnStatus:n,url:a};r.a.runtime.sendMessage({command:i,payload:o})}static closeAllOtherUpsellComponents(e){const t=s.b.CLOSE_ALL_OTHER_UPSELL_COMPONENTS;r.a.runtime.sendMessage({command:t,payload:e})}static updateUpsellShowingFlag(e,t){const n=s.b.UPDATE_UPSELL_SHOWING_FLAG;r.a.runtime.sendMessage({command:n,upsellCategoryType:e,showing:t})}static getAmazonUpsellCategoryDetails(){const e=s.b.GET_AMAZON_UPSELL_CATEGORY_DETAILS;return this.handlePromiseMessage({command:e})}static updateRatDetectionShowingFlag(e){const t=s.b.UPDATE_RAT_DETECTION_SHOWING_FLAG;r.a.runtime.sendMessage({command:t,showed:e})}static getDomainVisitedDetails(){const e=s.b.GET_DOMAIN_VISITED_DETAILS;return this.handlePromiseMessage({command:e})}static getSearchSuggest(e){const t={command:s.b.SEARCH_SUGGEST,searchTerm:e};return this.handlePromiseMessage(t)}static showSSWelcomeAnnotation(e){const t=s.b.SHOW_SS_WELCOME_ANNOTATION;r.a.runtime.sendMessage({command:t,state:e})}static getNativeValue(e){const t=s.b.GET_VALUES;return this.handlePromiseMessage({command:t,getList:e})}static resetNativeSetting(e){const t=s.b.RESET_NATIVE_SETTING;r.a.runtime.sendMessage({command:t,setting:e})}static blastSearchBase(){const e=s.b.BLAST_SEARCH_BASE;r.a.runtime.sendMessage({command:e})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));const r={SET:"SET",GET:"GET",CLEAR:"CLEAR"},s={BLOCK_PAGE_WHITELIST:"BLOCK_PAGE_WHITELIST",CRYPTO_WHITELIST:"CRYPTO_WHITELIST",TYPOSQUATTING_WHITELIST:"TYPOSQUATTING_WHITELIST",RAT_DETECTION_WHITELIST:"RAT_DETECTION_WHITELIST",POPUP_STATS:"POPUP_STATS",WHITELIST_FLAG:"WHITELIST_FLAG",USER_NATIVE_STATS:"USER_NATIVE_STATS",EXTENSION_LOGGING:"EXTENSION_LOGGING",SEARCH_ANNOTATION_OPTION:"SEARCH_ANNOTATION_OPTION",SMA_FIRST_TIME:"SMA_FIRST_TIME",SOCIAL_MEDIA_ANNOTATION_OPTION:"SOCIAL_MEDIA_ANNOTATION_OPTION",SOCIAL_MEDIA_ANNOTATION_TOGGLE:"SOCIAL_MEDIA_ANNOTATION_TOGGLE",AP_USER_TOGGLE:"AP_USER_TOGGLE",AB_USER_TOGGLE:"AB_USER_TOGGLE",IS_SECURE_SEARCH_SET:"IS_SECURE_SEARCH_SET",USER_ACCEPTED_TOAST_ONCE:"USER_ACCEPTED_TOAST_ONCE",BLOCK_PAGE_RED_FIRST_VARIANT_COUNT:"BLOCK_PAGE_RED_FIRST_VARIANT_COUNT",BLOCK_PAGE_YELLOW_FIRST_VARIANT_COUNT:"BLOCK_PAGE_YELLOW_FIRST_VARIANT_COUNT",BLOCK_PAGE_PHISHING_FIRST_VARIANT_COUNT:"BLOCK_PAGE_PHISHING_FIRST_VARIANT_COUNT",IFRAME_BLOCK_FIRST_TIME:"IFRAME_BLOCK_FIRST_TIME",FIND_SIMILAR_PAGES_TOGGLE:"FIND_SIMILAR_PAGES_TOGGLE",FIND_SIMILAR_PAGES_COUNT:"FIND_SIMILAR_PAGES_COUNT",FIND_SIMILAR_PAGES_LAST_SHOWN:"FIND_SIMILAR_PAGES_LAST_SHOWN",FIND_SIMILAR_PAGES_FIRST_SHOWN:"FIND_SIMILAR_PAGES_FIRST_SHOWN",FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT:"FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT",FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT:"FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT",POST_INSTALLATION_PAGE_SHOWED:"POST_INSTALLATION_PAGE_SHOWED",AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT:"AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT",AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN:"AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN",AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN:"AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN",BLAST_SEARCH_BASE_FIRST_TIME:"BLAST_SEARCH_BASE_FIRST_TIME",ENGINES:"ENGINES",ENGINES_FUTURE_TIME:"ENGINES_FUTURE_TIME",ENGINES_VERSION:"ENGINES_VERSION"},a={CACHE_TYPOQUATTING:"CACHE_TYPOQUATTING",SS_TOAST_ACCEPTED:"SS_TOAST_ACCEPTED",USER_ACCEPTED_ADBLOCK_TOAST:"USER_ACCEPTED_ADBLOCK_TOAST",DOWNLOAD_SCANNING_QUEUE:"DOWNLOAD_SCANNING_QUEUE",RAT_DETECTION_SHOWING:"RAT_DETECTION_SHOWING",SS_WELCOME_OVERLAY_PER_SESSION:"SS_WELCOME_OVERLAY_PER_SESSION",AMAZON_UPSELL_SHOPPING_SHOWING:"AMAZON_UPSELL_SHOPPING_SHOWING"}},function(e,t,n){"use strict";var r=n(3),s=n(6);class a{static set(e,t){const n={};n[e]=t,r.a.storage.local.set(n)}static get(e){return new Promise(t=>r.a.storage.local.get(e,n=>((t,n)=>{let r=n[e];const s=typeof r;"boolean"!==s&&"number"!==s&&(r=r||null),t(r)})(t,n)))}static clear(e){r.a.storage.local.remove(e)}}class i{constructor(){this.tabData=new Map}static getResetValues(){return{adblockDisabled:!1,adsBlocked:0,trackersBlocked:0,actionPanelData:{},blockedIframes:[],cryptoBlockData:null,tabDomainTrusted:!1}}static getDefaultValues(){return{adblockWhitelist:[],...i.getResetValues()}}reset(e){this.update(e,i.getResetValues())}get(e){return this.tabData.get(e)||i.getDefaultValues()}set(e,t){this.tabData.set(e,t)}delete(e){this.tabData.delete(e)}getMap(){return this.tabData}update(e,t){const n=this.get(e);this.set(e,{...n,...t})}setTabBlockPageData(e,t){const n=this.get(e);this.set(e,{...n,blockPageData:t})}addBlockedFrame(e,t){this.get(e).blockedIframes.push(t)}getBlockedFrames(e){return this.get(e).blockedIframes}resetBlockedFrames(e){this.get(e).blockedIframes=[]}}var o=n(2),c=n(9),l=n(19);var u=n(23);n.d(t,"a",(function(){return d}));const d={FFSearchExtensionDownloadUrl:"https://sadownload.mcafee.com/products/SA/Win/xpi/searchextension/searchextension.xpi",uninstallSurveyUrl:"https://www.surveymonkey.com/r/mcafeewebadvisor",postInstallationPage:"https://www.mcafee.com/consumer/v/wa-how.html",listenerManager:null,wssNativeClient:null,firefoxInternalUUID:"",shadowMode:"closed",adblockManager:null,browserAction:null,browserType:o.g.BROWSER_TYPE,cacheStore:new class{constructor(){this.initialized=!1;for(const e of Object.values(s.c))this[e]=null;for(const e of Object.values(s.a))this[e]=null;this.init()}init(){const e=[];for(const t of Object.values(s.c))e.push(a.get(t).then(e=>{const n={};return n.storeVariable=t,n.result=e,n}));Promise.all(e).then(e=>{e.forEach(({storeVariable:e,result:t})=>{const n=typeof t;"boolean"!==n&&"number"!==n&&(t=t||null),this[e]=t}),this.initialized=!0})}isInit(){return new Promise((e,t)=>{this.initialized&&e(!0);let n=0;const r=window.setInterval(()=>{this.initialized?(window.clearInterval(r),e(!0)):10==++n&&(window.clearInterval(r),t(new Error("Cache store took too long to initialize")))},500)})}get(e,t){const n=this[e];return arguments.length<2?n:null==n?t:n}set(e,t){this[e]=t,s.c[e]&&a.set(e,t)}clear(e){void 0!==this[e]&&(this[e]=null,s.c[e]&&a.clear(e))}},ffViewports:null,garbageCollector:new class{constructor(){this.collection=[]}add(e){this.collection.push(e),1===this.collection.length&&this.setCleanUpTimer()}setCleanUpTimer(){setInterval(()=>{this.collection.forEach(e=>{e.checkCache()})},36e5)}},gtiCache:new u.GTICache(o.g),logger:null,messageDispatcher:null,port:null,tabData:new i,tabIdToLastClickTime:new Map,useNativeLogger:!1,wasm:null,userAgentInBase64:null,gtiServer:c.a.GTI_SERVER,typoSquattingServer:c.a.TYPOSQUATTING_SERVER,tldParser:null,cryptoBlacklist:c.b,ratBlacklist:c.c,trustedDomains:c.d,nativeSettings:l.b,searchSuggest:null,searchEngines:null,enginesVersionUrl:c.a.ENGINE_VERSION_URL,engineCheckInterval:864e5,ENGINES_VERSION:o.g.ENGINES_VERSION,WSS_INSTALLED:null,AP_FEATURE_ENABLED:!1,AUTO_PLAY_NOTIFICATION_ENABLED:!1,PPS_MODE:o.g.PPS_MODE,ALLOW_LOCALHOST:!1,RAT_DETECTION_CATEGORIES:[142],AMAZON_EXTN_TRIGGER_CATEGORIES:[136]}},function(e,t,n){"use strict";var r=n(2),s=n(17),a=n(13),i=n(5),o=n(3),c=n(1);n.d(t,"a",(function(){return l}));const l={uid:"0DE9E47C-871A-4F90-8440-B190C216800A",browserType:r.g.BROWSER_TYPE,externalMsgDispatcher:new class{isvalidRequestType(e){let t=!1;for(const n in c.e)c.e[n]===e&&(t=!0);return t}validateMsg(e,t){return!(void 0===e||void 0===t||!this.isvalidRequestType(e))||(i.a.logError("Invalid msg to be sent externally"),!1)}sendExtnMsg(e,t,n){const{request_type:r,payload:s}=t;if(!this.validateMsg(r,s))return;return new Promise((r,s)=>{o.a.runtime.sendMessage(e,t,e=>{"function"==typeof n?n(r,s,e):((e,t,n)=>{o.a.runtime.lastError&&t(o.a.runtime.lastError.message),e(n)})(r,s,e)})})}},reputationReqCount:5,imageCounter:0,isSearchPage:!1,isSearchHitSend:!1,resourceRequestor:null,gtiRequestor:null,clientFunctions:null,activeURI:null,mapSelectors:null,eventHandler:null,bkGlobals:null,searchEngine:null,searchAnnotationOption:a.a.ONLY_SECURE_SEARCH,socialMediaOption:s.c.NONE,socialMediaToggle:!1,hasReportPage:!0,PPS_MODE:r.g.PPS_MODE,ssExperienceDetected:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i}));const r={MAX_CACHE_RECORDS:1e3,MAX_RESERVED_CALLBACK_ID:5,PHISHING_CATEGORY:169,SITE_ADVISOR_URL:"www.siteadvisor.com/",GTI_SERVER:"https://webadvisorc.rest.gti.mcafee.com/1",TYPOSQUATTING_SERVER:"https://mip.api.mcafeewebadvisor.com/v1/typosquatting?",ENGINE_VERSION_URL:"https://sadownload.mcafee.com/products/SA/Win/extensions/engines/update.json"},s=new Set(["www.mcafee.com"]),a=["wss://*.gasolina.ml/*","*://kissdoujin.com/Content/js/c-hive.js*","wss://*.sen-to-zdrowie.ml/*","*://cookiescript.info/libs/*","*://rocks.io/assets/*","*://coin-have.com/c/*","*://coinnebula.com/lib/*","wss://*.coin-have.com/","ws://digger.cryptobara.com/*","ws://*.webminepool.tk/*","*://*.lewd.ninja/static/m.js*","*://tokyodrift.ga/dropyoulike/a-o/*","*://*.2giga.link/hive/lib/*","*://papoto.com/lib/*","*://load.jsecoin.com/*","ws://*.1q2w3.fun/*","*://*/*plugins/ajcryptominer/assets/*","*://monerominer.rocks/miner.php*","*://minemytraffic.com/*","*://*.monerise.com/core/*","*://*.cookiescript.info/libs/*","ws://hive.tubetitties.com/*","wss://*.freecontent.racing/*","wss://*.hodling.faith/*","ws://gtg02.bestsecurepractice.com/proxy","*://cryptoloot.pro/lib/*","*://lmodr.biz/*","*://*.webminepool.com/lib/base.js","ws://*.sen-to-zdrowie.ml/*","ws://*.morningdigit.com/*","*://mine.nahnoji.cz/*","*://*.minescripts.info/*","*://jsecoin.com/server*","*://coinhive.com/lib*","wss://*.webminepool.tk/*","ws://*.monerise.com/proxy/*","*://kisshentai.net/Content/js/c-hive.js*","*://mataharirama.xyz/*","*://*.coinpirate.cf/*","ws://*.playerassets.info/*","wss://*.1q2w3.fun/*","*://*.1q2w3.fun/*","*://anime.reactor.cc/js/ch/cryptonight.wasm*","*://webmine.cz/miner*","wss://ws.l33tsite.info/*","*://coinhive.com/captcha*","wss://www.mutuza.win/proxy","*://*.morningdigit.com/*","ws://*.host.d-ns.ga/*","*://*.doubleclick5.xyz/*","*://miner.pr0gramm.com/xmr.min.js*","*://*.freecontent.bid/*","ws://lewd.ninja/comics/*","wss://*.monerise.com:9333/proxy/*","*://*.webminepool.com/lib/captcha.js","*://coinerra.com/lib/*","*://*.playerassets.info/*","wss://*.webmine.pro/*","wss://lewd.ninja/comics/*","*://*.doubleclick1.xyz/*","ws://*.freecontent.racing/*","*://*.googleanalytcs.com/*","wss://*.coinnebula.com/proxy*","ws://*.monerise.com:9333/proxy/*","ws://*.freecontent.loan/*","*://party-nngvitbizn.now.sh/*","wss://api.l33tsite.info/*","*://coinlab.biz/lib/coinlab.js*","wss://*.monerise.com/proxy/*","ws://www.mutuza.win/proxy","*://jscdndel.com/content/vidm.min.js*","*://listat.biz/*","*://minecrunch.co/web/*","ws://*.chainblock.science/*","*://baiduccdn1.com/lib/*","*://*.mutuza.win/worker.js","*://*.load.jsecoin.com/*","*://ppoi.org/lib/*","wss://*.chainblock.science/*","wss://*.crypto-loot.com/proxy*","wss://gtg02.bestsecurepractice.com/proxy","wss://*.coinhive.com/proxy*","*://coin-hive.com/captcha*","*://jsccnn.com/content/vidm.min.js*","*://monerominer.rocks/scripts/miner.js*","*://*.jsecoin.com/server*","*://server.jsecoin.com/*","wss://*.coin-hive.com/proxy*","*://*.doubleclick4.xyz/*","*://miner.cryptobara.com/client/*","*://*.rocks.io/assets/*","*://*.ppoi.org/lib/*","*://you.tubetitties.com/worker.js*","wss://*.googleanalytcs.com/*","wss://hive.tubetitties.com/*","*://static.reasedoper.pw/*","*://*.ppoi.org/token/*","ws://*.webmine.pro/*","*://you.tubetitties.com/hash.wasm*","*://*.doubleclick3.xyz/*","*://*.turnsocial.com/m.js","ws://*.hodling.faith/*","wss://*.morningdigit.com/*","*://*.ad-miner.com/lib/*","wss://*.2giga.link/wproxy*","ws://*.googleanalytcs.com/*","*://*.doubleclick6.xyz/*","ws://turnsocial.now.sh/*","*://cdn.cloudcoins.co/javascript/cloudcoins.min.js*","*://joyreactor.cc/ws/ch/*","*://minero.pw/miner.min.js*","*://*.webmine.pro/*","*://punchsub.net/chm.js","wss://mine.nahnoji.cz/*","wss://mine.torrent.pw/*","*://*.mutuza.win/lib/*","*://*.kickass.cd/power2/m.js","ws://*.cpu2cash.link/*","*://*.server.jsecoin.com/*","*://*.mutuza.win/processor.js","wss://turnsocial.now.sh/*","*://kiwifarms.net/js/Jawsh/xmr/xmr.min.js*","*://*.rocks.io/proxy*","*://crypto-loot.com/lib*","*://*.chmproxy.bid/lib/*","ws://*.gasolina.ml/*","*://*.stackpathdns.com/assets/javascript/cr.js","*://*.coinblind.com/lib/*","*://miner.pr0gramm.com/pm.min.js*","*://*.bewhoyouare.gq/*","wss://*.zlx.com.br/proxy*","*://a-o.ninja/apk-AO/kingofthenorth/*","*://ad-miner.com/lib/*","*://*.webminepool.com/api/*","*://*.cpu2cash.link/*","*://*.hemnes.win/*","wss://*.cpu2cash.link/*","ws://*.coinpirate.cf/*","ws://ws.l33tsite.info/*","*://digger.cryptobara.com/client/*","*://kickass.cd/m.js*","ws://*.zlx.com.br/proxy*","*://*.doubleclick2.xyz/*","*://*.amazonaws.com/doubleclick13/*","wss://*.freecontent.loan/*","*://*.host.d-ns.ga/*","*://*.candid.zone/youtube.com/*","ws://api.l33tsite.info/*","*://gtg2.bestsecurepractice.com/lib/*","wss://*.host.d-ns.ga/*","*://coin-hive.com/lib*","ws://mine.nahnoji.cz/*","wss://*.playerassets.info/*","*://*.afminer.com/code/*","wss://*.coinpirate.cf/*","*://cookiescriptcdn.pro/libs/*","*://*.goredirect.party/assets/*","*://*.ZLX.COM.BR/assets/min.js*","*://*.ZLX.COM.BR/assets/playermon.js*","*://p.hemnes.win/lib/*","*://gtg02.bestsecurepractice.com/proxy2/*","*://gtg02.bestsecurepractice.com/meri.js","*://gtg02.bestsecurepractice.com/lv.js","*://gtg02.bestsecurepractice.com/worker.js","*://gtg02.bestsecurepractice.com/processor.js","*://gtg02.bestsecurepractice.com/demo.html","*://*.turnsocial.com/c.wasm*","*://*.turnsocial.com/m.js*","*://cdn.minescripts.info/c/*","*://tokyodrift.ga/dropyoulike/backup/c.wasm*","*://punchsub.net/chm2.js","*://*.kickass.cd/webmr4.js","*://*.kickass.cd/m.js","wss://*.authedmine.com/proxy"],i=["www.beyondtrust.com","www.beamyourscreen.com","www.connectwise.com","get.gotoassist.com","fastsupport.gotoassist.com","www.join.me","www.mikogo.com","www.mikogo.de","www.noip.com","www.securelink.com","join.zoho.com"]},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(0),s=n(13),a=n(7),i=n(5),o=n(29);class c{static sendTelemetryMessages(t,n){const o=n.trigger.sendTelemetry||!1,c=n.trigger.action,l=[r.m.ACTION.CLICK],u=e=>{n.messages.forEach(n=>{const a=Object.assign({},n.template),i=o&&(void 0===a.count||0!==a.count);let u=l.includes(c);if(c===r.m.ACTION.KEYDOWN&&t.whitelistedKeys){const n=e.keyCode;u=t.whitelistedKeys.includes(n)}if(t.hasCheckBox)if(n.template.name===r.e.ADBLOCK.WHITELISTED)a.interaction_type=t.containerMeta.query(".adblock-switch").attr("checked")?r.h.ADBLOCK.UNWHITELISTED:r.h.ADBLOCK.WHITELISTED;else if(!n.template.action_type){const e=t.toastData.providerId===s.c.YAHOO?t.containerMeta.query(".toast_content__checkbox > input").prop(r.m.MISC.CHECKED)?r.m.MISC.ACCEPTED:r.m.MISC.DECLINED:r.m.MISC.ACCEPTED;a.action_type=e}(i||u)&&d(t.isFromBackground||!1,a)})},d=(e,t)=>{e?a.a.messageDispatcher.sendTelemetry(JSON.stringify(t)):i.a.sendTelemetry(JSON.stringify(t))};n.trigger.selector&&n.trigger.action?t.containerMeta?t.containerMeta.query(n.trigger.selector).eq(0).on(n.trigger.action,u):e(document).ready(()=>e(n.trigger.selector).eq(0).on(n.trigger.action,u)):(o||o&&n.trigger.state&&n.trigger.state===t.state)&&u()}static handle(e){new o.a(e).fetchTelemetryHandlers(e.identifier).forEach(t=>{this.sendTelemetryMessages(e,t)})}}}).call(this,n(18))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return _}));var r=n(7),s=n(2),a=n(6);const i={NONE:0,INFO:1,ERROR:2,ALL:3},o={INFO:1,ERROR:2},c={BACKGROUND:"BACKGROUND",CONTENT:"CONTENT",TELEMETRY:"TELEMETRY"},l={DEFAULT:"color: #000000; font-weight: normal; font-style:normal; background: #FFFFFF;",BACKGROUND:"color: #8D0DBA; font-weight: bold; background: #FFFFFF;",CONTENT:"color: #F54A26; font-weight: bold; background: #FFFFFF;",TELEMETRY:"color: #147831; font-weight: bold; background: #FFFFFF;"};class u{constructor(){this.nativeLogging=!1,this.browserType=s.g.BROWSER_TYPE,this.extensionType="wa"}setNativeLogging(e){r.a.useNativeLogger=e,this.nativeLogging=e}processLog(e,t,n){if(this.nativeLogging){const s={processType:t,browserType:this.browserType,extensionType:this.extensionType,logType:n,message:e};r.a.messageDispatcher.logger(s)}d(e,n,t)}log(e,t=c.BACKGROUND){this.processLog(e,t,i.INFO)}error(e,t=c.BACKGROUND){this.processLog(e,t,i.ERROR)}}const d=(e,t,n)=>{const r=_(),s=`%c[${n} - ${(new Date).toLocaleString()}]: %c${e}`,a=l.DEFAULT,c=l[n];r!==i.NONE&&(t!==o.ERROR||r!==i.ERROR&&r!==i.ALL||console.error(s,a,a),t!==o.INFO||r!==i.INFO&&r!==i.ALL||console.log(s,c,a))},_=()=>{const e=s.g.LOG_LEVEL,t=r.a.cacheStore.get(a.c.EXTENSION_LOGGING,null);return t&&Number.isInteger(t)&&Object.values(i).includes(t)?t:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i}));const r={GET:"GET",SET:"SET"},s={NONE:"NONE",ONLY_SECURE_SEARCH:"ONLY_SECURE_SEARCH",ALL:"ALL"},a={UNKNOWN:0,GOOGLE:1,YAHOO:2,AOL:3,ASK:4,UOL:5,GOO:6,MYWAY:7,TERRA:8,WEB:9,BIGLOBE:10,GMX:11,EXCITE:12,SKY:13,NAVER:14,NIFTY:15,RAKUTEN:16,IXQUICK:17,XFINITY:18,SOGOU:19,DOGPILE:20,SEARCH:21,WEBCRAWLER:22,BING:23,INFO:24,YANDEX:25,YIPPY:26,WOW:27,HAOSO:28,DUCKDUCKGO:30,ONESEARCH:31,LINKEDIN:100,FACEBOOK:101,YOUTUBE:102,INSTAGRAM:103,REDDIT:104,TWITTER:105},i={SHOPPING:{name:"shopping",variants:3},NEWS:{name:"news",variants:2},SEARCH:{name:"search",variants:1},COOKING:{name:"cooking",variants:1},STREAMING:{name:"streaming",variants:1},TRAVEL:{name:"travel",variants:1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2);const s={[r.f.CHROME]:{WebBoost:"klekeajafkkpokaofllcadenjdckhinm",SearchExtension:"enppghjcblldgigemljohkgpcompnjgh",NewTabExtension:"kanjcmmieblbpbihaafnedamppkhfadn",AutomationExtension:"bipjijaejfebbgbhchciejpabkhgpegh"},[r.f.FIREFOX]:{SearchExtension:"{DFC8025B-FC38-42B1-9E3A-DFA474F33D93}",AutomationExtension:"{B1BC313F-0344-4FAF-95F0-F7D121EF6D6F}"},[r.f.EDGE]:{}},a={[r.f.CHROME]:{AmazonAssistant:"pbjikboenpfhbbejgkoklgkhjpfogcam"}},i=s[r.g.BROWSER_TYPE],o=a[r.g.BROWSER_TYPE];class c{static isWhiteListed(e){return i&&Object.values(i).includes(e)}static isWhiteListedLimited(e){return o&&Object.values(o).includes(e)}static get(e){return o&&o[e]?o[e]:i[e]}static getExtnIds(){return Object.values(i)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(){this.tlds=null,this.getTlds()}getTlds(){fetch("https://publicsuffix.org/list/public_suffix_list.dat").then(e=>e.ok?e.text():null).then(e=>{const t=r.parseTLDData(e);this.tlds=t}).catch(()=>null)}static parseTLDData(e){const t={};if(!e)return null;const n=e.split(/\n/);for(let e=0;e<n.length;e+=1){let r=n[e];if(!r)continue;const s=r.indexOf("//");if(0===s)continue;s>0&&(r=r.substring(0,s));const a=r.replace(/^(\s|!|\*\.)/g,"");let i=(r.match(/\./g)||[]).length+1;i-=r.startsWith("!")?1:0,t[a]=i}return 0===Object.keys(t).length&&t.constructor===Object?null:t}parse(e){const t={hostname:"",subdomain:"",domain:"",domainOnly:"",suffix:""},n=new URL(e);if(!this.tlds||!n)return t;const{origin:r}=n,s=r.split(".");let a="",i=1;for(let e=s.length-1;e>=0;e-=1){const t=s[e];if(a=a?`${t}.${a}`:t,!this.tlds[a])break;i=this.tlds[a]}return s.length<=i?t:(t.subdomain=s.slice(0,-i-1).join("."),t.domain=s.slice(-i-1).join("."),t.domainOnly=s.slice(-i-1,-i).join("."),t.suffix=s.slice(-i).join("."),t.hostname=n.hostname,t)}static getURI(e){let t=e.split("?");return t.length>1?t[0]:(t=e.split("#"),t.length>1?t[0]:e)}static getCleanURI(e){let t=e;return t.endsWith("/")&&(t=t.slice(0,-1)),t.startsWith("http://")?t=t.slice(7):t.startsWith("https://")&&(t=t.slice(8)),this.getURI(t)}static getParam(e,t){const n=e.indexOf("?");if(-1===n)return null;const r=e.substring(n+1).split("&");for(let e=0;e<r.length;++e){const n=r[e].indexOf("=");if(-1!==n&&r[e].substring(0,n)===t){return r[e].substring(n+1)}}return null}static getDomain(e){if(void 0===e||!/^https?:\/\//.test(e))return"";return new URL(e).hostname}static decodeQueryParam(e){return decodeURIComponent(e.replace(/\+/g," "))}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(6);const s={BLOCK_PAGE:"BLOCK_PAGE",CRYPTOJACKING:"CRYPTOJACKING",TYPOSQUATTING:"TYPOSQUATTING",IFRAME:"IFRAME",RAT_DETECTION:"RAT_DETECTION"},a={BLOCK_PAGE:r.c.BLOCK_PAGE_WHITELIST,CRYPTOJACKING:r.c.CRYPTO_WHITELIST,TYPOSQUATTING:r.c.TYPOSQUATTING_WHITELIST,IFRAME:r.c.BLOCK_PAGE_WHITELIST,RAT_DETECTION:r.c.RAT_DETECTION_WHITELIST},i={ADD:"ADD",GET:"GET",REMOVE:"REMOVE",CLEAR:"CLEAR"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));const r={NONE:0,LINKEDIN:1,INSTAGRAM:2,YOUTUBE:4,FACEBOOK:8,TWITTER:16,REDDIT:32},s=Object.values(r).reduce((e,t)=>e+t),a={TOGGLE_ON:"TOGGLE_ON",TOGGLE_OFF:"TOGGLE_OFF",ANNOTATION_ENABLE_ALL:"ANNOTATION_ENABLE_ALL",ANNOTATION_DISABLE_ALL:"ANNOTATION_DISABLE_ALL",ANNOTATION_ENABLE:"ANNOTATION_ENABLE",ANNOTATION_DISABLE:"ANNOTATION_DISABLE",GET:"GET"}},function(e,t,n){var r;
/*!
 * jQuery JavaScript Library v3.5.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2020-04-10T15:07Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,s){"use strict";var a=[],i=Object.getPrototypeOf,o=a.slice,c=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},l=a.push,u=a.indexOf,d={},_=d.toString,h=d.hasOwnProperty,p=h.toString,E=p.call(Object),g={},T=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},f=function(e){return null!=e&&e===e.window},m=n.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var r,s,a=(n=n||m).createElement("script");if(a.text=e,t)for(r in S)(s=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,s);n.head.appendChild(a).parentNode.removeChild(a)}function O(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[_.call(e)]||"object":typeof e}var N=function(e,t){return new N.fn.init(e,t)};function I(e){var t=!!e&&"length"in e&&e.length,n=O(e);return!T(e)&&!f(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}N.fn=N.prototype={jquery:"3.5.0",constructor:N,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=N.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return N.each(this,e)},map:function(e){return this.pushStack(N.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(N.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(N.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:a.sort,splice:a.splice},N.extend=N.fn.extend=function(){var e,t,n,r,s,a,i=arguments[0]||{},o=1,c=arguments.length,l=!1;for("boolean"==typeof i&&(l=i,i=arguments[o]||{},o++),"object"==typeof i||T(i)||(i={}),o===c&&(i=this,o--);o<c;o++)if(null!=(e=arguments[o]))for(t in e)r=e[t],"__proto__"!==t&&i!==r&&(l&&r&&(N.isPlainObject(r)||(s=Array.isArray(r)))?(n=i[t],a=s&&!Array.isArray(n)?[]:s||N.isPlainObject(n)?n:{},s=!1,i[t]=N.extend(l,a,r)):void 0!==r&&(i[t]=r));return i},N.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==_.call(e))&&(!(t=i(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===E)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){A(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(I(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(I(Object(e))?N.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,s=e.length;r<n;r++)e[s++]=t[r];return e.length=s,e},grep:function(e,t,n){for(var r=[],s=0,a=e.length,i=!n;s<a;s++)!t(e[s],s)!==i&&r.push(e[s]);return r},map:function(e,t,n){var r,s,a=0,i=[];if(I(e))for(r=e.length;a<r;a++)null!=(s=t(e[a],a,n))&&i.push(s);else for(a in e)null!=(s=t(e[a],a,n))&&i.push(s);return c(i)},guid:1,support:g}),"function"==typeof Symbol&&(N.fn[Symbol.iterator]=a[Symbol.iterator]),N.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var C=
/*!
 * Sizzle CSS Selector Engine v2.3.5
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2020-03-14
 */
function(e){var t,n,r,s,a,i,o,c,l,u,d,_,h,p,E,g,T,f,m,S="sizzle"+1*new Date,A=e.document,O=0,N=0,I=ce(),C=ce(),b=ce(),y=ce(),R=function(e,t){return e===t&&(d=!0),0},L={}.hasOwnProperty,v=[],D=v.pop,w=v.push,P=v.push,M=v.slice,x=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},G="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",k="\\["+B+"*("+U+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+B+"*\\]",W=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+k+")*)|.*)\\)|)",H=new RegExp(B+"+","g"),F=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),K=new RegExp("^"+B+"*,"+B+"*"),q=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),j=new RegExp(B+"|>"),Y=new RegExp(W),V=new RegExp("^"+U+"$"),$={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+k),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+G+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){_()},ie=Se((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(v=M.call(A.childNodes),A.childNodes),v[A.childNodes.length].nodeType}catch(e){P={apply:v.length?function(e,t){w.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,s){var a,o,l,u,d,p,T,f=t&&t.ownerDocument,A=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return r;if(!s&&(_(t),t=t||h,E)){if(11!==A&&(d=Z.exec(e)))if(a=d[1]){if(9===A){if(!(l=t.getElementById(a)))return r;if(l.id===a)return r.push(l),r}else if(f&&(l=f.getElementById(a))&&m(t,l)&&l.id===a)return r.push(l),r}else{if(d[2])return P.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!y[e+" "]&&(!g||!g.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(T=e,f=t,1===A&&(j.test(e)||q.test(e))){for((f=ee.test(e)&&Te(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,se):t.setAttribute("id",u=S)),o=(p=i(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+me(p[o]);T=p.join(",")}try{return P.apply(r,f.querySelectorAll(T)),r}catch(t){y(e,!0)}finally{u===S&&t.removeAttribute("id")}}}return c(e.replace(F,"$1"),t,r,s)}function ce(){var e=[];return function t(n,s){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=s}}function le(e){return e[S]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),s=n.length;s--;)r.attrHandle[n[s]]=t}function _e(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Ee(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,r){for(var s,a=e([],n.length,t),i=a.length;i--;)n[s=a[i]]&&(n[s]=!(r[s]=n[s]))}))}))}function Te(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},a=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},_=oe.setDocument=function(e){var t,s,i=e?e.ownerDocument||e:A;return i!=h&&9===i.nodeType&&i.documentElement?(p=(h=i).documentElement,E=!a(h),A!=h&&(s=h.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ae,!1):s.attachEvent&&s.attachEvent("onunload",ae)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=S,!h.getElementsByName||!h.getElementsByName(S).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,r,s,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(s=t.getElementsByName(e),r=0;a=s[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[s++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},T=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+B+"*(?:value|"+G+")"),e.querySelectorAll("[id~="+S+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(f=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=f.call(e,"*"),f.call(e,"[s!='']:x"),T.push("!=",W)})),g=g.length&&new RegExp(g.join("|")),T=T.length&&new RegExp(T.join("|")),t=J.test(p.compareDocumentPosition),m=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},R=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==A&&m(A,e)?-1:t==h||t.ownerDocument==A&&m(A,t)?1:u?x(u,e)-x(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,s=e.parentNode,a=t.parentNode,i=[e],o=[t];if(!s||!a)return e==h?-1:t==h?1:s?-1:a?1:u?x(u,e)-x(u,t):0;if(s===a)return _e(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;i[r]===o[r];)r++;return r?_e(i[r],o[r]):i[r]==A?-1:o[r]==A?1:0},h):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(_(e),n.matchesSelector&&E&&!y[t+" "]&&(!T||!T.test(t))&&(!g||!g.test(t)))try{var r=f.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){y(t,!0)}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=h&&_(e),m(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=h&&_(e);var s=r.attrHandle[t.toLowerCase()],a=s&&L.call(r.attrHandle,t.toLowerCase())?s(e,t,!E):void 0;return void 0!==a?a:n.attributes||!E?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},oe.escape=function(e){return(e+"").replace(re,se)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],s=0,a=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(R),d){for(;t=e[a++];)t===e[a]&&(s=r.push(a));for(;s--;)e.splice(r[s],1)}return u=null,e},s=oe.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=s(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:le,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&I(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var s=oe.attr(r,e);return null==s?"!="===t:!t||(s+="","="===t?s===n:"!="===t?s!==n:"^="===t?n&&0===s.indexOf(n):"*="===t?n&&s.indexOf(n)>-1:"$="===t?n&&s.slice(-n.length)===n:"~="===t?(" "+s.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,s){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===s?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,_,h,p,E=a!==i?"nextSibling":"previousSibling",g=t.parentNode,T=o&&t.nodeName.toLowerCase(),f=!c&&!o,m=!1;if(g){if(a){for(;E;){for(_=t;_=_[E];)if(o?_.nodeName.toLowerCase()===T:1===_.nodeType)return!1;p=E="only"===e&&!p&&"nextSibling"}return!0}if(p=[i?g.firstChild:g.lastChild],i&&f){for(m=(h=(l=(u=(d=(_=g)[S]||(_[S]={}))[_.uniqueID]||(d[_.uniqueID]={}))[e]||[])[0]===O&&l[1])&&l[2],_=h&&g.childNodes[h];_=++h&&_&&_[E]||(m=h=0)||p.pop();)if(1===_.nodeType&&++m&&_===t){u[e]=[O,h,m];break}}else if(f&&(m=h=(l=(u=(d=(_=t)[S]||(_[S]={}))[_.uniqueID]||(d[_.uniqueID]={}))[e]||[])[0]===O&&l[1]),!1===m)for(;(_=++h&&_&&_[E]||(m=h=0)||p.pop())&&((o?_.nodeName.toLowerCase()!==T:1!==_.nodeType)||!++m||(f&&((u=(d=_[S]||(_[S]={}))[_.uniqueID]||(d[_.uniqueID]={}))[e]=[O,m]),_!==t)););return(m-=s)===r||m%r==0&&m/r>=0}}},PSEUDO:function(e,t){var n,s=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return s[S]?s(t):s.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,a=s(e,t),i=a.length;i--;)e[r=x(e,a[i])]=!(n[r]=a[i])})):function(e){return s(e,0,n)}):s}},pseudos:{not:le((function(e){var t=[],n=[],r=o(e.replace(F,"$1"));return r[S]?le((function(e,t,n,s){for(var a,i=r(e,null,s,[]),o=e.length;o--;)(a=i[o])&&(e[o]=!(t[o]=a))})):function(e,s,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return oe(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||s(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=E?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Ee(!1),disabled:Ee(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function fe(){}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Se(e,t,n){var r=t.dir,s=t.next,a=s||r,i=n&&"parentNode"===a,o=N++;return t.first?function(t,n,s){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,s);return!1}:function(t,n,c){var l,u,d,_=[O,o];if(c){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(u=(d=t[S]||(t[S]={}))[t.uniqueID]||(d[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[a])&&l[0]===O&&l[1]===o)return _[2]=l[2];if(u[a]=_,_[2]=e(t,n,c))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,r){for(var s=e.length;s--;)if(!e[s](t,n,r))return!1;return!0}:e[0]}function Oe(e,t,n,r,s){for(var a,i=[],o=0,c=e.length,l=null!=t;o<c;o++)(a=e[o])&&(n&&!n(a,r,s)||(i.push(a),l&&t.push(o)));return i}function Ne(e,t,n,r,s,a){return r&&!r[S]&&(r=Ne(r)),s&&!s[S]&&(s=Ne(s,a)),le((function(a,i,o,c){var l,u,d,_=[],h=[],p=i.length,E=a||function(e,t,n){for(var r=0,s=t.length;r<s;r++)oe(e,t[r],n);return n}(t||"*",o.nodeType?[o]:o,[]),g=!e||!a&&t?E:Oe(E,_,e,o,c),T=n?s||(a?e:p||r)?[]:i:g;if(n&&n(g,T,o,c),r)for(l=Oe(T,h),r(l,[],o,c),u=l.length;u--;)(d=l[u])&&(T[h[u]]=!(g[h[u]]=d));if(a){if(s||e){if(s){for(l=[],u=T.length;u--;)(d=T[u])&&l.push(g[u]=d);s(null,T=[],l,c)}for(u=T.length;u--;)(d=T[u])&&(l=s?x(a,d):_[u])>-1&&(a[l]=!(i[l]=d))}}else T=Oe(T===i?T.splice(p,T.length):T),s?s(null,i,T,c):P.apply(i,T)}))}function Ie(e){for(var t,n,s,a=e.length,i=r.relative[e[0].type],o=i||r.relative[" "],c=i?1:0,u=Se((function(e){return e===t}),o,!0),d=Se((function(e){return x(t,e)>-1}),o,!0),_=[function(e,n,r){var s=!i&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,s}];c<a;c++)if(n=r.relative[e[c].type])_=[Se(Ae(_),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[S]){for(s=++c;s<a&&!r.relative[e[s].type];s++);return Ne(c>1&&Ae(_),c>1&&me(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(F,"$1"),n,c<s&&Ie(e.slice(c,s)),s<a&&Ie(e=e.slice(s)),s<a&&me(e))}_.push(n)}return Ae(_)}return fe.prototype=r.filters=r.pseudos,r.setFilters=new fe,i=oe.tokenize=function(e,t){var n,s,a,i,o,c,l,u=C[e+" "];if(u)return t?0:u.slice(0);for(o=e,c=[],l=r.preFilter;o;){for(i in n&&!(s=K.exec(o))||(s&&(o=o.slice(s[0].length)||o),c.push(a=[])),n=!1,(s=q.exec(o))&&(n=s.shift(),a.push({value:n,type:s[0].replace(F," ")}),o=o.slice(n.length)),r.filter)!(s=$[i].exec(o))||l[i]&&!(s=l[i](s))||(n=s.shift(),a.push({value:n,type:i,matches:s}),o=o.slice(n.length));if(!n)break}return t?o.length:o?oe.error(e):C(e,c).slice(0)},o=oe.compile=function(e,t){var n,s=[],a=[],o=b[e+" "];if(!o){for(t||(t=i(e)),n=t.length;n--;)(o=Ie(t[n]))[S]?s.push(o):a.push(o);(o=b(e,function(e,t){var n=t.length>0,s=e.length>0,a=function(a,i,o,c,u){var d,p,g,T=0,f="0",m=a&&[],S=[],A=l,N=a||s&&r.find.TAG("*",u),I=O+=null==A?1:Math.random()||.1,C=N.length;for(u&&(l=i==h||i||u);f!==C&&null!=(d=N[f]);f++){if(s&&d){for(p=0,i||d.ownerDocument==h||(_(d),o=!E);g=e[p++];)if(g(d,i||h,o)){c.push(d);break}u&&(O=I)}n&&((d=!g&&d)&&T--,a&&m.push(d))}if(T+=f,n&&f!==T){for(p=0;g=t[p++];)g(m,S,i,o);if(a){if(T>0)for(;f--;)m[f]||S[f]||(S[f]=D.call(c));S=Oe(S)}P.apply(c,S),u&&!a&&S.length>0&&T+t.length>1&&oe.uniqueSort(c)}return u&&(O=I,l=A),m};return n?le(a):a}(a,s))).selector=e}return o},c=oe.select=function(e,t,n,s){var a,c,l,u,d,_="function"==typeof e&&e,h=!s&&i(e=_.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&E&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;_&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(a=$.needsContext.test(e)?0:c.length;a--&&(l=c[a],!r.relative[u=l.type]);)if((d=r.find[u])&&(s=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&Te(t.parentNode)||t))){if(c.splice(a,1),!(e=s.length&&me(c)))return P.apply(n,s),n;break}}return(_||o(e,h))(s,t,!E,n,!t||ee.test(e)&&Te(t.parentNode)||t),n},n.sortStable=S.split("").sort(R).join("")===S,n.detectDuplicates=!!d,_(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(G,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),oe}(n);N.find=C,N.expr=C.selectors,N.expr[":"]=N.expr.pseudos,N.uniqueSort=N.unique=C.uniqueSort,N.text=C.getText,N.isXMLDoc=C.isXML,N.contains=C.contains,N.escapeSelector=C.escape;var b=function(e,t,n){for(var r=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&N(e).is(n))break;r.push(e)}return r},y=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=N.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var v=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return T(t)?N.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?N.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?N.grep(e,(function(e){return u.call(t,e)>-1!==n})):N.filter(t,e,n)}N.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?N.find.matchesSelector(r,e)?[r]:[]:N.find.matches(e,N.grep(t,(function(e){return 1===e.nodeType})))},N.fn.extend({find:function(e){var t,n,r=this.length,s=this;if("string"!=typeof e)return this.pushStack(N(e).filter((function(){for(t=0;t<r;t++)if(N.contains(s[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)N.find(e,s[t],n);return r>1?N.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&R.test(e)?N(e):e||[],!1).length}});var w,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(N.fn.init=function(e,t,n){var r,s;if(!e)return this;if(n=n||w,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof N?t[0]:t,N.merge(this,N.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),v.test(r[1])&&N.isPlainObject(t))for(r in t)T(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(s=m.getElementById(r[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):T(e)?void 0!==n.ready?n.ready(e):e(N):N.makeArray(e,this)}).prototype=N.fn,w=N(m);var M=/^(?:parents|prev(?:Until|All))/,x={children:!0,contents:!0,next:!0,prev:!0};function G(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}N.fn.extend({has:function(e){var t=N(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(N.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,s=this.length,a=[],i="string"!=typeof e&&N(e);if(!R.test(e))for(;r<s;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&N.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?N.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(N(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(N.uniqueSort(N.merge(this.get(),N(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),N.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b(e,"parentNode")},parentsUntil:function(e,t,n){return b(e,"parentNode",n)},next:function(e){return G(e,"nextSibling")},prev:function(e){return G(e,"previousSibling")},nextAll:function(e){return b(e,"nextSibling")},prevAll:function(e){return b(e,"previousSibling")},nextUntil:function(e,t,n){return b(e,"nextSibling",n)},prevUntil:function(e,t,n){return b(e,"previousSibling",n)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),N.merge([],e.childNodes))}},(function(e,t){N.fn[e]=function(n,r){var s=N.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(s=N.filter(r,s)),this.length>1&&(x[e]||N.uniqueSort(s),M.test(e)&&s.reverse()),this.pushStack(s)}}));var B=/[^\x20\t\r\n\f]+/g;function U(e){return e}function k(e){throw e}function W(e,t,n,r){var s;try{e&&T(s=e.promise)?s.call(e).done(t).fail(n):e&&T(s=e.then)?s.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}N.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return N.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):N.extend({},e);var t,n,r,s,a=[],i=[],o=-1,c=function(){for(s=s||e.once,r=t=!0;i.length;o=-1)for(n=i.shift();++o<a.length;)!1===a[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=a.length,n=!1);e.memory||(n=!1),t=!1,s&&(a=n?[]:"")},l={add:function(){return a&&(n&&!t&&(o=a.length-1,i.push(n)),function t(n){N.each(n,(function(n,r){T(r)?e.unique&&l.has(r)||a.push(r):r&&r.length&&"string"!==O(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return N.each(arguments,(function(e,t){for(var n;(n=N.inArray(t,a,n))>-1;)a.splice(n,1),n<=o&&o--})),this},has:function(e){return e?N.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=i=[],a=n="",this},disabled:function(){return!a},lock:function(){return s=i=[],n||t||(a=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},N.extend({Deferred:function(e){var t=[["notify","progress",N.Callbacks("memory"),N.Callbacks("memory"),2],["resolve","done",N.Callbacks("once memory"),N.Callbacks("once memory"),0,"resolved"],["reject","fail",N.Callbacks("once memory"),N.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return N.Deferred((function(n){N.each(t,(function(t,r){var s=T(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=s&&s.apply(this,arguments);e&&T(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,s){var a=0;function i(e,t,r,s){return function(){var o=this,c=arguments,l=function(){var n,l;if(!(e<a)){if((n=r.apply(o,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,T(l)?s?l.call(n,i(a,t,U,s),i(a,t,k,s)):(a++,l.call(n,i(a,t,U,s),i(a,t,k,s),i(a,t,U,t.notifyWith))):(r!==U&&(o=void 0,c=[n]),(s||t.resolveWith)(o,c))}},u=s?l:function(){try{l()}catch(n){N.Deferred.exceptionHook&&N.Deferred.exceptionHook(n,u.stackTrace),e+1>=a&&(r!==k&&(o=void 0,c=[n]),t.rejectWith(o,c))}};e?u():(N.Deferred.getStackHook&&(u.stackTrace=N.Deferred.getStackHook()),n.setTimeout(u))}}return N.Deferred((function(n){t[0][3].add(i(0,n,T(s)?s:U,n.notifyWith)),t[1][3].add(i(0,n,T(e)?e:U)),t[2][3].add(i(0,n,T(r)?r:k))})).promise()},promise:function(e){return null!=e?N.extend(e,s):s}},a={};return N.each(t,(function(e,n){var i=n[2],o=n[5];s[n[1]]=i.add,o&&i.add((function(){r=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=i.fireWith})),s.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),s=o.call(arguments),a=N.Deferred(),i=function(e){return function(n){r[e]=this,s[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,s)}};if(t<=1&&(W(e,a.done(i(n)).resolve,a.reject,!t),"pending"===a.state()||T(s[n]&&s[n].then)))return a.then();for(;n--;)W(s[n],i(n),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;N.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&H.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},N.readyException=function(e){n.setTimeout((function(){throw e}))};var F=N.Deferred();function K(){m.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),N.ready()}N.fn.ready=function(e){return F.then(e).catch((function(e){N.readyException(e)})),this},N.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--N.readyWait:N.isReady)||(N.isReady=!0,!0!==e&&--N.readyWait>0||F.resolveWith(m,[N]))}}),N.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?n.setTimeout(N.ready):(m.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var q=function(e,t,n,r,s,a,i){var o=0,c=e.length,l=null==n;if("object"===O(n))for(o in s=!0,n)q(e,t,o,n[o],!0,a,i);else if(void 0!==r&&(s=!0,T(r)||(i=!0),l&&(i?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(N(e),n)})),t))for(;o<c;o++)t(e[o],n,i?r:r.call(e[o],o,t(e[o],n)));return s?e:l?t.call(e):c?t(e[0],n):a},j=/^-ms-/,Y=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function $(e){return e.replace(j,"ms-").replace(Y,V)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function z(){this.expando=N.expando+z.uid++}z.uid=1,z.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,s=this.cache(e);if("string"==typeof t)s[$(t)]=n;else for(r in t)s[$(r)]=t[r];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map($):(t=$(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||N.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!N.isEmptyObject(t)}};var Q=new z,J=new z,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}N.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),N.fn.extend({data:function(e,t){var n,r,s,a=this[0],i=a&&a.attributes;if(void 0===e){if(this.length&&(s=J.get(a),1===a.nodeType&&!Q.get(a,"hasDataAttrs"))){for(n=i.length;n--;)i[n]&&0===(r=i[n].name).indexOf("data-")&&(r=$(r.slice(5)),te(a,r,s[r]));Q.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each((function(){J.set(this,e)})):q(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=J.get(a,e))?n:void 0!==(n=te(a,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),N.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,N.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=N.queue(e,t),r=n.length,s=n.shift(),a=N._queueHooks(e,t);"inprogress"===s&&(s=n.shift(),r--),s&&("fx"===t&&n.unshift("inprogress"),delete a.stop,s.call(e,(function(){N.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:N.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),N.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?N.queue(this[0],e):void 0===t?this:this.each((function(){var n=N.queue(this,e,t);N._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&N.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){N.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,s=N.Deferred(),a=this,i=this.length,o=function(){--r||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=Q.get(a[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(o));return o(),s.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),se=["Top","Right","Bottom","Left"],ae=m.documentElement,ie=function(e){return N.contains(e.ownerDocument,e)},oe={composed:!0};ae.getRootNode&&(ie=function(e){return N.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===N.css(e,"display")};function le(e,t,n,r){var s,a,i=20,o=r?function(){return r.cur()}:function(){return N.css(e,t,"")},c=o(),l=n&&n[3]||(N.cssNumber[t]?"":"px"),u=e.nodeType&&(N.cssNumber[t]||"px"!==l&&+c)&&re.exec(N.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;i--;)N.style(e,t,u+l),(1-a)*(1-(a=o()/c||.5))<=0&&(i=0),u/=a;u*=2,N.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,s=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=s)),s}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,s=ue[r];return s||(t=n.body.appendChild(n.createElement(r)),s=N.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),ue[r]=s,s)}function _e(e,t){for(var n,r,s=[],a=0,i=e.length;a<i;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(s[a]=Q.get(r,"display")||null,s[a]||(r.style.display="")),""===r.style.display&&ce(r)&&(s[a]=de(r))):"none"!==n&&(s[a]="none",Q.set(r,"display",n)));for(a=0;a<i;a++)null!=s[a]&&(e[a].style.display=s[a]);return e}N.fn.extend({show:function(){return _e(this,!0)},hide:function(){return _e(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?N(this).show():N(this).hide()}))}});var he,pe,Ee=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;he=m.createDocumentFragment().appendChild(m.createElement("div")),(pe=m.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),g.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",g.option=!!he.lastChild;var fe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?N.merge([e],n):n}function Se(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,g.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);var Ae=/<|&#?\w+;/;function Oe(e,t,n,r,s){for(var a,i,o,c,l,u,d=t.createDocumentFragment(),_=[],h=0,p=e.length;h<p;h++)if((a=e[h])||0===a)if("object"===O(a))N.merge(_,a.nodeType?[a]:a);else if(Ae.test(a)){for(i=i||d.appendChild(t.createElement("div")),o=(ge.exec(a)||["",""])[1].toLowerCase(),c=fe[o]||fe._default,i.innerHTML=c[1]+N.htmlPrefilter(a)+c[2],u=c[0];u--;)i=i.lastChild;N.merge(_,i.childNodes),(i=d.firstChild).textContent=""}else _.push(t.createTextNode(a));for(d.textContent="",h=0;a=_[h++];)if(r&&N.inArray(a,r)>-1)s&&s.push(a);else if(l=ie(a),i=me(d.appendChild(a),"script"),l&&Se(i),n)for(u=0;a=i[u++];)Te.test(a.type||"")&&n.push(a);return d}var Ne=/^key/,Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function ye(){return!1}function Re(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,r,s,a){var i,o;if("object"==typeof t){for(o in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,o,n,r,t[o],a);return e}if(null==r&&null==s?(s=n,r=n=void 0):null==s&&("string"==typeof n?(s=r,r=void 0):(s=r,r=n,n=void 0)),!1===s)s=ye;else if(!s)return e;return 1===a&&(i=s,(s=function(e){return N().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=N.guid++)),e.each((function(){N.event.add(this,t,s,r,n)}))}function ve(e,t,n){n?(Q.set(e,t,!1),N.event.add(e,t,{namespace:!1,handler:function(e){var r,s,a=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(N.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Q.set(this,t,a),r=n(this,t),this[t](),a!==(s=Q.get(this,t))||r?Q.set(this,t,!1):s={},a!==s)return e.stopImmediatePropagation(),e.preventDefault(),s.value}else a.length&&(Q.set(this,t,{value:N.event.trigger(N.extend(a[0],N.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&N.event.add(e,t,be)}N.event={global:{},add:function(e,t,n,r,s){var a,i,o,c,l,u,d,_,h,p,E,g=Q.get(e);if(X(e))for(n.handler&&(n=(a=n).handler,s=a.selector),s&&N.find.matchesSelector(ae,s),n.guid||(n.guid=N.guid++),(c=g.events)||(c=g.events=Object.create(null)),(i=g.handle)||(i=g.handle=function(t){return void 0!==N&&N.event.triggered!==t.type?N.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(B)||[""]).length;l--;)h=E=(o=Ce.exec(t[l])||[])[1],p=(o[2]||"").split(".").sort(),h&&(d=N.event.special[h]||{},h=(s?d.delegateType:d.bindType)||h,d=N.event.special[h]||{},u=N.extend({type:h,origType:E,data:r,handler:n,guid:n.guid,selector:s,needsContext:s&&N.expr.match.needsContext.test(s),namespace:p.join(".")},a),(_=c[h])||((_=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,i)||e.addEventListener&&e.addEventListener(h,i)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),s?_.splice(_.delegateCount++,0,u):_.push(u),N.event.global[h]=!0)},remove:function(e,t,n,r,s){var a,i,o,c,l,u,d,_,h,p,E,g=Q.hasData(e)&&Q.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(h=E=(o=Ce.exec(t[l])||[])[1],p=(o[2]||"").split(".").sort(),h){for(d=N.event.special[h]||{},_=c[h=(r?d.delegateType:d.bindType)||h]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=_.length;a--;)u=_[a],!s&&E!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(_.splice(a,1),u.selector&&_.delegateCount--,d.remove&&d.remove.call(e,u));i&&!_.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||N.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)N.event.remove(e,h+t[l],n,r,!0);N.isEmptyObject(c)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,s,a,i,o=new Array(arguments.length),c=N.event.fix(e),l=(Q.get(this,"events")||Object.create(null))[c.type]||[],u=N.event.special[c.type]||{};for(o[0]=c,t=1;t<arguments.length;t++)o[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(i=N.event.handlers.call(this,c,l),t=0;(s=i[t++])&&!c.isPropagationStopped();)for(c.currentTarget=s.elem,n=0;(a=s.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==a.namespace&&!c.rnamespace.test(a.namespace)||(c.handleObj=a,c.data=a.data,void 0!==(r=((N.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,s,a,i,o=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],i={},n=0;n<c;n++)void 0===i[s=(r=t[n]).selector+" "]&&(i[s]=r.needsContext?N(s,this).index(l)>-1:N.find(s,this,null,[l]).length),i[s]&&a.push(r);a.length&&o.push({elem:l,handlers:a})}return l=this,c<t.length&&o.push({elem:l,handlers:t.slice(c)}),o},addProp:function(e,t){Object.defineProperty(N.Event.prototype,e,{enumerable:!0,configurable:!0,get:T(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[N.expando]?e:new N.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&L(t,"input")&&ve(t,"click",be),!1},trigger:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&L(t,"input")&&ve(t,"click"),!0},_default:function(e){var t=e.target;return Ee.test(t.type)&&t.click&&L(t,"input")&&Q.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},N.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},N.Event=function(e,t){if(!(this instanceof N.Event))return new N.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:ye,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&N.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[N.expando]=!0},N.Event.prototype={constructor:N.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},N.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ne.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ie.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},N.event.addProp),N.each({focus:"focusin",blur:"focusout"},(function(e,t){N.event.special[e]={setup:function(){return ve(this,e,Re),!1},trigger:function(){return ve(this,e),!0},delegateType:t}})),N.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){N.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,s=e.relatedTarget,a=e.handleObj;return s&&(s===r||N.contains(r,s))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),N.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,s;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,N(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each((function(){N.event.remove(this,e,n,t)}))}});var De=/<script|<style|<link/i,we=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&N(e).children("tbody")[0]||e}function xe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ge(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,s,a,i,o;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.get(e).events))for(s in Q.remove(t,"handle events"),o)for(n=0,r=o[s].length;n<r;n++)N.event.add(t,s,o[s][n]);J.hasData(e)&&(a=J.access(e),i=N.extend({},a),J.set(t,i))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ee.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ke(e,t,n,r){t=c(t);var s,a,i,o,l,u,d=0,_=e.length,h=_-1,p=t[0],E=T(p);if(E||_>1&&"string"==typeof p&&!g.checkClone&&we.test(p))return e.each((function(s){var a=e.eq(s);E&&(t[0]=p.call(this,s,a.html())),ke(a,t,n,r)}));if(_&&(a=(s=Oe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===s.childNodes.length&&(s=a),a||r)){for(o=(i=N.map(me(s,"script"),xe)).length;d<_;d++)l=s,d!==h&&(l=N.clone(l,!0,!0),o&&N.merge(i,me(l,"script"))),n.call(e[d],l,d);if(o)for(u=i[i.length-1].ownerDocument,N.map(i,Ge),d=0;d<o;d++)l=i[d],Te.test(l.type||"")&&!Q.access(l,"globalEval")&&N.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?N._evalUrl&&!l.noModule&&N._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):A(l.textContent.replace(Pe,""),l,u))}return e}function We(e,t,n){for(var r,s=t?N.filter(t,e):e,a=0;null!=(r=s[a]);a++)n||1!==r.nodeType||N.cleanData(me(r)),r.parentNode&&(n&&ie(r)&&Se(me(r,"script")),r.parentNode.removeChild(r));return e}N.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,s,a,i,o=e.cloneNode(!0),c=ie(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||N.isXMLDoc(e)))for(i=me(o),r=0,s=(a=me(e)).length;r<s;r++)Ue(a[r],i[r]);if(t)if(n)for(a=a||me(e),i=i||me(o),r=0,s=a.length;r<s;r++)Be(a[r],i[r]);else Be(e,o);return(i=me(o,"script")).length>0&&Se(i,!c&&me(e,"script")),o},cleanData:function(e){for(var t,n,r,s=N.event.special,a=0;void 0!==(n=e[a]);a++)if(X(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)s[r]?N.event.remove(n,r):N.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),N.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return q(this,(function(e){return void 0===e?N.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ke(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)}))},prepend:function(){return ke(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ke(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ke(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(N.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return N.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!fe[(ge.exec(e)||["",""])[1].toLowerCase()]){e=N.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(N.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ke(this,arguments,(function(t){var n=this.parentNode;N.inArray(this,e)<0&&(N.cleanData(me(this)),n&&n.replaceChild(t,this))}),e)}}),N.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){N.fn[e]=function(e){for(var n,r=[],s=N(e),a=s.length-1,i=0;i<=a;i++)n=i===a?this:this.clone(!0),N(s[i])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var He=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var r,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];for(s in r=n.call(e),t)e.style[s]=a[s];return r},qe=new RegExp(se.join("|"),"i");function je(e,t,n){var r,s,a,i,o=e.style;return(n=n||Fe(e))&&(""!==(i=n.getPropertyValue(t)||n[t])||ie(e)||(i=N.style(e,t)),!g.pixelBoxStyles()&&He.test(i)&&qe.test(t)&&(r=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=r,o.minWidth=s,o.maxWidth=a)),void 0!==i?i+"":i}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",i=36===t(e.right),s=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),ae.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,s,a,i,o,c,l=m.createElement("div"),u=m.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,N.extend(g,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,r,s;return null==o&&(e=m.createElement("table"),t=m.createElement("tr"),r=m.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",ae.appendChild(e).appendChild(t).appendChild(r),s=n.getComputedStyle(t),o=parseInt(s.height)>3,ae.removeChild(e)),o}}))}();var Ve=["Webkit","Moz","ms"],$e=m.createElement("div").style,Xe={};function ze(e){var t=N.cssProps[e]||Xe[e];return t||(e in $e?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in $e)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,s,a){var i="width"===t?1:0,o=0,c=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(c+=N.css(e,n+se[i],!0,s)),r?("content"===n&&(c-=N.css(e,"padding"+se[i],!0,s)),"margin"!==n&&(c-=N.css(e,"border"+se[i]+"Width",!0,s))):(c+=N.css(e,"padding"+se[i],!0,s),"padding"!==n?c+=N.css(e,"border"+se[i]+"Width",!0,s):o+=N.css(e,"border"+se[i]+"Width",!0,s));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-o-.5))||0),c}function rt(e,t,n){var r=Fe(e),s=(!g.boxSizingReliable()||n)&&"border-box"===N.css(e,"boxSizing",!1,r),a=s,i=je(e,t,r),o="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(i)){if(!n)return i;i="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&L(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===N.css(e,"display",!1,r))&&e.getClientRects().length&&(s="border-box"===N.css(e,"boxSizing",!1,r),(a=o in e)&&(i=e[o])),(i=parseFloat(i)||0)+nt(e,t,n||(s?"border":"content"),a,r,i)+"px"}function st(e,t,n,r,s){return new st.prototype.init(e,t,n,r,s)}N.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,i,o=$(t),c=Je.test(t),l=e.style;if(c||(t=ze(o)),i=N.cssHooks[t]||N.cssHooks[o],void 0===n)return i&&"get"in i&&void 0!==(s=i.get(e,!1,r))?s:l[t];"string"===(a=typeof n)&&(s=re.exec(n))&&s[1]&&(n=le(e,t,s),a="number"),null!=n&&n==n&&("number"!==a||c||(n+=s&&s[3]||(N.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var s,a,i,o=$(t);return Je.test(t)||(t=ze(o)),(i=N.cssHooks[t]||N.cssHooks[o])&&"get"in i&&(s=i.get(e,!0,n)),void 0===s&&(s=je(e,t,r)),"normal"===s&&t in et&&(s=et[t]),""===n||n?(a=parseFloat(s),!0===n||isFinite(a)?a||0:s):s}}),N.each(["height","width"],(function(e,t){N.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(N.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Ke(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var s,a=Fe(e),i=!g.scrollboxSize()&&"absolute"===a.position,o=(i||r)&&"border-box"===N.css(e,"boxSizing",!1,a),c=r?nt(e,t,r,o,a):0;return o&&i&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-nt(e,t,"border",!1,a)-.5)),c&&(s=re.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=N.css(e,t)),tt(0,n,c)}}})),N.cssHooks.marginLeft=Ye(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),N.each({margin:"",padding:"",border:"Width"},(function(e,t){N.cssHooks[e+t]={expand:function(n){for(var r=0,s={},a="string"==typeof n?n.split(" "):[n];r<4;r++)s[e+se[r]+t]=a[r]||a[r-2]||a[0];return s}},"margin"!==e&&(N.cssHooks[e+t].set=tt)})),N.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,s,a={},i=0;if(Array.isArray(t)){for(r=Fe(e),s=t.length;i<s;i++)a[t[i]]=N.css(e,t[i],!1,r);return a}return void 0!==n?N.style(e,t,n):N.css(e,t)}),e,t,arguments.length>1)}}),N.Tween=st,st.prototype={constructor:st,init:function(e,t,n,r,s,a){this.elem=e,this.prop=n,this.easing=s||N.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(N.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=N.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=N.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){N.fx.step[e.prop]?N.fx.step[e.prop](e):1!==e.elem.nodeType||!N.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:N.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},N.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},N.fx=st.prototype.init,N.fx.step={};var at,it,ot=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){it&&(!1===m.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,N.fx.interval),N.fx.tick())}function ut(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,s={height:e};for(t=t?1:0;r<4;r+=2-t)s["margin"+(n=se[r])]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function _t(e,t,n){for(var r,s=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,i=s.length;a<i;a++)if(r=s[a].call(n,t,e))return r}function ht(e,t,n){var r,s,a=0,i=ht.prefilters.length,o=N.Deferred().always((function(){delete c.elem})),c=function(){if(s)return!1;for(var t=at||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,i=l.tweens.length;a<i;a++)l.tweens[a].run(r);return o.notifyWith(e,[l,r,n]),r<1&&i?n:(i||o.notifyWith(e,[l,1,0]),o.resolveWith(e,[l]),!1)},l=o.promise({elem:e,props:N.extend({},t),opts:N.extend(!0,{specialEasing:{},easing:N.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=N.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(s)return this;for(s=!0;n<r;n++)l.tweens[n].run(1);return t?(o.notifyWith(e,[l,1,0]),o.resolveWith(e,[l,t])):o.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,s,a,i;for(n in e)if(s=t[r=$(n)],a=e[n],Array.isArray(a)&&(s=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(i=N.cssHooks[r])&&"expand"in i)for(n in a=i.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=s);else t[r]=s}(u,l.opts.specialEasing);a<i;a++)if(r=ht.prefilters[a].call(l,e,u,l.opts))return T(r.stop)&&(N._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return N.map(u,_t,l),T(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),N.fx.timer(N.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}N.Animation=N.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){T(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,s=e.length;r<s;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,s,a,i,o,c,l,u,d="width"in t||"height"in t,_=this,h={},p=e.style,E=e.nodeType&&ce(e),g=Q.get(e,"fxshow");for(r in n.queue||(null==(i=N._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,o=i.empty.fire,i.empty.fire=function(){i.unqueued||o()}),i.unqueued++,_.always((function(){_.always((function(){i.unqueued--,N.queue(e,"fx").length||i.empty.fire()}))}))),t)if(s=t[r],ot.test(s)){if(delete t[r],a=a||"toggle"===s,s===(E?"hide":"show")){if("show"!==s||!g||void 0===g[r])continue;E=!0}h[r]=g&&g[r]||N.style(e,r)}if((c=!N.isEmptyObject(t))||!N.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=Q.get(e,"display")),"none"===(u=N.css(e,"display"))&&(l?u=l:(_e([e],!0),l=e.style.display||l,u=N.css(e,"display"),_e([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===N.css(e,"float")&&(c||(_.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",_.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,h)c||(g?"hidden"in g&&(E=g.hidden):g=Q.access(e,"fxshow",{display:l}),a&&(g.hidden=!E),E&&_e([e],!0),_.done((function(){for(r in E||_e([e]),Q.remove(e,"fxshow"),h)N.style(e,r,h[r])}))),c=_t(E?g[r]:0,r,_),r in g||(g[r]=c.start,E&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),N.speed=function(e,t,n){var r=e&&"object"==typeof e?N.extend({},e):{complete:n||!n&&t||T(e)&&e,duration:e,easing:n&&t||t&&!T(t)&&t};return N.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in N.fx.speeds?r.duration=N.fx.speeds[r.duration]:r.duration=N.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){T(r.old)&&r.old.call(this),r.queue&&N.dequeue(this,r.queue)},r},N.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var s=N.isEmptyObject(e),a=N.speed(t,n,r),i=function(){var t=ht(this,N.extend({},e),a);(s||Q.get(this,"finish"))&&t.stop(!0)};return i.finish=i,s||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",a=N.timers,i=Q.get(this);if(s)i[s]&&i[s].stop&&r(i[s]);else for(s in i)i[s]&&i[s].stop&&ct.test(s)&&r(i[s]);for(s=a.length;s--;)a[s].elem!==this||null!=e&&a[s].queue!==e||(a[s].anim.stop(n),t=!1,a.splice(s,1));!t&&n||N.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),r=n[e+"queue"],s=n[e+"queueHooks"],a=N.timers,i=r?r.length:0;for(n.finish=!0,N.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),N.each(["toggle","show","hide"],(function(e,t){var n=N.fn[t];N.fn[t]=function(e,r,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,s)}})),N.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){N.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),N.timers=[],N.fx.tick=function(){var e,t=0,n=N.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||N.fx.stop(),at=void 0},N.fx.timer=function(e){N.timers.push(e),N.fx.start()},N.fx.interval=13,N.fx.start=function(){it||(it=!0,lt())},N.fx.stop=function(){it=null},N.fx.speeds={slow:600,fast:200,_default:400},N.fn.delay=function(e,t){return e=N.fx&&N.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var s=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(s)}}))},function(){var e=m.createElement("input"),t=m.createElement("select").appendChild(m.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=m.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,Et=N.expr.attrHandle;N.fn.extend({attr:function(e,t){return q(this,N.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){N.removeAttr(this,e)}))}}),N.extend({attr:function(e,t,n){var r,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?N.prop(e,t,n):(1===a&&N.isXMLDoc(e)||(s=N.attrHooks[t.toLowerCase()]||(N.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void N.removeAttr(e,t):s&&"set"in s&&void 0!==(r=s.set(e,n,t))?r:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(r=s.get(e,t))?r:null==(r=N.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,s=t&&t.match(B);if(s&&1===e.nodeType)for(;n=s[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?N.removeAttr(e,n):e.setAttribute(n,n),n}},N.each(N.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Et[t]||N.find.attr;Et[t]=function(e,t,r){var s,a,i=t.toLowerCase();return r||(a=Et[i],Et[i]=s,s=null!=n(e,t,r)?i:null,Et[i]=a),s}}));var gt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function ft(e){return(e.match(B)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}N.fn.extend({prop:function(e,t){return q(this,N.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[N.propFix[e]||e]}))}}),N.extend({prop:function(e,t,n){var r,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&N.isXMLDoc(e)||(t=N.propFix[t]||t,s=N.propHooks[t]),void 0!==n?s&&"set"in s&&void 0!==(r=s.set(e,n,t))?r:e[t]=n:s&&"get"in s&&null!==(r=s.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=N.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(N.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),N.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){N.propFix[this.toLowerCase()]=this})),N.fn.extend({addClass:function(e){var t,n,r,s,a,i,o,c=0;if(T(e))return this.each((function(t){N(this).addClass(e.call(this,t,mt(this)))}));if((t=St(e)).length)for(;n=this[c++];)if(s=mt(n),r=1===n.nodeType&&" "+ft(s)+" "){for(i=0;a=t[i++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");s!==(o=ft(r))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,s,a,i,o,c=0;if(T(e))return this.each((function(t){N(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=St(e)).length)for(;n=this[c++];)if(s=mt(n),r=1===n.nodeType&&" "+ft(s)+" "){for(i=0;a=t[i++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");s!==(o=ft(r))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):T(e)?this.each((function(n){N(this).toggleClass(e.call(this,n,mt(this),t),t)})):this.each((function(){var t,s,a,i;if(r)for(s=0,a=N(this),i=St(e);t=i[s++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=mt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;N.fn.extend({val:function(e){var t,n,r,s=this[0];return arguments.length?(r=T(e),this.each((function(n){var s;1===this.nodeType&&(null==(s=r?e.call(this,n,N(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=N.map(s,(function(e){return null==e?"":e+""}))),(t=N.valHooks[this.type]||N.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=N.valHooks[s.type]||N.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(At,""):null==n?"":n:void 0}}),N.extend({valHooks:{option:{get:function(e){var t=N.find.attr(e,"value");return null!=t?t:ft(N.text(e))}},select:{get:function(e){var t,n,r,s=e.options,a=e.selectedIndex,i="select-one"===e.type,o=i?null:[],c=i?a+1:s.length;for(r=a<0?c:i?a:0;r<c;r++)if(((n=s[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=N(n).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,r,s=e.options,a=N.makeArray(t),i=s.length;i--;)((r=s[i]).selected=N.inArray(N.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),N.each(["radio","checkbox"],(function(){N.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=N.inArray(N(e).val(),t)>-1}},g.checkOn||(N.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var Ot=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};N.extend(N.event,{trigger:function(e,t,r,s){var a,i,o,c,l,u,d,_,p=[r||m],E=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(i=_=o=r=r||m,3!==r.nodeType&&8!==r.nodeType&&!Ot.test(E+N.event.triggered)&&(E.indexOf(".")>-1&&(g=E.split("."),E=g.shift(),g.sort()),l=E.indexOf(":")<0&&"on"+E,(e=e[N.expando]?e:new N.Event(E,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:N.makeArray(t,[e]),d=N.event.special[E]||{},s||!d.trigger||!1!==d.trigger.apply(r,t))){if(!s&&!d.noBubble&&!f(r)){for(c=d.delegateType||E,Ot.test(c+E)||(i=i.parentNode);i;i=i.parentNode)p.push(i),o=i;o===(r.ownerDocument||m)&&p.push(o.defaultView||o.parentWindow||n)}for(a=0;(i=p[a++])&&!e.isPropagationStopped();)_=i,e.type=a>1?c:d.bindType||E,(u=(Q.get(i,"events")||Object.create(null))[e.type]&&Q.get(i,"handle"))&&u.apply(i,t),(u=l&&i[l])&&u.apply&&X(i)&&(e.result=u.apply(i,t),!1===e.result&&e.preventDefault());return e.type=E,s||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!X(r)||l&&T(r[E])&&!f(r)&&((o=r[l])&&(r[l]=null),N.event.triggered=E,e.isPropagationStopped()&&_.addEventListener(E,Nt),r[E](),e.isPropagationStopped()&&_.removeEventListener(E,Nt),N.event.triggered=void 0,o&&(r[l]=o)),e.result}},simulate:function(e,t,n){var r=N.extend(new N.Event,n,{type:e,isSimulated:!0});N.event.trigger(r,null,t)}}),N.fn.extend({trigger:function(e,t){return this.each((function(){N.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return N.event.trigger(e,t,n,!0)}}),g.focusin||N.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){N.event.simulate(t,e.target,N.event.fix(e))};N.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,s=Q.access(r,t);s||r.addEventListener(e,n,!0),Q.access(r,t,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,s=Q.access(r,t)-1;s?Q.access(r,t,s):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var It=n.location,Ct={guid:Date.now()},bt=/\?/;N.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||N.error("Invalid XML: "+e),t};var yt=/\[\]$/,Rt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,vt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var s;if(Array.isArray(t))N.each(t,(function(t,s){n||yt.test(e)?r(e,s):Dt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,n,r)}));else if(n||"object"!==O(t))r(e,t);else for(s in t)Dt(e+"["+s+"]",t[s],n,r)}N.param=function(e,t){var n,r=[],s=function(e,t){var n=T(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!N.isPlainObject(e))N.each(e,(function(){s(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,s);return r.join("&")},N.fn.extend({serialize:function(){return N.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=N.prop(this,"elements");return e?N.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!N(this).is(":disabled")&&vt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!Ee.test(e))})).map((function(e,t){var n=N(this).val();return null==n?null:Array.isArray(n)?N.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var wt=/%20/g,Pt=/#.*$/,Mt=/([?&])_=[^&]*/,xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ut={},kt={},Wt="*/".concat("*"),Ht=m.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,s=0,a=t.toLowerCase().match(B)||[];if(T(n))for(;r=a[s++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var s={},a=e===kt;function i(o){var c;return s[o]=!0,N.each(e[o]||[],(function(e,o){var l=o(t,n,r);return"string"!=typeof l||a||s[l]?a?!(c=l):void 0:(t.dataTypes.unshift(l),i(l),!1)})),c}return i(t.dataTypes[0])||!s["*"]&&i("*")}function qt(e,t){var n,r,s=N.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:r||(r={}))[n]=t[n]);return r&&N.extend(!0,e,r),e}Ht.href=It.href,N.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:It.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":N.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,N.ajaxSettings),t):qt(N.ajaxSettings,e)},ajaxPrefilter:Ft(Ut),ajaxTransport:Ft(kt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,s,a,i,o,c,l,u,d,_,h=N.ajaxSetup({},t),p=h.context||h,E=h.context&&(p.nodeType||p.jquery)?N(p):N.event,g=N.Deferred(),T=N.Callbacks("once memory"),f=h.statusCode||{},S={},A={},O="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(l){if(!i)for(i={};t=xt.exec(a);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)I.always(e[I.status]);else for(t in e)f[t]=[f[t],e[t]];return this},abort:function(e){var t=e||O;return r&&r.abort(t),C(0,t),this}};if(g.promise(I),h.url=((e||h.url||It.href)+"").replace(Bt,It.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(B)||[""],null==h.crossDomain){c=m.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ht.protocol+"//"+Ht.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=N.param(h.data,h.traditional)),Kt(Ut,h,t,I),l)return I;for(d in(u=N.event&&h.global)&&0==N.active++&&N.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gt.test(h.type),s=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(wt,"+")):(_=h.url.slice(s.length),h.data&&(h.processData||"string"==typeof h.data)&&(s+=(bt.test(s)?"&":"?")+h.data,delete h.data),!1===h.cache&&(s=s.replace(Mt,"$1"),_=(bt.test(s)?"&":"?")+"_="+Ct.guid+++_),h.url=s+_),h.ifModified&&(N.lastModified[s]&&I.setRequestHeader("If-Modified-Since",N.lastModified[s]),N.etag[s]&&I.setRequestHeader("If-None-Match",N.etag[s])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&I.setRequestHeader("Content-Type",h.contentType),I.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]),h.headers)I.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,I,h)||l))return I.abort();if(O="abort",T.add(h.complete),I.done(h.success),I.fail(h.error),r=Kt(kt,h,t,I)){if(I.readyState=1,u&&E.trigger("ajaxSend",[I,h]),l)return I;h.async&&h.timeout>0&&(o=n.setTimeout((function(){I.abort("timeout")}),h.timeout));try{l=!1,r.send(S,C)}catch(e){if(l)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,i,c){var d,_,m,S,A,O=t;l||(l=!0,o&&n.clearTimeout(o),r=void 0,a=c||"",I.readyState=e>0?4:0,d=e>=200&&e<300||304===e,i&&(S=function(e,t,n){for(var r,s,a,i,o=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(s in o)if(o[s]&&o[s].test(r)){c.unshift(s);break}if(c[0]in n)a=c[0];else{for(s in n){if(!c[0]||e.converters[s+" "+c[0]]){a=s;break}i||(i=s)}a=a||i}if(a)return a!==c[0]&&c.unshift(a),n[a]}(h,I,i)),!d&&N.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),S=function(e,t,n,r){var s,a,i,o,c,l={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)l[i.toLowerCase()]=e.converters[i];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift())if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(i=l[c+" "+a]||l["* "+a]))for(s in l)if((o=s.split(" "))[1]===a&&(i=l[c+" "+o[0]]||l["* "+o[0]])){!0===i?i=l[s]:!0!==l[s]&&(a=o[0],u.unshift(o[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}(h,S,I,d),d?(h.ifModified&&((A=I.getResponseHeader("Last-Modified"))&&(N.lastModified[s]=A),(A=I.getResponseHeader("etag"))&&(N.etag[s]=A)),204===e||"HEAD"===h.type?O="nocontent":304===e?O="notmodified":(O=S.state,_=S.data,d=!(m=S.error))):(m=O,!e&&O||(O="error",e<0&&(e=0))),I.status=e,I.statusText=(t||O)+"",d?g.resolveWith(p,[_,O,I]):g.rejectWith(p,[I,O,m]),I.statusCode(f),f=void 0,u&&E.trigger(d?"ajaxSuccess":"ajaxError",[I,h,d?_:m]),T.fireWith(p,[I,O]),u&&(E.trigger("ajaxComplete",[I,h]),--N.active||N.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,n){return N.get(e,t,n,"json")},getScript:function(e,t){return N.get(e,void 0,t,"script")}}),N.each(["get","post"],(function(e,t){N[t]=function(e,n,r,s){return T(n)&&(s=s||r,r=n,n=void 0),N.ajax(N.extend({url:e,type:t,dataType:s,data:n,success:r},N.isPlainObject(e)&&e))}})),N.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),N._evalUrl=function(e,t,n){return N.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){N.globalEval(e,t,n)}})},N.fn.extend({wrapAll:function(e){var t;return this[0]&&(T(e)&&(e=e.call(this[0])),t=N(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return T(e)?this.each((function(t){N(this).wrapInner(e.call(this,t))})):this.each((function(){var t=N(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=T(e);return this.each((function(n){N(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){N(this).replaceWith(this.childNodes)})),this}}),N.expr.pseudos.hidden=function(e){return!N.expr.pseudos.visible(e)},N.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},N.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var jt={0:200,1223:204},Yt=N.ajaxSettings.xhr();g.cors=!!Yt&&"withCredentials"in Yt,g.ajax=Yt=!!Yt,N.ajaxTransport((function(e){var t,r;if(g.cors||Yt&&!e.crossDomain)return{send:function(s,a){var i,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(i,s[i]);t=function(e){return function(){t&&(t=r=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(jt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),r=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=r:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),N.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),N.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return N.globalEval(e),e}}}),N.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),N.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,s){t=N("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Vt,$t=[],Xt=/(=)\?(?=&|$)|\?\?/;N.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||N.expando+"_"+Ct.guid++;return this[e]=!0,e}}),N.ajaxPrefilter("json jsonp",(function(e,t,r){var s,a,i,o=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=T(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Xt,"$1"+s):!1!==e.jsonp&&(e.url+=(bt.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return i||N.error(s+" was not called"),i[0]},e.dataTypes[0]="json",a=n[s],n[s]=function(){i=arguments},r.always((function(){void 0===a?N(n).removeProp(s):n[s]=a,e[s]&&(e.jsonpCallback=t.jsonpCallback,$t.push(s)),i&&T(a)&&a(i[0]),i=a=void 0})),"script"})),g.createHTMLDocument=((Vt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),N.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),a=!n&&[],(s=v.exec(e))?[t.createElement(s[1])]:(s=Oe([e],t,a),a&&a.length&&N(a).remove(),N.merge([],s.childNodes)));var r,s,a},N.fn.load=function(e,t,n){var r,s,a,i=this,o=e.indexOf(" ");return o>-1&&(r=ft(e.slice(o)),e=e.slice(0,o)),T(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),i.length>0&&N.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){a=arguments,i.html(r?N("<div>").append(N.parseHTML(e)).find(r):e)})).always(n&&function(e,t){i.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},N.expr.pseudos.animated=function(e){return N.grep(N.timers,(function(t){return e===t.elem})).length},N.offset={setOffset:function(e,t,n){var r,s,a,i,o,c,l=N.css(e,"position"),u=N(e),d={};"static"===l&&(e.style.position="relative"),o=u.offset(),a=N.css(e,"top"),c=N.css(e,"left"),("absolute"===l||"fixed"===l)&&(a+c).indexOf("auto")>-1?(i=(r=u.position()).top,s=r.left):(i=parseFloat(a)||0,s=parseFloat(c)||0),T(t)&&(t=t.call(e,n,N.extend({},o))),null!=t.top&&(d.top=t.top-o.top+i),null!=t.left&&(d.left=t.left-o.left+s),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},N.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){N.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],s={top:0,left:0};if("fixed"===N.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===N.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((s=N(e).offset()).top+=N.css(e,"borderTopWidth",!0),s.left+=N.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-N.css(r,"marginTop",!0),left:t.left-s.left-N.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===N.css(e,"position");)e=e.offsetParent;return e||ae}))}}),N.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;N.fn[e]=function(r){return q(this,(function(e,r,s){var a;if(f(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===s)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:s,n?s:a.pageYOffset):e[r]=s}),e,r,arguments.length)}})),N.each(["top","left"],(function(e,t){N.cssHooks[t]=Ye(g.pixelPosition,(function(e,n){if(n)return n=je(e,t),He.test(n)?N(e).position()[t]+"px":n}))})),N.each({Height:"height",Width:"width"},(function(e,t){N.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){N.fn[r]=function(s,a){var i=arguments.length&&(n||"boolean"!=typeof s),o=n||(!0===s||!0===a?"margin":"border");return q(this,(function(t,n,s){var a;return f(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===s?N.css(t,n,o):N.style(t,n,s,o)}),t,i?s:void 0,i)}}))})),N.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){N.fn[t]=function(e){return this.on(t,e)}})),N.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),N.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){N.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var zt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;N.proxy=function(e,t){var n,r,s;if("string"==typeof t&&(n=e[t],t=e,e=n),T(e))return r=o.call(arguments,2),(s=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||N.guid++,s},N.holdReady=function(e){e?N.readyWait++:N.ready(!0)},N.isArray=Array.isArray,N.parseJSON=JSON.parse,N.nodeName=L,N.isFunction=T,N.isWindow=f,N.camelCase=$,N.type=O,N.now=Date.now,N.isNumeric=function(e){var t=N.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},N.trim=function(e){return null==e?"":(e+"").replace(zt,"")},void 0===(r=function(){return N}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Jt=n.$;return N.noConflict=function(e){return n.$===N&&(n.$=Jt),e&&n.jQuery===N&&(n.jQuery=Qt),N},void 0===s&&(n.jQuery=n.$=N),N}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var r=n(2);class s{static PreprocessSecureSearchRegEx(e){return e.trim().split("\n")}static PreProcessAdBlockToast(e){return Boolean(e)}static getBrowserSuffix(){const{CH:e,FF:t,EDGE:n}={CH:"_ch",FF:"_ff",IE:"_ie",EDGE:"_ed"},s={};return s[r.f.EDGE]=n,s[r.f.FIREFOX]=t,s[r.f.CHROME]=e,s[r.g.BROWSER_TYPE]}}const a={SYSTEM:0,USER:1},{SYSTEM:i,USER:o}=a,c={NONE:0,INT:1,INT64:2,BOOL:3,STRING:4},l={WEBBOOST_AUTO_PLAY_NOTIFICATION:"AutoPlayNotificationRequired",WEBBOOST_UPSELL_DISABLED:"WBUpsellDisabled",USE_NATIVE_LOGGER:"UseNativeLogger"},u=s.getBrowserSuffix(),d={AFF_ID:{scope:i,name:"*Affid",value:0},BINARY_VERSION:{scope:i,name:"version",value:""},EXTENSION_VERSION_CH:{scope:i,name:"ChromeExtVersion",value:"",writeOnly:!0},EXTENSION_VERSION_FF:{scope:i,name:"*FirefoxXPIVersion",value:"",writeOnly:!0},EXTENSION_VERSION_ED:{scope:i,name:"EdgeExtVersion",value:"",writeOnly:!0},BROWSER_TYPE:{scope:i,name:"browsertype",value:"",writeOnly:!0},USER_AGENT:{scope:i,name:"useragent",value:"",writeOnly:!0},SUGGESTION_URL:{scope:i,name:"suggestion_url",value:""},SCRIPT_GENERATED_DEFAULT_SS_URL:{scope:o,name:`SCRIPT_GENERATED_DEFAULT_SS_URL${u}`,value:""},SECURE_SEARCH_REGEXES:{scope:o,name:"SECURE_SEARCH_REGEXES",value:"",preprocess:s.PreprocessSecureSearchRegEx},SHOW_SEARCH_SETTINGS:{scope:i,name:"*ShowSearchSettings",value:!0},SECURE_SEARCH_TOAST_STAMP:{scope:o,name:`*SSDateStampShowedToast${u}`,value:0},SECURE_SEARCH_ANNOTATION_ONLY:{scope:i,name:"*OnlyShowAnnotationsOnSecureSearch",value:!0},SECURE_SEARCH_SHOW_ICONS:{scope:o,name:"*Icons",value:!0},SECURE_SEARCH_CHOICE:{scope:o,name:`*SSToastChoice${u}`,value:!1,writeOnly:!0},FF_EXTENSION_LAST_TOAST_TIME:{scope:o,name:"ff_extension_last_toast_time",value:0,writeOnly:!0},FF_EXTENSION_TOAST_COUNT:{scope:o,name:"ff_extension_toast_count",value:0,writeOnly:!0},CHECKLIST_START_INGORE_DATE_AV:{scope:i,name:"startIgnoreDateAV",value:"",writeOnly:!0},CHECKLIST_START_IGNORE_DATE_FW:{scope:i,name:"startIgnoreDateFW",value:"",writeOnly:!0},CHECKLIST_IGNORE_DURACTION:{scope:i,name:"ignoreDuration",value:"14",writeOnly:!0},CHECKLIST_GRACE_PERIOD_AV:{scope:i,name:"fixGracePeriodStartDateAV",value:"",writeOnly:!0},CHECKLIST_GRACE_PERIOD_FW:{scope:i,name:"fixGracePeriodStartDateFW",value:"",writeOnly:!0},CHECKLIST_GRACE_PERIOD_DURATION:{scope:i,name:"fixGracePeriodDuration",value:"24",writeOnly:!0},AP_FEATURE_ENABLED:{scope:i,name:`adblock_toast${u}`,value:"",preprocess:s.PreProcessAdBlockToast},ADBLOCK_REENABLE_TOAST:{scope:o,name:"adblock_reenable_toast",value:!1},AP_USER_TOGGLE:{scope:o,name:`ap_user_toggle${u}`,value:!1},AB_USER_TOGGLE:{scope:o,name:`ab_user_toggle${u}`,value:!1},CRYPTOJACKING_DISABLED:{scope:i,name:"CryptojackingDisabled",value:!1},HIDE_MCAFEE_SECURE_ANNOTATIONS:{scope:i,name:"HideMcAfeeSecureAnnotations",value:!1},SMA_USER_TOGGLE:{scope:i,name:`sma_user_toggle${u}`,value:!1,writeOnly:!0},SMA_ANNOTATION_OPTIONS:{scope:i,name:`sma_annotation_options${u}`,value:0,writeOnly:!0},PAGES_SCANNED:{scope:i,name:"*CounterPagesScanned",value:0},PAGES_BLOCKED:{scope:i,name:"*CounterPagesBlocked",value:0},DOWNLOADS_SCANNED:{scope:i,name:"*CounterDownloadsScanned",value:0},DOWNLOADS_BLOCKED:{scope:i,name:"*CounterDownloadsBlocked",value:0},CRYPTO_BLOCKED:{scope:i,name:"*CounterCryptoJackingBlocked",value:0},BLOCKPAGE_WHITELIST:{scope:o,name:"*WhiteList",value:""},TS_WHITELIST:{scope:o,name:"*TListWhiteList",value:""},CSP_ID_SETTING:{scope:i,name:"CSPIdValue",value:"__not_available__"},UNINSTALL_SURVEY_ENABLED:{scope:i,name:"uninstall_survey_enabled",value:!1},UNINSTALL_SURVEY_URL:{scope:i,name:"uninstall_survey_url",value:""},RAT_DETECTION_ENABLED:{scope:i,name:"rat_detection_enabled",value:!0},FIND_SIMILAR_PAGES_ENABLED:{scope:i,name:"find_similar_pages_enabled",value:!1},FIND_SIMILAR_PAGES_CADENCE_PER_HOUR:{scope:i,name:"find_similar_pages_cadence_per_hour",value:0},FIND_SIMILAR_PAGES_TIMEOUT:{scope:i,name:"find_similar_pages_timeout",value:15e3},FIND_SIMILAR_PAGES_DELAY:{scope:i,name:"find_similar_pages_delay",value:0},FIND_SIMILAR_PAGES_LIMIT_COUNT_PER_DAY:{scope:i,name:"find_similar_pages_limit_count_per_day",value:0},FIND_SIMILAR_PAGES_USER_TOGGLE:{scope:i,name:`find_similar_pages_user_toggle${u}`,value:0},SS_WELCOME_EXPERIENCE_COHORT:{scope:i,name:"ss_welcome_experience_cohort",value:0},SS_WELCOME_ANNOTATION:{scope:i,name:"ss_welcome_annotation",value:!1},AMAZON_EXTN_TOAST_ENABLED:{scope:i,name:"amazon_extn_toast_enabled",value:!1},AMAZON_EXTN_TOAST_COHORT:{scope:i,name:"amazon_extn_toast_cohort",value:0},AMAZON_EXTN_TOAST_CADENCE:{scope:i,name:"amazon_extn_toast_cadence",value:3},AMAZON_EXTN_URL:{scope:i,name:"amazon_extn_url",value:"https://chrome.google.com/webstore/detail/amazon-assistant-for-chro/pbjikboenpfhbbejgkoklgkhjpfogcam?hl=en-US"},BLAST_TO_SEARCH_BASE_COHORT:{scope:i,name:"blast_to_search_base_cohort",value:0}}},function(e,t,n){const r=n(22);t.ResourceManager=class{static getHtml(e,t){r.ANNOTATION.resourceRequestor.getHtml(e,n=>{n?t(n):r.BackgroundIPC.logError(`Failed to fetch html ${e}`)})}static getImage(e,t){r.ANNOTATION.resourceRequestor.getImage(e,n=>{n?t(n):r.BackgroundIPC.logError(`Image ${e} failed to fetch through resource requestor`)})}static getJSON(e,t){r.ANNOTATION.resourceRequestor.getJSON(e,n=>{n?t(n):r.BackgroundIPC.logError(`Failed to fetch json ${e}`)})}static getLocalizedString(e){return r.ANNOTATION.resourceRequestor.geti18nRes(e)}static getResString(e,t){r.ANNOTATION.resourceRequestor.getResStr(e,n=>{n?t(n):r.BackgroundIPC.logError(`Resource string ${e} failed to fetch through resource requestor`)})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{onHttpResponse(e){if(!e.ok){const t=`HttpService Status: ${e.status}\nError Text: ${e.statusText}`;return Promise.reject(new Error(t))}return e}sendHttpRequest({url:e,headers:t,body:n,method:r="GET"}){return fetch(e,{headers:t,method:r,body:n}).then(this.onHttpResponse)}}},function(e,t){t.ANNOTATION={},t.BackgroundIPC=null,t.BackgroundCommons=null,t.ContextTelemetry=null,t.TelemetryEventNames=null,t.UrlParser=null,t.Utils=null,t.Commands={},t.CommonConstants={},t.extension=null,t.SearchEngineHelper=null},function(e,t,n){const r=n(27);n(26);t.GTICache=class{constructor(e){this.reputationCache=new Map,this.urlMap=new Map,r.GTI_CONSTANTS.pv=e.EXTENSION_VERSION}checkCache(){this.reputationCache.size>.5*r.GTI_CONSTANTS.maxCacheRecords&&this.cleanReputationCache()}cleanReputationCache(){this.reputationCache.forEach((e,t,n)=>{Date.now()>r.GTI_CONSTANTS.reputationTTL+e.timeCached&&n.delete(t)})}checkRequest(e){const t=[];return e.forEach(e=>{this.urlMap.has(e)&&t.push(this.urlMap.get(e))}),t}addRequest(e,t){e.forEach(e=>{this.urlMap.set(e,t)})}deleteRequest(e){e.forEach(e=>{this.urlMap.delete(e)})}setReputation(e,t){return!(this.reputationCache.size>r.GTI_CONSTANTS.maxCacheRecords)&&(this.reputationCache.set(e,{timeCached:Date.now(),value:t}),!0)}getReputation(e){const t=this.reputationCache.get(e),n={cache_entry:t};return t||(n.cache_entry=null),n}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),s=n(8),a=n(14);class i{static isAdblockDisabled(e){const t=a.a.get("SearchExtension"),n={command:r.a.IS_DISABLED,tabId:e},i={request_type:r.e.ADBLOCK,payload:n};return s.a.externalMsgDispatcher.sendExtnMsg(t,i)}static updateAdblockWhitelist(e,t){const n=a.a.get("SearchExtension"),i={command:e,tabId:t},o={request_type:r.e.ADBLOCK,payload:i};return s.a.externalMsgDispatcher.sendExtnMsg(n,o)}static toggleAdblockEngine(e){const t=a.a.get("SearchExtension"),n={command:e?r.a.TURN_ON:r.a.TURN_OFF},i={request_type:r.e.ADBLOCK,payload:n};return s.a.externalMsgDispatcher.sendExtnMsg(t,i)}static pingExtension(e){const t={request_type:r.e.PING,payload:{}};return s.a.externalMsgDispatcher.sendExtnMsg(e,t)}}},function(e,t){t.BackgroundGlobals=null,t.HttpService=null},function(e,t){const n={reputationTTL:36e5,maxGTIQuestionLength:16384,globalSafeModeFlag:536870912,contentType:"application/json; charset=utf-8",clientId:"87d8d1082c2f2f821f438b2359b7a5b4",prn:"McAfee WebAdvisor",sdkv:"1.0",pv:null,pev:1,gtiId:"is-webadvisorc-prod",customerId:"Customer0008",maxCacheRecords:1e3},r={None:0,SkipCustomKeywords:1,SkipCustomSites:2,SkipWebDatabaseNotKeywords:4,SkipWebDatabaseKeywords:8,SkipPatterns:16,SkipCGIPatterns:32,SkipEmbeddedURLs:64,SkipTrustedSourceQuery:128,All:2047};function s(e){this.cliid=n.clientId,this.prn=n.prn,this.sdkv=n.sdkv,this.pv=n.pv,this.pev=n.pev,this.rid=e,this.affid="0",this.cid=n.customerId}e.exports={gtiBody:function(e){this.ci=new s(e),this.q=[]},gtiQueryItems:function(){this.op=null,this.uop=r.SkipEmbeddedURLs,this.url=null,this.catset=4},gtiClientInfo:s,GTI_UPO_FLAGS:r,GTI_CONSTANTS:n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),s=n(4),a=n(7),i=n(8);class o{constructor(e){this._options=e,this.TELEMETRY_HANDLERS=this.initializeTelemetryHandler()}fetchTelemetryHandlers(e){const t=[];return this.TELEMETRY_HANDLERS.forEach(n=>{n.trigger.identifier&&e!==n.trigger.identifier||t.push(n)}),t}initializeTelemetryHandler(){return[{trigger:{identifier:r.e.ADBLOCK_INTERACTION,sendTelemetry:!(null===i.a.bkGlobals||!this._options.ads_count)&&i.a.bkGlobals.AP_FEATURE_ENABLED},messages:[{template:{name:r.e.ADBLOCK.BUBBLE,interaction_type:this._options.interaction_type,ads_count:this._options.ads_count,tracker_count:this._options.tracker_count,_event_name:r.e.ADBLOCK.BUBBLE,domain:this._options.domain,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.ADBLOCK_INTERACTION,selector:".adblock-switch",action:r.m.ACTION.CLICK,sendTelemetry:null!==i.a.bkGlobals&&i.a.bkGlobals.AP_FEATURE_ENABLED},messages:[{template:{name:r.e.ADBLOCK.WHITELISTED,domain:this._options.domain,browser:s.a.browserTypeToString(),_event_name:r.e.ADBLOCK.WHITELISTED}}]},{trigger:{identifier:r.e.ADBLOCK_INTERACTION,selector:"#settings_preference_ap_alert_button",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.GET_SEARCH_EXTENSION,interaction_type:0===this._options.status?r.h.ENABLE:r.h.ADD,source:r.m.MISC.PREFERENCE,_event_name:r.e.GET_SEARCH_EXTENSION,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,sendTelemetry:!0},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.IMPRESSION,reason:this._options.reason,_event_name:r.e.BADGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,selector:"#settings-link",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.PPS.GO_PROFILE,reason:this._options.reason,_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,selector:"#sidebar_badge_collection_btn_accept",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,selector:"#sidebar_ss_accepted_btn_got_it",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,selector:"#sidebar_ds_file_deleted_high_five",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:r.e.BADGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BADGE,selector:"#sidebar-close",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.BADGE,interaction_type:r.h.CLOSE_CLICKED,reason:this._options.reason,_event_name:r.e.BADGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,sendTelemetry:this._options.isFromBackground||!1},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.IMPRESSION,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.level===r.i.FRAME?a.a.PPS_MODE?r.b.NORMAL:null:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#settings-link",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.PPS.GO_PROFILE,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#sidebar_iframe_block_accept_risk",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.PPS.ACCEPT_RISK,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#sidebar_iframe_block_btn_block",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.PPS.BLOCKED,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#sidebar_block_page_btn_accept_risk",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.PPS.ACCEPT_RISK,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#sidebar_block_page_btn_block",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.PPS.BLOCKED,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BLOCK_PAGE,selector:"#sidebar-close",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.BLOCK_PAGE,interaction_type:r.h.CLOSE_CLICKED,colour:r.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BROWSER_ACTION_CLICKED,sendTelemetry:!0},messages:[{template:{name:r.g.BROWSER_ACTION_CLICKED,interaction_type:r.h.WEBADVISOR,badge_count:this._options.count,_event_name:r.e.BROWSER_ACTION_CLICKED,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BROWSER_BADGE_UPDATE,sendTelemetry:!0},messages:[{template:{name:r.e.BROWSER_BADGE_UPDATE,feature:r.h.BROWSER_BADGE.SMA,count:this._options.count,_event_name:r.e.BROWSER_BADGE_UPDATE,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.BROWSER_NAVIGATE,sendTelemetry:this._options.isFromBackground},messages:[{template:{url:this._options.url,browser:s.a.browserTypeToString(),_event_name:r.e.BROWSER_NAVIGATE}}]},{trigger:{identifier:r.e.CRYPTOJACKING_BLOCK,state:r.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{interaction_type:r.h.IMPRESSION,name:r.g.CRYPTOJACKING_BLOCK,_event_name:r.e.CRYPTOJACKING_BLOCK,browser:s.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:r.e.CRYPTOJACKING_BLOCK,selector:"#cryptojacking_learn_link",action:r.m.ACTION.CLICK},messages:[{template:{interaction_type:r.h.CRYPTOJACKING.LEARN_MORE_CLICKED,name:r.g.CRYPTOJACKING_BLOCK,_event_name:r.e.CRYPTOJACKING_BLOCK,browser:s.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:r.e.CRYPTOJACKING_BLOCK,selector:".crypto-block-actions__close",action:r.m.ACTION.CLICK},messages:[{template:{interaction_type:r.h.CLOSE_CLICKED,name:r.g.CRYPTOJACKING_BLOCK,_event_name:r.e.CRYPTOJACKING_BLOCK,browser:s.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:r.e.CRYPTOJACKING_BLOCK,selector:"#cryptojacking_banner_allow_btn",action:r.m.ACTION.CLICK},messages:[{template:{interaction_type:r.h.CRYPTOJACKING.WHITELISTED,name:r.g.CRYPTOJACKING_BLOCK,_event_name:r.e.CRYPTOJACKING_BLOCK,browser:s.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:r.e.DOWNLOAD_BLOCK,state:r.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:r.g.DOWNLOAD_BLOCK,interaction_type:r.h.IMPRESSION,process_name:r.m.MISC.UNKNOWN,file_name:r.m.MISC.UNKNOWN,colour:r.m.MISC.UNKNOWN,ui_type:r.m.MISC.ACTION_PANEL,_event_name:r.e.DOWNLOAD_BLOCK,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.DOWNLOAD_BLOCK,selector:"#ap_download_scanning_delete_file_btn",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.DOWNLOAD_BLOCK,interaction_type:r.h.PPS.BLOCKED,process_name:r.m.MISC.UNKNOWN,file_name:r.m.MISC.UNKNOWN,colour:r.m.MISC.UNKNOWN,ui_type:r.m.MISC.ACTION_PANEL,_event_name:r.e.DOWNLOAD_BLOCK,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.DOWNLOAD_BLOCK,selector:"#sidebar_ds_malicious_keep_file",action:r.m.ACTION.CLICK},messages:[{template:{name:r.g.DOWNLOAD_BLOCK,interaction_type:r.h.PPS.ACCEPT_RISK,process_name:r.m.MISC.UNKNOWN,file_name:r.m.MISC.UNKNOWN,colour:r.m.MISC.UNKNOWN,ui_type:r.m.MISC.ACTION_PANEL,_event_name:r.e.DOWNLOAD_BLOCK,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.DOWNLOAD_SCAN_UI,sendTelemetry:i.a.PPS_MODE},messages:[{template:{name:r.g.DOWNLOAD_SCAN_UI,interaction_type:this._options.interaction_type,count:this._options.count,_event_name:r.e.DOWNLOAD_SCAN_UI,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,sendTelemetry:!0},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.IMPRESSION,tab:r.c.toTelemetrySettingTab(r.f.PREFERENCE),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:`#${r.m.MISC.SETTINGS_TAB_PREFIX}${r.f.PREFERENCE}`,action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.IMPRESSION,tab:r.c.toTelemetrySettingTab(r.f.PREFERENCE),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:`#${r.m.MISC.SETTINGS_TAB_PREFIX}${r.f.WHITELIST}`,action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.IMPRESSION,tab:r.c.toTelemetrySettingTab(r.f.WHITELIST),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:`#${r.m.MISC.SETTINGS_TAB_PREFIX}${r.f.ABOUT}`,action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.IMPRESSION,tab:r.c.toTelemetrySettingTab(r.f.ABOUT),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:`#${r.m.MISC.SETTINGS_TAB_PREFIX}${r.f.STATISTICS}`,action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.IMPRESSION,tab:r.c.toTelemetrySettingTab(r.f.STATISTICS),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:"#settings_preference_reset_button",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.PPS.RESET_CLICKED,tab:r.c.toTelemetrySettingTab(r.f.PREFERENCE),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:"#remove-btn",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.PPS.WHITELIST_DELETED,tab:r.c.toTelemetrySettingTab(r.f.WHITELIST),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:"#add-btn",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.PPS.WHITELIST_ADDED,tab:r.c.toTelemetrySettingTab(r.f.WHITELIST),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.PROFILE_INFO,selector:"#settings_whitelist_input",action:r.m.ACTION.KEYDOWN},messages:[{template:{name:r.e.PROFILE_INFO,interaction_type:r.h.PPS.WHITELIST_ADDED,tab:r.c.toTelemetrySettingTab(r.f.WHITELIST),_event_name:r.e.PROFILE_INFO,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.SEARCH_SUGGEST_BLOCK_PAGE,selector:"#block_page_search_input",action:r.m.ACTION.KEYDOWN},messages:[{template:{name:r.e.SEARCH_SUGGEST,interaction_type:r.h.IMPRESSION,search_type:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString(),_event_name:r.e.SEARCH_SUGGEST}}]},{trigger:{identifier:r.e.SEARCH_SUGGEST_BLOCK_PAGE,sendTelemetry:this._options.selected},messages:[{template:{name:r.e.SEARCH_SUGGEST,interaction_type:r.h.SELECTION,search_type:r.e.BLOCK_PAGE,browser:s.a.browserTypeToString(),_event_name:r.e.SEARCH_SUGGEST}}]},{trigger:{identifier:r.e.SEARCH_SUGGEST_TYPOSQUATTING,selector:"#typosquatting_message_search_input",action:r.m.ACTION.KEYDOWN},messages:[{template:{name:r.e.SEARCH_SUGGEST,interaction_type:r.h.IMPRESSION,search_type:r.e.TYPOSQUATTING,browser:s.a.browserTypeToString(),_event_name:r.e.SEARCH_SUGGEST}}]},{trigger:{identifier:r.e.SEARCH_SUGGEST_TYPOSQUATTING,sendTelemetry:this._options.selected},messages:[{template:{name:r.e.SEARCH_SUGGEST,interaction_type:r.h.SELECTION,search_type:r.e.TYPOSQUATTING,browser:s.a.browserTypeToString(),_event_name:r.e.SEARCH_SUGGEST}}]},{trigger:{identifier:r.e.SECURE_SEARCH_HIT,sendTelemetry:!0},messages:[{template:{name:r.g.SECURE_SEARCH_HIT,search_type:r.l.DEFAULT,_event_name:r.e.SECURE_SEARCH_HIT,browser:s.a.browserTypeToString(),type_tag:this._options.typeTag,provider_type:this._options.engineName}}]},{trigger:{identifier:r.e.SIDEBAR_PANEL,sendTelemetry:!0},messages:[{template:{name:r.g.SIDEBAR_PANEL,interaction_type:this._options.interaction_type,_event_name:r.e.SIDEBAR_PANEL,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.SITE_REPORT,state:r.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:r.e.SITE_REPORT,interaction_type:r.h.IMPRESSION,block_state:r.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:r.m.MISC.ACTION_PANEL,_event_name:r.e.SITE_REPORT,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.SITE_REPORT,selector:"#sidebar__settings",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.SITE_REPORT,interaction_type:r.h.PPS.GO_PROFILE,block_state:r.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:r.m.MISC.ACTION_PANEL,_event_name:r.e.SITE_REPORT,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.SITE_REPORT,selector:"#sidebar-close",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.SITE_REPORT,interaction_type:r.h.CLOSE_CLICKED,block_state:r.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:r.m.MISC.ACTION_PANEL,_event_name:r.e.SITE_REPORT,browser:s.a.browserTypeToString()}}]},{trigger:{identifier:r.e.SMA_REPUTATION,sendTelemetry:!0},messages:[{template:{name:r.g.SMA_REPUTATION,interaction_type:r.h.IMPRESSION,_event_name:r.e.SMA_REPUTATION,browser:s.a.browserTypeToString(),site:this._options.site,color:r.m.MISC.GREEN,count:this._options[r.m.MISC.GREEN]}},{template:{name:r.g.SMA_REPUTATION,interaction_type:r.h.IMPRESSION,_event_name:r.e.SMA_REPUTATION,browser:s.a.browserTypeToString(),site:this._options.site,color:r.m.MISC.RED,count:this._options[r.m.MISC.RED]}},{template:{name:r.g.SMA_REPUTATION,interaction_type:r.h.IMPRESSION,_event_name:r.e.SMA_REPUTATION,browser:s.a.browserTypeToString(),site:this._options.site,color:r.m.MISC.YELLOW,count:this._options[r.m.MISC.YELLOW]}},{template:{name:r.g.SMA_REPUTATION,interaction_type:r.h.IMPRESSION,_event_name:r.e.SMA_REPUTATION,browser:s.a.browserTypeToString(),site:this._options.site,color:r.m.MISC.UNKNOWN,count:this._options[r.m.MISC.UNKNOWN]}},{template:{name:r.g.SMA_REPUTATION,interaction_type:r.h.IMPRESSION,_event_name:r.e.SMA_REPUTATION,browser:s.a.browserTypeToString(),site:this._options.site,color:r.m.MISC.HACKERSAFE,count:this._options[r.m.MISC.HACKERSAFE]}}]},{trigger:{identifier:r.e.TOAST,sendTelemetry:!0},messages:[{template:{triggerType:"Impression",browser:s.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{action_type:"Impression",browser:s.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast"}}]},{trigger:{identifier:r.e.TOAST,selector:"#iframe-toast-actions__yes",action:r.m.ACTION.CLICK},messages:[{template:{triggerType:"Acceptance",browser:s.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{browser:s.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast"}}]},{trigger:{identifier:r.e.TOAST,selector:"#iframe-toast-actions__no",action:r.m.ACTION.CLICK},messages:[{template:{triggerType:"Acceptance",browser:s.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{browser:s.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast",action_type:"Declined"}}]},{trigger:{identifier:r.e.TYPOSQUATTING,sendTelemetry:this._options.isFromBackground},messages:[{template:{name:r.g.TYPOSQUATTING,interaction_type:r.h.IMPRESSION,browser:s.a.browserTypeToString(),_event_name:r.e.TYPOSQUATTING}}]},{trigger:{identifier:r.e.REMOTE_ACCESS_TROJAN,state:r.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:r.e.REMOTE_ACCESS_TROJAN,interaction_type:r.h.IMPRESSION,browser:s.a.browserTypeToString(!0),url:this._options.url,_event_name:r.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:r.e.REMOTE_ACCESS_TROJAN,selector:"#rat_detection_got_it_btn",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.REMOTE_ACCESS_TROJAN,interaction_type:r.h.RAT_DETECTION.ACKNOWLEDGED,browser:s.a.browserTypeToString(!0),url:this._options.url,_event_name:r.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:r.e.REMOTE_ACCESS_TROJAN,selector:"#sidebar_rat_detection_whitelist_btn",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.REMOTE_ACCESS_TROJAN,interaction_type:r.h.RAT_DETECTION.WHITELISTED,browser:s.a.browserTypeToString(!0),url:this._options.url,_event_name:r.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:r.e.REMOTE_ACCESS_TROJAN,selector:"#sidebar-close",action:r.m.ACTION.CLICK},messages:[{template:{name:r.e.REMOTE_ACCESS_TROJAN,interaction_type:r.h.CLOSE_CLICKED,browser:s.a.browserTypeToString(!0),url:this._options.url,_event_name:r.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:r.e.SECURE_SEARCH_TOAST,sendTelemetry:!0},messages:[{template:{action_type:r.h.IMPRESSION,_event_name:r.e.SECURE_SEARCH_TOAST,browser:s.a.browserTypeToString()||r.m.MISC.UNKNOWN,provider:r.j.YAHOO,toastType:r.k.FIRST_ANNOTATION,category:r.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:r.e.SECURE_SEARCH_TOAST,selector:".turn-ss-on",action:r.m.ACTION.CLICK},messages:[{template:{action_type:r.h.ACCEPTED,_event_name:r.e.SECURE_SEARCH_TOAST,browser:s.a.browserTypeToString()||r.m.MISC.UNKNOWN,provider:r.j.YAHOO,toastType:r.k.FIRST_ANNOTATION,category:r.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:r.e.SECURE_SEARCH_TOAST,selector:"#close-balloon",action:r.m.ACTION.CLICK},messages:[{template:{action_type:r.h.DECLINED,_event_name:r.e.SECURE_SEARCH_TOAST,browser:s.a.browserTypeToString()||r.m.MISC.UNKNOWN,provider:r.j.YAHOO,toastType:r.k.FIRST_ANNOTATION,category:r.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:r.e.FIND_SIMILAR_PAGES,sendTelemetry:!0},messages:[{template:{_event_name:r.e.FIND_SIMILAR_PAGES,name:r.e.FIND_SIMILAR_PAGES,interaction_type:this._options.interaction_type,domain:this._options.domain,browser:s.a.browserTypeToString().toLowerCase()}}]},{trigger:{identifier:r.e.WELCOME_SS_ON,sendTelemetry:!0},messages:[{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.IMPRESSION,browser:s.a.browserTypeToString(!0),sequence:this._options.sequence,type:this._options.type}}]},{trigger:{identifier:r.e.WELCOME_SS_ON,selector:".action-buttons > .got-it",action:r.m.ACTION.CLICK},messages:[{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.DECLINED,browser:s.a.browserTypeToString(!0),sequence:1,type:r.n.FIRST_ANNOTATION}}]},{trigger:{identifier:r.e.WELCOME_SS_ON,selector:".action-buttons > .learn-more",action:r.m.ACTION.CLICK},messages:[{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.ACCEPTED,browser:s.a.browserTypeToString(!0),sequence:1,type:r.n.FIRST_ANNOTATION}}]},{trigger:{identifier:r.e.WELCOME_SS_ON,selector:"button#mc-accept-btn-next",action:r.m.ACTION.CLICK},messages:[{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.ACCEPTED,browser:s.a.browserTypeToString(!0),sequence:this._options.sequence,type:this._options.type}},{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.IMPRESSION,browser:s.a.browserTypeToString(!0),sequence:this._options.sequence+1,type:this._options.type}}]},{trigger:{identifier:r.e.WELCOME_SS_ON,selector:"button#mc-accept-btn-done",action:r.m.ACTION.CLICK},messages:[{template:{_event_name:r.e.WELCOME_SS_ON,category:r.e.WELCOME_SS_ON,action_type:r.h.ACCEPTED,browser:s.a.browserTypeToString(!0),sequence:this._options.sequence+1,type:this._options.type}}]},{trigger:{identifier:r.e.WSS_ANALYTICS,sendTelemetry:!0},messages:[{template:{_event_name:r.e.WSS_ANALYTICS,message:this._options.message}}]},{trigger:{identifier:r.e.AMAZON_UPSELL_SIDEBAR_TOAST,state:r.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{category:r.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||r.m.MISC.UNKNOWN,sequence:this._options.sequence||r.m.MISC.UNKNOWN,product:r.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||r.m.MISC.UNKNOWN,action_type:r.h.IMPRESSION||r.m.MISC.UNKNOWN,variation:this._options.variation||r.m.MISC.UNKNOWN,browser:s.a.browserTypeToString(!0)||r.m.MISC.UNKNOWN,url:this._options.url||r.m.MISC.UNKNOWN,_event_name:r.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:r.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#button__amazon_extn_get",action:r.m.ACTION.CLICK},messages:[{template:{category:r.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||r.m.MISC.UNKNOWN,sequence:this._options.sequence||r.m.MISC.UNKNOWN,product:r.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||r.m.MISC.UNKNOWN,action_type:r.h.UPSELL_SIDEBAR.ACCEPTED||r.m.MISC.UNKNOWN,variation:this._options.variation||r.m.MISC.UNKNOWN,browser:s.a.browserTypeToString(!0)||r.m.MISC.UNKNOWN,url:this._options.url||r.m.MISC.UNKNOWN,_event_name:r.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:r.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#link__amazon_extns_decline",action:r.m.ACTION.CLICK},messages:[{template:{category:r.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||r.m.MISC.UNKNOWN,sequence:this._options.sequence||r.m.MISC.UNKNOWN,product:r.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||r.m.MISC.UNKNOWN,action_type:r.h.UPSELL_SIDEBAR.DECLINED||r.m.MISC.UNKNOWN,variation:this._options.variation||r.m.MISC.UNKNOWN,browser:s.a.browserTypeToString(!0)||r.m.MISC.UNKNOWN,url:this._options.url||r.m.MISC.UNKNOWN,_event_name:r.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:r.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#sidebar-close",action:r.m.ACTION.CLICK},messages:[{template:{category:r.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||r.m.MISC.UNKNOWN,sequence:this._options.sequence||r.m.MISC.UNKNOWN,product:r.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||r.m.MISC.UNKNOWN,action_type:r.h.UPSELL_SIDEBAR.CLOSED||r.m.MISC.UNKNOWN,variation:this._options.variation||r.m.MISC.UNKNOWN,browser:s.a.browserTypeToString(!0)||r.m.MISC.UNKNOWN,url:this._options.url||r.m.MISC.UNKNOWN,_event_name:r.e.PRODUCT_UPSELL_TOAST}}]}]}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n(6);const s={SHOPPING:"SHOPPING"},a={[s.SHOPPING]:{count:r.c.AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT,lastShown:r.c.AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN,showing:r.a.AMAZON_UPSELL_SHOPPING_SHOWING,lastDomainShown:r.c.AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){const r=n(26);t.initializeSettings=e=>{const{BackgroundGlobals:t,HttpService:n}=e;r.BackgroundGlobals=t,r.HttpService=n}},function(e,t,n){const{GTIResponseBuilder:r}=n(75),{gtiBody:s,gtiQueryItems:a,GTI_CONSTANTS:i}=n(27),o=n(26);t.GTIRequestor=class{constructor(){this.builder=new r,this.fncallback=null,this.isSecureSearch=!1,this.url=null,this.httpService=new o.HttpService}prepareBody(e,t,n){const r=new s(t);let i=0;for(let t=0;t<e.length;t++){const s=e[t],c=o.BackgroundGlobals.gtiCache.getReputation(s);if(null===c.cache_entry){r.q[i]=new a,r.q[i].op="url",r.q[i].url=s;const e={};e.uag=o.BackgroundGlobals.userAgentInBase64,"string"==typeof n&&(e.refurl=window.btoa(n));const{nativeSettings:t}=o.BackgroundGlobals;t&&t.CSP_ID_SETTING&&"__not_available__"!==t.CSP_ID_SETTING.value&&(e.cspid=t.CSP_ID_SETTING.value),r.q[i].qmd=e,i++}else this.builder.addCachedItem({uri:s,value:c.cache_entry}),e.splice(t,1),t--}return{body:r}}request(e,t){return this.makeGTIRequest({method:"POST",body:JSON.stringify(t),url:o.BackgroundGlobals.gtiServer,headers:e})}makeGTIRequest(e){return this.httpService.sendHttpRequest(e).then(e=>e.json())}generateRequestId(){return Math.floor(99999e3*Math.random())+1e3}async generateHeaders(e){const t=await o.BackgroundGlobals.wasm.wasm_gti_hmac_sha1(JSON.stringify(e)),n={};return n["Content-Type"]=i.contentType,n.xdate=(new Date).toUTCString(),n.Authorization=`GTI ${i.gtiId}:${t}`,n}toResponse(e,t,n){this.builder.init(e,t),this.builder.prepareResponse(this.fncallback,n)}async post(e,t,n,r,s){const a=o.BackgroundGlobals.gtiCache.checkRequest(n);Promise.all(a).then();try{this.isSecureSearch=t,this.fncallback=s,this.url=e;const a=n.slice(),i=this.generateRequestId(),c=this.prepareBody(n,i,r),l=[];if(c.body.q.length>0)try{const e=this.generateHeaders(c.body).then(e=>this.request(e,c.body)).then(e=>this.toResponse(e,n,!0)).then(()=>o.BackgroundGlobals.gtiCache.deleteRequest(n));o.BackgroundGlobals.gtiCache.addRequest(n,e)}catch(e){this.fncallback(null),o.BackgroundGlobals.logger.error(e)}else this.toResponse(l,a,!1)}catch(e){o.BackgroundGlobals.logger.error(e.message)}}}},function(e,t,n){const{StoredSearchVariables:r}=n(77),{SUGGESTION_URL:s,MAX_STORED_SEARCHES:a,SHOW_MAX_RESULTS:i,SEARCH_RESULT_TTL:o}=r;t.SearchSuggest=class{constructor(e){this.httpService=e,this.storedSearches=new Map}getUrl(e){return`${s}${e}`}async retrieveSearchTerm(e){let t=null;return t=this.hasSearchTerm(e)?this.storedSearches.get(e).searchResults:await this.getSearchSuggestions(e),t}async getSearchSuggestions(e){try{let t=[];const n=await this.httpService.sendHttpRequest({method:"GET",url:this.getUrl(e),headers:{}}),r=await n.json();return r&&(t=r[1].slice(0,i),this.storedSearches.set(e,{timeCached:Date.now(),searchResults:t})),t}catch(e){throw new Error(`HttpService failure: ${e}`)}}hasSearchTerm(e){return this.storedSearches.has(e)}checkCache(){this.storedSearches.size>.5*a&&this.cleanPreviousSearches()}cleanPreviousSearches(){this.storedSearches.forEach((e,t,n)=>{Date.now()>e.timeCached+o&&n.delete(t)})}}},,,,,function(e,t,n){const{GTI_CONSTANTS:r}=n(27),{GTIResponse:s}=n(76),a=n(26);t.GTIResponseBuilder=class{constructor(){this.response=new s,this.gtiResponse=null,this.requestData=null,this.cachedItems=[]}init(e,t){this.gtiResponse=e,this.requestdata=t}addCachedItem(e){this.cachedItems.push(e)}buildLinkInfo(e,t){this.response.annotationMap[e]=t}prepareFromCacheResponse(){for(let e=0;e<this.cachedItems.length;e++){const t=this.cachedItems[e];this.buildLinkInfo(t.uri,t.value.value)}}prepareFromGTIResponse(e){if(0===this.gtiResponse.length)return;const t=""===this.gtiResponse[0]?this.gtiResponse[1]:this.gtiResponse[0];if(0!==Object.keys(t).length||t.constructor!==Object){for(let e=0;e<t.a.length;e++){const n=t.a[e];if(void 0!==n.aflag&&n.aflag===r.globalSafeModeFlag)continue;const s=this.requestdata[e];n.url=s,a.BackgroundGlobals.gtiCache.setReputation(s,n),this.buildLinkInfo(s,n)}if(a.BackgroundGlobals.messageDispatcher&&a.BackgroundGlobals.messageDispatcher.nativeDispatcher&&e){const e=[t];a.BackgroundGlobals.messageDispatcher.pushCacheToNative(JSON.stringify(e))}}}prepareResponse(e,t){this.prepareFromGTIResponse(t),this.prepareFromCacheResponse(),e(this.response)}}},function(e,t){t.GTIResponse=class{constructor(){this.annotationMap={}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"StoredSearchVariables",(function(){return r}));const r={SUGGESTION_URL:"https://us.search.yahoo.com/sugg/gossip/gossip-us-partner?output=fxjson&appid=mca&source=yahoo_mcafee_searchassist&command=",STORED_SEARCHES:"STORED_SEARCHES",MAX_STORED_SEARCHES:50,SHOW_MAX_RESULTS:5,SEARCH_RESULT_TTL:18e5}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(7),s=n(68),a=n.n(s),i=n(21);var o=n(15);var c=class{static isDomainInWhitelist(e,t){const n=o.a.getCleanURI(e);if(!n)return r.a.logger.error("Trying to put an empty URL into whitelist!"),!1;const s=r.a.cacheStore.get(t,[]);if(!Array.isArray(s))return r.a.logger.error("Can not fetch whitelist properly!"),!1;for(let e=0;e<s.length;e+=1){const t=n.toLowerCase(),r=s[e].toLowerCase();if(t.includes(r)||r.includes(t))return!0}return!1}static addDomainsToWhitelist(e,t){if(!Array.isArray(e)||0===e.length)return;const n=[];if(e.forEach(e=>{const r=o.a.getCleanURI(e);r&&!this.isDomainInWhitelist(r,t)&&n.push(r)}),n.length>0){const e=r.a.cacheStore.get(t,[]);if(!Array.isArray(e))return;const s=e.concat(n);r.a.cacheStore.set(t,s)}}static removeDomainFromWhitelist(e,t){if(!Array.isArray(e)||0===e.length)return;const n=[];if(e.forEach(e=>{const r=o.a.getCleanURI(e);this.isDomainInWhitelist(r,t)&&n.push(r.toLowerCase())}),n.length>0){const e=r.a.cacheStore.get(t,[]);if(!Array.isArray(e))return;const s=e.filter(e=>!n.includes(e.toLowerCase()));r.a.cacheStore.set(t,s)}}static getDomainsFromWhitelist(e){return r.a.cacheStore.get(e,[])}static clearWhitelist(e){r.a.cacheStore.clear(e)}},l=n(6);const u="PAGES_SCANNED",d="PAGES_BLOCKED",_="DOWNLOADS_SCANNED",h="DOWNLOADS_BLOCKED",p="ADS_BLOCKED",E="TRACKER_BLOCKED",g="CRYPTO_BLOCKED";class T{static init(){const e=this.read(),{PAGES_SCANNED:t,PAGES_BLOCKED:n,DOWNLOADS_SCANNED:s,DOWNLOADS_BLOCKED:a,CRYPTO_BLOCKED:i}=r.a.nativeSettings,o={pagesScanned:t.value||e.pagesScanned,pagesBlocked:n.value||e.pagesBlocked,downloadsScanned:s.value||e.downloadsScanned,downloadsBlocked:a.value||e.downloadsBlocked,adsBlocked:e.adsBlocked,trackersBlocked:e.trackersBlocked,cryptoBlocked:i.value||e.cryptoBlocked};r.a.cacheStore.set(l.c.POPUP_STATS,o)}static add(e){const t=this.read();switch(e){case u:t.pagesScanned++;break;case d:t.pagesBlocked++;break;case _:t.downloadsScanned++;break;case h:t.downloadsBlocked++;break;case p:t.adsBlocked++;break;case E:t.trackersBlocked++;break;case g:t.cryptoBlocked++;break;default:return}r.a.cacheStore.set(l.c.POPUP_STATS,t)}static read(){const e={pagesScanned:0,pagesBlocked:0,downloadsScanned:0,downloadsBlocked:0,adsBlocked:0,trackersBlocked:0,cryptoBlocked:0},t=r.a.cacheStore.get(l.c.POPUP_STATS);return t&&Object.assign(e,t),e}}var f=n(3),m=n(1);class S{onBeforeRequest({tabId:e,url:t}){if(!0===r.a.nativeSettings.CRYPTOJACKING_DISABLED.value)return;if(-1===e)return void r.a.logger.log(`Crypto mining check not done : ${t} ${e}`);const n=r.a.tabData.get(e);if(!n.url)return;const s=n.url,a=o.a.getDomain(s);return c.isDomainInWhitelist(a,l.c.CRYPTO_WHITELIST)?{cancel:!1}:(T.add(g),this.notifyCryptoBlock(e,a,t),r.a.logger.log(`Blocked crypto mining script/connection: ${t} ${e}`),{cancel:!0})}init(){f.a.webRequest.onBeforeRequest.addListener(this.onBeforeRequest.bind(this),{urls:r.a.cryptoBlacklist,types:["websocket","script","xmlhttprequest"]},["blocking"])}uninit(){f.a.webRequest.onBeforeRequest.removeListener(this.onBeforeRequest.bind(this))}notifyCryptoBlock(e,t,n){const s={domain:t,miner:n.split("").reverse().join("")},a={command:m.d.TOPBAR,payload:{subcommand:m.k.CRYPTO_BLOCK,componentData:{cryptoBlockData:s}}};f.a.tabs.sendMessage(e,a,()=>{f.a.runtime.lastError&&(r.a.tabData.update(e,{cryptoBlockData:s}),r.a.logger.log(f.a.runtime.lastError.message))})}addToWhitelist(e,t){const n=o.a.getDomain(e);n&&(c.addDomainsToWhitelist([n],l.c.CRYPTO_WHITELIST),f.a.tabs.reload(t,{bypassCache:!0}))}}var A=n(4),O=n(13),N=n(14);class I{init(){f.a.runtime.onMessageExternal.addListener((e,t,n)=>!(void 0===t.id||!N.a.isWhiteListed(t.id))&&this.processMessage(t.id,e,n)),f.a.runtime.onConnectExternal.addListener(e=>{e.postMessage({waOnBrowser:!0})});for(const e of N.a.getExtnIds())this.sendDisconnectNative(e)}[m.e.WB_TELEMETRY](e){r.a.messageDispatcher.postMessage(e)}[m.e.WB_VIDEO_STATS](e){r.a.messageDispatcher.postMessage(e)}[m.e.CLEAN_TYPOSQUATING_WHITELIST](e,t){return c.clearWhitelist(l.c.TYPOSQUATTING_WHITELIST),t({done:!0}),!1}[m.e.CLEAN_CRYPTO_WHITELIST](e,t){return c.clearWhitelist(l.c.CRYPTO_WHITELIST),t({done:!0}),!1}[m.e.CLEAN_RAT_WHITELIST](e,t){return c.clearWhitelist(l.c.RAT_DETECTION_WHITELIST),t({done:!0}),!1}[m.e.CLEAN_RAT_CACHE](e,t){return r.a.cacheStore.clear(l.a.RAT_DETECTION_SHOWING),t({done:!0}),!1}[m.e.RESET_CRYPTO](e,t){const n=r.a.listenerManager.getListener(W.CRYPTO);return n.uninit(),n.init(),t({done:!0}),!1}[m.e.GET_PROPERTY](e,t){const n=r.a[e.payload.name],s={};return s.value=void 0===n?null:n,t(s),!1}[m.e.CLEAR_GTI_CACHE](e,t){return r.a.gtiCache._reputationCache.clear(),r.a.gtiCache._GTIRequestsInProgress.clear(),t({done:!0}),!1}[m.e.REPLACE_TRUSTED_DOMAIN](e,t){return r.a.trustedDomains.clear(),r.a.trustedDomains.add(e.payload.value),t({done:!0}),!1}[m.e.CLEAR_TYPOSQUATING_CACHE](e,t){return r.a.cacheStore.clear(l.a.CACHE_TYPOQUATTING),t({done:!0}),!1}[m.e.SET_PROPERTY](e,t){const{payload:n}=e;if(!n)return{done:!1};const{name:s,value:a}=n;if(!s)return{done:!1};const i=r.a[s];return void 0===i?{done:!1}:(Array.isArray(i)?""===a?i.splice(0,i.length):i.push(a):r.a[s]=a,t({done:!0}),!1)}[m.e.SHOW_UNUSED_SELECTORS](e,t){const n={};for(const e of r.a.searchEngines)if(null!==e.name&&!1!==e.enabled&&null!==e.selectors){n[e.name]=[];for(const t of e.selectors)t.matched||n[e.name].push(t.selector)}return t(n),!1}[m.e.PROFILER_DEBUGGER](e,t){if(void 0===r.a.codeCoverage)return{done:!1};switch(e.payload.operation){case"START":r.a.codeCoverage.start();break;case"TAKE_COVERAGE":r.a.codeCoverage.take_coverage(t);break;case"STOP":r.a.codeCoverage.stop()}}[m.e.ADBLOCK](e,t){const{payload:n}=e,{command:s,tabId:a}=n;r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH);let i=!1;switch(s){case m.a.AD_BLOCKED:{const e=r.a.tabData.get(a);e.adsBlocked+=1,T.add(p),r.a.tabData.set(a,e);const t={command:m.d.FLOATING_BALLOON,payload:{subcommand:m.g.UPDATE_AD_COUNT,adsBlocked:e.adsBlocked}};f.a.tabs.sendMessage(a,t,null);break}case m.a.TRACKER_BLOCKED:{const e=r.a.tabData.get(a);e.trackersBlocked+=1,T.add(E),r.a.tabData.set(a,e);const t={command:m.d.FLOATING_BALLOON,payload:{subcommand:m.g.UPDATE_TRACKER_COUNT,trackersBlocked:e.trackersBlocked}};f.a.tabs.sendMessage(a,t,null);break}case m.a.ADBLOCKER_READY:{const e=r.a.cacheStore.get(l.c.AB_USER_TOGGLE);e&&f.a.tabs.query({},e=>{const t={command:m.d.SIDEBAR,payload:{subcommand:m.i.RELOAD}};for(const n of e)A.a.isExtensionUrl(n.url)?f.a.tabs.reload(n.id,{}):A.a.isProperWebURL(n.url)&&f.a.tabs.sendMessage(n.id,t)}),t(e),i=!0;break}}return i}[m.e.PING](e,t,n){return r.a.logger.log("Got a ping"),r.a.messageDispatcher.extensionStatusUpdate({extensionId:n}),t({request_type:m.f.PONG,useNativeLogger:r.a.useNativeLogger}),!0}processMessage(e,t,n){let s=!1;return r.a.logger.log(`Message from: ${e} request: ${JSON.stringify(t)}`),"request_type"in t&&"payload"in t?(s=this[t.request_type]&&this[t.request_type](t,n,e),s):(r.a.logger.log(`Invalid external extension json message: ${JSON.stringify(t)} `),s)}sendDisconnectNative(e){f.a.runtime.sendMessage(e,{request_type:m.e.DISCONNECT_NATIVE,payload:{}})}}class C{static focusOrCreateTab(e){f.a.tabs.query({currentWindow:!0},t=>{for(const{id:n,url:r}of t)if(r.includes(e)||e.includes(r))return void f.a.tabs.update(n,{active:!0,url:e},()=>{});f.a.tabs.create({url:e})})}static waitUntil(e,t,n){return new Promise(r=>{let s=0;const a=setInterval(()=>{s>=t&&(clearInterval(a),r(!1)),n()&&(clearInterval(a),r(!0)),s+=e},e)})}static getRequestData(e,t){if(null===e||null===t)return{};return(r.a.tabData.get(e).requestData||{})[t]||{}}static setRequestData(e,t,n){if(null===e||null===t)return{};const s=r.a.tabData.get(e),a=s.requestData||{},i=a[t]||{};a[t]={...i,...n},r.a.tabData.set(e,{...s,requestData:a})}static deleteRequestData(e,t){if(null===e||null===t)return{};const n=r.a.tabData.get(e),s=n.requestData||{};delete s[t],r.a.tabData.set(e,{...n,requestData:s})}}var b=n(2),y=n(12);class R{getDomainName(e){let t=null;t=e.startsWith("http")||e.startsWith("www")?e:`https://${e}`;const n=document.createElement("a");return n.setAttribute("href",t),n.hostname.startsWith("www.")?n.hostname.substr(4):n.hostname}init(){f.a.runtime.onMessage.addListener((e,t,n)=>{let s=!1;try{s=this[e.command]&&this[e.command]({request:e,sender:t,cb:n})}catch(e){r.a.logger.error(e.message)}return s})}[m.b.SET_TAB_ACTION_PANEL_DATA]({request:e,sender:t}){r.a.tabData.get(t.tab.id).actionPanelData=e.data}[m.b.IS_WHITELISTED]({request:e,cb:t}){let n=!1;const r=o.a.getDomain(e.url);return c.isDomainInWhitelist(r,l.c.BLOCK_PAGE_WHITELIST)&&(n=!0),t({whitelisted:n}),!0}[m.b.GET_TAB_DATA]({request:e,sender:t,cb:n}){let s=null;return s=e.tabId?{...r.a.tabData.get(e.tabId),url:t.url}:r.a.tabData.get(t.tab.id),n(s),!0}[m.b.VIEW_SITE_REPORT]({request:e,sender:t}){const n=f.a.runtime.getURL("html/site_status_site_report.html");e.showInNewTab?f.a.tabs.create({url:n},t=>{r.a.tabData.setTabBlockPageData(t.id,{url:e.url})}):f.a.tabs.update(t.tab.id,{url:n})}[m.b.AUTO_RUN_VIDEO_SITE]({request:e,sender:t}){f.a.tabs.get(t.tab.id,t=>{const{ffViewports:n}=r.a;let s=-1,a=-1;b.g.BROWSER_TYPE===b.f.FIREFOX&&null!==n&&(s=n.X,a=n.Y);const i=this.getDomainName(t.url);r.a.messageDispatcher.autoPlayVideoSite(i,e.url,s,a)})}[m.b.CACHE_STORE]({request:e,cb:t}){const{action:n,data:s}=e;return r.a.messageDispatcher.cacheStore(n,s,t)}[m.b.EXECUTE_COMMAND]({request:e}){return r.a.messageDispatcher.executeCommand(e.commandId,e.params)}[m.b.FOCUS_OR_CREATE_TAB]({request:e}){C.focusOrCreateTab(e.url)}[m.b.REMOVE_TAB]({sender:e}){f.a.tabs.remove(e.tab.id,()=>{})}[m.b.GET_BK_GLOBALS]({cb:e}){e(r.a)}[m.b.GET_CLICK_EVENT_TIME]({sender:e,cb:t}){t(r.a.tabIdToLastClickTime.get(e.tab.id))}[m.b.GET_COSMETIC_FILTERS]({request:e,sender:t,cb:n}){return r.a.adblockManager.onRuntimeMessage(e,t,n),!0}[m.b.GET_EXTENSION_STATUS]({request:e,cb:t}){return r.a.messageDispatcher.getExtensionStatus(e,t),!0}[m.b.GET_VALUES]({request:e,cb:t}){return r.a.messageDispatcher.getValues(e.getList).then(e=>t(e)),!0}[m.b.GTI_REQUEST]({request:e,cb:t}){const{url:n,isSecureSearch:s,requestData:a}=e;return r.a.messageDispatcher.makeGTIRequest(n,s,a).then(e=>t(e)),!0}[m.b.GET_TYPOSQUATTING_DATA]({request:e,cb:t}){t(r.a.cacheStore.get(l.a.CACHE_TYPOQUATTING,{})[e.domain]||null)}[m.b.INSTALL_EXTENSION]({request:e}){r.a.messageDispatcher.installExtension(e.extension_id,e.redirect_url)}[m.b.IS_FRAME_BLOCKED]({request:e,sender:t,cb:n}){return n(r.a.messageDispatcher.isFrameBlocked(e.url,t.tab.id)),!0}[m.b.LOGGER]({request:e}){const{message:t,logType:n}=e,{CONTENT:s}=y.d;n===y.b.ERROR&&r.a.logger.error(t,s),n===y.b.INFO&&r.a.logger.log(t,s)}[m.b.SAVE_CLICK_EVENT_TIME]({request:e,sender:t}){r.a.tabIdToLastClickTime.set(t.tab.id,e.last_event)}[m.b.SEND_TELEMETRY]({request:e}){return r.a.messageDispatcher.sendTelemetry(e.telemetry)}[m.b.SET_VIEWPORT]({request:e}){const{x:t,y:n}=e;r.a.messageDispatcher.SetXYViewport(t,n)}[m.b.ANY_BLOCKED_IFRAMES]({request:e,sender:t,cb:n}){return r.a.messageDispatcher.anyBlockedIframes(t.tab.id,e.frameUrls,n),!0}[m.b.UNBLOCK_ALL_IFRAMES]({sender:e}){r.a.messageDispatcher.unblockAllIframes(e.tab.id,e.tab.url)}[m.b.ANY_BLOCKED_CRYPTOSCRIPTS]({sender:e,cb:t}){return r.a.messageDispatcher.anyBlockedCryptoScripts(e.tab.id,t),!0}[m.b.UPDATE_BROWSER_ACTION]({request:e,sender:t}){const{id:n,url:s}=t.tab;r.a.messageDispatcher.updateBrowserAction(e.details,e.allTabs,n,s)}[m.b.WHITELIST]({request:e,sender:t,cb:n}){const{action:s,type:a,data:i}=e,o=t.tab?t.tab.id:null;return i.tabId=o,r.a.messageDispatcher.whitelist(s,a,i,n)}[m.b.GET_POPUP_DATA]({sender:e,cb:t}){return r.a.messageDispatcher.getPopupData(e.tab.id,e.tab.url,t),!0}[m.b.GET_SETTINGS_DATA]({cb:e}){return r.a.messageDispatcher.getSettingsData(e),!0}[m.b.SEARCH_ANNOTATION]({request:e,cb:t}){const{action:n,data:s}=e;return r.a.messageDispatcher.searchAnnotation(n,s,t)}[m.b.SOCIAL_MEDIA_ANNOTATION]({request:e,cb:t}){const{action:n,data:s}=e;return r.a.messageDispatcher.socialMediaAnnotation(n,s,t)}[m.b.RESET_SETTINGS](){return r.a.messageDispatcher.resetSettings(),!0}[m.b.RESET_NATIVE_SETTING]({request:e}){const{setting:t}=e;return r.a.messageDispatcher.resetNativeSetting(t),!0}[m.b.UPDATE_ENGINE_STATS]({request:e}){for(const{name:t,selectors:n}of r.a.searchEngines)if(t===e.engine.name&&n.length===e.engine.selectors.length){for(let t=0;t<n.length;t++)n[t].matched+=e.engine.selectors[t].matched;break}}[m.b.CONTENT_HANDLER]({sender:e,request:t}){f.a.tabs.sendMessage(e.tab.id,t.message,()=>{f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message)})}[m.b.SHOULD_SHOW_TOAST]({cb:e}){return r.a.messageDispatcher.shouldShowToast(e),!0}[m.b.CLOSE_TOAST]({sender:e,request:t}){const{userConfirmation:n}=t;f.a.tabs.query({},t=>{for(const s of t){const t={command:m.d.TOAST,payload:{subcommand:m.j.CLOSE_ALL_TOASTS,userConfirmation:e.tab.id===s.id&&n}};f.a.tabs.sendMessage(s.id,t,()=>{f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message)})}}),r.a.messageDispatcher.closeToast(n)}[m.b.SHOW_NPS_CHECKLIST]({request:{fromBlockPage:e=!1,location:t}}){r.a.messageDispatcher.showNPSChecklist(e,t)}[m.b.ADD_ADBLOCK_WHITELIST]({sender:e}){const t=r.a.tabData.get(e.tab.id),{adblockWhitelist:n,url:s}=t,a=new URL(s).hostname;n.includes(a)||n.push(a),f.a.tabs.reload(e.tab.id,{},()=>{f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message)})}[m.b.REMOVE_ADBLOCK_WHITELIST]({sender:e}){const t=r.a.tabData.get(e.tab.id),{adblockWhitelist:n,url:s}=t,a=new URL(s).hostname,i=n.indexOf(a);-1!==i&&n.splice(i,1),f.a.tabs.reload(e.tab.id,{},()=>{f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message)})}[m.b.TOGGLE_ADBLOCK_ENGINE]({request:e}){e.enableAdblockEngine?r.a.adblockManager.enableAdBlocking():r.a.adblockManager.disableAdblocking()}[m.b.RELOAD_SIDEBAR_PANEL]({sender:e}){f.a.tabs.query({},t=>{const n={command:m.d.SIDEBAR,payload:{subcommand:m.i.RELOAD}};for(const r of t){const t=e.tab.id===r.id;A.a.isExtensionUrl(r.url)&&!t?f.a.tabs.reload(r.id,{}):A.a.isProperWebURL(r.url)&&f.a.tabs.sendMessage(r.id,n)}})}[m.b.DOWNLOAD_SCANNING_DELETE_FILE]({request:e}){r.a.messageDispatcher.deleteMaliciousFile(e.payload)}[m.b.TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING](){const e=r.a.cacheStore.get(l.a.DOWNLOAD_SCANNING_QUEUE);if(!e.length)return;const t=e[e.length-1];r.a.messageDispatcher.triggerDownloadScanningActionPanel(t)}[m.b.REMOVE_FROM_DOWNLOAD_SCAN_QUEUE](){const e=r.a.cacheStore.get(l.a.DOWNLOAD_SCANNING_QUEUE);e.pop(),r.a.cacheStore.set(l.a.DOWNLOAD_SCANNING_QUEUE,e)}[m.b.SHOW_PERM_REQUEST_BALLOON](){r.a.messageDispatcher.showPermRequestBalloon()}[m.b.SHOW_AMAZON_UPSELL_TOAST]({request:e}){const{category:t,count:n,amazonExtnStatus:s,url:a}=e.payload;r.a.messageDispatcher.showAmazonExtnUpsellToast(t,n,s,a)}[m.b.CLOSE_ALL_OTHER_UPSELL_COMPONENTS]({request:e}){r.a.messageDispatcher.closeAllUpsellComponents(e.payload.upsellCategoryType)}[m.b.UPDATE_UPSELL_SHOWING_FLAG]({request:e,sender:t}){const{upsellCategoryType:n,showing:s}=e;r.a.messageDispatcher.updateUpsellShowingFlag(n,s,t.url,t.tab.id)}[m.b.GET_AMAZON_UPSELL_CATEGORY_DETAILS]({sender:e,cb:t}){return r.a.messageDispatcher.getAmazonUpsellCategoryDetails(e,t),!0}[m.b.UPDATE_RAT_DETECTION_SHOWING_FLAG]({request:e,sender:t}){const{showed:n}=e;r.a.messageDispatcher.updateRatDetectionShowingFlag(n,t.url,t.tab.id)}[m.b.GET_DOMAIN_VISITED_DETAILS]({sender:e,cb:t}){return r.a.messageDispatcher.getDomainVisitedDetails(e,t),!0}[m.b.SEARCH_SUGGEST]({request:e,cb:t}){const{searchTerm:n}=e;return r.a.messageDispatcher.searchSuggest(n).then(e=>t(e)),!0}[m.b.SHOW_SS_WELCOME_ANNOTATION]({request:e}){return r.a.messageDispatcher.showSSWelcomeAnnotation(e.state),!0}[m.b.BLAST_SEARCH_BASE](){return r.a.messageDispatcher.blastSearchBase(),!0}}class L{onChanged({state:e,id:t}){if(!e)return;const{previous:n,current:s}=e;"in_progress"===n&&"complete"===s&&f.a.downloads.search({id:t},e=>{e.forEach(e=>{r.a.messageDispatcher.onDownloadFinished(e)})})}init(){b.g.BROWSER_TYPE!==b.f.EDGE&&f.a.downloads.onChanged.addListener(this.onChanged)}}const v=[];function D(e){let t={},n=!0;if(b.f.FIREFOX===b.g.BROWSER_TYPE&&(null!==r.a.ffViewports?t=r.a.ffViewports:r.a.logger.log("Warning: raising new tab without firefox viewports")),b.f.CHROME===b.g.BROWSER_TYPE){const{pendingUrl:t}=e,r=["https://chrome.google.com/webstore/detail/mcafee%C2%AE-secure-search/enppghjcblldgigemljohkgpcompnjgh"];t&&(A.a.isExtensionUrl(t)||r.includes(t))&&(n=!1)}n&&r.a.messageDispatcher.executeCommand({command_id:b.i.RAISE_NEW_TAB_EVENT,args:t})}function w(e,{status:t},n){if("loading"===t){const t={url:n.url,adblockDisabled:!1};if(r.a.AP_FEATURE_ENABLED){const{adblockWhitelist:e}=currentTabData;(Array.isArray(e)&&e.includes(new URL(n.url).hostname)||A.a.isSearchEngineResultPage(n.url,v))&&(t.adblockDisabled=!0)}r.a.tabData.update(e,t)}else if("complete"===t&&n.url)if(A.a.isHackerSafeUrl(n.url))r.a.browserAction.setIcon(b.h.HACKERSAFE,e);else if(A.a.isProperWebURL(n.url)){const t=r.a.messageDispatcher.toBrowserActionColor(n.url);null!==t&&r.a.browserAction.setIcon(t,e)}else r.a.browserAction.setIcon(b.h.DISABLED,e)}function P(e){r.a.browserAction.deleteTabData(e),r.a.tabData.delete(e),function(e){const t=r.a.cacheStore.get(l.a.RAT_DETECTION_SHOWING);if(!t)return;t.delete(e),r.a.cacheStore.set(l.a.RAT_DETECTION_SHOWING,t)}(e)}class M{init(){f.a.tabs.onCreated.addListener(D),f.a.tabs.onUpdated.addListener(w),f.a.tabs.onRemoved.addListener(P)}}class x{constructor(){this.onBeforeSendHeaders=this.onBeforeSendHeaders.bind(this),this.onNavigateComplete=this.onNavigateComplete.bind(this),this.onHeadersReceived=this.onHeadersReceived.bind(this),this.onErrorOccurred=this.onErrorOccurred.bind(this)}onBeforeSendHeaders({tabId:e,requestId:t,requestHeaders:n}){if(n)for(const{name:r,value:s}of n)if("referer"===r.toLowerCase()){const n={referer:s.toLowerCase()};C.setRequestData(e,t,n)}}onNavigateComplete(e){r.a.messageDispatcher.onNavigate(e.url)}onHeadersReceived(e){const{url:t,responseHeaders:n,tabId:s,requestId:a,frameId:i}=e;for(const{name:e,value:t}of n)if("content-type"===e.toLowerCase()&&t.toLowerCase().includes("application"))return;const o=C.getRequestData(s,a);C.deleteRequestData(s,a),r.a.messageDispatcher.onHeadersReceived(t,s,i,o.referer)}onErrorOccurred(e){const{url:t,tabId:n,requestId:s,frameId:a}=e;C.deleteRequestData(n,s),r.a.messageDispatcher.onHeadersReceived(t,n,a,null)}init(){const e=["http://*/*","https://*/*","ftp://*/*"],t=["requestHeaders"];t.push("extraHeaders"),f.a.webRequest.onBeforeSendHeaders.addListener(this.onBeforeSendHeaders,{urls:e,types:["main_frame","sub_frame"]},t),f.a.webRequest.onHeadersReceived.addListener(this.onHeadersReceived,{urls:e,types:["main_frame","sub_frame"]},["responseHeaders"]),f.a.webRequest.onCompleted.addListener(this.onNavigateComplete,{urls:e,types:["main_frame"]}),f.a.webRequest.onErrorOccurred.addListener(this.onErrorOccurred,{urls:e,types:["main_frame","sub_frame"]})}}var G=n(0),B=n(11);class U{async browserAction({id:e,url:t}){const n=(e,t)=>{[{identifier:G.e.SIDEBAR_PANEL,interaction_type:e,isFromBackground:!0},{identifier:G.e.BROWSER_ACTION_CLICKED,count:t,isFromBackground:!0}].forEach(e=>{B.a.handle(e)})},{SS_TOAST_ACCEPTED:s}=l.a,a=!!r.a.PPS_MODE&&r.a.cacheStore.get(s);let i=m.i.MAIN,o={sidebarMainData:{}};const{priority:c}=r.a.browserAction.getTabData(e);if(c===b.e.SMA)n(G.h.SIDEBAR_PANEL.SMA,1),r.a.browserAction.stopBounce(e),i=m.i.SMA,o={smaData:{}};else if(r.a.PPS_MODE)if(a&&c===b.e.SS_ACCEPTED)r.a.browserAction.setBadgeText({tabId:e,text:""}),i=m.i.SS_ACCEPTED,o={SSAcceptedData:{}};else{if(A.a.isExtensionUrl(t))return;const e=(await U.makeGTICall(t,!1,[t],void 0)).annotationMap[t],n=e?{...e}:{},r={url:t,annotationItem:n};i=m.i.SITE_REPORT,o={siteReportData:r}}else n(G.h.SIDEBAR_PANEL.MAIN,0);const u={command:m.d.SIDEBAR,payload:{subcommand:i,componentData:o}};f.a.tabs.sendMessage(e,u,e=>{if(f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message),!e){const e={[m.i.MAIN]:"html/foreground_sidebar_main.html",[m.i.SITE_REPORT]:"html/foreground_sidebar_main.html",[m.i.SMA]:"html/foreground_sidebar_sma.html",[m.i.SS_ACCEPTED]:"html/foreground_sidebar_ss_accepted.html"},{subcommand:n}=u.payload;if(t.includes("html/foreground_sidebar_main.html"))return;const r=e[n];r&&C.focusOrCreateTab(f.a.runtime.getURL(r))}})}init(){f.a.browserAction.onClicked.addListener(this.browserAction)}static makeGTICall(e,t,n,s){return r.a.messageDispatcher.makeGTIRequest(e,t,n,s)}}class k{constructor(){this.start=!0,this.init=this.init.bind(this)}async init(){try{this.start&&(this.start=!1,await r.a.cacheStore.isInit());const e=new Date,t=r.a.cacheStore.get(l.c.ENGINES_FUTURE_TIME);if(t){if(!(t<e.getTime())){const n=t-e.getTime();return setTimeout(this.init,n),void(r.a.searchEngines=r.a.cacheStore.get(l.c.ENGINES))}{const e=r.a.cacheStore.get(l.c.ENGINES_VERSION),t=await this.fetchVersion();if(this.isNewerVersion(e,t.version)){const e=await this.fetchEngine(t.url);this.updateStorage(e,t.version),r.a.logger.log(`Engines have been updated to version ${t.version}`)}else{let e=r.a.cacheStore.get(l.c.ENGINES,null),t=r.a.cacheStore.get(l.c.ENGINES_VERSION,null);null===e&&(e=await this.fetchEngine(chrome.runtime.getURL("json/engines.json")),t="1.0.0.1"),this.updateStorage(e,t)}}}else{const e=await this.fetchEngine(chrome.runtime.getURL("json/engines.json"));this.updateStorage(e,r.a.ENGINES_VERSION)}setTimeout(this.init,r.a.engineCheckInterval)}catch(e){r.a.logger.error(e)}}updateStorage(e,t){const n=new Date;r.a.cacheStore.set(l.c.ENGINES,e),r.a.cacheStore.set(l.c.ENGINES_FUTURE_TIME,n.getTime()+r.a.engineCheckInterval),r.a.cacheStore.set(l.c.ENGINES_VERSION,t),r.a.searchEngines=e,r.a.ENGINES_VERSION=t}fetchEngine(e){return fetch(e).then(e=>e.json()).then(e=>e.searchengines)}fetchVersion(){return fetch(r.a.enginesVersionUrl).then(e=>e.json())}isNewerVersion(e,t){e=e.split("."),t=t.split(".");const n=e.length>t.length?t.length:e.length;for(let r=0;r<n;r++){const n=parseInt(t[r],10),s=parseInt(e[r],10);if(n>s)return!0;if(n<s)break}return!1}}const W={TAB:0,MESSAGE:1,WEB_REQUEST:2,DOWNLOAD:3,BROWSER_ACTION:4,EXTERNAL_MESSAGE:5,CRYPTO:6,ENGINE_DOWNLOAD:7};class H{constructor(){this.listeners=new Map}getListener(e){return this.listeners.get(e)}getListeners(){return 0===this.listeners.size&&(this.listeners.set(W.TAB,new M),this.listeners.set(W.MESSAGE,new R),this.listeners.set(W.WEB_REQUEST,new x),this.listeners.set(W.DOWNLOAD,new L),this.listeners.set(W.BROWSER_ACTION,new U),this.listeners.set(W.EXTERNAL_MESSAGE,new I),this.listeners.set(W.ENGINE_DOWNLOAD,new k),r.a.nativeSettings.CRYPTOJACKING_DISABLED.value||this.listeners.set(W.CRYPTO,new S)),this.listeners.values()}}class F{constructor(){this.whitelistStore=l.c.TYPOSQUATTING_WHITELIST,this.cacheTyposquatting=l.a.CACHE_TYPOQUATTING,this.baseUrl=r.a.typoSquattingServer,this.locale="en_us",this.http=new i.a}sendAndReceiveRequest({url:e,headers:t}){return new Promise((n,s)=>{const a=setTimeout(()=>{s(new Error("Typosquatting timed out"))},3e3);this.http.sendHttpRequest({method:"GET",url:e,headers:t}).then(e=>{if(clearTimeout(a),null==e)s(new Error("Invalid response for typosquatting request"));else try{n(e.json())}catch(e){r.a.logger.error(e)}},e=>{clearTimeout(a),s(new Error(`HttpService failure: ${e}`))})})}parseUrlToObject(e){const t={};return e.split("&").forEach(e=>{const[n,r]=e.split("=");"bdomain"===n&&(t.typoDomain=r),"bname"===n&&(t.brandName=unescape(r).replace(/\+/g," ")),"xp"===n&&(t.experience="search"===r?3:1),"targeturl"===n&&(t.typoRedirect=unescape(r.replace(/\0/g,"")))}),t}async processResponse({url:e},t,n){const s=r.a.cacheStore.get(this.cacheTyposquatting,{});if(""===e||void 0===e)return s[t]={experience:-1},r.a.cacheStore.set(this.cacheTyposquatting,s),null;if(!A.a.isSiteAdvisorUrl(e))return null;const a=o.a.getParam(e,"payload");if(null==a)return s[t]={experience:-1},r.a.cacheStore.set(this.cacheTyposquatting,s),null;try{const e=await r.a.wasm.wasm_typosquat_decrypt(decodeURIComponent(a)),i=this.parseUrlToObject(e);return i.originalUrl=n,s[t]=i,r.a.cacheStore.set(this.cacheTyposquatting,s),t}catch(e){return r.a.logger.error(e),null}}async lookupTypoSquatFromServer(e){const t=o.a.getDomain(e);try{const n=r.a.cacheStore.get(this.cacheTyposquatting,{})[t];if(n)return-1===n.experience?null:t;const s=`domain=${t}&locale=${this.locale}`,a=`${this.baseUrl}${s}`,i=await r.a.wasm.wasm_typosquat_sha256(s),o=await this.sendAndReceiveRequest({url:a,headers:{"Content-Checksum":i}});return this.processResponse(o,t,e)}catch(e){r.a.logger.error(e)}return null}isInWhitelist(e){return c.isDomainInWhitelist(e,this.whitelistStore)}}class K{constructor(e){this.dispatcher=e,this.settings=[]}add(e,t,n,r){this.settings.push({name:e,value:t,scope:n,type:r})}send(){this.dispatcher&&this.dispatcher.setValues(this.settings)}}var q=n(19),j=n(69),Y=n(17),V=n(16),$=n(31);const{AP_USER_TOGGLE:X,AB_USER_TOGGLE:z,DOWNLOADS_BLOCKED:Q}=r.a.nativeSettings,{BOOL:J}=q.d,{USER:Z}=q.c,ee="action",te="ss_toast",ne="wss_install_flag_changed",re="setting_change",se="ss_welcome_annotation_enabled",ae="blast_to_search_base_trigger";class ie{constructor(e){this.nativeDispatcher=e}processMessage(e){e.forEach(e=>{const{request_type:t,name:n,value:r}=e;t===ee&&this.processAction(n,r)})}processAction(e,t){if(e)switch(e){case te:this.handleSecureSearchToast(t);break;case ne:this.handleWSSInstallFlag(t);break;case re:this.handleSettingChange(t);break;case se:this.handleSSWelcomeAnnotation(t);break;case ae:this.handleBlastSearchBaseTrigger(t)}}handleBlastSearchBaseTrigger(e){try{r.a.cacheStore.set(l.c.BLAST_SEARCH_BASE_FIRST_TIME,!1);const t=JSON.parse(e),{trigger_type:n}=t;if("sidebar"===n){const e={command:m.d.SIDEBAR,payload:{subcommand:m.i.MAIN,componentData:{sidebarMainData:{}}}};f.a.tabs.query({active:!0},([t])=>{f.a.tabs.sendMessage(t.id,e,e=>{f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message),e||C.focusOrCreateTab(f.a.runtime.getURL("html/foreground_sidebar_main.html"))})})}else"how-it-works"===n&&C.focusOrCreateTab(f.a.runtime.getURL("html/how_it_works.html"))}catch(e){r.a.logger.log(`handleBlastSearchBaseTrigger err: ${e}`)}}handleSSWelcomeAnnotation(e){try{const t=JSON.parse(e),{ss_welcome_annotation:n}=t;"boolean"==typeof n&&(r.a.nativeSettings.SS_WELCOME_ANNOTATION.value=n)}catch(e){r.a.logger.log(`handleSSWelcomeAnnotation err: ${e}`)}}handleSecureSearchToast(e){try{const t=JSON.parse(e),{enabled:n,post_accept_action:r}=t;n?this.enableToast(r):this.disableToast()}catch(e){r.a.logger.log(`handleSecureSearchToast err: ${e}`)}}handleWSSInstallFlag(e){try{const t=JSON.parse(e),{wss_installed:n}=t;"boolean"==typeof n&&(r.a.WSS_INSTALLED=n)}catch(e){r.a.logger.log(`handleWSSInstallFlag err: ${e}`)}}handleSettingChange(e){try{const t=JSON.parse(e),{name:n,value:r}=t;if(!n||!r)return;n===Q.name&&T.add(h)}catch(e){r.a.logger.log(`handleSettingChange err: ${e}`)}}toExtensionPage(e){let t=null;switch(e){case b.f.CHROME:t="chrome://extensions";break;case b.f.EDGE:t="edge://extensions";break;case b.f.FIREFOX:t="about:addons"}return t}enableToast(e){const t="redirect_store",n="request_permissions",s="redirect_extension_page";if(r.a.PPS_MODE)return r.a.cacheStore.set(l.a.SS_TOAST_ACCEPTED,!0),void f.a.tabs.query({active:!0},([e])=>{r.a.browserAction.setBadgeText({tabId:e.id,text:"1"},b.e.SS_ACCEPTED)});if(r.a.AP_FEATURE_ENABLED){r.a.cacheStore.set(l.c.USER_ACCEPTED_TOAST_ONCE,!0),r.a.cacheStore.set(l.c.IS_SECURE_SEARCH_SET,!0),r.a.cacheStore.set(l.c.AP_USER_TOGGLE,!0),r.a.cacheStore.set(l.c.AB_USER_TOGGLE,!0),r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH),r.a.cacheStore.set(l.a.USER_ACCEPTED_ADBLOCK_TOAST,!0);const e=new K(this.nativeDispatcher);e.add(X.name,!0,Z,J),e.add(z.name,!0,Z,J),e.send()}switch(e){case t:C.focusOrCreateTab(b.m[A.a.browserTypeToString()]);break;case n:C.focusOrCreateTab(f.a.runtime.getURL("html/settings.html?tabtype=preferences"));break;case s:{const e=this.toExtensionPage(r.a.browserType);null!==e&&C.focusOrCreateTab(e);break}}}disableToast(){if(!r.a.AP_FEATURE_ENABLED||r.a.PPS_MODE)return;r.a.cacheStore.set(l.c.IS_SECURE_SEARCH_SET,!1),r.a.cacheStore.set(l.c.AP_USER_TOGGLE,!1),r.a.cacheStore.set(l.c.AB_USER_TOGGLE,!1),r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.NONE);const e=new K(this.nativeDispatcher);e.add(X.name,!1,Z,J),e.add(z.name,!1,Z,J),e.send()}}const oe=-1,ce=1,le=2,ue=3,de=110,_e=9,he=111,pe=106,Ee=0,ge=1;class Te{constructor(e,t=null,n=null,r=null,s=null){this.onExternalMessage=t,this.onNativeMessage=n,this.onDisconnectEvent=r,this.nativeConnectionString=e,this._connectedToExtension=!1,this._extensionId=chrome.runtime.id,this._callbackMap=new Map,this._callbackId=5,this._nativeCallbackMap=new Map,this._forwardExtensionId=null,this._port=null,this._logger=s,this._onConnectExternal=this._onConnectExternal.bind(this),this._onMessageExternal=this._onMessageExternal.bind(this),this._onMessage=this._onMessage.bind(this),this._onDisconnect=this._onDisconnect.bind(this),this._connectedExtensions=[],this._connectedToNative=!1,this._initExtensionList()}init(e){chrome.runtime.onConnectExternal.addListener(this._onConnectExternal),chrome.runtime.onMessageExternal.addListener(this._onMessageExternal),this._connect(0,e)}_isSupported(e){return this.extensions.includes(e)}_isHigherPriority(e){for(let t=0;t<this.extensions.length;++t){if(e===this.extensions[t])return!0;if(this._extensionId===this.extensions[t])break}return!1}_addConnectedExtension(e){this._connectedExtensions.push(e)}_removeConnectedExtension(e){const t=this._connectedExtensions.indexOf(e);-1!==t&&this._connectedExtensions.splice(t,1)}_onConnectExternal(e){if(this._log(Ee,`External entity ${e.sender.id} connected`),!this._isSupported(e.sender.id))return this._log(Ee,`Unsupported external entity ${e.sender.id} is forcefully disconnected`),void e.disconnect();if(this.nativeConnectionString.toLowerCase()===e.name.toLowerCase()&&!this._isHigherPriority(e.sender.id)){this._addConnectedExtension(e.sender.id);const t=chrome.runtime.connect(e.sender.id);null!==t&&t.onDisconnect.addListener(()=>{chrome.runtime.lastError&&this._log(`Error connecting to native host ${extension.runtime.lastError.message}`),this._removeConnectedExtension(e.sender.id),this._sendDisconnect(e.sender.id)})}}_incrementCallbackId(){return this._callbackId<0||this._callbackId>=2147483647?this._callbackId=5:this._callbackId+=1,this._callbackId}_onMessageExternal(e,t,n){let r=!1;try{if(!this._isSupported(t.id))return void this._log(Ee,`Message received from unsupported entity ${t.id}. Message is ${JSON.stringify(e)}`);if(null===e||!("request_type"in e))return void this._log(ge,`Message received does not have request_type field : ${JSON.stringify(e)}`);if(e.nativeConnectionString.toLowerCase()!==this.nativeConnectionString.toLowerCase())return;if(this._log(Ee,`Message received from external extension ${t.id} ${JSON.stringify(e)}`),e.request_type===de)return n({forwardingsupported:!0,connectedToNative:this._connectedToNative}),void this._log(Ee,`Ping message from low priority extension ${t.id}`);e.request_type===he&&(this._log(Ee,`Message from high priority extension ${t.id} broadcasting its presence`),null!==this._port&&(this._log(Ee,"Disconnection the direct native connection"),this._port.disconnect(),this._port=null),this._log(Ee,`Attempting reconnection to the high priority extension  ${t.id} which broadcasted its presence`),this._connect(0,null));let s=!0;if(null!==this.onExternalMessage){this._log(Ee,`Passing the message ${JSON.stringify(e)} from ${t.id} to external message listener of this extension`);const a=this.onExternalMessage(e,t,n);null!=a&&(s=a.forwardMessage||!0,!0!==s&&(r=a.ret))}if(s&&null!==this._port&&this._connectedToNative){if("id"in e){const s=this._incrementCallbackId();this._callbackMap.set(s,{extensionId:t.id,id:e.id,callback:n}),e.id=s,r=!0}this._log(Ee,`Message ${JSON.stringify(e)} is forwarded to native`),this._nativePostMessage(e)}}catch(e){this._logException(e)}return r}_onMessage(e){if(null===e||!("request_type"in e))return void this._log(ge,`Message received from native does not have request_type. Hence skipping the message. ${JSON.stringify(e)}`);if(e.id){const t=this._nativeCallbackMap.get(e.id);if(null!=t)return this._log(Ee,`Callback exists for message in this extension itself, hence firing that for message : ${JSON.stringify(e)}`),t(e),void this._nativeCallbackMap.delete(e.id)}let t=!0;if(null!==this.onNativeMessage&&(this._log(Ee,`Calling native generic callback for message received from native ${JSON.stringify(e)}`),t=this.onNativeMessage(e)),t)if("id"in e){const t=this._callbackMap.get(e.id);void 0!==t&&(this._log(Ee,`Forwarding message ${JSON.stringify(e)} to callback extension ${t.extensionId}`),e.id=t.id,t.callback(e),this._callbackMap.delete(e.id))}else"forwardid"in e&&chrome.runtime.sendMessage(e.forwardid,e,null,null)}_onDisconnect(e){chrome.runtime.lastError&&this._log(Ee,`Connection to native/extension failed Error is: ${chrome.runtime.lastError.message}`),this._log(Ee,"Disconnected from native. Trying to connect loop again"),this._port=null,null!==this.onDisconnectEvent&&this.onDisconnectEvent(e),this._connectedToNative?this._connectedToNative=!1:this._connect(0,null)}_initExtensionList(){switch(this._toBrowserType()){case le:this.extensions=["fheoggkfdfchfphceeifdbepaooicaho","cpaibbcbodhimfnjnakiidgbpiehfgci","klekeajafkkpokaofllcadenjdckhinm","kanjcmmieblbpbihaafnedamppkhfadn","ciahhpibjeonlihjdefecmhminjpmfkk","nbeldjopgciegccabfohnefghfpinncn"];break;case ue:this.extensions=["fdhgeoginicibhagdmblfikbgbkahibd","gnnbmcifkkjgjdbkilfglpdpmidkgefn","lamehkegphbbfdailghaeeleoajilfho"];break;case ce:this.extensions=["{4ED1F68A-5463-4931-9384-8FFF5ED91D92}","@true-key"]}}_toBrowserType(){return navigator.userAgent.indexOf("Edg")>=0?ue:navigator.userAgent.indexOf("Chrome")>=0?le:navigator.userAgent.indexOf("Gecko")>=0?ce:oe}_log(e,t){null!==this._logger&&this._logger.log(t,e)}_logException(e){let t=e.message;chrome.runtime.lastError&&chrome.runtime.lastError.message&&(t+=`LastError :${chrome.runtime.lastError.message}`),this._log(ge,t)}_toDisconnectMessage(e){const t={};return t.request_type=pe,t.payload={},t.payload.browser_type=this._toBrowserType(),t.payload.extn_id=e,t}_sendDisconnect(e){try{const t=this._toDisconnectMessage(e);this._nativePostMessage(t),this._log(Ee,`Sent disconnect message directly to native ${JSON.stringify(handshake)}`)}catch(e){this._logException(e)}}_toHandshakeMessage(){return{request_type:_e,id:this._incrementCallbackId(),payload:{extn_id:this._extensionId,extn_version:chrome.runtime.getManifest().version,browser_type:this._toBrowserType(),user_agent:navigator.userAgent}}}_sendhandshake(){try{const e=this._toHandshakeMessage();if(this._nativePostMessage(e))return this._log(Ee,`Sent handshake message directly to native ${JSON.stringify(e)}`),!0}catch(e){this._logException(e)}return!1}_connect(e,t=null){if(e>=this.extensions.length)return void(t&&t({connected:!1}));if(this.extensions[e]===this._extensionId){if(this._log(Ee,"No other high priority extension available, hence connecting directly to native"),this._port=chrome.runtime.connectNative(this.nativeConnectionString),this._connectedToExtension=!1,this._port.onMessage.addListener(this._onMessage),this._port.onDisconnect.addListener(this._onDisconnect),this._forwardExtensionId=null,this._sendhandshake()){this._connectedToNative=!0;const n={};n.request_type=he,n.payload={};for(let t=e+1;t<this.extensions.length;++t)chrome.runtime.sendMessage(this.extensions[t],n,()=>{chrome.runtime.lastError&&this._log(Ee,`Message failed to send: ${chrome.runtime.lastError.message}`)});return void(t&&t({connected:!0}))}return void(t&&t({connected:!1}))}const n={};n.request_type=de,n.nativeConnectionString=this.nativeConnectionString,n.payload={},chrome.runtime.sendMessage(this.extensions[e],n,n=>{if(chrome.runtime.lastError)return this._log(Ee,`Message failed to send: ${chrome.runtime.lastError.message}`),void this._connect(e+1,t);if(null==n)return this._log(Ee,`High priority extension ${this.extensions[e]} did not respond with appropriate response. Hence trying the next high priority available extension`),void this._connect(e+1,t);if(!n.forwardingsupported)return this._log(Ee,`High priority extension ${this.extensions[e]} responded but it does not support forwarding. Hence trying next priority extension`),void this._connect(e+1,t);if(this._log(Ee,`High priority extension ${this.extensions[e]} responded and supports forwarding.`),n.connectedToNative){this._log(Ee,`High priority extension ${this.extensions[e]} is connected to native, hence we are forwarding to it`),this._port=chrome.runtime.connect(this.extensions[e],{name:this.nativeConnectionString}),this._connectedToExtension=!0,this._port.onMessage.addListener(this._onMessage),this._port.onDisconnect.addListener(this._onDisconnect),this._forwardExtensionId=this.extensions[e];const n=this._toHandshakeMessage();this._postMessageInternal(n),t&&t({connected:!0})}else this._log(Ee,`High priority extension ${this.extensions[e]} supports forwarding, but is not connected to native`),t&&t({connected:!1})})}_nativePostMessage(e){try{return this._port.postMessage(e),!0}catch(e){return chrome.runtime.lastError&&this._log(ge,`Post message failed with last Error ${chrome.runtime.lastError.message}`),this._logException(e),!1}}_postMessageInternal(e,t=null){if(e.id=this._incrementCallbackId(),null!==this._forwardExtensionId)e.nativeConnectionString=this.nativeConnectionString,chrome.runtime.sendMessage(this._forwardExtensionId,e,e=>{chrome.runtime.lastError||null!==t&&t(e)});else{if(null===this._port)return;null!==t&&this._nativeCallbackMap.set(e.id,t),this._nativePostMessage(e)}}getConnectedExtensions(){return this._connectedExtensions}isConnected(){return this._connectedToExtension||this._connectedToNative}postMessage(e,t=null){try{return null!==e&&null!==e.request_type&&e.request_type!==_e&&e.request_type!==he&&e.request_type!==de&&(this._postMessageInternal(e,t),!0)}catch(e){return this._logException(e),!1}}}const fe={GET_VALUES_RESPONSE:0,EXECUTE_COMMAND:1,REDIRECT_URL:3,REFRESH:4,RESTART:5,LOGMSG:6,HANDSHAKE_GREETING:8,EXTENSION_STATE_RESPONSE:9,GENERIC_NATIVE_REQUEST:12,DOWNLOAD_SCAN_RESULT:13,DELETE_FILE_RESULT:14},me=0,Se=1,Ae=2,Oe=6,Ne=7,Ie=12,Ce=13,be=14,ye=15,Re=16,Le=18,ve=19,De=20,we=21,Pe=22,{INT:Me,BOOL:xe,STRING:Ge}=q.d,{SYSTEM:Be}=q.c,{SMA_ANNOTATION_OPTIONS:Ue,SMA_USER_TOGGLE:ke,BROWSER_TYPE:We,USER_AGENT:He,EXTENSION_VERSION_CH:Fe,EXTENSION_VERSION_ED:Ke,EXTENSION_VERSION_FF:qe}=r.a.nativeSettings;class je{constructor(){this.browserStartSent=!1,this.nativeClient=null,this.nativeMsgHandler=null,this.portNames=["webadvisor.mcafee.chrome.extension","siteadvisor.mcafee.chrome.extension"],this.portIndex=0,this.port=null}sendInitialSettings(){const e={[b.f.CHROME]:Fe.name,[b.f.FIREFOX]:qe.name,[b.f.EDGE]:Ke.name},t=new K(this);t.add(We.name,r.a.browserType.toString(),Be,Ge),t.add(He.name,navigator.userAgent,Be,Ge),t.add(e[r.a.browserType],b.g.EXTENSION_VERSION.toString(),Be,Ge),t.send();const n=r.a.cacheStore;(async()=>{try{await n.isInit();const e=n.get(l.c.SOCIAL_MEDIA_ANNOTATION_TOGGLE,!0),t=n.get(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,Y.b),r=new K(this);r.add(ke.name,e,Be,xe),r.add(Ue.name,t,Be,Me),r.send()}catch(e){r.a.logger.error(`updateNativeSettings error: ${e}`)}})()}toNativeSettingNames(){const e=new Map;return Object.getOwnPropertyNames(r.a.nativeSettings).forEach(t=>{e.set(r.a.nativeSettings[t].name,t)}),e}updateBackgroundGlobals(e){const t=Object.getOwnPropertyNames(e),n=this.toNativeSettingNames();t.forEach(t=>{let s=e[t];if(void 0!==s){const e=n.get(t);if(void 0!==e){const t=r.a.nativeSettings[e];void 0!==t.preprocess&&(s=t.preprocess(s)),t.value=s}}})}handleNativeSettings(e){this.updateBackgroundGlobals(e);const{USER_NATIVE_STATS:t}=l.c;r.a.cacheStore.get(t,!0)&&(T.init(),r.a.cacheStore.set(t,!1)),this.cacheWhitelist(r.a.nativeSettings.BLOCKPAGE_WHITELIST.value,r.a.nativeSettings.TS_WHITELIST.value)}async getInitialSettings(){const e=Object.values(r.a.nativeSettings).filter(e=>!0!==e.writeOnly),t=await this.getValues(e);this.handleNativeSettings(t)}connectToPort(){if(this.portIndex>=this.portNames.length)return;const e=this.portNames[this.portIndex++];r.a.logger.log(`Connecting to native host ${e}`);this.nativeClient=new Te(e,null,e=>(this.processMessage(e),!1),e=>{r.a.logger.log(`Error connecting to native host or external extension: ${e.error}`),this.connectToPort()},r.a.logger),this.nativeClient.init(t=>{t.connected?this.sendInitialSettings():(r.a.logger.error(`Failed to connect to native host ${e}`),this.connectToPort())})}init(){try{this.connectToPort()}catch(e){r.a.logger.error(e.message)}}autoPlayVideoSite(e){this.nativeClient.postMessage(e)}cacheWhitelist(e,t){const{BLOCK_PAGE_WHITELIST:n,TYPOSQUATTING_WHITELIST:s,WHITELIST_FLAG:a}=l.c;if(r.a.cacheStore.get(a))return;const i=void 0!==e?e.split(";"):[],o=void 0!==t?t.split(";"):[];c.addDomainsToWhitelist(i,n),c.addDomainsToWhitelist(o,s),r.a.cacheStore.set(a,!0)}getExtensionStatus({extension_id:e},t){if(!N.a.isWhiteListed(e)&&!N.a.isWhiteListedLimited(e))return;const n={request_type:Ie,payload:{extension_id:e}};this.nativeClient.postMessage(n,e=>{const{payload:n}=e;"function"==typeof t&&t(n.extension_state)})}logger(e){try{const{browserType:t,extensionType:n,logLevel:r,message:s,processType:a}=e,i={request_type:Oe,id:0,payload:{process_type:a,browser_type:t,extension_type:n,log_level:r,msg:s}};this.nativeClient.postMessage(i)}catch(t){r.a.logger.setNativeLogging(!1),r.a.logger.error(`Failed to log with details: ${JSON.stringify(e)}. Exception: ${t.message}`)}}handleNativeHandshake(e){const{settings:t}=e;t&&(t[q.a.USE_NATIVE_LOGGER]&&r.a.logger.setNativeLogging(!0),r.a.AUTO_PLAY_NOTIFICATION_ENABLED=t[q.a.WEBBOOST_AUTO_PLAY_NOTIFICATION]||!1,this.getInitialSettings(),this.getNativeCache())}SetXYViewport(e,t){const n={X:e,Y:t};r.a.ffViewports=n,this.browserStartSent||(this.executeCommand({command_id:0,args:n}),this.browserStartSent=!0)}genericNativeRequest(e){new ie(this).processMessage(e)}downloadScanResult(e){if(!r.a.PPS_MODE||e.is_download_safe)return;const t={filePath:e.file_path,fileUrl:e.file_url},n=r.a.cacheStore.get(l.a.DOWNLOAD_SCANNING_QUEUE);n.push(t),r.a.cacheStore.set(l.a.DOWNLOAD_SCANNING_QUEUE,n),T.add(h),this.triggerDownloadScanningActionPanel(t)}deleteDownloadedFileStatus(e){if(!r.a.PPS_MODE)return;const t={filePath:e.file_path,fileUrl:e.file_url};let n=null;const s={downloadScanData:t};n=0===e.error_code?m.i.DOWNLOAD_SCANNING_FILE_DELETED:m.i.DOWNLOAD_SCANNING_FILE_NOT_DELETED,f.a.tabs.query({active:!0},([e])=>{const t={componentData:s};r.a.tabData.update(e.id,{actionPanelData:t}),f.a.tabs.sendMessage(e.id,{command:m.d.SIDEBAR,payload:{subcommand:n,componentData:s}})})}triggerDownloadScanningActionPanel(e){new Promise(e=>{f.a.tabs.query({active:!0},([t])=>{e(t)})}).then(t=>{const n={componentData:{downloadScanData:e}};r.a.tabData.update(t.id,{actionPanelData:n});const s={command:m.d.SIDEBAR,payload:{subcommand:m.i.DOWNLOAD_SCANNING_MALICIOUS,componentData:componentData}};f.a.tabs.sendMessage(t.id,s,e=>{if(f.a.runtime.lastError&&r.a.logger.log(f.a.runtime.lastError.message),!e){const e=r.a.cacheStore.get(l.a.DOWNLOAD_SCANNING_QUEUE);e.pop(),r.a.cacheStore.set(l.a.DOWNLOAD_SCANNING_QUEUE,e),r.a.logger.log("Failed to get response from content script."),C.focusOrCreateTab(f.a.runtime.getURL(`html/foreground_sidebar_ds_malicious.html?tab-id=${t.id}`))}})})}processInwardMessage(e){const{payload:t,request_type:n}=e,s=Object.keys(fe).find(e=>fe[e]===n);switch(r.a.logger.log(`Processing message from binary: ${n} (${s})\n${JSON.stringify(t)}`),n){case fe.HANDSHAKE_GREETING:this.handleNativeHandshake(t);break;case fe.RESTART:f.a.runtime.reload();break;case fe.GENERIC_NATIVE_REQUEST:this.genericNativeRequest(t);break;case fe.DOWNLOAD_SCAN_RESULT:this.downloadScanResult(t);break;case fe.DELETE_FILE_RESULT:this.deleteDownloadedFileStatus(t);break;case fe.REDIRECT_URL:{const{redirect_url:e}=t;e&&A.a.isPropertRedirectUrl(e)&&C.focusOrCreateTab(e);break}}}processMessage(e){const t=JSON.stringify(e);if("request_type"in e&&"id"in e&&"payload"in e)try{this.processInwardMessage(e)}catch(e){r.a.logger.log(`Native json message may be missing some keys: ${t} + ${e.message} `)}else r.a.logger.log(`Invalid native json message: ${t} `)}setValues(e){this.nativeClient.postMessage({request_type:Se,payload:{VERB:"set-setting",PAYLOAD:e}})}getValues(e){const t={request_type:me,payload:{VERB:"get-setting",PAYLOAD:e}};return new Promise(e=>{this.nativeClient.postMessage(t,t=>{const{response:n}=t.payload,r={};if(Array.isArray(n)){for(const e of n)void 0!==e.name&&void 0!==e.value&&(r[e.name]=e.value);e(r)}else e(r)})})}uninit(){this.port&&(this.port.disconnect(),this.port=null)}onDownloadFinished(e){this.nativeClient.postMessage(e)}executeCommand({command_id:e,args:t}){this.nativeClient.postMessage({request_type:Ae,id:0,payload:{command_id:e,args:t}})}installExtension(e,t){this.nativeClient.postMessage({request_type:Ce,id:0,payload:{extension_id:e,redirect_url:t}})}postMessage(e){this.nativeClient.postMessage(e)}sendTelemetry(e){this.nativeClient.postMessage(e)}extensionStatusUpdate({extensionId:e}){this.nativeClient.postMessage({request_type:ye,id:0,payload:{extension_id:e}})}getNativeCache(e=""){const t={request_type:Le,payload:{last_url:e}};this.nativeClient.postMessage(t,e=>{try{const t=JSON.parse(e.payload);if(!Array.isArray(t)||1!==t.length)return;const n=t[0].a;if(!n||!Array.isArray(n)||0===n.length)return;let s="";for(const e of n)if(s=e.url,delete e.url,!r.a.gtiCache.setReputation(s,e))return;this.getNativeCache(s)}catch(e){r.a.logger.error(`Exception in getNativeCache: ${e.message}`)}})}pushCacheToNative(e){const t={request_type:ve,payload:{cache_data:e}};this.nativeClient.postMessage(t)}shouldShowToast(e){const t={request_type:De,payload:{}};this.nativeClient.postMessage(t,({payload:t})=>{t&&e(t)})}showNPSChecklist(e,t){const n={name:e?"EVENT_BROWSER_BlockPageNavigate":"EVENT_BROWSER_SearchPageNavigate",data:{Url:t}};b.g.BROWSER_TYPE===b.f.CHROME&&this.nativeClient.postMessage({request_type:we,payload:n})}deleteMaliciousFile({filePath:e,fileUrl:t}){const n={file_path:e,file_url:t};this.nativeClient.postMessage({request_type:Pe,payload:n})}showPermRequestBalloon(){this.nativeClient.postMessage({request_type:we,payload:{name:"EVENT_SERVICE_browser_dialog",data:{dialog_type:1,window_name:""}}})}showAmazonExtnUpsellToast(e,t,n,r){const s={name:"event_amazon_upsell",data:{triggered_by:"browser_navigate",category_group:e,toast_count:t,amazon_extension_status:n,url:r}};this.nativeClient.postMessage({request_type:we,payload:s})}blastSearchBase(e){const{pagesScanned:t}=e,n={name:"event_blast_to_base",data:{show_protection_summary:t&&t>50}};this.nativeMsgHandler.postMessage({request_type:we,payload:n})}}const{INT:Ye,STRING:Ve,BOOL:$e}=q.d,{SYSTEM:Xe,USER:ze}=q.c,{SECURE_SEARCH_TOAST_STAMP:Qe,SECURE_SEARCH_SHOW_ICONS:Je,SECURE_SEARCH_ANNOTATION_ONLY:Ze,TS_WHITELIST:et,CHECKLIST_START_INGORE_DATE_AV:tt,CHECKLIST_START_IGNORE_DATE_FW:nt,CHECKLIST_IGNORE_DURACTION:rt,CHECKLIST_GRACE_PERIOD_AV:st,CHECKLIST_GRACE_PERIOD_FW:at,CHECKLIST_GRACE_PERIOD_DURATION:it,SMA_ANNOTATION_OPTIONS:ot,SMA_USER_TOGGLE:ct,SECURE_SEARCH_CHOICE:lt,ADBLOCK_REENABLE_TOAST:ut,FF_EXTENSION_LAST_TOAST_TIME:dt,FF_EXTENSION_TOAST_COUNT:_t,SS_WELCOME_ANNOTATION:ht}=r.a.nativeSettings;class pt{constructor(e){this.nativeDispatcher=e}autoPlayVideoSite(e,t,n,s){const a={request_type:Re,payload:{site_domain:e,video_url:t,coordinate_x:n,coordinate_y:s}};r.a.logger.log(`Autoplay site found in page ${e}`),this.nativeDispatcher&&this.nativeDispatcher.autoPlayVideoSite(a)}setNativeValuesByStoreVariable(e,t){if(e===l.c.AP_USER_TOGGLE||e===l.c.AB_USER_TOGGLE){const n=r.a.nativeSettings[e].name,s=new K(this.nativeDispatcher);s.add(n,t,ze,$e),s.send()}}cacheStore(e,t,n){const{SET:s,GET:a,CLEAR:i}=l.b;if(e===a){for(const e in t)t[e]=r.a.cacheStore.get(e,t[e]);return n(t),!0}if(e===s&&t)for(const e in t)this.setNativeValuesByStoreVariable(e,t[e]),r.a.cacheStore.set(e,t[e]);if(e===i)for(const e in t)r.a.cacheStore.clear(e);return n(!0),!1}executeCommand(e,t){this.nativeDispatcher&&this.nativeDispatcher.executeCommand(e,t)}extensionStatusUpdate({extensionId:e}){this.nativeDispatcher&&this.nativeDispatcher.executeCommand({extensionId:e})}getPopupData(e,t,n){const s={};s.stats=T.read(),s.url=t,s.tabData=r.a.tabData.get(e),s.tabId=e,s.AP_FEATURE_ENABLED=r.a.nativeSettings.AP_FEATURE_ENABLED.value,s.BINARY_VERSION=r.a.nativeSettings.BINARY_VERSION.value,s.PPS_MODE=r.a.PPS_MODE,s.cacheStore=r.a.cacheStore,n(s)}getSettingsData(e){const{cacheStore:t}=r.a,n={},s=c.getDomainsFromWhitelist(l.c.BLOCK_PAGE_WHITELIST),a=t.get(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH),i=t.get(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,Y.b),o=t.get(l.c.SOCIAL_MEDIA_ANNOTATION_TOGGLE,!0);n.whitelistedLinks=s,n.searchAnnotationOption=a,n.sma={socialMediaOption:i,socialMediaToggle:o},n.stats=T.read(),e(n)}postMessage(e){return this.nativeDispatcher&&this.nativeDispatcher.postMessage(e)}makeGTIRequest(e,t,n,r=null){const s=new j.GTIRequestor;return new Promise(a=>s.post(e,t,n,r,a))}async handleTyposquatting(e){if(r.a.PPS_MODE)return{whitelisted:!1,domain:null};const t=new F;if(t.isInWhitelist(o.a.getDomain(e)))return{whitelisted:!0,domain:null};try{return{whitelisted:!1,domain:await t.lookupTypoSquatFromServer(e)}}catch(e){return r.a.logger.error(`Error: ${e}`),{whitelisted:!1,domain:null}}}isFrameBlocked(e,t){const n=o.a.getDomain(e);if(c.isDomainInWhitelist(n,l.c.BLOCK_PAGE_WHITELIST))return{isBlocked:!1,redirectURI:e};if(r.a.tabData.get(t).tabDomainTrusted)return{isBlocked:!1,redirectURI:e};const s=r.a.gtiCache.getReputation(e);if(!s||!s.cache_entry)return{isBlocked:!1,redirectURI:e};const a=this.toBlockState(s.cache_entry.value);return a.color===b.h.RED||a.color===b.h.YELLOW?{isBlocked:!0,redirectURI:e}:{isBlocked:!1,redirectURI:e}}installExtension(e,t){this.nativeDispatcher&&this.nativeDispatcher.installExtension(e,t)}logger(e){this.nativeDispatcher&&this.nativeDispatcher.logger(e)}handleUrlReputation(e,t,n,s){const{color:a=null,statusOfBlocking:i=null,typoDomain:o=null,whitelisted:c,categories:l=[]}=e,u=[...b.c].includes(i),_=i===b.c.RED||i===b.c.YELLOW||i===b.c.PHISHING,h=s<=0;if(h&&this.increasePageScannedCounter(),c||!u)return void(h&&(r.a.browserAction.setIcon(a,n),r.a.browserAction.updateTabUrl(n,t)));let p,E;T.add(d);const g=[];if(h){if(r.a.PPS_MODE&&_){const e={componentData:{blockPageData:{url:t,blockState:i,categories:l,isFromSearchPage:!1}}};r.a.tabData.update(n,{actionPanelData:e});const s="html/foreground_sidebar_block_page.html";if(t.includes(s))return;const a=`${f.a.runtime.getURL(s)}`;f.a.tabs.update(n,{url:a})}else{i===b.c.TYPOSQUATTING?g.push(G.e.TYPOSQUATTING):(p=G.i.TOP,g.push(G.e.BLOCK_PAGE));const e=null!==o?o:t,s=this.toBlockPageUrl(i,a,e);r.a.tabData.setTabBlockPageData(n,{bState:i,url:e,categories:l}),f.a.tabs.update(n,{url:s.url})}r.a.browserAction.setIcon(a,n),r.a.browserAction.updateTabUrl(n,t)}else this.handleSubFrameBlocking(n,t,s),E=r.a.PPS_MODE?BLOCK_PAGE_STYLE.NORMAL:null,p=G.i.FRAME,g.push(G.e.BLOCK_PAGE);this.sendRespectiveTelemetry(g,{color:a,pageLevel:p,pageStyle:E})}handleSubFrameBlocking(e,t,n){r.a.tabData.addBlockedFrame(e,{url:t,frameId:n});let s=m.d.TOPBAR,a=m.k.IFRAME_BLOCK;r.a.PPS_MODE&&(s=m.d.SIDEBAR,a=m.i.IFRAME_BLOCK),f.a.tabs.sendMessage(e,{command:s,payload:{subcommand:a,componentData:{iframeBlockData:{url:t}}}})}async onHeadersReceived(e,t,n,s){if("localhost"===o.a.getDomain(e)&&!r.a.ALLOW_LOCALHOST)return;const a=await this.toUrlReputation(e,t,n,s);this.handleUrlReputation(a,e,t,n)}async checkTabGTICategoryForUpsell(e,t){const n=await this.toUrlReputation(e.url,e.tab.id,e.frameId,null),r={categoryId:null,upsellCategoryType:null};if(!Object.prototype.hasOwnProperty.call(n,"categories"))return r;for(const e of n.categories)if(r.categoryId=e,t.includes(e)){r.upsellCategoryType=$.b.SHOPPING;break}return r}onNavigate(e){this.sendRespectiveTelemetry([G.e.BROWSER_NAVIGATE],{url:e})}sendRespectiveTelemetry(e,t){const n={isFromBackground:!0};e.forEach(e=>{switch(e){case G.e.BLOCK_PAGE:n.identifier=e,n.colour=t.color,n.level=t.pageLevel,n.blockPageStyle=t.pageStyle;break;case G.e.TYPOSQUATTING:n.identifier=e;break;case G.e.BROWSER_NAVIGATE:n.identifier=e,n.url=t.url}n.identifier&&B.a.handle(n)})}onDownloadFinished(e){const t={request_type:Ne,id:0,payload:{url:e.url,file_path:e.filename,referrer:e.referrer||"",mime_type:e.mime_type||"",ext_side_ui:Boolean(r.a.PPS_MODE)}};this.nativeDispatcher&&(this.nativeDispatcher.onDownloadFinished(t),r.a.PPS_MODE&&f.a.tabs.query({active:!0},([e])=>{f.a.tabs.sendMessage(e.id,{command:m.d.FLOATING_BALLOON,payload:{subcommand:m.g.UPDATE_DOWNLOAD_SCAN_COUNT}})}),T.add(_))}pushCacheToNative(e){this.nativeDispatcher&&this.nativeDispatcher.pushCacheToNative(e)}resetSettings(){r.a.cacheStore.clear(l.c.SMA_FIRST_TIME),r.a.cacheStore.clear(l.c.WSS_UPSELL_GTI_FAMILY_LAST_SHOWN),r.a.cacheStore.clear(l.c.WSS_UPSELL_GTI_FAMILY_SHOWN_COUNT),r.a.cacheStore.clear(l.c.WSS_UPSELL_GTI_FINANCIAL_LAST_SHOWN),r.a.cacheStore.clear(l.c.WSS_UPSELL_GTI_FINANCIAL_SHOWN_COUNT),r.a.cacheStore.clear(l.c.RAT_DETECTION_WHITELIST),r.a.cacheStore.clear(l.a.SS_WELCOME_OVERLAY_PER_SESSION),r.a.cacheStore.clear(l.c.BLAST_SEARCH_BASE_FIRST_TIME);const e=new K(this.nativeDispatcher);e.add(Qe.name,0,ze,Ye),e.add(et.name,"",ze,Ve),e.add(tt.name,"",Xe,Ve),e.add(nt.name,"",Xe,Ve),e.add(rt.name,"14",Xe,Ve),e.add(st.name,"",Xe,Ve),e.add(at.name,"",Xe,Ve),e.add(it.name,"24",Xe,Ve),e.add(ut.name,!1,ze,$e),e.add(dt.name,0,ze,Ye),e.add(_t.name,0,ze,Ye),e.send()}resetNativeSetting(e){if(!e)return;const{name:t,value:n,scope:r,type:s}=e,a=new K(this.nativeDispatcher);a.add(t,n,r,s),a.send()}resolveBlockPage(e){let t=null;switch(e){case b.c.YELLOW:case b.c.RED:case b.c.PHISHING:t="html/site_status_block_page.html";break;case b.c.TYPOSQUATTING:t="html/site_status_typosquatting.html"}return t}searchAnnotation(e,t,n){const{cacheStore:s}=r.a,{GET:a,SET:i}=O.b;if(e===a){return n(s.get(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH)),!0}const o=t.searchAnnotationOption;if(e===i&&o){s.set(l.c.SEARCH_ANNOTATION_OPTION,o);let e=!1,t=!1;o===O.a.ALL?t=!0:o===O.a.ONLY_SECURE_SEARCH&&(e=!0,t=!0);const n=new K(this.nativeDispatcher);n.add(Ze.name,e,Xe,$e),n.add(Je.name,t,ze,$e),n.send()}return n(!0),!1}sendTelemetry(e){Object(y.e)(e,y.b.INFO,y.d.TELEMETRY);const t={request_type:be,id:0,payload:{telemetry_data:e}};this.nativeDispatcher&&this.nativeDispatcher.sendTelemetry(t)}SetXYViewport(e,t){this.nativeDispatcher&&this.nativeDispatcher.SetXYViewport(e,t)}showNPSChecklist(e,t){this.nativeDispatcher&&this.nativeDispatcher.showNPSChecklist(e,t)}socialMediaAnnotation(e,t,n){const{cacheStore:s}=r.a,a=s.get(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,Y.b),i=s.get(l.c.SOCIAL_MEDIA_ANNOTATION_TOGGLE,!0),{TOGGLE_ON:o,TOGGLE_OFF:c,ANNOTATION_ENABLE:u,ANNOTATION_ENABLE_ALL:d,ANNOTATION_DISABLE:_,ANNOTATION_DISABLE_ALL:h,GET:p}=Y.a;if(e===p)return n({socialMediaOption:a,socialMediaToggle:i}),!0;if(e===o){const e=new K(this.nativeDispatcher);return e.add(ct.name,!0,Xe,$e),e.send(),s.set(l.c.SOCIAL_MEDIA_ANNOTATION_TOGGLE,!0),n({socialMediaOption:a,socialMediaToggle:!0}),!0}if(e===c){const e=new K(this.nativeDispatcher);e.add(ct.name,!1,Xe,$e),e.send(),s.set(l.c.SOCIAL_MEDIA_ANNOTATION_TOGGLE,!1)}if(e===d){const e=new K(this.nativeDispatcher);e.add(ot.name,Y.b,Xe,Ye),e.send(),s.set(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,Y.b)}if(e===h){const e=Y.c.NONE,t=new K(this.nativeDispatcher);t.add(ot.name,e,Xe,Ye),t.send(),s.set(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,e)}if(e===u){const{socialMediaType:e}=t;if(Object.values(Y.c).includes(e)&&!(e&a)){const t=a+e;s.set(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,t);const n=new K(this.nativeDispatcher);n.add(ot.name,t,Xe,Ye),n.send()}}if(e===_){const{socialMediaType:e}=t;if(Object.values(Y.c).includes(e)&&e&a){const t=a-e;s.set(l.c.SOCIAL_MEDIA_ANNOTATION_OPTION,t);const n=new K(this.nativeDispatcher);n.add(ot.name,t,Xe,Ye),n.send()}}return n(!0),!1}toBlockState(e){const t=A.a.toColor(e);let n=t,r=null;return e?(t!==b.h.RED&&t!==b.h.YELLOW||!A.a.isPhishingURI(e.cat)||(n=b.c.PHISHING),r={color:t,state:n}):r={color:b.h.UNKNOWN,state:b.c.UNKNOWN},r}toBlockPageUrl(e){let t=null;if([...b.c].includes(e)){const n=this.resolveBlockPage(e);t=`${f.a.runtime.getURL(n)}`}return{url:t}}toBrowserActionColor(e){const t=r.a.gtiCache.getReputation(e);return t&&t.cache_entry?A.a.toColor(t.cache_entry.value):null}async toUrlReputation(e,t,n,s){if(!A.a.isProperWebURL(e))return{color:b.h.UNKNOWN,statusOfBlocking:b.c.UNKNOWN,whitelisted:!1};if(A.a.isHackerSafeUrl(e))return{color:b.h.HACKERSAFE,statusOfBlocking:b.c.HACKERSAFE,whitelisted:!1};const a=n<=0;if(a&&r.a.tabData.reset(t),r.a.tabData.get(t).tabDomainTrusted)return{color:b.h.HACKERSAFE,statusOfBlocking:b.c.HACKERSAFE,whitelisted:!1};if(a){const n=o.a.getDomain(e);if(r.a.trustedDomains.has(n))return r.a.tabData.update(t,{tabDomainTrusted:!0}),{color:b.h.HACKERSAFE,statusOfBlocking:b.c.HACKERSAFE,whitelisted:!1}}const i=await this.makeGTIRequest(e,!1,[e],s),u=o.a.getDomain(e),d=c.isDomainInWhitelist(u,l.c.BLOCK_PAGE_WHITELIST);let _={state:b.c.UNKNOWN,color:b.h.UNKNOWN},h=[];if(i&&i.annotationMap&&(_=this.toBlockState(i.annotationMap[e]),({cat:h=[]}=i.annotationMap[e])),(d||_.state===b.c.GREEN||_.state===b.c.UNKNOWN)&&t>0&&n<=0){const{whitelisted:t,domain:n}=await this.handleTyposquatting(e);let r=_.state,s=d;return null!==n&&(r=b.c.TYPOSQUATTING,s=t),{color:_.color,statusOfBlocking:r,whitelisted:s,typoDomain:n,categories:h||[]}}return{color:_.color,statusOfBlocking:_.state,whitelisted:d,categories:h||[]}}whitelist(e,t,n,s){const a=V.b[t];if(!t||!a)return r.a.logger.error(`invalid type: '${t}' or storeVariable: '${a}'`),s(!0),!1;const{ADD:i,GET:o,REMOVE:l,CLEAR:u}=V.a;if(e===o){return s(c.getDomainsFromWhitelist(a)),!0}return e===i&&n.domains&&c.addDomainsToWhitelist(n.domains,a),e===l&&n.domains&&c.removeDomainFromWhitelist(n.domains,a),e===u&&c.clearWhitelist(a),s(!0),!1}unblockAllIframes(e,t){const n=r.a.tabData.getBlockedFrames(e);let s=!1;n.forEach(({url:t,frameId:n})=>{const r=o.a.getDomain(t);this.whitelist(V.a.ADD,V.c.IFRAME,{tabId:e,url:t,frameId:n,domains:[r]},()=>{});const a={command:m.d.UNBLOCK_IFRAME,url:t};-1!==n?f.a.tabs.sendMessage(e,a,{frameId:n}):s=!0}),r.a.tabData.resetBlockedFrames(e),s&&f.a.tabs.update(e,{url:t})}shouldShowToast(e){this.nativeDispatcher&&this.nativeDispatcher.shouldShowToast(e)}closeToast(e){const t=Math.round((new Date).getTime()/1e3),n=new K(this.nativeDispatcher);n.add(lt.name,e,ze,$e),n.add(Qe.name,t,ze,Ye),n.send()}anyBlockedIframes(e,t,n){if(r.a.tabData.getBlockedFrames(e).length>0)n(!0);else{let s=!1;for(let n=0;n<t.length;++n){if(!A.a.isProperWebURL(t[n]))continue;this.isFrameBlocked(t[n],e).isBlocked&&(s=!0,r.a.tabData.addBlockedFrame(e,{url:t[n],frameId:-1}))}n(s)}}anyBlockedCryptoScripts(e,t){t(r.a.tabData.get(e).cryptoBlockData)}updateBrowserAction(e,t,n,s){const{text:a,bounce:i,priority:o=null}=e,c={};t||(c.tabId=n),void 0!==a&&(c.text=a,r.a.browserAction.setBadgeText(c,o)),void 0!==i&&(i?r.a.browserAction.setBounce(n,s,o):r.a.browserAction.stopBounce(n))}deleteMaliciousFile(e){this.nativeDispatcher&&this.nativeDispatcher.deleteMaliciousFile(e)}triggerDownloadScanningActionPanel(e){this.nativeDispatcher&&this.nativeDispatcher.triggerDownloadScanningActionPanel(e)}getExtensionStatus(e,t){this.nativeDispatcher&&this.nativeDispatcher.getExtensionStatus(e,t)}showPermRequestBalloon(){this.nativeDispatcher&&this.nativeDispatcher.showPermRequestBalloon()}showAmazonExtnUpsellToast(e,t,n,r){this.nativeDispatcher&&this.nativeDispatcher.showAmazonExtnUpsellToast(e,t,n,r)}async getAmazonUpsellCategoryDetails(e,t){const n={count:-1,lastShown:-1,upsellCategoryType:null,categoryId:null,sameTabCategory:!0,domain:null},{AMAZON_EXTN_TRIGGER_CATEGORIES:s}=r.a,{upsellCategoryType:a,categoryId:i}=await this.checkTabGTICategoryForUpsell(e,s);if(n.upsellCategoryType=a,n.categoryId=i,!a||!i)return void t({...n,sameTabCategory:!1});const c=$.a[a];n.count=r.a.cacheStore.get(c.count)||1,n.lastShown=r.a.cacheStore.get(c.lastShown)||0,n.domain=o.a.getDomain(e.url);const l=r.a.cacheStore.get(c.showing);if(l)return l.tabId!==e.tab.id?void t({...n,sameTabCategory:!1}):void t({...n,sameTabCategory:l.upsellCategoryType===a});t(n)}updateRatDetectionShowingFlag(e,t=null,n=null){const s=l.a.RAT_DETECTION_SHOWING,a=r.a.cacheStore.get(s)||new Map;let i=a.get(n)||"";const c=o.a.getDomain(t);i=e&&c?c:"",a.set(n,i),r.a.cacheStore.set(s,a)}getDomainVisitedDetails(e,t){let n="";const s=l.a.RAT_DETECTION_SHOWING,a=r.a.cacheStore.get(s);a?(n=a.get(e.tab.id)||n,t(n)):t(n)}async searchSuggest(e){return r.a.searchSuggest.retrieveSearchTerm(e)}showSSWelcomeAnnotation(e){r.a.nativeSettings.SS_WELCOME_ANNOTATION.value=e;const t=new K(this.nativeDispatcher);t.add(ht.name,e,Xe,$e),t.send()}increasePageScannedCounter(){T.add(u);const e={identifier:G.e.WSS_ANALYTICS,message:"msad.sites.safe",isFromBackground:!0};B.a.handle(e)}getValues(e){return this.nativeDispatcher&&this.nativeDispatcher.getValues(e)}blastSearchBase(){const e=T.read();this.nativeDispatcher.blastSearchBase(e)}}var Et=n(25);const gt="DOWN",Tt="UP";class ft{constructor(){this.interval=null,this.path=null,this.imageElement=null,this.tabId=null,this.canvasWidth=20,this.canvasHeight=20,this.ballRadius=5,this.margin=1,this.slowDownCount=1,this.positionX=this.canvasWidth-this.ballRadius-this.margin,this.positionY=this.ballRadius+this.margin,this.currentMovement=gt,this.context=document.createElement("canvas").getContext("2d")}updateImagePath(e){this.path=e,r.a.browserType!==b.f.FIREFOX&&(this.imageElement=document.createElement("IMG"),this.imageElement.setAttribute("src",e[20]))}start(e,t){if(this.tabId=t,this.updateImagePath(e),r.a.browserType===b.f.FIREFOX){const e={16:"images/browser_action/green_16.gif",20:"images/browser_action/green_20.gif",32:"images/browser_action/green_32.gif",40:"images/browser_action/green_40.gif"};return void this.setIcon({path:e,tabId:t})}this.interval=setInterval(()=>{this.drawBallOnImage(this.imageElement),this.updateMovement(),this.setImageToIcon(t)},1e3/30)}stop(){this.interval&&clearInterval(this.interval),this.setIcon({path:this.path,tabId:this.tabId})}drawBallOnImage(e){this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),this.context.drawImage(e,0,0),this.context.beginPath(),this.context.fillStyle="#007EFF",this.context.strokeStyle="#FFFFFF",this.context.arc(this.positionX,this.positionY,this.ballRadius,0,2*Math.PI,!1),this.context.fill(),this.context.stroke(),this.context.closePath()}updateMovement(){if(this.currentMovement!==gt)this.currentMovement===Tt&&(this.positionY<=this.canvasHeight/2&&this.slowDownCount<=11?(this.positionY-=1/this.slowDownCount,this.slowDownCount+=1):this.slowDownCount>11?(this.currentMovement=gt,this.slowDownCount=1):this.positionY-=1);else{this.positionY+=1;const e=this.canvasHeight-this.ballRadius-this.margin;this.positionY>=e&&(this.currentMovement=Tt)}}setImageToIcon(e){const t=this.context.getImageData(0,0,this.canvasWidth,this.canvasHeight);this.setIcon({imageData:t,tabId:e}),this.context.restore()}setIcon(e){f.a.browserAction.setIcon(e,()=>{f.a.runtime.lastError&&(r.a.logger.error(f.a.runtime.lastError.message),this.interval&&clearInterval(this.interval))})}}const mt={[b.e.SMA]:9,[b.e.SS_ACCEPTED]:8};class St{constructor(){this.defaultTabContent={bouncingBall:null,path:null,domain:null,priority:null},this.tabData={}}setBounce(e,t,n=null){if(!f.a.browserAction)return;if(!this.updatePriorityFeature(e,n))return;this.stopBounce(e),this.updateTabUrl(e,t,!1);const r=new ft,s=this.getTabContent(e).path||this.resolveColorToPath(b.h.DISABLED);r.start(s,e),this.setTabContent({bouncingBall:r},e)}stopBounce(e){if(!f.a.browserAction)return;const t=this.getTabContent(e),{bouncingBall:n}=t;n&&(n.stop(),this.setTabContent({bouncingBall:null,priority:null},e))}setBadgeText(e,t=null){if(!f.a.browserAction)return;const{tabId:n,text:r}=e;this.updatePriorityFeature(n,t)&&(""===r&&this.setTabContent({priority:null},n),f.a.browserAction.setBadgeText(e))}getBadgeText(e){if(f.a.browserAction)return new Promise(t=>{f.a.browserAction.getBadgeText({tabId:e},e=>t(e))})}setIcon(e,t){if(!f.a.browserAction)return;const n=(e,t)=>{const n={path:e};this.setTabContent(n,t)},r=this.resolveColorToPath(e);if(t){const e=this.getTabContent(t);this.setIconWrapper(r,t,n,e)}else this.setIconWrapper(r,null,n)}updateTabUrl(e,t,n=!0){const r={domain:o.a.getDomain(t)};this.setTabContent(r,e,n)}deleteTabData(e){this.tabData[e]&&delete this.tabData[e]}getTabData(e){return this.tabData[e]||this.defaultTabContent}updatePriorityFeature(e,t=null){if(e&&t&&void 0!==mt[t]){const n=this.getTabContent(e).priority;if(n&&mt[t]<mt[n])return!1;this.setTabContent({priority:t},e)}return!0}getTabContent(e){let t=this.tabData[e];return t||(t={...this.defaultTabContent}),t}setTabContent(e,t=null,n=!0){const r=(e,t)=>{const r=this.getTabContent(t);if(e.path&&r.bouncingBall&&r.bouncingBall.updateImagePath(e.path),e.domain&&r.domain){const t=e.domain,s=r.domain;t.includes(s)||s.includes(t)||(n&&(e.priority=null),r.bouncingBall&&(r.bouncingBall.stop(),e.bouncingBall=null))}this.tabData[t]={...r,...e}};t?r(e,t):Object.keys(this.tabData).forEach(t=>r(e,t))}setIconWrapper(e,t,n,s=null){const a={path:e};if(t&&(a.tabId=t),r.a.browserType===b.f.FIREFOX&&s&&s.bouncingBall)return s.bouncingBall.start(e,t),void n(e,t);try{f.a.browserAction.setIcon(a,()=>{const{lastError:s}=f.a.runtime;s?r.a.logger.error(s.message):n(e,t)})}catch(e){r.a.logger.error(`Unable to set icon, err: ${e}`)}}resolveColorToPath(e){const t=(b.d[e]||b.d[b.h.DISABLED]).toLowerCase();return{16:`images/browser_action/${t}_16.png`,20:`images/browser_action/${t}_20.png`,32:`images/browser_action/${t}_32.png`,40:`images/browser_action/${t}_40.png`}}}var At=n(70);(new class{processActiveTab(){f.a.tabs.query({active:!0,currentWindow:!0},(function(e){if(!e.length)return;const[t]=e,{url:n,id:s}=t;A.a.isProperWebURL(n)&&(r.a.messageDispatcher.onHeadersReceived(n,s,0,void 0),r.a.messageDispatcher.onNavigate(n,s,0))}))}initListeners(){r.a.listenerManager=new H;const e=r.a.listenerManager.getListeners();for(const t of e)t.init()}setupFeatures(){if(r.a.browserType===b.f.CHROME&&r.a.PPS_MODE&&(r.a.AP_FEATURE_ENABLED=!1,r.a.nativeSettings.CRYPTOJACKING_DISABLED.value=!0,r.a.cacheStore.set(l.a.DOWNLOAD_SCANNING_QUEUE,[])),b.f.EDGE===b.g.BROWSER_TYPE&&r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.ALL),r.a.AP_FEATURE_ENABLED){const e=N.a.get("SearchExtension");Et.a.pingExtension(e).then(()=>{r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH)}).catch(()=>{r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,O.a.NONE)})}if(r.a.browserType===b.f.CHROME){const e=r.a.nativeSettings.UNINSTALL_SURVEY_ENABLED.value;f.a.runtime.setUninstallURL(e?r.a.nativeSettings.UNINSTALL_SURVEY_URL.value:"")}const e=r.a.nativeSettings.SECURE_SEARCH_ANNOTATION_ONLY.value,t=r.a.nativeSettings.SECURE_SEARCH_SHOW_ICONS.value;let n=O.a.NONE;b.f.EDGE===b.g.BROWSER_TYPE?n=r.a.cacheStore.get(l.c.SEARCH_ANNOTATION_OPTION,O.a.ALL):e&&t?n=r.a.cacheStore.get(l.c.SEARCH_ANNOTATION_OPTION,O.a.ONLY_SECURE_SEARCH):t&&(n=r.a.cacheStore.get(l.c.SEARCH_ANNOTATION_OPTION,O.a.ALL)),r.a.cacheStore.set(l.c.SEARCH_ANNOTATION_OPTION,n),window.AdBlocker=void 0}submain(){const e=new je;e.init(),this.setupFeatures(),r.a.smartNativeClient=new Te("wss.mcafee.chrome.extension"),r.a.smartNativeClient.init(),r.a.messageDispatcher=new pt(e),r.a.browserAction=new St,a.a.initializeSettings({BackgroundGlobals:r.a,HttpService:i.a}),this.initListeners(),this.processActiveTab();const t=N.a.get("NewTabExtension");Et.a.pingExtension(t).catch(e=>{r.a.logger.log(`Unable to establish communication with new tab extension, err: ${e}`)})}async main(){r.a.tldParser=new o.a,r.a.logger=new y.c,r.a.userAgentInBase64=window.btoa(navigator.userAgent),r.a.searchSuggest=new At.SearchSuggest(new i.a),r.a.garbageCollector.add(r.a.gtiCache),r.a.garbageCollector.add(r.a.searchSuggest);const e=await class{static generateWASM(){return r.a.wasm?null:(WebAssembly.instantiateStreaming=null,WebAssembly.compileStreaming=null,n.e(40).then(n.bind(null,119)))}}.generateWASM();r.a.wasm=e,r.a.firefoxInternalUUID=r.a.browserType===b.f.FIREFOX?f.a.i18n.getMessage("@@extension_id"):"";try{const e=await r.a.wasm.init(r.a.firefoxInternalUUID);"0"===e&&(this.submain(),r.a.logger.log(`WASM initiation: ${e}`))}catch(e){r.a.logger.error(e)}}}).main()}]);
//# sourceMappingURL=../sourceMap/chrome/background.map