!function(){var e={69:function(e,t,o){"use strict";o.d(t,{Vd:function(){return n}});const n="https://longnow.org"},897:function(){!function(e,t){t.addEventListener("DOMContentLoaded",(function(){t.querySelectorAll(".kg-gallery-image img").forEach((function(e){var t=e.closest(".kg-gallery-image"),o=e.attributes.width.value/e.attributes.height.value;t.style.flex=o+" 1 0%"}))}))}(window,document)},305:function(){!function(e,t){var o=t.querySelector("link[rel=next]");if(o){var n=t.querySelector(".infinite-scroll-list");if(n){var r=!1,i=!1,a=e.scrollY,d=e.innerHeight,l=t.documentElement.scrollHeight;e.addEventListener("scroll",u,{passive:!0}),e.addEventListener("resize",p),m()}}function c(){if(404===this.status)return e.removeEventListener("scroll",u),void e.removeEventListener("resize",p);this.response.querySelectorAll(".infinite-scroll-item").forEach((function(e){n.appendChild(t.importNode(e,!0))}));var a=this.response.querySelector("link[rel=next]");a?o.href=a.href:(e.removeEventListener("scroll",u),e.removeEventListener("resize",p)),l=t.documentElement.scrollHeight,r=!1,i=!1}function s(){if(!i)if(a+d<=l-300)r=!1;else{i=!0;var t=new e.XMLHttpRequest;t.responseType="document",t.addEventListener("load",c),t.open("GET",o.href),t.send(null)}}function m(){r||e.requestAnimationFrame(s),r=!0}function u(){a=e.scrollY,m()}function p(){d=e.innerHeight,l=t.documentElement.scrollHeight,m()}}(window,document)}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=window.Promise||function(e){function t(){}e(t,t)},m=function(e){var t=e.target;t!==T?-1!==k.indexOf(t)&&w({target:t}):z()},u=function(){if(!S&&q.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(x-e)>O.scrollOffset&&setTimeout(z,150)}},p=function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||z()},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t;if(t.background&&(T.style.background=t.background),t.container&&t.container instanceof Object&&(o.container=e({},O.container,t.container)),t.template){var r=n(t.template)?t.template:document.querySelector(t.template);o.template=r}return O=e({},O,o),k.forEach((function(e){e.dispatchEvent(l("medium-zoom:update",{detail:{zoom:B}}))})),B},v=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e({},O,o))},g=function(){for(var e=arguments.length,t=Array(e),o=0;o0?t.reduce((function(e,t){return[].concat(e,i(t))}),[]):k;return n.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(l("medium-zoom:detach",{detail:{zoom:B}}))})),k=k.filter((function(e){return-1===n.indexOf(e)})),B},y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k.forEach((function(n){n.addEventListener("medium-zoom:"+e,t,o)})),H.push({type:"medium-zoom:"+e,listener:t,options:o}),B},b=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k.forEach((function(n){n.removeEventListener("medium-zoom:"+e,t,o)})),H=H.filter((function(o){return!(o.type==="medium-zoom:"+e&&o.listener.toString()===t.toString())})),B},E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.target,i=function(){var t={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},o=void 0,i=void 0;if(O.container)if(O.container instanceof Object)o=(t=e({},t,O.container)).width-t.left-t.right-2*O.margin,i=t.height-t.top-t.bottom-2*O.margin;else{var a=(n(O.container)?O.container:document.querySelector(O.container)).getBoundingClientRect(),d=a.width,l=a.height,c=a.left,s=a.top;t=e({},t,{width:d,height:l,left:c,top:s})}o=o||t.width-2*O.margin,i=i||t.height-2*O.margin;var m=q.zoomedHd||q.original,u=r(m)?o:m.naturalWidth||o,p=r(m)?i:m.naturalHeight||i,f=m.getBoundingClientRect(),v=f.top,g=f.left,h=f.width,y=f.height,b=Math.min(u,o)/h,E=Math.min(p,i)/y,z=Math.min(b,E),w="scale("+z+") translate3d("+((o-h)/2-g+O.margin+t.left)/z+"px, "+((i-y)/2-v+O.margin+t.top)/z+"px, 0)";q.zoomed.style.transform=w,q.zoomedHd&&(q.zoomedHd.style.transform=w)};return new s((function(e){if(o&&-1===k.indexOf(o))e(B);else{if(q.zoomed)e(B);else{if(o)q.original=o;else{if(!(k.length>0))return void e(B);var t=k;q.original=t[0]}if(q.original.dispatchEvent(l("medium-zoom:open",{detail:{zoom:B}})),x=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,S=!0,q.zoomed=d(q.original),document.body.appendChild(T),O.template){var r=n(O.template)?O.template:document.querySelector(O.template);q.template=document.createElement("div"),q.template.appendChild(r.content.cloneNode(!0)),document.body.appendChild(q.template)}if(document.body.appendChild(q.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),q.original.classList.add("medium-zoom-image--hidden"),q.zoomed.classList.add("medium-zoom-image--opened"),q.zoomed.addEventListener("click",z),q.zoomed.addEventListener("transitionend",(function t(){S=!1,q.zoomed.removeEventListener("transitionend",t),q.original.dispatchEvent(l("medium-zoom:opened",{detail:{zoom:B}})),e(B)})),q.original.getAttribute("data-zoom-src")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("srcset"),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.src=q.zoomed.getAttribute("data-zoom-src"),q.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+q.zoomedHd.src),q.zoomedHd=null,i()};var a=setInterval((function(){q.zoomedHd.complete&&(clearInterval(a),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",z),document.body.appendChild(q.zoomedHd),i())}),10)}else if(q.original.hasAttribute("srcset")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.removeAttribute("loading");var c=q.zoomedHd.addEventListener("load",(function(){q.zoomedHd.removeEventListener("load",c),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",z),document.body.appendChild(q.zoomedHd),i()}))}else i()}}}))},z=function(){return new s((function(e){if(!S&&q.original){S=!0,document.body.classList.remove("medium-zoom--opened"),q.zoomed.style.transform="",q.zoomedHd&&(q.zoomedHd.style.transform=""),q.template&&(q.template.style.transition="opacity 150ms",q.template.style.opacity=0),q.original.dispatchEvent(l("medium-zoom:close",{detail:{zoom:B}})),q.zoomed.addEventListener("transitionend",(function t(){q.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(q.zoomed),q.zoomedHd&&document.body.removeChild(q.zoomedHd),document.body.removeChild(T),q.zoomed.classList.remove("medium-zoom-image--opened"),q.template&&document.body.removeChild(q.template),S=!1,q.zoomed.removeEventListener("transitionend",t),q.original.dispatchEvent(l("medium-zoom:closed",{detail:{zoom:B}})),q.original=null,q.zoomed=null,q.zoomedHd=null,q.template=null,e(B)}))}else e(B)}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return q.original?z():E({target:t})},L=function(){return O},C=function(){return k},A=function(){return q.original},k=[],H=[],S=!1,x=0,O=c,q={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(o)?O=o:(o||"string"==typeof o)&&g(o),O=e({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},O);var T=a(O.background);document.addEventListener("click",m),document.addEventListener("keyup",p),document.addEventListener("scroll",u),window.addEventListener("resize",z);var B={open:E,close:z,toggle:w,update:f,clone:v,attach:g,detach:h,on:y,off:b,getOptions:L,getImages:C,getZoomedImage:A};return B};function s(){for(var e=0,t=0,o=arguments.length;t-1)){var r=e.getAttribute("height")||e.offsetHeight,i=e.getAttribute("width")||e.offsetWidth,a=("string"==typeof r?parseInt(r):r)/("string"==typeof i?parseInt(i):i)*100,d=document.createElement("div");d.className=t;var l=d.style;l.position="relative",l.width="100%",l.paddingTop=a+"%";var c=e.style;c.position="absolute",c.width="100%",c.height="100%",c.left="0",c.top="0",null===(o=e.parentNode)||void 0===o||o.insertBefore(d,e),null===(n=e.parentNode)||void 0===n||n.removeChild(e),d.appendChild(e)}}))};Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const u=(e,t)=>{if(!e)throw new Error("Dom needs a selector");return t?t.querySelector(e):document.querySelector(e)},p=e=>document.createElement(e),f=e=>{e.classList.add("hidden")},v=e=>{e.classList.toggle("visible")},g=e=>{"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)};o(305),o(897);function h(e){for(var t=1;t{fetch(`${E.Vd}/api/v1/membership/me`).then((e=>e.json())).then((e=>{if(null==e.username){const e=u("#signin-form"),t=b.get("csrftoken");if(e&&t){const o=p("input");o.setAttribute("type","hidden"),o.setAttribute("name","csrfmiddlewaretoken"),o.setAttribute("value",t),e.appendChild(o);const n=p("input");n.setAttribute("type","hidden"),n.setAttribute("name","next"),n.setAttribute("value",window.location.pathname),e.appendChild(n)}}else{let t={};const o=u("#membership-signin"),n=u("#membership-member");f(o),n.classList.remove("hidden"),e.username&&(t.username=e.username),e.membership_number&&(t.membership_number=e.membership_number.toLocaleString("en-US")),e.avatar?t.avatar=e.avatar:t.avatar="/assets/img/icon-profile-steel.svg",e.first_name&&(t.first_name=e.first_name),e.last_name&&(t.last_name=e.last_name),(e=>{let t=`

${e.username}

`;e.first_name&&(t=`

${e.first_name}`,e.last_name&&(t+=` ${e.last_name}`),t+=`

${e.username}

`);const o=`${t}
Member${e.membership_number}
`;u("#member-details").innerHTML=o,u("#member-photo-large").setAttribute("style",`background-image: url(${e.avatar});`),u("#member-photo-small").setAttribute("style",`background-image: url(${e.avatar});`)})(t)}}))};g((()=>{z(),u("#membership-signout")&&u("#membership-signout").setAttribute("href",`${E.Vd}/membership/signout?next=${window.location.pathname}`)})),g((()=>{const e=document.getElementById("notice-buttons");if(e){const t=document.createElement("a");t.setAttribute("href","mailto:services@longnow.org?subject=Website%20feedback"),t.setAttribute("class","button"),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"),t.textContent="Send feedback",e.appendChild(t);const o=document.createElement("button");o.setAttribute("class","button"),o.textContent="Switch to legacy site",e.appendChild(o),o.addEventListener("click",(e=>{gtag("event","click",{event_category:"SwitchedToLegacy"}),b.set("legacy","1"),window.location.reload()}))}}));g((()=>{let e=document.getElementById("nav-button");e&&e.addEventListener("click",(e=>{v(document.getElementById("nav-menu"))})),document.querySelectorAll("#nav-menu A").forEach((e=>{e.addEventListener("click",(e=>{f(document.getElementById("nav-menu"))}))}));["notice","subscribe","membership"].forEach((e=>(e=>{const t=`.${e}-opener`,o=document.getElementById(`${e}-modal`),n=o.getElementsByClassName("modal-window")[0];document.querySelectorAll(t).forEach((e=>{e.addEventListener("click",(e=>{o.classList.remove("hidden"),o.addEventListener("click",(e=>{f(o)})),o.querySelectorAll(".close").forEach((e=>{e.addEventListener("click",(e=>{f(o)}))})),n.addEventListener("click",(e=>{e.stopPropagation(),e.stopImmediatePropagation()}))}))}))})(e)));const t=document.getElementById("ideas-year");if(t){let e=window.location.pathname.substring(7,12);"older"==e&&(e="02003 & earlier"),t.innerHTML=e}document.querySelectorAll(".captions").forEach((e=>{e.addEventListener("click",(t=>{v(e)}))}));const o=[...document.querySelectorAll(".kg-gallery-image > img"),...document.querySelectorAll(".kg-image")];c(o,{margin:20,background:"rgba(255,255,255,0.9)"}),m("iframe:not(.no-reframe)"),document.querySelectorAll(".media-control").forEach((e=>{e.addEventListener("click",(e=>{var t,o,n;t=e.target.closest(".media-player"),o=t.getElementsByClassName("audio")[0],n=t.getElementsByClassName("media-control")[0],o.paused||o.ended?o.paused&&(o.play(),n.classList.remove("play"),n.classList.add("pause")):(o.pause(),n.classList.remove("pause"),n.classList.add("play"))}))})),document.addEventListener("play",(function(e){for(var t=document.getElementsByTagName("audio"),o=0,n=t.length;o{e.getElementsByTagName("p")[0].addEventListener("click",(t=>{v(e.children[1]),window.location="#"+e.id}))}));const r=document.getElementById("copy_link");r&&(navigator.clipboard?r.addEventListener("click",(async e=>{await navigator.clipboard.writeText(r.value)})):f(r))}))}()}();