Вы находитесь на странице: 1из 54

var __extends=this&&this.

__extends||function(){var n=function(t,i){return
n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t)
{n.__proto__=t}||function(n,t){for(var i in
t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r()
{this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):
(r.prototype=i.prototype,new r)}}(),AutoSuggest;(function(n){function
f(t,r,u,f,e,o,s){i(t,r,u,function(t){return f(t.status==200&&t.responseText?
n.safeExecute(function(){return
JSON.parse(t.responseText)},"JSON.parse"):null)},e,o,s)}function
i(i,r,u,f,e,o,s,h,c){var l=c&&_w.XMLHttpRequest?new
XMLHttpRequest:sj_gx(),v,a;try{l.open(u?"POST":"GET",i,!0)}catch(y)
{SharedLogHelper.LogError("fetchUrl",i,y);f&&(n.log("error"),f({responseText:"",con
tentType:"",status:-1,result:3}));return}if(r)for(v in
r)l.setRequestHeader(v,r[v]);e&&(a=e.register(function(){return l.abort()},!1,"xhr
abort"));l.onreadystatechange=function()
{l.readyState==4&&l.status>0&&t(l,0,f,a,e,o)};l.ontimeout=function(){return
t(l,1,f,a,e,o)};l.onabort=function(){return t(l,2,f,a,e,o)};l.onerror=function()
{return t(l,3,f,a,e,o)};typeof s!="undefined"?
l.withCredentials=s:l.withCredentials!==undefined&&(l.withCredentials=!
0);h&&h>0&&(l.timeout=h);l.send(u)}function t(n,t,i,r,u,f){(!f||
f())&&(n.readyState==4&&(n.onreadystatechange=function()
{}),r&&u.unregister(r),i&&i({responseText:n.responseText,contentType:n.getResponseH
eader("content-type")||"",status:n.status,result:t}))}function e(n){var
t=n.IconContent;return t?t[0]=="S"?{content:t.slice(1),type:1}:
{content:t,type:2}:n.Icon?{content:n.Icon,type:0}:null}var
r,u;n.fetchUrlJson=f;n.fetchUrl=i;r=function(){function t(t)
{this._dataSource=t;this._delay=n.config.webDataSourcesWithThrottling[t]||0}return
t.prototype.getBaseUrl=function(){throw new Error("Not
Implemented");},t.prototype.getPostBody=function(){return
undefined},t.prototype.onBeforeFetchUrl=function()
{},t.prototype.createUrl=function(t){return decodeURIComponent(this.getBaseUrl())+
(t?
n.encodeQueryParameter(t.queryToFetch.toLowerCase()):"")},t.prototype.addParamsToUr
l=function(n,t){var i=t?Object.keys(t):[];return
i.length>0&&(n+=n.includes("?")?"&":"?",n+=i.map(function(n){return
n+"="+t[n]}).join("&")),n},t.prototype.fetch=function(t,i,r,u,f,e,o,s,h,c){var
a=this,l,v;if(n.isDataSourceEnabled(this._dataSource,t))if(l=this.addParamsToUrl(th
is.createUrl(t),e),v=this.getPostBody(t)||"",this._timer&&(sb_ct(this._timer),this.
_timer=null),this._delay>0&&!
t.isFormulatedQuery)this._timer=n.safeSetTimeout(function()
{a._timer=null;a.onBeforeFetchUrl(r,l);a.fetchUrl(l,o,v,i,u,f,s,h,c)},this._delay,"
fetchDelay");else{this.onBeforeFetchUrl(r,l);this.fetchUrl(l,o,v,i,u,f,s,h,c)}},t.p
rototype.fetchUrl=function(t,r,u,f,e,o,s,h,c){var l=this;i(t,r,u,function(i){var
r=i.responseText,o=i.contentType,u=i.status,e;u==200&&(n.config.th&&r&&(r=r.replace
(new RegExp("<!--[^]*?--
>","gm"),"")),r&&o.includes("json")&&(e=n.safeExecute(function(){return
JSON.parse(r)},"parseWebProviderResponse",null,t)));f(l._dataSource,e,u==200?
null:u.toString())},this._delay>0?e:null,o,h,s,c)},t}
();n.JsonDataProvider=r;u=function(t){function i(i,r,u){var
f=t.call(this,n.WebDataSource)||this;return
f._instrumentationHelper=i,f._responseCacheManager=r,f._headRankingSignalsManager=u
,f}return __extends(i,t),i.prototype.getName=function()
{return"AsSuggestionsDataProvider"},i.prototype.getBaseUrl=function(){return
n.config.u},i.prototype.onBeforeFetchUrl=function(n,t)
{this._instrumentationHelper.instrumentSnRProviderFetchUrl(n,t)},i.prototype.fetch=
function(i,r,u,f,e,o,s){var
a=this,c,l,h;if(n.isDataSourceEnabled(this._dataSource,i))
{if(this._headRankingSignalsManager&&(c=this._headRankingSignalsManager.get(i),c))
{l=this.addParamsToUrl(this.createUrl(i),o);this.onBeforeFetchUrl(u,l);r(this._data
Source,c,null,2);return}h=r;h=function(t,u,f,e)
{u&&n.isEmptyUrlPrefix(i)&&(u.Suggestions=[]);a.processResourceResponse(u);r(t,u,f,
e)};this._responseCacheManager?
this.fetchWithCache(i,h,u,f,e,o,s):t.prototype.fetch.call(this,i,h,u,f,e,o,s)}},i.p
rototype.fetchWithCache=function(n,i,r,u,f,e,o){var
h=this,c=this._responseCacheManager.get(n),l,a,s;if(c)
{l=this.addParamsToUrl(this.createUrl(n),e);this.onBeforeFetchUrl(r,l);i(this._data
Source,c,null,1)}else a=function(){return!0},s=i,s=function(t,r,u)
{f()&&i(t,r,u,0);n.queryToFetch&&h.responseIsValidForCaching(u,r)&&(r.ELToken&&(r=O
bject.assign({},r),delete
r.ELToken),h._responseCacheManager.put(n,r))},t.prototype.fetch.call(this,n,s,r,u,a
,e,o)},i.prototype.responseIsValidForCaching=function(n,t){var i="HS";return!
n&&t&&t.Suggestions.every(function(n){return!n.InstantAnswer&&n.Attributes.stype!
=i})},i.prototype.processResourceResponse=function(n){var
t,i;n&&(t=n.Resources,t)&&(this._downloadedStylesResources?
this.updateWithDownloadedResources(t):this._downloadedStylesResources=t.Styles,i={S
tyles:t.Styles,Scripts:null},JsonInject.WriteHeadAndBeforeContentResources(i))},i.p
rototype.updateWithDownloadedResources=function(n){var t,i;for(t in n.Styles)for(i
in n.Styles[t])this._downloadedStylesResources[t][i]?delete n.Styles[t]
[i]:this._downloadedStylesResources[t][i]=n.Styles[t][i]},i}
(r);n.AsSuggestionsDataProvider=u;n.getIconFromOnlineResponse=e})(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function f(n,t,i,r,f){typeof
indexedDB!="undefined"&&new u(n,f,t,i,r)}function e(n,t,i,r,f){typeof indexedDB!
="undefined"&&new u(n,f,t,i,r)}function o(n,t,i,r,f,e){typeof indexedDB!
="undefined"&&new u(n,e,t,i,r,f)}function s(n,t,i,r,f,e){typeof indexedDB!
="undefined"&&new u(n,e,t,i,r,f)}function h(n,t,u){i(n,"deleteDatabase
requested");try{var f=indexedDB.deleteDatabase(n);f.onsuccess=function()
{i(n,"deleteDatabase
completed");t&&t()};f.onerror=r("deleteDatabase.onError",function(t)
{SharedLogHelper.LogError("deleteDB",n,t);u&&u(t)})}catch(e){u&&u(e)}}function
r(n,t){return function(i){var r=n;try{r+=" "+i.target.error.name}catch(u){}t(new
Error(r))}}var
i,u;t.instanceWithNumberKeys=f;t.instanceWithStringKeys=e;t.instanceWithNumberKeysA
ndSecondaryKey=o;t.instanceWithStringKeysAndSecondaryKey=s;i=n.config.th&&ClientTes
tHooks.isTesthookParamSet("dbTrace")?function(t,i){return n.log("["+t+"]
"+i)}:function(){};t.deleteDatabase=h;t.handleErrorEvent=r;u=function(){function
t(n,u,f,e,o,s){var
h=this,c;this._databaseName=n;this.onClosed=o;this._secondaryIndex=s;this._closePen
ding=!1;this._storeName=n+"Store";i(this._databaseName,"open
requested");try{c=indexedDB.open(n,u||1)}catch(l){e(new
Error("IndexedDbClientSideStorage.const: Could not open
database"));return}c.onsuccess=function(n)
{h._database=n.target.result;t._allInstances.push(h);i(h._databaseName,"open
completed");f(h)};c.onupgradeneeded=function(n){var
t,r;i(h._databaseName,"upgrading");t=n.target.result;t.objectStoreNames.contains(h.
_storeName)&&t.deleteObjectStore(h._storeName);r=t.createObjectStore(h._storeName);
h._secondaryIndex&&r.createIndex(h._secondaryIndex,h._secondaryIndex,{unique:!
1})};c.onerror=r("open.onError",e);c.onblocked=r("open.onBlocked",e)}return
t.prototype.put=function(n,t,i,r)
{this.safeDbOperation("put",n.toString(),"readwrite",i,function(i,r,u){var
f=i.put(t,n);f.onsuccess=r;f.onerror=u},r)},t.prototype.putMultiple=function(n,t,i)
{this.safeDbOperation("putMultiple",n.length.toString(),"readwrite",t,function(t,i,
r){var u=0,f=function(){if(u<n.length){var
e=t.put(n[u].value,n[u].key);u+=1;e.onsuccess=u==n.length?
i:f;e.onerror=r}};f()},i)},t.prototype.getValue=function(n,t,i)
{this.safeDbOperation("getValue",n.toString(),"readonly",function(n){return
t(n.target.result)},function(t,i,r){var
u=t.get(n);u.onsuccess=i;u.onerror=r},i)},t.prototype.getRange=function(n,t,i,r)
{var u=this;this.safeDbOperation("getRange","["+n+",
"+t+")","readonly",i,function(i,r,f){var e=IDBKeyRange.bound(n,t,!1,!
0);u.queryFromCursor(i.openCursor(e),r,f)},r)},t.prototype.getRangeOnSecondaryKey=f
unction(n,t,i,r){var u=this;this._secondaryIndex?
this.safeDbOperation("getRangeOnSecondaryKey","["+n+",
"+t+")","readonly",i,function(i,r,f){var
e=i.index(u._secondaryIndex),o=IDBKeyRange.bound(n,t,!1,!
0);u.queryFromCursor(e.openCursor(o),r,f)},r):r(new Error("getRangeOnSecondaryKey:
Index name is missing"))},t.prototype.removeRange=function(n,t,i,r){var
u=this;this.safeDbOperation("removeRange","["+n+","+t+"]","readwrite",i,function(i,
r,f){var e=IDBKeyRange.bound(n,t,!1,!
0);u.removeFromCursor(i.openCursor(e),r,f)},r)},t.prototype.removeRangeOnSecondaryK
ey=function(n,t,i,r){var u=this;this._secondaryIndex?
this.safeDbOperation("removeRangeOnSecondaryKey","["+n+","+t+"]","readwrite",i,func
tion(i,r,f){var e=i.index(u._secondaryIndex),o=IDBKeyRange.bound(n,t,!1,!
0);u.removeFromCursor(e.openCursor(o),r,f)},r):r(new
Error("removeRangeOnSecondaryKey: Index name is
missing"))},t.prototype.getAll=function(n,t){var
i=this;this.safeDbOperation("getAll",null,"readonly",n,function(n,t,r){return
i.queryFromCursor(n.openCursor(),t,r)},t)},t.prototype.close=function()
{i(this._databaseName,"close
requested");this.innerClose()},t.prototype.innerClose=function(){var
f,e,r,u,o;if(t._requestsInProgress>0)i(this._databaseName,"delaying close because
of "+t._requestsInProgress+" requests in progress"),this._closePending=!0;else
for(f=function(t){t._database&&(n.safeExecute(function(){return
t._database.close()},e._databaseName+".close"),i(t._databaseName,"close
completed"),t._database=null,t.onClosed())},e=this,r=0,u=t._allInstances;r<u.length
;r++)o=u[r],f(o)},t.prototype.queryFromCursor=function(t,i,r){var
u=[];t.onsuccess=function(t){var
r=t.target.result;r&&u.push({key:r.primaryKey,value:r.value});r&&u.length!
=n.config.maxIndexedDBCursorIterations?r["continue"]
():i(u)};t.onerror=r},t.prototype.removeFromCursor=function(t,i,r){var
u=0;t.onsuccess=function(t){var r=t.target.result;r&&(r["delete"](),u+=1);r&&u!
=n.config.maxIndexedDBCursorIterations?r["continue"]
():i(null)};t.onerror=r},t.prototype.safeDbOperation=function(n,u,f,e,o,s){var
h=this,l,c,a;i(this._databaseName,n+" requested"+(u?"
"+u:""));t._requestsInProgress+=1;l=function(r){i(h._databaseName,n+" completed "+
(u?u+" ":""));t._requestsInProgress-
=1;e(r);h._closePending&&t._requestsInProgress==0&&h.innerClose()};c=function(n)
{t._requestsInProgress-
=1;s(n);h._closePending&&t._requestsInProgress==0&&h.innerClose()};try{this._databa
se?
(a=this._database.transaction(this._storeName,f).objectStore(this._storeName),o(a,l
,r(n+".onError",c))):c(new Error(n+" Database not initialized"))}catch(v)
{c(v)}},t._requestsInProgress=0,t._allInstances=[],t}()})(t=n.ClientSideStorage||
(n.ClientSideStorage={}))}(AutoSuggest||(AutoSuggest={})),function(n){var t;
(function(t){var i=function(){function t(n,t,i,r,u,f){var
e=this;this._storageFactory=n;this.createResponse=t;this.dataPopulated=i;this.getDa
taSourceState=r;this._dataSource=u;this._storageOpenInProgress=!
1;this._pendingQueries=[];f&&(f.bindAppVisible(function(){return
e.initStorage()}),f.bindDismissed(function(){return
e._pendingQueries=[]}),f.bindAppHidden(function(){return
e.teardownStorage()}))}return t.prototype.teardownStorage=function()
{this._storage&&this._storage.close()},t.prototype.initStorage=function(){var
n=this;!
this._storageOpenInProgress&&this.dataPopulated()&&(this._storageOpenInProgress=!
0,this._storageFactory(function(t){n._storage=t;n._storageOpenInProgress=!
1;n._pendingQueries.forEach(function(n){return
n()});n._pendingQueries=[]},function(t){n.onError(t,"open
storage");n._storageOpenInProgress=!1;n._pendingQueries.forEach(function(n){return
n()});n._pendingQueries=[]},function(){return
n._storage=null}))},t.prototype.onError=function(n,t){t!="open
storage"&&SharedLogHelper.LogError(t,this._dataSource,n);this.teardownStorage()},t.
prototype.reloadStorage=function()
{this.teardownStorage();this.initStorage()},t.prototype.isReady=function(){return!!
this._storage},t.prototype.getKey=function(n){return n.queryToFetch?
n.queryToFetch.toLocaleLowerCase():""},t.prototype.fetch=function(t,i,r,u,f){var
o=this,e;n.isDataSourceEnabled(this._dataSource,t)&&(e=function(n,r){var
u=r=="R";f()&&i(o._dataSource,o.createResponse(t,n,u),o.getDataSourceState(r))},thi
s.innerQueryStorage(1,this.getKey(t),function(n){return e(n,"R")},function(){return
e(null,"E")},function(){return e(null,"X")},function(){return
e(null,"T")}))},t.prototype.withStorage=function(n){return this._storage?
(n(this._storage),!0):!1},t.prototype.getMaxKey=function(n){return
n.slice(0,n.length-1)+String.fromCharCode(n.charCodeAt(n.length-
1)+1)},t.prototype.queryStorage=function(n,t,i,r,u)
{this.innerQueryStorage(0,n,t,i,r,u)},t.prototype.innerQueryStorage=function(t,i,r,
u,f,e){var h=this,o=null,s=!1,c=!0,a=function(){if(c)if(c=!1,h._storage){var
n=function(n){o&&sb_ct(o);h.onError(n,"query");s||(s=!0,u())};t==0?
h._storage.getValue(i,function(n){o&&sb_ct(o);s||(s=!0,r(n))},n):i?
h._storage.getRange(i,h.getMaxKey(i),function(n){o&&sb_ct(o);s||(s=!
0,r(n))},n):h._storage.getAll(function(n){o&&sb_ct(o);s||(s=!0,r(n))},n)}else
o&&sb_ct(o),s||(s=!0,u())},l;if(this._storage)a();else
if(this.initStorage(),this._storageOpenInProgress)this._pendingQueries.push(a);else
{f();return}l=i?
n.config.indexedDBTimeout:n.config.latencyTimeoutForZeroInput;l&&(o=n.safeSetTimeou
t(function(){o=null;c=!1;s||(s=!0,e())},l,"innerQueryStorage"))},t}
();t.StorageBasedDataProvider=i})(t=n.ClientSideStorage||(n.ClientSideStorage={}))}
(AutoSuggest||(AutoSuggest={})),function(n){var t;(function(t){var i=function()
{function i(n,t,i)
{this._host=n;this._instrumentationHelper=t;this._temporaryMessageHandler=i}return
i.prototype.parse=function(i,r,u,f,e,o,s){var
l=this,a=[],d,h,c,g;if(t.config.historySettingsPresent){var
v=[],y=[],p=[],w=[],b=[],k=[];if(f&&f.Suggestions)for(d=function(u){var
f=u.suggestionData,e,o;f.handoffType==2?t.isApp(f.type)?
(e=f,v.push(e.id),w.push(u)):t.isSetting(f.type)?
(e=f,y.push(e.id),b.push(u)):t.isFileOrFolder(f.type)&&(e=f,p.push(e.id),k.push(u))
:n.isBingEnabled()&&(o=n.safeExecute(function(){return
l.parseMRUWebSuggestion(i,u,r)},"parseMRUWebSuggestion"),o&&a.push(o))},h=0,c=f.Sug
gestions;h<c.length;h++)g=c[h],d(g);t.lookupById(i,"MPP",v,w,function(n)
{return[n.suggestionData.id]},"MST",y,b,function(n){return
n.suggestionData.id},e,r,o,s,function(n,t,u,f){return
l.parseIdLookupResponse(i,r,n,t,u,f)},"MFF",p,k,function(n){return
n.suggestionData.id},this._instrumentationHelper,this._host)}o(n.MRUDataSource,a,f)
},i.prototype.parseIdLookupResponse=function(i,r,u,f,e,o){var
h=this,s,c;e.length==1&&(s=u.suggestionData,c=function(n){return
h.setupRemoveFromHistoryContextMenu(n,u,h._host),s.appContextData&&(n.appContext=s.
appContextData.appContext,n.query=s.appContextData.query,n.text=i.queryToFetch?
HitHighlightingParser.addMarkers(s.appContextData.textWithoutHH,i.queryToFetch):s.a
ppContextData.textWithoutHH),h.setRankingSignals(n,s),!0},n.safeExecute(function()
{return
t.parseLocalSuggestion(i,e[0],f,r,h._host,h._temporaryMessageHandler,s.type,h._inst
rumentationHelper,o,c)},"parseLocalSuggestion
"+f))},i.prototype.setRankingSignals=function(n,t)
{n.hc=t.hc;n.highConfidenceMetaSuggestionScore=t.highConfidenceMetaSuggestionScore;
n.prefetchConfidenceScore=t.prefetchConfidenceScore;n.fromHistory=!0;n.hasMruData=!
0},i.prototype.parseMRUWebSuggestion=function(i,r,u){var
e=r.suggestionData,f=t.createSuggestion(i,i.queryToFetch?
HitHighlightingParser.addMarkers(e.textWithoutHH,i.queryToFetch):e.textWithoutHH,nu
ll,e.icon,e.type,e.query,n.InstrumentedItem.createInstrumentedItem(u,e.type),e.hand
offType,u,!1),o,s,c,h;this.setRankingSignals(f,e);switch(f.handoffType){case 5:case
4:if(!t.isCortanaEnabledCache||f.type=="CSK"||(o=e,f.primaryMetadata=o.annotation||
o.secondaryText,!
t.setCat1SuggestionProperties(f,i,u,o.actionUri,o.taskFrame,o.confidence,o.source,t
his._host)))return null;break;case 10:return null;case
1:s=e;c=r.rankingData;i.queryToFetch.length>3&&(f.autoOpenPreviewPaneWhenOnTopHit=!
!c.previewPaneLaunchCount);h=s.title||s.secondaryText;i.isSearchHomeZI&&h?
(f.additionalInfoText=s.url,f.text=HitHighlightingParser.removeMarkers(h)):f.primar
yMetadata=h;t.setUrlSuggestionProperties(f,i,u,s.url,this._host);break;default:retu
rn SharedLogHelper.LogError("parseMruWebSuggestion",null,new Error("Unexpected
handoff type: "+e.handoffType)),null}return
t.isValidSuggestion(f,"parseMruWebSuggestion")?
(this.setupRemoveFromHistoryContextMenu(f,r,this._host),f):null},i.prototype.setupR
emoveFromHistoryContextMenu=function(n,i,r){var
u=this;i.remove&&t.setExtraVerbs(n,function(t){if(t||!i.remove)return[];if(!
n.removeIcon&&n.duplicates&&n.duplicates.some(function(n){return!
n.fromHistory}))return[];var
f={verb:"RemoveFromDeviceHistory",displayName:r.getLocString("RemoveFromDeviceHisto
ry"),executeSync:function(){i.remove(function()
{r.refreshCurrentPane();u._temporaryMessageHandler.showTemporaryMessage(r.getLocStr
ing("RemovedFromDeviceHistory",HitHighlightingParser.removeMarkers(n.text)))});dele
te i.remove},icon:{content:"&#xE711",type:2}};return[f]},!0)},i}();t.MRUParser=i})
(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={}));__extends=this&&this.__extends||function(){var n=function(t,i)
{return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t)
{n.__proto__=t}||function(n,t){for(var i in
t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r()
{this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):
(r.prototype=i.prototype,new r)}}(),function(n){var t;(function(t){var
i="LastUpdated",r=function(t){function r(r,u,f,e,o,s,h,c){var
l=this;r&&r.bindItemLaunch(function(n,t,i){return l.onLaunch(n,t,i)});var
a,v=function(t,r,f){return u(s,function(i){t(i);var r=n.getTimeDiffInDays(a);
(r===null||r>=1)&&(a=n.getCurrentDate(),l.prune())},r,f,i)},y=function(t,i,r)
{return n.config.th&&typeof
n.MockedMRUData=="object"&&(i=n.MockedMRUData),n.safeExecute(function(){return
l.createMruResponse(t,i,r)},"createMruResponse")},p=function(){return!
0},w=function(n){return n=="R"?undefined:n};return
f.bindClearMRURequested(function(t)
{l.teardownStorage();n.ClientSideStorage.deleteDatabase(s,function(){return t(!
0)},function(){return t(!1)})}),l=t.call(this,v,y,p,w,n.MRUDataSource,f)||
this,l.candidatesEnabled=h,l.loggingEnabled=c,l.getSuggestionKey=e,l.getGroupType=o
,l._pendingWrites=[],l}return __extends(r,t),r.prototype.getName=function()
{return"MRUDataProvider"},r.prototype.shouldStoreSuggestions=function(){return
n.config.historySettingsPresent&&this.candidatesEnabled()},r.prototype.createMruRes
ponse=function(t,i,r){var c=this,f,s,u,o,h;if(i=i||
[],f=this.getKey(t),this._lastKey=r?f:null,s=r?i.find(function(n){return
n.key==f}):null,this._valueForLastKey=s?
s.value:null,u={},n.config.mruSignalsEnabled&&this._valueForLastKey&&(u.SuggestionE
ngagementData=this._valueForLastKey.SuggestionEngagementData),u.LookupCompletions=i
.map(function(n)
{return{key:n.key,value:n.value.SuggestionEngagementData}}),this.shouldStoreSuggest
ions()){var e=[],v=this.getOldestDateToKeep(),y=function(n,t){var
u,i,r,f;if(t.Suggestions)for(u=function(i){var
r=l.getRankingData(t,i);r&&r.lastLaunchTime&&r.lastLaunchTime>=v&&e.push({rankingDa
ta:n==l._lastKey?
{prefixLaunchCount:r.prefixLaunchCount,lastLaunchTime:r.lastLaunchTime,previewPaneL
aunchCount:r.previewPaneLaunchCount,lastPreviewPaneLaunchTime:r.lastPreviewPaneLaun
chTime}:r,suggestionData:i,remove:function(t){return
c.remove(n,i,t)}})},i=0,r=t.Suggestions;i<r.length;i+
+)f=r[i],u(f)},l=this;for(o=0,h=i;o<h.length;o++){var
a=h[o],p=a.key,w=a.value;y(p,w)}e.length>0&&(u.Suggestions=[],e.sort(function(n,t)
{return t.rankingData.lastLaunchTime-
n.rankingData.lastLaunchTime}),e.forEach(function(n){return
c.addToResponseIfNotPresent(u.Suggestions,n)}),f?f.length<=n.config.mruLengthA?
u.Suggestions.splice(n.config.maxMruA):f.length<=n.config.mruLengthB&&u.Suggestions
.splice(n.config.maxMruB):u.Suggestions.splice(n.config.maxMruZeroInput))}return
u},r.removeRankerSignals=function(n,t){return
n=="highConfidenceMetaSuggestionScore"||n=="prefetchConfidenceScore"?
undefined:t},r.prototype.addToResponseIfNotPresent=function(n,t){var
f=JSON.stringify(t.suggestionData,r.removeRankerSignals),i=n.find(function(n)
{return JSON.stringify(n.suggestionData,r.removeRankerSignals)==f}),u;i?
(u=i.remove,i.remove=function(n){return u(function(){return
t.remove(n)})},i.rankingData.lastLaunchTime=Math.max(i.rankingData.lastLaunchTime,t
.rankingData.lastLaunchTime),i.rankingData.prefixLaunchCount+=t.rankingData.prefixL
aunchCount,t.rankingData.previewPaneLaunchCount&&(i.rankingData.previewPaneLaunchCo
unt=(i.rankingData.previewPaneLaunchCount||
0)+t.rankingData.previewPaneLaunchCount),t.rankingData.lastPreviewPaneLaunchTime&&(
i.rankingData.lastPreviewPaneLaunchTime=i.rankingData.lastPreviewPaneLaunchTime?
Math.max(i.rankingData.lastPreviewPaneLaunchTime,t.rankingData.lastPreviewPaneLaunc
hTime):t.rankingData.lastPreviewPaneLaunchTime)):n.push(t)},r.prototype.addToDataIf
NotPresent=function(n,t){var
i=JSON.stringify(t,r.removeRankerSignals),u=n.find(function(n){return
JSON.stringify(n,r.removeRankerSignals)==i});u||
n.push(t)},r.prototype.onAfterWrite=function(){if(this._writing=!
1,this._pendingWrites.length>0){var n=this._pendingWrites.shift();n()}else
this._tearDownPending&&this.teardownStorage()},r.prototype.teardownStorage=function
(){this._writing?this._tearDownPending=!0:(this._tearDownPending=!
1,t.prototype.teardownStorage.call(this))},r.prototype.onLaunch=function(n,t,i){var
r=this,u;if(this.loggingEnabled()){if(this._writing)
{this._pendingWrites.push(function(){return
r.onLaunch(n,t,i)});return}this._writing=!0;u=this.getKey(t);this._lastKey==u?
this.updateAndSaveLaunchData(u,this._valueForLastKey,n,i):this.queryStorage(u,funct
ion(t){return r.updateAndSaveLaunchData(u,t,n,i)},function(){return
r.onAfterWrite()},function(){return r.onAfterWrite()},function(){return
r.onAfterWrite()})}},r.prototype.remove=function(n,t,i){var
r=this;if(this._writing){this._pendingWrites.push(function(){return
r.remove(n,t,i)});return}this._writing=!0;this._lastKey==n?
this.removeAndSaveLaunchData(n,this._valueForLastKey,t,i):this.queryStorage(n,funct
ion(u){return r.removeAndSaveLaunchData(n,u,t,i)},function(){return
r.onAfterWrite()},function(){return r.onAfterWrite()},function(){return
r.onAfterWrite()})},r.getUnixTime=function(n){return n||(n=new
Date),Math.round(n.getTime()/1e3)},r.prototype.createOrUpdateDbEntry=function(n,t,i
,u){var f,e;return t?
(t.LastUpdated=r.getUnixTime(),t.SuggestionEngagementData=t.SuggestionEngagementDat
a||{}):t={LastUpdated:r.getUnixTime(),SuggestionEngagementData:
{}},f=this.getSuggestionKey(i),t.SuggestionEngagementData[f]=this.updateMRUEntryCli
cksAndTime(t.SuggestionEngagementData[f],t.LastUpdated,u),this.getGroupType&&(t.Sug
gestionEngagementData[f].groupType=this.getGroupType(i)),this.shouldStoreSuggestion
s()&&(e=i.getMruData(),e&&n&&(t.Suggestions||
(t.Suggestions=[]),this.addToDataIfNotPresent(t.Suggestions,e))),t},r.prototype.upd
ateMRUEntryClicksAndTime=function(n,t,i){return n?
(n.prefixLaunchCount+=1,n.lastLaunchTime=t):n={prefixLaunchCount:1,lastLaunchTime:t
},i&&(n.previewPaneLaunchCount=(n.previewPaneLaunchCount||
0)+1,n.lastPreviewPaneLaunchTime=t),n},r.prototype.getOldestDateToKeep=function()
{var t=n.getCurrentDate();return t.setDate(t.getDate()-
n.config.mruMaxAgeInDays),r.getUnixTime(t)},r.prototype.updateAndSaveLaunchData=fun
ction(t,i,r,u){var f=this;if(i=n.safeExecute(function(){return
f.createOrUpdateDbEntry(t,i,r,u)},"createOrUpdateDbEntry"),!i)
{this.onAfterWrite();return}n.safeExecute(function(){return
f.removeOldLaunches(i,f.getOldestDateToKeep())},"removeOldLaunches");this._lastKey=
t;this._valueForLastKey=i;this.withStorage(function(n){return n.put(t,i,function()
{return f.onAfterWrite()},function(n)
{f.onError(n,"updateAndSaveLaunchData");f.onAfterWrite()})})||
this.onAfterWrite()},r.prototype.removeAndSaveLaunchData=function(n,t,i,r){var
u=this,e,f;if(!t){SharedLogHelper.LogError("removeAndSaveLaunchData",null,new
Error("MRU entry not
present"));this.onAfterWrite();return}if(e=JSON.stringify(i),f=(t.Suggestions||
[]).findIndex(function(n){return JSON.stringify(n)==e}),f==-1)
{SharedLogHelper.LogError("removeAndSaveLaunchData",null,new Error("Suggestion not
present in
MRU"));this.onAfterWrite();return}t.Suggestions.splice(f,1);this._lastKey=n;this._v
alueForLastKey=t;this.withStorage(function(i){return i.put(n,t,function()
{r&&r();u.onAfterWrite()},function(n)
{u.onError(n,"removeAndSaveLaunchData");u.onAfterWrite()})})||
this.onAfterWrite()},r.prototype.getRankingData=function(n,t){return
n.SuggestionEngagementData?
n.SuggestionEngagementData[t.suggestionKey]:undefined},r.prototype.removeOldLaunche
s=function(n,t){var i,r,u;if(n.Suggestions)for(i=n.Suggestions.length-1;i>=0;--
i)r=this.getRankingData(n,n.Suggestions[i]),u=r?r.lastLaunchTime:null,(!u||
u<t)&&n.Suggestions.splice(i,1);this.removeOldEngagementData(n.SuggestionEngagement
Data,t)},r.prototype.removeOldEngagementData=function(n,t){var i,r,u;if(n)for(i in
n)r=n[i],r&&(u=r.lastLaunchTime,(!u||u<t)&&delete
n[i])},r.prototype.prune=function(n){var t=this;if(this._writing)
{this._pendingWrites.push(function(){return t.prune(n)});return}this._writing=!
0;this.withStorage(function(i){return
i.removeRangeOnSecondaryKey(0,t.getOldestDateToKeep(),function()
{n&&n();t.onAfterWrite()},function(n){t.onError(n,"MRUDataProvider
prune");t.onAfterWrite()})})||this.onAfterWrite()},r}
(n.ClientSideStorage.StorageBasedDataProvider);t.MRUDataProvider=r})(t=n.MRU||
(n.MRU={}))}(AutoSuggest||(AutoSuggest={})),function(n){var t;(function(t){var i;
(function(i){function v(n,t){var r,i;if(f||nt(),r=f[n],!r)throw new
Error("Unsupported data source: "+n);if(i=r.filter(function(n){return!n.enabled||
n.enabled(t)}),i.length==0)throw new Error("No enabled strategies for data source:
"+n);else if(i.length>1)throw new Error("Multiple strategies for data source:
"+n);else return i[0]}function sr(n){return f||nt(),!!f[n]}function hr(n,t,i){if(!
f||!f[i]||t.taskFrame)return!1;var r=v(i,t);return r.sfgaoFilter?!
r.sfgaoFilter(n.getProperty("System.SFGAOFlags")):!1}function r(n,t){return
n=vi.concat(n),t&&(n=n.concat(yi)),n}function nt(){var
v=0,e=s.deviceSearch.getUserSID(),g=ti(v,e,!1),nt=g[0],o=g[1],tt=ti(v,e,!
0),i=tt[0],n=tt[1];b=nt;yt=o;var it='"System.Kind" != ANY
ARRAY['+d.concat("link").map(function(n){return"'"+n+"'"}).join(", ")+"] AND
"+nt,ni="\"System.Kind\" = SOME ARRAY['program'] AND "+i,rt='"System.Kind" != ANY
ARRAY['+wt.map(function(n){return"'"+n+"'"}).join(", ")+"] AND "+i,h='"System.Kind"
!= ANY ARRAY['+pt.concat(d).concat("folder").map(function(n)
{return"'"+n+"'"}).join(", ")+"] AND "+i,ii="\"System.Kind\" = SOME ARRAY['folder']
AND "+i,bt="\"System.Kind\" = SOME ARRAY['Music'] AND "+i,kt="\"System.Kind\" =
SOME ARRAY['Picture'] AND "+i,dt='"System.Kind" = SOME ARRAY['+k.map(function(n)
{return"'"+n+"'"}).join(", ")+"] AND "+i,gt="SCOPE = 'winrt://
{"+e+"}/LS/Microsoft.MicrosoftEdge_8wekyb3d8bbwe/spartan
history'";f={};f.IFF=[{selectFields:r(c,!1),filterFieldsSets:
[ut],mostRelevantProps:l,kindAndScopeClauses:it,sortClause:u,searchOptions:3,sfgaoF
ilter:o,enabled:function(n){return!!n.queryToFetch&&!
t.supportsShortcuts("IFF",n)}},{selectFields:r(c,!1),filterFieldsSets:
[],mostRelevantProps:l,kindAndScopeClauses:it,sortClause:u,searchOptions:0,sfgaoFil
ter:o,enabled:function(n){return!n.queryToFetch&&!t.supportsShortcuts("IFF",n)}},
{selectFields:r(ft,!0),filterFieldsSets:
[pi],mostRelevantProps:l,kindAndScopeClauses:rt,sortClause:u,searchOptions:3,sfgaoF
ilter:n,enabled:function(n){return!!n.queryToFetch&&t.supportsShortcuts("IFF",n)}},
{selectFields:r(ft,!0),filterFieldsSets:
[],mostRelevantProps:l,kindAndScopeClauses:rt,sortClause:u,searchOptions:0,sfgaoFil
ter:n,enabled:function(n){return!
n.queryToFetch&&t.supportsShortcuts("IFF",n)}},];f.EBH=[{selectFields:et,filterFiel
dsSets:
[wi],mostRelevantProps:ot,kindAndScopeClauses:gt,sortClause:st,searchOptions:7,sfga
oFilter:null,enabled:function(n){return!!n.queryToFetch}},
{selectFields:et,filterFieldsSets:
[bi],mostRelevantProps:ot,kindAndScopeClauses:gt,sortClause:st,searchOptions:0,sfga
oFilter:null,enabled:function(n){return!
n.queryToFetch}},];f.MDOC=[{selectFields:r(a,!0),filterFieldsSets:
[ht.concat(nr)],mostRelevantProps:y,kindAndScopeClauses:h,sortClause:u,searchOption
s:3,sfgaoFilter:n,enabled:function(n){return
n.queryToFetch&&t.config.minLengthForContentMatch&&n.queryToFetch.length>=t.config.
minLengthForContentMatch}},{selectFields:r(a,!0),filterFieldsSets:
[ht],mostRelevantProps:y,kindAndScopeClauses:h,sortClause:u,searchOptions:3,sfgaoFi
lter:n,enabled:function(n){return n.queryToFetch&&(!
t.config.minLengthForContentMatch||
n.queryToFetch.length<t.config.minLengthForContentMatch)}},{selectFields:r(a,!
0),filterFieldsSets:
[],mostRelevantProps:y,kindAndScopeClauses:h,sortClause:u,searchOptions:0,sfgaoFilt
er:n,enabled:function(n){return!n.queryToFetch}},];f.MFOL=[{selectFields:r(tr,!
0),filterFieldsSets:
[rr],mostRelevantProps:ir,kindAndScopeClauses:ii,sortClause:u,searchOptions:3,sfgao
Filter:n}];f.MPHO=[{selectFields:r(p,!0),filterFieldsSets:
[ur],mostRelevantProps:ct,kindAndScopeClauses:kt,sortClause:u,searchOptions:3,sfgao
Filter:n,enabled:function(n){return!!n.queryToFetch}},{selectFields:r(p,!
0),filterFieldsSets:
[],mostRelevantProps:ct,kindAndScopeClauses:kt,sortClause:u,searchOptions:0,sfgaoFi
lter:n,enabled:function(n){return!n.queryToFetch}},];f.MVID=[{selectFields:r(w,!
0),filterFieldsSets:
[fr],mostRelevantProps:lt,kindAndScopeClauses:dt,sortClause:u,searchOptions:3,sfgao
Filter:n,enabled:function(n){return!!n.queryToFetch}},{selectFields:r(w,!
0),filterFieldsSets:
[],mostRelevantProps:lt,kindAndScopeClauses:dt,sortClause:u,searchOptions:0,sfgaoFi
lter:n,enabled:function(n){return!n.queryToFetch}},];f.MMUS=[{selectFields:r(at,!
0),filterFieldsSets:
[er],mostRelevantProps:vt,kindAndScopeClauses:bt,sortClause:u,searchOptions:3,sfgao
Filter:n,enabled:function(n){return!!n.queryToFetch}},{selectFields:r(at,!
0),filterFieldsSets:[],mostRelevant
Props:vt,kindAndScopeClauses:bt,sortClause:u,searchOptions:0,sfgaoFilter:n,enabled:
function(n){return!n.queryToFetch}},];f.IBA=[{selectFields:r(ki,!
0),filterFieldsSets:
[gi],mostRelevantProps:di,kindAndScopeClauses:ni,sortClause:u,searchOptions:3,sfgao
Filter:n}];f.MFF=[{selectFields:r(c,!1),filterFieldsSets:
[or],mostRelevantProps:null,kindAndScopeClauses:null,sortClause:null,searchOptions:
0,sfgaoFilter:null}]}function cr(n,t,i,r){return
dr(n.queryToFetch).then(function(u){return ar(n,u,t,i,r)})}function lr(n,t,i){var
r=v(t,n);return"SELECT TOP "+i.length+" "+bt(r.selectFields)+" FROM SystemIndex
WHERE "+wr(r,i)}function ar(n,t,i,r,u){var
e=s.deviceSearch.getLCIDStringForText(n.queryToFetch),f=n.taskFrame?
uu(u,n.taskFrame.parsed,e):v(u,n);return"SELECT TOP "+r+" "+bt(f.selectFields)+"
FROM SystemIndex WHERE "+br(f,n.queryToFetch,t,i,f.searchOptions,e)+" ORDER BY
"+f.sortClause}function vr(n){var
t={displayName:n.displayName,id:n.id,kind:n.kind,getProperty:function(t){return
n.getProperty(t)},propertyHits:n.propertyHits,rankScore:n.rankScore,url:n.getProper
ty("System.Link.TargetUrl"),title:n.getProperty("System.Title"),visitCount:n.getPro
perty("System.History.VisitCount"),dateVisited:n.getProperty("System.Link.DateVisit
ed")};return t.originalDeviceItem=n,t}function yr(n){var
f,i,r,t,u;if(n.kind=="link"||
n.kind=="program")for(f=n.getProperty("System.Kind"),i=0,r=f;i<r.length;i++)
{if(t=r[i],t=="program")return pr(n,t);if(t!="link")return
u={displayName:n.displayName,id:n.id,kind:t,getProperty:function(t){return
n.getProperty(t)},propertyHits:n.propertyHits,rankScore:n.rankScore,getImageAsync:f
unction(t){return
n.getImageAsync(t)},imageType:n.imageType,canHaveContextMenu:n.canHaveContextMenu,g
etVerbsAsync:function(){return
n.getVerbsAsync()},extension:n.extension,itemTypeDisplayName:n.itemTypeDisplayName,
createdDate:n.createdDate,lastModifiedDate:n.lastModifiedDate},u.originalDeviceItem
=n,u}return n}function pr(n,i){var r=n.displayName,u,f;return
r.toLocaleLowerCase().endsWith(".lnk")&&(r=r.substr(0,r.length-
4)),u=t.indexerFilePathToRegularPath(n.id),f={displayName:r,id:u,kind:i,getProperty
:function(t){return
n.getProperty(t)},propertyHits:n.propertyHits,rankScore:n.rankScore,getImageAsync:f
unction(t){return
n.getImageAsync(t)},imageType:n.imageType,canHaveContextMenu:n.canHaveContextMenu,g
etVerbsAsync:function(){return
n.getVerbsAsync()},extension:n.extension,itemTypeDisplayName:n.itemTypeDisplayName,
createdDate:n.createdDate,lastModifiedDate:n.lastModifiedDate,filePath:u,lastAccess
ed:n.getProperty("System.DateAccessed"),version:null,isImmersive:!
1,logoBackgroundColor:null,launchArguments:null,totalLaunches:null,isTrustedApp:!
1,packageFamilyName:null,jumpList:null,getJumpListAsync:null,voiceCommandExamples:n
ull,rawIndexResponse:null},f.originalDeviceItem=n,f}function bt(n){return
n.map(function(n){return
n=="System.ParsingPath"?"path":'"'+n+'"'}).join(",")}function wr(n,t)
{return"("+gr(n,t)+")"}function br(n,t,i,r,u,f){var e="",o;return
n.mostRelevantProps.length>0&&(e+="WITH ("+n.mostRelevantProps.join(", ")+") AS
#MRProps "),o=nu(n,t,i,u,f),o&&(e+="("+o+") AND "),r&&(e+="(Scope = '"+r+"') AND
"),e+n.kindAndScopeClauses}function kr(n,t){return
s.deviceSearch.tokenize(n,t)}function dr(n){return
s.getLinguisticDataAsync(n)}function kt(t,i){var
r="",u=t.filterFieldsSets.length>1;return t.filterFieldsSets.forEach(function(t)
{var s,f,h,l,e,o,c,a;for(u&&(r?r+=") AND (":r="("),s=!0,f=0,h=t;f<h.length;f++)
{for(l=h[f],e=!1,o=0,c=i;o<c.length;o++)a=c[o],s?(r+="(",s=!1):r+=e?" OR ":" OR
(",r+=n.formatString(l,[a]),e=!0;e&&(r+=")")}}),u&&(r+=")"),r}function gr(n,t){var
i=t.map(function(n){return tt(n)});return kt(n,i)}function nu(n,t,i,r,u){var
o=[t],e,f;return i.alternatives&&i.alternatives.forEach(function(n){return
o.push(n)}),e=o.map(function(n){return tt(n)}),f=kt(n,e),
(r&2)==2&&(f=tu(r,i,e,f,u)),f}function tu(i,r,u,f,e){for(var
d,l,a,w,o,h,y,b,g,nt=iu(i),c=!1,p=0,k=nt;p<k.length;p++){for(d=k[p],l=!
1,a=0,w=u;a<w.length;a++){var
tt=w[a],v=[],s=kr(tt,r.language);if(c&&t.config.indexerQueryMWLimit){if((i&4)==0||
s.length<=t.config.indexerQueryMWLimit)for(o=0;o<Math.min(s.length,t.config.indexer
QueryMWLimit);++o)v.push(s[o])}else if((i&4)==0||
s.length<=rt)for(o=0;o<Math.min(s.length,rt);++o)v.push(s[o]);if(v.length>1)
{for(h="",y=0,b=v;y<b.length;y++)g=b[y],h&&(h+=" AND "),h+='"'+g+(c?'*"':'"');f?
f+=l?" OR ":" OR (":f="(";f+=n.formatString(d,[h,e]);l=!0}}l&&(f+=")");c=!c}return
f}function iu(n){var i=[];return i.push("CONTAINS(#MRProps, '{0}', {1}) RANK BY
COERCION(ABSOLUTE, 600)"),t.config.indexerQueryMWMinScore?
(n&1)==1&&i.push("CONTAINS(#MRProps, '{0}', {1}) RANK BY COERCION(ABSOLUTE, 50)"):
(n&1)==1&&i.push("CONTAINS(#MRProps, '{0}', {1}) RANK BY COERCION(ABSOLUTE,
550)"),i}function dt(n,t){return n=n.replace(/'/g,"''"),n=n.replace(/"/g,"
"),t>=2&&(n=n.replace(/%/g,"[%]"),n=n.replace(/_/g,"[_]"),n=n.replace(/\
[/g,"[[]"),t==3?(n=n.replace(/\*/g,"%"),n=n.replace(/\?/g,"_")):
(n=n.replace(/\*/g," "),n=n.replace(/\?/g," "))),n}function e(n){return
dt(n,1)}function tt(n){return dt(n,2)}function ru(n){var t=h[n];if(t)return t;throw
new Error("select fields for NL Data source was not found: "+n);}function o(n,t,i)
{for(var u=[],r=3;r<arguments.length;r++)u[r-3]=arguments[r];typeof i=="string"?
(i=tt(i),t.push(u.map(function(t){return"CONTAINS("+t+",'\""+i+"*\"',"+n+") RANK BY
COERCION(ABSOLUTE, 1000)"}))):i&&i.Value&&o.apply(void 0,
[n,t,i.Value].concat(u))}function uu(n,t,i){var f=[],e='"System.Kind" != ANY
ARRAY['+g+"]",h,r;if(t.FileType&&t.FileType.Value){h=t.FileType.Value;switch(h)
{case"Document":break;case"Picture":e="\"System.Kind\" = SOME
ARRAY['Picture']";break;case"Video":e='"System.Kind" = SOME
ARRAY['+k.map(function(n){return"'"+n+"'"}).join(", ")
+"]";break;case"Powerpoint":case"Word":case"Excel":e="CONTAINS(System.ItemType,'\""
+gt[h]+"*\"',"+i+') RANK BY COERCION(ABSOLUTE, 1000) AND "System.Kind" != ANY
ARRAY['+g+"]";break;default:e='"System.Kind" != ANY
ARRAY['+g+"]";o(i,f,h,"System.ItemType","System.ItemTypeText")}}return
o(i,f,t.Title,"System.ItemNameDisplay","System.Title"),o(i,f,t.Body,"System.ItemNam
eDisplay","System.Title","System.FileDescription","System.Keywords","System.Search.
Contents"),t.People&&t.People.forEach(function(n){var t=n.Value;t&&o(i,f,t=="me"?
s.deviceSearch.userName:t,"System.Author","System.FileOwner","System.Document.LastA
uthor","System.Photo.TagViewAggregate")}),o(i,f,t.Place,"System.Photo.TagViewAggreg
ate"),r=fu(t.Time),r&&f.push(["System.DateCreated>='"+r[0]+"' AND
System.DateCreated<'"+r[1]+"'","System.DateModified>='"+r[0]+"' AND
System.DateModified<'"+r[1]+"'","System.DateAccessed>='"+r[0]+"' AND
System.DateAccessed<'"+r[1]+"'","System.DateArchived>='"+r[0]+"' AND
System.DateArchived<'"+r[1]+"'","System.DateAcquired>='"+r[0]+"' AND
System.DateAcquired<'"+r[1]+"'",]),
{selectFields:ru(n),filterFieldsSets:f,kindAndScopeClauses:e?e+" AND
"+b:b,mostRelevantProps:[],searchOptions:0,sortClause:u,sfgaoFilter:yt}}function
fu(t){var i,f,u,e,r;return t?(i=t.value,!i)?null:(f=i.indexOf("T"),f!=-
1&&(i=i.substr(0,f)),u=i.split("-"),u.length<2||u.length>3)?null:(e=new Date(i),!
n.isValidDate(e))?null:(r=new Date(i),u.length==3?r.setUTCDate(r.getUTCDate()
+1):r.setUTCMonth(r.getUTCMonth()+1),[ni(e),ni(r)]):null}function ni(n){var
t=n.toISOString();return t.substr(0,t.indexOf("T"))}function ti(n,i,r){var
u,h,c,f,o,s,l,a,v;r||(u="NOT System.Shell.SFGAOFlagsStrings = SOME ARRAY['hidden']
AND NOT System.Shell.SFGAOFlagsStrings = SOME ARRAY['system'] AND NOT
System.Shell.SFGAOFlagsStrings = SOME ARRAY['link']");r?h=function(n){return!
(n&hi)&&!(n&si)&&(!!(n&&ci)||n&&ai&&!!(n&&it)||n&&li&&!!(n&&it))}:(u+=" AND
(System.Shell.SFGAOFlagsStrings = SOME ARRAY['stream']",u+=" OR
(System.Shell.SFGAOFlagsStrings = SOME ARRAY['fileanc'] AND
System.Shell.SFGAOFlagsStrings = SOME ARRAY['folder'])",u+=" OR
(System.Shell.SFGAOFlagsStrings = SOME ARRAY['storageanc'] AND
System.Shell.SFGAOFlagsStrings = SOME ARRAY['folder'])",u+=")");r?
u="System.Shell.OmitFromView != 'true'":u+=" AND System.Shell.OmitFromView !=
'true'";c=e(t.getKnownFolderPathLC(t.FOLDERID_Profile));switch(n){case
0:f=e(t.getKnownFolderPathLC(ui));u+=" AND (Scope = 'file://' OR Scope = 'csc://
{"+i+"}') AND (Scope <> 'file:"+c+"\\AppData') AND (Scope <>
'file:"+f+"\\Default\\AppData') AND (Scope <>
'file:"+f+"\\Administrator\\AppData')";o=e(t.getKnownFolderPathLC(ii));s=e(t.getKno
wnFolderPathLC(ri));u+=" AND (Scope <> 'file:"+o+"')";s!=o&&(u+=" AND (Scope <>
'file:"+s+"')");l=e(t.getKnownFolderPathLC(fi));u+=" AND (Scope <>
'file:"+l+"')";a=e(t.getKnownFolderPathLC(ei));u+=" AND (Scope <>
'file:"+a+"')";r&&(v=e(t.getKnownFolderPathLC(oi)),u+=" AND (Scope <>
'file:"+v+"')");break;case 1:u+=" AND (Scope = 'file://' OR Scope = 'csc://
{"+i+"}')";break;default:throw new Error("Unknown SearchScope:
"+n);}return[u,h]}var
s=SearchAppWrapper.CortanaApp.queryFormulationView,ii="{905e63b6-c1bf-494e-b29c-
65b732d3d21a}",ri="{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}",ui="{0762D272-C50A-4BB0-
A382-697DCD729B80}",fi="{A4115719-D62E-491D-AA7C-E74B8BE3B067}",ei="{0482af6c-08f1-
4c34-8c90-e17ec98b1e17}",oi="{bfb9d5e0-c6a9-404c-b2b2-
ae6db6af4968}",si=4096,hi=524288,ci=4194304,it=536870912,li=8388608,ai=268435456,rt
=3,u='"System.Search.Rank" DESC, "System.DateModified" DESC,
"System.ItemNameDisplay"
ASC',vi=["System.Kind","System.Search.Rank","System.ParsingPath","System.DateCreate
d","System.DateModified","System.Search.QueryPropertyHits","System.ItemNameDisplay"
,"System.FileExtension","System.ItemType",],yi=["System.Link.TargetParsingPath","Sy
stem.SFGAOFlags",],c=["System.Title","System.Music.AlbumTitle","System.Music.Displa
yArtist"],l=["System.ItemNameDisplay","System.Music.DisplayArtist","System.Music.Al
bumTitle",],ut=["System.ItemNameDisplay = '{0}' RANK BY COERCION(ABSOLUTE,
990)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
960)","System.Title = '{0}' RANK
BY COERCION(ABSOLUTE, 890)","CONTAINS(System.Title, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE, 860)","System.Music.DisplayArtist = '{0}' RANK BY
COERCION(ABSOLUTE, 790)","CONTAINS(System.Music.DisplayArtist, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE, 760)","System.Music.AlbumTitle = '{0}' RANK BY
COERCION(ABSOLUTE, 690)","CONTAINS(System.Music.AlbumTitle, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE,
660)",],ft=c.concat("System.DateAccessed"),pi=ut.concat(["CONTAINS(System.Link.Targ
etParsingPath, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
920)"]),et=["System.ItemNameDisplay","System.Search.QueryPropertyHits","System.Kind
","System.Search.Rank","System.Link.TargetUrl","System.Title","System.History.Visit
Count","System.Link.DateVisited","System.DateCreated","System.DateModified",],ot=["
System.Link.TargetUrl","System.Title",],wi=["(System.Link.TargetUrl LIKE 'http%'
AND CONTAINS(System.Title, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
1000))","(System.Link.TargetUrl LIKE 'http%' AND CONTAINS(System.Link.TargetUrl,
'\"{0}*\"') RANK BY COERCION(ABSOLUTE, 995))",],bi=["(System.Link.TargetUrl LIKE
'http%' RANK BY COERCION(ABSOLUTE, 995))",],st='"System.History.VisitCount" DESC,
"System.Link.DateVisited" DESC, "System.Title"
ASC',ki=["System.DateAccessed",],di=["System.ItemNameDisplay",],gi=["System.ItemNam
eDisplay = '{0}' RANK BY COERCION(ABSOLUTE, 999)","CONTAINS(System.ItemNameDisplay,
'\"{0}*\"') RANK BY COERCION(ABSOLUTE,
895)","CONTAINS(System.Link.TargetParsingPath, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE,
795)",],a=["System.Search.AutoSummary","System.Keywords","System.Title","System.Aut
hor","System.Document.LastAuthor",],y=["System.ItemNameDisplay","System.Keywords","
System.Title",],ht=["System.ItemNameDisplay = '{0}' RANK BY COERCION(ABSOLUTE,
999)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
895)","System.Title = '{0}' RANK BY COERCION(ABSOLUTE,
980)","CONTAINS(System.Title, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
875)","System.Keywords = '{0}' RANK BY COERCION(ABSOLUTE,
960)","CONTAINS(System.Keywords, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
855)",],nr="CONTAINS(System.Search.Contents, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
545)",tr=[],ir=["System.ItemNameDisplay",],rr=["System.ItemNameDisplay = '{0}' RANK
BY COERCION(ABSOLUTE, 999)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE,
895)",],p=["System.Photo.TagViewAggregate","System.Title",],ct=["System.ItemNameDis
play","System.Photo.TagViewAggregate",],ur=["System.ItemNameDisplay = '{0}' RANK BY
COERCION(ABSOLUTE, 999)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE, 895)","System.Title = '{0}' RANK BY COERCION(ABSOLUTE,
980)","CONTAINS(System.Title, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
875)","System.Photo.TagViewAggregate = '{0}' RANK BY COERCION(ABSOLUTE,
940)","CONTAINS(System.Photo.TagViewAggregate, '\"{0}*\"') RANK BY
COERCION(ABSOLUTE,
835)",],w=["System.Title","System.Keywords","System.Music.DisplayArtist","System.Mu
sic.Genre",],lt=["System.ItemNameDisplay","System.Title","System.Keywords",],fr=["S
ystem.ItemNameDisplay = '{0}' RANK BY COERCION(ABSOLUTE,
999)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
895)","System.Title = '{0}' RANK BY COERCION(ABSOLUTE,
980)","CONTAINS(System.Title, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
875)","System.Music.DisplayArtist = '{0}' RANK BY COERCION(ABSOLUTE,
960)","CONTAINS(System.Music.DisplayArtist, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
855)","System.Music.Genre = '{0}' RANK BY COERCION(ABSOLUTE,
950)","CONTAINS(System.Music.Genre, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
845)","System.Keywords = '{0}' RANK BY COERCION(ABSOLUTE,
940)","CONTAINS(System.Keywords, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
835)",],at=["System.Title","System.Music.DisplayArtist","System.Music.AlbumTitle","
System.Music.Genre",],vt=["System.ItemNameDisplay","System.Title","System.Music.Alb
umTitle",],er=["System.ItemNameDisplay = '{0}' RANK BY COERCION(ABSOLUTE,
999)","CONTAINS(System.ItemNameDisplay, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
895)","System.Title = '{0}' RANK BY COERCION(ABSOLUTE,
980)","CONTAINS(System.Title, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
875)","System.Music.AlbumTitle = '{0}' RANK BY COERCION(ABSOLUTE,
970)","CONTAINS(System.Music.AlbumTitle, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
865)","System.Music.DisplayArtist = '{0}' RANK BY COERCION(ABSOLUTE,
960)","CONTAINS(System.Music.DisplayArtist, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
855)","System.Music.Genre = '{0}' RANK BY COERCION(ABSOLUTE,
950)","CONTAINS(System.Music.Genre, '\"{0}*\"') RANK BY COERCION(ABSOLUTE,
845)",],or=["path =
'{0}'"],f,h,gt;i.getStrategy=v;i.dataSourceSupported=sr;i.suppress=hr;var
b,yt,k=["Movie","RecordedTV","Video"],pt=k.concat(["Picture","Music"]),wt=["calenda
r","game","web
history","feed","contact","task","journal","note","instantmessage"],d=wt.concat("pr
ogram"),g=pt.concat(d).concat(["folder","link"]).map(function(n)
{return"'"+n+"'"}).join(",");i.initStrategies=nt;i.generateIndexerQueryAsync=cr;i.g
enerateIndexerQueryForMRUFilesAndFolders=lr;i.toBrowsingHistoryItem=vr;i.fixKind=yr
;h={};h.MPHO=r(p,!1);h.MVID=r(w,!1);h.MDOC=r(a,!1);gt=function(){var n={};return
n.Powerpoint="ppt",n.Word="doc",n.Excel="xls",n}()})(i=t.IndexerQueryGenerator||
(t.IndexerQueryGenerator={}))})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function l(n,i,r,u,f,e,o){var s=u?
r+" "+i:r;return t.Promise.safeChainWithGlobalCaching("getIcon",function(i){return
n.getImageAsync(t.getImageSizeValue(i))},function(n){return n+"_"+i},function(n)
{return t.toIcon(n,"getIcon",e,o,s)},e,f?function(){return
n.imageType===0}:null,s)}function r(n,i,r,u,f,e)
{return{deviceItem:n,getIcon:l(n,n.id,r,r&&!
t.localDataSourceMayContainPII(r),t.displayedInGridLayout(i),u,f),icon:e?
u:null,suggestionType:i}}function o(n,t,i)
{return{deviceItem:n,icon:i,suggestionType:t}}function lt(n){return
n.map(function(n){return{isSimulated:!
0,displayName:n,id:null,kind:null,getProperty:null,propertyHits:null,rankScore:null
}})}function at(){var r=n.getCurrentTime();return
i.deviceSearch.getAllAppsAsync().then(function(n){var i=[],f,e,u;for(f in
n)i.push(n[f]);return
t.config.hideTopAppsOlderThanDays&&(e=t.config.hideTopAppsOlderThanDays*864e5,i=i.f
ilter(function(n){return r-
+n.lastAccessed<e})),u=[],t.config.numberOfTopRecentApps&&(i.sort(function(n,t)
{return+t.lastAccessed-
+n.lastAccessed}),u=i.splice(0,t.config.numberOfTopRecentApps)),i.sort(function(n,t
){return t.totalLaunches-n.totalLaunches}),u.concat(i)})}function u(t,i,r)
{switch(t){case"program":return"IBA";case"picture":return
i&&n.contains(a,i.toLowerCase())?"FL":"LI";case"video":return
i&&n.contains(v,i.toLowerCase())?"FL":"LV";case"movie":case"recordedtv":return"LV";
case"music":return"MU";case"folder":return"FD";default:return r}}function
h(i,r,u,f,e,o,s,h,c,l){var v=l&&s&&c?i.filter(function(t){return
n.contains(Object.keys(it),t)}):[],a;v.length>0&&(i=i.filter(function(t){return!
n.contains(v,t)}));a=function(n){for(var i,f,t=0,u=v;t<u.length;t+
+)i=u[t],f=it[i],n[i]={deviceItem:
{id:i,displayName:l.getLocString(f.locStringKey),kind:null,getProperty:function()
{return null},propertyHits:
[],rankScore:1e3},icon:f.icon};r(n)};n.safeExecute(function(){var
r,n,c,l,v;if(i.length==0)a({});else{if(r={},n=i.slice(0),h)for(c=i.length-1;c>=0;--
c)l=i[c],h.hasOwnProperty(l)&&(r[l]=h[l],n.splice(c,1));n.length==0?a(r):(v=!s||
t.localDataSourceMayContainPII(s)?s:s+" "+n,t.Promise.safeChain(u,function(){return
f(n)},function(u){var o=t.Map.map(n,u,function(n){return
e(n)}),f;if(h&&n.forEach(function(n){return h[n]=o[n]}),n.length!=i.length)for(f in
r)r.hasOwnProperty(f)&&(o[f]=r[f]);a(o)},function(){return
a({})},o,v))}},"resolveIdsWithCache",null,s,function(){return a({})})}function
wt(n,t){if(!t.launchArguments||pt.test(n.query))return!0;var
i=t.id.toLowerCase();return rt.some(function(n){return i.includes(n)})?!0:!
1}function ut(n,i,r,u,f){if(!f)return!1;var
o=n.displayName.toLocaleLowerCase(),e=i.queryToFetch.toLocaleLowerCase(),s=null;if(
f.Parses&&f.Parses.length>0&&f.Parses[0].SubParses&&f.Parses[0].SubParses.length>1&
&f.Parses[0].SubParses[0].Interpretation&&f.Parses[0].SubParses[0].Interpretation==
="regex"&&e.length>=f.Parses[0].SubParses[0].QueryEnd&&f.Query!=null)
{if(e.length===f.Parses[0].SubParses[0].QueryEnd)return!
0;e=e.substr(f.Parses[0].SubParses[0].QueryEnd+1);f.Query=f.Query.substr(f.Parses[0
].SubParses[0].QueryEnd+1)}return
e.length<t.config.filterCICandidatesPrefixLength&&!
ft(e,o)&&(s=t.matchesOnPropertyHH(o,e),!s)?!0:gt(o,e,n,r,u,f)?!0:!1}function
gt(n,i,r,u,f,e){var o,s;return!i||!e||!e.MatchScore||!e.Parses||
e.Parses.length==0||!e.Parses[0].Entities||e.Parses[0].Entities.length==0||!
e.Query?!1:n.startsWith(i)&&i.length>=t.config.filterCICandidatesPrefixLength?!1:
(o=e.Query,o.startsWith(i))?!1:(s=n.startsWith(o),!s)?!
0:f.Counter>=t.config.maxCISpellCorrectionCandidates?!0:(f.Counter++,!1)}function
ft(n,t){var r,i;if(!!t&&t.length==0||(r=t.split(" "),n.length!=r.length))return!
1;for(i=0;i<r.length;i++)if(r[i].length==0||r[i][0]!=n[i])return!1;return!
0}function et(n){var i=n.id.toLowerCase(),t;if(i.startsWith("http:")||
i.startsWith("https:")||n.kind=="link"&&i.endsWith(".url"))return
1;if(i.startsWith("file:")||n.kind=="document")return
0;if(t=n.filePath,t&&(t=t.toLowerCase(),t!=i)){if(t.startsWith("http:")||
t.startsWith("https:")||n.kind=="link"&&t.endsWith(".url"))return
1;if(t.startsWith("file:"))return 0}return 2}function ot(n,t)
{if(t.dataSource=="PP"){var
i=et(n);if(i==1)return"LURL";if(i==0)return"LDOC"}return
t.getSuggestionType(n)}function st(t){return t&&t.rawIndexResponse?
n.safeExecute(function(){return
JSON.parse(t.rawIndexResponse)},"parseConstraintIndexMetaData"):undefined}function
ht(i,r,u,f,e,o){var
g,v,h,b,y,k,d,l,s,p,a,c;if(t.IndexerQueryGenerator&&t.IndexerQueryGenerator.suppres
s(r,i,f))return!0;if(t.isMobileCache)return!
1;if(u=="PP")return(g=r.id,n.contains(bt,g))?!0:(v=r,ut(v,i,!0,e,o))?!0:
(h=r.kind,h&&(h=h.to
LocaleLowerCase(),h!="program"&&h!="unknown"))?!0:f=="LRA"&&et(v)!=2?!0:
(b=v.extension,b&&b.toLowerCase()==".chm")?!0:!1;if(u!
="LURL"&&r.kind=="link"&&t.RuntimeConfig.QfMode!=5)return!
0;if(t.isSetting(u))return ut(r,i,!1,e,o)?!0:!
1;if(u=="EBH")return(y=r,k=y.url,n.olderThan2Weeks(y.dateVisited)||
n.isBingSearchUrl(k))?!0:i.queryToFetch?i.isMultiWord?!1:n.getProtocol(i.fixedUrl||
i.queryToFetch)==0&&n.contains(y.propertyHits,"System.Title")?!1:
(d={},n.computeUrlMatchLengths(d,k,i.queryToFetch),!d.domainMatchLength):!
1;if(t.isItemWithFileMetadata(u)){if((l=r,!
t.IndexerQueryGenerator&&f=="MDOC"&&l.propertyHits.length==1&&l.propertyHits[0]=="S
ystem.Search.Contents"&&(!t.config.minLengthForContentMatch||
i.queryToFetch.length<t.config.minLengthForContentMatch))||
(s=l.id,s&&(t.RuntimeConfig.QfMode!=5&&(s.includes("\\.")||s.includes("/."))||
(s=s.toLowerCase(),i.queryToFetch.toLocaleLowerCase()!
=r.displayName.toLocaleLowerCase()&&dt.some(function(n){return
s.includes("\\"+n+"\\")||s.includes("/"+n+"/")}))))||
(p=l.extension,p&&t.RuntimeConfig.QfMode!=5&&!
i.queryToFetch.toLowerCase().includes(p.toLowerCase())&&n.contains(kt,p.toLowerCase
())))return!0;if(u=="CG"){if(a=r,c=a.displayName.split(" ")
[0].toLowerCase(),c.includes("\\")||c.indexOf(":")==1)return!1;var
w=a.id.toLowerCase(),nt=w.lastIndexOf("."),tt=w.lastIndexOf("\\"),it=a.kind=="folde
r"||nt<0||nt<tt;if(it&&!c.includes("%")||![".exe",".com"].some(function(n){return
c.includes(n)})&&(vt.some(function(n){return w.includes(n)})||!
a.launchArguments&&rt.some(function(n){return w.includes(n)})||
n.contains(yt,c)))return!0}return!1}return!1}var
s=SearchAppWrapper.CortanaApp,i=SearchAppWrapper.CortanaApp.queryFormulationView,c=
":wux:",a,v,ct,f;t.getIcon=l;a=[".dwg",".ai",".psd"];v=[".ts"];t.getSuggestionTypeF
romKindAndExtension=u;var y={getResultsContainer:function(n){return
n.apps},dataSource:"PP",getSuggestionType:function()
{return"PP"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cust
omCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Apps].icon,n.isImmersive?
n.logoBackgroundColor:undefined)},supportsEmptyQuery:!
0},p={getResultsContainer:function(n){return
n.settings},dataSource:"ST",getSuggestionType:function()
{return"ST"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cust
omCreateLocalResponseSuggestion:function(n,i,u){if(t.isModernSetting(n)){var
f=n.glyph,e=f?{content:f,type:1}:t.ScopeConfig[t.Scope.Settings].icon;return
o(n,i,e)}return r(n,i,u,t.ScopeConfig[t.Scope.Settings].icon)},supportsEmptyQuery:!
1},w=[y,p,{getResultsContainer:function(n){return
n.media},dataSource:"LM",getSuggestionType:function(n){return
u(n.kind,n.extension,"FL")},maxUpTo3chars:7,maxAfter3chars:10,maxAfter8charsOrInL2Z
eroInput:20,supportsEmptyQuery:!0},{getResultsContainer:function(n){return
n.files},dataSource:"FL",getSuggestionType:function(n){return
u(n.kind,n.extension,"FL")},maxUpTo3chars:7,maxAfter3chars:10,maxAfter8charsOrInL2Z
eroInput:20,supportsEmptyQuery:!0},{getResultsContainer:function(n){return
n.powerBi},dataSource:"PBI",getSuggestionType:function()
{return"PBI"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cus
tomCreateLocalResponseSuggestion:function(n,t){return o(n,t,
{content:"&#xEA1E",type:2})},supportsEmptyQuery:!1},
{getResultsContainer:function(n){return
n.browsingHistory},dataSource:"EBH",getSuggestionType:function()
{return"EBH"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cus
tomCreateLocalResponseSuggestion:function(n,t){return
o(n,t,null)},supportsEmptyQuery:!0},{getResultsContainer:function(){throw
Error("Only supported via
IndexerQuery");},dataSource:"IBA",getSuggestionType:function()
{return"IBA"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cus
tomCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Apps].icon)},supportsEmptyQuery:!1},
{getResultsContainer:function(){throw Error("Only supported via
IndexerQuery");},dataSource:"IFF",getSuggestionType:function(n){return
u(n.kind,n.extension,"FL")},maxUpTo3chars:7,maxAfter3chars:15,maxAfter8charsOrInL2Z
eroInput:25,supportsEmptyQuery:!0},],b=[{getResultsContainer:function(n){return
n.files},dataSource:"MDOC",getSuggestionType:function(n){return
u(n.kind,n.extension,"FL")},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2Ze
roInput:15,customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Documents].icon,null,!0)},supportsEmptyQuery:!1},
{getResultsContainer:function(n){return
n.folders},dataSource:"MFOL",getSuggestionType:function(n){return
u(n.kind,n.extension,"FD")},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2Ze
roInput:15,customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Folders].icon,null,!0)},supportsEmptyQuery:!1},
{getResultsContainer:function(n){return
n.pictures},dataSource:"MPHO",getSuggestionType:function(n){return
u(n.kind,n.extension,"LI")},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2Ze
roInput:15,customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Photos].icon,null,!0)},supportsEmptyQuery:!1},
{getResultsContainer:function(n){return
n.video},dataSource:"MVID",getSuggestionType:function(n){return
u(n.kind,n.extension,"LV")},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2Ze
roInput:15,customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Videos].icon,null,!0)},supportsEmptyQuery:!1},
{getResultsContainer:function(n){return
n.music},dataSource:"MMUS",getSuggestionType:function()
{return"MU"},maxUpTo3chars:4,maxAfter3chars:7,maxAfter8charsOrInL2ZeroInput:15,cust
omCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Music].icon,null,!0)},supportsEmptyQuery:!
1},],k=[{getResultsContainer:function(n){return
i.startPathCompletionQuery(n.originalQuery,"")},dataSource:"PT",getSuggestionType:f
unction()
{return"PT"},maxUpTo3chars:15,maxAfter3chars:15,maxAfter8charsOrInL2ZeroInput:15,cu
stomCancellation:function(){return
i.cancelLastPathCompletionQuery()},supportsEmptyQuery:!1},
{getResultsContainer:function(){return
i.deviceSearch.getRecentAppsAsync()},getResults:function(n){return
n},dataSource:"LRA",getSuggestionType:function()
{return"PP"},customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Apps].icon,n.isImmersive?
n.logoBackgroundColor:undefined)},supportsEmptyQuery:!0},
{getResultsContainer:function(n){return
ThresholdUtilities.createPromise(function(t){var
i=s.fileExplorerSuggestionPage.recentSearches,r,u;n.queryToFetch&&(r=n.queryToFetch
.split(" ").map(function(n){return new RegExp("^"+n+"|
"+n)}),i=i.filter(function(n){return r.every(function(t){return
t.test(n)})}));u=lt(i);t(u)})},getResults:function(n){return
n},dataSource:"FEH",getSuggestionType:function()
{return"FEH"},customCreateLocalResponseSuggestion:function(n,t){return o(n,t,
{type:2,content:"&#xE81C"})},supportsEmptyQuery:!0},{getResultsContainer:function()
{return i.deviceSearch.getAllAppsAsync()},getResults:function(n){return
n},dataSource:"SM",getSuggestionType:function()
{return"SM"},customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Apps].icon,n.logoBackgroundColor)},supportsEmptyQuery
:!0},{getResultsContainer:function(){return at()},getResults:function(n,t){return
n.then(function(n){return t?
n.slice(0,t):n})},dataSource:"TOPP",getSuggestionType:function()
{return"TOPL"},customGetMax:function(){return
5},customCreateLocalResponseSuggestion:function(n,i,u){return
r(n,i,u,t.ScopeConfig[t.Scope.Apps].icon,t.config.backplateAllIconsInZI||
n.isImmersive?n.logoBackgroundColor:undefined)},supportsEmptyQuery:!
0},],d=[{getResultsContainer:function(n){return
i.startCommandLineQuery(n.originalQuery,"")},dataSource:"CG",getSuggestionType:func
tion(){return"CG"},customCancellation:function(){return
i.cancelLastCommandLineQuery()},supportsEmptyQuery:!
1},];t.LocalDataProviderDataSources=w.concat(b).concat(k).concat(d).map(function(n)
{return n.dataSource});var e={suggestions:[],maxedOut:!
1},g={},nt={},tt={},it={"shell:RecycleBinFolder":{icon:
{content:"&#xEF87",type:2},locStringKey:"RecycleBin"}};var
vt=["\\system32\\user.exe","\\system32\\sidebar.exe","\\system32\\at.exe","\\system
32\\change.exe","\\system32\\control.exe","\\system32\\find.exe","\\system32\\net.e
xe","\\system32\\share.exe","\\system32\\rundll32.exe","\\system32\\append.exe","\\
system32\\choice.exe","\\system32\\clip.exe","\\system32\\comp.exe","\\system32\\co
mpact.exe","\\system32\\consent.exe","\\system32\\convert.exe","\\system32\\format.
exe","\\system32\\graphics.com","\\system32\\label.exe","\\system32\\mem.exe","\\sy
stem32\\mode.com","\\system32\\more.com","\\system32\\recover.exe","\\system32\\rep
lace.exe","\\system32\\reset.exe","\\system32\\shadow.exe","\\system32\\sort.exe","
\\system32\\tree.com","\\system32\\webcam.exe","\\system32\\systemsettings.exe","\\
system32\\command.com","\\system32\\tabtip.exe","\\system32\\services.exe","\\syste
m32\\help.exe","\\system32\\where.exe","\\system32\\skydrive.exe","\\system32\\calc
.exe","\\system32\\fc.exe","\\accessories\\wordpad.exe",],rt=["\\system32\\finger.e
xe","\\system32\\ping.exe","\\system32\\print.exe","\\system32\\shutdown.exe","\\sy
stem32\\expand.exe","\\system32\\tskill.exe","\\system32\\reg.exe","\\system32\\sc.
exe",],yt=["uninstall","outlook","excel","skype","nero","onenote","lync","vmware","
firefox","itunes","photoshop","print","opera","visio","thunderbird","smartscreen"],
pt=/[\/\.\-\\]/;t.isRealCommand=wt;var bt=["Microsoft.Cortana_8wekyb3d8bbwe!
CortanaUI","Microsoft.Windows.Cortana_cw5n1h2txyewy!
CortanaUI",],kt=[".dll",".pdb",".obj",".bin",".etl",".bak",".config",".resx",".mani
fest",".ini",".searchconnector-ms",".settingcontent-ms",".vstx",".vssx",".ms-one-
stub",],dt=["visio
content","bin","debug","obj","objd","amd64","x86","microsoftedgebackups",];t.isInit
ials=ft;t.getSuggestionTypeOverride=ot;t.parseConstraintInde
xMetaData=st;t.isSuppressed=ht;ct=function(){function o(n,t)
{this._previousKeystrokeCache=n;this._host=t;t.bindAppHidden(function()
{g={};nt={};tt={}})}return o.prototype.getName=function()
{return"LocalDataProvider"},o.prototype.fetch=function(r,u,e,o,h){var
ut=this,l,a,ft,y,et,c,p,g,ot,nt,ct,lt,tt,st,it,at,vt,rt,ht,v;if(o&&o.register(funct
ion(){return t.Promise.clearPendingItemsFromCache()},!
1,"clearPendingItemsFromCache"),l=[],a=w.filter(function(t){return
n.isDataSourceEnabled(t.dataSource,r)}),t.IndexerQueryGenerator&&(l=l.concat(a.filt
er(function(n){return
t.IndexerQueryGenerator.dataSourceSupported(n.dataSource)})),a=a.filter(function(n)
{return!t.IndexerQueryGenerator.dataSourceSupported(n.dataSource)})),a.length>0)
{if(!r.queryToFetch&&!a.every(function(n){return n.supportsEmptyQuery}))throw new
Error(f);if(o&&o.register(function(){return i.cancelLastDeviceQuery()},!
1,"cancelLastDeviceQuery"),ft=n.safeExecute(function(){return
i.startDeviceQuery(r.queryToFetch)},"startDeviceQuery",null,r.queryToFetch),ft)for(
y=0,et=a;y<et.length;y+
+)v=et[y],this.searchFolderWithMultipleResults(r,v,ft,u,h,o);else
this.emptyFetch(a,u)}if(c=b.filter(function(t){return
n.isDataSourceEnabled(t.dataSource,r)}),t.IndexerQueryGenerator&&(l=l.concat(c.filt
er(function(n){return
t.IndexerQueryGenerator.dataSourceSupported(n.dataSource)})),c=c.filter(function(n)
{return!t.IndexerQueryGenerator.dataSourceSupported(n.dataSource)})),c.length>0)
{if(!r.queryToFetch&&!c.every(function(n){return n.supportsEmptyQuery}))throw new
Error(f);p=r.taskFrame?
r.taskFrame.raw:"";t.Promise.safeChain("executeSearchAsync",function(){return
s.searchResultsView.executeSearchAsync(r.queryToFetch,p)},function(n){var
t,i,f;if(h())if(n)for(t=0,i=c;t<i.length;t+
+)f=i[t],ut.searchFolderWithMultipleResults(r,f,n,u,h,o);else
ut.emptyFetch(c,u)},function(){return ut.emptyFetch(c,u)},null,p?
r.queryToFetch+"\n"+p:r.queryToFetch)}if(l.length>0){if(!r.queryToFetch&&!
l.every(function(n){return n.supportsEmptyQuery}))throw new
Error(f);for(g=0,ot=l;g<ot.length;g+
+)v=ot[g],this.searchFolderWithMultipleResults(r,v,null,u,h,o)}if(nt=k.filter(funct
ion(t){return n.isDataSourceEnabled(t.dataSource,r)}),nt.length>0){if(!
r.queryToFetch&&!nt.every(function(n){return n.supportsEmptyQuery}))throw new
Error(f);for(ct=function(n){o&&n.customCancellation&&o.register(function(){return
n.customCancellation()},!0,n.dataSource+"
cancellation");lt.searchFolderWithMultipleResults(r,n,r,u,h,o)},lt=this,tt=0,st=nt;
tt<st.length;tt++)v=st[tt],ct(v)}if(it=d.filter(function(t){return
n.isDataSourceEnabled(t.dataSource,r)}),it.length>0){if(!r.queryToFetch&&!
it.every(function(n){return n.supportsEmptyQuery}))throw new
Error(f);for(at=function(n){o&&n.customCancellation&&o.register(function(){return
n.customCancellation()},!0,n.dataSource+"
cancellation");vt.searchFolderWithSingleResult(r,n,r,u,h)},vt=this,rt=0,ht=it;rt<ht
.length;rt++)v=ht[rt],at(v)}r.taskFrame&&n.safeExecute(function(){return
s.searchResultsView.setTaskFrame(r.originalQuery,"")},"reset task
frame")},o.prototype.emptyFetch=function(n,t){for(var u,i=0,r=n;i<r.length;i+
+)u=r[i],this.logProviderFailure(u.dataSource),t(u.dataSource,e,o.getDataSourceStat
e(0))},o.prototype.getMax=function(n,i){return i.customGetMax?
i.customGetMax(n):n.scope!=t.Scope.All?n.queryToFetch?
i.maxAfter8charsOrInL2ZeroInput*2:i.maxAfter8charsOrInL2ZeroInput:n.queryToFetch.le
ngth>8?i.maxAfter8charsOrInL2ZeroInput:n.queryToFetch.length>3?
i.maxAfter3chars:i.maxUpTo3chars},o.prototype.toLocalResponse=function(n,i,u,f,e)
{var y,p,a,w,o,v;e&&(p=f,p.getGroupDisplayName&&(y=p.getGroupDisplayName(e)));var
k={Counter:0},b=[],d=u.length<n;for(a=0,w=u;a<w.length;a++){var
h=w[a],l=ot(h,f),s=t.isApp(l)||t.isSetting(l)?
st(h):undefined;ht(i,h,l,f.dataSource,k,s)||(o=void
0,o=f.customCreateLocalResponseSuggestion?
f.customCreateLocalResponseSuggestion(h,l,f.dataSource):r(h,l,f.dataSource),y&&(o.g
roupDisplayName=y),s&&(o.ciMetaData=s,s.Query&&s.Query.includes(c)&&(v=s.Query.spli
t(c),v.length==2&&(o.uxHint=v[1],o.ciMetaData.Query=v[0]))),b.push(o))}return{sugge
stions:b,maxedOut:d}},o.prototype.getResults=function(n,t,i,r)
{if(r.getResults)return r.getResults(i,t);var
u=i,f=this.enableSpellCorrection(n);return u.getItemsAsyncWithSpeller?
u.getItemsAsyncWithSpeller(0,t,f):i.getItemsAsync(0,t)},o.prototype.enableSpellCorr
ection=function(n){return
n.queryToFetch.length>=t.config.enableCISpellerAtPrefixLength&&this._previousKeystr
okeCache&&this._previousKeystrokeCache.enableCISpeller(n.queryToFetch)?!
0:n.queryToFetch.length>=t.config.enableCISpellerAtPrefixLength&&t.config.enableCIS
peller==1?!0:!1},o.prototype.searchFolderWithMultipleResults=function(r,u,f,s,h,c)
{var y=this,l=u.dataSource,p=this.getMax(r,u),a=!
f,w,v,b;if(a)t.RuntimeConfig.QfMode==5&&(b=this._host.getFileExplorerCurrentPath())
,w=function(){return
t.IndexerQueryGenerator.generateIndexerQueryAsync(r,b,p,l).then(function(n){return
i.deviceSearch.queryWindowsSearchIndexerAsync(n)})};else{if(v=n.safeExecute(functio
n(){return u.getResultsContainer(f)},"getResultsContainer "+l),!v)
{s(l,e,null);return}w=function(){return
y.getResults(r,p,v,u)}}t.Promise.safeChain(a?"queryWindowsSearchIndexerAsync":"getI
temsAsync",w,function(n){var i,f,e;h()&&(i=n.resultSet,f=void 0,i?
f=n.state:i=typeof n.length=="undefined"?Object.keys(n).map(function(t){return
n[t]}):n,a&&(l=="EBH"?i=i.map(function(n){return
t.IndexerQueryGenerator.toBrowsingHistoryItem(n)}):t.supportsShortcuts(l,r)&&(i=i.m
ap(function(n){return
t.IndexerQueryGenerator.fixKind(n)}))),e=o.getDataSourceState(f),s(l,y.toLocalRespo
nse(p,r,i,u,v),e))},function(t){n.isCancellation(t)||
y.logProviderFailure(l);s(l,e,null)},a?c:null,l+"
"+r.queryToFetch)},o.prototype.searchFolderWithSingleResult=function(i,r,u,f,o){var
h=this,s=r.dataSource,c=n.safeExecute(function(){return
r.getResultsContainer(u)},"getResultsContainer "+s);c?
t.Promise.safeChain("tryGetResultAsync "+s,function(){return
c.tryGetResultAsync()},function(n){o()&&f(s,h.toLocalResponse(1,i,n?[n]:
[],r,null),null)},function(t){n.isCancellation(t)||
h.logProviderFailure(s);f(s,e,null)},null,i.queryToFetch):f(s,e,null)},o.prototype.
logProviderFailure=function(r){var
u=t.providerFailureLogName(r);u&&i.logProviderFailure&&n.safeExecute(function()
{return
i.logProviderFailure(u,"ErrorForTopHit")},"logProviderFailure")},o.getDataSourceSta
te=function(n){switch(n){case 0:return"UN";case 1:return"NI";case
2:return"PI"}return undefined},o.getApps=function(n,r,u,f,e)
{h(n,r,"findAppsAsync",function(n){return
i.deviceSearch.findAppsAsync(n)},function(n){return
y.customCreateLocalResponseSuggestion(n,null,f)},u,f,t.config.cacheAppItems?
g:null,!0,e)},o.getSettings=function(n,r,u,f,e)
{h(n,r,"findSettingsAsync",function(n){return
i.deviceSearch.findSettingsAsync(n)},function(n){return
p.customCreateLocalResponseSuggestion(n,null,f)},u,f,t.config.cacheSettingItems&&!
e?nt:null)},o.getFiles=function(n,f,e,o,s){h(n,f,"findFilesAsync",function(n)
{if(t.IndexerQueryGenerator){var
r=t.IndexerQueryGenerator.generateIndexerQueryForMRUFilesAndFolders(e,"MFF",n);retu
rn i.deviceSearch.queryWindowsSearchIndexerAsync(r).then(function(n){for(var
i,r={},t=0,u=n.resultSet;t<u.length;t++)i=u[t],r[i.id]=i;return r})}return
i.deviceSearch.findFilesAsync(n)},function(n){return
r(n,u(n.kind,n.extension,"FL"),s)},o,s,tt)},o.launchIndexingOptions=function(n,i)
{var r=this;o.getSettings([t.IndexingOptionsSettingId],function(u){var
f=u[t.IndexingOptionsSettingId];f?n.launchDeviceItem(f.deviceItem,"ST"):i||
r.launchIndexingOptions(n,!0)},null,null,!0)},o}();t.LocalDataProvider=ct;f="Local
provider doesn't support empty query"})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function a(n){return
n.isScopeElement}var
u="showScopesL2",i="block",f="none",r,o="UpsellDismissed",s="filtersButton",h="more
Button",e="feedbackButton",c="optionsButton",l="rewardsBadgeButton",v=function()
{function v(n,u,a,v,y,p,w){var b=this,k;
(this._host=n,this._page=u,this._msRewardsViewModel=a,this._menuFactory=v,this._ins
tHelper=y,this._sequenceNumberReader=p,this._advancedOptionsBottom=[],this._advance
dOptionsTop=[],this._filtersButton={id:s,selected:!
1,text:null},this._moreButton={id:h,selected:!
1,text:null},this._feedbackButton={id:e,selected:!
1,text:null},this._optionsButton={id:c,selected:!
1,text:null},this._rewardsBadgeButton={id:l,selected:!
1,text:null},this._topHitPresent=!1,this._resultsPresent=!
1,this._currentScopeTileIndex=-1,this._moreMenuOpened=!1,this._optionsMenuOpened=!
1,this._l2MenuOpened=!
1,this._advancedOptionsIdCounter=0,this._onL2TransitionEndHandlers=[],this._upsellG
otDismissed=w.getItem(o)=="1",r=SearchAppWrapper.CortanaApp,this._rootElement=_ge("
root"),this._topHitHeaderElement=_ge("topHitHeader"),this._scopesHeaderElement=_ge(
"scopesHeader"),this._searchScopesL2Element=_ge("searchScopesL2"),this._suggestions
List=_ge("suggestionsList"),t.config.scopesOrderBegin.length!
=0)&&(n.bindAppHidden(function()
{b._scopeTiles=null;b._effectiveScopeOrder=null}),n.bindDismissed(function()
{b._advancedOptionsBottom=[];b._advancedOptionsTop=[];b.hideL2(!
1);b._currentScopeTileIndex=-1}),t.config.searchBoxFocusEvents?
(n.bindSearchBoxLostFocus(function(){b.isScopesL2Visible()&&b.select(null,!
1)}),n.bindSearchBoxGotFocus(function()
{b.isScopesL2Visible()&&b.select(b._selectedL2Item?
b._selectedL2Item:b.getTopItemForSelection(),!1)})):
(k=r.searchBox,k.addEventListener("keydown",function(n)
{b.isScopesL2Visible()&&n.keyCode==9&&b.getSelectedItem()&&b.select(null,!
1)}),sj_be(_w,"keydown",function(n)
{b.isScopesL2Visible()&&n.keyCode==9&&b.getSelectedItem()&&b.select(null,!
1)}),sj_be(_w,"focus",function(){b.isScopesL2Visible()&&!
b.getSelectedItem()&&b.select(b._selectedL2Item?
b._selectedL2Item:b.getTopItemForSelection(),!
1)})),n.bindQueryChangedOrInitialized(function(n){b.isScopesL2Visible()&&(!
b._currentQuery||b._currentQuery.originalQuery!=n.originalQuery)&&b.hideL2(!
0);b._currentScopeTileIndex=-
1}),this._rootElement.addEventListener("transitionend",function(n){(b.isSco
pesL2Visible()&&b._searchScopesL2Element.style.display==f&&(b._searchScopesL2Elemen
t.style.display=i),n.target==b._searchScopesL2Element)&&b.finalizeL2Transition()}),
n.bindButtonRightOfSearchBoxClick(function(i){i==""||i==""||
t.RuntimeConfig.QfMode==2?(n.reformulate(""),b.setFocusInSearchBox("clear search
box"),y.logClientInstEvent("Select","ClearSearchBox",null)):i==""&&(b.isScopesL2V
isible()?
b.closeScopesL2("ButtonRightOfSearchBox"):b.navigateScopesL2("ButtonRightOfSearchBo
x"))}),n.bindScopeListRequiresUpdate(function()
{b.init();b._currentQuery&&b.renderScopes(!0)}),n.bindOnFeedbackClosing(function(n)
{!n&&t.RuntimeConfig.AlwaysWide&&_ge(e).focus()}),n.bindKeyEscape(function(n)
{b.isScopesL2Visible()&&(b.closeScopesL2("bindKeyEscape"),n.handled=!
0)}),this._substrateUpsellDismiss={action:function(){b._upsellGotDismissed=!
0;w.setItem(o,"1");b.isScopesL2Visible()?
b.navigateScopesL2("DismissUpsell"):n.refreshCurrentPane()},icon:
{content:"&#xE711",type:2}},a&&a.bindRewardsBadgeUpdated(function()
{b._currentQuery&&b.renderScopes(!0)}))}return
v.prototype.bindOnL2TransitionEnd=function(n)
{this._onL2TransitionEndHandlers.push(n)},v.prototype.getTopItemForSelection=functi
on(){return this._advancedOptionsTop.length>0?
this._advancedOptionsTop[0]:this._scopeTilesL2[0]},v.prototype.finalizeL2Transition
=function(){var
n=this.isScopesL2Visible();this._searchScopesL2Element.style.display=n?
i:f;this._topHitHeaderElement.style.display=n?
f:i;this._suggestionsList.style.display=n?f:i;n||
(this._advancedOptionsTop=[],this._advancedOptionsBottom=[],this.select(null,!
1));this._onL2TransitionEndHandlers.forEach(function(n){return
n()})},v.prototype.focusNextScopeTile=function(n,t){var r=this.isScopesL2Visible()?
this._searchScopesL2Element:this._scopesHeaderElement,i=[].slice.call(r.getElements
ByClassName("scopeTile"));this._currentScopeTileIndex=i.indexOf(n);t?
this._currentScopeTileIndex!=i.length-1&&+
+this._currentScopeTileIndex:this._currentScopeTileIndex>0&&--
this._currentScopeTileIndex;this._menuFactory.dismiss();i[this._currentScopeTileInd
ex].focus()},v.prototype.render=function(n,i,r,u,f){if(this._currentQuery=n,n){var
e=t.getEffectiveScope(n);this.innerRender(n.scope,e,n,i,r,u,f)}else
this.cleanUp()},v.prototype.getScopeToolTip=function(n,i){var
u=t.ScopeConfig[n],f=t.getScopeDisplayName(u,this._host),r;return r=i&&!
this._allScopeButtonPresent?"RemovingScopeNarratorText2":n==t.Scope.All?"AddingScop
eNarratorTextAll2":"AddingScopeNarratorText",this._host.getLocString(r,f.toLocaleLo
werCase())},v.prototype.getScopeDescription=function(n){var
t=this.getSources(n);return t?t.join(this._host.getLocString("Comma")+"
"):null},v.prototype.getSources=function(i){var r,u,f;switch(i){case
t.Scope.All:return
r=[this._host.getLocString("MostRelevantOnThisPC")],n.isBingEnabled()&&r.push(t.get
ScopeDisplayName(t.ScopeConfig[t.Scope.Web],this._host)),u=t.getAccountTypeForCloud
Content(),u!=3&&u!
=0&&t.isCloudSearchEnabledCache&&t.substrateProvidersEnabled()&&r.push(this._host.g
etLocString("CloudServices")),r;case t.Scope.Apps:return n.isBingEnabled()?
[this._host.getLocString("Installed"),this._host.getLocString("StoreGroup")]:
[this._host.getLocString("Installed")];case t.Scope.Emails:case
t.Scope.People:return[this._host.getLocString(t.getAccountTypeForCloudContent()==2?
"Personal":"WorkOrSchool")];case
t.Scope.Settings:return[this._host.getLocString("SystemSettingsAnnotation"),this._h
ost.getLocString("ControlPanelAnnotation")];case t.Scope.Web:return
n.isBingEnabled()?
(r=[t.getWebSuggestionsGroupHeader(this._host),t.getWebsitesGroupHeader(this._host)
,this._host.getLocString("Answers")],t.getAccountTypeForCloudContent()==1&&t.isClou
dSearchEnabledCache&&t.bingAtWorkProviderEnabled()&&r.push(this._host.getLocString(
"Bookmarks"))):r=[],t.edgeBrowsingHistoryAvailable()&&r.push(this._host.getLocStrin
g("EdgeHistoryGroup")),r;default:return t.isFileOrFolderScope(i)?
(r=[t.getGroupSourceDisplayName(1,this._host)],t.isCloudSearchEnabledCache&&(n.isBi
ngEnabled()&&(t.substrateProvidersEnabled()?
t.getAccountTypeForCloudContent()==2&&r.push(t.getGroupSourceDisplayName(2,this._ho
st)):(f=t.isCortanaPersonalized?t.cortanaAccountType:t.windowsAccountType,f!
=1&&r.push(t.getGroupSourceDisplayName(2,this._host)))),i==t.Scope.Documents&&t.get
AccountTypeForCloudContent()==1&&t.substrateProvidersEnabled()&&r.push(t.getGroupSo
urceDisplayName(3,this._host),t.getGroupSourceDisplayName(4,this._host))),r):null}}
,v.prototype.selectScope=function(n){var
i,r,t;for(this._selectedScope&&(this._selectedScope.tooltip=this.getScopeToolTip(th
is._selectedScope.type,!1),this._selectedScope.enabled=!
1,this._selectedScope=null),i=0,r=this._scopeTiles;i<r.length;i+
+)if(t=r[i],t.enabled=t.type==n,t.enabled){t.tooltip=this.getScopeToolTip(n,!
0);this._selectedScope=t;break}},v.prototype.innerRender=function(n,i,r,u,f,e,o)
{var
s,h,c;if(this._topHitPresent=u,this._resultsPresent=f,t.RuntimeConfig.QfMode==3)if(
f)s=this.getAdvancedOptions(this._sequenceNumberReader.getSequenceNumber(),3)
[0],h=s&&s.click,this._page.renderTabShellFooter(2,h);else if(c=r&&!
r.queryToFetch&&!e,c){var s=!
this._upsellGotDismissed&&this.getAdvancedOptions(this._sequenceNumberReader.getSeq
uenceNumber(),3)
[0],h=s&&s.click,l=s&&this._substrateUpsellDismiss.action;this._page.renderTabShell
Footer(1,h,l)}else this._page.renderTabShellFooter(0);else
this.renderTopHitHeader(n,i,r,f,e,o),t.RuntimeConfig.ScopesAvailable&&(this._scopeT
iles||this.init(),this._scopeTiles&&(!this._selectedScope||
this._selectedScope.type!=n)&&this.selectScope(n),this.renderScopes(!
0))},v.prototype.renderTopHitHeader=function(n,i,r,u,f,e){var
o=t.ScopeConfig[i],a=r.showProgressBar?e:!f,v=!r||!
r.queryToFetch,y=this.getEmptyResultsMessage(u,a,v,i,o),h=y[0],c=y[1],l=a||v||u||!
this._lastRenderedTopHitHeader||t.uses3lineTemplate(i)?
this.getHeaderText(i,o):this._lastRenderedTopHitHeader.headerText,s=t.RuntimeConfig
.ScopesAvailable&&o.showUpsellOnSuggestionsList&&o.showUpsellOnSuggestionsList()?
this.getAdvancedOptions(this._sequenceNumberReader.getSequenceNumber(),0):[],p;
(t.RuntimeConfig.AlwaysWide&&(s=s.concat(this.getAdvancedOptions(this._sequenceNumb
erReader.getSequenceNumber(),4))),this._lastRenderedTopHitHeader&&this._lastRendere
dTopHitHeader.scope==n&&this._lastRenderedTopHitHeader.message==h&&this._lastRender
edTopHitHeader.subMessage==c&&this._lastRenderedTopHitHeader.headerText==l&&this._l
astRenderedTopHitHeader.advancedOptions==s)||
(this._lastRenderedTopHitHeader={scope:n,headerText:l,message:h,subMessage:c,advanc
edOptions:s},p={headerText:l,message:h,subMessage:c,messageIcon:h?
o.icon:null,advancedOptions:s},this._page.updateTopHitHeaderView(p))},v.prototype.r
enderScopes=function(n){var
t=this,u,i,r;n&&(i=this.getScopeBarElements(),r=this.getHiddenScopeElements(i)||
[],u={scopes:i,filterButtonClickHandler:function(){return t._l2MenuOpened?
null:t.navigateScopesL2("ScopesMore")},filterOpened:this._l2MenuOpened,showFeedback
:function(){return
t.showFeedback()},rewardsBadgeDataModel:this._msRewardsViewModel&&this._msRewardsVi
ewModel.getDataModel(),moreMenuDataModel:r.length>0?
{opened:this._moreMenuOpened,buttonClickHandler:function(){return
t._moreMenuOpened?
t.closeMoreMenuDropDown():t.openMoreMenuDropDown(r)}}:null,optionsMenuDataModel:
{opened:this._optionsMenuOpened,buttonClickHandler:function(){return
t._optionsMenuOpened?
t.closeOptionsMenuDropDown():t.openOptionsMenuDropDown()}}});this._page.updateScope
sHeaderView(u)},v.prototype.openMoreMenuDropDown=function(n){var
t=this;this._menuFactory.showDropdownMenu(n,document.getElementById(this._moreButto
n.id),1,function(){sb_st(function(){return
t.closeMoreMenuDropDown()},0)});this._moreMenuOpened=!0;this.renderScopes(!
0)},v.prototype.closeMoreMenuDropDown=function(){this._moreMenuOpened=!
1;this.renderScopes(!0)},v.prototype.openOptionsMenuDropDown=function(){var
n=this,t=this.getAdvancedOptions(this._sequenceNumberReader.getSequenceNumber(),4);
this._menuFactory.showDropdownMenu(t,document.getElementById(this._optionsButton.id
),2,function(){sb_st(function(){return
n.closeOptionsMenuDropDown()},0)});this._optionsMenuOpened=!0;this.renderScopes(!
0)},v.prototype.closeOptionsMenuDropDown=function(){this._optionsMenuOpened=!
1;this._l2MenuOpened=!1;this.renderScopes(!0)},v.prototype.cleanUp=function()
{t.RuntimeConfig.QfMode==3?this._page.renderTabShellFooter(0):
(this._lastRenderedTopHitHeader=null,this._page.updateTopHitHeaderView(null),this._
page.updateScopesHeaderView(null))},v.prototype.scopeNamesElements=function(n){var
i=this;return n.map(function(n){return i._scopeTiles.find(function(i){return
t.Scope[i.type]==n})}).filter(function(n){return!!
n})},v.prototype.getEffectiveScopeOrder=function(){var i,r,u,n,f;return!
this._scopeTiles||this._scopeTiles.length==0?[]:this._effectiveScopeOrder?
this._effectiveScopeOrder.slice(0):(t.RuntimeConfig.AlwaysWide?
(i=t.config.scopesOrderBeginAlwaysWide,r=t.config.scopesOrderLastAlwaysWide,u=t.con
fig.numberOfScopesToRenderAlwaysWide):
(i=t.config.scopesOrderBegin,r=t.config.scopesOrderLast,u=t.config.numberOfScopesTo
Render),n=[],i&&(f=r?this.scopeNamesElements(r):
[],n=this.scopeNamesElements(i),n=n.slice(0,u-
f.length),n.push.apply(n,f)),this._effectiveScopeOrder=n,n.slice(0))},v.prototype.g
etHiddenScopeElements=function(n){return this._scopeTilesL2?
this._scopeTilesL2.filter(function(t){return n.find(function(n){return
n.type==t.type})==undefined}):[]},v.prototype.getScopeBarElements=function(){var
r=this,n,t,i;return this._scopeTiles?
(n=this.getEffectiveScopeOrder(),t=n.some(function(n){return n.enabled}),!
t&&this._selectedScope&&(i=this._scopeTiles.find(function(n){return
n.type==r._selectedScope.type}),n.push(i),t=!0),n):
[]},v.prototype.navigateScopesL2=function(n){var
f=this,i,r,u;this._page.ensureWebViewHeightExpanded();t.config.dropdownInSinglePane
?
(u=this.getAdvancedOptions(this._sequenceNumberReader.getSequenceNumber(),5),this._
menuFactory.showDropdownMenu(u,document.getElementById(this._filtersButton.id),2,fu
nction(){sb_st(function(){return
f.closeOptionsMenuDropDown()},0)}),this._l2MenuOpened=!0,this.renderScopes(!0)):
(i=this._sequenceNumberReader.getSequenceNumber(),this._advancedOptionsBottom=this.
getAdvancedOptions(i,1),this._advancedOptionsTop=this.getAdvancedOptions(i,2),this.
select(this._selectedScope?this._selectedScope:this.getTopItemForSelection(),!
1),this.showL2(),this._host.setFocusInWebView(n),r={Source:n},this._instHelper.logC
lientInstEvent("Select","ScopesL2Opened",null,r))},v.prototype.showFeedback=functio
n(){if(this._page.ensureWebViewHeightExpanded(),typeof WindowsFeedbackForm!
="undefined"){var
n=t.RuntimeConfig.QfMode==2?"feedbackContainer":"";WindowsFeedbackForm.Show(n)}},v.
prototype.closeScopesL2=function(n){this.hideL2(!
0);this._host.setFocusInSearchBox(null,n);var
t={Source:n};this._instHelper.logClientInstEvent("Unselect","ScopesL2Closed",null,t
)},v.prototype.showL2=function(){var
t=this;this._topHitHeaderElement.style.display=i;this._searchScopesL2Element.style.
display=i;n.safeSetTimeout(function(){return
t._rootElement.classList.add(u)},0,"showL2");this._host.updateQueryWithoutRefetchin
g(null)},v.prototype.hideL2=function(t){var
r=this;this._topHitHeaderElement.style.display=i;this._searchScopesL2Element.style.
display=i;this._suggestionsList.style.display=i;t?n.safeSetTimeout(function()
{return r._rootElement.classList.remove(u)},0,"hideL2"):
(this._rootElement.classList.remove(u),this.finalizeL2Transition())},v.prototype.ge
tHeaderText=function(n,i){var r,u;if(t.RuntimeConfig.FlatListWithoutGroups||
t.config.hideBestMatchTag)return null;if(r=t.getScopeDisplayName(i,this._host),r)
{if(this._topHitPresent)return n==t.Scope.All?
(u=t.config.quickMatchLabel?"QuickMatch":"BestMatch",this._host.getLocString(u)):
(u=t.config.quickMatchLabel?"QuickMatchFor":"BestMatchFor",this._host.getLocString(
u,r.toLocaleLowerCase()));if(this._resultsPresent)return null;if(n!
=t.Scope.All)return r}return
this._host.getLocString("BestMatch")},v.prototype.getEmptyResultsMessage=function(n
,i,r,u,f){return t.RuntimeConfig.QfMode==5||n||!i&&!r||u!
=t.Scope.Documents&&f.showUpsellOnSuggestionsList&&f.showUpsellOnSuggestionsList()?
["",""]:r?f.getEmptyZIMessages(this._host):
[this._host.getLocString("NoResults",this._currentQuery.queryToFetch),""]},v.protot
ype.init=function(){var
u,f,i,r;t.initScopePrefixes(this._host);this._scopeTiles=[];this._scopeTilesL2=[];u
=t.RuntimeConfig.AlwaysWide?
t.config.scopesOrderBeginAlwaysWide:t.config.scopesOrderBegin;this._allScopeButtonP
resent=n.contains(u,"All");for(f in t.ScopeConfig)
(i=parseInt(f),r=t.ScopeConfig[i],(r.prefixes||
r.prefixesLocString)&&t.isScopeEnabled(i,r))&&((i!=t.Scope.All||
this._allScopeButtonPresent)&&this._scopeTiles.push(this.createScopeElement(i,r,!
1)),this._scopeTilesL2.push(this.createScopeElement(i,r,!
0)));this._scopeTilesL2.sort(function(n,i){return n.type==t.Scope.All?-
1:i.type==t.Scope.All?
1:n.text.localeCompare(i.text)});this._selectedScope&&this.selectScope(this._select
edScope.type);this._effectiveScopeOrder=null},v.prototype.createScopeElement=functi
on(n,i,r){var u=this;return{isScopeElement:!0,id:(r?"scope":"l1scope")
+n,type:n,enabled:!1,text:t.getScopeDisplayName(i,this._host),title:r?
this.getScopeDescription(n,i):null,icon:n==t.Scope.All?
{content:"&#xE8A9",type:1}:i.icon,click:function(){return
u.clickHandler(n,u.isScopesL2Visible()?"scopesL2":"scopeBar")},selected:!
1,tooltip:this.getScopeToolTip(n,!1),isSelectable:!
0}},v.prototype.clickHandler=function(n,i,r){var
h=t.getScopeDisplayName(t.ScopeConfig[n],this._host),e,u=this._currentQuery,f=u.sco
pe,o,s,c;if(this._scopeTiles.some(function(n){return n.type==f})||
(f=t.Scope.All),h&&f!=n)e=(n==t.Scope.All?"":h.toLocaleLowerCase()+": ")
+u.queryToFetch,this.innerRender(n,n,u,this._topHitPresent,this._resultsPresent,!
0,!1),o={query:this._currentQuery,topResults:[],groups:
[]},this._page.updateTopResultsView(o),this._page.updateGroupsView(o),this.hideL2(!
0);else{if(this.isScopesL2Visible()){this.select(this._selectedScope,!
1);this.closeScopesL2(i);return}if(f==t.Scope.All||this._allScopeButtonPresent)
{this._page.ensureWebViewHeightExpanded();this.setFocusInSearchBox("scope
clickHandler
noop");return}e=u.queryToFetch;n=t.Scope.All;this.innerRender(n,n,u,this._topHitPre
sent,this._resultsPresent,!0,!
1)}s=t.Scope[n];c={Scope:s,Source:i,GroupSource:r&&r.source?
r.source.toString():undefined};this._instHelper.logClientInstEvent("Select","ScopeC
hanged",null,c);f!
=n&&this._host.reformulate(e,undefined,undefined,r);this.setFocusInSearchBox("scope
clickHandler "+s)},v.prototype.setFocusInSearchBox=function(t)
{this._host.setFocusInSearchBox(null,t);var
i=n.getCurrentActiveElement();i&&i.blur()},v.prototype.isScopeElement=function(t)
{return t&&this._scopeTiles&&(this.isScopeButton(t.id)||
n.contains(this._scopeTiles,t))},v.prototype.isMenuElement=function(n){return
n&&this.isMenuButton(n.id)},v.prototype.isScopeButton=function(n){return
n==this._feedbackButton.id||n==this._rewardsBadgeButton.id||
this.isMenuButton(n)},v.prototype.isMenuButton=function(n){return
n==this._filtersButton.id||n==this._moreButton.id||
n==this._optionsButton.id},v.prototype.isScopesL2Visible=function(){return
this._rootElement.classList.contains(u)},v.prototype.getSelectableItems=function()
{var n=[];return
this._advancedOptionsTop.length>0&&(n=n.concat(this._advancedOptionsTop)),t.Runtime
Config.ScopesAvailable&&(n=n.concat(this.getScopeSelectableItems())),this._advanced
OptionsBottom.length>0&&(n=n.concat(this._advancedOptionsBottom)),n},v.prototype.ge
tSelectableItemsByGroup=function(){var
n=[],t=this.getScopeBarElements(),i,r,u;return
n.push(t.slice(0,1)),i=t.findIndex(function(n){return n.selected}),i>0?
n.push(t.slice(i,i+1)):(r=t.findIndex(function(n){return
n.enabled}),r>0&&n.push(t.slice(r,r+1))),u=[this._filtersButton,this._moreButton,th
is._rewardsBadgeButton,this._feedbackButton,this._optionsButton],u.forEach(function
(t){_ge(t.id)&&n.push([t])}),n},v.prototype.getScopeSelectableItems=function(){var
t,i,r;if(this.isScopesL2Visible())return
this._scopeTilesL2;if(t=this._currentScopeTileIndex,t<0&&this._selectedScope)return
[this._selectedScope];if(i=n.getCurrentActiveElement(),i)switch(i.id){case
s:return[this._filtersButton];case h:return[this._moreButton];case
e:return[this._feedbackButton];case c:return[this._optionsButton];case
l:return[this._rewardsBadgeButton]}return r=this.getScopeBarElements(),(t<0||
t>=r.length)&&(t=0),r.slice(t,t+1)},v.prototype.getSelectedItem=function(){return
this._selectedL2Item&&this._selectedL2Item.selected?
this._selectedL2Item:null},v.prototype.select=function(n,t){var
v=this,u,o,f,s,c,i,e,h,r,l;if(t){SharedLogHelper.LogError("selectScope",null,new
Error("Can't update search box value when selecting
scope"));return}if(this._selectedL2Item&&(this._selectedL2Item.selected=!
1,this._selectedL2Item=null),n){if(a(n))
{if(this._scopeTilesL2)for(u=0,o=this._scopeTilesL2;u<o.length;u+
+)f=o[u],s=f.type==n.type,f.selected=s,s&&(this._selectedL2Item=f)}else
for(c=n,i=[],this._advancedOptionsTop.length>0&&(i=i.concat(this._advancedOptionsTo
p)),this._advancedOptionsBottom.length>0&&(i=i.concat(this._advancedOptionsBottom))
,e=0,h=i;e<h.length;e++)r=h[e],r==c?(r.selected=!
0,this._selectedL2Item=r):r.selected=!
1;l={scopes:this._scopeTilesL2,cancelHandler:function(){return
v.closeScopesL2("ScopesL2")},advancedOptionsTop:this._advancedOptionsTop,advancedOp
tionsBottom:this._advancedOptionsBottom};this._page.updateSearchScopesL2View(l);thi
s._selectedL2Item&&this._selectedL2Item.selected&&this.scrollTo(this._selectedL2Ite
m)}},v.prototype.onAfterKeyDown=function(){return!
1},v.prototype.scrollTo=function(n){var
i=_ge(n.id),t,r;i&&(t=this._searchScopesL2Element.firstChild,r=this._advancedOption
sTop.length>0?n==this._advancedOptionsTop[0]:n==this._scopeTilesL2[0],r?
t.scrollTop=0:this._page.scrollToElement(i,t,t.offsetHeight))},v.prototype.getSubst
rateUpsellClickHandler=function(n){var i=this,r=function(){var
n=i.isScopesL2Visible();i._host.refreshCurrentPane();n&&i.navigateScopesL2("Substra
teUpsell");i._host.setFocusInSearchBox(null,"SubstrateUpsell")};return function()
{return
i._host.promptAutheticateDialog(n,t.getSubstrateResourceOrScope(n),r,r)}},v.prototy
pe.getSubstrateUpsell=function(n,i,r){var
o=null,u="VerifyAccountToSearch",s=0,h="CloudSearch",c=["Verify"],f=null,e;return
r==0?(h="",e=t.getEffectiveScope(this._currentQuery),e==t.Scope.People?
u+="Contacts":e==t.Scope.Emails?
u+="Emails":e==t.Scope.Documents&&(u+="Documents",s=1,o={content:"&#xE9BE",type:2,n
eedsAccentColor:!0},f=this._substrateUpsellDismiss)):r==2?
f=this._substrateUpsellDismiss:r==4&&(o={content:"&#xE9BE",type:2,needsAccentColor:
!
0},f=this._substrateUpsellDismiss,s=2,u=null,c=["VerifyAccountToSearch"]),this.crea
teAdvancedOption(n==1?"COFA":"COOA",i,h,u,c,this.getSubstrateUpsellClickHandler(n),
s,f,o)},v.prototype.getOneDriveUpsell=function(n){var i=this;return
this.createAdvancedOption("SDSC",n,"SignInToCortanaTitle","SeeResultsFromOneDrive",
["SignInToCortana"],function(){t.config.cortanaCapabilitiesAvailable?
i._host.launchCortanaSignIn():i._host.launchCortanaHome()},0)},v.prototype.getIndex
ingOption=function(n,i){var r=this,u;return i==4?
(u=t.config.controlPanelSearchSettings?function(){return
r._host.launchSearchSettings()}:function(){return
t.LocalDataProvider.launchIndexingOptions(r._host,!
1)},this.createAdvancedOption("OMIO",n,"",null,["OptionsMenuIndexing"],u,2,null,
{type:2,content:"&#xED52"})):this.createAdvancedOption("SDIO",n,"ChangeWhereWindows
Searches",null,["SelectLocations"],function(){return
t.LocalDataProvider.launchIndexingOptions(r._host,!
1)},0)},v.prototype.getAdvancedOptionCssClass=function(n){return
n==4?"menuInfo":n==5?"menuLabel":null},v.prototype.createContextMenuGroup=function(
n,t,i,r){var u=this.createAdvancedOption(n,t,null,i,null,null,5);return
u.groupItems=r,u},v.prototype.createAdvancedOption=function(i,r,u,f,e,o,s,h,c,l)
{var p=this,a,y,v;return
i&&(a=n.InstrumentedItem.getNonSuggestionInstrumentedItem(i,t.SyntheticQSCodesMaps.
KValues),this._instHelper.instrumentSyntheticInst
rumentedItem(r,i,a)),y="advancedOption"+this._advancedOptionsIdCounter+
+,l&&l.length==0&&(l=null),v={id:y,selected:!
1,title:this._host.getLocString(u),message:f?
this._host.getLocString(f):null,text:this._host.getLocString.apply(this._host,e),in
stItem:a,click:undefined,layout:s,dismiss:h,icon:c,cssClass:this.getAdvancedOptionC
ssClass(s),isSelectable:!!o||!!l,subItems:l,isExpanded:!l?undefined:!1},v.click=o?
function(n,t)
{a&&p._instHelper.instrumentItemClick(n,a,r,null,t);o(v)}:undefined,v},v.prototype.
getAccountOptions=function(n){var
u=this,f=this._host.getConnectedAccountInfo(0),e=this._host.getConnectedAccountInfo
(1),r=[],i;return(f||
e)&&(i=this.createAdvancedOption(null,n,null,"ConnectedAccounts",null,null,5),i.css
Class=this.getAdvancedOptionCssClass(5),i.isSelectable=!
1,r.push(i),f&&(i=this.createAdvancedOption(null,n,null,null,
["MicrosoftAccount"],null,4),i.message=f.accountUserName,i.cssClass=this.getAdvance
dOptionCssClass(4),r.push(i)),e&&(i=this.createAdvancedOption(null,n,null,null,
["AadAccount"],null,4),i.message=e.accountUserName,i.cssClass=this.getAdvancedOptio
nCssClass(4),r.push(i)),r.push(this.getMenuDividerOption()),i=this.createAdvancedOp
tion(null,n,null,null,["ManageAccounts"],function(){return
u._host.launchWindowsAccountSettings()},2),i.cssClass=this.getAdvancedOptionCssClas
s(2),i.icon={type:2,content:"&#xE716"},r.push(i)),!
f&&(t.isCloudSearchEnabledMsaCache||
t.isMsaAvailable)&&(i=this.createAdvancedOption(null,n,null,null,t.isCloudSearchEna
bledMsaCache?["AddMicrosoftAccount"]:
["EnableMsaSearch"],t.isCloudSearchEnabledMsaCache?function(){return
u._host.launchWindowsAccountSettings()}:function(){return
u._host.launchSearchPermissions()},2),i.cssClass=this.getAdvancedOptionCssClass(2),
i.icon={type:2,content:t.isCloudSearchEnabledMsaCache?"&#xE8FA":"&#xE9BE"},r.push(i
)),!e&&(t.isCloudSearchEnabledAadCache||
t.isAadAvailable)&&(i=this.createAdvancedOption(null,n,null,null,t.isCloudSearchEna
bledAadCache?["AddAadAccount"]:["EnableAadSearch"],t.isCloudSearchEnabledAadCache?
function(){return u._host.launchWindowsAccountSettings()}:function(){return
u._host.launchSearchPermissions()},2),i.cssClass=this.getAdvancedOptionCssClass(2),
i.icon={type:2,content:t.isCloudSearchEnabledMsaCache?"&#xE8FA":"&#xE9BE"},r.push(i
)),i=this.createAdvancedOption(null,n,null,null,["SearchSettings"],function()
{return t.config.controlPanelSearchSettings?
u._host.launchSearchPermissions():u._host.launchSearchSettings()},2),i.cssClass=thi
s.getAdvancedOptionCssClass(2),i.icon={type:2,content:"&#xE713"},r.push(i),r},v.pro
totype.getMenuDividerOption=function(){return{id:null,selected:!
1,title:"",message:null,isSeparator:!
0,text:"",instItem:null,click:null,layout:3,isSelectable:!
1}},v.prototype.addCortanaOptions=function(n,i){var
r=this,u;t.RuntimeConfig.QfMode==2&&(n.push(this.createAdvancedOption("OMCS",i,"",n
ull,["OptionsMenuSettings"],function(){return
r._host.launchWindowsCortanaSettings()},2,null,
{type:2,content:"&#xE713"})),u=t.cortanaAccountType==2||t.cortanaAccountType==1,u?
(n.push(this.createAdvancedOption("OMCN",i,"",null,
["OptionsMenuCortanaNotebook"],function(){return
r._host.launchCortanaNotebook()},2,null,
{type:2,content:"&#xEB7F"})),n.push(this.createAdvancedOption("OMCD",i,"",null,
["OptionsMenuCortanaDevices"],function(){return
r._host.launchCortanaDevices()},2,null,
{type:2,content:"&#xF191"})),n.push(this.createAdvancedOption("OMAC",i,"",null,
["OptionsMenuAddAccount"],function(){return
r._host.launchWindowsAccountSettings()},2,null,{type:2,content:"&#xE910"}))):
(n.push(this.getMenuDividerOption()),n.push(this.createAdvancedOption("OMSC",i,"",n
ull,["OptionsMenuSignIn"],function(){return r._host.launchCortanaSignIn()},2,null,
{type:3,needsAccentColor:!1}))))},v.prototype.addZiCustomization=function(n,i,r)
{var s=this,f,l,u,h,o,c,v,y;if(r===void 0&&(r=!
0),t.config.enableSearchHomeCustomization&&this._currentQuery.isSearchHomeZI&&this.
_currentQuery.scope==t.Scope.All){f={};for(l in
this._currentQuery.availableDataSources)if(u=this._currentQuery.availableDataSource
s[l],u&&u.suggestionGroupToggler){if(typeof u.groupType!="number")throw new
Error("missing groupType declaration for suggestionGroupToggler");f[u.groupType]||
(f[u.groupType]=u.suggestionGroupToggler)}if(h=this._currentQuery.staticGroupOrder?
this._currentQuery.staticGroupOrder.filter(function(n){return!!
f[n]}):Object.keys(f).map(function(n){return+n}),h.length!=0){var
a=[],p=function(n){var
r=f[n],u=r.isHidden(),o=e.createAdvancedOption(null,i,null,null,[],function()
{r.toggle(!
u);s._menuFactory.dismiss();s._host.refreshCurrentPane()},2,null,null,null),h=t.get
GroupTitleAndNarratorText(e._currentQuery,e._host,n,null,!
1).title;o.text=e._host.getLocString(u?"ShowSomething":"HideSomething",h);a.push(o)
},e=this;for(o=0,c=h;o<c.length;o+
+)v=c[o],p(v);y=this.createAdvancedOption(null,i,null,null,
["CustomizeSearchHome"],function(n){return s._menuFactory.showSubMenu(n)},2,null,
{type:2,content:"&#xE70F"},a);r&&n.push(this.getMenuDividerOption());n.push(y)}}},v
.prototype.addL2Dropdown=function(n,i){var
e=this,o=this.getScopeBarElements(),s=this.getHiddenScopeElements(o).filter(functio
n(n){return n.type!=t.Scope.All}).map(function(n){var t=n;return
t.layout=0,t}),u,f;n.push(this.createContextMenuGroup(null,i,"MoreScopesListToolTip
",s));n.push(this.getMenuDividerOption());u=[];t.config.enableMultiAccountSearch&&r
.authenticationManager.getAllSearchWebAccountsAsync&&(f=this.getAccountOptions(i),u
.push(this.createAdvancedOption(null,i,null,null,["ConnectedAccounts"],null,2,null,
{type:2,content:"&#xE716"},f)));u.push(this.getIndexingOption(i,4));this.addCortana
Options(u,i,4);this.addZiCustomization(u,i,!
1);n.push(this.createContextMenuGroup(null,i,"OptionsButtonToolTip",u));n.push(this
.getMenuDividerOption());n.push(this.createAdvancedOption(null,i,null,null,
["FeedbackButtonText"],function(){return e.showFeedback()},2,null,
{type:2,content:"&#xE8F2"},null))},v.prototype.getAdvancedOptions=function(n,i){var
f=this,u=[];return
i==4&&(t.config.enableMultiAccountSearch&&r.authenticationManager.getAllSearchWebAc
countsAsync&&(u=u.concat(this.getAccountOptions(n))),u.push(this.getIndexingOption(
n,i)),this.addCortanaOptions(u,n,i),this.addZiCustomization(u,n)),i==5&&this.addL2D
ropdown(u,n),t.isCloudSearchEnabledCache&&i!=4&&i!
=5&&this.addCloudSearchUpsells(u,n,i),i==1&&(u.push(this.getIndexingOption(n,i)),u.
push(this.createAdvancedOption(null,n,"FeedbackButtonText",null,
["FeedbackButtonToolTip"],function(){return
f.showFeedback()},0)),t.config.enableMultiAccountSearch&&r.authenticationManager.ge
tAllSearchWebAccountsAsync&&u.push.apply(u,this.getAccountOptions(n).filter(functio
n(n){return n.isSelectable}))),u},v.prototype.addCloudSearchUpsells=function(i,r,u)
{var e=t.substrateProvidersEnabled(),o=e&&!this._upsellGotDismissed,f;if((u==0||
u==4||u==3||u==(o?2:1))&&(u!=0||!this._selectedScope||
this._selectedScope.type==t.Scope.Emails||
this._selectedScope.type==t.Scope.People||
this._selectedScope.type==t.Scope.Documents)&&(f=t.getAccountTypeForCloudContent(),
u!=3||e&&(f==1||f==4)))if(e)
{if(this._upsellGotDismissed&&this._selectedScope&&this._selectedScope.type==t.Scop
e.Documents&&u==0)return;f!=1&&f!=4||t.isSubstrateO365AccountConnected||
(u==4&&i.push(this.getMenuDividerOption()),i.push(this.getSubstrateUpsell(1,r,u)));
f!=2&&f!=4||t.isSubstrateOutlookAccountConnected||
(u==4&&i.push(this.getMenuDividerOption()),i.push(this.getSubstrateUpsell(0,r,u)))}
else n.isBingEnabled()&&t.isCortanaEnabledCache&&!
t.isCortanaPersonalized&&i.push(this.getOneDriveUpsell(r))},v}
();t.HeaderFooterViewModel=v})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function i(n,t){var
i=HitHighlightingParser.removeMarkers(n.text),r;!
i.includes(t.queryToFetch)&&i.toLowerCase().startsWith(t.queryToFetch.toLowerCase()
)&&(r=t.queryToFetch+i.substr(t.queryToFetch.length),n.text=HitHighlightingParser.a
ddMarkers(r,t.queryToFetch));!
n.query.includes(t.queryToFetch)&&n.query.toLowerCase().startsWith(t.queryToFetch.t
oLowerCase())&&(n.query=t.queryToFetch+n.query.substr(t.queryToFetch.length))}funct
ion r(n,r,u,f,e,o,s,h){var
l,c;if(n.actionUri=f,n.confidence=o,n.source=s,n.handoffType==4)if(l=n.query.toLowe
rCase()==r.queryToFetch.toLowerCase(),n.updateFromQuery=function(i){return l?
(n.query=i.queryToFetch,n.text=HitHighlightingParser.addMarkers(n.query,i.queryToFe
tch),n.narratorText=t.getNarratorText(n),!0):!
1},c=t.parseTaskFrame(e),c)n.isReformulation=!0,n.click=function(){return
h.reformulate(n.query,c)};else return!1;else
n.classNames.push("action"),n.click=function(){return
h.launchCat1(n.query,f,e)};return
n.icon={type:3},i(n,r),n.narratorText=t.getNarratorText(n),n.type!
="CSK"&&(n.getMruData=function()
{return{type:n.type,handoffType:n.handoffType,hc:n.hc,highConfidenceMetaSuggestionS
core:n.highConfidenceMetaSuggestionScore,prefetchConfidenceScore:n.prefetchConfiden
ceScore,query:n.query,textWithoutHH:HitHighlightingParser.removeMarkers(n.text),ann
otation:n.primaryMetadata,icon:n.getIcon?
null:n.icon,actionUri:f,taskFrame:e,confidence:o,source:s,suggestionKey:t.getSugges
tionKey(n)}}),!0}function s(n,r,u,e,o,s,h,c,l,a,v,y){if(n.isAnswer=!
0,n.htmlContent=e&&e.Content?
e.Content.HTML:null,n.baseSearchUrl=h,n.segments=c,n.htmlContent){var
p=JsonInject.GetResourceKeys([e]);p&&(n.executeScript=function(){return
JsonInject.WriteAfterContentResources(JsonInject.FilterResources(a,p))})}s&&(n.seco
ndaryIcon={content:s,type:0});n.text.includes(HitHighlightingParser.startMarker)||
(n.text=HitHighlightingParser.addMarkers(n.text,r.queryToFetch));n.htmlContent||
o&&(n.primaryMetadata=o,n.additionalInfoText=" - "+o);n.handoffType==10?
(n.classNames.push("action"),i(n,r),t.config.useCortanaLogoForAllCortanaSuggestions
&&(n.icon={type:3}),n.click=function(){return
v.launchCat2or3a(n.query,l)},n.allowedInGroups=!n.htmlContent):
(f(n,v),n.click=function(){return
v.launchSearch(n.query,y.getSearchUrl(r.fullPartialQuery,n.query,n.type,n.baseSearc
hUrl),!1)},n.allowedInGroups=n.secondaryIcon?!!n.additionalInfoText:!n.htmlC
ontent);n.narratorText=t.getNarratorText(n)}function u(n,i,r,u,f)
{n.url=u;n.tooltip=i.isSearchHomeZI?
n.text+"\n\n"+u:u+"\n\n"+HitHighlightingParser.removeMarkers(n.primaryMetadata);t.i
sValidIcon(n.icon)||(t.RuntimeConfig.QfMode!=3?
n.getIcon=f.getEdgeIcon:n.icon={type:1,content:"&#xE774"});n.click=function()
{return
f.launchUri(u)};n.narratorText=t.getNarratorText(n,f.getLocString("DirectNavSuggest
ion"));n.getMruData=function()
{return{type:n.type,handoffType:n.handoffType,hc:n.hc,highConfidenceMetaSuggestionS
core:n.highConfidenceMetaSuggestionScore,prefetchConfidenceScore:n.prefetchConfiden
ceScore,query:n.query,textWithoutHH:HitHighlightingParser.removeMarkers(n.text),tit
le:n.primaryMetadata,icon:n.getIcon?
null:n.icon,url:u,suggestionKey:t.getSuggestionKey(n)}}}function f(n,i)
{t.isValidIcon(n.icon)||(n.icon=n.type=="HS"&&t.RuntimeConfig.QfMode!=3?
{content:"&#xE81C",type:2}:n.handoffType===13?
{content:"&#xEB9F",type:2}:n.handoffType===14?
{content:"&#xE714",type:1}:t.getSearchSuggestionIcon());n.primaryMetadata||
n.secondaryIcon||n.htmlContent||n.additionalInfoText||
(n.primaryMetadata=n.handoffType===13?
i.getLocString("SearchForWebImages"):n.handoffType===14?
i.getLocString("SearchForWebVideos"):t.getWebSuggestionAnnotation(i))}var
e="https://go.microsoft.com/fwlink/?LinkId=780764",o=function(){function
i(n,t,i,r,u)
{this._host=n;this._instrumentationHelper=t;this._navigationHelper=i;this._temporar
yMessageHandler=r;this._previousKeystrokeCache=u}return
i.prototype.parse=function(n,t,i,r,u,f,e)
{this.parseOnlineSuggestions(n,t,r,u,f,e,i)},i.prototype.parseOnlineSuggestions=fun
ction(i,r,u,f,e,o,s){var a=this,h,l,k;if(!u)
{n.isDataSourceEnabled(n.WebDataSource,i)&&e(n.WebDataSource,
[],null);n.isDataSourceEnabled("OSTMA",i)&&e("OSTMA",
[],null);n.isDataSourceEnabled("QS",i)&&e("QS",
[],null);return}u&&u.ELToken&&(this._host.setElToken(u.ELToken),u.LC==1&&this._host
.sendElToken());var
v=[],y=[],p=[],c=[],w=[],b=n.isDataSourceEnabled(n.WebDataSource,i);n.safeExecute(f
unction(){for(var e,o=function(t){var o=t.Attributes,h=o.appId,f,e;if(h)return
y.push(t),h.split(";").forEach(function(t){n.contains(c,t)||
c.push(t)}),"continue";if(f=o.settingId,f)return
p.push(t),w.push(f),"continue";b&&(e=n.safeExecute(function(){return
a.parseOnlineSuggestion(i,t,r,u.Resources,s)},"parseOnlineSuggestion"),e&&v.push(e)
)},t=0,f=u.Suggestions;t<f.length;t+
+)e=f[t],o(e)},"parseOnlineSuggestions");b&&(h=null,l=null,u.RankingSignals&&(h=n.s
afeExecute(function(){return
n.parseWebEngagementSignals(u.RankingSignals)},"parseWebEngagementSignals"),t.isL2(
i)||(l=n.safeExecute(function(){return
t.parseWebSuppressionSignals(u.RankingSignals,i)},"parseWebSuppressionSignals"))),t
his._previousKeystrokeCache&&this._previousKeystrokeCache.updateWebSignalsData(i.qu
eryToFetch,h),k={rankingSignals:u.RankingSignals,engagementSignals:h,suppressedGrou
ps:l,webTopResultRoutingType:u.PrefixRoutingType},e(n.WebDataSource,v,k));t.lookupB
yId(i,"OSTMA",c,y,function(n){return
n.Attributes.appId.split(";")},"QS",w,p,function(n){return
n.Attributes.settingId},f,r,e,o,function(n,t,f,e){return
a.parseIdLookupResponse(u,i,r,n,t,f,e)},null,null,null,null,this._instrumentationHe
lper,this._host)},i.prototype.parseIdLookupResponse=function(i,u,f,e,o,s,h){var
c=this,l,a;if(e.Attributes.stype!="CS"||!(s.length>0)){if(s.length!=1)
{l=n.safeExecute(function(){return
c.parseOnlineSuggestion(u,e,f,i.Resources,o)},"parseOnlineSuggestion
"+o);l&&h.push(l);return}a=function(n){var i=e.Attributes;return
c.compliesWithMinVersion(i.appMinVersion,n.deviceItem.version)?
(n.appContext=i.appContext,c.setRankingSignals(n,e),e.Text&&i.query&&(!
t.isApp(n.type)||
n.appContext)&&(n.text=e.Text,n.query=i.query),e.SecondaryText&&(n.primaryMetadata=
e.SecondaryText),n.handoffType==5)?
r(n,u,f,i.actionUri,i.taskFrame,parseFloat(i.confidence),parseInt(i.source),c._host
):!0:!1};n.safeExecute(function(){return
t.parseLocalSuggestion(u,s[0],o,f,c._host,c._temporaryMessageHandler,e.Attributes.s
type,c._instrumentationHelper,h,a)},"parseLocalSuggestion
"+o)}},i.prototype.parseOnlineSuggestion=function(i,f,e,o,h){var
d=this,c=f.Attributes,a=c.stype,y,l,v;if(c.appId&&a!="CS"||c.settingId)return
null;if(y=c.isAnswer==="1"?c.url||c.vertical?
n.verticalToHandoffType(c.vertical):10:c.taskFrame?
c.actionUri.startsWith("action://FindMyStuff/")?4:5:a=="CS"?3:a=="MD"||a=="ML"?
1:n.verticalToHandoffType(c.vertical),l=t.createSuggestion(i,f.Text,null,n.getIconF
romOnlineResponse(f),a,c.query,n.InstrumentedItem.createInstrumentedItem(e,a),y,e,!
1),l.primaryMetadata=f.SecondaryText,this.setRankingSignals(l,f),l.autoOpenPreviewP
aneWhenOnTopHit=c.openPP==="1",c.isAnswer==="1"){if(!c.url&&!
t.isCortanaEnabledCache)return
null;l.signals=f.Signals;s(l,i,e,f.InstantAnswer,c.additionalInfoText,!
t.config.replaceMiniSerpWithLocalPreviewPane?
c.secondaryIconUrl:null,c.url,c.segments,c.taskFrame,o,this._host,this._navigationH
elper);c.noHeightRestriction==="1"&&l.classNames.push("noHeightRestriction")}else
if(c.taskFrame){if(!t.isCortanaEnabledCache||!
r(l,i,e,c.actionUri,c.taskFrame,parseFloat(c.confidence),parseInt(c.source),this._h
ost))return null}else
if(l.type=="CS")this.setStoreSuggestionProperties(l,i,e,c);else{if(!c.url)return
null;if(l.autoOpenPreviewPaneWhenOnTopHit=c.openPP==="1",l.type=="MD"||
l.type=="ML")v=n.prettyPrintUrl(c.query,i.queryToFetch,!0),v!
=l.query&&(l.query=v,l.text=i.queryToFetch?
HitHighlightingParser.addMarkers(v,i.queryToFetch):v),l.primaryMetadata&&!
l.primaryMetadata.includes(HitHighlightingParser.startMarker)&&(l.primaryMetadata=H
itHighlightingParser.addMarkers(l.primaryMetadata,i.queryToFetch)),u(l,i,e,c.url,th
is._host);else{if(n.queryLooksLikeUrl(l.query))return
null;this.setWebSearchSuggestionProperties(l,i,e,c.url)}}if(!
t.isValidSuggestion(l,"parseOnlineSuggestion"))return null;var p=l.segments,w=p?
p.split(","):[],b=w.some(function(i){return
n.contains(t.config.relatedWebImageSupportedSegments,i)}),k=w.some(function(i)
{return
n.contains(t.config.relatedWebVideoSupportedSegments,i)});return(f.ChildSuggestions
||b||k)&&(l.calculateChildSuggestions=function(){return
d.calculateRelatedSuggestions(l,i,f,h,b,k)}),l},i.prototype.setStoreSuggestionPrope
rties=function(n,i,r,u){var e=this,f;n.icon.bgColor=u.bgColor=="transparent"?
this._host.getAccentColor():u.bgColor;n.classNames.push("action");f=parseFloat(u.av
gRating);n.stars=this.getStarsRating(f);n.catalogScore=parseFloat(u.catalogScore);n
.avgRating=f;n.ratingCount=parseInt(u.ratingCount);n.packageFamilyName=u.appId;n.cl
ick=function(){return
e._host.launchStorePdp(u.productId)};n.narratorText=t.getNarratorText(n)},i.prototy
pe.getStarsRating=function(n){var t=Math.round(n*2)/2;return
Math.max(0,Math.min(5,t))},i.prototype.setRankingSignals=function(n,t){var
i=t.Attributes;n.hc=i.hc==="1";n.highConfidenceSuggestionScore=+i.hcs;n.highConfide
nceMetaSuggestionScore=t.HighConfidenceMetaSuggestionScore;n.prefetchConfidenceScor
e=t.PrefetchConfidenceScore;n.suggestionLogMeta=i.lm},i.prototype.compliesWithMinVe
rsion=function(n,t){var r,u,i,f,e;if(!n)return!0;if(!t)return!
1;for(r=n.split("."),u=t.split(".");r.length>u.length;)u.push("0");for(i=0;i<r.leng
th;++i){if(f=u[i],e=r[i],f<e)return!1;if(f>e)return!0}return!
0},i.prototype.setWebSearchSuggestionProperties=function(n,i,r,u){var
o=this;f(n,this._host);i.queryToFetch||
(n.text=HitHighlightingParser.addMarkers(n.text));n.baseSearchUrl=u;n.click=functio
n(){return
o._host.launchSearch(n.query,o._navigationHelper.getSearchUrl(i.fullPartialQuery,n.
query,n.type,n.baseSearchUrl,n.handoffType),n.useRaf)};n.narratorText=t.getNarrator
Text(n);n.type=="HS"&&t.setExtraVerbs(n,function(){var
i=[{verb:"ManageSearchHistory",displayName:o._host.getLocString("ManageSearchHistor
y"),executeSync:function(){return o._host.launchUri(e)},icon:
{content:"&#xE81C",type:2}}];return
t.config.removeSuggUrl&&i.unshift({verb:"RemoveFromWebHistory",displayName:o._host.
getLocString("RemoveFromWebHistory"),executeSync:function(){return
o.removeBingHistorySuggestion(n.text)},icon:{content:"&#xE711",type:2}}),i},!
0)},i.prototype.removeBingHistorySuggestion=function(i){var
r=this,u;i=HitHighlightingParser.removeMarkers(i);u=t.config.removeSuggUrl.replace(
"%7b0%7d",encodeURIComponent(i)).replace("%7bSID
%7d",sj_cook.get("_SS","SID"));n.fetchUrlJson(u,null,null,function(t)
{t.success&&(r._host.refreshCurrentPane(),n.safeSetTimeout(function(){return
r._temporaryMessageHandler.showTemporaryMessage(r._host.getLocString("RemoveFromWeb
HistoryConfirmation",i))},250,"removeBingHistorySuggestion"))})},i.prototype.addRel
atedSuggestion=function(i,r,u,f,e,o,s){var h=t.createSuggestion(r,f,null,e,o,i?
i.Query:u.query,n.InstrumentedItem.createInstrumentedItem(u.sequenceNumber,o),s,u.s
equenceNumber,!1,null,null,!
0);h.groupType=t.GroupType.Related;h.parent=u;h.tooltip=i?
i.SecondaryText:null;h.rankingScore=i?i.RankingScore:0;h.category=i?
i.Category:null;h.isAnswer=!
0;this.setWebSearchSuggestionProperties(h,r,u.sequenceNumber,i?
i.Url:null);h.primaryMetadata=null;t.isValidSuggestion(h,"calculateRelatedSuggestio
ns")&&u.childSuggestions.push(h)},i.prototype.calculateRelatedSuggestions=function(
t,i,r,u,f,e){var
s,h,o;if(t.childSuggestions=[],r.ChildSuggestions)for(s=0,h=r.ChildSuggestions;s<h.
length;s+
+)o=h[s],this.addRelatedSuggestion(o,i,t,o.Text,n.getIconFromOnlineResponse(o),o.Ty
pe,0);f&&this.addRelatedSuggestion(null,i,t,this._host.getLocString("Images"),null,
"EIM",13);e&&this.addRelatedSuggestion(null,i,t,this._host.getLocString("Videos"),n
ull,"EVI",14);t.childSuggestions.length>0&&this._instrumentationHelper.instrumentDa
taSource(t.sequenceNumber,u,t.childSuggestions,null)},i}
();t.OnlineSuggestionsParser=o;t.adjustCasing=i;t.setCat1SuggestionProperties=r;t.s
etUrlSuggestionProperties=u})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function w(n){return n?[n]:
[]}function ot(n){if(n){var t=n.lastIndexOf(".");if(t>=0)return
n.substring(t)}return""}function st(t){var
i=t?new Date(t):null;return n.isValidDate(i)?i:null}function b(i){if(i){var
r=n.getCurrentDate();if(r.getDate()==i.getDate()&&r.getMonth()==i.getMonth()&&r.get
FullYear()==i.getFullYear())return i.toLocaleTimeString(t.uiLanguageCache,
{hour:"numeric",minute:"numeric"})}return null}function f(i,f,o,s,h,c){var
g,v,ut,ft,nt,tt,y,p,a,it,w,k,l,d,rt;for(c===void 0&&(c=!1),!
c&&s.extensionLC&&r.hideFileExtensions&&(g=s.extensionLC.length,v=s.query,v.toLocal
eLowerCase().endsWith(s.extensionLC)&&(ut=HitHighlightingParser.addMarkers(v,f),ut.
toLocaleLowerCase().endsWith(s.extensionLC)&&(s.query=v.substring(0,v.length-
g),ft=HitHighlightingParser.removeMarkers(s.text),v==ft&&(nt=s.text.toLocaleLowerCa
se().lastIndexOf(s.extensionLC),s.text=s.text.substring(0,nt)
+s.text.substr(nt+g))))),p=s.lastModifiedDate,p&&(tt=p.toLocaleDateString(),y=b(p),
y||(y=p.toLocaleString(t.uiLanguageCache,
{day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}))),a
=s.path,s.tooltip=yt(s,a,y,h),s.primaryMetadata=s.sourceForGroup&&s.sourceForGroup!
=1?
t.getGroupSourceDisplayName(s.sourceForGroup,h):s.itemTypeDisplayName,i.isSearchHom
eZI&&(s.additionalInfoText=a),s.classNames=[],s.match?(it=(pt(s.match.matchType)?
h.getLocString(t.MatchType[s.match.matchType])+": ":"")
+HitHighlightingParser.addMarkers(s.match.matchedText,f),s.additionalInfoText=it,s.
secondaryMetadata=it,s.classNames.push("withMatchAnnotation","forceNoWrapOutsideTop
Result")):tt&&(s.secondaryMetadata=h.getLocString("LastModified")+":
"+tt),s.narratorText=t.getNarratorText(s),t.displayedInGridLayout(s.type)&&(o?
s.classNames.push("bigIcon","biggerIcon"):s.classNames.push("bigIcon")),!
c&&s.handoffType==2&&r.copyToClipboard&&u(s,function()
{return[{verb:t.JumplistActionItemType[t.JumplistActionItemType.S_CopyFullPath],dis
playName:h.getLocString("CopyFullPath"),executeSync:function(){return
r.copyToClipboard(s.path,"")},icon:{type:1,content:"&#xE8C8"}}]},!
1),w={},a&&(k=a.lastIndexOf("/"),k<0&&(k=a.lastIndexOf("\\")),l=a.substring(0,k),l.
endsWith(":")&&(l=l+"\\"),w[h.getLocString("Location")]=[{text:l,click:function()
{return n.isUncOrLocalPath(l)?r.launcher.startLaunchFolder(l):s.locationUrl?
r.launcher.launchUriAsync(decodeURI(s.locationUrl)):r.launcher.launchUriAsync(l)}}]
),y&&(w[h.getLocString("LastModified")]=[{text:y}]),d=0,rt=e;d<rt.length;d++){var
et=rt[d],st=et[0],ht=et[1],ot=s[ht];ot&&(w[h.getLocString(t.MatchType[st])]=[{text:
ot}])}s.previewMetadata=w}function ht(n,i,r,u){var o,s;for(i.match||!r.match||
i.parentFolderDisambig||(i.match=r.match,i.needsRefreshAfterDeduping=!
0),o=0,s=e;o<s.length;o++){var l=s[o],h=l[1],c=r[h];c&&!
i[h]&&(i[h]=c,i.needsRefreshAfterDeduping=!
0)}t.RuntimeConfig.QfMode==5&&(i.needsRefreshAfterDeduping=!
1);i.needsRefreshAfterDeduping&&f(n,t.getEffectiveQuery(n),t.isL2(n),i,u,!
0)}function ct(n,i,u,f,e){return n?
t.Promise.safeChainWithGlobalCaching("getImageWithLiveTokenAsync",function(){return
r.getImageWithLiveTokenAsync(u)},function(){return e},function(n){return
t.toIcon(n,"getImageWithLiveTokenAsync",i)},i,null,null,3):k(i,f)}function k(n,i)
{return t.Promise.safeChainWithGlobalCaching("getIconForTypeAsync",function(n)
{return
r.queryFormulationView.deviceSearch.getIconForTypeAsync(i,t.getImageSizeValue(n))},
function(n){return n+"_"+i},function(i){return
t.toIcon(i,"getIconForTypeAsync",n)},n)}function d(n){return n!
=null&&(n.type==3||!!n.content||!!n.className)}function o(n,t,i){i===void 0&&(i=!
0);var r=n.mayContainPII;return n.text?n.query?!n.handoffType&&n.handoffType!==0?
(SharedLogHelper.LogError(t,r?"":n.text,new Error("Missing handoff type")),!
1):n.type?i&&!n.getIcon&&!d(n.icon)?(SharedLogHelper.LogError(t,r?"":n.text,new
Error("Missing icon")),!1):!0:(SharedLogHelper.LogError(t,r?"":n.text,new
Error("Missing suggestion type")),!1):(SharedLogHelper.LogError(t,r?"":n.text,new
Error("Missing query")),!1):(SharedLogHelper.LogError(t,r?"":n.deviceItem?
n.deviceItem.id:"",new Error("Missing text")),!1)}function u(n,i,r){var
u=n.getExtraVerbs;n.getExtraVerbs=function(n){var f=u?u(n):[],e=i(n);return
t.joinVerbs(f,e,r)}}function lt(n,i,r){var
u=n.getExtraVerbsAsync;n.getExtraVerbsAsync=u?function(n){return
ThresholdUtilities.createPromise(function(f){return u(n).then(function(u){return
i(n).then(function(n){return f(t.joinVerbs(u,n,r))})})})}:i}function s(n,t){var
r=n.propertyHits||[],i=r.indexOf(t);return typeof i=="object"&&i.returnValue!
==undefined?i.returnValue:i>=0}function at(n){var i,t;if(n&&typeof
n=="object"&&n.length){for(i="",t=0;t<n.length;t++)i+=n[t],t!=n.length-1&&(i+=",
");return i}return n}function i(t,i,r){return n.safeExecute(function(){return
at(t.getProperty(i))},"get"+i,undefined,r)}function vt(n){for(var
r,u,e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];for(r=0,u=e;r<u.length;r++)
{var f=u[r],h=f[0],o=f[1],c=f[2];if(o&&s(n,c))return t.createMatch(h,o)}return
null}function yt(n,i,r,u){var
f=i||"",s,h,o,c;for(n.textContentIfMatched&&(f+=(f?"\n\n":"")
+n.textContentIfMatched),s=!!f,h=function(){f&&(f+="\n");s&&(f+="\n",s=!
1)},r&&(h(),f+=u.getLocString("LastModified")+": "+r),o=0,c=e;o<c.length;o++){var
l=c[o],v=l[0],a=l[1],y=n[a];y&&(h(),f+=u.getLocString(t.MatchType[v])+":
"+n[a])}return f}function pt(n){switch(n){case t.MatchType.Author:case
t.MatchType.LastModifiedBy:case t.MatchType.Tags:case t.MatchType.Genre:case
t.MatchType.Album:case t.MatchType.Artist:return!0;case t.MatchType.Content:case
t.MatchType.Location:return!1;default:throw new Error("Unknown match type:
"+n);}}function wt(i,r,u,f,e,o,s,h,c,l,a,v,y,p,b,k,d,g,nt,tt)
{r&&n.isDataSourceEnabled(r,i)&&t.LocalDataProvider.getApps(u,function(t){var
u,s,i,o,h;if(l()){for(nt.instrumentResponseReceived(a,r,null,0,!
1),u=[],s=function(i){n.safeExecute(function(){return p(i,r,e(i).map(function(n)
{return t[n]}).filter(function(n){return!!n}),u)},"parseApp
"+r)},i=0,o=f;i<o.length;i+
+)h=o[i],s(h);v(r,u,null)}},y,r,tt);o&&n.isDataSourceEnabled(o,i)&&t.LocalDataProvi
der.getSettings(s,function(t){var u,e,i,f,s;if(l())
{for(nt.instrumentResponseReceived(a,o,null,0,!1),u=[],e=function(i)
{n.safeExecute(function(){return p(i,o,w(t[c(i)]),u)},"parseSetting
"+r)},i=0,f=h;i<f.length;i+
+)s=f[i],e(s);v(o,u,null)}},y,o);b&&n.isDataSourceEnabled(b,i)&&t.LocalDataProvider
.getFiles(k,function(t){var r,f,i,u,e;if(l())
{for(nt.instrumentResponseReceived(a,b,null,0,!1),r=[],f=function(i)
{n.safeExecute(function(){return p(i,b,w(t[g(i)]),r)},"parseFile
"+b)},i=0,u=d;i<u.length;i++)e=u[i],f(e);v(b,r,null)}},i,y,b)}function bt(n,i)
{return t.isMobileCache?null:n.id==t.EdgeAppId?
i.getLocString("MicrosoftRecommendedBrowser"):i.getLocString("App")}function
kt(n,i){return t.isModernSetting(n)?
i.getLocString("SystemSettingsAnnotation"):i.getLocString("ControlPanelAnnotation")
}function dt(i,r,u,e,o,s,h){var c=t.getAppItem(o),l,v,w,y,b,it,k,d,g;if(c)
{e&&nt(o,c);o.primaryMetadata=bt(c,h);o.narratorText=t.getNarratorText(o);o.tooltip
=i.isSearchHomeZI?
o.text:"";o.type=="IBA"&&(o.tooltip=c.id,o.path=c.id);return}if(t.isSetting(o.type)
)
{o.primaryMetadata=kt(o.deviceItem,h);o.narratorText=t.getNarratorText(o);o.tooltip
=i.isSearchHomeZI?o.text:"";return}if(o.type=="LURL"&&(c=o.deviceItem,c))
{l=c.id;o.narratorText=t.getNarratorText(o,h.getLocString("DirectNavSuggestion"));o
.tooltip=o.query+"\n\n"+l;o.url=l;return}if(v=t.getBrowsingHistoryItem(o),v){var
l=v.url,p=n.prettyPrintUrl(l,r,!1),rt=r?
HitHighlightingParser.addMarkers(p,r):p,a=v.title;a&&(o.primaryMetadata=r?
HitHighlightingParser.addMarkers(a,r):a);o.text=rt;o.query=p;o.narratorText=t.getNa
rratorText(o,h.getLocString("DirectNavSuggestion"));o.template=1;o.tooltip=(a?
a+"\n\n":"")
+l;o.classNames.push("forceNoWrapOutsideTopResult");o.url=l;return}if(w=t.getFileIt
em(o),w){gt(i,r,u,e,s,o,w,h);return}if(o.type=="PT"||o.type=="CG"){if(y=o,o.type!
="PT"&&o.deviceItem.launchArguments||
(y.path=o.deviceItem.id),b=o.deviceItem,it=b.kind,it=="program")
{tt(o,h);return}if(k=ni(b),k)
{y.itemTypeDisplayName=k;f(i,r,u,y,h);return}o.type=="CG"&&tt(o,h);return}if(o.type
=="FEH")
{r&&(o.text=HitHighlightingParser.addMarkers(o.text,r));return}if(d=t.getPowerBiIte
m(o),d){g=d.modelDisplayName;o.primaryMetadata=g;o.additionalInfoText=" -
"+g;o.narratorText=t.getNarratorText(o);return}throw new Error("Unexpected type:
"+o.type);}function gt(r,u,e,o,h,c,l,a){var p,d,w,b,y,k,v,g,tt;if(d=c.type=="LDOC"?
t.resolveKnownFolderGUIDsInPath(l.id):t.indexerFilePathToRegularPath(l.id),c.path=d
,c.itemTypeDisplayName=l.itemTypeDisplayName,o&&nt(c,l),w=l.lastModifiedDate,n.isVa
lidDate(w)&&(c.lastModifiedDate=w),b=l.extension,b&&(c.extensionLC=b.toLocaleLowerC
ase()),h!="MFF"||t.IndexerQueryGenerator)
{c.type=="MU"&&(c.artist=t.IndexerQueryGenerator?
i(l,"System.Music.DisplayArtist",h):i(l,"System.Music.Artist",h),c.album=i(l,"Syste
m.Music.AlbumTitle",h));y=void 0;switch(h)
{case"MDOC":c.author=i(l,"System.Author",h);c.lastModifiedBy=i(l,"System.Document.L
astAuthor",h);c.tags=i(l,"System.Keywords",h);s(l,"System.Search.Contents")&&(k=i(l
,"System.Search.AutoSummary",h),k&&(p=t.tryGetTextContentMatch(k,u),c.textContentIf
Matched=p[0],y=p[1]),l.propertyHits.length==1&&(c.matchedOnlyOnContent=!
0));break;case"MPHO":c.tags=i(l,"System.Photo.TagViewAggregate",h);break;case"MVID"
:t.IndexerQueryGenerator&&(c.artist=i(l,"System.Music.DisplayArtist",h),c.genre=i(l
,"System.Music.Genre",h));c.tags=i(l,"System.Keywords",h);break;case"MMUS":c.genre=
i(l,"System.Music.Genre",h)}!
c.text.includes(HitHighlightingParser.startMarker)&&u&&(v=void 0,g=h!="LM"&&h!
="FL",g&&(h=="MFF"?(v=i(l,"System.Title",h),v&&!
t.matchesOnPropertyHH(v,u)&&(v=undefined)):s(l,"System.Title")&&(v=i(l,"System.Titl
e",h))),v?c.text=HitHighlightingParser.addMarkers(v,u):y?c.match=y:
(tt=t.IndexerQueryGenerator?"System.Music.DisplayArtist":"System.Music.Artist",c.ma
tch=vt(l,h,[t.MatchType.Album,c.album,"System.Music.AlbumTitle"],
[t.MatchType.Artist,c.artist,tt],[t.MatchType.Genre,c.genre,"System.Music.Genre"],
[t.MatchType.Tags,c.tags,"System.Keywords"],
[t.MatchType.Tags,c.tags,"System.Photo.TagViewAggregate"],
[t.MatchType.Author,c.author,"System.Auth
or"],
[t.MatchType.LastModifiedBy,c.lastModifiedBy,"System.Document.LastAuthor"])))}f(r,u
,e,c,a);ii(c,a)}function nt(i,r){var u=n.safeExecute(function(){return
r.getProperty("System.Link.TargetParsingPath")},"getTargetPath"),f,e,o;u&&(u=u.toLo
caleLowerCase(),f=t.getKnownFolderPathLC(t.FOLDERID_Profile),f&&(e=t.getKnownFolder
PathLC(t.FOLDERID_SystemX86),e&&u.startsWith(e+"\\config\\systemprofile")?
u=f+u.substr(e.length+21):
(o=t.getKnownFolderPathLC(t.FOLDERID_System),o&&u.startsWith(o+"\\config\\systempro
file")&&(u=f+u.substr(o.length+21)))),i.targetPathLC=u)}function ni(n)
{if(n.launchArguments)return null;var t=n.itemTypeDisplayName;return t&&t[0]!="."?
t:null}function h(i,r){for(var o,y,h,c,a,u,l,f,v,s=[],e=0;e<i.length-1;++e)if(!
t.displayedInGridLayout(i[e].type))for(o=e+1;o<i.length;+
+o)if(i[e].type==i[o].type&&i[e].text.toLocaleLowerCase()==i[o].text.toLocaleLowerC
ase()){s[e]=!0;s[o]=!0;break}if(s.length!=0)for(y=i.filter(function(n,t){return
s[t]}),h=r.getLocString("InfoTextWithSource"),c=0,a=y;c<a.length;c+
+)if(u=a[c],u.path){if(l=u.path.lastIndexOf("\\"),l==-
1)continue;if(f=u.path.slice(u.path.lastIndexOf("\\",l-1)+1,l),v=u.handoffType==2?
null:u.primaryMetadata,v&&f.endsWith(":"))continue;u.type=="IBA"?
(u.secondaryMetadata=u.primaryMetadata,u.primaryMetadata=f):u.primaryMetadata=u.pri
maryMetadata?v?n.formatString(h,[f,u.primaryMetadata]):n.formatString(h,
[u.primaryMetadata,f]):f;u.additionalInfoText=n.formatString(h,["
-",f]);u.match&&(u.classNames=u.classNames.filter(function(n){return n!
="withMatchAnnotation"&&n!
="forceNoWrapOutsideTopResult"}));u.narratorText=t.getNarratorText(u);u.parentFolde
rDisambig=f}}function tt(n,i)
{n.primaryMetadata=i.getLocString("RunCommandPrompt");n.classNames.push("action");n
.narratorText=t.getNarratorText(n)}function ti(n){return n=="EBH"}function
it(i,r,u,f,e,s,h,c,l,a){var
d=t.localDataSourceMayContainPII(u),g,b,y,nt,tt,k,it;if(!h)
{g=r.deviceItem.kind;SharedLogHelper.LogError("parseLocalSuggestion"+u,d?"":r.devic
eItem.displayName||r.deviceItem.id,new Error("Unrecognized kind:
"+g));return}if(b=h=="LURL"||h=="EBH"?1:2,n.isSuggestionTypeEnabled(u,h,b,i)){var
p=t.getEffectiveQuery(i),w=ti(h)?null:r.deviceItem.displayName,rt=w&&p?
HitHighlightingParser.addMarkers(w,p):w,v=t.createSuggestion(i,rt,r.getIcon,r.icon,
h,w,n.InstrumentedItem.createInstrumentedItem(f,h),b,f,d);v.uxHint=oi(r,p,e);r.devi
ceItem.isSimulated||
(v.deviceItem=r.deviceItem);v.ciMetaData=r.ciMetaData;t.isApp(h)&&(v.pinnedToTaskba
r=e.isPinnedToTaskbar(r.deviceItem.id));r.groupDisplayName&&(v.groupDisplayName=r.g
roupDisplayName);y=t.getAppItem(v);y?(v.click=function(){return
e.launchAppItem(y,u,v.appContext)},t.config.maxJLcm&&ri(i,v,y,e,s,f,u,c)):v.type=="
FEH"?v.click=function(){return
e.submitFileExplorerTextSuggestion(v.query)}:v.type=="FD"&&t.RuntimeConfig.QfMode==
5?v.click=function(){return e.submitFileExplorerFolderSuggestion(v.path)}:
(nt=t.getBrowsingHistoryItem(v),nt?(tt=v.url,v.click=function(){return
e.launchUri(tt)},t.RuntimeConfig.QfMode!=3?
v.getIcon=e.getEdgeIcon:v.icon={type:2,content:"&#xE81C"}):v.click=function()
{return e.launchDeviceItem(v.deviceItem,u)});y&&v.type!="IBA"||
t.isSetting(v.type)||t.isFileOrFolder(v.type)&&v.type!="LDOC"?
v.getMruData=function()
{return{type:v.type,handoffType:v.handoffType,hc:v.hc,highConfidenceMetaSuggestionS
core:v.highConfidenceMetaSuggestionScore,prefetchConfidenceScore:v.prefetchConfiden
ceScore,id:r.deviceItem.id,suggestionKey:t.getSuggestionKey(v),appContextData:v.app
Context?
{appContext:v.appContext,query:v.query,textWithoutHH:HitHighlightingParser.removeMa
rkers(v.text)}:undefined}}:(k=t.getCommandLineItem(v),k?
v.hc=t.isRealCommand(v,k):h=="PBI"&&(v.hc=r.deviceItem.rankScore>900));it=t.getGrou
pType(v);t.shouldSetThisPcGroupSource(it,i)&&(v.sourceForGroup=1);dt(i,p,t.isL2(i),
t.supportsShortcuts(u,i),v,u,e);t.RuntimeConfig.QfMode==5&&(v.additionalInfoText=un
defined,v.primaryMetadata=undefined,v.secondaryMetadata=undefined);o(v,"parseLocalS
uggestion "+u)&&a(v)&&l.push(v)}}function ii(n,i){u(n,function(){var r,u;return
n.duplicates&&(r=n.duplicates.find(function(n){return n.handoffType==7||
n.handoffType==8}),r)?
(u=[],u.push({verb:t.JumplistActionItemType[t.JumplistActionItemType.S_OpenInBrowse
r],displayName:i.getLocString("OpenInBrowser"),executeSync:function(){return
i.launchUri(r.url+(r.handoffType==8?"?web=1":""))},icon:
{type:1,content:"&#xE774"}}),r.locationUrl&&u.push({verb:t.JumplistActionItemType[t
.JumplistActionItemType.S_OpenFileLocationInBrowser],displayName:i.getLocString("Op
enFileLocationIn",t.getGroupSourceDisplayName(r.sourceForGroup,i)),executeSync:func
tion(){return i.launchUri(r.locationUrl)},icon:{type:2,content:"&#xE838"}}),u):
[]},!0)}function rt(i,r){return!t.config.enableFallbackIconsForJumpLists||!p[i]?!
1:n.contains(p[i],r)}function ri(n,i,r,f,e,o,s,h){var
l=r.id,p=r.filePath,v=t.config.enableJumplistRestrictions&&ft[l],b,w;if(!
v&&p&&t.config.enableJumplistRestrictions){b=p.toLowerCase();for(w in
y)if(b.includes(w)){v=y[w];break}}v&&v.length==0||(t.RuntimeConfig.AlwaysWide||!
et.find(function(n){return n==l}))&&(i.calculateChildSuggestions=function(){return
ui(n,l,p,i,r,v,f,e,o,s,h)},t.config.maxJLcm&&u(i,function(n){var u=[],o,s;return
n||(i.calculateChildSuggestions&&i.calculateChildSuggestions(),!
i.childSuggestions||t.RuntimeConfig.AlwaysWide&&i.previewPaneType||(o=!
1,i.childSuggestions.filter(function(n){return n.type=="JL"&&!
n.displayed&&n.groupType==t.GroupType.JumpListTasks}).slice(0,t.config.maxJLcm).for
Each(function(n){o=!0;var t=rt(i.deviceItem.id,n.groupType)?
i.getIcon:c(n.jumpListItem,n.parent,!
1,l),s={verb:"JumpListTask_"+l+"_"+n.text,displayName:n.text,executeSync:function()
{return a(r,n,f,e)},getIcon:t};u.push(s)}),s=!
1,i.childSuggestions.filter(function(n){return n.type=="JL"&&!
n.displayed&&n.groupType!
=t.GroupType.JumpListTasks}).slice(0,t.config.maxJLcm).forEach(function(n,t){var
i,h;o&&!s&&(i={},u.push(i));s=!
0;h={verb:"JumpList_"+l+"_"+t,displayName:n.text,executeSync:function(){return
a(r,n,f,e)},getIcon:c(n.jumpListItem,n.parent,!0,l)};u.push(h)}))),u},!0))}function
ui(i,r,u,f,e,s,v,y,p,w,b){var
nt,d,ot,k,tt,ft,g,it,et,ct;if(f.calculateChildSuggestions=null,nt=e.jumpList,nt&&nt
.length!=0)
{for(d=u||"",ot=d.indexOf("}"),d=d.substr(ot+1),k=[],tt=0,ft=nt;tt<ft.length;tt+
+)if(g=ft[tt],!s||n.contains(s,g.type)){var st=l(g.type),ht=st!
=t.GroupType.JumpListTasks,lt=function(u){var w;if(ut(u))return"continue";var
b=rt(f.deviceItem.id,l(g.type))?
f.getIcon:c(u,f,ht,r),h="JL",s=t.createSuggestion(i,u.displayName,b,null,h,u.displa
yName,n.InstrumentedItem.createInstrumentedItem(p,h),2,f.sequenceNumber,ht,null,nul
l,!0);s.click=function(){return
a(e,s,v,y)};s.jumpListItem=u;s.groupType=st;s.groupDisplayName=g.name;s.parent=f;s.
tooltip=u.description;w=d&&u.path.endsWith(d);w||
(s.path=u.path);o(s,"calculateJumpListSuggestions")&&(k.push(s),fi(e,s,v,y))};for(i
t=0,et=g.items;it<et.length;it+
+)ct=et[it],lt(ct)}k.length>0&&(f.childSuggestions=f.childSuggestions?
f.childSuggestions.concat(k):k,h(k,v),b.instrumentDataSource(p,w,k,null))}}function
c(n,i,r,u){return function(f,e){return
t.getIcon(n,u+"_"+n.path+"_"+n.displayName,"jumpList",!r,!1)(f,function(n){n?
e(n):i.getIcon(f,e)})}}function ut(i){return i.displayName?!
t.RuntimeConfig.AlwaysWide&&n.olderThan2Weeks(i.lastAccessed)?!0:!1:!0}function
l(n){switch(n){case 0:return t.GroupType.JumpListTasks;case 1:return
t.GroupType.JumpListPinned;case 2:return t.GroupType.JumpListRecent;case 3:return
t.GroupType.JumpListFrequent;default:return t.GroupType.JumpListCustom}}function
a(n,i,r,u){t.Promise.safeChain("launchJumpList",function(){return
i.jumpListItem.launchAsync()},null,function()
{i.jumpListItem.deleteAsync&&t.DialogBox?
t.DialogBox.show(r.getLocString("JumpListItemUnavailableDeleteConfirmation"),
[{id:null,text:r.getLocString("Cancel"),selected:!0,action:function(){return
r.setFocusInSearchBox(null,"jumpListItemDialogBoxCancel")}},
{id:null,text:r.getLocString("Remove"),selected:!1,action:function()
{v(n,i,r,u);r.setFocusInSearchBox(null,"jumpListItemUnavailable1")}}]):
(u.showTemporaryMessage(r.getLocString("JumpListItemUnavailable")),v(n,i,r,u),r.set
FocusInSearchBox(null,"jumpListItemUnavailable2"))})}function v(n,i,r,u){var
f=function(){return ei(i)},e;i.jumpListItem.deleteAsync?
(e=i.parent.childSuggestions.length==1,t.Promise.safeChain("deleteJumpList",functio
n(){return i.jumpListItem.deleteAsync()},function()
{n.getJumpListAsync&&t.Promise.safeChain("getJumpListAsync",function(){return
n.getJumpListAsync()},function(n){e&&n.some(function(n){return
l(n.type)==i.groupType&&n.items.some(function(n){return!ut(n)})})?f():
(r.refreshCurrentPane(),u.showTemporaryMessage(r.getLocString("RemovedFromList",i.t
ext)))},f)},f)):f()}function fi(n,t,i,r){t.jumpListItem.deleteAsync&&u(t,function()
{var
u={verb:"RemoveFromThisList",displayName:i.getLocString("RemoveFromThisList"),execu
teSync:function(){return v(n,t,i,r)},icon:{type:2,content:"&#xE711"}};return[u]},!
0)}function ei(n){var i=_ge(n.id);t.setVisibility(i,!1);n.suppressed=!0}function
oi(n,t,i){if(n&&n.uxHint){var r=t?
HitHighlightingParser.addMarkers(n.uxHint,t):n.uxHint;return
i.getLocString("RelatedSynonym",r)}return null}var
r=SearchAppWrapper.CortanaApp,ft={"Microsoft.MicrosoftEdge_8wekyb3d8bbwe!
MicrosoftEdge":[0],"Microsoft.InternetExplorer.Default":[0],Chrome:
[0],"360browser":[0]},y={skype:[],outlook:[0],"360browser":[0],chrome:[0],iexplore:
[0],opera:[0],firefox:[0],safari:
[0]},e=[[t.MatchType.LastModifiedBy,"lastModifiedBy"],
[t.MatchType.Author,"author"],[t.MatchType.Artist,"artist"],
[t.MatchType.Album,"album"],[t.MatchType.Genre,"genre"],
[t.MatchType.Tags,"tags"],],p={"Microsoft.MicrosoftEdge_8wekyb3d8bbwe!
MicrosoftEdge":
[t.GroupType.JumpListTasks],"Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App":
[t.GroupType.JumpListTasks],"Microsoft.XboxApp_8wekyb3d8bbwe!Microsoft.XboxApp":
[t.GroupType.JumpListCustom],"com.squirrel.Teams.Teams":
[t.GroupType.JumpListTasks],"Microsoft.ScreenSketch_8wekyb3d8bbwe!App":
[t.GroupType.JumpListTasks]},et=["Microsoft.W
indows.Explorer",],g;t.getFileExtension=ot;t.toDate=st;t.getTodayTimeString=b;t.set
FileTemplate=f;t.enrichMetadataFromDuplicate=ht;t.getOneDriveSuggestionIcon=ct;t.ge
tIconForTypeAsync=k;t.isValidIcon=d;t.isValidSuggestion=o;t.setExtraVerbs=u;t.setEx
traVerbsAsync=lt;g=function(){function i(n,t,i)
{this._host=n;this._instrumentationHelper=t;this._temporaryMessageHandler=i}return
i.prototype.parse=function(i,r,u,f,e,o){for(var v,y,p,s=this,c=[],w=function(t)
{n.safeExecute(function(){return
it(i,t,u,r,s._host,s._temporaryMessageHandler,t.suggestionType,s._instrumentationHe
lper,c,function(){return!0})},"parseLocalSuggestion
"+u)},l=0,a=f.suggestions;l<a.length;l++)v=a[l],w(v);
(t.isFileOrFolderLocalDataSource(u)||u=="IBA")&&h(c,this._host);y=u=="PP"||
u=="ST";p={rankerExtraInfo:t.config.logCIVersionToInstrumentation&&y?
{ciVersion:n.WSB.ConstraintIndex.currentCIVersion}:null,maxedOut:f.maxedOut};o(u,c,
p)},i}
();t.SuggestionsParser=g;t.lookupById=wt;t.decorateSuggestionsWithParentFolder=h;t.
parseLocalSuggestion=it})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){var i;(function(i)
{i.currentCIVersion="-1";var r=function(){function r(u,f,e,o){var s=this;
(this._ariaLogger=e,this._lightweightStorage=o,f.bindShown(function(){var
n=s.getContstraintIndexInfo(u.lastUrl);i.currentCIVersion=n?String(n.version):"-
1"}),f.hasFallbackHappened())||f.bindAppHidden(function(){var
a,h,o;if(n.isBingEnabled()&&n.isBrowserOnline()){var
w=n.getWindowHost().toLowerCase(),nt=w=="bing.com"||
w.endsWith(".bing.com"),tt=typeof ClientTestHooks=="undefined";if(!nt&&(tt||!
ClientTestHooks||!
ClientTestHooks.isTesthookParamSet("isTest")))return;if(a=s._lightweightStorage.get
Item(r.LastCIDownloadAttemptKey),h=null,a&&(h=new
Date(a)),h&&(s.getTimeDiffInMins(h)<t.config.waitBetweenCIDownloadCallsInMins?
t.config.waitBetweenCIDownloadCallsInMins:0))return;o=s.getContstraintIndexInfo(u.l
astUrl);i.currentCIVersion=String(o.version);var
v=t.getCurrentLanguage(),e=t.config.ciVersion,b=u.urlResult,f=s.parseUrlResult(b),k
=i.currentCIVersion,d=s.getUrlForCiCab(e,v),g=n.contains(t.config.blacklistedCiVers
ions,o.version)&&e<o.version,it=e==f.version&&f.errorCode!
="00000000";if(e>0&&t.config.supportedCiMarkets[v]&&(v!=o.language||e>o.version||
g||it)&&(!f.url||g||u.lastUrl==f.url||f.errorCode!="00000000")){var
y="cis_v"+e,p="ci_v"+e,c=s._lightweightStorage.getItem(y)?
parseInt(s._lightweightStorage.getItem(y)):0,l=s._lightweightStorage.getItem(p)?
parseInt(s._lightweightStorage.getItem(p)):0;s._lightweightStorage.setItem(r.LastCI
DownloadAttemptKey,n.getCurrentDate().toString());t.Promise.safeChain("constraintIn
dexDownloader.tryDownloadFromUrlAsync",function(){return
u.tryDownloadFromUrlAsync(d)},function(n){if(n){var
t=s.getContstraintIndexInfo(u.lastUrl);i.currentCIVersion=String(t.version);c+
+;s._lightweightStorage.setItem(y,c.toString())}else
SharedLogHelper.LogError("constraintIndexDownloader.tryDownloadFromUrlAsync","urlRe
sult: "+b,"Download failed");l+
+;s._lightweightStorage.setItem(p,l.toString());s._ariaLogger&&(f=s.parseUrlResult(
u.urlResult),s._ariaLogger.logCIDownloadStatus(i.currentCIVersion==String(e)&&n,!
1,f.version==1?!0:!
1,String(e),k,i.currentCIVersion,c.toString(),l.toString(),f.errorCode))},function(
n)
{s._ariaLogger&&(f=s.parseUrlResult(u.urlResult),s._ariaLogger.logCIDownloadStatus(
!1,!0,f.version==1?!0:!
1,String(e),k,i.currentCIVersion,c.toString(),l.toString(),f.errorCode,n.message))}
,null,d)}}})}return r.prototype.parseUrlResult=function(n){var
r=null,t=null,u=1,i,f;return n&&(i=n.split(":0x"),i.length>1?(r=i[0],t=i[1],t!
="00000000"&&SharedLogHelper.LogError("constraintIndexDownloader.urlResult",t,"Down
load encountered
problems"),f=this.getContstraintIndexInfo(r),u=f.version):SharedLogHelper.LogError(
"constraintIndexDownloader.parseUrlResult","urlResult: "+n,"Invalid URL")),
{url:r,version:u,errorCode:t}},r.prototype.getContstraintIndexInfo=function(n){var
r=-1,u="",t,i;return n&&(t=n.split("/"),t.length>1?(i=t[t.length-
1].split("."),u=i.length==2?i[0]:"",r=+t[t.length-
2]):SharedLogHelper.LogError("constraintIndexDownloader.getContstraintIndexInfo","u
rl: "+n,"Invalid URL")),
{version:r,language:u}},r.prototype.getUrlForCiCab=function(n,t)
{return"https://www.bing.com/bcs/ci/"+n+"/"+t+".cab"},r.prototype.getTimeDiffInMins
=function(t){if(!n.isValidDate(t))return 0;var
i=t.getTime(),r=n.getCurrentTime();return Math.round((r-i)
%864e5%36e5/6e4)},r.LastCIDownloadAttemptKey="LastCIDownloadAttempt",r}
();i.ConstraintIndexDataLoader=r})(i=t.ConstraintIndex||(t.ConstraintIndex={}))})
(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={}));__extends=this&&this.__extends||function(){var n=function(t,i)
{return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t)
{n.__proto__=t}||function(n,t){for(var i in
t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r()
{this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):
(r.prototype=i.prototype,new r)}}(),function(n){var t;(function(t){var
r=function(i){function r(n){var t=i.call(this,"MODC")||this;return
t._accessTokenManager=n,t}return __extends(r,i),r.prototype.getName=function()
{return"MyStuffOneDriveDataProvider"},r.prototype.updateOneDriveHeaders=function(n,
i){n||(n={});t.getAuthAccountForCloudContent()=="Windows"&&t.cortanaAccountType!
=3&&t.getWindowsAndCortanaAccountIdentityDiff()!=1&&t.substrateProvidersEnabled()?
this._accessTokenManager.getAccount(0,t.getBingResourceOrScope(0),!1,!0,function(t)
{n["X-Search-RPSToken"]=t&&t.Token?
t.Token:"";i(n)},"Windows"):i(n)},r.prototype.getBaseUrl=function(){return
t.config.myStuffOneDriveRootUrl},r.prototype.getPostBody=function(n){return
n.taskFrame?n.taskFrame.raw:""},r.prototype.fetch=function(t,r,u,f,e,o,s){var
c=this,h;n.isDataSourceEnabled(this._dataSource,t)&&(h=function(s){var
h=Object.assign({},o);delete h[n.Service.QueryParams.ImpressionGuid];delete
h[n.Service.QueryParams.RequestElToken];i.prototype.fetch.call(c,t,r,u,f,e,h,s)},th
is.updateOneDriveHeaders(s,h))},r}
(n.JsonDataProvider),i;t.MyStuffOneDriveDataProvider=r;i=function(){function i(n)
{this._host=n}return i.prototype.parse=function(n,i,r,u,f,e){var
o=[];u&&(u.Results?
(this.addContent(n,o,u.Results.OneDriveDocuments,"FL",t.Scope.Documents,i),this.add
Content(n,o,u.Results.OneDriveFolders,"FD",t.Scope.Folders,i),this.addContent(n,o,u
.Results.OneDriveImages,"LI",t.Scope.Photos,i),this.addContent(n,o,u.Results.OneDri
veVideos,"LV",t.Scope.Videos,i),this.addContent(n,o,u.Results.OneDriveAudio,"MU",t.
Scope.Music,i)):SharedLogHelper.LogError("MyStuffOneDriveParser",null,new
Error("Missing Results
property")));t.decorateSuggestionsWithParentFolder(o,this._host);e("MODC",o,null)},
i.prototype.addContent=function(i,r,u,f,e,o){var
s=this,c,l,v,a;if(u&&n.isSuggestionTypeEnabled("MODC",f,7,i)){var
h=t.Scope[e],y=function(u){var k,c,d,w,g,b;if(!u.Content)return
SharedLogHelper.LogError("MyStuffOneDriveParser",h,new Error("Missing Content
property")),{value:void 0};if(c=u.Content.OneDriveData,!c)return
SharedLogHelper.LogError("MyStuffOneDriveParser",h,new Error("Missing OneDriveData
property")),{value:void
0};if(d=c.propertyHits.length==1&&c.propertyHits[0]=="TextContent",d&&(!
t.config.minLengthForContentMatch||
i.queryToFetch.length<t.config.minLengthForContentMatch))return{value:void
0};if(w=c.SeeMore,!w)return SharedLogHelper.LogError("MyStuffOneDriveParser",h,new
Error("Missing SeeMore property")),{value:void 0};var
v=t.getEffectiveQuery(i),a=t.decodeHtml(c.Name),y=void
0;if(a.includes(HitHighlightingParser.startMarker)?
y=HitHighlightingParser.removeMarkers(a):
(y=a,a=HitHighlightingParser.addMarkers(y,v)),f=="FL"&&(g=c.FullPath.lastIndexOf("\
\"),g!=-1)){var
nt=c.FullPath.substr(g+1),tt=HitHighlightingParser.addMarkers(nt,v),rt=!
tt.includes(HitHighlightingParser.startMarker)&&a.includes(HitHighlightingParser.st
artMarker);rt||(a=tt,y=nt)}var
it=t.ScopeConfig[e].icon,ut=t.isMedia(f),ft=t.getOneDriveSuggestionIcon(ut,it,c.Thu
mbnail.replace(":Thumbnail",":Cropped176x176#h=176&w=176"),c.Extension,c.Id),l=t.cr
eateSuggestion(i,a,ft,it,f,y,n.InstrumentedItem.createInstrumentedItem(o,f),7,o,!
0);l.url=w;l.path=c.FullPath;l.matchedOnlyOnContent=d;l.lastModifiedDate=t.toDate(c
.DateModified);c.Extension&&(l.extensionLC=c.Extension.toLocaleLowerCase());b=void
0;f=="FL"&&c.TextContent&&n.contains(c.propertyHits,"TextContent")&&(k=t.tryGetText
ContentMatch(c.TextContent,v),l.textContentIfMatched=k[0],b=k[1]);c.Artist&&(l.arti
st=HitHighlightingParser.removeMarkers(c.Artist));c.Album&&(l.album=HitHighlighting
Parser.removeMarkers(c.Album));a.includes(HitHighlightingParser.startMarker)||(b?
l.match=b:c.Path&&n.contains(c.propertyHits,"Path")&&(l.match=t.tryGetLocationMatch
(c.Path,v)));l.sourceForGroup=2;t.setFileTemplate(i,v,t.isL2(i),l,p._host);l.click=
function(){return
s._host.launchUri(w)};c.LocationUrl&&(l.locationUrl=c.LocationUrl,t.setExtraVerbs(l
,function(){var
n={verb:t.JumplistActionItemType[t.JumplistActionItemType.S_OpenFileLocationInBrows
er],displayName:s._host.getLocString("OpenFileLocationIn",t.getGroupSourceDisplayNa
me(2,s._host)),executeSync:function(){return
s._host.launchUri(c.LocationUrl)},icon:{type:2,content:"&#xE838"}};return[n]},!
0));t.isValidSuggestion(l,"MyStuffOneDriveParser
"+h)&&r.push(l)},p=this;for(c=0,l=u;c<l.length;c++)if(v=l[c],a=y(v),typeof
a=="object")return a.value}},i}();t.MyStuffOneDriveParser=i})(t=n.WSB||(n.WSB={}))}
(AutoSuggest||(AutoSuggest={})),function(n){var t;(function(t){var
i=SearchAppWrapper.CortanaApp,r="AFC",e=30,u=4,o=32,s=32,h=function(){function f(n)
{var t=this;n.bindShown(function(){t._userActivityItemsCache=null})}return
f.prototype.getName=function()
{return"ActivityFeedDataProvider"},f.prototype.fetch=function(t,i,u,f,e){var
o=this;t.enabledDataSources[r]&&(this._userActivityItemsCache?
n.invokeAsynchronously("ActivityFeedDataProvider.callback",function(){e()&&i(r,
{items:o._userActivityItemsCache.slice(0)},undefined,1)}):this.getUserActivityItems
WithOptionsAsync(function(n){o._userActivityItemsCache=n||[]
;e()&&i(r,
{items:o._userActivityItemsCache.slice(0)},undefined)}))},f.prototype.getUserActivi
tyItemsWithOptionsAsync=function(r){var
o=this,s=e*864e5,f=i.userActivityForWebHelper,u;n.safeExecute(function()
{u=f.createActivityQueryOptions();u.endTime=n.getCurrentDate();u.startTime=new
Date(+u.endTime-s);u.collapseOnActivityId=!
0;u.activitySortAggregationType=4;u.activitySortByProperty="System.ActivityHistory.
EndTime";u.activitySortOrder=0},"createActivityQueryOptions",undefined,undefined,fu
nction(){return u=null});u?
t.Promise.safeChain("getUserActivityItemsWithOptionsAsync",function(){return
f.getUserActivityItemsWithOptionsAsync(o.getUserActivityItemsCount(),!!
t.config.filterActivitiesToActivatableItems,u)},r,function(){return
r([])}):r([])},f.prototype.getUserActivityItemsCount=function(){var
n=i.textScaleFactor||1;return t.RuntimeConfig.AlwaysWide&&n==1?u:u-1},f}
(),f;t.ActivityFeedDataProvider=h;f=function(){function r(n){var
t=this;this._getEdgeIcon=n.getEdgeIcon;n.bindShown(function()
{t._isInternetConnectionMetered=n.isInternetConnectionMetered()})}return
r.prototype.parse=function(n,r,u,f,e,o,s){var
c=this,h,l;t.config.backplateAllIconsInZI?this.innerParse(n,r,u,f,e,o,s):
(h={},f.items.forEach(function(n)
{n&&n.appId&&(h[n.appId]=n.appId)}),l=Object.keys(h),t.Promise.safeChain("ActivityF
eedSuggestionsParser parse",function(){return
i.queryFormulationView.deviceSearch.findAppsAsync(l)},function(t){return
c.innerParse(n,r,u,f,e,o,s,t)},function(){return
c.innerParse(n,r,u,f,e,o,s)},s))},r.prototype.innerParse=function(i,r,u,f,e,o,s,h)
{for(var y,l=[],p=function(f){var v=!h||
h[f.appId]&&h[f.appId].isImmersive,o=a.getGetIcon(f,v),s=a.getIcon(f,o),c="AFC",e=t
.createSuggestion(i,f.activityDisplayText,s?
undefined:o,s,c,f.activityDisplayText,n.InstrumentedItem.createInstrumentedItem(r,c
),18,r,t.localDataSourceMayContainPII(u),f.id,function(){return
f.launchActivity()});e.additionalInfoText=f.description||
f.contentUri;e.tooltip=f.activityDisplayText;e.additionalInfoText&&(e.tooltip+="\n\
n"+e.additionalInfoText);l.push(e)},a=this,c=0,v=f.items;c<v.length;c+
+)y=v[c],p(y);o(u,l,undefined)},r.prototype.getIcon=function(n,t){return
n.appImageUri&&!this._isInternetConnectionMetered?
{content:n.appImageUri,type:0,canFail:!0,isValidSize:function(n,t){return
n>=o&&t>=s},getFallbackIcon:t}:undefined},r.prototype.getGetIcon=function(n,i)
{return n.appId==t.EdgeAppId?
this._getEdgeIcon:t.Promise.safeChainWithGlobalCaching("activityFeedClientIcon",fun
ction(r){return n.getActivityAppLogoAsync(t.getImageSizeValue(r)).then(function(r)
{return t.toIcon(r,"activityFeedClientIcon toIcon",null,i?
n.logoBackgroundColor:undefined)})},function(i){return
n.id+"_"+t.getImageSizeValue(i)+"px"})},r}();t.ActivityFeedSuggestionsParser=f})
(t=n.WSB||(n.WSB={}))}(AutoSuggest||(AutoSuggest={})),function(n){var t;
(function(n){var t;(function(t){var i=function(){function t(t){var
i=this;t.bindQueryChangedOrInitialized(function(){(!
n.config.keepLastKeystrokeCache||
i._currentWebSignals)&&(i._previousWebSignals=i._currentWebSignals,i._currentWebSig
nals=null);(!n.config.enableCISpeller||
i._currentSpellerTrigger)&&(i._previousSpellerTrigger=i._currentSpellerTrigger,i._c
urrentSpellerTrigger=null)});t.bindConversationStart(function()
{i._previousWebSignals=null;i._currentWebSignals=null;i._previousSpellerTrigger=nul
l;i._currentSpellerTrigger=null;i._previousBestMatchSuggestion=null})}return
t.prototype.updateWebSignalsData=function(n,t)
{this._currentWebSignals={query:n,signals:t}},t.prototype.setPreviousTopHit=functio
n(n){this._previousBestMatchSuggestion=n},t.prototype.getPreviousTopHit=function()
{return
this._previousBestMatchSuggestion},t.prototype.updateSpellerTriggerData=function(n,
t)
{this._currentSpellerTrigger={query:n,triggerSpeller:this.triggerSpellerOnTheNextKe
yStroke(t,n)}},t.prototype.getPreviousEventWebSignalsData=function(n){return
this._previousWebSignals&&this.isPreviousEventQuery(this._previousWebSignals.query,
n)?this._previousWebSignals.signals:null},t.prototype.disableCISpeller=function(n)
{return
this._previousSpellerTrigger&&this._previousSpellerTrigger.triggerSpeller&&this.isP
ossibleFirstMisspelling(n,this._previousSpellerTrigger.query)?!0:!
1},t.prototype.enableCISpeller=function(t){return n.config.enableCISpeller?
this._previousSpellerTrigger&&this._previousSpellerTrigger.triggerSpeller&&this.dis
ableCISpeller(t)?!
1:this._previousSpellerTrigger&&this.isPossibleFirstMisspelling(this._previousSpell
erTrigger.query,t)?!
0:this._previousSpellerTrigger&&(this.isTypedEventQuery(this._previousSpellerTrigge
r.query,t)||
this.isBackspaceEventQuery(this._previousSpellerTrigger.query,t))&&this._previousSp
ellerTrigger.triggerSpeller:this._previousSpellerTrigger&&this.isPreviousEventQuery
(this._previousSpellerTrigger.query,t)&&this._previousSpellerTrigger.triggerSpeller
},t.prototype.triggerSpellerOnTheNextKeyStroke=function(t,i){return
n.config.enableCISpeller==1?!0:t.every(function(n){return n.notAResult})?!
0:t.length>0&&this.isWebSpellCorrectedSuggestion(t[0])&&t.every(function(n){return
n.handoffType==0})?!0:n.config.enableCISpeller==2&&!t.some(function(t){return
n.isApp(t.type)||n.isSetting(t.type)})?!0:this.enableCISpeller(i)?!0:!
1},t.prototype.isWebSpellCorrectedSuggestion=function(n){return n.type=="SC"||
n.type=="OS"},t.prototype.isPreviousEventQuery=function(n,t){return
n&&t&&n.length==t.length-
1&&t.startsWith(n)},t.prototype.isBackspaceEventQuery=function(n,t){return
n&&t&&n.length==t.length+1&&n.startsWith(t)},t.prototype.isTypedEventQuery=function
(n,t){return(n||
n==="")&&t&&n.length<t.length&&t.startsWith(n)},t.prototype.isPossibleFirstMisspell
ing=function(t,i){return
this._previousBestMatchSuggestion&&this._previousBestMatchSuggestion.query.toLocale
LowerCase().startsWith(t.toLocaleLowerCase())&&!
this._previousBestMatchSuggestion.query.toLocaleLowerCase().startsWith(i.toLocaleLo
werCase())&&this.isTypedEventQuery(t,i)&&i.length>=n.config.enableCISpellerAtPrefix
Length?!0:!1},t}();t.PreviousKeystrokeCache=i})(t=n.Cache||(n.Cache={}))})
(t=n.WSB||(n.WSB={}))}(AutoSuggest||(AutoSuggest={})),function(n){var t;
(function(t){var i;(function(t){function c(t,f){e=t;var o=_ge("dialogBox");if(!o)
{n.log("DialogBox wrapper element not found");return}sj_be(o,"click",function(n)
{var u=n.target.id,t=i.filter(function(n){return n.id==u}).shift();t?
(t.action&&t.action(),r()):u=="dialog_overlay"&&r();sj_sp(n)},!
0);f.bindKeyDown(function(n){var f,e,t,o,r,i;switch(n){case 39:for(t=u(),e=!
1,r=0,i=void 0;i=t[r];r++)if(e){f=i;break}else if(e=i.selected==!
0,e&&r+1==t.length){f=t[0];break}break;case 37:for(t=u(),o=void 0,r=0,i=void
0;i=t[r];r++){if(i.selected==!0){f=o?o:t[t.length-1];break}o=i}}f&&h(f)})}function
l(t,r){var u,o;if(i=[],r.length==0)throw new Error("DialogBox: Empty buttons
array");i=r.map(function(n,t){var i=n;return
i.id="dialog_b"+t,i.narratorText=i.text,i.selected&&(u=i.id),i});o={isVisible:!
0,messageText:t,buttons:i};e.updateDialogBox(o);u&&n.safeSetTimeout(function()
{return _ge(u).focus()},0,"DialogBox.show");f=!0}function r()
{if(f)e.updateDialogBox({isVisible:!1}),f=!1}function o(){return f}function u()
{return i.forEach(function(n){return
n.selected=_ge(n.id)==_d.activeElement}),i}function a(){return[]}function s()
{return u().filter(function(n){return n.selected}).shift()}function h(n){for(var
r,t=0,u=i;t<u.length;t+
+)r=u[t],r.selected=r.id==n.id,r.selected&&_ge(n.id).focus()}function v(){if(o())
{var n=s();n&&(n.action&&n.action(),r())}}function y(){return!1}var i=[],e,f=!
1;sj_be(sj_b,"keydown",function(n){if(n.keyCode==9&&o()){var
t=u();t.length>0&&t[t.length-1].selected&&r();sj_sp(n)}},!
0);t.init=c;t.show=l;t.hide=r;t.isVisible=o;t.getSelectableItems=u;t.getSelectableI
temsByGroup=a;t.getSelectedItem=s;t.select=h;t.submit=v;t.onAfterKeyDown=y})
(i=t.DialogBox||(t.DialogBox={}))})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(n){n.DialogBoxViewModel=n.DialogBox})
(t=n.WSB||(n.WSB={}))}(AutoSuggest||(AutoSuggest={})),function(n){var t;
(function(t){function l(n){return n.includes("form=vsranf")}function a(t){var
i=n.tryParseUrl(t,!0);return!!i&&/[\?\&]q=/i.test(i.parameters)&&!/
[\?\&]view=detail/i.test(i.parameters)}function yt(t){var i=n.tryParseUrl(t,!
0);return!!i&&at.test(i.parameters)}function pt(n){switch(n){case 17:case 1:case
0:return 1;case 13:return 2;case 14:return 3;default:throw Error("Unsupported
handoff type: "+n);}}function v(n){switch(n){case 1:return 1;case 2:return 7;case
3:return 8;default:throw Error("Unsupported vertical: "+n);}}function y(t){var
i=n.tryGetBingPathLC(t);return i?n.contains(ct,i)?2:n.contains(lt,i)?
3:n.contains(n.WebSearchPaths,i)?1:null:null}var o=t.PreviewPaneWidth-
24,w="miniserp_focus",b="disableOutline",r=2,k=["tab-active","slide"],d=["aria-
expanded"],g="videoPreview",nt=300,f=30,tt="IsSearchAppXYFocusEnabled",it="WinJS",r
t="dFocusExit",i="win-xyfocus-
suspended",s="MiniSerpContentLoaded",ut="Rewards.ReportActivity.Success",ft="Reward
s.ReportActivity.Failure",p,e;t.MiniSerpFetchEvent="miniSERP.Fetch";var
et=["/account/","/settings.aspx"],u=function(){var n={};return
n[37]="left",n[39]="right",n[38]="up",n[40]="down",n}
(),ot=1e4,h=800,st=100,ht=["&form=s00037&"],ct=["/images/search","/images"],lt=["/v
ideos/search","/videos"],at=/[\?\&]FORM=HDRSC[1-
3]/i,c="ClientInst",vt="MiniSERPRefetch";p=function(){function i(i,r,f,e,o,h){var
c=this;this._host=i;this._navigationHelper=r;this._instrumentationHelper=f;this._se
quenceNumberManager=e;this._msRewardsViewModel=o;this._latencyInstrumentation=h;thi
s._deviceScale=1;this._previewRequestId=0;this._previousURLs=[];this.blockedMiniSER
PUrls=[_w.location.origin+_w.location.pathname];this._root=_ge("qfPreviewPane");thi
s._seeAllResults=_ge("seeAllResults");this._footer=_ge("footer");this._mask=_ge("pr
eviewMask");this._forceLoadScreen=_ge("forceLoadMessage");this._contentContainer=_g
e("previewContainer");this._scrollArea=_ge("qfPreviewScrollArea");this._loadingScre
en=_ge("loadingScreen");sj_be(this._scrollArea,"scroll",function(t)
{c._iframe&&n.contains([
2,3],c._currentVertical)&&c._iframe.contentWindow.dispatchEvent(new
Event(t.type,t));c._calculateIFrameHeight&&c._calculateIFrameHeight()});this._foote
r&&sj_be(this._footer,"keydown",function(i){c._iframe&&n.isUpOrDownKey(i.keyCode)?
(i.keyCode==38?c.tryExecuteFocusOnMiniSerp(function(){return
c._focusHelper.moveFocusToEdgeFocusableElement(1)}):t.RuntimeConfig.AllowKeyboardNa
vCycling&&c.tryExecuteFocusOnMiniSerp(function(){return
c._focusHelper.moveFocusToEdgeFocusableElement(0)}),sj_pd(i),sj_sp(i)):i.keyCode==1
3&&c._footer.click()});this._mask&&sj_be(this._mask,"keydown",function(n)
{n.keyCode==13&&c._mask.click()});sj_be(_w,"message",function(n){var r=n.data?
n.data.msWinJSXYFocusControlMessage:null,i,f;r&&r.type==rt&&(i=r.direction,f=r.keyC
ode,c._focusHelper&&!c._focusHelper.isL2Visible()&&c._focusHelper.getXYFocusRoot()!
=c._originalMiniSerpXYFocusRoot?
(c._focusHelper.setXYFocusRoot(c._originalMiniSerpXYFocusRoot),c.tryExecuteFocusOnM
iniSerp(function(){return c._focusHelper.moveFocus(i,f)})):(i!
=u[t.getRtlAdjustedKey(39)]&&n.source.blur(),i==u[40]||
i==u[38]&&t.RuntimeConfig.AllowKeyboardNavCycling?c._footer?
c._footer.focus():c._focusHelper.moveFocusToEdgeFocusableElement(i==u[38]?1:0):i!
=u[t.getRtlAdjustedKey(37)]||c._host.searchBoxHasFocus()||
c._host.setFocusInSearchBox(f,"previewPaneUnfocus")))});i.bindShown(function()
{ThresholdUtilities.getCortanaHeaders(function(n){n&&n["X-BM-
DeviceScale"]&&(c._deviceScale=+n["X-BM-
DeviceScale"]/100)});c.setVertical(1)});i.bindAppHidden(function()
{c._seeAllResults&&(c._seeAllResults.innerText="");c._currentVertical=null});i.bind
SearchBoxGotFocus(function()
{c._focusHelper&&c._focusHelper.onSearchBoxFocusChanged()});sj_evt.bind(s,function(
)
{c._onIFrameLoadedCallback&&(c._onIFrameLoadedCallback(),c._onIFrameLoadedCallback=
null)});this._msRewardsViewModel&&(sj_evt.bind(ut,function(n){var
t=n[1];c._msRewardsViewModel.notifyPointsRewarded(t)}),sj_evt.bind(ft,function(n)
{var t=n[1];SharedLogHelper.LogError("RewardsReportActivityFailureEvent",null,t?new
Error(t):null)}))}return i.prototype.init=function(n)
{this._previewPaneViewModelParent=n},i.prototype.finalizeKeystroke=function()
{},i.prototype.getSelectableItems=function()
{return[]},i.prototype.getSelectableItemsByGroup=function()
{return[]},i.prototype.getSelectedItem=function(){return
null},i.prototype.select=function(){},i.prototype.onAfterKeyDown=function(){return!
1},i.prototype.clear=function()
{this._previewedSuggestion=null;this._previewedQuery=null;this._onPreviewPaneRender
ed=null;this._footer&&(t.setVisibility(this._footer,!
1),this._footer.onclick=null);this._mask&&(t.setVisibility(this._mask,!
1),this._mask.onclick=null);this._forceLoadScreen&&this.clearForceLoadPage();this.c
learContent();this._previousURLs=[]},i.prototype.showForceLoad=function(n,i){var
r=this;this._instrumentationHelper.logClientInstEvent("Select","ForceLoadOpened",th
is._sequenceNumberManager.getSequenceNumber(),
{suggestionText:n});this.stopLoadingScreen();t.setVisibility(this._scrollArea,!
1);t.setVisibility(this._footer,!1);t.setVisibility(this._mask,!
1);t.setVisibility(this._forceLoadScreen,!
0);this.formatForceLoadPage(n);this._forceLoadScreen.onclick=function()
{r.clearForceLoadPage();r.startLoadingScreen();i()}},i.prototype.clearForceLoadPage
=function(){for(t.setVisibility(this._forceLoadScreen,!
1),t.setVisibility(this._scrollArea,!
0),this._forceLoadScreen.onclick=null,this._forceLoadScreen.classList.remove("force
LoadContainer");this._forceLoadScreen.hasChildNodes();)this._forceLoadScreen.remove
Child(this._forceLoadScreen.lastChild)},i.prototype.formatForceLoadPage=function(n)
{var
s=this._host.getLocString("ForceLoadMessage"),h=this._host.getLocString("ForceLoadB
utton"),e=s.split("{0}"),o=sj_ce("div","","accentColor"),r,i,u,f,t;this._forceLoadS
creen.appendChild(o);r=_d.createElement("span");r.id="forceLoadIcon";r.innerHTML="&
#xE721";o.appendChild(r);i=sj_ce("div","forceLoadQueryText","");i.appendChild(_d.cr
eateTextNode(e[0]));u=_d.createElement("span");u.textContent=n;i.appendChild(u);i.a
ppendChild(_d.createTextNode(e[1]));this._forceLoadScreen.appendChild(i);f=sj_ce("d
iv","","");this._forceLoadScreen.appendChild(f);t=_d.createElement("button");t.clas
sName="c-
button";t.id="forceLoadSubmit";t.type="submit";t.textContent=h;f.appendChild(t);thi
s._forceLoadScreen.classList.add("forceLoadContainer")},i.prototype.startLoadingScr
een=function(){t.setVisibility(this._scrollArea,!1);t.setVisibility(this._footer,!
1);t.setVisibility(this._mask,!1);t.setVisibility(this._loadingScreen,!
0)},i.prototype.stopLoadingScreen=function(){t.setVisibility(this._loadingScreen,!
1);t.setVisibility(this._scrollArea,!0)},i.prototype.clearContent=function()
{for(this._previewRequestId+=1,this._focusHelper=null,this._onIFrameLoadedCallback=
null;this._contentContainer.hasChildNodes();)this._contentContainer.removeChild(thi
s._contentContainer.lastChild);this._contentContainer.classList.remove("miniSerpCon
tainer");this._contentContainer.classList.remove("errorMessageContainer");this._ifr
ame&&(this._iframe=null,this._calculateIFrameHeight=null);this._mutationObserver&&(
this._mutationObserver.disconnect(),this._mutationObserver=null)},i.prototype.hasFo
cus=function(){if(this._host.searchBoxHasFocus())return!1;var
t=n.getCurrentActiveElement();return t&&t!
=this._iframe&&this._root.contains(t)},i.prototype.focus=function(){var
t=this,n;this.hasFocus()||(this._iframe?
(n=this.tryExecuteFocusOnMiniSerp(function(){return
t._focusHelper.moveFocusToLastFocusedElement()}),n?
this._host.setFocusInWebView("miniserp
focus"):this._host.setFocusInSearchBox(null,"MiniSERP VM Focus
failed")):this._previewPaneViewModelParent.focusPending=!
0)},i.prototype.blur=function(){},i.prototype.setVertical=function(n){if(n!
=this._currentVertical){if(this._seeAllResults)switch(n){case
1:this._seeAllResults.innerText=t.config.miniSerpPreview?
this._host.getLocString("SeeResultsBrowser"):this._host.getLocString("SeeAllResults
");break;case
2:this._seeAllResults.innerText=this._host.getLocString("SeeAllImageResults");break
;case
3:this._seeAllResults.innerText=this._host.getLocString("SeeAllVideoResults");break
;default:throw new Error("Unsupported vertical type:
"+n);}this._currentVertical=n}},i.prototype.update=function(i,r,u,f,e){var
o=this,h,l,c,y,a,s,v,p;if(this._previewedSuggestion=i,this._previewedQuery=r,this._
onPreviewPaneRendered=e,h=i.type=="MB"&&i.segments=="Organization"?
null:i.baseSearchUrl,l=pt(i.handoffType),this.setVertical(l),this._footer&&(this._f
ooter.onclick=function(t)
{o._previewPaneViewModelParent.onBeforeItemLaunch(n.getCurrentTime(),n.getInputType
(t),3);o._host.launchSearch(i.query,o._navigationHelper.getSearchUrl(r.fullPartialQ
uery,i.query,i.type,h,i.handoffType),!
1);o._previewPaneViewModelParent.onAfterItemLaunch(3)}),this._mask&&(this._mask.onc
lick=function(t)
{o._previewPaneViewModelParent.onBeforeItemLaunch(n.getCurrentTime(),n.getInputType
(t),3);o._host.launchSearch(i.query,o._navigationHelper.getSearchUrl(r.fullPartialQ
uery,i.query,i.type,h,i.handoffType),!
1);o._previewPaneViewModelParent.onAfterItemLaunch(3)}),c=l==2&&r.overrideAction==1
,t.config.th&&ClientTestHooks.isTesthookParamSet("noSerp"))
{this.renderIframe(null,"<html><body><\/body><\/html>",
{},undefined,c);y=n.getCurrentTime();this._previewPaneViewModelParent.onResponseRec
eived(y);return}a=u==0;s=c?
this._navigationHelper.getImageSearchUrl():this._navigationHelper.getSearchUrl(r.fu
llPartialQuery,i.query,i.type,h,i.handoffType,a?"WMSRPA":"WMSRPM",!
0,null,a);s+="&qfig="+this._instrumentationHelper.getImpressionGuid(this._sequenceN
umberManager.getSequenceNumber());this._msRewardsViewModel&&this._msRewardsViewMode
l.isRewardsEnabled()&&(s+="&rewards=1");this._previousURLs=[];c?(v=function()
{return o.renderErrorMessage(i.query)},p=r.overrideActionHandlerAsync,p(function(n)
{var t=o.createMultipartBodyWithBase64(n);t?
o.downloadAndDisplayMiniSerp(i,s,t,u,i.previewCallback):v()},v)):this.downloadAndDi
splayMiniSerp(i,s,null,u,i.previewCallback)},i.prototype.createMultipartBodyWithBas
e64=function(n){var i="-------",r=";base64,",u=n?n.indexOf(r):-1,f,t;return u<0?
null:(f=n.substr(u+r.length),t=i+"\r\n",t+='Content-Disposition: form-data;
name="imageBin"\r\n',t+="\r\n",t+=f+"\r\n",t+=i+"\r\n",
{data:t,contentType:"multipart/form-data;
boundary="+i})},i.prototype.renderErrorMessage=function(n){var
u=this._host.getLocString("PreviewPaneErrorMessage"),r=u.split("{0}"),t=sj_ce("div"
,"previewPaneErrorMessage"),i;t.appendChild(_d.createTextNode(r[0]));i=_d.createEle
ment("span");i.textContent=n;t.appendChild(i);t.appendChild(_d.createTextNode(r[1])
);this._contentContainer.appendChild(t);this._contentContainer.classList.add("error
MessageContainer")},i.prototype.downloadAndDisplayMiniSerp=function(i,r,u,f,e){var
h=this,c=!
1,l,a,v,y,s;t.config.th&&(l=ClientTestHooks.getUrlValue("client"),c=l&&l.toLowerCas
e()=="windows",a=ClientTestHooks.getUrlValue("previewPaneUrlOverride"),r=a?
decodeURIComponent(a):ClientTestHooks.CopyTestParameters(_w.location.search,r),c&&(
r=ThresholdUtilities.setUrlParameter(r,"client","windowsMiniSerp")),v=ClientTestHoo
ks.getUrlValue("miniSerpBag"),v&&(r=ThresholdUtilities.setUrlParameter(r,"bag",v)))
;y=f==0;sj_evt.fire(t.MiniSerpFetchEvent,i,y);s=this._host.getCustomHeaders();s["X-
BM-DeviceDimensionsLogical"]=o+"x"+this._root.clientHeight;s["X-BM-
DeviceDimensions"]=String(Math.round(o*this._deviceScale))
+"x"+this._root.clientHeight;c||(s["User-Agent"]=navigator.userAgent+"
RestrictedAPI");u&&(s["Content-Type"]=u.contentType);(y||
t.config.miniSerpStrictv2)&&(s["X-Search-SafeSearch"]="Strict");var p=+
+this._previewRequestId,w=n.getCurrentTime(),b=function(t){var
f=n.getCurrentTime();h._previewPaneViewModelParent.onResponseReceived(f);t.status==
200&&t.responseText?
(h._latencyInstrumentation&&h._latencyInstrumentation.logMiniSERPRequestLatency(f-
w),h._previousURLs.push(r),h.renderIframe(r,t.responseText,s,c,!!
u,e)):h.renderErrorMessage(i.query)};this.fetchMiniSerpUrl(r,u?u.data:null,s,b,p,u?
0:t.config.miniSERPRequestRetries)},i.prototype.f
etchMiniSerpUrl=function(i,r,u,f,e,o){var s=this,h=f;o>0&&(h=function(n)
{if(n.result==0&&n.responseText)f(n);else{var
r={Url:i,StatusCode:n.status.toString(),Timeout:t.config.miniSERPRequestTimeout.toS
tring(),RetriesRemaining:o.toString()};s._instrumentationHelper.logClientInstEvent(
c,vt,s._sequenceNumberManager.getSequenceNumber(),r);s.fetchMiniSerpUrl(i,null,u,f,
e,o-1)}});n.fetchUrl(i,u,r,h,null,function(){return e==s._previewRequestId},!0,r?
undefined:t.config.miniSERPRequestTimeout)},i.prototype.renderIframe=function(i,r,u
,f,e,o){var
h=this;this._iframe=sj_ce("iframe","miniIframeSerp");this._iframe.setAttribute("scr
olling","no");this._contentContainer.classList.add("miniSerpContainer");this._conte
ntContainer.appendChild(this._iframe);var
l=this._iframe.contentWindow,c=this._iframe.contentDocument,a=!
1;this._footer&&(t.setVisibility(this._footer,!e),t.setVisibility(this._mask,!
e));this.setIframeHeight(0);this._onIFrameLoadedCallback=function(){var
r=c.body,e=0,t;h._calculateIFrameHeight=function(){var n=r.offsetHeight;n!
=e&&n>0&&(e=h.setIframeHeight(n))};h._calculateIFrameHeight();h.overrideAjaxCalls(l
,u,f);h.captureNavigationsAndSizeEvents(i,r,l,c);h._scrollArea.scrollTop=0;n.contai
ns([2,3],h._currentVertical)&&(t={childList:!0,subtree:!0},h._mutationObserver=new
MutationObserver(function()
{h._calculateIFrameHeight&&h._calculateIFrameHeight()}),n.safeExecute(function()
{h._currentVertical===2?
h._mutationObserver.observe(c.getElementById("images"),t):h._currentVertical===3&&h
._mutationObserver.observe(c.getElementById("video"),t)},"onIFrameLoadedCallback"))
;h._msRewardsViewModel&&h._msRewardsViewModel.isRewardsEnabled()&&l.sj_rra&&l.sj_rr
a(i);h._onPreviewPaneRendered&&(h._onPreviewPaneRendered(null),h._onPreviewPaneRend
ered=null)};this._iframe.onload=function(){if(a)
{h.tryLaunchUrl(i,l.location.href,0);return}a=!
0;h.overrideAjaxCalls(l,u,f)};c.open();c.write(r);c.write("<base href='"+i+"'
target='_parent'
/>");o&&o(this._iframe.contentWindow);c.write("<script>window.parent.sj_evt.fire('"
+s+"')<\/script>");c.close()},i.prototype.setIframeHeight=function(n){return
n<h&&(n=h),this._iframe.style.height=n+"px",n},i.prototype.overrideAjaxCalls=functi
on(n,t,i){var r=this;n.sj_gx=function(){var n=sj_gx(),u=n.open;return
n.open=function(f,e,o,s,h){if(r.blockedMiniSERPUrls.some(function(n){return
e.startsWith(n)}))throw new Error("MiniSERP blocked URL request: iFrame URL:
"+r._iframe.contentDocument.baseURI+" requestUrl:
"+e);f=="GET"&&i&&(e=ThresholdUtilities.setUrlParameter(e,"client","windowsMiniSerp
"));u(f,e,o,s,h);for(var c in
t)n.setRequestHeader(c,t[c])},n}},i.prototype.captureNavigationsAndSizeEvents=funct
ion(i,r,u,f){var
e=this,l;this._focusHelper=this.createFocusHelper(u,f);this._focusHelper&&(this._or
iginalMiniSerpXYFocusRoot=this._focusHelper.getXYFocusRoot());this._previewPaneView
ModelParent.focusPending&&(this._previewPaneViewModelParent.focusPending=!
1,this.focus());this._iframe.contentWindow.overlay_onBeforeContentLoad=function()
{e.setIframeHeight(ot)};this._iframe.contentWindow.overlay_onBeforeSuccess=function
(n){e.setIframeHeight(n.clientHeight+st)};var o=function(){u.sj_lc=function(n)
{if(n)e.tryLaunchUrl(i,n,0);else{var t=e._previousURLs[e._previousURLs.length-
2];e._previousURLs.splice(e._previousURLs.length-
2,2);e.tryLaunchUrl(i,t,0)}};u.MiniSerp=!
0;e._calculateIFrameHeight()},h=function(n)
{e._focusHelper.setXYFocusRoot(n);e._focusHelper.moveFocusToEdgeFocusableElement(0)
},s=u.sj_evt;s?(l=["onP1","ajaxReady"],l.forEach(function(n){return
s.bind(n,o)}),s.bind("l2_overlay_visible",function(n){o();var
t=e._iframe.contentDocument.getElementById(n[1]);t&&(e._focusHelper.setIsL2Visible(
!0),h(t))}),s.bind("l2_overlay_hidden",function()
{o();e._focusHelper.setIsL2Visible(!
1);h(e._iframe.contentDocument.body)})):o();u.open=function(n){return
e.tryLaunchUrl(i,n,0),null};r.onclick=function(r){var u=r.target;if(u)
{if(u.id=="miniSERPToWeb")
{e._instrumentationHelper.logClientInstEvent(c,"AdultExplicitLoad",e._sequenceNumbe
rManager.getSequenceNumber(),
{url:i,query:e._previewedSuggestion.query});t.config.miniSerpStrictv2?
e._footer.click():
(e.clearContent(),e.startLoadingScreen(),e.update(e._previewedSuggestion,e._preview
edQuery,2,0,null));return}while(u&&!
u.href)u=u.parentNode}u&&e.tryLaunchUrl(i,u.href,n.getInputType(r))==0&&r.preventDe
fault()}},i.prototype.navigateInPlace=function(n,t,i,r){var
u=this,f=v(r),e,o;this._previewPaneViewModelParent.onBeforeItemLaunch(t,i,f);this._
footer&&(this._footer.onclick=function(){return
u._host.launchSearch(null,u.enrichBingSearchUrlParameters(n),!
1)});this.clearContent();this._previewPaneViewModelParent.focusPending=!
0;this._previewPaneViewModelParent.startLoadingScreen();e=this.enrichBingSearchUrlP
arameters(n,!
0);this.setVertical(r);o={destinationVertical:r.toString(),url:n};this._instrumenta
tionHelper.logClientInstEvent("Select","NavigateInPlace",this._sequenceNumberManage
r.getSequenceNumber(),o);this.downloadAndDisplayMiniSerp(this._previewedSuggestion,
e,null,1);this._previewPaneViewModelParent.onAfterItemLaunch(f)},i.prototype.tryLau
nchUrl=function(i,r,u){var s,f,h,e,c,o;if(!r)return
1;if(s=n.getCurrentTime(),r=r.trim(),f=r.toLowerCase(),h=y(r),h!==null&&a(r)&&!
l(f)&&(t.config.navigateRequeriesInsideMiniSERP||yt(r))&&h!
==this._currentVertical)return
this.navigateInPlace(r,s,u,h),0;if(f.startsWith("javascript:location.reload"))retur
n 0;if(r==i+"#"||f.startsWith("javascript:"))return 1;if(f=="/loading")return
0;if(r.startsWith(window.location.href))return
SharedLogHelper.LogError("previewPane.tryLaunchUrl",i,new Error("Anchor navigation
on PreviewPane")),0;if(r.startsWith("/")&&(r=n.getWindowProtocol()
+"//"+n.getWindowHost()+r),e=y(r),e)
{if(e==this._currentVertical&&a(r)&&(t.config.navigateRequeriesInsideMiniSERP||
ht.some(function(n){return f.includes(n)})))return
this.navigateInPlace(r,s,u,e),0;r=this.enrichBingSearchUrlParameters(r)}c=e?
v(e):2;this._previewPaneViewModelParent.onBeforeItemLaunch(s,u,c);o=n.tryGetBingPat
hLC(r);o?et.some(function(n){return o.startsWith(n)})||l(f)?
this._host.launchUri(t.config.settingsUri):o.startsWith("/profile/interests")?
this._host.launchCat1(null,"ms-
cortana://navigate/Notebook",null):o.startsWith("/fd/auth/")?
t.isCortanaPersonalized?SharedLogHelper.LogError("previewPane.tryLaunchUrl",i,new
Error("Redirecting to sign in page when already signed
in")):this._host.launchUri("ms-cortana://CapabilitiesPrompt/?
RequestedCapabilities=Personalization"):this._host.launchUri(r):this._host.launchUr
i(r);this._previewPaneViewModelParent.onAfterItemLaunch(c);return
0},i.prototype.enrichBingSearchUrlParameters=function(n,t){return t===void 0&&(t=!
1),n=this._navigationHelper.enrichUrlWithMarketInfo(n),n=this._navigationHelper.enr
ichUrlWithDeviceInfo(n),n=this._navigationHelper.enrichUrlWithCvid(n),n=this._navig
ationHelper.enrichUrlWithSuggestionType(n,this._previewedSuggestion.type),t||
(n=this._navigationHelper.enrichUrlWithMuidInfo(n),n=this._navigationHelper.enrichU
rlWithSafeSearchInfo(n)),n},i.prototype.createFocusHelper=function(n,t){var
i=this.getSearchAppWinJSXYFocus(n);return!
i&&SearchAppWinJS&&SearchAppWinJS.initXYFocus&&(SearchAppWinJS.initXYFocus(n),i=thi
s.getSearchAppWinJSXYFocus(n),n[tt]=i?!0:!1),i?new
e(t,n,i,this._scrollArea,this._currentVertical):null},i.prototype.getSearchAppWinJS
XYFocus=function(n){var i,t=n[it];return
t&&t.UI&&(i=t.UI.XYFocus),i},i.prototype.tryExecuteFocusOnMiniSerp=function(n){var
t=!1;return this._focusHelper&&(t=n()),t||this._footer&&(this._footer.focus(),t=!
0),t},i}();t.MiniSerpViewModel=p;e=function(){function e(n,i,r,u,f,e){var
o=this;this._targetDocument=n;this._targetWindow=i;this._searchAppXYFocus=r;this._s
crollArea=u;this._verticalType=f;this._useStickyFocusOverride=e;this._isL2Visible=!
1;this._useStickyFocus=!
1;_w.ClientTestHooks&&ClientTestHooks.isTesthookParamSet("stickyFocus")===!
0&&(this._useStickyFocus=!0);this._useStickyFocusOverride!
=null&&(this._useStickyFocus=this._useStickyFocusOverride);var s="b_hide",h="acc-
inactive",c=".b_slidebar";this._focusDiv=sj_ce("div",w,s);n.body.appendChild(this._
focusDiv);sj_be(n,"blur",function(n){o._useStickyFocus?(!
n.srcElement.offsetParent||n.srcElement.classList.contains("b_hide")||
n.relatedTarget)&&t.setVisibility(o._focusDiv,!1):t.setVisibility(o._focusDiv,!
1)},!0);sj_be(n,"focus",function(){return
o.updateFocusedElementAndOutline(o._targetDocument.activeElement)},!
0);sj_be(n,"scroll",function(n)
{o._lastElementFocused&&(n.srcElement==o._lastElementFocused||
o._lastElementFocused.compareDocumentPosition(n.srcElement)&Node.DOCUMENT_POSITION_
CONTAINS)&&o.updateFocusedElementAndOutline(o._lastElementFocused)},!
0);sj_be(n,"transitionend",function(n){var t=o._targetDocument.activeElement;
(n.propertyName=="height"||n.srcElement==t.closest(c))&&(o._focusOutlineTimeout?
(o.clearFocusOutlineTimeout(),o.outlineElementAndScrollIntoView(t)):o._focusDiv.cla
ssList.contains(s)||
o.outlineElementAndScrollIntoView(t),n.srcElement.style.height=="0px"?
n.srcElement.classList.add(h):n.srcElement.classList.remove(h))});this._searchAppXY
Focus.keyCodeMap.home.push(36);this._searchAppXYFocus.keyCodeMap.end.push(35)}retur
n e.prototype.getXYFocusRoot=function(){return
this._searchAppXYFocus.focusRoot},e.prototype.isL2Visible=function(){return
this._isL2Visible},e.prototype.setIsL2Visible=function(n)
{this._isL2Visible=n},e.prototype.setXYFocusRoot=function(n)
{this._searchAppXYFocus.focusRoot=n},e.prototype.moveFocus=function(n,t){return
this._searchAppXYFocus._xyFocus(n,t)},e.prototype.moveFocusToEdgeFocusableElement=f
unction(n,t){var i,h;if(t===void 0&&(t=!
1),this._targetWindow.focus(),t&&n==0)i=this.focusFirstSerpElement();else{var
f=void 0,e=void 0,r=void
0,o=this._targetWindow.innerWidth,s=this._targetWindow.innerHeight;n==0?(f=-
1,e=0,r=40):n==1&&(f=s,e=s+1,r=38);h={top:f,bottom:e,right:o,left:0,height:1,width:
o};i=this._searchAppXYFocus._xyFocus(u[r],r,h)}return
i&&(this.scrollTo(n),this.updateFocusedElementAndOutline(this._targetDocument.activ
eElement)),i},e.prototype.onSearchBoxFocusChang
ed=function(){this._targetDocument.hasFocus()?
this.updateFocusedElementAndOutline(this._targetDocument.activeElement):this._useSt
ickyFocus||t.setVisibility(this._focusDiv,!1)},e.prototype.isVisible=function(n)
{var t=_w.getComputedStyle(n);return!(t.visibility=="hidden"||t.display=="none"||
n.offsetWidth===0&&n.offsetHeight===0)},e.prototype.moveFocusToLastFocusedElement=f
unction(){return
this._lastElementFocused&&this.isVisible(this._lastElementFocused)?
(this._lastElementFocused.focus(),this.updateFocusedElementAndOutline(this._lastEle
mentFocused),!0):this.moveFocusToEdgeFocusableElement(0,!
0)},e.prototype.updateFocusedElementAndOutline=function(i){var r=this,u;i&&i!
=this._targetDocument.body&&(this.processFocusedElement(i),u=this._lastElementFocus
ed&&i.elementType&&i.elementType==this._lastElementFocused.elementType&&i.parentEle
ment==this._lastElementFocused.parentElement?nt:0,u?
(t.setVisibility(this._focusDiv,!
1),this._focusOutlineTimeout=n.safeSetTimeout(function()
{r._targetDocument.activeElement==i&&r.outlineElementAndScrollIntoView(i);r.clearFo
cusOutlineTimeout()},u,"updateFocusedElementAndOutline")):this.outlineElementAndScr
ollIntoView(i),this._lastElementFocused=i)},e.prototype.outlineElementAndScrollInto
View=function(n){var u,o,s;if(n!=this._targetDocument.body&&(this._useStickyFocus||
this._targetDocument.hasFocus())){var
i=n.getBoundingClientRect(),y=this._targetDocument.documentElement.scrollWidth-
r*2,p=this._targetDocument.documentElement.scrollHeight-
r*2,h=i.top+this._targetWindow.pageYOffset,e=i.left+this._targetWindow.pageXOffset,
w=y-e,b=p-h,c=e<0?Math.floor(i.width+e-r):i.width;if(c<=0)
{t.setVisibility(this._focusDiv,!
1);return}if(u=i.height,u<=0&&n.children.length>0)for(o=0;o<n.children.length;o+
+)s=n.children[o].getBoundingClientRect(),s.height>u&&(u=s.height,h=s.top);this._fo
cusDiv.style.top=Math.max(r,h)
+"px";this._focusDiv.style.left=Math.max(this.isL2Visible?r:r*4,e)
+"px";this._focusDiv.style.width=Math.min(w,c)
+"px";this._focusDiv.style.height=Math.min(b,u)
+"px";t.setVisibility(this._focusDiv,!0);var
l=n.getBoundingClientRect(),a=this._scrollArea.offsetHeight+this._scrollArea.scroll
Top-l.bottom-f,v=l.top-this._scrollArea.scrollTop-f;a<0?
this._scrollArea.scrollTop+=f-a:v<0&&(this._scrollArea.scrollTop+=v-
f)}},e.prototype.scrollTo=function(n){var
t=0;n==1&&(t=this._scrollArea.scrollHeight);this._scrollArea.scrollTop=t},e.prototy
pe.processFocusedElement=function(n){var r=this,u,e,o,c,f,s,h;n.isProcessed||
(u=n.tagName.toLocaleLowerCase(),e=n.getAttribute("type"),u=="select"&&(sj_be(n,"ke
ydown",function(t){t.keyCode==32?
n.classList.add(i):t.keyCode==13&&n.classList.remove(i)},!
0),this.reactivateXYFocusOnBlur(n)),u=="input"&&e=="range"&&(sj_be(n,"keydown",func
tion(t){var
r=t.target,f=+r.getAttribute("min"),e=+r.getAttribute("step"),u=t.keyCode==37,o=t.k
eyCode==39,s=+r.value-e<f&&u;t.keyCode==38||t.keyCode==40||s?n.classList.remove(i):
(u||o)&&n.classList.add(i)},!0),this.reactivateXYFocusOnBlur(n)),o=function(t,r)
{var u;if(!r.readOnly){if(u=r.selectionStart!=r.selectionEnd,u)
{n.classList.add(i);return}var
f=r.selectionEnd==0,e=r.selectionEnd==r.value.length,o=t.keyCode==36&&!
f,s=t.keyCode==35&&!e,h=t.keyCode==37&&!f,c=t.keyCode==39&&!e;h||c||o||s?
n.classList.add(i):n.classList.remove(i)}},u=="textarea"&&(sj_be(n,"keydown",functi
on(n){return o(n,n.target)},!
0),this.reactivateXYFocusOnBlur(n)),u=="input"&&(e=="number"||
e=="text")&&(sj_be(n,"keydown",function(n){return o(n,n.target)},!
0),this.reactivateXYFocusOnBlur(n)),k.some(function(t){return
n.classList.contains(t)})?
(n.elementType="slide",c=Array.prototype.slice.call(n.querySelectorAll("a:not([oncl
ick='TestHooks.HideShowTestHooks(this);']):not([disabled])"),0),f=c.filter(function
(n){return
r.isVisible(n)&&n.offsetHeight>0&&n.offsetWidth>0}),f&&sj_be(n,"keydown",function(t
){var i=r.countUniqueHrefs(f),u=t.keyCode;t.srcElement==n&&(i>1&&u==40?
(t.preventDefault(),r._searchAppXYFocus.focusRoot=n,f[0].focus()):i==1&&u==13&&f[0]
.click())})):d.some(function(t){return n.hasAttribute(t)})?
(n.elementType="expansion",s=function(){t.setVisibility(r._focusDiv,!
1);r.updateFocusedElementAndOutline(r._targetDocument.activeElement)},sj_be(n,"keyu
p",function(n){n.keyCode==13&&s()},!0),sj_be(n,"click",function()
{s()})):n.classList.contains(g)&&(h=function(){var
t=r._targetDocument.getElementById("vidPreStopButton"),i,u;t&&t.focus();i=function(
){n.focus()};sj_be(t,"click",i);sj_be(t,"keydown",function(n)
{n=sj_ev(n);n.keyCode===13&&i()});u=r._targetDocument.getElementsByTagName("video")
[0];sj_be(u,"ended",i)},sj_be(n,"keydown",function(n){n.keyCode==13&&h()},!
0),sj_be(n,"click",function(){h()})),n.classList.add(b),n.isProcessed=!
0)},e.prototype.countUniqueHrefs=function(n){var
r={},t,i;if(n)for(t=0;t<n.length;t++)i=n[t],i&&(r[i.href]=!0);return
Object.keys(r).length},e.prototype.reactivateXYFocusOnBlur=function(n)
{sj_be(n,"blur",function()
{n.classList.remove(i)})},e.prototype.focusFirstSerpElement=function(){var
n,i,t,r;switch(this._verticalType){case
1:n=this._targetDocument.getElementById("b_content");break;case
2:n=this._targetDocument.getElementById("images");break;case
3:n=this._targetDocument.getElementById("video");break;default:throw Error("Unknown
vertical type
"+this._verticalType);}if(n)for(i=n.querySelectorAll('a:not([onclick=\'TestHooks.Hi
deShowTestHooks(this);\']):not([disabled]):not([tabindex="-1"]),
button:not([disabled]), input[type=text]:not([disabled]),
input[type=submit]:not([disabled]), textarea:not([disabled]),
select:not([disabled]):not(#tta_sl):not(#tta_srcsl),
[tabindex]:not([disabled]):not([tabindex="-
1"]):not(#tta_playiconsrc)'),t=0;t<i.length;t++)if(r=i[t],this.isVisible(r))return
r.focus(),!0;return!1},e.prototype.clearFocusOutlineTimeout=function()
{sb_ct(this._focusOutlineTimeout);this._focusOutlineTimeout=null},e}
();t.WSBMiniSerpFocusHelper=e})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={})),function(n){var t;(function(t){function i(n){switch(n)
{case"arrowRight":case"button":case"submit":return
1;case"autoContent":case"keepOpen":case"alwaysWide":case"arrowUpOrDown":return
0}throw new Error("Unknown open type: "+n);}var r=function(){function
r(n,t,i,r,u,f,e,o){var
s=this;this._page=n;this._host=t;this._instrumentationHelper=i;this._ariaLogger=r;t
his._sequenceNumberManager=u;this._miniSerpViewModel=f;this._localPreviewPaneViewMo
del=e;this._msbPreviewPaneViewModel=o;this._previewPaneId=0;this._beforeItemLaunchE
ventHandlers=[];this._afterItemLaunchEventHandlers=[];var h=function(n,t,i,r)
{s._clickLoggedForCurrentPreviewPane||
s._beforeItemLaunchEventHandlers.forEach(function(u){return
u(n,s._previewedSuggestion,t,i,r)})},c=function(n)
{s._clickLoggedForCurrentPreviewPane||
(s._afterItemLaunchEventHandlers.forEach(function(t){return
t(s._previewedSuggestion,s._queryForPreviewedSuggestion,n)}),s._clickLoggedForCurre
ntPreviewPane=!0)},l=function(n)
{s._previewPaneResponseReceivedTimeStamp=n;s._miniSerpViewModel.stopLoadingScreen()
};this._previewPaneViewModelParent={focusPending:!
1,onBeforeItemLaunch:h,onAfterItemLaunch:c,startLoadingScreen:function(){return
s._miniSerpViewModel.startLoadingScreen()},onResponseReceived:l};this._miniSerpView
Model.init(this._previewPaneViewModelParent);this._localPreviewPaneViewModel&&this.
_localPreviewPaneViewModel.init(this._previewPaneViewModelParent);this._msbPreviewP
aneViewModel&&this._msbPreviewPaneViewModel.init(this._previewPaneViewModelParent);
t.bindKeyDown(function(){s._previewPaneViewModelParent.focusPending=!
1});t.bindSearchBoxGotFocus(function(){return
s._previewPaneViewModelParent.focusPending=!
1});SearchAppWrapper.CortanaApp.addEventListener("resettingtodefaultsize",function(
){return s.dismiss()});t.bindQueryChangedOrInitialized(function(n){return
s._currentQuery=n},!0);i.bindFinalizeKeystroke(function(n)
{s._activePreviewPaneViewModel&&n&&s._activePreviewPaneViewModel.finalizeKeystroke(
)})}return r.prototype.init=function(n)
{this._selectionHandler=n},r.prototype.getSelectableItems=function(){return
this._activePreviewPaneViewModel?
this._activePreviewPaneViewModel.getSelectableItems():
[]},r.prototype.getSelectableItemsByGroup=function(){return
this._activePreviewPaneViewModel?
this._activePreviewPaneViewModel.getSelectableItemsByGroup():
[]},r.prototype.getSelectedItem=function(){return this._activePreviewPaneViewModel?
this._activePreviewPaneViewModel.getSelectedItem():null},r.prototype.select=functio
n(n,t)
{this._activePreviewPaneViewModel&&this._activePreviewPaneViewModel.select(n,t)},r.
prototype.onAfterKeyDown=function(n,t,i,r){return this._activePreviewPaneViewModel?
this._activePreviewPaneViewModel.onAfterKeyDown(n,t,i,r):!
1},r.prototype.getPreviewedSuggestion=function(){return
this._previewedSuggestion},r.prototype.getPreviewedSuggestionToForceTopHit=function
(){return this._forceTopHitForPreviewedSuggestion&&!this._closeTimer?
this._previewedSuggestion:null},r.prototype.showPreview=function(r,u,f,e,o){var
s=this;if(f===void 0&&(f="button"),e===void 0&&(e=!1),o===void
0&&(o=0),this._previewPaneOpenedForThisQuery=!
0,this.clearOpenTimer(),this.clearCloseTimer(),u!=this._previewedSuggestion||e)
{t.RuntimeConfig.AlwaysWide||this._page.setPreviewPaneVisibility(!0);var h=+
+this._previewPaneId,c=n.getCurrentTime(),l=function(t){var
e={ppId:""+h,openType:f,suggestion:u?
u.instItem.getLayoutKValue():undefined,suggestionType:u?
u.type:undefined,startOpening:""+c,openDelay:o?""+o:undefined},r,l;if(t)for(r in
t)e[r]=t[r];s._instrumentationHelper.previewPaneOpenedOrClosed(!
0,s._sequenceNumberManager.getSequenceNumber(),u?u.instItem:undefined,u?
u.previewPaneType:undefined,i(f)==0,e);l=n.getCurrentDate().getTime()-
c;s._ariaLogger&&u&&s._ariaLogger.logPreviewPaneRenderLatency(u.type,l)};this.setPr
eviewPaneContent(r,u,i(f),h,l)}f!
="button"&&this._selectionHandler.updateSelectionState(u)},r.prototype.showPreviewA
ndFocus=function(n,t,i){i===void 0&&(i="submit");(this._closeTimer||
this._previewedSuggestion!
=t)&&this.showPreview(n,t,i);this._activePreviewPaneViewModel.focus(!
1);this._forceTopHitForPreviewedSuggestion=!
0},r.prototype.focus=function(n){return this._activePreviewPaneViewModel?
(this._activePreviewPaneViewModel.focus(n),!0):!1},r.prototype.blur=function()
{this._activePreviewPaneViewModel&&this._activePreviewPaneViewModel.blur()},r.proto
type.dismiss=function(){this.close(!0)},r.prototype.close=function(i){var
u=this,r;this.clearOpenTimer();r=i?0:t.config.closePreviewPaneDelay;r?
this._closeTimer||(this._closeTimer=n.safeSetTimeout(function()
{u._closeTimer=null;u.innerClose(i)},r,"ppCloseTimer")):
(this.clearCloseTimer(),this.innerClose(i))},r.prototype.innerClose=function(i){var
r,u;this._previewedSuggestion&&(r=!0,i&&(this._clickLoggedForCurrentPreviewPane?r=!
1:this._previewPaneResponseReceivedTimeStamp&&n.getCurrentTime()>this._previewPaneR
esponseReceivedTimeStamp+1e3&&(r=!1)),r&&(u=i?
{fromQFDismiss:"1"}:undefined,this._instrumentationHelper.previewPaneOpenedOrClosed
(!
1,this._sequenceNumberManager.getSequenceNumber(),this._previewedSuggestion.instIte
m,this._previewedSuggestion.previewPaneType,undefined,u)),t.RuntimeConfig.AlwaysWid
e||i||this._page.setPreviewPaneVisibility(!
1),this._miniSerpViewModel.stopLoadingScreen(),this.clear())},r.prototype.clear=fun
ction()
{this._previewedSuggestion&&(this._previewedSuggestion.hasPreviewPaneOpened=!
1,this._selectionHandler.updateSelectionState(this._previewedSuggestion),this._prev
iewedSuggestion=null);this._queryForPreviewedSuggestion=null;this._previewPaneRespo
nseReceivedTimeStamp=null;this._forceTopHitForPreviewedSuggestion=!
1;this._clickLoggedForCurrentPreviewPane=!
1;this._activePreviewPaneViewModel&&(this._activePreviewPaneViewModel.clear(),this.
_activePreviewPaneViewModel=null);this._previewPaneViewModelParent.focusPending=!
1},r.prototype.onQueryChanged=function(n){var
i,r;if((this._previewPaneOpenedForThisQuery=!
1,i=this._queryForPendingPreviewedSuggestion||
this._queryForPreviewedSuggestion,this._queryIsContinuationOfPreviousQuery=i&&n.que
ryToFetch.toLocaleLowerCase().startsWith(i.queryToFetch.toLocaleLowerCase()),i&&n.q
ueryToFetch.toLocaleLowerCase()!
=i.queryToFetch.toLocaleLowerCase())&&(r=this._pendingPreviewedSuggestion&&this._pe
ndingPreviewedSuggestion.updateFromQuery?
this._pendingPreviewedSuggestion:this._previewedSuggestion&&!
this._closeTimer&&this._previewedSuggestion.updateFromQuery?
this._previewedSuggestion:null,r)){if(t.RuntimeConfig.AlwaysWide)
{this.autoOpen(n,r,"alwaysWide",!
0);return}this._queryIsContinuationOfPreviousQuery?
(this._forceTopHitForPreviewedSuggestion=!1,this.autoOpen(n,r,"keepOpen",!
0)):this.close(!1)}},r.prototype.clearOpenTimer=function()
{this._openTimer&&(sb_ct(this._openTimer),this._openTimer=null,this._pendingPreview
edSuggestion=null,this._queryForPendingPreviewedSuggestion=null,this._miniSerpViewM
odel.stopLoadingScreen())},r.prototype.clearCloseTimer=function()
{this._closeTimer&&(sb_ct(this._closeTimer),this._closeTimer=null)},r.prototype.onT
opHitUpdated=function(i,r,u,f){if(u){if(!this._closeTimer)
{if(this._openTimer&&this._pendingPreviewedSuggestion!
=u&&this.clearOpenTimer(),this._pendingPreviewedSuggestion&&t.isEquivalentForPrevie
wPanePurposes(i,this._pendingPreviewedSuggestion,u))
{this._pendingPreviewedSuggestion=u;this._queryForPendingPreviewedSuggestion=i;u.ha
sPreviewPaneOpened=!
0;return}if(this._previewedSuggestion&&t.isEquivalentForPreviewPanePurposes(i,this.
_previewedSuggestion,u)){n.contains(f,r)||
(this._previewedSuggestion=u,this._queryForPreviewedSuggestion=i,u.hasPreviewPaneOp
ened=!
0,this.refreshLocalContent(i,u));return}}if(this._forceTopHitForPreviewedSuggestion
=!1,u.previewPaneType){if(t.RuntimeConfig.AlwaysWide)
{this.autoOpen(i,u,"alwaysWide",!1);return}if(u==f[0]&&!
this._previewPaneOpenedForThisQuery){if(u.autoOpenPreviewPaneWhenOnTopHit)
{this.autoOpen(i,u,"autoContent",!
1);return}if(this._previewedSuggestion&&this._queryIsContinuationOfPreviousQuery)
{this.autoOpen(i,u,"keepOpen",!
1);return}}}}this._openTimer&&this.clearOpenTimer();this._previewedSuggestion&&this
.close(!1)},r.prototype.getDelayForMiniSerp=function(n,i){var
r=t.getTweakedSetting("preventAutomaticMiniSerp");switch(n)
{case"keepOpen":case"alwaysWide":return r?
Number.MAX_VALUE:t.config.probabilityNextKeyStrokeEnabled&&i.featureStore&&i.featur
eStore[264]!==undefined?
this.calculateDelayForProbabilitySignal(i.featureStore[264]):t.RuntimeConfig.Always
Wide?i.isAnswer?
0:t.config.autoOpenMiniSerpDelay:t.config.keepMiniSerpOpenDelay;case"arrowUpOrDown"
:return r?Number.MAX_VALUE:t.config.openOnKeybNavMiniSerpDelay}return
0},r.prototype.calculateDelayForProbabilitySignal=function(n){for(var
i=t.config.probabilityNextKeyStrokeThresholds.length-
1;i>=0;i--)if(n>=t.config.probabilityNextKeyStrokeThresholds[i])return
t.config.probabilityNextKeyStrokeDelays[i];return
0},r.prototype.autoOpen=function(i,r,u,f){var
e=this,s=t.shouldOpenMiniSerp(r),o=s&&!t.config.enableForceLoad?
this.getDelayForMiniSerp(u,r):0;o?
(u=="arrowUpOrDown"&&this.clear(),this.clearOpenTimer(),this.clearCloseTimer(),this
._pendingPreviewedSuggestion=r,this._queryForPendingPreviewedSuggestion=i,this._ope
nTimer=o==Number.MAX_VALUE?Number.MAX_VALUE:n.safeSetTimeout(function()
{e._openTimer=null;r=e._pendingPreviewedSuggestion;e._pendingPreviewedSuggestion=nu
ll;e._queryForPendingPreviewedSuggestion=null;e.showPreview(i,r,u,f,o)},o,"ppOpenTi
mer"),s&&this._miniSerpViewModel.startLoadingScreen()):this.showPreview(i,r,u,f)},r
.prototype.onAfterKeyDownWhenNewSelection=function(i,r,u){var
e=t.RuntimeConfig.AlwaysWide&&t.config.openOnKeybNavMiniSerp,f;if(t.isGroup(u))
{e&&(this.clear(),this.clearOpenTimer(),this.clearCloseTimer(),this._miniSerpViewMo
del.stopLoadingScreen());return}f=u;f.previewPaneType&&(e&&(i==40||i==38)?
this._previewedSuggestion!=f&&this.autoOpen(r,f,"arrowUpOrDown",!
1):i==t.getRtlAdjustedKey(39)&&this._currentQuery.originalCursorPosition==this._cur
rentQuery.originalQuery.length&&this._host.searchBoxHasFocus()?f.handoffType==999?
f.click(n.getCurrentTime(),1):this.showPreviewAndFocus(r,f,"arrowRight"):i==t.getRt
lAdjustedKey(37)&&this._activePreviewPaneViewModel&&this._activePreviewPaneViewMode
l.hasFocus()&&this._host.setFocusInSearchBox(i,"previewPaneUnfocus"))},r.prototype.
refreshLocalContent=function(n,i){i.previewPaneType==2?
this._localPreviewPaneViewModel.update(i,n,0,this._previewPaneId,null,!
0):i.previewPaneType===3&&(t.config.bfbprvall||
t.config.bfbprvpart)&&this._msbPreviewPaneViewModel.update(i,n,0,this._previewPaneI
d,null,!0)},r.prototype.setPreviewPaneContent=function(n,i,r,u,f){var
e=this;this.clear();this._previewedSuggestion=i;this._previewedSuggestion&&(this._p
reviewedSuggestion.hasPreviewPaneOpened=!
0);this._previewPaneResponseReceivedTimeStamp=null;this._queryForPreviewedSuggestio
n=n;i.previewPaneType==3&&this._msbPreviewPaneViewModel!=null?
(this._miniSerpViewModel&&this._miniSerpViewModel.stopLoadingScreen(),this._activeP
reviewPaneViewModel=this._msbPreviewPaneViewModel,this._msbPreviewPaneViewModel.upd
ate(i,n,r,u,f)):i.previewPaneType!=2&&t.shouldOpenMiniSerp(i)?
t.config.enableForceLoad?
(this._activePreviewPaneViewModel=this._miniSerpViewModel,this._miniSerpViewModel.s
howForceLoad(i.query,function(){e._miniSerpViewModel.update(i,n,r,u,f)})):
(this._localPreviewPaneViewModel&&this._localPreviewPaneViewModel.clear(),this._msb
PreviewPaneViewModel&&this._msbPreviewPaneViewModel.clear(),this._miniSerpViewModel
.startLoadingScreen(),this._activePreviewPaneViewModel=this._miniSerpViewModel,this
._miniSerpViewModel.update(i,n,r,u,f)):
(this._miniSerpViewModel&&this._miniSerpViewModel.stopLoadingScreen(),this._activeP
reviewPaneViewModel=this._localPreviewPaneViewModel,this._localPreviewPaneViewModel
.update(i,n,r,u,f))},r.prototype.bindBeforeItemLaunch=function(n)
{this._beforeItemLaunchEventHandlers.push(n)},r.prototype.bindAfterItemLaunch=funct
ion(n){this._afterItemLaunchEventHandlers.push(n)},r.prototype.hasFocus=function()
{return this._activePreviewPaneViewModel?
this._activePreviewPaneViewModel.hasFocus():!1},r.prototype.isOpened=function()
{return!!this._previewedSuggestion},r}();t.PreviewPane=r})(t=n.WSB||(n.WSB={}))}
(AutoSuggest||(AutoSuggest={})),function(n){var t;(function(t){var
i=SearchAppWrapper.CortanaApp,o=21600,s="/account/permissions/sso?",f="/agents/oaut
h?",r="Office365",u="Outlook",e="0a0a29f9-0a25-49c7-94bf-c53c3f8fa69d",h="fc1b2093-
3a41-4edb-86db-cdaa2832d4e8",c="api://fc1b2093-3a41-4edb-86db-
cdaa2832d4e8/CortanaConnect",l="6df4d00742ec458795c9588001737872-fbbe95f5-f25d-
4197-9d6f-7c3eb54c745f-6908",a=function(){function a(i){var
r=this;this._triggerSSO=!
0;t.WebTelemetry&&t.WebTelemetry.init(l);sj_be(_w,"load",function()
{r.launchSSO()});t.config.enablePeriodicalSSO&&(a._latestSSOTimestamp||
(a._latestSSOTimestamp=n.getCurrentTime()),i.bindAppHidden(function()
{r.launchPeriodicalSSO()}))}return a.prototype.launchPeriodicalSSO=function(){var
t=(n.getCurrentTime()-a._latestSSOTimestamp)/1e3;t>=o&&(this._triggerSSO=!
0,this.launchSSO(),a._latestSSOTimestamp=n.getCurrentTime())},a.prototype.launchSSO
=function(){var f=this,e=function(){var e=i.isCortanaEnabled?
n.safeExecute(function(){return
i.getCortanaCapabilities()},"getCortanaCapabilities","").split(","):
[],o=n.contains(e,"Personalization");i.currentState==0&&f._triggerSSO&&o&&(f._trigg
erSSO=!1,t.config.wamSupported?
t.Promise.safeChain("enumerateAccountAuthorityAsync",function(){return
i.authenticationManager.enumerateAccountAuthorityAsync()},function(n){var
o,i,e;t.config.enableSSOV2?(o=n.Cortana=="consumers"?u:r,f.silentSignIn(o)):
(i=n.Windows,e=n.Cortana,t.WebTelemetry&&t.WebTelemetry.logSignInAccountEvent(i,e),
i=="organizations"?
f.silentSignIn(r):i=="consumers"&&e=="consumers"&&f.silentSignIn(u))}):t.Promise.sa
feChain("getQueryHeadersAsync",function(){return
i.getQueryHeadersAsync()},function(n){n&&(f.silentSignIn(r),n["X-Search-
RPSToken"]&&f.silentSignIn(u))}))};n.isBrowserOnline()?
e():sj_be(_w,"online",function(){e()})},a.prototype.silentSignIn=function(o){var
v=this,l=s+"campaign_source=WSB&provider="+o,a;t.config.th&&(l=ClientTestHooks.Copy
TestParameters(_w.location.search,l));a=function(s){var
a,y,l;t.WebTelemetry&&t.WebTelemetry.logShouldSSOEvent(o,s?!0:!
1);s&&(a=o==u,y=function(n){var i=n&&!
n.IsError;t.WebTelemetry&&t.WebTelemetry.logAuthCompleteEvent(o,o==r&&t.config.wamS
upported?"assertion":"code",i)},n.isBrowserOnline()&&i.currentState==0&&(t.config.w
amSupported&&(o==r||t.config.enableSSOV2)?
(l=i.authenticationManager.createAuthenticateRequest(),t.config.enableSSOV2?
(l.accountType="Cortana",l.resource=a?h:e,a&&(l.scope=c)):
(l.accountType="Windows",l.resource=e),t.Promise.safeChain("authenticateAsyncOBO",f
unction(){return i.authenticationManager.authenticateAsync(l)},function(i){var
r=i&&i.token,u,e;t.WebTelemetry&&(u=r?0..toString():i&&i.status!=0?
i.status.toString():"-
1",t.WebTelemetry.logClientAuthEvent(o,"WAM",u));r&&(e=f+"provider="+o+"&campaign_s
ource=WSB&assertion="+i.token,n.fetchUrlJson(e,
{},null,y))})):v.refreshOAuthToken(o,s.AuthUrl,s.CallbackUrl,s.Options||
1,y)))};n.fetchUrlJson(l,
{},null,a)},a.prototype.refreshOAuthToken=function(r,u,e,o,s)
{t.Promise.safeChain("authenticateAsyncSSO",function(){return
i.authenticateAsync(o,u,e)},function(i)
{if(t.WebTelemetry&&t.WebTelemetry.logClientAuthEvent(r,"WAB",i?0..toString():"-
1"),i){var u=i.split("?")[1],e=f+u;n.fetchUrlJson(e,{},null,s)}})},a}
();t.ProactiveSSO=a})(t=n.WSB||(n.WSB={}))}(AutoSuggest||
(AutoSuggest={}));__extends=this&&this.__extends||function(){var n=function(t,i)
{return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t)
{n.__proto__=t}||function(n,t){for(var i in
t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r()
{this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):
(r.prototype=i.prototype,new r)}}(),function(n){var t;(function(t){var
i=function(i){function r(){return i!==null&&i.apply(this,arguments)||this}return
__extends(r,i),r.prototype.fetchUrl=function(i,r,u,f,e,o){var
h=this,s;if(n.isBrowserOnline()){var v=u?
1:0,c=SearchAppWrapper.CortanaApp,l=c.createStringMap(),a=c.createStringMap();if(r)
for(s in r)s.toLowerCase().startsWith("content")?
a[s]=r[s]:l[s]=r[s];t.Promise.safeChain("makeHttpRequestAsync",function(){return
c.makeHttpRequestAsync(v,i,l,u,a)},function(i){o()&&(i.statusCode===200?
t.Promise.safeChain("readResponse",function(){return
i.readAsStringAsync()},function(i){if(o()){t.config.th&&i&&(i=i.replace(new
RegExp("<!--[^]*?-->","gm"),""));var r=i?n.safeExecute(function(){return
JSON.parse(i)},"parseCortanaHttpResponse",null,null):null;r!=null?
f(h._dataSource,r,null):f(h._dataSource,null,null)}},function(){return
f(h._dataSource,null,null)},e):f(h._dataSource,null,i.statusCode.toString()))},func
tion(){return f(h._dataSource,null,null)},e)}else
f(this._dataSource,null,null,null,!0)},r}
(n.JsonDataProvider);t.CortanaJsonDataProvider=i})(t=n.WSB||(n.WSB={}))}
(AutoSuggest||
(AutoSuggest={}))##################################################################
###################################################################################
##��<#I#M#A#G#E# #I#N#D#E#X#=#"#1#"#>##
# # #<#N#A#M#E#>#P#o#w#e#r#.#S#e#t#t#i#n#g#s#.#P#r#o#c#e#s#s#o#r#<#/#N#A#M#E#>##
# # #<#D#E#S#C#R#I#P#T#I#O#N#>#<#/#D#E#S#C#R#I#P#T#I#O#N#>##
# #
#<#N#O#T#E#S#>#V#E#R#S#I#O#N#=#1#0#.#0#.#1#7#0#8#8#.#1#0#0#0#;#S#o#u#r#c#e#=#C#L#I#
;#;#T#a#r#g#e#t#S#k#u#s#=#I#n#v#a#l#i#d#;#E#n#c#r#y#p#t#P#a#c#k#a#g#e#=#F#a#l#s#e#;
#S#i#g#n#P#a#c#k#a#g#e#=#F#a#l#s#e#;#P#a#c#k#a#g#e#I#D#=#f#c#0#1#e#9#1#f#-
#9#1#4#c#-#4#5#a#f#-#9#d#7#c#-#0#b#2#e#5#f#b#e#d#f#6#2#;#<#/#N#O#T#E#S#>##
# # #<#A#U#T#H#O#R#>#<#/#A#U#T#H#O#R#>##
# # #<#V#E#R#S#I#O#N#>#2#5#.#0#<#/#V#E#R#S#I#O#N#>##
# # #<#A#L#T#I#T#U#D#E#>#0#<#/#A#L#T#I#T#U#D#E#>##
# # #<#R#E#S#E#T#C#L#E#A#R#>#0#<#/#R#E#S#E#T#C#L#E#A#R#>##
# # #<#P#A#C#K#A#G#E#I#D#>#{#f#c#0#1#e#9#1#f#-#9#1#4#c#-#4#5#a#f#-#9#d#7#c#-
#0#b#2#e#5#f#b#e#d#f#6#2#}#<#/#P#A#C#K#A#G#E#I#D#>##
# # #<#D#I#R#C#O#U#N#T#>#6#<#/#D#I#R#C#O#U#N#T#>##
# # #<#F#I#L#E#C#O#U#N#T#>#3#0#<#/#F#I#L#E#C#O#U#N#T#>##
# # #<#T#O#T#A#L#B#Y#T#E#S#>#1#5#2#2#9#6#<#/#T#O#T#A#L#B#Y#T#E#S#>##
# # #<#H#A#R#D#L#I#N#K#B#Y#T#E#S#>#0#<#/#H#A#R#D#L#I#N#K#B#Y#T#E#S#>##
# # #<#C#R#E#A#T#I#O#N#T#I#M#E#>##
# # # # #<#H#I#G#H#P#A#R#T#>#0#x#0#1#D#5#5#D#5#6#<#/#H#I#G#H#P#A#R#T#>##
# # # # #<#L#O#W#P#A#R#T#>#0#x#2#A#6#0#7#0#1#F#<#/#L#O#W#P#A#R#T#>##
# # #<#/#C#R#E#A#T#I#O#N#T#I#M#E#>##
# # #<#L#A#S#T#M#O#D#I#F#I#C#A#T#I#O#N#T#I#M#E#>##
# # # # #<#H#I#G#H#P#A#R#T#>#0#x#0#1#D#5#5#D#5#6#<#/#H#I#G#H#P#A#R#T#>##
# # # # #<#L#O#W#P#A#R#T#>#0#x#2#B#1#F#3#0#3#C#<#/#L#O#W#P#A#R#T#>##
# # #<#/#L#A#S#T#M#O#D#I#F#I#C#A#T#I#O#N#T#I#M#E#>##
# # #<#W#I#M#B#O#O#T#>#0#<#/#W#I#M#B#O#O#T#>##
#<#/#I#M#A#G#E#>##
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
############################################################+7CexsG2idlZpFocUFbUhwQ
1q/mW//OJJ0t9UB03zW3Q9APvNoONdDMJtqjB1zGnyXAcWpvOLoaCnmCFYoJNowSbERJsZi7BZlGCzc4nWK
Ql2Fkxwc6qCTaXTrCinmBlJcHK1yZYLQePnCYOnymY+YyoI9rMHb/94q+b4JtPV8BJ6GxPnxURTUBTZ2hBb
4mYf733rq9vgm86Uzt6z5KQBpz/YED7tIbIhaKBnKxoupgZODDkW/7hVz+FsbSYI4IFiXMHbfnzO0+SgzmX
m3I7aDVzuBK3gxI2XNbIe0WlJ7m7LK/mLAYVEExUAQFl4oHybmF/p+l+Xk6e2AqbIjzu7/kYeQuHKM5zjIH
PndNib6fFJhcFTcF/fU4LDmFzhNyQjATDPbGI39vNHmPgr85pmdtK6zhzjIG/OadFbi+v38yLzc7eF5+dvd
1GtN+3MaC9qKGAjBbNGy8ZITOHqsQW49NbK5LH91E3iLfCikTU5dMuY2SveIfqGrB1ejE54grPndQFvaj5l
r/3yIesJ+EgaJmQB4v6iLwgamJaQpyn/Jk4zlmXmJfnXgVajsSGMJ4JErxB8y3/4GP3Uq5BrvCsIN4CwBwq
qiRgqMaB+DYAnd8B+9UmtxfNQeKiEHLuh3Y3zHzr4X84uRn+G3NKpW+IbwINsiIjbkMJjg3xraDNhSOvpEU
Jk1WGtyG+C3SWpzvZANigogySMSkHmo2/A1pekDAKl2wR4scQcpkMGyxTX6xSPVJKdhUwSZTHO7fQbOXdyA
C/WUpSVwUd5USkHVRUM0VRhRzyLT/07KNUuZYGL3C9NXcBRiPkciRc7wL+Rj03twM2RUlT6cMtpiQywPHf/
eJdjfADDABHYiM5WTTuXX72r09Q16J3gA0Hi3pRRRzv+9NtJ5k0AJuOxIyk+C7XbXfe90fyGTqf99g9gcWf
86RBl0Ow3R3WwJXTWj2Z1c5oS//opZGWBq3eBTaOK1NFNa1wvO/3GEsT2HwkZqbFd4BG6+MfyEdIfbSk9Bh
fq0npMTi7pdwLOAtUKqkLORI6Kt3sBhvvci20Pelm6P7W6Y6ySX+6oJICm7vcJFeALXbpo8K1S5wnvdNdNK
7P1t/4ezwEWuwMB4QcUjlPeheVo9X5mxDgftMx01ZHdJcGSS/YT613nZr2rZu/cWIL/HBJTTv+mier1DTG9
+daNmB8/3UmNS1dsaa5bozPnHjqn59h4K0MaDsSS2ZUsaAndRUJ5N2A65795Z1UsBPXcqzRvXPWiDu2CVla
GtCW5MyAnCUBUbnG+G7QNSBJk1JRG5SUzPykoGpIJX/imtNIPz68zemj3I3hGAOPgeYjsSNIFWeXDiOh4Fv
+85fvo+OmupAx1a+0psl2O19qtGMMvIkF7UdiqQNJPhiKpqYEURoSJEnzLf/83/+JvptdOrBWyBW/DGw68M
qCJGZEndS4HRZRb8pKd4j/D/eOCw8rMYQ1GbyUCst8Ghycm7G95jYC/H/A9iOCSh4C1ZJIXRAzyARZUh8cF
6T9oMX15mNelLksvw1ws0jPzKUKSBWVbCovyuTpR2pSAe3wTTHL+s97+X12+d7uhu5GeD3zPALYRinAPevx
HRFUsRII33XP/uDzVNu8DGxx3sDMCktclvdVKLwhFImUFN/hbB8Zjy8k2IwM72LANnI2MiiJ+pAiKepAJlN
UhcySb/nNnyDdWesoygmZJZsqzoM2g0hHdiJHHgUih62BtCTqgQzmFRBMZvEgKGWDc8DqOchjBM5jxDczoI
NkJRidmGk2yqZx81MuT7R0VNTn7ASOT/vANqMsoxgnlFn8UuDOi0lhFVLStUbpfgV+kQG7CbKDRUnSMipC8
oRK3ALIAKVk5mPMYB2KeMA9HvlhPfLhekVy2bS/Hg3ZwKOCLJmPcryNBTuOiGhRS4r5gkRu3DtMpkd8y1/8
82eo/bv97vF+F6yVGQ/WZRveu7pqZuErbXTv2lszD/Ve0353aPBdNYUj7wiRWNi9kaCxzTDzmY99dBi+o55
SbvnQJ89ZpbTTSiEbEYZa3v5irisQNkdDZDESjPSEe/1eSyvXgOYjiphB5vvpPhJqCWthRNZ0QZLiZc99mB
/Mt8SiPcGeUH+otyfWSy2S2W4vfDnYcvRqV1zbmGewyQwjOyWktaoOw+TZMhchx7i89UNmzNzxU2Feh5+nu
3H1wDKrydzb3Qj/woLWo0iYN4NFl268XFz2letMt5UluiObdKbbYNn3a8D+kiTjQH1c0adlPINOzgkqyg4W
Z/FUuzO9H2yv8rG87B6wvSQp5cJSTh8Fu+nmlioV0ZNu6yrL1gv2lDS5Svn2luUrjfcbDduP3OC5aR5sPIr
SA4V5zb2k2k7NgjdDiya+zbXjl95s56Vd5jvNGIdN0T4SiClq7SE0wN8wgDPyHFKUnIQmJWGpfEUecscw6A
DNBUlYSolG2zUDGLSA5pF8QVUWUHaAP5yM73BP/Fsg/ZGqlbHy7q5aGV00m32Ver2WvRSR64U8vpeMbC9Co
T0vRqFx9X4LA7YeRelBqYh0RdHnBiUhMy+Jmu6W+W8BZ6cbLiYhLst3g/a0lZoSslmyGaHBtmAw2BsMBoNX
ostnZ2ezV5a06N12i3avOpzNry+zYNtRlD6oyLr5OiSSMecjvG/5mc/Q8ZE40GwqKsDnAiEOuFPCRooTfZD
8dMekio/YXZTds4n6XMocns1Xpi40N+gXUXoWgwqILlQB3aCNHwXdJawGl1JHUXpSEvRZRc07QZw1zrP/Up
OnEy5ZkHABgYJJHrCu/cRjoN0K+r2UGkgrRd3EtacmrgWehHMi79DBb5yBTjvLdNpJ65QOXHaO6xRA+/Bj5
qf/8aOntsCvn4FuG8t020jrtjHe7Oj2GxvPceVaFdY78+P7nv5rM/y0F3RUUq1bpfvc8/JtlenjF1Kzg22w
MtU+92K7Gqv1YIF+sKucsXmB0UCY3tZVWbwr7bmePWkrz7u3Yt5EC71sgP903nzryXwlqzQ/Ax87b8D1ZEC
6/Xln/vWbb/kiA69jyPh0aHQYpYs5yzd4RJ5VfMvX/
+QWMj4hxz3COuD1+D73tpPkXY+sbTnfEziJAxY9l/V99m0nGTylC5NHqUmcdK/54KczpXu9AWFsZHhkUMjM
Izl7UFGPinJiyl2T9riPViDgxsSsaGzoYlpVj/sphwUIyylKN/bxFNN9Tge/xoCdR1F6XNHFWTFDtjyHiDv
6qLCkFHXN3pGpeLbEU/szfLwfbDGM5XhzXOzUvIDsKiVgeL0HJKOc+Eusmb7Lc+QSy3OkTmZyZBFzH5l0N8
APM2DHUZROTA0FBrJCQRcX0OAimrKe5/ctP/LwQ9SJgc+OeBkI9gRDlwd7gsFgKMa1lX7hjU9hri3eCba6v
gQjxpdgL9fm3lRpc9vBb91xKakTOthnwS0UJFPQ6eHJJJKzSSUzj/SkeC3yLX+n5BByMyDhFXo5EAdgA9/L
hyIR4+8oH+FjsZIpfqKZ2pSfJ6sdXOqgSPwRJlUlTR5J/9PDd1c77PTUuGzvMwJ/ddlhFl2nivmqhb3148e
rFca7C+PL/G8iUbuw0kNMHXRaxS2iKRXJWUmU0UFR0pHqW/6PW+gDow770YkAH7w82NN/eaRm2R3uYxdKSK
vamTV5qFAkFVAwt95aqYQJGZdMJxHvn3ZQSmi+2UvWir2m5zR8mAHbcXl6ZlpDBzJzypAgZ5AkITVsvqTtk
vElVWk53nfHe04y6c6qFPHLXKrw3U6IYVViSlXb4WYrdHMvVfv+wgCfqSxD9wa7A5msJrhxX+JUB5Duqp4n
3u3qjkC6C1anDIAtJkvr9eR0V1d18p7y15bTXXur01Mn+T47RkGoxLHlOvaUFcCvWAH8GlGA4ScXcs+kXCo
4jTrArFgFzBpRQbqkDrj3d25mwS6Tx2G+N4JnbxMFJOO/Dx7MF1DOdN70VHxOZ3d6T53s8YBLIbvTe2Adcr
5cK3u66uQJV1DNnr11MlHXyyB1G8ToHl4GoMlhZHKh16T1Ld/35AdqDhYWUz7RUtY7v6Iyy5/+
+z3VWO6m5ji7adTNJSPcfGX2z3zhvuqI6SlUSbtpDpPraaG+UE9/1F1t��<#I#M#A#G#E#
#I#N#D#E#X#=#"#1#"#>##
# # #<#N#A#M#E#>#P#o#w#e#r#.#S#e#t#t#i#n#g#s#.#S#l#e#e#p#<#/#N#A#M#E#>##
# # #<#D#E#S#C#R#I#P#T#I#O#N#>#<#/#D#E#S#C#R#I#P#T#I#O#N#>##
# #
#<#N#O#T#E#S#>#V#E#R#S#I#O#N#=#1#0#.#0#.#1#7#0#8#8#.#1#0#0#0#;#S#o#u#r#c#e#=#C#L#I#
;#;#T#a#r#g#e#t#S#k#u#s#=#I#n#v#a#l#i#d#;#E#n#c#r#y#p#t#P#a#c#k#a#g#e#=#F#a#l#s#e#;
#S#i#g#n#P#a#c#k#a#g#e#=#F#a#l#s#e#;#P#a#c#k#a#g#e#I#D#=#3#7#4#2#e#5#e#8#-
#6#d#9#d#-#4#7#3#b#-#9#9#a#6#-#8#e#c#c#0#f#4#3#5#4#8#a#;#<#/#N#O#T#E#S#>##
# # #<#A#U#T#H#O#R#>#<#/#A#U#T#H#O#R#>##
# # #<#V#E#R#S#I#O#N#>#4#.#0#<#/#V#E#R#S#I#O#N#>##
# # #<#A#L#T#I#T#U#D#E#>#0#<#/#A#L#T#I#T#U#D#E#>##
# # #<#R#E#S#E#T#C#L#E#A#R#>#0#<#/#R#E#S#E#T#C#L#E#A#R#>##
# # #<#P#A#C#K#A#G#E#I#D#>#{#3#7#4#2#e#5#e#8#-#6#d#9#d#-#4#7#3#b#-#9#9#a#6#-
#8#e#c#c#0#f#4#3#5#4#8#a#}#<#/#P#A#C#K#A#G#E#I#D#>##
# # #<#D#I#R#C#O#U#N#T#>#6#<#/#D#I#R#C#O#U#N#T#>##
# # #<#F#I#L#E#C#O#U#N#T#>#1#1#<#/#F#I#L#E#C#O#U#N#T#>##
# # #<#T#O#T#A#L#B#Y#T#E#S#>#1#2#1#7#1#<#/#T#O#T#A#L#B#Y#T#E#S#>##
# # #<#H#A#R#D#L#I#N#K#B#Y#T#E#S#>#0#<#/#H#A#R#D#L#I#N#K#B#Y#T#E#S#>##
# # #<#C#R#E#A#T#I#O#N#T#I#M#E#>##
# # # # #<#H#I#G#H#P#A#R#T#>#0#x#0#1#D#5#5#D#5#6#<#/#H#I#G#H#P#A#R#T#>##
# # # # #<#L#O#W#P#A#R#T#>#0#x#2#B#4#A#B#2#8#5#<#/#L#O#W#P#A#R#T#>##
# # #<#/#C#R#E#A#T#I#O#N#T#I#M#E#>##
# # #<#L#A#S#T#M#O#D#I#F#I#C#A#T#I#O#N#T#I#M#E#>##
# # # # #<#H#I#G#H#P#A#R#T#>#0#x#0#1#D#5#5#D#5#6#<#/#H#I#G#H#P#A#R#T#>##
# # # # #<#L#O#W#P#A#R#T#>#0#x#2#B#6#0#2#8#2#D#<#/#L#O#W#P#A#R#T#>##
# # #<#/#L#A#S#T#M#O#D#I#F#I#C#A#T#I#O#N#T#I#M#E#>##
# # #<#W#I#M#B#O#O#T#>#0#<#/#W#I#M#B#O#O#T#>##
#<#/#I#M#A#G#E#>##
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
###################################################################################
########################################################################44795 00000
n
0000144969 00000 n
0000150447 00000 n
0000150576 00000 n
0000150738 00000 n
0000154201 00000 n
0000154330 00000 n
0000154468 00000 n
0000157818 00000 n
0000157947 00000 n
0000158121 00000 n
0000161436 00000 n
0000161565 00000 n
0000161727 00000 n
0000164869 00000 n
0000164998 00000 n
0000165148 00000 n
0000168473 00000 n
0000168602 00000 n
0000168752 00000 n
0000171529 00000 n
0000171658 00000 n
0000171808 00000 n
0000175199 00000 n
0000175328 00000 n
0000175466 00000 n
0000179704 00000 n
0000179833 00000 n
0000179971 00000 n
0000183883 00000 n
0000184012 00000 n
0000184162 00000 n
0000187305 00000 n
0000187434 00000 n
0000187584 00000 n
0000190388 00000 n
0000190517 00000 n
0000190667 00000 n
0000195225 00000 n
0000195354 00000 n
0000195492 00000 n
0000197571 00000 n
0000197792 00000 n
0000197940 00000 n
0000198202 00000 n
0000198856 00000 n
0000199487 00000 n
0000199740 00000 n
0000199879 00000 n
0000199914 00000 n
0000199938 00000 n
0000200005 00000 n
0000200132 00000 n
0000200262 00000 n
0000200356 00000 n
0000203772 00000 n
trailer
<</Size 95>>
startxref
116
%%EOF

Вам также может понравиться