@pimaonline/pimaonline-themepack 5.0.0 → 5.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/dist/css/main.css +1 -1
  2. package/dist/css/plugins/dark-mode.css +1 -1
  3. package/dist/css/themes/ait/styles.css +1 -1
  4. package/dist/css/themes/ajs/styles.css +1 -1
  5. package/dist/css/themes/ant/styles.css +1 -1
  6. package/dist/css/themes/art/styles.css +1 -1
  7. package/dist/css/themes/aviation/styles.css +1 -1
  8. package/dist/css/themes/bct/styles.css +1 -1
  9. package/dist/css/themes/bio/styles.css +1 -1
  10. package/dist/css/themes/blobs/styles.css +1 -1
  11. package/dist/css/themes/business/styles.css +1 -1
  12. package/dist/css/themes/cad/styles.css +1 -1
  13. package/dist/css/themes/cards/styles.css +1 -1
  14. package/dist/css/themes/cas/styles.css +1 -1
  15. package/dist/css/themes/cda/styles.css +1 -1
  16. package/dist/css/themes/chm/styles.css +1 -1
  17. package/dist/css/themes/communication/styles.css +1 -1
  18. package/dist/css/themes/computer-information-systems/styles.css +1 -1
  19. package/dist/css/themes/culinary/styles.css +1 -1
  20. package/dist/css/themes/culinary/versions/black-marble.css +1 -1
  21. package/dist/css/themes/culinary/versions/stainless.css +1 -1
  22. package/dist/css/themes/culinary/versions/wood.css +1 -1
  23. package/dist/css/themes/dental/styles.css +1 -1
  24. package/dist/css/themes/ece/styles.css +1 -1
  25. package/dist/css/themes/ecn/styles.css +1 -1
  26. package/dist/css/themes/eng/styles.css +1 -1
  27. package/dist/css/themes/fashion/styles.css +1 -1
  28. package/dist/css/themes/fitness/styles.css +1 -1
  29. package/dist/css/themes/fsc/styles.css +1 -1
  30. package/dist/css/themes/geography/styles.css +1 -1
  31. package/dist/css/themes/geology/styles.css +1 -1
  32. package/dist/css/themes/health-it/styles.css +1 -1
  33. package/dist/css/themes/history/styles.css +1 -1
  34. package/dist/css/themes/hrm/styles.css +1 -1
  35. package/dist/css/themes/hrs/styles.css +1 -1
  36. package/dist/css/themes/journalism/styles.css +1 -1
  37. package/dist/css/themes/lang/styles.css +1 -1
  38. package/dist/css/themes/lgm/styles.css +1 -1
  39. package/dist/css/themes/machine/styles.css +1 -1
  40. package/dist/css/themes/math/styles.css +1 -1
  41. package/dist/css/themes/mgt/styles.css +1 -1
  42. package/dist/css/themes/minimalist/styles.css +1 -1
  43. package/dist/css/themes/mkt/styles.css +1 -1
  44. package/dist/css/themes/music/styles.css +1 -1
  45. package/dist/css/themes/nursing/styles.css +1 -1
  46. package/dist/css/themes/philosophy/styles.css +1 -1
  47. package/dist/css/themes/pht/styles.css +1 -1
  48. package/dist/css/themes/phy/styles.css +1 -1
  49. package/dist/css/themes/pos/styles.css +1 -1
  50. package/dist/css/themes/psy/styles.css +1 -1
  51. package/dist/css/themes/reading/styles.css +1 -1
  52. package/dist/css/themes/resort/styles.css +1 -1
  53. package/dist/css/themes/soc/styles.css +1 -1
  54. package/dist/css/themes/ss/styles.css +1 -1
  55. package/dist/css/themes/tps/styles.css +1 -1
  56. package/dist/css/themes/university/styles.css +1 -1
  57. package/dist/css/themes/vet/styles.css +1 -1
  58. package/dist/css/themes/welding/styles.css +1 -1
  59. package/dist/css/themes/writing/styles.css +1 -1
  60. package/dist/img/theme-images/ant/texture.png +0 -0
  61. package/dist/img/theme-images/bio/original/dna.png +0 -0
  62. package/dist/img/theme-images/bio/original/humans.png +0 -0
  63. package/dist/img/theme-images/bio/original/leaves.png +0 -0
  64. package/dist/img/theme-images/bio/original/marine-bottom.png +0 -0
  65. package/dist/img/theme-images/bio/original/marine-top.png +0 -0
  66. package/dist/img/theme-images/bio/original/microbes.png +0 -0
  67. package/dist/img/theme-images/culinary/black-marble.png +0 -0
  68. package/dist/img/theme-images/eng/halftone-banner.svg +14 -1
  69. package/dist/img/theme-images/health-information-tech/hit-bkg.jpg +0 -0
  70. package/dist/img/theme-images/mkt/blue/blueheader.jpg +0 -0
  71. package/dist/img/theme-images/mkt/green/greenheader.jpg +0 -0
  72. package/dist/img/theme-images/mkt/yellow/yellowheader.jpg +0 -0
  73. package/dist/img/theme-images/phy/background.png +0 -0
  74. package/dist/img/theme-images/phy/tape-style1.png +0 -0
  75. package/dist/img/theme-images/theme-banners/bannerimage-calendar.jpg +0 -0
  76. package/dist/img/theme-images/theme-banners/bannerimage-desk-with-laptop.jpg +0 -0
  77. package/dist/img/theme-images/theme-banners/bannerimage-empty-classroom.jpg +0 -0
  78. package/dist/img/theme-images/theme-banners/bannerimage-empty-road.jpg +0 -0
  79. package/dist/img/theme-images/theme-banners/bannerimage-fingers-interacting-tablet.jpg +0 -0
  80. package/dist/img/theme-images/theme-banners/bannerimage-fingers-typing.jpg +0 -0
  81. package/dist/img/theme-images/theme-banners/bannerimage-hand-signing-document.jpg +0 -0
  82. package/dist/img/theme-images/theme-banners/bannerimage-student-shopping.jpg +0 -0
  83. package/dist/img/theme-images/theme-banners/bannerimage-students-on-computer.jpg +0 -0
  84. package/dist/img/theme-images/theme-banners/bannerimage-students-on-grass.jpg +0 -0
  85. package/dist/js/scripts2.js +1 -1
  86. package/dist/js/themes/chm.js +0 -1
  87. package/package.json +1 -1
  88. package/dist/img/theme-images/bio/original/dna.svg +0 -1
  89. package/dist/img/theme-images/bio/original/humans.svg +0 -1
  90. package/dist/img/theme-images/bio/original/leaves.svg +0 -33
  91. package/dist/img/theme-images/bio/original/marine-bottom.svg +0 -1
  92. package/dist/img/theme-images/bio/original/marine-top.svg +0 -1
  93. package/dist/img/theme-images/bio/original/microbes.svg +0 -1
  94. package/dist/img/theme-images/phy/background.svg +0 -150
  95. package/dist/img/theme-images/phy/tape-style1.svg +0 -8
