PageSourceSearch

https://encyclopedia.ushmm.org/js/main/article.js?id=f2fb6d7ed34212c5db8bf84da43d103b

js ushmm.org collected 2026-09-24 08:24:37 UTC 17,920 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkencyclopedia=self.webpackChunkencyclopedia||[]).push([[9971,9250,8295],{9311:(e,t,n)=>{var o=n(1139);function r(){return new Promise((async(e,t)=>{try{const t=await fetch(`/ajax/glossary-terms?langcode=${window.HE.langcode}`);e(await t.json())}catch(e){t(e)}}))}async function s(e,t){t.preventDefault(),t.stopPropagation();const n=this.dataset.langcode,o=this.dataset.slug,r=document.getElementById("glossaryBox"),s=r.querySelector(".js-glossary-live");try{const t=await fetch(`/ajax/glossary-term?langcode=${n}&slug=${o}`),a=await t.json();r.querySelector("#glossaryBox__term").innerText=a.term+":",r.querySelector("#glossaryBox__definition").innerHTML=a.definition,e.isOpen=!0,e.returnFocusTo=this,setTimeout((()=>{s.setAttribute("aria-live","polite")}),100)}catch(e){console.error(e)}}function a(e,t,n){const o=document.getElementById("glossary-btn-label"),r=e.childNodes;let a=[];for(const e of t)for(const t of r)if("#text"===t.nodeName.toLowerCase()){const n=t.wholeText;let r=new RegExp(`([\\s,\\.\\?\\"\\']+)(${e.term})([\\s,\\.\\?\\"\\']+)`,"i");if(r.test(n)){a.push(e);const s=document.createRange().createContextualFragment(n.replace(r,`$1$2$3\n              <button aria-expanded="false" aria-controls="glossaryPopUp" aria-haspopup="dialog" data-slug="${e.slug}" data-langcode="${e.langcode}" class="glossary-term-link">\n                <i class="fa fa-info-circle"><span class="visually-hidden">${o.content.textContent}</span></i>\n              </button> `));t.replaceWith(s);break}}return a.length>0&&Array.from(e.querySelectorAll(".glossary-term-link")).forEach((e=>e.addEventListener("click",s.bind(e,n)))),a}function i(e){const t=document.createElement("div");return t.classList.add("article-headerWrap"),t.appendChild(e.cloneNode(!0)),e.replaceWith(t),t}function l(){try{navigator.clipboard.writeText(this.dataset.clipboardText).then((()=>{this.parentElement.querySelector(".copy-message").classList.toggle("hidden"),setTimeout((()=>{this.parentElement.querySelector(".copy-message").classList.toggle("hidden")}),5e3)}))}catch(e){console.error(e.message)}}var c=n(1790);var d=n(6473);const u=document.getElementById("toolsBar"),p=window.getComputedStyle(document.body).getPropertyValue("--header-height"),f=()=>{u.offsetHeight>window.innerHeight-parseInt(p)-32?u.classList.add("isNotSticky"):u.classList.remove("isNotSticky")};let m;const h=()=>{clearTimeout(m),m=setTimeout((()=>{f()}),200)};
1(0,o.rG)({controllerIDs:["photo-details"],controlledID:"imageLightbox",onOpen:async function(){if(!this.hasBeenRendered)try{const e=await fetch(this.el.dataset.href),t=await e.text(),n=document.createElement("template");n.innerHTML=t;const o=n.content.querySelector("figure");this.el.querySelector(".js-slot").appendChild(o),this.hasBeenRendered=!0}catch(e){console.error("Error:",e)}}}),async function(){const e=await(0,o.rG)({controlledID:"glossaryPopUp",controllerIDs:[],onClose:function(){this.el.querySelector(".js-glossary-live").setAttribute("aria-live","off")}});(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=Array.from(document.querySelectorAll(e));let s=[];return n&&(s=Array.from(document.querySelectorAll(n))),new Promise((e=>{r().then((n=>{let r=[];for(const e of o){const o=Array.from(e.querySelectorAll("p, span"));for(const e of o){if(s.length&&s.some((t=>t.contains(e))))continue;const o=a(e,n,t);r=r.concat(o)}}const i=r.reduce(((e,t)=>(-1===e.findIndex((e=>e.id===t.id))&&e.push(t),e)),[]).sort(((e,t)=>e.term.localeCompare(t.term)));e(i)}))}))})(".js-overview, .js-key-facts, .js-story-text",e,".embedded-narrative-wrapper").then((t=>{const n=document.getElementById("matched-glossary-terms"),o=n.querySelector("ul");t.length>0&&(t.forEach((t=>{const n=document.createElement("li"),r=document.createElement("button");r.setAttribute("aria-expanded",!1),r.setAttribute("aria-controls","glossaryPopUp"),r.setAttribute("aria-haspopup","dialog"),r.dataset.langcode=t.langcode,r.dataset.slug=t.slug,r.dataset.trackGtm=`Encyclopedia Sidebar|Glossary Term|${t.term}`,r.textContent=t.term,r.addEventListener("click",s.bind(r,e)),n.append(r),o.append(n)})),n.classList.remove("hidden"),n.removeAttribute("aria-hidden"))}))}(),function(){if(!IntersectionObserver)return;
1Array.from(document.querySelectorAll(".js-newCarousel")).forEach((e=>function(e){const t=e.querySelector("ul"),n=Array.from(t.querySelectorAll("li"));if(n.length<2)return;const o="rtl"===document.documentElement.getAttribute("dir"),r=Array.from(e.querySelectorAll("button")),s=e.querySelector(".js-item-count"),a=s.querySelectorAll(".js-first"),i=s.querySelectorAll(".js-last"),l=s.querySelectorAll(".js-count"),c=s.querySelector(".js-item-count-singular"),d=s.querySelector(".js-item-count-plural"),u=e.querySelector(".js-live");t.addEventListener("scroll",w);const p=void 0!==e.dataset.preventFocusChange,f=void 0!==e.dataset.dynamicHeight,m=new Set,h=new Set;f&&e.classList.add("newCarousel--dynamicHeight");let y,g=!1,v=!1,E=!1;function b(){clearTimeout(y),g||(g=!0,n.forEach((e=>A.unobserve(e)))),y=setTimeout((()=>{g=!1,n.forEach((e=>A.observe(e)))}),200)}function w(){v=!0,t.removeEventListener("scroll",w),t.addEventListener("scroll",b)}window.addEventListener("resize",(()=>{v=!1,t.addEventListener("scroll",w),b()})),n.forEach((e=>{e._focusableChildren=Array.from(e.querySelectorAll("a, button, input, select")),e._firstFocusable=e._focusableChildren.length?e._focusableChildren[0]:e}));const L={root:t,threshold:.99};e.classList.add("has-js");const A=new IntersectionObserver(q,L);function k(e){r[e].removeAttribute("disabled")}function x(e){r[e].setAttribute("disabled",!0)}function S(e){e.classList.add("newCarousel-item--hidden"),0===e._focusableChildren.length&&e.setAttribute("tabindex",-1),e._focusableChildren.forEach((e=>{e.setAttribute("tabindex",-1)}))}function q(o){u.setAttribute("aria-live","off"),E?u.setAttribute("aria-hidden","false"):u.setAttribute("aria-hidden","true"),f&&(t.style.height=t.offsetHeight+"px");const r=o.filter((e=>e.isIntersecting)),y=o.filter((e=>!e.isIntersecting));r.forEach((e=>m.add(e.target))),r.forEach((e=>h.delete(e.target))),y.forEach((e=>h.add(e.target))),y.forEach((e=>m.delete(e.target)));const g=[...m].map((e=>Number(e.dataset.index))).sort();let b;g.includes(0)?x(0):k(0),g.includes(n.length-1)?x(1):k(1),h.forEach((e=>{S(e)})),0===h.size?e.classList.add("newCarousel--no-overflow"):e.classList.remove("newCarousel--no-overflow"),m.forEach((e=>{e.classList.remove("newCarousel-item--hidden"),0===e._focusableChildren.length&&e.setAttribute("tabindex",0),e._focusableChildren.forEach((e=>{e.removeAttribute("tabindex")}))})),g.length&&(b=[...m].find((e=>Number(e.dataset.index)===g[0])),b&&f&&(t.style.height="auto")),Array.from(a).forEach((e=>e.textContent=s.dataset[g[0]+1])),Array.from(i).forEach((e=>e.textContent=s.dataset[g[g.length-1]+1])),Array.from(l).forEach((e=>e.textContent=s.dataset[n.length])),g.length>1?u.textContent=d.textContent:u.textContent=c.textContent;const w=[...m].map((e=>e.dataset.label)).join(", ");p&&(u.textContent+=`: ${w}`),g.length&&b&&E&&(u.setAttribute("aria-live","polite"),v&&!p&&E&&b._firstFocusable.focus()),E=!1}function C(e){E=!0;const n=t.offsetWidth,r=parseInt(window.getComputedStyle(t).getPropertyValue("gap"));switch(o){case!1:t.scrollLeft=0===e?t.scrollLeft-n-r:t.scrollLeft+n+r;break;case!0:t.scrollLeft=0===e?t.scrollLeft+n+r:t.scrollLeft-n+r}}n.forEach((e=>{A.observe(e)})),r.forEach(((e,t)=>{e.addEventListener("click",C.bind(null,t))}))}(e)))}(),function(e){var t;const n=document.querySelector(e);let o;Array.from(n.querySelectorAll("h2")).forEach(((e,t)=>{var n;if(e.id)o=i(e);else{const n=`${e.innerText.trim().toLowerCase().replace(/[^a-z\s-]+/g,"").trim().replace(/[\s-]+/g,"-")}-${t}`;e.id=n,e.setAttribute("tabindex",-1),o=i(e)}if(null!==(n=navigator.clipboard)&&void 0!==n&&n.writeText){const t=e.id,n=new URL(location);n.hash=t;const r=`\n      <button aria-label="Click to copy a permalink to this section" aria-describedby="${e.id}" class="btn btn-link copy-link-btn js-copy-link-btn" data-clipboard-text="${n.toString()}" data-track-gtm="Article|Header Anchor|${e.innerText}" title="Click to copy a permalink to this section">\n        <i aria-hidden="true" class="fa fa-link"></i>\n        <span class="copy-message black-text hidden" role="alert">Link copied</span>\n      </button>\n      `;o.insertAdjacentHTML("beforeend",r)}})),null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText&&Array.from(document.querySelectorAll(".js-copy-link-btn")).forEac
1h((e=>{e.addEventListener("click",l)}))}("#story-text"),(0,c.Z)(),(0,c.E)(),Array.from(document.querySelectorAll(".js-date-translate")).forEach((e=>{e.textContent=function(e,t,n){const o=e.split("-");return o[1]=o[1]-1,`${n?n+" ":""}${new Date(Date.UTC(...o)).toLocaleDateString([t,"en"],{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}`}(e.dataset.date,e.dataset.lang,e.dataset.display)})),function(){const e=window.location.hash;if(e){document.querySelector(e)&&setTimeout((()=>{window.location=e}),500)}}(),(0,d.Z)(),function(){const e=document.querySelector(".js-external-website").dataset.translation;Array.from(document.querySelector(".js-article-columns").querySelectorAll("a")).forEach((t=>{if(t.href)try{if(new URL(t.href).hostname===window.location.hostname)return;t.getAttribute("aria-label")?t.setAttribute("aria-label",`${t.getAttribute("aria-label")} (${e})`):t.insertAdjacentHTML("beforeend",`<span class="visually-hidden"> (${e})</span>`)}catch(e){console.error(e)}}))}(),f(),window.addEventListener("resize",h)},1790:(e,t,n)=>{function o(){const e=":is(.embedded-asset, .embedded-img-figure, .video-embed-wrapper, .image-embed-wrapper, .audio-embed-wrapper, .youtube-embed-wrapper)",t=document.querySelectorAll(e);Array.from(t).filter((t=>!t.matches(`${e} ${e}`))).forEach((async e=>{const t=e.querySelector("p");if(!t)return;const n=t.textContent.match(/\[(?:credit|caption)=(\w{8}-\w{4}-\w{4}-\w{4}-\w{12})\]/),o=!!n&&n[1];if(o)try{const n=await fetch(`/api/v1/assets/${o}`,{headers:window.HE.apiRequestHeaders}),r=await n.json(),{credit:s,caption:a}=r.data;if(a.toLowerCase().includes("audio version of this article"))e.classList.add("audio-version"),e.insertAdjacentHTML("afterbegin",'<span class="audio-version-label">Listen to the human-read audio version</span>');else{const n=[s,a].filter(Boolean).join(" - ");t.innerHTML=n,t.classList.add("isLoaded");const o=e.querySelector("img");o&&o.setAttribute("alt",a??"")}}catch(e){console.error(e)}}))}function r(){const e=document.querySelectorAll("[data-clickable]");Array.from(e).forEach((e=>{e.classList.add("article-clickableAsset"),e.addEventListener("click",(()=>window.location.href=e.dataset.clickable))}))}n.d(t,{E:()=>r,Z:()=>o})},1139:(e,t,n)=>{let o;n.d(t,{BX:()=>c,rG:()=>s,uT:()=>i});const r=new Promise((e=>{o=e}));if("function"!=typeof HTMLDialogElement){const e=document.createElement("link");e.rel="stylesheet",e.href="/css/dialog-polyfill.css",document.head.appendChild(e);const t=document.createElement("script");t.src="/js/main/dialog-polyfill.js",t.addEventListener("load",(function(){o("polyfill")})),document.head.appendChild(t)}else o("native");async function s(e){let{controllerIDs:t,controlledID:n,focusOn:o="",onOpen:s=null,onClose:a=null}=e;const i=document.body,l=t.map((e=>document.getElementById(e))),c=document.getElementById(n);if(!c)return;const d="DIALOG"===c.tagName;if(d){"polyfill"===await r&&window.dialogPolyfill.registerDialog(c),l.push(...[`close-${n}`,`close-${n}--kb`].map((e=>document.getElementById(e))))}const u={timeout(){},_isOpen:!1,el:c,content:c.querySelector(".js-dialog-content"),focusOnEl:o?document.getElementById(o):void 0,get isOpen(){return this._isOpen},set isOpen(e){this._isOpen=e,d||this.el.classList[e?"add":"remove"]("isOpen"),Array.from(l).forEach((t=>{t&&t.setAttribute("aria-expanded",e)})),d&&document.documentElement.classList[e?"add":"remove"]("menuIsOpen"),e?(i.addEventListener("click",u.close),d?(u.content.addEventListener("click",u.stopProp),this.el.showModal()):(i.addEventListener("focusin",u.close),i.addEventListener("keydown",u.escHandler)),u.focusOnEl&&u.focusOnEl.focus(),s&&s.call(u)):(i.removeEventListener("click",u.close),d?(u.content.removeEventListener("click",u.stopProp),u.returnFocusTo&&u.returnFocusTo.focus(),this.el.close()):(i.removeEventListener("focusin",u.close),i.removeEventListener("keydown",u.escHandler)),a&&a.call(u))},focusOut(){this.timeout=setTimeout((()=>{u.isOpen=!1}),20)},focusIn(e){e.stopPropagation()},close(){u.isOpen&&(u.isOpen=!1)},escHandler(e){"Escape"===e.key&&(e.stopPropagation(),u.close())},stopProp(e){e.stopPropagation()}};return null!==u.el?(d&&u.el.addEventListener("close",(()=>{u.close()})),d||u.el.addEventListener("focusin",u.focusIn),Array.from(l).forEach((e=>{e&&e.addEventListener("click",(function(e){e.stopPropagation(),!u.isOpen&&d&&(u.returnFocusTo=this),u.isOpen=!u.isOpen}))})),u):void 0}function a(e){e.style.height="auto",e.classList.remove("isPositionAbove"),e.classList.remove("isPositionBelow");const t=window.innerHeight,n=e.getBoundingClientRect().top<t/2?"below":"above";"below"===n?(e.classList.remove("isPositionAbove"),e.classList.add("isPositionBelow")):(e.classList.add("isPositionAbove"),e.classList.remove("isPositionBelow"));const o=e.getBoundingClientRect();
1if("above"===n){const t=document.querySelector(".js-header").offsetHeight;o.bottom-o.height<t&&(e.style.height=o.bottom-t+"px")}else o.top+o.height>t&&(e.style.height=t-o.top+"px")}function i(){const e=document.getElementById("searchMenu").querySelector(".js-dialog-content"),t=document.querySelector(".js-content-types-search"),n=document.getElementById("category-group-btn"),o=document.getElementById("category-group-btn-txt"),r=document.getElementById("category-group-listbox"),s={activeElement:-1,el:r,form:document.querySelector("form.js-searchBox"),items:Array.from(r.querySelectorAll("input")),clearBtn:document.getElementById("searchbox-category-clear"),_isOpen:!1,get isOpen(){return this._isOpen},set isOpen(t){this._isOpen=t,this.el.classList[t?"add":"remove"]("isOpen"),n.setAttribute("aria-expanded",t),t?(this.el.querySelector("input").focus(),e.addEventListener("click",this.close),a(r)):(n.focus(),e.removeEventListener("click",this.close))},updateFilterList(){const e=new FormData(s.form).getAll("types[]");0===e.length?o.textContent=n.dataset.originalDisplay:1===e.length?o.textContent=document.querySelector(`input[name="types[]"][value="${e[0]}"]`).parentElement.textContent:o.textContent=`${n.dataset.multipleDisplay} (${e.length})`},clearAll(){s.items.forEach((e=>{e.checked=!1})),o.textContent=n.dataset.originalDisplay},close(){s.isOpen=!1},keydownHandler(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),s.isOpen=!1),"Tab"===e.key&&s.inputs.includes(e.target)&&e.preventDefault(),"ArrowDown"===e.key&&(e.preventDefault(),e.stopPropagation(),s.activeElement<s.inputs.length-1?s.inputs[s.activeElement+1].focus():s.inputs[0].focus()),"ArrowUp"===e.key&&(e.preventDefault(),e.stopPropagation(),s.activeElement>0?s.inputs[s.activeElement-1].focus():s.inputs[s.inputs.length-1].focus()),"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),e.target.checked=!e.target.checked,s.updateFilterList())}};return s.items.forEach((e=>{e.addEventListener("change",s.updateFilterList)})),s.inputs=Array.from(s.el.querySelectorAll("input, button")),s.inputs.forEach(((e,t)=>{e.addEventListener("focus",(()=>{s.activeElement=t}))})),s.clearBtn.addEventListener("click",s.clearAll),t.addEventListener("click",(e=>{e.stopPropagation()})),n.addEventListener("click",(()=>{s.isOpen=!s.isOpen})),n.addEventListener("keyup",(e=>{"ArrowDown"===e.key&&(s.isOpen=!0)})),s.el.addEventListener("keydown",s.keydownHandler),s.updateFilterList(),s}function l(e){const t=e.parentElement;return t?t.matches("dialog")?t:l(t):null}function c(e){const t=l(e);if(!t)return;const n=t.querySelector(".js-dialog-content"),o=e.querySelector("[aria-controls]"),r=e.querySelector("[role=list]"),s={activeElement:-1,el:r,links:Array.from(r.querySelectorAll("a")),_isOpen:!1,get isOpen(){return this._isOpen},set isOpen(e){this._isOpen=e,this.el.classList[e?"add":"remove"]("isOpen"),o.setAttribute("aria-expanded",e),e?(this.el.querySelector("a").focus(),n.addEventListener("click",this.close),a(r)):(o.focus(),n.removeEventListener("click",this.close))},close(){s.isOpen=!1},keydownHandler(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),s.isOpen=!1),"Tab"===e.key&&s.links.includes(e.target)&&e.preventDefault(),"ArrowDown"===e.key&&(e.preventDefault(),e.stopPropagation(),s.activeElement<s.links.length-1?s.links[s.activeElement+1].focus():s.links[0].focus()),"ArrowUp"===e.key&&(e.preventDefault(),e.stopPropagation(),s.activeElement>0?s.links[s.activeElement-1].focus():s.links[s.links.length-1].focus())}};return s.links.forEach(((e,t)=>{e.addEventListener("focus",(()=>{s.activeElement=t}))})),e.addEventListener("click",(e=>{e.stopPropagation()})),o.addEventListener("click",(()=>{s.isOpen=!s.isOpen})),o.addEventListener("keyup",(e=>{"ArrowDown"===e.key&&(s.isOpen=!0)})),s.el.addEventListener("keydown",s.keydownHandler),s}},6473:(e,t,n)=>{async function o(){const e=document.getElementById("search-query-input"),t=await fetch(`/api/v1/${window.HE.langcode}/search-keywords`,{headers:window.HE.apiRequestHeaders}),n=await t.json();let o="";if(n.data.forEach((e=>{let t=encodeURIComponent(e.textline);o+=`<a href="/search?query=${t}&languages%5B%5D=${window.HE.langcode}" data-track-gtm="Trending Keywords|${e.textline}">${e.textline}</a>`})),o){document.querySelectorAll(".js__trending_keywords_wrapper .js__trending_keywords_loader").forEach((e=>{e.parentNode.style.display="flex",e.innerHTML=o,e.classList.remove("wipe-loader-hor-alternate")})),e.setAttribute("placeholder",`e.g., ${n.data[0].textline}`)}}n.d(t,{Z:()=>o})}},e=>{var t;t=9311,e(e.s=t)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.