@utahdts/utah-design-system-header 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(H,Pe){typeof exports=="object"&&typeof module<"u"?Pe(exports):typeof define=="function"&&define.amd?define(["exports"],Pe):(H=typeof globalThis<"u"?globalThis:H||self,Pe(H["@utahdts/utah-design-system-header"]={}))})(this,function(H){"use strict";const fn={name:"@utahdts/utah-design-system-header",version:"0.6.0",description:"Utah Header for the Utah Design System",exports:{".":{"development-local":"./src/index.js",development:"./dist/utah-design-system-header.es.js",production:"./dist/utah-design-system-header.es.js",import:"./dist/utah-design-system-header.es.js",require:"./dist/utah-design-system-header.umd.js",default:["./dist/utah-design-system-header.es.js","./dist/utah-design-system-header.umd.js","./src/index.js"]},"./css":"./dist/style.css","./src/css/index.scss":"./src/css/index.scss"},main:"./src/index.js",files:["src/css","dist"],scripts:{build:"vite build",preview:"vite preview",publishHeader:"npm publish --access public","sass-build":"sass --no-source-map ./src/css/index.scss ./src/css/build/utah-design-system-header.css","test-publish":"npm publish --dry-run",test:"vitest",testc:"vitest run --coverage",watch:"vite build --watch"},repository:{type:"git",url:"git+https://github.com/utahdts/utah-design-system.git"},license:"Apache-2.0",bugs:{url:"https://github.com/utahdts/utah-design-system/issues"},homepage:"https://github.com/utahdts/utah-design-system#readme",dependencies:{"@popperjs/core":"2.11.7"},devDependencies:{eslint:"8.38.0","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.27.5","eslint-plugin-jsx-a11y":"6.7.1",sass:"1.62.0",vite:"4.2.2","vite-plugin-eslint":"1.8.1",vitest:"0.30.1"},type:"module"},Xo="",x={FLYOUT:"flyout",INLINE:"inline",MEGA_MENU:"mega-menu"},Fe={HEADER_LOADED:"utahHeaderLoaded",HEADER_UNLOADED:"utahHeaderUnloaded"},ee={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"},hn=`/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
1
+ (function(H,Re){typeof exports=="object"&&typeof module<"u"?Re(exports):typeof define=="function"&&define.amd?define(["exports"],Re):(H=typeof globalThis<"u"?globalThis:H||self,Re(H["@utahdts/utah-design-system-header"]={}))})(this,function(H){"use strict";const vn={name:"@utahdts/utah-design-system-header",version:"0.8.0",description:"Utah Header for the Utah Design System",exports:{".":{"development-local":"./src/index.js",development:"./dist/utah-design-system-header.es.js",production:"./dist/utah-design-system-header.es.js",import:"./dist/utah-design-system-header.es.js",require:"./dist/utah-design-system-header.umd.js",default:["./dist/utah-design-system-header.es.js","./dist/utah-design-system-header.umd.js","./src/index.js"]},"./css":"./dist/style.css","./src/css/index.scss":"./src/css/index.scss"},main:"./src/index.js",files:["src/css","dist"],scripts:{build:"vite build",preview:"vite preview",publishHeader:"npm publish --access public","test-publish":"npm publish --dry-run",test:"vitest",testc:"vitest run --coverage",testOnce:"vitest run",testui:"vitest --ui",watch:"vite build --watch"},repository:{type:"git",url:"git+https://github.com/utahdts/utah-design-system.git"},license:"Apache-2.0",bugs:{url:"https://github.com/utahdts/utah-design-system/issues"},homepage:"https://github.com/utahdts/utah-design-system#readme",dependencies:{"@popperjs/core":"2.11.7"},devDependencies:{"@vitest/ui":"0.31.1",eslint:"8.40.0","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.27.5","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-react-refresh":"0.4.1",jsdom:"22.0.0",sass:"1.62.1",vite:"4.3.7","vite-plugin-eslint":"1.8.1",vitest:"0.31.0"},type:"module"},ri="",G={FLYOUT:"flyout",INLINE:"inline",MEGA_MENU:"mega-menu"},Ze={HEADER_LOADED:"utahHeaderLoaded",HEADER_UNLOADED:"utahHeaderUnloaded"},pe={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"},bn=`/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
2
2
 
3
3
  @media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
4
4
  /* put your media query here for tablet landscape */
@@ -8,6 +8,12 @@
8
8
  }
9
9
 
10
10
  @media screen and (max-width: media-size__tablet-portrait__PLACEHOLDER) {
11
+ .utds-header-desktop--hidden {
12
+ display: flex !important;
13
+ }
14
+ .utds-header-mobile--hidden {
15
+ display: none !important;
16
+ }
11
17
  .utds-header {
12
18
  height: 60px;
13
19
  padding: var(--spacing-xs) var(--spacing);
@@ -18,8 +24,13 @@
18
24
  .utds-citizen-experience-wrapper {
19
25
  display: none;
20
26
  }
27
+ .utds-citizen-experience-wrapper--mobile {
28
+ display: flex;
29
+ }
21
30
  .utah-design-system .main-menu__wrapper {
22
31
  padding: 0 var(--spacing);
32
+ /* The utah id button is this tall, but without it, the menu doesn't fill the space up to the mobile menu content popup */
33
+ min-height: 46px;
23
34
  }
24
35
  .utah-design-system .main-menu__nav {
25
36
  display: none;
@@ -30,7 +41,8 @@
30
41
  }
31
42
  .utah-design-system .icon-button.main-menu__hamburger,
32
43
  .utah-design-system .utds-header-mobile__vip-action-items--left,
33
- .utah-design-system .utds-header-mobile__vip-action-items--right {
44
+ .utah-design-system .utds-header-mobile__vip-action-items--right,
45
+ .utah-design-system .main-menu__search-placeholder {
34
46
  display: flex;
35
47
  }
36
48
 
@@ -56,7 +68,7 @@
56
68
  @media screen and (max-width: media-size__mobile__PLACEHOLDER) {
57
69
  /* put your media query here for mobile */
58
70
  }
59
- `,_n=`<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
71
+ `,In=`<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
60
72
  <div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
61
73
  <div class="utds-header-mobile-menu__wrapper">
62
74
  <div class="utds-header-mobile-menu__action-bar" role="tablist">
@@ -83,35 +95,101 @@
83
95
 
84
96
  </div>
85
97
  <div class="utds-header-mobile-menu__content"> </div>
98
+ <div aria-hidden tabindex="0" class="utds-header-mobile-menu__hidden-last-focusable visually-hidden">
99
+ end of mobile content form
100
+ </div>
86
101
  </div>
87
102
  </div>
88
- `;function f(e){return`.${(Array.isArray(e)?e:[e]).join(".")}`}const s={UTAH_DESIGN_SYSTEM:"utah-design-system",HEADER:"utds-header",ICON_BUTTON:"icon-button",CSS_HEADER_MEDIA_TAG_ID:"cssHeaderMediaTag",IS_CLOSED:"is-closed",IS_OPEN:"is-open",VISUALLY_HIDDEN:"visually-hidden",MEDIA_SIZE__MOBILE__PLACEHOLDER:"media-size__mobile__PLACEHOLDER",MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER:"media-size__tablet-landscape__PLACEHOLDER",MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER:"media-size__tablet-portrait__PLACEHOLDER",ACTION_ITEM:"utds-header-action-item",ACTION_ITEM__ICON_BUTTON:"utds-header-action-item__icon-button",ACTION_ITEM__ICON_BUTTON_TITLE:"utds-header-action-item__icon-button--has-title",ACTION_ITEM__TITLE:"utds-header-action-item__title",BADGE__LABEL:"utds-badge__label",BADGE__VALUE:"utds-badge__value",BADGE_WRAPPER:"utds-badge__wrapper",BADGE_WRAPPER__SMALL:"utds-badge__wrapper--small",BADGE_WRAPPER__ACTION_ITEM:"utds-badge__wrapper--action-item",CITIZEN_EXPERIENCE:"utds-citizen-experience-wrapper",LOGO:"utds-logo-wrapper",LOGO_OFFICIAL_CLOSE_BUTTON:"utds-official-website-popup__close-button",LOGO_OFFICIAL_WRAPPER:"utds-official-website-popup__wrapper",LOGO_SVG:"utah-logo-svg",LOGO_VERT_LINE:"utds-logo-vert-line",MAIN_MENU:"main-menu__wrapper",MAIN_MENU__HAMBURGER:"main-menu__hamburger",MAIN_MENU__HAMBURGER_ID:"utds-main-menu__hamburger",MAIN_MENU__HAMBURGER_ICON_ID:"utds-main-menu__hamburger-icon",MAIN_MENU__MENU_TOP:"main-menu__menu-top",MAIN_MENU__NAV:"main-menu__nav",MAIN_MENU__OUTER:"main-menu__outer",MAIN_MENU__SEARCH:"main-menu__search",MAIN_MENU__TITLE:"main-menu__title",MENU_ITEM:"menu-item",MENU_ITEM__BUTTON_TITLE:"menu-item__button-title",MENU_ITEM__LINK_TITLE:"menu-item__link-title",MENU_ITEM__SELECTED:"menu-item--selected",MENU_ITEM__TITLE:"menu-item__title",MENU_ITEM__FLY_OUT:"menu-item--fly_out",MENU_ITEM__INLINE:"menu-item--inline",MENU_ITEM__MEGA_MENU:"menu-item--mega-menu",MOBILE__VIP_ACTION_ITEMS__LEFT:"utds-header-mobile__vip-action-items--left",MOBILE__UTAH_ID:"utds-header-mobile__utah-id-wrapper",MOBILE__VIP_ACTION_ITEMS__RIGHT:"utds-header-mobile__vip-action-items--right",ACTION_ITEM__SELECTED:"utds-header-mobile-menu__action-item--selected",MOBILE_MENU:"utds-header-mobile-menu",MOBILE_MENU__ACTION_BAR:"utds-header-mobile-menu__action-bar",MOBILE_MENU__BACKDROP:"utds-header-mobile-menu__backdrop",MOBILE_MENU__CONTENT:"utds-header-mobile-menu__content",MOBILE_MENU__CONTENT_ITEM:"utds-header-mobile-menu__content-item",MOBILE_MENU__WRAPPER:"utds-header-mobile-menu__wrapper",MOBILE_MENU_ACTON_BAR__HOME_ID:"utds-header-mobile-menu_action-bar__home",MOBILE_MENU_ACTON_BAR__PROFILE_ID:"utds-header-mobile-menu_action-bar__profile",MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER:"utds-header-mobile-menu__action-item",POPUP_MENU:"vertical-menu",POPUP_MENU__BUTTON_TITLE:"vertical-menu__button-title",POPUP_MENU__CHEVRON:"vertical-menu__chevron",POPUP_MENU__DIVIDER:"vertical-menu__divider",POPUP_MENU__LINK_TEXT:"vertical-menu__link-text",POPUP_MENU__LINK_TITLE:"vertical-menu__link-title",POPUP_MENU__PLAIN_TITLE:"vertical-menu__plain-title",POPUP_MENU__TITLE:"vertical-menu__title",POPUP_MENU_WRAPPER__WRAPPER:"vertical-menu__wrapper",POPUP_MENU_WRAPPER__WRAPPER_TITLE:"vertical-menu__wrapper-title",POPUP__HIDDEN:"popup__wrapper--hidden",POPUP__VISIBLE:"popup__wrapper--visible",POPUP__WRAPPER:"popup__wrapper",EXTERNAL_LINK:"utds-icon-after-external-link",EXTERNAL_LINK__NEW_TAB:"utds-new-tab-link-a11y",POPUP_ARROW:"popup__arrow",POPUP_CONTENT_WRAPPER:"popup__content",POPUP_WRAPPER:"popup__wrapper",SEARCH__SEARCH_BACKDROP:"search-backdrop",SEARCH__SEARCH_CLOSE_BUTTON:"search-modal__close-button",SEARCH__SEARCH_BUTTON:"search-modal__button",SEARCH__SEARCH_BUTTON_WRAPPER:"search-modal__button-wrapper",SEARCH__SEARCH_INPUT:"search-modal__input",SEARCH__SEARCH_MODAL:"search-modal",SIZE__LARGE:"large",SIZE__MEDIUM:"medium",TITLE:"utds-title-wrapper",TITLE__LOGO:"utds-title-wrapper__logo",TITLE__TITLE:"utds-title-wrapper__title",TOOLTIP:"utds-tooltip",TOOLTIP__CONTENT:"tooltip__content",TOOLTIP__WRAPPER:"tooltip__wrapper",TOOLTIP__WRAPPER__HIDDEN:"tooltip__wrapper--hidden",TOOLTIP__WRAPPER__VISIBLE:"tooltip__wrapper--visible",UTAH_ID:"utds-utah-id-wrapper",UTAH_ID__BUTTON:"utds-utah-id__button"};function vt(e,t){if(e)throw new Error(t)}function mn(e,t){if(e==null)throw new Error(t);return e}function Ve(e){return typeof e=="string"||e instanceof String}function vn(e){const t=new DOMParser;let n;if(Ve(e)){const r=Ve(e)?t.parseFromString(e,"text/html"):e,o=r.body.children.length>1?r.body.children:r.body.children.item(0);if(!o)throw console.error(e),new Error("renderDOM: nothing rendered");n=o}else if(e instanceof Element)n=e;else throw e?(console.error(e),new Error(`renderDOM: str is not a string nor a DOM Element : '${e}'`)):new Error("renderDOM: falsy string passed; cannot render nothing");return n}function b(e){const t=typeof e=="string"?vn(e):e;if(t instanceof HTMLCollection&&t.length>1)throw new Error("renderDOMSingle: must render a single element");const n=t instanceof HTMLCollection?t[0]:t;if(!n)throw console.error(e),new Error("renderDOMSingle: nothing rendered");return n}const Et={mainMenu:{menuItems:[{title:"Home",actionUrl:{url:"/"}}],title:"Main Menu"},mediaSizes:{mobile:640,tabletPortrait:768,tabletLandscape:1024},showTitle:!0,size:ee.MEDIUM,title:"Utah Design System",titleURL:"/",utahId:!0};let Le={...{actionItems:[{actionPopupMenu:{menuItems:[{actionUrl:{url:"https://google.com?search=how realisitic can you be"},title:"Item #1"},{actionUrl:{url:"https://utah.gov",openInNewTab:!0},title:"Utah.Gov"},{actionFunction:e=>{e.stopPropagation(),e.preventDefault(),console.log("Custom menu item triggered")},title:"Custom menu item"},{actionMenu:[{title:"i am a child",actionMenu:[{title:"i am a child",actionUrl:{url:"https://dts.utah.gov"}},{title:"i am a child 2oo",actionUrl:{url:"https://dts.utah.gov/2"}}]},{title:"i am a child 2oo",actionMenu:[{title:"i am a child2",actionUrl:{url:"https://dts.utah.gov"}},{title:"i am a child 2oo2",actionUrl:{url:"https://dts.utah.gov/2"}}]}],title:"I have children!!"}],title:"Divisions Menu"},className:"icon-waffle",icon:`<span class="utds-icon-before-waffle" aria-hidden="true" />
89
- `,showTitle:!0,title:"Divisions"},{actionFunction:()=>console.log("Alerts clicked"),badge:{label:"Unread Alert",value:1},icon:`<span class="utds-icon-before-alert" aria-hidden="true" />
90
- `,showTitle:!1,title:"Alerts"},{actionDom:()=>{const e=document.createElement("div");e.appendChild(document.createTextNode("Hello World!"));const t=document.createElement("button");return t.appendChild(document.createTextNode("Do not press me.")),e.appendChild(t),e},badge:{label:"Help Items Available"},icon:`<span class="utds-icon-before-help" aria-hidden="true" />
91
- `,showTitle:!1,title:"Help"},{actionDom:()=>{const e=document.createElement("div");e.appendChild(document.createTextNode("Toggle Language"));const t=document.createElement("button");return t.appendChild(document.createTextNode("Speak Different")),t.onclick=()=>alert("lorem ipsum"),e.appendChild(t),e},icon:`<span class="utds-icon-before-gear" aria-hidden="true" />
92
- `,showTitle:!1,title:"Settings"}],mediaSizes:{mobile:640,tabletPortrait:768,tabletLandscape:1024},onSearch:e=>alert(e),showTitle:!0,size:ee.MEDIUM,title:"Utah Design System",titleURL:"/",utahId:!0,mainMenu:{menuItems:[{actionUrl:{url:"/"},title:"Home"},{actionUrl:{url:"#"},title:"Link to Somewhere"},{isSelected:!0,actionFunction:()=>alert("hello yous guy"),title:"do func"},{actionMenu:[{title:"Guidelines and Standards",actionUrl:{url:"/guidelines"}}],title:"Guidelines/Standards"},{actionMenu:[{title:"child1",actionMenu:[{title:"child1-1",actionMenu:[{title:"child1-1-1",actionUrl:{url:"/children"}},{title:"child1-1-2",actionUrl:{url:"/children"}},{title:"child1-1-3",actionUrl:{url:"/children"}}]},{title:"child1-2",actionMenu:[{title:"child1-2-1",actionUrl:{url:"/children"}},{title:"child1-2-2",actionUrl:{url:"/children"}},{title:"child1-2-3",actionUrl:{url:"/children"}}]}]},{title:"child2",actionMenu:[{title:"child2-1",actionMenu:[{title:"child2-1-1",actionUrl:{url:"/children"}},{title:"child2-1-2",actionUrl:{url:"/children"}},{title:"child2-1-3",actionUrl:{url:"/children"}}]},{title:"child2-2",actionMenu:[{title:"child2-2-1",actionUrl:{url:"/children"}},{title:"child2-2-2",actionUrl:{url:"/children"}},{title:"child2-2-3",actionUrl:{url:"/children"}}]}]}],childrenMenuType:x.FLYOUT,title:"Childrens"},{actionMenu:[{title:"Title of section 1",actionMenu:[{title:"child1-1",actionMenu:[{title:"child1-1-1",actionUrl:{url:"/children"}},{title:"child1-1-2",actionUrl:{url:"/children"}},{title:"child1-1-3",actionUrl:{url:"/children"}}]},{title:"child1-2",actionMenu:[{title:"child1-2-1",actionUrl:{url:"/children"}},{title:"child1-2-2",actionUrl:{url:"/children"}},{title:"child1-2-3",actionUrl:{url:"/children"}}]}]},{title:"Title of section 2",actionMenu:[{title:"child2-1",actionMenu:[{title:"child2-1-1",actionUrl:{url:"/children"}},{title:"child2-1-2",actionUrl:{url:"/children"}},{title:"child2-1-3",actionUrl:{url:"/children"}}]},{title:"child2-2",actionMenu:[{title:"child2-2-1",actionUrl:{url:"/children"}},{title:"child2-2-2",actionUrl:{url:"/children"}},{title:"child2-2-3",actionUrl:{url:"/children"}}]}]}],childrenMenuType:x.MEGA_MENU,title:"MEGA MENU!"}],title:"Utah Design System Main Menu"}}};function O(){return Le}function En(e){if(!e.showTitle&&!e.logo)throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.")}function bt(){nn(!1),tn()}let gt=!1;const bn=15e3;let It=0;const gn=setInterval(()=>{It+=1,It>=bn||gt?clearInterval(gn):document.dispatchEvent(new Event(Fe.HEADER_LOADED))},2);function In(e){return Le={...Et,...e},En(Le),gt=!0,document!=null&&document.body?bt():window.addEventListener("load",()=>bt()),Le}const Tn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
103
+ `;function p(e){return`.${(Array.isArray(e)?e:[e]).join(".")}`}const a={UTAH_DESIGN_SYSTEM:"utah-design-system",HEADER:"utds-header",FOOTER:"utds-footer",ICON_BUTTON:"icon-button",CSS_HEADER_MEDIA_TAG_ID:"cssHeaderMediaTag",IS_CLOSED:"is-closed",IS_OPEN:"is-open",VISUALLY_HIDDEN:"visually-hidden",MEDIA_SIZE__MOBILE__PLACEHOLDER:"media-size__mobile__PLACEHOLDER",MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER:"media-size__tablet-landscape__PLACEHOLDER",MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER:"media-size__tablet-portrait__PLACEHOLDER",ACTION_ITEM:"utds-header-action-item",ACTION_ITEM__ICON_BUTTON:"utds-header-action-item__icon-button",ACTION_ITEM__ICON_BUTTON_TITLE:"utds-header-action-item__icon-button--has-title",ACTION_ITEM__TITLE:"utds-header-action-item__title",ACTION_ITEMS__WRAPPER:"utds-action-items-wrapper",BADGE__LABEL:"utds-badge__label",BADGE__VALUE:"utds-badge__value",BADGE_WRAPPER:"utds-badge__wrapper",BADGE_WRAPPER__SMALL:"utds-badge__wrapper--small",BADGE_WRAPPER__ACTION_ITEM:"utds-badge__wrapper--action-item",CITIZEN_EXPERIENCE:"utds-citizen-experience-wrapper",CITIZEN_EXPERIENCE_MOBILE:"utds-citizen-experience-wrapper--mobile",FOOTER_HORIZONTAL_DIVIDER:"utds-footer__horizontal-divider",LOGO:"utds-logo-wrapper",LOGO_OFFICIAL_CLOSE_BUTTON:"utds-official-website-popup__close-button",LOGO_OFFICIAL_WRAPPER:"utds-official-website-popup__wrapper",LOGO_SVG:"utah-logo-svg",LOGO_VERT_LINE:"utds-logo-vert-line",MAIN_MENU:"main-menu__wrapper",MAIN_MENU__HAMBURGER:"main-menu__hamburger",MAIN_MENU__HAMBURGER_ID:"utds-main-menu__hamburger",MAIN_MENU__HAMBURGER_ICON_ID:"utds-main-menu__hamburger-icon",MAIN_MENU__MENU_TOP:"main-menu__menu-top",MAIN_MENU__NAV:"main-menu__nav",MAIN_MENU__OUTER:"main-menu__outer",MAIN_MENU__REMOVED:"main-menu-is-removed",MAIN_MENU__SEARCH:"main-menu__search",MAIN_MENU__TITLE:"main-menu__title",MENU_ITEM:"menu-item",MENU_ITEM__BUTTON_TITLE:"menu-item__button-title",MENU_ITEM__LINK_TITLE:"menu-item__link-title",MENU_ITEM__SELECTED:"menu-item--selected",MENU_ITEM__TITLE:"menu-item__title",MENU_ITEM__FLY_OUT:"menu-item--fly_out",MENU_ITEM__INLINE:"menu-item--inline",MENU_ITEM__MEGA_MENU:"menu-item--mega-menu",DESKTOP__HIDDEN:"utds-header-desktop--hidden",MOBILE__HIDDEN:"utds-header-mobile--hidden",MOBILE__UTAH_ID:"utds-header-mobile__utah-id-wrapper",MOBILE__VIP_ACTION_ITEMS__LEFT:"utds-header-mobile__vip-action-items--left",MOBILE__VIP_ACTION_ITEMS__RIGHT:"utds-header-mobile__vip-action-items--right",ACTION_ITEM__SELECTED:"utds-header-mobile-menu__action-item--selected",MOBILE_MENU:"utds-header-mobile-menu",MOBILE_MENU__ACTION_BAR:"utds-header-mobile-menu__action-bar",MOBILE_MENU__BACKDROP:"utds-header-mobile-menu__backdrop",MOBILE_MENU__CONTENT:"utds-header-mobile-menu__content",MOBILE_MENU__CONTENT_ITEM:"utds-header-mobile-menu__content-item",MOBILE_MENU__LAST_FOCUSABLE:"utds-header-mobile-menu__hidden-last-focusable",MOBILE_MENU__WRAPPER:"utds-header-mobile-menu__wrapper",MOBILE_MENU_ACTON_BAR__HOME_ID:"utds-header-mobile-menu_action-bar__home",MOBILE_MENU_ACTON_BAR__PROFILE_ID:"utds-header-mobile-menu_action-bar__profile",MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER:"utds-header-mobile-menu__action-item",POPUP_MENU:"vertical-menu",POPUP_MENU__BUTTON_TITLE:"vertical-menu__button-title",POPUP_MENU__CHEVRON:"vertical-menu__chevron",POPUP_MENU__DIVIDER:"vertical-menu__divider",POPUP_MENU__LINK_TEXT:"vertical-menu__link-text",POPUP_MENU__LINK_TITLE:"vertical-menu__link-title",POPUP_MENU__PLAIN_TITLE:"vertical-menu__plain-title",POPUP_MENU__TITLE:"vertical-menu__title",POPUP_MENU_WRAPPER__WRAPPER:"vertical-menu__wrapper",POPUP_MENU_WRAPPER__WRAPPER_TITLE:"vertical-menu__wrapper-title",POPUP__HIDDEN:"popup__wrapper--hidden",POPUP__VISIBLE:"popup__wrapper--visible",POPUP__WRAPPER:"popup__wrapper",EXTERNAL_LINK:"utds-icon-after-external-link",EXTERNAL_LINK__NEW_TAB:"utds-new-tab-link-a11y",POPUP_ARROW:"popup__arrow",POPUP_CONTENT_WRAPPER:"popup__content",POPUP_WRAPPER:"popup__wrapper",SEARCH__SEARCH_BACKDROP:"search-backdrop",SEARCH__SEARCH_CLOSE_BUTTON:"search-modal__close-button",SEARCH__SEARCH_BUTTON:"search-modal__button",SEARCH__SEARCH_BUTTON_WRAPPER:"search-modal__button-wrapper",SEARCH__SEARCH_INPUT:"search-modal__input",SEARCH__SEARCH_MODAL:"search-modal",SIZE__LARGE:"large",SIZE__MEDIUM:"medium",TITLE:"utds-title-wrapper",TITLE__LOGO:"utds-title-wrapper__logo",TITLE__TITLE:"utds-title-wrapper__title",TOOLTIP:"utds-tooltip",TOOLTIP__CONTENT:"tooltip__content",TOOLTIP__WRAPPER:"tooltip__wrapper",TOOLTIP__WRAPPER__HIDDEN:"tooltip__wrapper--hidden",TOOLTIP__WRAPPER__VISIBLE:"tooltip__wrapper--visible",UTAH_ID:"utds-utah-id-wrapper",UTAH_ID__BUTTON:"utds-utah-id__button"};function Q(e,t){if(e)throw new Error(t)}function L(e,t){if(e==null)throw new Error(t);return e}function Tt(e){return typeof e=="string"||e instanceof String}function gn(e){const t=new DOMParser;let n;if(Tt(e)){const o=Tt(e)?t.parseFromString(e,"text/html"):e,r=o.body.children.length>1?o.body.children:o.body.children.item(0);if(!r)throw console.error(e),new Error("renderDOM: nothing rendered");n=r}else if(e instanceof Element)n=e;else throw e?(console.error(e),new Error(`renderDOM: str is not a string nor a DOM Element : '${e}'`)):new Error("renderDOM: falsy string passed; cannot render nothing");return n}function g(e){const t=typeof e=="string"?gn(e):e;if(t instanceof HTMLCollection&&t.length>1)throw new Error("renderDOMSingle: must render a single element");const n=t instanceof HTMLCollection?t[0]:t;if(!n)throw console.error(e),new Error("renderDOMSingle: nothing rendered");return n}const Tn=`<div class="utds-footer utah-design-system">
104
+ <div class="utds-footer__horizontal-divider">
105
+ <hr />
106
+ </div>
107
+ <div class="utds-footer__utah-logo-wrapper">
108
+ <div class="utah-logo-svg" id="utah-logo-svg">
109
+ <svg viewBox="0 0 107 30.51" role="img">
110
+ <g><path d="m12.44,30.51c-4.21,0-7.33-1.22-9.38-3.66C1.02,24.4,0,20.61,0,15.48V0h7.93v16.4c0,2.67.36,4.55,1.08,5.65.77,1.12,2.08,1.74,3.43,1.64,1.36.1,2.68-.52,3.48-1.63.75-1.09,1.13-2.97,1.13-5.65V0h7.65v15.48c0,5.13-1,8.92-3,11.36-2,2.44-5.09,3.66-9.26,3.66Zm24.42-.56V6.64h-7.93V0h23.78v6.64h-7.93v23.31h-7.92Zm26.17-14.56l-.51,2.07h5.53l-.51-2.07c-.37-1.44-.74-3.01-1.11-4.7-.37-1.69-.74-3.29-1.11-4.79h-.18c-.34,1.53-.68,3.14-1.04,4.82-.35,1.68-.71,3.24-1.08,4.68Zm-11.52,14.56L60.64,0h9.58l9.12,29.95h-8.39l-1.48-6.36h-8.38l-1.47,6.36h-8.11Zm30.69,0V0h7.93v11.15h8.94V0h7.93v29.95h-7.93v-11.89h-8.94v11.89h-7.93Z"/></g>
111
+ </svg>
112
+ </div>
113
+ <div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
114
+ <div class="utds-footer__official-site-wrapper">
115
+ <div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
116
+ <div class="utds-footer__copyright">©2023 State of Utah</div>
117
+ </div>
118
+ </div>
119
+ <div class="utds-footer__links">
120
+ <ul>
121
+ <li><a href="#" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
122
+ <li><a href="#" target="__blank" rel="noreferrer">Terms of Use</a></li>
123
+ <li><a href="#" target="__blank" rel="noreferrer">Privacy Policy</a></li>
124
+ <li><a href="#" target="__blank" rel="noreferrer">Accessibility</a></li>
125
+ <li><a href="#" target="__blank" rel="noreferrer">Translate</a></li>
126
+ </ul>
127
+ </div>
93
128
  </div>
94
- `;function C(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&(15>>e)/4).toString(16))}function Ge(e){const t=document.querySelector(f(s.MOBILE_MENU__WRAPPER));if(!t)throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");const n=t.querySelector(f(s.MOBILE_MENU__CONTENT));if(!n)throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");const r=b(Tn);return r.appendChild(e),n.appendChild(r),r.setAttribute("id",C()),r}const Mn=`<div class="utds-badge__wrapper">
129
+ `;let oe=null;function Mn(){var o,r,i,u,s,l,c,d,h,f,_,m,E,v,T,A;const e=O(),t=document.querySelector(p(a.FOOTER));let n=t;if(e.footer===null)t==null||t.remove();else if(((o=oe==null?void 0:oe.footer)==null?void 0:o.domLocationTarget)!==((r=e==null?void 0:e.footer)==null?void 0:r.domLocationTarget)||((i=oe==null?void 0:oe.footer)==null?void 0:i.showHorizontalRule)!==((u=e==null?void 0:e.footer)==null?void 0:u.showHorizontalRule)||!t){t&&t.remove(),n=g(Tn);let b=document.body;if((s=e==null?void 0:e.footer)!=null&&s.domLocationTarget){const I=[(l=e==null?void 0:e.footer)==null?void 0:l.domLocationTarget.cssSelector,(c=e==null?void 0:e.footer)==null?void 0:c.domLocationTarget.element,(d=e==null?void 0:e.footer)==null?void 0:d.domLocationTarget.elementFunction].filter(M=>M);if(Q(I.length<1,"renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"),Q(I.length>1,"renderFooter: footer.domLocationTarget must only have one target specified"),(h=e==null?void 0:e.footer)!=null&&h.domLocationTarget.cssSelector)b=document.querySelector((f=e==null?void 0:e.footer)==null?void 0:f.domLocationTarget.cssSelector),Q(!b,`renderFooter: element not found for domLocationTarget.cssSelector ${(_=e==null?void 0:e.footer)==null?void 0:_.domLocationTarget.cssSelector}`);else if((m=e==null?void 0:e.footer)!=null&&m.domLocationTarget.element)b=(E=e==null?void 0:e.footer)==null?void 0:E.domLocationTarget.element;else if((v=e==null?void 0:e.footer)!=null&&v.domLocationTarget.elementFunction)b=(T=e==null?void 0:e.footer)==null?void 0:T.domLocationTarget.elementFunction(),Q(!b,"renderFooter: element not returned from domLocationTarget.elementFunction");else throw new Error("renderFooter: domLocationTarget must have at least one field set")}if(b==null||b.appendChild(n),!((A=e==null?void 0:e.footer)!=null&&A.showHorizontalRule)){const I=document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));Q(!I,"renderFooter: cannot remove horizontal rule; not found"),I==null||I.remove()}oe=JSON.parse(JSON.stringify(e))}return n}const Ke={mediaSizes:{mobile:640,tabletPortrait:768,tabletLandscape:1024},showTitle:!0,size:pe.MEDIUM,title:"My Utah.gov Site",titleURL:"/"};let De={...Ke};function O(){return De}function An(e){if(!e.showTitle&&!e.logo)throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.")}function Mt(){ln(!1),sn()}let At=!1;const On=15e3;let Ot=0;const wn=setInterval(()=>{Ot+=1,Ot>=On||At?clearInterval(wn):document.dispatchEvent(new Event(Ze.HEADER_LOADED))},2);function Ln(e){return De={...Ke,...O(),...e},An(De),At=!0,document!=null&&document.body?Mt():window.addEventListener("load",()=>Mt()),De}const yn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
130
+ </div>
131
+ `;function R(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&(15>>e)/4).toString(16))}function Xe(e){const t=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!t)throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");const n=t.querySelector(p(a.MOBILE_MENU__CONTENT));if(!n)throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");const o=g(yn);return o.appendChild(e),n.appendChild(o),o.setAttribute("id",R()),o}function K(e){return typeof e=="function"?e():e}const Pn=`<div class="utds-badge__wrapper">
95
132
  <span class="utds-badge__value"></span>
96
133
  <span class="utds-badge__label visually-hidden"></span>
97
134
  </div>
98
- `;function $e(e){let t=null;if(e){t=b(Mn),t.classList.add(s.BADGE_WRAPPER__ACTION_ITEM);const n=t.querySelector(f(s.BADGE__LABEL));if(!n)throw new Error("renderActionItemBadge: badgeLabel not found");if(n.appendChild(document.createTextNode(e.label)),e.value||e.value===0){const r=t.querySelector(f(s.BADGE__VALUE));if(!r)throw new Error("renderActionItemBadge: badgeValue not found");r.appendChild(document.createTextNode(`${e.value}`))}else t.classList.add(s.BADGE_WRAPPER__SMALL);e.className&&t.classList.add(e.className)}return t}function je(e){const t=document.querySelector(f(s.MOBILE_MENU));if(!t)throw new Error(`${e}: mobileMenu not found`);const n=document.getElementById(s.MAIN_MENU__HAMBURGER_ID);if(!n)throw new Error(`${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`);const r=document.getElementById(s.MAIN_MENU__HAMBURGER_ICON_ID);if(!r)throw new Error(`${e}: hamburgerIcon not found`);return{hamburger:n,hamburgerIcon:r,mobileMenu:t}}function Ye(){const{hamburger:e,hamburgerIcon:t,mobileMenu:n}=je("hideMobileMenu");e.setAttribute("aria-expanded","false"),n.classList.remove(s.IS_OPEN),t.classList.add("utds-icon-before-hamburger"),t.classList.remove("utds-icon-before-x-icon")}function wn(){const{hamburger:e,hamburgerIcon:t,mobileMenu:n}=je("showMobileMenu");e.setAttribute("aria-expanded","true"),n.classList.add(s.IS_OPEN),t.classList.remove("utds-icon-before-hamburger"),t.classList.add("utds-icon-before-x-icon")}function An(e){var c;const{hamburger:t}=je("hookupHamburger");if((c=O().actionItems)==null?void 0:c.some(a=>!!a.badge)){const a=$e({label:"Home Badge"});a&&t.appendChild(a)}Ye();const o=document.getElementById(s.MOBILE_MENU_ACTON_BAR__HOME_ID);if(!o)throw new Error("hookupHamburger: homeActionItem not found");const i=o.closest(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!i)throw new Error("hookupHamburger: homeActionItemWrapper not found");Ke(t,e,i,{ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0})}function ze(e,t){e.querySelectorAll(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach(r=>{r.classList.remove(s.ACTION_ITEM__SELECTED);const o=r.querySelector("button");if(!o)throw new Error("showActionItem: actionWrapper does not have actionItem");o.setAttribute("aria-selected","false"),o.setAttribute("tabIndex","-1")}),t.classList.add(s.ACTION_ITEM__SELECTED);const n=t.querySelector("button");if(!n)throw new Error("showActionItem: actionWrapper does not have actionItem");n.setAttribute("aria-selected","true"),n.removeAttribute("tabIndex"),n.focus()}function Tt(e,t){e.querySelectorAll(f(s.MOBILE_MENU__CONTENT_ITEM)).forEach(n=>n.classList.remove(s.IS_OPEN)),t.classList.add(s.IS_OPEN)}function Ke(e,t,n,{ariaHasPopupType:r,onClickHandler:o,shouldOnClickCloseMenu:i}){var h;if(t&&!r)throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");const c=document.querySelector(f(s.MOBILE_MENU));if(!c)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const a=document.querySelector(f(s.MOBILE_MENU__WRAPPER));if(!a)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const l=a.querySelector(f(s.MOBILE_MENU__CONTENT));if(!l)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const u=(h=n==null?void 0:n.querySelector)==null?void 0:h.call(n,"button"),d=(u||e).getAttribute("id");if(!d)throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");if(t){const _=t.getAttribute("id");if(!_)throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");(u||e).setAttribute("aria-controls",_),t.setAttribute("aria-labelledby",d)}if(e.onclick)throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");if(e.onclick=_=>{o&&o(_)||(c.classList.contains(s.IS_OPEN)?i&&Ye():(wn(),t&&Tt(l,t),ze(a,n)))},t){if(n!==e&&n.onclick)throw new Error("mobileMenuInteractionHandler: actionItemWrapper already has onclick");n.onclick=_=>{o&&o(_)||(Tt(l,t),ze(a,n))}}}const On=`<div class="utds-header-mobile-menu__action-item" role="tab">
135
+ `;function Je(e){let t=null;if(e){t=g(Pn),t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);const n=t.querySelector(p(a.BADGE__LABEL));if(!n)throw new Error("renderActionItemBadge: badgeLabel not found");if(n.appendChild(document.createTextNode(e.label)),e.value||e.value===0){const o=t.querySelector(p(a.BADGE__VALUE));if(!o)throw new Error("renderActionItemBadge: badgeValue not found");o.appendChild(document.createTextNode(`${e.value}`))}else t.classList.add(a.BADGE_WRAPPER__SMALL);e.className&&t.classList.add(e.className)}return t}const Nn=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
136
+ <h2 class="utds-official-website-popup__heading">
137
+ This is an official website of the State of Utah. Here’s how you know:
138
+ </h2>
139
+ <div class="utds-official-website-popup__content">
140
+ <div class="utds-official-website-popup__col">
141
+ <div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
142
+ <div>
143
+ <strong>Official Utah websites use utah.gov in the browser&#39;s address bar.</strong><br />
144
+ A Utah.gov website belongs to an official government organization in the State of Utah.
145
+ <div class="utds-official-website-popup__address-bar"></div>
146
+ </div>
147
+ </div>
148
+ <div class="utds-official-website-popup__col">
149
+ <div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
150
+ <div>
151
+ <strong>Be careful when sharing sensitive information.</strong><br />
152
+ Share sensitive information only on secure official Utah.gov websites.
153
+ </div>
154
+ </div>
155
+ <div>
156
+ <svg class="utds-official-website-popup__official-image" viewBox="0 0 105.9496 47.6226" role="img">
157
+ <g>
158
+ <g>
159
+ <path
160
+ d="M12.2714,30.0877c-4.1489,0-7.2318-1.2037-9.2489-3.611C1.0055,24.0693-.002,20.334,0,15.2709V0H7.8175V16.1806c0,2.6363,.356,4.4923,1.0679,5.5679,.7613,1.1018,2.0506,1.7162,3.3859,1.6134,1.3465,.0953,2.6458-.5157,3.4313-1.6134,.7422-1.0756,1.1133-2.9316,1.1133-5.5679V0h7.5448V15.2709c0,5.0601-.9847,8.7946-2.9541,11.2035-1.9694,2.4089-5.0145,3.6133-9.1352,3.6133Zm24.0887-.5463V6.5444h-7.8175V0h23.4526V6.5444h-7.8175V29.5414h-7.8175Zm25.8151-14.362l-.5002,2.0452h5.455l-.5002-2.0452c-.3637-1.4239-.7273-2.9693-1.091-4.636-.3637-1.6667-.7261-3.242-1.0871-4.7259h-.1821c-.3334,1.5151-.6743,3.0983-1.0226,4.7497s-.7053,3.189-1.071,4.6129l-.0008-.0008Zm-11.3617,14.362L59.8127,0h9.4502l9.0023,29.5414h-8.2724l-1.4544-6.2709h-8.2716l-1.4544,6.2709h-7.9988Zm30.2713,0V0h7.8175V10.9991h8.8171V0h7.8175V29.5414h-7.8175v-11.7251h-8.8194v11.7251h-7.8152Z" />
161
+ </g>
162
+ <text transform="translate(.0419 43.5205)" aria-hidden="true">
163
+ <tspan x="0" y="0">An official website</tspan>
164
+ </text>
165
+ </g>
166
+ </svg>
167
+ <div class="utds-official-website-popup__copyright">&copy; State of Utah</div>
168
+ </div>
169
+ </div>
170
+ <button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless"
171
+ tabIndex="-1">
172
+ <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
173
+ <span class="visually-hidden">Close official website popup</span>
174
+ </button>
175
+ </div>
176
+ `;function wt(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.add(a.VISUALLY_HIDDEN),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex",-1),e.setAttribute("tabIndex",-1);const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})}function Sn(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.remove(a.VISUALLY_HIDDEN),o.removeAttribute("tabIndex"),e.removeAttribute("tabIndex"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"),e.focus();const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)}),Be()}function Un(){const e=g(Nn),n=document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG));if(!n)throw new Error("renderOfficialWebsite: logoButton not found");if(n.onclick)throw new Error("renderOfficialWebsite: logoButton already has an onclick");const o=e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));if(!o)throw new Error("renderOfficialWebsite: closeButton not found");return n.onclick=()=>{e.classList.toggle(a.VISUALLY_HIDDEN),e.classList.contains(a.VISUALLY_HIDDEN)?wt():Sn();const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})},o.onclick=()=>{e.classList.toggle(a.VISUALLY_HIDDEN),n.focus(),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")},o.id||(o.id=R()),e.id||(e.id=R()),n.setAttribute("aria-controls",e.id),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-labelledby",n.id),e}function Ie(e){const t=L(document.querySelector(p(a.MOBILE_MENU)),`${e}: mobileMenu not found`),n=L(document.getElementById(a.MAIN_MENU__HAMBURGER_ID),`${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`),o=L(document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),`${e}: hamburgerIcon not found`);return{hamburger:n,hamburgerIcon:o,mobileMenu:t}}function Be(){const{hamburger:e,hamburgerIcon:t,mobileMenu:n}=Ie("hideMobileMenu");e.setAttribute("aria-expanded","false"),n.classList.remove(a.IS_OPEN),t.classList.add("utds-icon-before-hamburger"),t.classList.remove("utds-icon-before-x-icon")}function Cn(){var r;const e=document.querySelector(p(a.MAIN_MENU));e!=null&&e.classList.contains(a.MOBILE__HIDDEN)&&((r=document.querySelector(`${p(a.UTAH_DESIGN_SYSTEM)}${p(a.MOBILE_MENU)}`))==null||r.classList.add(a.MAIN_MENU__REMOVED));const{hamburger:t,hamburgerIcon:n,mobileMenu:o}=Ie("showMobileMenu");t.setAttribute("aria-expanded","true"),o.classList.add(a.IS_OPEN),n.classList.remove("utds-icon-before-hamburger"),n.classList.add("utds-icon-before-x-icon")}function Rn(e){var l,c;const{hamburger:t}=Ie("hookupHamburger"),n=O();if((l=n.actionItems)==null?void 0:l.some(d=>!!d.badge)){const d=Je({label:"Home Badge"});d&&t.appendChild(d)}Be();function r(){const d=L(document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],"hookupHamburger: no action items to select on mobile hamburger open"),h=d.querySelector("button"),f=h==null?void 0:h.getAttribute("aria-controls");return{actionItem:d,actionItemWrapper:f?document.getElementById(f):null}}const i=L(document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],"hookupHamburger: no action items to select on mobile hamburger open"),u=(c=i.querySelector)==null?void 0:c.call(i,"button"),s=(u||i).getAttribute("id");if(!s)throw new Error("mobileMenuInteractionHandler: actionItemId not found");if(e){const d=e.getAttribute("id");if(!d)throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");(u||i).setAttribute("aria-controls",d),e.setAttribute("aria-labelledby",s)}et(t,()=>r().actionItemWrapper,()=>r().actionItem,{additionalOnClick:()=>wt(),ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0}),Q(!!t.onblur,"hookupHamburger: hamburger already has an onblur event"),t.onblur=()=>{const{mobileMenu:d}=Ie("showMobileMenu");if(d.classList.contains(a.IS_OPEN)){const h=p(a.MOBILE_MENU__ACTION_BAR),f=p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),_=p(a.ICON_BUTTON),m=document.querySelector(`${h} ${f}:first-child ${_}`);m==null||m.focus()}},(n.mainMenu||n.actionItems)&&!n.onSearch&&n.utahId===!1&&(L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"hookupHamburger: citizen experience mobile not found").appendChild(t),L(document.querySelector(p(a.MAIN_MENU)),"hookupHamburger: main menu not found").classList.add(a.MOBILE__HIDDEN)),n.onSearch&&!n.mainMenu&&L(document.querySelector(p(a.MAIN_MENU)),"renderMainMenu: main menu not found").classList.add(a.DESKTOP__HIDDEN)}function Qe(e,t){e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach(o=>{o.classList.remove(a.ACTION_ITEM__SELECTED);const r=o.querySelector("button");if(!r)throw new Error("showActionItem: actionWrapper does not have actionItem A");r.setAttribute("aria-selected","false"),r.setAttribute("tabIndex","-1")}),t.classList.add(a.ACTION_ITEM__SELECTED);const n=t.querySelector("button");if(!n)throw new Error("showActionItem: actionWrapper does not have actionItem B");n.setAttribute("aria-selected","true"),n.removeAttribute("tabIndex"),n.focus()}function Lt(e,t){e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(n=>n.classList.remove(a.IS_OPEN)),t.classList.add(a.IS_OPEN)}function et(e,t,n,{ariaHasPopupType:o,additionalOnClick:r,onClickHandler:i,shouldOnClickCloseMenu:u}){var _,m;if(t&&!o)throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");const s=document.querySelector(p(a.MOBILE_MENU));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const l=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const c=l.querySelector(p(a.MOBILE_MENU__CONTENT));if(!c)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const d=K(n),h=(m=(_=K(n))==null?void 0:_.querySelector)==null?void 0:m.call(_,"button"),f=(h||e).getAttribute("id");if(!f)throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");if(t){const E=K(t);if(E){const v=E.getAttribute("id");if(!v)throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");(h||e).setAttribute("aria-controls",v),E.setAttribute("aria-labelledby",f)}}if(e.onclick)throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");if(e.onclick=E=>{if(!(i!=null&&i(E)))if(r==null||r(E),s.classList.contains(a.IS_OPEN))u&&Be();else{Cn();const T=K(t);T&&Lt(c,T),Qe(l,K(n))}},t){if(d!==e&&d.onclick)throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");d.onclick=E=>{if(!(i!=null&&i(E))){const v=K(t);v&&Lt(c,v),Qe(l,K(n))}}}}const Dn=`<div class="utds-header-mobile-menu__action-item" role="tab">
99
177
  <button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
100
178
  <div class="utds-header-action-item__title visually-hidden"></div>
101
179
  <span aria-hidden="true" role="presentation">
102
180
  </button>
103
181
  <span class="menu-chiclet"></span>
104
182
  </div>
105
- `,yn=`<div class="utds-header-action-item-menu">
183
+ `,Bn=`<div class="utds-header-action-item-menu">
106
184
  <div class="vertical-menu__wrapper-title"></div>
107
185
  </div>
108
- `,Pn=`<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
109
- `,Mt=`<span class="utds-new-tab-link-a11y">
186
+ `,Hn=`<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
187
+ `,yt=`<span class="utds-new-tab-link-a11y">
110
188
  <span class="visually-hidden">opens in a new tab</span>
111
189
  <span class="utds-icon-after-external-link" aria-hidden="true"></span>
112
190
  </span>
113
- `,Ln=`<ul class="vertical-menu" role="menu" />
114
- `,Nn=`<li class="vertical-menu__item">
191
+ `,xn=`<ul class="vertical-menu" role="menu" />
192
+ `,Wn=`<li class="vertical-menu__item">
115
193
  <span class="vertical-menu__title">
116
194
  <span class="vertical-menu__plain-title"></span>
117
195
  <a href="#" class="vertical-menu__link-title">
@@ -123,44 +201,45 @@
123
201
  </span>
124
202
  <span class="vertical-menu__divider" />
125
203
  </li>
126
- `,Ze={AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",TOP:"top",TOP_START:"top-start",TOP_END:"top-end"};function Ne(e,t,n){var o;let r=!1;return e&&(Array.isArray(e)?r=e.some(i=>Ne(i,t,n)):(r=n(e),r||(r=!!((o=t==null?void 0:t.filter(i=>e[i]))!=null&&o.some(i=>Ne(e[i],t,n)))))),r}var B="top",G="bottom",$="right",k="left",Se="auto",me=[B,G,$,k],ce="start",ve="end",Sn="clippingParents",wt="viewport",Ee="popper",Un="reference",At=me.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+ve])},[]),Ot=[].concat(me,[Se]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+ve])},[]),Cn="beforeRead",Dn="read",Rn="afterRead",Hn="beforeMain",xn="main",Bn="afterMain",kn="beforeWrite",Wn="write",qn="afterWrite",Xe=[Cn,Dn,Rn,Hn,xn,Bn,kn,Wn,qn];function K(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function te(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qe(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!q(i)||!K(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(c){var a=o[c];a===!1?i.removeAttribute(c):i.setAttribute(c,a===!0?"":a)}))})}function Vn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=c.reduce(function(l,u){return l[u]="",l},{});!q(o)||!K(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Gn={name:"applyStyles",enabled:!0,phase:"write",fn:Fn,effect:Vn,requires:["computeStyles"]};function j(e){return e.split("-")[0]}var ne=Math.max,Ue=Math.min,ue=Math.round;function Je(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yt(){return!/^((?!chrome|android).)*safari/i.test(Je())}function de(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&q(e)&&(o=e.offsetWidth>0&&ue(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ue(r.height)/e.offsetHeight||1);var c=te(e)?W(e):window,a=c.visualViewport,l=!yt()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,h=r.width/o,_=r.height/i;return{width:h,height:_,top:d,right:u+h,bottom:d+_,left:u,x:u,y:d}}function et(e){var t=de(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qe(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Y(e){return W(e).getComputedStyle(e)}function $n(e){return["table","td","th"].indexOf(K(e))>=0}function X(e){return((te(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ce(e){return K(e)==="html"?e:e.assignedSlot||e.parentNode||(Qe(e)?e.host:null)||X(e)}function Lt(e){return!q(e)||Y(e).position==="fixed"?null:e.offsetParent}function jn(e){var t=/firefox/i.test(Je()),n=/Trident/i.test(Je());if(n&&q(e)){var r=Y(e);if(r.position==="fixed")return null}var o=Ce(e);for(Qe(o)&&(o=o.host);q(o)&&["html","body"].indexOf(K(o))<0;){var i=Y(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function be(e){for(var t=W(e),n=Lt(e);n&&$n(n)&&Y(n).position==="static";)n=Lt(n);return n&&(K(n)==="html"||K(n)==="body"&&Y(n).position==="static")?t:n||jn(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ge(e,t,n){return ne(e,Ue(t,n))}function Yn(e,t,n){var r=ge(e,t,n);return r>n?n:r}function Nt(){return{top:0,right:0,bottom:0,left:0}}function St(e){return Object.assign({},Nt(),e)}function Ut(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,St(typeof t!="number"?t:Ut(t,me))};function Kn(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,a=j(n.placement),l=tt(a),u=[k,$].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!c)){var h=zn(o.padding,n),_=et(i),p=l==="y"?B:k,m=l==="y"?G:$,E=n.rects.reference[d]+n.rects.reference[l]-c[l]-n.rects.popper[d],v=c[l]-n.rects.reference[l],T=be(i),w=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,P=E/2-v/2,g=h[p],I=w-_[d]-h[m],M=w/2-_[d]/2+P,L=ge(g,M,I),N=l;n.modifiersData[r]=(t={},t[N]=L,t.centerOffset=L-M,t)}}function Zn(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if({}.NODE_ENV!=="production"&&(q(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Pt(t.elements.popper,o)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Xn={name:"arrow",enabled:!0,phase:"main",fn:Kn,effect:Zn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pe(e){return e.split("-")[1]}var Qn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jn(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ue(n*o)/o||0,y:ue(r*o)/o||0}}function Ct(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,_=c.x,p=_===void 0?0:_,m=c.y,E=m===void 0?0:m,v=typeof d=="function"?d({x:p,y:E}):{x:p,y:E};p=v.x,E=v.y;var T=c.hasOwnProperty("x"),w=c.hasOwnProperty("y"),P=k,g=B,I=window;if(u){var M=be(n),L="clientHeight",N="clientWidth";if(M===W(n)&&(M=X(n),Y(M).position!=="static"&&a==="absolute"&&(L="scrollHeight",N="scrollWidth")),M=M,o===B||(o===k||o===$)&&i===ve){g=G;var S=h&&M===I&&I.visualViewport?I.visualViewport.height:M[L];E-=S-r.height,E*=l?1:-1}if(o===k||(o===B||o===G)&&i===ve){P=$;var U=h&&M===I&&I.visualViewport?I.visualViewport.width:M[N];p-=U-r.width,p*=l?1:-1}}var A=Object.assign({position:a},u&&Qn),D=d===!0?Jn({x:p,y:E},W(n)):{x:p,y:E};if(p=D.x,E=D.y,l){var R;return Object.assign({},A,(R={},R[g]=w?"0":"",R[P]=T?"0":"",R.transform=(I.devicePixelRatio||1)<=1?"translate("+p+"px, "+E+"px)":"translate3d("+p+"px, "+E+"px, 0)",R))}return Object.assign({},A,(t={},t[g]=w?E+"px":"",t[P]=T?p+"px":"",t.transform="",t))}function er(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,c=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a;if({}.NODE_ENV!=="production"){var u=Y(t.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(h){return u.indexOf(h)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
204
+ `,tt={AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",TOP:"top",TOP_START:"top-start",TOP_END:"top-end"};function He(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>He(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>He(e[i],t,n)))))),o}var x="top",$="bottom",j="right",W="left",xe="auto",ge=[x,$,j,W],fe="start",Te="end",kn="clippingParents",Pt="viewport",Me="popper",qn="reference",Nt=ge.reduce(function(e,t){return e.concat([t+"-"+fe,t+"-"+Te])},[]),St=[].concat(ge,[xe]).reduce(function(e,t){return e.concat([t,t+"-"+fe,t+"-"+Te])},[]),Vn="beforeRead",Fn="read",Gn="afterRead",$n="beforeMain",jn="main",zn="afterMain",Yn="beforeWrite",Zn="write",Kn="afterWrite",nt=[Vn,Fn,Gn,$n,jn,zn,Yn,Zn,Kn];function X(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function re(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ot(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!q(i)||!X(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function Jn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(l,c){return l[c]="",l},{});!q(r)||!X(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Qn={name:"applyStyles",enabled:!0,phase:"write",fn:Xn,effect:Jn,requires:["computeStyles"]};function z(e){return e.split("-")[0]}var ie=Math.max,We=Math.min,_e=Math.round;function rt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ut(){return!/^((?!chrome|android).)*safari/i.test(rt())}function he(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&q(e)&&(r=e.offsetWidth>0&&_e(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_e(o.height)/e.offsetHeight||1);var u=re(e)?k(e):window,s=u.visualViewport,l=!Ut()&&n,c=(o.left+(l&&s?s.offsetLeft:0))/r,d=(o.top+(l&&s?s.offsetTop:0))/i,h=o.width/r,f=o.height/i;return{width:h,height:f,top:d,right:c+h,bottom:d+f,left:c,x:c,y:d}}function it(e){var t=he(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ot(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Y(e){return k(e).getComputedStyle(e)}function eo(e){return["table","td","th"].indexOf(X(e))>=0}function ee(e){return((re(e)?e.ownerDocument:e.document)||window.document).documentElement}function ke(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(ot(e)?e.host:null)||ee(e)}function Rt(e){return!q(e)||Y(e).position==="fixed"?null:e.offsetParent}function to(e){var t=/firefox/i.test(rt()),n=/Trident/i.test(rt());if(n&&q(e)){var o=Y(e);if(o.position==="fixed")return null}var r=ke(e);for(ot(r)&&(r=r.host);q(r)&&["html","body"].indexOf(X(r))<0;){var i=Y(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Ae(e){for(var t=k(e),n=Rt(e);n&&eo(n)&&Y(n).position==="static";)n=Rt(n);return n&&(X(n)==="html"||X(n)==="body"&&Y(n).position==="static")?t:n||to(e)||t}function at(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oe(e,t,n){return ie(e,We(t,n))}function no(e,t,n){var o=Oe(e,t,n);return o>n?n:o}function Dt(){return{top:0,right:0,bottom:0,left:0}}function Bt(e){return Object.assign({},Dt(),e)}function Ht(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var oo=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Bt(typeof t!="number"?t:Ht(t,ge))};function ro(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,s=z(n.placement),l=at(s),c=[W,j].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!u)){var h=oo(r.padding,n),f=it(i),_=l==="y"?x:W,m=l==="y"?$:j,E=n.rects.reference[d]+n.rects.reference[l]-u[l]-n.rects.popper[d],v=u[l]-n.rects.reference[l],T=Ae(i),A=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,P=E/2-v/2,b=h[_],I=A-f[d]-h[m],M=A/2-f[d]/2+P,N=Oe(b,M,I),S=l;n.modifiersData[o]=(t={},t[S]=N,t.centerOffset=N-M,t)}}function io(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;if(r!=null&&!(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r))){if({}.NODE_ENV!=="production"&&(q(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Ct(t.elements.popper,r)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=r}}const ao={name:"arrow",enabled:!0,phase:"main",fn:ro,effect:io,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e){return e.split("-")[1]}var so={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lo(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:_e(n*r)/r||0,y:_e(o*r)/r||0}}function xt(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=u.x,_=f===void 0?0:f,m=u.y,E=m===void 0?0:m,v=typeof d=="function"?d({x:_,y:E}):{x:_,y:E};_=v.x,E=v.y;var T=u.hasOwnProperty("x"),A=u.hasOwnProperty("y"),P=W,b=x,I=window;if(c){var M=Ae(n),N="clientHeight",S="clientWidth";if(M===k(n)&&(M=ee(n),Y(M).position!=="static"&&s==="absolute"&&(N="scrollHeight",S="scrollWidth")),M=M,r===x||(r===W||r===j)&&i===Te){b=$;var U=h&&M===I&&I.visualViewport?I.visualViewport.height:M[N];E-=U-o.height,E*=l?1:-1}if(r===W||(r===x||r===$)&&i===Te){P=j;var C=h&&M===I&&I.visualViewport?I.visualViewport.width:M[S];_-=C-o.width,_*=l?1:-1}}var w=Object.assign({position:s},c&&so),D=d===!0?lo({x:_,y:E},k(n)):{x:_,y:E};if(_=D.x,E=D.y,l){var B;return Object.assign({},w,(B={},B[b]=A?"0":"",B[P]=T?"0":"",B.transform=(I.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",B))}return Object.assign({},w,(t={},t[b]=A?E+"px":"",t[P]=T?_+"px":"",t.transform="",t))}function co(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s;if({}.NODE_ENV!=="production"){var c=Y(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(h){return c.indexOf(h)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
127
205
 
128
206
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
129
207
 
130
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:j(t.placement),variation:pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ct(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ct(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:er,data:{}};var De={passive:!0};function nr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,c=r.resize,a=c===void 0?!0:c,l=W(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,De)}),a&&l.addEventListener("resize",n.update,De),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,De)}),a&&l.removeEventListener("resize",n.update,De)}}const rr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nr,data:{}};var or={left:"right",right:"left",bottom:"top",top:"bottom"};function Re(e){return e.replace(/left|right|bottom|top/g,function(t){return or[t]})}var ir={start:"end",end:"start"};function Dt(e){return e.replace(/start|end/g,function(t){return ir[t]})}function nt(e){var t=W(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rt(e){return de(X(e)).left+nt(e).scrollLeft}function ar(e,t){var n=W(e),r=X(e),o=n.visualViewport,i=r.clientWidth,c=r.clientHeight,a=0,l=0;if(o){i=o.width,c=o.height;var u=yt();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:c,x:a+rt(e),y:l}}function sr(e){var t,n=X(e),r=nt(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ne(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ne(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+rt(e),l=-r.scrollTop;return Y(o||n).direction==="rtl"&&(a+=ne(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:a,y:l}}function ot(e){var t=Y(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Rt(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:q(e)&&ot(e)?e:Rt(Ce(e))}function Ie(e,t){var n;t===void 0&&(t=[]);var r=Rt(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=W(r),c=o?[i].concat(i.visualViewport||[],ot(r)?r:[]):r,a=t.concat(c);return o?a:a.concat(Ie(Ce(c)))}function it(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lr(e,t){var n=de(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ht(e,t,n){return t===wt?it(ar(e,n)):te(t)?lr(t,n):it(sr(X(e)))}function cr(e){var t=Ie(Ce(e)),n=["absolute","fixed"].indexOf(Y(e).position)>=0,r=n&&q(e)?be(e):e;return te(r)?t.filter(function(o){return te(o)&&Pt(o,r)&&K(o)!=="body"}):[]}function ur(e,t,n,r){var o=t==="clippingParents"?cr(e):[].concat(t),i=[].concat(o,[n]),c=i[0],a=i.reduce(function(l,u){var d=Ht(e,u,r);return l.top=ne(d.top,l.top),l.right=Ue(d.right,l.right),l.bottom=Ue(d.bottom,l.bottom),l.left=ne(d.left,l.left),l},Ht(e,c,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function xt(e){var t=e.reference,n=e.element,r=e.placement,o=r?j(r):null,i=r?pe(r):null,c=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case B:l={x:c,y:t.y-n.height};break;case G:l={x:c,y:t.y+t.height};break;case $:l={x:t.x+t.width,y:a};break;case k:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?tt(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ce:l[u]=l[u]-(t[d]/2-n[d]/2);break;case ve:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Te(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,c=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Sn:a,u=n.rootBoundary,d=u===void 0?wt:u,h=n.elementContext,_=h===void 0?Ee:h,p=n.altBoundary,m=p===void 0?!1:p,E=n.padding,v=E===void 0?0:E,T=St(typeof v!="number"?v:Ut(v,me)),w=_===Ee?Un:Ee,P=e.rects.popper,g=e.elements[m?w:_],I=ur(te(g)?g:g.contextElement||X(e.elements.popper),l,d,c),M=de(e.elements.reference),L=xt({reference:M,element:P,strategy:"absolute",placement:o}),N=it(Object.assign({},P,L)),S=_===Ee?N:M,U={top:I.top-S.top+T.top,bottom:S.bottom-I.bottom+T.bottom,left:I.left-S.left+T.left,right:S.right-I.right+T.right},A=e.modifiersData.offset;if(_===Ee&&A){var D=A[o];Object.keys(U).forEach(function(R){var oe=[$,G].indexOf(R)>=0?1:-1,ie=[B,G].indexOf(R)>=0?"y":"x";U[R]+=D[ie]*oe})}return U}function dr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Ot:l,d=pe(r),h=d?a?At:At.filter(function(m){return pe(m)===d}):me,_=h.filter(function(m){return u.indexOf(m)>=0});_.length===0&&(_=h,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=_.reduce(function(m,E){return m[E]=Te(e,{placement:E,boundary:o,rootBoundary:i,padding:c})[j(E)],m},{});return Object.keys(p).sort(function(m,E){return p[m]-p[E]})}function pr(e){if(j(e)===Se)return[];var t=Re(e);return[Dt(e),t,Dt(t)]}function fr(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!0:c,l=n.fallbackPlacements,u=n.padding,d=n.boundary,h=n.rootBoundary,_=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,E=n.allowedAutoPlacements,v=t.options.placement,T=j(v),w=T===v,P=l||(w||!m?[Re(v)]:pr(v)),g=[v].concat(P).reduce(function(_e,J){return _e.concat(j(J)===Se?dr(t,{placement:J,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:E}):J)},[]),I=t.rects.reference,M=t.rects.popper,L=new Map,N=!0,S=g[0],U=0;U<g.length;U++){var A=g[U],D=j(A),R=pe(A)===ce,oe=[B,G].indexOf(D)>=0,ie=oe?"width":"height",V=Te(t,{placement:A,boundary:d,rootBoundary:h,altBoundary:_,padding:u}),z=oe?R?$:k:R?G:B;I[ie]>M[ie]&&(z=Re(z));var xe=Re(z),ae=[];if(i&&ae.push(V[D]<=0),a&&ae.push(V[z]<=0,V[xe]<=0),ae.every(function(_e){return _e})){S=A,N=!1;break}L.set(A,ae)}if(N)for(var Be=m?3:1,ft=function(J){var ye=g.find(function(We){var se=L.get(We);if(se)return se.slice(0,J).every(function(ht){return ht})});if(ye)return S=ye,"break"},Oe=Be;Oe>0;Oe--){var ke=ft(Oe);if(ke==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const hr={name:"flip",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kt(e){return[B,$,G,k].some(function(t){return e[t]>=0})}function _r(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=Te(t,{elementContext:"reference"}),a=Te(t,{altBoundary:!0}),l=Bt(c,r),u=Bt(a,o,i),d=kt(l),h=kt(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const mr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_r};function vr(e,t,n){var r=j(e),o=[k,B].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=i[0],a=i[1];return c=c||0,a=(a||0)*o,[k,$].indexOf(r)>=0?{x:a,y:c}:{x:c,y:a}}function Er(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,c=Ot.reduce(function(d,h){return d[h]=vr(h,t.rects,i),d},{}),a=c[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=c}const br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Er};function gr(e){var t=e.state,n=e.name;t.modifiersData[n]=xt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ir={name:"popperOffsets",enabled:!0,phase:"read",fn:gr,data:{}};function Tr(e){return e==="x"?"y":"x"}function Mr(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!1:c,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.padding,_=n.tether,p=_===void 0?!0:_,m=n.tetherOffset,E=m===void 0?0:m,v=Te(t,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),T=j(t.placement),w=pe(t.placement),P=!w,g=tt(T),I=Tr(g),M=t.modifiersData.popperOffsets,L=t.rects.reference,N=t.rects.popper,S=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,U=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(M){if(i){var R,oe=g==="y"?B:k,ie=g==="y"?G:$,V=g==="y"?"height":"width",z=M[g],xe=z+v[oe],ae=z-v[ie],Be=p?-N[V]/2:0,ft=w===ce?L[V]:N[V],Oe=w===ce?-N[V]:-L[V],ke=t.elements.arrow,_e=p&&ke?et(ke):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nt(),ye=J[oe],We=J[ie],se=ge(0,L[V],_e[V]),ht=P?L[V]/2-Be-se-ye-U.mainAxis:ft-se-ye-U.mainAxis,Uo=P?-L[V]/2+Be+se+We+U.mainAxis:Oe+se+We+U.mainAxis,_t=t.elements.arrow&&be(t.elements.arrow),Co=_t?g==="y"?_t.clientTop||0:_t.clientLeft||0:0,rn=(R=A==null?void 0:A[g])!=null?R:0,Do=z+ht-rn-Co,Ro=z+Uo-rn,on=ge(p?Ue(xe,Do):xe,z,p?ne(ae,Ro):ae);M[g]=on,D[g]=on-z}if(a){var an,Ho=g==="x"?B:k,xo=g==="x"?G:$,le=M[I],qe=I==="y"?"height":"width",sn=le+v[Ho],ln=le-v[xo],mt=[B,k].indexOf(T)!==-1,cn=(an=A==null?void 0:A[I])!=null?an:0,un=mt?sn:le-L[qe]-N[qe]-cn+U.altAxis,dn=mt?le+L[qe]+N[qe]-cn-U.altAxis:ln,pn=p&&mt?Yn(un,le,dn):ge(p?un:sn,le,p?dn:ln);M[I]=pn,D[I]=pn-le}t.modifiersData[r]=D}}const wr={name:"preventOverflow",enabled:!0,phase:"main",fn:Mr,requiresIfExists:["offset"]};function Ar(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Or(e){return e===W(e)||!q(e)?nt(e):Ar(e)}function yr(e){var t=e.getBoundingClientRect(),n=ue(t.width)/e.offsetWidth||1,r=ue(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Pr(e,t,n){n===void 0&&(n=!1);var r=q(t),o=q(t)&&yr(t),i=X(t),c=de(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((K(t)!=="body"||ot(i))&&(a=Or(t)),q(t)?(l=de(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=rt(i))),{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function Lr(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Nr(e){var t=Lr(e);return Xe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Sr(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var re='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ur='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Wt=["name","enabled","phase","fn","effect","requires","options"];function Cr(e){e.forEach(function(t){[].concat(Object.keys(t),Wt).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Q(re,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Q(re,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Xe.indexOf(t.phase)<0&&console.error(Q(re,t.name,'"phase"',"either "+Xe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Q(re,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Q(re,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Q(re,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Q(re,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Wt.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Q(Ur,String(t.name),r,r))})})})}function Dr(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function Rr(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Hr="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function xr(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Ft:o;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],_=!1,p={state:d,setOptions:function(T){var w=typeof T=="function"?T(d.options):T;E(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:te(a)?Ie(a):a.contextElement?Ie(a.contextElement):[],popper:Ie(l)};var P=Nr(Rr([].concat(r,d.options.modifiers)));if(d.orderedModifiers=P.filter(function(A){return A.enabled}),{}.NODE_ENV!=="production"){var g=Dr([].concat(P,d.options.modifiers),function(A){var D=A.name;return D});if(Cr(g),j(d.options.placement)===Se){var I=d.orderedModifiers.find(function(A){var D=A.name;return D==="flip"});I||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var M=Y(l),L=M.marginTop,N=M.marginRight,S=M.marginBottom,U=M.marginLeft;[L,N,S,U].some(function(A){return parseFloat(A)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!_){var T=d.elements,w=T.reference,P=T.popper;if(!Vt(w,P)){({}).NODE_ENV!=="production"&&console.error(qt);return}d.rects={reference:Pr(w,be(P),d.options.strategy==="fixed"),popper:et(P)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var g=0,I=0;I<d.orderedModifiers.length;I++){if({}.NODE_ENV!=="production"&&(g+=1,g>100)){console.error(Hr);break}if(d.reset===!0){d.reset=!1,I=-1;continue}var M=d.orderedModifiers[I],L=M.fn,N=M.options,S=N===void 0?{}:N,U=M.name;typeof L=="function"&&(d=L({state:d,options:S,name:U,instance:p})||d)}}},update:Sr(function(){return new Promise(function(v){p.forceUpdate(),v(d)})}),destroy:function(){E(),_=!0}};if(!Vt(a,l))return{}.NODE_ENV!=="production"&&console.error(qt),p;p.setOptions(u).then(function(v){!_&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var T=v.name,w=v.options,P=w===void 0?{}:w,g=v.effect;if(typeof g=="function"){var I=g({state:d,name:T,instance:p,options:P}),M=function(){};h.push(I||M)}})}function E(){h.forEach(function(v){return v()}),h=[]}return p}}var Br=[rr,Ir,tr,Gn,br,hr,wr,Xn,mr],Gt=xr({defaultModifiers:Br});function at(e,t,n,r){t?(e.classList.remove(r),e.classList.add(n)):(e.classList.add(r),e.classList.remove(n))}let F;const Me={},st={SHIFT:"shift-key"};function $t(){F&&(document.removeEventListener("click",F.globalOnClick),document.removeEventListener("keyup",F.globalOnKeyup),document.removeEventListener("keydown",F.globalOnKeydown),F=null)}function lt(){const e=document.querySelectorAll(`${f(s.UTAH_DESIGN_SYSTEM)} ${f(s.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(s.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const r=document.querySelector(`[aria-controls="${n}"]`);r&&r.setAttribute("aria-expanded","false")}at(t,!1,s.POPUP__VISIBLE,s.POPUP__HIDDEN)})}function kr(){F&&$t(),F={},F.globalOnClick=lt,document.addEventListener("click",F.globalOnClick),F.globalOnKeyup=e=>{e.key==="Escape"&&lt(),e.shiftKey||(Me[st.SHIFT]=!1),Me[e.key]=!1},document.addEventListener("keyup",F.globalOnKeyup),F.globalOnKeydown=e=>{e.shiftKey&&(Me[st.SHIFT]=!0),Me[e.key]=!0},document.addEventListener("keydown",F.globalOnKeydown)}function Wr(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function we(e,t,n,r,o){let i=NaN,c=NaN;const a=300,l=150,u=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",r);function d(_){clearTimeout(i),clearTimeout(c),(!(o!=null&&o.isPerformPopup)||o!=null&&o.isPerformPopup&&o.isPerformPopup())&&(i=window.setTimeout(()=>{Gt(t,n,{placement:(o==null?void 0:o.popupPlacement)||Ze.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),at(n,!0,s.POPUP__VISIBLE,s.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(f(s.TOOLTIP__WRAPPER)).forEach(p=>p.classList.add(s.TOOLTIP__WRAPPER__HIDDEN))},_))}function h(_){clearTimeout(i),clearTimeout(c),(!(o!=null&&o.isPerformPopup)||o.isPerformPopup())&&(c=window.setTimeout(()=>{at(n,!1,s.POPUP__VISIBLE,s.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},_))}if(o!=null&&o.preventOnClickHandling||(e.addEventListener("focusin",()=>d(l)),e.addEventListener("focusout",()=>h(l))),o!=null&&o.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(a)),e.addEventListener("mouseleave",()=>h(a))),!(o!=null&&o.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=_=>{var m;const p=t.getAttribute("aria-expanded")==="true";(!(o!=null&&o.isPerformPopup)||o.isPerformPopup())&&(_.stopPropagation(),_.preventDefault(),p&&t.getAttribute("aria-expanded")==="true"?(h(u),(m=document.activeElement)==null||m.blur()):(Wr()&&lt(),d(u))),o!=null&&o.onClick&&o.onClick(_)}}}const qr=`<div class="popup__wrapper popup__wrapper--hidden">
208
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:z(t.placement),variation:me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xt(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xt(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const uo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:co,data:{}};var qe={passive:!0};function po(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,s=u===void 0?!0:u,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,qe)}),s&&l.addEventListener("resize",n.update,qe),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,qe)}),s&&l.removeEventListener("resize",n.update,qe)}}const fo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:po,data:{}};var _o={left:"right",right:"left",bottom:"top",top:"bottom"};function Ve(e){return e.replace(/left|right|bottom|top/g,function(t){return _o[t]})}var ho={start:"end",end:"start"};function Wt(e){return e.replace(/start|end/g,function(t){return ho[t]})}function st(e){var t=k(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function lt(e){return he(ee(e)).left+st(e).scrollLeft}function mo(e,t){var n=k(e),o=ee(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,s=0,l=0;if(r){i=r.width,u=r.height;var c=Ut();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:u,x:s+lt(e),y:l}}function Eo(e){var t,n=ee(e),o=st(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ie(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=ie(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+lt(e),l=-o.scrollTop;return Y(r||n).direction==="rtl"&&(s+=ie(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:s,y:l}}function ct(e){var t=Y(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function kt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:q(e)&&ct(e)?e:kt(ke(e))}function we(e,t){var n;t===void 0&&(t=[]);var o=kt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=k(o),u=r?[i].concat(i.visualViewport||[],ct(o)?o:[]):o,s=t.concat(u);return r?s:s.concat(we(ke(u)))}function ut(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vo(e,t){var n=he(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qt(e,t,n){return t===Pt?ut(mo(e,n)):re(t)?vo(t,n):ut(Eo(ee(e)))}function bo(e){var t=we(ke(e)),n=["absolute","fixed"].indexOf(Y(e).position)>=0,o=n&&q(e)?Ae(e):e;return re(o)?t.filter(function(r){return re(r)&&Ct(r,o)&&X(r)!=="body"}):[]}function Io(e,t,n,o){var r=t==="clippingParents"?bo(e):[].concat(t),i=[].concat(r,[n]),u=i[0],s=i.reduce(function(l,c){var d=qt(e,c,o);return l.top=ie(d.top,l.top),l.right=We(d.right,l.right),l.bottom=We(d.bottom,l.bottom),l.left=ie(d.left,l.left),l},qt(e,u,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Vt(e){var t=e.reference,n=e.element,o=e.placement,r=o?z(o):null,i=o?me(o):null,u=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case x:l={x:u,y:t.y-n.height};break;case $:l={x:u,y:t.y+t.height};break;case j:l={x:t.x+t.width,y:s};break;case W:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?at(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case fe:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Te:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Le(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?kn:s,c=n.rootBoundary,d=c===void 0?Pt:c,h=n.elementContext,f=h===void 0?Me:h,_=n.altBoundary,m=_===void 0?!1:_,E=n.padding,v=E===void 0?0:E,T=Bt(typeof v!="number"?v:Ht(v,ge)),A=f===Me?qn:Me,P=e.rects.popper,b=e.elements[m?A:f],I=Io(re(b)?b:b.contextElement||ee(e.elements.popper),l,d,u),M=he(e.elements.reference),N=Vt({reference:M,element:P,strategy:"absolute",placement:r}),S=ut(Object.assign({},P,N)),U=f===Me?S:M,C={top:I.top-U.top+T.top,bottom:U.bottom-I.bottom+T.bottom,left:I.left-U.left+T.left,right:U.right-I.right+T.right},w=e.modifiersData.offset;if(f===Me&&w){var D=w[r];Object.keys(C).forEach(function(B){var se=[j,$].indexOf(B)>=0?1:-1,le=[x,$].indexOf(B)>=0?"y":"x";C[B]+=D[le]*se})}return C}function go(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?St:l,d=me(o),h=d?s?Nt:Nt.filter(function(m){return me(m)===d}):ge,f=h.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=h,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var _=f.reduce(function(m,E){return m[E]=Le(e,{placement:E,boundary:r,rootBoundary:i,padding:u})[z(E)],m},{});return Object.keys(_).sort(function(m,E){return _[m]-_[E]})}function To(e){if(z(e)===xe)return[];var t=Ve(e);return[Wt(e),t,Wt(t)]}function Mo(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!0:u,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,f=n.altBoundary,_=n.flipVariations,m=_===void 0?!0:_,E=n.allowedAutoPlacements,v=t.options.placement,T=z(v),A=T===v,P=l||(A||!m?[Ve(v)]:To(v)),b=[v].concat(P).reduce(function(be,ne){return be.concat(z(ne)===xe?go(t,{placement:ne,boundary:d,rootBoundary:h,padding:c,flipVariations:m,allowedAutoPlacements:E}):ne)},[]),I=t.rects.reference,M=t.rects.popper,N=new Map,S=!0,U=b[0],C=0;C<b.length;C++){var w=b[C],D=z(w),B=me(w)===fe,se=[x,$].indexOf(D)>=0,le=se?"width":"height",F=Le(t,{placement:w,boundary:d,rootBoundary:h,altBoundary:f,padding:c}),Z=se?B?j:W:B?$:x;I[le]>M[le]&&(Z=Ve(Z));var Ge=Ve(Z),ce=[];if(i&&ce.push(F[D]<=0),s&&ce.push(F[Z]<=0,F[Ge]<=0),ce.every(function(be){return be})){U=w,S=!1;break}N.set(w,ce)}if(S)for(var $e=m?3:1,vt=function(ne){var Ce=b.find(function(ze){var ue=N.get(ze);if(ue)return ue.slice(0,ne).every(function(bt){return bt})});if(Ce)return U=Ce,"break"},Ue=$e;Ue>0;Ue--){var je=vt(Ue);if(je==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const Ao={name:"flip",enabled:!0,phase:"main",fn:Mo,requiresIfExists:["offset"],data:{_skip:!1}};function Ft(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gt(e){return[x,j,$,W].some(function(t){return e[t]>=0})}function Oo(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=Le(t,{elementContext:"reference"}),s=Le(t,{altBoundary:!0}),l=Ft(u,o),c=Ft(s,r,i),d=Gt(l),h=Gt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const wo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oo};function Lo(e,t,n){var o=z(e),r=[W,x].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],s=i[1];return u=u||0,s=(s||0)*r,[W,j].indexOf(o)>=0?{x:s,y:u}:{x:u,y:s}}function yo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=St.reduce(function(d,h){return d[h]=Lo(h,t.rects,i),d},{}),s=u[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const Po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yo};function No(e){var t=e.state,n=e.name;t.modifiersData[n]=Vt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const So={name:"popperOffsets",enabled:!0,phase:"read",fn:No,data:{}};function Uo(e){return e==="x"?"y":"x"}function Co(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!1:u,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,f=n.tether,_=f===void 0?!0:f,m=n.tetherOffset,E=m===void 0?0:m,v=Le(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),T=z(t.placement),A=me(t.placement),P=!A,b=at(T),I=Uo(b),M=t.modifiersData.popperOffsets,N=t.rects.reference,S=t.rects.popper,U=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,C=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(M){if(i){var B,se=b==="y"?x:W,le=b==="y"?$:j,F=b==="y"?"height":"width",Z=M[b],Ge=Z+v[se],ce=Z-v[le],$e=_?-S[F]/2:0,vt=A===fe?N[F]:S[F],Ue=A===fe?-S[F]:-N[F],je=t.elements.arrow,be=_&&je?it(je):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dt(),Ce=ne[se],ze=ne[le],ue=Oe(0,N[F],be[F]),bt=P?N[F]/2-$e-ue-Ce-C.mainAxis:vt-ue-Ce-C.mainAxis,Wr=P?-N[F]/2+$e+ue+ze+C.mainAxis:Ue+ue+ze+C.mainAxis,It=t.elements.arrow&&Ae(t.elements.arrow),kr=It?b==="y"?It.clientTop||0:It.clientLeft||0:0,cn=(B=w==null?void 0:w[b])!=null?B:0,qr=Z+bt-cn-kr,Vr=Z+Wr-cn,un=Oe(_?We(Ge,qr):Ge,Z,_?ie(ce,Vr):ce);M[b]=un,D[b]=un-Z}if(s){var dn,Fr=b==="x"?x:W,Gr=b==="x"?$:j,de=M[I],Ye=I==="y"?"height":"width",pn=de+v[Fr],fn=de-v[Gr],gt=[x,W].indexOf(T)!==-1,_n=(dn=w==null?void 0:w[I])!=null?dn:0,hn=gt?pn:de-N[Ye]-S[Ye]-_n+C.altAxis,mn=gt?de+N[Ye]+S[Ye]-_n-C.altAxis:fn,En=_&&gt?no(hn,de,mn):Oe(_?hn:pn,de,_?mn:fn);M[I]=En,D[I]=En-de}t.modifiersData[o]=D}}const Ro={name:"preventOverflow",enabled:!0,phase:"main",fn:Co,requiresIfExists:["offset"]};function Do(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bo(e){return e===k(e)||!q(e)?st(e):Do(e)}function Ho(e){var t=e.getBoundingClientRect(),n=_e(t.width)/e.offsetWidth||1,o=_e(t.height)/e.offsetHeight||1;return n!==1||o!==1}function xo(e,t,n){n===void 0&&(n=!1);var o=q(t),r=q(t)&&Ho(t),i=ee(t),u=he(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((X(t)!=="body"||ct(i))&&(s=Bo(t)),q(t)?(l=he(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=lt(i))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function Wo(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function ko(e){var t=Wo(e);return nt.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function qo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce(function(r,i){return r.replace(/%s/,i)},e)}var ae='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Vo='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',$t=["name","enabled","phase","fn","effect","requires","options"];function Fo(e){e.forEach(function(t){[].concat(Object.keys(t),$t).filter(function(n,o,r){return r.indexOf(n)===o}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(te(ae,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(te(ae,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":nt.indexOf(t.phase)<0&&console.error(te(ae,t.name,'"phase"',"either "+nt.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(te(ae,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(te(ae,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(te(ae,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(te(ae,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+$t.map(function(o){return'"'+o+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(o){e.find(function(r){return r.name===o})==null&&console.error(te(Vo,String(t.name),o,o))})})})}function Go(e,t){var n=new Set;return e.filter(function(o){var r=t(o);if(!n.has(r))return n.add(r),!0})}function $o(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var jt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",jo="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zt={placement:"bottom",modifiers:[],strategy:"absolute"};function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function zo(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?zt:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],f=!1,_={state:d,setOptions:function(T){var A=typeof T=="function"?T(d.options):T;E(),d.options=Object.assign({},i,d.options,A),d.scrollParents={reference:re(s)?we(s):s.contextElement?we(s.contextElement):[],popper:we(l)};var P=ko($o([].concat(o,d.options.modifiers)));if(d.orderedModifiers=P.filter(function(w){return w.enabled}),{}.NODE_ENV!=="production"){var b=Go([].concat(P,d.options.modifiers),function(w){var D=w.name;return D});if(Fo(b),z(d.options.placement)===xe){var I=d.orderedModifiers.find(function(w){var D=w.name;return D==="flip"});I||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var M=Y(l),N=M.marginTop,S=M.marginRight,U=M.marginBottom,C=M.marginLeft;[N,S,U,C].some(function(w){return parseFloat(w)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),_.update()},forceUpdate:function(){if(!f){var T=d.elements,A=T.reference,P=T.popper;if(!Yt(A,P)){({}).NODE_ENV!=="production"&&console.error(jt);return}d.rects={reference:xo(A,Ae(P),d.options.strategy==="fixed"),popper:it(P)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(w){return d.modifiersData[w.name]=Object.assign({},w.data)});for(var b=0,I=0;I<d.orderedModifiers.length;I++){if({}.NODE_ENV!=="production"&&(b+=1,b>100)){console.error(jo);break}if(d.reset===!0){d.reset=!1,I=-1;continue}var M=d.orderedModifiers[I],N=M.fn,S=M.options,U=S===void 0?{}:S,C=M.name;typeof N=="function"&&(d=N({state:d,options:U,name:C,instance:_})||d)}}},update:qo(function(){return new Promise(function(v){_.forceUpdate(),v(d)})}),destroy:function(){E(),f=!0}};if(!Yt(s,l))return{}.NODE_ENV!=="production"&&console.error(jt),_;_.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var T=v.name,A=v.options,P=A===void 0?{}:A,b=v.effect;if(typeof b=="function"){var I=b({state:d,name:T,instance:_,options:P}),M=function(){};h.push(I||M)}})}function E(){h.forEach(function(v){return v()}),h=[]}return _}}var Yo=[fo,So,uo,Qn,Po,Ao,Ro,ao,wo],Zt=zo({defaultModifiers:Yo});function dt(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let V;const ye={},pt={SHIFT:"shift-key"};function Kt(){V&&(document.removeEventListener("click",V.globalOnClick),document.removeEventListener("keyup",V.globalOnKeyup),document.removeEventListener("keydown",V.globalOnKeydown),V=null)}function ft(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}dt(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Zo(){V&&Kt(),V={},V.globalOnClick=ft,document.addEventListener("click",V.globalOnClick),V.globalOnKeyup=e=>{e.key==="Escape"&&ft(),e.shiftKey||(ye[pt.SHIFT]=!1),ye[e.key]=!1},document.addEventListener("keyup",V.globalOnKeyup),V.globalOnKeydown=e=>{e.shiftKey&&(ye[pt.SHIFT]=!0),ye[e.key]=!0},document.addEventListener("keydown",V.globalOnKeydown)}function Ko(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Pe(e,t,n,o,r){let i=NaN,u=NaN;const s=300,l=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Zt(t,n,{placement:(r==null?void 0:r.popupPlacement)||tt.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),dt(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(_=>_.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},f))}function h(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{dt(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},f))}if(r!=null&&r.preventOnClickHandling||(e.addEventListener("focusin",()=>d(l)),e.addEventListener("focusout",()=>h(l))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(s)),e.addEventListener("mouseleave",()=>h(s))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var m;const _=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),_&&t.getAttribute("aria-expanded")==="true"?(h(c),(m=document.activeElement)==null||m.blur()):(Ko()&&ft(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const Xo=`<div class="popup__wrapper popup__wrapper--hidden">
131
209
  <div class="popup__content">
132
210
  <div class="popup__arrow" data-popper-arrow></div>
133
211
  </div>
134
212
  </div>
135
- `;function ct(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const r=C();e.setAttribute("aria-controls",r);const o=b(qr);if(o.setAttribute("id",r),o.setAttribute("aria-labelledby",n),t!=null&&t.removePopupArrow){const i=o.querySelector(f(s.POPUP_ARROW));if(!i)throw new Error("renderPopup(): popup arrow missing (I wanted to remove it!!)");i.remove()}return o}function Fr(e){const t=e.closest("li");if(!t)throw console.error("element",e),new Error("toggleChildMenuExpansion: parent not found for child");t.querySelectorAll(":scope > ul").forEach(n=>{var i;const r=(i=n.closest("li"))==null?void 0:i.querySelector(f(s.POPUP_MENU__BUTTON_TITLE));if(!r)throw new Error("toggleChildMenuExpansion: button not found");const o=r.querySelector(`:scope > ${f(s.POPUP_MENU__CHEVRON)}`);if(!o)throw new Error("toggleChildMenuExpansion: chevron not found");n.classList.toggle(s.VISUALLY_HIDDEN),n.classList.contains(s.VISUALLY_HIDDEN)?(r.setAttribute("aria-expanded","false"),o.classList.add(s.IS_CLOSED),o.classList.remove(s.IS_OPEN)):(r.setAttribute("aria-expanded","true"),o.classList.remove(s.IS_CLOSED),o.classList.add(s.IS_OPEN))})}function Vr(e){return t=>{t.preventDefault(),t.stopPropagation(),Fr(e)}}function jt(){const e=b(Pn);return e.classList.add(s.IS_CLOSED),e}function Gr(e,t,n){var h,_;const r=b(Nn),o=r.querySelector(f(s.POPUP_MENU__TITLE));if(!o)throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");const i=r.querySelector(f(s.POPUP_MENU__BUTTON_TITLE));if(!i)throw new Error("renderPopupMenuItem: menuButton not found");const c=r.querySelector(f(s.POPUP_MENU__LINK_TITLE));if(!c)throw new Error("renderPopupMenuItem: aHref not found");const a=r.querySelector(f(s.POPUP_MENU__PLAIN_TITLE));if(!a)throw new Error("renderPopupMenuItem: plainTitle not found");const l=r.querySelector(f(s.POPUP_MENU__DIVIDER));if(!l)throw new Error("renderPopupMenuItem: menuDivider not found");const u=r.querySelector(`button ${f(s.POPUP_MENU__LINK_TEXT)}`);if(!u)throw new Error("renderPopupMenuItem: titleSpanButton not found");const d=r.querySelector(`a ${f(s.POPUP_MENU__LINK_TEXT)}`);if(!d)throw new Error("renderPopupMenuItem: titleSpanLink not found");if(t.actionMenu){let p;switch(n.childrenMenuType){case x.FLYOUT:{p=jt(),i.appendChild(p),i.setAttribute("id",C());const m=ut({menuItems:t.actionMenu,title:t.title},i,{...n,removePopupArrow:!0});r.appendChild(m),we(r,i,m,"menu",{popupPlacement:Ze.RIGHT_START,preventOnClickHandling:!0,shouldFocusOnHover:!0}),c.remove(),a.remove();break}case x.INLINE:{const m=fe(t.actionMenu,n),E=C();m.setAttribute("id",E),m.classList.add(s.VISUALLY_HIDDEN),r.appendChild(m),i.onclick=Vr(i),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",E),p=jt(),i.appendChild(p),c.remove(),a.remove(),r.addEventListener("focusin",v=>{var T,w,P,g;for(let I=(T=v.target)==null?void 0:T.closest("ul");I;I=(w=I.parentElement)==null?void 0:w.closest("ul"))I.classList.remove(s.VISUALLY_HIDDEN),i.setAttribute("aria-expanded","true"),v.target!==i&&((P=p==null?void 0:p.classList)==null||P.remove(s.IS_CLOSED),(g=p==null?void 0:p.classList)==null||g.add(s.IS_OPEN))});break}case x.MEGA_MENU:{const m=fe(t.actionMenu,n),E=C();m.setAttribute("id",E),r.appendChild(m),c.remove(),i.remove(),a.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${t.actionMenu}'`)}l.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,c.remove(),l.remove(),a.remove();else if(t.actionUrl)c.setAttribute("href",t.actionUrl.url),i.remove(),l.remove(),a.remove();else if(t.actionFunctionUrl)c.setAttribute("href",t.actionFunctionUrl.url),c.onclick=p=>{var m,E;(m=t.actionFunctionUrl)!=null&&m.skipHandleEvent||(p.stopPropagation(),p.preventDefault()),(E=t.actionFunctionUrl)==null||E.actionFunction(p)},i.remove(),l.remove(),a.remove();else if(t.isDivider)o.remove(),r.setAttribute("aria-hidden","true"),r.setAttribute("role","separator");else throw console.error(t),new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");if(!t.isDivider&&(u.appendChild(document.createTextNode(t.title)),d.appendChild(document.createTextNode(t.title)),(h=t.actionUrl)!=null&&h.openInNewTab||(_=t.actionFunctionUrl)!=null&&_.openInNewTab)){c.setAttribute("target","_blank");const p=b(Mt);u.appendChild(p),d.appendChild(p)}return(t.isSelected||t.actionMenu&&Ne(t.actionMenu,["actionMenu"],p=>!!p.isSelected))&&(i.classList.add(s.MENU_ITEM__SELECTED),c.classList.add(s.MENU_ITEM__SELECTED)),t.isSelected?r.classList.add(s.MENU_ITEM__SELECTED):r.classList.remove(s.MENU_ITEM__SELECTED),e.appendChild(r),r}function fe(e,t){const n=b(Ln);return e.forEach(r=>Gr(n,r,t)),n}function ut(e,t,n){const r=ct(t,{removePopupArrow:n.removePopupArrow}),o=r.querySelector(f(s.POPUP_CONTENT_WRAPPER));if(!o)throw new Error("renderPopupMenu: contentWrapper not found");const i=fe(e.menuItems,n);return i.setAttribute("aria-label",e.title),o.appendChild(i),r}function $r(e){const t=b(On);t.getAttribute("id")||t.setAttribute("id",C());const n=document.createTextNode(e.title),r=t instanceof HTMLCollection?t[0]:t;e.showTitle&&r.classList.add(s.ACTION_ITEM__ICON_BUTTON_TITLE),r.classList.add(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),r.classList.remove(s.ACTION_ITEM);const o=r.querySelector(f(s.ACTION_ITEM__TITLE));if(!o)throw new Error("renderActionItem: titleDiv not found");o.appendChild(n),e.showTitle?o.classList.remove(s.VISUALLY_HIDDEN):o.classList.add(s.VISUALLY_HIDDEN);const i=t.querySelector(f(s.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const c=$e(e.badge);c&&i.appendChild(c);const a=b(e.icon);a.setAttribute("role","presentation"),i.appendChild(a);let l=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const u=C();i.setAttribute("id",u),l=b(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const u=C();i.setAttribute("id",u),l=b(yn);const d=l.querySelector(f(s.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!d)throw new Error("renderMobileActionItem: actionItemContentTitle not found");d.appendChild(document.createTextNode(e.actionPopupMenu.title));const h=fe(e.actionPopupMenu.menuItems,{childrenMenuType:x.INLINE});l.appendChild(h)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return{actionItemElement:t,actionItemContent:l}}function jr(){var i,c,a;const e=document.getElementById(s.MOBILE_MENU_ACTON_BAR__HOME_ID);if(!e)throw new Error("renderMobileActionItems: homeActionItem not found");const t=e.closest(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("renderMobileActionItems: homeActionItemWrapper not found");const r=!!O().utahId?document.getElementById(s.MOBILE_MENU_ACTON_BAR__PROFILE_ID):null,o=(i=r==null?void 0:r.closest)==null?void 0:i.call(r,f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));(a=(c=[...O().actionItems||[]].reverse())==null?void 0:c.map(l=>({actionItem:l,...$r(l)})))==null||a.forEach(({actionItem:l,actionItemContent:u,actionItemElement:d})=>{let h;switch(l.mobileMenuLocation){case"left":h=t;break;case"none":h=null;break;case"right":default:h=o||t;break}if(h&&(h.after(d),u)){const _=Ge(u);let p=null;l.actionDom?p="dialog":l.actionPopupMenu&&(p="menu"),Ke(d,_,d,{ariaHasPopupType:p,shouldOnClickCloseMenu:!1})}})}const Yr=`<h1 class="utds-logo-wrapper"></h1>
136
- `,zr=`<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
137
- `,Kr=`<span class="utds-logo-vert-line"></span>
138
- `,Zr=`<div class="utds-citizen-experience-wrapper"></div>
139
- `,Xr=`<div class="utds-action-items-wrapper"></div>
140
- `,Qr=`<div class="utds-header-action-item">
213
+ `;function _t(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const o=R();e.setAttribute("aria-controls",o);const r=g(Xo);if(r.setAttribute("id",o),r.setAttribute("aria-labelledby",n),t!=null&&t.removePopupArrow){const i=r.querySelector(p(a.POPUP_ARROW));if(!i)throw new Error("renderPopup(): popup arrow missing (I wanted to remove it!!)");i.remove()}return r}function Jo(e){const t=e.closest("li");if(!t)throw console.error("element",e),new Error("toggleChildMenuExpansion: parent not found for child");t.querySelectorAll(":scope > ul").forEach(n=>{var i;const o=(i=n.closest("li"))==null?void 0:i.querySelector(p(a.POPUP_MENU__BUTTON_TITLE));if(!o)throw new Error("toggleChildMenuExpansion: button not found");const r=o.querySelector(`:scope > ${p(a.POPUP_MENU__CHEVRON)}`);if(!r)throw new Error("toggleChildMenuExpansion: chevron not found");n.classList.toggle(a.VISUALLY_HIDDEN),n.classList.contains(a.VISUALLY_HIDDEN)?(o.setAttribute("aria-expanded","false"),r.classList.add(a.IS_CLOSED),r.classList.remove(a.IS_OPEN)):(o.setAttribute("aria-expanded","true"),r.classList.remove(a.IS_CLOSED),r.classList.add(a.IS_OPEN))})}function Qo(e){return t=>{t.preventDefault(),t.stopPropagation(),Jo(e)}}function Xt(){const e=g(Hn);return e.classList.add(a.IS_CLOSED),e}function er(e,t,n){var h,f;const o=g(Wn),r=o.querySelector(p(a.POPUP_MENU__TITLE));if(!r)throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");const i=o.querySelector(p(a.POPUP_MENU__BUTTON_TITLE));if(!i)throw new Error("renderPopupMenuItem: menuButton not found");const u=o.querySelector(p(a.POPUP_MENU__LINK_TITLE));if(!u)throw new Error("renderPopupMenuItem: aHref not found");const s=o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE));if(!s)throw new Error("renderPopupMenuItem: plainTitle not found");const l=o.querySelector(p(a.POPUP_MENU__DIVIDER));if(!l)throw new Error("renderPopupMenuItem: menuDivider not found");const c=o.querySelector(`button ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!c)throw new Error("renderPopupMenuItem: titleSpanButton not found");const d=o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!d)throw new Error("renderPopupMenuItem: titleSpanLink not found");if(t.actionMenu){let _;switch(n.childrenMenuType){case G.FLYOUT:{_=Xt(),i.appendChild(_),i.setAttribute("id",R());const m=ht({menuItems:t.actionMenu,title:t.title},i,{...n,removePopupArrow:!0});o.appendChild(m),Pe(o,i,m,"menu",{popupPlacement:tt.RIGHT_START,preventOnClickHandling:!0,shouldFocusOnHover:!0}),u.remove(),s.remove();break}case G.INLINE:{const m=Ee(t.actionMenu,n),E=R();m.setAttribute("id",E),m.classList.add(a.VISUALLY_HIDDEN),o.appendChild(m),i.onclick=Qo(i),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",E),_=Xt(),i.appendChild(_),u.remove(),s.remove(),o.addEventListener("focusin",v=>{var T,A,P,b;for(let I=(T=v.target)==null?void 0:T.closest("ul");I;I=(A=I.parentElement)==null?void 0:A.closest("ul"))I.classList.remove(a.VISUALLY_HIDDEN),i.setAttribute("aria-expanded","true"),v.target!==i&&((P=_==null?void 0:_.classList)==null||P.remove(a.IS_CLOSED),(b=_==null?void 0:_.classList)==null||b.add(a.IS_OPEN))});break}case G.MEGA_MENU:{const m=Ee(t.actionMenu,n),E=R();m.setAttribute("id",E),o.appendChild(m),u.remove(),i.remove(),s.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${t.actionMenu}'`)}l.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,u.remove(),l.remove(),s.remove();else if(t.actionUrl)u.setAttribute("href",t.actionUrl.url),i.remove(),l.remove(),s.remove();else if(t.actionFunctionUrl)u.setAttribute("href",t.actionFunctionUrl.url),u.onclick=_=>{var m,E;(m=t.actionFunctionUrl)!=null&&m.skipHandleEvent||(_.stopPropagation(),_.preventDefault()),(E=t.actionFunctionUrl)==null||E.actionFunction(_)},i.remove(),l.remove(),s.remove();else if(t.isDivider)r.remove(),o.setAttribute("aria-hidden","true"),o.setAttribute("role","separator");else throw console.error(t),new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");if(!t.isDivider&&(c.appendChild(document.createTextNode(t.title)),d.appendChild(document.createTextNode(t.title)),(h=t.actionUrl)!=null&&h.openInNewTab||(f=t.actionFunctionUrl)!=null&&f.openInNewTab)){u.setAttribute("target","_blank");const _=g(yt);c.appendChild(_),d.appendChild(_)}return(t.isSelected||t.actionMenu&&He(t.actionMenu,["actionMenu"],_=>!!_.isSelected))&&(i.classList.add(a.MENU_ITEM__SELECTED),u.classList.add(a.MENU_ITEM__SELECTED)),t.isSelected?o.classList.add(a.MENU_ITEM__SELECTED):o.classList.remove(a.MENU_ITEM__SELECTED),e.appendChild(o),o}function Ee(e,t){const n=g(xn);return e==null||e.forEach(o=>er(n,o,t)),n}function ht(e,t,n){const o=_t(t,{removePopupArrow:n.removePopupArrow}),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderPopupMenu: contentWrapper not found");const i=Ee(e.menuItems,n);return i.setAttribute("aria-label",e.title),r.appendChild(i),o}function tr(e){const t=g(Dn);t.getAttribute("id")||t.setAttribute("id",R());const n=document.createTextNode(e.title),o=t instanceof HTMLCollection?t[0]:t;e.showTitle&&o.classList.add(a.ACTION_ITEM__ICON_BUTTON_TITLE),o.classList.add(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),o.classList.remove(a.ACTION_ITEM);const r=o.querySelector(p(a.ACTION_ITEM__TITLE));if(!r)throw new Error("renderActionItem: titleDiv not found");r.appendChild(n),e.showTitle?r.classList.remove(a.VISUALLY_HIDDEN):r.classList.add(a.VISUALLY_HIDDEN);const i=t.querySelector(p(a.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const u=Je(e.badge);u&&i.appendChild(u);const s=g(e.icon);s.setAttribute("role","presentation"),i.appendChild(s);let l=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const c=R();i.setAttribute("id",c),l=g(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const c=R();i.setAttribute("id",c),l=g(Bn);const d=l.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!d)throw new Error("renderMobileActionItem: actionItemContentTitle not found");d.appendChild(document.createTextNode(e.actionPopupMenu.title));const h=Ee(e.actionPopupMenu.menuItems,{childrenMenuType:G.INLINE});l.appendChild(h)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return{actionItemElement:t,actionItemContent:l}}function nr(){var u,s,l;const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);if(!e)throw new Error("renderMobileActionItems: homeActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("renderMobileActionItems: homeActionItemWrapper not found");const o=!!O().utahId?document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID):null,r=(u=o==null?void 0:o.closest)==null?void 0:u.call(o,p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));(l=(s=[...O().actionItems||[]].reverse())==null?void 0:s.map(c=>({actionItem:c,...tr(c)})))==null||l.forEach(({actionItem:c,actionItemContent:d,actionItemElement:h})=>{let f;switch(c.mobileMenuLocation){case"left":f=t;break;case"none":f=null;break;case"right":default:f=r||t;break}if(f&&(f.after(h),d)){const _=Xe(d);let m=null;c.actionDom?m="dialog":c.actionPopupMenu&&(m="menu"),et(h,_,h,{ariaHasPopupType:m,shouldOnClickCloseMenu:!1})}}),O().mainMenu||(e.remove(),t.remove())}const or=`<div class="utds-citizen-experience-wrapper--mobile"></div>
214
+ `,rr=`<h1 class="utds-logo-wrapper"></h1>
215
+ `,ir=`<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
216
+ `,ar=`<span class="utds-logo-vert-line"></span>
217
+ `,sr=`<div class="utds-citizen-experience-wrapper"></div>
218
+ `,lr=`<div class="utds-action-items-wrapper"></div>
219
+ `,cr=`<div class="utds-header-action-item">
141
220
  <button type="button" class="icon-button utds-header-action-item__icon-button">
142
221
  <div class="utds-header-action-item__title visually-hidden"></div>
143
222
  </button>
144
223
  </div>
145
- `,Jr=`<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
224
+ `,ur=`<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
146
225
  <div class="tooltip__content">
147
226
  <div class="tooltip__arrow" data-popper-arrow></div>
148
227
  </div>
149
228
  </div>
150
- `;let he=NaN;function dt(e,t){const n=b(Jr),r=n.querySelector(f(s.TOOLTIP__CONTENT));if(!r)throw new Error("hookupToolTip: toolTipContent not found");r.appendChild(t),e.appendChild(n);const o=Gt(e,n,{placement:Ze.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,5]}}]});if(e.onmouseenter||e.onmouseleave)throw new Error("hookupToolTip: element already has an onmouseenter and/or onmouseleave event");let i=NaN;e.onmouseenter=()=>{clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(he),he=-1;const c=e.querySelector(f(s.POPUP_WRAPPER));(!c||c.classList.contains(s.POPUP__HIDDEN))&&(n.classList.remove(s.TOOLTIP__WRAPPER__HIDDEN),n.classList.add(s.TOOLTIP__WRAPPER__VISIBLE),o.update())},he?0:500)},e.onmouseleave=()=>{clearTimeout(i),n.classList.add(s.TOOLTIP__WRAPPER__HIDDEN),n.classList.remove(s.TOOLTIP__WRAPPER__VISIBLE),clearTimeout(he),he=window.setTimeout(()=>{he=NaN},500)}}function eo(e){const t=b(Qr),n=document.createTextNode(e.title),r=t instanceof HTMLCollection?t[0]:t;e.showTitle&&r.classList.add(s.ACTION_ITEM__ICON_BUTTON_TITLE);const o=r.querySelector(f(s.ACTION_ITEM__TITLE));if(!o)throw new Error("renderActionItem: titleDiv not found");o.appendChild(n),e.showTitle?o.classList.remove(s.VISUALLY_HIDDEN):o.classList.add(s.VISUALLY_HIDDEN);const i=t.querySelector(f(s.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const c=$e(e.badge);c&&i.appendChild(c);const a=b(e.icon);if(a.setAttribute("role","presentation"),i.appendChild(a),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const l=C();i.setAttribute("id",l);const u=ct(i),d=u.querySelector(f(s.POPUP_CONTENT_WRAPPER));if(!d)throw new Error("renderPopupMenu: contentWrapper not found");d.appendChild(b(typeof e.actionDom=="function"?e.actionDom():e.actionDom)),t.appendChild(u),we(r,i,u,"dialog",void 0)}else if(e.actionPopupMenu){const l=C();i.setAttribute("id",l);const u=ut(e.actionPopupMenu,i,{childrenMenuType:x.INLINE});t.appendChild(u),we(r,i,u,"menu",void 0)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return dt(t,document.createTextNode(e.title)),t}function to(){var n,r;const{actionItems:e}=O();let t=null;return e!=null&&e.length&&(t=b(Xr),(r=(n=O().actionItems)==null?void 0:n.map(o=>eo(o)))==null||r.forEach(o=>t.appendChild(o))),t}const no=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
151
- `,Yt=`<div class="utds-utah-id-wrapper"></div>
152
- `,Ae={PROFILE:"https://id.utah.gov",SIGN_IN:`https://id.utah.gov/login?goto=${window.location}`,SIGN_OUT:`https://id.utah.gov/logout?goto=${window.location}`,USER_INFO:"https://id.utah.gov/api/userInfo"},ro=`<div class="vertical-menu__wrapper">
229
+ `;let ve=NaN;function Ne(e,t){const n=g(ur),o=n.querySelector(p(a.TOOLTIP__CONTENT));if(!o)throw new Error("hookupToolTip: toolTipContent not found");o.appendChild(t),e.appendChild(n);const r=Zt(e,n,{placement:tt.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,5]}}]});if(e.onmouseenter||e.onmouseleave)throw new Error("hookupToolTip: element already has an onmouseenter and/or onmouseleave event");let i=NaN;e.onmouseenter=()=>{clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(ve),ve=-1;const u=e.querySelector(p(a.POPUP_WRAPPER));(!u||u.classList.contains(a.POPUP__HIDDEN))&&(n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN),n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE),r.update().catch(s=>console.error(s)))},ve?0:500)},e.onmouseleave=()=>{clearTimeout(i),n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE),clearTimeout(ve),ve=window.setTimeout(()=>{ve=NaN},500)}}function dr(e){const t=g(cr),n=document.createTextNode(e.title),o=t instanceof HTMLCollection?t[0]:t;e.showTitle&&o.classList.add(a.ACTION_ITEM__ICON_BUTTON_TITLE);const r=o.querySelector(p(a.ACTION_ITEM__TITLE));if(!r)throw new Error("renderActionItem: titleDiv not found");r.appendChild(n),e.showTitle?r.classList.remove(a.VISUALLY_HIDDEN):r.classList.add(a.VISUALLY_HIDDEN);const i=t.querySelector(p(a.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const u=Je(e.badge);u&&i.appendChild(u);const s=g(e.icon);if(s.setAttribute("role","presentation"),i.appendChild(s),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const l=R();i.setAttribute("id",l);const c=_t(i),d=c.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!d)throw new Error("renderPopupMenu: contentWrapper not found");d.appendChild(g(typeof e.actionDom=="function"?e.actionDom():e.actionDom)),t.appendChild(c),Pe(o,i,c,"dialog",void 0)}else if(e.actionPopupMenu){const l=R();i.setAttribute("id",l);const c=ht(e.actionPopupMenu,i,{childrenMenuType:G.INLINE});t.appendChild(c),Pe(o,i,c,"menu",void 0)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return Ne(t,document.createTextNode(e.title)),t}function pr(){var n,o;const{actionItems:e}=O();let t=null;return e!=null&&e.length&&(t=g(lr),(o=(n=O().actionItems)==null?void 0:n.map(r=>dr(r)))==null||o.forEach(r=>t.appendChild(r))),t}const fr=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
230
+ `,Jt=`<div class="utds-utah-id-wrapper"></div>
231
+ `,Se={PROFILE:"https://id.utah.gov",SIGN_IN:`https://id.utah.gov/login?goto=${window.location}`,SIGN_OUT:`https://id.utah.gov/logout?goto=${window.location}`,USER_INFO:"https://id.utah.gov/api/userInfo"},_r=`<div class="vertical-menu__wrapper">
153
232
  <div class="vertical-menu__wrapper-title"></div>
154
233
  </div>
155
- `;function zt(e,t){const n=b(ro),r=n.querySelector(f(s.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!r)throw new Error("renderMenuWithTitle: menuTitleDiv not found");return r.appendChild(document.createTextNode(t)),n.appendChild(e),n}let y=null;function Kt(e){y=e,document.querySelectorAll(f(s.UTAH_ID__BUTTON)).forEach(n=>{var r;if(n){if(n.innerHTML="",y!=null&&y.userInfo&&((r=y.userInfo)!=null&&r.authenticated)){const c=document.createElement("span");c.appendChild(document.createTextNode("UtahID Account:")),c.classList.add(s.VISUALLY_HIDDEN),n.appendChild(c),n.appendChild(document.createTextNode(`Hello, ${y.userInfo.first||""}`))}else n.appendChild(document.createTextNode("UtahID Sign In"));const o=n.getAttribute("aria-controls");if(!o)throw new Error(`authChangedEventHandler: popup id for button not found - ${o}`);const i=document.getElementById(o);i&&pt(n,i)}})}function pt(e,t){var n;e&&t&&(!!(y!=null&&y.isDefinitive)&&!!((n=y==null?void 0:y.userInfo)!=null&&n.authenticated)?(e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded","false"),t.removeAttribute("aria-hidden")):(e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),t.setAttribute("aria-hidden","true")))}function Zt(){const e=b(no);return e.setAttribute("id",C()),y&&Kt(y),e}function Xt(e){var l;const t=O(),n=t.utahId!==!1&&t.utahId!==!0&&t.utahId.onProfile,r=t.utahId!==!1&&t.utahId!==!0&&t.utahId.onSignOut,o=[...t.utahId!==!0&&t.utahId!==!1&&((l=t.utahId)==null?void 0:l.menuItems)||[]];o.length&&o.push({isDivider:!0,title:"--divider--"});const i=[...o,{actionUrl:n?void 0:{url:Ae.PROFILE,openInNewTab:!0},actionFunction:n||void 0,className:"external-link",title:"UtahID Profile"},{actionUrl:r?void 0:{url:Ae.SIGN_OUT},actionFunction:r||void 0,title:"Sign Out"}],c=fe(i,{childrenMenuType:x.INLINE}),a=e?zt(c,"Utah ID Menu"):c;return a.setAttribute("aria-label","Utah Id Menu"),a.setAttribute("id",C()),a}function oo(){const e=b(Yt),t=Zt();t.setAttribute("id",C()),e.appendChild(t);const n=Xt(!1),r=ct(t),o=r.querySelector(f(s.POPUP_CONTENT_WRAPPER));if(!o)throw new Error("renderUtahIdForDesktop: contentWrapper not found");o.appendChild(n),e.appendChild(r),pt(t,r);const i=O(),c=i.utahId!==!1&&i.utahId!==!0&&i.utahId.onSignIn;return we(e,t,r,"menu",{isPerformPopup:()=>{var a;return!!(y!=null&&y.isDefinitive)&&!!((a=y==null?void 0:y.userInfo)!=null&&a.authenticated)},onClick:a=>{var l;(!(y!=null&&y.isDefinitive)||!((l=y==null?void 0:y.userInfo)!=null&&l.authenticated))&&(c?c(a):(a.preventDefault(),a.stopPropagation(),window.location.href=Ae.SIGN_IN))}}),e}function io(){const e=b(Yt),t=Zt(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const r=Xt(!0),o=r.getAttribute("id");if(!o)throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");return e.appendChild(r),t.setAttribute("aria-controls",o),r.setAttribute("aria-labelledby",n),pt(t,r),{button:t,menu:r}}function ao(){const e=b(Zr),t=to();return t&&e.appendChild(t),O().utahId!==!1&&e.appendChild(oo()),e}const so=`<div class="utds-title-wrapper">
234
+ `;function Qt(e,t){const n=g(_r),o=n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!o)throw new Error("renderMenuWithTitle: menuTitleDiv not found");return o.appendChild(document.createTextNode(t)),n.appendChild(e),n}let y=null;function en(e){y=e,document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach(n=>{var o;if(n){if(n.innerHTML="",y!=null&&y.userInfo&&((o=y.userInfo)!=null&&o.authenticated)){const u=document.createElement("span");u.appendChild(document.createTextNode("UtahID Account:")),u.classList.add(a.VISUALLY_HIDDEN),n.appendChild(u),n.appendChild(document.createTextNode(`Hello, ${y.userInfo.first||""}`))}else n.appendChild(document.createTextNode("UtahID Sign In"));const r=n.getAttribute("aria-controls");if(!r)throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);const i=document.getElementById(r);i&&mt(n,i)}})}function mt(e,t){var n;e&&t&&(!!(y!=null&&y.isDefinitive)&&!!((n=y==null?void 0:y.userInfo)!=null&&n.authenticated)?(e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded","false"),t.removeAttribute("aria-hidden")):(e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),t.setAttribute("aria-hidden","true")))}function tn(){const e=g(fr);return e.setAttribute("id",R()),y&&en(y),e}function nn(e){var l,c,d;const t=O(),n=t.utahId!==!1&&t.utahId!==!0&&((l=t.utahId)==null?void 0:l.onProfile),o=t.utahId!==!1&&t.utahId!==!0&&((c=t.utahId)==null?void 0:c.onSignOut),r=[...t.utahId!==!0&&t.utahId!==!1&&((d=t.utahId)==null?void 0:d.menuItems)||[]];r.length&&r.push({isDivider:!0,title:"--divider--"});const i=[...r,{actionUrl:n?void 0:{url:Se.PROFILE,openInNewTab:!0},actionFunction:n||void 0,className:"external-link",title:"UtahID Profile"},{actionUrl:o?void 0:{url:Se.SIGN_OUT},actionFunction:o||void 0,title:"Sign Out"}],u=Ee(i,{childrenMenuType:G.INLINE}),s=e?Qt(u,"Utah ID Menu"):u;return s.setAttribute("aria-label","Utah Id Menu"),s.setAttribute("id",R()),s}function hr(){var s;const e=g(Jt),t=tn();t.setAttribute("id",R()),e.appendChild(t);const n=nn(!1),o=_t(t),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderUtahIdForDesktop: contentWrapper not found");r.appendChild(n),e.appendChild(o),mt(t,o);const i=O(),u=i.utahId!==!1&&i.utahId!==!0&&((s=i.utahId)==null?void 0:s.onSignIn);return Pe(e,t,o,"menu",{isPerformPopup:()=>{var l;return!!(y!=null&&y.isDefinitive)&&!!((l=y==null?void 0:y.userInfo)!=null&&l.authenticated)},onClick:l=>{var c;(!(y!=null&&y.isDefinitive)||!((c=y==null?void 0:y.userInfo)!=null&&c.authenticated))&&(u?u(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Se.SIGN_IN))}}),e}function mr(){const e=g(Jt),t=tn(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const o=nn(!0),r=o.getAttribute("id");if(!r)throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");return e.appendChild(o),t.setAttribute("aria-controls",r),o.setAttribute("aria-labelledby",n),mt(t,o),{button:t,menu:o}}function Er(){const e=g(sr),t=pr();return t&&e.appendChild(t),O().utahId!==!1&&e.appendChild(hr()),e}const vr=`<div class="utds-title-wrapper">
156
235
  <div class="utds-title-wrapper__logo"></div>
157
236
  <div class="utds-title-wrapper__title"></div>
158
237
  </div>
159
- `,lo=`<a class="utds-title-wrapper">
238
+ `,br=`<a class="utds-title-wrapper">
160
239
  <div class="utds-title-wrapper__logo"></div>
161
240
  <div class="utds-title-wrapper__title"></div>
162
241
  </a>
163
- `;function co(){const e=O().titleURL,t=b(e?lo:so);if(!t)throw new Error("LogoTitle: titleWrapper is null");e&&t.setAttribute("href",e);const n=t.querySelector(f(s.TITLE__LOGO));if(!n)throw new Error("LogoTitle: logoWrapper is null");const r=O().logo,o=O().showTitle,i=O().title;if(r){let l;Ve(r)?l=b(r):l=r,l.setAttribute("role","presentation"),n.appendChild(l)}else t.removeChild(n);const c=document.createTextNode(i),a=t.querySelector(f(s.TITLE__TITLE));return a==null||a.appendChild(c),!o&&r&&(a==null||a.classList.add(s.VISUALLY_HIDDEN)),t}const uo=`<div class="utah-logo-wrapper">
242
+ `;function Ir(){const e=O().titleURL,t=g(e?br:vr);if(!t)throw new Error("LogoTitle: titleWrapper is null");e&&t.setAttribute("href",e);const n=t.querySelector(p(a.TITLE__LOGO));if(!n)throw new Error("LogoTitle: logoWrapper is null");const o=O().logo,r=O().showTitle,i=O().title;if(o){let l;if(o.htmlString)l=g(K(o.htmlString));else if(o.element)l=K(o.element);else if(o.imageUrl)l=g(`<img src=${K(o.imageUrl)} id="design-system-logo" />`);else throw new Error("LogoTitle: logo set but has no settings");l.setAttribute("role","presentation"),n.appendChild(l)}else t.removeChild(n);const u=document.createTextNode(i),s=t.querySelector(p(a.TITLE__TITLE));return s==null||s.appendChild(u),!r&&o&&(s==null||s.classList.add(a.VISUALLY_HIDDEN)),t}const gr=`<div class="utah-logo-wrapper">
164
243
  <button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
165
244
  <span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
166
245
  more.</span>
@@ -171,21 +250,13 @@
171
250
  d="M15.972,39.161c-5.4,0-9.4127-1.5667-12.038-4.7C1.3087,31.3277-.0027,26.466,0,19.876V0H10.175V21.06c0,3.4313,.4633,5.847,1.39,7.247,.9909,1.434,2.669,2.2337,4.407,2.1,1.7525,.124,3.4436-.6712,4.466-2.1,.966-1.4,1.449-3.8157,1.449-7.247V0h9.82V19.876c0,6.586-1.2817,11.4467-3.845,14.582-2.5633,3.1353-6.5267,4.703-11.89,4.703Zm31.353-.711V8.518h-10.175V0h30.525V8.518h-10.175v29.932h-10.175Zm33.6-18.693l-.651,2.662h7.1l-.651-2.662c-.4733-1.8533-.9467-3.8647-1.42-6.034-.4733-2.1693-.945-4.2197-1.415-6.151h-.237c-.434,1.972-.8777,4.0327-1.331,6.182s-.918,4.1507-1.394,6.004l-.001-.001Zm-14.788,18.693L77.85,0h12.3l11.717,38.45h-10.767l-1.893-8.162h-10.766l-1.893,8.162h-10.411Zm39.4,0V0h10.175V14.316h11.476V0h10.175V38.45h-10.175v-15.261h-11.479v15.261h-10.172Z" />
172
251
  </g>
173
252
  <text transform="translate(.0419 52.5939)" aria-hidden="true">
174
- <tspan x="0" y="0">An official </tspan>
175
- <tspan x="60.437" y="0" style="letter-spacing: -.02em;">s</tspan>
176
- <tspan x="66.0229" y="0" style="letter-spacing: -.021em;">t</tspan>
177
- <tspan x="70.4614" y="0" style="letter-spacing: -.014em;">at</tspan>
178
- <tspan x="81.8569" y="0" style="letter-spacing: 0em;">e </tspan>
179
- <tspan x="91.6011" y="0" style="letter-spacing: -.004em;">w</tspan>
180
- <tspan x="101.5972" y="0">ebsi</tspan>
181
- <tspan x="125.5923" y="0" style="letter-spacing: -.014em;">t</tspan>
182
- <tspan x="130.1284" y="0">e</tspan>
253
+ <tspan x="0" y="0">An official state website</tspan>
183
254
  </text>
184
255
  </g>
185
256
  </svg>
186
257
  </button>
187
258
  </div>
188
- `,po=`<div class="utah-logo-wrapper">
259
+ `,Tr=`<div class="utah-logo-wrapper">
189
260
  <button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
190
261
  <span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
191
262
  more.</span>
@@ -196,28 +267,24 @@
196
267
  d="M12.2714,30.0877c-4.1489,0-7.2318-1.2037-9.2489-3.611C1.0055,24.0693-.002,20.334,0,15.2709V0H7.8175V16.1806c0,2.6363,.356,4.4923,1.0679,5.5679,.7613,1.1018,2.0506,1.7162,3.3859,1.6134,1.3465,.0953,2.6458-.5157,3.4313-1.6134,.7422-1.0756,1.1133-2.9316,1.1133-5.5679V0h7.5448V15.2709c0,5.0601-.9847,8.7946-2.9541,11.2035-1.9694,2.4089-5.0145,3.6133-9.1352,3.6133Zm24.0887-.5463V6.5444h-7.8175V0h23.4526V6.5444h-7.8175V29.5414h-7.8175Zm25.8151-14.362l-.5002,2.0452h5.455l-.5002-2.0452c-.3637-1.4239-.7273-2.9693-1.091-4.636-.3637-1.6667-.7261-3.242-1.0871-4.7259h-.1821c-.3334,1.5151-.6743,3.0983-1.0226,4.7497s-.7053,3.189-1.071,4.6129l-.0008-.0008Zm-11.3617,14.362L59.8127,0h9.4502l9.0023,29.5414h-8.2724l-1.4544-6.2709h-8.2716l-1.4544,6.2709h-7.9988Zm30.2713,0V0h7.8175V10.9991h8.8171V0h7.8175V29.5414h-7.8175v-11.7251h-8.8194v11.7251h-7.8152Z" />
197
268
  </g>
198
269
  <text transform="translate(.0419 43.5205)" aria-hidden="true">
199
- <tspan x="0" y="0">An official </tspan>
200
- <tspan x="60.437" y="0" style="letter-spacing: -.004em;">w</tspan>
201
- <tspan x="70.4331" y="0">ebsi</tspan>
202
- <tspan x="94.4282" y="0" style="letter-spacing: -.014em;">t</tspan>
203
- <tspan x="98.9644" y="0">e</tspan>
270
+ <tspan x="0" y="0">An official website</tspan>
204
271
  </text>
205
272
  </g>
206
273
  </svg>
207
274
  </button>
208
275
  </div>
209
- `,fo=`<div class="utds-official-website-hover__wrapper">
276
+ `,Mr=`<div class="utds-official-website-hover__wrapper">
210
277
  How do I know it’s official?<br />
211
278
  Learn more.
212
279
  </div>
213
- `;function ho(){let e;switch(O().size){case ee.LARGE:e=uo;break;case ee.SMALL:case ee.MEDIUM:e=po;break;default:throw new Error(`Unknown settings size: '${O().size}'`)}const t=b(e);if(!t.querySelector(f(s.LOGO_SVG)))throw new Error("UtahLogo: logoButton not found");return t.setAttribute("id",C()),dt(t,b(fo)),t}function _o(){var n;const e=b(zr);e.classList.add(`utds-header--${((n=O().size)==null?void 0:n.toLowerCase())||ee.MEDIUM}`);const t=b(Yr);return e.appendChild(t),t.appendChild(ho()),t.appendChild(b(Kr)),t.appendChild(co()),e.appendChild(ao()),e}const mo=`<li class="menu-item">
280
+ `;function Ar(){let e;switch(O().size){case pe.LARGE:e=gr;break;case pe.SMALL:case pe.MEDIUM:e=Tr;break;default:throw new Error(`Unknown settings size: '${O().size}'`)}const t=g(e);if(!t.querySelector(p(a.LOGO_SVG)))throw new Error("UtahLogo: logoButton not found");return t.setAttribute("id",R()),Ne(t,g(Mr)),t}function Or(){var n;const e=g(ir);e.classList.add(`utds-header--${((n=O().size)==null?void 0:n.toLowerCase())||pe.MEDIUM}`);const t=g(rr);return e.appendChild(t),t.appendChild(Ar()),t.appendChild(g(ar)),t.appendChild(Ir()),e.appendChild(Er()),e.appendChild(g(or)),e}const wr=`<li class="menu-item">
214
281
  <span class="menu-item__title">
215
282
  <button class="menu-item__button-title" type="button"></button>
216
283
  <a class="menu-item__link-title"></a>
217
284
  <span class="menu-chiclet"></span>
218
285
  </span>
219
286
  </li>
220
- `,vo=`<div class="utah-design-system main-menu__outer">
287
+ `,Lr=`<div class="utah-design-system main-menu__outer">
221
288
  <div class="main-menu__wrapper">
222
289
  <nav class="horizontal-menu main-menu__nav">
223
290
  <h2 class="main-menu__title visually-hidden"></h2>
@@ -244,7 +311,7 @@
244
311
  </button>
245
312
  </div>
246
313
  </div>
247
- `,Eo=`<div class="utah-design-system" id="search-modal">
314
+ `,yr=`<div class="utah-design-system" id="search-modal">
248
315
  <div class="search-modal__close-button-wrapper">
249
316
  <button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
250
317
  <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
@@ -252,7 +319,7 @@
252
319
  </button>
253
320
  </div>
254
321
  <div class="search-modal">
255
- <form class="search-modal__form hcenter" role="search" aria-label="Sitewide">
322
+ <form class="search-modal__form hcenter" role="search" aria-label="Sitewide" autocomplete="off">
256
323
  <span class="utds-icon-before-search search-modal__icon-search vcenter" aria-hidden="true"></span>
257
324
  <label for="search-modal-input-id" class="search-modal__input-label visually-hidden">Enter your search
258
325
  terms</label>
@@ -269,35 +336,8 @@
269
336
  </div>
270
337
  <div class="search-backdrop modal-backdrop backdrop-dark"></div>
271
338
  </div>
272
- `;function He(){const e=document.getElementById(s.SEARCH__SEARCH_MODAL);if(!e)throw new Error("closSearchModal: searchModal not found");e.remove();const t=document.querySelector(f(s.MAIN_MENU__SEARCH));if(!t)throw new Error("closSearchModal: searchIcon not found");t.focus()}function bo(){const e=b(Eo),t=e.querySelector(f(s.SEARCH__SEARCH_BACKDROP));if(!t)throw new Error("showSearchModal: backdrop not found");const n=e.querySelector(f(s.SEARCH__SEARCH_CLOSE_BUTTON));if(!n)throw new Error("showSearchModal: closeButton not found");const r=e.querySelector(f(s.SEARCH__SEARCH_BUTTON));if(!r)throw new Error("showSearchModal: searchButton not found");const o=e.querySelector(f(s.SEARCH__SEARCH_BUTTON_WRAPPER));if(!o)throw new Error("showSearchModal: searchButtonWrapper not found");const i=e.querySelector(f(s.SEARCH__SEARCH_INPUT));if(!i)throw new Error("showSearchModal: searchInput not found");r.onclick=a=>{var l,u;a.preventDefault(),a.stopPropagation(),He(),(u=(l=O()).onSearch)==null||u.call(l,i.value)},n.onclick=a=>{a.preventDefault(),a.stopPropagation(),He()},t.onclick=a=>{a.preventDefault(),a.stopPropagation(),He()},document.body.appendChild(e),i.focus(),i.oninput=()=>{o.classList.remove(s.VISUALLY_HIDDEN)},r.onfocus=()=>{o.classList.remove(s.VISUALLY_HIDDEN)},e.onkeyup=a=>{(a.code==="Escape"||a.key==="Escape")&&(a.preventDefault(),a.stopPropagation(),He())},n.addEventListener("focusout",a=>{a.preventDefault(),a.stopPropagation(),Me[st.SHIFT]?r.focus():i.focus()});const c=e.querySelector(".search-modal__hidden-last-focusable");if(!c)throw new Error("showSearchModal: hiddenLastFocusableButton not found");c.addEventListener("focusin",a=>{a.preventDefault(),a.stopPropagation(),n.focus()})}function go(){var l;const e=O(),t=b(vo),n=t.querySelector(f(s.MAIN_MENU__NAV));if(!n)throw new Error("renderMainMenu(): mainMenu not created");const r=n.querySelector(f(s.MAIN_MENU__TITLE));if(!r)throw new Error("renderMainMenu(): titleTag not found");const o="main-menu__nav";n.setAttribute("aria-labelledby",o),r.setAttribute("id",o),r.innerHTML=e.mainMenu.title;const i=n.querySelector(f(s.MAIN_MENU__MENU_TOP));if(!i)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(u=>{var m,E;const d=b(mo);i.appendChild(d);const h=d.querySelector(f(s.MENU_ITEM__TITLE));if(!h)throw new Error(`renderMainMenu(): sub menu title not found for ${u.title}`);const _=h.querySelector(f(s.MENU_ITEM__BUTTON_TITLE));if(!_)throw new Error(`renderMainMenu(): button title not found for ${u.title}`);_.setAttribute("id",`${s.MENU_ITEM__BUTTON_TITLE}__${u.title}-${C()}`);const p=h.querySelector(f(s.MENU_ITEM__LINK_TITLE));if(!p)throw new Error(`renderMainMenu(): link title not found for ${u.title}`);if((u.isSelected||u.actionMenu&&Ne(u.actionMenu,["actionMenu"],v=>!!v.isSelected))&&(_.classList.add(s.MENU_ITEM__SELECTED),p.classList.add(s.MENU_ITEM__SELECTED)),u.actionMenu){_.innerHTML=u.title,p.remove();const v={menuItems:u.actionMenu,title:u.title},T=ut(v,_,{childrenMenuType:u.childrenMenuType||x.FLYOUT});d.appendChild(T),we(d,_,T,"menu",{shouldFocusOnHover:!0});let w;switch(u.childrenMenuType){case x.INLINE:w=s.MENU_ITEM__INLINE;break;case x.MEGA_MENU:w=s.MENU_ITEM__MEGA_MENU;break;case x.FLYOUT:default:w=s.MENU_ITEM__FLY_OUT;break}d.classList.add(w)}else if(u.actionFunction)_.innerHTML=u.title,_.onclick=u.actionFunction,p.remove();else if(u.actionFunctionUrl)p.innerHTML=u.title,p.setAttribute("href",u.actionFunctionUrl.url),p.onclick=v=>{var T,w;(T=u.actionFunctionUrl)!=null&&T.skipHandleEvent||(v.stopPropagation(),v.preventDefault()),(w=u.actionFunctionUrl)==null||w.actionFunction(v)},_.remove();else if(u.actionUrl)p.innerHTML=u.title,p.setAttribute("href",u.actionUrl.url),_.remove();else throw new Error(`renderMainMenu(): menuItem is missing an action: ${u.title}`);((m=u.actionUrl)!=null&&m.openInNewTab||(E=u.actionFunctionUrl)!=null&&E.openInNewTab)&&(p.setAttribute("target","_blank"),p.appendChild(b(Mt)))});let c=null;if(e.utahId){const{button:u,menu:d}=io();c=d;const h=t.querySelector(f(s.MOBILE__UTAH_ID));if(!h)throw new Error("renderMainMenu: utahIdButtonWrapper not found");h.appendChild(u)}const a=t.querySelector(f(s.MAIN_MENU__SEARCH));if(!a||!(a instanceof HTMLElement))throw new Error("renderMainMenu: searchIcon not found");if(e.onSearch){if(dt(a,document.createTextNode("Search")),a.onclick)throw new Error("searchIcon already has onclick");a.onclick=()=>bo()}else(l=a.parentElement)==null||l.insertBefore(b('<div class="main-menu__search-placeholder">'),a),a.remove();return{mainMenuWrapper:t,utahIdPopup:c}}function Io(e){let t=NaN,n=null,r=null;return{promise:new Promise((i,c)=>{t=setTimeout(()=>{t=NaN,i()},e),n=i,r=c}),clearTimeout:i=>{t&&(clearTimeout(t),t=NaN,i(n,r))}}}const Z={isDefinitive:null,lastError:null,userInfo:null};function Qt(e){var t,n,r;e.isDefinitive&&(Kt(e),(r=(n=(t=O())==null?void 0:t.utahId)==null?void 0:n.onAuthChanged)==null||r.call(n,e))}let Jt=!0;const To=500;async function en(){var t,n;let e=null;if(Z.isDefinitive===!1)e=Promise.resolve(Z);else if(Jt)e=Io(To).promise.then(()=>{Jt=!1,en()});else{const r=O();if(r.utahId===!1)e=Promise.resolve({isDefinitive:!0,lastError:"Utah ID is off",userInfo:null});else if(r.utahId===!0||((t=r.utahId)==null?void 0:t.currentUser)===void 0)Z.isDefinitive=!1,e=fetch(Ae.USER_INFO,{credentials:"include"}).then(o=>o.json()).then(o=>{if(o.status===200)Z.lastError=null,Z.userInfo=o.data;else throw new Error(o.err)}).catch(o=>{Z.lastError=o,Z.userInfo=null}).finally(()=>{Z.isDefinitive=!0,Qt(Z)});else{const o={isDefinitive:!0,lastError:null,userInfo:(n=r.utahId)==null?void 0:n.currentUser};e=Promise.resolve(o),Qt(o)}}return e}function Mo(){return Z}function wo(){const e=document.getElementById(s.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!e)throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");const t=e.closest(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");t.remove()}function Ao(e,t){const n=document.querySelector(f(s.MOBILE__UTAH_ID));if(!n)throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");const r=n.querySelector(f(s.UTAH_ID__BUTTON));if(!r)throw new Error("hookupUtahIdInMobileMenu: utahIdButton not found");if(!e.querySelector(f(s.MOBILE_MENU__CONTENT)))throw new Error("hookupUtahIdInMobileMenu: mobileContentWrapper not found");const i=document.getElementById(s.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!i)throw new Error("hookupUtahIdInMobileMenu: profileActionItem not found");const c=i.closest(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupHamburger: profileActionItemWrapper not found");const a=Ge(t);Ke(r,a,c,{ariaHasPopupType:"menu",onClickHandler:l=>{var _;const u=Mo(),d=O();let h=!1;if(!(u!=null&&u.isDefinitive)||!((_=u==null?void 0:u.userInfo)!=null&&_.authenticated)){h=!0;const p=d.utahId!==!1&&d.utahId!==!0&&d.utahId.onSignIn;p?p(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Ae.SIGN_IN)}return h},shouldOnClickCloseMenu:!0})}function Oo(){return fe(O().mainMenu.menuItems,{childrenMenuType:x.INLINE,removePopupArrow:!0})}const yo=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="0">
273
- <h2 class="utds-official-website-popup__heading">
274
- This is an official website of the State of Utah. Here’s how you know:
275
- </h2>
276
- <div class="utds-official-website-popup__content">
277
- <div class="utds-official-website-popup__col">
278
- <div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
279
- <div>
280
- <strong>Official Utah websites use utah.gov.</strong><br />
281
- Utah.gov websites belongs to an official government organization in the State of Utah.
282
- </div>
283
- </div>
284
- <div class="utds-official-website-popup__col">
285
- <div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
286
- <div>
287
- <strong>Secure utah.gov websites use HTTPS.</strong><br />
288
- A lock <span class="utds-icon-before-lock" aria-hidden="true"></span> or <strong>https://</strong> means you’ve
289
- safely connected to the utah.gov website.
290
- Share sensitive information only on official, secure websites.
291
- </div>
292
- </div>
293
- </div>
294
- <button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless">
295
- <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
296
- <span class="visually-hidden">Close official website popup</span>
297
- </button>
298
- </div>
299
- `;function Po(){const e=b(yo),n=document.querySelector(f(s.LOGO)).querySelector(f(s.LOGO_SVG));if(!n)throw new Error("renderOfficialWebsite: logoButton not found");if(n.onclick)throw new Error("renderOfficialWebsite: logoButton already has an onclick");n.onclick=()=>{e.classList.toggle(s.VISUALLY_HIDDEN),e.classList.contains(s.VISUALLY_HIDDEN)?(n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"),e.focus());const o=document.querySelectorAll(f(s.TOOLTIP__WRAPPER));o==null||o.forEach(i=>{i.classList.add(s.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(s.TOOLTIP__WRAPPER__VISIBLE)})};const r=e.querySelector(f(s.LOGO_OFFICIAL_CLOSE_BUTTON));if(!r)throw new Error("renderOfficialWebsite: closeButton not found");return r.onclick=()=>{e.classList.toggle(s.VISUALLY_HIDDEN),n.focus(),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")},r.id||(r.id=C()),e.id||(e.id=C()),n.setAttribute("aria-controls",e.id),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-labelledby",n.id),e}function Lo(){const t=[...document.querySelectorAll(`
300
- ${f(s.MOBILE_MENU__ACTION_BAR)}
301
- ${f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
302
- ${f(s.ACTION_ITEM__ICON_BUTTON)}
303
- `)];t.forEach(n=>{n.onkeydown=r=>{(r.code==="Home"||r.code==="End"||r.code==="ArrowRight"||r.code==="ArrowLeft")&&r.preventDefault()},n.onkeyup=r=>{const o=t.indexOf(n);let i=NaN;if(r.code==="Home"?i=0:r.code==="End"?i=t.length-1:r.code==="ArrowRight"?i=(o+1)%t.length:r.code==="ArrowLeft"&&(i=(t.length+o-1)%t.length),!Number.isNaN(i)){r.preventDefault(),r.stopPropagation();const c=t[i],a=c.closest(f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!a)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const l=c.getAttribute("aria-controls");if(l&&document.getElementById(l))c.click();else{const h=document.querySelector(f(s.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const _=h.querySelector(f(s.MOBILE_MENU__CONTENT));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");_.querySelectorAll(f(s.MOBILE_MENU__CONTENT_ITEM)).forEach(p=>p.classList.remove(s.IS_OPEN))}const d=document.querySelector(f(s.MOBILE_MENU__WRAPPER));if(!d)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");ze(d,a)}}})}function No(){const e=hn.replace(s.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER,`${O().mediaSizes.tabletPortrait}px`).replace(s.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER,`${O().mediaSizes.tabletLandscape}px`).replace(s.MEDIA_SIZE__MOBILE__PLACEHOLDER,`${O().mediaSizes.mobile}px`);let t=document.getElementById(s.CSS_HEADER_MEDIA_TAG_ID);t||(t=document.createElement("style"),t.id=s.CSS_HEADER_MEDIA_TAG_ID),t.innerHTML=e,document.body.appendChild(t)}function So(){const e=O();let t=document.body;if(e.domLocationTarget){const n=[e.domLocationTarget.cssSelector,e.domLocationTarget.element,e.domLocationTarget.elementFunction].filter(r=>r);if(n.length<1)throw new Error("loadHeader: domLocationTarget must either have a value for one of its properties or not be specified at all");if(n.length>1)throw new Error("loadHeader: domLocationTarget must only have one target specified");if(e.domLocationTarget.cssSelector)t=document.querySelector(e.domLocationTarget.cssSelector),vt(!t,`loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);else if(e.domLocationTarget.element)t=e.domLocationTarget.element;else if(e.domLocationTarget.elementFunction)t=e.domLocationTarget.elementFunction(),vt(!t,"loadHeader: element not returned from domLocationTarget.elementFunction");else throw new Error("loadHeader: domLocationTarget must have at least one field set")}return mn(t,"loadHeader: domTarget is null (how?!)")}function tn(){var t;if(!document.querySelector(f([s.UTAH_DESIGN_SYSTEM,s.HEADER]))){const n=_o(),r=So();r.insertBefore(n,r.firstChild);const o=Po();n.after(o);const{mainMenuWrapper:i,utahIdPopup:c}=go();i&&o.after(i);const a=b(_n);o.after(a);const l=document.querySelector(f(s.MOBILE_MENU__BACKDROP));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(l.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");l.onclick=()=>Ye();const u=Oo(),d=zt(u,"Main Menu");d.appendChild(u);const h=Ge(d);An(h),c?((t=c.closest("div"))==null||t.removeAttribute("aria-labelledby"),Ao(a,c)):wo(),jr(),Lo(),kr(),No(),en()}}function nn(e){var t,n,r,o;(t=document.querySelector(f([s.UTAH_DESIGN_SYSTEM,s.HEADER])))==null||t.remove(),(n=document.querySelector(f([s.UTAH_DESIGN_SYSTEM,s.MAIN_MENU__OUTER])))==null||n.remove(),(r=document.querySelector(f([s.UTAH_DESIGN_SYSTEM,s.MOBILE_MENU])))==null||r.remove(),(o=document.querySelector(f([s.UTAH_DESIGN_SYSTEM,s.LOGO_OFFICIAL_WRAPPER])))==null||o.remove(),$t(),e&&setTimeout(()=>document.dispatchEvent(new Event(Fe.HEADER_UNLOADED)),0)}console.log(`Utah Header v${fn.version}`),H.baseSettings=Et,H.childrenMenuTypes=x,H.events=Fe,H.getUtahHeaderSettings=O,H.loadHeader=tn,H.removeHeader=nn,H.renderDOMSingle=b,H.setUtahHeaderSettings=In,H.sizes=ee,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
339
+ `;function Fe(){const e=document.getElementById(a.SEARCH__SEARCH_MODAL);if(!e)throw new Error("closSearchModal: searchModal not found");e.remove();const t=document.querySelector(p(a.MAIN_MENU__SEARCH));if(!t)throw new Error("closSearchModal: searchIcon not found");t.focus()}function Et(){const e=g(yr),t=e.querySelector(p(a.SEARCH__SEARCH_BACKDROP));if(!t)throw new Error("showSearchModal: backdrop not found");const n=e.querySelector(p(a.SEARCH__SEARCH_CLOSE_BUTTON));if(!n)throw new Error("showSearchModal: closeButton not found");const o=e.querySelector(p(a.SEARCH__SEARCH_BUTTON));if(!o)throw new Error("showSearchModal: searchButton not found");const r=e.querySelector(p(a.SEARCH__SEARCH_BUTTON_WRAPPER));if(!r)throw new Error("showSearchModal: searchButtonWrapper not found");const i=e.querySelector(p(a.SEARCH__SEARCH_INPUT));if(!i)throw new Error("showSearchModal: searchInput not found");o.onclick=s=>{var l,c;s.preventDefault(),s.stopPropagation(),Fe(),(c=(l=O()).onSearch)==null||c.call(l,i.value)},n.onclick=s=>{s.preventDefault(),s.stopPropagation(),Fe()},t.onclick=s=>{s.preventDefault(),s.stopPropagation(),Fe()},document.body.appendChild(e),i.focus(),i.oninput=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},o.onfocus=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},e.onkeyup=s=>{(s.code==="Escape"||s.key==="Escape")&&(s.preventDefault(),s.stopPropagation(),Fe())},n.addEventListener("focusout",s=>{s.preventDefault(),s.stopPropagation(),ye[pt.SHIFT]?o.focus():i.focus()});const u=e.querySelector(".search-modal__hidden-last-focusable");if(!u)throw new Error("showSearchModal: hiddenLastFocusableButton not found");u.addEventListener("focusin",s=>{s.preventDefault(),s.stopPropagation(),n.focus()})}function Pr(){var s;const e=O(),t=g(Lr);let n=t.querySelector(p(a.MAIN_MENU__NAV));if(!n)throw new Error("renderMainMenu(): mainMenu not created");const o=n.querySelector(p(a.MAIN_MENU__TITLE));if(!o)throw new Error("renderMainMenu(): titleTag not found");const r="main-menu__nav";if(n.setAttribute("aria-labelledby",r),o.setAttribute("id",r),e.mainMenu?o.innerHTML=e.mainMenu.title:(n.remove(),n=null),e.mainMenu){const l=n==null?void 0:n.querySelector(p(a.MAIN_MENU__MENU_TOP));if(!l)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(c=>{var m,E;const d=g(wr);l.appendChild(d);const h=L(d.querySelector(p(a.MENU_ITEM__TITLE)),`renderMainMenu(): sub menu title not found for ${c.title}`),f=L(h.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),`renderMainMenu(): button title not found for ${c.title}`);f.setAttribute("id",`${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${R()}`);const _=L(h.querySelector(p(a.MENU_ITEM__LINK_TITLE)),`renderMainMenu(): link title not found for ${c.title}`);if((c.isSelected||c.actionMenu&&He(c.actionMenu,["actionMenu"],v=>!!v.isSelected))&&(f.classList.add(a.MENU_ITEM__SELECTED),_.classList.add(a.MENU_ITEM__SELECTED)),c.actionMenu){f.innerHTML=c.title,_.remove();const v={menuItems:c.actionMenu,title:c.title},T=ht(v,f,{childrenMenuType:c.childrenMenuType||G.FLYOUT});d.appendChild(T),Pe(d,f,T,"menu",{shouldFocusOnHover:!0});let A;switch(c.childrenMenuType){case G.INLINE:A=a.MENU_ITEM__INLINE;break;case G.MEGA_MENU:A=a.MENU_ITEM__MEGA_MENU;break;case G.FLYOUT:default:A=a.MENU_ITEM__FLY_OUT;break}d.classList.add(A)}else if(c.actionFunction)f.innerHTML=c.title,f.onclick=c.actionFunction,_.remove();else if(c.actionFunctionUrl)_.innerHTML=c.title,_.setAttribute("href",c.actionFunctionUrl.url),_.onclick=v=>{var T,A;(T=c.actionFunctionUrl)!=null&&T.skipHandleEvent||(v.stopPropagation(),v.preventDefault()),(A=c.actionFunctionUrl)==null||A.actionFunction(v)},f.remove();else if(c.actionUrl)_.innerHTML=c.title,_.setAttribute("href",c.actionUrl.url),f.remove();else throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);((m=c.actionUrl)!=null&&m.openInNewTab||(E=c.actionFunctionUrl)!=null&&E.openInNewTab)&&(_.setAttribute("target","_blank"),_.appendChild(g(yt)))})}let i=null;if(e.utahId){const{button:l,menu:c}=mr();i=c,L(t.querySelector(p(a.MOBILE__UTAH_ID)),"renderMainMenu: utahIdButtonWrapper not found").appendChild(l)}const u=L(t.querySelector(p(a.MAIN_MENU__SEARCH)),"renderMainMenu: searchIcon not found");if(e.onSearch){if(Ne(u,document.createTextNode("Search")),u.onclick)throw new Error("searchIcon already has onclick");if(u.onclick=()=>Et(),!e.mainMenu){const l=L(document.querySelector(p(a.CITIZEN_EXPERIENCE)),"renderMainMenu: citizen experience wrapper not found"),c=g(u.outerHTML);if(Ne(c,document.createTextNode("Search")),c.onclick=()=>Et(),u.classList.add(a.DESKTOP__HIDDEN),e.utahId!==!1){const d=L(document.querySelector(p(a.UTAH_ID)),"renderMainMenu: utahId wrapper not found");l.insertBefore(c,d)}else l.appendChild(c)}if(!e.mainMenu&&!e.actionItems&&e.utahId===!1){const l=g(u.outerHTML);if(Ne(l,document.createTextNode("Search")),l.onclick)throw new Error("searchIconMobile already has onclick");l.onclick=()=>Et(),L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"renderMainMenu: citizen-experience--mobile not found").appendChild(l)}}return e.onSearch||((e.mainMenu||!e.mainMenu&&e.utahId)&&((s=u.parentElement)==null||s.insertBefore(g('<div class="main-menu__search-placeholder">'),u)),u.remove()),{mainMenuWrapper:t,utahIdPopup:i}}function Nr(e){let t=NaN,n=null,o=null;return{promise:new Promise((i,u)=>{t=setTimeout(()=>{t=NaN,i()},e),n=i,o=u}),clearTimeout:i=>{t&&(clearTimeout(t),t=NaN,i(n,o))}}}const J={isDefinitive:null,lastError:null,userInfo:null};function on(e){var t,n,o;e.isDefinitive&&(en(e),(o=(n=(t=O())==null?void 0:t.utahId)==null?void 0:n.onAuthChanged)==null||o.call(n,e))}let rn=!0;const Sr=500;async function an(){var t,n;let e=null;if(J.isDefinitive===!1)e=Promise.resolve(J);else if(rn)e=Nr(Sr).promise.then(()=>{rn=!1,an().catch(o=>console.error(o))});else{const o=O();if(o.utahId===!1)e=Promise.resolve({isDefinitive:!0,lastError:"Utah ID is off",userInfo:null});else if(o.utahId===!0||((t=o.utahId)==null?void 0:t.currentUser)===void 0)J.isDefinitive=!1,e=fetch(Se.USER_INFO,{credentials:"include"}).then(r=>r.json()).then(r=>{if(r.status===200)J.lastError=null,J.userInfo=r.data;else throw new Error(r.err)}).catch(r=>{J.lastError=r,J.userInfo=null}).finally(()=>{J.isDefinitive=!0,on(J)});else{const r={isDefinitive:!0,lastError:null,userInfo:(n=o.utahId)==null?void 0:n.currentUser};e=Promise.resolve(r),on(r)}}return e}function Ur(){return J}function Cr(){const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!e)throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");t.remove()}function Rr(e,t){const n=document.querySelector(p(a.MOBILE__UTAH_ID));if(!n)throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");const o=n.querySelector(p(a.UTAH_ID__BUTTON));if(!o)throw new Error("hookupUtahIdInMobileMenu: utahIdButton not found");if(!e.querySelector(p(a.MOBILE_MENU__CONTENT)))throw new Error("hookupUtahIdInMobileMenu: mobileContentWrapper not found");const i=document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!i)throw new Error("hookupUtahIdInMobileMenu: profileActionItem not found");const u=i.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!u)throw new Error("hookupHamburger: profileActionItemWrapper not found");const s=Xe(t);et(o,s,u,{ariaHasPopupType:"menu",onClickHandler:l=>{var f;const c=Ur(),d=O();let h=!1;if(!(c!=null&&c.isDefinitive)||!((f=c==null?void 0:c.userInfo)!=null&&f.authenticated)){h=!0;const _=d.utahId!==!1&&d.utahId!==!0&&d.utahId.onSignIn;_?_(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Se.SIGN_IN)}return h},shouldOnClickCloseMenu:!0})}function Dr(){var e;return Ee((e=O().mainMenu)==null?void 0:e.menuItems,{childrenMenuType:G.INLINE,removePopupArrow:!0})}function Br(){const t=[...document.querySelectorAll(`
340
+ ${p(a.MOBILE_MENU__ACTION_BAR)}
341
+ ${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
342
+ ${p(a.ACTION_ITEM__ICON_BUTTON)}
343
+ `)];t.forEach(r=>{r.onkeydown=i=>{(i.code==="Home"||i.code==="End"||i.code==="ArrowRight"||i.code==="ArrowLeft")&&i.preventDefault()},r.onkeyup=i=>{const u=t.indexOf(r);let s=NaN;if(i.code==="Home"?s=0:i.code==="End"?s=t.length-1:i.code==="ArrowRight"?s=(u+1)%t.length:i.code==="ArrowLeft"&&(s=(t.length+u-1)%t.length),!Number.isNaN(s)){i.preventDefault(),i.stopPropagation();const l=t[s],c=l.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const d=l.getAttribute("aria-controls");if(d&&document.getElementById(d))l.click();else{const _=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const m=_.querySelector(p(a.MOBILE_MENU__CONTENT));if(!m)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");m.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(E=>E.classList.remove(a.IS_OPEN))}const f=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!f)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");Qe(f,c)}}});const n=L(document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"),{hamburger:o}=Ie("hookupMobileActionItemKeyboarding");n.addEventListener("focusin",r=>{r.preventDefault(),r.stopPropagation(),o.focus()})}function Hr(){const e=bn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER,`${O().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER,`${O().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER,`${O().mediaSizes.mobile}px`);let t=document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);t||(t=document.createElement("style"),t.id=a.CSS_HEADER_MEDIA_TAG_ID),t.innerHTML=e,document.body.appendChild(t)}function xr(){const e=O();let t=document.body;if(e.domLocationTarget){const n=[e.domLocationTarget.cssSelector,e.domLocationTarget.element,e.domLocationTarget.elementFunction].filter(o=>o);if(n.length<1)throw new Error("loadHeader: domLocationTarget must either have a value for one of its properties or not be specified at all");if(n.length>1)throw new Error("loadHeader: domLocationTarget must only have one target specified");if(e.domLocationTarget.cssSelector)t=document.querySelector(e.domLocationTarget.cssSelector),Q(!t,`loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);else if(e.domLocationTarget.element)t=e.domLocationTarget.element;else if(e.domLocationTarget.elementFunction)t=e.domLocationTarget.elementFunction(),Q(!t,"loadHeader: element not returned from domLocationTarget.elementFunction");else throw new Error("loadHeader: domLocationTarget must have at least one field set")}return L(t,"loadHeader: domTarget is null (how?!)")}function sn(){var t;if(!document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER]))){const n=Or(),o=xr();o.insertBefore(n,o.firstChild);const r=Un();n.after(r);const{mainMenuWrapper:i,utahIdPopup:u}=Pr();i&&r.after(i);const s=g(In);r.after(s);const l=document.querySelector(p(a.MOBILE_MENU__BACKDROP));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(l.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");l.onclick=()=>Be();const c=Dr(),d=Qt(c,"Main Menu");d.appendChild(c);const h=Xe(d);Rn(h),u?((t=u.closest("div"))==null||t.removeAttribute("aria-labelledby"),Rr(s,u)):Cr(),nr(),Br(),Zo(),Hr(),an().catch(_=>console.error(_));const f=O();(!f.mainMenu&&!f.actionItems&&f.utahId===!1&&!f.onSearch||!f.mainMenu&&!f.actionItems&&f.utahId===!1&&f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId===!1&&!f.onSearch)&&(s.classList.add(a.MAIN_MENU__REMOVED),i.remove()),(!f.mainMenu&&!f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&!f.utahId&&f.onSearch)&&i.classList.add(a.DESKTOP__HIDDEN)}Mn()}function ln(e){var t,n,o,r;(t=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER])))==null||t.remove(),(n=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MAIN_MENU__OUTER])))==null||n.remove(),(o=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MOBILE_MENU])))==null||o.remove(),(r=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.LOGO_OFFICIAL_WRAPPER])))==null||r.remove(),Kt(),e&&setTimeout(()=>document.dispatchEvent(new Event(Ze.HEADER_UNLOADED)),0)}console.log(`Utah Header v${vn.version}`),H.childrenMenuTypes=G,H.defaultSettings=Ke,H.events=Ze,H.getUtahHeaderSettings=O,H.loadHeader=sn,H.removeHeader=ln,H.renderDOMSingle=g,H.setUtahHeaderSettings=Ln,H.sizes=pe,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});