@@ -1 +1 @@
1
- (()=>{"use strict";var e={2152:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.discardAttributes=void 0,t.discardAttributes=(e,...t)=>{t.forEach((t=>e.removeAttribute(t)))}},7080:(e,t,o)=>{o(3271),o(6381),o(1034),o(1645),o(71),o(4e3),o(161),o(3982),o(8795),o(9308),o(7721),o(7121),o(81),o(4786),o(4407),o(1952),o(7174),o(6433),o(4709),o(4393),o(4019),o(4262),o(3258),o(2692),o(9191),o(1424),o(3966)},3271:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079),r=[{class:"bi-",cdn:new URL("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css")},{class:"ri-",cdn:new URL("https://cdn.jsdelivr.net/npm/remixicon@4.0.1/fonts/remixicon.css")}];document.querySelectorAll(r.map((e=>`[class*='${e.class}']`)).join(", ")).length>0&&r.forEach((e=>{var t;if(document.querySelector(`[class*='${e.class}']`)){const o=null!==(t=null===n.docHead||void 0===n.docHead?void 0:n.docHead.querySelector("meta[name='viewport']"))&&void 0!==t?t:null;o||console.warn("Document error: could not find viewport meta tag");const r=document.createElement("link");r.setAttribute("href",e.cdn.toString()),r.setAttribute("rel","stylesheet"),o&&(null===n.docHead||void 0===n.docHead||n.docHead.insertBefore(r,o.nextSibling))}}))},6381:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079);n.contentWrapper?n.contentWrapper.setAttribute("role","main"):n.contentWrapper||console.log("Document error: does not contain #content-wrapper."),n.secondColumn&&(n.secondColumn.setAttribute("role","region"),n.secondColumn.setAttribute("aria-label","Second column")),n.thirdColumn&&(n.thirdColumn.setAttribute("role","region"),n.thirdColumn.setAttribute("aria-label","Third column"))},1034:()=>{const e=document.querySelectorAll(".arrow-right");e.length>0&&e.forEach((e=>{(e=>{e.addEventListener("click",(t=>{e.classList.toggle("arrow-down")})),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||e.classList.toggle("arrow-down")}))})(e)}))},1645:()=>{const e=document.querySelectorAll("dl.vocab-list dt"),t=(document.querySelectorAll("dl.vocab-list dd"),document.querySelectorAll("dl.vocab-list")),o=(document.querySelectorAll("dl.vocab-list button"),e=>{e.classList.toggle("active");let t=e.nextElementSibling instanceof HTMLElement?e.nextElementSibling:null;for(t&&"block"===t.style.display?t.style.display="none":t&&(t.style.display="block");t&&t.nextElementSibling;){const e=t.nextElementSibling;if(e instanceof HTMLElement){if(t=e,!t||"DD"!==t.tagName)break;"block"===t.style.display?t.style.display="none":t.style.display="block"}}}),n=e=>{if(e){let t=e.querySelectorAll("dd"),o=e.querySelectorAll("dt");t.forEach((e=>{e.style.display="none"})),o.forEach((e=>{e.classList.remove("active")}))}};t.length>0&&(()=>{t.forEach((e=>{let t=0,o=0,r=!1;for(let n=0;n<e.children.length;n++)"DT"==e.children[n].tagName&&(e.children[n].setAttribute("tabindex","0"),t++),"DD"==e.children[n].tagName&&o++,"BUTTON"==e.children[n].tagName&&(r=!0);if(t<1&&console.warn("Document error: no terms found in vocab list"),o<1&&console.warn("Document error: no definitions found in vocab list"),t>o&&console.warn("Document error: more terms than definitions in vocab list"),t>=2&&o>=2)if(r){let t=e.querySelector("button");null==t||t.addEventListener("click",(()=>n(e)))}else{const t=document.createElement("button");t.textContent="Close All",t.addEventListener("click",(()=>n(e))),e.appendChild(t)}else{for(let t=0;t<e.children.length;t++)"BUTTON"==e.children[t].tagName&&(r=!0);if(r){let t=e.querySelector("button");t&&(t.style.display="none")}}}));for(let t=0;t<e.length;t++)e[t].addEventListener("click",(n=>{o(e[t])})),e[t].addEventListener("keydown",(n=>{"Enter"===n.key&&o(e[t])}))})()},71:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cleanMarkup=void 0;const n=o(6079),r=o(2152);t.cleanMarkup=()=>{n.rolePres&&n.rolePres.forEach((e=>e.removeAttribute("role"))),document.querySelectorAll(l.join(",")).forEach((e=>{(0,r.discardAttributes)(e,...i)})),n.jqueryScript&&n.jqueryScript.remove()};const l=["table","thead","tbody","tr","th","td"],i=["cellspacing","cellpadding","width","style"];var c;(n.rolePres&&n.rolePres.length>0||(c=i,l.some((e=>c.some((t=>null!==document.querySelector(`${e}[${t}]`))))))||n.jqueryScript)&&(0,t.cleanMarkup)()},4e3:()=>{const e=document.querySelectorAll(".content-lock-widget"),t=document.querySelectorAll(".locked-content"),o=document.querySelectorAll(".instructions"),n=[],r=e=>{const r=(e,n,r)=>{u[n].keys[e]=!0,u[n].keys[e]?(t[r].classList.add("open"),o[r].classList.add("complete")):(t[r].classList.remove("open"),o[r].classList.remove("complete")),localStorage.setItem("contentLockData",JSON.stringify(u)),i(n)},l=(e,t)=>{let o=e.querySelector(".error-container"),n=document.createElement("span");o&&(o.innerHTML="",o.appendChild(n)),n.textContent="",setTimeout((function(){n.textContent=t,o&&o.appendChild(n)}),200)},i=e=>{t.forEach(((n,r)=>{let l=n.getAttribute("data-key");if(l){let n=parseInt(l,10);u[e].keys[n]?(t[r].classList.add("open"),o[r].classList.add("complete")):(t[r].classList.remove("open"),o[r].classList.remove("complete"))}}))},c=window.parent.location.href.match(/\/content\/(\d+)/),s=c?c[1]:null,a=["a","b","c","d","e","f","g","h","i"],d=localStorage.getItem("contentLockData");let u=d?JSON.parse(d):{};if(s){const c=parseInt(s,10);window.addEventListener("storage",(e=>{s&&((e,t)=>{e&&"contentLockData"===e.key&&e.newValue&&(u=JSON.parse(e.newValue),i(t))})(e,c)}));let d=1;e.forEach(((e,o)=>{let n=e.querySelector(".quiz form");if(t){if(n){let t=e.querySelector(".locked-content"),r=e.querySelector(".quiz .correct-answer");if(r&&(t||console.warn(`Document error: missing the locked-content class for widget number ${o+1} on this page`),r||console.warn(`Document error: missing correct-answer for content lock quiz for widget number ${o+1} on this page`),n.id=`quiz${d}`,!e.querySelector(".error-container"))){let t=document.createElement("div");t.classList.add("error-container");let n=e.querySelector("input[value='Submit']");n?n.insertAdjacentHTML("beforebegin",t.outerHTML):console.warn(`Document error: quiz is missing an input with value 'Submit' for widget number ${o+1} on this page.`)}}d++}else e.querySelector(".unlock-btn")||console.warn(`Document error: locked content area (that is not using a quiz) is missing <a> with .unlock-btn for widget number ${o+1} on this page.`)})),new Promise(((e,t)=>{let o=document.querySelectorAll(".quiz form");o&&o.forEach((e=>{e.querySelectorAll("input").forEach(((e,t)=>{e.getAttribute("value")?"Submit"==e.getAttribute("value")&&(e.setAttribute("type","button"),e.classList.add("unlock-btn")):(e.setAttribute("value",a[t]),e.setAttribute("name","options"),e.setAttribute("type","radio"))}))})),e()})).then((()=>{(()=>{const e=new Map;t.forEach((t=>{const o=t.getAttribute("data-key");if(o)if(e.has(o)){const t=e.get(o)||0;e.set(o,t+1)}else e.set(o,1)}));let o=!1;e.forEach(((e,t)=>{e>1&&(console.warn(`Document error: multiple quizzes found with the same data key (${t})`),o=!0)}))})();const e=document.querySelectorAll(".unlock-btn");u.hasOwnProperty(s)||(u[c]={keys:{}}),t.forEach(((e,t)=>{let o=e.getAttribute("data-key");if(o){let n=parseInt(o,10),r=e.parentElement;r?r.classList.contains("content-lock-widget")||console.warn(`Document error: content lock widget wrapper is missing .content-lock-widget class for widget number ${t+1} on this page`):console.warn(`Document error: content lock widget is missing parent container for widget number ${t+1} on this page`);let l=e.nextElementSibling;if(l)if(l.classList.contains("instructions")&&"DIV"===l.tagName){if(!l.querySelector(".unlock-btn")){let e=l.nextElementSibling;e?e.classList.contains("quiz")||console.warn(`Document error: missing .quiz class after locked-content ${t+1} on this page`):console.warn(`Document error: missing .unlock-btn class inside instructions ${t+1} on this page`)}}else console.warn(`Document error: instructions <div> is missing .instructions class for widget number ${t+1} on this page`);else console.warn(`Document error: locked content area is missing <div> with instructions for widget number ${t+1} on this page`);u[c].keys[n]||(u[c].keys[n]=!1)}else o||console.warn(`Document error: missing data-key for locked content for widget number ${t+1} on this page`)})),e.forEach(((e,i)=>{let s=t[i].getAttribute("data-key");if(s){let a=parseInt(s,10);null!==e.textContent&&n.push(e.textContent),e.setAttribute("tabIndex","0"),e.addEventListener("click",(()=>((e,t,o,n,i)=>{let c=!1,s=!1;"INPUT"===t.tagName&&(c=!0),c?(s=(e=>{let t=document.getElementById(`quiz${e}`);if(t){let e=t.querySelector("input[name='options']:checked"),o=t.querySelector("input.correct-answer"),n="";return e?o?e.value===o.value?(alert("Correct response"),!0):(n="Incorrect response. Please try again.",l(t,n),!1):(console.warn("Document error: no .correct-answer class applied"),!1):(n="Please select an option before submitting.",l(t,n),!1)}return console.warn("Document error: quiz id for content lock quiz, not being applied"),!1})(e),s&&r(e,i,o)):(s=window.confirm(`Please confirm: ${n[o]}`),s&&r(e,i,o))})(a,e,i,n,c))),u[c]||(u[c]={keys:{},id:0}),u[c].keys[a]&&(t[i].classList.add("open"),o[i].classList.add("complete"))}})),i(c),localStorage.setItem("contentLockData",JSON.stringify(u))})).catch((e=>{console.warn("Document error: error occurred during applyAttributesToQuiz:",e)}))}else console.warn("Document error: No course number found")};document.addEventListener("DOMContentLoaded",(()=>{e.length>0&&r(e)}))},161:()=>{const e=document.querySelectorAll(".flip-card-widget, .flip-card-group");e.length>0&&e.forEach((e=>{let t=e.querySelectorAll(".flip-card"),o=e.querySelectorAll(".inner-card"),n=e.children.length;n!==t.length&&console.warn("Document error: missing .flip-card class for flip card widget"),n!==o.length&&console.warn("Document error: missing .inner-card class for flip card widget"),t.forEach((e=>{e.querySelectorAll(".inner-card").forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("click",(()=>{e.offsetHeight,e.classList.toggle("flip")})),e.addEventListener("keydown",(t=>{"Enter"===t.key&&(e.offsetHeight,e.classList.toggle("flip"))}))}))}))}))},3982:()=>{if(document.querySelector("body[focus-reader]")){let o=!1;const n=document.querySelector("#content-wrapper"),r=document.querySelector("body[focus-reader]"),l=document.querySelector("head"),i=document.createElement("link");i.rel="stylesheet",i.href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css",l&&l.append(i);const c=document.createElement("script");c.src="https://www.jsdelivr.com/package/npm/intersection-observer",l&&l.append(c);const s=document.createElement("div");s.className="focus-reader-switches",r&&r.append(s);const a=document.createElement("div");s.append(a);const d=document.createElement("p");d.innerHTML="Focus Text",a.append(d);const u=document.createElement("i");u.classList.add("fa-solid"),u.classList.add("fa-circle-info"),a.append(u);const m=document.createElement("span");m.classList.add("info-tooltip"),m.innerHTML="Highlight text as you scroll",u.append(m);const p=document.createElement("button");p.id="focus-text",p.innerHTML=o?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',a.append(p),p.addEventListener("click",(()=>{o?(o=!o,n&&(n.removeAttribute("on"),p.innerHTML=o?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',t(n))):(o=!o,n&&(n.setAttribute("on",""),p.innerHTML=o?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',document.querySelectorAll("#content-wrapper .content-body :is(p, li, dd, dt, blockquote)").forEach((t=>{e({node:t,focusText:g})}))))}));const g=new IntersectionObserver((e=>{e.forEach((e=>{var t,o;e.isIntersecting?null===(t=e.target.closest("span"))||void 0===t||t.classList.add("focus-text"):null===(o=e.target.closest("span"))||void 0===o||o.classList.remove("focus-text")}))}),{root:null,rootMargin:"-48.9% 0px",threshold:0})}function e({node:t,focusText:o}){var n,r;t.nodeType===Node.TEXT_NODE&&""!==(null===(n=t.textContent)||void 0===n?void 0:n.trim())?(t.textContent.split(" ").forEach((e=>{var n;if(""!==e){const r=document.createElement("span");r.textContent=e+" ",o.observe(r),null===(n=t.parentNode)||void 0===n||n.insertBefore(r,t)}})),null===(r=t.parentNode)||void 0===r||r.removeChild(t)):t.nodeType===Node.ELEMENT_NODE&&Array.from(t.childNodes).forEach((t=>{e({node:t,focusText:o})}))}function t(e){var o,n,r;if(e.nodeType===Node.ELEMENT_NODE){const l=e;if(l instanceof HTMLElement&&"SPAN"===l.tagName&&("focus-text"===l.className||""===l.className||!(null===(o=l.textContent)||void 0===o?void 0:o.trim())||0===l.attributes.length)){const e=document.createTextNode(l.textContent||"");null===(n=l.parentNode)||void 0===n||n.insertBefore(e,l),null===(r=l.parentNode)||void 0===r||r.removeChild(l)}else Array.from(l.childNodes).forEach((e=>{t(e)}))}}},8795:()=>{const e=document.querySelector(".toggle-footnotes");e&&(e=>{var t;const o=document.createElement("button");o.classList.add("toggle-footnotes"),o.textContent="[Show Footnotes]",null===(t=e.parentNode)||void 0===t||t.replaceChild(o,e),o.addEventListener("click",(()=>{o.textContent="[Show Footnotes]"===o.textContent?"[Hide Footnotes]":"[Show Footnotes]";const e=o.nextElementSibling;e&&e.classList.toggle("show")}))})(e)},9308:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079);(()=>{if(null!==n.courseBody){n.contentWrapper&&n.secondColumn&&n.thirdColumn?n.courseBody.id="three-column":n.contentWrapper&&n.secondColumn&&!n.columnWidget?n.courseBody.id="two-column":n.contentWrapper&&n.secondColumn&&n.columnWidget?n.courseBody.id="two-col-widget":n.contentWrapper&&n.videoWrapper?n.courseBody.id="video-grid":!n.contentWrapper||n.secondColumn||n.thirdColumn||n.columnWidget||n.videoWrapper?n.contentWrapper&&!n.secondColumn&&(n.thirdColumn||n.columnWidget)?console.log("Document error: <body> is missing id because #second-column doesn't exist."):console.log("Document error: unable to determine the page layout for setting <body> id."):n.courseBody.id="one-column";const e=document.body.children;let t=!1;for(let o=0;o<e.length;o++){const n=e[o];if("content-wrapper"!==n.id&&"second-column"!==n.id&&"third-column"!==n.id&&"column-widget"!==n.id&&"HEADER"!==n.tagName&&"FOOTER"!==n.tagName&&"SCRIPT"!==n.tagName&&"loom-companion-mv3"!==n.id&&"focus-reader-switches"!==n.className&&"view-options-switches"!==n.className){t=!0;break}}t&&console.log("Document error: Additional content outside #content-wrapper, #second-column, #third-column, or footer.")}else console.log("Document error: no <body> element found.")})()},7721:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079),r=document.createElement("script");r.setAttribute("src","https://pima.h5p.com/js/h5p-resizer.js"),r.setAttribute("charset","UTF-8"),r.setAttribute("defer","");const l=document.querySelectorAll("iframe"),i=null===n.docHead||void 0===n.docHead?void 0:n.docHead.querySelector("script[src='https://pima.h5p.com/js/h5p-resizer.js']");l.length>0&&l.forEach((e=>{const t=e.getAttribute("src");t&&(t.includes("/d2l/common/dialogs/quickLink")||t.includes("https://pima.h5p.com/content")||t.includes("h5p"))&&!i&&n.docHead&&n.docHead.appendChild(r)}))},7121:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079),r=document.querySelectorAll(".gallery-wrapper"),l=document.querySelectorAll(".image-box"),i=document.querySelectorAll(".image-gallery");r.length>0&&r.forEach((e=>{const t=e.parentNode;t instanceof Element&&t.classList.contains("image-gallery")||console.warn("Document error: parent of .gallery-wrapper does not have the .image-gallery class.")})),l.length>0&&l.forEach((e=>{const t=e.parentNode;t instanceof Element&&t.classList.contains("gallery-wrapper")||console.log("Document error: parent of .image-box does not have the .gallery-wrapper class.")})),r.length>0&&r.forEach((e=>{Array.from(e.children).every((e=>e instanceof HTMLElement&&e.classList.contains("image-box")))||console.warn("Document error: not all direct children of .gallery-wrapper have the .image-box class.")}));i.length>0&&((()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css",null===n.docHead||void 0===n.docHead||n.docHead.appendChild(e)})(),(()=>{i.forEach((e=>{e.insertAdjacentHTML("afterbegin",'<div class="modal-box invisible">\n <div class="gallery-overlay"></div>\n <figure class="modal-box--image"><i class="fa-solid fa-x close-img"></i> <img src="#" alt="image here" /><figcaption class="img-caption"></figcaption></figure>\n </div>\n <button class="hide-gallery">Hide</button>')}));const e=document.querySelector(".gallery-overlay"),t=document.querySelector(".modal-box"),o=document.querySelector(".modal-box--image img"),n=document.querySelector(".img-caption"),r=document.querySelector(".close-img"),c=document.querySelectorAll(".hide-gallery"),s=e=>{null==t||t.classList.remove("invisible"),o&&(o.src=e.imgSrc),n&&(n.innerHTML=e.imgCaption)},a=()=>{null==t||t.classList.add("invisible")};l.forEach((e=>{e.addEventListener("click",(function(){var e,t;s({imgSrc:(null===(e=this.querySelector("img"))||void 0===e?void 0:e.src)||"",imgCaption:(null===(t=this.querySelector("img"))||void 0===t?void 0:t.alt)||""})})),e.setAttribute("tabindex","0"),e.addEventListener("keydown",(function(e){var t,o;"Enter"===e.key&&s({imgSrc:(null===(t=this.querySelector("img"))||void 0===t?void 0:t.src)||"",imgCaption:(null===(o=this.querySelector("img"))||void 0===o?void 0:o.alt)||""})}))})),e&&(e.onclick=a),window.onkeydown=e=>{"Escape"===e.key&&a()},r&&(r.onclick=a),c.forEach((e=>{e.addEventListener("click",(()=>{var t;null===(t=e.nextElementSibling)||void 0===t||t.classList.toggle("invisible"),e.innerHTML="Hide"===e.innerHTML?"Show":"Hide"}))}))})())},81:()=>{document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("a[href^='#']").forEach((e=>{var t;const o=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.substring(1);o&&e.setAttribute("onclick",`jumpTo("${o}")`)}))}))},4786:()=>{const e=document.querySelectorAll(".media-container");e.length>0&&e.forEach(((e,t)=>{let o=String.fromCharCode(t+65).toLowerCase(),n=e.querySelector(".media-object"),r=e.querySelector("iframe"),l=e.querySelector(".media-info");r||console.warn("Document error: no iframe found for media container"),n||console.warn("Document error: no media object found for media container"),r&&!r.hasAttribute("aria-describedby")&&l&&(r.setAttribute("aria-describedby",`${o}`),l.id=`${[o]}`)}))},4407:()=>{const e=document.querySelectorAll(".display, .display-lg");e.length>0&&[...e].forEach((e=>{const t=e.querySelectorAll(".display table th, table.display th, .display-lg table th, table.display-lg th"),o=e.querySelector(".display table tbody, table.display tbody, .display-lg table tbody, table.display-lg tbody");if(t.length>0){const e=[...t].map((e=>{var t;return(null===(t=e.textContent)||void 0===t?void 0:t.replace(/\r?\n|\r/,""))||""}));o?[...o.rows].forEach((t=>{[...t.cells].forEach(((t,o)=>{t.setAttribute("data-th",e[o])}))})):console.warn("Document error: no table <tbody> found")}else console.warn("Document error: no table headers <th> found")}))},4393:()=>{const e=document.querySelectorAll(".slider-widget");e.length>0&&(()=>{[...e].forEach((e=>{[...e.children].every((e=>e.classList.contains("slider-item")))||console.warn("Document error: not all direct children of .slider have the .slider-item class.")}));const t=(e,t,o)=>{e.forEach(((e,t)=>{e.style.display=t===o?"block":"none"})),t.forEach(((e,t)=>{e.classList.toggle("active",t===o)}))},o=(e,o,n)=>{t(e,o,n)},n=e=>{const t=document.createElement("button");return t.className=e,t.setAttribute("tabindex","-1"),t},r=e=>{let t=0;for(let o=0;o<e.children.length;o++){const n=e.children[o];n instanceof HTMLElement&&(t+=n.offsetHeight)}if(t<300&&!e.querySelector(".media-container")){const t=document.createElement("div");for(;e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t),e.classList.add("short-content")}};document.querySelectorAll(".slider-widget").forEach(((e,l)=>{e.setAttribute("tabindex","0"),e.setAttribute("role","group");const i=document.createElement("span");i.id=`slider-label-${l+1}`,i.textContent="Interactive Slider",i.hidden=!0,e.prepend(i),e.setAttribute("aria-labelledby",`slider-label-${l+1}`);let c=0;const s=Array.from(e.querySelectorAll(".slider-item")),a=document.createElement("div");a.className="slider-dots-bar",e.appendChild(a);let d=[];s.forEach(((e,o)=>{const n=document.createElement("span");n.className="slider-dot",n.addEventListener("click",(()=>{c=o,t(s,d,c),s[c].style.display="block",n.classList.add("active"),r(s[c])})),a.appendChild(n),d.push(n),e.style.display=o!==c?"none":"block",o===c&&n.classList.add("active")}));const u=n("slider-arrow icon-chevron-left"),m=n("slider-arrow icon-chevron-right");e.appendChild(u),e.appendChild(m),u.addEventListener("click",(()=>{c=c>0?c-1:s.length-1,o(s,d,c),r(s[c])})),m.addEventListener("click",(()=>{c=c<s.length-1?c+1:0,o(s,d,c),r(s[c])})),e.addEventListener("keydown",(t=>{switch(t.key){case"ArrowLeft":c=c>0?c-1:s.length-1;break;case"ArrowRight":c=c<s.length-1?c+1:0;break;default:return}o(s,d,c),r(s[c]),t.preventDefault(),i.textContent=`Interactive Slide: slide ${c+1} of ${s.length}`,e.focus()}));let p=0,g=0;e.addEventListener("touchstart",(e=>{p=e.changedTouches[0].screenX}),!1),e.addEventListener("touchend",(e=>{g=e.changedTouches[0].screenX,h()}),!1);const h=()=>{let t=g-p;Math.abs(t)>50&&(c=t>0?c>0?c-1:s.length-1:c<s.length-1?c+1:0,o(s,d,c),r(s[c]),e.focus())}})),e.forEach(((e,t)=>{((e,t)=>{const o=e.querySelector(".icon-chevron-right"),n=e.querySelector(".icon-chevron-left"),r=e.querySelector(".slider-dots-bar");o||console.warn(`Document error: next button is missing for slider ${t+1}.`),n||console.warn(`Document error: previous button is missing for slider ${t+1}.`),r||console.warn(`Document error: dots bar is missing for slider ${t+1}.`)})(e,t)})),e.forEach(((e,t)=>{Array.from(e.querySelectorAll(".slider-item")).forEach(((e,o)=>{Array.from(e.childNodes).every((e=>e.nodeType===Node.COMMENT_NODE||e.nodeType===Node.TEXT_NODE&&!e.textContent.trim()))&&console.warn(`Document error: .slider-item at index ${o} in slider ${t+1} is empty.`)}))}))})()},1952:()=>{const e=document.querySelectorAll(".tabs, .tabs-widget");e.length>0&&(()=>{let t=0;e.forEach(((e,o)=>{var n,r,l,i,c,s,a,d,u,m,p,g;let h=e.querySelectorAll("input"),b=e.querySelectorAll("label"),f=e.querySelectorAll("div");if((h.length<2||b.length<2||f.length<2)&&console.warn("Document error: add more than just one tab for tabs widget"),h.length<3||b.length<3||f.length<3){let e=b[1].querySelector("span");e&&("Hide"!==e.textContent&&""!==e.textContent||console.warn("Document error: add more tabs, than just 1 tab and the hide tab"))}let v=b[b.length-1].querySelector("span");v&&"Hide"!==v.textContent&&console.warn("Document error: ensure last tab is a hide tab and label text is 'Hide'"),(h.length<b.length||h.length<f.length)&&console.warn("Document error: missing tab input(s) in tab widget"),(b.length<h.length||b.length<f.length)&&console.warn("Document error: missing tab label(s) in tab widget");let y=o+1;e.setAttribute("role","region"),e.setAttribute("aria-label",`tab group ${y}`);for(let e=0;e<h.length;e++){"Hide"===(null===(r=null===(n=b[e])||void 0===n?void 0:n.textContent)||void 0===r?void 0:r.trim())&&b[e].classList.add("hide-tab");let o=t+1;h&&f||(console.warn("Document error: no inputs found for tabs widget"),console.warn("Document error: no divs (tab panels) found for tabs widget")),b||console.warn("Document error: no labels found for tabs widget"),null===(l=h[e])||void 0===l||l.classList.add("tab-input"),null===(i=h[e])||void 0===i||i.setAttribute("type","radio"),null===(c=h[e])||void 0===c||c.setAttribute("id",`tab${o}`),null===(s=h[e])||void 0===s||s.setAttribute("name",`hint-group-${y}`),null===(a=h[e])||void 0===a||a.setAttribute("aria-describedby",`tabHeading${o}`),null===(d=b[e])||void 0===d||d.classList.add("tab-header"),null===(u=b[e])||void 0===u||u.setAttribute("for",`tab${o}`),f[e]&&(null===(m=f[e])||void 0===m||m.classList.add("tab-panel"),null===(p=f[e])||void 0===p||p.setAttribute("tabindex","0"),null===(g=f[e])||void 0===g||g.setAttribute("id",`tabHeading${o}`)),h[e].checked=0===e,e+1==h.length&&(b[e].classList.add("hide-tab"),f[e]&&f[e].classList.add("hide-panel")),t++}}))})()},7174:()=>{const e=["cas","ecn","hrs","chm","blobs"];document.querySelectorAll("link").forEach((t=>{const o=t.getAttribute("href");e.forEach((e=>{o&&o.includes(`/${e}/styles.css`)&&function(e){let t=document.createElement("script");t.src=`https://cdn.jsdelivr.net/npm/@pimaonline/pimaonline-themepack/dist/js/themes/${e}.js`,document.head.appendChild(t)}(e)}))}))},6433:()=>{const e=document.querySelectorAll(".toggle-btn");e.length>0&&(()=>{if(document.querySelector(".toggle-btn"))for(let t=0;t<e.length;t++)e[t].setAttribute("tabindex","0"),e[t].addEventListener("click",(()=>{const o=e[t].nextElementSibling;o&&o.classList.toggle("show")})),e[t].addEventListener("keydown",(o=>{if("Enter"===o.key){const o=e[t].nextElementSibling;o&&o.classList.toggle("show")}}))})()},4709:()=>{const e="toolTip",t="toolTipHover",o=document.querySelectorAll(".tooltip");o.length>0&&(()=>{const n=(e,t)=>{t.style.display="block",e.classList.toggle("hidden",!1)},r=(e,t)=>{t.style.display="none",e.setAttribute("aria-expanded","false"),e.classList.toggle("hidden",!0)};o.forEach(((o,l)=>{let i=l+1;o.id=`${e}${i}`,o.role="tooltip",o.tabIndex=0,o.setAttribute("aria-expanded","false"),o.setAttribute("aria-controls",`${t}${i.toString()}`);const c=o.querySelector(".tip-hover");c?(c.id=`${t}${i}`,c.setAttribute("aria-describedby",`${e}${i.toString()}`),o.addEventListener("mouseover",(()=>n(o,c))),o.addEventListener("mouseout",(()=>r(o,c))),o.addEventListener("focus",(()=>n(o,c))),o.addEventListener("blur",(()=>r(o,c))),o.addEventListener("touchstart",(()=>n(o,c))),o.addEventListener("touchend",(()=>r(o,c)))):console.warn("Document error: tooltip is missing .tip-hover class");let s=30-i;o.style.zIndex=s.toString()})),document.querySelectorAll(".tooltip .video-container, .tooltip .video-container").forEach((e=>{const t=e.parentElement;t&&(t.style.width="450px")}))})()},6079:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.jqueryScript=t.videoWrapper=t.rolePres=t.thirdColumn=t.secondColumn=t.docHead=t.courseBody=t.contentWrapper=t.columnWidget=void 0,t.columnWidget=document.querySelector("#column-widget"),t.contentWrapper=document.querySelector("#content-wrapper"),t.courseBody=document.querySelector("body"),t.docHead=document.querySelector("head"),t.secondColumn=document.querySelector("#second-column"),t.thirdColumn=document.querySelector("#third-column"),t.rolePres=document.querySelectorAll('[role="presentation"]'),t.videoWrapper=document.querySelector("#video-wrapper"),t.jqueryScript=document.querySelector('script[src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"]')},4019:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(3258),r=o(2692),l=o(4996),i=o(9191),c=o(3966),s=document.querySelector("body");s&&["view-options","focus-text","dark-mode","large-text","narrow-width"].some((e=>s.hasAttribute(e)))&&((0,n.callViewOptionsDrawer)(),(0,r.callFocusText)(),(0,l.callDarkMode)(),(0,i.callLargeText)(),(0,c.callNarrowWidth)())},4262:()=>{const e=document.querySelectorAll(".vocab-cards"),t=document.querySelectorAll(".vocab-cards .vocab");e.length>0&&(e.forEach((e=>{e.setAttribute("role","region"),e.setAttribute("aria-label","vocabulary list")})),t.length>0&&t.forEach((e=>{e.setAttribute("role","group")})))},7261:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528),i=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("#CompletionTaskForm d2l-button-subtle");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${i.viewOptions}='activity-details']`);(0,n.darkModeCheck)(e,i.activityDetailsTabCss,t,"activity-details");let o=r.parentWindow.document.querySelector("#CompletionTaskForm d2l-button-subtle .d2l-image");o&&(l.darkOn?o.src="/shared/images/svg/chevron-down-solid-white.svg":o.src="https://s.brightspace.com/lib/bsi/2024.4.218/images/tier1/chevron-down.svg")}}}},7471:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-button-icon, d2l-button-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${l.viewOptions}='button']`);(0,n.darkModeCheck)(e,l.buttonGroupStyle2Css,t,"button");const o=t.querySelector("d2l-icon");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector(`style[${l.viewOptions}='button']`);(0,n.darkModeCheck)(t,l.buttonGroupStyle2Css,e,"button")}}}}))}},8338:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("#d2l_btn_bar");if(e){const t=e.querySelectorAll("button");if(t.length>0){let e=`\n\t#d2l_btn_bar button.d2l-button:hover {\n\t\tbackground-color: ${r.colors.colorDp1};\n\t}`;if(t.forEach((t=>{if(t.textContent){if("Edit HTML"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/pencil-solid-white.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if("Download"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/cloud-arrow-down-solid.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if("Print"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/print-solid.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if(t.classList.contains("ally-d2l-button")){let o=t.querySelector("img"),n=document.createElement("span");if(o)if(r.darkOn)o.style.width="0px",o.style.height="0px",n&&(n.classList.add("d2l-icon-custom"),t.prepend(n));else{o.style.width="22px",o.style.height="13px";let e=t.querySelector("span.d2l-icon-custom");e&&e.remove()}e+='\n button.ally-d2l-button span.d2l-icon-custom::before {\n content: url("/shared/images/svg/file-arrow-down-solid.svg");\n\t\t\t\t width: 14px;\n\t\t\t\t height: 18px;\n\t\t\t\t display: inline-block;\n }'}}})),r.d2lBodyElement){const t=r.d2lBodyElement.querySelector(`style[${r.viewOptions}='bottom-buttons']`);(0,n.darkModeCheck)(t,e,r.d2lBodyElement,"bottom-buttons")}}}}},8039:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{n.parentWindow.document.querySelectorAll("d2l-breadcrumbs > d2l-breadcrumb").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${n.viewOptions}='breadcrumb']`);(0,r.darkModeCheck)(e,n.breadcrumbsCss,t,"breadcrumb");const o=t.querySelector("d2l-icon");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector(`style[${n.viewOptions}='breadcrumb-icon']`);(0,r.darkModeCheck)(t,n.whiteIconCss,e,"breadcrumb-icon")}}}}))}},3167:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{const e=()=>{(()=>{const e=n.parentWindow.document.querySelectorAll(".d2l-draghandle-content img.d2l-image");n.darkOn?e.forEach((e=>{e.src="/shared/images/svg/check-solid-white.svg"})):e.forEach((e=>{e.src="https://s.brightspace.com/lib/bsi/2024.4.218/images/tier1/check.svg"}))})();const t=n.parentWindow.document.querySelector("#ContentNavigator");if(t){const o=t.querySelector("d2l-button-icon[icon='tier1:chevron-left']");if(o){const l=t.querySelector("d2l-button-icon[icon='tier1:chevron-right']");if(l){const t=o.shadowRoot;if(t){const o=t.querySelector("d2l-icon");if(o){const i=o.shadowRoot;if(i){const o=l.shadowRoot;if(o){const l=o.querySelector("d2l-icon");if(l){const e=l.shadowRoot;if(e){const l=t.querySelector(`style[${n.viewOptions}='chevron']`),c=o.querySelector(`style[${n.viewOptions}='chevron']`),s=i.querySelector(`style[${n.viewOptions}='chevron']`),a=e.querySelector(`style[${n.viewOptions}='chevron']`);(0,r.darkModeCheck)(l,n.buttonGroupCss,t,"chevron"),(0,r.darkModeCheck)(c,n.buttonGroupCss,o,"chevron"),(0,r.darkModeCheck)(s,n.buttonGroupCss,i,"chevron"),(0,r.darkModeCheck)(a,n.buttonGroupCss,e,"chevron")}}const c=t.querySelector("button[title='Previous module']"),s=o.querySelector("button[title='Next module']");c&&(c.addEventListener("click",(()=>{setTimeout(e,500)})),c.addEventListener("keydown",(t=>{"Enter"===t.key&&setTimeout(e,500)}))),s&&(s.addEventListener("click",(()=>{setTimeout(e,500)})),s.addEventListener("keydown",(t=>{"Enter"===t.key&&setTimeout(e,500)})))}}}}}}}},t=n.parentWindow.document.querySelector(".d2l-page-collapsepane-shadow");t&&(t.addEventListener("click",(()=>{setTimeout(e,500)})),t.addEventListener("keydown",(t=>{"Enter"===t.key&&e()})))}},1179:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier1:chevron-left']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron-back']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron-back")}}}}const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:classes']"),o=()=>{r.parentWindow.document.querySelectorAll(".d2l-datalist-item .d2l-course-selector-item span d2l-button-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='pin']`),o=t.querySelector("d2l-icon");if(o){const l=o.shadowRoot;if(l){const o=l.querySelector(`style[${r.viewOptions}='pin']`);(0,n.darkModeCheck)(o,r.whiteIconCss,l,"pin"),(0,n.darkModeCheck)(e,r.pinBtnStylesCss,t,"pin")}}}}))};t&&(t.addEventListener("click",(()=>{setTimeout(o,1e3)})),t.addEventListener("keydown",(e=>{"Enter"===e.key&&setTimeout(o,1e3)})));const l=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:classes']");if(l){const e=l.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"waffle-icon"),l.addEventListener("click",(()=>{setTimeout(o,1e3)})),l.addEventListener("keydown",(e=>{"Enter"===e.key&&setTimeout(o,1e3)}))}}}}}},4387:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528);t.default=()=>{const e=document.querySelector("head"),t=document.querySelector("body");if(e&&t){const o=e.querySelector("link[href='darkmode.css']");if(n.darkOn){if(t.setAttribute("dark-mode-on",""),!o){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href","darkmode.css"),e.append(t)}}else t.hasAttribute("dark-mode-on")&&t.removeAttribute("dark-mode-on"),o&&e.removeChild(o)}}},7338:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-dropdown-context-menu");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-button-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const o=e.shadowRoot;if(o){const e=o.querySelector(`style[${r.viewOptions}='chevron']`),l=o.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"chevron"),(0,n.darkModeCheck)(l,r.buttonGroupCss,o,"chevron")}}}}}}const t=r.parentWindow.document.querySelector("d2l-dropdown-context-menu"),o=()=>{const e=r.parentWindow.document.querySelector(".d2l-dropdown-menu-contextmenu");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown-menu']`);(0,n.darkModeCheck)(e,r.dropdownDarkBackgroundCss,t,"dropdown-menu")}}};t&&t.addEventListener("click",(()=>{setTimeout(o,250)}))}},2209:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:menu-hamburger']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon[icon='tier3:menu-hamburger']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='hamburger']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"hamburger")}}}}}},7383:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='svg']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"svg")}}))}},630:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{n.parentWindow.document.querySelectorAll("d2l-navigation-link-image").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(".d2l-navigation-link-image-container");if(e){const o=t.querySelectorAll(`style[${n.viewOptions}='logo-img']`);if(n.darkOn){let l=e.querySelector("img");l&&l.remove(),0===o.length&&(0,r.injectCSS)(n.logoCss,t,"logo-img");const i=document.createElement("img");i.classList.add("logo-img-white"),i.src="/shared/images/svg/pima-logo-white.svg",i.alt="My Home",e.append(i)}else{let t=e.querySelector("img");t&&t.remove(),o.length>1&&o[0].remove();const n=document.createElement("img");n.classList.add("logo-img"),n.src="/d2l/lp/navbars/6606/theme/viewimage/2389656/view?v=20.24.4.19097",e.append(n)}}}}))}},2:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-menu-item-link");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='hamburger']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"hamburger")}}r.parentWindow.document.querySelectorAll(".d2l-navigation-s-mobile-menu-nav > d2l-menu > d2l-menu-item").forEach((e=>{(e=>{const t=e.shadowRoot;if(t){const o=t.querySelector("d2l-icon");if(o){const t=o.shadowRoot;if(t){const o=t.querySelector(`style[${r.viewOptions}='chevron']`),l=e.querySelector("d2l-menu");if(l){const e=l.shadowRoot;if(e){const l=e.querySelector("d2l-menu-item-return");if(l){const i=t.querySelector(`style[${r.viewOptions}='return-item-one']`),c=l.shadowRoot;if(c){const l=c.querySelector("d2l-icon");if(l){const c=l.shadowRoot;if(c){const l=c.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(o,r.whiteIconCss,t,"chevron"),(0,n.darkModeCheck)(i,r.returnMenuCss,e,"return-item-one"),(0,n.darkModeCheck)(l,r.whiteIconCss,c,"chevron")}}}}}}}}}})(e),e.querySelectorAll("d2l-menu>d2l-menu-item").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelectorAll("d2l-icon");e.length>0&&e.forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron")}}))}const o=e.querySelector("d2l-menu");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector("d2l-menu-item-return");if(t){const o=e.querySelector(`style[${r.viewOptions}='return-item-two']`),l=t.shadowRoot;if(l){const t=l.querySelector("d2l-icon");if(t){const l=t.shadowRoot;if(l){const t=l.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(t,r.whiteIconCss,l,"chevron"),(0,n.darkModeCheck)(o,r.returnMenuCss,e,"return-item-two")}}}}}}}))}))}},9085:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-menu > d2l-menu-item-link, d2l-menu > d2l-menu-item").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown']`);(0,n.darkModeCheck)(e,l.dropdownMenuCss,t,"dropdown")}})),r.parentWindow.document.querySelectorAll("d2l-dropdown-menu, d2l-dropdown-content").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown']`);(0,n.darkModeCheck)(e,l.dropdownBorderCss,t,"dropdown");const o=t.querySelector("d2l-icon[icon='tier1:chevron-right']"),i=t.querySelector(`style[${r.viewOptions}='chevron']`);o&&(0,n.darkModeCheck)(i,l.dropdownMenuCss,t,"chevron")}}))}},9764:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=".d2l-branding-navigation-dark-foreground-color .d2l-navigation-s-group",t=".vui-list>li.vui-selected, .vui-list>li.vui-selected",o="#ContentNavigator .vui-list > .vui-selected",l=".vui-tabmenu > .vui-tabmenu-item-select > a",i="#CompletionTaskForm d2l-button-subtle",c="div.d2l-filterinline-group-filter > div > a",s=`html {background: ${r.colors.colorDark};}`,a=`#d2l_body, .d2l-body {background: ${r.colors.colorDark};}`,d=`.d2l-navigation-s, .d2l-branding-navigation-background-color, d2l-navigation-main-header {background: ${r.colors.colorDp1};}`,u=`.d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link, .d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link:link, .d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link:visited, .d2l-branding-navigation-dark-foreground-color div.d2l-navigation-s-item>span, ${e}, ${e} {color: ${r.colors.textColor}}`,m=`d2l-breadcrumbs::after {background: ${r.colors.colorDark};}`,p=`${t} {background: ${r.colors.colorDp1}}`,g=`.d2l-courseselector-wrapper, .d2l-page-main-padding > .d2l-datalist-style1, .d2l-page-main-padding > .d2l-placeholder > .d2l-datalist-style1, .d2l-page-main-padding > form > .d2l-datalist-style1, .d2l-datalist-outdent, ${t} {background: ${r.colors.colorDark}}`,h=`.vui-list>.d2l-list-item-action-hover {background: ${r.colors.colorDp1} !important}`,b=`.vui-list>li.d2l-list-item-action-hover.vui-selected {background: ${r.colors.colorDp2} !important}`,f=`.d2l-admin-tools, .d2l-admin-tools .d2l-heading {background: ${r.colors.colorDark}; color: ${r.colors.textColor}}`,v=`.d2l-page-collapsepane-content-inner, ${o}, .d2l-page-collapsepane-handle, .d2l-page-collapsepane.d2l-page-collapsepane-opening .d2l-page-collapsepane-handle, .d2l-page-collapsepane-content {background: ${r.colors.colorDark}}`,y=`${o} {background: ${r.colors.colorDp1}; border-top-color: ${r.colors.textColor}}`,w=`.d2l-link.d2l-link-flat, .d2l-linkheading-link.d2l-link-flat {color: ${r.colors.colorLinks}}`,k=`.d2l-page-collapsepane.d2l-page-collapsepane-opening .d2l-page-collapsepane-handle .d2l-page-collapsepane-handle-link, .d2l-page-collapsepane-handle-link {border-right-color: ${r.colors.textColor}; border-left-color: ${r.colors.textColor}; border-color: ${r.colors.borderColor}}`,S=`.d2l-iterator-button, .d2l-iterator-button.d2l-iterator-button-disabled:hover, .d2l-iterator-button.d2l-iterator-button-disabled:focus {background: transparent; border-color: ${r.colors.colorDp1};}`,C=`.d2l-link, .d2l-link:visited, .d2l-link:active, .d2l-link:link {color: ${r.colors.linkColor}}`,$=`d2l-dropdown-content .d2l-list {background: ${r.colors.colorDark};}`,q=`.d2l-editable:hover {background: ${r.colors.colorDp4}}`,E=`.d2l-button, .d2l-button[active][disabled], .d2l-button[disabled]:focus, .d2l-button[disabled]:hover {background: ${r.colors.colorDark}; border: 1px solid ${r.colors.textColor}; color: ${r.colors.textColor}}`,x=`${l}, .vui-tabmenu > .vui-tabmenu-item:last-child > a, ${l}, .vui-tabmenu > .vui-tabmenu-item > a {background: ${r.colors.colorDp1}; color: ${r.colors.textColor}}`,A=`.d2l-typography {color: ${r.colors.textColor}}`,L=`.d2l-navigation-s-personal-menu-text, .d2l-textblock-secondary {color: ${r.colors.textColor}}`,D=`.d2l-navigation-s-linkarea-no-color .d2l-navigation-s-group:hover, .d2l-navigation-s-linkarea-no-color a.d2l-navigation-s-link:hover {color: ${r.colors.linkColor};}`,M=`\n button:not([disabled]):hover, button:not([disabled]):focus, button[active], *:focus > .d2l-navigation-highlight-border, *:hover > .d2l-navigation-highlight-border, *[active] > .d2l-navigation-highlight-border {\n --d2l-icon-fill-color: ${r.colors.colorLinks} !important;\n --d2l-color-celestine: ${r.colors.colorLinks} !important;\n }\n `,O=`#AdditionalInfoPlaceholder .vui-tabmenu .vui-tabmenu-item a:hover {color: ${r.colors.borderColor}}`,T=`${i} .d2l-container-icon .d2l-textblock {color: ${r.colors.textColor}}\n\t${i} .d2l-inline .d2l-container-icon {background-image: url("/shared/images/svg/check-solid-white.svg")}\n`,_=`${c} {color: ${r.colors.textColor}}\n\t${c}:hover {color: ${r.colors.borderColor}}\n\t#ResultDetails #Filter .d2l-filterinline-item-selected {color: ${r.colors.colorLinks}}\n\t`,N=`#EvaluationSummaryTabId button:hover {background-color: ${r.colors.colorDp1}}`,j=`button:focus:not([disabled]) {background-color: ${r.colors.colorDp1}}`,P=`.d2l-page-collapsepane .d2l-page-collapsepane-handle-link {border-color: transparent;border-left: 5px solid ${r.colors.textColor};}`,H=`.d2l-page-collapsepane.d2l-page-collapsepane-open .d2l-page-collapsepane-handle-link {border-color: transparent !important; border-right: 5px solid ${r.colors.textColor} !important;}`,B=`.d2l-branding-navigation-dark-foreground-color .d2l-navigation-s-mobile-menu-title-bp {color: ${r.colors.textColor}}`,W=`.d2l-navigation-s-mobile-menu-content {background-color: ${r.colors.colorDark}}`,R=`.d2l-navigation-s-mobile-menu-nav d2l-menu-item-link, .d2l-navigation-s-mobile-menu-nav d2l-menu-item, .d2l-navigation-s-mobile-menu-nav d2l-menu-item {background-color: ${r.colors.colorDark}}`,I=`\n\t\t${a}\n\t\t${d}\n\t\t${v}\n\t\t${y}\n\t\t${S}\n\t\t${g}\n\t\t${h}\n\t\t${p}\n\t\t${b}\n\t\t${f}\n\t\t${u}\n\t\t${w}\n\t\t${C}\n\t\t${k}\n\t\t${$}\n\t\t${q}\n\t\t${E}\n\t\t${x}\n\t\t${A}\n\t\t${L}\n\t\t${M}\n\t\t${D}\n\t ${m}\n\t ${O}\n\t ${T}\n\t ${_}\n\t ${N}\n\t ${j}\n\t ${P}\n\t ${H}\n\t .d2l-draghandle-handle-icon {background-image: url("/shared/images/svg/grip-vertical-solid-white.svg")}\n\t .d2l-draghandle-content .d2l-container-icon {background-image: url("/shared/images/svg/globe-solid-white.svg")}\n\t ${B}\n\t ${W}\n\t .d2l-navigation-s-mobile-menu-nav d2l-menu-item-link:hover, .d2l-navigation-s-mobile-menu-nav d2l-menu-item:hover {background-color: ${r.colors.colorDp1}}\n\t ${R}\n\t #ContentNavigator .d2l-link.d2l-link-flat:focus, #ContentNavigator .d2l-link.d2l-link-flat:hover, .d2l-linkheading-link.d2l-link-flat:focus, #ContentNavigator .d2l-linkheading-link.d2l-link-flat:hover {color: ${r.colors.linkColor}}\n\t .d2l-typography .d2l-body-small {color: ${r.colors.textColor}}\n\t \n\n d2l-menu-item-link.d2l-navigation-s-menu-item-root, d2l-menu-item.d2l-navigation-s-menu-item-root {\n background: ${r.colors.colorDark};\n }\n\n .d2l-menu-item-text {\n color: ${r.colors.textColor};\n }\n\n\t\td2l-dropdown d2l-icon[icon='tier1:chevron-down'] {\n\t\t\tfill: ${r.colors.textColor};\n\t\t}\n\t .d2l-courseselector-wrapper #courseSelectorId .d2l-datalist-item .d2l-course-selector-item a {color: ${r.colors.textColor}}\n\t d2l-dropdown-content d2l-datalist vui-list d2l-datalist-item {background-color: ${r.colors.colorDp1} !important}\n\t d2l-dropdown-content .d2l-data-list-item-action-hover {background-color: ${r.colors.colorDp2} !important}\n\t .d2l-navigation-s-mobile-menu-content d2l-navigation-band {background: transparent}\n\t d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell'] d2l-dropdown-content button.d2l-loadmore-pager {\n\tbackground-color: ${r.colors.colorPrimary};\n\tcolor: ${r.colors.colorBlack};\n\tborder: none;\n\t}\n\t d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell'] d2l-dropdown-content button.d2l-loadmore-pager:hover {\n\tbackground-color: ${r.colors.colorPrimaryHover};\n\tcolor: ${r.colors.colorBlack};\n\tborder: none;\n\t}\n\t .d2l-messagebucket-button-container + #AB_DL_PH_Messages .d2l-datalist-container {background: ${r.colors.colorDark}}\n\t d2l-menu.d2l-menu-mvc.d2l-contextmenu d2l-menu-item {color: ${r.colors.textColor};\n\tbackground-color: ${r.colors.colorDark};\n\t}\n\t d2l-menu.d2l-menu-mvc.d2l-contextmenu d2l-menu-item:hover {\n\tcolor: ${r.colors.textColor};\n\tbackground: ${r.colors.colorDp1};\n\t}\n\t .d2l-navigation-s-more d2l-menu > d2l-menu-item {\n\t\tbackground: ${r.colors.colorDark}\n\t}\n\t .d2l-navigation-s-more d2l-menu > d2l-menu-item:hover {\n\t\tbackground: ${r.colors.colorDp1}\n\t}\n\t .d2l-editable.d2l-editable-autosize.d2l-editable-focus {background: ${r.colors.colorDark}}\n\t .d2l-navigation-s-linkarea-no-color .d2l-navigation-s-group:focus {color: ${r.colors.textColor}}\n\t d2l-dropdown-more d2l-menu d2l-menu-item, d2l-dropdown-more d2l-menu d2l-menu-item-link {\n\tbackground-color: ${r.colors.colorDark};\n\t}\n\t d2l-dropdown-more d2l-menu d2l-menu-item:hover, d2l-dropdown-more d2l-menu d2l-menu-item-link:hover {\n\tbackground-color: ${r.colors.colorDp1};\n\t}\n\t #CompletionTaskForm .d2l-container-icon {background-image: url('/shared/images/svg/check-solid-white.svg')}\n\t\tul.d2l-personal-tools-list li {color: ${r.colors.textColor}}\n\t\tul.d2l-personal-tools-list li a.d2l-link {color: ${r.colors.textColor}}\n\tul.d2l-personal-tools-list li a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\t#ContentNavigator a.d2l-link {color: ${r.colors.textColor}}\n\t\t#ContentNavigator a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\td2l-menu-item.d2l-navigation-s-menu-item-root:hover, d2l-menu-item-link.d2l-navigation-s-menu-item-root:hover {background: ${r.colors.colorDp1}}\n\t\t#AdminToolsPlaceholderId a.d2l-link {color: ${r.colors.textColor}}\n\t\t#AdminToolsPlaceholderId a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\t.d2l-iterator-button {background: ${r.colors.colorDp1}}\n\t\t${s}\n\t`;if(r.d2lBodyElement){const e=r.d2lBodyElement.querySelector(`style[${r.viewOptions}='parent']`);(0,n.darkModeCheck)(e,I,r.d2lBodyElement,"parent")}}},7152:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelectorAll(".d2l-navigation-s-item.d2l-navigation-s-more d2l-menu-item");e.length>0&&e.forEach((e=>{const t=e.querySelector("d2l-menu");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='return-item']`);(0,n.darkModeCheck)(t,r.returnMenuCss,e,"return-item");const o=e.querySelector("d2l-menu-item-return");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"chevron")}}}}}}const o=e.shadowRoot;if(o){const e=o.querySelector("d2l-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron")}}}}))}},9301:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='band']`);(0,n.darkModeCheck)(e,r.topNavigationBandCss,t,"band")}}}},9283:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=()=>{const e=r.parentWindow.document.querySelectorAll("d2l-navigation-dropdown-button-icon");e.length>0&&e.forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const o=e.shadowRoot;if(o){const e=t.querySelector(`style[${r.viewOptions}='waffle']`),l=o.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(l,r.topNavIconCss,t,"waffle"),(0,n.darkModeCheck)(e,r.whiteIconCss,o,"waffle-icon")}}}}));const t=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:classes']");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"waffle-icon")}}}}};e();const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell']");t&&t.addEventListener("click",e);const o=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:discussions']");o&&o.addEventListener("click",e);const l=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:email']");l&&l.addEventListener("click",e)}},513:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell']");if(e){const t=()=>{e.querySelectorAll("d2l-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='icon-white']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"icon-white")}}))};e.addEventListener("click",(()=>{setTimeout(t,750)}))}const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:discussions']");if(t){const e=()=>{const e=t.querySelector("d2l-empty-state-simple");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='icon-white']`);(0,n.darkModeCheck)(e,r.messageAreaBkgCss,t,"icon-white")}}};t.addEventListener("click",(()=>{setTimeout(e,500)}))}const o=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:email']");if(o){const e=()=>{const e=o.querySelector("d2l-button-subtle[icon='tier1:email']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const l=e.shadowRoot;if(l){const e=l.querySelector(`style[${r.viewOptions}='button-styles']`),i=l.querySelector(`style[${r.viewOptions}='button-styles']`);(0,n.darkModeCheck)(i,r.messageButtonCss,t,"button-styles"),(0,n.darkModeCheck)(e,r.messageButtonCss,l,"button-styles");const c=o.querySelector("#AB_DL_PH_Messages>div");if(c){const e=c.querySelector("d2l-empty-state-simple");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='empty-state-container']`);(0,n.darkModeCheck)(e,r.messageAreaBkgCss,t,"empty-state-container")}}}}}}}};o.addEventListener("click",(()=>{setTimeout(e,500)}))}}},8495:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(o(7261)),l=n(o(7471)),i=n(o(8338)),c=n(o(8039)),s=n(o(3167)),a=n(o(1179)),d=n(o(4387)),u=n(o(7338)),m=n(o(2209)),p=n(o(7383)),g=n(o(630)),h=n(o(2)),b=n(o(9085)),f=n(o(9764)),v=n(o(7152)),y=n(o(9301)),w=n(o(9283)),k=n(o(513)),S=()=>{(0,r.default)(),(0,l.default)(),(0,i.default)(),(0,c.default)(),(0,s.default)(),(0,a.default)(),(0,d.default)(),(0,u.default)(),(0,m.default)(),(0,p.default)(),(0,g.default)(),(0,h.default)(),(0,b.default)(),(0,f.default)(),(0,v.default)(),(0,y.default)(),(0,w.default)(),(0,k.default)()};document.querySelector("body[dark-mode]")&&S(),t.default=S},1424:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),o(5528),o(8256),o(8495)},8256:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.darkModeCheck=t.injectCSS=void 0;const n=o(5528);function r(e,t,o){const r=document.createElement("style");r.setAttribute(`${n.viewOptions}`,o),r.innerHTML=e,t.prepend(r)}t.injectCSS=r,t.darkModeCheck=function(e,t,o,l){n.darkOn?null==e&&r(t,o,l):null!=e&&e.remove()}},5528:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.darkBackgroundAlertCss=t.topNavIconCss=t.topNavigationBandCss=t.dropdownDarkBackgroundCss=t.pinBtnStylesCss=t.breadcrumbsCss=t.buttonGroupStyle2Css=t.activityDetailsTabCss=t.dropdownBorderCss=t.dropdownMenuCss=t.messageButtonCss=t.messageAreaBkgCss=t.returnMenuCss=t.logoCss=t.buttonGroupCss=t.whiteIconCss=t.d2lBodyElement=t.parentWindow=t.toggleDarkOn=t.darkOn=t.colors=t.viewOptions=void 0,t.viewOptions="pccviewoptions",t.colors={colorPrimary:"rgba(149, 209, 255, 1)",colorPrimaryHover:"rgba(126, 199, 255, 1)",colorDark:"rgba(15, 23, 42, 1)",colorDp1:"rgba(255, 255, 255, .05)",colorDp2:"rgba(255, 255, 255, .07)",colorDp3:"rgba(255, 255, 255, .08)",colorDp4:"rgba(255, 255, 255, .09)",colorLinks:"rgba(56, 189, 248, 1)",colorLinksHover:"rgba(136, 179, 202, 1)",colorLinksVisited:"rgba(185, 183, 237, 1)",colorBlack:"rgba(13, 13, 13, 1)",linkColor:"rgba(56, 189, 248, 1)",textColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 255, 255, .5)",pccPrimary:"rgba(4, 85, 148, 1)"},t.darkOn=!1,t.toggleDarkOn=()=>{t.darkOn=!t.darkOn},t.parentWindow=window.parent,t.d2lBodyElement=t.parentWindow.document.querySelector(".d2l-body"),t.whiteIconCss=`svg {color: ${t.colors.textColor};fill: ${t.colors.textColor};}`,t.buttonGroupCss="\n\tbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\tsvg {\n\t\tcolor: white !important;\n\t\tfill: white !important;\n\t}",t.logoCss="\n\t.logo-img {\n\t\twidth: 40px;\n\t\theight: 173px;\n\t}\n\t.logo-img-white {\n\t\twidth: 60px;\n\t\tmax-height: 60px !important;\n\t\theight: 173px;\n\t\tmargin-left: -10px;\n\t\tmargin-right: -5px;\n\t}",t.returnMenuCss=`\n\td2l-menu-item-return {background-color: ${t.colors.colorDp2}}\n\td2l-menu-item-return:hover {background-color: ${t.colors.colorDp3}}\n\td2l-menu-item-return {color: ${t.colors.textColor}}\n\t`,t.messageAreaBkgCss=`\n\t.empty-state-container {background: ${t.colors.colorDark}}\n\t.empty-state-container p {color: ${t.colors.textColor}}\n\t}`,t.messageButtonCss=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n color: ${t.colors.colorBlack} !important;\n background-color: ${t.colors.colorPrimaryHover} !important;\n}\nbutton {\n color: ${t.colors.colorBlack} !important;\n background-color: ${t.colors.colorPrimary} !important;\n} \nbutton .d2l-button-subtle-content {\n color: ${t.colors.colorBlack} !important;\n background-color: transparent !important;\n}\nbutton .d2l-button-subtle-content:hover {\n color: ${t.colors.colorBlack} !important;\n background-color: transparent !important;\n}\nsvg {\n color: ${t.colors.colorBlack} !important;\n fill: ${t.colors.colorBlack} !important;\n}`;const o="d2l-menu-item-link.d2l-navigation-s-menu-item-root",n="d2l-menu-item.d2l-navigation-s-menu-item-root";t.dropdownMenuCss=`\n ${o}, ${n} {\n background: ${t.colors.colorDark} !important;\n }\n .d2l-menu-item-text {\n color: ${t.colors.textColor} !important;\n }\n ${o}:hover, ${n}:hover {\n background: rgba(255, 255, 255, .05) !important;\n } \n `,t.dropdownBorderCss=`\n .d2l-dropdown-content-top, .d2l-dropdown-content-bottom, .d2l-dropdown-content-pointer > div {\n background: ${t.colors.colorDark} !important;\n }\n\n\t.d2l-dropdown-content-width {\n\t background-color: ${t.colors.colorDark} !important;\n\t}`,t.activityDetailsTabCss=`\nbutton:hover, button:focus, :host([active]) button {\n background-color: ${t.colors.colorDp2} !important;\n}`,t.buttonGroupStyle2Css=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n background-color: ${t.colors.colorDp1} !important;\n}\nsvg {\n color: white !important;\n fill: white !important;\n}`,t.breadcrumbsCss=`\n.d2l-link, .d2l-link:visited, .d2l-link:active, .d2l-link:link { \n color: ${t.colors.textColor} !important; \n}\n .d2l-link:hover { \n color: ${t.colors.linkColor} !important; \n}`,t.pinBtnStylesCss=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n background-color: ${t.colors.linkColor} !important\n}`,t.dropdownDarkBackgroundCss=`\n#d2l-dropdown-wrapper {\n background-color: ${t.colors.colorDark}\n}`,t.topNavigationBandCss="\n\td2l-navigation-band {\n\t background: transparent;\n\t}",t.topNavIconCss=`button:not([disabled]):hover, button:not([disabled]):focus, button[active], *:focus > .d2l-navigation-highlight-border, *:hover > .d2l-navigation-highlight-border, *[active] > .d2l-navigation-highlight-border {\n --d2l-icon-fill-color: ${t.colors.colorLinks} !important;\n --d2l-color-celestine: ${t.colors.colorLinks} !important;\n }`,t.darkBackgroundAlertCss=`\nd2l-alert {\n background-color: ${t.colors.colorDark}\n}`,t.default=t.colors},4996:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.callDarkMode=void 0;const r=o(5528),l=n(o(8495));let i=!1;t.callDarkMode=function(){const e=document.querySelector("#dark-mode-btn");e?(e.addEventListener("click",(t=>{t.stopPropagation(),i=!i,(0,r.toggleDarkOn)(),e.innerHTML=i?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',(0,l.default)()})),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&13!==t.keyCode||(t.preventDefault(),i=!i,(0,r.toggleDarkOn)(),e.innerHTML=i?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',(0,l.default)())}))):console.warn("Document error: dark mode switch element is missing - event listeners not added")}},3258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callViewOptionsDrawer=void 0,t.callViewOptionsDrawer=function(){let e=!1;const t=document.querySelector("body"),o=document.querySelector("head"),n=(e,t)=>{const n=document.createElement(e);Object.keys(t).forEach((e=>n.setAttribute(e,t[e]))),null==o||o.append(n)};n("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"}),n("script",{src:"https://www.jsdelivr.com/package/npm/intersection-observer"});const r=document.createElement("div");function l(e,t,o,n){return`\n <div class="${o}-wrapper">\n <img src="${n}" alt="">\n <p class="feature">${e}</p>\n <p class="caption">${t}</p>\n <button id="${o}-btn" class="vo-toggle-btns" tabindex="-1" aria-label="${e.toLowerCase()} toggle button" aria-checked="false" role="button">\n <i class="fas fa-toggle-off"></i>\n </button>\n </div>\n `}r.className="view-options-switches",null==t||t.append(r),r.innerHTML=`\n <button aria-label="view options drawer" aria-expanded="false" role="button" tabindex="1">\n <img src="/shared/images/svg/sliders-icon.svg" alt="">\n </button>\n <div class="control-panel">\n <h2>View Options</h2>\n ${l("Dark Mode","Turn browser dark","dark-mode","/shared/images/svg/moon-icon.svg")}\n ${l("Large Text","Increase font size","large-text","/shared/images/svg/text-icon.svg")}\n ${l("Focus Text","Highlight text as you scroll","focus-text","/shared/images/svg/eye-icon.svg")}\n ${l("Narrow Width","Make width of text narrow","narrow-width","/shared/images/svg/width-icon.svg")}\n </div>\n `;const i={"focus-text":document.querySelector(".focus-text-wrapper"),"dark-mode":document.querySelector(".dark-mode-wrapper"),"large-text":document.querySelector(".large-text-wrapper"),"narrow-width":document.querySelector(".narrow-width-wrapper"),"view-options":document.querySelectorAll(".focus-text-wrapper, .dark-mode-wrapper, .large-text-wrapper, .narrow-width-wrapper")};for(const e in i)if(null==t?void 0:t.hasAttribute(e)){const t=i[e];"view-options"===e?t.forEach((e=>{e instanceof HTMLElement&&(e.style.display="grid")})):t instanceof HTMLElement&&(t.style.display="grid")}((null==t?void 0:t.hasAttribute("view-options"))&&(document.querySelector("#second-column")||document.querySelector("#third-column"))||window.innerWidth<768)&&i["narrow-width"]&&(i["narrow-width"].style.display="none");const c=document.querySelector(".view-options-switches > button"),s=["#focus-text-btn","#dark-mode-btn","#large-text-btn","#narrow-width-btn"].map((e=>document.querySelector(e)));function a(t){t.stopPropagation(),e=!e,r.classList.toggle("expand-panel"),s.forEach((t=>null==t?void 0:t.setAttribute("tabindex",e?"1":"-1")))}null==c||c.addEventListener("click",a),null==c||c.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),a(e))})),document.addEventListener("click",(t=>{!e||r.contains(t.target)||(null==c?void 0:c.contains(t.target))||a(t)}))}},6289:(e,t)=>{function o(e,t){e.nodeType===Node.TEXT_NODE&&""!==e.textContent.trim()?(e.textContent.split(" ").forEach((o=>{if(""!==o){const n=document.createElement("span");n.textContent=o+" ",t.observe(n),e.parentNode?e.parentNode.insertBefore(n,e):console.warn("Document error: parent node not found for text node")}})),e.parentNode?e.parentNode.removeChild(e):console.warn("Document error: parent node not found to remove text node")):e.nodeType===Node.ELEMENT_NODE&&Array.from(e.childNodes).forEach((e=>{o(e,t)}))}function n(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("SPAN"!==t.tagName||"focus-text"!==t.className&&""!==t.className&&""!==t.textContent.trim()&&0!==t.attributes.length)Array.from(e.childNodes).forEach((e=>{n(e)}));else{const e=document.createTextNode(t.textContent);t.parentNode?(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t)):console.warn("Document error: parent node not found for span element")}}}Object.defineProperty(t,"__esModule",{value:!0}),t.focusText=t.removeSpans=t.traverseAndWrapTextInSpans=t.toggleFocusText=t.options=void 0,t.options={root:null,rootMargin:"-48.9% 0px",threshold:0},t.toggleFocusText=function(e,t,r){if(e&&t){const e=t.querySelectorAll("#content-wrapper .content-body :is(p, li, dd, dt, blockquote)");0===e.length&&console.warn("Document error: no elements found to wrap for focus text"),e.forEach((e=>{o(e,r)}))}else t?n(t):console.warn("Document error: content wrapper element not found for removing spans")},t.traverseAndWrapTextInSpans=o,t.removeSpans=n,t.focusText=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target.closest("span");t?e.isIntersecting?t.classList.add("focus-text"):t.classList.remove("focus-text"):console.warn("Document error: closest span not found for intersection observer entry")}))}),t.options)},2692:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callFocusText=void 0;const n=o(6289);t.callFocusText=function(){let e=!1;const t=document.querySelector("#content-wrapper"),o=document.querySelector("#focus-text-btn");function r(){e=!e,t?t.toggleAttribute("focus-on",e):console.warn("Document error: content wrapper element not found"),o?(o.setAttribute("aria-checked",e.toString()),o.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'):console.warn("Document error: focus text switch element not found"),(0,n.toggleFocusText)(e,t,n.focusText)}o?(o.addEventListener("click",(e=>{e.stopPropagation(),r()})),o.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),r())}))):console.warn("Document error: focus text switch element is missing - event listeners not added")}},5207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.processElements=t.getLargeTextElementsSelectors=t.adjustParagraphMargins=t.wordSpacing=t.lineHeight=t.lgFont=t.mdFont=void 0,t.mdFont=4,t.lgFont=6,t.lineHeight=1.5,t.wordSpacing=.16,t.adjustParagraphMargins=function(e){document.querySelectorAll(".content-body p, .content-body > h3").forEach((t=>{e?(t.dataset.originalMarginBottom=t.style.marginBottom,t.style.marginBottom="1em"):t.style.marginBottom=t.dataset.originalMarginBottom||""}))},t.getLargeTextElementsSelectors=function(e){const t=".header :is(h1, p), .content-body :is(h2, h3, h4, h5, h6, p:not(table p), li, a:not(table a), blockquote, figcaption, .front, .overlay, .back, dt, dd, span), footer *, #footer p",o="td, th, label";return{largeTextElements:e.querySelectorAll(t),smallerTextElements:e.querySelectorAll(o),largeTextSelectors:t,smallerTextSelectors:o}},t.processElements=function(e,t,o,n,r,l,i,c,s){e.forEach((e=>{if(!e)return;let a=e.parentElement;for(;a&&!a.matches(t?s:c);)a=a.parentElement;if(!a)if(o){const o=window.getComputedStyle(e);e.dataset.originalFontSize=o.fontSize,e.dataset.originalLineHeight=o.lineHeight,e.dataset.originalWordSpacing=o.wordSpacing;const c=parseFloat(o.fontSize)+(t?n:r);e.style.fontSize=`${c}px`,e.style.lineHeight=`${l}`,e.style.wordSpacing=`${i}em`}else e.removeAttribute("style"),e.removeAttribute("data-original-margin-bottom"),e.removeAttribute("data-original-font-size"),e.removeAttribute("data-original-line-height"),e.removeAttribute("data-original-word-spacing")}))}},9191:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callLargeText=void 0;const n=o(6079),r=o(5207);t.callLargeText=function(){let e=!1;const t=document.querySelector("#large-text-btn");function o(){if(e=!e,!n.courseBody)return void console.warn("Document error: content wrapper element not found");n.courseBody.toggleAttribute("large-text-on",e),(0,r.adjustParagraphMargins)(e);const{largeTextElements:o,smallerTextElements:l,largeTextSelectors:i,smallerTextSelectors:c}=(0,r.getLargeTextElementsSelectors)(n.courseBody);(0,r.processElements)(l,!0,e,r.mdFont,r.lgFont,r.lineHeight,r.wordSpacing,i,c),(0,r.processElements)(o,!1,e,r.mdFont,r.lgFont,r.lineHeight,r.wordSpacing,i,c),t.setAttribute("aria-checked",e.toString()),t.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'}t?(t.addEventListener("click",(e=>{e.stopPropagation(),o()})),t.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),o())}))):console.warn("Document error: large text switch element is missing - event listeners not added")}},3966:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callNarrowWidth=void 0,t.callNarrowWidth=function(){let e=!1;const t=document.querySelector("#content-wrapper"),o=document.querySelector("#narrow-width-btn");function n(){e=!e,t?t.toggleAttribute("narrow-on",e):console.warn("Document error: content wrapper element not found"),o?(o.setAttribute("aria-checked",e.toString()),o.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'):console.warn("Document error: narrow width switch element not found")}o?(o.addEventListener("click",(e=>{e.stopPropagation(),n()})),o.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),n())}))):console.warn("Document error: narrow width switch element is missing - event listeners not added")}}},t={};!function o(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,o),l.exports}(7080)})();
1
+ (()=>{"use strict";var e={7408:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooltipText=t.featureData=t.customJsThemes=t.intersectionObserverURL=t.remixIconsURL=t.remixIconsVersionNum=t.bootstrapIconsURL=t.bootstrapIconsVersionNum=t.fontAwesomeURL=t.fontAwesomeVersionNum=void 0,t.fontAwesomeVersionNum="6.1.1",t.fontAwesomeURL=`https://cdnjs.cloudflare.com/ajax/libs/font-awesome/${t.fontAwesomeVersionNum}/css/all.min.css`,t.bootstrapIconsVersionNum="1.11.3",t.bootstrapIconsURL=`https://cdn.jsdelivr.net/npm/bootstrap-icons@${t.bootstrapIconsVersionNum}/font/bootstrap-icons.min.css`,t.remixIconsVersionNum="4.0.1",t.remixIconsURL=`https://cdn.jsdelivr.net/npm/remixicon@${t.remixIconsVersionNum}/fonts/remixicon.css`,t.intersectionObserverURL="https://www.jsdelivr.com/package/npm/intersection-observer",t.customJsThemes=["cas","ecn","hrs","chm","blobs"],t.featureData=[{feature:"Dark Mode",caption:"Turn browser dark",id:"dark-mode",imgSrc:"/shared/images/svg/moon-icon.svg"},{feature:"Large Text",caption:"Increase font size",id:"large-text",imgSrc:"/shared/images/svg/text-icon.svg"},{feature:"Focus Text",caption:"Highlight text as you scroll",id:"focus-text",imgSrc:"/shared/images/svg/eye-icon.svg"},{feature:"Narrow Width",caption:"Make width of text narrow",id:"narrow-width",imgSrc:"/shared/images/svg/width-icon.svg"}],t.tooltipText="View Options"},2152:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.discardAttributes=void 0,t.discardAttributes=(e,...t)=>{t.forEach((t=>e.removeAttribute(t)))}},7080:(e,t,o)=>{o(3271),o(6381),o(1034),o(1645),o(71),o(4e3),o(161),o(3982),o(8795),o(9308),o(7721),o(7121),o(81),o(4786),o(4407),o(1952),o(7174),o(6433),o(4709),o(4393),o(4019),o(4262),o(3258),o(2692),o(9191),o(1424),o(3966),o(7976)},3271:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079),r=o(7408),l=[{class:"bi-",cdn:new URL(r.bootstrapIconsURL)},{class:"ri-",cdn:new URL(r.remixIconsURL)}];document.querySelectorAll(l.map((e=>`[class*='${e.class}']`)).join(", ")).length>0&&l.forEach((e=>{var t;if(document.querySelector(`[class*='${e.class}']`)){const o=null!==(t=null===n.docHead||void 0===n.docHead?void 0:n.docHead.querySelector("meta[name='viewport']"))&&void 0!==t?t:null;o||console.warn("Document error: could not find viewport meta tag");const r=document.createElement("link");r.setAttribute("href",e.cdn.toString()),r.setAttribute("rel","stylesheet"),o&&(null===n.docHead||void 0===n.docHead||n.docHead.insertBefore(r,o.nextSibling))}}))},6381:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079);n.contentWrapper?n.contentWrapper.setAttribute("role","main"):n.contentWrapper||console.log("Document error: does not contain #content-wrapper."),n.secondColumn&&(n.secondColumn.setAttribute("role","region"),n.secondColumn.setAttribute("aria-label","Second column")),n.thirdColumn&&(n.thirdColumn.setAttribute("role","region"),n.thirdColumn.setAttribute("aria-label","Third column"))},1034:()=>{const e=document.querySelectorAll(".arrow-right");e.length>0&&e.forEach((e=>{(e=>{e.addEventListener("click",(t=>{e.classList.toggle("arrow-down")})),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||e.classList.toggle("arrow-down")}))})(e)}))},1645:()=>{const e=document.querySelectorAll("dl.vocab-list dt"),t=(document.querySelectorAll("dl.vocab-list dd"),document.querySelectorAll("dl.vocab-list")),o=(document.querySelectorAll("dl.vocab-list button"),e=>{e.classList.toggle("active");let t=e.nextElementSibling instanceof HTMLElement?e.nextElementSibling:null;for(t&&"block"===t.style.display?t.style.display="none":t&&(t.style.display="block");t&&t.nextElementSibling;){const e=t.nextElementSibling;if(e instanceof HTMLElement){if(t=e,!t||"DD"!==t.tagName)break;"block"===t.style.display?t.style.display="none":t.style.display="block"}}}),n=e=>{if(e){let t=e.querySelectorAll("dd"),o=e.querySelectorAll("dt");t.forEach((e=>{e.style.display="none"})),o.forEach((e=>{e.classList.remove("active")}))}};t.length>0&&(()=>{t.forEach((e=>{let t=0,o=0,r=!1;for(let n=0;n<e.children.length;n++)"DT"==e.children[n].tagName&&(e.children[n].setAttribute("tabindex","0"),t++),"DD"==e.children[n].tagName&&o++,"BUTTON"==e.children[n].tagName&&(r=!0);if(t<1&&console.warn("Document error: no terms found in vocab list"),o<1&&console.warn("Document error: no definitions found in vocab list"),t>o&&console.warn("Document error: more terms than definitions in vocab list"),t>=2&&o>=2)if(r){let t=e.querySelector("button");null==t||t.addEventListener("click",(()=>n(e)))}else{const t=document.createElement("button");t.textContent="Close All",t.addEventListener("click",(()=>n(e))),e.appendChild(t)}else{for(let t=0;t<e.children.length;t++)"BUTTON"==e.children[t].tagName&&(r=!0);if(r){let t=e.querySelector("button");t&&(t.style.display="none")}}}));for(let t=0;t<e.length;t++)e[t].addEventListener("click",(n=>{o(e[t])})),e[t].addEventListener("keydown",(n=>{"Enter"===n.key&&o(e[t])}))})()},71:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cleanMarkup=void 0;const n=o(6079),r=o(2152);t.cleanMarkup=()=>{n.rolePres&&n.rolePres.forEach((e=>e.removeAttribute("role"))),document.querySelectorAll(l.join(",")).forEach((e=>{(0,r.discardAttributes)(e,...i)})),n.jqueryScript&&n.jqueryScript.remove()};const l=["table","thead","tbody","tr","th","td"],i=["cellspacing","cellpadding","width","style"];var c;(n.rolePres&&n.rolePres.length>0||(c=i,l.some((e=>c.some((t=>null!==document.querySelector(`${e}[${t}]`))))))||n.jqueryScript)&&(0,t.cleanMarkup)()},4e3:()=>{const e=document.querySelectorAll(".content-lock-widget"),t=document.querySelectorAll(".locked-content"),o=document.querySelectorAll(".instructions"),n=[],r=e=>{const r=(e,n,r)=>{u[n].keys[e]=!0,u[n].keys[e]?(t[r].classList.add("open"),o[r].classList.add("complete")):(t[r].classList.remove("open"),o[r].classList.remove("complete")),localStorage.setItem("contentLockData",JSON.stringify(u)),i(n)},l=(e,t)=>{let o=e.querySelector(".error-container"),n=document.createElement("span");o&&(o.innerHTML="",o.appendChild(n)),n.textContent="",setTimeout((function(){n.textContent=t,o&&o.appendChild(n)}),200)},i=e=>{t.forEach(((n,r)=>{let l=n.getAttribute("data-key");if(l){let n=parseInt(l,10);u[e].keys[n]?(t[r].classList.add("open"),o[r].classList.add("complete")):(t[r].classList.remove("open"),o[r].classList.remove("complete"))}}))},c=window.parent.location.href.match(/\/content\/(\d+)/),s=c?c[1]:null,a=["a","b","c","d","e","f","g","h","i"],d=localStorage.getItem("contentLockData");let u=d?JSON.parse(d):{};if(s){const c=parseInt(s,10);window.addEventListener("storage",(e=>{s&&((e,t)=>{e&&"contentLockData"===e.key&&e.newValue&&(u=JSON.parse(e.newValue),i(t))})(e,c)}));let d=1;e.forEach(((e,o)=>{let n=e.querySelector(".quiz form");if(t){if(n){let t=e.querySelector(".locked-content"),r=e.querySelector(".quiz .correct-answer");if(r&&(t||console.warn(`Document error: missing the locked-content class for widget number ${o+1} on this page`),r||console.warn(`Document error: missing correct-answer for content lock quiz for widget number ${o+1} on this page`),n.id=`quiz${d}`,!e.querySelector(".error-container"))){let t=document.createElement("div");t.classList.add("error-container");let n=e.querySelector("input[value='Submit']");n?n.insertAdjacentHTML("beforebegin",t.outerHTML):console.warn(`Document error: quiz is missing an input with value 'Submit' for widget number ${o+1} on this page.`)}}d++}else e.querySelector(".unlock-btn")||console.warn(`Document error: locked content area (that is not using a quiz) is missing <a> with .unlock-btn for widget number ${o+1} on this page.`)})),new Promise(((e,t)=>{let o=document.querySelectorAll(".quiz form");o&&o.forEach((e=>{e.querySelectorAll("input").forEach(((e,t)=>{e.getAttribute("value")?"Submit"==e.getAttribute("value")&&(e.setAttribute("type","button"),e.classList.add("unlock-btn")):(e.setAttribute("value",a[t]),e.setAttribute("name","options"),e.setAttribute("type","radio"))}))})),e()})).then((()=>{(()=>{const e=new Map;t.forEach((t=>{const o=t.getAttribute("data-key");if(o)if(e.has(o)){const t=e.get(o)||0;e.set(o,t+1)}else e.set(o,1)}));let o=!1;e.forEach(((e,t)=>{e>1&&(console.warn(`Document error: multiple quizzes found with the same data key (${t})`),o=!0)}))})();const e=document.querySelectorAll(".unlock-btn");u.hasOwnProperty(s)||(u[c]={keys:{}}),t.forEach(((e,t)=>{let o=e.getAttribute("data-key");if(o){let n=parseInt(o,10),r=e.parentElement;r?r.classList.contains("content-lock-widget")||console.warn(`Document error: content lock widget wrapper is missing .content-lock-widget class for widget number ${t+1} on this page`):console.warn(`Document error: content lock widget is missing parent container for widget number ${t+1} on this page`);let l=e.nextElementSibling;if(l)if(l.classList.contains("instructions")&&"DIV"===l.tagName){if(!l.querySelector(".unlock-btn")){let e=l.nextElementSibling;e?e.classList.contains("quiz")||console.warn(`Document error: missing .quiz class after locked-content ${t+1} on this page`):console.warn(`Document error: missing .unlock-btn class inside instructions ${t+1} on this page`)}}else console.warn(`Document error: instructions <div> is missing .instructions class for widget number ${t+1} on this page`);else console.warn(`Document error: locked content area is missing <div> with instructions for widget number ${t+1} on this page`);u[c].keys[n]||(u[c].keys[n]=!1)}else o||console.warn(`Document error: missing data-key for locked content for widget number ${t+1} on this page`)})),e.forEach(((e,i)=>{let s=t[i].getAttribute("data-key");if(s){let a=parseInt(s,10);null!==e.textContent&&n.push(e.textContent),e.setAttribute("tabIndex","0"),e.addEventListener("click",(()=>((e,t,o,n,i)=>{let c=!1,s=!1;"INPUT"===t.tagName&&(c=!0),c?(s=(e=>{let t=document.getElementById(`quiz${e}`);if(t){let e=t.querySelector("input[name='options']:checked"),o=t.querySelector("input.correct-answer"),n="";return e?o?e.value===o.value?(alert("Correct response"),!0):(n="Incorrect response. Please try again.",l(t,n),!1):(console.warn("Document error: no .correct-answer class applied"),!1):(n="Please select an option before submitting.",l(t,n),!1)}return console.warn("Document error: quiz id for content lock quiz, not being applied"),!1})(e),s&&r(e,i,o)):(s=window.confirm(`Please confirm: ${n[o]}`),s&&r(e,i,o))})(a,e,i,n,c))),u[c]||(u[c]={keys:{},id:0}),u[c].keys[a]&&(t[i].classList.add("open"),o[i].classList.add("complete"))}})),i(c),localStorage.setItem("contentLockData",JSON.stringify(u))})).catch((e=>{console.warn("Document error: error occurred during applyAttributesToQuiz:",e)}))}else console.warn("Document error: No course number found")};document.addEventListener("DOMContentLoaded",(()=>{e.length>0&&r(e)}))},161:()=>{const e=document.querySelectorAll(".flip-card-widget, .flip-card-group");e.length>0&&e.forEach((e=>{let t=e.querySelectorAll(".flip-card"),o=e.querySelectorAll(".inner-card"),n=e.children.length;n!==t.length&&console.warn("Document error: missing .flip-card class for flip card widget"),n!==o.length&&console.warn("Document error: missing .inner-card class for flip card widget"),t.forEach((e=>{e.querySelectorAll(".inner-card").forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("click",(()=>{e.offsetHeight,e.classList.toggle("flip")})),e.addEventListener("keydown",(t=>{"Enter"===t.key&&(e.offsetHeight,e.classList.toggle("flip"))}))}))}))}))},3982:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(7408);if(document.querySelector("body[focus-reader]")){let e=!1;const t=document.querySelector("#content-wrapper"),o=document.querySelector("body[focus-reader]"),i=document.querySelector("head"),c=document.createElement("link");c.rel="stylesheet",c.href=n.fontAwesomeURL,i&&i.append(c);const s=document.createElement("script");s.src=n.intersectionObserverURL,i&&i.append(s);const a=document.createElement("div");a.className="focus-reader-switches",o&&o.append(a);const d=document.createElement("div");a.append(d);const u=document.createElement("p");u.innerHTML="Focus Text",d.append(u);const m=document.createElement("i");m.classList.add("fa-solid"),m.classList.add("fa-circle-info"),d.append(m);const p=document.createElement("span");p.classList.add("info-tooltip"),p.innerHTML="Highlight text as you scroll",m.append(p);const g=document.createElement("button");g.id="focus-text",g.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',d.append(g),g.addEventListener("click",(()=>{e?(e=!e,t&&(t.removeAttribute("on"),g.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',l(t))):(e=!e,t&&(t.setAttribute("on",""),g.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',document.querySelectorAll("#content-wrapper .content-body :is(p, li, dd, dt, blockquote)").forEach((e=>{r({node:e,focusText:h})}))))}));const h=new IntersectionObserver((e=>{e.forEach((e=>{var t,o;e.isIntersecting?null===(t=e.target.closest("span"))||void 0===t||t.classList.add("focus-text"):null===(o=e.target.closest("span"))||void 0===o||o.classList.remove("focus-text")}))}),{root:null,rootMargin:"-48.9% 0px",threshold:0})}function r({node:e,focusText:t}){var o,n;e.nodeType===Node.TEXT_NODE&&""!==(null===(o=e.textContent)||void 0===o?void 0:o.trim())?(e.textContent.split(" ").forEach((o=>{var n;if(""!==o){const r=document.createElement("span");r.textContent=o+" ",t.observe(r),null===(n=e.parentNode)||void 0===n||n.insertBefore(r,e)}})),null===(n=e.parentNode)||void 0===n||n.removeChild(e)):e.nodeType===Node.ELEMENT_NODE&&Array.from(e.childNodes).forEach((e=>{r({node:e,focusText:t})}))}function l(e){var t,o,n;if(e.nodeType===Node.ELEMENT_NODE){const r=e;if(r instanceof HTMLElement&&"SPAN"===r.tagName&&("focus-text"===r.className||""===r.className||!(null===(t=r.textContent)||void 0===t?void 0:t.trim())||0===r.attributes.length)){const e=document.createTextNode(r.textContent||"");null===(o=r.parentNode)||void 0===o||o.insertBefore(e,r),null===(n=r.parentNode)||void 0===n||n.removeChild(r)}else Array.from(r.childNodes).forEach((e=>{l(e)}))}}},8795:()=>{const e=document.querySelector(".toggle-footnotes");e&&(e=>{var t;const o=document.createElement("button");o.classList.add("toggle-footnotes"),o.textContent="[Show Footnotes]",null===(t=e.parentNode)||void 0===t||t.replaceChild(o,e),o.addEventListener("click",(()=>{o.textContent="[Show Footnotes]"===o.textContent?"[Hide Footnotes]":"[Show Footnotes]";const e=o.nextElementSibling;e&&e.classList.toggle("show")}))})(e)},9308:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079);(()=>{if(null!==n.courseBody){n.contentWrapper&&n.secondColumn&&n.thirdColumn?n.courseBody.id="three-column":n.contentWrapper&&n.secondColumn&&!n.columnWidget?n.courseBody.id="two-column":n.contentWrapper&&n.secondColumn&&n.columnWidget?n.courseBody.id="two-col-widget":n.contentWrapper&&n.videoWrapper?n.courseBody.id="video-grid":!n.contentWrapper||n.secondColumn||n.thirdColumn||n.columnWidget||n.videoWrapper?n.contentWrapper&&!n.secondColumn&&(n.thirdColumn||n.columnWidget)?console.log("Document error: <body> is missing id because #second-column doesn't exist."):console.log("Document error: unable to determine the page layout for setting <body> id."):n.courseBody.id="one-column";const e=document.body.children;let t=!1;for(let o=0;o<e.length;o++){const n=e[o];if("content-wrapper"!==n.id&&"second-column"!==n.id&&"third-column"!==n.id&&"column-widget"!==n.id&&"HEADER"!==n.tagName&&"FOOTER"!==n.tagName&&"SCRIPT"!==n.tagName&&"loom-companion-mv3"!==n.id&&"focus-reader-switches"!==n.className&&"view-options-switches"!==n.className){t=!0;break}}t&&console.log("Document error: Additional content outside #content-wrapper, #second-column, #third-column, or footer.")}else console.log("Document error: no <body> element found.")})()},7721:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(6079),r=document.createElement("script");r.setAttribute("src","https://pima.h5p.com/js/h5p-resizer.js"),r.setAttribute("charset","UTF-8"),r.setAttribute("defer","");const l=document.querySelectorAll("iframe"),i=null===n.docHead||void 0===n.docHead?void 0:n.docHead.querySelector("script[src='https://pima.h5p.com/js/h5p-resizer.js']");l.length>0&&l.forEach((e=>{const t=e.getAttribute("src");t&&(t.includes("/d2l/common/dialogs/quickLink")||t.includes("https://pima.h5p.com/content")||t.includes("h5p"))&&!i&&n.docHead&&n.docHead.appendChild(r)}))},7121:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(7408),r=o(6079),l=document.querySelectorAll(".gallery-wrapper"),i=document.querySelectorAll(".image-box"),c=document.querySelectorAll(".image-gallery");l.length>0&&l.forEach((e=>{const t=e.parentNode;t instanceof Element&&t.classList.contains("image-gallery")||console.warn("Document error: parent of .gallery-wrapper does not have the .image-gallery class.")})),i.length>0&&i.forEach((e=>{const t=e.parentNode;t instanceof Element&&t.classList.contains("gallery-wrapper")||console.log("Document error: parent of .image-box does not have the .gallery-wrapper class.")})),l.length>0&&l.forEach((e=>{Array.from(e.children).every((e=>e instanceof HTMLElement&&e.classList.contains("image-box")))||console.warn("Document error: not all direct children of .gallery-wrapper have the .image-box class.")}));c.length>0&&((()=>{const e=document.createElement("link");e.rel="stylesheet",e.href=n.fontAwesomeURL,null===r.docHead||void 0===r.docHead||r.docHead.appendChild(e)})(),(()=>{c.forEach((e=>{e.insertAdjacentHTML("afterbegin",'<div class="modal-box invisible">\n <div class="gallery-overlay"></div>\n <figure class="modal-box--image"><i class="fa-solid fa-x close-img"></i> <img src="#" alt="image here" /><figcaption class="img-caption"></figcaption></figure>\n </div>\n <button class="hide-gallery">Hide</button>')}));const e=document.querySelector(".gallery-overlay"),t=document.querySelector(".modal-box"),o=document.querySelector(".modal-box--image img"),n=document.querySelector(".img-caption"),r=document.querySelector(".close-img"),l=document.querySelectorAll(".hide-gallery"),s=e=>{null==t||t.classList.remove("invisible"),o&&(o.src=e.imgSrc),n&&(n.innerHTML=e.imgCaption)},a=()=>{null==t||t.classList.add("invisible")};i.forEach((e=>{e.addEventListener("click",(function(){var e,t;s({imgSrc:(null===(e=this.querySelector("img"))||void 0===e?void 0:e.src)||"",imgCaption:(null===(t=this.querySelector("img"))||void 0===t?void 0:t.alt)||""})})),e.setAttribute("tabindex","0"),e.addEventListener("keydown",(function(e){var t,o;"Enter"===e.key&&s({imgSrc:(null===(t=this.querySelector("img"))||void 0===t?void 0:t.src)||"",imgCaption:(null===(o=this.querySelector("img"))||void 0===o?void 0:o.alt)||""})}))})),e&&(e.onclick=a),window.onkeydown=e=>{"Escape"===e.key&&a()},r&&(r.onclick=a),l.forEach((e=>{e.addEventListener("click",(()=>{var t;null===(t=e.nextElementSibling)||void 0===t||t.classList.toggle("invisible"),e.innerHTML="Hide"===e.innerHTML?"Show":"Hide"}))}))})())},81:()=>{document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("a[href^='#']").forEach((e=>{var t;const o=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.substring(1);o&&e.setAttribute("onclick",`jumpTo("${o}")`)}))}))},4786:()=>{const e=document.querySelectorAll(".media-container");e.length>0&&e.forEach(((e,t)=>{let o=String.fromCharCode(t+65).toLowerCase(),n=e.querySelector(".media-object"),r=e.querySelector("iframe"),l=e.querySelector(".media-info");r||console.warn("Document error: no iframe found for media container"),n||console.warn("Document error: no media object found for media container"),r&&!r.hasAttribute("aria-describedby")&&l&&(r.setAttribute("aria-describedby",`${o}`),l.id=`${[o]}`)}))},4407:()=>{const e=document.querySelectorAll(".display, .display-lg");e.length>0&&[...e].forEach((e=>{const t=e.querySelectorAll(".display table th, table.display th, .display-lg table th, table.display-lg th"),o=e.querySelector(".display table tbody, table.display tbody, .display-lg table tbody, table.display-lg tbody");if(t.length>0){const e=[...t].map((e=>{var t;return(null===(t=e.textContent)||void 0===t?void 0:t.replace(/\r?\n|\r/,""))||""}));o?[...o.rows].forEach((t=>{[...t.cells].forEach(((t,o)=>{t.setAttribute("data-th",e[o])}))})):console.warn("Document error: no table <tbody> found")}else console.warn("Document error: no table headers <th> found")}))},4393:()=>{const e=document.querySelectorAll(".slider-widget");e.length>0&&(()=>{[...e].forEach((e=>{[...e.children].every((e=>e.classList.contains("slider-item")))||console.warn("Document error: not all direct children of .slider have the .slider-item class.")}));const t=(e,t,o)=>{e.forEach(((e,t)=>{e.style.display=t===o?"block":"none"})),t.forEach(((e,t)=>{e.classList.toggle("active",t===o)}))},o=(e,o,n)=>{t(e,o,n)},n=e=>{const t=document.createElement("button");return t.className=e,t.setAttribute("tabindex","-1"),t},r=e=>{let t=0;for(let o=0;o<e.children.length;o++){const n=e.children[o];n instanceof HTMLElement&&(t+=n.offsetHeight)}if(t<300&&!e.querySelector(".media-container")){const t=document.createElement("div");for(;e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t),e.classList.add("short-content")}};document.querySelectorAll(".slider-widget").forEach(((e,l)=>{e.setAttribute("tabindex","0"),e.setAttribute("role","group");const i=document.createElement("span");i.id=`slider-label-${l+1}`,i.textContent="Interactive Slider",i.hidden=!0,e.prepend(i),e.setAttribute("aria-labelledby",`slider-label-${l+1}`);let c=0;const s=Array.from(e.querySelectorAll(".slider-item")),a=document.createElement("div");a.className="slider-dots-bar",e.appendChild(a);let d=[];s.forEach(((e,o)=>{const n=document.createElement("span");n.className="slider-dot",n.addEventListener("click",(()=>{c=o,t(s,d,c),s[c].style.display="block",n.classList.add("active"),r(s[c])})),a.appendChild(n),d.push(n),e.style.display=o!==c?"none":"block",o===c&&n.classList.add("active")}));const u=n("slider-arrow icon-chevron-left"),m=n("slider-arrow icon-chevron-right");e.appendChild(u),e.appendChild(m),u.addEventListener("click",(()=>{c=c>0?c-1:s.length-1,o(s,d,c),r(s[c])})),m.addEventListener("click",(()=>{c=c<s.length-1?c+1:0,o(s,d,c),r(s[c])})),e.addEventListener("keydown",(t=>{switch(t.key){case"ArrowLeft":c=c>0?c-1:s.length-1;break;case"ArrowRight":c=c<s.length-1?c+1:0;break;default:return}o(s,d,c),r(s[c]),t.preventDefault(),i.textContent=`Interactive Slide: slide ${c+1} of ${s.length}`,e.focus()}));let p=0,g=0;e.addEventListener("touchstart",(e=>{p=e.changedTouches[0].screenX}),!1),e.addEventListener("touchend",(e=>{g=e.changedTouches[0].screenX,h()}),!1);const h=()=>{let t=g-p;Math.abs(t)>50&&(c=t>0?c>0?c-1:s.length-1:c<s.length-1?c+1:0,o(s,d,c),r(s[c]),e.focus())}})),e.forEach(((e,t)=>{((e,t)=>{const o=e.querySelector(".icon-chevron-right"),n=e.querySelector(".icon-chevron-left"),r=e.querySelector(".slider-dots-bar");o||console.warn(`Document error: next button is missing for slider ${t+1}.`),n||console.warn(`Document error: previous button is missing for slider ${t+1}.`),r||console.warn(`Document error: dots bar is missing for slider ${t+1}.`)})(e,t)})),e.forEach(((e,t)=>{Array.from(e.querySelectorAll(".slider-item")).forEach(((e,o)=>{Array.from(e.childNodes).every((e=>e.nodeType===Node.COMMENT_NODE||e.nodeType===Node.TEXT_NODE&&!e.textContent.trim()))&&console.warn(`Document error: .slider-item at index ${o} in slider ${t+1} is empty.`)}))}))})()},1952:()=>{const e=document.querySelectorAll(".tabs, .tabs-widget");e.length>0&&(()=>{let t=0;e.forEach(((e,o)=>{var n,r,l,i,c,s,a,d,u,m,p,g;let h=e.querySelectorAll("input"),f=e.querySelectorAll("label"),b=e.querySelectorAll("div");if((h.length<2||f.length<2||b.length<2)&&console.warn("Document error: add more than just one tab for tabs widget"),h.length<3||f.length<3||b.length<3){let e=f[1].querySelector("span");e&&("Hide"!==e.textContent&&""!==e.textContent||console.warn("Document error: add more tabs, than just 1 tab and the hide tab"))}let v=f[f.length-1].querySelector("span");v&&"Hide"!==v.textContent&&console.warn("Document error: ensure last tab is a hide tab and label text is 'Hide'"),(h.length<f.length||h.length<b.length)&&console.warn("Document error: missing tab input(s) in tab widget"),(f.length<h.length||f.length<b.length)&&console.warn("Document error: missing tab label(s) in tab widget");let y=o+1;e.setAttribute("role","region"),e.setAttribute("aria-label",`tab group ${y}`);for(let e=0;e<h.length;e++){"Hide"===(null===(r=null===(n=f[e])||void 0===n?void 0:n.textContent)||void 0===r?void 0:r.trim())&&f[e].classList.add("hide-tab");let o=t+1;h&&b||(console.warn("Document error: no inputs found for tabs widget"),console.warn("Document error: no divs (tab panels) found for tabs widget")),f||console.warn("Document error: no labels found for tabs widget"),null===(l=h[e])||void 0===l||l.classList.add("tab-input"),null===(i=h[e])||void 0===i||i.setAttribute("type","radio"),null===(c=h[e])||void 0===c||c.setAttribute("id",`tab${o}`),null===(s=h[e])||void 0===s||s.setAttribute("name",`hint-group-${y}`),null===(a=h[e])||void 0===a||a.setAttribute("aria-describedby",`tabHeading${o}`),null===(d=f[e])||void 0===d||d.classList.add("tab-header"),null===(u=f[e])||void 0===u||u.setAttribute("for",`tab${o}`),b[e]&&(null===(m=b[e])||void 0===m||m.classList.add("tab-panel"),null===(p=b[e])||void 0===p||p.setAttribute("tabindex","0"),null===(g=b[e])||void 0===g||g.setAttribute("id",`tabHeading${o}`)),h[e].checked=0===e,e+1==h.length&&(f[e].classList.add("hide-tab"),b[e]&&b[e].classList.add("hide-panel")),t++}}))})()},7174:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(7408);document.querySelectorAll("link").forEach((e=>{const t=e.getAttribute("href");n.customJsThemes.forEach((e=>{t&&t.includes(`/${e}/styles.css`)&&function(e){let t=document.createElement("script");t.src=`https://cdn.jsdelivr.net/npm/@pimaonline/pimaonline-themepack/dist/js/themes/${e}.js`,document.head.appendChild(t)}(e)}))}))},6433:()=>{const e=document.querySelectorAll(".toggle-btn");e.length>0&&(()=>{if(document.querySelector(".toggle-btn"))for(let t=0;t<e.length;t++)e[t].setAttribute("tabindex","0"),e[t].addEventListener("click",(()=>{const o=e[t].nextElementSibling;o&&o.classList.toggle("show")})),e[t].addEventListener("keydown",(o=>{if("Enter"===o.key){const o=e[t].nextElementSibling;o&&o.classList.toggle("show")}}))})()},4709:()=>{const e="toolTip",t="toolTipHover",o=document.querySelectorAll(".tooltip");o.length>0&&(()=>{const n=(e,t)=>{t.style.display="block",e.classList.toggle("hidden",!1)},r=(e,t)=>{t.style.display="none",e.setAttribute("aria-expanded","false"),e.classList.toggle("hidden",!0)};o.forEach(((o,l)=>{let i=l+1;o.id=`${e}${i}`,o.role="tooltip",o.tabIndex=0,o.setAttribute("aria-expanded","false"),o.setAttribute("aria-controls",`${t}${i.toString()}`);const c=o.querySelector(".tip-hover");c?(c.id=`${t}${i}`,c.setAttribute("aria-describedby",`${e}${i.toString()}`),o.addEventListener("mouseover",(()=>n(o,c))),o.addEventListener("mouseout",(()=>r(o,c))),o.addEventListener("focus",(()=>n(o,c))),o.addEventListener("blur",(()=>r(o,c))),o.addEventListener("touchstart",(()=>n(o,c))),o.addEventListener("touchend",(()=>r(o,c)))):console.warn("Document error: tooltip is missing .tip-hover class");let s=30-i;o.style.zIndex=s.toString()})),document.querySelectorAll(".tooltip .video-container, .tooltip .video-container").forEach((e=>{const t=e.parentElement;t&&(t.style.width="450px")}))})()},6079:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.jqueryScript=t.videoWrapper=t.rolePres=t.thirdColumn=t.secondColumn=t.docHead=t.courseBody=t.contentWrapper=t.columnWidget=void 0,t.columnWidget=document.querySelector("#column-widget"),t.contentWrapper=document.querySelector("#content-wrapper"),t.courseBody=document.querySelector("body"),t.docHead=document.querySelector("head"),t.secondColumn=document.querySelector("#second-column"),t.thirdColumn=document.querySelector("#third-column"),t.rolePres=document.querySelectorAll('[role="presentation"]'),t.videoWrapper=document.querySelector("#video-wrapper"),t.jqueryScript=document.querySelector('script[src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"]')},4019:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(3258),r=o(2692),l=o(4996),i=o(9191),c=o(3966),s=document.querySelector("body");s&&["view-options","focus-text","dark-mode","large-text","narrow-width"].some((e=>s.hasAttribute(e)))&&((0,n.callViewOptionsDrawer)(),(0,r.callFocusText)(),(0,l.callDarkMode)(),(0,i.callLargeText)(),(0,c.callNarrowWidth)())},4262:()=>{const e=document.querySelectorAll(".vocab-cards"),t=document.querySelectorAll(".vocab-cards .vocab");e.length>0&&(e.forEach((e=>{e.setAttribute("role","region"),e.setAttribute("aria-label","vocabulary list")})),t.length>0&&t.forEach((e=>{e.setAttribute("role","group")})))},4257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.revertChemistryTheme=t.applyChemistryTheme=void 0,t.applyChemistryTheme=function(){var e;const t=document.querySelector(".content-body"),o=null==t?void 0:t.querySelector("h2"),n={a:".letter-a",b:".letter-b",c:".letter-c",d:".letter-d",e:".letter-e",f:".letter-f",g:".letter-g",h:".letter-h",i:".letter-i",j:".letter-j",k:".letter-k",l:".letter-l",m:".letter-m",n:".letter-n",o:".letter-o",p:".letter-p",q:".letter-q",r:".letter-r",s:".letter-s",t:".letter-t",u:".letter-u",v:".letter-v",w:".letter-w",x:".letter-x",y:".letter-y",z:".letter-z"};if(t&&o){const t=(null===(e=o.textContent)||void 0===e?void 0:e.charAt(0).toLowerCase())||"";o.setAttribute("aria-hidden","true");const r=document.createElement("span");if(r.textContent=t,r.className="first-letter",n[t]&&r.classList.add(`letter-${t}`),o.textContent){const e=o.textContent.slice(1),t=document.createElement("span");o.textContent="",t.textContent=e,o.appendChild(r),o.appendChild(t)}const l=document.createElement("h2");l.textContent=o.textContent||"",l.className="sr-only",o.insertAdjacentElement("afterend",l)}},t.revertChemistryTheme=function(){const e=document.querySelector(".content-body h2");if(e){const t=e.querySelector(".first-letter"),o=e.querySelector("span:not(.first-letter)");if(t&&o){const n=t.textContent?t.textContent.toUpperCase():"",r=o.textContent||"";e.textContent=n+r;const l=e.nextElementSibling;l&&l.classList.contains("sr-only")&&l.remove()}}}},7261:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528),i=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("#CompletionTaskForm d2l-button-subtle");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${i.viewOptions}='activity-details']`);(0,n.darkModeCheck)(e,i.activityDetailsTabCss,t,"activity-details");let o=r.parentWindow.document.querySelector("#CompletionTaskForm d2l-button-subtle .d2l-image");o&&(l.darkOn?o.src="/shared/images/svg/chevron-down-solid-white.svg":o.src="https://s.brightspace.com/lib/bsi/2024.4.218/images/tier1/chevron-down.svg")}}}},7471:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-button-icon, d2l-button-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${l.viewOptions}='button']`);(0,n.darkModeCheck)(e,l.buttonGroupStyle2Css,t,"button");const o=t.querySelector("d2l-icon");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector(`style[${l.viewOptions}='button']`);(0,n.darkModeCheck)(t,l.buttonGroupStyle2Css,e,"button")}}}}))}},8338:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("#d2l_btn_bar");if(e){const t=e.querySelectorAll("button");if(t.length>0){let e=`\n\t#d2l_btn_bar button.d2l-button:hover {\n\t\tbackground-color: ${r.colors.colorDp1};\n\t}`;if(t.forEach((t=>{if(t.textContent){if("Edit HTML"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/pencil-solid-white.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if("Download"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/cloud-arrow-down-solid.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if("Print"===t.textContent.trim()){let o=t.id;o&&(e+=`\n #${o} span.d2l-icon-custom::before {\n content: url("/shared/images/svg/print-solid.svg");\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 18px;\n\t\t\t\tdisplay: inline-block;\n }\n `)}if(t.classList.contains("ally-d2l-button")){let o=t.querySelector("img"),n=document.createElement("span");if(o)if(r.darkOn)o.style.width="0px",o.style.height="0px",n&&(n.classList.add("d2l-icon-custom"),t.prepend(n));else{o.style.width="22px",o.style.height="13px";let e=t.querySelector("span.d2l-icon-custom");e&&e.remove()}e+='\n button.ally-d2l-button span.d2l-icon-custom::before {\n content: url("/shared/images/svg/file-arrow-down-solid.svg");\n\t\t\t\t width: 14px;\n\t\t\t\t height: 18px;\n\t\t\t\t display: inline-block;\n }'}}})),r.d2lBodyElement){const t=r.d2lBodyElement.querySelector(`style[${r.viewOptions}='bottom-buttons']`);(0,n.darkModeCheck)(t,e,r.d2lBodyElement,"bottom-buttons")}}}}},8039:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{n.parentWindow.document.querySelectorAll("d2l-breadcrumbs > d2l-breadcrumb").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${n.viewOptions}='breadcrumb']`);(0,r.darkModeCheck)(e,n.breadcrumbsCss,t,"breadcrumb");const o=t.querySelector("d2l-icon");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector(`style[${n.viewOptions}='breadcrumb-icon']`);(0,r.darkModeCheck)(t,n.whiteIconCss,e,"breadcrumb-icon")}}}}))}},3167:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{const e=()=>{(()=>{const e=n.parentWindow.document.querySelectorAll(".d2l-draghandle-content img.d2l-image");n.darkOn?e.forEach((e=>{e.src="/shared/images/svg/check-solid-white.svg"})):e.forEach((e=>{e.src="https://s.brightspace.com/lib/bsi/2024.4.218/images/tier1/check.svg"}))})();const t=n.parentWindow.document.querySelector("#ContentNavigator");if(t){const o=t.querySelector("d2l-button-icon[icon='tier1:chevron-left']");if(o){const l=t.querySelector("d2l-button-icon[icon='tier1:chevron-right']");if(l){const t=o.shadowRoot;if(t){const o=t.querySelector("d2l-icon");if(o){const i=o.shadowRoot;if(i){const o=l.shadowRoot;if(o){const l=o.querySelector("d2l-icon");if(l){const e=l.shadowRoot;if(e){const l=t.querySelector(`style[${n.viewOptions}='chevron']`),c=o.querySelector(`style[${n.viewOptions}='chevron']`),s=i.querySelector(`style[${n.viewOptions}='chevron']`),a=e.querySelector(`style[${n.viewOptions}='chevron']`);(0,r.darkModeCheck)(l,n.buttonGroupCss,t,"chevron"),(0,r.darkModeCheck)(c,n.buttonGroupCss,o,"chevron"),(0,r.darkModeCheck)(s,n.buttonGroupCss,i,"chevron"),(0,r.darkModeCheck)(a,n.buttonGroupCss,e,"chevron")}}const c=t.querySelector("button[title='Previous module']"),s=o.querySelector("button[title='Next module']");c&&(c.addEventListener("click",(()=>{setTimeout(e,500)})),c.addEventListener("keydown",(t=>{"Enter"===t.key&&setTimeout(e,500)}))),s&&(s.addEventListener("click",(()=>{setTimeout(e,500)})),s.addEventListener("keydown",(t=>{"Enter"===t.key&&setTimeout(e,500)})))}}}}}}}},t=n.parentWindow.document.querySelector(".d2l-page-collapsepane-shadow");t&&(t.addEventListener("click",(()=>{setTimeout(e,500)})),t.addEventListener("keydown",(t=>{"Enter"===t.key&&e()})))}},1179:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier1:chevron-left']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron-back']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron-back")}}}}const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:classes']"),o=()=>{r.parentWindow.document.querySelectorAll(".d2l-datalist-item .d2l-course-selector-item span d2l-button-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='pin']`),o=t.querySelector("d2l-icon");if(o){const l=o.shadowRoot;if(l){const o=l.querySelector(`style[${r.viewOptions}='pin']`);(0,n.darkModeCheck)(o,r.whiteIconCss,l,"pin"),(0,n.darkModeCheck)(e,r.pinBtnStylesCss,t,"pin")}}}}))};t&&(t.addEventListener("click",(()=>{setTimeout(o,1e3)})),t.addEventListener("keydown",(e=>{"Enter"===e.key&&setTimeout(o,1e3)})));const l=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:classes']");if(l){const e=l.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"waffle-icon"),l.addEventListener("click",(()=>{setTimeout(o,1e3)})),l.addEventListener("keydown",(e=>{"Enter"===e.key&&setTimeout(o,1e3)}))}}}}}},4387:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528);t.default=()=>{const e=document.querySelector("head"),t=document.querySelector("body");if(e&&t){const o=e.querySelector("link[href='darkmode.css']");if(n.darkOn){if(t.setAttribute("dark-mode-on",""),!o){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href","darkmode.css"),e.append(t)}}else t.hasAttribute("dark-mode-on")&&t.removeAttribute("dark-mode-on"),o&&e.removeChild(o)}}},7338:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-dropdown-context-menu");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-button-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const o=e.shadowRoot;if(o){const e=o.querySelector(`style[${r.viewOptions}='chevron']`),l=o.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"chevron"),(0,n.darkModeCheck)(l,r.buttonGroupCss,o,"chevron")}}}}}}const t=r.parentWindow.document.querySelector("d2l-dropdown-context-menu"),o=()=>{const e=r.parentWindow.document.querySelector(".d2l-dropdown-menu-contextmenu");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown-menu']`);(0,n.darkModeCheck)(e,r.dropdownDarkBackgroundCss,t,"dropdown-menu")}}};t&&t.addEventListener("click",(()=>{setTimeout(o,250)}))}},2209:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:menu-hamburger']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon[icon='tier3:menu-hamburger']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='hamburger']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"hamburger")}}}}}},7383:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='svg']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"svg")}}))}},630:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(5528),r=o(8256);t.default=()=>{n.parentWindow.document.querySelectorAll("d2l-navigation-link-image").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(".d2l-navigation-link-image-container");if(e){const o=t.querySelectorAll(`style[${n.viewOptions}='logo-img']`);if(n.darkOn){let l=e.querySelector("img");l&&l.remove(),0===o.length&&(0,r.injectCSS)(n.logoCss,t,"logo-img");const i=document.createElement("img");i.classList.add("logo-img-white"),i.src="/shared/images/svg/pima-logo-white.svg",i.alt="My Home",e.append(i)}else{let t=e.querySelector("img");t&&t.remove(),o.length>1&&o[0].remove();const n=document.createElement("img");n.classList.add("logo-img"),n.src="/d2l/lp/navbars/6606/theme/viewimage/2389656/view?v=20.24.4.19097",e.append(n)}}}}))}},2:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-menu-item-link");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='hamburger']`);(0,n.darkModeCheck)(e,r.buttonGroupCss,t,"hamburger")}}r.parentWindow.document.querySelectorAll(".d2l-navigation-s-mobile-menu-nav > d2l-menu > d2l-menu-item").forEach((e=>{(e=>{const t=e.shadowRoot;if(t){const o=t.querySelector("d2l-icon");if(o){const t=o.shadowRoot;if(t){const o=t.querySelector(`style[${r.viewOptions}='chevron']`),l=e.querySelector("d2l-menu");if(l){const e=l.shadowRoot;if(e){const l=e.querySelector("d2l-menu-item-return");if(l){const i=t.querySelector(`style[${r.viewOptions}='return-item-one']`),c=l.shadowRoot;if(c){const l=c.querySelector("d2l-icon");if(l){const c=l.shadowRoot;if(c){const l=c.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(o,r.whiteIconCss,t,"chevron"),(0,n.darkModeCheck)(i,r.returnMenuCss,e,"return-item-one"),(0,n.darkModeCheck)(l,r.whiteIconCss,c,"chevron")}}}}}}}}}})(e),e.querySelectorAll("d2l-menu>d2l-menu-item").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelectorAll("d2l-icon");e.length>0&&e.forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron")}}))}const o=e.querySelector("d2l-menu");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector("d2l-menu-item-return");if(t){const o=e.querySelector(`style[${r.viewOptions}='return-item-two']`),l=t.shadowRoot;if(l){const t=l.querySelector("d2l-icon");if(t){const l=t.shadowRoot;if(l){const t=l.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(t,r.whiteIconCss,l,"chevron"),(0,n.darkModeCheck)(o,r.returnMenuCss,e,"return-item-two")}}}}}}}))}))}},9085:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528),l=o(5528);t.default=()=>{r.parentWindow.document.querySelectorAll("d2l-menu > d2l-menu-item-link, d2l-menu > d2l-menu-item").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown']`);(0,n.darkModeCheck)(e,l.dropdownMenuCss,t,"dropdown")}})),r.parentWindow.document.querySelectorAll("d2l-dropdown-menu, d2l-dropdown-content").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='dropdown']`);(0,n.darkModeCheck)(e,l.dropdownBorderCss,t,"dropdown");const o=t.querySelector("d2l-icon[icon='tier1:chevron-right']"),i=t.querySelector(`style[${r.viewOptions}='chevron']`);o&&(0,n.darkModeCheck)(i,l.dropdownMenuCss,t,"chevron")}}))}},9764:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=".d2l-branding-navigation-dark-foreground-color .d2l-navigation-s-group",t=".vui-list>li.vui-selected, .vui-list>li.vui-selected",o="#ContentNavigator .vui-list > .vui-selected",l=".vui-tabmenu > .vui-tabmenu-item-select > a",i="#CompletionTaskForm d2l-button-subtle",c="div.d2l-filterinline-group-filter > div > a",s=`html {background: ${r.colors.colorDark};}`,a=`#d2l_body, .d2l-body {background: ${r.colors.colorDark};}`,d=`.d2l-navigation-s, .d2l-branding-navigation-background-color, d2l-navigation-main-header {background: ${r.colors.colorDp1};}`,u=`.d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link, .d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link:link, .d2l-branding-navigation-dark-foreground-color a.d2l-navigation-s-link:visited, .d2l-branding-navigation-dark-foreground-color div.d2l-navigation-s-item>span, ${e}, ${e} {color: ${r.colors.textColor}}`,m=`d2l-breadcrumbs::after {background: ${r.colors.colorDark};}`,p=`${t} {background: ${r.colors.colorDp1}}`,g=`.d2l-courseselector-wrapper, .d2l-page-main-padding > .d2l-datalist-style1, .d2l-page-main-padding > .d2l-placeholder > .d2l-datalist-style1, .d2l-page-main-padding > form > .d2l-datalist-style1, .d2l-datalist-outdent, ${t} {background: ${r.colors.colorDark}}`,h=`.vui-list>.d2l-list-item-action-hover {background: ${r.colors.colorDp1} !important}`,f=`.vui-list>li.d2l-list-item-action-hover.vui-selected {background: ${r.colors.colorDp2} !important}`,b=`.d2l-admin-tools, .d2l-admin-tools .d2l-heading {background: ${r.colors.colorDark}; color: ${r.colors.textColor}}`,v=`.d2l-page-collapsepane-content-inner, ${o}, .d2l-page-collapsepane-handle, .d2l-page-collapsepane.d2l-page-collapsepane-opening .d2l-page-collapsepane-handle, .d2l-page-collapsepane-content {background: ${r.colors.colorDark}}`,y=`${o} {background: ${r.colors.colorDp1}; border-top-color: ${r.colors.textColor}}`,w=`.d2l-link.d2l-link-flat, .d2l-linkheading-link.d2l-link-flat {color: ${r.colors.colorLinks}}`,k=`.d2l-page-collapsepane.d2l-page-collapsepane-opening .d2l-page-collapsepane-handle .d2l-page-collapsepane-handle-link, .d2l-page-collapsepane-handle-link {border-right-color: ${r.colors.textColor}; border-left-color: ${r.colors.textColor}; border-color: ${r.colors.borderColor}}`,S=`.d2l-iterator-button, .d2l-iterator-button.d2l-iterator-button-disabled:hover, .d2l-iterator-button.d2l-iterator-button-disabled:focus {background: transparent; border-color: ${r.colors.colorDp1};}`,C=`.d2l-link, .d2l-link:visited, .d2l-link:active, .d2l-link:link {color: ${r.colors.linkColor}}`,q=`d2l-dropdown-content .d2l-list {background: ${r.colors.colorDark};}`,$=`.d2l-editable:hover {background: ${r.colors.colorDp4}}`,E=`.d2l-button, .d2l-button[active][disabled], .d2l-button[disabled]:focus, .d2l-button[disabled]:hover {background: ${r.colors.colorDark}; border: 1px solid ${r.colors.textColor}; color: ${r.colors.textColor}}`,x=`${l}, .vui-tabmenu > .vui-tabmenu-item:last-child > a, ${l}, .vui-tabmenu > .vui-tabmenu-item > a {background: ${r.colors.colorDp1}; color: ${r.colors.textColor}}`,L=`.d2l-typography {color: ${r.colors.textColor}}`,A=`.d2l-navigation-s-personal-menu-text, .d2l-textblock-secondary {color: ${r.colors.textColor}}`,D=`.d2l-navigation-s-linkarea-no-color .d2l-navigation-s-group:hover, .d2l-navigation-s-linkarea-no-color a.d2l-navigation-s-link:hover {color: ${r.colors.linkColor};}`,M=`\n button:not([disabled]):hover, button:not([disabled]):focus, button[active], *:focus > .d2l-navigation-highlight-border, *:hover > .d2l-navigation-highlight-border, *[active] > .d2l-navigation-highlight-border {\n --d2l-icon-fill-color: ${r.colors.colorLinks} !important;\n --d2l-color-celestine: ${r.colors.colorLinks} !important;\n }\n `,O=`#AdditionalInfoPlaceholder .vui-tabmenu .vui-tabmenu-item a:hover {color: ${r.colors.borderColor}}`,T=`${i} .d2l-container-icon .d2l-textblock {color: ${r.colors.textColor}}\n\t${i} .d2l-inline .d2l-container-icon {background-image: url("/shared/images/svg/check-solid-white.svg")}\n`,_=`${c} {color: ${r.colors.textColor}}\n\t${c}:hover {color: ${r.colors.borderColor}}\n\t#ResultDetails #Filter .d2l-filterinline-item-selected {color: ${r.colors.colorLinks}}\n\t`,N=`#EvaluationSummaryTabId button:hover {background-color: ${r.colors.colorDp1}}`,j=`button:focus:not([disabled]) {background-color: ${r.colors.colorDp1}}`,P=`.d2l-page-collapsepane .d2l-page-collapsepane-handle-link {border-color: transparent;border-left: 5px solid ${r.colors.textColor};}`,H=`.d2l-page-collapsepane.d2l-page-collapsepane-open .d2l-page-collapsepane-handle-link {border-color: transparent !important; border-right: 5px solid ${r.colors.textColor} !important;}`,R=`.d2l-branding-navigation-dark-foreground-color .d2l-navigation-s-mobile-menu-title-bp {color: ${r.colors.textColor}}`,B=`.d2l-navigation-s-mobile-menu-content {background-color: ${r.colors.colorDark}}`,W=`.d2l-navigation-s-mobile-menu-nav d2l-menu-item-link, .d2l-navigation-s-mobile-menu-nav d2l-menu-item, .d2l-navigation-s-mobile-menu-nav d2l-menu-item {background-color: ${r.colors.colorDark}}`,I=`\n\t\t${a}\n\t\t${d}\n\t\t${v}\n\t\t${y}\n\t\t${S}\n\t\t${g}\n\t\t${h}\n\t\t${p}\n\t\t${f}\n\t\t${b}\n\t\t${u}\n\t\t${w}\n\t\t${C}\n\t\t${k}\n\t\t${q}\n\t\t${$}\n\t\t${E}\n\t\t${x}\n\t\t${L}\n\t\t${A}\n\t\t${M}\n\t\t${D}\n\t ${m}\n\t ${O}\n\t ${T}\n\t ${_}\n\t ${N}\n\t ${j}\n\t ${P}\n\t ${H}\n\t .d2l-draghandle-handle-icon {background-image: url("/shared/images/svg/grip-vertical-solid-white.svg")}\n\t .d2l-draghandle-content .d2l-container-icon {background-image: url("/shared/images/svg/globe-solid-white.svg")}\n\t ${R}\n\t ${B}\n\t .d2l-navigation-s-mobile-menu-nav d2l-menu-item-link:hover, .d2l-navigation-s-mobile-menu-nav d2l-menu-item:hover {background-color: ${r.colors.colorDp1}}\n\t ${W}\n\t #ContentNavigator .d2l-link.d2l-link-flat:focus, #ContentNavigator .d2l-link.d2l-link-flat:hover, .d2l-linkheading-link.d2l-link-flat:focus, #ContentNavigator .d2l-linkheading-link.d2l-link-flat:hover {color: ${r.colors.linkColor}}\n\t .d2l-typography .d2l-body-small {color: ${r.colors.textColor}}\n\t \n\n d2l-menu-item-link.d2l-navigation-s-menu-item-root, d2l-menu-item.d2l-navigation-s-menu-item-root {\n background: ${r.colors.colorDark};\n }\n\n .d2l-menu-item-text {\n color: ${r.colors.textColor};\n }\n\n\t\td2l-dropdown d2l-icon[icon='tier1:chevron-down'] {\n\t\t\tfill: ${r.colors.textColor};\n\t\t}\n\t .d2l-courseselector-wrapper #courseSelectorId .d2l-datalist-item .d2l-course-selector-item a {color: ${r.colors.textColor}}\n\t d2l-dropdown-content d2l-datalist vui-list d2l-datalist-item {background-color: ${r.colors.colorDp1} !important}\n\t d2l-dropdown-content .d2l-data-list-item-action-hover {background-color: ${r.colors.colorDp2} !important}\n\t .d2l-navigation-s-mobile-menu-content d2l-navigation-band {background: transparent}\n\t d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell'] d2l-dropdown-content button.d2l-loadmore-pager {\n\tbackground-color: ${r.colors.colorPrimary};\n\tcolor: ${r.colors.colorBlack};\n\tborder: none;\n\t}\n\t d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell'] d2l-dropdown-content button.d2l-loadmore-pager:hover {\n\tbackground-color: ${r.colors.colorPrimaryHover};\n\tcolor: ${r.colors.colorBlack};\n\tborder: none;\n\t}\n\t .d2l-messagebucket-button-container + #AB_DL_PH_Messages .d2l-datalist-container {background: ${r.colors.colorDark}}\n\t d2l-menu.d2l-menu-mvc.d2l-contextmenu d2l-menu-item {color: ${r.colors.textColor};\n\tbackground-color: ${r.colors.colorDark};\n\t}\n\t d2l-menu.d2l-menu-mvc.d2l-contextmenu d2l-menu-item:hover {\n\tcolor: ${r.colors.textColor};\n\tbackground: ${r.colors.colorDp1};\n\t}\n\t .d2l-navigation-s-more d2l-menu > d2l-menu-item {\n\t\tbackground: ${r.colors.colorDark}\n\t}\n\t .d2l-navigation-s-more d2l-menu > d2l-menu-item:hover {\n\t\tbackground: ${r.colors.colorDp1}\n\t}\n\t .d2l-editable.d2l-editable-autosize.d2l-editable-focus {background: ${r.colors.colorDark}}\n\t .d2l-navigation-s-linkarea-no-color .d2l-navigation-s-group:focus {color: ${r.colors.textColor}}\n\t d2l-dropdown-more d2l-menu d2l-menu-item, d2l-dropdown-more d2l-menu d2l-menu-item-link {\n\tbackground-color: ${r.colors.colorDark};\n\t}\n\t d2l-dropdown-more d2l-menu d2l-menu-item:hover, d2l-dropdown-more d2l-menu d2l-menu-item-link:hover {\n\tbackground-color: ${r.colors.colorDp1};\n\t}\n\t #CompletionTaskForm .d2l-container-icon {background-image: url('/shared/images/svg/check-solid-white.svg')}\n\t\tul.d2l-personal-tools-list li {color: ${r.colors.textColor}}\n\t\tul.d2l-personal-tools-list li a.d2l-link {color: ${r.colors.textColor}}\n\tul.d2l-personal-tools-list li a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\t#ContentNavigator a.d2l-link {color: ${r.colors.textColor}}\n\t\t#ContentNavigator a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\td2l-menu-item.d2l-navigation-s-menu-item-root:hover, d2l-menu-item-link.d2l-navigation-s-menu-item-root:hover {background: ${r.colors.colorDp1}}\n\t\t#AdminToolsPlaceholderId a.d2l-link {color: ${r.colors.textColor}}\n\t\t#AdminToolsPlaceholderId a.d2l-link:hover {color: ${r.colors.linkColor}}\n\t\t.d2l-iterator-button {background: ${r.colors.colorDp1}}\n\t\t${s}\n\t`;if(r.d2lBodyElement){const e=r.d2lBodyElement.querySelector(`style[${r.viewOptions}='parent']`);(0,n.darkModeCheck)(e,I,r.d2lBodyElement,"parent")}}},7152:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelectorAll(".d2l-navigation-s-item.d2l-navigation-s-more d2l-menu-item");e.length>0&&e.forEach((e=>{const t=e.querySelector("d2l-menu");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='return-item']`);(0,n.darkModeCheck)(t,r.returnMenuCss,e,"return-item");const o=e.querySelector("d2l-menu-item-return");if(o){const e=o.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"chevron")}}}}}}const o=e.shadowRoot;if(o){const e=o.querySelector("d2l-icon");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='chevron']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"chevron")}}}}))}},9301:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='band']`);(0,n.darkModeCheck)(e,r.topNavigationBandCss,t,"band")}}}},9283:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=()=>{const e=r.parentWindow.document.querySelectorAll("d2l-navigation-dropdown-button-icon");e.length>0&&e.forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const o=e.shadowRoot;if(o){const e=t.querySelector(`style[${r.viewOptions}='waffle']`),l=o.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(l,r.topNavIconCss,t,"waffle"),(0,n.darkModeCheck)(e,r.whiteIconCss,o,"waffle-icon")}}}}));const t=r.parentWindow.document.querySelector("d2l-navigation-button-icon[icon='tier3:classes']");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector("d2l-icon");if(t){const e=t.shadowRoot;if(e){const t=e.querySelector(`style[${r.viewOptions}='waffle-icon']`);(0,n.darkModeCheck)(t,r.whiteIconCss,e,"waffle-icon")}}}}};e();const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell']");t&&t.addEventListener("click",e);const o=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:discussions']");o&&o.addEventListener("click",e);const l=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:email']");l&&l.addEventListener("click",e)}},513:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(8256),r=o(5528);t.default=()=>{const e=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:notification-bell']");if(e){const t=()=>{e.querySelectorAll("d2l-icon").forEach((e=>{const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='icon-white']`);(0,n.darkModeCheck)(e,r.whiteIconCss,t,"icon-white")}}))};e.addEventListener("click",(()=>{setTimeout(t,750)}))}const t=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:discussions']");if(t){const e=()=>{const e=t.querySelector("d2l-empty-state-simple");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='icon-white']`);(0,n.darkModeCheck)(e,r.messageAreaBkgCss,t,"icon-white")}}};t.addEventListener("click",(()=>{setTimeout(e,500)}))}const o=r.parentWindow.document.querySelector("d2l-navigation-dropdown-button-icon[icon='tier3:email']");if(o){const e=()=>{const e=o.querySelector("d2l-button-subtle[icon='tier1:email']");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector("d2l-icon");if(e){const l=e.shadowRoot;if(l){const e=l.querySelector(`style[${r.viewOptions}='button-styles']`),i=l.querySelector(`style[${r.viewOptions}='button-styles']`);(0,n.darkModeCheck)(i,r.messageButtonCss,t,"button-styles"),(0,n.darkModeCheck)(e,r.messageButtonCss,l,"button-styles");const c=o.querySelector("#AB_DL_PH_Messages>div");if(c){const e=c.querySelector("d2l-empty-state-simple");if(e){const t=e.shadowRoot;if(t){const e=t.querySelector(`style[${r.viewOptions}='empty-state-container']`);(0,n.darkModeCheck)(e,r.messageAreaBkgCss,t,"empty-state-container")}}}}}}}};o.addEventListener("click",(()=>{setTimeout(e,500)}))}}},8495:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(o(7261)),l=n(o(7471)),i=n(o(8338)),c=n(o(8039)),s=n(o(3167)),a=n(o(1179)),d=n(o(4387)),u=n(o(7338)),m=n(o(2209)),p=n(o(7383)),g=n(o(630)),h=n(o(2)),f=n(o(9085)),b=n(o(9764)),v=n(o(7152)),y=n(o(9301)),w=n(o(9283)),k=n(o(513)),S=()=>{(0,r.default)(),(0,l.default)(),(0,i.default)(),(0,c.default)(),(0,s.default)(),(0,a.default)(),(0,d.default)(),(0,u.default)(),(0,m.default)(),(0,p.default)(),(0,g.default)(),(0,h.default)(),(0,f.default)(),(0,b.default)(),(0,v.default)(),(0,y.default)(),(0,w.default)(),(0,k.default)()};document.querySelector("body[dark-mode]")&&S(),t.default=S},1424:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),o(5528),o(8256),o(8495)},8256:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.darkModeCheck=t.injectCSS=void 0;const n=o(5528);function r(e,t,o){const r=document.createElement("style");r.setAttribute(`${n.viewOptions}`,o),r.innerHTML=e,t.prepend(r)}t.injectCSS=r,t.darkModeCheck=function(e,t,o,l){n.darkOn?null==e&&r(t,o,l):null!=e&&e.remove()}},5528:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.darkBackgroundAlertCss=t.topNavIconCss=t.topNavigationBandCss=t.dropdownDarkBackgroundCss=t.pinBtnStylesCss=t.breadcrumbsCss=t.buttonGroupStyle2Css=t.activityDetailsTabCss=t.dropdownBorderCss=t.dropdownMenuCss=t.messageButtonCss=t.messageAreaBkgCss=t.returnMenuCss=t.logoCss=t.buttonGroupCss=t.whiteIconCss=t.d2lBodyElement=t.parentWindow=t.toggleDarkOn=t.darkOn=t.colors=t.viewOptions=void 0,t.viewOptions="pccviewoptions",t.colors={colorPrimary:"rgba(149, 209, 255, 1)",colorPrimaryHover:"rgba(126, 199, 255, 1)",colorDark:"rgba(15, 23, 42, 1)",colorDp1:"rgba(255, 255, 255, .05)",colorDp2:"rgba(255, 255, 255, .07)",colorDp3:"rgba(255, 255, 255, .08)",colorDp4:"rgba(255, 255, 255, .09)",colorLinks:"rgba(56, 189, 248, 1)",colorLinksHover:"rgba(136, 179, 202, 1)",colorLinksVisited:"rgba(185, 183, 237, 1)",colorBlack:"rgba(13, 13, 13, 1)",linkColor:"rgba(56, 189, 248, 1)",textColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 255, 255, .5)",pccPrimary:"rgba(4, 85, 148, 1)"},t.darkOn=!1,t.toggleDarkOn=()=>{t.darkOn=!t.darkOn},t.parentWindow=window.parent,t.d2lBodyElement=t.parentWindow.document.querySelector(".d2l-body"),t.whiteIconCss=`svg {color: ${t.colors.textColor};fill: ${t.colors.textColor};}`,t.buttonGroupCss="\n\tbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\tsvg {\n\t\tcolor: white !important;\n\t\tfill: white !important;\n\t}",t.logoCss="\n\t.logo-img {\n\t\twidth: 40px;\n\t\theight: 173px;\n\t}\n\t.logo-img-white {\n\t\twidth: 60px;\n\t\tmax-height: 60px !important;\n\t\theight: 173px;\n\t\tmargin-left: -10px;\n\t\tmargin-right: -5px;\n\t}",t.returnMenuCss=`\n\td2l-menu-item-return {background-color: ${t.colors.colorDp2}}\n\td2l-menu-item-return:hover {background-color: ${t.colors.colorDp3}}\n\td2l-menu-item-return {color: ${t.colors.textColor}}\n\t`,t.messageAreaBkgCss=`\n\t.empty-state-container {background: ${t.colors.colorDark}}\n\t.empty-state-container p {color: ${t.colors.textColor}}\n\t}`,t.messageButtonCss=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n color: ${t.colors.colorBlack} !important;\n background-color: ${t.colors.colorPrimaryHover} !important;\n}\nbutton {\n color: ${t.colors.colorBlack} !important;\n background-color: ${t.colors.colorPrimary} !important;\n} \nbutton .d2l-button-subtle-content {\n color: ${t.colors.colorBlack} !important;\n background-color: transparent !important;\n}\nbutton .d2l-button-subtle-content:hover {\n color: ${t.colors.colorBlack} !important;\n background-color: transparent !important;\n}\nsvg {\n color: ${t.colors.colorBlack} !important;\n fill: ${t.colors.colorBlack} !important;\n}`;const o="d2l-menu-item-link.d2l-navigation-s-menu-item-root",n="d2l-menu-item.d2l-navigation-s-menu-item-root";t.dropdownMenuCss=`\n ${o}, ${n} {\n background: ${t.colors.colorDark} !important;\n }\n .d2l-menu-item-text {\n color: ${t.colors.textColor} !important;\n }\n ${o}:hover, ${n}:hover {\n background: rgba(255, 255, 255, .05) !important;\n } \n `,t.dropdownBorderCss=`\n .d2l-dropdown-content-top, .d2l-dropdown-content-bottom, .d2l-dropdown-content-pointer > div {\n background: ${t.colors.colorDark} !important;\n }\n\n\t.d2l-dropdown-content-width {\n\t background-color: ${t.colors.colorDark} !important;\n\t}`,t.activityDetailsTabCss=`\nbutton:hover, button:focus, :host([active]) button {\n background-color: ${t.colors.colorDp2} !important;\n}`,t.buttonGroupStyle2Css=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n background-color: ${t.colors.colorDp1} !important;\n}\nsvg {\n color: white !important;\n fill: white !important;\n}`,t.breadcrumbsCss=`\n.d2l-link, .d2l-link:visited, .d2l-link:active, .d2l-link:link { \n color: ${t.colors.textColor} !important; \n}\n .d2l-link:hover { \n color: ${t.colors.linkColor} !important; \n}`,t.pinBtnStylesCss=`\nbutton:hover:not([disabled]), button:focus:not([disabled]), :host([active]) button:not([disabled]) {\n background-color: ${t.colors.linkColor} !important\n}`,t.dropdownDarkBackgroundCss=`\n#d2l-dropdown-wrapper {\n background-color: ${t.colors.colorDark}\n}`,t.topNavigationBandCss="\n\td2l-navigation-band {\n\t background: transparent;\n\t}",t.topNavIconCss=`button:not([disabled]):hover, button:not([disabled]):focus, button[active], *:focus > .d2l-navigation-highlight-border, *:hover > .d2l-navigation-highlight-border, *[active] > .d2l-navigation-highlight-border {\n --d2l-icon-fill-color: ${t.colors.colorLinks} !important;\n --d2l-color-celestine: ${t.colors.colorLinks} !important;\n }`,t.darkBackgroundAlertCss=`\nd2l-alert {\n background-color: ${t.colors.colorDark}\n}`,t.default=t.colors},4996:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.callDarkMode=void 0;const r=o(5528),l=n(o(8495)),i=o(4257);let c=!1;t.callDarkMode=function(){const e=document.querySelector("#dark-mode-btn");e?(e.addEventListener("click",(t=>{t.stopPropagation(),c=!c,(0,r.toggleDarkOn)(),e.innerHTML=c?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',(0,l.default)(),c?(0,i.revertChemistryTheme)():(0,i.applyChemistryTheme)()})),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&13!==t.keyCode||(t.preventDefault(),c=!c,(0,r.toggleDarkOn)(),e.innerHTML=c?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>',(0,l.default)(),c?(0,i.revertChemistryTheme)():(0,i.applyChemistryTheme)())}))):console.warn("Document error: dark mode switch element is missing - event listeners not added")}},3258:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callViewOptionsDrawer=void 0;const n=o(7408);t.callViewOptionsDrawer=function(){let e=!1,t=!1;const o=document.querySelector("body"),r=document.querySelector("head");window.parent.document.querySelector(".d2l-iframe")&&(t=!t,null==o||o.classList.add("overflow-hidden"));const l=(e,t)=>{const o=document.createElement(e);Object.keys(t).forEach((e=>o.setAttribute(e,t[e]))),null==r||r.append(o)};l("link",{rel:"stylesheet",href:n.fontAwesomeURL}),l("script",{src:n.intersectionObserverURL});const i=document.createElement("div");i.className="view-options-switches",null==o||o.append(i),i.innerHTML=`\n <button aria-label="view options drawer" aria-expanded="false" role="button" tabindex="1">\n <img src="/shared/images/svg/sliders-icon.svg" alt="">\n </button>\n <div class="control-panel">\n <h2>View Options</h2>\n ${n.featureData.map((e=>function(e,t,o,n){return`\n <div class="${o}-wrapper">\n <img src="${n}" alt="">\n <p class="feature">${e}</p>\n <p class="caption">${t}</p>\n <button id="${o}-btn" class="vo-toggle-btns" tabindex="-1" aria-label="${e.toLowerCase()} toggle button" aria-checked="false" role="button">\n <i class="fas fa-toggle-off"></i>\n </button>\n </div>\n `}(e.feature,e.caption,e.id,e.imgSrc))).join("")}\n </div>\n `;const c={"focus-text":document.querySelector(".focus-text-wrapper"),"dark-mode":document.querySelector(".dark-mode-wrapper"),"large-text":document.querySelector(".large-text-wrapper"),"narrow-width":document.querySelector(".narrow-width-wrapper"),"view-options":document.querySelectorAll(".focus-text-wrapper, .dark-mode-wrapper, .large-text-wrapper, .narrow-width-wrapper")};for(const e in c)if(null==o?void 0:o.hasAttribute(e)){const t=c[e];"view-options"===e?t.forEach((e=>{e instanceof HTMLElement&&(e.style.display="grid")})):t instanceof HTMLElement&&(t.style.display="grid")}((null==o?void 0:o.hasAttribute("view-options"))&&document.querySelector("body#two-column")||window.innerWidth<768)&&c["narrow-width"]&&(c["narrow-width"].style.display="none"),((null==o?void 0:o.hasAttribute("narrow-width"))&&document.querySelector("body#two-column")||window.innerWidth<768)&&c["narrow-width"]&&(c["narrow-width"].style.display="none",console.warn("Document error: narrow-width only available for three-column or one-column layouts"));const s=document.querySelector(".view-options-switches > button"),a=["#focus-text-btn","#dark-mode-btn","#large-text-btn","#narrow-width-btn"].map((e=>document.querySelector(e)));function d(t){t.stopPropagation(),e=!e,i.classList.toggle("expand-panel"),a.forEach((t=>null==t?void 0:t.setAttribute("tabindex",e?"1":"-1")))}null==s||s.addEventListener("click",d),null==s||s.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),d(e))})),document.addEventListener("click",(t=>{!e||i.contains(t.target)||(null==s?void 0:s.contains(t.target))||d(t)}))}},6289:(e,t)=>{function o(e,t){e.nodeType===Node.TEXT_NODE&&""!==e.textContent.trim()?(e.textContent.split(" ").forEach((o=>{if(""!==o){const n=document.createElement("span");n.textContent=o+" ",t.observe(n),e.parentNode?e.parentNode.insertBefore(n,e):console.warn("Document error: parent node not found for text node")}})),e.parentNode?e.parentNode.removeChild(e):console.warn("Document error: parent node not found to remove text node")):e.nodeType===Node.ELEMENT_NODE&&Array.from(e.childNodes).forEach((e=>{o(e,t)}))}function n(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("SPAN"!==t.tagName||"focus-text"!==t.className&&""!==t.className&&""!==t.textContent.trim()&&0!==t.attributes.length)Array.from(e.childNodes).forEach((e=>{n(e)}));else{const e=document.createTextNode(t.textContent);t.parentNode?(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t)):console.warn("Document error: parent node not found for span element")}}}Object.defineProperty(t,"__esModule",{value:!0}),t.focusText=t.removeSpans=t.traverseAndWrapTextInSpans=t.toggleFocusText=t.options=void 0,t.options={root:null,rootMargin:"-48.9% 0px",threshold:0},t.toggleFocusText=function(e,t,r){if(e&&t){const e=t.querySelectorAll("#content-wrapper .content-body :is(p, li, dd, dt, blockquote)");0===e.length&&console.warn("Document error: no elements found to wrap for focus text"),e.forEach((e=>{o(e,r)}))}else t?n(t):console.warn("Document error: content wrapper element not found for removing spans")},t.traverseAndWrapTextInSpans=o,t.removeSpans=n,t.focusText=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target.closest("span");t?e.isIntersecting?t.classList.add("focus-text"):t.classList.remove("focus-text"):console.warn("Document error: closest span not found for intersection observer entry")}))}),t.options)},2692:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callFocusText=void 0;const n=o(6289);t.callFocusText=function(){let e=!1;const t=document.querySelector("#content-wrapper"),o=document.querySelector("#focus-text-btn");function r(){e=!e,t?t.toggleAttribute("focus-on",e):console.warn("Document error: content wrapper element not found"),o?(o.setAttribute("aria-checked",e.toString()),o.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'):console.warn("Document error: focus text switch element not found"),(0,n.toggleFocusText)(e,t,n.focusText)}o?(o.addEventListener("click",(e=>{e.stopPropagation(),r()})),o.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),r())}))):console.warn("Document error: focus text switch element is missing - event listeners not added")}},5207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.processElements=t.getLargeTextElementsSelectors=t.adjustParagraphMargins=t.wordSpacing=t.lineHeight=t.lgFont=t.mdFont=void 0,t.mdFont=4,t.lgFont=6,t.lineHeight=1.5,t.wordSpacing=.16,t.adjustParagraphMargins=function(e){document.querySelectorAll(".content-body p, .content-body > h3").forEach((t=>{e?(t.dataset.originalMarginBottom=t.style.marginBottom,t.style.marginBottom="1em"):t.style.marginBottom=t.dataset.originalMarginBottom||""}))},t.getLargeTextElementsSelectors=function(e){const t=".header :is(h1, p), .content-body :is(h2, h3, h4, h5, h6, p:not(table p), li, a:not(table a), blockquote, figcaption, .front, .overlay, .back, dt, dd, span), footer *, #footer p",o="td, th, label";return{largeTextElements:e.querySelectorAll(t),smallerTextElements:e.querySelectorAll(o),largeTextSelectors:t,smallerTextSelectors:o}},t.processElements=function(e,t,o,n,r,l,i,c,s){e.forEach((e=>{if(!e)return;let a=e.parentElement;for(;a&&!a.matches(t?s:c);)a=a.parentElement;if(!a)if(o){const o=window.getComputedStyle(e);e.dataset.originalFontSize=o.fontSize,e.dataset.originalLineHeight=o.lineHeight,e.dataset.originalWordSpacing=o.wordSpacing;const c=parseFloat(o.fontSize)+(t?n:r);e.style.fontSize=`${c}px`,e.style.lineHeight=`${l}`,e.style.wordSpacing=`${i}em`}else e.removeAttribute("style"),e.removeAttribute("data-original-margin-bottom"),e.removeAttribute("data-original-font-size"),e.removeAttribute("data-original-line-height"),e.removeAttribute("data-original-word-spacing")}))}},9191:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callLargeText=void 0;const n=o(6079),r=o(5207);t.callLargeText=function(){let e=!1;const t=document.querySelector("#large-text-btn");function o(){if(e=!e,!n.courseBody)return void console.warn("Document error: content wrapper element not found");n.courseBody.toggleAttribute("large-text-on",e),(0,r.adjustParagraphMargins)(e);const{largeTextElements:o,smallerTextElements:l,largeTextSelectors:i,smallerTextSelectors:c}=(0,r.getLargeTextElementsSelectors)(n.courseBody);(0,r.processElements)(l,!0,e,r.mdFont,r.lgFont,r.lineHeight,r.wordSpacing,i,c),(0,r.processElements)(o,!1,e,r.mdFont,r.lgFont,r.lineHeight,r.wordSpacing,i,c),t.setAttribute("aria-checked",e.toString()),t.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'}t?(t.addEventListener("click",(e=>{e.stopPropagation(),o()})),t.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),o())}))):console.warn("Document error: large text switch element is missing - event listeners not added")}},3966:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.callNarrowWidth=void 0,t.callNarrowWidth=function(){let e=!1;const t=document.querySelector("#content-wrapper"),o=document.querySelector("#third-column"),n=document.querySelector("#narrow-width-btn");function r(){e=!e,t?t.toggleAttribute("narrow-on",e):console.warn("Document error: content wrapper element not found"),o?o.toggleAttribute("narrow-on",e):console.warn("Document error: third column element not found"),n?(n.setAttribute("aria-checked",e.toString()),n.innerHTML=e?'<i class="fas fa-toggle-on"></i>':'<i class="fas fa-toggle-off"></i>'):console.warn("Document error: narrow width switch element not found")}n?(n.addEventListener("click",(e=>{e.stopPropagation(),r()})),n.addEventListener("keydown",(e=>{"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),r())}))):console.warn("Document error: narrow width switch element is missing - event listeners not added")}},7976:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=o(7408),r=document.createElement("div");r.classList.add("view-options-tooltip");const l=document.createElement("span");l.textContent=n.tooltipText,r.appendChild(l);const i=document.querySelector(".view-options-switches"),c=document.querySelector(".view-options-switches>button");i&&i.appendChild(r),c&&c.addEventListener("mouseover",(()=>{r.classList.toggle("visible")})),c&&c.addEventListener("mouseout",(()=>{r.classList.toggle("visible")}))}},t={};!function o(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,o),l.exports}(7080)})();
@@ -1 +0,0 @@
1
- (()=>{"use strict";var t;const e=document.querySelector(".content-body:not([dark-mode-on] .content-body)"),r=null==e?void 0:e.querySelector("h2"),n={a:".letter-a",b:".letter-b",c:".letter-c",d:".letter-d",e:".letter-e",f:".letter-f",g:".letter-g",h:".letter-h",i:".letter-i",j:".letter-j",k:".letter-k",l:".letter-l",m:".letter-m",n:".letter-n",o:".letter-o",p:".letter-p",q:".letter-q",r:".letter-r",s:".letter-s",t:".letter-t",u:".letter-u",v:".letter-v",w:".letter-w",x:".letter-x",y:".letter-y",z:".letter-z"};if(e&&r){const e=(null===(t=r.textContent)||void 0===t?void 0:t.charAt(0).toLowerCase())||"";r.setAttribute("aria-hidden","true");const l=document.createElement("span");if(l.textContent=e,l.className="first-letter",n[e]&&l.classList.add(`letter-${e}`),r.textContent){const t=r.textContent.slice(1),e=document.createElement("span");r.textContent="",e.textContent=t,r.appendChild(l),r.appendChild(e)}const o=document.createElement("h2");o.textContent=r.textContent||"",o.className="sr-only",r.insertAdjacentElement("afterend",o)}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimaonline/pimaonline-themepack",
3
- "version": "5.0.0",
3
+ "version": "5.0.26",
4
4
  "description": "A cloud based, course theme-pack for building courses efficiently within the D2L learning environment.",
5
5
  "main": "index.js",
6
6
  "files": [