1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8120],{319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=!1},2188:(e,t,r)=>{"use strict";r.d(t,{_2:()=>l});var n=r(6003);let l=(e,t)=>{switch(e){case"article":return"/".concat((0,n.T)(t),"/article");case"dictionary":return"/lexicon-entry";case"response":return"/".concat((0,n.T)(t),"/response");case"review":case"blogs":return"/review"}}},2452:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n="(min-width: 769px)"},2784:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var n=r(7033),l=r(9495),s=r(319),i=r(5155);let o=e=>{let{field:t,fallback:r,separator:o}=e;return(s.A&&"className"in e&&console.warn(`[PrismicText] className cannot be passed to <PrismicText> since it renders plain text without a wrapping component. For more details, see ${(0,n.R)("classname-is-not-a-valid-prop")}.`,e.field),"string"==typeof e.field)?(s.A&&console.error(`[PrismicText] The "field" prop only accepts a rich text field's value but was provided a different type of field instead (e.g. a key text or select field). You can resolve this error by rendering the field value inline without <PrismicText>. For more details, see ${(0,n.R)("prismictext-works-only-with-rich-text-and-title-fields")}`,e.field),null):l.h2.richText(t)?(0,i.jsx)(i.Fragment,{children:((e,...t)=>{if(!e)return null;{let[r]=t;return((e,t=" ")=>{let r="";for(let n=0;n<e.length;n++)"text"in e[n]&&(r+=(r?t:"")+e[n].text);return r})(e,("string"==typeof r?{separator:r}:{...r}).separator)}})(t,{separator:o})}):null!=r?(0,i.jsx)(i.Fragment,{children:r}):null}},3819:(e,t,r)=>{"use strict";r.d(t,{g5:()=>s,n2:()=>n});let n={en:"en-us",es:"es-es",fr:"fr-fr",pt:"pt-pt",it:"it-it",de:"de-de",pl:"pl-pl",nl:"nl-nl"},l={"en-us":{full:"English",abbr:"EN"},"es-es":{full:"Espa\xf1ol",abbr:"ES"},"fr-fr":{full:"Fran\xe7ais",abbr:"FR"}};function s(e){let t=l[e];if(t)return t;let r=String(e||"").split("-")[0],n=e||"";try{let e=new Intl.DisplayNames([r],{type:"language"}).of(r);e&&e!==r&&(n=e.charAt(0).toLocaleUpperCase(r)+e.slice(1))}catch(e){}return{full:n,abbr:r?r.toUpperCase():String(e||"")}}},4014:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(5155),l=r(5665),s=r(2115),i=r(9377),o=r(2188);let a=["article","response","dictionary"];function c(){let[e,t]=(0,s.useState)(""),[r,c]=(0,s.useState)(null),[u,d]=(0,s.use
1State)({}),h=(0,s.useRef)(null),p=(0,s.useRef)(!1),f=()=>t("");(0,s.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&f()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let m=()=>{null!==r||p.current||(p.current=!0,fetch("/api/search-index").then(e=>e.ok?e.json():Promise.reject(e)).then(e=>c(e)).catch(()=>c({})).finally(()=>{p.current=!1}))};(0,s.useEffect)(()=>{if(!r||e.length<=2)return void d({});d((0,l.J)(e,r))},[e,r]);let x=Object.values(u).some(e=>e.length>0),g=e.length>2&&r&&!x;return(0,n.jsxs)("div",{className:"m-auto py-6 relative outline-0 w-5/6 md:w-2/3",ref:h,children:[(0,n.jsxs)("div",{className:"w-full py-3 px-2 flex gap-3 items-center",style:{outline:"1px solid #0e274d"},children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 50 50",children:(0,n.jsx)("path",{d:"M 21 3 C 11.654545 3 4 10.654545 4 20 C 4 29.345455 11.654545 37 21 37 C 24.701287 37 28.127393 35.786719 30.927734 33.755859 L 44.085938 46.914062 L 46.914062 44.085938 L 33.875 31.046875 C 36.43682 28.068316 38 24.210207 38 20 C 38 10.654545 30.345455 3 21 3 z M 21 5 C 29.254545 5 36 11.745455 36 20 C 36 28.254545 29.254545 35 21 35 C 12.745455 35 6 28.254545 6 20 C 6 11.745455 12.745455 5 21 5 z"})}),(0,n.jsx)("input",{type:"text",value:e,onChange:e=>{m(),t(e.target.value)},onFocus:m,placeholder:"Search by title or author",autoComplete:"search",className:"w-full outline-none"}),e&&(0,n.jsx)("button",{className:"hover:text-primary",onClick:f,children:"â"})]}),x?(0,n.jsx)("div",{className:"bg-white w-full absolute z-10",style:{border:"1px solid #0e274d"},children:(0,n.jsx)("ul",{children:a.flatMap(e=>(u[e]||[]).map(t=>(0,n.jsx)("li",{children:(0,n.jsx)(i.A,{documentType:e,documentTitle:t.data.title,documentLink:"".concat((0,o._2)(e,t.lang),"/").concat(t.uid),documentAuthor:t.data.authorname,returnTo:"/?explore=encyclopedia"})},t.uid)))})}):g&&(0,n.jsx)("div",{className:"bg-white w-full absolute z-10 p-3",style:{border:"1px solid #0e274d"},children:"No results found."})]})}},5665:(e,t,r)=>{"use strict";function n(e,t){let r={},n=e.toLowerCase().replace(/\s+/g,"");return Object.entries(t).forEach(e=>{var t;let[l,s]=e;r[l]=(t=n,s.filter(e=>{var r,n,l,s,i;return((null==(l=e.data)||null==(n=l.title)||null==(r=n[0])?void 0:r.text)||"").toLowerCase().replace(/\s+/g,"").includes(t)||(null==(i=e.data)||null==(s=i.authorname)?void 0:s.toLowerCase().replace(/\s+/g,"").includes(t))}))}),r}r.d(t,{J:()=>n})},5740:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DonateLink:()=>d});
1var n=r(5155),l=r(2115),s=r(7650),i=r(2619),o=r.n(i),a=r(3809),c=r(2452);let u={font:"inherit",color:"inherit",background:"none",border:"none",padding:0,margin:0,cursor:"pointer",textAlign:"inherit",letterSpacing:"inherit",textTransform:"inherit",textDecoration:"none"};function d(e){let{children:t,className:r,interval:i,circle:d}=e,[h,p]=(0,l.useState)(!1),[f,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>{m(!0)},[]);let x=["year"===i?"interval=year":null,d?"circle=".concat(d):null].filter(Boolean).join("&");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:x?"/donate?".concat(x):"/donate",className:r,onClick:e=>{window.matchMedia(c.s).matches&&(e.preventDefault(),p(!0))},style:r?void 0:u,children:t}),h&&f?(0,s.createPortal)((0,n.jsx)(a.V,{onClose:()=>p(!1),onComplete:()=>p(!1),initialInterval:i,circle:d}),document.body):null]})}},6003:(e,t,r)=>{"use strict";r.d(t,{T:()=>l});var n=r(3819);let l=e=>{let t=Object.entries(n.n2).find(t=>{let[r,n]=t;return n==e});return t?t[0]:"en"}},7033:(e,t,r)=>{"use strict";function n(e){return`https://prismic.dev/msg/react/v3.3.0/${e}`}r.d(t,{R:()=>n})},7333:(e,t,r)=>{Promise.resolve().then(r.bind(r,6588)),Promise.resolve().then(r.bind(r,49)),Promise.resolve().then(r.bind(r,6513)),Promise.resolve().then(r.t.bind(r,2619,23)),Promise.resolve().then(r.t.bind(r,1402,23)),Promise.resolve().then(r.bind(r,4014)),Promise.resolve().then(r.bind(r,5740))},7832:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l,V:()=>s});let n="ect:returnUri";function l(e){if(e)try{window.sessionStorage.setItem(n,e)}catch(e){}}function s(){try{return window.sessionStorage.getItem(n)}catch(e){return null}}},9377:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5155),l=r(2784),s=r(9553);let i={article:"bg-primary",dictionary:"bg-lexicon-red",lexicon:"bg-lexicon-red",blog:"bg-response-green",review:"bg-response-green",response:"bg-blog-gold"};function o(e){let{documentLink:t,documentType:r,documentTitle:o,documentAuthor:a,documentBody:c,tagline:u=null,returnTo:d=null}=e;return(0,n.jsx)(s.default,{href:t,returnTo:d,children:(0,n.jsxs)("div",{className:"border border-gray-300 rounded-lg shadow-sm flex",children:[(0,n.jsx)("div",{className:"w-4 ".concat(i[r])}),(0,n.jsx)("div",{className:"slide-hover group h-full p-4 flex-1","data-hover-type":r,children:(0,n.jsxs)("div",{className:"slide-hover-content",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold mb-1",children:(0,n.jsx)("span",{className:"text-primary group-hover:text-white transition-colors duration-300",children:(0,n.jsx)(l.V,{field:o})})}),(0,n.jsx)("h4",{className:"text-sm text-gray-500 group-hover:text-white transition-colors duration-300 mb-2",children:a}),(0,n.jsx)("p",{className:"text-gray-700 group-hover:text-white transition-colors duration-300 text-sm ",children:u||function(e,t){if(!e||0===e.length)return"";let{text:r}=e[0];return r?r.length<=200?e[0].text:r.slice(0,200).trim()+"...":""}(c,200)})]})})]})})}},9553:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(5155),l=r(2619),s=r.n(l),i=r(7832);function o(e){let{href:t,returnTo:r,children:l,onClick:o,...a}=e;return(0,n.jsx)(s(),{href:t,onClick:e=>{(0,i.Q)(r),o&&o(e)},...a,children:l})}}},e=>{e.O(0,[2619,1356,3261,3200,3809,8441,3636,7358],()=>e(e.s=7333)),_N_E=e.O()}]);
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.