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

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,67 +1,4 @@
1
- const In = "@utahdts/utah-design-system-header", gn = "0.8.0", Tn = "Utah Header for the Utah Design System", Mn = {
2
- ".": {
3
- "development-local": "./src/index.js",
4
- development: "./dist/utah-design-system-header.es.js",
5
- production: "./dist/utah-design-system-header.es.js",
6
- import: "./dist/utah-design-system-header.es.js",
7
- require: "./dist/utah-design-system-header.umd.js",
8
- default: [
9
- "./dist/utah-design-system-header.es.js",
10
- "./dist/utah-design-system-header.umd.js",
11
- "./src/index.js"
12
- ]
13
- },
14
- "./css": "./dist/style.css",
15
- "./src/css/index.scss": "./src/css/index.scss"
16
- }, An = "./src/index.js", On = [
17
- "src/css",
18
- "dist"
19
- ], wn = {
20
- build: "vite build",
21
- preview: "vite preview",
22
- publishHeader: "npm publish --access public",
23
- "test-publish": "npm publish --dry-run",
24
- test: "vitest",
25
- testc: "vitest run --coverage",
26
- testOnce: "vitest run",
27
- testui: "vitest --ui",
28
- watch: "vite build --watch"
29
- }, Ln = {
30
- type: "git",
31
- url: "git+https://github.com/utahdts/utah-design-system.git"
32
- }, yn = "Apache-2.0", Pn = {
33
- url: "https://github.com/utahdts/utah-design-system/issues"
34
- }, Nn = "https://github.com/utahdts/utah-design-system#readme", Sn = {
35
- "@popperjs/core": "2.11.7"
36
- }, Un = {
37
- "@vitest/ui": "0.31.1",
38
- eslint: "8.40.0",
39
- "eslint-config-airbnb": "19.0.4",
40
- "eslint-plugin-import": "2.27.5",
41
- "eslint-plugin-jsx-a11y": "6.7.1",
42
- "eslint-plugin-react-refresh": "0.4.1",
43
- jsdom: "22.0.0",
44
- sass: "1.62.1",
45
- vite: "4.3.7",
46
- "vite-plugin-eslint": "1.8.1",
47
- vitest: "0.31.0"
48
- }, Cn = "module", Rn = {
49
- name: In,
50
- version: gn,
51
- description: Tn,
52
- exports: Mn,
53
- main: An,
54
- files: On,
55
- scripts: wn,
56
- repository: Ln,
57
- license: yn,
58
- bugs: Pn,
59
- homepage: Nn,
60
- dependencies: Sn,
61
- devDependencies: Un,
62
- type: Cn
63
- };
64
- const j = {
1
+ const z = {
65
2
  FLYOUT: (
66
3
  /** @type {ChildrenMenuType} */
67
4
  "flyout"
@@ -74,7 +11,7 @@ const j = {
74
11
  /** @type {ChildrenMenuType} */
75
12
  "mega-menu"
76
13
  )
77
- }, $t = {
14
+ }, Ft = {
78
15
  // Fired when the utah header is first loaded (setUtahHeaderSettings does not trigger this)
79
16
  HEADER_LOADED: (
80
17
  /** @type {Events} */
@@ -85,7 +22,7 @@ const j = {
85
22
  /** @type {Events} */
86
23
  "utahHeaderUnloaded"
87
24
  )
88
- }, Te = {
25
+ }, Ie = {
89
26
  SMALL: (
90
27
  /** @type {Size} */
91
28
  "SMALL"
@@ -98,7 +35,7 @@ const j = {
98
35
  /** @type {Size} */
99
36
  "LARGE"
100
37
  )
101
- }, Dn = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
38
+ }, hn = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
102
39
 
103
40
  @media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
104
41
  /* put your media query here for tablet landscape */
@@ -168,7 +105,7 @@ const j = {
168
105
  @media screen and (max-width: media-size__mobile__PLACEHOLDER) {
169
106
  /* put your media query here for mobile */
170
107
  }
171
- `, Bn = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
108
+ `, mn = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
172
109
  <div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
173
110
  <div class="utds-header-mobile-menu__wrapper">
174
111
  <div class="utds-header-mobile-menu__action-bar" role="tablist">
@@ -311,25 +248,25 @@ const a = {
311
248
  UTAH_ID: "utds-utah-id-wrapper",
312
249
  UTAH_ID__BUTTON: "utds-utah-id__button"
313
250
  };
314
- function ee(e, t) {
251
+ function X(e, t) {
315
252
  if (e)
316
253
  throw new Error(t);
317
254
  }
318
- function P(e, t) {
255
+ function y(e, t) {
319
256
  if (e == null)
320
257
  throw new Error(t);
321
258
  return e;
322
259
  }
323
- function Lt(e) {
260
+ function At(e) {
324
261
  return typeof e == "string" || e instanceof String;
325
262
  }
326
- function Hn(e) {
263
+ function En(e) {
327
264
  const t = new DOMParser();
328
265
  let n;
329
- if (Lt(e)) {
266
+ if (At(e)) {
330
267
  const o = (
331
268
  /** @type {Document} */
332
- Lt(e) ? t.parseFromString(e, "text/html") : e
269
+ At(e) ? t.parseFromString(e, "text/html") : e
333
270
  ), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
334
271
  if (!r)
335
272
  throw console.error(e), new Error("renderDOM: nothing rendered");
@@ -343,8 +280,8 @@ function Hn(e) {
343
280
  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");
344
281
  return n;
345
282
  }
346
- function g(e) {
347
- const t = typeof e == "string" ? Hn(e) : e;
283
+ function T(e) {
284
+ const t = typeof e == "string" ? En(e) : e;
348
285
  if (t instanceof HTMLCollection && t.length > 1)
349
286
  throw new Error("renderDOMSingle: must render a single element");
350
287
  const n = (
@@ -355,264 +292,82 @@ function g(e) {
355
292
  throw console.error(e), new Error("renderDOMSingle: nothing rendered");
356
293
  return n;
357
294
  }
358
- const xn = `<div class="utds-footer utah-design-system">
359
- <div class="utds-footer__horizontal-divider">
360
- <hr />
361
- </div>
362
- <div class="utds-footer__utah-logo-wrapper">
363
- <div class="utah-logo-svg" id="utah-logo-svg">
364
- <svg viewBox="0 0 107 30.51" role="img">
365
- <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>
366
- </svg>
367
- </div>
368
- <div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
369
- <div class="utds-footer__official-site-wrapper">
370
- <div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
371
- <div class="utds-footer__copyright">©2023 State of Utah</div>
372
- </div>
373
- </div>
374
- <div class="utds-footer__links">
375
- <ul>
376
- <li><a href="#" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
377
- <li><a href="#" target="__blank" rel="noreferrer">Terms of Use</a></li>
378
- <li><a href="#" target="__blank" rel="noreferrer">Privacy Policy</a></li>
379
- <li><a href="#" target="__blank" rel="noreferrer">Accessibility</a></li>
380
- <li><a href="#" target="__blank" rel="noreferrer">Translate</a></li>
381
- </ul>
382
- </div>
383
- </div>
384
- `;
385
- let se = null;
386
- function Wn() {
387
- var o, r, i, u, s, l, c, d, h, f, _, m, E, v, T, A;
388
- const e = O(), t = document.querySelector(p(a.FOOTER));
389
- let n = t;
390
- if (e.footer === null)
391
- t == null || t.remove();
392
- else if (((o = se == null ? void 0 : se.footer) == null ? void 0 : o.domLocationTarget) !== ((r = e == null ? void 0 : e.footer) == null ? void 0 : r.domLocationTarget) || ((i = se == null ? void 0 : se.footer) == null ? void 0 : i.showHorizontalRule) !== ((u = e == null ? void 0 : e.footer) == null ? void 0 : u.showHorizontalRule) || !t) {
393
- t && t.remove(), n = g(xn);
394
- let b = document.body;
395
- if ((s = e == null ? void 0 : e.footer) != null && s.domLocationTarget) {
396
- const I = [
397
- (l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget.cssSelector,
398
- (c = e == null ? void 0 : e.footer) == null ? void 0 : c.domLocationTarget.element,
399
- (d = e == null ? void 0 : e.footer) == null ? void 0 : d.domLocationTarget.elementFunction
400
- ].filter((M) => M);
401
- if (ee(I.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), ee(I.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (h = e == null ? void 0 : e.footer) != null && h.domLocationTarget.cssSelector)
402
- b = document.querySelector((f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.cssSelector), ee(!b, `renderFooter: element not found for domLocationTarget.cssSelector ${(_ = e == null ? void 0 : e.footer) == null ? void 0 : _.domLocationTarget.cssSelector}`);
403
- else if ((m = e == null ? void 0 : e.footer) != null && m.domLocationTarget.element)
404
- b = (E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.element;
405
- else if ((v = e == null ? void 0 : e.footer) != null && v.domLocationTarget.elementFunction)
406
- b = (T = e == null ? void 0 : e.footer) == null ? void 0 : T.domLocationTarget.elementFunction(), ee(!b, "renderFooter: element not returned from domLocationTarget.elementFunction");
407
- else
408
- throw new Error("renderFooter: domLocationTarget must have at least one field set");
409
- }
410
- if (b == null || b.appendChild(n), !((A = e == null ? void 0 : e.footer) != null && A.showHorizontalRule)) {
411
- const I = document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));
412
- ee(!I, "renderFooter: cannot remove horizontal rule; not found"), I == null || I.remove();
413
- }
414
- se = JSON.parse(JSON.stringify(e));
415
- }
416
- return n;
417
- }
418
- const jt = {
295
+ const Ot = {
296
+ onSearch: !1,
297
+ mainMenu: !1,
419
298
  mediaSizes: {
420
299
  mobile: 640,
421
300
  tabletPortrait: 768,
422
301
  tabletLandscape: 1024
423
302
  },
424
303
  showTitle: !0,
425
- size: Te.MEDIUM,
304
+ size: Ie.MEDIUM,
426
305
  title: "My Utah.gov Site",
427
- titleURL: "/"
306
+ titleURL: "/",
307
+ utahId: !1
428
308
  };
429
- let ke = { ...jt };
430
- function O() {
431
- return ke;
432
- }
433
- function kn(e) {
309
+ function vn(e) {
434
310
  if (!e.showTitle && !e.logo)
435
311
  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.");
436
312
  }
437
- function yt() {
438
- ti(!1), ei();
313
+ class bn {
314
+ constructor() {
315
+ this.settings = { ...Ot };
316
+ }
317
+ /**
318
+ * @param {SettingsInput} settings
319
+ */
320
+ setSettings(t) {
321
+ const n = { ...Ot, ...this.settings, ...t };
322
+ vn(n), this.settings = n;
323
+ }
324
+ /**
325
+ * @returns {Settings}
326
+ */
327
+ getSettings() {
328
+ return this.settings;
329
+ }
439
330
  }
440
- let zt = !1;
441
- const qn = 15e3;
442
- let Pt = 0;
443
- const Vn = setInterval(
444
- () => {
445
- Pt += 1, Pt >= qn || zt ? clearInterval(Vn) : document.dispatchEvent(new Event($t.HEADER_LOADED));
446
- },
447
- 2
448
- );
449
- function ni(e) {
450
- return ke = { ...jt, ...O(), ...e }, kn(ke), zt = !0, document != null && document.body ? yt() : window.addEventListener("load", () => yt()), ke;
331
+ const Ke = new bn();
332
+ function w() {
333
+ return Ke.getSettings();
451
334
  }
452
- const Fn = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
335
+ const In = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
453
336
  </div>
454
337
  `;
455
- function R() {
338
+ function U() {
456
339
  return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(
457
340
  /[018]/g,
458
341
  // eslint-disable-next-line no-bitwise
459
342
  (e) => (e ^ crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> e) / 4).toString(16)
460
343
  );
461
344
  }
462
- function it(e) {
345
+ function tt(e) {
463
346
  const t = document.querySelector(p(a.MOBILE_MENU__WRAPPER));
464
347
  if (!t)
465
348
  throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");
466
349
  const n = t.querySelector(p(a.MOBILE_MENU__CONTENT));
467
350
  if (!n)
468
351
  throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
469
- const o = g(Fn);
470
- return o.appendChild(e), n.appendChild(o), o.setAttribute("id", R()), o;
352
+ const o = T(In);
353
+ return o.appendChild(e), n.appendChild(o), o.setAttribute("id", U()), o;
471
354
  }
472
355
  function K(e) {
473
356
  return typeof e == "function" ? e() : e;
474
357
  }
475
- const Gn = `<div class="utds-badge__wrapper">
476
- <span class="utds-badge__value"></span>
477
- <span class="utds-badge__label visually-hidden"></span>
478
- </div>
479
- `;
480
- function at(e) {
481
- let t = null;
482
- if (e) {
483
- t = /** @type {HTMLElement} */
484
- g(Gn), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
485
- const n = t.querySelector(p(a.BADGE__LABEL));
486
- if (!n)
487
- throw new Error("renderActionItemBadge: badgeLabel not found");
488
- if (n.appendChild(document.createTextNode(e.label)), e.value || e.value === 0) {
489
- const o = t.querySelector(p(a.BADGE__VALUE));
490
- if (!o)
491
- throw new Error("renderActionItemBadge: badgeValue not found");
492
- o.appendChild(document.createTextNode(`${e.value}`));
493
- } else
494
- t.classList.add(a.BADGE_WRAPPER__SMALL);
495
- e.className && t.classList.add(e.className);
496
- }
497
- return t;
498
- }
499
- const $n = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
500
- <h2 class="utds-official-website-popup__heading">
501
- This is an official website of the State of Utah. Here’s how you know:
502
- </h2>
503
- <div class="utds-official-website-popup__content">
504
- <div class="utds-official-website-popup__col">
505
- <div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
506
- <div>
507
- <strong>Official Utah websites use utah.gov in the browser&#39;s address bar.</strong><br />
508
- A Utah.gov website belongs to an official government organization in the State of Utah.
509
- <div class="utds-official-website-popup__address-bar"></div>
510
- </div>
511
- </div>
512
- <div class="utds-official-website-popup__col">
513
- <div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
514
- <div>
515
- <strong>Be careful when sharing sensitive information.</strong><br />
516
- Share sensitive information only on secure official Utah.gov websites.
517
- </div>
518
- </div>
519
- <div>
520
- <svg class="utds-official-website-popup__official-image" viewBox="0 0 105.9496 47.6226" role="img">
521
- <g>
522
- <g>
523
- <path
524
- 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" />
525
- </g>
526
- <text transform="translate(.0419 43.5205)" aria-hidden="true">
527
- <tspan x="0" y="0">An official website</tspan>
528
- </text>
529
- </g>
530
- </svg>
531
- <div class="utds-official-website-popup__copyright">&copy; State of Utah</div>
532
- </div>
533
- </div>
534
- <button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless"
535
- tabIndex="-1">
536
- <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
537
- <span class="visually-hidden">Close official website popup</span>
538
- </button>
539
- </div>
540
- `;
541
- function Yt() {
542
- const e = P(
543
- document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
544
- "openOfficialWebsite: official wrapper not found"
545
- ), t = P(
546
- document.querySelector(p(a.LOGO)),
547
- "openOfficialWebsite: logoWrapper not found"
548
- ), n = P(
549
- t.querySelector(p(a.LOGO_SVG)),
550
- "openOfficialWebsite: logoButton not found"
551
- ), o = P(
552
- e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
553
- "openOfficialWebsite: official close button not found"
554
- );
555
- e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", -1), e.setAttribute("tabIndex", -1);
556
- const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
557
- r == null || r.forEach((i) => {
558
- i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
559
- });
560
- }
561
- function jn() {
562
- const e = P(
563
- document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
564
- "openOfficialWebsite: official wrapper not found"
565
- ), t = P(
566
- document.querySelector(p(a.LOGO)),
567
- "openOfficialWebsite: logoWrapper not found"
568
- ), n = P(
569
- t.querySelector(p(a.LOGO_SVG)),
570
- "openOfficialWebsite: logoButton not found"
571
- ), o = P(
572
- e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
573
- "openOfficialWebsite: official close button not found"
574
- );
575
- e.classList.remove(a.VISUALLY_HIDDEN), o.removeAttribute("tabIndex"), e.removeAttribute("tabIndex"), n.setAttribute("aria-expanded", "true"), e.setAttribute("aria-hidden", "false"), e.focus();
576
- const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
577
- r == null || r.forEach((i) => {
578
- i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
579
- }), Ge();
580
- }
581
- function zn() {
582
- const e = g($n), n = (
583
- /** @type {HTMLElement} */
584
- document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG))
585
- );
586
- if (!n)
587
- throw new Error("renderOfficialWebsite: logoButton not found");
588
- if (n.onclick)
589
- throw new Error("renderOfficialWebsite: logoButton already has an onclick");
590
- const o = e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));
591
- if (!o)
592
- throw new Error("renderOfficialWebsite: closeButton not found");
593
- return n.onclick = () => {
594
- e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? Yt() : jn();
595
- const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
596
- r == null || r.forEach((i) => {
597
- i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
598
- });
599
- }, o.onclick = () => {
600
- e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
601
- }, 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;
602
- }
603
- function we(e) {
358
+ function Ae(e) {
604
359
  const t = (
605
360
  /** @type {HTMLElement} */
606
- P(
361
+ y(
607
362
  document.querySelector(p(a.MOBILE_MENU)),
608
363
  `${e}: mobileMenu not found`
609
364
  )
610
- ), n = P(
365
+ ), n = y(
611
366
  document.getElementById(a.MAIN_MENU__HAMBURGER_ID),
612
367
  `${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`
613
368
  ), o = (
614
369
  /** @type {HTMLElement} */
615
- P(
370
+ y(
616
371
  document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),
617
372
  `${e}: hamburgerIcon not found`
618
373
  )
@@ -623,76 +378,18 @@ function we(e) {
623
378
  mobileMenu: t
624
379
  };
625
380
  }
626
- function Ge() {
627
- const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = we("hideMobileMenu");
381
+ function Fe() {
382
+ const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = Ae("hideMobileMenu");
628
383
  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");
629
384
  }
630
- function Yn() {
385
+ function Tn() {
631
386
  var r;
632
387
  const e = document.querySelector(p(a.MAIN_MENU));
633
388
  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));
634
- const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = we("showMobileMenu");
389
+ const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = Ae("showMobileMenu");
635
390
  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");
636
391
  }
637
- function Zn(e) {
638
- var l, c;
639
- const { hamburger: t } = we("hookupHamburger"), n = O();
640
- if ((l = n.actionItems) == null ? void 0 : l.some((d) => !!d.badge)) {
641
- const d = at({ label: "Home Badge" });
642
- d && t.appendChild(d);
643
- }
644
- Ge();
645
- function r() {
646
- const d = P(
647
- /** @type {HTMLElement} */
648
- document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
649
- "hookupHamburger: no action items to select on mobile hamburger open"
650
- ), h = d.querySelector("button"), f = h == null ? void 0 : h.getAttribute("aria-controls");
651
- return { actionItem: d, actionItemWrapper: f ? document.getElementById(f) : null };
652
- }
653
- const i = P(
654
- /** @type {HTMLElement} */
655
- document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
656
- "hookupHamburger: no action items to select on mobile hamburger open"
657
- ), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"), s = (u || i).getAttribute("id");
658
- if (!s)
659
- throw new Error("mobileMenuInteractionHandler: actionItemId not found");
660
- if (e) {
661
- const d = e.getAttribute("id");
662
- if (!d)
663
- throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
664
- (u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby", s);
665
- }
666
- st(
667
- t,
668
- () => r().actionItemWrapper,
669
- () => r().actionItem,
670
- {
671
- additionalOnClick: () => Yt(),
672
- ariaHasPopupType: "menu",
673
- shouldOnClickCloseMenu: !0
674
- }
675
- ), ee(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
676
- const { mobileMenu: d } = we("showMobileMenu");
677
- if (d.classList.contains(a.IS_OPEN)) {
678
- const h = p(a.MOBILE_MENU__ACTION_BAR), f = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), _ = p(a.ICON_BUTTON), m = (
679
- /** @type {HTMLElement | null} */
680
- document.querySelector(`${h} ${f}:first-child ${_}`)
681
- );
682
- m == null || m.focus();
683
- }
684
- }, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (P(
685
- document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
686
- "hookupHamburger: citizen experience mobile not found"
687
- ).appendChild(t), P(
688
- document.querySelector(p(a.MAIN_MENU)),
689
- "hookupHamburger: main menu not found"
690
- ).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu && P(
691
- document.querySelector(p(a.MAIN_MENU)),
692
- "renderMainMenu: main menu not found"
693
- ).classList.add(a.DESKTOP__HIDDEN);
694
- }
695
- function Je(e, t) {
392
+ function je(e, t) {
696
393
  e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach((o) => {
697
394
  o.classList.remove(a.ACTION_ITEM__SELECTED);
698
395
  const r = o.querySelector("button");
@@ -705,16 +402,16 @@ function Je(e, t) {
705
402
  throw new Error("showActionItem: actionWrapper does not have actionItem B");
706
403
  n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
707
404
  }
708
- function Nt(e, t) {
405
+ function wt(e, t) {
709
406
  e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(a.IS_OPEN)), t.classList.add(a.IS_OPEN);
710
407
  }
711
- function st(e, t, n, {
408
+ function nt(e, t, n, {
712
409
  ariaHasPopupType: o,
713
410
  additionalOnClick: r,
714
411
  onClickHandler: i,
715
412
  shouldOnClickCloseMenu: u
716
413
  }) {
717
- var _, m;
414
+ var h, _;
718
415
  if (t && !o)
719
416
  throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
720
417
  const s = (
@@ -735,7 +432,7 @@ function st(e, t, n, {
735
432
  );
736
433
  if (!c)
737
434
  throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
738
- const d = K(n), h = (m = (_ = K(n)) == null ? void 0 : _.querySelector) == null ? void 0 : m.call(_, "button"), f = (h || e).getAttribute("id");
435
+ const d = K(n), m = (_ = (h = K(n)) == null ? void 0 : h.querySelector) == null ? void 0 : _.call(h, "button"), f = (m || e).getAttribute("id");
739
436
  if (!f)
740
437
  throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");
741
438
  if (t) {
@@ -744,7 +441,7 @@ function st(e, t, n, {
744
441
  const v = E.getAttribute("id");
745
442
  if (!v)
746
443
  throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");
747
- (h || e).setAttribute("aria-controls", v), E.setAttribute("aria-labelledby", f);
444
+ (m || e).setAttribute("aria-controls", v), E.setAttribute("aria-labelledby", f);
748
445
  }
749
446
  }
750
447
  if (e.onclick)
@@ -752,11 +449,11 @@ function st(e, t, n, {
752
449
  if (e.onclick = (E) => {
753
450
  if (!(i != null && i(E)))
754
451
  if (r == null || r(E), s.classList.contains(a.IS_OPEN))
755
- u && Ge();
452
+ u && Fe();
756
453
  else {
757
- Yn();
758
- const T = K(t);
759
- T && Nt(c, T), Je(l, K(n));
454
+ Tn();
455
+ const I = K(t);
456
+ I && wt(c, I), je(l, K(n));
760
457
  }
761
458
  }, t) {
762
459
  if (d !== e && d.onclick)
@@ -764,28 +461,28 @@ function st(e, t, n, {
764
461
  d.onclick = (E) => {
765
462
  if (!(i != null && i(E))) {
766
463
  const v = K(t);
767
- v && Nt(c, v), Je(l, K(n));
464
+ v && wt(c, v), je(l, K(n));
768
465
  }
769
466
  };
770
467
  }
771
468
  }
772
- const Kn = `<div class="utds-header-mobile-menu__action-item" role="tab">
469
+ const gn = `<div class="utds-header-mobile-menu__action-item" role="tab">
773
470
  <button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
774
471
  <div class="utds-header-action-item__title visually-hidden"></div>
775
472
  <span aria-hidden="true" role="presentation">
776
473
  </button>
777
474
  <span class="menu-chiclet"></span>
778
475
  </div>
779
- `, Xn = `<div class="utds-header-action-item-menu">
476
+ `, Mn = `<div class="utds-header-action-item-menu">
780
477
  <div class="vertical-menu__wrapper-title"></div>
781
478
  </div>
782
- `, Jn = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
783
- `, Zt = `<span class="utds-new-tab-link-a11y">
479
+ `, An = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
480
+ `, qt = `<span class="utds-new-tab-link-a11y">
784
481
  <span class="visually-hidden">opens in a new tab</span>
785
482
  <span class="utds-icon-after-external-link" aria-hidden="true"></span>
786
483
  </span>
787
- `, Qn = `<ul class="vertical-menu" role="menu" />
788
- `, eo = `<li class="vertical-menu__item">
484
+ `, On = `<ul class="vertical-menu" role="menu" />
485
+ `, wn = `<li class="vertical-menu__item">
789
486
  <span class="vertical-menu__title">
790
487
  <span class="vertical-menu__plain-title"></span>
791
488
  <a href="#" class="vertical-menu__link-title">
@@ -797,7 +494,7 @@ const Kn = `<div class="utds-header-mobile-menu__action-item" role="tab">
797
494
  </span>
798
495
  <span class="vertical-menu__divider" />
799
496
  </li>
800
- `, lt = {
497
+ `, ot = {
801
498
  AUTO: (
802
499
  /** @type {PopupPlacement} */
803
500
  "auto"
@@ -859,20 +556,20 @@ const Kn = `<div class="utds-header-mobile-menu__action-item" role="tab">
859
556
  "top-end"
860
557
  )
861
558
  };
862
- function Ve(e, t, n) {
559
+ function We(e, t, n) {
863
560
  var r;
864
561
  let o = !1;
865
- return e && (Array.isArray(e) ? o = e.some((i) => Ve(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => Ve(e[i], t, n)))))), o;
866
- }
867
- var H = "top", F = "bottom", G = "right", x = "left", $e = "auto", Se = [H, F, G, x], fe = "start", Le = "end", to = "clippingParents", Kt = "viewport", Ie = "popper", no = "reference", St = /* @__PURE__ */ Se.reduce(function(e, t) {
868
- return e.concat([t + "-" + fe, t + "-" + Le]);
869
- }, []), Xt = /* @__PURE__ */ [].concat(Se, [$e]).reduce(function(e, t) {
870
- return e.concat([t, t + "-" + fe, t + "-" + Le]);
871
- }, []), oo = "beforeRead", ro = "read", io = "afterRead", ao = "beforeMain", so = "main", lo = "afterMain", co = "beforeWrite", uo = "write", po = "afterWrite", Qe = [oo, ro, io, ao, so, lo, co, uo, po];
872
- function X(e) {
562
+ return e && (Array.isArray(e) ? o = e.some((i) => We(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => We(e[i], t, n)))))), o;
563
+ }
564
+ var B = "top", q = "bottom", V = "right", H = "left", rt = "auto", Pe = [B, q, V, H], de = "start", Oe = "end", Ln = "clippingParents", Vt = "viewport", ve = "popper", yn = "reference", Lt = /* @__PURE__ */ Pe.reduce(function(e, t) {
565
+ return e.concat([t + "-" + de, t + "-" + Oe]);
566
+ }, []), Gt = /* @__PURE__ */ [].concat(Pe, [rt]).reduce(function(e, t) {
567
+ return e.concat([t, t + "-" + de, t + "-" + Oe]);
568
+ }, []), Pn = "beforeRead", Nn = "read", Sn = "afterRead", Un = "beforeMain", Cn = "main", Rn = "afterMain", Dn = "beforeWrite", Bn = "write", Hn = "afterWrite", xn = [Pn, Nn, Sn, Un, Cn, Rn, Dn, Bn, Hn];
569
+ function Z(e) {
873
570
  return e ? (e.nodeName || "").toLowerCase() : null;
874
571
  }
875
- function V(e) {
572
+ function k(e) {
876
573
  if (e == null)
877
574
  return window;
878
575
  if (e.toString() !== "[object Window]") {
@@ -881,31 +578,31 @@ function V(e) {
881
578
  }
882
579
  return e;
883
580
  }
884
- function ue(e) {
885
- var t = V(e).Element;
581
+ function le(e) {
582
+ var t = k(e).Element;
886
583
  return e instanceof t || e instanceof Element;
887
584
  }
888
- function q(e) {
889
- var t = V(e).HTMLElement;
585
+ function F(e) {
586
+ var t = k(e).HTMLElement;
890
587
  return e instanceof t || e instanceof HTMLElement;
891
588
  }
892
- function ct(e) {
589
+ function it(e) {
893
590
  if (typeof ShadowRoot > "u")
894
591
  return !1;
895
- var t = V(e).ShadowRoot;
592
+ var t = k(e).ShadowRoot;
896
593
  return e instanceof t || e instanceof ShadowRoot;
897
594
  }
898
- function fo(e) {
595
+ function Wn(e) {
899
596
  var t = e.state;
900
597
  Object.keys(t.elements).forEach(function(n) {
901
598
  var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
902
- !q(i) || !X(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
599
+ !F(i) || !Z(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
903
600
  var s = r[u];
904
601
  s === !1 ? i.removeAttribute(u) : i.setAttribute(u, s === !0 ? "" : s);
905
602
  }));
906
603
  });
907
604
  }
908
- function _o(e) {
605
+ function kn(e) {
909
606
  var t = e.state, n = {
910
607
  popper: {
911
608
  position: t.options.strategy,
@@ -923,51 +620,51 @@ function _o(e) {
923
620
  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) {
924
621
  return l[c] = "", l;
925
622
  }, {});
926
- !q(r) || !X(r) || (Object.assign(r.style, s), Object.keys(i).forEach(function(l) {
623
+ !F(r) || !Z(r) || (Object.assign(r.style, s), Object.keys(i).forEach(function(l) {
927
624
  r.removeAttribute(l);
928
625
  }));
929
626
  });
930
627
  };
931
628
  }
932
- const ho = {
629
+ const Fn = {
933
630
  name: "applyStyles",
934
631
  enabled: !0,
935
632
  phase: "write",
936
- fn: fo,
937
- effect: _o,
633
+ fn: Wn,
634
+ effect: kn,
938
635
  requires: ["computeStyles"]
939
636
  };
940
- function z(e) {
637
+ function j(e) {
941
638
  return e.split("-")[0];
942
639
  }
943
- var ce = Math.max, Fe = Math.min, _e = Math.round;
944
- function et() {
640
+ var se = Math.max, ke = Math.min, pe = Math.round;
641
+ function Ze() {
945
642
  var e = navigator.userAgentData;
946
643
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
947
644
  return t.brand + "/" + t.version;
948
645
  }).join(" ") : navigator.userAgent;
949
646
  }
950
- function Jt() {
951
- return !/^((?!chrome|android).)*safari/i.test(et());
647
+ function $t() {
648
+ return !/^((?!chrome|android).)*safari/i.test(Ze());
952
649
  }
953
- function he(e, t, n) {
650
+ function fe(e, t, n) {
954
651
  t === void 0 && (t = !1), n === void 0 && (n = !1);
955
652
  var o = e.getBoundingClientRect(), r = 1, i = 1;
956
- t && q(e) && (r = e.offsetWidth > 0 && _e(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && _e(o.height) / e.offsetHeight || 1);
957
- var u = ue(e) ? V(e) : window, s = u.visualViewport, l = !Jt() && 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;
653
+ t && F(e) && (r = e.offsetWidth > 0 && pe(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && pe(o.height) / e.offsetHeight || 1);
654
+ var u = le(e) ? k(e) : window, s = u.visualViewport, l = !$t() && n, c = (o.left + (l && s ? s.offsetLeft : 0)) / r, d = (o.top + (l && s ? s.offsetTop : 0)) / i, m = o.width / r, f = o.height / i;
958
655
  return {
959
- width: h,
656
+ width: m,
960
657
  height: f,
961
658
  top: d,
962
- right: c + h,
659
+ right: c + m,
963
660
  bottom: d + f,
964
661
  left: c,
965
662
  x: c,
966
663
  y: d
967
664
  };
968
665
  }
969
- function ut(e) {
970
- var t = he(e), n = e.offsetWidth, o = e.offsetHeight;
666
+ function at(e) {
667
+ var t = fe(e), n = e.offsetWidth, o = e.offsetHeight;
971
668
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
972
669
  x: e.offsetLeft,
973
670
  y: e.offsetTop,
@@ -975,11 +672,11 @@ function ut(e) {
975
672
  height: o
976
673
  };
977
674
  }
978
- function Qt(e, t) {
675
+ function zt(e, t) {
979
676
  var n = t.getRootNode && t.getRootNode();
980
677
  if (e.contains(t))
981
678
  return !0;
982
- if (n && ct(n)) {
679
+ if (n && it(n)) {
983
680
  var o = t;
984
681
  do {
985
682
  if (o && e.isSameNode(o))
@@ -989,66 +686,66 @@ function Qt(e, t) {
989
686
  }
990
687
  return !1;
991
688
  }
992
- function Y(e) {
993
- return V(e).getComputedStyle(e);
689
+ function J(e) {
690
+ return k(e).getComputedStyle(e);
994
691
  }
995
- function mo(e) {
996
- return ["table", "td", "th"].indexOf(X(e)) >= 0;
692
+ function qn(e) {
693
+ return ["table", "td", "th"].indexOf(Z(e)) >= 0;
997
694
  }
998
- function te(e) {
999
- return ((ue(e) ? e.ownerDocument : (
695
+ function ee(e) {
696
+ return ((le(e) ? e.ownerDocument : (
1000
697
  // $FlowFixMe[prop-missing]
1001
698
  e.document
1002
699
  )) || window.document).documentElement;
1003
700
  }
1004
- function je(e) {
1005
- return X(e) === "html" ? e : (
701
+ function qe(e) {
702
+ return Z(e) === "html" ? e : (
1006
703
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
1007
704
  // $FlowFixMe[incompatible-return]
1008
705
  // $FlowFixMe[prop-missing]
1009
706
  e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
1010
707
  e.parentNode || // DOM Element detected
1011
- (ct(e) ? e.host : null) || // ShadowRoot detected
708
+ (it(e) ? e.host : null) || // ShadowRoot detected
1012
709
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
1013
- te(e)
710
+ ee(e)
1014
711
  );
1015
712
  }
1016
- function Ut(e) {
1017
- return !q(e) || // https://github.com/popperjs/popper-core/issues/837
1018
- Y(e).position === "fixed" ? null : e.offsetParent;
713
+ function yt(e) {
714
+ return !F(e) || // https://github.com/popperjs/popper-core/issues/837
715
+ J(e).position === "fixed" ? null : e.offsetParent;
1019
716
  }
1020
- function Eo(e) {
1021
- var t = /firefox/i.test(et()), n = /Trident/i.test(et());
1022
- if (n && q(e)) {
1023
- var o = Y(e);
717
+ function Vn(e) {
718
+ var t = /firefox/i.test(Ze()), n = /Trident/i.test(Ze());
719
+ if (n && F(e)) {
720
+ var o = J(e);
1024
721
  if (o.position === "fixed")
1025
722
  return null;
1026
723
  }
1027
- var r = je(e);
1028
- for (ct(r) && (r = r.host); q(r) && ["html", "body"].indexOf(X(r)) < 0; ) {
1029
- var i = Y(r);
724
+ var r = qe(e);
725
+ for (it(r) && (r = r.host); F(r) && ["html", "body"].indexOf(Z(r)) < 0; ) {
726
+ var i = J(r);
1030
727
  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")
1031
728
  return r;
1032
729
  r = r.parentNode;
1033
730
  }
1034
731
  return null;
1035
732
  }
1036
- function Ue(e) {
1037
- for (var t = V(e), n = Ut(e); n && mo(n) && Y(n).position === "static"; )
1038
- n = Ut(n);
1039
- return n && (X(n) === "html" || X(n) === "body" && Y(n).position === "static") ? t : n || Eo(e) || t;
733
+ function Ne(e) {
734
+ for (var t = k(e), n = yt(e); n && qn(n) && J(n).position === "static"; )
735
+ n = yt(n);
736
+ return n && (Z(n) === "html" || Z(n) === "body" && J(n).position === "static") ? t : n || Vn(e) || t;
1040
737
  }
1041
- function dt(e) {
738
+ function st(e) {
1042
739
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
1043
740
  }
1044
- function Me(e, t, n) {
1045
- return ce(e, Fe(t, n));
741
+ function Te(e, t, n) {
742
+ return se(e, ke(t, n));
1046
743
  }
1047
- function vo(e, t, n) {
1048
- var o = Me(e, t, n);
744
+ function Gn(e, t, n) {
745
+ var o = Te(e, t, n);
1049
746
  return o > n ? n : o;
1050
747
  }
1051
- function en() {
748
+ function Yt() {
1052
749
  return {
1053
750
  top: 0,
1054
751
  right: 0,
@@ -1056,131 +753,114 @@ function en() {
1056
753
  left: 0
1057
754
  };
1058
755
  }
1059
- function tn(e) {
1060
- return Object.assign({}, en(), e);
756
+ function Kt(e) {
757
+ return Object.assign({}, Yt(), e);
1061
758
  }
1062
- function nn(e, t) {
759
+ function jt(e, t) {
1063
760
  return t.reduce(function(n, o) {
1064
761
  return n[o] = e, n;
1065
762
  }, {});
1066
763
  }
1067
- var bo = function(t, n) {
764
+ var $n = function(t, n) {
1068
765
  return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
1069
766
  placement: n.placement
1070
- })) : t, tn(typeof t != "number" ? t : nn(t, Se));
767
+ })) : t, Kt(typeof t != "number" ? t : jt(t, Pe));
1071
768
  };
1072
- function Io(e) {
1073
- var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, s = z(n.placement), l = dt(s), c = [x, G].indexOf(s) >= 0, d = c ? "height" : "width";
769
+ function zn(e) {
770
+ var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, s = j(n.placement), l = st(s), c = [H, V].indexOf(s) >= 0, d = c ? "height" : "width";
1074
771
  if (!(!i || !u)) {
1075
- var h = bo(r.padding, n), f = ut(i), _ = l === "y" ? H : x, m = l === "y" ? F : G, E = n.rects.reference[d] + n.rects.reference[l] - u[l] - n.rects.popper[d], v = u[l] - n.rects.reference[l], T = Ue(i), A = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, L = E / 2 - v / 2, b = h[_], I = A - f[d] - h[m], M = A / 2 - f[d] / 2 + L, N = Me(b, M, I), S = l;
1076
- n.modifiersData[o] = (t = {}, t[S] = N, t.centerOffset = N - M, t);
772
+ var m = $n(r.padding, n), f = at(i), h = l === "y" ? B : H, _ = l === "y" ? q : V, E = n.rects.reference[d] + n.rects.reference[l] - u[l] - n.rects.popper[d], v = u[l] - n.rects.reference[l], I = Ne(i), A = I ? l === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, O = E / 2 - v / 2, b = m[h], g = A - f[d] - m[_], M = A / 2 - f[d] / 2 + O, P = Te(b, M, g), C = l;
773
+ n.modifiersData[o] = (t = {}, t[C] = P, t.centerOffset = P - M, t);
1077
774
  }
1078
775
  }
1079
- function go(e) {
776
+ function Yn(e) {
1080
777
  var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
1081
- if (r != null && !(typeof r == "string" && (r = t.elements.popper.querySelector(r), !r))) {
1082
- 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(" "))), !Qt(t.elements.popper, r)) {
1083
- ({}).NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
1084
- return;
1085
- }
1086
- t.elements.arrow = r;
1087
- }
778
+ r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || zt(t.elements.popper, r) && (t.elements.arrow = r));
1088
779
  }
1089
- const To = {
780
+ const Kn = {
1090
781
  name: "arrow",
1091
782
  enabled: !0,
1092
783
  phase: "main",
1093
- fn: Io,
1094
- effect: go,
784
+ fn: zn,
785
+ effect: Yn,
1095
786
  requires: ["popperOffsets"],
1096
787
  requiresIfExists: ["preventOverflow"]
1097
788
  };
1098
- function me(e) {
789
+ function _e(e) {
1099
790
  return e.split("-")[1];
1100
791
  }
1101
- var Mo = {
792
+ var jn = {
1102
793
  top: "auto",
1103
794
  right: "auto",
1104
795
  bottom: "auto",
1105
796
  left: "auto"
1106
797
  };
1107
- function Ao(e, t) {
798
+ function Zn(e, t) {
1108
799
  var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
1109
800
  return {
1110
- x: _e(n * r) / r || 0,
1111
- y: _e(o * r) / r || 0
801
+ x: pe(n * r) / r || 0,
802
+ y: pe(o * r) / r || 0
1112
803
  };
1113
804
  }
1114
- function Ct(e) {
1115
- 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({
1116
- x: _,
805
+ function Pt(e) {
806
+ 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, m = e.isFixed, f = u.x, h = f === void 0 ? 0 : f, _ = u.y, E = _ === void 0 ? 0 : _, v = typeof d == "function" ? d({
807
+ x: h,
1117
808
  y: E
1118
809
  }) : {
1119
- x: _,
810
+ x: h,
1120
811
  y: E
1121
812
  };
1122
- _ = v.x, E = v.y;
1123
- var T = u.hasOwnProperty("x"), A = u.hasOwnProperty("y"), L = x, b = H, I = window;
813
+ h = v.x, E = v.y;
814
+ var I = u.hasOwnProperty("x"), A = u.hasOwnProperty("y"), O = H, b = B, g = window;
1124
815
  if (c) {
1125
- var M = Ue(n), N = "clientHeight", S = "clientWidth";
1126
- if (M === V(n) && (M = te(n), Y(M).position !== "static" && s === "absolute" && (N = "scrollHeight", S = "scrollWidth")), M = M, r === H || (r === x || r === G) && i === Le) {
1127
- b = F;
1128
- var U = h && M === I && I.visualViewport ? I.visualViewport.height : (
816
+ var M = Ne(n), P = "clientHeight", C = "clientWidth";
817
+ if (M === k(n) && (M = ee(n), J(M).position !== "static" && s === "absolute" && (P = "scrollHeight", C = "scrollWidth")), M = M, r === B || (r === H || r === V) && i === Oe) {
818
+ b = q;
819
+ var S = m && M === g && g.visualViewport ? g.visualViewport.height : (
1129
820
  // $FlowFixMe[prop-missing]
1130
- M[N]
821
+ M[P]
1131
822
  );
1132
- E -= U - o.height, E *= l ? 1 : -1;
823
+ E -= S - o.height, E *= l ? 1 : -1;
1133
824
  }
1134
- if (r === x || (r === H || r === F) && i === Le) {
1135
- L = G;
1136
- var C = h && M === I && I.visualViewport ? I.visualViewport.width : (
825
+ if (r === H || (r === B || r === q) && i === Oe) {
826
+ O = V;
827
+ var N = m && M === g && g.visualViewport ? g.visualViewport.width : (
1137
828
  // $FlowFixMe[prop-missing]
1138
- M[S]
829
+ M[C]
1139
830
  );
1140
- _ -= C - o.width, _ *= l ? 1 : -1;
831
+ h -= N - o.width, h *= l ? 1 : -1;
1141
832
  }
1142
833
  }
1143
- var w = Object.assign({
834
+ var R = Object.assign({
1144
835
  position: s
1145
- }, c && Mo), D = d === !0 ? Ao({
1146
- x: _,
836
+ }, c && jn), G = d === !0 ? Zn({
837
+ x: h,
1147
838
  y: E
1148
- }, V(n)) : {
1149
- x: _,
839
+ }, k(n)) : {
840
+ x: h,
1150
841
  y: E
1151
842
  };
1152
- if (_ = D.x, E = D.y, l) {
1153
- var B;
1154
- return Object.assign({}, w, (B = {}, B[b] = A ? "0" : "", B[L] = T ? "0" : "", B.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + _ + "px, " + E + "px)" : "translate3d(" + _ + "px, " + E + "px, 0)", B));
843
+ if (h = G.x, E = G.y, l) {
844
+ var D;
845
+ return Object.assign({}, R, (D = {}, D[b] = A ? "0" : "", D[O] = I ? "0" : "", D.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + E + "px)" : "translate3d(" + h + "px, " + E + "px, 0)", D));
1155
846
  }
1156
- return Object.assign({}, w, (t = {}, t[b] = A ? E + "px" : "", t[L] = T ? _ + "px" : "", t.transform = "", t));
847
+ return Object.assign({}, R, (t = {}, t[b] = A ? E + "px" : "", t[O] = I ? h + "px" : "", t.transform = "", t));
1157
848
  }
1158
- function Oo(e) {
1159
- 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;
1160
- if ({}.NODE_ENV !== "production") {
1161
- var c = Y(t.elements.popper).transitionProperty || "";
1162
- u && ["transform", "top", "right", "bottom", "left"].some(function(h) {
1163
- return c.indexOf(h) >= 0;
1164
- }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
1165
-
1166
- `, '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.", `
1167
-
1168
- `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
1169
- }
1170
- var d = {
1171
- placement: z(t.placement),
1172
- variation: me(t.placement),
849
+ function Xn(e) {
850
+ 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, c = {
851
+ placement: j(t.placement),
852
+ variation: _e(t.placement),
1173
853
  popper: t.elements.popper,
1174
854
  popperRect: t.rects.popper,
1175
855
  gpuAcceleration: r,
1176
856
  isFixed: t.options.strategy === "fixed"
1177
857
  };
1178
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ct(Object.assign({}, d, {
858
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Pt(Object.assign({}, c, {
1179
859
  offsets: t.modifiersData.popperOffsets,
1180
860
  position: t.options.strategy,
1181
861
  adaptive: u,
1182
862
  roundOffsets: l
1183
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ct(Object.assign({}, d, {
863
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Pt(Object.assign({}, c, {
1184
864
  offsets: t.modifiersData.arrow,
1185
865
  position: "absolute",
1186
866
  adaptive: !1,
@@ -1189,105 +869,105 @@ function Oo(e) {
1189
869
  "data-popper-placement": t.placement
1190
870
  });
1191
871
  }
1192
- const wo = {
872
+ const Jn = {
1193
873
  name: "computeStyles",
1194
874
  enabled: !0,
1195
875
  phase: "beforeWrite",
1196
- fn: Oo,
876
+ fn: Xn,
1197
877
  data: {}
1198
878
  };
1199
- var xe = {
879
+ var Be = {
1200
880
  passive: !0
1201
881
  };
1202
- function Lo(e) {
1203
- 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 = V(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
882
+ function Qn(e) {
883
+ 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);
1204
884
  return i && c.forEach(function(d) {
1205
- d.addEventListener("scroll", n.update, xe);
1206
- }), s && l.addEventListener("resize", n.update, xe), function() {
885
+ d.addEventListener("scroll", n.update, Be);
886
+ }), s && l.addEventListener("resize", n.update, Be), function() {
1207
887
  i && c.forEach(function(d) {
1208
- d.removeEventListener("scroll", n.update, xe);
1209
- }), s && l.removeEventListener("resize", n.update, xe);
888
+ d.removeEventListener("scroll", n.update, Be);
889
+ }), s && l.removeEventListener("resize", n.update, Be);
1210
890
  };
1211
891
  }
1212
- const yo = {
892
+ const eo = {
1213
893
  name: "eventListeners",
1214
894
  enabled: !0,
1215
895
  phase: "write",
1216
896
  fn: function() {
1217
897
  },
1218
- effect: Lo,
898
+ effect: Qn,
1219
899
  data: {}
1220
900
  };
1221
- var Po = {
901
+ var to = {
1222
902
  left: "right",
1223
903
  right: "left",
1224
904
  bottom: "top",
1225
905
  top: "bottom"
1226
906
  };
1227
- function qe(e) {
907
+ function xe(e) {
1228
908
  return e.replace(/left|right|bottom|top/g, function(t) {
1229
- return Po[t];
909
+ return to[t];
1230
910
  });
1231
911
  }
1232
- var No = {
912
+ var no = {
1233
913
  start: "end",
1234
914
  end: "start"
1235
915
  };
1236
- function Rt(e) {
916
+ function Nt(e) {
1237
917
  return e.replace(/start|end/g, function(t) {
1238
- return No[t];
918
+ return no[t];
1239
919
  });
1240
920
  }
1241
- function pt(e) {
1242
- var t = V(e), n = t.pageXOffset, o = t.pageYOffset;
921
+ function lt(e) {
922
+ var t = k(e), n = t.pageXOffset, o = t.pageYOffset;
1243
923
  return {
1244
924
  scrollLeft: n,
1245
925
  scrollTop: o
1246
926
  };
1247
927
  }
1248
- function ft(e) {
1249
- return he(te(e)).left + pt(e).scrollLeft;
928
+ function ct(e) {
929
+ return fe(ee(e)).left + lt(e).scrollLeft;
1250
930
  }
1251
- function So(e, t) {
1252
- var n = V(e), o = te(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, s = 0, l = 0;
931
+ function oo(e, t) {
932
+ var n = k(e), o = ee(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, s = 0, l = 0;
1253
933
  if (r) {
1254
934
  i = r.width, u = r.height;
1255
- var c = Jt();
935
+ var c = $t();
1256
936
  (c || !c && t === "fixed") && (s = r.offsetLeft, l = r.offsetTop);
1257
937
  }
1258
938
  return {
1259
939
  width: i,
1260
940
  height: u,
1261
- x: s + ft(e),
941
+ x: s + ct(e),
1262
942
  y: l
1263
943
  };
1264
944
  }
1265
- function Uo(e) {
1266
- var t, n = te(e), o = pt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = ce(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = ce(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), s = -o.scrollLeft + ft(e), l = -o.scrollTop;
1267
- return Y(r || n).direction === "rtl" && (s += ce(n.clientWidth, r ? r.clientWidth : 0) - i), {
945
+ function ro(e) {
946
+ var t, n = ee(e), o = lt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = se(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = se(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), s = -o.scrollLeft + ct(e), l = -o.scrollTop;
947
+ return J(r || n).direction === "rtl" && (s += se(n.clientWidth, r ? r.clientWidth : 0) - i), {
1268
948
  width: i,
1269
949
  height: u,
1270
950
  x: s,
1271
951
  y: l
1272
952
  };
1273
953
  }
1274
- function _t(e) {
1275
- var t = Y(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
954
+ function ut(e) {
955
+ var t = J(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
1276
956
  return /auto|scroll|overlay|hidden/.test(n + r + o);
1277
957
  }
1278
- function on(e) {
1279
- return ["html", "body", "#document"].indexOf(X(e)) >= 0 ? e.ownerDocument.body : q(e) && _t(e) ? e : on(je(e));
958
+ function Zt(e) {
959
+ return ["html", "body", "#document"].indexOf(Z(e)) >= 0 ? e.ownerDocument.body : F(e) && ut(e) ? e : Zt(qe(e));
1280
960
  }
1281
- function Ae(e, t) {
961
+ function ge(e, t) {
1282
962
  var n;
1283
963
  t === void 0 && (t = []);
1284
- var o = on(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = V(o), u = r ? [i].concat(i.visualViewport || [], _t(o) ? o : []) : o, s = t.concat(u);
964
+ var o = Zt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = k(o), u = r ? [i].concat(i.visualViewport || [], ut(o) ? o : []) : o, s = t.concat(u);
1285
965
  return r ? s : (
1286
966
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
1287
- s.concat(Ae(je(u)))
967
+ s.concat(ge(qe(u)))
1288
968
  );
1289
969
  }
1290
- function tt(e) {
970
+ function Xe(e) {
1291
971
  return Object.assign({}, e, {
1292
972
  left: e.x,
1293
973
  top: e.y,
@@ -1295,48 +975,48 @@ function tt(e) {
1295
975
  bottom: e.y + e.height
1296
976
  });
1297
977
  }
1298
- function Co(e, t) {
1299
- var n = he(e, !1, t === "fixed");
978
+ function io(e, t) {
979
+ var n = fe(e, !1, t === "fixed");
1300
980
  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;
1301
981
  }
1302
- function Dt(e, t, n) {
1303
- return t === Kt ? tt(So(e, n)) : ue(t) ? Co(t, n) : tt(Uo(te(e)));
982
+ function St(e, t, n) {
983
+ return t === Vt ? Xe(oo(e, n)) : le(t) ? io(t, n) : Xe(ro(ee(e)));
1304
984
  }
1305
- function Ro(e) {
1306
- var t = Ae(je(e)), n = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, o = n && q(e) ? Ue(e) : e;
1307
- return ue(o) ? t.filter(function(r) {
1308
- return ue(r) && Qt(r, o) && X(r) !== "body";
985
+ function ao(e) {
986
+ var t = ge(qe(e)), n = ["absolute", "fixed"].indexOf(J(e).position) >= 0, o = n && F(e) ? Ne(e) : e;
987
+ return le(o) ? t.filter(function(r) {
988
+ return le(r) && zt(r, o) && Z(r) !== "body";
1309
989
  }) : [];
1310
990
  }
1311
- function Do(e, t, n, o) {
1312
- var r = t === "clippingParents" ? Ro(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], s = i.reduce(function(l, c) {
1313
- var d = Dt(e, c, o);
1314
- return l.top = ce(d.top, l.top), l.right = Fe(d.right, l.right), l.bottom = Fe(d.bottom, l.bottom), l.left = ce(d.left, l.left), l;
1315
- }, Dt(e, u, o));
991
+ function so(e, t, n, o) {
992
+ var r = t === "clippingParents" ? ao(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], s = i.reduce(function(l, c) {
993
+ var d = St(e, c, o);
994
+ return l.top = se(d.top, l.top), l.right = ke(d.right, l.right), l.bottom = ke(d.bottom, l.bottom), l.left = se(d.left, l.left), l;
995
+ }, St(e, u, o));
1316
996
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
1317
997
  }
1318
- function rn(e) {
1319
- 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;
998
+ function Xt(e) {
999
+ var t = e.reference, n = e.element, o = e.placement, r = o ? j(o) : null, i = o ? _e(o) : null, u = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, l;
1320
1000
  switch (r) {
1321
- case H:
1001
+ case B:
1322
1002
  l = {
1323
1003
  x: u,
1324
1004
  y: t.y - n.height
1325
1005
  };
1326
1006
  break;
1327
- case F:
1007
+ case q:
1328
1008
  l = {
1329
1009
  x: u,
1330
1010
  y: t.y + t.height
1331
1011
  };
1332
1012
  break;
1333
- case G:
1013
+ case V:
1334
1014
  l = {
1335
1015
  x: t.x + t.width,
1336
1016
  y: s
1337
1017
  };
1338
1018
  break;
1339
- case x:
1019
+ case H:
1340
1020
  l = {
1341
1021
  x: t.x - n.width,
1342
1022
  y: s
@@ -1348,128 +1028,128 @@ function rn(e) {
1348
1028
  y: t.y
1349
1029
  };
1350
1030
  }
1351
- var c = r ? dt(r) : null;
1031
+ var c = r ? st(r) : null;
1352
1032
  if (c != null) {
1353
1033
  var d = c === "y" ? "height" : "width";
1354
1034
  switch (i) {
1355
- case fe:
1035
+ case de:
1356
1036
  l[c] = l[c] - (t[d] / 2 - n[d] / 2);
1357
1037
  break;
1358
- case Le:
1038
+ case Oe:
1359
1039
  l[c] = l[c] + (t[d] / 2 - n[d] / 2);
1360
1040
  break;
1361
1041
  }
1362
1042
  }
1363
1043
  return l;
1364
1044
  }
1365
- function ye(e, t) {
1045
+ function we(e, t) {
1366
1046
  t === void 0 && (t = {});
1367
- 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 ? to : s, c = n.rootBoundary, d = c === void 0 ? Kt : c, h = n.elementContext, f = h === void 0 ? Ie : h, _ = n.altBoundary, m = _ === void 0 ? !1 : _, E = n.padding, v = E === void 0 ? 0 : E, T = tn(typeof v != "number" ? v : nn(v, Se)), A = f === Ie ? no : Ie, L = e.rects.popper, b = e.elements[m ? A : f], I = Do(ue(b) ? b : b.contextElement || te(e.elements.popper), l, d, u), M = he(e.elements.reference), N = rn({
1047
+ 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 ? Ln : s, c = n.rootBoundary, d = c === void 0 ? Vt : c, m = n.elementContext, f = m === void 0 ? ve : m, h = n.altBoundary, _ = h === void 0 ? !1 : h, E = n.padding, v = E === void 0 ? 0 : E, I = Kt(typeof v != "number" ? v : jt(v, Pe)), A = f === ve ? yn : ve, O = e.rects.popper, b = e.elements[_ ? A : f], g = so(le(b) ? b : b.contextElement || ee(e.elements.popper), l, d, u), M = fe(e.elements.reference), P = Xt({
1368
1048
  reference: M,
1369
- element: L,
1049
+ element: O,
1370
1050
  strategy: "absolute",
1371
1051
  placement: r
1372
- }), S = tt(Object.assign({}, L, N)), U = f === Ie ? S : M, C = {
1373
- top: I.top - U.top + T.top,
1374
- bottom: U.bottom - I.bottom + T.bottom,
1375
- left: I.left - U.left + T.left,
1376
- right: U.right - I.right + T.right
1377
- }, w = e.modifiersData.offset;
1378
- if (f === Ie && w) {
1379
- var D = w[r];
1380
- Object.keys(C).forEach(function(B) {
1381
- var ne = [G, F].indexOf(B) >= 0 ? 1 : -1, oe = [H, F].indexOf(B) >= 0 ? "y" : "x";
1382
- C[B] += D[oe] * ne;
1052
+ }), C = Xe(Object.assign({}, O, P)), S = f === ve ? C : M, N = {
1053
+ top: g.top - S.top + I.top,
1054
+ bottom: S.bottom - g.bottom + I.bottom,
1055
+ left: g.left - S.left + I.left,
1056
+ right: S.right - g.right + I.right
1057
+ }, R = e.modifiersData.offset;
1058
+ if (f === ve && R) {
1059
+ var G = R[r];
1060
+ Object.keys(N).forEach(function(D) {
1061
+ var te = [V, q].indexOf(D) >= 0 ? 1 : -1, ne = [B, q].indexOf(D) >= 0 ? "y" : "x";
1062
+ N[D] += G[ne] * te;
1383
1063
  });
1384
1064
  }
1385
- return C;
1065
+ return N;
1386
1066
  }
1387
- function Bo(e, t) {
1067
+ function lo(e, t) {
1388
1068
  t === void 0 && (t = {});
1389
- 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 ? Xt : l, d = me(o), h = d ? s ? St : St.filter(function(m) {
1390
- return me(m) === d;
1391
- }) : Se, f = h.filter(function(m) {
1392
- return c.indexOf(m) >= 0;
1069
+ 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 ? Gt : l, d = _e(o), m = d ? s ? Lt : Lt.filter(function(_) {
1070
+ return _e(_) === d;
1071
+ }) : Pe, f = m.filter(function(_) {
1072
+ return c.indexOf(_) >= 0;
1393
1073
  });
1394
- 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(" ")));
1395
- var _ = f.reduce(function(m, E) {
1396
- return m[E] = ye(e, {
1074
+ f.length === 0 && (f = m);
1075
+ var h = f.reduce(function(_, E) {
1076
+ return _[E] = we(e, {
1397
1077
  placement: E,
1398
1078
  boundary: r,
1399
1079
  rootBoundary: i,
1400
1080
  padding: u
1401
- })[z(E)], m;
1081
+ })[j(E)], _;
1402
1082
  }, {});
1403
- return Object.keys(_).sort(function(m, E) {
1404
- return _[m] - _[E];
1083
+ return Object.keys(h).sort(function(_, E) {
1084
+ return h[_] - h[E];
1405
1085
  });
1406
1086
  }
1407
- function Ho(e) {
1408
- if (z(e) === $e)
1087
+ function co(e) {
1088
+ if (j(e) === rt)
1409
1089
  return [];
1410
- var t = qe(e);
1411
- return [Rt(e), t, Rt(t)];
1090
+ var t = xe(e);
1091
+ return [Nt(e), t, Nt(t)];
1412
1092
  }
1413
- function xo(e) {
1093
+ function uo(e) {
1414
1094
  var t = e.state, n = e.options, o = e.name;
1415
1095
  if (!t.modifiersData[o]._skip) {
1416
- 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, L = l || (A || !m ? [qe(v)] : Ho(v)), b = [v].concat(L).reduce(function(de, J) {
1417
- return de.concat(z(J) === $e ? Bo(t, {
1418
- placement: J,
1096
+ 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, m = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, _ = h === void 0 ? !0 : h, E = n.allowedAutoPlacements, v = t.options.placement, I = j(v), A = I === v, O = l || (A || !_ ? [xe(v)] : co(v)), b = [v].concat(O).reduce(function(ce, Q) {
1097
+ return ce.concat(j(Q) === rt ? lo(t, {
1098
+ placement: Q,
1419
1099
  boundary: d,
1420
- rootBoundary: h,
1100
+ rootBoundary: m,
1421
1101
  padding: c,
1422
- flipVariations: m,
1102
+ flipVariations: _,
1423
1103
  allowedAutoPlacements: E
1424
- }) : J);
1425
- }, []), I = t.rects.reference, M = t.rects.popper, N = /* @__PURE__ */ new Map(), S = !0, U = b[0], C = 0; C < b.length; C++) {
1426
- var w = b[C], D = z(w), B = me(w) === fe, ne = [H, F].indexOf(D) >= 0, oe = ne ? "width" : "height", W = ye(t, {
1427
- placement: w,
1104
+ }) : Q);
1105
+ }, []), g = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), C = !0, S = b[0], N = 0; N < b.length; N++) {
1106
+ var R = b[N], G = j(R), D = _e(R) === de, te = [B, q].indexOf(G) >= 0, ne = te ? "width" : "height", x = we(t, {
1107
+ placement: R,
1428
1108
  boundary: d,
1429
- rootBoundary: h,
1109
+ rootBoundary: m,
1430
1110
  altBoundary: f,
1431
1111
  padding: c
1432
- }), $ = ne ? B ? G : x : B ? F : H;
1433
- I[oe] > M[oe] && ($ = qe($));
1434
- var Ce = qe($), re = [];
1435
- if (i && re.push(W[D] <= 0), s && re.push(W[$] <= 0, W[Ce] <= 0), re.every(function(de) {
1436
- return de;
1112
+ }), $ = te ? D ? V : H : D ? q : B;
1113
+ g[ne] > M[ne] && ($ = xe($));
1114
+ var Se = xe($), oe = [];
1115
+ if (i && oe.push(x[G] <= 0), s && oe.push(x[$] <= 0, x[Se] <= 0), oe.every(function(ce) {
1116
+ return ce;
1437
1117
  })) {
1438
- U = w, S = !1;
1118
+ S = R, C = !1;
1439
1119
  break;
1440
1120
  }
1441
- N.set(w, re);
1121
+ P.set(R, oe);
1442
1122
  }
1443
- if (S)
1444
- for (var Re = m ? 3 : 1, ze = function(J) {
1445
- var be = b.find(function(Be) {
1446
- var ie = N.get(Be);
1447
- if (ie)
1448
- return ie.slice(0, J).every(function(Ye) {
1449
- return Ye;
1123
+ if (C)
1124
+ for (var Ue = _ ? 3 : 1, Ve = function(Q) {
1125
+ var Ee = b.find(function(Re) {
1126
+ var re = P.get(Re);
1127
+ if (re)
1128
+ return re.slice(0, Q).every(function(Ge) {
1129
+ return Ge;
1450
1130
  });
1451
1131
  });
1452
- if (be)
1453
- return U = be, "break";
1454
- }, ve = Re; ve > 0; ve--) {
1455
- var De = ze(ve);
1456
- if (De === "break")
1132
+ if (Ee)
1133
+ return S = Ee, "break";
1134
+ }, me = Ue; me > 0; me--) {
1135
+ var Ce = Ve(me);
1136
+ if (Ce === "break")
1457
1137
  break;
1458
1138
  }
1459
- t.placement !== U && (t.modifiersData[o]._skip = !0, t.placement = U, t.reset = !0);
1139
+ t.placement !== S && (t.modifiersData[o]._skip = !0, t.placement = S, t.reset = !0);
1460
1140
  }
1461
1141
  }
1462
- const Wo = {
1142
+ const po = {
1463
1143
  name: "flip",
1464
1144
  enabled: !0,
1465
1145
  phase: "main",
1466
- fn: xo,
1146
+ fn: uo,
1467
1147
  requiresIfExists: ["offset"],
1468
1148
  data: {
1469
1149
  _skip: !1
1470
1150
  }
1471
1151
  };
1472
- function Bt(e, t, n) {
1152
+ function Ut(e, t, n) {
1473
1153
  return n === void 0 && (n = {
1474
1154
  x: 0,
1475
1155
  y: 0
@@ -1480,39 +1160,39 @@ function Bt(e, t, n) {
1480
1160
  left: e.left - t.width - n.x
1481
1161
  };
1482
1162
  }
1483
- function Ht(e) {
1484
- return [H, G, F, x].some(function(t) {
1163
+ function Ct(e) {
1164
+ return [B, V, q, H].some(function(t) {
1485
1165
  return e[t] >= 0;
1486
1166
  });
1487
1167
  }
1488
- function ko(e) {
1489
- var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = ye(t, {
1168
+ function fo(e) {
1169
+ var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = we(t, {
1490
1170
  elementContext: "reference"
1491
- }), s = ye(t, {
1171
+ }), s = we(t, {
1492
1172
  altBoundary: !0
1493
- }), l = Bt(u, o), c = Bt(s, r, i), d = Ht(l), h = Ht(c);
1173
+ }), l = Ut(u, o), c = Ut(s, r, i), d = Ct(l), m = Ct(c);
1494
1174
  t.modifiersData[n] = {
1495
1175
  referenceClippingOffsets: l,
1496
1176
  popperEscapeOffsets: c,
1497
1177
  isReferenceHidden: d,
1498
- hasPopperEscaped: h
1178
+ hasPopperEscaped: m
1499
1179
  }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
1500
1180
  "data-popper-reference-hidden": d,
1501
- "data-popper-escaped": h
1181
+ "data-popper-escaped": m
1502
1182
  });
1503
1183
  }
1504
- const qo = {
1184
+ const _o = {
1505
1185
  name: "hide",
1506
1186
  enabled: !0,
1507
1187
  phase: "main",
1508
1188
  requiresIfExists: ["preventOverflow"],
1509
- fn: ko
1189
+ fn: fo
1510
1190
  };
1511
- function Vo(e, t, n) {
1512
- var o = z(e), r = [x, H].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
1191
+ function ho(e, t, n) {
1192
+ var o = j(e), r = [H, B].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
1513
1193
  placement: e
1514
1194
  })) : n, u = i[0], s = i[1];
1515
- return u = u || 0, s = (s || 0) * r, [x, G].indexOf(o) >= 0 ? {
1195
+ return u = u || 0, s = (s || 0) * r, [H, V].indexOf(o) >= 0 ? {
1516
1196
  x: s,
1517
1197
  y: u
1518
1198
  } : {
@@ -1520,109 +1200,109 @@ function Vo(e, t, n) {
1520
1200
  y: s
1521
1201
  };
1522
1202
  }
1523
- function Fo(e) {
1524
- var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Xt.reduce(function(d, h) {
1525
- return d[h] = Vo(h, t.rects, i), d;
1203
+ function mo(e) {
1204
+ var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Gt.reduce(function(d, m) {
1205
+ return d[m] = ho(m, t.rects, i), d;
1526
1206
  }, {}), s = u[t.placement], l = s.x, c = s.y;
1527
1207
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
1528
1208
  }
1529
- const Go = {
1209
+ const Eo = {
1530
1210
  name: "offset",
1531
1211
  enabled: !0,
1532
1212
  phase: "main",
1533
1213
  requires: ["popperOffsets"],
1534
- fn: Fo
1214
+ fn: mo
1535
1215
  };
1536
- function $o(e) {
1216
+ function vo(e) {
1537
1217
  var t = e.state, n = e.name;
1538
- t.modifiersData[n] = rn({
1218
+ t.modifiersData[n] = Xt({
1539
1219
  reference: t.rects.reference,
1540
1220
  element: t.rects.popper,
1541
1221
  strategy: "absolute",
1542
1222
  placement: t.placement
1543
1223
  });
1544
1224
  }
1545
- const jo = {
1225
+ const bo = {
1546
1226
  name: "popperOffsets",
1547
1227
  enabled: !0,
1548
1228
  phase: "read",
1549
- fn: $o,
1229
+ fn: vo,
1550
1230
  data: {}
1551
1231
  };
1552
- function zo(e) {
1232
+ function Io(e) {
1553
1233
  return e === "x" ? "y" : "x";
1554
1234
  }
1555
- function Yo(e) {
1556
- 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 = ye(t, {
1235
+ function To(e) {
1236
+ 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, m = n.padding, f = n.tether, h = f === void 0 ? !0 : f, _ = n.tetherOffset, E = _ === void 0 ? 0 : _, v = we(t, {
1557
1237
  boundary: l,
1558
1238
  rootBoundary: c,
1559
- padding: h,
1239
+ padding: m,
1560
1240
  altBoundary: d
1561
- }), T = z(t.placement), A = me(t.placement), L = !A, b = dt(T), I = zo(b), M = t.modifiersData.popperOffsets, N = t.rects.reference, S = t.rects.popper, U = typeof E == "function" ? E(Object.assign({}, t.rects, {
1241
+ }), I = j(t.placement), A = _e(t.placement), O = !A, b = st(I), g = Io(b), M = t.modifiersData.popperOffsets, P = t.rects.reference, C = t.rects.popper, S = typeof E == "function" ? E(Object.assign({}, t.rects, {
1562
1242
  placement: t.placement
1563
- })) : E, C = typeof U == "number" ? {
1564
- mainAxis: U,
1565
- altAxis: U
1243
+ })) : E, N = typeof S == "number" ? {
1244
+ mainAxis: S,
1245
+ altAxis: S
1566
1246
  } : Object.assign({
1567
1247
  mainAxis: 0,
1568
1248
  altAxis: 0
1569
- }, U), w = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
1249
+ }, S), R = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, G = {
1570
1250
  x: 0,
1571
1251
  y: 0
1572
1252
  };
1573
1253
  if (M) {
1574
1254
  if (i) {
1575
- var B, ne = b === "y" ? H : x, oe = b === "y" ? F : G, W = b === "y" ? "height" : "width", $ = M[b], Ce = $ + v[ne], re = $ - v[oe], Re = _ ? -S[W] / 2 : 0, ze = A === fe ? N[W] : S[W], ve = A === fe ? -S[W] : -N[W], De = t.elements.arrow, de = _ && De ? ut(De) : {
1255
+ var D, te = b === "y" ? B : H, ne = b === "y" ? q : V, x = b === "y" ? "height" : "width", $ = M[b], Se = $ + v[te], oe = $ - v[ne], Ue = h ? -C[x] / 2 : 0, Ve = A === de ? P[x] : C[x], me = A === de ? -C[x] : -P[x], Ce = t.elements.arrow, ce = h && Ce ? at(Ce) : {
1576
1256
  width: 0,
1577
1257
  height: 0
1578
- }, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : en(), be = J[ne], Be = J[oe], ie = Me(0, N[W], de[W]), Ye = L ? N[W] / 2 - Re - ie - be - C.mainAxis : ze - ie - be - C.mainAxis, _n = L ? -N[W] / 2 + Re + ie + Be + C.mainAxis : ve + ie + Be + C.mainAxis, Ze = t.elements.arrow && Ue(t.elements.arrow), hn = Ze ? b === "y" ? Ze.clientTop || 0 : Ze.clientLeft || 0 : 0, vt = (B = w == null ? void 0 : w[b]) != null ? B : 0, mn = $ + Ye - vt - hn, En = $ + _n - vt, bt = Me(_ ? Fe(Ce, mn) : Ce, $, _ ? ce(re, En) : re);
1579
- M[b] = bt, D[b] = bt - $;
1258
+ }, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yt(), Ee = Q[te], Re = Q[ne], re = Te(0, P[x], ce[x]), Ge = O ? P[x] / 2 - Ue - re - Ee - N.mainAxis : Ve - re - Ee - N.mainAxis, cn = O ? -P[x] / 2 + Ue + re + Re + N.mainAxis : me + re + Re + N.mainAxis, $e = t.elements.arrow && Ne(t.elements.arrow), un = $e ? b === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, ht = (D = R == null ? void 0 : R[b]) != null ? D : 0, dn = $ + Ge - ht - un, pn = $ + cn - ht, mt = Te(h ? ke(Se, dn) : Se, $, h ? se(oe, pn) : oe);
1259
+ M[b] = mt, G[b] = mt - $;
1580
1260
  }
1581
1261
  if (s) {
1582
- var It, vn = b === "x" ? H : x, bn = b === "x" ? F : G, ae = M[I], He = I === "y" ? "height" : "width", gt = ae + v[vn], Tt = ae - v[bn], Ke = [H, x].indexOf(T) !== -1, Mt = (It = w == null ? void 0 : w[I]) != null ? It : 0, At = Ke ? gt : ae - N[He] - S[He] - Mt + C.altAxis, Ot = Ke ? ae + N[He] + S[He] - Mt - C.altAxis : Tt, wt = _ && Ke ? vo(At, ae, Ot) : Me(_ ? At : gt, ae, _ ? Ot : Tt);
1583
- M[I] = wt, D[I] = wt - ae;
1262
+ var Et, fn = b === "x" ? B : H, _n = b === "x" ? q : V, ie = M[g], De = g === "y" ? "height" : "width", vt = ie + v[fn], bt = ie - v[_n], ze = [B, H].indexOf(I) !== -1, It = (Et = R == null ? void 0 : R[g]) != null ? Et : 0, Tt = ze ? vt : ie - P[De] - C[De] - It + N.altAxis, gt = ze ? ie + P[De] + C[De] - It - N.altAxis : bt, Mt = h && ze ? Gn(Tt, ie, gt) : Te(h ? Tt : vt, ie, h ? gt : bt);
1263
+ M[g] = Mt, G[g] = Mt - ie;
1584
1264
  }
1585
- t.modifiersData[o] = D;
1265
+ t.modifiersData[o] = G;
1586
1266
  }
1587
1267
  }
1588
- const Zo = {
1268
+ const go = {
1589
1269
  name: "preventOverflow",
1590
1270
  enabled: !0,
1591
1271
  phase: "main",
1592
- fn: Yo,
1272
+ fn: To,
1593
1273
  requiresIfExists: ["offset"]
1594
1274
  };
1595
- function Ko(e) {
1275
+ function Mo(e) {
1596
1276
  return {
1597
1277
  scrollLeft: e.scrollLeft,
1598
1278
  scrollTop: e.scrollTop
1599
1279
  };
1600
1280
  }
1601
- function Xo(e) {
1602
- return e === V(e) || !q(e) ? pt(e) : Ko(e);
1281
+ function Ao(e) {
1282
+ return e === k(e) || !F(e) ? lt(e) : Mo(e);
1603
1283
  }
1604
- function Jo(e) {
1605
- var t = e.getBoundingClientRect(), n = _e(t.width) / e.offsetWidth || 1, o = _e(t.height) / e.offsetHeight || 1;
1284
+ function Oo(e) {
1285
+ var t = e.getBoundingClientRect(), n = pe(t.width) / e.offsetWidth || 1, o = pe(t.height) / e.offsetHeight || 1;
1606
1286
  return n !== 1 || o !== 1;
1607
1287
  }
1608
- function Qo(e, t, n) {
1288
+ function wo(e, t, n) {
1609
1289
  n === void 0 && (n = !1);
1610
- var o = q(t), r = q(t) && Jo(t), i = te(t), u = he(e, r, n), s = {
1290
+ var o = F(t), r = F(t) && Oo(t), i = ee(t), u = fe(e, r, n), s = {
1611
1291
  scrollLeft: 0,
1612
1292
  scrollTop: 0
1613
1293
  }, l = {
1614
1294
  x: 0,
1615
1295
  y: 0
1616
1296
  };
1617
- return (o || !o && !n) && ((X(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1618
- _t(i)) && (s = Xo(t)), q(t) ? (l = he(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = ft(i))), {
1297
+ return (o || !o && !n) && ((Z(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1298
+ ut(i)) && (s = Ao(t)), F(t) ? (l = fe(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = ct(i))), {
1619
1299
  x: u.left + s.scrollLeft - l.x,
1620
1300
  y: u.top + s.scrollTop - l.y,
1621
1301
  width: u.width,
1622
1302
  height: u.height
1623
1303
  };
1624
1304
  }
1625
- function er(e) {
1305
+ function Lo(e) {
1626
1306
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
1627
1307
  e.forEach(function(i) {
1628
1308
  t.set(i.name, i);
@@ -1641,15 +1321,15 @@ function er(e) {
1641
1321
  n.has(i.name) || r(i);
1642
1322
  }), o;
1643
1323
  }
1644
- function tr(e) {
1645
- var t = er(e);
1646
- return Qe.reduce(function(n, o) {
1324
+ function yo(e) {
1325
+ var t = Lo(e);
1326
+ return xn.reduce(function(n, o) {
1647
1327
  return n.concat(t.filter(function(r) {
1648
1328
  return r.phase === o;
1649
1329
  }));
1650
1330
  }, []);
1651
1331
  }
1652
- function nr(e) {
1332
+ function Po(e) {
1653
1333
  var t;
1654
1334
  return function() {
1655
1335
  return t || (t = new Promise(function(n) {
@@ -1659,66 +1339,7 @@ function nr(e) {
1659
1339
  })), t;
1660
1340
  };
1661
1341
  }
1662
- function Q(e) {
1663
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
1664
- n[o - 1] = arguments[o];
1665
- return [].concat(n).reduce(function(r, i) {
1666
- return r.replace(/%s/, i);
1667
- }, e);
1668
- }
1669
- var le = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', or = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', xt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
1670
- function rr(e) {
1671
- e.forEach(function(t) {
1672
- [].concat(Object.keys(t), xt).filter(function(n, o, r) {
1673
- return r.indexOf(n) === o;
1674
- }).forEach(function(n) {
1675
- switch (n) {
1676
- case "name":
1677
- typeof t.name != "string" && console.error(Q(le, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
1678
- break;
1679
- case "enabled":
1680
- typeof t.enabled != "boolean" && console.error(Q(le, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
1681
- break;
1682
- case "phase":
1683
- Qe.indexOf(t.phase) < 0 && console.error(Q(le, t.name, '"phase"', "either " + Qe.join(", "), '"' + String(t.phase) + '"'));
1684
- break;
1685
- case "fn":
1686
- typeof t.fn != "function" && console.error(Q(le, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
1687
- break;
1688
- case "effect":
1689
- t.effect != null && typeof t.effect != "function" && console.error(Q(le, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
1690
- break;
1691
- case "requires":
1692
- t.requires != null && !Array.isArray(t.requires) && console.error(Q(le, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
1693
- break;
1694
- case "requiresIfExists":
1695
- Array.isArray(t.requiresIfExists) || console.error(Q(le, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
1696
- break;
1697
- case "options":
1698
- case "data":
1699
- break;
1700
- default:
1701
- console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + xt.map(function(o) {
1702
- return '"' + o + '"';
1703
- }).join(", ") + '; but "' + n + '" was provided.');
1704
- }
1705
- t.requires && t.requires.forEach(function(o) {
1706
- e.find(function(r) {
1707
- return r.name === o;
1708
- }) == null && console.error(Q(or, String(t.name), o, o));
1709
- });
1710
- });
1711
- });
1712
- }
1713
- function ir(e, t) {
1714
- var n = /* @__PURE__ */ new Set();
1715
- return e.filter(function(o) {
1716
- var r = t(o);
1717
- if (!n.has(r))
1718
- return n.add(r), !0;
1719
- });
1720
- }
1721
- function ar(e) {
1342
+ function No(e) {
1722
1343
  var t = e.reduce(function(n, o) {
1723
1344
  var r = n[o.name];
1724
1345
  return n[o.name] = r ? Object.assign({}, r, o, {
@@ -1730,27 +1351,27 @@ function ar(e) {
1730
1351
  return t[n];
1731
1352
  });
1732
1353
  }
1733
- var Wt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", sr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", kt = {
1354
+ var Rt = {
1734
1355
  placement: "bottom",
1735
1356
  modifiers: [],
1736
1357
  strategy: "absolute"
1737
1358
  };
1738
- function qt() {
1359
+ function Dt() {
1739
1360
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1740
1361
  t[n] = arguments[n];
1741
1362
  return !t.some(function(o) {
1742
1363
  return !(o && typeof o.getBoundingClientRect == "function");
1743
1364
  });
1744
1365
  }
1745
- function lr(e) {
1366
+ function So(e) {
1746
1367
  e === void 0 && (e = {});
1747
- var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? kt : r;
1368
+ var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? Rt : r;
1748
1369
  return function(s, l, c) {
1749
1370
  c === void 0 && (c = i);
1750
1371
  var d = {
1751
1372
  placement: "bottom",
1752
1373
  orderedModifiers: [],
1753
- options: Object.assign({}, kt, i),
1374
+ options: Object.assign({}, Rt, i),
1754
1375
  modifiersData: {},
1755
1376
  elements: {
1756
1377
  reference: s,
@@ -1758,35 +1379,18 @@ function lr(e) {
1758
1379
  },
1759
1380
  attributes: {},
1760
1381
  styles: {}
1761
- }, h = [], f = !1, _ = {
1382
+ }, m = [], f = !1, h = {
1762
1383
  state: d,
1763
- setOptions: function(T) {
1764
- var A = typeof T == "function" ? T(d.options) : T;
1384
+ setOptions: function(I) {
1385
+ var A = typeof I == "function" ? I(d.options) : I;
1765
1386
  E(), d.options = Object.assign({}, i, d.options, A), d.scrollParents = {
1766
- reference: ue(s) ? Ae(s) : s.contextElement ? Ae(s.contextElement) : [],
1767
- popper: Ae(l)
1387
+ reference: le(s) ? ge(s) : s.contextElement ? ge(s.contextElement) : [],
1388
+ popper: ge(l)
1768
1389
  };
1769
- var L = tr(ar([].concat(o, d.options.modifiers)));
1770
- if (d.orderedModifiers = L.filter(function(w) {
1771
- return w.enabled;
1772
- }), {}.NODE_ENV !== "production") {
1773
- var b = ir([].concat(L, d.options.modifiers), function(w) {
1774
- var D = w.name;
1775
- return D;
1776
- });
1777
- if (rr(b), z(d.options.placement) === $e) {
1778
- var I = d.orderedModifiers.find(function(w) {
1779
- var D = w.name;
1780
- return D === "flip";
1781
- });
1782
- I || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
1783
- }
1784
- var M = Y(l), N = M.marginTop, S = M.marginRight, U = M.marginBottom, C = M.marginLeft;
1785
- [N, S, U, C].some(function(w) {
1786
- return parseFloat(w);
1787
- }) && 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(" "));
1788
- }
1789
- return m(), _.update();
1390
+ var O = yo(No([].concat(o, d.options.modifiers)));
1391
+ return d.orderedModifiers = O.filter(function(b) {
1392
+ return b.enabled;
1393
+ }), _(), h.update();
1790
1394
  },
1791
1395
  // Sync update – it will always be executed, even if not necessary. This
1792
1396
  // is useful for low frequency updates where sync behavior simplifies the
@@ -1795,89 +1399,83 @@ function lr(e) {
1795
1399
  // prefer the async Popper#update method
1796
1400
  forceUpdate: function() {
1797
1401
  if (!f) {
1798
- var T = d.elements, A = T.reference, L = T.popper;
1799
- if (!qt(A, L)) {
1800
- ({}).NODE_ENV !== "production" && console.error(Wt);
1801
- return;
1802
- }
1803
- d.rects = {
1804
- reference: Qo(A, Ue(L), d.options.strategy === "fixed"),
1805
- popper: ut(L)
1806
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(w) {
1807
- return d.modifiersData[w.name] = Object.assign({}, w.data);
1808
- });
1809
- for (var b = 0, I = 0; I < d.orderedModifiers.length; I++) {
1810
- if ({}.NODE_ENV !== "production" && (b += 1, b > 100)) {
1811
- console.error(sr);
1812
- break;
1813
- }
1814
- if (d.reset === !0) {
1815
- d.reset = !1, I = -1;
1816
- continue;
1402
+ var I = d.elements, A = I.reference, O = I.popper;
1403
+ if (Dt(A, O)) {
1404
+ d.rects = {
1405
+ reference: wo(A, Ne(O), d.options.strategy === "fixed"),
1406
+ popper: at(O)
1407
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(N) {
1408
+ return d.modifiersData[N.name] = Object.assign({}, N.data);
1409
+ });
1410
+ for (var b = 0; b < d.orderedModifiers.length; b++) {
1411
+ if (d.reset === !0) {
1412
+ d.reset = !1, b = -1;
1413
+ continue;
1414
+ }
1415
+ var g = d.orderedModifiers[b], M = g.fn, P = g.options, C = P === void 0 ? {} : P, S = g.name;
1416
+ typeof M == "function" && (d = M({
1417
+ state: d,
1418
+ options: C,
1419
+ name: S,
1420
+ instance: h
1421
+ }) || d);
1817
1422
  }
1818
- var M = d.orderedModifiers[I], N = M.fn, S = M.options, U = S === void 0 ? {} : S, C = M.name;
1819
- typeof N == "function" && (d = N({
1820
- state: d,
1821
- options: U,
1822
- name: C,
1823
- instance: _
1824
- }) || d);
1825
1423
  }
1826
1424
  }
1827
1425
  },
1828
1426
  // Async and optimistically optimized update – it will not be executed if
1829
1427
  // not necessary (debounced to run at most once-per-tick)
1830
- update: nr(function() {
1428
+ update: Po(function() {
1831
1429
  return new Promise(function(v) {
1832
- _.forceUpdate(), v(d);
1430
+ h.forceUpdate(), v(d);
1833
1431
  });
1834
1432
  }),
1835
1433
  destroy: function() {
1836
1434
  E(), f = !0;
1837
1435
  }
1838
1436
  };
1839
- if (!qt(s, l))
1840
- return {}.NODE_ENV !== "production" && console.error(Wt), _;
1841
- _.setOptions(c).then(function(v) {
1437
+ if (!Dt(s, l))
1438
+ return h;
1439
+ h.setOptions(c).then(function(v) {
1842
1440
  !f && c.onFirstUpdate && c.onFirstUpdate(v);
1843
1441
  });
1844
- function m() {
1442
+ function _() {
1845
1443
  d.orderedModifiers.forEach(function(v) {
1846
- var T = v.name, A = v.options, L = A === void 0 ? {} : A, b = v.effect;
1444
+ var I = v.name, A = v.options, O = A === void 0 ? {} : A, b = v.effect;
1847
1445
  if (typeof b == "function") {
1848
- var I = b({
1446
+ var g = b({
1849
1447
  state: d,
1850
- name: T,
1851
- instance: _,
1852
- options: L
1448
+ name: I,
1449
+ instance: h,
1450
+ options: O
1853
1451
  }), M = function() {
1854
1452
  };
1855
- h.push(I || M);
1453
+ m.push(g || M);
1856
1454
  }
1857
1455
  });
1858
1456
  }
1859
1457
  function E() {
1860
- h.forEach(function(v) {
1458
+ m.forEach(function(v) {
1861
1459
  return v();
1862
- }), h = [];
1460
+ }), m = [];
1863
1461
  }
1864
- return _;
1462
+ return h;
1865
1463
  };
1866
1464
  }
1867
- var cr = [yo, jo, wo, ho, Go, Wo, Zo, To, qo], an = /* @__PURE__ */ lr({
1868
- defaultModifiers: cr
1465
+ var Uo = [eo, bo, Jn, Fn, Eo, po, go, Kn, _o], Jt = /* @__PURE__ */ So({
1466
+ defaultModifiers: Uo
1869
1467
  });
1870
- function nt(e, t, n, o) {
1468
+ function Je(e, t, n, o) {
1871
1469
  t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
1872
1470
  }
1873
- let k;
1874
- const ge = {}, ot = {
1471
+ let W;
1472
+ const be = {}, Qe = {
1875
1473
  SHIFT: "shift-key"
1876
1474
  };
1877
- function sn() {
1878
- k && (document.removeEventListener("click", k.globalOnClick), document.removeEventListener("keyup", k.globalOnKeyup), document.removeEventListener("keydown", k.globalOnKeydown), k = null);
1475
+ function Qt() {
1476
+ W && (document.removeEventListener("click", W.globalOnClick), document.removeEventListener("keyup", W.globalOnKeyup), document.removeEventListener("keydown", W.globalOnKeydown), W = null);
1879
1477
  }
1880
- function rt() {
1478
+ function et() {
1881
1479
  const e = document.querySelectorAll(
1882
1480
  `${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`
1883
1481
  );
@@ -1887,70 +1485,72 @@ function rt() {
1887
1485
  const o = document.querySelector(`[aria-controls="${n}"]`);
1888
1486
  o && o.setAttribute("aria-expanded", "false");
1889
1487
  }
1890
- nt(t, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN);
1488
+ Je(t, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN);
1891
1489
  });
1892
1490
  }
1893
- function ur() {
1894
- k && sn(), k = {}, k.globalOnClick = rt, document.addEventListener("click", k.globalOnClick), k.globalOnKeyup = (e) => {
1895
- e.key === "Escape" && rt(), e.shiftKey || (ge[ot.SHIFT] = !1), ge[e.key] = !1;
1896
- }, document.addEventListener("keyup", k.globalOnKeyup), k.globalOnKeydown = (e) => {
1897
- e.shiftKey && (ge[ot.SHIFT] = !0), ge[e.key] = !0;
1898
- }, document.addEventListener("keydown", k.globalOnKeydown);
1491
+ function Co() {
1492
+ W && Qt(), W = {}, W.globalOnClick = et, document.addEventListener("click", W.globalOnClick), W.globalOnKeyup = (e) => {
1493
+ e.key === "Escape" && et(), e.shiftKey || (be[Qe.SHIFT] = !1), be[e.key] = !1;
1494
+ }, document.addEventListener("keyup", W.globalOnKeyup), W.globalOnKeydown = (e) => {
1495
+ e.shiftKey && (be[Qe.SHIFT] = !0), be[e.key] = !0;
1496
+ }, document.addEventListener("keydown", W.globalOnKeydown);
1899
1497
  }
1900
- function dr() {
1498
+ function Ro() {
1901
1499
  return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
1902
1500
  }
1903
- function Pe(e, t, n, o, r) {
1501
+ function Le(e, t, n, o, r) {
1904
1502
  let i = NaN, u = NaN;
1905
1503
  const s = 300, l = 150, c = 50;
1906
1504
  t.setAttribute("aria-expanded", "false"), t.setAttribute("aria-haspopup", o);
1907
1505
  function d(f) {
1908
1506
  clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
1909
1507
  () => {
1910
- an(t, n, {
1911
- placement: (r == null ? void 0 : r.popupPlacement) || lt.BOTTOM,
1508
+ Jt(t, n, {
1509
+ placement: (r == null ? void 0 : r.popupPlacement) || ot.BOTTOM,
1912
1510
  modifiers: [
1913
1511
  {
1914
1512
  name: "offset",
1915
1513
  options: { offset: [0, 11] }
1916
1514
  }
1917
1515
  ]
1918
- }), nt(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));
1516
+ }), Je(n, !0, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "true"), document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach((h) => h.classList.add(a.TOOLTIP__WRAPPER__HIDDEN));
1919
1517
  },
1920
1518
  f
1921
1519
  ));
1922
1520
  }
1923
- function h(f) {
1521
+ function m(f) {
1924
1522
  clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (u = window.setTimeout(
1925
1523
  () => {
1926
- nt(n, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "false");
1524
+ Je(n, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "false");
1927
1525
  },
1928
1526
  f
1929
1527
  ));
1930
1528
  }
1931
- 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)) {
1529
+ if (r != null && r.preventOnClickHandling ? (X(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (f) => {
1530
+ f.preventDefault(), f.stopPropagation();
1531
+ }) : (e.addEventListener("focusin", () => d(l)), e.addEventListener("focusout", () => m(l))), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(s)), e.addEventListener("mouseleave", () => m(s))), !(r != null && r.preventOnClickHandling)) {
1932
1532
  if (t.onclick)
1933
1533
  throw new Error("popupFocusHandler: button already has onclick");
1934
1534
  t.onclick = (f) => {
1935
- var m;
1936
- const _ = t.getAttribute("aria-expanded") === "true";
1937
- (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), _ && t.getAttribute("aria-expanded") === "true" ? (h(c), (m = document.activeElement) == null || m.blur()) : (dr() && rt(), d(c))), r != null && r.onClick && r.onClick(f);
1535
+ var _;
1536
+ const h = t.getAttribute("aria-expanded") === "true";
1537
+ (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (m(c), (_ = document.activeElement) == null || _.blur()) : (Ro() && et(), d(c))), r != null && r.onClick && r.onClick(f);
1938
1538
  };
1939
1539
  }
1940
1540
  }
1941
- const pr = `<div class="popup__wrapper popup__wrapper--hidden">
1541
+ const Do = `<div class="popup__wrapper popup__wrapper--hidden">
1942
1542
  <div class="popup__content">
1943
1543
  <div class="popup__arrow" data-popper-arrow></div>
1944
1544
  </div>
1945
1545
  </div>
1946
1546
  `;
1947
- function ht(e, t) {
1547
+ function dt(e, t) {
1948
1548
  const n = e.getAttribute("id");
1949
1549
  if (!n)
1950
1550
  throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
1951
- const o = R();
1551
+ const o = U();
1952
1552
  e.setAttribute("aria-controls", o);
1953
- const r = g(pr);
1553
+ const r = T(Do);
1954
1554
  if (r.setAttribute("id", o), r.setAttribute("aria-labelledby", n), t != null && t.removePopupArrow) {
1955
1555
  const i = r.querySelector(p(a.POPUP_ARROW));
1956
1556
  if (!i)
@@ -1959,7 +1559,7 @@ function ht(e, t) {
1959
1559
  }
1960
1560
  return r;
1961
1561
  }
1962
- function fr(e) {
1562
+ function Bo(e) {
1963
1563
  const t = e.closest("li");
1964
1564
  if (!t)
1965
1565
  throw console.error("element", e), new Error("toggleChildMenuExpansion: parent not found for child");
@@ -1974,18 +1574,18 @@ function fr(e) {
1974
1574
  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));
1975
1575
  });
1976
1576
  }
1977
- function _r(e) {
1577
+ function Ho(e) {
1978
1578
  return (t) => {
1979
- t.preventDefault(), t.stopPropagation(), fr(e);
1579
+ t.preventDefault(), t.stopPropagation(), Bo(e);
1980
1580
  };
1981
1581
  }
1982
- function Vt() {
1983
- const e = g(Jn);
1582
+ function Bt() {
1583
+ const e = T(An);
1984
1584
  return e.classList.add(a.IS_CLOSED), e;
1985
1585
  }
1986
- function hr(e, t, n) {
1987
- var h, f;
1988
- const o = g(eo), r = o.querySelector(p(a.POPUP_MENU__TITLE));
1586
+ function xo(e, t, n) {
1587
+ var f, h;
1588
+ const o = T(wn), r = o.querySelector(p(a.POPUP_MENU__TITLE));
1989
1589
  if (!r)
1990
1590
  throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
1991
1591
  const i = (
@@ -2015,14 +1615,22 @@ function hr(e, t, n) {
2015
1615
  const d = o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);
2016
1616
  if (!d)
2017
1617
  throw new Error("renderPopupMenuItem: titleSpanLink not found");
2018
- if (t.actionMenu) {
1618
+ const m = t.actionMenu && [...t.actionMenu];
1619
+ if (m && (t.actionFunction || t.actionUrl || t.actionFunctionUrl) && m.unshift({
1620
+ actionFunction: t.actionFunction,
1621
+ actionFunctionUrl: t.actionFunctionUrl,
1622
+ actionUrl: t.actionUrl,
1623
+ className: t.className,
1624
+ icon: t.icon,
1625
+ title: `${t.title} (page)`
1626
+ }), m) {
2019
1627
  let _;
2020
1628
  switch (n.childrenMenuType) {
2021
- case j.FLYOUT: {
2022
- _ = Vt(), i.appendChild(_), i.setAttribute("id", R());
2023
- const m = mt(
1629
+ case z.FLYOUT: {
1630
+ _ = Bt(), i.appendChild(_), i.setAttribute("id", U());
1631
+ const E = pt(
2024
1632
  {
2025
- menuItems: t.actionMenu,
1633
+ menuItems: m,
2026
1634
  title: t.title
2027
1635
  },
2028
1636
  i,
@@ -2031,44 +1639,44 @@ function hr(e, t, n) {
2031
1639
  removePopupArrow: !0
2032
1640
  }
2033
1641
  );
2034
- o.appendChild(m), Pe(
1642
+ o.appendChild(E), Le(
2035
1643
  o,
2036
1644
  i,
2037
- m,
1645
+ E,
2038
1646
  "menu",
2039
1647
  {
2040
- popupPlacement: lt.RIGHT_START,
1648
+ popupPlacement: ot.RIGHT_START,
2041
1649
  preventOnClickHandling: !0,
2042
1650
  shouldFocusOnHover: !0
2043
1651
  }
2044
1652
  ), u.remove(), s.remove();
2045
1653
  break;
2046
1654
  }
2047
- case j.INLINE: {
2048
- const m = Ee(
2049
- t.actionMenu,
1655
+ case z.INLINE: {
1656
+ const E = he(
1657
+ m,
2050
1658
  n
2051
- ), E = R();
2052
- m.setAttribute("id", E), m.classList.add(a.VISUALLY_HIDDEN), o.appendChild(m), i.onclick = _r(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", E), _ = Vt(), i.appendChild(_), u.remove(), s.remove(), o.addEventListener("focusin", (v) => {
2053
- var T, A, L, b;
2054
- for (let I = (
1659
+ ), v = U();
1660
+ E.setAttribute("id", v), E.classList.add(a.VISUALLY_HIDDEN), o.appendChild(E), i.onclick = Ho(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", v), _ = Bt(), i.appendChild(_), u.remove(), s.remove(), o.addEventListener("focusin", (I) => {
1661
+ var A, O, b, g;
1662
+ for (let M = (
2055
1663
  /** @type Element | null | undefined */
2056
- (T = v.target) == null ? void 0 : T.closest("ul")
2057
- ); I; I = (A = I.parentElement) == null ? void 0 : A.closest("ul"))
2058
- I.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), v.target !== i && ((L = _ == null ? void 0 : _.classList) == null || L.remove(a.IS_CLOSED), (b = _ == null ? void 0 : _.classList) == null || b.add(a.IS_OPEN));
1664
+ (A = I.target) == null ? void 0 : A.closest("ul")
1665
+ ); M; M = (O = M.parentElement) == null ? void 0 : O.closest("ul"))
1666
+ M.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), I.target !== i && ((b = _ == null ? void 0 : _.classList) == null || b.remove(a.IS_CLOSED), (g = _ == null ? void 0 : _.classList) == null || g.add(a.IS_OPEN));
2059
1667
  });
2060
1668
  break;
2061
1669
  }
2062
- case j.MEGA_MENU: {
2063
- const m = Ee(
2064
- t.actionMenu,
1670
+ case z.MEGA_MENU: {
1671
+ const E = he(
1672
+ m,
2065
1673
  n
2066
- ), E = R();
2067
- m.setAttribute("id", E), o.appendChild(m), u.remove(), i.remove(), s.appendChild(document.createTextNode(t.title));
1674
+ ), v = U();
1675
+ E.setAttribute("id", v), o.appendChild(E), u.remove(), i.remove(), s.appendChild(document.createTextNode(t.title));
2068
1676
  break;
2069
1677
  }
2070
1678
  default:
2071
- throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${t.actionMenu}'`);
1679
+ throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`);
2072
1680
  }
2073
1681
  l.remove();
2074
1682
  } else if (t.actionFunction)
@@ -2077,34 +1685,58 @@ function hr(e, t, n) {
2077
1685
  u.setAttribute("href", t.actionUrl.url), i.remove(), l.remove(), s.remove();
2078
1686
  else if (t.actionFunctionUrl)
2079
1687
  u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (_) => {
2080
- var m, E;
2081
- (m = t.actionFunctionUrl) != null && m.skipHandleEvent || (_.stopPropagation(), _.preventDefault()), (E = t.actionFunctionUrl) == null || E.actionFunction(_);
1688
+ var E, v;
1689
+ (E = t.actionFunctionUrl) != null && E.skipHandleEvent || (_.stopPropagation(), _.preventDefault()), (v = t.actionFunctionUrl) == null || v.actionFunction(_);
2082
1690
  }, i.remove(), l.remove(), s.remove();
2083
1691
  else if (t.isDivider)
2084
1692
  r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
2085
1693
  else
2086
1694
  throw console.error(t), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
2087
- 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)) {
1695
+ if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (f = t.actionUrl) != null && f.openInNewTab || (h = t.actionFunctionUrl) != null && h.openInNewTab)) {
2088
1696
  u.setAttribute("target", "_blank");
2089
- const _ = g(Zt);
1697
+ const _ = T(qt);
2090
1698
  c.appendChild(_), d.appendChild(_);
2091
1699
  }
2092
- return (t.isSelected || t.actionMenu && Ve(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;
1700
+ return (t.isSelected || t.actionMenu && We(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;
2093
1701
  }
2094
- function Ee(e, t) {
2095
- const n = g(Qn);
2096
- return e == null || e.forEach((o) => hr(n, o, t)), n;
1702
+ function he(e, t) {
1703
+ const n = T(On);
1704
+ return e == null || e.forEach((o) => xo(n, o, t)), n;
2097
1705
  }
2098
- function mt(e, t, n) {
2099
- const o = ht(t, { removePopupArrow: n.removePopupArrow }), r = o.querySelector(p(a.POPUP_CONTENT_WRAPPER));
1706
+ function pt(e, t, n) {
1707
+ const o = dt(t, { removePopupArrow: n.removePopupArrow }), r = o.querySelector(p(a.POPUP_CONTENT_WRAPPER));
2100
1708
  if (!r)
2101
1709
  throw new Error("renderPopupMenu: contentWrapper not found");
2102
- const i = Ee(e.menuItems, n);
1710
+ const i = he(e.menuItems, n);
2103
1711
  return i.setAttribute("aria-label", e.title), r.appendChild(i), o;
2104
1712
  }
2105
- function mr(e) {
2106
- const t = g(Kn);
2107
- t.getAttribute("id") || t.setAttribute("id", R());
1713
+ const Wo = `<div class="utds-badge__wrapper">
1714
+ <span class="utds-badge__value"></span>
1715
+ <span class="utds-badge__label visually-hidden"></span>
1716
+ </div>
1717
+ `;
1718
+ function ft(e) {
1719
+ let t = null;
1720
+ if (e) {
1721
+ t = /** @type {HTMLElement} */
1722
+ T(Wo), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
1723
+ const n = t.querySelector(p(a.BADGE__LABEL));
1724
+ if (!n)
1725
+ throw new Error("renderActionItemBadge: badgeLabel not found");
1726
+ if (n.appendChild(document.createTextNode(e.label)), e.value || e.value === 0) {
1727
+ const o = t.querySelector(p(a.BADGE__VALUE));
1728
+ if (!o)
1729
+ throw new Error("renderActionItemBadge: badgeValue not found");
1730
+ o.appendChild(document.createTextNode(`${e.value}`));
1731
+ } else
1732
+ t.classList.add(a.BADGE_WRAPPER__SMALL);
1733
+ e.className && t.classList.add(e.className);
1734
+ }
1735
+ return t;
1736
+ }
1737
+ function ko(e) {
1738
+ const t = T(gn);
1739
+ t.getAttribute("id") || t.setAttribute("id", U());
2108
1740
  const n = document.createTextNode(e.title), o = (
2109
1741
  /** @type {HTMLElement} */
2110
1742
  t instanceof HTMLCollection ? t[0] : t
@@ -2121,30 +1753,30 @@ function mr(e) {
2121
1753
  if (!i)
2122
1754
  throw new Error("renderActionItem: iconButton not found");
2123
1755
  e.className && i.classList.add(e.className);
2124
- const u = at(e.badge);
1756
+ const u = ft(e.badge);
2125
1757
  u && i.appendChild(u);
2126
- const s = g(e.icon);
1758
+ const s = T(e.icon);
2127
1759
  s.setAttribute("role", "presentation"), i.appendChild(s);
2128
1760
  let l = null;
2129
1761
  if (e.actionFunction)
2130
1762
  i.onclick = e.actionFunction;
2131
1763
  else if (e.actionDom) {
2132
- const c = R();
2133
- i.setAttribute("id", c), l = g(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
1764
+ const c = U();
1765
+ i.setAttribute("id", c), l = T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
2134
1766
  } else if (e.actionPopupMenu) {
2135
- const c = R();
2136
- i.setAttribute("id", c), l = g(Xn);
1767
+ const c = U();
1768
+ i.setAttribute("id", c), l = T(Mn);
2137
1769
  const d = l.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
2138
1770
  if (!d)
2139
1771
  throw new Error("renderMobileActionItem: actionItemContentTitle not found");
2140
1772
  d.appendChild(document.createTextNode(e.actionPopupMenu.title));
2141
- const h = Ee(e.actionPopupMenu.menuItems, { childrenMenuType: j.INLINE });
2142
- l.appendChild(h);
1773
+ const m = he(e.actionPopupMenu.menuItems, { childrenMenuType: z.INLINE });
1774
+ l.appendChild(m);
2143
1775
  } else
2144
1776
  throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
2145
1777
  return { actionItemElement: t, actionItemContent: l };
2146
1778
  }
2147
- function Er() {
1779
+ function Fo() {
2148
1780
  var u, s, l;
2149
1781
  const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
2150
1782
  if (!e)
@@ -2155,11 +1787,11 @@ function Er() {
2155
1787
  );
2156
1788
  if (!t)
2157
1789
  throw new Error("renderMobileActionItems: homeActionItemWrapper not found");
2158
- const o = !!O().utahId ? document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID) : null, r = (
1790
+ const o = !!w().utahId ? document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID) : null, r = (
2159
1791
  /** @type {HTMLElement} */
2160
1792
  (u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
2161
1793
  );
2162
- (l = (s = [...O().actionItems || []].reverse()) == null ? void 0 : s.map((c) => ({ actionItem: c, ...mr(c) }))) == null || l.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: h }) => {
1794
+ (l = (s = [...w().actionItems || []].reverse()) == null ? void 0 : s.map((c) => ({ actionItem: c, ...ko(c) }))) == null || l.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: m }) => {
2163
1795
  let f;
2164
1796
  switch (c.mobileMenuLocation) {
2165
1797
  case "left":
@@ -2173,46 +1805,106 @@ function Er() {
2173
1805
  f = r || t;
2174
1806
  break;
2175
1807
  }
2176
- if (f && (f.after(h), d)) {
2177
- const _ = it(d);
2178
- let m = null;
2179
- c.actionDom ? m = "dialog" : c.actionPopupMenu && (m = "menu"), st(
2180
- h,
2181
- _,
1808
+ if (f && (f.after(m), d)) {
1809
+ const h = tt(d);
1810
+ let _ = null;
1811
+ c.actionDom ? _ = "dialog" : c.actionPopupMenu && (_ = "menu"), nt(
1812
+ m,
2182
1813
  h,
2183
- { ariaHasPopupType: m, shouldOnClickCloseMenu: !1 }
1814
+ m,
1815
+ { ariaHasPopupType: _, shouldOnClickCloseMenu: !1 }
2184
1816
  );
2185
1817
  }
2186
- }), O().mainMenu || (e.remove(), t.remove());
2187
- }
2188
- const vr = `<div class="utds-citizen-experience-wrapper--mobile"></div>
2189
- `, br = `<h1 class="utds-logo-wrapper"></h1>
2190
- `, Ir = `<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
2191
- `, gr = `<span class="utds-logo-vert-line"></span>
2192
- `, Tr = `<div class="utds-citizen-experience-wrapper"></div>
2193
- `, Mr = `<div class="utds-action-items-wrapper"></div>
2194
- `, Ar = `<div class="utds-header-action-item">
1818
+ }), w().mainMenu || (e.remove(), t.remove());
1819
+ }
1820
+ const qo = `<div class="utds-footer utah-design-system">
1821
+ <div class="utds-footer__horizontal-divider">
1822
+ <hr />
1823
+ </div>
1824
+ <div class="utds-footer__utah-logo-wrapper">
1825
+ <div class="utah-logo-svg" id="utah-logo-svg">
1826
+ <svg viewBox="0 0 107 30.51" role="img">
1827
+ <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>
1828
+ </svg>
1829
+ </div>
1830
+ <div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
1831
+ <div class="utds-footer__official-site-wrapper">
1832
+ <div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
1833
+ <div class="utds-footer__copyright">©2023 State of Utah</div>
1834
+ </div>
1835
+ </div>
1836
+ <div class="utds-footer__links">
1837
+ <ul>
1838
+ <li><a href="#" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
1839
+ <li><a href="#" target="__blank" rel="noreferrer">Terms of Use</a></li>
1840
+ <li><a href="#" target="__blank" rel="noreferrer">Privacy Policy</a></li>
1841
+ <li><a href="#" target="__blank" rel="noreferrer">Accessibility</a></li>
1842
+ <li><a href="#" target="__blank" rel="noreferrer">Translate</a></li>
1843
+ </ul>
1844
+ </div>
1845
+ </div>
1846
+ `;
1847
+ let ae = null;
1848
+ function Vo() {
1849
+ var o, r, i, u, s, l, c, d, m, f, h, _, E, v, I, A;
1850
+ const e = w(), t = document.querySelector(p(a.FOOTER));
1851
+ let n = t;
1852
+ if (e.footer === null)
1853
+ t == null || t.remove();
1854
+ else if (((o = ae == null ? void 0 : ae.footer) == null ? void 0 : o.domLocationTarget) !== ((r = e == null ? void 0 : e.footer) == null ? void 0 : r.domLocationTarget) || ((i = ae == null ? void 0 : ae.footer) == null ? void 0 : i.showHorizontalRule) !== ((u = e == null ? void 0 : e.footer) == null ? void 0 : u.showHorizontalRule) || !t) {
1855
+ t && t.remove(), n = T(qo);
1856
+ let b = document.body;
1857
+ if ((s = e == null ? void 0 : e.footer) != null && s.domLocationTarget) {
1858
+ const g = [
1859
+ (l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget.cssSelector,
1860
+ (c = e == null ? void 0 : e.footer) == null ? void 0 : c.domLocationTarget.element,
1861
+ (d = e == null ? void 0 : e.footer) == null ? void 0 : d.domLocationTarget.elementFunction
1862
+ ].filter((M) => M);
1863
+ if (X(g.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), X(g.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (m = e == null ? void 0 : e.footer) != null && m.domLocationTarget.cssSelector)
1864
+ b = document.querySelector((f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.cssSelector), X(!b, `renderFooter: element not found for domLocationTarget.cssSelector ${(h = e == null ? void 0 : e.footer) == null ? void 0 : h.domLocationTarget.cssSelector}`);
1865
+ else if ((_ = e == null ? void 0 : e.footer) != null && _.domLocationTarget.element)
1866
+ b = (E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.element;
1867
+ else if ((v = e == null ? void 0 : e.footer) != null && v.domLocationTarget.elementFunction)
1868
+ b = (I = e == null ? void 0 : e.footer) == null ? void 0 : I.domLocationTarget.elementFunction(), X(!b, "renderFooter: element not returned from domLocationTarget.elementFunction");
1869
+ else
1870
+ throw new Error("renderFooter: domLocationTarget must have at least one field set");
1871
+ }
1872
+ if (b == null || b.appendChild(n), !((A = e == null ? void 0 : e.footer) != null && A.showHorizontalRule)) {
1873
+ const g = document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));
1874
+ X(!g, "renderFooter: cannot remove horizontal rule; not found"), g == null || g.remove();
1875
+ }
1876
+ ae = JSON.parse(JSON.stringify(e));
1877
+ }
1878
+ return n;
1879
+ }
1880
+ const Go = `<div class="utds-citizen-experience-wrapper--mobile"></div>
1881
+ `, $o = `<h1 class="utds-logo-wrapper"></h1>
1882
+ `, zo = `<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
1883
+ `, Yo = `<span class="utds-logo-vert-line"></span>
1884
+ `, Ko = `<div class="utds-citizen-experience-wrapper"></div>
1885
+ `, jo = `<div class="utds-action-items-wrapper"></div>
1886
+ `, Zo = `<div class="utds-header-action-item">
2195
1887
  <button type="button" class="icon-button utds-header-action-item__icon-button">
2196
1888
  <div class="utds-header-action-item__title visually-hidden"></div>
2197
1889
  </button>
2198
1890
  </div>
2199
- `, Or = `<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
1891
+ `, Xo = `<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
2200
1892
  <div class="tooltip__content">
2201
1893
  <div class="tooltip__arrow" data-popper-arrow></div>
2202
1894
  </div>
2203
1895
  </div>
2204
1896
  `;
2205
- let pe = NaN;
2206
- function Oe(e, t) {
2207
- const n = g(Or), o = n.querySelector(p(a.TOOLTIP__CONTENT));
1897
+ let ue = NaN;
1898
+ function Me(e, t) {
1899
+ const n = T(Xo), o = n.querySelector(p(a.TOOLTIP__CONTENT));
2208
1900
  if (!o)
2209
1901
  throw new Error("hookupToolTip: toolTipContent not found");
2210
1902
  o.appendChild(t), e.appendChild(n);
2211
- const r = an(
1903
+ const r = Jt(
2212
1904
  e,
2213
1905
  n,
2214
1906
  {
2215
- placement: lt.BOTTOM,
1907
+ placement: ot.BOTTOM,
2216
1908
  modifiers: [
2217
1909
  {
2218
1910
  name: "offset",
@@ -2227,24 +1919,24 @@ function Oe(e, t) {
2227
1919
  e.onmouseenter = () => {
2228
1920
  clearTimeout(i), i = window.setTimeout(
2229
1921
  () => {
2230
- clearTimeout(pe), pe = -1;
1922
+ clearTimeout(ue), ue = -1;
2231
1923
  const u = e.querySelector(p(a.POPUP_WRAPPER));
2232
1924
  (!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)));
2233
1925
  },
2234
1926
  // tooltip was already opened on another item, so instantly open tooltip
2235
- pe ? 0 : 500
1927
+ ue ? 0 : 500
2236
1928
  );
2237
1929
  }, e.onmouseleave = () => {
2238
- clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(pe), pe = window.setTimeout(
1930
+ clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(ue), ue = window.setTimeout(
2239
1931
  () => {
2240
- pe = NaN;
1932
+ ue = NaN;
2241
1933
  },
2242
1934
  500
2243
1935
  );
2244
1936
  };
2245
1937
  }
2246
- function wr(e) {
2247
- const t = g(Ar), n = document.createTextNode(e.title), o = (
1938
+ function Jo(e) {
1939
+ const t = T(Zo), n = document.createTextNode(e.title), o = (
2248
1940
  /** @type {HTMLElement} */
2249
1941
  t instanceof HTMLCollection ? t[0] : t
2250
1942
  );
@@ -2257,89 +1949,89 @@ function wr(e) {
2257
1949
  if (!i)
2258
1950
  throw new Error("renderActionItem: iconButton not found");
2259
1951
  e.className && i.classList.add(e.className);
2260
- const u = at(e.badge);
1952
+ const u = ft(e.badge);
2261
1953
  u && i.appendChild(u);
2262
- const s = g(e.icon);
1954
+ const s = T(e.icon);
2263
1955
  if (s.setAttribute("role", "presentation"), i.appendChild(s), !(i instanceof HTMLElement))
2264
1956
  throw new Error("renderActionItem: iconButton is not an HTMLElement");
2265
1957
  if (e.actionFunction)
2266
1958
  i.onclick = e.actionFunction;
2267
1959
  else if (e.actionDom) {
2268
- const l = R();
1960
+ const l = U();
2269
1961
  i.setAttribute("id", l);
2270
- const c = ht(i), d = (
1962
+ const c = dt(i), d = (
2271
1963
  /** @type {HTMLElement} */
2272
1964
  c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
2273
1965
  );
2274
1966
  if (!d)
2275
1967
  throw new Error("renderPopupMenu: contentWrapper not found");
2276
- d.appendChild(g(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), Pe(o, i, c, "dialog", void 0);
1968
+ d.appendChild(T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), Le(o, i, c, "dialog", void 0);
2277
1969
  } else if (e.actionPopupMenu) {
2278
- const l = R();
1970
+ const l = U();
2279
1971
  i.setAttribute("id", l);
2280
- const c = mt(
1972
+ const c = pt(
2281
1973
  /** @type {PopupMenu} */
2282
1974
  e.actionPopupMenu,
2283
1975
  i,
2284
- { childrenMenuType: j.INLINE }
1976
+ { childrenMenuType: z.INLINE }
2285
1977
  );
2286
- t.appendChild(c), Pe(o, i, c, "menu", void 0);
1978
+ t.appendChild(c), Le(o, i, c, "menu", void 0);
2287
1979
  } else
2288
1980
  throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
2289
- return Oe(t, document.createTextNode(e.title)), t;
1981
+ return Me(t, document.createTextNode(e.title)), t;
2290
1982
  }
2291
- function Lr() {
1983
+ function Qo() {
2292
1984
  var n, o;
2293
- const { actionItems: e } = O();
1985
+ const { actionItems: e } = w();
2294
1986
  let t = null;
2295
- return e != null && e.length && (t = g(Mr), (o = (n = O().actionItems) == null ? void 0 : n.map((r) => wr(r))) == null || o.forEach((r) => t.appendChild(r))), t;
1987
+ return e != null && e.length && (t = T(jo), (o = (n = w().actionItems) == null ? void 0 : n.map((r) => Jo(r))) == null || o.forEach((r) => t.appendChild(r))), t;
2296
1988
  }
2297
- const yr = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
2298
- `, ln = `<div class="utds-utah-id-wrapper"></div>
2299
- `, Ne = {
1989
+ const er = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
1990
+ `, en = `<div class="utds-utah-id-wrapper"></div>
1991
+ `, ye = {
2300
1992
  PROFILE: "https://id.utah.gov",
2301
1993
  SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
2302
1994
  SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
2303
1995
  USER_INFO: "https://id.utah.gov/api/userInfo"
2304
- }, Pr = `<div class="vertical-menu__wrapper">
1996
+ }, tr = `<div class="vertical-menu__wrapper">
2305
1997
  <div class="vertical-menu__wrapper-title"></div>
2306
1998
  </div>
2307
1999
  `;
2308
- function cn(e, t) {
2309
- const n = g(Pr), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
2000
+ function tn(e, t) {
2001
+ const n = T(tr), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
2310
2002
  if (!o)
2311
2003
  throw new Error("renderMenuWithTitle: menuTitleDiv not found");
2312
2004
  return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
2313
2005
  }
2314
- let y = null;
2315
- function un(e) {
2316
- y = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
2006
+ let L = null;
2007
+ function nn(e) {
2008
+ L = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
2317
2009
  var o;
2318
2010
  if (n) {
2319
- if (n.innerHTML = "", y != null && y.userInfo && ((o = y.userInfo) != null && o.authenticated)) {
2011
+ if (n.innerHTML = "", L != null && L.userInfo && ((o = L.userInfo) != null && o.authenticated)) {
2320
2012
  const u = document.createElement("span");
2321
- u.appendChild(document.createTextNode("UtahID Account:")), u.classList.add(a.VISUALLY_HIDDEN), n.appendChild(u), n.appendChild(document.createTextNode(`Hello, ${y.userInfo.first || ""}`));
2013
+ u.appendChild(document.createTextNode("UtahID Account:")), u.classList.add(a.VISUALLY_HIDDEN), n.appendChild(u), n.appendChild(document.createTextNode(`Hello, ${L.userInfo.first || ""}`));
2322
2014
  } else
2323
2015
  n.appendChild(document.createTextNode("UtahID Sign In"));
2324
2016
  const r = n.getAttribute("aria-controls");
2325
2017
  if (!r)
2326
2018
  throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);
2327
2019
  const i = document.getElementById(r);
2328
- i && Et(n, i);
2020
+ i && _t(n, i);
2329
2021
  }
2330
2022
  });
2331
2023
  }
2332
- function Et(e, t) {
2024
+ function _t(e, t) {
2333
2025
  var n;
2334
- 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")));
2026
+ e && t && (!!(L != null && L.isDefinitive) && !!((n = L == null ? void 0 : L.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")));
2335
2027
  }
2336
- function dn() {
2337
- const e = g(yr);
2338
- return e.setAttribute("id", R()), y && un(y), e;
2028
+ function on() {
2029
+ const e = T(er);
2030
+ return e.setAttribute("id", U()), L && nn(L), e;
2339
2031
  }
2340
- function pn(e) {
2032
+ function rn(e) {
2341
2033
  var l, c, d;
2342
- 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) || []];
2034
+ const t = w(), 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) || []];
2343
2035
  r.length && r.push({
2344
2036
  isDivider: !0,
2345
2037
  title: "--divider--"
@@ -2347,32 +2039,32 @@ function pn(e) {
2347
2039
  const i = [
2348
2040
  ...r,
2349
2041
  {
2350
- actionUrl: n ? void 0 : { url: Ne.PROFILE, openInNewTab: !0 },
2042
+ actionUrl: n ? void 0 : { url: ye.PROFILE, openInNewTab: !0 },
2351
2043
  actionFunction: n || void 0,
2352
2044
  className: "external-link",
2353
2045
  title: "UtahID Profile"
2354
2046
  },
2355
2047
  {
2356
- actionUrl: o ? void 0 : { url: Ne.SIGN_OUT },
2048
+ actionUrl: o ? void 0 : { url: ye.SIGN_OUT },
2357
2049
  actionFunction: o || void 0,
2358
2050
  title: "Sign Out"
2359
2051
  }
2360
- ], u = Ee(i, { childrenMenuType: j.INLINE }), s = e ? cn(u, "Utah ID Menu") : u;
2361
- return s.setAttribute("aria-label", "Utah Id Menu"), s.setAttribute("id", R()), s;
2052
+ ], u = he(i, { childrenMenuType: z.INLINE }), s = e ? tn(u, "Utah ID Menu") : u;
2053
+ return s.setAttribute("aria-label", "Utah Id Menu"), s.setAttribute("id", U()), s;
2362
2054
  }
2363
- function Nr() {
2055
+ function nr() {
2364
2056
  var s;
2365
- const e = g(ln), t = dn();
2366
- t.setAttribute("id", R()), e.appendChild(t);
2367
- const n = pn(!1), o = ht(t), r = (
2057
+ const e = T(en), t = on();
2058
+ t.setAttribute("id", U()), e.appendChild(t);
2059
+ const n = rn(!1), o = dt(t), r = (
2368
2060
  /** @type {HTMLElement} */
2369
2061
  o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
2370
2062
  );
2371
2063
  if (!r)
2372
2064
  throw new Error("renderUtahIdForDesktop: contentWrapper not found");
2373
- r.appendChild(n), e.appendChild(o), Et(t, o);
2374
- const i = O(), u = i.utahId !== !1 && i.utahId !== !0 && ((s = i.utahId) == null ? void 0 : s.onSignIn);
2375
- return Pe(
2065
+ r.appendChild(n), e.appendChild(o), _t(t, o);
2066
+ const i = w(), u = i.utahId !== !1 && i.utahId !== !0 && ((s = i.utahId) == null ? void 0 : s.onSignIn);
2067
+ return Le(
2376
2068
  e,
2377
2069
  t,
2378
2070
  o,
@@ -2380,55 +2072,55 @@ function Nr() {
2380
2072
  {
2381
2073
  isPerformPopup: () => {
2382
2074
  var l;
2383
- return !!(y != null && y.isDefinitive) && !!((l = y == null ? void 0 : y.userInfo) != null && l.authenticated);
2075
+ return !!(L != null && L.isDefinitive) && !!((l = L == null ? void 0 : L.userInfo) != null && l.authenticated);
2384
2076
  },
2385
2077
  onClick: (l) => {
2386
2078
  var c;
2387
- (!(y != null && y.isDefinitive) || !((c = y == null ? void 0 : y.userInfo) != null && c.authenticated)) && (u ? u(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = Ne.SIGN_IN));
2079
+ (!(L != null && L.isDefinitive) || !((c = L == null ? void 0 : L.userInfo) != null && c.authenticated)) && (u ? u(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = ye.SIGN_IN));
2388
2080
  }
2389
2081
  }
2390
2082
  ), e;
2391
2083
  }
2392
- function Sr() {
2393
- const e = g(ln), t = dn(), n = t.getAttribute("id");
2084
+ function or() {
2085
+ const e = T(en), t = on(), n = t.getAttribute("id");
2394
2086
  if (!n)
2395
2087
  throw new Error("renderUtahIdForMobile: utahIdButton has no id");
2396
2088
  e.appendChild(t);
2397
- const o = pn(!0), r = o.getAttribute("id");
2089
+ const o = rn(!0), r = o.getAttribute("id");
2398
2090
  if (!r)
2399
2091
  throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
2400
- return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), Et(t, o), { button: t, menu: o };
2092
+ return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), _t(t, o), { button: t, menu: o };
2401
2093
  }
2402
- function Ur() {
2403
- const e = g(Tr), t = Lr();
2404
- return t && e.appendChild(t), O().utahId !== !1 && e.appendChild(Nr()), e;
2094
+ function rr() {
2095
+ const e = T(Ko), t = Qo();
2096
+ return t && e.appendChild(t), w().utahId !== !1 && e.appendChild(nr()), e;
2405
2097
  }
2406
- const Cr = `<div class="utds-title-wrapper">
2098
+ const ir = `<div class="utds-title-wrapper">
2407
2099
  <div class="utds-title-wrapper__logo"></div>
2408
2100
  <div class="utds-title-wrapper__title"></div>
2409
2101
  </div>
2410
- `, Rr = `<a class="utds-title-wrapper">
2102
+ `, ar = `<a class="utds-title-wrapper">
2411
2103
  <div class="utds-title-wrapper__logo"></div>
2412
2104
  <div class="utds-title-wrapper__title"></div>
2413
2105
  </a>
2414
2106
  `;
2415
- function Dr() {
2416
- const e = O().titleURL, t = g(e ? Rr : Cr);
2107
+ function sr() {
2108
+ const e = w().titleURL, t = T(e ? ar : ir);
2417
2109
  if (!t)
2418
2110
  throw new Error("LogoTitle: titleWrapper is null");
2419
2111
  e && t.setAttribute("href", e);
2420
2112
  const n = t.querySelector(p(a.TITLE__LOGO));
2421
2113
  if (!n)
2422
2114
  throw new Error("LogoTitle: logoWrapper is null");
2423
- const o = O().logo, r = O().showTitle, i = O().title;
2115
+ const o = w().logo, r = w().showTitle, i = w().title;
2424
2116
  if (o) {
2425
2117
  let l;
2426
2118
  if (o.htmlString)
2427
- l = g(K(o.htmlString));
2119
+ l = T(K(o.htmlString));
2428
2120
  else if (o.element)
2429
2121
  l = K(o.element);
2430
2122
  else if (o.imageUrl)
2431
- l = g(`<img src=${K(o.imageUrl)} id="design-system-logo" />`);
2123
+ l = T(`<img src=${K(o.imageUrl)} id="design-system-logo" />`);
2432
2124
  else
2433
2125
  throw new Error("LogoTitle: logo set but has no settings");
2434
2126
  l.setAttribute("role", "presentation"), n.appendChild(l);
@@ -2437,7 +2129,7 @@ function Dr() {
2437
2129
  const u = document.createTextNode(i), s = t.querySelector(p(a.TITLE__TITLE));
2438
2130
  return s == null || s.appendChild(u), !r && o && (s == null || s.classList.add(a.VISUALLY_HIDDEN)), t;
2439
2131
  }
2440
- const Br = `<div class="utah-logo-wrapper">
2132
+ const lr = `<div class="utah-logo-wrapper">
2441
2133
  <button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
2442
2134
  <span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
2443
2135
  more.</span>
@@ -2454,7 +2146,7 @@ const Br = `<div class="utah-logo-wrapper">
2454
2146
  </svg>
2455
2147
  </button>
2456
2148
  </div>
2457
- `, Hr = `<div class="utah-logo-wrapper">
2149
+ `, cr = `<div class="utah-logo-wrapper">
2458
2150
  <button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
2459
2151
  <span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
2460
2152
  more.</span>
@@ -2471,45 +2163,45 @@ const Br = `<div class="utah-logo-wrapper">
2471
2163
  </svg>
2472
2164
  </button>
2473
2165
  </div>
2474
- `, xr = `<div class="utds-official-website-hover__wrapper">
2166
+ `, ur = `<div class="utds-official-website-hover__wrapper">
2475
2167
  How do I know it’s official?<br />
2476
2168
  Learn more.
2477
2169
  </div>
2478
2170
  `;
2479
- function Wr() {
2171
+ function dr() {
2480
2172
  let e;
2481
- switch (O().size) {
2482
- case Te.LARGE:
2483
- e = Br;
2173
+ switch (w().size) {
2174
+ case Ie.LARGE:
2175
+ e = lr;
2484
2176
  break;
2485
- case Te.SMALL:
2486
- case Te.MEDIUM:
2487
- e = Hr;
2177
+ case Ie.SMALL:
2178
+ case Ie.MEDIUM:
2179
+ e = cr;
2488
2180
  break;
2489
2181
  default:
2490
- throw new Error(`Unknown settings size: '${O().size}'`);
2182
+ throw new Error(`Unknown settings size: '${w().size}'`);
2491
2183
  }
2492
- const t = g(e);
2184
+ const t = T(e);
2493
2185
  if (!/** @type {HTMLElement} */
2494
2186
  t.querySelector(p(a.LOGO_SVG)))
2495
2187
  throw new Error("UtahLogo: logoButton not found");
2496
- return t.setAttribute("id", R()), Oe(t, g(xr)), t;
2188
+ return t.setAttribute("id", U()), Me(t, T(ur)), t;
2497
2189
  }
2498
- function kr() {
2190
+ function pr() {
2499
2191
  var n;
2500
- const e = g(Ir);
2501
- e.classList.add(`utds-header--${((n = O().size) == null ? void 0 : n.toLowerCase()) || Te.MEDIUM}`);
2502
- const t = g(br);
2503
- return e.appendChild(t), t.appendChild(Wr()), t.appendChild(g(gr)), t.appendChild(Dr()), e.appendChild(Ur()), e.appendChild(g(vr)), e;
2192
+ const e = T(zo);
2193
+ e.classList.add(`utds-header--${((n = w().size) == null ? void 0 : n.toLowerCase()) || Ie.MEDIUM}`);
2194
+ const t = T($o);
2195
+ return e.appendChild(t), t.appendChild(dr()), t.appendChild(T(Yo)), t.appendChild(sr()), e.appendChild(rr()), e.appendChild(T(Go)), e;
2504
2196
  }
2505
- const qr = `<li class="menu-item">
2197
+ const fr = `<li class="menu-item">
2506
2198
  <span class="menu-item__title">
2507
2199
  <button class="menu-item__button-title" type="button"></button>
2508
2200
  <a class="menu-item__link-title"></a>
2509
2201
  <span class="menu-chiclet"></span>
2510
2202
  </span>
2511
2203
  </li>
2512
- `, Vr = `<div class="utah-design-system main-menu__outer">
2204
+ `, _r = `<div class="utah-design-system main-menu__outer">
2513
2205
  <div class="main-menu__wrapper">
2514
2206
  <nav class="horizontal-menu main-menu__nav">
2515
2207
  <h2 class="main-menu__title visually-hidden"></h2>
@@ -2536,7 +2228,7 @@ const qr = `<li class="menu-item">
2536
2228
  </button>
2537
2229
  </div>
2538
2230
  </div>
2539
- `, Fr = `<div class="utah-design-system" id="search-modal">
2231
+ `, hr = `<div class="utah-design-system" id="search-modal">
2540
2232
  <div class="search-modal__close-button-wrapper">
2541
2233
  <button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
2542
2234
  <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
@@ -2562,7 +2254,7 @@ const qr = `<li class="menu-item">
2562
2254
  <div class="search-backdrop modal-backdrop backdrop-dark"></div>
2563
2255
  </div>
2564
2256
  `;
2565
- function We() {
2257
+ function He() {
2566
2258
  const e = document.getElementById(a.SEARCH__SEARCH_MODAL);
2567
2259
  if (!e)
2568
2260
  throw new Error("closSearchModal: searchModal not found");
@@ -2575,8 +2267,8 @@ function We() {
2575
2267
  throw new Error("closSearchModal: searchIcon not found");
2576
2268
  t.focus();
2577
2269
  }
2578
- function Xe() {
2579
- const e = g(Fr), t = (
2270
+ function Ye() {
2271
+ const e = T(hr), t = (
2580
2272
  /** @type {HTMLElement} */
2581
2273
  e.querySelector(p(a.SEARCH__SEARCH_BACKDROP))
2582
2274
  );
@@ -2607,20 +2299,21 @@ function Xe() {
2607
2299
  if (!i)
2608
2300
  throw new Error("showSearchModal: searchInput not found");
2609
2301
  o.onclick = (s) => {
2610
- var l, c;
2611
- s.preventDefault(), s.stopPropagation(), We(), (c = (l = O()).onSearch) == null || c.call(l, i.value);
2302
+ s.preventDefault(), s.stopPropagation(), He();
2303
+ const { onSearch: l } = w();
2304
+ l && (l == null || l(i.value));
2612
2305
  }, n.onclick = (s) => {
2613
- s.preventDefault(), s.stopPropagation(), We();
2306
+ s.preventDefault(), s.stopPropagation(), He();
2614
2307
  }, t.onclick = (s) => {
2615
- s.preventDefault(), s.stopPropagation(), We();
2308
+ s.preventDefault(), s.stopPropagation(), He();
2616
2309
  }, document.body.appendChild(e), i.focus(), i.oninput = () => {
2617
2310
  r.classList.remove(a.VISUALLY_HIDDEN);
2618
2311
  }, o.onfocus = () => {
2619
2312
  r.classList.remove(a.VISUALLY_HIDDEN);
2620
2313
  }, e.onkeyup = (s) => {
2621
- (s.code === "Escape" || s.key === "Escape") && (s.preventDefault(), s.stopPropagation(), We());
2314
+ (s.code === "Escape" || s.key === "Escape") && (s.preventDefault(), s.stopPropagation(), He());
2622
2315
  }, n.addEventListener("focusout", (s) => {
2623
- s.preventDefault(), s.stopPropagation(), ge[ot.SHIFT] ? o.focus() : i.focus();
2316
+ s.preventDefault(), s.stopPropagation(), be[Qe.SHIFT] ? o.focus() : i.focus();
2624
2317
  });
2625
2318
  const u = e.querySelector(".search-modal__hidden-last-focusable");
2626
2319
  if (!u)
@@ -2629,9 +2322,9 @@ function Xe() {
2629
2322
  s.preventDefault(), s.stopPropagation(), n.focus();
2630
2323
  });
2631
2324
  }
2632
- function Gr() {
2325
+ function mr() {
2633
2326
  var s;
2634
- const e = O(), t = g(Vr);
2327
+ const e = w(), t = T(_r);
2635
2328
  let n = t.querySelector(p(a.MAIN_MENU__NAV));
2636
2329
  if (!n)
2637
2330
  throw new Error("renderMainMenu(): mainMenu not created");
@@ -2644,107 +2337,270 @@ function Gr() {
2644
2337
  if (!l)
2645
2338
  throw new Error("renderMainMenu(): mainMenuTop not found");
2646
2339
  e.mainMenu.menuItems.forEach((c) => {
2647
- var m, E;
2648
- const d = g(qr);
2340
+ var E, v;
2341
+ const d = T(fr);
2649
2342
  l.appendChild(d);
2650
- const h = P(
2343
+ const m = y(
2651
2344
  d.querySelector(p(a.MENU_ITEM__TITLE)),
2652
2345
  `renderMainMenu(): sub menu title not found for ${c.title}`
2653
- ), f = P(
2346
+ ), f = y(
2654
2347
  /** @type {HTMLElement} */
2655
- h.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
2348
+ m.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
2656
2349
  `renderMainMenu(): button title not found for ${c.title}`
2657
2350
  );
2658
- f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${R()}`);
2659
- const _ = P(
2351
+ f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${U()}`);
2352
+ const h = y(
2660
2353
  /** @type {HTMLElement} */
2661
- h.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
2354
+ m.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
2662
2355
  `renderMainMenu(): link title not found for ${c.title}`
2663
2356
  );
2664
- if ((c.isSelected || c.actionMenu && Ve(c.actionMenu, ["actionMenu"], (v) => !!v.isSelected)) && (f.classList.add(a.MENU_ITEM__SELECTED), _.classList.add(a.MENU_ITEM__SELECTED)), c.actionMenu) {
2665
- f.innerHTML = c.title, _.remove();
2666
- const v = {
2357
+ h.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${c.title}-${U()}`);
2358
+ let _;
2359
+ if (c.actionFunctionUrl || c.actionUrl)
2360
+ _ = h, f.remove();
2361
+ else if (c.actionMenu || c.actionFunction)
2362
+ _ = f, h.remove();
2363
+ else
2364
+ throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
2365
+ if ((c.isSelected || c.actionMenu && We(c.actionMenu, ["actionMenu"], (I) => !!I.isSelected)) && _.classList.add(a.MENU_ITEM__SELECTED), c.actionMenu) {
2366
+ _.innerHTML = c.title;
2367
+ const I = {
2667
2368
  menuItems: c.actionMenu,
2668
2369
  title: c.title
2669
- }, T = mt(
2670
- v,
2671
- f,
2370
+ }, A = pt(
2371
+ I,
2372
+ _,
2672
2373
  {
2673
- childrenMenuType: c.childrenMenuType || j.FLYOUT
2374
+ childrenMenuType: c.childrenMenuType || z.FLYOUT
2674
2375
  }
2675
2376
  );
2676
- d.appendChild(T), Pe(d, f, T, "menu", { shouldFocusOnHover: !0 });
2677
- let A;
2377
+ d.appendChild(A), Le(d, _, A, "menu", { shouldFocusOnHover: !0 });
2378
+ let O;
2678
2379
  switch (c.childrenMenuType) {
2679
- case j.INLINE:
2680
- A = a.MENU_ITEM__INLINE;
2380
+ case z.INLINE:
2381
+ O = a.MENU_ITEM__INLINE;
2681
2382
  break;
2682
- case j.MEGA_MENU:
2683
- A = a.MENU_ITEM__MEGA_MENU;
2383
+ case z.MEGA_MENU:
2384
+ O = a.MENU_ITEM__MEGA_MENU;
2684
2385
  break;
2685
- case j.FLYOUT:
2386
+ case z.FLYOUT:
2686
2387
  default:
2687
- A = a.MENU_ITEM__FLY_OUT;
2388
+ O = a.MENU_ITEM__FLY_OUT;
2688
2389
  break;
2689
2390
  }
2690
- d.classList.add(A);
2691
- } else if (c.actionFunction)
2692
- f.innerHTML = c.title, f.onclick = c.actionFunction, _.remove();
2693
- else if (c.actionFunctionUrl)
2694
- _.innerHTML = c.title, _.setAttribute("href", c.actionFunctionUrl.url), _.onclick = (v) => {
2695
- var T, A;
2696
- (T = c.actionFunctionUrl) != null && T.skipHandleEvent || (v.stopPropagation(), v.preventDefault()), (A = c.actionFunctionUrl) == null || A.actionFunction(v);
2697
- }, f.remove();
2698
- else if (c.actionUrl)
2699
- _.innerHTML = c.title, _.setAttribute("href", c.actionUrl.url), f.remove();
2700
- else
2701
- throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
2702
- ((m = c.actionUrl) != null && m.openInNewTab || (E = c.actionFunctionUrl) != null && E.openInNewTab) && (_.setAttribute("target", "_blank"), _.appendChild(g(Zt)));
2391
+ d.classList.add(O);
2392
+ }
2393
+ c.actionFunction ? (_.innerHTML = c.title, _.onclick = c.actionFunction) : c.actionFunctionUrl ? (_.innerHTML = c.title, _.setAttribute("href", c.actionFunctionUrl.url), _.onclick = (I) => {
2394
+ var A, O;
2395
+ (A = c.actionFunctionUrl) != null && A.skipHandleEvent || (I.stopPropagation(), I.preventDefault()), (O = c.actionFunctionUrl) == null || O.actionFunction(I);
2396
+ }) : c.actionUrl && (_.innerHTML = c.title, _.setAttribute("href", c.actionUrl.url)), ((E = c.actionUrl) != null && E.openInNewTab || (v = c.actionFunctionUrl) != null && v.openInNewTab) && (_.setAttribute("target", "_blank"), _.appendChild(T(qt)));
2703
2397
  });
2704
2398
  }
2705
2399
  let i = null;
2706
2400
  if (e.utahId) {
2707
- const { button: l, menu: c } = Sr();
2708
- i = c, P(
2401
+ const { button: l, menu: c } = or();
2402
+ i = c, y(
2709
2403
  t.querySelector(p(a.MOBILE__UTAH_ID)),
2710
2404
  "renderMainMenu: utahIdButtonWrapper not found"
2711
2405
  ).appendChild(l);
2712
2406
  }
2713
- const u = P(
2407
+ const u = y(
2714
2408
  /** @type {HTMLElement} */
2715
2409
  t.querySelector(p(a.MAIN_MENU__SEARCH)),
2716
2410
  "renderMainMenu: searchIcon not found"
2717
2411
  );
2718
2412
  if (e.onSearch) {
2719
- if (Oe(u, document.createTextNode("Search")), u.onclick)
2413
+ if (Me(u, document.createTextNode("Search")), u.onclick)
2720
2414
  throw new Error("searchIcon already has onclick");
2721
- if (u.onclick = () => Xe(), !e.mainMenu) {
2722
- const l = P(
2415
+ if (u.onclick = () => Ye(), !e.mainMenu) {
2416
+ const l = y(
2723
2417
  document.querySelector(p(a.CITIZEN_EXPERIENCE)),
2724
2418
  "renderMainMenu: citizen experience wrapper not found"
2725
- ), c = g(u.outerHTML);
2726
- if (Oe(c, document.createTextNode("Search")), c.onclick = () => Xe(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
2727
- const d = P(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
2419
+ ), c = T(u.outerHTML);
2420
+ if (Me(c, document.createTextNode("Search")), c.onclick = () => Ye(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
2421
+ const d = y(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
2728
2422
  l.insertBefore(c, d);
2729
2423
  } else
2730
2424
  l.appendChild(c);
2731
2425
  }
2732
2426
  if (!e.mainMenu && !e.actionItems && e.utahId === !1) {
2733
- const l = g(
2427
+ const l = T(
2734
2428
  /** @type {HTMLElement} */
2735
2429
  u.outerHTML
2736
2430
  );
2737
- if (Oe(l, document.createTextNode("Search")), l.onclick)
2431
+ if (Me(l, document.createTextNode("Search")), l.onclick)
2738
2432
  throw new Error("searchIconMobile already has onclick");
2739
- l.onclick = () => Xe(), P(
2433
+ l.onclick = () => Ye(), y(
2740
2434
  document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
2741
2435
  "renderMainMenu: citizen-experience--mobile not found"
2742
2436
  ).appendChild(l);
2743
2437
  }
2744
2438
  }
2745
- 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 };
2439
+ return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((s = u.parentElement) == null || s.insertBefore(T('<div class="main-menu__search-placeholder">'), u)), u.remove()), { mainMenuWrapper: t, utahIdPopup: i };
2440
+ }
2441
+ const Er = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
2442
+ <h2 class="utds-official-website-popup__heading">
2443
+ This is an official website of the State of Utah. Here’s how you know:
2444
+ </h2>
2445
+ <div class="utds-official-website-popup__content">
2446
+ <div class="utds-official-website-popup__col">
2447
+ <div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
2448
+ <div>
2449
+ <strong>Official Utah websites use utah.gov in the browser&#39;s address bar.</strong><br />
2450
+ A Utah.gov website belongs to an official government organization in the State of Utah.
2451
+ <div class="utds-official-website-popup__address-bar"></div>
2452
+ </div>
2453
+ </div>
2454
+ <div class="utds-official-website-popup__col">
2455
+ <div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
2456
+ <div>
2457
+ <strong>Be careful when sharing sensitive information.</strong><br />
2458
+ Share sensitive information only on secure official Utah.gov websites.
2459
+ </div>
2460
+ </div>
2461
+ <div>
2462
+ <svg class="utds-official-website-popup__official-image" viewBox="0 0 105.9496 47.6226" role="img">
2463
+ <g>
2464
+ <g>
2465
+ <path
2466
+ 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" />
2467
+ </g>
2468
+ <text transform="translate(.0419 43.5205)" aria-hidden="true">
2469
+ <tspan x="0" y="0">An official website</tspan>
2470
+ </text>
2471
+ </g>
2472
+ </svg>
2473
+ <div class="utds-official-website-popup__copyright">&copy; State of Utah</div>
2474
+ </div>
2475
+ </div>
2476
+ <button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless"
2477
+ tabIndex="-1">
2478
+ <span class="utds-icon-before-x-icon" aria-hidden="true"></span>
2479
+ <span class="visually-hidden">Close official website popup</span>
2480
+ </button>
2481
+ </div>
2482
+ `;
2483
+ function an() {
2484
+ const e = y(
2485
+ document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
2486
+ "openOfficialWebsite: official wrapper not found"
2487
+ ), t = y(
2488
+ document.querySelector(p(a.LOGO)),
2489
+ "openOfficialWebsite: logoWrapper not found"
2490
+ ), n = y(
2491
+ t.querySelector(p(a.LOGO_SVG)),
2492
+ "openOfficialWebsite: logoButton not found"
2493
+ ), o = y(
2494
+ e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
2495
+ "openOfficialWebsite: official close button not found"
2496
+ );
2497
+ e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", -1), e.setAttribute("tabIndex", -1);
2498
+ const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
2499
+ r == null || r.forEach((i) => {
2500
+ i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
2501
+ });
2502
+ }
2503
+ function vr() {
2504
+ const e = y(
2505
+ document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
2506
+ "openOfficialWebsite: official wrapper not found"
2507
+ ), t = y(
2508
+ document.querySelector(p(a.LOGO)),
2509
+ "openOfficialWebsite: logoWrapper not found"
2510
+ ), n = y(
2511
+ t.querySelector(p(a.LOGO_SVG)),
2512
+ "openOfficialWebsite: logoButton not found"
2513
+ ), o = y(
2514
+ e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
2515
+ "openOfficialWebsite: official close button not found"
2516
+ );
2517
+ e.classList.remove(a.VISUALLY_HIDDEN), o.removeAttribute("tabIndex"), e.removeAttribute("tabIndex"), n.setAttribute("aria-expanded", "true"), e.setAttribute("aria-hidden", "false"), e.focus();
2518
+ const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
2519
+ r == null || r.forEach((i) => {
2520
+ i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
2521
+ }), Fe();
2522
+ }
2523
+ function br() {
2524
+ const e = T(Er), n = (
2525
+ /** @type {HTMLElement} */
2526
+ document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG))
2527
+ );
2528
+ if (!n)
2529
+ throw new Error("renderOfficialWebsite: logoButton not found");
2530
+ if (n.onclick)
2531
+ throw new Error("renderOfficialWebsite: logoButton already has an onclick");
2532
+ const o = e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));
2533
+ if (!o)
2534
+ throw new Error("renderOfficialWebsite: closeButton not found");
2535
+ return n.onclick = () => {
2536
+ e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? an() : vr();
2537
+ const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
2538
+ r == null || r.forEach((i) => {
2539
+ i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
2540
+ });
2541
+ }, o.onclick = () => {
2542
+ e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
2543
+ }, o.id || (o.id = U()), e.id || (e.id = U()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
2544
+ }
2545
+ function Ir(e) {
2546
+ var l, c;
2547
+ const { hamburger: t } = Ae("hookupHamburger"), n = w();
2548
+ if ((l = n.actionItems) == null ? void 0 : l.some((d) => !!d.badge)) {
2549
+ const d = ft({ label: "Home Badge" });
2550
+ d && t.appendChild(d);
2551
+ }
2552
+ Fe();
2553
+ function r() {
2554
+ const d = y(
2555
+ /** @type {HTMLElement} */
2556
+ document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
2557
+ "hookupHamburger: no action items to select on mobile hamburger open"
2558
+ ), m = d.querySelector("button"), f = m == null ? void 0 : m.getAttribute("aria-controls");
2559
+ return { actionItem: d, actionItemWrapper: f ? document.getElementById(f) : null };
2560
+ }
2561
+ const i = y(
2562
+ /** @type {HTMLElement} */
2563
+ document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
2564
+ "hookupHamburger: no action items to select on mobile hamburger open"
2565
+ ), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"), s = (u || i).getAttribute("id");
2566
+ if (!s)
2567
+ throw new Error("mobileMenuInteractionHandler: actionItemId not found");
2568
+ if (e) {
2569
+ const d = e.getAttribute("id");
2570
+ if (!d)
2571
+ throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
2572
+ (u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby", s);
2573
+ }
2574
+ nt(
2575
+ t,
2576
+ () => r().actionItemWrapper,
2577
+ () => r().actionItem,
2578
+ {
2579
+ additionalOnClick: () => an(),
2580
+ ariaHasPopupType: "menu",
2581
+ shouldOnClickCloseMenu: !0
2582
+ }
2583
+ ), X(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
2584
+ const { mobileMenu: d } = Ae("showMobileMenu");
2585
+ if (d.classList.contains(a.IS_OPEN)) {
2586
+ const m = p(a.MOBILE_MENU__ACTION_BAR), f = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), h = p(a.ICON_BUTTON), _ = (
2587
+ /** @type {HTMLElement | null} */
2588
+ document.querySelector(`${m} ${f}:first-child ${h}`)
2589
+ );
2590
+ _ == null || _.focus();
2591
+ }
2592
+ }, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (y(
2593
+ document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
2594
+ "hookupHamburger: citizen experience mobile not found"
2595
+ ).appendChild(t), y(
2596
+ document.querySelector(p(a.MAIN_MENU)),
2597
+ "hookupHamburger: main menu not found"
2598
+ ).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu && y(
2599
+ document.querySelector(p(a.MAIN_MENU)),
2600
+ "renderMainMenu: main menu not found"
2601
+ ).classList.add(a.DESKTOP__HIDDEN);
2746
2602
  }
2747
- function $r(e) {
2603
+ function Tr(e) {
2748
2604
  let t = NaN, n = null, o = null;
2749
2605
  return {
2750
2606
  promise: new Promise((i, u) => {
@@ -2760,29 +2616,29 @@ function $r(e) {
2760
2616
  }
2761
2617
  };
2762
2618
  }
2763
- const Z = {
2619
+ const Y = {
2764
2620
  // null = not yet loaded, false = ajaxing, true = have a result (may be error or user data)
2765
2621
  isDefinitive: null,
2766
2622
  lastError: null,
2767
2623
  userInfo: null
2768
2624
  };
2769
- function Ft(e) {
2625
+ function Ht(e) {
2770
2626
  var t, n, o;
2771
- e.isDefinitive && (un(e), (o = (n = (t = O()) == null ? void 0 : t.utahId) == null ? void 0 : n.onAuthChanged) == null || o.call(n, e));
2627
+ e.isDefinitive && (nn(e), (o = (n = (t = w()) == null ? void 0 : t.utahId) == null ? void 0 : n.onAuthChanged) == null || o.call(n, e));
2772
2628
  }
2773
- let Gt = !0;
2774
- const jr = 500;
2775
- async function fn() {
2629
+ let xt = !0;
2630
+ const gr = 500;
2631
+ async function sn() {
2776
2632
  var t, n;
2777
2633
  let e = null;
2778
- if (Z.isDefinitive === !1)
2779
- e = Promise.resolve(Z);
2780
- else if (Gt)
2781
- e = $r(jr).promise.then(() => {
2782
- Gt = !1, fn().catch((o) => console.error(o));
2634
+ if (Y.isDefinitive === !1)
2635
+ e = Promise.resolve(Y);
2636
+ else if (xt)
2637
+ e = Tr(gr).promise.then(() => {
2638
+ xt = !1, sn().catch((o) => console.error(o));
2783
2639
  });
2784
2640
  else {
2785
- const o = O();
2641
+ const o = w();
2786
2642
  if (o.utahId === !1)
2787
2643
  e = Promise.resolve({
2788
2644
  isDefinitive: !0,
@@ -2790,16 +2646,16 @@ async function fn() {
2790
2646
  userInfo: null
2791
2647
  });
2792
2648
  else if (o.utahId === !0 || ((t = o.utahId) == null ? void 0 : t.currentUser) === void 0)
2793
- Z.isDefinitive = !1, e = fetch(Ne.USER_INFO, { credentials: "include" }).then((r) => r.json()).then((r) => {
2649
+ Y.isDefinitive = !1, e = fetch(ye.USER_INFO, { credentials: "include" }).then((r) => r.json()).then((r) => {
2794
2650
  if (r.status === 200)
2795
- Z.lastError = null, Z.userInfo = /** @type UserInfo */
2651
+ Y.lastError = null, Y.userInfo = /** @type UserInfo */
2796
2652
  r.data;
2797
2653
  else
2798
2654
  throw new Error(r.err);
2799
2655
  }).catch((r) => {
2800
- Z.lastError = r, Z.userInfo = null;
2656
+ Y.lastError = r, Y.userInfo = null;
2801
2657
  }).finally(() => {
2802
- Z.isDefinitive = !0, Ft(Z);
2658
+ Y.isDefinitive = !0, Ht(Y);
2803
2659
  });
2804
2660
  else {
2805
2661
  const r = {
@@ -2807,15 +2663,15 @@ async function fn() {
2807
2663
  lastError: null,
2808
2664
  userInfo: (n = o.utahId) == null ? void 0 : n.currentUser
2809
2665
  };
2810
- e = Promise.resolve(r), Ft(r);
2666
+ e = Promise.resolve(r), Ht(r);
2811
2667
  }
2812
2668
  }
2813
2669
  return e;
2814
2670
  }
2815
- function zr() {
2816
- return Z;
2671
+ function Mr() {
2672
+ return Y;
2817
2673
  }
2818
- function Yr() {
2674
+ function Ar() {
2819
2675
  const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
2820
2676
  if (!e)
2821
2677
  throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");
@@ -2827,7 +2683,7 @@ function Yr() {
2827
2683
  throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");
2828
2684
  t.remove();
2829
2685
  }
2830
- function Zr(e, t) {
2686
+ function Or(e, t) {
2831
2687
  const n = document.querySelector(p(a.MOBILE__UTAH_ID));
2832
2688
  if (!n)
2833
2689
  throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");
@@ -2848,8 +2704,8 @@ function Zr(e, t) {
2848
2704
  );
2849
2705
  if (!u)
2850
2706
  throw new Error("hookupHamburger: profileActionItemWrapper not found");
2851
- const s = it(t);
2852
- st(
2707
+ const s = tt(t);
2708
+ nt(
2853
2709
  o,
2854
2710
  s,
2855
2711
  u,
@@ -2857,30 +2713,31 @@ function Zr(e, t) {
2857
2713
  ariaHasPopupType: "menu",
2858
2714
  onClickHandler: (l) => {
2859
2715
  var f;
2860
- const c = zr(), d = O();
2861
- let h = !1;
2716
+ const c = Mr(), d = w();
2717
+ let m = !1;
2862
2718
  if (!(c != null && c.isDefinitive) || !((f = c == null ? void 0 : c.userInfo) != null && f.authenticated)) {
2863
- h = !0;
2864
- const _ = d.utahId !== !1 && d.utahId !== !0 && d.utahId.onSignIn;
2865
- _ ? _(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = Ne.SIGN_IN);
2719
+ m = !0;
2720
+ const h = d.utahId !== !1 && d.utahId !== !0 && d.utahId.onSignIn;
2721
+ h ? h(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = ye.SIGN_IN);
2866
2722
  }
2867
- return h;
2723
+ return m;
2868
2724
  },
2869
2725
  shouldOnClickCloseMenu: !0
2870
2726
  }
2871
2727
  );
2872
2728
  }
2873
- function Kr() {
2874
- var e;
2875
- return Ee(
2876
- (e = O().mainMenu) == null ? void 0 : e.menuItems,
2729
+ function wr() {
2730
+ var t;
2731
+ const e = w();
2732
+ return he(
2733
+ e.mainMenu && ((t = e.mainMenu) == null ? void 0 : t.menuItems) || void 0,
2877
2734
  {
2878
- childrenMenuType: j.INLINE,
2735
+ childrenMenuType: z.INLINE,
2879
2736
  removePopupArrow: !0
2880
2737
  }
2881
2738
  );
2882
2739
  }
2883
- function Xr() {
2740
+ function Lr() {
2884
2741
  const t = [...document.querySelectorAll(`
2885
2742
  ${p(a.MOBILE_MENU__ACTION_BAR)}
2886
2743
  ${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
@@ -2907,19 +2764,19 @@ function Xr() {
2907
2764
  if (d && document.getElementById(d))
2908
2765
  l.click();
2909
2766
  else {
2910
- const _ = (
2767
+ const h = (
2911
2768
  /** @type {HTMLElement} */
2912
2769
  document.querySelector(p(a.MOBILE_MENU__WRAPPER))
2913
2770
  );
2914
- if (!_)
2771
+ if (!h)
2915
2772
  throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
2916
- const m = (
2773
+ const _ = (
2917
2774
  /** @type {HTMLElement} */
2918
- _.querySelector(p(a.MOBILE_MENU__CONTENT))
2775
+ h.querySelector(p(a.MOBILE_MENU__CONTENT))
2919
2776
  );
2920
- if (!m)
2777
+ if (!_)
2921
2778
  throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");
2922
- m.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((E) => E.classList.remove(a.IS_OPEN));
2779
+ _.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((E) => E.classList.remove(a.IS_OPEN));
2923
2780
  }
2924
2781
  const f = (
2925
2782
  /** @type {HTMLElement} */
@@ -2927,26 +2784,26 @@ function Xr() {
2927
2784
  );
2928
2785
  if (!f)
2929
2786
  throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
2930
- Je(f, c);
2787
+ je(f, c);
2931
2788
  }
2932
2789
  };
2933
2790
  }
2934
2791
  );
2935
- const n = P(
2792
+ const n = y(
2936
2793
  document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),
2937
2794
  "hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"
2938
- ), { hamburger: o } = we("hookupMobileActionItemKeyboarding");
2795
+ ), { hamburger: o } = Ae("hookupMobileActionItemKeyboarding");
2939
2796
  n.addEventListener("focusin", (r) => {
2940
2797
  r.preventDefault(), r.stopPropagation(), o.focus();
2941
2798
  });
2942
2799
  }
2943
- function Jr() {
2944
- const e = Dn.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`);
2800
+ function yr() {
2801
+ const e = hn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${w().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${w().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${w().mediaSizes.mobile}px`);
2945
2802
  let t = document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);
2946
2803
  t || (t = document.createElement("style"), t.id = a.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
2947
2804
  }
2948
- function Qr() {
2949
- const e = O();
2805
+ function Pr() {
2806
+ const e = w();
2950
2807
  let t = document.body;
2951
2808
  if (e.domLocationTarget) {
2952
2809
  const n = [
@@ -2959,26 +2816,26 @@ function Qr() {
2959
2816
  if (n.length > 1)
2960
2817
  throw new Error("loadHeader: domLocationTarget must only have one target specified");
2961
2818
  if (e.domLocationTarget.cssSelector)
2962
- t = document.querySelector(e.domLocationTarget.cssSelector), ee(!t, `loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);
2819
+ t = document.querySelector(e.domLocationTarget.cssSelector), X(!t, `loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);
2963
2820
  else if (e.domLocationTarget.element)
2964
2821
  t = e.domLocationTarget.element;
2965
2822
  else if (e.domLocationTarget.elementFunction)
2966
- t = e.domLocationTarget.elementFunction(), ee(!t, "loadHeader: element not returned from domLocationTarget.elementFunction");
2823
+ t = e.domLocationTarget.elementFunction(), X(!t, "loadHeader: element not returned from domLocationTarget.elementFunction");
2967
2824
  else
2968
2825
  throw new Error("loadHeader: domLocationTarget must have at least one field set");
2969
2826
  }
2970
- return P(t, "loadHeader: domTarget is null (how?!)");
2827
+ return y(t, "loadHeader: domTarget is null (how?!)");
2971
2828
  }
2972
- function ei() {
2829
+ function Nr() {
2973
2830
  var t;
2974
2831
  if (!document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) {
2975
- const n = kr(), o = Qr();
2832
+ const n = pr(), o = Pr();
2976
2833
  o.insertBefore(n, o.firstChild);
2977
- const r = zn();
2834
+ const r = br();
2978
2835
  n.after(r);
2979
- const { mainMenuWrapper: i, utahIdPopup: u } = Gr();
2836
+ const { mainMenuWrapper: i, utahIdPopup: u } = mr();
2980
2837
  i && r.after(i);
2981
- const s = g(Bn);
2838
+ const s = T(mn);
2982
2839
  r.after(s);
2983
2840
  const l = (
2984
2841
  /** @type {HTMLElement} */
@@ -2988,29 +2845,43 @@ function ei() {
2988
2845
  throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
2989
2846
  if (l.onclick)
2990
2847
  throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
2991
- l.onclick = () => Ge();
2992
- const c = Kr(), d = cn(c, "Main Menu");
2848
+ l.onclick = () => Fe();
2849
+ const c = wr(), d = tn(c, "Main Menu");
2993
2850
  d.appendChild(c);
2994
- const h = it(d);
2995
- Zn(h), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), Zr(s, u)) : Yr(), Er(), Xr(), ur(), Jr(), fn().catch((_) => console.error(_));
2996
- const f = O();
2851
+ const m = tt(d);
2852
+ Ir(m), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), Or(s, u)) : Ar(), Fo(), Lr(), Co(), yr(), sn().catch((h) => console.error(h));
2853
+ const f = w();
2997
2854
  (!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);
2998
2855
  }
2999
- Wn();
2856
+ Vo();
3000
2857
  }
3001
- function ti(e) {
2858
+ function Sr(e) {
3002
2859
  var t, n, o, r;
3003
- (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(), sn(), e && setTimeout(() => document.dispatchEvent(new Event($t.HEADER_UNLOADED)), 0);
2860
+ (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(), Qt(), e && setTimeout(() => document.dispatchEvent(new Event(Ft.HEADER_UNLOADED)), 0);
2861
+ }
2862
+ function Wt() {
2863
+ Sr(!1), Nr();
2864
+ }
2865
+ let ln = !1;
2866
+ const Ur = 15e3;
2867
+ let kt = 0;
2868
+ const Cr = setInterval(
2869
+ () => {
2870
+ kt += 1, kt >= Ur || ln ? clearInterval(Cr) : document.dispatchEvent(new Event(Ft.HEADER_LOADED));
2871
+ },
2872
+ 2
2873
+ );
2874
+ function Rr(e) {
2875
+ return Ke.setSettings(e), ln = !0, document != null && document.body ? Wt() : window.addEventListener("load", () => Wt()), Ke.getSettings();
3004
2876
  }
3005
- console.log(`Utah Header v${Rn.version}`);
3006
2877
  export {
3007
- j as childrenMenuTypes,
3008
- jt as defaultSettings,
3009
- $t as events,
3010
- O as getUtahHeaderSettings,
3011
- ei as loadHeader,
3012
- ti as removeHeader,
3013
- g as renderDOMSingle,
3014
- ni as setUtahHeaderSettings,
3015
- Te as sizes
2878
+ z as childrenMenuTypes,
2879
+ Ot as defaultSettings,
2880
+ Ft as events,
2881
+ w as getUtahHeaderSettings,
2882
+ Nr as loadHeader,
2883
+ Sr as removeHeader,
2884
+ T as renderDOMSingle,
2885
+ Rr as setUtahHeaderSettings,
2886
+ Ie as sizes
3016
2887
  };