18

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 14

var WSB;(function(n){function v(){return s}function o(n,t,i,r,u){if(!

n)return
i;if(typeof n!
="string")try{return{content:URL.createObjectURL(n),type:0,bgColor:r}}catch(f)
{return SharedLogHelper.LogError("convertToHtmlImage "+t,u,f),i}else
return{content:n,type:0,bgColor:r}}const
s="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAR4UlEQVR4nMVb
e4wd5XX/nW/m7nr9XNtpMSqpAZOShLbQ8gpgIFHU/
EOSmiJASaWqqqmCUpqakMoxCKEopXbVQoiEqigyJFFaEVInMcSkokqa3YQIh9CAIAZMvH6AIfiBd+193cfM
d6pzvsfM3Hv3Za/
Jt5qd973f+Z1zfucxc4mZcTrHRT95cwPA6xj2fMAuY7J9gHynLBagYk1kZTsjsmMEux/A/
sRk33r28ksfPV1TnHcALh58ezXD3s2w1zHsqiAge6EZeUloiwiG3xYQyK/lmJF9skzIDyVJ9gSR/
eLTf3rtgfma77wBcMng8Q2AvY1h17AKbMFRQL8vwuu3OkAoAFECQPaJisUBINfmMCaHoQzG2CFD+YM/
vfDPHjjVeZ8yAJcOnhATv4fB/U7DNi6iaV0jrxwL11UFd0IShe1i3+jaIk1aCgApEBbGZJOGsi//7wV/
vukdB+CywfHVAP9INO4ECkI5TTMhah5toBTHg/kHSwjaLtZyPjEOAGNaCoazhNwBYjLZHjEm/
8KT5980Z4s4KQAuH5zYDPBGVjHZ+7fVvwCA0z6XTF9cojD5CgDeEqjMAwUpismrxhMBwAufmKazDiPbme4n
Jnu+ltTXbT/
3lllzhJmr8B8YnNwD8OcBJopHOZKcDFIa84QXyY8BLm2XRrzbH3Zrt6Mc4IG1alYMZoLlJF5P3kWI8ouY8f
IN+//
95tnKM2sLuGKwIez+MsB9ZYFt1KjXNuV+P2tzi3AObVYQZ+K0HTnAk6CxjgBVyFzdwWk8U5dIKEOSNPW4uI
Pbb7Ch7OFtqz9zy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VORK5CYII=",h=!!_ge("wsb_form_q");let i,e,u,r,f;const c=-
933981677285477,l=400,a=1e3;n.getEdgeFallbackIcon=v;n.toIcon=o;let
y={"action://Help/Launch":"Help","ms-cortana://navigate/Notebook":"Notebook"},p={"m
s-cortana://navigate/Settings":n.config.settingsUri};class t{static
isBingWallpaperAppInstalled(){return t._bingWallpaperAppInstalled}static
checkBingWallpaperAppInstalled(){n.Async.safeChain("getAllAppsAsync",
()=>SearchAppWrapper.CortanaApp.queryFormulationView.deviceSearch.getAllAppsAsync()
.then(n=>{t._bingWallpaperAppInstalled=!1;for(let i in n){let
r=n[i];if(r.filePath&&r.filePath.endsWith("BingWallpaperApp.exe"))
{t._bingWallpaperAppInstalled=!0;break}}}))}static Init(s,h)
{t._currentQuery=null;t._queryParamsCache={};t._locStrings=[];t._enUsLocStrings=[];
t._modifierKeyState={altKey:!1,ctrlKey:!1,shiftKey:!
1};t._bootstrapDoneEventHandlers=[];t._appVisibleEventHandlers=[];t._shownEventHand
lers=[];t._conversationStartEventHandlers=[];t._dismissedEventHandlers=[];t._appHid
denEventHandlers=[];t._webViewReloadEventHanlders=[];t._searchBoxGotFocusEventHandl
ers=[];t._searchBoxLostFocusEventHandlers=[];t._onSubmitHandlers=[];t._onFeedbackCl
osingHandlers=[];t._onSearchBoxGlyphIconClick=[];t._onSearchBoxClick=[];t._onButton
RightOfSearchBoxClick=[];t._queryChangedHandlers=[];t._rawQueryChangedHandlers=[];t
._keyDownHandlers=[];t._keyUpHandlers=[];t._keyEscapeHandlers=[];t._accessTokenAvai
lableHandlers=[];t._scopeListRequiresUpdate=[];t._accountChangedHandlers=[];t._dyna
micSearchBoxUpdateHandlers=[];t._dynamicPlaceholderContentRequestedHandlers=[];t._i
sReloadSuppressedBgTask=!
1;t._pinnedApps={};t._state=0;t._paneCloseCount=0;t._qfDismissCount=0;t._defaultWin
dowsTheme=0;t._defaultAppTheme=0;t._currentPaneHeight=0;t._dsbBindDimissTime=0;t._d
sbBindshownTime=0;t._defaultBrowser=0;t._accessTokenManager=s;t._fuzzyRankSuggestio
nCount=-1;t._coldRankSuggestionCount=-1;t._notColdRankSuggestionCount=-
1;t._finalColdRankSuggestionCount=-1;t._mruFilesAndFoldersDefinedCount=-
1;t._mruFilesAndFoldersUndefinedCount=-
1;t._navigationHelper=h;t._edgeMuids=[];t._clearStorageRequestedHandlers={};i=Searc
hAppWrapper.CortanaApp;e=i.queryFormulationView;u=i.launcher;r=typeof
SearchBoxController=="object"?
SearchBoxController:i.searchBox;f=n.Service.QueryParams;t._currentCVID=n.cleanGuid(
t.createGuid());t._randomPrivacyNumber=t.getNewPrivacyNumber();t.initCortanaEnabled
AndRegion();t.initLanguage();n.refreshBingEnabledCache(i.isBingEnabled,t.getRegion(
),t.getLanguage());t.initLocStrings();let
v=n.safeExecute(()=>+e.perfMetrics.lookup(32),"perfMetricsFallbackLookup",c);t._has
FallbackHappened=v!=c;let
l=e.searchHistory;l&&l.addEventListener("cleardevicehistoryrequested",()=>{let
i=t=>n.safeExecute(()=>l.signalClearDeviceHistoryCompleted(t),"signalClearDeviceHis
toryCompleted");if(t._clearStorageRequestedHandlers)for(const r in
t._clearStorageRequestedHandlers)n.safeExecute(()=>(t._clearStorageRequestedHandler
s[r](i),!0),"clearDeviceHistoryRequested")||i(!1);else i(!
1)});i.addEventListener("statechanged",n=>{t.updateState(t._state,n.newState,!
1)});i.addEventListener("dynamicsearchboxcontentchanged",
()=>{t.setIsReloadSuppressedBgTask(!
0),t.chainHandlerPromises(t._dynamicSearchBoxUpdateHandlers).then(()=>n.safeSetTime
out(()=>{n.msbPerfLogger&&n.safeExecute(()=>n.msbPerfLogger===null||
n.msbPerfLogger===void 0?void
0:n.msbPerfLogger.markHostDynamicSearchboxUpdateEnd(),"msbPerfLogger.markHostDynami
cSearchboxUpdateEnd"),i.notifyDynamicSearchBoxUpdateCompleted(),t.setIsReloadSuppre
ssedBgTask(!1)},a,"notifyDyna
micSearchBoxUpdateCompleted"))});i.addEventListener("dynamicplaceholdercontentreque
sted",
()=>{t.chainHandlerPromises(t._dynamicPlaceholderContentRequestedHandlers).then(()=
>n.safeExecute(()=>i.notifyDynamicSearchBoxUpdateCompleted(),"notifyDynamicSearchBo
xUpdateCompleted_content"))});r.addEventListener("querytextchanged",n=>{if(!
t._qfDisabled){t._feedbackFormIsVisible&&t.closeFeedbackForm();let
i=n.queryText;t._queryPropertiesOverrides&&t._queryPropertiesOverrides.query!
=i&&(t._queryPropertiesOverrides=null);t.updateState(t._state,2,!
0);t._queryToIgnoreOnQueryTextChangedEvent!
=n.queryText&&(t._queryToIgnoreOnQueryTextChangedEvent=null);t.callQueryChangedHand
lers(n,!1,t._queryToIgnoreOnQueryTextChangedEvent!
=null,n.impressionId)}});r.addEventListener("keydown",u=>{let
f=u.keyCode;if(n.config.debugDismissEvents){if(f==121){t.updateState(t._state,1,!
1);return}if(f==122){let n=t._state==0?
2:0;n==2&&(t._currentCVID=null);t.updateState(t._state,n,!
1);return}}if(t._qfDisabled){if(i.hostingEnvironment==3&&f==13){let
n=r.getQueryText().queryText;i.fileExplorerSuggestionPage.onSuggestionSelection(n)}
return}if(f!=9&&!n.isFunctionalKey(f)){if(f==27)
{t.keyDownEscapeHandler();return}let
e={shiftKey:u.isShiftKeyPressed,ctrlKey:u.isControlKeyPressed,altKey:!
1},o=u.isHandled;n.InstrumentationHelper.instrumentKeyDown(n.getCurrentTime());t._k
eyDownHandlers.forEach(t=>n.safeExecute(()=>t(f,e,o),"keyDown"))}});sj_b.addEventLi
stener("keydown",i=>{if(!t._qfDisabled){let
r=i.keyCode;if(n.config.debugDismissEvents){if(r==121){t.updateState(t._state,1,!
1);return}if(r==122){let n=t._state==0?
2:0;n==2&&(t._currentCVID=null);t.updateState(t._state,n,!1);return}}if(!
n.isFunctionalKey(r)){r!=9||t._feedbackFormIsVisible||i.preventDefault();let
f=n.RuntimeConfig.AlwaysWide,u=i.target;if(u){if(r==27)
{if(t._feedbackFormIsVisible)
{t.closeFeedbackForm();return}t.keyDownEscapeHandler();return}if(this._feedbackForm
IsVisible){let n=_ge("fbpgdg");if(n&&n.contains(u))return}if(!
f&&n.RuntimeConfig.PreviewPaneAvailable&&n.StaticHtmlElements.qfPreviewPane&&n.Stat
icHtmlElements.qfPreviewPane.contains(u)&&(!n.DialogBox||
n.DialogBox.isVisible()))if(r==37)sj_pd(i);else
return}n.contains([38,40],r)&&sj_pd(i);t._keyDownHandlers.forEach(t=>n.safeExecute(
()=>t(i.keyCode,i,!1),"body.keyDown"))}}});r.addEventListener("keyup",i=>{if(!
t._qfDisabled){let r=i.keyCode;if(r!=9&&!n.isFunctionalKey(r)){let
u={shiftKey:i.isShiftKeyPressed,ctrlKey:i.isControlKeyPressed,altKey:!
1},f=i.isHandled;t._keyUpHandlers.forEach(t=>n.safeExecute(()=>t(r,u,f),"keyUp"))}}
});sj_b.addEventListener("keyup",i=>{if(!t._qfDisabled){let
r=i.keyCode;n.isFunctionalKey(r)||
t._keyUpHandlers.forEach(t=>n.safeExecute(()=>t(r,i,!
1),"keyUp"))}});r.addEventListener("gotfocus",()=>{t._qfDisabled||
t._searchBoxGotFocusEventHandlers.forEach(t=>n.safeExecute(()=>t(),"gotfocus"))});r
.addEventListener("lostfocus",()=>{t._qfDisabled||
t._searchBoxLostFocusEventHandlers.forEach(t=>n.safeExecute(()=>t(),"lostfocus"))})
;r.addEventListener("submitbuttonclick",()=>{if(!t._qfDisabled){let
r=n.getCurrentTime(),i=t.getFeatureString("SubmitButtonGlyph").featureValue;i&&i!
=""?
t._onButtonRightOfSearchBoxClick.forEach(t=>n.safeExecute(()=>t(i),"submitbuttoncli
ck.custom")):t._onSubmitHandlers.forEach(t=>n.safeExecute(()=>t(r,!
0,null),"submitbuttonclick"))}});r.addEventListener("searchboxglyphclick",
()=>{t._qfDisabled||
t._onSearchBoxGlyphIconClick.forEach(t=>n.safeExecute(()=>t(),"searchboxglyphclick"
))});r.addEventListener("searchboxtapped",()=>{t._qfDisabled||
t._onSearchBoxClick.forEach(t=>n.safeExecute(()=>t(),"searchboxtapped"))});r.addEve
ntListener("searchboxclick",()=>{t._qfDisabled||
t._onSearchBoxClick.forEach(t=>n.safeExecute(()=>t(),"searchboxclick"))});sj_evt.bi
nd("ajax.feedback.initialized",sj_dm(this,t.registerFeedbackDebugCallback),!
0);t.bindAppVisible(()=>t.appVisibleInit());t.bindShown(i=>{if(n.safeFireEvent("aja
x.threshold.pageStart",i),t.shownInit(),t.checkBingWallpaperAppInstalled(),!
t._qfDisabled){let
r=t.getNewConversationId();n.updateErrorHandlingCVID(r);t._currentCVID!
=r&&(t._currentCVID=r,t._randomPrivacyNumber=t.getNewPrivacyNumber(),t._conversatio
nStartEventHandlers.forEach(t=>n.safeExecute(()=>t(),"conversationStart")));t._last
KeyWasEnter=!1}});n.config.dsbEnumAccount&&t.bindDynamicSearchBoxUpdate(()=>{const
n=t._qfDismissCount;return t.ensureAuthority(n,(t===null||t===void 0?void
0:t.isAuthInvestigation())?
["WSBHost::Host.bindDynamicSearchBoxUpdate"]:undefined),Promise.resolve()});t.bindD
ismissed(()=>{t._qfDismissCount+=1,n.safeFireEvent("threshold.pageUnload"),t.dismis
sCleanup()});t.bindAppHidden(()=>{t._paneCloseCount+=1,t.appHiddenCleanup(),t.uploa
dClientErrorLog()});t.bindKeyDown((i,r)=>{t._modifierKeyState=r;let u=i==13;if(u&&!
t._lastKeyWasEnter&&!(n.isMsbWorkShortcutsAvailable===null||
n.isMsbWorkShortcutsAvailable===void 0?void 0:n.isMsbWorkShortcutsAvailable(i,r)))
{let i=n.getCurrentTime();t._onSubmitHandlers.forEach(t=>n.safeExecute(()=>t(i,!
1,r),"onSubmit
handlers"))}t._lastKeyWasEnter=u});t.bindKeyUp(n=>{t._lastKeyWasEnter=!1;switch(n)
{case 16:t._modifierKeyState.shiftKey=!1;break;case
17:t._modifierKeyState.ctrlKey=!
1}});t.bindOnFeedbackClosing(n=>{n&&t.setFocusInSearchBox(null,"onFeedbackClosing")
});(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void
0:n.TestHookUrlParameters.refreshWhenTokenArrives)&&t.bindAccessTokenAvailable(i=>{
const u=i==1?n=>n.dataSource=="SSEE"||
n.dataSource=="SSUE":n=>n.dataSource=="SSEC"||
n.dataSource=="SSUC";t._currentQuery&&(t._currentQuery.queryToFetch.length>=n.confi
g.minLengthFor3SonL1||
n.isL2(t._currentQuery))&&t._currentQuery.originalQuery==r.getQueryText().queryText
&&n.ScopeConfig[t._currentQuery.scope].enabledDataSources.some(u)&&t.refreshCurrent
Pane()});_G.PN="QF";t._edgeIconCache=n.Async.safeChainWithGlobalCaching("edgeIcon",
t=>e.deviceSearch.findAppsAsync(n.EdgeAppIds).then(i=>{let
r=n.EdgeAppIds.map(n=>i[n]).filter(n=>!!n)[0];return
r.getImageAsync(n.getImageSizeValue(t)).then(n=>o(n,"edgeIcon",null,r.isImmersive?
r.logoBackgroundColor:null))}),n=>n+"_edgeIcon");sj_evt.bind("onFeedbackStarting",
([,n]=[undefined,undefined])=>{t._feedbackFormIsVisible=!
0,t._feedbackFormIsOpenedByClient=n,t.adjustHeight()});sj_evt.bind("onFeedbackClosi
ng",()=>{t._feedbackFormIsVisible=!
1,t.adjustHeight(),t._onFeedbackClosingHandlers.forEach(i=>n.safeExecute(()=>i(t._f
eedbackFormIsOpenedByClient),"onFeedbackClosing
handlers"))});t.initCloudSearch();t._accessTokenManager&&(t._accessTokenManager.bin
dAccessTokenAvailable((n,i,r)=>{t._accessTokenAvailableHandlers.forEach(t=>t(n)),r=
==3&&t.refreshCurrentPane()}),t._accessTokenManager.bindAccountTypesChanged(()=>t.u
pdateScopeList()),t._isAuthInvestigation=(n.TestHookUrlParameters===null||
n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.authLog)||
n.config.enableAuthInvestigation,t.ensureAuthority(t._qfDismissCount,(t===null||
t===void 0?void 0:t.isAuthInvestigation())?["WSBHost::Init"]:undefined));
(n.osSKUCache==undefined||
n.osSKUCache==0)&&ThresholdUtilities.getOsSKU(t=>{switch(t)
{case"4":n.osSKUCache=4;break;case"48":n.osSKUCache=48;break;case"101":n.osSKUCache
=101;break;case"27":n.osSKUCache=27;break;default:n.osSKUCache=0}})}static
refreshDefaultBrowserInfo(){if(t._defaultBrowser=0,i.getDefaultBrowserInfo){let
r=n.safeExecute(()=>i.getDefaultBrowserInfo(),"getDefaultBrowserInfo");r&&(t._defau
ltBrowser=t.calculateBrowserType(r.path),t._defaultBrowserIconCache=e.deviceSearch.
getIconForDefaultBrowserAsync&&t.getUriLaunchPolicy()==0&&t._defaultBrowser!=3?
n.Async.safeChainWithGlobalCaching("defaultBrowserIcon",t=>e.deviceSearch.getIconFo
rDefaultBrowserAsync(n.getImageSizeValue(t),0).then(n=>n?o(n,"defaultBrowserIcon"):
{type:0,content:s}),n=>n+"_"+r.progId):null)}i.setDefaultUriLaunchPolicy&&i.setDefa
ultUriLaunchPolicy(t.getUriLaunchPolicy())}static async chainHandlerPromises(n)
{for(const t of n)try{await t()}catch(i)
{SharedLogHelper.LogError("chainHandlerPromises",null,i)}}static
getIsReloadSuppressedBgTask(){return t._isReloadSuppressedBgTask}static
setIsReloadSuppressedBgTask(n){t._isReloadSuppressedBgTask=n}static
getDefaultBrowser(){return t._defaultBrowser}static getFRSuggCount(){return
t._fuzzyRankSuggestionCount}static setFRSuggCount(n=0)
{t._fuzzyRankSuggestionCount=n}static getCRCount(){return
t._coldRankSuggestionCount}static setCRCount(n=0)
{t._coldRankSuggestionCount=n}static incrementCRCount()
{t._coldRankSuggestionCount<0?
t._coldRankSuggestionCount=1:t._coldRankSuggestionCount++}static getNCRCount()
{return t._notColdRankSuggestionCount}static setNCRCount(n=0)
{t._notColdRankSuggestionCount=n}static incrementNCRCount()
{t._notColdRankSuggestionCount<0?
t._notColdRankSuggestionCount=1:t._notColdRankSuggestionCount++}static
getFCRCount(){return t._finalColdRankSuggestionCount}static setFCRCount(n=0)
{t._finalColdRankSuggestionCount=n}static setBindDimissTime(n)
{t._dsbBindDimissTime=n}static getBindDimissTime(){return
t._dsbBindDimissTime}static setBindShownTime(n){t._dsbBindshownTime=n}static
getBindShownTime(){return t._dsbBindshownTime}static
getMRUFilesAndFoldersDefinedCount(){return t._mruFilesAndFoldersDefinedCount}static
setMRUFilesAndFoldersDefinedCount(n=0){t._mruFilesAndFoldersDefinedCount=n}static
getMRUFilesAndFoldersUndefinedCount(){return
t._mruFilesAndFoldersUndefinedCount}static setMRUFilesAndFoldersUndefinedCount(n=0)
{t._mruFilesAndFoldersUndefinedCount=n}static initEdgeMuids()
{if(n.config.enableEdgeMuidsTelemetry&&SearchAppWrapper.CortanaApp.edgeMuids){let
i,t=[],r=Object.keys(SearchAppWrapper.CortanaApp.edgeMuids);for(let u in r){let
e=r[u],f=SearchAppWrapper.CortanaApp.edgeMuids[e];e=="Default"?i||
(i=f,n.config.enableEdgeMuidsTelemetryWrite?
this.setEdgeMuidDefault(f):this.setEdgeMuidDefault("D")):t.indexOf(f)==-
1&&t.push(f)}if(!n.config.enableEdgeMuidsTelemetryWrite)for(let n in
t)t[n]="M";t.length>0&&this.setEdgeMuidsAdditional(t)}}static getEdgeMuidCount()
{var n;let i=t._edgeMuidDefault?1:0,r=(n=t._edgeMuids)===null||n===void
0?void 0:n.length;return i+r}static getEdgeMuidsAdditional(n){let
i=t._edgeMuids,r=t._edgeMuidDefault;return r&&(i=i.filter(n=>n!=r)),n&&n<i.length?
i.slice(0,n):i}static setEdgeMuidsAdditional(n){return t._edgeMuids=n,!0}static
getEdgeMuidDefault(){return t._edgeMuidDefault}static setEdgeMuidDefault(n){return
t._edgeMuidDefault=n,!0}static getOsSKU(){return n.osSKUCache}static
getWindowsTheme(){return t._defaultWindowsTheme}static getAppTheme(){return
t._defaultAppTheme}static getAccentColor(n=0){if(!Number.isInteger(n))throw"Invalid
argument "+n;if(t._accentColorShades){let i=n<0?
t._accentColorShades.light:t._accentColorShades.dark,r=Math.min(3,Math.abs(n));retu
rn i[r]}return t._accentColor}static refreshAccentColorShades()
{t._accentColorShades=null;let n=i.themeColors;n&&(t._accentColorShades={dark:
[n.accent,n.accentDark1,n.accentDark2,n.accentDark3,],light:
[n.accent,n.accentLight1,n.accentLight2,n.accentLight3,]},t._accentColorShades.dark
=t._accentColorShades.dark.map(n=>"#"+n.substr(3)),t._accentColorShades.light=t._ac
centColorShades.light.map(n=>"#"+n.substr(3)))}static calculateBrowserType(n)
{return n?n.endsWith("\\chrome.exe")?6:n.endsWith("LaunchWinApp.exe")?
3:n.endsWith("firefox.exe")?5:n.endsWith("\\msedge.exe")?4:n.endsWith("Opera\\
Launcher.exe")?7:n.endsWith("\\iexplore.exe")?2:0:0}static getUriLaunchPolicy()
{return 2}static getConnectedAccountInfo(n){return t._accessTokenManager?
t._accessTokenManager.getCachedAccountInfo(n):null}static
isInternetConnectionMetered(){return
n.safeExecute(()=>i.networkEnvironment&&i.networkEnvironment.isMeteredConnection,"i
sInternetConnectionMetered",!1)}static isInputPanelVisible(){return
n.safeExecute(()=>r.isInputPaneVisible,"isInputPanelVisible")}static
uploadClientErrorLog(){if(i.getFlightingLogsAndDelete){let
t=n.safeExecute(()=>i.getFlightingLogsAndDelete(),"getFlightingLogsAndDelete","");f
or(let n of t.split("\r\n"))if(n!=""){let t=n.indexOf("|");if(t<0||
t+1==n.length)SharedLogHelper.LogWarning("clientError",n,"Malformed clientError
data");else{let i=n.substr(t+1);i.startsWith("Critical:")||i.startsWith("Error:")?
SharedLogHelper.LogError("clientError",null,i):SharedLogHelper.LogWarning("clientEr
ror",null,i)}}}}static registerFeedbackDebugCallback(n){let
i=n[1].debugCollector;i.registerCollectionCallback(sj_dm(this,t.collectDebugInfo))}
static collectDebugInfo(){let
r={},u=t._currentQuery&&t._currentQuery.originalQuery;u&&(r.query=u);r.conversation
Id=t._currentCVID;r.entryPoint=i.entryPoint;r.previousExperience=e.previousExperien
ce;n.ConstraintIndex&&(r.ciVersion=n.ConstraintIndex.currentCIVersion);n.config.snr
Version&&(r.snrVersion=n.config.snrVersion);n.osSKUCache!
==undefined&&(r.ossku=n.osSKUCache.toString());let
f=i.width;f&&(r.width=f.toString());let o=i.height;return
o&&(r.height=o.toString()),r}static clearInitialFetchTimer()
{t._initialFetchTimer&&(sb_ct(t._initialFetchTimer),t._initialFetchTimer=null)}stat
ic callQueryChangedHandlers(r,u,f,e,o){if(t._qfDisabled)throw"Not supported";let
s=t.getStructuredQuery(r,null,t._currentQuery);if(t._rawQueryChangedHandlers.forEac
h(t=>n.safeExecute(()=>t(s,u),"rawQueryTextChanged")),f||
t.clearInitialFetchTimer(),!e){let n=i.impressionId;t.usedImpressionIds[n]||
(e=n,t.usedImpressionIds[n]=!0)}let h=o&&!s.originalQuery;(h||!e||
e==t._currentRawImpressionId?
(t._currentRawImpressionId=t.createGuid(),t._currentRawImpressionIdCreatedByTheClie
nt=!1):(t._currentRawImpressionId=e,t._currentRawImpressionIdCreatedByTheClient=!
0),f)||
(t._previousQuery=t._currentQuery,t._currentQuery=s,t._queryChangedHandlers.forEach
(t=>n.safeExecute(()=>t(s,u),"queryTextChanged")))}static getStructuredQuery(r,u,f)
{var s;const
e=r.queryText,h=r.cursorPosition;if(u&&u.originalQuery===e&&u.originalCursorPositio
n===h)return u;let
c=t._queryPropertiesOverrides&&t._queryPropertiesOverrides.query==e,o=c&&n.isCortan
aEnabledCache?(s=t._queryPropertiesOverrides)===null||s===void 0?void
0:s.taskFrame:null;if(!
o&&n.isCortanaEnabledCache&&i.searchResultsView.getTaskFrame){let
t=n.safeExecute(()=>i.searchResultsView.getTaskFrame(e),"getTaskFrame");t&&(o=n.par
seTaskFrame(t))}return!
o&&f&&f.taskFrame&&f.originalQuery==e&&(o=f.taskFrame),n.parseQuery(e,h,f,o,c&&t._q
ueryPropertiesOverrides)}static updateState(u,f,e){if(u!=f){if(t._state=f,u==0){let
i=n.getCurrentTime();t._appVisibleEventHandlers.forEach(t=>n.safeExecute(()=>t(),"a
ppVisible"));n.InstrumentationHelper.instrumentAppVisibleFinish(i)}if(f==2){const
u=n.getCurrentTime();if(t._shownEventHandlers.forEach(t=>n.safeExecute(()=>t(u),"sh
own")),n.InstrumentationHelper.instrumentAppShownFinish(u),!e&&!t._qfDisabled)
{const
u=i.entryPoint=="WNSSTB";t._initialFetchTimer=n.safeSetTimeout(()=>t.callQueryChang
edHandlers(r.getQueryText(),!1,!1,null,!0),u?
n.config.initialFetchTimerDelayFromStartMenu||0:0,"initialFetch")}}if(u==2)
{t.clearInitialFetchTimer();const
i=t._currentQuery;t._dismissedEventHandlers.forEach(t=>n.safeExecute(()=>t(i),"dism
issed"))}f==0&&t._appHiddenEventHandlers.forEach(t=>n.safeExecute(()=>t(),"appHidde
n"))}}static searchBoxHasFocus(){return r.hasFocus}static initializeEvents()
{t.updateState(t._state,i.currentState,!1)}static bindClearMRURequested(n,i)
{t._clearStorageRequestedHandlers[i]&&SharedLogHelper.LogError("bindClearMRURequest
ed",null,new Error("Only one event handler
supported"));t._clearStorageRequestedHandlers[i]=n}static shouldRequestEltoken()
{return t._shouldRequestEltoken}static getElToken(){return t._elToken}static
setElToken(n){t._elToken=n;t._shouldRequestEltoken=!1}static sendElToken()
{t._sendElTokenInSuggstionRequest=!0}static canHaveSearchHistory(){return
n.searchHistoryAllowed()}static getInstrumentationParameters(n){let
r=i.createStringMap?i.createStringMap():{};return
_G.nclid&&(r[f.HashedMuid]=_G.nclid),r[f.FormCode]=n||
t.getFormCode(),r[f.ConversationId]=t.getConversationId(),r}static
appHiddenCleanup()
{n.Async.clearGlobalCache();t._locStrings=[];n.cleanScopePrefixes();t.cleanTaskBarP
innedItems();n.clearPathExpansionCache();n.config.perfInstV2&&n.InstrumentationHelp
er.instrumentConversationTimelineFinish()}static initCloudSearch(){let
t=i.isCloudSearchEnabled!==!1,r=i.isMultiAccountCloudSearchSupported!==!
1;n.isCloudSearchEnabledMsaCache=n.RuntimeConfig.QfMode==5||(r?
i.isCloudSearchEnabledForMSA:t);n.isCloudSearchEnabledAadCache=n.RuntimeConfig.QfMo
de==5||(r?i.isCloudSearchEnabledForAAD:t)}static initLanguage()
{n.uiLanguageCache=(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void
0?void 0:n.TestHookUrlParameters.setLang)||i.systemLanguage||
i.uiLanguage||"";t._queryParamsCache[f.SetLang]=n.uiLanguageCache}static
initLocStrings(){let i=t._enUsLocStrings.length==0;for(let r of
n.config.locStrings){let u={uiCulture:"en-
US",name:r,namespace:"WindowsSearchBox"};if(i&&t._enUsLocStrings.push(LocStringMana
ger.getLocString(u)),n.uiLanguageCache.toLowerCase()!="en-us")
{u.uiCulture=n.uiLanguageCache;let
i=n.safeExecute(()=>LocStringManager.getLocString(u),"getLocString",null,u.uiCultur
e);i?t._locStrings.push(i):n.config.smallerBundle&&!
n.isBrowserOnline()&&setTimeout(()=>n.fallbackToPrepopulatedBundle(new
Error("Language switched and force fallback.")),5e3)}}}static appVisibleInit()
{t.initCortanaEnabledAndRegion();var
r=n.uiLanguageCache;t.initLanguage();n.config.noLocStringRefresh&&r!
=n.uiLanguageCache?t.initLocStrings():n.config.noLocStringRefresh||
t.initLocStrings();n.refreshBingEnabledCache(i.isBingEnabled,t.getRegion(),t.getLan
guage());n.RuntimeConfig.OnAppVisible();t._isFileExplorerOrControlPanel=n.RuntimeCo
nfig.QfMode==5||
n.RuntimeConfig.QfMode==9;n.setZeroInputDataSourcesForL1();t.initCloudSearch();t.ch
eckIfBitmapInClipboardSupported();t.updateScopeList();n.StaticHtmlElements.suggesti
onsList.setAttribute("aria-
label",t.getLocString("ResultsList"));t._elToken=null;i.theme&&(t._defaultWindowsTh
eme=t._isFileExplorerOrControlPanel&&i.fileExplorerSuggestionPage?
i.fileExplorerSuggestionPage.useDarkTheme?2:1:i.theme.startsWith("000000")?
2:1,t._accentColor="#"+i.theme.substr(7),i.appsUseLightTheme!
==null&&(t._defaultAppTheme=i.appsUseLightTheme?
1:2));t.refreshAccentColorShades();t.refreshDefaultBrowserInfo();t.initEdgeMuids();
ThresholdUtilities.setBodyLangAttributes(n.uiLanguageCache);ThresholdUtilities.getC
ortanaHeaders(n=>{t._ageAccountType=0,n&&(n["X-UserAgeClass"]==="Child"?
t._ageAccountType=1:n["X-UserAgeClass"]==="Adult"&&(t._ageAccountType=2))})}static
shownInit(){let
u=t._qfDismissCount;if(t._queryPropertiesOverrides=null,n.RuntimeConfig.QfMode==999
999||n.config.enableSnipSearchV2&&i.entryPoint=="WNSSBS"){t._qfDisabled=!
0;return}if(n.RuntimeConfig.QfMode==5){let
r=n.safeExecute(()=>i.fileExplorerSuggestionPage.currentLocation,"fileExplorerSugge
stionPage.currentLocation");t._fileExplorerCurrentPath=r&&!r.startsWith("::")?
r:null}t.initCortanaEnabledAndRegion();let e=i.isBingEnabled;e!
=n.isBingEnabled()&&(n.refreshBingEnabledCache(e,t.getRegion(),t.getLanguage()),t.u
pdateScopeList());let
r=i.homeGeographicRegion;t._queryParamsCache[f.CountryCode]=n.regionCache;r&&r!
=n.regionCache&&(t._queryParamsCache[f.HomeGeographicRegion]=r);t.ensureAuthority(u
,(t===null||t===void 0?void 0:t.isAuthInvestigation())?
["WSBHost::shownInit"]:undefined);t.initHeadersOverrides(u,(t===null||t===void 0?
void 0:t.isAuthInvestigation())?
["WSBHost::shownInit"]:undefined);t.keepWSBOpen(n.config.keepCortanaOpened||
n.getTweakedSetting("keepCortanaOpenedTweak"))}static ensureAuthority(i,r)
{r=r&&[...r,"WSBHost::ensureAuthority"];n.logAuthRelatedInfo("ensureAuthority",`Tri
ggered by ${r===null||r===void 0?void 0:r.join(" ->
")}.`);t._accessTokenManager&&t._accessTokenManager.enumerateMultiAccountAuthority(
()=>t.initHeadersOverrides(i,r),r)}static initCortanaEnabledAndRegion()
{n.isCortanaEnabledCache=i.isCortanaEnabled;n.regionCache=(n.TestHookUrlParameters=
==null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.cc)||
(n.config.ignoreCortanaMarketOverride?
i.homeGeographicRegion:i.region)||"";n.revIpRegionCache=typeof
_G=="object"&&_G.RevIpCC&&_G.RevIpCC.toUpperCase()||""}static updateScopeList(n)
{n&&i.currentState!==2||t._scopeListRequiresUpdate.forEach(n=>n())}static
dismissCleanup(){t.keepWSBOpen(!1);delete
t._queryParamsCache[f.HomeGeographicRegion];t._queryToIgnoreOnQueryTextChangedEvent
=null;t._currentQuery=null;t._queryPropertiesOverrides=null;t._fileExplorerCurrentP
ath=null;n.regionCache=null;t.closeFeedbackForm();t.removeFeedbackForm();t._qfDisab
led=!1}static showFeedbackForm(){if(typeof WindowsFeedbackForm!
="undefined"&&WindowsFeedbackForm.Show){const t=n.TestHookUrlParameters===null||
n.TestHookUrlParameters===void 0?void
0:n.TestHookUrlParameters.hideFbig,i=n.AccessTokenManager.getWindowsAccountType()==
=1&&!(n.msbHost===null||n.msbHost===void 0?void
0:n.msbHost.tenantManager.getIsMsbInternalTenant())||
(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void
0:n.TestHookUrlParameters.noFbScr);WindowsFeedbackForm.Show("",undefined,t,i)}}stat
ic closeFeedbackForm(){n.safeFireEvent("WindowsFeedback.Form.Hide")}static
removeFeedbackForm(){typeof WindowsFeedbackForm!
="undefined"&&WindowsFeedbackForm.Remove&&WindowsFeedbackForm.Remove()}static
checkIfBitmapInClipboardSupported(){if(i.getClipboardAvailableFormats)try{let
n=i.getClipboardAvailableFormats();t._isBitmapInClipboardSupported=n!=null}catch(n)
{t._isBitmapInClipboardSupported=!1}else t._isBitmapInClipboardSupported=!1}static
isBitmapInClipboardSupported(){return t._isBitmapInClipboardSupported}static
getBitmapURIFromClipboardAsync(t){let
r=n.safeExecute(()=>i.getClipboardAvailableFormats(),"getClipboardAvailableFormats"
,[]);n.contains(r,"Bitmap")||t(null);n.Async.safeChain("getClipboardBitmapAsync",
()=>i.getClipboardBitmapAsync(),n=>t(URL.createObjectURL(n)),()=>t(null))}static
setAuthHeadersFromWindowsTokens(i)
{if(i=i&&[...i,"WSBHost::setAuthHeadersFromWindowsTokens"],t._accessTokenManager)
{let u=t._headersCache;var
r=n.AccessTokenManager.getWindowsAccountType();if(n.config.userProfileButtonEnabled
){let n=t._accessTokenManager.getSelectedAccountInfo(i);if(n){let
r=n.accountProviderAuthority=="consumers"?
0:1;t._accessTokenManager.getAccountByUserName(!1,r,n.accountUserName,!1,!
0,n=>{n&&n.Token&&(r==0?(u["X-Search-RPSToken"]=n.Token,delete u.Authorization):
(u.Authorization="Bearer "+n.Token,delete u["X-Search-RPSToken"]))},i)}}else r==2||
r==4?t._accessTokenManager.getAccount(0,n.getBingResourceOrScope(0),!1,!
0,n=>{n&&n.Token&&(u["X-Search-
RPSToken"]=n.Token)},undefined,i):r==1&&t._accessTokenManager.getAccount(1,n.getBin
gResourceOrScope(1),!1,!0,n=>{n&&n.Token&&(u.Authorization="Bearer
"+n.Token)},undefined,i)}}static initHeadersOverrides(r,u)
{u=u&&[...u,"WSBHost::initHeadersOverrides"];let
f=[];t._headersCache={};i.systemRAMInMB&&i.systemRAMInMB<=512&&f.push("LowMemoryDev
ice");f.push("FontV22");f.push("LightAnswers");n.RuntimeConfig.PreviewPaneAvailable
&&f.push("PreviewPaneAvailable");f.length>0&&(t._headersCache["X-BM-
ClientFeatures"]=f.join());t.setAuthHeadersFromWindowsTokens(u);ThresholdUtilities.
getCortanaHeaders(i=>{if(i&&r==t._qfDismissCount){t._shouldRequestEltoken=!!i["X-
Search-Location"];let r=i["X-BM-
ClientFeatures"];r&&(Array.prototype.push.apply(f,r.split(",")),t._headersCache["X-
BM-ClientFeatures"]=f.join());t._safeSearchSetting=i["X-Search-
SafeSearch"];t._isEducationEnvironment=i["X-Device-
EnableRegulatoryPsm"]=="1";t._isWindowsS=i["X-Device-
EnableCPsm"]=="1";t._partnerSearchCode=i["X-Device-
PSC"];n.substrateProvidersEnabled()||t.updateScopeList()}})}static createGuid()
{return n.safeExecute(()=>i.createGuid(),"createGuid","")}static
getLocString(i,...r){let u;for(let n of t._locStrings)if(u=n[i],u)break;return u||
(u=t.getEnUsLocString(i)),u&&r.length>0&&(u=n.formatString(u,r)),u===null||u===void
0?void 0:u.replace("_"," ")}static getEnUsLocString(n){for(let i of
t._enUsLocStrings){let t=i[n];if(t)return t}return undefined}static
getRawImpressionGuid(){return t._currentRawImpressionId}static getConversationId()
{return t._currentCVID}static getPrivacyNumber(){return
t._randomPrivacyNumber}static getNewConversationId(){let
i=n.cleanGuid(n.safeExecute(()=>e.perfMetrics.conversationId,"conversationId"));ret
urn i||(SharedLogHelper.LogWarning("getNewConversationId",null,new Error("Client
returned null conversation ID")),i=n.cleanGuid(t.createGuid())),i}static
getNewPrivacyNumber(){return Math.floor(Math.random()*Number.MAX_VALUE)}static
keyDownEscapeHandler(){let i={handled:!
1};t._keyEscapeHandlers.forEach(t=>n.safeExecute(()=>t(i),"escapeKey"));i.handled||
n.safeExecute(()=>SearchAppWrapper.CortanaApp.dismissApp(),"dismissApp");return}sta
tic bindQueryChangedOrInitialized(n,i,r){r?i?
t._rawQueryChangedHandlers.unshift(n):t._queryChangedHandlers.unshift(n):i?
t._rawQueryChangedHandlers.push(n):t._queryChangedHandlers.push(n)}static
bindOnSubmit(n){t._onSubmitHandlers.push(n)}static bindOnFeedbackClosing(n)
{t._onFeedbackClosingHandlers.push(n)}static bindSearchBoxGlyphIconClick(n)
{t._onSearchBoxGlyphIconClick.push(n)}static bindSearchBoxClick(n)
{t._onSearchBoxClick.push(n)}static bindButtonRightOfSearchBoxClick(n)
{t._onButtonRightOfSearchBoxClick.push(n)}static bindSearchBoxGotFocus(n)
{t._searchBoxGotFocusEventHandlers.push(n)}static bindSearchBoxLostFocus(n)
{t._searchBoxLostFocusEventHandlers.push(n)}static getModifierKeyState(){return
t._modifierKeyState}static notifyBootstrapDone()
{t._bootstrapDoneEventHandlers.forEach(n=>n())}static bindBootstrapDone(n)
{t._bootstrapDoneEventHandlers.push(n)}static bindAppVisible(n)
{t._appVisibleEventHandlers.push(n)}static bindShown(n)
{t._shownEventHandlers.push(n)}static bindConversationStart(n)
{t._conversationStartEventHandlers.push(n)}static bindDismissed(n)
{t._dismissedEventHandlers.push(n)}static bindAppHidden(n)
{t._appHiddenEventHandlers.push(n)}static bindBeforeWebViewReload(n)
{t._webViewReloadEventHanlders.push(n)}static bindKeyEscape(n)
{t._keyEscapeHandlers.push(n)}static bindKeyDown(n)
{t._keyDownHandlers.push(n)}static bindKeyUp(n){t._keyUpHandlers.push(n)}static
bindAccessTokenAvailable(n){t._accessTokenAvailableHandlers.push(n)}static
bindScopeListRequiresUpdate(n){t._scopeListRequiresUpdate.push(n)}static
bindAccountChanged(n){t._accountChangedHandlers.push(n)}static
bindDynamicSearchBoxUpdate(n){t._dynamicSearchBoxUpdateHandlers.push(n)}static
bindDynamicPlaceholderContentRequested(n)
{t._dynamicPlaceholderContentRequestedHandlers.push(n)}static getQuery(){return
t.getStructuredQuery(r.getQueryText(),t._currentQuery,t._previousQuery)}static
refreshCurrentPane(n){if(!n||i.currentState===2){let r=t._currentQuery?
t._currentQuery.originalQuery:"";t.setQuery(r,!1,!0)}}static keepWSBOpen(n){let
t=i.hostingEnvironment==3;!
t&&i.changeExplicitDismissMode&&i.changeExplicitDismissMode(n)}static
notifyAccountSelected(n){t.setAuthHeadersFromWindowsTokens((t===null||t===void 0?
void 0:t.isAuthInvestigation())?
["WSBHost::notifyAccountSelected"]:undefined);t._accountChangedHandlers.forEach(t=>
t(n))}static updateQueryWithoutRefetching(i)
{n.isNullOrUndefined(i)&&(i=t._currentQuery?
t._currentQuery.originalQuery:"");t.setQuery(i,!1,!1)}static reformulate(n,i,r,u)
{let
f={query:n,taskFrame:i,topHitRestriction:r,forceGroupOnTop:u};t.setQuery(n||"",!0,!
1,f)}static reformulateOnSuggestionClick(n,i,r,u){let
f={query:n,fromSearchHome:i,fromSuggestionType:r,inorganic:!
0,serpURLParams:u};t.setQuery(n||"",!0,!1,f)}static
reformulateNonForcedMiniSerp(n,i,r){let
u={query:n,fromSearchHome:i,fromSuggestionType:r};t.setQuery(n||"",!0,!1,u)}static
switchToScope(i,r,u){var f,e;const o=(e=(f=n.ScopeConfig===null||
n.ScopeConfig===void 0?void 0:n.ScopeConfig[i])===null||f===void 0?void
0:f.prefixes)===null||e===void 0?void 0:e[0];if(o){const n=`${o}: $
{r||""}`;t.reformulateNonForcedMiniSerp(n,u,undefined)}}static setQuery(u,f,e,o)
{if(n.isNullOrUndefined(u))throw new Error("query parameter can't be null");if(!
f&&o)throw new Error("Property overrides only allowed on query reformulations");let
s=!f&&!
e;t._queryPropertiesOverrides=o;s&&(t._queryToIgnoreOnQueryTextChangedEvent=u);cons
t h=!!n.config.setQueryKeyboardNavParamAvailable&&s&&r.getQueryText().queryText!
=u;n.safeExecute(()=>r.setQueryText(u,f,t._currentRawImpressionIdCreatedByTheClient
?t._currentRawImpressionId:i.impressionId,h),"setQueryText");let
c=f&&t.getQuery().originalQuery==u||e;if(c){const
i=()=>t.callQueryChangedHandlers({queryText:u,cursorPosition:u.length},e,!
1);n.safeExecute(i,"triggerQueryTextChangedEvent")}}static
setAutoCompleteQueryText(i)
{n.safeExecute(()=>r.setAutoCompleteQueryText(i,t._currentRawImpressionId),"setAuto
CompleteQueryText")}static manuallyDismissApp(){!n.config.manuallyDismissApp||
n.config.keepCortanaOpened||n.getTweakedSetting("keepCortanaOpenedTweak")||
SearchAppWrapper.CortanaApp.dismissApp()}static launchUri(i,r,f,e){let o=n=>{n?
f&&f():e&&e()};n.Async.safeChain("launchUri",()=>{let
n=u.createUriLaunchOptions();return
n.launchPolicy=t.getUriLaunchPolicy(),n.dismissAppBeforeLaunchingURI=r,u.launchUriA
sync(i,n)},o,e)}static launchUrlWithEdgeProtocol(i,r,u,f,e)
{if(n.config.enableMoreEdgeProtocol&&!r.cid&&!r.oid){let
i,u,n=this._accessTokenManager.getSelectedAccountInfo((t===null||t===void 0?void
0:t.isAuthInvestigation())?["WSBHost::launchSearch"]:undefined);(n===null||n===void
0?void 0:n.accountProviderAuthority)=="consumers"?(i=n===null||n===void 0?void
0:n.accountId,r.cid=i):(n===null||n===void 0?void
0:n.accountProviderAuthority)=="organizations"&&(u=n===null||n===void 0?void
0:n.accountId,r.oid=u)}if(n.config.enableAnaheimLaunchWithProtocol&&(i=i?
`microsoft-edge:?url=${encodeURIComponent(i)}&timestamp=$
{n.getCurrentTime()}`:`microsoft-edge:?timestamp=$
{n.getCurrentTime()}`,n.config.anaheimDataLaunchSource&&(i+=`&source=$
{encodeURIComponent(n.config.anaheimDataLaunchSource)}`),r.campaign&&(i+=`&campaign
=${encodeURIComponent(r.campaign)}`),r.medium&&(i+=`&medium=$
{encodeURIComponent(r.medium)}`),r.cid&&(i+=`&cid=$
{encodeURIComponent(r.cid)}`),r.oid&&(i+=`&oid=$
{encodeURIComponent(r.oid)}`),r.edgeSettingsUrl&&(i+=`&ux=$
{encodeURIComponent(r.edgeSe
ttingsUrl)}`),n.config.enableLaunchWithProfile)){const
t=this._accessTokenManager.getSelectedAccountInfo();t&&(i+=`&upn=$
{n.encodeURIComponentForWindowsProtocol(t.accountUserName)}`)}t.launchUri(i,u,f,e);
n.InstrumentationHelper.logClientInstEvent("ClientInst","EdgeProtocolLaunchURL",n.S
equenceNumberManager.getSequenceNumber(),{medium:r.medium})}static
launchCodexUri(t,i,r){this._navigationHelper?
(t=this._navigationHelper.enrichUrlWithCvid(t),t=this._navigationHelper.enrichUrlWi
thMuidInfo(t)):
(t=n.setUrlParameter(t,"cvid",this._currentCVID),t=n.setUrlParameter(t,"nclid",_G.n
clid));n.Host.launchUrlWithEdgeProtocol(t,i,r)}static DSBLaunchUri(t,i,r,u,f,e,o,s)
{i.setProperty("clickThroughUrl",t);const
a=n.SequenceNumberManager.getSequenceNumber();u&&n.InstrumentationHelper.createCode
xClickItemProps(i,"DSBCodex");n.InstrumentationHelper.instrumentItemClick(n.getCurr
entTime(),i,a,null,s||n.getInputType(r),null);let c=f?f:i===null||i===void 0?void
0:i.getQsCode(),h=i===null||i===void 0?void 0:i.getProperties(),l=i===null||
i===void 0?void 0:i.getHandoffType();if(l===20){let i;i=h&&h.ocid?h.ocid:e?
e:n.getDSBOCID(c);i&&(t=n.setUrlParameter(t,"ocid",i),t=n.setUrlParameter(t,"pc","D
SBPC"))}else if(n.isBingHandoffType(l)){let i;i=h&&h.form?h.form:o?
o:n.getDSBFormCode(c);i&&(t=n.setUrlParameter(t,"form",i))}this._navigationHelper?
(t=this._navigationHelper.enrichUrlWithCvid(t),t=this._navigationHelper.enrichUrlWi
thMuidInfo(t)):
(t=n.setUrlParameter(t,"cvid",this._currentCVID),t=n.setUrlParameter(t,"nclid",_G.n
clid));n.config.enableMoreEdgeProtocol?n.Host.launchUrlWithEdgeProtocol(t,
{campaign:n.config.moreEdgeProtocolOCID,medium:"DynamicSearchBox"}):n.Host.launchUr
i(t)}static DSBLaunchUriRefactor(t,i,r,u,f)
{i.setProperty("clickThroughUrl",t);const
o=n.SequenceNumberManager.getSequenceNumber();u&&n.InstrumentationHelper.createCode
xClickItemProps(i,"DSBCodex");n.InstrumentationHelper.instrumentItemClick(n.getCurr
entTime(),i,o,null,f||n.getInputType(r),null);let e=i===null||i===void 0?void
0:i.getProperties();e?e.ocid?
(t=n.setUrlParameter(t,"ocid",e.ocid),t=n.setUrlParameter(t,"pc","DSBPC")):e.form?
t=n.setUrlParameter(t,"form",e.form):n.InstrumentationHelper.logClientInstEvent("Cl
ientInst","NoOcidOrForm",o):n.InstrumentationHelper.logClientInstEvent("ClientInst"
,"NoInstrumentedItemProperties",o);this._navigationHelper?
(t=this._navigationHelper.enrichUrlWithCvid(t),t=this._navigationHelper.enrichUrlWi
thMuidInfo(t)):
(t=n.setUrlParameter(t,"cvid",this._currentCVID),t=n.setUrlParameter(t,"nclid",_G.n
clid));n.config.enableMoreEdgeProtocol?n.Host.launchUrlWithEdgeProtocol(t,
{campaign:n.config.moreEdgeProtocolOCID,medium:"DynamicSearchBox"}):n.Host.launchUr
i(t)}static launchOutlook(i,r,f){n.Async.safeChain("launchOutlook",
()=>u.launchEmailInOutlookNativeAsync(i),n=>{n?
(r&&r(),t.manuallyDismissApp()):f&&f()},f)}static
submitFileExplorerTextSuggestion(t)
{n.safeExecute(()=>i.fileExplorerSuggestionPage.onSuggestionSelection(t),"submitFil
eExplorerTextSuggestion")}static submitFileExplorerFolderSuggestion(t)
{n.safeExecute(()=>i.fileExplorerSuggestionPage.onFolderSelection(t),"submitFileExp
lorerFolderSuggestion")}static removeItemFromPinnedToTaskbar(n){t._pinnedApps[n]=!
1}static addItemToPinnedToTaskbar(n){t._pinnedApps[n]=!0}static
cleanTaskBarPinnedItems(){t._pinnedApps={}}static isPinnedToTaskbar(n){return
t._pinnedApps[n]}static launchSearchInFileExplorer(t)
{n.safeExecute(()=>i.launcher.launchExplorerSearch("query="+n.encodeURIComponentFor
WindowsProtocol(t)+"&crumb=kind:docs"),"launchExplorerSearch")}static
isRequestFocusAvailable(){return!!r.requestFocus}static setFocusInSearchBox(i,u)
{if(t.isRequestFocusAvailable()){const
t=()=>r.requestFocus(),f="requestFocus";i==9?
n.safeSetTimeout(t,0,f,u):n.safeExecute(t,f,null,u);let
e=n.getCurrentActiveElement();e&&e.blur()}}static setFocusInWebView(t)
{i.focusWebView&&n.safeExecute(()=>i.focusWebView(),"focusWebView",null,t)}static
getFeatureEnabled(t){let r={validFeature:!1,featureEnabled:!1};return
i.getFeatureEnabled?
n.safeExecute(()=>i.getFeatureEnabled(t),"getFeatureEnabled",r,t):r}static
getFeatureDWORD(t){let r={validFeature:!1,featureValue:0};return i.getFeatureDWORD?
n.safeExecute(()=>i.getFeatureDWORD(t),"getFeatureDWORD",r,t):r}static
getFeatureString(t){let r={validFeature:!1,featureValue:""};return
i.getFeatureString?
n.safeExecute(()=>i.getFeatureString(t),"getFeatureString",r,t):r}static
launchInApp(i,r,u){t.updateQueryWithoutRefetching(r);n.safeExecute(u,i)}static
launchVoiceFlow(n){t.launchInApp("launchVoiceFlow",n,
()=>u.launchRAFAsync(n,t.getFormCode(),t.getInstrumentationParameters()))}static
launchSearch(i,r,u,f){if(u&&!
n.config.disableRAF)t.launchVoiceFlow(i);else{if(n.config.anaheimPrototype&&this._a
ccessTokenManager){let
n=this._accessTokenManager.getSelectedAccountInfo((t===null||t===void 0?void
0:t.isAuthInvestigation())?["WSBHost::launchSearch"]:undefined);r=n?`microsoft-
edge:?upn=${n.accountUserName};url=${r}`:`microsoft-edge:?url=$
{r}`}if(n.config.enableMoreEdgeProtocol){let i;switch(f)
{case"WSHBSH":i="LocalBingSearchHistory";break;case"SSHTRD":i="SSHTrendingSearch";b
reak;default:i="AutoSuggest"}t.launchUrlWithEdgeProtocol(r,
{campaign:n.config.moreEdgeProtocolOCID,medium:i})}else t.launchUri(r)}}static
launchCat1(n,r,f){let e=y[r];if(e)t.launchInApp("launch"+e,n,
()=>i.launchExperienceByName(e,null));else{let i=p[r];i?
t.launchUri(i):t.launchInApp("launchCat1",n,
()=>u.launchCat1Async(n,f,t.getInstrumentationParameters()))}}static
launchCat2or3a(n,i){t.launchInApp("launchCat2",n,
()=>u.launchCat2Async(n,t.getFormCode(),i,t.getInstrumentationParameters()))}static
launchStoreSearch(i){let r="ms-windows-store:search?
query="+n.encodeQueryParameter(i)
+"&ocid="+n.encodeQueryParameter(n.config.storeHandoffTag)
+"&type=apps";t.launchUri(r)}static launchFolder(t)
{n.safeExecute(()=>u.startLaunchFolder(t),"launchFolder")}static
launchWindowsCortanaSettings(){t.launchUri("ms-settings:cortana")}static
launchWindowsIndexingOptions(){n.LocalDataProvider.launchIndexingOptions(!1)}static
launchCortanaSignIn(){t.launchUri("ms-cortana://CapabilitiesPrompt/?
RequestedCapabilities=Personalization")}static launchCortanaNotebook()
{t.launchUri("ms-cortana://StartMode=Notebook")}static launchCortanaDevices()
{t.launchUri("ms-cortana://StartMode=Devices")}static
launchWindowsAccountSettings(){t.launchUri("ms-settings:emailandaccounts")}static
launchSearchSettings(){t.launchUri("ms-settings:cortana-windowssearch")}static
launchSearchDetails(){t.launchUri("ms-settings:search-moredetails")}static
launchSearchPermissions(){t.launchUri("ms-settings:search-permissions")}static
launchDeviceItem(r,f){let e=r.id,o=f;if(n.localDataSourceMayContainPII(f)||(o+="\
n"+e),e.startsWith("shell:"))n.safeExecute(()=>u.startLaunchFolder(e),"launchDevice
Item",null,o);else{const
f=()=>{if(t._isFileExplorerOrControlPanel)i.fileExplorerSuggestionPage.onFileSelect
ion(r)};let e=r.originalDeviceItem||r;n.Async.safeChain("launchDeviceItem",
()=>u.launchSearchItemAsync(e),f,null,null,o,0)}}static launchAppItem(t,i,r){let
f=t.id,e=i+"\n"+f;if(r&&e+"\
n"+r,f.startsWith("shell:"))n.safeExecute(()=>u.startLaunchFolder(f),"launchAppItem
",null,e);else{let i=t.originalDeviceItem||t;n.Async.safeChain("launchAppItem",
()=>{let n;return
r&&(n=u.createAppLaunchOptions(),n.appContext=r),u.launchSearchItemAsync(i,n)},null
,null,null,e,0)}}static launchWebContent(n,i,r){t.launchInApp("launchWebContent",i,
()=>{let
t=u.createWebContentLaunchOptions();t.uri=n;r&&t.setAuthorization("Bearer",r);u.lau
nchWebContent(t)})}static
launchPrivacyPortal(){t.launchUri("https://go.microsoft.com/fwlink/?
LinkId=780764")}static getCustomUrlParameters(i){let
r=Object.assign({},t._queryParamsCache),u=i.scope;return u==n.Scope.All?delete
r[f.Scope]:r[f.Scope]=n.Scope[u].toLowerCase(),n.searchHistoryAllowed()||
(r[n.Service.QueryParams.NoHistory]="1"),t._sendElTokenInSuggstionRequest&&(r[n.Ser
vice.QueryParams.ElTokenValue]=t._elToken),n.RuntimeConfig.QfMode&&(r[n.Service.Que
ryParams.QfMode]=n.RuntimeConfig.QfMode.toString()),r}static getCustomHeaders(i)
{let r=Object.assign({},t._headersCache);if(!i||i.scope!=n.Scope.Apps){let n=(r["X-
BM-ClientFeatures"]||"").split(",");n.push("RevStore");r["X-BM-
ClientFeatures"]=n.join()}return r}static reloadWebView()
{t._webViewReloadEventHanlders.forEach(t=>n.safeExecute(()=>t(),"beforeWebViewReloa
d"));n.Async.safeChain("reloadWebViewAsync",()=>i.reloadWebViewAsync())}static
throwIfResourcesMissing(){let
t=_ge("cssCanary"),i=_w.getComputedStyle(t).fontFamily,r=_w.getComputedStyle(t).get
PropertyValue("list-style-type");if(n.config.useCobaltCSS||sa_config.undocked){let
i=_w.getComputedStyle(t).fontSize;i!="1px"&&n.log("WSBCobalt.css missing.
useCobaltCSS="+n.config.useCobaltCSS+" undocked="+sa_config.undocked)}if(i!
="CANARY"&&i!='"CANARY"'||r!="none")throw new Error("Missing CSS Bundle.");}static
getFormCode(){return SearchAppWrapper.CortanaApp.entryPoint!="WNSHVR"?
n.mapOSFormCode("WNSGPH"):"WNSHVR"}static getRegion(){return n.regionCache||
this.initCortanaEnabledAndRegion(),n.regionCache}static getLanguage(){return
n.uiLanguageCache||this.initLanguage(),n.uiLanguageCache}static
dataSourceDependencies(n){return n=="Web"?["OSTMA","QS"]:n=="SSUE"?["SREE"]:
[]}static getPaneCloseCount(){return t._paneCloseCount}static hasFallbackHappened()
{return t._hasFallbackHappened}static getSafeSearchSetting(){return
t._safeSearchSetting}static isEducationEnvironment(){return
t._isEducationEnvironment}static isWindowsS(){return t._isWindowsS}static
getPartnerSearchCode(){return t._partnerSearchCode}static getAgeAccountType()
{return t._ageAccountType}static getMSNRefIg(){return null}static
setSearchBoxGlyphIcon(t){if(r.setSearchBoxGlyphIcon)if(t){let
i=t.content||"";if(i.startsWith("&#x")){let n=parseInt(i.substr(3),16);i=n?
String.fromCharCode(n):""}let u=t.type==2?"/Assets/Fonts/CortMDL2.ttf#Cortana MDL2
Assets":"";n.safeExecute(()=>r.setSearchBoxGlyphIcon(i,u),"setSearchBoxGlyphIcon
custom")}else
n.safeExecute(()=>r.setSearchBoxGlyphIcon("",""),"setSearchBoxGlyphIcon
default")}static adjustHeightWithoffset(){}static adjustHeight()
{if(n.RuntimeConfig.PanelCanResize&&i.setWebViewHeight)
{t._pendingAdjustHeightTimer&&(sb_ct(t._pendingAdjustHeightTimer),t._pendingAdjustH
eightTimer=null);(n.MockUrlParameters===null||n.MockUrlParameters===void 0?void
0:n.MockUrlParameters.clientVersion)&&(h?
n.StaticHtmlElements.rootContainer.style.height="auto":n.StaticHtmlElements.root.st
yle.height="auto");let r=t._feedbackFormIsVisible?
l:n.StaticHtmlElements.root.offsetHeight;h&&(r+=36);let
u=()=>{r*=i.textScaleFactor||
1,i.setWebViewHeight(r),t._currentPaneHeight=r,t._pendingAdjustHeightTimer=null};!
n.config.paneResizeDelay||r>=t._currentPaneHeight?
u():t._pendingAdjustHeightTimer=n.safeSetTimeout(u,n.config.paneResizeDelay,"adjust
Height")}}static isClientLocationAvailable(){return t._shouldRequestEltoken||!!
t._elToken}static getFileExplorerCurrentPath(){if(n.RuntimeConfig.QfMode!
=5)throw"Not supported";return t._fileExplorerCurrentPath}static
isAuthInvestigation(){return
t._accessTokenManager&&t._isAuthInvestigation}}t._queryParamsCache={};t._locStrings
=[];t._enUsLocStrings=[];t._modifierKeyState={altKey:!1,ctrlKey:!1,shiftKey:!
1};t._bootstrapDoneEventHandlers=[];t._appVisibleEventHandlers=[];t._shownEventHand
lers=[];t._conversationStartEventHandlers=[];t._dismissedEventHandlers=[];t._appHid
denEventHandlers=[];t._webViewReloadEventHanlders=[];t._searchBoxGotFocusEventHandl
ers=[];t._searchBoxLostFocusEventHandlers=[];t._onSubmitHandlers=[];t._onFeedbackCl
osingHandlers=[];t._onSearchBoxGlyphIconClick=[];t._onSearchBoxClick=[];t._onButton
RightOfSearchBoxClick=[];t._queryChangedHandlers=[];t._rawQueryChangedHandlers=[];t
._keyDownHandlers=[];t._keyUpHandlers=[];t._keyEscapeHandlers=[];t._accessTokenAvai
lableHandlers=[];t._scopeListRequiresUpdate=[];t._accountChangedHandlers=[];t._dyna
micSearchBoxUpdateHandlers=[];t._dynamicPlaceholderContentRequestedHandlers=[];t._p
innedApps={};t._state=0;t._paneCloseCount=0;t._qfDismissCount=0;t._defaultWindowsTh
eme=0;t._defaultAppTheme=0;t._currentPaneHeight=0;t._defaultBrowser=0;t._fuzzyRankS
uggestionCount=-1;t._coldRankSuggestionCount=-1;t._notColdRankSuggestionCount=-
1;t._finalColdRankSuggestionCount=-1;t._mruFilesAndFoldersDefinedCount=-
1;t._mruFilesAndFoldersUndefinedCount=-
1;t.usedImpressionIds={};t.getEdgeIcon=(n,i)=>{let
r=t._defaultBrowserIconCache&&t.getUriLaunchPolicy()==0?
t._defaultBrowserIconCache:t._edgeIconCache;return r(n,i)};n.Host=t})(WSB||
(WSB={}))

You might also like