1function e(e,t,n){let r=document.createElement(t);return e&&(r.className=e),n&&n.appendChild(r),r}function t(e,t,n){let r=`translate3d(${e}px,${t||0}px,0)`;return n!==void 0&&(r+=` scale3d(${n},${n},1)`),r}function n(e,t,n){e.style.width=typeof t==`number`?`${t}px`:t,e.style.height=typeof n==`number`?`${n}px`:n}var r={IDLE:`idle`,LOADING:`loading`,LOADED:`loaded`,ERROR:`error`};function i(e){return`button`in e&&e.button===1||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}function a(e,t,n=document){let r=[];if(e instanceof Element)r=[e];else if(e instanceof NodeList||Array.isArray(e))r=Array.from(e);else{let i=typeof e==`string`?e:t;i&&(r=Array.from(n.querySelectorAll(i)))}return r}function o(e){return typeof e==`function`&&e.prototype&&e.prototype.goTo}function s(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}var c=class{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}},l=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,n=100){var r,i,a;this._filters[e]||(this._filters[e]=[]),(r=this._filters[e])==null||r.push({fn:t,priority:n}),(i=this._filters[e])==null||i.sort((e,t)=>e.priority-t.priority),(a=this.pswp)==null||a.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var n;return(n=this._filters[e])==null||n.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var n,r;this._listeners[e]||(this._listeners[e]=[]),(n=this._listeners[e])==null||n.push(t),(r=this.pswp)==null||r.on(e,t)}off(e,t){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),(n=this.pswp)==null||n.off(e,t)}dispatch(e,t){var n;if(this.pswp)return this.pswp.dispatch(e,t);let r=new c(e,t);return(n=this._listeners[e])==null||n.forEach(e=>{e.call(this,r)}),r}}
vendor: 1,591 bytes, line 1
1,u=class{constructor(t,n){if(this.element=e(`pswp__img pswp__img--placeholder`,t?`img`:`div`,n),t){let e=this.element;e.decoding=`async`,e.alt=``,e.src=t,e.setAttribute(`role`,`presentation`)}this.element.setAttribute(`aria-hidden`,`true`)}setDisplayedSize(e,r){this.element&&(this.element.tagName===`IMG`?(n(this.element,250,`auto`),this.element.style.transformOrigin=`0 0`,this.element.style.transform=t(0,0,e/250)):n(this.element,e,r))}destroy(){var e;(e=this.element)!=null&&e.parentNode&&this.element.remove(),this.element=null}},d=class{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=r.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type=`image`:this.type=`html`,this.instance.dispatch(`contentInit`,{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&=(this.placeholder.destroy(),void 0)},1e3)}load(t,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){let e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{let e=this.instance.applyFilters(`placeholderSrc`,this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new u(e,this.slide.container)}this.element&&!n||this.instance.dispatch(`contentLoad`,{content:this,isLazy:t}
1).defaultPrevented||(this.isImageContent()?(this.element=e(`pswp__img`,`img`),this.displayedImageWidth&&this.loadImage(t)):(this.element=e(`pswp__content`,`div`),this.element.innerHTML=this.data.html||``),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){if(!this.isImageContent()||!this.element||this.instance.dispatch(`contentLoadImage`,{content:this,isLazy:e}).defaultPrevented)return;let t=this.element;this.updateSrcsetSizes(),this.data.srcset&&(t.srcset=this.data.srcset),t.src=this.data.src??``,t.alt=this.data.alt??``,this.state=r.LOADING,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=r.LOADED,this.slide&&this.element&&(this.instance.dispatch(`loadComplete`,{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===r.LOADED||this.state===r.ERROR)&&this.removePlaceholder())}onError(){this.state=r.ERROR,this.slide&&(this.displayError(),this.instance.dispatch(`loadComplete`,{slide:this.slide,isError:!0,content:this}),this.instance.dispatch(`loadError`,{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters(`isContentLoading`,this.state===r.LOADING,this)}isError(){return this.state===r.ERROR}isImageContent(){return this.type===`image`}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch(`contentResize`,{content:this,width:e,height:t}).defaultPrevented&&(n(this.element,e,t),this.isImageContent()&&!this.isError()))){let n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch(`imageSizeChange`,{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters(`isContentZoomable`,this.isImageContent()&&this.state!==r.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,t=this.instance.applyFilters(`srcsetSizesWidth`,this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+`px`,e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters(`useContentPlaceholder`,this.isImageContent(),this)}lazyLoad(){this.instance.dispatch(`contentLazyLoad`,{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters(`isKeepingPlaceholder`,this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch(`contentDestroy`,{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&=(this.placeholder.destroy(),void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t=e(`pswp__error-msg`,`div`);t.innerText=this.instance.options?.errorMsg??``,t=this.instance.applyFilters(`contentErrorElement`,t,this),this.element=e(`psw
1p__content pswp__error-msg-container`,`div`),this.element.appendChild(t),this.slide.container.innerText=``,this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===r.ERROR){this.displayError();return}if(this.instance.dispatch(`contentAppend`,{content:this}).defaultPrevented)return;let e=`decode`in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||s())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch(`contentActivate`,{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!s()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute(`aria-hidden`,`false`))}deactivate(){this.instance.dispatch(`contentDeactivate`,{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute(`aria-hidden`,`true`)}remove(){this.isAttached=!1,!this.instance.dispatch(`contentRemove`,{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch(`contentAppendImage`,{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===r.LOADED||this.state===r.ERROR)&&this.removePlaceholder()))}};function f(e,t){if(e.getViewportSizeFn){let n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function p(e,t,n,r,i){let a=0;if(t.paddingFn)a=t.paddingFn(n,r,i)[e];else if(t.padding)a=t.padding[e];else{let n=`padding`+e[0].toUpperCase()+e.slice(1);t[n]&&(a=t[n])}return Number(a)||0}function m(e,t,n,r){return{x:t.x-p(`left`,e,t,n,r)-p(`right`,e,t,n,r),y:t.y-p(`top`,e,t,n,r)-p(`bottom`,e,t,n,r)}}var h=4e3,g=class{constructor(e,t,n,r){this.pswp=r,this.options=e,this.itemData=t,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,n){let r={x:e,y:t};this.elementSize=r,this.panAreaSize=n;let i=n.x/r.x,a=n.y/r.y;this.fit=Math.min(1,i<a?i:a),this.fill=Math.min(1,i>a?i:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch(`zoomLevelsUpdate`,{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let t=e+`ZoomLevel`,n=this.options[t];if(n)return typeof n==`function`?n(this):n===`fill`?this.fill:n===`fit`?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption(`secondary`);return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>h&&(e=h/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption(`initial`)||this.fit}_getMax(){return this._parseZoomLevelOption(`max`)||Math.max(1,this.fit*4)}};function _(e,t,n){let r=t.createContentFromData(e,n),i,{options:a}=t;if(a){i=new g(a,e,-1);let o;o=t.pswp?t.pswp.viewportSize:f(a,t);let s=m(a,o,e,n);i.update(r.width,r.height,s)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}function v(e,t){let n=t.getItemData(e);if(!t.dispatch(`lazyLoadSlide`,{index:e,itemData:n}).defaultPrevented)return _(n,t,e)}var y=class extends l{getNumItems(){let e=0,t=this.options?.dataSource;t&&`length`in t?e=t.length:t&&`gallery`in t&&(t.items||=this._getGalleryDOMElements(t.gallery),t.items&&(e=t.items.length));let n=this.dispatch(`numItems`,{dataSource:t,numItems:e});return this.applyFilters(`numItems`,n.numItems,t)}createContentFromData(e,t){return new d(e,this,t)}getItemData(e){let t=this.options?.dataSource,n={};Array.isArray(t)?n=t[e]:t&&`gallery`in t&&(t.items||=this._getGalleryDOMElements(t.gallery),n=t.items[e]);let r=n;r instanceof Element&&(r=this._domElementToItemData(r));let i=this.dispatch(`itemData`,{itemData:r||{},index:e});return this.applyFilters(`itemData`,i.itemData,e)}_getGalleryDOMElements(e){var t,n;return(t=this.options)!=null&&t.children||(n=this.options)!=null&&n.childSelector?a(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let t={element:e},n=e.tagName===`A`?e:e.querySelector(`a`);if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,t.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);let r=e.querySelector(`img`);r&&(t.msrc=r.currentSrc||r.src,t.alt=r.getAttribute(`alt`)??``),(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters(`domItemData`,t,e,n)}lazyLoadData(e,t){return _(e,this,t)}},b=class extends y{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){a(this.options.gallery,this.options.gallerySelector).forEach(e
1=>{e.addEventListener(`click`,this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(i(e)||window.pswp)return;let t={x:e.clientX,y:e.clientY};!t.x&&!t.y&&(t=null);let n=this.getClickedIndex(e);n=this.applyFilters(`clickedIndex`,n,e,this);let r={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,r,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let t=e.target,n=a(this.options.children,this.options.childSelector,e.currentTarget).findIndex(e=>e===t||e.contains(t));return n===-1?this.options.children||this.options.childSelector?-1:0:n}loadAndOpen(e,t,n){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){let e=a(this.options.gallery);e[0]&&(t={gallery:e[0]})}return this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){let{options:n}=this;t&&(n.dataSource=t);let r=[],i=typeof n.pswpModule;if(o(n.pswpModule))r.push(Promise.resolve(n.pswpModule));else if(i===`string`)throw Error(`pswpModule as string is no longer supported`);else if(i===`function`)r.push(n.pswpModule());else throw Error(`pswpModule is not valid`);typeof n.openPromise==`function`&&r.push(n.openPromise()),n.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=v(e,this));let a=++this._uid;Promise.all(r).then(e=>{if(this.shouldOpen){let t=e[0];this._openPhotoswipe(t,a)}})}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let n=typeof e==`object`?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach(e=>{var t;(t=this._listeners[e])==null||t.forEach(t=>{n.on(e,t)})}),Object.keys(this._filters).forEach(e=>{var t;(t=this._filters[e])==null||t.forEach(t=>{n.addFilter(e,t.fn,t.priority)})}),this._preloadedContent&&=(n.contentLoader.addToCache(this._preloadedContent),void 0),n.on(`destroy`,()=>{this.pswp=void 0,delete window.pswp}),n.init()}destroy(){var e;(e=this.pswp)==null||e.destroy(),this.shouldOpen=!1,this._listeners={},a(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener(`click`,this.onThumbnailsClick,!1)})}},x=`1.3.25`;function S(e,t,n){return Math.max(e,Math.min(t,n))}function C(e,t,n){return(1-n)*e+n*t}function w(e,t,n,r){return C(e,t,1-Math.exp(-n*r))}function T(e,t){return(e%t+t)%t}var E=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=S(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=w(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function D(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var O=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=D(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},k=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e<r;e++)n[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},A=100/6,j={passive:!1};function M(e,t){return e===1?A:e===2?t:1}var N=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new k;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,j),this.element.addEventListener(`touchstart`,this.onTouchStart,j),this.element.addEventListener(`touchmove`,this.onTouchMove,j),this.element.addEventListener(`touchend`,this.onTouchEnd,j)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,j),this.element.removeEventListener(`touchstart`,this.onTouchStart,j),this.element.removeEventListener(`touchmove`,this.onTouchMove,j),this.element.removeEventListener(`touchend`,this.onTouchEnd,j)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=M(r,this.window.width),a=M(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},P=e=>Math.min(1,1.001-2**(-10*e)),F=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new E;emitter=new k;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:S=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:w=!1,naiveDimensions:T=w,stopInertiaOnNavigate:E=!1}={}){window.lenisVersion=x,window.lenis||(window.lenis={}),window.lenis.version=x,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof s==`
1number`&&typeof c!=`function`?c=P:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:S,allowNestedScroll:C,naiveDimensions:T,stopInertiaOnNavigate:E},this.dimensions=new O(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new N(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;let n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;let r=t.getRangeAt(0).getClientRects();if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=40,s=Math.hypot(n.clientX-a.right,n.clientY-a.bottom)<=40;return o||s}onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(i&&this.isIos&&(r.type===`touchstart`&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection)){r.type===`touchend`&&(this._isDraggingSelection=!1);return}this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
vendor: 4,098 bytes, line 1
1()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=f.startsWith(`#`)?document.getElementById(f.slice(1)):document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=S(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=P:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);
1if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)||(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?T(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}},I=`modulepreload`,L=function(e,t){return new URL(e,t).href},R={},z=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=L(t,n),t=s(t),t in R)return;R[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:I,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},B=new F({autoRaf:!0});document.addEventListener(`DOMContentLoaded`,()=>{let e=document.querySelector(`.hamburger`),t=document.querySelector(`.ilm-nav`);e.addEventListener(`click`,function(){this.classList.toggle(`is-active`);let e=this.classList.contains(`is-active`);this.setAttribute(`aria-expanded`,e?`true`:`false`),e?(t.classList.add(`is-open`),t.style.maxHeight=`100vh`):(t.style.maxHeight=`100vh`,requestAnimationFrame(()=>{t.style.maxHeight=`0px`}),t.classList.remove(`is-open`))});let n=document.querySelector(`.ilm-search-button`),r=document.getElementById(`ilm-search-dialog`);if(!n||!r)return;let i=r.querySelector(`.dialog-close-icon`),a=r.querySelector(`.search-field`);
1n.addEventListener(`click`,e=>{e.preventDefault(),r.showModal(),n.setAttribute(`aria-expanded`,`true`),a?.focus()}),i?.addEventListener(`click`,()=>{r.close()}),r.addEventListener(`click`,e=>{e.target===r&&r.close()}),r.addEventListener(`close`,()=>{n.setAttribute(`aria-expanded`,`false`),n.focus()}),new b({gallery:`.pswp-gallery`,children:`a`,pswpModule:()=>z(()=>import(`./photoswipe.esm-Cs2GTI41.js`),[],import.meta.url),padding:{top:20,bottom:20,left:20,right:20}}).init(),document.querySelectorAll(`.video-popup`).forEach(e=>{e.addEventListener(`click`,function(){let e=this.getAttribute(`rel`);(this.dataset.type||`internal`)===`yt`?s(e):o(e)}),e.addEventListener(`keydown`,function(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.click())})});function o(e){let t=document.querySelector(`.video-wrap[data-video-id="${e}"]`),n=document.querySelector(`video[data-video-id="${e}"]`);!t||!n||(t.open||t.showModal(),n.play(),t.addEventListener(`click`,e=>{e.target===t&&t.close()},{once:!0}),t.addEventListener(`close`,()=>{n.pause(),n.currentTime=0},{once:!0}))}function s(e){let t=document.querySelector(`.video-wrap[data-video-id="${e}"]`),n=t?.querySelector(`iframe`);!t||!n||(n.dataset.initialized?c(n):(n.src=u(n.src,{autoplay:`1`,rel:`0`,enablejsapi:`1`,origin:window.location.origin}),n.dataset.initialized=`true`),t.open||t.showModal(),t.addEventListener(`click`,e=>{e.target===t&&t.close()},{once:!0}),t.addEventListener(`close`,()=>{l(n)},{once:!0}))}function c(e){e.contentWindow.postMessage(JSON.stringify({event:`command`,func:`playVideo`,args:[]}),`*`)}function l(e){e.contentWindow.postMessage(JSON.stringify({event:`command`,func:`pauseVideo`,args:[]}),`*`)}function u(e,t={}){let n=new URL(e,window.location.origin);return Object.entries(t).forEach(([e,t])=>{n.searchParams.set(e,t)}),n.toString()}}),document.addEventListener(`DOMContentLoaded`,()=>{let e=document.querySelector(`#section-latest`);if(!e)return;let t=new URLSearchParams(window.location.search).get(`s`),n=document.body.classList.contains(`paged`),r=t&&t.trim()!==``;!n&&!r||B.scrollTo(e,{offset:-50,duration:1})}),document.addEventListener(`DOMContentLoaded`,()=>{let e=document.querySelector(`.ilm-search-news-button`),t=document.getElementById(`ilm-search-news-dialog`);if(!e||!t)return;let n=t.querySelector(`.dialog-close-icon`),r=t.querySelector(`.search-field`);e.addEventListener(`click`,n=>{n.preventDefault(),t.showModal(),e.setAttribute(`aria-expanded`,`true`),r?.focus()}),n?.addEventListener(`click`,()=>{t.close()}),t.addEventListener(`click`,e=>{e.target===t&&t.close()}),t.addEventListener(`close`,()=>{e.setAttribute(`aria-expanded`,`false`),e.focus()})}),document.addEventListener(`DOMContentLoaded`,()=>{let e=document.querySelector(`[data-action="categories"]`),t=document.querySelector(`#category-drawer`);e&&t&&e.addEventListener(`click`,n=>{n.preventDefault(),t.classList.contains(`is-open`)?(t.style.height=`${t.scrollHeight}px`,t.offsetHeight,t.style.height=`0px`,t.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`)):(t.classList.add(`is-open`),t.style.height=`${t.scrollHeight}px`,e.setAttribute(`aria-expanded`,`true`),t.addEventListener(`transitionend`,()=>{t.classList.contains(`is-open`)&&(t.style.height=`auto`)},{once:!0}))}),document.querySelectorAll(`.parent-term`).forEach(e=>{e.addEventListener(`click`,()=>{if(window.matchMedia(`(min-width: 1024px)`).matches)return;let t=e.dataset.termsId,n=document.querySelector(`.term-list[data-terms-parent="${t}"]`);if(!n)return;let r=e.querySelector(`.closed`),i=e.querySelector(`.open`);n.classList.contains(`is-open`)?(n.style.height=`${n.scrollHeight}px`,n.offsetHeight,n.style.height=`0px`,n.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`),r?.classList.remove(`hidden`),i?.classList.add(`hidden`)):(n.classList.add(`is-open`),n.style.height=`${n.scrollHeight}px`,e.setAttribute(`aria-expanded`,`true`),r?.classList.add(`hidden`),i?.classList.remove(`hidden`),n.addEventListener(`transitionend`,()=>{n.classList.contains(`is-open`)&&(n.style.height=`auto`)},{once:!0}))})})});
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.