UNPKG

flickrgallery

Version:
14 lines 118 kB
(function(Q,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(Q=typeof globalThis<"u"?globalThis:Q||self,h(Q.FlickrGallery={},Q.Vue))})(this,(function(Q,h){"use strict";/*! * pinia v3.0.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const dt=typeof window<"u";let ot;const Pt=s=>ot=s;process.env.NODE_ENV;const Qt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function rt(s){return s&&typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"&&typeof s.toJSON!="function"}var Tt;(function(s){s.direct="direct",s.patchObject="patch object",s.patchFunction="patch function"})(Tt||(Tt={}));function xe(s,t){for(const e in t){const i=t[e];if(!(e in s))continue;const n=s[e];rt(n)&&rt(i)&&!h.isRef(i)&&!h.isReactive(i)?s[e]=xe(n,i):s[e]=i}return s}const De=()=>{};function Ne(s,t,e,i=De){s.add(t);const n=()=>{s.delete(t)&&i()};return!e&&h.getCurrentScope()&&h.onScopeDispose(n),n}function pt(s,...t){s.forEach(e=>{e(...t)})}const Gi=s=>s(),Re=Symbol(),te=Symbol();function ee(s,t){s instanceof Map&&t instanceof Map?t.forEach((e,i)=>s.set(i,e)):s instanceof Set&&t instanceof Set&&t.forEach(s.add,s);for(const e in t){if(!t.hasOwnProperty(e))continue;const i=t[e],n=s[e];rt(n)&&rt(i)&&s.hasOwnProperty(e)&&!h.isRef(i)&&!h.isReactive(i)?s[e]=ee(n,i):s[e]=i}return s}const ji=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function qi(s){return!rt(s)||!Object.prototype.hasOwnProperty.call(s,ji)}const{assign:U}=Object;function ze(s){return!!(h.isRef(s)&&s.effect)}function Me(s,t,e,i){const{state:n,actions:o,getters:r}=t,l=e.state.value[s];let d;function p(){!l&&(process.env.NODE_ENV==="production"||!i)&&(e.state.value[s]=n?n():{});const m=process.env.NODE_ENV!=="production"&&i?h.toRefs(h.ref(n?n():{}).value):h.toRefs(e.state.value[s]);return U(m,o,Object.keys(r||{}).reduce((y,E)=>(process.env.NODE_ENV!=="production"&&E in m&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${E}" in store "${s}".`),y[E]=h.markRaw(h.computed(()=>{Pt(e);const w=e._s.get(s);return r[E].call(w,w)})),y),{}))}return d=ie(s,p,t,e,i,!0),d}function ie(s,t,e={},i,n,o){let r;const l=U({actions:{}},e);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const d={deep:!0};process.env.NODE_ENV!=="production"&&(d.onTrigger=g=>{p?w=g:p==!1&&!v._hotUpdating&&(Array.isArray(w)?w.push(g):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,m,y=new Set,E=new Set,w;const A=i.state.value[s];!o&&!A&&(process.env.NODE_ENV==="production"||!n)&&(i.state.value[s]={});const G=h.ref({});let ut;function $t(g){let u;p=m=!1,process.env.NODE_ENV!=="production"&&(w=[]),typeof g=="function"?(g(i.state.value[s]),u={type:Tt.patchFunction,storeId:s,events:w}):(ee(i.state.value[s],g),u={type:Tt.patchObject,payload:g,storeId:s,events:w});const P=ut=Symbol();h.nextTick().then(()=>{ut===P&&(p=!0)}),m=!0,pt(y,u,i.state.value[s])}const ge=o?function(){const{state:u}=e,P=u?u():{};this.$patch(R=>{U(R,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${s}" is built using the setup syntax and does not implement $reset().`)}:De;function ft(){r.stop(),y.clear(),E.clear(),i._s.delete(s)}const C=(g,u="")=>{if(Re in g)return g[te]=u,g;const P=function(){Pt(i);const R=Array.from(arguments),tt=new Set,kt=new Set;function _e(Z){tt.add(Z)}function ye(Z){kt.add(Z)}pt(E,{args:R,name:P[te],store:v,after:_e,onError:ye});let nt;try{nt=g.apply(this&&this.$id===s?this:v,R)}catch(Z){throw pt(kt,Z),Z}return nt instanceof Promise?nt.then(Z=>(pt(tt,Z),Z)).catch(Z=>(pt(kt,Z),Promise.reject(Z))):(pt(tt,nt),nt)};return P[Re]=!0,P[te]=u,P},Y=h.markRaw({actions:{},getters:{},state:[],hotState:G}),mt={_p:i,$id:s,$onAction:Ne.bind(null,E),$patch:$t,$reset:ge,$subscribe(g,u={}){const P=Ne(y,g,u.detached,()=>R()),R=r.run(()=>h.watch(()=>i.state.value[s],tt=>{(u.flush==="sync"?m:p)&&g({storeId:s,type:Tt.direct,events:w},tt)},U({},d,u)));return P},$dispose:ft},v=h.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt?U({_hmrPayload:Y,_customProperties:h.markRaw(new Set)},mt):mt);i._s.set(s,v);const X=(i._a&&i._a.runWithContext||Gi)(()=>i._e.run(()=>(r=h.effectScope()).run(()=>t({action:C}))));for(const g in X){const u=X[g];if(h.isRef(u)&&!ze(u)||h.isReactive(u))process.env.NODE_ENV!=="production"&&n?G.value[g]=h.toRef(X,g):o||(A&&qi(u)&&(h.isRef(u)?u.value=A[g]:ee(u,A[g])),i.state.value[s][g]=u),process.env.NODE_ENV!=="production"&&Y.state.push(g);else if(typeof u=="function"){const P=process.env.NODE_ENV!=="production"&&n?u:C(u,g);X[g]=P,process.env.NODE_ENV!=="production"&&(Y.actions[g]=u),l.actions[g]=u}else process.env.NODE_ENV!=="production"&&ze(u)&&(Y.getters[g]=o?e.getters[g]:u,dt&&(X._getters||(X._getters=h.markRaw([]))).push(g))}if(U(v,X),U(h.toRaw(v),X),Object.defineProperty(v,"$state",{get:()=>process.env.NODE_ENV!=="production"&&n?G.value:i.state.value[s],set:g=>{if(process.env.NODE_ENV!=="production"&&n)throw new Error("cannot set hotState");$t(u=>{U(u,g)})}}),process.env.NODE_ENV!=="production"&&(v._hotUpdate=h.markRaw(g=>{v._hotUpdating=!0,g._hmrPayload.state.forEach(u=>{if(u in v.$state){const P=g.$state[u],R=v.$state[u];typeof P=="object"&&rt(P)&&rt(R)?xe(P,R):g.$state[u]=R}v[u]=h.toRef(g.$state,u)}),Object.keys(v.$state).forEach(u=>{u in g.$state||delete v[u]}),p=!1,m=!1,i.state.value[s]=h.toRef(g._hmrPayload,"hotState"),m=!0,h.nextTick().then(()=>{p=!0});for(const u in g._hmrPayload.actions){const P=g[u];v[u]=C(P,u)}for(const u in g._hmrPayload.getters){const P=g._hmrPayload.getters[u],R=o?h.computed(()=>(Pt(i),P.call(v,v))):P;v[u]=R}Object.keys(v._hmrPayload.getters).forEach(u=>{u in g._hmrPayload.getters||delete v[u]}),Object.keys(v._hmrPayload.actions).forEach(u=>{u in g._hmrPayload.actions||delete v[u]}),v._hmrPayload=g._hmrPayload,v._getters=g._getters,v._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const g={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(u=>{Object.defineProperty(v,u,U({value:v[u]},g))})}return i._p.forEach(g=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const u=r.run(()=>g({store:v,app:i._a,pinia:i,options:l}));Object.keys(u||{}).forEach(P=>v._customProperties.add(P)),U(v,u)}else U(v,r.run(()=>g({store:v,app:i._a,pinia:i,options:l})))}),process.env.NODE_ENV!=="production"&&v.$state&&typeof v.$state=="object"&&typeof v.$state.constructor=="function"&&!v.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be state: () => new MyClass() Found in store "${v.$id}".`),A&&o&&e.hydrate&&e.hydrate(v.$state,A),p=!0,m=!0,v}/*! #__NO_SIDE_EFFECTS__ */function Yi(s,t,e){let i;const n=typeof t=="function";i=n?e:t;function o(r,l){const d=h.hasInjectionContext();if(r=(process.env.NODE_ENV==="test"&&ot&&ot._testing?null:r)||(d?h.inject(Qt,null):null),r&&Pt(r),process.env.NODE_ENV!=="production"&&!ot)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help. This will fail in production.`);r=ot,r._s.has(s)||(n?ie(s,t,i,r):Me(s,i,r),process.env.NODE_ENV!=="production"&&(o._pinia=r));const p=r._s.get(s);if(process.env.NODE_ENV!=="production"&&l){const m="__hot:"+s,y=n?ie(m,t,i,r,!0):Me(m,U({},i),r,!0);l._hotUpdate(y),delete r.state.value[m],r._s.delete(m)}if(process.env.NODE_ENV!=="production"&&dt){const m=h.getCurrentInstance();if(m&&m.proxy&&!l){const y=m.proxy,E="_pStores"in y?y._pStores:y._pStores={};E[s]=p}}return p}return o.$id=s,o}function Xi(s){Pt(s)}function Ki(s,t){if(s==null)return;let e=s;for(let i=0;i<t.length;i++){if(e===void 0||e[t[i]]===void 0)return;if(e===null||e[t[i]]===null)return null;e=e[t[i]]}return e}function se(s,t,e){if(e.length===0)return t;const i=e[0];return e.length>1&&(t=se(typeof s!="object"||s===null||!Object.prototype.hasOwnProperty.call(s,i)?Number.isInteger(Number(e[1]))?[]:{}:s[i],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(i))&&Array.isArray(s)?s.slice()[i]:Object.assign({},s,{[i]:t})}function ke(s,t){if(s==null||t.length===0)return s;if(t.length===1){if(s==null)return s;if(Number.isInteger(t[0])&&Array.isArray(s))return Array.prototype.slice.call(s,0).splice(t[0],1);const e={};for(const i in s)e[i]=s[i];return delete e[t[0]],e}if(s[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(s))return Array.prototype.concat.call([],s);const e={};for(const i in s)e[i]=s[i];return e}return se(s,ke(s[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Fe(s,t){return t.map(e=>e.split(".")).map(e=>[e,Ki(s,e)]).filter(e=>e[1]!==void 0).reduce((e,i)=>se(e,i[1],i[0]),{})}function Ze(s,t){return t.map(e=>e.split(".")).reduce((e,i)=>ke(e,i),s)}function Be(s,{storage:t,serializer:e,key:i,debug:n,pick:o,omit:r,beforeHydrate:l,afterHydrate:d},p,m=!0){try{m&&(l==null||l(p));const y=t.getItem(i);if(y){const E=e.deserialize(y),w=o?Fe(E,o):E,A=r?Ze(w,r):w;s.$patch(A)}m&&(d==null||d(p))}catch(y){n&&console.error("[pinia-plugin-persistedstate]",y)}}function He(s,{storage:t,serializer:e,key:i,debug:n,pick:o,omit:r}){try{const l=o?Fe(s,o):s,d=r?Ze(l,r):l,p=e.serialize(d);t.setItem(i,p)}catch(l){n&&console.error("[pinia-plugin-persistedstate]",l)}}function Ji(s,t){return typeof s=="function"?s(t):typeof s=="string"?s:t}function Qi(s,t,e){const{pinia:i,store:n,options:{persist:o=e}}=s;if(!o)return;// v8 ignore if -- @preserve if(!(n.$id in i.state.value)){const l=i._s.get(n.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const r=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);n.$hydrate=({runHooks:l=!0}={})=>{r.forEach(d=>{Be(n,d,s,l)})},n.$persist=()=>{r.forEach(l=>{He(n.$state,l)})},r.forEach(l=>{Be(n,l,s),n.$subscribe((d,p)=>He(p,l),{detached:!0})})}function ts(s={}){return function(t){Qi(t,e=>{const i=Ji(e.key,t.store.$id);return{key:(s.key?s.key:n=>n)(i),debug:e.debug??s.debug??!1,serializer:e.serializer??s.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>JSON.parse(n)},storage:e.storage??s.storage??window.localStorage,beforeHydrate:e.beforeHydrate??s.beforeHydrate,afterHydrate:e.afterHydrate??s.afterHydrate,pick:e.pick,omit:e.omit}},s.auto??!1)}}var Ue=ts();/*! * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com * (c) 2024 Dmytro Semenov */function At(s,t,e){const i=document.createElement(t);return s&&(i.className=s),e&&e.appendChild(i),i}function es(s,t,e){let i=`translate3d(${s}px,0px,0)`;return e!==void 0&&(i+=` scale3d(${e},${e},1)`),i}function ne(s,t,e){s.style.width=typeof t=="number"?`${t}px`:t,s.style.height=typeof e=="number"?`${e}px`:e}const V={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function is(s){return"button"in s&&s.button===1||s.ctrlKey||s.metaKey||s.altKey||s.shiftKey}function bt(s,t,e=document){let i=[];if(s instanceof Element)i=[s];else if(s instanceof NodeList||Array.isArray(s))i=Array.from(s);else{const n=typeof s=="string"?s:t;n&&(i=Array.from(e.querySelectorAll(n)))}return i}function ss(s){return typeof s=="function"&&s.prototype&&s.prototype.goTo}function Ve(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let ns=class{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}},os=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var n,o,r;this._filters[t]||(this._filters[t]=[]),(n=this._filters[t])===null||n===void 0||n.push({fn:e,priority:i}),(o=this._filters[t])===null||o===void 0||o.sort((l,d)=>l.priority-d.priority),(r=this.pswp)===null||r===void 0||r.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return(i=this._filters[t])===null||i===void 0||i.forEach(n=>{e[0]=n.fn.apply(this,e)}),e[0]}on(t,e){var i,n;this._listeners[t]||(this._listeners[t]=[]),(i=this._listeners[t])===null||i===void 0||i.push(e),(n=this.pswp)===null||n===void 0||n.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(n=>e!==n)),(i=this.pswp)===null||i===void 0||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const n=new ns(t,e);return(i=this._listeners[t])===null||i===void 0||i.forEach(o=>{o.call(this,n)}),n}},rs=class{constructor(t,e){if(this.element=At("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&(this.element.tagName==="IMG"?(ne(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=es(0,0,t/250)):ne(this.element,t,e))}destroy(){var t;(t=this.element)!==null&&t!==void 0&&t.parentNode&&this.element.remove(),this.element=null}},as=class{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,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=V.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(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new rs(i,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=At("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=At("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=(e=this.data.src)!==null&&e!==void 0?e:"",n.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=V.LOADING,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=V.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===V.LOADED||this.state===V.ERROR)&&this.removePlaceholder())}onError(){this.state=V.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===V.LOADING,this)}isError(){return this.state===V.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(ne(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==V.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}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(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=At("pswp__error-msg","div");i.innerText=(t=(e=this.instance.options)===null||e===void 0?void 0:e.errorMsg)!==null&&t!==void 0?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=At("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),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===V.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||Ve())?(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&&!Ve()?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===V.LOADED||this.state===V.ERROR)&&this.removePlaceholder()))}};function ls(s,t){if(s.getViewportSizeFn){const e=s.getViewportSizeFn(s,t);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function Ht(s,t,e,i,n){let o=0;if(t.paddingFn)o=t.paddingFn(e,i,n)[s];else if(t.padding)o=t.padding[s];else{const r="padding"+s[0].toUpperCase()+s.slice(1);t[r]&&(o=t[r])}return Number(o)||0}function hs(s,t,e,i){return{x:t.x-Ht("left",s,t,e,i)-Ht("right",s,t,e,i),y:t.y-Ht("top",s,t,e,i)-Ht("bottom",s,t,e,i)}}const We=4e3;let cs=class{constructor(t,e,i,n){this.pswp=n,this.options=t,this.itemData=e,this.index=i,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(t,e,i){const n={x:t,y:e};this.elementSize=n,this.panAreaSize=i;const o=i.x/n.x,r=i.y/n.y;this.fit=Math.min(1,o<r?o:r),this.fill=Math.min(1,o>r?o:r),this.vFill=Math.min(1,r),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(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>We&&(t=We/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function $e(s,t,e){const i=t.createContentFromData(s,e);let n;const{options:o}=t;if(o){n=new cs(o,s,-1);let r;t.pswp?r=t.pswp.viewportSize:r=ls(o,t);const l=hs(o,r,s,e);n.update(i.width,i.height,l)}return i.lazyLoad(),n&&i.setDisplayedSize(Math.ceil(i.width*n.initial),Math.ceil(i.height*n.initial)),i}function ds(s,t){const e=t.getItemData(s);if(!t.dispatch("lazyLoadSlide",{index:s,itemData:e}).defaultPrevented)return $e(e,t,s)}let ps=class extends os{getNumItems(){var t;let e=0;const i=(t=this.options)===null||t===void 0?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const n=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",n.numItems,i)}createContentFromData(t,e){return new as(t,this,e)}getItemData(t){var e;const i=(e=this.options)===null||e===void 0?void 0:e.dataSource;let n={};Array.isArray(i)?n=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),n=i.items[t]);let o=n;o instanceof Element&&(o=this._domElementToItemData(o));const r=this.dispatch("itemData",{itemData:o||{},index:t});return this.applyFilters("itemData",r.itemData,t)}_getGalleryDOMElements(t){var e,i;return(e=this.options)!==null&&e!==void 0&&e.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?bt(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const o=t.querySelector("img");if(o){var n;e.msrc=o.currentSrc||o.src,e.alt=(n=o.getAttribute("alt"))!==null&&n!==void 0?n:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return $e(t,this,e)}};class us extends ps{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){bt(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(is(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const n={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,n,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,n=bt(this.options.children,this.options.childSelector,t.currentTarget).findIndex(o=>o===e||o.contains(e));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const n=bt(this.options.gallery);n[0]&&(e={gallery:n[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const n=[],o=typeof i.pswpModule;if(ss(i.pswpModule))n.push(Promise.resolve(i.pswpModule));else{if(o==="string")throw new Error("pswpModule as string is no longer supported");if(o==="function")n.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&n.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=ds(t,this));const r=++this._uid;Promise.all(n).then(l=>{if(this.shouldOpen){const d=l[0];this._openPhotoswipe(d,r)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(n=>{var o;(o=this._listeners[n])===null||o===void 0||o.forEach(r=>{i.on(n,r)})}),Object.keys(this._filters).forEach(n=>{var o;(o=this._filters[n])===null||o===void 0||o.forEach(r=>{i.addFilter(n,r.fn,r.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var t;(t=this.pswp)===null||t===void 0||t.destroy(),this.shouldOpen=!1,this._listeners={},bt(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}function fs(s="default"){const t=`flickr-${s}`;return Yi(t,{state:()=>({photos:[],totalPages:0,totalPictures:0,loading:!1,error:null}),actions:{async fetchPhotos(i){this.loading=!0,this.error=null;try{const n=await fetch(i);if(!n.ok)throw new Error(`HTTP ${n.status}`);const o=await n.json();if(o!=null&&o.stat&&o.stat!=="ok")throw new Error(o!=null&&o.message?`Flickr: ${o.message}`:"Flickr API Error");o!=null&&o.photos?(this.photos=Array.isArray(o.photos.photo)?o.photos.photo:[],this.totalPages=Number(o.photos.pages||0),this.totalPictures=Number(o.photos.total||0)):o!=null&&o.photoset?(this.photos=Array.isArray(o.photoset.photo)?o.photoset.photo:[],this.totalPages=Number(o.photoset.pages||0),this.totalPictures=Number(o.photoset.total||0)):(this.photos=[],this.totalPages=0,this.totalPictures=0,console.error("Unerwartete Flickr API Antwortstruktur",o))}catch(n){console.error("Fehler beim Laden der Flickr-Fotos im Store:",n),this.error=(n==null?void 0:n.message)||String(n),this.photos=[],this.totalPages=0,this.totalPictures=0}finally{this.loading=!1}}}})()}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Ge,setPrototypeOf:je,isFrozen:ms,getPrototypeOf:gs,getOwnPropertyDescriptor:_s}=Object;let{freeze:M,seal:W,create:oe}=Object,{apply:re,construct:ae}=typeof Reflect<"u"&&Reflect;M||(M=function(t){return t}),W||(W=function(t){return t}),re||(re=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return t.apply(e,n)}),ae||(ae=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return new t(...i)});const Ut=F(Array.prototype.forEach),ys=F(Array.prototype.lastIndexOf),qe=F(Array.prototype.pop),It=F(Array.prototype.push),vs=F(Array.prototype.splice),Vt=F(String.prototype.toLowerCase),le=F(String.prototype.toString),he=F(String.prototype.match),Lt=F(String.prototype.replace),Ss=F(String.prototype.indexOf),Es=F(String.prototype.trim),j=F(Object.prototype.hasOwnProperty),k=F(RegExp.prototype.test),Ct=ws(TypeError);function F(s){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return re(s,t,i)}}function ws(s){return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return ae(s,e)}}function S(s,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vt;je&&je(s,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const o=e(n);o!==n&&(ms(t)||(t[i]=o),n=o)}s[n]=!0}return s}function Ps(s){for(let t=0;t<s.length;t++)j(s,t)||(s[t]=null);return s}function q(s){const t=oe(null);for(const[e,i]of Ge(s))j(s,e)&&(Array.isArray(i)?t[e]=Ps(i):i&&typeof i=="object"&&i.constructor===Object?t[e]=q(i):t[e]=i);return t}function Ot(s,t){for(;s!==null;){const i=_s(s,t);if(i){if(i.get)return F(i.get);if(typeof i.value=="function")return F(i.value)}s=gs(s)}function e(){return null}return e}const Ye=M(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ce=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),de=M(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ts=M(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pe=M(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),As=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Xe=M(["#text"]),Ke=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ue=M(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Je=M(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Wt=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bs=W(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Is=W(/<%[\w\W]*|[\w\W]*%>/gm),Ls=W(/\$\{[\w\W]*/gm),Cs=W(/^data-[\-\w.\u00B7-\uFFFF]+$/),Os=W(/^aria-[\-\w]+$/),Qe=W(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xs=W(/^(?:\w+script|data):/i),Ds=W(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=W(/^html$/i),Ns=W(/^[a-z][.\w]*(-[.\w]+)+$/i);var ei=Object.freeze({__proto__:null,ARIA_ATTR:Os,ATTR_WHITESPACE:Ds,CUSTOM_ELEMENT:Ns,DATA_ATTR:Cs,DOCTYPE_NAME:ti,ERB_EXPR:Is,IS_ALLOWED_URI:Qe,IS_SCRIPT_OR_DATA:xs,MUSTACHE_EXPR:bs,TMPLIT_EXPR:Ls});const xt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rs=function(){return typeof window>"u"?null:window},zs=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ii=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function si(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rs();const t=_=>si(_);if(t.version="3.3.1",t.removed=[],!s||!s.document||s.document.nodeType!==xt.document||!s.Element)return t.isSupported=!1,t;let{document:e}=s;const i=e,n=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:r,Node:l,Element:d,NodeFilter:p,NamedNodeMap:m=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:y,DOMParser:E,trustedTypes:w}=s,A=d.prototype,G=Ot(A,"cloneNode"),ut=Ot(A,"remove"),$t=Ot(A,"nextSibling"),ge=Ot(A,"childNodes"),ft=Ot(A,"parentNode");if(typeof r=="function"){const _=e.createElement("template");_.content&&_.content.ownerDocument&&(e=_.content.ownerDocument)}let C,Y="";const{implementation:mt,createNodeIterator:v,createDocumentFragment:wi,getElementsByTagName:X}=e,{importNode:g}=i;let u=ii();t.isSupported=typeof Ge=="function"&&typeof ft=="function"&&mt&&mt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:R,TMPLIT_EXPR:tt,DATA_ATTR:kt,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:Z}=ei;let{IS_ALLOWED_URI:Pi}=ei,x=null;const Ti=S({},[...Ye,...ce,...de,...pe,...Xe]);let D=null;const Ai=S({},[...Ke,...ue,...Je,...Wt]);let b=Object.seal(oe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ft=null,ve=null;const gt=Object.seal(oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let bi=!0,Se=!0,Ii=!1,Li=!0,_t=!1,Gt=!0,ht=!1,Ee=!1,we=!1,yt=!1,jt=!1,qt=!1,Ci=!0,Oi=!1;const co="user-content-";let Pe=!0,Zt=!1,vt={},K=null;const Te=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let xi=null;const Di=S({},["audio","video","img","source","image","track"]);let Ae=null;const Ni=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let St=et,be=!1,Ie=null;const po=S({},[Yt,Xt,et],le);let Kt=S({},["mi","mo","mn","ms","mtext"]),Jt=S({},["annotation-xml"]);const uo=S({},["title","style","font","a","script"]);let Bt=null;const fo=["application/xhtml+xml","text/html"],mo="text/html";let O=null,Et=null;const go=e.createElement("form"),Ri=function(a){return a instanceof RegExp||a instanceof Function},Le=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===a)){if((!a||typeof a!="object")&&(a={}),a=q(a),Bt=fo.indexOf(a.PARSER_MEDIA_TYPE)===-1?mo:a.PARSER_MEDIA_TYPE,O=Bt==="application/xhtml+xml"?le:Vt,x=j(a,"ALLOWED_TAGS")?S({},a.ALLOWED_TAGS,O):Ti,D=j(a,"ALLOWED_ATTR")?S({},a.ALLOWED_ATTR,O):Ai,Ie=j(a,"ALLOWED_NAMESPACES")?S({},a.ALLOWED_NAMESPACES,le):po,Ae=j(a,"ADD_URI_SAFE_ATTR")?S(q(Ni),a.ADD_URI_SAFE_ATTR,O):Ni,xi=j(a,"ADD_DATA_URI_TAGS")?S(q(Di),a.ADD_DATA_URI_TAGS,O):Di,K=j(a,"FORBID_CONTENTS")?S({},a.FORBID_CONTENTS,O):Te,Ft=j(a,"FORBID_TAGS")?S({},a.FORBID_TAGS,O):q({}),ve=j(a,"FORBID_ATTR")?S({},a.FORBID_ATTR,O):q({}),vt=j(a,"USE_PROFILES")?a.USE_PROFILES:!1,bi=a.ALLOW_ARIA_ATTR!==!1,Se=a.ALLOW_DATA_ATTR!==!1,Ii=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Li=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_t=a.SAFE_FOR_TEMPLATES||!1,Gt=a.SAFE_FOR_XML!==!1,ht=a.WHOLE_DOCUMENT||!1,yt=a.RETURN_DOM||!1,jt=a.RETURN_DOM_FRAGMENT||!1,qt=a.RETURN_TRUSTED_TYPE||!1,we=a.FORCE_BODY||!1,Ci=a.SANITIZE_DOM!==!1,Oi=a.SANITIZE_NAMED_PROPS||!1,Pe=a.KEEP_CONTENT!==!1,Zt=a.IN_PLACE||!1,Pi=a.ALLOWED_URI_REGEXP||Qe,St=a.NAMESPACE||et,Kt=a.MATHML_TEXT_INTEGRATION_POINTS||Kt,Jt=a.HTML_INTEGRATION_POINTS||Jt,b=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Ri(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Ri(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_t&&(Se=!1),jt&&(yt=!0),vt&&(x=S({},Xe),D=[],vt.html===!0&&(S(x,Ye),S(D,Ke)),vt.svg===!0&&(S(x,ce),S(D,ue),S(D,Wt)),vt.svgFilters===!0&&(S(x,de),S(D,ue),S(D,Wt)),vt.mathMl===!0&&(S(x,pe),S(D,Je),S(D,Wt))),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?gt.tagCheck=a.ADD_TAGS:(x===Ti&&(x=q(x)),S(x,a.ADD_TAGS,O))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?gt.attributeCheck=a.ADD_ATTR:(D===Ai&&(D=q(D)),S(D,a.ADD_ATTR,O))),a.ADD_URI_SAFE_ATTR&&S(Ae,a.ADD_URI_SAFE_ATTR,O),a.FORBID_CONTENTS&&(K===Te&&(K=q(K)),S(K,a.FORBID_CONTENTS,O)),a.ADD_FORBID_CONTENTS&&(K===Te&&(K=q(K)),S(K,a.ADD_FORBID_CONTENTS,O)),Pe&&(x["#text"]=!0),ht&&S(x,["html","head","body"]),x.table&&(S(x,["tbody"]),delete Ft.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=a.TRUSTED_TYPES_POLICY,Y=C.createHTML("")}else C===void 0&&(C=zs(w,n)),C!==null&&typeof Y=="string"&&(Y=C.createHTML(""));M&&M(a),Et=a}},zi=S({},[...ce,...de,...Ts]),Mi=S({},[...pe,...As]),_o=function(a){let c=ft(a);(!c||!c.tagName)&&(c={namespaceURI:St,tagName:"template"});const f=Vt(a.tagName),T=Vt(c.tagName);return Ie[a.namespaceURI]?a.namespaceURI===Xt?c.namespaceURI===et?f==="svg":c.namespaceURI===Yt?f==="svg"&&(T==="annotation-xml"||Kt[T]):!!zi[f]:a.namespaceURI===Yt?c.namespaceURI===et?f==="math":c.namespaceURI===Xt?f==="math"&&Jt[T]:!!Mi[f]:a.namespaceURI===et?c.namespaceURI===Xt&&!Jt[T]||c.namespaceURI===Yt&&!Kt[T]?!1:!Mi[f]&&(uo[f]||!zi[f]):!!(Bt==="application/xhtml+xml"&&Ie[a.namespaceURI]):!1},J=function(a){It(t.removed,{element:a});try{ft(a).removeChild(a)}catch{ut(a)}},ct=function(a,c){try{It(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{It(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is")if(yt||jt)try{J(c)}catch{}else try{c.setAttribute(a,"")}catch{}},ki=function(a){let c=null,f=null;if(we)a="<remove></remove>"+a;else{const L=he(a,/^[\r\n\t ]+/);f=L&&L[0]}Bt==="application/xhtml+xml"&&St===et&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const T=C?C.createHTML(a):a;if(St===et)try{c=new E().parseFromString(T,Bt)}catch{}if(!c||!c.documentElement){c=mt.createDocument(St,"template",null);try{c.documentElement.innerHTML=be?Y:T}catch{}}const z=c.body||c.documentElement;return a&&f&&z.insertBefore(e.createTextNode(f),z.childNodes[0]||null),St===et?X.call(c,ht?"html":"body")[0]:ht?c.documentElement:z},Fi=function(a){return v.call(a.ownerDocument||a,a,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ce=function(a){return a instanceof y&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof m)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Zi=function(a){return typeof l=="function"&&a instanceof l};function it(_,a,c){Ut(_,f=>{f.call(t,a,c,Et)})}const Bi=function(a){let c=null;if(it(u.beforeSanitizeElements,a,null),Ce(a))return J(a),!0;const f=O(a.nodeName);if(it(u.uponSanitizeElement,a,{tagName:f,allowedTags:x}),Gt&&a.hasChildNodes()&&!Zi(a.firstElementChild)&&k(/<[/\w!]/g,a.innerHTML)&&k(/<[/\w!]/g,a.textContent)||a.nodeType===xt.progressingInstruction||Gt&&a.nodeType===xt.comment&&k(/<[/\w]/g,a.data))return J(a),!0;if(!(gt.tagCheck instanceof Function&&gt.tagCheck(f))&&(!x[f]||Ft[f])){if(!Ft[f]&&Ui(f)&&(b.tagNameCheck instanceof RegExp&&k(b.tagNameCheck,f)||b.tagNameCheck instanceof Function&&b.tagNameCheck(f)))return!1;if(Pe&&!K[f]){const T=ft(a)||a.parentNode,z=ge(a)||a.childNodes;if(z&&T){const L=z.length;for(let B=L-1;B>=0;--B){const st=G(z[B],!0);st.__removalCount=(a.__removalCount||0)+1,T.insertBefore(st,$t(a))}}}return J(a),!0}return a instanceof d&&!_o(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&k(/<\/no(script|embed|frames)/i,a.innerHTML)?(J(a),!0):(_t&&a.nodeType===xt.text&&(c=a.textContent,Ut([P,R,tt],T=>{c=Lt(c,T," ")}),a.textContent!==c&&(It(t.removed,{element:a.cloneNode()}),a.textContent=c)),it(u.afterSanitizeElements,a,null),!1)},Hi=function(a,c,f){if(Ci&&(c==="id"||c==="name")&&(f in e||f in go))return!1;if(!(Se&&!ve[c]&&k(kt,c))){if(!(bi&&k(_e,c))){if(!(gt.attributeCheck instanceof Function&&gt.attributeCheck(c,a))){if(!D[c]||ve[c]){if(!(Ui(a)&&(b.tagNameCheck instanceof RegExp&&k(b.tagNameCheck,a)||b.tagNameCheck instanceof Function&&b.tagNameCheck(a))&&(b.attributeNameCheck instanceof RegExp&&k(b.attributeNameCheck,c)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(c,a))||c==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&k(b.tagNameCheck,f)||b.tagNameCheck instanceof Function&&b.tagNameCheck(f))))return!1}else if(!Ae[c]){if(!k(Pi,Lt(f,nt,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Ss(f,"data:")===0&&xi[a])){if(!(Ii&&!k(ye,Lt(f,nt,"")))){if(f)return!1}}}}}}}return!0},Ui=function(a){return a!=="annotation-xml"&&he(a,Z)},Vi=function(a){it(u.beforeSanitizeAttributes,a,null);const{attributes:c}=a;if(!c||Ce(a))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let T=c.length;for(;T--;){const z=c[T],{name:L,namespaceURI:B,value:st}=z,wt=O(L),Oe=st;let N=L==="value"?Oe:Es(Oe);if(f.attrName=wt,f.attrValue=N,f.keepAttr=!0,f.forceKeepAttr=void 0,it(u.uponSanitizeAttribute,a,f),N=f.attrValue,Oi&&(wt==="id"||wt==="name")&&(ct(L,a),N=co+N),Gt&&k(/((--!?|])>)|<\/(style|title|textarea)/i,N)){ct(L,a);continue}if(wt==="attributename"&&he(N,"href")){ct(L,a);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){ct(L,a);continue}if(!Li&&k(/\/>/i,N)){ct(L,a);continue}_t&&Ut([P,R,tt],$i=>{N=Lt(N,$i," ")});const Wi=O(a.nodeName);if(!Hi(Wi,wt,N)){ct(L,a);continue}if(C&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!B)switch(w.getAttributeType(Wi,wt)){case"TrustedHTML":{N=C.createHTML(N);break}case"TrustedScriptURL":{N=C.createScriptURL(N);break}}if(N!==Oe)try{B?a.setAttributeNS(B,L,N):a.setAttribute(L,N),Ce(a)?J(a):qe(t.removed)}catch{ct(L,a)}}it(u.afterSanitizeAttributes,a,null)},yo=function _(a){let c=null;const f=Fi(a);for(it(u.beforeSanitizeShadowDOM,a,null);c=f.nextNode();)it(u.uponSanitizeShadowNode,c,null),Bi(c),Vi(c),c.content instanceof o&&_(c.content);it(u.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(_){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,T=null,z=null;if(be=!_,be&&(_="<!-->"),typeof _!="string"&&!Zi(_))if(typeof _.toString=="function"){if(_=_.toString(),typeof _!="string")throw Ct("dirty is not a string, aborting")}else throw Ct("toString is not a function");if(!t.isSupported)return _;if(Ee||Le(a),t.removed=[],typeof _=="string"&&(Zt=!1),Zt){if(_.nodeName){const st=O(_.nodeName);if(!x[st]||Ft[st])throw Ct("root node is forbidden and cannot be sanitized in-place")}}else if(_ instanceof l)c=ki("<!---->"),f=c.ownerDocument.importNode(_,!0),f.nodeType===xt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!yt&&!_t&&!ht&&_.indexOf("<")===-1)return C&&qt?C.createHTML(_):_;if(c=ki(_),!c)return yt?null:qt?Y:""}c&&we&&J(c.firstChild);const L=Fi(Zt?_:c);for(;T=L.nextNode();)Bi(T),Vi(T),T.content instanceof o&&yo(T.content);if(Zt)return _;if(yt){if(jt)for(z=wi.call(c.ownerDocument);c.firstChild;)z.appendChild(c.firstChild);else z=c;return(D.shadowroot||D.shadowrootmode)&&(z=g.call(i,z,!0)),z}let B=ht?c.outerHTML:c.innerHTML;return ht&&x["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&k(ti,c.ownerDocument.doctype.name)&&(B="<!DOCTYPE "+c.ownerDocument.doctype.name+`> `+B),_t&&Ut([P,R,tt],st=>{B=Lt(B,st," ")}),C&&qt?C.createHTML(B):B},t.setConfig=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(_),Ee=!0},t.clearConfig=function(){Et=null,Ee=!1},t.isValidAttribute=function(_,a,c){Et||Le({});const f=O(_),T=O(a);return Hi(f,T,c)},t.addHook=function(_,a){typeof a=="function"&&It(u[_],a)},t.removeHook=function(_,a){if(a!==void 0){const c=ys(u[_],a);return c===-1?void 0:vs(u[_],c,1)[0]}return qe(u[_])},t.removeHooks=function(_){u[_]=[]},t.removeAllHooks=function(){u=ii()},t}var Ms=si();const ni=(s,t)=>{const e=s.__vccOpts||s;for(const[i,n]of t)e[i]=n;return e},ks={name:"Image",props:{image:{type:Object,required:!0},enableLightbox:{type:Boolean,default:!0}},data(){return{imageEnlarged:!1}},computed:{descriptionHtml(){var e,i;const s=((e=this.image)==null?void 0:e.title)||"",t=(i=this.image)!=null&&i.description?this.image.description._content||this.image.description:"";return`<b>${s}</b><br>${t}`},sanitizedDescription(){return Ms.sanitize(this.descriptionHtml,{USE_PROFILES:{html:!0}})}},methods:{enlargeImage(){this.imageEnlarged=!0},shrinkImage(){this.imageEnlarged=!1}}},