!function(){var n=function(){(this.__clearResourceTimingsSupported="function"==typeof performance.clearResourceTimings,"function"==typeof performance.setResourceTimingBufferSize&&performance.setResourceTimingBufferSize(this.__maxEntries),"object"==typeof performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=this.__handleBufferFull.bind(this)),"function"==typeof PerformanceObserver)&&new PerformanceObserver(this.__checkBufferSize.bind(this)).observe({entryTypes:["resource"]})};n.prototype={__maxEntries:200,__clearResourceTimingsSupported:!1,__bufferClearHandlers:[],beforeBufferClear:function(n,t){if(this.__clearResourceTimingsSupported){var i=t?n.bind(t):n;this.__bufferClearHandlers.push(i)}},getBufferSize:function(){return performance.getEntriesByType("resource").length},_clearBuffer:function(){if(this.__clearResourceTimingsSupported){for(var n=0;n<this.__bufferClearHandlers.length;n++)this.__bufferClearHandlers[n](performance.getEntriesByType("resource"));performance.clearResourceTimings()}},__checkBufferSize:function(){this.getBufferSize()>this.__maxEntries/2&&this._clearBuffer()},__handleBufferFull:function(){this._clearBuffer()}};$$WP=$$WP||{};$$WP.Performance=$$WP.Performance||{};$$WP.Performance.ComplexTypes=$$WP.Performance.ComplexTypes||{};$$WP.Performance.ComplexTypes.ResourceBufferManager=n;$$WP.Performance.ResourceBuffer=new $$WP.Performance.ComplexTypes.ResourceBufferManager}();!function(){$$WP=$$WP||{};$$WP.Performance=$$WP.Performance||{};$$WP.Performance.ComplexTypes=$$WP.Performance.ComplexTypes||{};$$WP.Performance.ComplexTypes.PerformanceTracker=function(){window.addEventListener("DOMContentLoaded",function(){this.__pageLoadOngoing=""!==this.__retrieveCurrentPageIdentifier();this.__trackingEnabled=this.__isTrackingEnabled()}.bind(this));window.addEventListener("pagehide",this.__handleUnload.bind(this));try{this.__pageLoadTimingOffset=+(window.localStorage.getItem("PerformanceTracker-PageLoadTimingOffset")||0);window.localStorage.removeItem("PerformanceTracker-PageLoadTimingOffset")}catch(n){}};$$WP.Performance.ComplexTypes.PerformanceTracker.prototype={__httpRequests:[],__ongoingMeasurements:{},__completedMeasurements:[],__trackingEnabled:!0,__externalStepsOngoing:!1,__pageLoadOngoing:!0,__pageLoadTimingOffset:0,startMeasurement:function(n,t){if(this.__trackingEnabled)if(this.__ongoingMeasurements[n])this.__logMessage(["Attempted to start measurement ",n," at ",performance.now()," while previous measurement was ongoing. Abandoning new event."].join(""),!0);else{var i=new $$WP.Performance.ComplexTypes.Models.Measurement;i.identifier=n;t&&(i.parentIdentifier=t.parent,i.setRoutesFilter(t.routes),i.setAdditionalMetadata(t.detail));this.__ongoingMeasurements[n]=i;i.start=performance.now();this.__logMessage(["Start measurement of ",n," at ",performance.now()].join(""),!0)}},endMeasurement:function(n,t,i){if(this.__trackingEnabled&&n){var r=this.__ongoingMeasurements[n];delete this.__ongoingMeasurements[n];r&&(r.fillTimings(r.start,performance.now()),r.httpRequests=this._getHttpRequestsForRange(r.start,r.end,r.getRoutesFilter()),this.__populateAdditionalMetadata(r,t,i),this.__logMessage(["End measurement of ",n," at ",r.end,". Queuing flush"].join("")),this.__completedMeasurements.push(r),setTimeout(this._flushCompletedMeasurements.bind(this)),this.__checkHttpBuffer())}},pageLoadComplete:function(n,t){if(this.__trackingEnabled){var i=this._generateNavigationMeasurement(n,t);i.httpRequests=i.httpRequests.concat(this.__httpRequests);this.__logMessage(["Logging measurement of ",n," at ",performance.now(),". Queueing flush"].join(""));this.__completedMeasurements.push(i);setTimeout(this._flushCompletedMeasurements.bind(this));this.__pageLoadOngoing=!1;this.__checkHttpBuffer()}},_logHttpRequestFromAjax:function(n){var t;if(this.__capturingHttpRequests())if(t=this.__getPerformanceEntryFromJQXHR(n.originalOptions.url),t){var r=t.redirectCount>0?t.redirectStart:t.requestStart,u=t.responseStart,f=n.getResponseHeader("x-epic-performance-metrics"),i=new $$WP.Performance.ComplexTypes.Models.HttpRequest(r,u,t.name,f);this.__httpRequests.push(i);i.serializedRequestMetrics||this.__logMessage(["Did not receive serialized request metrics for ",n.originalOptions.url].join(""),!0)}else this.__logMessage(["Failed to find performance entry for ",n.originalOptions.url].join(""),!0)},_logHttpRequest:function(n,t,i,r){var u=new $$WP.Performance.ComplexTypes.Models.HttpRequest(n,t,i,r);this.__httpRequests.push(u)},_getHttpRequestsForRange:function(n,t,i){var f,u,r;if(this.__trackingEnabled){for(f=[],u=0;u<this.__httpRequests.length;u++)r=this.__httpRequests[u],n<r.start&&r.start<t&&(i&&0!==i.length&&!i.some(function(n){return r.requestRoute.includes(n)})||f.push(r));return f}},_recordFrameworkMeasurements:function(n,t){var i,f;if(this.__trackingEnabled){var r=this.__retrieveCurrentPageIdentifier(),u=t||r,e=n||"WP_PAGE_LOAD_GENERIC";(r||n||t)&&(i=this._generateNavigationMeasurement(e,u,!1),(i.parentIdentifier=u,"1"==this.__retrieveSetting("__RedirectChainIncludesLogin"))&&(f=this.__generateRedirectMeasurement("WP_LOGIN"),this.__completedMeasurements.push(f)),this.__logMessage(["Completed internal OnPageLoad measurement at ",performance.now(),". Queueing flush"].join(""),!0),this.__completedMeasurements.push(i),setTimeout(this._flushCompletedMeasurements.bind(this)))}},_generateNavigationMeasurement:function(n,t,i){if(this.__trackingEnabled){void 0===i&&(i=!0);var r=new $$WP.Performance.ComplexTypes.Models.Measurement;return r.identifier=n,this.__populateNavigationTimings(r,i),this.__populateAdditionalMetadata(r,t),r}},_notifyMeasurementsInProgress:function(){this.__logMessage(["Received notification of external measurements starting at ",performance.now()].join(""),!0);this.__externalStepsOngoing=!0},_notifyAllMeasurementsComplete:function(){this.__logMessage(["Received notification of all external measurements completed at ",performance.now()].join(""),!0);this.__externalStepsOngoing=!1;this.__checkHttpBuffer()},_flushCompletedMeasurements:function(n){var t,i,r;if(this.__trackingEnabled){for(t=[],n&&(t=n.map(function(n){var t=new $$WP.Performance.ComplexTypes.Models.Measurement;return t.initFromObject(n),t.toWebJSON()})),i=0;i<this.__completedMeasurements.length;i++)t.push(this.__completedMeasurements[i].toWebJSON());t&&0!=t.length&&(this.__logMessage(["Attempting flush of ",t.length," measurement models"].join("")),r=JSON.stringify(t),$$WPUtil.SendBeacon(makeLink("PerformanceMetrics"),r)?(this.__logMessage("Flush successful",!0),this.__completedMeasurements=[]):this.__logMessage("Flush unsuccessful",!0))}},__capturingHttpRequests:function(){return this.__pageLoadOngoing||this.__externalStepsOngoing||Object.keys(this.__ongoingMeasurements).length>0},__checkHttpBuffer:function(){this.__capturingHttpRequests()||(this.__logMessage("All measurements complete. Clearing unneeded HttpRequests from buffer",!0),this.__httpRequests=[])},__getPerformanceEntryFromJQXHR:function(n){for(var r,i=performance.getEntriesByType("resource"),t=0;t<i.length;t++)i[t].name.includes(n)&&(r=i[t]);return r},__generateRedirectMeasurement:function(n,t){if(this.__trackingEnabled){var i=new $$WP.Performance.ComplexTypes.Models.Measurement;return i.identifier=n,this.__populateRedirectTimings(i),this.__populateAdditionalMetadata(i,t),i}},__populateRedirectTimings:function(n){var t,i,r=performance.getEntriesByType("navigation")[0],u;r?(t=r.redirectStart,i=r.redirectEnd):(u=performance.timing,t=this.__convertLegacyTiming(u.redirectStart),i=this.__convertLegacyTiming(u.redirectEnd));n.fillTimings(t,i,this.__pageLoadTimingOffset);n.httpRequests=[this.__generateRedirectHttpRequest(t,i)]},__populateNavigationTimings:function(n,t){var u,e,f,o,i,r;void 0===t&&(t=!1);i=performance.getEntriesByType("navigation")[0];i?(u=i.redirectStart,e=i.redirectEnd,f=i.requestStart,o=i.responseStart):(r=performance.timing,u=this.__convertLegacyTiming(r.redirectStart),e=this.__convertLegacyTiming(r.redirectEnd),f=this.__convertLegacyTiming(r.requestStart),o=this.__convertLegacyTiming(r.responseStart));var s=t?u:f,h=performance.now(),c=t?this.__pageLoadTimingOffset:0;n.fillTimings(s,h,c);n.httpRequests=[this.__generateNavigationHttpRequest(f,o)];t&&n.httpRequests.push(this.__generateRedirectHttpRequest(u,e))},__generateNavigationHttpRequest:function(n,t){return new $$WP.Performance.ComplexTypes.Models.HttpRequest(n,t,window.location.href,this.__retrieveSetting("__NavigationRequestMetrics"))},__generateRedirectHttpRequest:function(n,t){return new $$WP.Performance.ComplexTypes.Models.HttpRequest(n,t,"",this.__retrieveSetting("__NavigationRedirectMetrics"))},__populateAdditionalMetadata:function(n,t,i){n.setAdditionalMetadata(t,null,i)},__retrieveCurrentPageIdentifier:function(){return this.__retrieveSetting("__CurrentPageLoadDescriptor")||""},__isTrackingEnabled:function(){return"1"==this.__retrieveSetting("__RttCaptureEnabled")},__retrieveSetting:function(n){var t=document.getElementById("__PerformanceTrackingSettings");if(t&&t.children)return(t.children[n]||{}).value},__handleUnload:function(){if(this.__trackingEnabled){for(var t=Object.keys(this.__ongoingMeasurements),n=0;n<t.length;n++)this.endMeasurement(t[n],null,!0);this.__logMessage(["Received unload. Attempting to flush ",this.__completedMeasurements.length," measurements"].join(""),!0);this._flushCompletedMeasurements()}},__convertLegacyTiming:function(n){var t=n-(Date.now()-performance.now());return t>0?t:0},__logMessage:function(n,t){var i=$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage;t&&!i||t&&"true"!==localStorage.getItem("PerfTrackerVerboseLogging")||$$WP.Debug.log("[PERF] "+n)},__toggleVerboseLogging:function(){$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage?"true"===localStorage.getItem("PerfTrackerVerboseLogging")?(localStorage.removeItem("PerfTrackerVerboseLogging"),this.__logMessage("Verbose logging off.")):(localStorage.setItem("PerfTrackerVerboseLogging","true"),this.__logMessage("Now attempting to increase the verbosity of the console logging system for MyChart's Javascript PerformanceTracker framework. In order to deactivate the additional logging turned on by this API call, all you need to do is to call $$WP.Performance.Tracker.__toggleVerboseLogging() one additional time. Thank you")):this.__logMessage("Local storage is unavailable, Verbose logging cannot be turned on.")}};$$WP.Performance.Tracker=new $$WP.Performance.ComplexTypes.PerformanceTracker}();!function(){$$WP=$$WP||{};$$WP.Performance=$$WP.Performance||{};$$WP.Performance.ComplexTypes=$$WP.Performance.ComplexTypes||{};$$WP.Performance.ComplexTypes.Models=$$WP.Performance.ComplexTypes.Models||{};var n=function(n,t,i){this.detail=n;this.containsError=t;this.endedByFramework=i};n.prototype={detail:null,containsError:null,endedByFramework:null,toWebJSON:function(){return{Detail:this.detail,ContainsError:this.containsError,EndedByFramework:this.endedByFramework}}};$$WP.Performance.ComplexTypes.Models.AdditionalMetadata=n}();!function(){$$WP=$$WP||{};$$WP.Performance=$$WP.Performance||{};$$WP.Performance.ComplexTypes=$$WP.Performance.ComplexTypes||{};$$WP.Performance.ComplexTypes.Models=$$WP.Performance.ComplexTypes.Models||{};var n=function(n,t,i,r){this.start=n;this.end=t;this.requestRoute=i;this.serializedRequestMetrics=r?JSON.parse(r):void 0};n.prototype={start:null,end:null,requestRoute:null,serializedRequestMetrics:null,initFromObject:function(n){"object"!=typeof n||Object.assign(this,n)},toWebJSON:function(){return{Start:this.start,End:this.end,RequestRoute:this.requestRoute,SerializedRequestMetrics:this.serializedRequestMetrics}}};$$WP.Performance.ComplexTypes.Models.HttpRequest=n}();!function(){$$WP=$$WP||{};$$WP.Performance=$$WP.Performance||{};$$WP.Performance.ComplexTypes=$$WP.Performance.ComplexTypes||{};$$WP.Performance.ComplexTypes.Models=$$WP.Performance.ComplexTypes.Models||{};var n=function(){this.httpRequests=[];this._routesFilter=[]};n.prototype={identifier:null,parentIdentifier:null,start:null,end:null,totalTime:null,endTimeUTC:null,httpRequests:null,additionalMetadata:null,_routesFilter:null,initFromObject:function(n){if("object"==typeof n)return Object.assign(this,n),this.httpRequests=n.httpRequests.map(function(n){var t=new $$WP.Performance.ComplexTypes.Models.HttpRequest;return t.initFromObject(n),t}),void(this.additionalMetadata=new $$WP.Performance.ComplexTypes.Models.AdditionalMetadata(n.additionalMetadata.detail,n.additionalMetadata.containsError,n.additionalMetadata.endedByFramework))},fillTimings:function(n,t,i){this.end=t;this.start=n;this.totalTime=t-n+(i||0);this.endTimeUTC=new Date(Date.now()).toISOString()},setRoutesFilter:function(n){this._routesFilter=n},getRoutesFilter:function(){return this._routesFilter},setAdditionalMetadata:function(n,t,i){this.additionalMetadata?(this.additionalMetadata.detail=n||this.additionalMetadata.detail,this.additionalMetadata.containsError=t||this.additionalMetadata.containsError,this.additionalMetadata.endedByFramework=i||this.additionalMetadata.endedByFramework):this.additionalMetadata=new $$WP.Performance.ComplexTypes.Models.AdditionalMetadata(n,t,i)},toWebJSON:function(){return{Identifier:this.identifier,ParentIdentifier:this.parentIdentifier,Start:this.start,End:this.end,TotalTime:this.totalTime,EndTimeUTC:this.endTimeUTC,HttpRequests:this.httpRequests.map(function(n){return n.toWebJSON()}),AdditionalMetadata:this.additionalMetadata.toWebJSON()}}};$$WP.Performance.ComplexTypes.Models.Measurement=n}();!function(){var t=$$WP.Controllers.Controller,n=function(n,t,i,r){this.$root=n;this.callbackFunction=t;this.template=$$WP.Templates.Navigation.Menu;this.searchTemplate=$$WP.Templates.Navigation.MenuSearch;this.proxify("_onMenuLoaded","_toggleMenu","_onMenuButtonKeydown","_doSearch","__afterHideMenuShield","__setFocusOnMenuOpen","_onSearchEmptyButtonClicked","__handleThrottledUserScroll","__onUserFinishedTyping","__onMenuItemSelected");this.MenuName=r;this.SearchAuditTrail=[];$.get({url:makeLink(i),success:this._onMenuLoaded})};n.prototype={$root:null,$menuRoot:null,$searchRoot:null,$searchEmptyButton:null,$menuShield:null,$menuSearchBar:null,$menuContainer:null,$menuButton:null,userFinishedTypingTimer:null,menu:null,template:null,searchTemplate:null,callbackFunction:null,eventListenerFunctionProxy:null,ShouldAudit:null,CurrentSearchData:null,SearchAuditTrail:null,skipLoggingClosed:null,pendingEventType:null,blocksDownArrow:null,_onMenuLoaded:function(n){var t,u,i,r;if(this.menu=new $$WP.Navigation.Models.Menu(n),this.menu.MenuName=this.MenuName,this._render(),this.ShouldAudit=this.menu.IsNav&&n.ShouldAudit,"function"==typeof this.callbackFunction){if(t={},t.ButtonDisplayName=this.menu.MenuDisplayName,u=[],this.menu.Shortcuts&&this.menu.Shortcuts.length>0)for(i=0;i<this.menu.Shortcuts.length;i++)r=this.menu.Shortcuts[i],r.URL=r.Link,u.push(r);t.Shortcuts=u;this.callbackFunction(t)}},_render:function(){$afe.select("#"+this.MenuName+"Wrapper").safeAppend($afe.renderTemplate(this.template,this.menu,{}));this.$menuRoot=$afe.select("#"+this.MenuName+"-list");this.$searchRoot=$afe.select("#"+this.MenuName+"-searchlist");this.$menuShield=$afe.select("#"+this.MenuName+"-shield");this.$menuShield.on("click",this._toggleMenu);this.$menuSearchBar=$afe.select("#"+this.MenuName+"-searchbar");this.$menuSearchBar.on("input",this._doSearch);this.$menuContainer=$afe.select("#"+this.MenuName+"-container");this.$menuButton=$afe.select("#"+this.MenuName);this.$searchEmptyButton=$afe.select("#"+this.MenuName+"-searchemptybutton");$afe.select("#"+this.MenuName+"-closebutton").on("click",this._toggleMenu);$afe.select("#"+this.MenuName+"-responsiveclosebutton").on("click",this._toggleMenu);this.$root.on("click",this._toggleMenu);this.$root.on("keydown",this._onMenuButtonKeydown);$afe.select("."+this.MenuName+".menuitem-content").on("click",this.__onMenuItemSelected);this.$searchEmptyButton.on("click",this._onSearchEmptyButtonClicked);$$WPUtil.AddImmediateThrottledListener(this.$menuRoot,"scroll","",2e3,this.__handleThrottledUserScroll);$$WPUtil.AddImmediateThrottledListener(this.$searchRoot,"scroll","",2e3,this.__handleThrottledUserScroll)},__onMenuItemSelected:function(n){var t=n.currentTarget.id.split("_")[0],i=0===n.originalEvent.detail?"k":"m";this.__logMenuEvent("MenuSelected",t,i);this.skipLoggingClosed=!0;this._toggleMenu()},_onMenuButtonKeydown:function(n){switch(n.keyCode){case 32:case 13:event.preventDefault();this._toggleMenu()}},_toggleMenu:function(){this.$menuContainer.hasClass("menu-open")?this._closeMenu():this._openMenu()},_openMenu:function(){this.eventListenerFunctionProxy=$.proxy(this._handleMenuKeydown,this);this._preOpenMenu();"menu"===this.MenuName&&($$WP.Utilities.UI.ToggleBodyScrolling(!0),this.__setAriaHiddenForPage(!0));this.$menuContainer.show().addClass("menu-open");this.$menuButton.addClass("menu-rootopen");this.$menuButton.safeAttr("aria-expanded","true");this.$menuShield.show().addClass("menu-shieldopen");this.$menuContainer.on("keydown",this.eventListenerFunctionProxy);this.$menuButton.on("keydown",this.eventListenerFunctionProxy);this.__logMenuEvent("MenuOpened");setTimeout(this.__setFocusOnMenuOpen,0)},__setFocusOnMenuOpen:function(){var n=$afe.select("#"+this.MenuName+"-responsiveclosebutton:visible");0===n.length&&(n=window.outerWidth<769&&"menu"!=this.MenuName?this.$menuButton:this.$menuSearchBar);n.focus()},_closeMenu:function(){this.__logPendingEvent();clearTimeout(this.userFinishedTypingTimer);this.skipLoggingClosed||this.__logMenuEvent("MenuClosed");this.skipLoggingClosed=!1;this.$menuContainer.removeClass("menu-open").off("keydown",this.eventListenerFunctionProxy);this.$menuShield.removeClass("menu-shieldopen");this.$menuButton.removeClass("menu-rootopen").off("keydown",this.eventListenerFunctionProxy).safeAttr("aria-expanded","false");"menu"===this.MenuName&&$$WP.Utilities.UI.ToggleBodyScrolling(!1);setTimeout(this.__afterHideMenuShield,100)},_preOpenMenu:function(){var t=$afe.select(".menu-rootopen")[0],n;void 0!==t&&(n="#"+t.id,this.__logPendingEvent(),clearTimeout(this.userFinishedTypingTimer),$afe.select(".menu-button").off("keydown",this.eventListenerFunctionProxy),$afe.select(".menu-container").off("keydown",this.eventListenerFunctionProxy),$afe.select(".menu-open").hide().removeClass("menu-open"),$afe.select(".menu-shieldopen").hide().removeClass("menu-shieldopen"),$afe.select(".menu-rootopen").removeClass("menu-rootopen").safeAttr("aria-expanded","false"),$afe.select(n+"-list").scrollTop(0),$afe.select(n+"-searchbar").val(""),$afe.select(n+"-searchresultstotal").empty(),$afe.select(n+"-ariasearchresultstotal").empty(),$afe.select(n+"-searchemptybutton").hide(),$afe.select(n+"-searchlist").hide(),$afe.select(n+"-list").show())},__afterHideMenuShield:function(){$afe.select("body");0===$afe.select(".lightbox_overlay:visible").length&&("menu"===this.MenuName&&this.__setAriaHiddenForPage(!1),this.$root.focus());this.$menuRoot.scrollTop(0);this.$menuSearchBar.val("");this._clearSearch(!0);this.$menuContainer.hide();this.$menuShield.hide()},_handleMenuKeydown:function(n){switch(n.keyCode){case 8:this.__handleMenuBackspace(n);break;case 9:this.__handleMenuTab(n);break;case 27:this._closeMenu();break;case 38:n.preventDefault();this.__handleMenuUpArrow(n.target);break;case 40:n.preventDefault();this.__handleMenuDownArrow(n.target);break;case 36:"menu-searchbar"!==n.target.id&&$afe.select(".menuitem-content:visible").first().focus();break;case 35:"menu-searchbar"!==n.target.id&&$afe.select(".menuitem-content:visible").last().focus()}},__handleMenuBackspace:function(n){"INPUT"!==n.target.tagName&&n.preventDefault()},__handleMenuTab:function(n){var i="#"+this.MenuName+"-container ",r=$afe.select(i+"button:not([disabled]), "+i+"input:not([disabled],[type='hidden']), "+i+"a[href]:visible, "+i+"div[tabindex=0]:visible"),t=r[0],u=r[r.length-1];"none"===$afe.jq(t).css("display")&&("undefined"!==(t=t=$afe.select("#"+this.MenuName+"-responsiveclosebutton")[0])&&"none"!==$afe.jq(t).css("display")||(t=this.$menuButton[0]));n.shiftKey?document.activeElement===t&&(u.focus(),n.preventDefault()):document.activeElement===u&&(t.focus(),n.preventDefault());"menu-searchbar"===n.target.id&&this.__logMenuEvent("KeyboardExitSearch")},__handleMenuDownArrow:function(n){var t,i;this.blocksDownArrow||(t=$afe.jq(n),("menu-searchbar"===n.id&&this.__logMenuEvent("KeyboardExitSearch"),t.hasClass("menuitem-content"))?(i=t.parent().next().find(".menuitem-content"),0===i.length?t.closest(".submenu").next().find(".menuitem-content").first().focus():i.focus()):WP.DOM.Browser.isChrome||WP.DOM.Browser.isChromiumEdge?(this.blocksDownArrow=!0,setTimeout(function(){$afe.select(".menuitem-content:visible").first().focus();this.blocksDownArrow=!1}.bind(this),300)):$afe.select(".menuitem-content:visible").first().focus())},__handleMenuUpArrow:function(n){var i=$afe.jq(n),t=i.parent().prev().find(".menuitem-content");0===t.length&&0===(t=i.closest(".submenu").prev().find(".menuitem-content").last()).length?this.$menuSearchBar.focus():t.focus()},__handleThrottledUserScroll:function(){this.__logMenuEvent("UserScrolled")},__setAriaHiddenForPage:function(n){$afe.select("#header").safeAttr("aria-hidden",n);$afe.select("#footer").safeAttr("aria-hidden",n);$afe.select("#content").safeAttr("aria-hidden",n);$afe.select("#toastWrapper").safeAttr("aria-hidden",n)},_onSearchEmptyButtonClicked:function(){this.$menuSearchBar.val("").focus();this._clearSearch()},_doSearch:function(n){var t,i;$afe.select("#"+this.MenuName+"-ariasearchresultstotal").empty();t=n.target.value;t=t.replaceAll("-"," ").toLowerCase().trim();i=!!this.CurrentSearchData&&this.CurrentSearchData.SearchString.startsWith(t);(i&&"InputDeleted"!==this.pendingEventType||!i&&"InputEntered"!==this.pendingEventType)&&this.__logPendingEvent();clearTimeout(this.userFinishedTypingTimer);null!==t&&""!==t?(this.$menuRoot.hide(),this.$searchRoot.empty(),this.CurrentSearchData=new $$WP.Navigation.Models.SearchMenu(this.menu,t,this.ShouldAudit),this.CurrentSearchData.SearchResultsDisplay=this.__getDisplayNumSearchMatches(this.CurrentSearchData.TotalMatches),this.userFinishedTypingTimer=setTimeout(this.__onUserFinishedTyping,500,i),this.pendingEventType=i?"InputDeleted":"InputEntered",this.$searchRoot.safeAppend($afe.renderTemplate(this.searchTemplate,this.CurrentSearchData,{})),this.$searchEmptyButton.show(),this.$searchRoot.show(),this.$menuContainer.off("keydown",this.eventListenerFunctionProxy),this.eventListenerFunctionProxy=$.proxy(this._handleMenuKeydown,this),this.$menuContainer.on("keydown",this.eventListenerFunctionProxy),$afe.select("#"+this.MenuName+"-searchlist ."+this.MenuName+".menuitem-content").on("click",this.__onMenuItemSelected)):this._clearSearch()},_clearSearch:function(n){$afe.select("#"+this.MenuName+"-ariasearchresultstotal").empty();this.__logPendingEvent();clearTimeout(this.userFinishedTypingTimer);this.$menuContainer.off("keydown",this.eventListenerFunctionProxy);this.$searchRoot.hide();this.$menuRoot.show();this.CurrentSearchData=null;n||this.__logMenuEvent("InputCleared");var t=$afe.select("#"+this.MenuName+"-searchemptybutton");setTimeout(function(){t.hide()},50);this.eventListenerFunctionProxy=$.proxy(this._handleMenuKeydown,this);this.$menuContainer.on("keydown",this.eventListenerFunctionProxy)},__getDisplayNumSearchMatches:function(n){var t="";switch(n){case 0:t=$$WP.Strings.get("MenuSearchNoResults","Navigation.Menu");break;case 1:t=$$WP.Strings.get("MenuSearchOneResult","Navigation.Menu");break;default:$$WP.Strings.addMnemonic("@MYCHART@NUMSEARCHMATCHES@",n,!1,"Navigation.Menu");t=$$WP.Strings.get("MenuSearchMultipleResults","Navigation.Menu");$$WP.Strings.removeMnemonic("@MYCHART@NUMSEARCHMATCHES@","Navigation.Menu")}return t},__onUserFinishedTyping:function(n){$afe.select("#menu-ariasearchresultstotal").text(this.CurrentSearchData.SearchResultsDisplay);var t=n?"InputDeleted":"InputEntered";this.pendingEventType===t&&(this.__logMenuEvent(t),this.pendingEventType=null)},__logPendingEvent:function(){null!==this.pendingEventType&&(this.__logMenuEvent(this.pendingEventType),this.pendingEventType=null)},__logMenuEvent:function(n,t,i){var r,u,f;this.ShouldAudit&&(this.pendingEventType!==n&&this.__logPendingEvent(),r={},r.Action=n,r.ChangesMenuState=this.__eventChangesMenuState(n),r.CurrentLocale=$$WP.CurrentLocale?$$WP.CurrentLocale.Identifier:"NA",u=new Date(Date.now()),(r.OccurredAt=u.getTime(),this.CurrentSearchData&&(r.SearchTerm=this.CurrentSearchData.SearchString.substring(0,500),this.__eventLogsMenus(n)&&(r.MenuItems=this.CurrentSearchData.AuditState)),t&&(r.SelectedMenuItem={Id:t,SelectionMethod:i,SynonymMatch:this.CurrentSearchData?this.__getSynonymMatch(t):""}),this.SearchAuditTrail||(this.SearchAuditTrail=[]),this.SearchAuditTrail.push(r),this.__eventIsTerminal(n)||this.SearchAuditTrail.length>5)&&(f=this.SearchAuditTrail,getCSRFTokenAsQS(function(){$.ajax({type:"POST",url:makeLink("Menu/Menu/Audit"),data:JSON.stringify({events:f}),contentType:"application/json;",dataType:"text"})}),this.SearchAuditTrail=null))},__getSynonymMatch:function(n){for(menuInd=0;menuInd<this.CurrentSearchData.AuditState.length;menuInd++)if(this.CurrentSearchData.AuditState[menuInd].Id===n)return this.CurrentSearchData.AuditState[menuInd].SynonymMatch},__eventChangesMenuState:function(n){switch(n){case"MenuOpened":case"InputEntered":case"InputDeleted":case"InputCleared":return!0;default:return!1}},__eventLogsMenus:function(n){switch(n){case"InputEntered":case"InputDeleted":return!0;default:return!1}},__eventIsTerminal:function(n){return"MenuSelected"===n||"MenuClosed"===n}};$$WP.Navigation=$$WP.Navigation||{};$$WP.Navigation.MenuController=n;n.extend(t,"WP$Navigation$MenuController")}();!function(){var n,t;$$WP.Utilities.guaranteeExistence($$WP,"ProxySwitch.Controllers");n=function(n){this.$switchRoot=n;this.strings=$$WP.Strings.getNamespace("ProxySwitch.ProxySwitch.ProxySelector");this.lastCloseTime=0;this.photoTemplate=$$WP.Templates.ProxySwitch.PatientRoundIcon;this.switchTemplate=$$WP.Templates.ProxySwitch.DropDownProxySelector;this.subjectListTemplate=$$WP.Templates.ProxySwitch.SubjectList;var t="ProxySwitch",i=new URLSearchParams(window.location.search).get("path");i&&(t+="?queryParams=",t+=encodeURIComponent("?path="+i));$.ajax({url:makeLink(t),success:this._onModelLoaded.bind(this),type:"GET",dataType:"JSON"});this.keyCode={TAB:9,RETURN:13,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};this.proxify("_showPhotoConfirmationCore")};n.prototype={$switchRoot:null,switchTemplate:null,modelData:null,photoTemplate:null,popupMenuController:!1,dontReopen:!1,$popupMenu:null,$menuButton:null,strings:null,lastCloseTime:0,uploadController:null,subjectListTemplate:null,_onModelLoaded:function(n){this.modelData=new $$WP.ProxySwitch.Models.ProxySelectorViewModel(n);this._render();this.modelData.Loading&&setTimeout(this.retry.bind(this),5e3)},_render:function(){this._registerPartialTemplates();this.$switchRoot.safeAppend($afe.renderTemplate(this.switchTemplate,this.modelData,{}));this.$menuButton=this.$switchRoot.find(".proxyMenuButton");this.$menuButton.safeAttr("aria-haspopup","true");this.$popupMenu=$("#proxyList");$afe.jq(window).on("resize",$.proxy(this._onResize,this));1===this.$popupMenu.length&&(this.popupMenuController=new $$WP.ProxySwitch.Controllers.ProxyPopupMenuController(this.$popupMenu,this));this._onResize();!0===this.modelData.ShowPhotoUpload&&this._createUploadController();var n=document.querySelector(".logOutListItem");n&&n.addEventListener("click",$$WP.Utilities.UI._logOutHandler);this.$menuButton.on("click",this._handleClick.bind(this));$afe.select(".proxyMenuShield").on("click",this._handleClick.bind(this));this.$menuButton.on("keydown",this._handleKeydown.bind(this));WP.DOM.Browser.isIE&&$afe.select(".proxySelectorDropDownNameEllipsis").safeAttr("aria-hidden","false");$afe.select(".roundedPatientPhoto").children("img").on("error",this._onPhotoIconError.bind(this))},_onResize:function(){var n=this.$switchRoot.find(".proxySwitchNav"),t,i;!this.$menuButton||this.$menuButton.length<1||!n||n.length<1||(t=this.$menuButton[0].getBoundingClientRect().height,"fixed"!==n.css("position")?n.css("top",t):(i=this.$menuButton[0].getBoundingClientRect().top,n.css("top",i+t)))},retry:function(){$.ajax({url:makeLink("ProxySwitch"),success:this._onModelReloaded.bind(this),type:"GET",dataType:"JSON"})},_onModelReloaded:function(n){this.modelData=new $$WP.ProxySwitch.Models.ProxySelectorViewModel(n);this._rerender();this.modelData.Loading&&setTimeout(this.retry.bind(this),5e3)},_rerender:function(){this._registerPartialTemplates();var n=$afe.jq(document.activeElement).data("id"),t="true"===this.$menuButton.safeAttr("aria-expanded");this.$switchRoot.find("#proxySubjectList").safeReplaceWith($afe.renderTemplate(this.subjectListTemplate,this.modelData,{}));this.$popupMenu=$afe.select("#proxyList");1===this.$popupMenu.length&&(this.popupMenuController.destroy(),this.popupMenuController=new $$WP.ProxySwitch.Controllers.ProxyPopupMenuController(this.$popupMenu,this));t&&(this.openProxyDropdown(),this.popupMenuController.returnFocusToItem(n));this._onResize();WP.DOM.Browser.isIE&&$afe.select(".proxySelectorDropDownNameEllipsis").safeAttr("aria-hidden","false");$afe.select(".roundedPatientPhoto").children("img").on("error",this._onPhotoIconError.bind(this))},_onPhotoIconError:function(n){var t,i,r;n&&n.target&&(t=$afe.jq(n.target),i=t.data("first-letter"),i&&(t.parent().addClass("noBorder"),r=$("<span aria-hidden='true'>"+i+"<\/span>"),t.safeReplaceWith(r)))},_registerPartialTemplates:function(){Handlebars.registerPartial("roundPatientIcon",$$WP.Templates.ProxySwitch.PatientRoundIcon)},_createUploadController:function(){var t={},n;t.ViewTemplate=$$WP.Templates.ProxySwitch.DropDownProxySelector;n=new $$WP.Upload.Models.UploadConfiguration(t);n.ConfigUrl=makeLink("ProxySwitch/ProxyPhotoUpload/GetFileUploadConfiguration");n.UploadUrl=makeLink("ProxySwitch/ProxyPhotoUpload/UploadFile");n.ConfirmationViewModel=this.modelData.CurrentlySelected;n.MasterController=this;n.ConfirmFunction=this._findExifAndShowConfirmationPopup;n.RefreshViewOverride=this._updateFileSelector;n.onUploadSuccess=this._refreshPage;n.onUploadFail=this._hideLoading;n.NeedsRedirect=!0;n.RedirectTitle=this.strings.getString("photoUploadUnsavedChangesPopupTitle");n.RedirectHtml=this.strings.getString("photoUploadUnsavedChangesPopupText");n.UseGet=!0;n.onConfigSucess=$.proxy(this._hidePhotoUploadIfInvalid,this);n.FromVBPage=!0;this.uploadController=new $$WP.Upload.Controllers.UploadController($afe.select(".patientPhotoListItem"),n)},_hidePhotoUploadIfInvalid:function(){(!this.uploadController._settings.AllowedImageAndDocumentExtensions||this.uploadController._settings.AllowedImageAndDocumentExtensions.length<1)&&(this.modelData.resetPhotoUploadToFalse(),this.$switchRoot.empty(),this._render())},_updateFileSelector:function(n){n&&n._settings&&Array.isArray(n._settings.AllowedImageAndDocumentExtensions)&&($afe.select("#patientPhotoFileInput").safeReplaceWith($afe.select("#patientPhotoFileInput")).val("").clone(!0),$afe.select("#patientPhotoFileInput").safeAttr("accept","image/"+n._settings.AllowedImageAndDocumentExtensions.join(",image/")))},_refreshPage:function(){$$WPUtil.ShowAjaxSpinner($afe.select(".ajaxspinner"));$$WPUtil.TryRedirect(makeLink("inside.asp?mode=HttpModule&State="+self.location.pathname.substring(WP.myPath.length)+encodeURIComponent(self.location.search)+"&RebuildMenu=1"))},_hideLoading:function(){$$WPUtil.HideAjaxSpinner($afe.select(".defaultajaxoverlay"))},_findExifAndShowConfirmationPopup:function(n,t,i,r){var u={};u.viewModel=t;u.successCallback=i;u.uploadController=r;u.inpFile=n;this._getExifTag(n,this._showPhotoConfirmationPopup.bind(this),u)},_showPhotoConfirmationPopup:function(n,t){var i=n.inpFile,f=n.viewModel,e=n.successCallback,o=n.uploadController,r,u;t||-1!==i.name.toLowerCase().indexOf(".tif",i.name.length-5)?(r=new FormData,r.append("__file__[]",i),$$WPUtil.ShowAjaxSpinner($afe.select(".defaultajaxoverlay")),u=this,getCSRFTokenAsQS(function(){$.ajax({dataType:"json",type:"POST",processData:!1,contentType:!1,url:makeLink("ProxySwitch/ProxyPhotoUpload/ConvertToJpegRemoveExif"),data:r,success:$.proxy(function(n){$$WPUtil.HideAjaxSpinner($afe.select(".defaultajaxoverlay"));u._showPhotoConfirmationCore(!0,i,f,e,o,n.bytes)},u)})})):this._showPhotoConfirmationCore(!1,i,f,e,o)},_getExifTag:function(n,t,i){var r=new FileReader;r.onload=function(n){var u=new DataView(n.target.result),h,r,s,f,c,e,l,o;if(65496!=u.getUint16(0))return t(i,!1);for(h=u.byteLength,r=2;r<h;){if(this._safeGetUint(u,r+2,16,!1)<=8)return t(i,!1);if(s=this._safeGetUint(u,r,16,!1),r+=2,65505==s){if(1165519206!=this._safeGetUint(u,r+=2,32,!1))return t(i,!1);if(f=18761==this._safeGetUint(u,r+=6,16,!1),-1===(o=this._safeGetUint(u,r+4,32,f)))break;for(r+=o,c=this._safeGetUint(u,r,16,f),r+=2,e=0;e<c;e++)if(274==this._safeGetUint(u,r+12*e,16,f))return l=this._safeGetUint(u,r+12*e+8,16,f),t(i,l>=2)}else{if(65280!=(65280&s))break;if(-1===(o=this._safeGetUint(u,r,16,!1)))break;r+=o}}return t(i,!1)}.bind(this);r.readAsArrayBuffer(n)},_safeGetUint:function(n,t,i,r){try{return 16===i?n.getUint16(t,r):n.getUint32(t,r)}catch(n){return-1}},_showPhotoConfirmationCore:function(n,t,i,r,u,f){var o,s,c,h,l,a,e,v;return this.strings.addMnemonic("@MYCHART@SUBJECT_PATIENTNAME@",this.modelData.CurrentlySelected.DisplayName),this.strings.addMnemonic("@MYCHART@PHOTO_FILENAME@",t.name,$$WP.Strings.EncodingTypes.None),this.strings.addMnemonic("@MYCHART@ALLOWEDAREAS@",this.modelData.CurrentlySelected.ServiceAreaAbbreviationList,$$WP.Strings.EncodingTypes.None),c=[new $$WPComp.ComplexObjects.Button(this.strings.getString("photoConfirmationPopupAcceptButton"),null,"nextstep","continue"),new $$WPComp.ComplexObjects.Button(this.strings.getString("photoConfirmationPopupCancelButton"),null,"inlinedelete","stop")],this.modelData.CurrentlySelected.IsSelf?(o=this.uploadController._settings.IsPhotoForPatientsChart?"photoUploadConfirmationSelf":"photoUploadConfirmationSelfMyChartOnly",s=this.uploadController._settings.IsPhotoForPatientsChart?"photoUploadScreenReaderConfirmationSelf":"photoUploadScreenReaderConfirmationSelfMyChartOnly"):(o=this.uploadController._settings.IsPhotoForPatientsChart?"photoUploadConfirmationSubject":"photoUploadConfirmationSubjectMyChartOnly",s=this.uploadController._settings.IsPhotoForPatientsChart?"photoUploadScreenReaderConfirmationSubject":"photoUploadScreenReaderConfirmationSubjectMyChartOnly"),this.modelData.CurrentlySelected.ServiceAreaAbbreviationList&&(o+="ServiceAreas",s="ServiceAreas"),h=this.strings.getString(o),l=this.strings.getString(s),this.strings.removeMnemonic("@MYCHART@SUBJECT_PATIENTNAME@"),this.strings.removeMnemonic("@MYCHART@PHOTO_FILENAME@"),this.strings.removeMnemonic("@MYCHART@ALLOWEDAREAS@"),h="<span id='proxyPhotoPreview' class='largePhoto'><\/span>  <span class='clearlabel'>"+l+"<\/span><span aria-hidden='true'>"+h+"<\/span> ",a=this.strings.getString("UploadingPhoto"),e=URL.createObjectURL(t),(i.PhotoUrl=e,$$WPUtil.quickMessageBox(h,this.strings.getString("uploadPhotoTitle"),c,function(n,t,i,r,u,f){URL.revokeObjectURL(r);"toolbarcontinue"===f&&($$WPUtil.ShowAjaxSpinner($afe.select(".defaultajaxoverlay")),t.call(n,i))},[u,r,t,e,a],"photoUploadConfirmationComponent"),n)&&(v=new Blob([new Uint8Array(f)],{type:"image/jpeg"}),e=URL.createObjectURL(v),i.PhotoUrl=e),$afe.select("#proxyPhotoPreview").safeAppend($afe.renderTemplate($$WP.Templates.ProxySwitch.PatientRoundIcon,i)),$afe.select("#proxyPhotoPreview").safeAttr("aria-label",t.name),this._updateFileSelector(this.uploadController),!0},_handleKeydown:function(n){var t=!1;switch(n.keyCode){case this.keyCode.SPACE:case this.keyCode.RETURN:this.popupMenuController&&(this.openProxyDropdown(),this.popupMenuController.setFocusToFirstItem());t=!0;break;case this.keyCode.ESC:this.popupMenuController&&"true"===this.$menuButton.safeAttr("aria-expanded")&&(this.closeProxyDropdown(),t=!0)}t&&(n.stopPropagation(),n.preventDefault())},_handleClick:function(){this.dontReopen&&(this.dontReopen=!1);"true"===this.$menuButton.safeAttr("aria-expanded")?this.closeProxyDropdown():(this.openProxyDropdown(),this.popupMenuController.setFocusToFirstItem())},openProxyDropdown:function(){var n,t;(new Date).getTime()-this.lastCloseTime<250||(this._onResize(),this.$switchRoot.addClass("show-menu"),this.$menuButton.safeAttr("aria-expanded","true"),$afe.select(".proxyMenuShield").fadeIn("fast"),this.__setAriaHiddenForPage(!0),n=$afe.select("body"),window.innerWidth>1024&&n.css("margin-top",-$$WPUtil.getScrollTop()),t=n.css("position"),$$WP.Utilities.UI.ToggleBodyScrolling(!0),n.css("position",t),$afe.select(".dropDownProxyList")[0].scrollTop=0)},closeProxyDropdown:function(){this.$switchRoot.removeClass("show-menu");this.$menuButton.safeAttr("aria-expanded","false");var n=$afe.select("body"),t=-parseInt(n.css("margin-top"));$afe.select(".proxyMenuShield").fadeOut("fast");$$WP.Utilities.UI.ToggleBodyScrolling(!1);window.innerWidth>1024&&(n.css("margin-top",""),$$WPUtil.setScrollTop(t));this.lastCloseTime=(new Date).getTime();this.__setAriaHiddenForPage(!1);n.css("position","")},__setAriaHiddenForPage:function(n){$afe.select("#footer").safeAttr("aria-hidden",n);$afe.select("#content").safeAttr("aria-hidden",n);$afe.select("#toastWrapper").safeAttr("aria-hidden",n)}};t={ControllerObject:null,Constructor:n,getProxySelectorController:function(n){return this.ControllerObject||(this.ControllerObject=new this.Constructor(n)),this.ControllerObject}};$$WP.ProxySwitch.Controllers.ProxySelectorController=t;n.extend($$WP.Controllers.Controller,"WP$ProxySwitch$Controllers$ProxySelectorController")}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"ProxySwitch.Controllers");var n=function(n,t){var i,r;this.$root=n;this.parentController=t;this.menuitems=[];childElements=this.$root.find("li");i=this;childElements.each(function(n,t){t.children.length<1||(menuElement=t.children[0],!menuElement||"A"!==menuElement.tagName.toUpperCase()&&"DIV"!==menuElement.tagName.toUpperCase()||(i.menuitems.push(menuElement),menuElement.onclick=i._handleClick.bind(i,menuElement),t.onkeydown=i._handleKeydown.bind(i,t)))});r=this.menuitems.length;r>0&&(this.firstItem=this.menuitems[0],this.lastItem=this.menuitems[r-1]);this.keyCode={TAB:9,RETURN:13,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40}};n.prototype={$root:null,parentController:null,menuitems:null,firstChars:null,firstItem:null,lastItem:null,hasFocus:!1,currentItem:null,destroy:function(){childElements=this.$root.find("li");childElements.each(function(n,t){t.children.length<1||(menuElement=t.children[0],!menuElement||"A"!==menuElement.tagName.toUpperCase()&&"DIV"!==menuElement.tagName.toUpperCase()||(menuElement.onclick=null,t.onkeydown=null))});this.menuitems=null},setFocusToController:function(){this.parentController.$menuButton.focus()},setFocusToFirstItem:function(){this.firstItem.focus();this.currentItem=this.firstItem},setFocusToLastItem:function(){this.lastItem.focus();this.currentItem=this.lastItem},setFocusToPreviousItem:function(){var n;this.currentItem===this.firstItem?this.setFocusToLastItem():(n=this.menuitems.indexOf(this.currentItem),this.menuitems[n-1].focus(),this.currentItem=this.menuitems[n-1])},setFocusToNextItem:function(){var n;this.currentItem===this.lastItem?this.setFocusToFirstItem():(n=this.menuitems.indexOf(this.currentItem),this.menuitems[n+1].focus(),this.currentItem=this.menuitems[n+1])},returnFocusToItem:function(n){var t=this.menuitems.findIndex(this.findMenuItemByDataId,n);-1!==t?(this.menuitems[t].focus(),this.currentItem=this.menuitems[t]):this.setFocusToFirstItem()},findMenuItemByDataId:function(n){return $afe.jq(n).data("id")==this},_removeLinks:function(n){this.menuitems.forEach(function(t){t.href!==n&&(t.href="#")})},_handleClick:function(n,t){"true"===n.dataset.closedropdown?(this.setFocusToController(),this.parentController.closeProxyDropdown(),t.stopImmediatePropagation()):n.href&&"#"!==n.href&&"true"===n.dataset.switchpatients&&$$WPUtil.SafeToRedirect(function(t){t&&($$WPUtil.TryRedirect(n.href),$afe.select(".proxySubjectLink").removeAttr("href"),$afe.select(".proxySubjectLink").removeAttr("onclick"),$afe.select("#itemFeedContainer a").removeAttr("href"),$afe.select("#itemFeedContainer a").removeAttr("onclick"))})},_handleKeydown:function(n,t){var i=!1;if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.shiftKey)t.keyCode===this.keyCode.TAB&&(this.setFocusToPreviousItem(this),i=!0);else switch(t.keyCode){case this.keyCode.ESC:return this.setFocusToController(),void this.parentController.closeProxyDropdown();case this.keyCode.UP:this.setFocusToPreviousItem(this);i=!0;break;case this.keyCode.DOWN:case this.keyCode.TAB:this.setFocusToNextItem(this);i=!0;break;case this.keyCode.HOME:case this.keyCode.PAGEUP:this.setFocusToFirstItem();i=!0;break;case this.keyCode.END:case this.keyCode.PAGEDOWN:this.setFocusToLastItem();i=!0;break;case this.keyCode.RETURN:case this.keyCode.SPACE:n.firstElementChild.click();i=!0}i&&(t.stopPropagation(),t.preventDefault())}}};$$WP.ProxySwitch.Controllers.ProxyPopupMenuController=n;n.extend($$WP.Controllers.Controller,"WP$ProxySwitch$Controllers$ProxyPopupMenuController")}();!function(){var i,r,n,t;$$WP.Utilities.guaranteeExistence($$WP,"Upload.Controllers");i="WP_FILE_UPLOAD";r=function(n,t,i,r,u){var f;if(this.WP$Controllers$Controller(),this._viewContainer$=n,this._documentCollection=new $$WP.Common.ModelCollection([{propertyNames:"DocumentId",storeAs:"single"}],[],[]),this._isConfigLoaded=!1,this._settings=t,this._documentModelClass=r||$$WP.Upload.Models.Document,this.__afterRefreshView=u,i&&i.length>0)for(f=0;f<i.length;++f)this._documentCollection.add(new this._documentModelClass(i[f]));this.__pendingUploadFiles=[];this.proxify("_onAddButtonClicked","_onRemoveButtonClicked","_uploadFile","_onFileNameEdited","__onDropFiles","__onDragEnter","__onDragLeave","_onFileNameInputKeyPressed","_onViewButtonClicked");this._getConfig();this._refreshView();this._attachEventHandlers()};r.prototype={_viewContainer$:null,_settings:null,_documentCollection:null,_documentModelClass:null,__afterRefreshView:null,_isConfigLoaded:null,_getConfig:function(){if(this._settings.ConfigUrl){this._isConfigLoaded=!1;this.__isFunction(this._settings.onConfigStart)&&this._settings.onConfigStart();var n=this._settings.UseGet?"GET":"POST";$.ajax({type:n,dataType:"json",data:$$WPUtil.postify(this._settings.ContextData),url:this._settings.ConfigUrl}).done($.proxy(this.__onConfigSuccess,this)).fail($.proxy(this.__onConfigFail,this))}else this._isConfigLoaded=!0},__onConfigSuccess:function(n){if(n.Success){this._isConfigLoaded=!0;var t=new $$WP.Upload.Models.UploadConfiguration(n.Data);this._settings.AllowedExtensions=t.AllowedExtensions;this._settings.AllowedImageAndDocumentExtensions=t.AllowedImageAndDocumentExtensions;this._settings.AllowedVideoExtensions=t.AllowedVideoExtensions;this._settings.MaxAllowedImageSize=t.MaxAllowedImageSize;this._settings.MaxAllowedVideoSize=t.MaxAllowedVideoSize;this._settings.MaxFilesAllowed=t.MaxFilesAllowed;this._settings.IsPhotoForPatientsChart=t.IsPhotoForPatientsChart;this._refreshView();this.__isFunction(this._settings.onConfigSucess)&&this._settings.onConfigSucess(this._settings,n.Data)}else this.__onConfigFail(n)},__onConfigFail:function(n){this._handleCommunicationFail(t.GetConfig,n)},__pendingUploadFiles:null,_uploadFile:function(){var n=this._viewContainer$.find(".upload-input[data-function='upload-core']").prop("files");this.__uploadFileCore(n)},__uploadFileCore:function(t){var i,r;if(this._settings.MaxFilesAllowed<this._documentCollection.Models.length+t.length)return this.__isFunction(this._settings.onUploadFail)&&this._settings.onUploadFail(),void this._showErrorMessage("FileNotAcceptedPopupTooManyFilesErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText");for(i=0;i<t.length;++i)if(0!==(r=this._settings.IsFileAceptable(t[i].name,t[i].size))){switch(this.__isFunction(this._settings.onUploadFail)&&this._settings.onUploadFail(),r){case 1:this._showErrorMessage("FileNotAcceptedPopupWrongExtensionErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText");break;case 2:this._settings.MaxAllowedImageSize>=1024?this._showErrorMessage("FileNotAcceptedPopupLargeImageErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText"):this._showErrorMessage("FileNotAcceptedPopupLargeImageErrorTextKb","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText");break;case 3:this._showErrorMessage("FileNotAcceptedPopupLargeVideoErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText");break;case 4:this._showErrorMessage("FileNotAcceptedPopupInvalidFilenameErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText")}return}if(n)this._showErrorMessage("FileNotAcceptedPopupAnotherUploadErrorText","FileNotAcceptedPopupHeaderText","FileNotAcceptedPopupButtonText");else{for(i=0;i<t.length;++i)"function"==typeof this._settings.ConfirmFunction?this._settings.ConfirmFunction.call(this._settings.MasterController,t[i],this._settings.ConfirmationViewModel,this.__pushToPending,this):this.__pendingUploadFiles.push(t[i]);this._settings.ConfirmFunction||this.__flushUploadQueue()}},__pushToPending:function(n){this.__pendingUploadFiles.push(n);this.__flushUploadQueue()},__flushUploadQueue:function(){var u,r,t;if(0===(this.__pendingUploadFiles||[]).length)return n=!1,this._refreshView(!0),void($$WP.Performance&&$$WP.Performance.Tracker&&$$WP.Performance.Tracker.endMeasurement(i));($$WP.Performance&&$$WP.Performance.Tracker&&$$WP.Performance.Tracker.startMeasurement(i),this.__isFunction(this._settings.onUploadStart)&&this._settings.onUploadStart(),n=!0,this._refreshView(!0),u=this.__pendingUploadFiles.shift(),(r=new FormData).append("__file__[]",u),this._serializeContextToFormData(r,this._settings.ContextData),this._settings.FromVBPage)?(t=this,getCSRFTokenAsQS(function(){$.ajax({type:"POST",processData:!1,contentType:!1,data:r,url:t._settings.UploadUrl,suppressEpicDefaultAjaxErrorHandler:!0}).done($.proxy(t.__onUploadSuccess,t)).fail($.proxy(t.__onUploadFail,t))})):$.ajax({type:"POST",processData:!1,contentType:!1,data:r,url:this._settings.UploadUrl,suppressEpicDefaultAjaxErrorHandler:!0}).done($.proxy(this.__onUploadSuccess,this)).fail($.proxy(this.__onUploadFail,this))},__onUploadSuccess:function(n){var t,u,r;if(n.Success){for(r=[],u=(n.Data||[]).length,t=0;t<u;++t)r.push(new this._documentModelClass(n.Data[t]));this._documentCollection.addRange(r);this._refreshView();this.__isFunction(this._settings.onUploadSuccess)&&this._settings.onUploadSuccess(r,n);this._viewContainer$.find("[name^='name-field']").last().focus();this.__flushUploadQueue()}else this.__onUploadFail(n),$$WP.Performance&&$$WP.Performance.Tracker&&$$WP.Performance.Tracker.endMeasurement(i)},__onUploadFail:function(r){n=!1;this.__isFunction(this._settings.onUploadFail)&&this._settings.onUploadFail();this.__pendingUploadFiles=[];this._refreshView(!0);this._handleCommunicationFail(t.UploadFile,r);$$WP.Performance&&$$WP.Performance.Tracker&&$$WP.Performance.Tracker.endMeasurement(i)},_editFileName:function(n){var t=n.toRawObject()||{};t.ContextData=this._settings.ContextData;this.__isFunction(this._settings.onEditStart)&&this._settings.onEditStart();$.ajax({type:"POST",url:this._settings.EditUrl,data:$$WPUtil.postify(t),dataType:"json"}).done($.proxy(this._editFileNameSuccess,this)).fail($.proxy(this.__editFileNameFail,this))},_editFileNameSuccess:function(n){if(n.Success){var t=this._documentCollection.getFirstInIndex("DocumentId",n.Data.DocumentId);this.__isFunction(this._settings.onEditSuccess)&&this._settings.onEditSuccess(t,n)}else this.__editFileNameFail(n)},__editFileNameFail:function(n){this._handleCommunicationFail(t.EditFileName,n)},_deleteFile:function(n){var t=n.toRawObject()||{};t.ContextData=this._settings.ContextData;this.__isFunction(this._settings.onDeleteStart)&&this._settings.onDeleteStart(n.DocumentId);$.ajax({dataType:"json",type:"POST",url:this._settings.DeleteUrl,data:$$WPUtil.postify(t)}).done($.proxy(this.__deleteSuccess,this,n)).fail($.proxy(this.__deleteFail,this))},__deleteSuccess:function(n,t){t.Success?n&&(this._documentCollection.remove(n),this._refreshView(),this._viewContainer$.find(".addItem a").focus(),this._viewContainer$.find(".addItem a").parent().addClass("hover"),this.__isFunction(this._settings.onDeleteSuccess)&&this._settings.onDeleteSuccess(n,t)):this.__deleteFail(t)},__deleteFail:function(n){this._handleCommunicationFail(t.DeleteFile,n)},_refreshView:function(t){if("function"!=typeof this._settings.RefreshViewOverride){var i={Configuration:this._settings,IsCurrentlyUploading:n,IsLimitReached:this._documentCollection.Models.length>=this._settings.MaxFilesAllowed,IsConfigLoading:!1===this._isConfigLoaded,CanUpload:!n&&this._documentCollection.Models.length<this._settings.MaxFilesAllowed&&this._isConfigLoaded};$$WP.Strings.setDefaultNamespace(this._settings.DefaultStringNamespace);i.Documents=this._documentCollection.Models;t?this._viewContainer$.find(".upload-addFile").safeReplaceWith($afe.renderTemplate(this._settings.UploadCardTemplate,i)):this._viewContainer$.empty().safeAppend($afe.renderTemplate(this._settings.ViewTemplate,i));$$WP.Strings.clearDefaultNamespace();this._viewContainer$.find(".cardlist").trigger("cardLoad");"function"==typeof this.__afterRefreshView&&this.__afterRefreshView()}else this._settings.RefreshViewOverride.call(this,this)},_attachEventHandlers:function(){this.__isFunction(this._settings.AttachContainerEventHandlers)&&this._settings.AttachContainerEventHandlers();this.__isFunction(this._settings.AttachFileCardEventHandlers)&&this._settings.AttachFileCardEventHandlers();this._viewContainer$.on("click keypress","[data-function='upload']",this._onAddButtonClicked);this._viewContainer$.on("click","[data-function='remove']",this._onRemoveButtonClicked);this._viewContainer$.on("click","[data-function='view']",this._onViewButtonClicked);this._viewContainer$.on("change","[data-function='upload-core']",this._uploadFile);this._viewContainer$.on("blur","[data-function='edit-label-input']",this._onFileNameEdited);this._viewContainer$.on("keypress","[data-function='edit-label-input']",this._onFileNameInputKeyPressed);this._viewContainer$.on("dragover drop dragenter dragleave dragstart dragend","[data-dragregion]",function(n){n.stopPropagation();n.preventDefault()});this._viewContainer$.on("dragover","[data-dragregion]",function(n){n.originalEvent.dataTransfer.dropEffect="copy"});this._viewContainer$.on("drop","[data-dragregion]",this.__onDropFiles);this._viewContainer$.on("dragover dragenter","[data-dragregion]",this.__onDragEnter);this._viewContainer$.on("dragleave dragend","[data-dragregion]",this.__onDragLeave)},__onDropFiles:function(n){var t=n.originalEvent.dataTransfer.files||[];this.__uploadFileCore(t)},__onDragEnter:function(){this._viewContainer$.find("[data-function='upload']").addClass("hover")},__onDragLeave:function(){this._viewContainer$.find("[data-function='upload']").removeClass("hover")},_onFileNameEdited:function(n){var i,u=$afe.jq(n.target).closest("input"),r=(u.val()||"").trim(),t=$$WP.Common.Model.getInstance(u.data("model-id"));r.length>0&&r.length<=100&&t&&r!==t.FileDisplayName?(t.FileDisplayName=r,this._editFileName(t),this._refreshView(),n.relatedTarget&&n.relatedTarget.value&&n.relatedTarget.dataset.modelId&&n.relatedTarget.dataset.modelId&&(i=this._viewContainer$.find(".upload--document-card [data-model-id='"+n.relatedTarget.dataset.modelId+"'][value='"+n.relatedTarget.value+"']").first()[0]),i&&i.value==n.relatedTarget.value?i.focus():null!=n.relatedTarget&&n.relatedTarget.focus()):u.val(t.FileDisplayName)},_onFileNameInputKeyPressed:function(n){13===(n.which||n.keyCode)&&(n.stopPropagation(),this._viewContainer$.find("[data-function='edit-label-input']").trigger("blur"))},_onAddButtonClicked:function(t){"keypress"===t.type&&13!==t.keyCode||(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),n?new $$WPUtil.quickMessageBox($$WP.Strings.get("FileNotAcceptedPopupAnotherUploadErrorText","Upload"),$$WP.Strings.get("FileNotAcceptedPopupHeaderText","Upload"),[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("FileNotAcceptedPopupButtonText","Upload"),null,"previousstep","continue")]):this._settings.NeedsRedirect?($$WPUtil.SafeToRedirectOverrideSettings={TitleText:this._settings.RedirectTitle,Html:this._settings.RedirectHtml},$$WPUtil.SafeToRedirect($.proxy(this._continueUpload,this))):this._triggerInputClick())},_triggerInputClick:function(){this._viewContainer$.find("input[type='file'][data-function='upload-core']").trigger("click")},_continueUpload:function(n){$$WPUtil.SafeToRedirectOverrideSettings={};n&&this._triggerInputClick()},_onRemoveButtonClicked:function(n){var r=$afe.jq(n.target),t=$$WP.Common.Model.getInstance(r.data("model-id")),i;$$WP.Strings.setDefaultNamespace(this._settings.DefaultStringNamespace);$$WP.Strings.addMnemonic("@MYCHART@DOCUMENTNAME@",t.FileDisplayName);i=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("DocumentRemovePopupRemoveButtonText"),null,"inlinedelete","remove"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("DocumentRemovePopupGoBackButtonText"),null,"cancel","cancel")];new $$WPUtil.quickMessageBox($$WP.Strings.get("DocumentRemovePopupDescriptionText"),$$WP.Strings.get("DocumentRemovePopupHeaderText"),i,$.proxy(this._onRemovePopupButtonClicked,this),[t]);$$WP.Strings.removeMnemonic("@MYCHART@DOCUMENTNAME@");$$WP.Strings.clearDefaultNamespace()},_onRemovePopupButtonClicked:function(n,t){if(t===$$WPComp.TOOLBARIDENTIFIER+"remove"){var i=$afe.select("#uploadAriaAnnouncements");$$WP.Strings.setDisplayText(i,"DocumentRemoveConfirmationText",this._settings.DefaultStringNamespace);this._viewContainer$.find(".addItem a").focus();this._deleteFile(n)}},_onViewButtonClicked:function(n){var u,t,i,f,r;n.stopPropagation();n.preventDefault();u=$afe.jq(n.target);t=$$WP.Common.Model.getInstance(u.data("model-id"));$$WP.Utilities.UI.IsMobile&&!this._settings.FromBedside?(i=!1,WP.Events.showBeforeUnloadMessage()&&(WP.Events.cancelBeforeUnload(),i=!0),f="epichttp://attachment?dcsId="+encodeURIComponent(t.DocumentId)+"&dcsExt="+t.FileExtensionWithoutDot,window.location.assign(f),i&&WP.Events.beforeUnload()):(r=new $$WP.Documents.ViewDocument.Models.DocumentModel(null,{},encodeURIComponent(t.FileReference),encodeURIComponent(t.DocumentId),t.FileDisplayName,t.FileExtensionWithoutDot,null,null,null,null,null,null,null,null,null,null,encodeURIComponent(this._settings.ViewerCsn)),t.AllowPreview||(r.AllowPreview=!1),r.openDocument("uploadWidget sm-autosizedpopup"))},getAllDocuments:function(){return this._documentCollection.Models},getDocumentCollection:function(){return this._documentCollection},getUploadContextData:function(){var n=null;return $$WPUtil.IsNullOrEmpty(this._settings)||(n=this._settings.ContextData),n},DeleteFile:function(n){this._deleteFile(n)},RefreshView:function(n){this._refreshView(n)},_serializeContextToFormData:function(n,t){var i;if(t)for(i in t)n.append(i,t[i])},_handleCommunicationFail:function(n,i){var r=!0,u="";switch(n){case t.GetConfig:r=!this.__isFunction(this._settings.onConfigFail)||this._settings.onConfigFail(i);u="ServerErrorPopupDescriptionGetConfigFailedText";break;case t.UploadFile:r=!this.__isFunction(this._settings.onUploadFail)||this._settings.onUploadFail(i);u="ServerErrorPopupDescriptionUploadFileFailedText";break;case t.EditFileName:r=!this.__isFunction(this._settings.onEditFail)||this._settings.onEditFail(i);u="ServerErrorPopupDescriptionEditFileFailedText";break;case t.DeleteFile:r=!this.__isFunction(this._settings.onDeleteFail)||this._settings.onDeleteFail(i);u="ServerErrorPopupDescriptionDeleteFileFailedText"}!1!==r&&this._showErrorMessage(u,"ServerErrorPopupHeaderText","ServerErrorPopupButtonText")},_showErrorMessage:function(n,t,i){$$WP.Strings.setDefaultNamespace(this._settings.DefaultStringNamespace);$$WP.Strings.addMnemonic("@MYCHART@MAXUPLOADS@",this._settings.MaxFilesAllowed);$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDEXTENSIONS@",this._settings.AllowedExtensions.join(", "));$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDIMAGESIZE@",Math.floor(10*this._settings.MaxAllowedImageSize/1024)/10);$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDIMAGESIZEKB@",this._settings.MaxAllowedImageSize);$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDVIDEOSIZE@",Math.floor(10*this._settings.MaxAllowedVideoSize/1024)/10);"FileNotAcceptedPopupWrongExtensionErrorText"==n&&0==this._settings.AllowedExtensions.length&&(n="FileNotAcceptedPopupWrongExtensionErrorTextNoExtensions");new $$WPUtil.quickMessageBox($$WP.Strings.get(n),$$WP.Strings.get(t),[new $$WPComp.ComplexObjects.Button($$WP.Strings.get(i),null,"previousstep","continue")],function(){var n=this._viewContainer$.find(".upload-addFile a");n[0]&&n[0].focus()}.bind(this),[]);$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDVIDEOSIZE@");$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDIMAGESIZE@");$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDIMAGESIZEKB@");$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDEXTENSIONS@");$$WP.Strings.removeMnemonic("@MYCHART@MAXUPLOADS@");$$WP.Strings.clearDefaultNamespace();this._refreshView()},__isFunction:function(n){return n&&"function"==typeof n}};n=!1;t={GetConfig:1,UploadFile:2,EditFileName:3,DeleteFile:4};$$WP.Upload.Controllers.UploadController=r;$$WP.Upload.Controllers.IsCurrentlyUploading=function(){return n};r.extend($$WP.Controllers.Controller,"$$WP$Upload$Controllers$UploadController")}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).Header=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var o,f,s,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l=n.escapeExpression,v="function",y=n.hooks.blockHelperMissing,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},a=l((e(i,"setStringNamespace")||t&&e(t,"setStringNamespace")||c).call(h,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:56},end:{line:1,column:105}}}))+'<a href="#main" class="noprint" id="skipToMain">'+l((e(i,"getStringResource")||t&&e(t,"getStringResource")||c).call(h,"SkipToMainText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:153},end:{line:1,column:191}}}))+"<\/a><!-- show navigation only post-login -->";return f=null!=(f=e(i,"ifMidLogin")||(null!=t?e(t,"ifMidLogin"):t))?f:c,s={name:"ifMidLogin",hash:{},fn:n.program(1,u,0),inverse:n.program(3,u,0),data:u,loc:{start:{line:1,column:235},end:{line:1,column:1072}}},o=typeof f===v?f.call(h,s):f,e(i,"ifMidLogin")||(o=y.call(t,o,s)),null!=o&&(a+=o),a+='<div id="header_extras"><div id="header_extras_actions"><div id="header_extras_actions_group"><div id="header_logo_by_epic" class="mychart_by_epic_logo"><img class="logo_image" src="'+l((e(i,"makeStaticLink")||t&&e(t,"makeStaticLink")||c).call(h,"images/MyChartByEpic.svg",{name:"makeStaticLink",hash:{},data:u,loc:{start:{line:1,column:1254},end:{line:1,column:1299}}}))+'" alt="'+l((e(i,"getStringResource")||t&&e(t,"getStringResource")||c).call(h,"MyChartByEpicAlt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1306},end:{line:1,column:1346}}}))+'" /><\/div><div class="header_navigation_buttons"><div id="locale_container"><\/div>',f=null!=(f=e(i,"ifPreloginOrGuest")||(null!=t?e(t,"ifPreloginOrGuest"):t))?f:c,s={name:"ifPreloginOrGuest",hash:{},fn:n.program(10,u,0),inverse:n.program(12,u,0),data:u,loc:{start:{line:1,column:1428},end:{line:1,column:1575}}},o=typeof f===v?f.call(h,s):f,e(i,"ifPreloginOrGuest")||(o=y.call(t,o,s)),null!=o&&(a+=o),f=null!=(f=e(i,"ifNotPrelogin")||(null!=t?e(t,"ifNotPrelogin"):t))?f:c,s={name:"ifNotPrelogin",hash:{},fn:n.program(16,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:1575},end:{line:1,column:1647}}},o=typeof f===v?f.call(h,s):f,e(i,"ifNotPrelogin")||(o=y.call(t,o,s)),null!=o&&(a+=o),a+"<\/div><\/div><\/div><\/div>"+l(typeof(f=null!=(f=e(i,"clearStringNamespace")||(null!=t?e(t,"clearStringNamespace"):t))?f:c)===v?f.call(h,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:1671},end:{line:1,column:1695}}}):f)},1:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=(e(i,"addTemplate")||t&&e(t,"addTemplate")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"Core.HeaderLogo",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:250},end:{line:1,column:290}}}))?f:""},3:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return f=null!=(f=s(i,"ifPreloginOrGuest")||(null!=t?s(t,"ifPreloginOrGuest"):t))?f:n.hooks.helperMissing,o={name:"ifPreloginOrGuest",hash:{},fn:n.program(1,u,0),inverse:n.program(4,u,0),data:u,loc:{start:{line:1,column:290},end:{line:1,column:1057}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifPreloginOrGuest")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e?e:""},4:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return f=null!=(f=s(i,"ifCapturedWorkflow")||(null!=t?s(t,"ifCapturedWorkflow"):t))?f:n.hooks.helperMissing,o={name:"ifCapturedWorkflow",hash:{},fn:n.program(1,u,0),inverse:n.program(5,u,0),data:u,loc:{start:{line:1,column:356},end:{line:1,column:1057}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifCapturedWorkflow")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e?e:""},5:function(n,t,i,r,u){var f,o,s,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},l='<nav id="header_navigation" aria-label="'+n.escapeExpression((e(i,"getStringResource")||t&&e(t,"getStringResource")||c).call(h,"MenuNavigatorLabel",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:471},end:{line:1,column:513}}}))+'"><div class="header_navigation_buttons">';return o=null!=(o=e(i,"ifFromMyChartCentral")||(null!=t?e(t,"ifFromMyChartCentral"):t))?o:c,s={name:"ifFromMyChartCentral",hash:{},fn:n.program(6,u,0),inverse:n.program(8,u,0),data:u,loc:{start:{line:1,column:554},end:{line:1,column:1005}}},f="function"==typeof o?o.call(h,s):o,e(i,"ifFromMyChartCentral")||(f=n.hooks.blockHelperMissing.call(t,f,s)),null!=f&&(l+=f),l+"<\/div>"+(null!=(f=(e(i,"addTemplate")||t&&e(t,"addTemplate")||c).call(h,"Core.HeaderLogo",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:1011},end:{line:1,column:1051}}}))?f:"")+"<\/nav>"},6:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=(e(i,"addTemplate")||t&&e(t,"addTemplate")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"Core.BackToPrevious",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:579},end:{line:1,column:623}}}))?f:""},8:function(n,t,i,r,u){var h,e,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,c=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="header_menu" role="button" tabindex="0" aria-haspopup="true"><div id="header_menu_icon" class="proxybgcolor '+c("function"==typeof(e=null!=(e=f(i,"proxyColorClass")||(null!=t?f(t,"proxyColorClass"):t))?e:s)?e.call(o,{name:"proxyColorClass",hash:{},data:u,loc:{start:{line:1,column:748},end:{line:1,column:767}}}):e)+'"><svg aria-hidden="true" class="menu_image" focusable="false">'+c((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||s).call(o,"library.svg#header_menubutton",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:830},end:{line:1,column:878}}}))+'<\/svg><\/div><span id="header_menu_name" class=""><\/span><\/div>'+(null!=(h=(f(i,"addTemplate")||t&&f(t,"addTemplate")||s).call(o,"Core.BackToHome",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:940},end:{line:1,column:980}}}))?h:"")},10:function(){return""},12:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return f=null!=(f=s(i,"ifCapturedWorkflow")||(null!=t?s(t,"ifCapturedWorkflow"):t))?f:n.hooks.helperMissing,o={name:"ifCapturedWorkflow",hash:{},fn:n.program(10,u,0),inverse:n.program(13,u,0),data:u,loc:{start:{line:1,column:1450},end:{line:1,column:1553}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifCapturedWorkflow")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e?e:""},13:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return f=null!=(f=s(i,"ifFromMyChartCentral")||(null!=t?s(t,"ifFromMyChartCentral"):t))?f:n.hooks.helperMissing,o={name:"ifFromMyChartCentral",hash:{},fn:n.program(10,u,0),inverse:n.program(14,u,0),data:u,loc:{start:{line:1,column:1477},end:{line:1,column:1553}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifFromMyChartCentral")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e?e:""},14:function(){return'<div class="patient_name_switch"><\/div>'},16:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=(e(i,"addTemplate")||t&&e(t,"addTemplate")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"Core.LogOut",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:1593},end:{line:1,column:1629}}}))?f:""},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).LogOut=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var o,f,s,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,a=n.escapeExpression,v="function",y=n.hooks.blockHelperMissing,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},l=a((e(i,"setStringNamespace")||t&&e(t,"setStringNamespace")||c).call(h,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:50},end:{line:1,column:99}}}))+'<div class="headerButtonContainer logOutContainer"><button id="logout_button" class="headerButton" tabindex="0" role="button" aria-labelledby="logOutLabel" title="';return f=null!=(f=e(i,"ifCapturedWorkflow")||(null!=t?e(t,"ifCapturedWorkflow"):t))?f:c,s={name:"ifCapturedWorkflow",hash:{},fn:n.program(1,u,0),inverse:n.program(3,u,0),data:u,loc:{start:{line:1,column:262},end:{line:1,column:470}}},o=typeof f===v?f.call(h,s):f,e(i,"ifCapturedWorkflow")||(o=y.call(t,o,s)),null!=o&&(l+=o),l+='"><svg class="header_button_icon headerImage" aria-hidden="true" focusable="false">'+a((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||c).call(h,"library.svg#header_signout",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:553},end:{line:1,column:598}}}))+'<\/svg><span id="logOutLabel">',f=null!=(f=e(i,"ifCapturedWorkflow")||(null!=t?e(t,"ifCapturedWorkflow"):t))?f:c,s={name:"ifCapturedWorkflow",hash:{},fn:n.program(1,u,0),inverse:n.program(3,u,0),data:u,loc:{start:{line:1,column:627},end:{line:1,column:835}}},o=typeof f===v?f.call(h,s):f,e(i,"ifCapturedWorkflow")||(o=y.call(t,o,s)),null!=o&&(l+=o),l+"<\/span><\/button><\/div>"+a(typeof(f=null!=(f=e(i,"clearStringNamespace")||(null!=t?e(t,"clearStringNamespace"):t))?f:c)===v?f.call(h,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:857},end:{line:1,column:881}}}):f)},1:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return n.escapeExpression((f(i,"getStringResource")||t&&f(t,"getStringResource")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"LogOutButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:285},end:{line:1,column:325}}}))},3:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return f=null!=(f=s(i,"ifWorkflowRestricted")||(null!=t?s(t,"ifWorkflowRestricted"):t))?f:n.hooks.helperMissing,o={name:"ifWorkflowRestricted",hash:{},fn:n.program(4,u,0),inverse:n.program(1,u,0),data:u,loc:{start:{line:1,column:325},end:{line:1,column:447}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifWorkflowRestricted")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e?e:""},4:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return n.escapeExpression((f(i,"getStringResource")||t&&f(t,"getStringResource")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"LogOutGuestButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:354},end:{line:1,column:399}}}))},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).HeaderLogo=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var o,f,s,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l=n.escapeExpression,a="function",e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},v=l((e(i,"setStringNamespace")||t&&e(t,"setStringNamespace")||c).call(h,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:50},end:{line:1,column:99}}}));return f=null!=(f=e(i,"ifPreloginOrGuest")||(null!=t?e(t,"ifPreloginOrGuest"):t))?f:c,s={name:"ifPreloginOrGuest",hash:{},fn:n.program(1,u,0),inverse:n.program(6,u,0),data:u,loc:{start:{line:1,column:99},end:{line:1,column:824}}},o=typeof f===a?f.call(h,s):f,e(i,"ifPreloginOrGuest")||(o=n.hooks.blockHelperMissing.call(t,o,s)),null!=o&&(v+=o),v+l(typeof(f=null!=(f=e(i,"clearStringNamespace")||(null!=t?e(t,"clearStringNamespace"):t))?f:c)===a?f.call(h,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:824},end:{line:1,column:848}}}):f)},1:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},h='<div id="header_go_home"><div id="header_logo">';return f=null!=(f=s(i,"ifPreLogin")||(null!=t?s(t,"ifPreLogin"):t))?f:n.hooks.helperMissing,o={name:"ifPreLogin",hash:{},fn:n.program(2,u,0),inverse:n.program(4,u,0),data:u,loc:{start:{line:1,column:168},end:{line:1,column:467}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifPreLogin")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e&&(h+=e),h+"<\/div><\/div>"},2:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a href="'+s((f(i,"makeLink")||t&&f(t,"makeLink")||o).call(e,"Authentication/Login",{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:192},end:{line:1,column:227}}}))+'" title="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"BackToLoginText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:236},end:{line:1,column:275}}}))+'" class="header_logo_link"><\/a>'},4:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span class="header_logo_link" role="img" title="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"GuestText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:363},end:{line:1,column:396}}}))+'" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"GuestText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:410},end:{line:1,column:443}}}))+'"><\/span>'},6:function(n,t,i,r,u){var e,f,o,s=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},h='<div id="header_go_home"><div id="header_logo">';return f=null!=(f=s(i,"ifFromMyChartCentral")||(null!=t?s(t,"ifFromMyChartCentral"):t))?f:n.hooks.helperMissing,o={name:"ifFromMyChartCentral",hash:{},fn:n.program(7,u,0),inverse:n.program(9,u,0),data:u,loc:{start:{line:1,column:534},end:{line:1,column:790}}},e="function"==typeof f?f.call(null!=t?t:n.nullContext||{},o):f,s(i,"ifFromMyChartCentral")||(e=n.hooks.blockHelperMissing.call(t,e,o)),null!=e&&(h+=e),h+"<\/div><\/div>"},7:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a href="'+h((e(i,"makeLink")||t&&e(t,"makeLink")||s).call(o,"Home",{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:568},end:{line:1,column:587}}}))+'" title="'+h("function"==typeof(f=null!=(f=e(i,"getContinueToOrgText")||(null!=t?e(t,"getContinueToOrgText"):t))?f:s)?f.call(o,{name:"getContinueToOrgText",hash:{},data:u,loc:{start:{line:1,column:596},end:{line:1,column:620}}}):f)+'" class="header_logo_link"><\/a>'},9:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a href="'+s((f(i,"makeLink")||t&&f(t,"makeLink")||o).call(e,"Home",{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:668},end:{line:1,column:687}}}))+'" title="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"BackToHomeText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:696},end:{line:1,column:734}}}))+'" class="header_logo_link"><\/a>'},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).BackToHome=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var h,e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return s((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||o).call(e,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:50},end:{line:1,column:99}}}))+'<div class="headerButtonContainer"><a id="home_button" class="headerButton" href="'+s((f(i,"makeLink")||t&&f(t,"makeLink")||o).call(e,"Home",{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:181},end:{line:1,column:200}}}))+'" tabindex="0" role="button" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"BackToHomeButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:241},end:{line:1,column:285}}}))+'" title="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"BackToHomeButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:294},end:{line:1,column:338}}}))+'"><svg class="header_button_icon headerImage" aria-hidden="true" focusable="false">'+s((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||o).call(e,"library.svg#header_home",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:421},end:{line:1,column:463}}}))+"<\/svg><\/a><\/div>"+s("function"==typeof(h=null!=(h=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?h:o)?h.call(e,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:479},end:{line:1,column:503}}}):h)},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Core=n.Core||{}).BackToPrevious=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return h((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||s).call(o,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:51},end:{line:1,column:100}}}))+'<div class="headerButtonContainer"><a href="#" id="header_to_previous_button" class="headerButton" class="_link" role="button" tabindex="0" title="'+h((f(i,"getStringResource")||t&&f(t,"getStringResource")||s).call(o,"BackToMyChartCentralHelpText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:365},end:{line:1,column:417}}}))+'"><svg id="header_to_mcc_button_icon" class="header_button_icon_small headerImage" aria-hidden="true" focusable="false">'+h((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||s).call(o,"library.svg#_flat_arrowrightsmall",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:537},end:{line:1,column:589}}}))+'<\/svg><span class="header_button_label">'+h((f(i,"getStringResource")||t&&f(t,"getStringResource")||s).call(o,"BackToMyChartCentral",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:629},end:{line:1,column:673}}}))+"<\/span><\/a><\/div>"+h("function"==typeof(e=null!=(e=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?e:s)?e.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:690},end:{line:1,column:714}}}):e)},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Navigation=n.Navigation||{}).Menu=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var l,f,a,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,c="function",e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]},v=h((e(i,"setStringNamespace")||t&&e(t,"setStringNamespace")||s).call(o,"Navigation.Menu",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:56},end:{line:1,column:96}}}))+'<div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:105},end:{line:1,column:117}}}):f)+'-shield" class="jqHidden menu-shield"><\/div>'+(null!=(l=e(i,"if").call(o,null!=t?e(t,"IsNav"):t,{name:"if",hash:{},fn:n.program(1,u,0),inverse:n.program(3,u,0),data:u,loc:{start:{line:1,column:161},end:{line:1,column:483}}}))?l:"")+'<div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:492},end:{line:1,column:504}}}):f)+'-header" class="menu-header"><div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:542},end:{line:1,column:554}}}):f)+'-headertop" class="menu-headertop"><button id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:601},end:{line:1,column:613}}}):f)+'-closebutton" class="proxybgcolor color'+h(typeof(f=null!=(f=e(i,"SubjectColor")||(null!=t?e(t,"SubjectColor"):t))?f:s)===c?f.call(o,{name:"SubjectColor",hash:{},data:u,loc:{start:{line:1,column:652},end:{line:1,column:668}}}):f)+' menu-closebutton" aria-label="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuCloseButtonLabel",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:699},end:{line:1,column:743}}}))+'" title="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuCloseButtonLabelVerbose",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:752},end:{line:1,column:803}}}))+'"><svg focusable="false" class="menu-buttonicon" aria-hidden="true">'+h((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||s).call(o,"library.svg#back",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:871},end:{line:1,column:906}}}))+'<\/svg><\/button><h1 id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:929},end:{line:1,column:941}}}):f)+'-contextlabel" class="proxytextcolor color'+h(typeof(f=null!=(f=e(i,"SubjectColor")||(null!=t?e(t,"SubjectColor"):t))?f:s)===c?f.call(o,{name:"SubjectColor",hash:{},data:u,loc:{start:{line:1,column:983},end:{line:1,column:999}}}):f)+' menu-contextlabel">'+h(typeof(f=null!=(f=e(i,"MenuDisplayName")||(null!=t?e(t,"MenuDisplayName"):t))?f:s)===c?f.call(o,{name:"MenuDisplayName",hash:{},data:u,loc:{start:{line:1,column:1019},end:{line:1,column:1038}}}):f)+'<\/h1><\/div><div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1058},end:{line:1,column:1070}}}):f)+'-searchcontainer" class="menu-searchcontainer"><button id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1129},end:{line:1,column:1141}}}):f)+'-responsiveclosebutton" class="';return f=null!=(f=e(i,"ifiOS")||(null!=t?e(t,"ifiOS"):t))?f:s,a={name:"ifiOS",hash:{},fn:n.program(5,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:1172},end:{line:1,column:1195}}},l=typeof f===c?f.call(o,a):f,e(i,"ifiOS")||(l=n.hooks.blockHelperMissing.call(t,l,a)),null!=l&&(v+=l),v+' menu-responsiveclosebutton">'+h((e(i,"getDisplayString")||t&&e(t,"getDisplayString")||s).call(o,"MenuCloseButtonLabel",{name:"getDisplayString",hash:{},data:u,loc:{start:{line:1,column:1224},end:{line:1,column:1267}}}))+'<\/button><div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1285},end:{line:1,column:1297}}}):f)+'-searchbarcontainer" class="menu-searchbarcontainer"><svg focusable="false" class="menu-searchicon proxyfillcolor color'+h(n.lambda((l=u&&e(u,"root"))&&e(l,"SubjectColor"),t))+'" aria-hidden="true">'+h((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||s).call(o,"library.svg#menu_searchbar",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:1459},end:{line:1,column:1504}}}))+'<\/svg><input aria-label="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuSearchInputPlaceholder",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1529},end:{line:1,column:1579}}}))+'" id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1585},end:{line:1,column:1597}}}):f)+'-searchbar" type="text" placeholder="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuSearchInputPlaceholder",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1634},end:{line:1,column:1684}}}))+'" autocomplete="off"  class="menu-searchbar" data-permissive="true"><button id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1764},end:{line:1,column:1776}}}):f)+'-searchemptybutton" type ="button" class="jqHidden menu-searchemptybutton" aria-label="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuSearchEmptyButtonLabel",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1863},end:{line:1,column:1913}}}))+'"><svg focusable="false" id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:1942},end:{line:1,column:1954}}}):f)+'-searchemptyicon" class="menu-searchemptyicon" aria-hidden="true">'+h((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||s).call(o,"library.svg#menu_clearsearch",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:2020},end:{line:1,column:2067}}}))+'<\/svg><\/button><\/div><\/div><\/div><div id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:2109},end:{line:1,column:2121}}}):f)+'-searchlist" class="jqHidden menu-searchlist"><\/div><ul id="'+h(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===c?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:2181},end:{line:1,column:2193}}}):f)+'-list" class="menu-mainmenulist jqHidden " aria-label="'+h((e(i,"getStringResource")||t&&e(t,"getStringResource")||s).call(o,"MenuMainContentLabel",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:2248},end:{line:1,column:2292}}}))+'">'+(null!=(l=e(i,"each").call(o,null!=t?e(t,"Submenus"):t,{name:"each",hash:{},fn:n.program(7,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:2294},end:{line:1,column:3181}}}))?l:"")+"<\/ul><\/div>"+(null!=(l=e(i,"if").call(o,null!=t?e(t,"IsNav"):t,{name:"if",hash:{},fn:n.program(17,u,0),inverse:n.program(19,u,0),data:u,loc:{start:{line:1,column:3192},end:{line:1,column:3232}}}))?l:"")+h(typeof(f=null!=(f=e(i,"clearStringNamespace")||(null!=t?e(t,"clearStringNamespace"):t))?f:s)===c?f.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:3232},end:{line:1,column:3256}}}):f)},1:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h="function",c=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<nav id="'+c(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===h?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:183},end:{line:1,column:195}}}):f)+'-container" class="menu-container jqHidden" dir="'+c(typeof(f=null!=(f=e(i,"TextDirection")||(null!=t?e(t,"TextDirection"):t))?f:s)===h?f.call(o,{name:"TextDirection",hash:{},data:u,loc:{start:{line:1,column:244},end:{line:1,column:261}}}):f)+'"><div class="menu-flexparent" role="dialog" aria-labelledby="'+c(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===h?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:323},end:{line:1,column:335}}}):f)+'-contextlabel">'},3:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h="function",c=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="'+c(typeof(f=null!=(f=e(i,"MenuName")||(null!=t?e(t,"MenuName"):t))?f:s)===h?f.call(o,{name:"MenuName",hash:{},data:u,loc:{start:{line:1,column:367},end:{line:1,column:379}}}):f)+'-container" class="menu-container jqHidden" dir="'+c(typeof(f=null!=(f=e(i,"TextDirection")||(null!=t?e(t,"TextDirection"):t))?f:s)===h?f.call(o,{name:"TextDirection",hash:{},data:u,loc:{start:{line:1,column:428},end:{line:1,column:445}}}):f)+'"><div class="menu-flexparent">'},5:function(){return"iOS"},7:function(n,t,i,r,u){var o,f,s=n.escapeExpression,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l="function",e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li class="submenu"><h2 class="submenu-header proxybgcolor color'+s(n.lambda((o=u&&e(u,"root"))&&e(o,"SubjectColor"),t))+' lighten70" title="'+s(typeof(f=null!=(f=e(i,"Name")||(null!=t?e(t,"Name"):t))?f:c)===l?f.call(h,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:2417},end:{line:1,column:2425}}}):f)+'">'+s(typeof(f=null!=(f=e(i,"Name")||(null!=t?e(t,"Name"):t))?f:c)===l?f.call(h,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:2427},end:{line:1,column:2435}}}):f)+'<\/h2><ul aria-label="'+s(typeof(f=null!=(f=e(i,"Name")||(null!=t?e(t,"Name"):t))?f:c)===l?f.call(h,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:2456},end:{line:1,column:2464}}}):f)+'">'+(null!=(o=e(i,"each").call(h,null!=t?e(t,"MenuItems"):t,{name:"each",hash:{},fn:n.program(8,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:2466},end:{line:1,column:3162}}}))?o:"")+"<\/ul><\/li>"},8:function(n,t,i,r,u){var o,e,s=null!=t?t:n.nullContext||{},h=n.escapeExpression,c=n.hooks.helperMissing,l="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li class="menuitem">'+(null!=(o=f(i,"if").call(s,(o=u&&f(u,"root"))&&f(o,"IsNav"),{name:"if",hash:{},fn:n.program(9,u,0),inverse:n.program(11,u,0),data:u,loc:{start:{line:1,column:2506},end:{line:1,column:2781}}}))?o:"")+'<svg focusable="false" class="menuitem-icon proxyfillcolor color'+h(n.lambda((o=u&&f(u,"root"))&&f(o,"SubjectColor"),t))+'" aria-hidden="true">'+h((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||c).call(s,null!=t?f(t,"Icon"):t,{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:2888},end:{line:1,column:2909}}}))+'<\/svg><div class="menuitem-label" title="'+h(typeof(e=null!=(e=f(i,"Name")||(null!=t?f(t,"Name"):t))?e:c)===l?e.call(s,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:2950},end:{line:1,column:2958}}}):e)+'" data-emblem="'+h(typeof(e=null!=(e=f(i,"Emblem")||(null!=t?f(t,"Emblem"):t))?e:c)===l?e.call(s,{name:"Emblem",hash:{},data:u,loc:{start:{line:1,column:2973},end:{line:1,column:2983}}}):e)+'">'+h(typeof(e=null!=(e=f(i,"Name")||(null!=t?f(t,"Name"):t))?e:c)===l?e.call(s,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:2985},end:{line:1,column:2993}}}):e)+"<\/div>"+(null!=(o=f(i,"if").call(s,(o=u&&f(u,"root"))&&f(o,"IsNav"),{name:"if",hash:{},fn:n.program(13,u,0),inverse:n.program(15,u,0),data:u,loc:{start:{line:1,column:2999},end:{line:1,column:3148}}}))?o:"")+"<\/li>"},9:function(n,t,i,r,u){var o,f,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c="function",l=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a id="'+l(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:h)===c?f.call(s,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:2532},end:{line:1,column:2538}}}):f)+"_"+l(typeof(f=null!=(f=e(i,"index")||u&&e(u,"index"))?f:h)===c?f.call(s,{name:"index",hash:{},data:u,loc:{start:{line:1,column:2539},end:{line:1,column:2549}}}):f)+'" class="'+l(n.lambda((o=u&&e(u,"root"))&&e(o,"MenuName"),t))+' menuitem-content" href="'+l(typeof(f=null!=(f=e(i,"Link")||(null!=t?e(t,"Link"):t))?f:h)===c?f.call(s,{name:"Link",hash:{},data:u,loc:{start:{line:1,column:2601},end:{line:1,column:2609}}}):f)+'" '+(null!=(o=typeof(f=null!=(f=e(i,"DataAttributes")||(null!=t?e(t,"DataAttributes"):t))?f:h)===c?f.call(s,{name:"DataAttributes",hash:{},data:u,loc:{start:{line:1,column:2611},end:{line:1,column:2631}}}):f)?o:"")+">"},11:function(n,t,i,r,u){var s,f,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l="function",o=n.escapeExpression,a=n.lambda,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="'+o(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:c)===l?f.call(h,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:2649},end:{line:1,column:2655}}}):f)+"_"+o(a((s=u&&e(u,"root"))&&e(s,"MenuName"),t))+"_"+o(typeof(f=null!=(f=e(i,"index")||u&&e(u,"index"))?f:c)===l?f.call(h,{name:"index",hash:{},data:u,loc:{start:{line:1,column:2675},end:{line:1,column:2685}}}):f)+'" class="'+o(a((s=u&&e(u,"root"))&&e(s,"MenuName"),t))+" menuitem-content "+o(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:c)===l?f.call(h,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:2730},end:{line:1,column:2736}}}):f)+'" tabindex="0" role="button" title="">'},13:function(){return"<\/a>"},15:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<svg class="jqHidden shortcutImage '+h("function"==typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:s)?f.call(o,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:3065},end:{line:1,column:3071}}}):f)+'">'+h((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||s).call(o,"library.svg#menu_greencirclewithcheck",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:3073},end:{line:1,column:3129}}}))+"<\/svg><\/div>"},17:function(){return"<\/nav>"},19:function(){return"<\/div>"},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Navigation=n.Navigation||{}).MenuSearch=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var h,f,o=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,s=n.escapeExpression,l="function",e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return s((e(i,"setStringNamespace")||t&&e(t,"setStringNamespace")||c).call(o,"Navigation.Menu",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:51},end:{line:1,column:91}}}))+'<ul class="menusearch-mainmenulist" aria-label="Main menu"><li class="submenu"><h2 id="searchResultsDisplay" class="submenu-header proxybgcolor color'+s(n.lambda((h=u&&e(u,"root"))&&e(h,"SubjectColor"),t))+' lighten70" aria-hidden="true">'+s(typeof(f=null!=(f=e(i,"SearchResultsDisplay")||(null!=t?e(t,"SearchResultsDisplay"):t))?f:c)===l?f.call(o,{name:"SearchResultsDisplay",hash:{},data:u,loc:{start:{line:1,column:293},end:{line:1,column:317}}}):f)+'<\/h2><div id="menu-ariasearchresultstotal" class="clearlabel menu-ariasearchresultstotal" aria-live="polite"><\/div><ul aria-label="'+s(typeof(f=null!=(f=e(i,"SearchResultsDisplay")||(null!=t?e(t,"SearchResultsDisplay"):t))?f:c)===l?f.call(o,{name:"SearchResultsDisplay",hash:{},data:u,loc:{start:{line:1,column:448},end:{line:1,column:472}}}):f)+'">'+(null!=(h=e(i,"each").call(o,null!=t?e(t,"SearchResultsItems"):t,{name:"each",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:474},end:{line:1,column:1825}}}))?h:"")+"<\/ul><\/li><\/ul>"+s(typeof(f=null!=(f=e(i,"clearStringNamespace")||(null!=t?e(t,"clearStringNamespace"):t))?f:c)===l?f.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:1840},end:{line:1,column:1864}}}):f)},1:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li class="menuitem '+(null!=(e=f(i,"if").call(o,null!=t?f(t,"MatchIsSynonym"):t,{name:"if",hash:{},fn:n.program(2,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:522},end:{line:1,column:578}}}))?e:"")+'">'+(null!=(e=f(i,"if").call(o,(e=u&&f(u,"root"))&&f(e,"IsNav"),{name:"if",hash:{},fn:n.program(4,u,0),inverse:n.program(6,u,0),data:u,loc:{start:{line:1,column:580},end:{line:1,column:869}}}))?e:"")+'<svg focusable="false" class="menuitem-icon proxyfillcolor color'+s(n.lambda((e=u&&f(u,"root"))&&f(e,"SubjectColor"),t))+'" aria-hidden="true">'+s((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||n.hooks.helperMissing).call(o,null!=t?f(t,"Icon"):t,{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:976},end:{line:1,column:1002}}}))+'<\/svg><div class="menuitem-labelflexcontainer">'+(null!=(e=f(i,"if").call(o,null!=t?f(t,"MatchIsSynonym"):t,{name:"if",hash:{},fn:n.program(8,u,0),inverse:n.program(10,u,0),data:u,loc:{start:{line:1,column:1049},end:{line:1,column:1661}}}))?e:"")+"<\/div>"+(null!=(e=f(i,"if").call(o,(e=u&&f(u,"root"))&&f(e,"IsNav"),{name:"if",hash:{},fn:n.program(12,u,0),inverse:n.program(14,u,0),data:u,loc:{start:{line:1,column:1667},end:{line:1,column:1811}}}))?e:"")+"<\/li>"},2:function(){return"menuitem-searchsynonymmatch"},4:function(n,t,i,r,u){var o,f,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c="function",l=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a id="'+l(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:h)===c?f.call(s,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:606},end:{line:1,column:612}}}):f)+"_search_"+l(typeof(f=null!=(f=e(i,"index")||u&&e(u,"index"))?f:h)===c?f.call(s,{name:"index",hash:{},data:u,loc:{start:{line:1,column:620},end:{line:1,column:630}}}):f)+'" class="'+l(n.lambda((o=u&&e(u,"root"))&&e(o,"MenuName"),t))+' menuitem-content" href="'+l(typeof(f=null!=(f=e(i,"Link")||(null!=t?e(t,"Link"):t))?f:h)===c?f.call(s,{name:"Link",hash:{},data:u,loc:{start:{line:1,column:682},end:{line:1,column:690}}}):f)+'" '+(null!=(o=typeof(f=null!=(f=e(i,"DataAttributes")||(null!=t?e(t,"DataAttributes"):t))?f:h)===c?f.call(s,{name:"DataAttributes",hash:{},data:u,loc:{start:{line:1,column:692},end:{line:1,column:712}}}):f)?o:"")+">"},6:function(n,t,i,r,u){var s,f,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l="function",o=n.escapeExpression,a=n.lambda,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="'+o(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:c)===l?f.call(h,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:730},end:{line:1,column:736}}}):f)+"_"+o(a((s=u&&e(u,"root"))&&e(s,"MenuName"),t))+"_search_"+o(typeof(f=null!=(f=e(i,"index")||u&&e(u,"index"))?f:c)===l?f.call(h,{name:"index",hash:{},data:u,loc:{start:{line:1,column:763},end:{line:1,column:773}}}):f)+'" class="'+o(a((s=u&&e(u,"root"))&&e(s,"MenuName"),t))+" menuitem-content "+o(typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:c)===l?f.call(h,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:818},end:{line:1,column:824}}}):f)+'" tabindex="0" role="button" title="">'},8:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,c="function",h=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span class="menuitem-label" title="'+h(typeof(e=null!=(e=f(i,"Name")||(null!=t?f(t,"Name"):t))?e:s)===c?e.call(o,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:1107},end:{line:1,column:1115}}}):e)+'">'+h(typeof(e=null!=(e=f(i,"Name")||(null!=t?f(t,"Name"):t))?e:s)===c?e.call(o,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:1117},end:{line:1,column:1125}}}):e)+'<\/span><div class="menuitem-searchsynonym subtle" title="'+h(typeof(e=null!=(e=f(i,"SynonymMatch")||(null!=t?f(t,"SynonymMatch"):t))?e:s)===c?e.call(o,{name:"SynonymMatch",hash:{},data:u,loc:{start:{line:1,column:1182},end:{line:1,column:1198}}}):e)+'"><span aria-hidden="true">'+h((f(i,"highlightString")||t&&f(t,"highlightString")||s).call(o,null!=t?f(t,"SynonymMatch"):t,null!=t?f(t,"RangesToMark"):t,{name:"highlightString",hash:{},data:u,loc:{start:{line:1,column:1225},end:{line:1,column:1270}}}))+'<\/span><span class="clearlabel">'+h((f(i,"addStringResourceMnemonic")||t&&f(t,"addStringResourceMnemonic")||s).call(o,"@MYCHART@SYNONYMMATCH@",null!=t?f(t,"SynonymMatch"):t,{name:"addStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:1302},end:{line:1,column:1369}}}))+h((f(i,"getDisplayString")||t&&f(t,"getDisplayString")||s).call(o,"MenuSearchSynonymMatch",{name:"getDisplayString",hash:{},data:u,loc:{start:{line:1,column:1369},end:{line:1,column:1414}}}))+h((f(i,"removeStringResourceMnemonic")||t&&f(t,"removeStringResourceMnemonic")||s).call(o,"@MYCHART@SYNONYMMATCH@",{name:"removeStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:1414},end:{line:1,column:1471}}}))+"<\/span><\/div>"},10:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,c="function",h=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span class="menuitem-label" title="'+h(typeof(f=null!=(f=e(i,"Name")||(null!=t?e(t,"Name"):t))?f:s)===c?f.call(o,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:1528},end:{line:1,column:1536}}}):f)+'"><span aria-hidden="true">'+h((e(i,"highlightString")||t&&e(t,"highlightString")||s).call(o,null!=t?e(t,"Name"):t,null!=t?e(t,"RangesToMark"):t,{name:"highlightString",hash:{},data:u,loc:{start:{line:1,column:1563},end:{line:1,column:1600}}}))+'<\/span><span class="clearlabel">'+h(typeof(f=null!=(f=e(i,"Name")||(null!=t?e(t,"Name"):t))?f:s)===c?f.call(o,{name:"Name",hash:{},data:u,loc:{start:{line:1,column:1632},end:{line:1,column:1640}}}):f)+"<\/span><\/span>"},12:function(){return"<\/a>"},14:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<img class="jqHidden shortcutImage '+h("function"==typeof(f=null!=(f=e(i,"Id")||(null!=t?e(t,"Id"):t))?f:s)?f.call(o,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:1733},end:{line:1,column:1739}}}):f)+'" src="'+h((e(i,"makeStaticLink")||t&&e(t,"makeStaticLink")||s).call(o,"images/circle_check_icon.svg",{name:"makeStaticLink",hash:{},data:u,loc:{start:{line:1,column:1746},end:{line:1,column:1795}}}))+'"/><\/div>'},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).DropDownProxySelector=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return h((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||s).call(o,"ProxySwitch.ProxySwitch.ProxySelector",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:56},end:{line:1,column:118}}}))+'<div class="proxySelectorDropDownContainer">'+h((f(i,"addTemplate")||t&&f(t,"addTemplate")||s).call(o,"ProxySwitch.ProxySelectorButton",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:162},end:{line:1,column:216}}}))+'<div aria-hidden="true" class="proxyMenuShield jqHidden"><\/div><nav class="proxySwitchNav" role="dialog" aria-modal="true">'+h((f(i,"addTemplate")||t&&f(t,"addTemplate")||s).call(o,"ProxySwitch.ProxySelectorList",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:339},end:{line:1,column:391}}}))+"<\/nav><\/div>"+h("function"==typeof(e=null!=(e=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?e:s)?e.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:403},end:{line:1,column:427}}}):e)+" "},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).ProxySelectorButton=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,o,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c=n.escapeExpression,l=n.lambda,a="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return c((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||h).call(s,"ProxySwitch.ProxySwitch.ProxySelector",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:50},end:{line:1,column:112}}}))+'<button aria-expanded="false" class="proxyMenuButton proxyButton color'+c(l(null!=(e=null!=t?f(t,"CurrentlySelected"):t)?f(e,"TabColor"):e,t))+'" title="'+c(typeof(o=null!=(o=f(i,"ButtonTitleText")||(null!=t?f(t,"ButtonTitleText"):t))?o:h)===a?o.call(s,{name:"ButtonTitleText",hash:{},data:u,loc:{start:{line:1,column:221},end:{line:1,column:240}}}):o)+'" aria-labelledby="currentlySelectedNameInner'+(null!=(e=(f(i,"ifGt")||t&&f(t,"ifGt")||h).call(s,null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,1,{name:"ifGt",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:285},end:{line:1,column:348}}}))?e:"")+'" aria-controls="proxyList" type="button" aria-haspopup="true" role="button"><span class="patientPhotoContainer">'+(null!=(e=n.invokePartial(f(r,"roundPatientIcon"),null!=t?f(t,"CurrentlySelected"):t,{name:"roundPatientIcon",data:u,helpers:i,partials:r,decorators:n.decorators}))?e:"")+'<\/span><div aria-hidden="true" class="namePlusChevron"><div class="currentlySelectedName"><span dir="ltr" id="currentlySelectedNameInner" class="currentlySelectedNameInner">'+c(l(null!=(e=null!=t?f(t,"CurrentlySelected"):t)?f(e,"DisplayNameLabel"):e,t))+"<\/span>"+(null!=(e=(f(i,"ifEquals")||t&&f(t,"ifEquals")||h).call(s,null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,1,{name:"ifEquals",hash:{},fn:n.program(3,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:718},end:{line:1,column:815}}}))?e:"")+"<\/div>"+(null!=(e=(f(i,"ifGt")||t&&f(t,"ifGt")||h).call(s,null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,1,{name:"ifGt",hash:{},fn:n.program(5,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:821},end:{line:1,column:1082}}}))?e:"")+"<\/div><\/button>"+c(typeof(o=null!=(o=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?o:h)===a?o.call(s,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:1097},end:{line:1,column:1121}}}):o)},1:function(){return" switchPatientsText"},3:function(){return'<span class="switchPatientsTextOuter"><\/span>'},5:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span class="switchPatientsTextOuter"><span id="switchPatientsText" class="switchPatientsText">'+n.escapeExpression((f(i,"getDisplayString")||t&&f(t,"getDisplayString")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"switchPatientsButtonText",{name:"getDisplayString",hash:{},data:u,loc:{start:{line:1,column:1012},end:{line:1,column:1059}}}))+"<\/span><\/span>"},usePartial:!0,useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).ProxySelectorList=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,c,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return h((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||s).call(o,"Shared._AfterLoginLayout",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:0},end:{line:1,column:49}}}))+'<ul role="menu" id="proxyList" class="dropDownProxyList dropdown-menu">'+h((f(i,"addTemplate")||t&&f(t,"addTemplate")||s).call(o,"ProxySwitch.SubjectList",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:120},end:{line:1,column:166}}}))+'<ul role="menu" '+(null!=(e=(f(i,"ifGt")||t&&f(t,"ifGt")||s).call(o,null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,1,{name:"ifGt",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:255},end:{line:1,column:358}}}))?e:"")+" >"+(null!=(e=f(i,"if").call(o,null!=t?f(t,"ShowFriendsAndFamily"):t,{name:"if",hash:{},fn:n.program(3,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:360},end:{line:1,column:1035}}}))?e:"")+(null!=(e=f(i,"if").call(o,null!=t?f(t,"ShowPhotoUpload"):t,{name:"if",hash:{},fn:n.program(5,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:1035},end:{line:1,column:1907}}}))?e:"")+'<li role="none" class="logOutListItem proxySubjectListItem borderedListItem"  data-closedropdown="true" ><a role="menuitem" tabindex="-1" title="'+h((f(i,"getStringResource")||t&&f(t,"getStringResource")||s).call(o,"LogOutButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:2052},end:{line:1,column:2092}}}))+'" aria-label="'+h((f(i,"getStringResource")||t&&f(t,"getStringResource")||s).call(o,"LogOutButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:2106},end:{line:1,column:2146}}}))+'" class="proxySubjectLink currentContext" href="#"><span aria-hidden="true" focusable="false" class="proxySelectorDropDownPhotoContainer"><svg focusable="false" class="proxyfillcolor color'+h(n.lambda(null!=(e=null!=t?f(t,"CurrentlySelected"):t)?f(e,"TabColor"):e,t))+'" >'+h((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||s).call(o,"library.svg#menu_logout",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:2367},end:{line:1,column:2409}}}))+'<\/svg><\/span><span class="proxySelectorDropDownName"><div class="proxySelectorDropDownMenuItem">'+h((f(i,"getStringResource")||t&&f(t,"getStringResource")||s).call(o,"LogOutButtonText",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:2505},end:{line:1,column:2545}}}))+"<\/div><\/span><\/a><\/li><\/ul><\/ul>"+h("function"==typeof(c=null!=(c=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?c:s)?c.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:2577},end:{line:1,column:2601}}}):c)},1:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return" aria-label='"+n.escapeExpression((f(i,"getDisplayString")||t&&f(t,"getDisplayString")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"additionalMenuOptions",{name:"getDisplayString",hash:{},data:u,loc:{start:{line:1,column:303},end:{line:1,column:347}}}))+"' "},3:function(n,t,i,r,u){var c,f,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,l="function",o=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li role="none" class="proxySubjectListItem borderedListItem"><a role="menuitem" tabindex="-1" title="'+o(typeof(f=null!=(f=e(i,"FriendsAndFamilyTitleText")||(null!=t?e(t,"FriendsAndFamilyTitleText"):t))?f:h)===l?f.call(s,{name:"FriendsAndFamilyTitleText",hash:{},data:u,loc:{start:{line:1,column:490},end:{line:1,column:519}}}):f)+'" aria-label="'+o(typeof(f=null!=(f=e(i,"FriendsAndFamilyTitleText")||(null!=t?e(t,"FriendsAndFamilyTitleText"):t))?f:h)===l?f.call(s,{name:"FriendsAndFamilyTitleText",hash:{},data:u,loc:{start:{line:1,column:533},end:{line:1,column:562}}}):f)+'" class="proxySubjectLink currentContext" href="'+o((e(i,"makeLink")||t&&e(t,"makeLink")||h).call(s,"Proxies/FamilyAccess",{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:610},end:{line:1,column:645}}}))+'"><span aria-hidden="true" focusable="false" class="proxySelectorDropDownPhotoContainer"><svg focusable="false" class="proxyfillcolor color'+o(n.lambda(null!=(c=null!=t?e(t,"CurrentlySelected"):t)?e(c,"TabColor"):c,t))+'" aria-hidden="true">'+o((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||h).call(s,"library.svg#menu_proxyaccess",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:835},end:{line:1,column:882}}}))+'<\/svg><\/span><span class="proxySelectorDropDownName"><div class="proxySelectorDropDownMenuItem">'+o(typeof(f=null!=(f=e(i,"FriendsAndFamilyMenuText")||(null!=t?e(t,"FriendsAndFamilyMenuText"):t))?f:h)===l?f.call(s,{name:"FriendsAndFamilyMenuText",hash:{},data:u,loc:{start:{line:1,column:978},end:{line:1,column:1006}}}):f)+"<\/div><\/span><\/a><\/li>"},5:function(n,t,i,r,u){var c,f,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,l="function",o=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li role="none" class="patientPhotoListItem proxySubjectListItem borderedListItem"  data-closedropdown="true" ><a role="menuitem" tabindex="-1" title="'+o(typeof(f=null!=(f=e(i,"PhotoUploadMenuTitleText")||(null!=t?e(t,"PhotoUploadMenuTitleText"):t))?f:h)===l?f.call(s,{name:"PhotoUploadMenuTitleText",hash:{},data:u,loc:{start:{line:1,column:1209},end:{line:1,column:1237}}}):f)+'" aria-label="'+o(typeof(f=null!=(f=e(i,"PhotoUploadMenuTitleText")||(null!=t?e(t,"PhotoUploadMenuTitleText"):t))?f:h)===l?f.call(s,{name:"PhotoUploadMenuTitleText",hash:{},data:u,loc:{start:{line:1,column:1251},end:{line:1,column:1279}}}):f)+'" data-function=\'upload\' class="proxySubjectLink currentContext" href="#"><span aria-hidden="true" focusable="false" class="proxySelectorDropDownPhotoContainer"><svg focusable="false" class="proxyfillcolor color'+o(n.lambda(null!=(c=null!=t?e(t,"CurrentlySelected"):t)?e(c,"TabColor"):c,t))+'" >'+o((e(i,"referenceSvg")||t&&e(t,"referenceSvg")||h).call(s,"library.svg#proxyswitch_uploadimage",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:1523},end:{line:1,column:1577}}}))+'<\/svg><\/span><span class="proxySelectorDropDownName"><div class="proxySelectorDropDownMenuItem">'+o(typeof(f=null!=(f=e(i,"PhotoUploadMenuText")||(null!=t?e(t,"PhotoUploadMenuText"):t))?f:h)===l?f.call(s,{name:"PhotoUploadMenuText",hash:{},data:u,loc:{start:{line:1,column:1673},end:{line:1,column:1696}}}):f)+'<\/div><\/span><\/a><div class="hidden" aria-hidden="true"><input type="file" id="patientPhotoFileInput" class="upload-input hidden" data-function="upload-core" accept="image/*" role="menuitem" /><\/div><\/li>'},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).SubjectList=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,c,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return h((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||s).call(o,"ProxySwitch.ProxySwitch.ProxySelector",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:51},end:{line:1,column:113}}}))+h((f(i,"addStringResourceMnemonic")||t&&f(t,"addStringResourceMnemonic")||s).call(o,"@MYCHART@NUMACCOUNTS@",null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,{name:"addStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:113},end:{line:1,column:190}}}))+h((f(i,"addStringResourceMnemonic")||t&&f(t,"addStringResourceMnemonic")||s).call(o,"@MYCHART@NUMACCOUNTSACCESSIBLE@",null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,{name:"addStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:190},end:{line:1,column:277}}}))+'<ul role="menu" id="proxySubjectList" aria-labelledby="subjectListHeader">'+(null!=(e=(f(i,"ifGt")||t&&f(t,"ifGt")||s).call(o,null!=(e=null!=t?f(t,"ProxySubjectList"):t)?f(e,"length"):e,1,{name:"ifGt",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:351},end:{line:1,column:2773}}}))?e:"")+"<\/ul>"+h((f(i,"removeStringResourceMnemonic")||t&&f(t,"removeStringResourceMnemonic")||s).call(o,"@MYCHART@NUMACCOUNTS@",{name:"removeStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:2778},end:{line:1,column:2834}}}))+h((f(i,"removeStringResourceMnemonic")||t&&f(t,"removeStringResourceMnemonic")||s).call(o,"@MYCHART@NUMACCOUNTSACCESSIBLE@",{name:"removeStringResourceMnemonic",hash:{},data:u,loc:{start:{line:1,column:2834},end:{line:1,column:2900}}}))+h("function"==typeof(c=null!=(c=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?c:s)?c.call(o,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:2900},end:{line:1,column:2924}}}):c)+" "},1:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="proxySubjectHeaderItem" role="heading"><h2 id="subjectListHeader" class="subjectListHeader">'+n.escapeExpression((f(i,"getDisplayString")||t&&f(t,"getDisplayString")||n.hooks.helperMissing).call(o,"FriendsAndFamilyTitle",{name:"getDisplayString",hash:{},data:u,loc:{start:{line:1,column:523},end:{line:1,column:567}}}))+"<\/h2><\/div>"+(null!=(e=f(i,"if").call(o,null!=t?f(t,"Loading"):t,{name:"if",hash:{},fn:n.program(2,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:612},end:{line:1,column:1017}}}))?e:"")+(null!=(e=f(i,"each").call(o,null!=t?f(t,"ProxySubjectList"):t,{name:"each",hash:{},fn:n.program(4,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:1017},end:{line:1,column:2764}}}))?e:"")},2:function(n,t,i,r,u){var o,f,h=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,l="function",s=n.escapeExpression,a=n.lambda,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li role="none"><div id="RemoteProxyLoadingDiv" tabindex="0" aria-label=\''+s(typeof(f=null!=(f=e(i,"LoadingText")||(null!=t?e(t,"LoadingText"):t))?f:c)===l?f.call(h,{name:"LoadingText",hash:{},data:u,loc:{start:{line:1,column:700},end:{line:1,column:715}}}):f)+'\'><div id="proxyLoadWheel" class="spinningLoadWheel color'+s(a(null!=(o=null!=t?e(t,"CurrentlySelected"):t)?e(o,"TabColor"):o,t))+' proxybordercolor  proxyborder"><\/div><div class="proxySelectorDropDownName"><span class="proxytextcolor color'+s(a(null!=(o=null!=t?e(t,"CurrentlySelected"):t)?e(o,"TabColor"):o,t))+' proxyLoadingText" dir="ltr">'+s(typeof(f=null!=(f=e(i,"LoadingText")||(null!=t?e(t,"LoadingText"):t))?f:c)===l?f.call(h,{name:"LoadingText",hash:{},data:u,loc:{start:{line:1,column:971},end:{line:1,column:986}}}):f)+"<\/span><\/div><\/div><\/li>"},4:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<li role="none" class="proxySubjectListItem">'+(null!=(f=e(i,"if").call(null!=t?t:n.nullContext||{},null!=t?e(t,"Loading"):t,{name:"if",hash:{},fn:n.program(5,u,0),inverse:n.program(7,u,0),data:u,loc:{start:{line:1,column:1221},end:{line:1,column:2750}}}))?f:"")+"<\/li>"},5:function(n,t,i,r,u){var o,e,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c=n.escapeExpression,l="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div role="menuitem" tabindex="0" aria-label="'+c((f(i,"GetProxySubjectAriaLabel")||t&&f(t,"GetProxySubjectAriaLabel")||h).call(s,null!=t?f(t,"TitleText"):t,u&&f(u,"index"),(o=(o=u&&f(u,"root"))&&f(o,"ProxySubjectList"))&&f(o,"length"),(o=u&&f(u,"root"))&&f(o,"ShowFriendsAndFamily"),(o=u&&f(u,"root"))&&f(o,"ShowPhotoUpload"),{name:"GetProxySubjectAriaLabel",hash:{},data:u,loc:{start:{line:1,column:1282},end:{line:1,column:1406}}}))+'"data-switchpatients="false" data-id="'+c(typeof(e=null!=(e=f(i,"Id")||(null!=t?f(t,"Id"):t))?e:h)===l?e.call(s,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:1444},end:{line:1,column:1450}}}):e)+'" class="color'+c(typeof(e=null!=(e=f(i,"TabColor")||(null!=t?f(t,"TabColor"):t))?e:h)===l?e.call(s,{name:"TabColor",hash:{},data:u,loc:{start:{line:1,column:1464},end:{line:1,column:1476}}}):e)+' proxySubjectLink subjectLoadingOrDisabled">'+c((f(i,"addTemplate")||t&&f(t,"addTemplate")||h).call(s,"ProxySwitch.SubjectListEntry",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:1520},end:{line:1,column:1571}}}))+"<\/div>"},7:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=e(i,"if").call(null!=t?t:n.nullContext||{},null!=t?e(t,"Disabled"):t,{name:"if",hash:{},fn:n.program(8,u,0),inverse:n.program(10,u,0),data:u,loc:{start:{line:1,column:1577},end:{line:1,column:2743}}}))?f:""},8:function(n,t,i,r,u){var o,e,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c=n.escapeExpression,l="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div role="menuitem" tabindex="0"aria-label="'+c((f(i,"GetProxySubjectAriaLabel")||t&&f(t,"GetProxySubjectAriaLabel")||h).call(s,null!=t?f(t,"TitleText"):t,u&&f(u,"index"),(o=(o=u&&f(u,"root"))&&f(o,"ProxySubjectList"))&&f(o,"length"),(o=u&&f(u,"root"))&&f(o,"ShowFriendsAndFamily"),(o=u&&f(u,"root"))&&f(o,"ShowPhotoUpload"),{name:"GetProxySubjectAriaLabel",hash:{},data:u,loc:{start:{line:1,column:1642},end:{line:1,column:1766}}}))+'"data-switchpatients="false" data-id="'+c(typeof(e=null!=(e=f(i,"Id")||(null!=t?f(t,"Id"):t))?e:h)===l?e.call(s,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:1804},end:{line:1,column:1810}}}):e)+'" class="color'+c(typeof(e=null!=(e=f(i,"TabColor")||(null!=t?f(t,"TabColor"):t))?e:h)===l?e.call(s,{name:"TabColor",hash:{},data:u,loc:{start:{line:1,column:1824},end:{line:1,column:1836}}}):e)+' proxySubjectLink subjectLoadingOrDisabled">'+c((f(i,"addTemplate")||t&&f(t,"addTemplate")||h).call(s,"ProxySwitch.SubjectListEntry",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:1880},end:{line:1,column:1931}}}))+"<\/div>"},10:function(n,t,i,r,u){var e,o,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c=n.escapeExpression,l="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a role="menuitem" tabindex="-1" aria-label="'+c((f(i,"GetProxySubjectAriaLabel")||t&&f(t,"GetProxySubjectAriaLabel")||h).call(s,null!=t?f(t,"TitleText"):t,u&&f(u,"index"),(e=(e=u&&f(u,"root"))&&f(e,"ProxySubjectList"))&&f(e,"length"),(e=u&&f(u,"root"))&&f(e,"ShowFriendsAndFamily"),(e=u&&f(u,"root"))&&f(e,"ShowPhotoUpload"),{name:"GetProxySubjectAriaLabel",hash:{},data:u,loc:{start:{line:1,column:2109},end:{line:1,column:2233}}}))+'"'+(null!=(e=f(i,"if").call(s,null!=t?f(t,"IsSelected"):t,{name:"if",hash:{},fn:n.program(11,u,0),inverse:n.program(13,u,0),data:u,loc:{start:{line:1,column:2234},end:{line:1,column:2373}}}))?e:"")+' data-id="'+c(typeof(o=null!=(o=f(i,"Id")||(null!=t?f(t,"Id"):t))?o:h)===l?o.call(s,{name:"Id",hash:{},data:u,loc:{start:{line:1,column:2383},end:{line:1,column:2389}}}):o)+'" class="'+(null!=(e=f(i,"if").call(s,null!=t?f(t,"IsSelected"):t,{name:"if",hash:{},fn:n.program(15,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:2398},end:{line:1,column:2460}}}))?e:"")+" color"+c(typeof(o=null!=(o=f(i,"TabColor")||(null!=t?f(t,"TabColor"):t))?o:h)===l?o.call(s,{name:"TabColor",hash:{},data:u,loc:{start:{line:1,column:2466},end:{line:1,column:2478}}}):o)+" proxySubjectLink "+(null!=(e=f(i,"if").call(s,null!=t?f(t,"Loading"):t,{name:"if",hash:{},fn:n.program(17,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:2496},end:{line:1,column:2542}}}))?e:"")+(null!=(e=f(i,"if").call(s,null!=t?f(t,"Disabled"):t,{name:"if",hash:{},fn:n.program(17,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:2542},end:{line:1,column:2589}}}))?e:"")+'" href='+(null!=(e=f(i,"if").call(s,null!=t?f(t,"IsSelected"):t,{name:"if",hash:{},fn:n.program(19,u,0),inverse:n.program(21,u,0),data:u,loc:{start:{line:1,column:2596},end:{line:1,column:2654}}}))?e:"")+" >"+c((f(i,"addTemplate")||t&&f(t,"addTemplate")||h).call(s,"ProxySwitch.SubjectListEntry",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:2688},end:{line:1,column:2739}}}))+"<\/a>"},11:function(){return'data-closedropdown="true" data-switchpatients="false"'},13:function(){return'data-closedropdown="false" data-switchpatients="true"'},15:function(){return"currentContext opacity30 proxybgcolor"},17:function(){return"subjectLoadingOrDisabled"},19:function(){return' "#" '},21:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return n.escapeExpression((f(i,"makeLink")||t&&f(t,"makeLink")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},null!=t?f(t,"LinkUrl"):t,{name:"makeLink",hash:{},data:u,loc:{start:{line:1,column:2627},end:{line:1,column:2647}}}))},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).SubjectListEntry=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var o,e,s=null!=t?t:n.nullContext||{},h=n.hooks.helperMissing,c=n.escapeExpression,l="function",f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return c((f(i,"setStringNamespace")||t&&f(t,"setStringNamespace")||h).call(s,"ProxySwitch.ProxySwitch.ProxySelector",{name:"setStringNamespace",hash:{},data:u,loc:{start:{line:1,column:51},end:{line:1,column:113}}}))+'<span aria-hidden="true"  class="proxySelectorDropDownPhotoContainer '+(null!=(o=f(i,"if").call(s,null!=t?f(t,"Disabled"):t,{name:"if",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:206},end:{line:1,column:252}}}))?o:"")+'">'+(null!=(o=n.invokePartial(f(r,"roundPatientIcon"),t,{name:"roundPatientIcon",data:u,helpers:i,partials:r,decorators:n.decorators}))?o:"")+'<\/span><div class="proxySelectorDropDownName" title="'+c(typeof(e=null!=(e=f(i,"TitleText")||(null!=t?f(t,"TitleText"):t))?e:h)===l?e.call(s,{name:"TitleText",hash:{},data:u,loc:{start:{line:1,column:366},end:{line:1,column:379}}}):e)+'" ><span aria-hidden="true" dir="ltr" class="proxySelectorDropDownNameEllipsis '+(null!=(o=f(i,"if").call(s,null!=t?f(t,"Disabled"):t,{name:"if",hash:{},fn:n.program(3,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:458},end:{line:1,column:502}}}))?o:"")+'">'+c(typeof(e=null!=(e=f(i,"DisplayNameLabel")||(null!=t?f(t,"DisplayNameLabel"):t))?e:h)===l?e.call(s,{name:"DisplayNameLabel",hash:{},data:u,loc:{start:{line:1,column:504},end:{line:1,column:524}}}):e)+"<\/span>"+(null!=(o=f(i,"if").call(s,null!=t?f(t,"Loading"):t,{name:"if",hash:{},fn:n.program(5,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:531},end:{line:1,column:671}}}))?o:"")+(null!=(o=f(i,"if").call(s,null!=t?f(t,"Disabled"):t,{name:"if",hash:{},fn:n.program(7,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:671},end:{line:1,column:825}}}))?o:"")+"<\/div>"+c(typeof(e=null!=(e=f(i,"clearStringNamespace")||(null!=t?f(t,"clearStringNamespace"):t))?e:h)===l?e.call(s,{name:"clearStringNamespace",hash:{},data:u,loc:{start:{line:1,column:831},end:{line:1,column:855}}}):e)+" "},1:function(){return" proxyLoadPhotoDisabled"},3:function(){return" proxyLoadErrorSubtle"},5:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div id="proxyLoadWheel" class="spinningLoadWheel color'+n.escapeExpression("function"==typeof(f=null!=(f=e(i,"CurrentlySelectedColor")||(null!=t?e(t,"CurrentlySelectedColor"):t))?f:n.hooks.helperMissing)?f.call(null!=t?t:n.nullContext||{},{name:"CurrentlySelectedColor",hash:{},data:u,loc:{start:{line:1,column:601},end:{line:1,column:627}}}):f)+' proxybordercolor proxyborder"><\/div>'},7:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span><svg class="proxyLoadErrorIcon" aria-hidden="true" role="img">'+n.escapeExpression((f(i,"referenceSvg")||t&&f(t,"referenceSvg")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"library.svg#_emblem_yieldyellow",{name:"referenceSvg",hash:{},data:u,loc:{start:{line:1,column:755},end:{line:1,column:805}}}))+"<\/svg><\/span>"},usePartial:!0,useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.ProxySwitch=n.ProxySwitch||{}).PatientRoundIcon=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var o,e,s=null!=t?t:n.nullContext||{},f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div  class="roundedPatientPhoto proxybgcolor proxybordercolor color'+n.escapeExpression("function"==typeof(e=null!=(e=f(i,"TabColor")||(null!=t?f(t,"TabColor"):t))?e:n.hooks.helperMissing)?e.call(s,{name:"TabColor",hash:{},data:u,loc:{start:{line:1,column:206},end:{line:1,column:218}}}):e)+(null!=(o=f(i,"unless").call(s,null!=t?f(t,"PhotoUrl"):t,{name:"unless",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:218},end:{line:1,column:258}}}))?o:"")+'">'+(null!=(o=f(i,"if").call(s,null!=t?f(t,"PhotoUrl"):t,{name:"if",hash:{},fn:n.program(3,u,0),inverse:n.program(5,u,0),data:u,loc:{start:{line:1,column:260},end:{line:1,column:405}}}))?o:"")+"<\/div>"},1:function(){return" noBorder"},3:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},s=n.hooks.helperMissing,h="function",c=n.escapeExpression,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return"<img src="+c(typeof(f=null!=(f=e(i,"PhotoUrl")||(null!=t?e(t,"PhotoUrl"):t))?f:s)===h?f.call(o,{name:"PhotoUrl",hash:{},data:u,loc:{start:{line:1,column:285},end:{line:1,column:297}}}):f)+' alt="" data-first-letter="'+c(typeof(f=null!=(f=e(i,"FirstLetter")||(null!=t?e(t,"FirstLetter"):t))?f:s)===h?f.call(o,{name:"FirstLetter",hash:{},data:u,loc:{start:{line:1,column:324},end:{line:1,column:339}}}):f)+'" />'},5:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<span aria-hidden="true">'+n.escapeExpression("function"==typeof(f=null!=(f=e(i,"FirstLetter")||(null!=t?e(t,"FirstLetter"):t))?f:n.hooks.helperMissing)?f.call(null!=t?t:n.nullContext||{},{name:"FirstLetter",hash:{},data:u,loc:{start:{line:1,column:376},end:{line:1,column:391}}}):f)+"<\/span>"},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Upload=n.Upload||{}).UploadContainer=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var e,o=null!=t?t:n.nullContext||{},s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div data-block="upload"><div class="cardlist column_2 upload-cardlist hoverable matchHeights">'+(null!=(e=f(i,"each").call(o,null!=t?f(t,"Documents"):t,{name:"each",hash:{},fn:n.program(1,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:146},end:{line:1,column:220}}}))?e:"")+s((f(i,"addTemplate")||t&&f(t,"addTemplate")||n.hooks.helperMissing).call(o,"Upload.UploadCard",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:285},end:{line:1,column:325}}}))+'<\/div><div class="hidden"><input type="file" class="upload-input hidden" data-function="upload-core" accept="'+s(n.lambda(null!=(e=null!=t?f(t,"Configuration"):t)?f(e,"AllowedExtensionsForInput"):e,t))+'" multiple="multiple" /><\/div><div id="uploadAriaContainer" class="clearlabel" aria-live="assertive"><span id="uploadAriaAnnouncements"><\/span><\/div><\/div>'},1:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return n.escapeExpression((f(i,"addTemplate")||t&&f(t,"addTemplate")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"Upload.UploadedFileCard",t,{name:"addTemplate",hash:{},data:u,loc:{start:{line:1,column:165},end:{line:1,column:211}}}))},useData:!0})}();!function(){var t=Handlebars.template,n=$$WP.Templates=$$WP.Templates||{};(n=n.Upload=n.Upload||{}).UploadCard=t({compiler:[8,">= 4.3.0"],main:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=(e(i,"ifAll")||t&&e(t,"ifAll")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},null!=t?e(t,"IsLimitReached"):t,null!=(f=null!=t?e(t,"Configuration"):t)?e(f,"HideMaxUploadsWarning"):f,{name:"ifAll",hash:{},fn:n.program(1,u,0),inverse:n.program(3,u,0),data:u,loc:{start:{line:1,column:1},end:{line:1,column:1526}}}))?f:""},1:function(){return"<div />"},3:function(n,t,i,r,u){var f,o=null!=t?t:n.nullContext||{},e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div class="card addItem upload-addFile" '+(null!=(f=e(i,"if").call(o,null!=t?e(t,"CanUpload"):t,{name:"if",hash:{},fn:n.program(4,u,0),inverse:n.noop,data:u,loc:{start:{line:1,column:118},end:{line:1,column:186}}}))?f:"")+">"+(null!=(f=e(i,"if").call(o,null!=t?e(t,"IsConfigLoading"):t,{name:"if",hash:{},fn:n.program(6,u,0),inverse:n.program(8,u,0),data:u,loc:{start:{line:1,column:187},end:{line:1,column:1510}}}))?f:"")+"<\/div>"},4:function(){return' data-function="upload" data-dragregion="1" '},6:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a role="button" href="#" data-id="additem" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"LoadingConfigPrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:266},end:{line:1,column:309}}}))+'"><span class="vcenter"><span class="addlabel upload--add-file-label upload--uploading-icon" aria-hidden="true">'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"LoadingConfigPrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:421},end:{line:1,column:464}}}))+"<\/span><\/span><\/a>"},8:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=e(i,"if").call(null!=t?t:n.nullContext||{},null!=t?e(t,"IsLimitReached"):t,{name:"if",hash:{},fn:n.program(9,u,0),inverse:n.program(11,u,0),data:u,loc:{start:{line:1,column:482},end:{line:1,column:1503}}}))?f:""},9:function(n,t,i,r,u){var f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<div class="card-center upload--limit-reached"><div>'+n.escapeExpression((f(i,"getStringResource")||t&&f(t,"getStringResource")||n.hooks.helperMissing).call(null!=t?t:n.nullContext||{},"UploadLimitReachedErrorMessage",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:560},end:{line:1,column:614}}}))+"<\/div><\/div>"},11:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=e(i,"if").call(null!=t?t:n.nullContext||{},null!=t?e(t,"IsCurrentlyUploading"):t,{name:"if",hash:{},fn:n.program(12,u,0),inverse:n.program(14,u,0),data:u,loc:{start:{line:1,column:626},end:{line:1,column:1503}}}))?f:""},12:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a role="button" href="#" data-id="additem" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadingFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:714},end:{line:1,column:757}}}))+'"><span class="vcenter"><span class="addlabel upload--add-file-label upload--uploading-icon" aria-hidden="true">'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadingFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:869},end:{line:1,column:912}}}))+"<\/span><\/span><\/a>"},14:function(n,t,i,r,u){var f,e=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return null!=(f=e(i,"if").call(null!=t?t:n.nullContext||{},null!=t?e(t,"Documents"):t,{name:"if",hash:{},fn:n.program(15,u,0),inverse:n.program(17,u,0),data:u,loc:{start:{line:1,column:930},end:{line:1,column:1503}}}))?f:""},15:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a role="button" href="#" data-id="additem" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadAnotherFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1007},end:{line:1,column:1054}}}))+'"><span class="vcenter"><span class="addlabel upload--add-file-label upload--document-icon" aria-hidden="true">'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadAnotherFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1165},end:{line:1,column:1212}}}))+"<\/span><\/span><\/a>"},17:function(n,t,i,r,u){var e=null!=t?t:n.nullContext||{},o=n.hooks.helperMissing,s=n.escapeExpression,f=n.lookupProperty||function(n,t){if(Object.prototype.hasOwnProperty.call(n,t))return n[t]};return'<a role="button" href="#" data-id="additem" aria-label="'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1294},end:{line:1,column:1334}}}))+'"><span class="vcenter"><span class="addlabel upload--add-file-label upload--document-icon" aria-hidden="true">'+s((f(i,"getStringResource")||t&&f(t,"getStringResource")||o).call(e,"UploadFilePrompt",{name:"getStringResource",hash:{},data:u,loc:{start:{line:1,column:1445},end:{line:1,column:1485}}}))+"<\/span><\/span><\/a>"},useData:!0})}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n){var t,r,i,u;for(this.WP$Common$Model(n),t=0;t<this.Submenus.length;t++)r=new $$WP.Navigation.Models.Submenu(this.Submenus[t]),this.Submenus[t]=r;for(this.Submenus=this.Submenus.filter(function(n){return n.MenuItems.length>0}),i=0;i<this.Shortcuts.length;i++)u=new $$WP.Navigation.Models.MenuItem(this.Shortcuts[i]),this.Shortcuts[i]=u};n.prototype={s_dataMembers:["SubjectColor","MenuDisplayName","ButtonDisplayName","Submenus","Shortcuts","TextDirection","IsNav"],SubjectColor:null,MenuDisplayName:null,ButtonDisplayName:null,Submenus:null,Shortcuts:null,TextDirection:null,IsNav:null,getMenuAuditState:function(){var n=[];for(subIx=0;subIx<this.Submenus.length;subIx++)for(menuIx=0;menuIx<this.Submenus[subIx].MenuItems.length;menuIx++)n.push({Id:this.Submenus[subIx].MenuItems[menuIx].Id});return n}};$$WP.Navigation.Models.Menu=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$Menu")}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n){var t,i;for(this.WP$Common$Model(n),t=0;t<this.MenuItems.length;t++)i=new $$WP.Navigation.Models.MenuItem(this.MenuItems[t]),this.MenuItems[t]=i;this.MenuItems=this.MenuItems.filter($$WP.Navigation.Models.MenuItem.isValidMenuItem)};n.prototype={s_dataMembers:["Name","MenuItems"],Name:null,MenuItems:null};$$WP.Navigation.Models.Submenu=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$Submenu")}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n){this.WP$Common$Model(n);this.__makeMenuItemLink()};n.prototype={s_dataMembers:["Id","Name","NameWithoutDiacritics","Link","Icon","Emblem","Synonyms","SynonymsWithoutDiacritics","DataAttributes"],Id:null,Name:null,NameWithoutDiacritics:null,Link:null,Icon:null,Emblem:null,Synonyms:null,SynonymsWithoutDiacritics:null,DataAttributes:null,__makeMenuItemLink:function(){return!!this.Link&&("#"!==this.Link&&(this.Link=makeLink(this.Link)),!0)}};$$WP.Navigation.Models.MenuItem=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$MenuItem");$$WP.Navigation.Models.MenuItem.isValidMenuItem=function(n){return null!==n.Link}}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n,t,i){this.WP$Common$Model(n);this.SearchResultsItems=[];this.TotalMatches=0;this.SearchString=t;this.Auditing=!!i;this.AuditState=[];this._getSearchMenu(n,t);this.SearchResultsDisplay=""};n.prototype={s_dataMembers:["SubjectColor","IsNav","MenuName"],SubjectColor:null,IsNav:null,MenuName:null,Auditing:null,SearchString:null,TotalMatches:null,AuditState:null,SearchResultsItems:null,SearchResultsDisplay:null,_getSearchMenu:function(n,t){return this.__searchMenu(n,t),null},__searchMenu:function(n,t){for(var i,r=0;r<n.Submenus.length;r++)i=new $$WP.Navigation.Models.SearchSubmenu(n.Submenus[r],t,this.Auditing),i.Matches>=1&&(this.SearchResultsItems=this.SearchResultsItems.concat(i.MenuItems),this.TotalMatches+=i.Matches,this.Auditing&&(this.AuditState=this.AuditState.concat(i.AuditState)));this.SearchResultsItems.sort(function(n,t){return n.MatchRanking-t.MatchRanking})}};$$WP.Navigation.Models.SearchMenu=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$SearchMenu")}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n,t,i){this.WP$Common$Model(n);this.MenuItems=[];this.Matches=0;this.Auditing=i;this.AuditState=[];this.__searchSubmenu(n,t)};n.prototype={s_dataMembers:["Name"],Name:null,Auditing:null,MenuItems:null,Matches:null,AuditState:null,__searchSubmenu:function(n,t){for(var r,i=0;i<n.MenuItems.length;i++)r=new $$WP.Navigation.Models.SearchMenuItem(n.MenuItems[i],t,this.Auditing),r.IsMatch&&(this.MenuItems.push(r),this.Matches++);this.Auditing&&this.__getAuditState()},__getAuditState:function(){for(var n=0;n<this.MenuItems.length;n++)this.AuditState.push(this.MenuItems[n].AuditState)}};$$WP.Navigation.Models.SearchSubmenu=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$SearchSubmenu")}();!function(){$$WP.Utilities.guaranteeExistence($$WP,"Navigation.Models");var n=function(n,t,i){this.WP$Common$Model(n);this.RangesToMark=[];this.MatchIsSynonym=!1;this.IsMatch=!1;this.AuditState=[];this.__searchMenuItem(n,t)&&(this.IsMatch=!0,i&&(this.AuditState=this.__getAuditState()))};n.prototype={s_dataMembers:["Id","Name","Link","Icon","DataAttributes"],Id:null,Name:null,Link:null,Icon:null,DataAttributes:null,IsMatch:null,MatchIsSynonym:!1,RangesToMark:null,SynonymMatch:null,MatchRanking:null,AuditState:null,__searchMenuItem:function(n,t){var i=this.__getSearchMatchRankingAndIndex(t,n.Name,!1),u=this.__getSearchMatchRankingAndIndex(t,n.NameWithoutDiacritics,!1),f,r;if(-1!=u[1]&&(-1==i[1]||u[1]<i[1])&&(i=u),f=i[1],r=i[0],1==r)return this.RangesToMark.push({start:f,end:f+t.length}),this.MatchRanking=r,!0;for(var s=Number.MAX_VALUE,o=Number.MAX_VALUE,h=-1,e=0;e<n.Synonyms.length&&0!=r;e++)i=this.__getSearchMatchRankingAndIndex(t,n.Synonyms[e],!0),-1!=(u=this.__getSearchMatchRankingAndIndex(t,n.SynonymsWithoutDiacritics[e],!0))[1]&&(-1==i[1]||u[1]<i[1])&&(i=u),s=i[1],(o=i[0])>-1&&o<r&&(this.MatchIsSynonym=!0,h=e,f=s,r=o);return-1!=r&&r!=Number.MAX_VALUE&&(this.MatchIsSynonym&&(this.SynonymMatch=n.Synonyms[h]),this.RangesToMark.push({start:f,end:f+t.length}),this.MatchRanking=r,!0)},__getSearchMatchRankingAndIndex:function(n,t,i){for(var f=0,r=0,s=-1,e=t.replaceAll("-"," ").toLowerCase(),u=Number.MAX_VALUE,o=Number.MAX_VALUE;u>0&&f<e.length;)r=e.indexOf(n,f),(u=this.__getSearchMatchRanking(r,e,i))>-1&&u<o&&(o=u,s=r),f=r+n.length;return[o,s]},__getAuditState:function(){return{Id:this.Id,SynonymMatch:this.SynonymMatch}},__getSearchMatchRanking:function(n,t,i){return-1==n?-1:(0==n?1:"- ".includes(t.charAt(n-1))?3:5)+Number(i)}};$$WP.Navigation.Models.SearchMenuItem=n;n.extend($$WP.Common.Model,"WP$Navigation$Models$SearchMenuItem")}();!function(){var n=$$WP.Strings.getNamespace("ProxySwitch.ProxySwitch.ProxySelector"),t;$$WP.Utilities.guaranteeExistence($$WP,"ProxySwitch.Models");t=function(n){var t,i;for(this.WP$Common$Model(n),t=0;t<this.ProxySubjectList.length;t++)i=new $$WP.ProxySwitch.Models.ProxySubjectViewModel(this.ProxySubjectList[t]),this.ProxySubjectList[t]=i,this.ProxySubjectList[t].IsSelected&&(this.CurrentlySelected=this.ProxySubjectList[t]);this.ProxySubjectList.forEach(function(n){n.CurrentlySelectedColor=this.TabColor},this.CurrentlySelected);!0===this.ShowPhotoUpload&&(this.PhotoUploadMenuText=this._determinePhotoUploadText(),this.PhotoUploadMenuTitleText=this._determinePhotoUploadMenuTitleText());this.ButtonTitleText=this._determineButtonTitleText();this.FriendsAndFamilyTitleText=this._determineFriendsAndFamilyTitleText();this.FriendsAndFamilyMenuText=this._determineFriendsAndFamilyMenuText();this.Loading=this.ShouldTryAgain};t.prototype={s_dataMembers:["ProxySubjectList","ShowPhotoUpload","IsGuest","ShowFriendsAndFamily","ShouldTryAgain"],ProxySubjectList:null,CurrentlySelected:null,ShowPhotoUpload:!1,ShowFriendsAndFamily:!1,PhotoUploadMenuText:"",ChangeShortcutsTitleText:"",ButtonTitleText:"",PhotoUploadMenuTitleText:"",IsGuest:!1,LoadingText:n.getString("LoadingText"),ShouldTryAgain:!1,resetPhotoUploadToFalse:function(){this.ShowPhotoUpload=!1;this.ButtonTitleText=this._determineButtonTitleText()},_determineButtonTitleText:function(){return this.ProxySubjectList.length>1?this.CurrentlySelected.TitleText+"\n"+n.getString("switchPatientsTitleText"):n.getString("noProxiesTitleText")},_determinePhotoUploadMenuTitleText:function(){var t="",i;return t=!0===this.CurrentlySelected.IsSelf?this.CurrentlySelected.PhotoUrl?"changePhotoMenuItemTitleText":"addPhotoMenuItemTitleText":this.CurrentlySelected.PhotoUrl?"changeSubjectsPhotoMenuItemTitleText":"addSubjectsPhotoMenuItemTitleText",this.CurrentlySelected.ServiceAreaAbbreviationList&&(t+="ServiceAreas"),this._addMnemonics(),i=n.getString(t),this._removeMnemonics(),i},_determinePhotoUploadText:function(){var t="",i;return t=!0===this.CurrentlySelected.IsSelf?this.CurrentlySelected.PhotoUrl?"changeMyPhotoMenuItem":"addMyPhotoMenuItem":this.CurrentlySelected.PhotoUrl?"changeSubjectsPhotoMenuItem":"addSubjectsPhotoMenuItem",this.CurrentlySelected.ServiceAreaAbbreviationList&&(t+="ServiceAreas"),this._addMnemonics(),i=n.getString(t),this._removeMnemonics(),i},_determineFriendsAndFamilyMenuText:function(){var t="FriendsAndFamilyMenuText",i;return this.CurrentlySelected.ServiceAreaAbbreviationList&&(t+="ServiceAreas"),this._addMnemonics(),i=n.getString(t),this._removeMnemonics(),i},_determineFriendsAndFamilyTitleText:function(){var t="FriendsAndFamilyTitleText",i;return this.CurrentlySelected.ServiceAreaAbbreviationList&&(t+="ServiceAreas"),this._addMnemonics(),i=n.getString(t),this._removeMnemonics(),i},_addMnemonics:function(){n.addMnemonic("@MYCHART@SUBJECT_PATIENTNAME@",this.CurrentlySelected.DisplayName,$$WP.Strings.EncodingTypes.None);n.addMnemonic("@MYCHART@ALLOWEDAREAS@",this.CurrentlySelected.ServiceAreaAbbreviationList,$$WP.Strings.EncodingTypes.None)},_removeMnemonics:function(){n.removeMnemonic("@MYCHART@SUBJECT_PATIENTNAME@");n.removeMnemonic("@MYCHART@ALLOWEDAREAS@")}};$$WP.ProxySwitch.Models.ProxySelectorViewModel=t;t.extend($$WP.Common.Model,"WP$ProxySwitch$Models$ProxySelectorViewModel")}();!function(){var n=$$WP.Strings.getNamespace("ProxySwitch.ProxySwitch.ProxySelector"),t;$$WP.Utilities.guaranteeExistence($$WP,"ProxySwitch.Models");t=function(n){this.WP$Common$Model(n);this.FirstLetter=this.DisplayName.substring(0,1);this.TitleText=this.determineTitleText();this.DisplayNameLabel=this.DisplayName;this.ServiceAreaAbbreviationList&&(this.DisplayNameLabel=this.determineDisplayNameWithServiceAreas())};t.prototype={s_dataMembers:["DisplayName","TabColor","PhotoUrl","LinkUrl","IsSelected","FirstLetter","IsSelf","TitleText","ServiceAreaAbbreviationList","Loading","Disabled","Id"],DisplayName:null,PhotoUrl:null,TabColor:null,LinkUrl:null,IsSelected:!1,FirstLetter:null,IsSelf:!1,TitleText:null,ServiceAreaAbbreviationList:null,DisplayNameLabel:null,Loading:!1,Disabled:!1,CurrentlySelectedColor:null,Id:null,determineTitleText:function(){n.addMnemonic("@MYCHART@SUBJECT_PATIENTNAME@",this.DisplayName,$$WP.Strings.EncodingTypes.None);n.addMnemonic("@MYCHART@ALLOWEDAREAS@",this.ServiceAreaAbbreviationList,$$WP.Strings.EncodingTypes.None);var i,t="";return t=this.IsSelected&&this.IsSelf?"selfSelectorCurrentlyAccessingTitle":this.IsSelected&&!this.IsSelf?"currentlyAccessingTitle":!this.IsSelected&&this.IsSelf?"selfSelectorTitle":this.Loading?"RemoteSubjectLoading":this.Disabled?"RemoteSubjectDisabled":"subjectSelectorTitle",this.ServiceAreaAbbreviationList&&(t+="ServiceAreas"),i=n.getString(t),n.removeMnemonic("@MYCHART@SUBJECT_PATIENTNAME@"),n.removeMnemonic("@MYCHART@ALLOWEDAREAS@"),i},determineDisplayNameWithServiceAreas:function(){n.addMnemonic("@MYCHART@SUBJECT_PATIENTNAME@",this.DisplayName,$$WP.Strings.EncodingTypes.None);n.addMnemonic("@MYCHART@ALLOWEDAREAS@",this.ServiceAreaAbbreviationList,$$WP.Strings.EncodingTypes.None);var t=n.getString("subjectLabelTitleServiceAreas");return n.removeMnemonic("@MYCHART@SUBJECT_PATIENTNAME@"),n.removeMnemonic("@MYCHART@ALLOWEDAREAS@"),t}};$$WP.ProxySwitch.Models.ProxySubjectViewModel=t;t.extend($$WP.Common.Model,"WP$ProxySwitch$Models$ProxySubjectViewModel")}();!function(){var n,t;$$WP.Utilities.guaranteeExistence($$WP,"Upload.Models");n=function(n){n=n||{};this.WP$Common$Model(n);this.ContextData=jQuery.extend(!0,{},this.ContextData);this.ViewTemplate=n.ViewTemplate||$$WP.Templates.Upload.UploadContainer;this.UploadCardTemplate=n.UploadCardTemplate||$$WP.Templates.Upload.UploadCard;this.DefaultStringNamespace=n.DefaultStringNamespace||"Upload";this.ViewerCsn=n.ViewerCsn;this.IsPhotoForPatientsChart=n.IsPhotoForPatientsChart};n.prototype={s_dataMembers:["AllowedImageAndDocumentExtensions","AllowedVideoExtensions","MaxAllowedImageSize","MaxAllowedVideoSize","MaxFilesAllowed","ContextData"],AllowedImageAndDocumentExtensions:null,AllowedVideoExtensions:null,MaxAllowedImageSize:null,MaxAllowedVideoSize:null,MaxFilesAllowed:null,ContextData:{},ViewerCsn:"",ViewTemplate:null,IsPhotoForPatientsChart:!1,UploadCardTemplate:null,AttachContainerEventHandlers:null,AttachFileCardEventHandlers:null,DefaultStringNamespace:null,ConfirmationViewModel:null,RefreshViewOverride:null,MasterController:null,NeedsRedirect:!1,RedirectTitle:null,RedirectHtml:null,UseGet:!1,FromVBPage:!1,HideMaxUploadsWarning:!1,HideFileExtensions:!1,FromBedside:!1,ConfigUrl:null,UploadUrl:makeLink("DocumentUpload/UploadFile"),DeleteUrl:makeLink("DocumentUpload/DeleteFile"),EditUrl:makeLink("DocumentUpload/EditFileName"),onConfigStart:null,onUploadStart:null,onEditStart:null,onDeleteStart:null,onConfigSucess:null,onUploadSuccess:null,onDeleteSuccess:null,onEditSuccess:null,onConfigFail:null,onUploadFail:null,onDeleteFail:null,onEditFail:null,ConfirmFunction:null,IsFileAceptable:function(n,t){if(this.HasInvalidFilenameChars(n))return 4;var r=(n||"").lastIndexOf("."),i="",u=this.AllowedExtensions;return r>-1&&(i=n.substr(r+1).toUpperCase(),u.indexOf(i)>-1)?(t/=1024,this.AllowedImageAndDocumentExtensions&&this.AllowedImageAndDocumentExtensions.indexOf(i)>-1&&this.MaxAllowedImageSize<t?2:this.AllowedVideoExtensions&&this.AllowedVideoExtensions.indexOf(i)>-1&&this.MaxAllowedVideoSize<t?3:0):1},HasInvalidFilenameChars:function(n){for(var i=$$WP.Upload.Models.UploadConfiguration.InvalidFilenameCharsSet,t=0;t<n.length;t++)if(i.has(n[t]))return!0;return!1},get AllowedExtensions(){var n=[];return this.AllowedImageAndDocumentExtensions&&this.AllowedImageAndDocumentExtensions.length>0&&this.MaxAllowedImageSize>0&&(n=n.concat(this.AllowedImageAndDocumentExtensions)),this.AllowedVideoExtensions&&this.AllowedVideoExtensions.length>0&&this.MaxAllowedVideoSize>0&&(n=n.concat(this.AllowedVideoExtensions)),n},get AllowedExtensionsForInput(){var n=this.AllowedExtensions;return n&&n.length>0?"."+n.join(",."):""},get AllowedDocumentsHelperText(){var n="";return $$WP.Strings.setDefaultNamespace(this.DefaultStringNamespace),$$WP.Strings.addMnemonic("@MYCHART@MAXUPLOADS@",this.MaxFilesAllowed),$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDEXTENSIONS@",this.AllowedExtensions.join($$WP.Strings.get("listSeparator"))),$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDIMAGESIZE@",Math.floor(10*this.MaxAllowedImageSize/1024)/10),$$WP.Strings.addMnemonic("@MYCHART@ALLOWEDVIDEOSIZE@",Math.floor(10*this.MaxAllowedVideoSize/1024)/10),n=1===this.MaxFilesAllowed?this.HideFileExtensions?$$WP.Strings.get("UploadInfoBubbleHelpTextOneFileNoExtensions"):$$WP.Strings.get("UploadInfoBubbleHelpTextOneFile"):this.HideFileExtensions?$$WP.Strings.get("UploadInfoBubbleHelpTextNoExtensions"):$$WP.Strings.get("UploadInfoBubbleHelpText"),this.MaxAllowedImageSize>0&&(n+=$$WP.Strings.get("UploadInfoBubbleImageSizeHelpText")),this.MaxAllowedVideoSize>0&&(n+=$$WP.Strings.get("UploadInfoBubbleVideoSizeHelpText")),$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDVIDEOSIZE@"),$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDIMAGESIZE@"),$$WP.Strings.removeMnemonic("@MYCHART@ALLOWEDEXTENSIONS@"),$$WP.Strings.removeMnemonic("@MYCHART@MAXUPLOADS@"),$$WP.Strings.clearDefaultNamespace(),n}};n.parse=function(t){return new n(t)};t=new Set([String.fromCharCode(34),String.fromCharCode(60),String.fromCharCode(62),String.fromCharCode(124),String.fromCharCode(58),String.fromCharCode(42),String.fromCharCode(63),String.fromCharCode(92),String.fromCharCode(47)].concat(Array.apply(null,Array(32)).map(function(n,t){return String.fromCharCode(t)})));$$WP.Upload.Models.UploadConfiguration=n;$$WP.Upload.Models.UploadConfiguration.InvalidFilenameCharsSet=$$WP.Upload.Models.UploadConfiguration.InvalidFilenameCharsSet||t;n.extend($$WP.Common.Model,"WP$Upload$Models$UploadConfiguration")}();!function(){var n=function(n,r,u){this.WP$BaseObject();this.Module=n||i.Default;this.Submodule=r||t.Default;this.IsoInstantUtc=u||(new Date).toISOString();this.ExtraInfoEntries=[]},i={Default:0,Scheduling:1,ProviderFinder:2},t={Default:0,ConfirmationStep:1,CustomStep:2,DemographicVerificationStep:3,InsuranceVerificationStep:4,LandingPage:5,LocationStep:6,LQFStep:7,OnboardingStep:8,ProviderStep:9,ReasonForVisitStep:10,RequestStep:11,SlotStep:12,OrganizationAuthStep:13,OrganizationStep:14,PatientLocationStep:15,PlatformStep:16,QuickScheduleStep:17,SummaryStep:18,StopScheduling:19,SpecialtyStep:20,ReservationStep:21,MyChartLinkStep:41,GrouperStep:42,SearchPage:43,ResultsPage:44,AllOptions:49};n.prototype={Module:null,Submodule:null,IsoInstantUtc:null,ExtraInfoEntries:null,addEntryToExtraInfo:function(n,t,i,r){var u;i&&(Array.isArray(i)||(i=[i]),u={Index:n,Key:t,Values:i,AreValuesEncrypted:r},this.ExtraInfoEntries.push(u))}};n.ModulesEnum=i;n.SubmodulesEnum=t;n.getNameFromSubmodule=function(n){for(var i in t)if(t[i]===n)return i;return null};$$WP.Analytics=$$WP.Analytics||{};$$WP.Analytics.ViewEvent=n;n.extend($$WP.BaseObject,"WP$Analytics$ViewEvent")}();!function(){var h=$$WP.Analytics.ViewEvent,n=function(){this.WP$Controllers$Controller()},c=function(){sessionStorage.setItem("FormFactorReported","true")},u=function(){return $$WP.WidgetMode&&t()?document.getElementById("__WidgetTokenContainer").getElementsByTagName("input")[0].getAttribute("guid"):null},t=function(){return"True"===$$WP.Settings.WebAnalyticsEnabled},f=function(){if(!$$WPUtil.canWriteCookies()||$$WP.WidgetMode)return!1;try{return"true"==sessionStorage.getItem("IsAnalyticsSessionActive")}catch(n){return!1}},i=function(n){if($$WPUtil.canWriteCookies()&&!$$WP.WidgetMode)try{!0===n?sessionStorage.setItem("IsAnalyticsSessionActive","true"):sessionStorage.setItem("IsAnalyticsSessionActive","false")}catch(n){}},e=function(){!0===f()&&(r&&window.clearTimeout(r),r=window.setTimeout(function(){i(!1)},3e5))},l=function(){return window.innerWidth},a=function(){return window.innerHeight},r=null,o=function(n){var i,u,r,t;if(null!=n){if(n.associatedDataEntries=n.associatedDataEntries||[],i=window.location.search.toLowerCase(),!$$WPUtil.IsNullOrEmpty(i))for(r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],n.associatedDataEntries.push({relationType:"Query Strings",values:i}),t=0;t<r.length;t++)u=$$WPUtil.GetQueryStringParameterValue(i,r[t]),$$WPUtil.IsNullOrEmpty(u)||n.associatedDataEntries.push({relationType:r[t],values:u});$$WPUtil.IsNullOrEmpty(document.referrer)||n.associatedDataEntries.push({relationType:"Browser Referrer",values:document.referrer});e();$$WPUtil.SendBeacon(makeLink("Analytics/LogSessionEvent"),JSON.stringify(n,function(n,t){if("values"===n){if("number"==typeof t)return[t];if("string"==typeof t)return[t]}return t}),!1)}},s=function(n,t){$.post({url:makeLink("AnalyticsSession/InitializeAnalyticsSession"),data:{sessionId:t},success:$.proxy(function(){i(!0);o(n)})})};n.prototype={};n.logViewEvent=function(n,t){$$WP.DisableUsageTracking||$$WP.Utilities.UI.IsLoggedIn&&(n.Module!==h.ModulesEnum.Default?$.post({url:makeLink("Analytics/LogViewEventForUsageTracking"),data:$$WPUtil.postify(n),success:t,error:t}):$$WP.Debug.logError("Module must be defined in order to log a view event."))};n.logThirdPartyViewEvent=function(n){$$WP.DisableUsageTracking||($$WPUtil.guaranteeExistence($$WP,"ThirdPartyUsageTracking"),"function"==typeof $$WP.ThirdPartyUsageTracking.LogViewEvent?$$WP.ThirdPartyUsageTracking.LogViewEvent(n.Path,n.Title,n.ExtraInfo):$$WP.Debug.logError("Attempted to log view event to third party but function does not exist. Did you include the correct JavaScript files?"))};n.logFormFactor=function(n){if($$WPUtil.canWriteCookies()){var t=(n=n||!1)?null:c;$$WP.TroveDisabled||"true"!==sessionStorage.FormFactorReported&&getCSRFTokenAsQS(function(i){$.ajax({url:makeLink("Analytics/LogFormFactor"),data:{width:l(),height:a(),guest:n,token:i},type:"POST",success:t})})}};n.logSessionEvent=function(n){var i=null;t()&&($$WP.WidgetMode&&(i=u(),n.AnalyticsSessionId=i),f()||$$WP.WidgetMode?o(n):s(n,i))};n.getAnalyticsGuidFromWidget=u;n.getIsSessionAnalyticsEnabled=t;$$WP.Analytics=$$WP.Analytics||{};$$WP.Analytics.UsageTrackingController=n;n.extend($$WP.Controllers.Controller,"WP$Analytics$UsageTrackingController"),function(){var r,u,n;t()&&(n=window.location.href,e(),u=1==$$WPUtil.GetQueryStringParameterValue(n,"isRedirect"),r=$$WPUtil.GetQueryStringParameterValue(n,"analyticsSessionId"),"logout"==$$WPUtil.GetQueryStringParameterValue(n,"action")&&i(!1),u&&(i(!1),n=n.replace("isRedirect=1","isRedirect=0"),s(null,r),window.history.replaceState&&window.history.replaceState({},"",n)))}()}()