1function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _callSuper(e,t,o){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,o||[],_getPrototypeOf(e).constructor):t.apply(e,o))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function _iterableToArrayLimit(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,a,c=[],u=!0,s=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;u=!1}else for(;!(u=(n=i.call(o)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}"undefined"!=typeof document&&(!function(){function e(e,t){var t=t||{bubbles:!1,cancelable:!1,detail:null},o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}
1(),textZoomEvent=new function(){var n,r,i=!1;function a(e){return e*parseFloat(getComputedStyle(document.documentElement).fontSize)}this.resizeFactor=function(){return n.offsetWidth/textZoomEvent.unzoomPixelValue};function c(){return!document.dispatchEvent(r)}this.init=function(e){var t,o;i||(t=document.body&&document.body.firstChild,r=new CustomEvent("textzoom",{detail:{resizeFactor:this.resizeFactor}}),this.unzoomPixelValue=e||a(1),(n=document.createElement("IFRAME")).setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"),document.body.insertBefore(n,t),(e=n.style).width="1em",e.height="1px",e.borderWidth=0,e.position="absolute",e.overflow="hidden",e.whiteSpace="nowrap",e.margin="-1px",t=n.contentWindow,e='style="width:100%;height:100%;padding:0;margin:0;overflow:hidden;"',(o=(o=n.contentWindow||n.contentDocument||n.document).document||o).open(),o.write("<html "+e+"><body "+e+"></body></html>"),o.close(),t.addEventListener("resize",c),i=!0)}}),"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=textZoomEvent),"undefined"!=typeof InstallTrigger&&(window.addEventListener("load",function(){textZoomEvent.init(parseFloat(getComputedStyle(document.documentElement).fontSize))}),document.addEventListener("textzoom",function(){var e=document.querySelector("header"),t=document.querySelector("main");"fixed"===getComputedStyle(e).position&&t.setAttribute("style","margin-top: ".concat(Math.ceil(e.offsetTop+e.offsetHeight),"px"))})),window.addEventListener("onEmbeddedMessagingPreChatSubmitted",function(){var e=new GA4EventFactory("chat_start"),t=ChatFactory.createChatStart();e.create(t)}),window.addEventListener("onEmbeddedMessagingButtonClicked",function(){var e=new GA4EventFactory("chat_open"),t=ChatFactory.createChatOpen();e.create(t)});var textZoomEvent,cookieController=function(){var o=_createClass(function e(t,o){_classCallCheck(this,e),this.scope=t+"_"+o,this.get=function(e){t=this.scope;var t=new RegExp("(^| )"+(t+"_"+e)+"=([^;]+)"),e=document.cookie.match(t);return e?e[2]:null}});return{initialize:function(e,t){return new o(e,t)}}}(),CookieProvider=function(){return _createClass(function e(){_classCallCheck(this,e)},[{key:"getValueAsString",value:function(e){return e?new SnhuCookieUtil(e).getCookie():""}},{key:"getValueAsJson",value:function(e){return e?((e=new SnhuCookieUtil(e)).getCookieValues(),e.cookieValues):{}}},{key:"getCookieValue",value:function(e,t){return e?((e=new SnhuCookieUtil(e)).getCookieValues(),e.getCookieValue(t)):{}}},{key:"setCookie",value:function(e,t,o){new SnhuCookieUtil(e).setCookie(t,o)}},{key:"setCookieFromJson",value:function(e,t){var o;return!e||!t||(o="",Object.keys(t).forEach(function(e){o+=","+e+":"+t[e]}),o.length<0)?"":(this.setCookie(e,o.substring(1)),o.substring(1))}},{key:"checkCookie",value:function(e){return new SnhuCookieUtil(e).getCookie()}},{key:"deleteCookie",value:function(e){new SnhuCookieUtil(e).setCookie("",-1)}}])}(),ecommerceCookieController=("undefined"!=typeof exports&&(module.exports=CookieProvider),function(){return _createClass(function e(t,o,n,r,i){_classCallCheck(this,e),this.address=t,this.reqParams=o,this.cookieName=n,this.expiration=r,this.domain=i},[{key:"getCookie",value:function(){for(var e=this.cookieName+"=",t=decodeURIComponent(document.cookie).split(";"),o=0;o<t.length;o++){var n=t[o];if(0===(n=n.trim()).indexOf(e))return n.split("=")[1]}return""}},{key:"deleteCookie",value:function(){document.cookie=this.cookieName+"=; deleted=true;expires="+this.expiration.toUTCString()+";path=/; domain="+this.domain+";"}},{key:"runWithoutFetch",value:function(e){this.fetchedParams=e,this.setCookie(this.fetchedParams,this.domain)}},{key:"setCookie",value:function(e,t){var o="expires="+this.expiration.toUTCString(),t=""===t?t:"domain="+t+";";document.cookie=this.cookieName+"="+encodeURIComponent(e)+";"+o+";path=/;"+t}}])}()),SuperCookieController=("undefined"!=typeof exports&&(module.exports=ecommerceCookieController),function(){function o(e,t){_classCallCheck(this,o),this.url=e,this.cookieProvider=t||new CookieProvider}return _createClass(o,[{key:"getCookie",value:function(){var e,t=this.cookieProvider.getValueAsString(o.cookieName);return""===t?0:isNaN(t)?(e=function(){try{return JSON.parse(t)}catch(e){return{}}}()).urls?e.urls.length:0:Number.parseInt(t,10)}},{key:"setCookie",value:function(e){var t=new Date;t.setTime(t.getTime()+o.expiration),this.cookieProvider.setCookie(o.cookieName,e,t)}},{key:"buildCookie",value:function(){try{var e=this.getCookie()+1;this.setCookie(e)}catch(e){}}}],[{key:"expiration",get:function(){return 3456e4}},{key:"cookieName",get:function(){return"snhuSuperCookie"}}])}()),trackingController=("undefined"!=typeof exports&&(module.exports=SuperCookieController),window.addEventListener("load",function(){var e=window.location.href,t=new CookieProvider;new SuperCookieController(e,t).buildCookie(),null===sessionStorage.getItem("Landing_Page")&&sessionStorage.setItem("Landing_Page",e)}),function(){function i(e,t,o,n,r){_classCallCheck(this,i),this.address=decodeURI(e),this.reqParam
1s=t,this.cookieName=o,this.expiration=n,this.domain=r}return _createClass(i,[{key:"cookieIsUpToDate",value:function(e,t){return 0===Object.keys(e).length||0!==Object.keys(t).length&&Object.keys(e).length===Object.keys(t).length&&this.cookieParamsAreUpToDate(e,t)}},{key:"cookieParamsAreUpToDate",value:function(e,t){for(var o=0;o<this.reqParams.length;o++){var n=this.reqParams[o];if(e[n]!==t[n])return!1}return!0}},{key:"getCookie",value:function(){for(var e=this.cookieName+"=",t=decodeURIComponent(document.cookie).split(";"),o=0;o<t.length;o++){var n=t[o];if(0===(n=n.trim()).indexOf(e))return n.substring(e.indexOf("=")+1)}return""}},{key:"getQueryParams",value:function(){var e=this.address.toString().split("?"),t={};return 1<e.length&&e[1].split("&").forEach(function(e){e=e.split("=");t[e[0]]=e[1]}),t}},{key:"retrieveCookie",value:function(){var e,t=this.getCookie();return 1===this.reqParams.length?t:(e=[],""!==t.toString()&&(e=("?"===t.toString().charAt(0)?t.toString().substring(1):t.toString()).split(/&|=/)),i.arrayToParamObject(e))}},{key:"retrieveParameters",value:function(){for(var e=this.getQueryParams(),t="",o=0;o<this.reqParams.length;o++){var n=this.reqParams[o];void 0!==e[n]&&(t=t.concat(n,"=",e[n],"&"))}return t}},{key:"run",value:function(){this.fetchedParams=this.retrieveParameters(),this.cookieParams=this.retrieveCookie();var e=""!==this.fetchedParams?this.fetchedParams.split(/&|=/):[],e=i.arrayToParamObject(e);this.cookieIsUpToDate(e,this.cookieParams)||this.setCookie(this.fetchedParams,this.domain)}},{key:"runWithoutFetch",value:function(e){this.fetchedParams=e,this.cookieParams=this.retrieveCookie(),this.fetchedParams!==this.cookieParams&&this.setCookie(this.fetchedParams,this.domain)}},{key:"setCookie",value:function(e,t){var o;this.expiration<1?(o=""===t?t:"domain="+t+";",document.cookie="".concat(this.cookieName,"=").concat(encodeURIComponent(e),";path=/;").concat(o)):((o=new Date).setTime(o.getTime()+this.expiration),o="expires="+o.toUTCString(),t=""===t?t:"domain="+t+";",document.cookie="".concat(this.cookieName,"=").concat(encodeURIComponent(e),";").concat(o,";path=/;").concat(t))}}],[{key:"arrayToParamObject",value:function(e){var t={};if(0!==e.length)for(var o=0;o<e.length;o+=2)t[e[o]]=e[o+1];return t}},{key:"getReferrer",value:function(e){var t=document.referrer.split("/")[2];return""!==t&&void 0!==t&&"www.snhu.edu"!==t?"www.google.com"===t?e.refSource="google":t.endsWith("search.yahoo.com")?e.refSource="yahoo":"www.bing.com"===t?e.refSource="bing":"duckduckgo.com"===t?e.refSource="duckduckgo":(e.refSource=t,e.medium="referral"):(e.refSource="direct",e.medium="direct"),sessionStorage.setItem("Referrer_Value",e.refSource),e}}])}()),GA4EventFactory=("undefined"!=typeof exports&&(module.exports=trackingController),!function(){var u=2592e6,s="snhu.edu",l=new trackingController(window.location,["utm_source","utm_medium","utm_content","utm_campaign","utm_term","snhu_segment"],"GoogleString",u,s);l.run(),new trackingController(window.location,["nan_pid","ioguid","fbclid","venpubid","adxcel_clickid","searchedterm","pfsegment","matchtype","device","msclkid","gclid"],"SNHUGlobalTracking",u,s).run();new trackingController(window.location,["adkeyword","admatchtype","addevice","adcampaignid","adgroupid","adcampaignname","adgroupname","adquery","adnetwork","adlocationid","adplacement"],"SNHUAdTracking",u,s).run(),window.addEventListener("load",function(){var e=l.retrieveCookie(),t={referrerValue:sessionStorage.getItem("Referrer_Value"),refSource:"No Referrer",medium:"organic"};null===t.referrerValue&&(t=trackingController.getReferrer(t)),0===Object.keys(e).length&&(e="utm_source="+t.refSource+"&utm_medium="+t.medium+"&utm_content=01&utm_campaign=SNHUEDU",l.runWithoutFetch(e));var o,n,r,i,a,c;0<document.querySelectorAll("a[data-program-code]").length&&(o=new trackingController(window.location,["programid"],"SNHUProgramCode",u,s),n=new trackingController(window.location,["programid"],"SNHULocationCode",u,s),r=new trackingController(window.location,["programid"],"SNHUCategoryId",u,s),t=new trackingController(window.location,["programid"],"SNHUSubjectName",u,s),i=new trackingController(window.location,["programid"],"SNHUProgramId",u,s),a=new trackingController(window.location,["programid"],"SNHUProgramGroupId",u,s),e=new trackingController(window.location,["programid"],"SNHUProgramName",u,s),null!==(c=document.querySelector('a[data-parent-program="true"]'))&&(o.runWithoutFetch(c.getAttribute("data-program-code")),n.runWithoutFetch(c.getAttribute("data-location-code")),r.runWithoutFetch(c.getAttribute("data-category-id")),t.runWithoutFetch(c.getAttribute("data-subject")),i.runWithoutFetch(c.getAttribute("data-program-id")),a.runWithoutFetch(c.getAttribute("data-program-group-id")),e.runWithoutFetch(c.getAttribute("data-program-name"))),document.querySelectorAll('a[data-prepop="true"]:not([data-parent-program])').forEach(function(e){var t=e.getAttribute("data-program-code");e.addEventListener("click",function(){o.runWithoutFetch(t),n.runWithoutFetch(e.getAttribute("data-location-code")),r.runWithoutFetch(e.getAttribute("data-category-id")),i.runWithoutFetch(e.getAttribute("data-program-id")),a.runWithoutFetch(e.getAttribute("data-program-group-id"))})})),(-1<window.location.href.toLowerCase().indexOf("campus-majors")||-1<window.location.href.toLowerCase().indexOf("online-degrees"))&&(t=new trackingController(window.location,["tablocation"],"Feature_Tabs_InitialTab",u,s),e=-1<window.location.href.toLowerCase().indexOf("campus-majors")?"Campus":"Online",t.runWithoutFetch(e));["certificates","associate","bachelors","masters","doctoral","undergraduate","graduate"].some(function(e){return new RegExp("\\b"+e.toLowerCase()+"\\b").test(window.location.href.toLowerCase())})&&(c=new trackingController(window.location,["optimizelyTestDegreeLevel"],"RecentDegreeLevelVisited",u,s),t="",-1<(e=window.location.href.toLowerCase()).indexOf("/certificates")?t="certificates":-1<e.indexOf("/associate")?t="associate":-1<e.indexOf("/bachelors")?t="bachelors":-1<e.indexOf("/doctoral")?t="doctoral":-1<e.indexOf("/undergraduate")?(-1<e.indexOf("/bs-")||-1<e.indexOf("/ba-"))&&(t="bachelors"):(-1<e.indexOf("/masters")||-1<e.indexOf("/graduate"))&&(t="masters"),""!==t)&&c.runWithoutFetch(t),document.querySelectorAll("a[href='/program-finder']").forEach(function(r){r.addEventListener("click",function(){var e,t=new trackingController(window.location,["pfDegreeLevel"],"SNHUProgramFinder_DegreeLevel",null,s),o=new trackingController(window.location,["pfAreaOfStudy"],"SNHUProgramFinder_AreaOfStudy",null,s),n=new trackingController(window.location,["pfLocation"],"SNHUProgramFinder_Location",null,s);992<=window.innerWidth?n.runWithoutFetch("All"):n.runWithoutFetch("DED"),r.hasAttribute("data-pf-widget")?(n=document.getElementById("degree-level"),e=document.getElementById("category"),t.runWithoutFetch(n.value),o.runWithoutFetch(e.value)):(t.runWithoutFetch("All"),o.runWithoutFetch("All"))})})})}(),function(){return _createClass(function e(t){_classCallCheck(this,e),this.eventType=t},[{key:"create",value:function(e){var t=window.dataLayer||[],o={};
1this.eventType&&(o.event=this.eventType),t.push(_objectSpread(_objectSpread({},o),e))}}])}()),tabs=("undefined"!=typeof exports&&(module.exports=GA4EventFactory),function(){function a(e,t){var o="active",n="aria-selected";t.tab.classList.contains(o)||(e.forEach(function(e){e.tab.classList.remove(o),e.tab.setAttribute(n,!1),e.pane.classList.remove("show"),e.pane.classList.remove(o)}),t.tab.classList.add(o),t.tab.setAttribute(n,!0),t.pane.classList.add("show"),t.pane.classList.add(o))}return{init:function(e){var o=cookieController.initialize("Feature","Tabs").get("InitialTab"),n=new Object,t=([].push(n),n.tabsContainer=e,n.nodes=[],e.querySelectorAll('.nav.nav-tabs a[role="tab"]')),r=e.querySelectorAll(".tab-content .tab-pane"),i=(t.forEach(function(e,t){t=r[t];n.nodes.push({tab:e,pane:t})}),!1);n.nodes.forEach(function(t){t.tab.addEventListener("click",function(e){return e.preventDefault(),a(n.nodes,t),!1}),"True"===t.tab.getAttribute("data-selector")&&(a(n.nodes,t),i=!0),o&&t.tab.dataset.tabKey===o&&!i&&(a(n.nodes,t),i=!0)}),i||a(n.nodes,n.nodes[0])}}}),wrappingTableController=("undefined"!=typeof exports&&(module.exports=tabs),function(){function c(){}return c.prototype.getHasRowClick=function(e){return e.classList.contains("wrap-table-click-row")},c.prototype.getInstigator=function(e,t,o){return o?t:e},c.prototype.getCopyingText=function(e){return!!(e&&document.getSelection&&0<window.getSelection().toString().length)},c.prototype.getMparent=function(e,t){return(t?e:e.parentElement).parentElement},c.prototype.getActionCol=function(e,t){return t?e.querySelectorAll("tbody > tr td "):e.querySelectorAll("tbody > tr > td:first-child > span:first-child")},c.prototype.openRow=function(e,t){e.classList.add("open"),t.setAttribute("aria-expanded",!0)},c.prototype.closeRow=function(e,t){e.classList.remove("open"),t.setAttribute("aria-expanded",!1)},c.prototype.addRows=function(e,t){for(var o=new Array,n=0,r=0,i=e.rowIndex,a=0;a<e.cells.length;a++)"none"===window.getComputedStyle(e.cells[a]).display||e.cells[a].classList.contains("wrap-table-hiddenOnLoad")?(r++,o.push(e.cells[a])):n++;e.setAttribute("data-newrows",r);for(var c=0;c<o.length;c++){var u=t.insertRow(i+c+1).insertCell(0);u.classList.add("wrap-table-wrapped-row-cell"),u.colSpan=n,u.innerHTML=o[c].innerHTML}},c.prototype.removeRows=function(e,t){if(e.hasAttribute("data-newrows"))for(var o=Number(e.getAttribute("data-newrows")),n=e.rowIndex;0<o;)t.deleteRow(n+o),o--},c.prototype.addOpenOnLoad=function(e){var n=this,r=["Spacebar","Enter","ArrowDown","Down"],i=["Spacebar","Enter","ArrowUp","Up"],a=e;e.querySelectorAll(".wrap-expand-table thead tr th").forEach(function(t){var o=a.querySelectorAll("tbody > tr.wrap-expand-cells");o.forEach(function(e){e.setAttribute("tabindex","-1")}),t.addEventListener("click",function(){a.classList.contains("open")?(n.closeRow(a,t),o.forEach(function(e){e.setAttribute("tabindex","-1")})):(n.openRow(a,t),o.forEach(function(e){e.setAttribute("tabindex","0")}))}),t.addEventListener("keydown",function(e){a.classList.contains("open")&&(0<=i.indexOf(e.key)||"Space"===e.code)?(e.preventDefault(),n.closeRow(a,t),o.forEach(function(e){e.setAttribute("tabindex","-1")})):(0<=r.indexOf(e.key)||"Space"===e.code)&&(e.preventDefault(),n.openRow(a,t),o.forEach(function(e){e.setAttribute("tabindex","0")}))})})},c.prototype.opencloserow=function(e,t,o){var n=this.getMparent(e,t),r=this.getInstigator(e,n,t),e=this.getCopyingText(e,t),t=n.parentNode.parentNode;e||(n.classList.contains("open")&&("click"===o.type||"keydown"===o.type&&(0<=["Spacebar","Enter","ArrowUp","Up"].indexOf(o.key)||"Space"===o.code))?(this.closeRow(n,r),this.removeRows(n,t)):(navigator.userAgent.match(/Trident/)&&this.addRows(n,t),this.openRow(n,r)))},c.prototype.addClickEvents=function(e){for(var o=this.getHasRowClick(e),n=this.getActionCol(e,o),r=["Spacebar","Enter","ArrowDown","Down","ArrowUp","Up"],i="Space",a=0;a<n.length;a++)!function(){var t=n[a];t.addEventListener("click",function(e){c.prototype.opencloserow(t,o,e)}),t.closest("tr.wrap-expand-cells")&&t.closest("tr.wrap-expand-cells").addEventListener("keydown",function(e){(0<=r.indexOf(e.key)||e.code===i)&&(e.preventDefault(),c.prototype.opencloserow(t,o,e))}),t.addEventListener("keydown",function(e){(0<=r.indexOf(e.key)||e.code===i)&&(e.preventDefault(),c.prototype.opencloserow(t,o,e))})}()},{wrappingTable:c,init:function(e){c.prototype.addClickEvents(e),c.prototype.addOpenOnLoad(e)}}}),MobileTableCellTransform=("undefined"!=typeof exports&&(module.exports=wrappingTableController),function(){function t(e){_classCallCheck(this,t),this.element=e,this.type=e.getAttribute("data-mobile_transform")||"",this.baseValue=e.innerText}return _createClass(t,[{key:"transformDesktop",value:function(){this.element.parentNode.parentNode.parentNode.classList.contains("small")?this.transformMobile():this.element.innerText=this.baseValue}},{key:"transformMobile",value:function(){var e="",e="date"===this.type.toLowerCase()?t.transformTypeDate(this.baseValue):this.baseValue;this.element.innerText=e}}],[{key:"transformTypeDate",value:function(e){var t=new Date(e);return isNaN(t.getTime())?e:(e=["Jan.","Feb.","Mar.","Apr.","May.","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."][t.getMonth()],"".concat(e," ").concat(t.getDate()," ").concat(t.getFullYear()))}}])}()),accordion=(!function(){var e,t,o=document.querySelectorAll("table td[data-mobile_transform]"),n=[];
1o.length<=0||(o.forEach(function(e){n.push(new MobileTableCellTransform(e))}),e=function(){n.forEach(function(e){e.transformMobile()})},t=function(){n.forEach(function(e){e.transformDesktop()})},(window.innerWidth<960?e:t)(),window.addEventListener("resize",function(){(window.innerWidth<960?e:t)()}))}(),"undefined"!=typeof exports&&(module.exports=MobileTableCellTransform),function(){return{init:function(n){var e=n.querySelectorAll(".accordion-trigger"),r=(e.forEach(function(e){var t="true"===e.getAttribute("aria-expanded"),e=e.parentNode.parentNode.querySelector(".accordion-panel");t?e.removeAttribute("hidden"):e.setAttribute("hidden","")}),n.hasAttribute("data-allow-multiple")),i=r||n.hasAttribute("data-allow-toggle"),a=(n.addEventListener("click",function(e){var t,o,e=e.target;e.classList.contains("accordion-trigger")&&(t="true"===e.getAttribute("aria-expanded"),o=n.querySelector('[aria-expanded="true"]'),!r&&o&&o!==e&&(o.setAttribute("aria-expanded","false"),document.getElementById(o.getAttribute("aria-controls")).setAttribute("hidden",""),i||o.removeAttribute("aria-disabled")),t?i&&t&&(e.setAttribute("aria-expanded","false"),document.getElementById(e.getAttribute("aria-controls")).setAttribute("hidden","")):(e.setAttribute("aria-expanded","true"),document.getElementById(e.getAttribute("aria-controls")).removeAttribute("hidden"),i||e.setAttribute("aria-disabled","true")))}),Array.prototype.slice.call(e));n.addEventListener("keydown",function(e){var t=e.target,o=e.key;if(t.classList.contains("accordion-trigger"))if(o.match(/Down|ArrowDown|Up|ArrowUp/)){var t=a.indexOf(t),n=o.match(/ArrowDown|Down/)?1:-1,r=a.length;a[(t+r+n)%r].focus(),e.preventDefault()}else if(o.match(/End|Home/)){switch(o){case"Home":a[0].focus();break;case"End":a[a.length-1].focus()}e.preventDefault()}}),n.querySelectorAll(".accordion-trigger").forEach(function(e){e.addEventListener("focus",function(){n.classList.add("focus")}),e.addEventListener("blur",function(){n.classList.remove("focus")})})}}}),AlertController=("undefined"!=typeof exports&&(module.exports=accordion),function(){return _createClass(function e(t,o){_classCallCheck(this,e),this.alerts=o,this.storageUtil=t||new SnhuStorageUtil,this.localStorageKey="alerts.dismissedIds",this.dismissedIdsValue=this.cleanDismissedIds()},[{key:"getDismissibles",value:function(){return document.querySelectorAll(".alert .alert-dismissible")}},{key:"cleanDismissedIds",value:function(){var o=this.storageUtil.getJSONItem(this.localStorageKey);return o&&0!==Object.keys(o).length?(Object.keys(o).forEach(function(e){var t=o[e];t&&864e5<Date.now()-t&&delete o[e]}),this.storageUtil.setJSONItem(this.localStorageKey,o),o):{}}},{key:"showAlert",value:function(e){this.dismissedIdsValue[e.id]||e.classList.remove("dismissed")}},{key:"closeAlert",value:function(e){e.classList.add("dismissed"),this.dismissedIdsValue[e.id]=Date.now(),this.storageUtil.setJSONItem(this.localStorageKey,this.dismissedIdsValue)}},{key:"init",value:function(){var o=this;this.alerts.forEach(function(e){o.showAlert(e)}
1),this.getDismissibles().forEach(function(e){var t=e.closest(".alert");t.classList.contains("dismissed")||e.addEventListener("click",function(){o.closeAlert(t)})})}}],[{key:"getAlerts",value:function(){return document.querySelectorAll(".alert")}}])}()),ButtonController=("undefined"!=typeof exports&&(module.exports=AlertController),window.addEventListener("load",function(){var e=AlertController.getAlerts();0!==e.length&&new AlertController(new SnhuStorageUtil,e).init()}),function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"allAriaButtons",get:function(){return document.querySelectorAll('[role*="button"]')}},{key:"addKeyListeners",value:function(){e.allAriaButtons.forEach(function(o){var n=o.href||"";o.addEventListener("keydown",function(e){var t=["Spacebar","Space"," ","Enter"];(0<=t.indexOf(e.key)||0<=t.indexOf(e.code))&&(e.preventDefault(),(t=n.match(/#[a-z-]+/gi))?(t=document.getElementById(t[0].substring(1)),window.scrollTo(0,t.offsetTop),t.focus()):o.click())})})}}])}()),carousel=(window.addEventListener("load",function(){ButtonController.addKeyListeners()}),function(){function n(e){var t;e.moving||((t=e).moving=!0,setTimeout(function(){t.moving=!1},500),e.carouselItems[e.lastSlide].classList.remove("active"),e.carouselItems[e.activeSlide].classList.add("active"))}function r(e,t,o){null!==e&&(e.disabled=0===o.activeSlide),null!==t&&(t.disabled=o.activeSlide===o.carouselItems.length-1)}function i(e,t){t.preventDefault(),e.moving||(e.lastSlide=e.activeSlide,e.activeSlide++,r(t.target.previousElementSibling,t.target,e),n(e))}function a(e,t){var o;t.preventDefault(),e.moving||(e.lastSlide=e.activeSlide,e.activeSlide--,o=e.carouselItems.length-2,0===e.activeSlide?t.target.disabled=!0:e.activeSlide===o&&(t.target.nextElementSibling.disabled=!1),r(t.target,t.target.nextElementSibling,e),n(e))}function o(o,e){o.carouselItems.forEach(function(e,t){e.setAttribute("aria-label",t+1+" of "+o.carouselItems.length),e.classList.remove("active")}),o.carouselItems[o.activeSlide].classList.add("active");var t,n,r=e.querySelector(".carousel-arrows button.prev-icon");null!==r&&(r.disabled=!0),t=o,e=(r=e).querySelector("button.next-icon"),r=r.querySelector("button.prev-icon"),n="Spacebar",null!==e&&(e.addEventListener("click",function(e){i(t,e)}),e.addEventListener("keydown",function(e){e.key!==n&&"Space"!==e.code||i(t,e)})),null!==r&&(r.addEventListener("click",function(e){a(t,e)}),r.addEventListener("keydown",function(e){e.key!==n&&"Space"!==e.code||a(t,e)}))}return{init:function(e){var t=new Object;t.moving=!1,t.activeSlide=0,t.lastSlide=-1,t.carouselItems=e.querySelectorAll(".carousel-slide"),o(t,e)},moveNext:i,movePrev:a}}),VideoListener=("undefined"!=typeof exports&&(module.exports=carousel),function(){return _createClass(function e(t){_classCallCheck(this,e),this.loadVideo=this.loadVideo.bind(this),this.scope=t||document},[{key:"loadVideo",value:function(){var e,t=this.scope.querySelector(".ytiframe");t&&(e=t.getAttribute("data-src"))&&(t.src=e,t.style.opacity=1)}}])}()),ModalController=(window.addEventListener("load",function(){var e=document.querySelectorAll(".ytplaceholder");e&&e.forEach(function(e){new VideoListener(e).loadVideo()})}),function(){function o(t){t.backdrop.classList.add("show"),t.modal.classList.add("show"),t.modal.tabIndex="0",document.querySelector("body").classList.add("modal-open"),t.modalCloseBtn.focus(),t.modalCloseBtn.addEventListener("keydown",function(e){a(e,t)}),t.lastFocusable.addEventListener("keydown",function(e){c(e,t.modalCloseBtn)}),document.addEventListener("keydown",function(e){r(e,t)}),document.addEventListener("click",function(e){i(e,t)}),t.modalCloseBtn.addEventListener("click",function(){n(t)})}function n(t){t.backdrop.classList.remove("show"),t.modal.classList.remove("show"),t.modal.tabIndex="-1",document.querySelector("body").classList.remove("modal-open"),t.modalCloseBtn.removeEventListener("keydown",function(e){a(e,t)}),t.lastFocusable.removeEventListener("keydown",function(e){c(e,t.modalCloseBtn)}),document.removeEventListener("keydown",function(e){r(e,t)}),document.removeEventListener("click",function(e){i(e,t)}),t.modalCloseBtn.removeEventListener("click",function(){n(t)})}function r(e,t){e=e.key;"Escape"!==e&&"Esc"!==e||n(t)}function i(e,t){e.target.href&&-1!==e.target.href.indexOf(t.modal.id)||null!==e.target.closest(".modal-content")||n(t)}function a(e,t){var o=e.key;"Tab"===o&&e.shiftKey?(e.preventDefault(),t.lastFocusable.focus()):"Enter"===o&&n(t)}function c(e,t){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),t.focus())}return{init:function(e){var t=new Object,e=(t.modal=e,t.backdrop=e.nextElementSibling,document.querySelectorAll("#"+t.modal.id+" [href], #"+t.modal.id+" :enabled"));t.modalCloseBtn=e[0],t.lastFocusable=e[e.length-1],0<(e=document.querySelectorAll('[href="#'+t.modal.id+'"]')).length&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o(t)})})},openModal:o,closeModal:n,escapeKeyCloseModal:r,offClickCloseModal:i,modalCloseBtnKeyHandler:a,lastFocusableTabHandler:c}}),VideoHeroController=("undefined"!=typeof exports&&(module.exports=ModalController),function(){return _createClass(function e(){_classCallCheck(this,e),this.video=document.querySelector(".masthead-video video"),this.playPauseBtn=document.querySelector(".play-pause-btn"),this.playSVG=document.querySelector(".play-pause-btn .play-svg"),this.pauseSVG=document.querySelector(".play-pause-btn .pause-svg"),this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.isPlaying=!0,this.init()},[{key:"init",value:function(){this.video&&this.playPauseBtn&&(this.setupEventListeners(),this.setupVideoEvents(),this.prefersReducedMotion)&&this.togglePlayPause()}},{key:"setupEventListeners",value:function(){var t=this;this.playPauseBtn.addEventListener("click",function(){t.togglePlayPause()}),this.playPauseBtn.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.togglePlayPause())}),this.video.addEventListener("click",function(){t.togglePlayPause()})}},{key:"setupVideoEvents",value:function(){var e=this;this.video.addEventListener("play",function(){e.isPlaying=!0,e.updateButtonState()}),this.video.addEventListener("pause",function(){e.isPlaying=!1,e.updateButtonState()}),this.video.addEventListener("ended",function(){e.isPlaying=!1,e.updateButtonState()}),this.video.addEventListener("error",function(){e.hideVideoControls()})}},{key:"togglePlayPause",value:function(){this.isPlaying?this.pauseVideo():this.playVideo()}},{key:"playVideo",value:function(){var e,t=this;this.video&&void 0!==(e=this.video.play())&&e.then(function(){t.isPlaying=!0,t.updateButtonState()}).catch(function(){t.isPlaying=!1,t.updateButtonState()})}},{key:"pauseVideo",value:function(){this.video&&(this.video.pause(),this.isPlaying=!1,this.updateButtonState())}},{key:"updateButtonState",value:function(){this.playPauseBtn&&(this.isPlaying?(this.pauseSVG.classList.remove("d-none"),this.playSVG.classList.add("d-none"),this.playPauseBtn.setAttribute("aria-label","Video pause button")):(this.pauseSVG.classList.add("d-none"),this.playSVG.classList.remove("d-none"),this.playPauseBtn.setAttribute("aria-label","Video play button")))}},{key:"hideVideoControls",value:function(){this.playPauseBtn&&(this.playPauseBtn.style.display="none")}}])}()),SnhuCookieUtil=(document.addEventListener("DOMContentLoaded",function(){window.videoController=new VideoHeroController}),document.addEventListener("visibilitychange",function(){var e=window.videoController;document.hidden&&e&&e.isPlaying&&e.pauseVideo()}),function(){return _createClass(function e(t){_classCallCheck(this,e),this.name=t,this.domain="snhu.edu",this.cookieValues={}},[{key:"getCookieValues",value:function(){var e=this.getCookie(),t={},o=e.split(",");
1o.length<=1?t[this.name]=e:o.forEach(function(e){e=e.split(":");t[e[0]]=e[1]}),this.cookieValues=t}},{key:"getCookieValue",value:function(e){return Object.keys(this.cookieValues).includes(e)?this.cookieValues[e]:""}},{key:"getCookie",value:function(){for(var e=this.name+"=",t=decodeURIComponent(document.cookie).split(";"),o=0;o<t.length;o++){var n=t[o];if(0===(n=n.trim()).indexOf(e))return n.substring(e.indexOf("=")+1)}return""}},{key:"setCookie",value:function(e,t){var o,n=""===this.domain?this.domain:"domain="+this.domain+";";void 0===t?document.cookie="".concat(this.name,"=").concat(encodeURIComponent(e),";path=/;").concat(n):((o=new Date).setDate(o.getDate()+t),t="expires="+o.toUTCString(),document.cookie="".concat(this.name,"=").concat(encodeURIComponent(e),";").concat(t,";path=/;").concat(n))}}])}()),SnhuFetchUtil=("undefined"!=typeof exports&&(module.exports=SnhuCookieUtil),function(){function o(e){_classCallCheck(this,o),this.requestSettings=_objectSpread({mode:"cors",cache:"no-cache",defaultTimeout:1e4,headers:{"X-Requested-With":"XMLHttpRequest"}},e)}return _createClass(o,[{key:"get",value:function(e){var t=_objectSpread(_objectSpread({},this.requestSettings),{},{method:"GET"});return o.timeoutPromise(this.requestSettings.defaultTimeout,fetch(e,t).then(o.handleResponse))}},{key:"post",value:function(e,t){t=_objectSpread(_objectSpread({},this.requestSettings),{},{method:"POST",body:t});return o.timeoutPromise(this.requestSettings.defaultTimeout,fetch(e,t).then(o.handleResponse))}},{key:"put",value:function(e,t){t=_objectSpread(_objectSpread({},this.requestSettings),{},{method:"PUT",body:t});return o.timeoutPromise(this.requestSettings.defaultTimeout,fetch(e,t).then(o.handleResponse))}}],[{key:"handleResponse",value:function(o){return o.text().then(function(e){if(!o.ok)return Promise.reject({status:o.status});if(!e)return Promise.reject("No response from server.");var t={};try{t=JSON.parse(e)}catch(e){return Promise.reject("Invalid response from server.")}return t})}},{key:"timeoutPromise",value:function(e,r){return new Promise(function(t,o){var n=setTimeout(function(){o(new Error("Fetch default timeout (".concat(e," ms) reached.")))},e);r.then(function(e){clearTimeout(n),t(e)},function(e){clearTimeout(n),o(e)})})}}])}()),SnhuStorageUtil=("undefined"!=typeof exports&&(module.exports=SnhuFetchUtil),function(){return _createClass(function e(t){_classCallCheck(this,e),this.storage="session"===t?window.sessionStorage:window.localStorage},[{key:"setItem",value:function(e,t){try{this.storage.setItem(e,t)}catch(e){return!1}return!0}},{key:"getItem",value:function(e){try{return this.storage.getItem(e)}catch(e){return!1}}},{key:"removeItem",value:function(e){try{return this.storage.removeItem(e),!0}catch(e){return!1}}},{key:"clear",value:function(){try{return this.storage.clear(),!0}catch(e){return!1}}},{key:"key",value:function(e){try{return this.storage.key(e)}catch(e){return!1}}},{key:"setJSONItem",value:function(e,t){t=JSON.stringify(t);return this.setItem(e,t)}},{key:"getJSONItem",value:function(e){e=this.getItem(e);return!1===e?{}:JSON.parse(e)}}])}()),AutomatedTestCookie=("undefined"!=typeof exports&&(module.exports=SnhuStorageUtil),function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"setAutomatedTestCookie",value:function(){var e="snhuAutomatedTest",t=new CookieProvider;t.checkCookie(e)||t.setCookie(e,"1")}},{key:"checkCampaign",value:function(e){return!!e.has("utm_campaign")&&e.get("utm_campaign").toLowerCase().includes("automatedtest")}},{key:"checkUrlForTest",value:function(){var e=new URLSearchParams(window.location.search);return!(!e.has("automatedTest")&&!0!==t.checkCampaign(e))}}])}()),chatBoxTrackingParams=("undefined"!=typeof exports&&(module.exports=AutomatedTestCookie),window.addEventListener("load",function(){AutomatedTestCookie.checkUrlForTest()&&AutomatedTestCookie.setAutomatedTestCookie()}),function(){function i(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),n=0;n<o.length;n++){var r=o[n];if(0===(r=r.trim()).indexOf(t))return r.substring(t.indexOf("=")+1)}return""}return{getCookieValues:function(){if(0<document.cookie.length){var e=i("GoogleString"),t=[],e=(""!==e.toString()&&(t=("?"===e.toString().charAt(0)?e.toString().substring(1):e.toString()).split(/&|=/)),i("_ga")),e=(""!==e&&t.push("Google_ID__c",e),null===sessionStorage.getItem("Referrer_Value")?""!==(e=document.referrer.split("/")[2])&&void 0!==e&&"www.snhu.edu"!==e?(e="www.google.com"===e?"google":e.endsWith("search.yahoo.com")?"yahoo":"www.bing.com"===e?"bing":"duckduckgo.com"===e?"duckduckgo":e,t.push("Referrer",e)):t.push("Referrer","direct"):t.push("Referrer",sessionStorage.getItem("Referrer_Value")),sessionStorage.getItem("Landing_Page")),o=(null!==e?t.pu
1sh("Landing_Page",e):t.push("Landing_Page",window.location.href),t),n={};if(0!==o.length)for(var r=0;r<o.length;r+=2)n[o[r]]=o[r+1];return n}return""}}}()),EcommerceCookie=("undefined"!=typeof exports&&(module.exports=chatBoxTrackingParams),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"setEcommerceCookie",value:function(r){return new Promise(function(e){var t,o,n;0<r.leadid&&(t=["leadid","conversionid","stagenum","formsource","academiclevel","programcode","location"],(o=new Date).setDate(o.getDate()+1),o=new ecommerceCookieController(window.location,t,"snhuEconTransation",o,"snhu.edu"),n="",t.forEach(function(e){"location"!==e&&(n+="".concat(e,":").concat(r[e],","))}),n+="location:".concat("ded"===r.location?"online":"campus"),o.runWithoutFetch(n)),e(r)})}}])}()),FormSubmitCookie=("undefined"!=typeof exports&&(module.exports=EcommerceCookie),function(){function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:"getProgramName",value:function(e){var e=e.getAttribute("data-tyc-pname");return e?(e=document.getElementById(e),o.getSelectedIndexText(e)):""}},{key:"getAreaOfStudy",value:function(e){e=e.querySelector('[data-form-field="areaOfStudy"]');return e?o.getSelectedIndexText(e):""}},{key:"getEnrollmentTerm",value:function(e,t){e=e.querySelector('[data-form-field="startTerm"]');return e&&"campus"===t?o.getSelectedIndexText(e):""}},{key:"getSelectedIndexText",value:function(e){return e?e.options[e.selectedIndex].text:""}},{key:"getValueIfItExists",value:function(e,t){e=e.querySelector(t);return e?e.value:""}},{key:"setFormSubmitCookie",value:function(v,k){return new Promise(function(e){var t=new CookieProvider,o=k.experienceachievement,n=k.fieldofstudy,r="ded"===k.location?"online":"campus",i=k.enrollmentterm,a=k.academiclevel,c=k.programcode,u=k.fieldofstudycode,s=k.formsource,l=k.isinternationalstudent,d=k.militarystatus||"",f=k.militarybranch||"",m=k.militaryaffiliation?k.militaryaffiliation.toLowerCase():"",h=k.zipcode,p=k.leadid,g=new FormUtilities(v),y=g.getFormType(),g=g.isPrepopulated(),o="programName:".concat(o,",programCode:").concat(c,",categoryId:").concat(u,",formType:").concat(y,",prePopulated:").concat(g,",formSource:").concat(s,",enrollmentTerm:").concat(i,",programAffiliation:").concat(r,",degreeLevel:").concat(a,",areaOfStudy:").concat(n,",leadId:").concat(p,",isIntlStudent:").concat(l,",militaryStatus:").concat(d,",militaryBranch:").concat(f,",militaryAffiliation:").concat(m,",zipCode:").concat(h);t.setCookie("formSubmitCookie",o),e(k)})}}])}()),SnhuQualityCookie=("undefined"!=typeof exports&&(module.exports=FormSubmitCookie),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"setSnhuQualityCookie",value:function(n){return new Promise(function(e){var t,o;0<n.leadid&&(t=new CookieProvider,o="true",void 0!==n.quality&&null!==n.quality&&(o=n.quality),t.setCookie("snhuQuality",o,30)),e(n)})}}])}()),ThankYouCookie=("undefined"!=typeof exports&&(module.exports=SnhuQualityCookie),function(){function s(){_classCallCheck(this,s)}return _createClass(s,null,[{key:"getFirstName",value:function(e){var t=e.getAttribute("data-tyc-fname");return t?e[t].value:""}},{key:"getLastName",value:function(e){var t=e.getAttribute("data-tyc-lname");return t?e[t].value:""}},{key:"getProgramName",value:function(e){var e=e.getAttribute("data-tyc-pname");return e?(e=document.getElementById(e)).options[e.selectedIndex].text:""}},{key:"storeThankYouValues",value:function(c,u){return new Promise(function(e){var t,o,n,r,i,a;c.hasAttribute("data-tyc-fname")&&c.hasAttribute("data-tyc-lname")&&c.hasAttribute("data-tyc-pname")&&(t=new SnhuCookieUtil("snhuThankYouCookie"),a=s.getFirstName(c),o=s.getLastName(c),n=s.getProgramName(c),r=u.encryptedleadid,i=u.responsetimeoutinsecond,a="firstname:".concat(encodeURI(a),",lastname:").concat(encodeURI(o),",programname:").concat(n,",encryptedleadid:").concat(r,",responsetimeoutinsecond:").concat(i),t.setCookie(a)),e(u)})}}])}()),externalFeedHandling=("undefined"!=typeof exports&&(module.exports=ThankYouCookie),function(){function n(){}function c(e,t){e=e.querySelector(t);return null===e?"":e.textContent.trim()}return n.prototype.fetchExternalFeeds=function(t){var e,o;return null!=t&&(e=t.querySelector(".card-group-body"),o=e.querySelector("*:first-child").cloneNode(!0),e.innerHTML="",fetch(t.dataset.feedurl,{method:"GET",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/text; charset=utf-8"}}).then(function(e){return e.ok?e.text():""}).then(function(e){return""!==e?(new window.DOMParser).parseFromString(e,"text/xml"):{error:!0}}).then(function(e){return n.prototype.buildExternalFeedCards(t,e,o)}),!0)},n.prototype.buildExternalFeedCards=function(i,e,a){e.error||((e=Array.prototype.slice.call(e.querySelectorAll("item"))).length=e.length>i.dataset.articlenumber?i.dataset.articlenumber:e.length,e.forEach(function(e){var t=c(e,"pubDate")||c(e,"date"),t=new Date(t),o=a.cloneNode(!0),n=o.querySelector(".card-content a"),r=c(e,"link");""!==r&&(n.href=r),n.innerText=c(e,"title"),o.querySelector(".card-content .card-text").innerText=(r=t,Number.isNaN(r.getTime())?"":(n=(r=_slicedToArray(new Intl.DateTimeFormat("en",{year:"numeric",month:"long",day:"2-digit"}).formatToParts(r),5))[0].value,e=r[2].value,r=r[4].value,"".concat(n," ").concat(e,", ").concat(r))),i.querySelector(".card-group-body").appendChild(o)}))},{externalFeedHandling:n,init:function(e){n.prototype.fetchExternalFeeds(e)}}}),inqAppFormCommon=("undefined"!=typeof exports&&(module.exports=externalFeedHandling),function(){function t(e,t){var e=e.Text.toUpperCase(),t=t.Text.toUpperCase(),o=0;return t<e?o=1:e<t&&(o=-1),o}function n(e,t){var e=""===e.SortOrder||isNaN(e.SortOrder)?9999:Number(e.SortOrder),t=""===t.SortOrder||isNaN(t.SortOrder)?9999:Number(t.SortOrder),o=0;return t<e?o=1:e<t&&(o=-1),o}return{textCompare:t,sortOrderCompare:n,getPageData:function(e){var t=[],e=document.getElementById(e);return t=e&&""!==e.innerText?JSON.parse(e.innerText):t}
1,getLocation:function(e){var o=[];return e.forEach(function(t){o.find(function(e){return e.Value===t.Location.Value})||o.push({Value:t.Location.Value,Text:t.Location.Text,SortOrder:t.Location.SortOrder})}),o.sort(n)},getNursingPrograms:function(e){var o=[];return e.forEach(function(t){o.find(function(e){return e.Value===t.Value})||"Nursing"!==t.Category.Text||o.push({Value:t.ExperienceAchievement.Value,Text:t.ExperienceAchievement.Text,ProgramGroup:t.ProgramGroup.Text})}),o},getPreviousCollegeCountry:function(e){var o=[];return e.forEach(function(e){var t=""===e.Country?"United States":e.Country;o.find(function(e){return e.Text===t})||o.push({Value:t,Text:t})}),o.sort(t)},defaultSelectedValue:function(e,t){if(0<e.length){if(e.find(function(e){return e.Value===t}))return t;if(1===e.length)return e[0].Value}return""},getSelectedValue:function(e){var t="";return""!==e&&void 0!==e&&e.forEach(function(e){!0===e.IsSelected&&(t=e.Value)}),t},defaultCountryUS:function(e){if(0<e.length){e=e.find(function(e){return"227"===e.Value||"UNITED STATES"===e.Value.toUpperCase()});if(e)return e.Value}return""},getDropdownText:function(e,t){var o="";return o=0<e.length&&(e=e.find(function(e){return e.Value===t}))?e.Text:o},setShowState:function(e){return""===e||"227"===e||"United States"===e},checkIfNursingCategory:function(e,t){var o=!1,n=e;return t.forEach(function(e){e.Value===n&&(o=!0)}),o},checkIfCampusLocation:function(e){return"MAN"===e?!0:!1},setShowMilitary:function(e){return"NO"!==e.toUpperCase()&&""!==e.toUpperCase()},getPreviousCollegeSchools:function(e,o,n){var r=[];return e.forEach(function(t){t.Country!==o||t.State!==n||r.find(function(e){return e.Value===t.Code})||r.push({Value:t.CEEBCode,Text:t.SchoolName})}),r.sort(t),r.push({Value:"999999",Text:"My school is not listed"}),r},validatePreviousCollegeSchool:function(e){return""===e?!0:!1},validatePreviousCollegeYear:function(e){var t=!1,o="",n=(new Date).getFullYear()+10;return e<1970&&(t=!0,o="Year must be greater than or equal to 1970."),n<e&&(t=!0,o="Year must be less than or equal to "+n+"."),{Error:t,Message:o}},duplicatePreviousCollege:function(n,r,e){var i=!1;return e.forEach(function(e){var t=e.GradYear.toString(),o=r.toString();e.CEEBCode===n&&t===o&&(i=!0)}),i},getPreviousCollectionSelectionsText:function(e){return JSON.stringify(e)},removePreviousCollege:function(o,n,e){var r=e;return r.forEach(function(e,t){r[t].CEEBCode===o&&r[t].GradYear===n&&r.splice(t,1)}),r},termRequired:function(e,t){null!==(t=window.document.getElementById(t))&&(e?t.hasAttribute("required")||(t.required=!0):t.required=!1)},removeDuplicates:function(e){var o=[];return e.forEach(function(t){o.find(function(e){return e.Value===t.Value})||o.push(t)}),o},toggleCountryFields:function(e,t,o){e=!e,null!==t&&(t.disabled=e,t.required=!e),null!==o&&(o.disabled=!e)},togglePrevCollegeFields:function(e,t){null!==t&&(t.disabled=!e)},toggleMilitaryFields:function(e,t,o){e=!e,null!==t&&(t.disabled=e),null!==o&&(o.disabled=e)},togglePrevHighSchoolFields:function(e,t){null!==t&&(t.disabled=!e)}}}()),NavigationController=("undefined"!=typeof exports&&(module.exports=inqAppFormCommon),window.addEventListener("load",function(){var e=document.getElementById("open-ai-chat");e&&e.addEventListener("click",function(){var e=new GA4EventFactory("AI_chat_open"),t=AiChatFactory.createAiChatOpen();e.create(t)})}),function(){return _createClass(function e(t){_classCallCheck(this,e),this.ga4EventFactory=t||new GA4EventFactory("navigation_click")},[{key:"bindNavClickListener",value:function(t,o){var n=this;t.onclick=function(){var e=NavigationFactory.createClickEventData(o,t.text);n.ga4EventFactory.create(e)}}},{key:"bindMySnhuListener",value:function(e){var t=this;e.onclick=function(){var e=NavigationFactory.createMySnhuClickEventData();t.ga4EventFactory.create(e)}}}])}()),PageController=(window.addEventListener("load",function(){var t,o=new NavigationController,e=document.getElementsByTagName("header")[0],e=(e&&e.querySelectorAll("nav a").forEach(function(e){o.bindNavClickListener(e,"header")}),document.getElementsByTagName("footer")[0]),e=(e&&e.querySelectorAll("nav a").forEach(function(e){o.bindNavClickListener(e,"footer")}),document.getElementsByClassName("related-links")),e=(e.length&&Array.from(e).forEach(function(e){e.querySelectorAll("nav a").forEach(function(e){o.bindNavClickListener(e,"aside")})}),document.getElementsByClassName("breadcrumb")[0]),e=(e&&e.querySelectorAll(".breadcrumb-item a").forEach(function(e){o.bindNavClickListener(e,"breadcrumb")}),document.querySelectorAll('a[href*="my.snhu.edu"]')),e=(e.length&&e.forEach(function(e){o.bindMySnhuListener(e)}),document.querySelectorAll("a[data-program-code]"));e.length&&(t=new GA4EventFactory("add_to_cart"),e.forEach(function(e){e.addEventListener("click",function(){var e=new AddToCart;t.create(e.create())})}))}),function(){return _createClass(function e(t,o){_classCallCheck(this,e),this.pageView=t||new PageViewFactory,this.ga4Event=o||new GA4EventFactory("pageview")},[{key:"PageViewEvent",value:function(){var e=this.pageView.create();this.ga4Event.create(e)}}])}()),ProgramFinderController=("undefined"!=typeof exports&&(module.exports=PageController),window.addEventListener("load",function(){var e,t,o;(new PageController).PageViewEvent(),document.querySelector('a[data-parent-program="true"]')&&(e=new GA4EventFactory("view_item"),t=new ViewItem,o=new GA4EventFactory("dimensionsWritten"),e.create(t.create()),o.create())}),function(){function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:"getSelectedTextFor",value:function(e,t){e=e.querySelector(t);return e.options[e.selectedIndex].text||""}},{key:"buildPFSearchObject",value:function(e){var t=o.getSelectedTextFor(e,"#degree-level"),e=o.getSelectedTextFor(e,"#category");return new ProgramFinderSearchFactory(t,e).createPFWidgetSearchEventData()}}])}()),UrlFragmentController=("undefined"!=typeof exports&&(module.exports=ProgramFinderController),window.addEventListener("load",function(){var e=document.querySelectorAll(".pf-widget");e.length&&e.forEach(function(t){t.querySelector("[data-pf-widget]").addEventListener("click",function(){var e=ProgramFinderController.buildPFSearchObject(t);new GA4EventFactory("program_finder_widget_search").create(e)})})}),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"handleTextFragment",value:function(){var e=window.location.href.match(/#:~:text=([^&]*)/),t=null;e&&e[1]?(t=decodeURIComponent(e[1]),sessionStorage.setItem("textFragment",t)):performance&&performance.getEntries&&performance.getEntries()[0]&&(e=performance.getEntries()[0].name.match(/#:~:text=([^&]*)/))&&e[1]?(t=decodeURIComponent(e[1]),sessionStorage.setItem("textFragment",t)):t=sessionStorage.getItem("textFragment"),t&&new GA4EventFactory("url_text_fragment").create(UrlFragmentFactory.create(t))}}])}()),AiChatFactory=("undefined"!=typeof exports&&(module.exports=UrlFragmentController),window.addEventListener("load",function(){UrlFragmentController.handleTextFragment()}),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"createAiChatOpen",value:function(){return{metric:{AI_chat_open:"1"}}}},{key:"createAiChatStart",value:function(){return{metric:{AI_chat_start:"1"}}}}])}()),ChatFactory=("undefined"!=typeof exports&&(module.exports=AiChatFactory),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"createChatStart",value:function(){return{metric:{chat_start:"1"}}}},{key:"createChatOpen",value:function(){return{metric:{chat_open:"1"}}}}])}()),EcommerceFactory=("undefined"!=typeof exports&&(module.exports=ChatFactory),function(){return _createClass(function e(t){_classCallCheck(this,e),this.value=0,this.currency="USD";t=t||new CookieProvider;this.snhuProgramCode=t.getValueAsString("SNHUProgramCode"),this.snhuAcademicLevel=t.getValueAsString("RecentDegreeLevelVisited"),this.snhuLocationCode=t.getValueAsString("SNHULocationCode"),this.snhuProgramName=t.getValueAsString("SNHUProgramName"),this.snhuSubjectName=t.getValueAsString("SNHUSubjectName"),this.formSubmitCookieValues=t.getValueAsJson("formSubmitCookie")},[{key:"createItems",value:function(){return{items:[{item_id:this.snhuProgramCode,item_name:this.snhuProgramName,item_brand:this.snhuAcademicLevel,item_category:this.snhuSubjectName,item_variant:this.formSubmitCookieValues.formType||"",item_affiliation:this.snhuLocationCode,quantity:1}]}}},{key:"createForm",value:function(){return{form:{form_prepopulated:this.formSubmitCookieValues.prePopulated||!1}}}}])}()),Purchase=function(){function t(e){return _classCallCheck(this,t),(e=_callSuper(this,t,[e])).leadid=e.formSubmitCookieValues.leadId||"",e.formSource=e.formSubmitCookieValues.formSource||"",e.snhuProgramCode=e.formSubmitCookieValues.programCode||"",e.snhuProgramName=e.formSubmitCookieValues.programName||"",e.snhuAcademicLevel=e.formSubmitCookieValues.degreeLevel||"",e.snhuSubjectName=e.formSubmitCookieValues.areaOfStudy||"",e.snhuLocationCode=e.formSubmitCookieValues.programAffiliation||"",e}return _inherits(t,EcommerceFactory),_createClass(t,[{key:"create",value:function(){return{ecommerce:_objectSpread(_objectSpread({transaction_id:this.leadid,value:this.value,currency:this.currency,coupon:this.formSource},this.createItems()),this.createForm())}}}])}(),AddToCart=function(){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,EcommerceFactory),_createClass(e,[{key:"create",value:function(){return{ecommerce:_objectSpread(_objectSpread({value:this.value,currency:this.currency},this.createItems()),this.createForm())}}}])}(),ViewItem=function(){function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,EcommerceFactory),_createClass(e,[{key:"create",value:function(){return{ecommerce:_objectSpread(_objectSpread({value:this.value,currency:this.currency},this.createItems()),this.createForm())}}}])}(),FormSubmitFactory=("undefined"!=typeof exports&&(module.exports=[ViewItem,AddToCart,Purchase]),function(){return _createClass(function e(t){_classCallCheck(this,e);this.snhuCookieProvider=t||new CookieProvider,this.formSubmitCookieValues=this.snhuCookieProvider.getValueAsJson("formSubmitCookie")},[{key:"create",value:function(){return{form:{program_name:this.formSubmitCookieValues?this.formSubmitCookieValues.programName:"",program_code:this.formSubmitCookieValues?this.formSubmitCookieValues.programCode:"",form_type:this.formSubmitCookieValues?this.formSubmitCookieValues.formType:"",form_prepopulated:this.formSubmitCookieValues?this.formSubmitCookieValues.prePopulated:"",form_source:this.formSubmitCookieValues?this.formSubmitCookieValues.formSource:"",enrollment_term:this.formSubmitCookieValues?this.formSubmitCookieValues.enrollmentTerm:"",application_id:this.formSubmitCookieValues?this.formSubmitCookieValues.leadId:"",program_affiliation:this.formSubmitCookieValues?this.formSubmitCookieValues.programAffiliation:"",degree_level:this.formSubmitCookieValues?this.formSubmitCookieValues.degreeLevel:"",area_of_study:this.formSubmitCookieValues?this.formSubmitCookieValues.areaOfStudy:""},metric:{form_submit:1}}}}])}()),NavigationFactory=("undefined"!=typeof exports&&(module.exports=FormSubmitFactory),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"createClickEventData",value:function(e,t){return{click:{navigation_place:e,navigation_category:"",navigation_item:t.trim()}}}},{key:"createMySnhuClickEventData",value:function(){return{event:"my_snhu_click"}}}])}()),PageViewFactory=("undefined"!=typeof exports&&(module.exports=NavigationFactory),function(){return _createClass(function e(t){_classCallCheck(this,e),this.snhuCookieProvider=t||new CookieProvider,this.formSubmitCookieValues=this.snhuCookieProvider.getValueAsJson("formSubmitCookie"),this.croTestCookieValue=this.snhuCookieProvider.getValueAsString("ssTestIds"),this.snhuCommunityMemberValue=this.snhuCookieProvider.getValueAsString("snhucommunitymember"),this.templateId="undefined"!=typeof templateId?templateId:""},[{key:"create",value:function(){return{page:{vendor_unique_id:this.formSubmitCookieValues.leadId||"",content_group:"",program_page_group:"",online_degrees_section:"",template_id:this.templateId},user:{user_time_zone:Intl.DateTimeFormat().resolvedOptions().timeZone,cro_test_id:this.croTestCookieValue||"",international_student:this.formSubmitCookieValues.isIntlStudent||"",military_status:this.formSubmitCookieValues.militaryStatus||"",military_branch:this.formSubmitCookieValues.militaryBranch||"",military_affiliation:this.formSubmitCookieValues.militaryAffiliation||"",zip_code:this.formSubmitCookieValues.zipCode||""}}}}])}()),ProgramFinderSearchFactory=("undefined"!=typeof exports&&(module.exports=PageViewFactory),function(){return _createClass(function e(t,o){_classCallCheck(this,e),this.degreeLevel=t,this.category=o},[{key:"createPFWidgetSearchEventData",value:function(){return{form:{program_finder_widget_degree_level:this.degreeLevel,program_finder_widget_category:this.category},metric:{program_finder_widget_search:1}}}}])}()),ThankYouPageContentFactory=("undefined"!=typeof exports&&(module.exports=ProgramFinderSearchFactory),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"create",value:function(e){return{ThankYouPageContent:{content_type:e||""}}}}])}()),UrlFragmentFactory=("undefined"!=typeof exports&&(module.exports=ThankYouPageContentFactory),function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"create",value:function(e){return{urlfragment:{fragment_text:e||""}}}}])}()),TransferCreditsController=("undefined"!=typeof exports&&(module.exports=UrlFragmentFactory),!function(){var e;window.addEventListener("load",function(){e=document.getElementById("open-ai-chat")}),window.addEventListener("onEmbeddedMessagingWindowMinimized",function(){e&&(e.style.display="none")}),window.addEventListener("onEmbeddedMessagingWindowMaximized",function(){e&&(e.style.display="flex")})}(),function(){function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:"handleCreditClick",value:function(e){var e=e.target.id.replace("transfer-credit-savings-",""),t=document.getElementById("credit-amount-"+e),e=document.getElementById("credit-description-"+e);o.hideDisplayedAmountDescription(),t&&(t.classList.replace("d-none","d-block"),e)&&e.classList.replace("d-none","d-block")}},{key:"hideDisplayedAmountDescription",value:function(){var e=document.querySelector("[data-credit-description].d-block"),e=(e&&e.classList.replace("d-block","d-none"),document.querySelector("[data-credit-amount].d-block"));e&&e.classList.replace("d-block","d-none")}}])}());"undefined"!=typeof exports&&(module.exports=TransferCreditsController),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("input[data-credit-savings]").forEach(function(e){e.addEventListener("click",function(e){TransferCreditsController.handleCreditClick(e)})})});//# sourceMappingURL=scripts.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.