PluginProbe
Meow Gallery / 5.5.6
Meow Gallery v5.5.6
5.5.6 5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 All 158 releases
← All changes | app/galleries.js +4 -4 5.5.2 → 5.5.6 View file →
@@ -1,7 +1,7 @@
1 -(()=>{"use strict";var t,e,n,r,o={},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return o[t].call(n.exports,n,n.exports,a),n.exports}a.m=o,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var l=2&r&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,a.d(o,i),o},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,n)=>(a.f[n](t,e),e)),[])),a.u=t=>"leaflet.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="meow-gallery:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);else{var l,c;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){l=f;break}}l||(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=t),n[t]=[e];var d=(e,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((t=>t(r))),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),c&&document.head.appendChild(l)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={619:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(e),l=new Error;a.l(i,(n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,l,c]=n,s=0;if(i.some((e=>0!==t[e]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(c)c(a)}for(e&&e(n);s<i.length;s++)o=i[s],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.wpJsonMglGalleries=self.wpJsonMglGalleries||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var l,c,s,u,f,d,p,m,h,y,g,v={},b=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function S(t,e){for(var n in e)t[n]=e[n];return t}function x(t){var e=t.parentNode;e&&e.removeChild(t)}function O(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return j(t,a,r,o,null)}function j(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=c.vnode&&c.vnode(i),i}function E(t){return t.children}function I(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?k(t):null}function P(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return P(t)}}function N(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!T.__r++||f!==c.debounceRendering)&&((f=c.debounceRendering)||d)(T)}function T(){var t,e,n,r,o,i,a,l;for(u.sort(p);t=u.shift();)t.__d&&(e=u.length,r=void 0,i=(o=(n=t).__v).__e,a=[],l=[],n.__P&&((r=S({},o)).__v=o.__v+1,c.vnode&&c.vnode(r),H(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?k(o):i,!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,U(a,r,l),r.__e!=i&&P(r)),u.length>e&&u.sort(p));T.__r=0}function A(t,e,n,r,o,i,a,l,c,s,u){var f,d,p,m,h,y=r&&r.__k||b,g=e.length;for(n.__d=c,M(n,e,y),c=n.__d,f=0;f<g;f++)null!=(p=n.__k[f])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?v:y[p.__i]||v,p.__i=f,H(t,p,d,o,i,a,l,c,s,u),m=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&W(d.ref,null,p),u.push(p.ref,p.__c||m,p)),null==h&&null!=m&&(h=m),65536&p.__u||d.__k===p.__k?(c&&!c.isConnected&&(c=k(d)),c=C(p,c,t)):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function M(t,e,n){var r,o,i,a,l,c=e.length,s=n.length,u=s,f=0;for(t.__k=[],r=0;r<c;r++)a=r+f,null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?j(null,o,null,null,null):w(o)?j(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?j(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,l=D(o,n,a,u),o.__i=l,i=null,-1!==l&&(u--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&f--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?f++:l>a?u>c-a?f+=l-a:f--:l<a?l==a-1&&(f=l-a):f=0,l!==r+f&&(o.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),B(i,i,!1),n[a]=null,u--);if(u)for(r=0;r<s;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),B(i,i))}function C(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=C(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function D(t,e,n,r){var o=t.key,i=t.type,a=n-1,l=n+1,c=e[n];if(null===c||c&&o==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;a>=0||l<e.length;){if(a>=0){if((c=e[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l<e.length){if((c=e[l])&&!(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function G(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function z(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||G(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||G(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=m,t.addEventListener(e,i?y:h,i)):t.removeEventListener(e,i?y:h,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function R(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=m++;else if(e.t<n.u)return;return n(c.event?c.event(e):e)}}}function H(t,e,n,r,o,i,a,l,s,u){var f,d,p,m,h,y,g,v,b,_,x,O,j,k,L,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),i=[l=e.__e=n.__e]),(f=c.__b)&&f(e);t:if("function"==typeof P)try{if(v=e.props,b=(f=P.contextType)&&r[f.__c],_=f?b?b.props.value:f.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?e.__c=d=new P(v,_):(e.__c=d=new I(v,_),d.constructor=P,d.render=F),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(v,d.__s))),m=d.props,h=d.state,d.__v=e,p)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&v!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,_),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,h,y)}))}if(d.context=_,d.props=v,d.__P=t,d.__e=!1,O=c.__r,j=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,O&&O(e),f=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,O&&O(e),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++j<25);d.state=d.__s,null!=d.getChildContext&&(r=S(S({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(m,h)),A(t,w(L=null!=f&&f.type===E&&null==f.key?f.props.children:f)?L:[L],e,n,r,o,i,a,l,s,u),d.base=e.__e,e.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,s||null!=i?(e.__e=l,e.__u|=s?160:32,i[i.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),c.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=q(n.__e,e,n,r,o,i,a,s,u);(f=c.diffed)&&f(e)}function U(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)W(n[r],n[++r],n[++r]);c.__c&&c.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){c.__e(t,e.__v)}}))}function q(t,e,n,r,o,i,a,c,s){var u,f,d,p,m,h,y,g=n.props,b=e.props,_=e.type;if("svg"===_?o="http://www.w3.org/2000/svg":"math"===_?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!_&&(_?m.localName===_:3===m.nodeType)){t=m,i[u]=null;break}if(null==t){if(null===_)return document.createTextNode(b);t=document.createElementNS(o,_,b.is&&b),i=null,c=!1}if(null===_)g===b||c&&t.data===b||(t.data=b);else{if(i=i&&l.call(t.childNodes),g=n.props||v,!c&&null!=i)for(g={},u=0;u<t.attributes.length;u++)g[(m=t.attributes[u]).name]=m.value;for(u in g)if(m=g[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=m;else if("key"!==u&&!(u in b)){if("value"==u&&"defaultValue"in b||"checked"==u&&"defaultChecked"in b)continue;z(t,u,null,m,o)}for(u in b)m=b[u],"children"==u?p=m:"dangerouslySetInnerHTML"==u?f=m:"value"==u?h=m:"checked"==u?y=m:"key"===u||c&&"function"!=typeof m||g[u]===m||z(t,u,m,g[u],o);if(f)c||d&&(f.__html===d.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(d&&(t.innerHTML=""),A(t,w(p)?p:[p],e,n,r,"foreignObject"===_?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&k(n,0),c,s),null!=i)for(u=i.length;u--;)null!=i[u]&&x(i[u]);c||(u="value",void 0!==h&&(h!==t[u]||"progress"===_&&!h||"option"===_&&h!==g[u])&&z(t,u,h,g[u],o),u="checked",void 0!==y&&y!==t[u]&&z(t,u,y,g[u],o))}return t}function W(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){c.__e(t,n)}}function B(t,e,n){var r,o;if(c.unmount&&c.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||W(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){c.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],e,n||"function"!=typeof t.type);n||null==t.__e||x(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function F(t,e,n){return this.constructor(t,n)}function $(t,e,n){var r,o,i,a;c.__&&c.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],a=[],H(e,t=(!r&&n||e).__k=O(E,null,[t]),o||v,v,e.namespaceURI,!r&&n?[n]:o?null:e.firstChild?l.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r,a),U(i,t,a)}l=b.slice,c={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},s=0,I.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},n),this.props)),t&&S(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},I.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},I.prototype.render=E,u=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,e){return t.__v.__b-e.__v.__b},T.__r=0,m=0,h=R(!1),y=R(!0),g=0;let K={data:""},Y=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||K,J=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,V=/\/\*[^]*?\*\/| +/g,X=/\n+/g,Z=(t,e)=>{let n="",r="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Z(a,i):i+"{"+Z(a,"k"==i[1]?"":e)+"}":"object"==typeof a?r+=Z(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Z.p?Z.p(i,a):i+":"+a+";")}return n+(e&&o?e+"{"+o+"}":o)+r},Q={},tt=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+tt(t[n]);return e}return t},et=(t,e,n,r,o)=>{let i=tt(t),a=Q[i]||(Q[i]=(t=>{let e=0,n=11;for(;e<t.length;)n=101*n+t.charCodeAt(e++)>>>0;return"go"+n})(i));if(!Q[a]){let e=i!==t?t:(t=>{let e,n,r=[{}];for(;e=J.exec(t.replace(V,""));)e[4]?r.shift():e[3]?(n=e[3].replace(X," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(X," ").trim();return r[0]})(t);Q[a]=Z(o?{["@keyframes "+a]:e}:e,n?"":"."+a)}let l=n&&Q.g?Q.g:null;return n&&(Q.g=Q[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(Q[a],e,r,l),a},nt=(t,e,n)=>t.reduce(((t,r,o)=>{let i=e[o];if(i&&i.call){let t=i(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":Z(t,""):!1===t?"":t}return t+r+(null==i?"":i)}),"");function rt(t){let e=this||{},n=t.call?t(e.p):t;return et(n.unshift?n.raw?nt(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,Y(e.target),e.g,e.o,e.k)}let ot,it,at;rt.bind({g:1}),rt.bind({k:1});function lt(t,e){let n=this||{};return function(){let r=arguments;function o(i,a){let l=Object.assign({},i),c=l.className||o.className;n.p=Object.assign({theme:it&&it()},l),n.o=/ *go\d+/.test(c),l.className=rt.apply(n,r)+(c?" "+c:""),e&&(l.ref=a);let s=t;return t[0]&&(s=l.as||t,delete l.as),at&&s[0]&&at(l),ot(s,l)}return e?e(o):o}}var ct,st,ut,ft,dt=0,pt=[],mt=[],ht=c,yt=ht.__b,gt=ht.__r,vt=ht.diffed,bt=ht.__c,_t=ht.unmount,wt=ht.__;function St(t,e){ht.__h&&ht.__h(st,t,dt||e),dt=0;var n=st.__H||(st.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:mt}),n.__[t]}function xt(t){return dt=1,Ot(Ct,t)}function Ot(t,e,n){var r=St(ct++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Ct(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=st,!st.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};st.u=!0;var i=st.shouldComponentUpdate,a=st.componentWillUpdate;st.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}a&&a.call(this,t,e,n)},st.shouldComponentUpdate=o}return r.__N||r.__}function jt(t,e){var n=St(ct++,3);!ht.__s&&Mt(n.__H,e)&&(n.__=t,n.i=e,st.__H.__h.push(n))}function Et(t){return dt=5,It((function(){return{current:t}}),[])}function It(t,e){var n=St(ct++,7);return Mt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function kt(t,e){return dt=8,It((function(){return t}),e)}function Lt(){for(var t;t=pt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Tt),t.__H.__h.forEach(At),t.__H.__h=[]}catch(e){t.__H.__h=[],ht.__e(e,t.__v)}}ht.__b=function(t){st=null,yt&&yt(t)},ht.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wt&&wt(t,e)},ht.__r=function(t){gt&&gt(t),ct=0;var e=(st=t.__c).__H;e&&(ut===st?(e.__h=[],st.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=mt,t.__N=t.i=void 0}))):(e.__h.forEach(Tt),e.__h.forEach(At),e.__h=[],ct=0)),ut=st},ht.diffed=function(t){vt&&vt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==pt.push(e)&&ft===ht.requestAnimationFrame||((ft=ht.requestAnimationFrame)||Nt)(Lt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==mt&&(t.__=t.__V),t.i=void 0,t.__V=mt}))),ut=st=null},ht.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Tt),t.__h=t.__h.filter((function(t){return!t.__||At(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],ht.__e(n,t.__v)}})),bt&&bt(t,e)},ht.unmount=function(t){_t&&_t(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Tt(t)}catch(t){e=t}})),n.__H=void 0,e&&ht.__e(e,n.__v))};var Pt="function"==typeof requestAnimationFrame;function Nt(t){var e,n=function(){clearTimeout(r),Pt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Pt&&(e=requestAnimationFrame(n))}function Tt(t){var e=st,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),st=e}function At(t){var e=st;t.__c=t.__(),st=e}function Mt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ct(t,e){return"function"==typeof e?e(t):e}function Dt(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function l(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,l)}c((r=r.apply(t,e||[])).next())}))}function Gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var zt=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n},Rt=Gt(zt);const Ht="__googleMapsScriptId";var Ut;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ut||(Ut={}));class qt{constructor({apiKey:t,authReferrerPolicy:e,channel:n,client:r,id:o=Ht,language:i,libraries:a=[],mapIds:l,nonce:c,region:s,retries:u=3,url:f="https://maps.googleapis.com/maps/api/js",version:d}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=n,this.client=r,this.id=o||Ht,this.language=i,this.libraries=a,this.mapIds=l,this.nonce=c,this.region=s,this.retries=u,this.url=f,this.version=d,qt.instance){if(!Rt(this.options,qt.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(qt.instance.options)}`);return qt.instance}qt.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Ut.FAILURE:this.done?Ut.SUCCESS:this.loading?Ut.LOADING:Ut.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((n=>{n?e(n.error):t(window.google)}))}))}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id))return void this.callback();const n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach((t=>!n[t]&&delete n[t])),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,n,r,o="The Google Maps JavaScript API",i="google",a="importLibrary",l="__ib__",c=document,s=window;s=s[i]||(s[i]={});const u=s.maps||(s.maps={}),f=new Set,d=new URLSearchParams,p=()=>e||(e=new Promise(((a,s)=>Dt(this,void 0,void 0,(function*(){var p;for(r in yield n=c.createElement("script"),n.id=this.id,d.set("libraries",[...f]+""),t)d.set(r.replace(/[A-Z]/g,(t=>"_"+t[0].toLowerCase())),t[r]);d.set("callback",i+".maps."+l),n.src=this.url+"?"+d,u[l]=a,n.onerror=()=>e=s(Error(o+" could not load.")),n.nonce=this.nonce||(null===(p=c.querySelector("script[nonce]"))||void 0===p?void 0:p.nonce)||"",c.head.append(n)})))));u[a]?console.warn(o+" only loads once. Ignoring:",t):u[a]=(t,...e)=>f.add(t)&&p().then((()=>u[a](t,...e)))})(n);const r=this.libraries.map((t=>this.importLibrary(t)));r.length||r.push(this.importLibrary("core")),Promise.all(r).then((()=>this.callback()),(t=>{const e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||Vt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(){
1 +(()=>{"use strict";var t,e,n,r,o={},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return o[t].call(n.exports,n,n.exports,a),n.exports}a.m=o,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var l=2&r&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,a.d(o,i),o},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,n)=>(a.f[n](t,e),e)),[])),a.u=t=>"leaflet.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="meow-gallery:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);else{var l,c;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){l=f;break}}l||(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=t),n[t]=[e];var d=(e,r)=>{l.onerror=l.onload=null,clearTimeout(h);var o=n[t];if(delete n[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((t=>t(r))),e)return e(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),c&&document.head.appendChild(l)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={619:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(e),l=new Error;a.l(i,(n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,l,c]=n,s=0;if(i.some((e=>0!==t[e]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(c)c(a)}for(e&&e(n);s<i.length;s++)o=i[s],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.wpJsonMglGalleries=self.wpJsonMglGalleries||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var l,c,s,u,f,d,h,p,m,y,g,v={},b=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function S(t,e){for(var n in e)t[n]=e[n];return t}function x(t){var e=t.parentNode;e&&e.removeChild(t)}function O(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return j(t,a,r,o,null)}function j(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=c.vnode&&c.vnode(i),i}function E(t){return t.children}function I(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?k(t):null}function P(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return P(t)}}function N(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!T.__r++||f!==c.debounceRendering)&&((f=c.debounceRendering)||d)(T)}function T(){var t,e,n,r,o,i,a,l;for(u.sort(h);t=u.shift();)t.__d&&(e=u.length,r=void 0,i=(o=(n=t).__v).__e,a=[],l=[],n.__P&&((r=S({},o)).__v=o.__v+1,c.vnode&&c.vnode(r),R(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?k(o):i,!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,U(a,r,l),r.__e!=i&&P(r)),u.length>e&&u.sort(h));T.__r=0}function A(t,e,n,r,o,i,a,l,c,s,u){var f,d,h,p,m,y=r&&r.__k||b,g=e.length;for(n.__d=c,M(n,e,y),c=n.__d,f=0;f<g;f++)null!=(h=n.__k[f])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?v:y[h.__i]||v,h.__i=f,R(t,h,d,o,i,a,l,c,s,u),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&W(d.ref,null,h),u.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||d.__k===h.__k?(c&&!c.isConnected&&(c=k(d)),c=C(h,c,t)):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function M(t,e,n){var r,o,i,a,l,c=e.length,s=n.length,u=s,f=0;for(t.__k=[],r=0;r<c;r++)a=r+f,null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?j(null,o,null,null,null):w(o)?j(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?j(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,l=D(o,n,a,u),o.__i=l,i=null,-1!==l&&(u--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&f--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?f++:l>a?u>c-a?f+=l-a:f--:l<a?l==a-1&&(f=l-a):f=0,l!==r+f&&(o.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),q(i,i,!1),n[a]=null,u--);if(u)for(r=0;r<s;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),q(i,i))}function C(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=C(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function D(t,e,n,r){var o=t.key,i=t.type,a=n-1,l=n+1,c=e[n];if(null===c||c&&o==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;a>=0||l<e.length;){if(a>=0){if((c=e[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l<e.length){if((c=e[l])&&!(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function G(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function z(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||G(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||G(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=p,t.addEventListener(e,i?y:m,i)):t.removeEventListener(e,i?y:m,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function H(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=p++;else if(e.t<n.u)return;return n(c.event?c.event(e):e)}}}function R(t,e,n,r,o,i,a,l,s,u){var f,d,h,p,m,y,g,v,b,_,x,O,j,k,L,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),i=[l=e.__e=n.__e]),(f=c.__b)&&f(e);t:if("function"==typeof P)try{if(v=e.props,b=(f=P.contextType)&&r[f.__c],_=f?b?b.props.value:f.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?e.__c=d=new P(v,_):(e.__c=d=new I(v,_),d.constructor=P,d.render=F),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(v,d.__s))),p=d.props,m=d.state,d.__v=e,h)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,_),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,m,y)}))}if(d.context=_,d.props=v,d.__P=t,d.__e=!1,O=c.__r,j=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,O&&O(e),f=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,O&&O(e),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++j<25);d.state=d.__s,null!=d.getChildContext&&(r=S(S({},r),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(p,m)),A(t,w(L=null!=f&&f.type===E&&null==f.key?f.props.children:f)?L:[L],e,n,r,o,i,a,l,s,u),d.base=e.__e,e.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,s||null!=i?(e.__e=l,e.__u|=s?160:32,i[i.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),c.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=B(n.__e,e,n,r,o,i,a,s,u);(f=c.diffed)&&f(e)}function U(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)W(n[r],n[++r],n[++r]);c.__c&&c.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){c.__e(t,e.__v)}}))}function B(t,e,n,r,o,i,a,c,s){var u,f,d,h,p,m,y,g=n.props,b=e.props,_=e.type;if("svg"===_?o="http://www.w3.org/2000/svg":"math"===_?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!_&&(_?p.localName===_:3===p.nodeType)){t=p,i[u]=null;break}if(null==t){if(null===_)return document.createTextNode(b);t=document.createElementNS(o,_,b.is&&b),i=null,c=!1}if(null===_)g===b||c&&t.data===b||(t.data=b);else{if(i=i&&l.call(t.childNodes),g=n.props||v,!c&&null!=i)for(g={},u=0;u<t.attributes.length;u++)g[(p=t.attributes[u]).name]=p.value;for(u in g)if(p=g[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=p;else if("key"!==u&&!(u in b)){if("value"==u&&"defaultValue"in b||"checked"==u&&"defaultChecked"in b)continue;z(t,u,null,p,o)}for(u in b)p=b[u],"children"==u?h=p:"dangerouslySetInnerHTML"==u?f=p:"value"==u?m=p:"checked"==u?y=p:"key"===u||c&&"function"!=typeof p||g[u]===p||z(t,u,p,g[u],o);if(f)c||d&&(f.__html===d.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(d&&(t.innerHTML=""),A(t,w(h)?h:[h],e,n,r,"foreignObject"===_?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&k(n,0),c,s),null!=i)for(u=i.length;u--;)null!=i[u]&&x(i[u]);c||(u="value",void 0!==m&&(m!==t[u]||"progress"===_&&!m||"option"===_&&m!==g[u])&&z(t,u,m,g[u],o),u="checked",void 0!==y&&y!==t[u]&&z(t,u,y,g[u],o))}return t}function W(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){c.__e(t,n)}}function q(t,e,n){var r,o;if(c.unmount&&c.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||W(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){c.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&q(r[o],e,n||"function"!=typeof t.type);n||null==t.__e||x(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function F(t,e,n){return this.constructor(t,n)}function $(t,e,n){var r,o,i,a;c.__&&c.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],a=[],R(e,t=(!r&&n||e).__k=O(E,null,[t]),o||v,v,e.namespaceURI,!r&&n?[n]:o?null:e.firstChild?l.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r,a),U(i,t,a)}l=b.slice,c={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},s=0,I.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},n),this.props)),t&&S(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},I.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},I.prototype.render=E,u=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,h=function(t,e){return t.__v.__b-e.__v.__b},T.__r=0,p=0,m=H(!1),y=H(!0),g=0;let K={data:""},Y=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||K,J=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,V=/\/\*[^]*?\*\/| +/g,X=/\n+/g,Z=(t,e)=>{let n="",r="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Z(a,i):i+"{"+Z(a,"k"==i[1]?"":e)+"}":"object"==typeof a?r+=Z(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Z.p?Z.p(i,a):i+":"+a+";")}return n+(e&&o?e+"{"+o+"}":o)+r},Q={},tt=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+tt(t[n]);return e}return t},et=(t,e,n,r,o)=>{let i=tt(t),a=Q[i]||(Q[i]=(t=>{let e=0,n=11;for(;e<t.length;)n=101*n+t.charCodeAt(e++)>>>0;return"go"+n})(i));if(!Q[a]){let e=i!==t?t:(t=>{let e,n,r=[{}];for(;e=J.exec(t.replace(V,""));)e[4]?r.shift():e[3]?(n=e[3].replace(X," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(X," ").trim();return r[0]})(t);Q[a]=Z(o?{["@keyframes "+a]:e}:e,n?"":"."+a)}let l=n&&Q.g?Q.g:null;return n&&(Q.g=Q[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(Q[a],e,r,l),a},nt=(t,e,n)=>t.reduce(((t,r,o)=>{let i=e[o];if(i&&i.call){let t=i(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":Z(t,""):!1===t?"":t}return t+r+(null==i?"":i)}),"");function rt(t){let e=this||{},n=t.call?t(e.p):t;return et(n.unshift?n.raw?nt(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,Y(e.target),e.g,e.o,e.k)}let ot,it,at;rt.bind({g:1}),rt.bind({k:1});function lt(t,e){let n=this||{};return function(){let r=arguments;function o(i,a){let l=Object.assign({},i),c=l.className||o.className;n.p=Object.assign({theme:it&&it()},l),n.o=/ *go\d+/.test(c),l.className=rt.apply(n,r)+(c?" "+c:""),e&&(l.ref=a);let s=t;return t[0]&&(s=l.as||t,delete l.as),at&&s[0]&&at(l),ot(s,l)}return e?e(o):o}}var ct,st,ut,ft,dt=0,ht=[],pt=[],mt=c,yt=mt.__b,gt=mt.__r,vt=mt.diffed,bt=mt.__c,_t=mt.unmount,wt=mt.__;function St(t,e){mt.__h&&mt.__h(st,t,dt||e),dt=0;var n=st.__H||(st.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:pt}),n.__[t]}function xt(t){return dt=1,Ot(Ct,t)}function Ot(t,e,n){var r=St(ct++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Ct(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=st,!st.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};st.u=!0;var i=st.shouldComponentUpdate,a=st.componentWillUpdate;st.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}a&&a.call(this,t,e,n)},st.shouldComponentUpdate=o}return r.__N||r.__}function jt(t,e){var n=St(ct++,3);!mt.__s&&Mt(n.__H,e)&&(n.__=t,n.i=e,st.__H.__h.push(n))}function Et(t){return dt=5,It((function(){return{current:t}}),[])}function It(t,e){var n=St(ct++,7);return Mt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function kt(t,e){return dt=8,It((function(){return t}),e)}function Lt(){for(var t;t=ht.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Tt),t.__H.__h.forEach(At),t.__H.__h=[]}catch(e){t.__H.__h=[],mt.__e(e,t.__v)}}mt.__b=function(t){st=null,yt&&yt(t)},mt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wt&&wt(t,e)},mt.__r=function(t){gt&&gt(t),ct=0;var e=(st=t.__c).__H;e&&(ut===st?(e.__h=[],st.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=pt,t.__N=t.i=void 0}))):(e.__h.forEach(Tt),e.__h.forEach(At),e.__h=[],ct=0)),ut=st},mt.diffed=function(t){vt&&vt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==ht.push(e)&&ft===mt.requestAnimationFrame||((ft=mt.requestAnimationFrame)||Nt)(Lt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==pt&&(t.__=t.__V),t.i=void 0,t.__V=pt}))),ut=st=null},mt.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Tt),t.__h=t.__h.filter((function(t){return!t.__||At(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],mt.__e(n,t.__v)}})),bt&&bt(t,e)},mt.unmount=function(t){_t&&_t(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Tt(t)}catch(t){e=t}})),n.__H=void 0,e&&mt.__e(e,n.__v))};var Pt="function"==typeof requestAnimationFrame;function Nt(t){var e,n=function(){clearTimeout(r),Pt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Pt&&(e=requestAnimationFrame(n))}function Tt(t){var e=st,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),st=e}function At(t){var e=st;t.__c=t.__(),st=e}function Mt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ct(t,e){return"function"==typeof e?e(t):e}function Dt(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function l(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,l)}c((r=r.apply(t,e||[])).next())}))}function Gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var zt=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n},Ht=Gt(zt);const Rt="__googleMapsScriptId";var Ut;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ut||(Ut={}));class Bt{constructor({apiKey:t,authReferrerPolicy:e,channel:n,client:r,id:o=Rt,language:i,libraries:a=[],mapIds:l,nonce:c,region:s,retries:u=3,url:f="https://maps.googleapis.com/maps/api/js",version:d}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=n,this.client=r,this.id=o||Rt,this.language=i,this.libraries=a,this.mapIds=l,this.nonce=c,this.region=s,this.retries=u,this.url=f,this.version=d,Bt.instance){if(!Ht(this.options,Bt.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Bt.instance.options)}`);return Bt.instance}Bt.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Ut.FAILURE:this.done?Ut.SUCCESS:this.loading?Ut.LOADING:Ut.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((n=>{n?e(n.error):t(window.google)}))}))}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id))return void this.callback();const n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach((t=>!n[t]&&delete n[t])),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,n,r,o="The Google Maps JavaScript API",i="google",a="importLibrary",l="__ib__",c=document,s=window;s=s[i]||(s[i]={});const u=s.maps||(s.maps={}),f=new Set,d=new URLSearchParams,h=()=>e||(e=new Promise(((a,s)=>Dt(this,void 0,void 0,(function*(){var h;for(r in yield n=c.createElement("script"),n.id=this.id,d.set("libraries",[...f]+""),t)d.set(r.replace(/[A-Z]/g,(t=>"_"+t[0].toLowerCase())),t[r]);d.set("callback",i+".maps."+l),n.src=this.url+"?"+d,u[l]=a,n.onerror=()=>e=s(Error(o+" could not load.")),n.nonce=this.nonce||(null===(h=c.querySelector("script[nonce]"))||void 0===h?void 0:h.nonce)||"",c.head.append(n)})))));u[a]?console.warn(o+" only loads once. Ignoring:",t):u[a]=(t,...e)=>f.add(t)&&h().then((()=>u[a](t,...e)))})(n);const r=this.libraries.map((t=>this.importLibrary(t)));r.length||r.push(this.importLibrary("core")),Promise.all(r).then((()=>this.callback()),(t=>{const e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var Wt="undefined"!=typeof mgl_settings,qt=Wt?mgl_settings.options:void 0,Ft=Wt?mgl_settings.api_url.replace(/\/+$/,""):void 0,$t=Wt?mgl_settings.rest_nonce:void 0,Kt=function(){try{return!(!qt||!qt.debug_logs)}catch(t){return!1}},Yt=function(){var t;Kt()&&(t=console).log.apply(t,arguments)};function Jt(t){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(t)}function Vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||ne(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(){
2 2 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3 -Ft=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Wt(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Wt(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yt(r.key),r)}}function Kt(t,e,n){return e&&$t(t.prototype,e),n&&$t(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yt(t){var e=function(t,e){if("object"!=Wt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}function Jt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Vt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Vt(t,e){if(t){if("string"==typeof t)return Xt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(t,e):void 0}}function Xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Zt(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Qt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Zt(i,r,o,a,l,"next",t)}function l(t){Zt(i,r,o,a,l,"throw",t)}a(void 0)}))}}function te(){return(te=Qt(Ft().mark((function t(){var e;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.L){t.next=8;break}return t.next=3,a.e(334).then(a.t.bind(a,234,23));case 3:e=t.sent,console.warn("🍃 Leaflet was loaded asynchronously."),window.L=e,t.next=9;break;case 8:console.warn("🍃 Leaflet is already loaded.");case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ee=function(t){var e=t.style.transform.replace(/[^0-9\-.,]/g,"").split(",");return[e[12]||e[4],e[13]||e[5]]},ne=["gallery_id","wplr_collection_id","rml"],re=function(t){return void 0!==t.wplr_collection_id?{id:t.wplr_collection_id,search_slug:"wplr_collection_id"}:void 0!==t.rml?{id:t.rml,search_slug:"rml"}:{id:t.gallery_id,search_slug:"gallery_id"}},oe=function(t,e){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.timeout,l=void 0===a?1e4:a,c=i.checkInterval,s=void 0===c?100:c,u=document.querySelectorAll(".".concat(t));if(u.length>0)return console.log('🔍 Elements with class "'.concat(t,'" found immediately.')),e(u),function(){};var f=!1,d=function(){if(!f){f=!0;var n=document.querySelectorAll(".".concat(t));n.length>0&&(console.log('🔍 Elements with class "'.concat(t,'" detected in DOM.')),e(n)),p()}},p=function(){n&&(n.disconnect(),n=null),r&&(clearInterval(r),r=null),o&&(clearTimeout(o),o=null)};return window.MutationObserver&&(n=new MutationObserver((function(e){var n,r=Jt(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if("childList"===o.type){var i,a=Jt(o.addedNodes);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(l.nodeType===Node.ELEMENT_NODE){if(l.classList&&l.classList.contains(t))return void d();if(l.querySelectorAll&&l.querySelectorAll(".".concat(t)).length>0)return void d()}}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}}))).observe(document.body,{childList:!0,subtree:!0}),r=setInterval((function(){document.querySelectorAll(".".concat(t)).length>0&&d()}),s),o=setTimeout((function(){console.warn('⚠️ Timeout: Elements with class "'.concat(t,'" not found within ').concat(l,"ms.")),p()}),l),p},ie=Kt((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=r,this.message=e,this.code=n,this.body=o,this.debug=i,this.cancelledByUser="USER-ABORTED"===n})),ae=function(){var t=Qt(Ft().mark((function t(e){var n,r,o,i,a,l,c,s,u,f=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},i=null,a=null,t.prev=5,(n=n||{}).headers=n.headers?n.headers:{},n.headers.Pragma="no-cache",n.headers["Cache-Control"]="no-cache",t.next=12,fetch("".concat(e),n);case 12:return a=t.sent,t.next=15,a.text();case 15:r=t.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Are you sure the WP REST API is enabled? Check this article: https://meowapps.com/fix-wordpress-rest-api/.",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),i=new ie(c,l,e,r||a)),t.next=26;break;case 20:t.prev=20,t.t0=t.catch(5),s="BROKEN-REPLY",u="The reply sent by the server is broken.","AbortError"===t.t0.name?(s="USER-ABORTED",u="The request was aborted by the user."):a&&a.status&&408===a.status&&(s="REQUEST-TIMEOUT",u="The request generated a timeout."),i=new ie(u,s,e,r||a,t.t0);case 26:return i&&(o.success=!1,o.message=i.message,o.error=i),t.abrupt("return",o);case 28:case"end":return t.stop()}}),t,null,[[5,20]])})));return function(e){return t.apply(this,arguments)}}(),le=function(){var t=Qt(Ft().mark((function t(e){var n,r,o,i,a,l,c,s,u,f,d,p,m,h,y,g,v,b,_,w,S=arguments;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(n=S.length>1&&void 0!==S[1]?S[1]:{}).json,o=void 0===r?null:r,i=n.method,a=void 0===i?"GET":i,l=n.signal,c=n.file,s=n.nonce,u=n.bearerToken,"GET"!==a||!o){t.next=4;break}throw new Error("NekoFetch: GET method does not support json argument (".concat(e,")."));case 4:if(f=c?new FormData:null,c)for(f.append("file",c),d=0,p=Object.entries(o);d<p.length;d++)m=Bt(p[d],2),h=m[0],y=m[1],f.append(h,y);return g={},s&&(g["X-WP-Nonce"]=s),u&&(g.Authorization="Bearer ".concat(u)),f||(g["Content-Type"]="application/json"),v={method:a,headers:g,body:f||(o?JSON.stringify(o):null),signal:l},b=null,t.next=14,ae(e,v);case 14:if((b=t.sent).success){t.next=17;break}throw new Error(null!==(_=null===(w=b)||void 0===w?void 0:w.message)&&void 0!==_?_:"Unknown error.");case 17:return t.abrupt("return",b);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=function(){var t=xn(),e=t.id,n=t.images,r=t.mglMap,o=t.mapZoom;if(!r.defaultEngine)return console.error("🍃 Map engine is not defined. Please check the map settings."),document.querySelectorAll(".mgl-ui-map").forEach((function(t){t.innerHTML='<p style="color:red;">Meow Gallery: Map engine is not defined. Please check the map settings.</p>'})),null;var i="map-".concat(e),a=kt((function(t){var e,n,r;if(console.log("🍃 Getting the smallest image available for image ID:",t),0===Object.keys(t.sizes).length)return console.warn("🍃 No image sizes found for the pin image. Using the original image."),t.file_full;if(null!==(e=t.sizes)&&void 0!==e&&e.thumbnail)return t.sizes.thumbnail;if(null!==(n=t.sizes)&&void 0!==n&&n.medium)return t.sizes.medium;if(null!==(r=t.sizes)&&void 0!==r&&r.large)return t.sizes.large;var o=Object.keys(t.sizes)[0];return console.warn("🍃 No thumbnail, medium or large size found for image. Using the smallest available size:",o,t),t.sizes[o]}),[]),l=kt((function(t,e){if("openstreetmap"==e){L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0,style:"https://openmaptiles.github.io/osm-bright-gl-style/style-cdn.json"}).addTo(t)}if("maptiler"==e){var n="https://api.maptiler.com/maps/basic/{z}/{x}/{y}.png?key=".concat(r.maptiler.apiKey);L.tileLayer(n,{attribution:'© MapTiler © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0}).addTo(t)}if("mapbox"==e){var o,i,a;if(null!==(o=r.mapbox.style)&&void 0!==o&&o.username&&null!==(i=r.mapbox.style)&&void 0!==i&&i.style_id){var l=r.mapbox.style,c=l.username,s=l.style_id;a="https://api.mapbox.com/styles/v1/".concat(c,"/").concat(s,"/tiles/{z}/{x}/{y}?access_token=").concat(r.mapbox.apiKey)}else a="https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=".concat(r.mapbox.apiKey);L.tileLayer(a,{attribution:'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',tileSize:512,maxZoom:18,zoomOffset:-1,id:"mapbox/streets-v12"}).addTo(t)}}),[]),c=kt((function(t,e){function n(t,e,n,r){this.id=t,this.latlng_=e,this.imageSrc=r,this.setMap(n)}n.prototype=new google.maps.OverlayView,n.prototype.draw=function(){var t=this.div_;if(!t){(t=this.div_=document.createElement("div")).className="gmap-image-marker";var e=document.createElement("img");e.className="wp-image-".concat(this.id),e.src=this.imageSrc,t.appendChild(e),this.getPanes().overlayImage.appendChild(t)}var n=this.getProjection().fromLatLngToDivPixel(this.latlng_);n&&(t.style.left=n.x+"px",t.style.top=n.y+"px")},n.prototype.remove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.getPosition=function(){return this.latlng_},e.forEach((function(e){var r=e.data.gps.split(","),o={image:a(e),pos:[r[0],r[1]]};new n(e.id,new google.maps.LatLng(o.pos[0],o.pos[1]),t,o.image)}))}),[a]),s=kt((function(t,e){e.forEach((function(e,n){var o=r.lightboxable?"inline-block":"none",i='\n <div class="image-marker-container" data-image-index="'.concat(n,'">\n <div class="rounded-image">\n ').concat(e.link.href?'<a href="'.concat(e.link.href,'" target="').concat(e.link.target,'" rel="').concat(e.link.rel,'">'):"",'\n <img \n class="wp-image-').concat(e.id,'" \n src="').concat(a(e),'"\n ').concat(e.file_srcset?'srcset="'.concat(e.file_srcset,'"'):"","\n ").concat(e.file_sizes?'sizes="'.concat(e.file_sizes,'"'):"",'\n style="display: ').concat(o,'"\n >\n ').concat(e.link.href?"</a>":"","\n </div>\n </div>\n "),l=L.divIcon({className:"image-marker",iconSize:null,html:i}),c=e.data.gps.split(",");L.marker(c,{icon:l}).addTo(t)}))}),[a]),u=kt((function(t,e){var n=new google.maps.LatLngBounds;e.forEach((function(t){var e=t.data.gps.split(","),r={lat:parseFloat(e[0]),lng:parseFloat(e[1])};n.extend(r)})),t.fitBounds(n)}),[]),f=kt((function(t,e,n){var r=[];e.forEach((function(t){var e=t.data.gps.split(",");r.push(e)}));var o=new L.LatLngBounds(r).getCenter();t.setView(o,n)}),[]),d=kt((function(t){n.length>0&&(c(t,n),u(t,n))}),[n,c,u]),p=kt((function(t,e,r){n.length>0&&(l(t,e),s(t,n),f(t,n,r))}),[n,l,s,f]);return jt((function(){(function(){return te.apply(this,arguments)})().then((function(){if("googlemaps"===r.tilesProvider)new qt({apiKey:r.googlemaps.apiKey,version:"weekly"}).load().then((function(){var t=new google.maps.Map(document.getElementById(i),{center:{lat:-34.397,lng:150.644},zoom:o});t.setOptions({styles:r.googlemaps.style}),d(t),document.body.dispatchEvent(new Event("post-load"))}));else if(null!=L.DomUtil.get(i)){L.DomUtil.get(i)._leaflet_id=null;var t=L.map(i).setView(r.center,o);try{console.log("🍃 Leaflet map created. Using ResizeObserver to resize the map."),window.dispatchEvent(new Event("resize"))}catch(t){console.warn("🍃 Leaflet map created. ResizeObserver is not supported.")}p(t,r.tilesProvider,o),document.body.dispatchEvent(new Event("post-load"))}window.renderMeowLightbox&&("googlemaps"===r.tilesProvider?(console.log("🔍 Watching for Google Maps markers to appear..."),oe("gmap-image-marker",(function(){console.log("🍃 Google Maps markers detected, re-rendering Meow Lightbox."),window.renderMeowLightboxWithSelector(".mgl-gallery")}),{timeout:15e3})):(console.log("🔍 Watching for Leaflet markers to appear..."),oe("image-marker-container",(function(){console.log("🍃 Leaflet markers detected, re-rendering Meow Lightbox."),window.renderMeowLightboxWithSelector(".mgl-gallery")}),{timeout:15e3})))}))}),[r.tilesProvider,d,p,i]),i},se="undefined"!=typeof mgl_settings,ue=se?mgl_settings.options:void 0,fe=se?mgl_settings.api_url.replace(/\/+$/,""):void 0,de=se?mgl_settings.rest_nonce:void 0;var pe=0;Array.isArray;function me(t,e,n,r,o,i){e||(e={});var a,l,s=e;if("ref"in s)for(l in s={},e)"ref"==l?a=e[l]:s[l]=e[l];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--pe,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return c.vnode&&c.vnode(u),u}var he,ye,ge,ve,be,_e,we,Se,xe,Oe,je,Ee,Ie,ke,Le,Pe,Ne,Te;function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function Me(t){return function(t){if(Array.isArray(t))return He(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Re(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(){
3 +Xt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Jt(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?m:h,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Jt(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,te(r.key),r)}}function Qt(t,e,n){return e&&Zt(t.prototype,e),n&&Zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function te(t){var e=function(t,e){if("object"!=Jt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jt(e)?e:e+""}function ee(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ne(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ne(t,e){if(t){if("string"==typeof t)return re(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(t,e):void 0}}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function oe(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function ie(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){oe(i,r,o,a,l,"next",t)}function l(t){oe(i,r,o,a,l,"throw",t)}a(void 0)}))}}function ae(){return(ae=ie(Xt().mark((function t(){var e;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.L){t.next=8;break}return t.next=3,a.e(334).then(a.t.bind(a,234,23));case 3:e=t.sent,Yt.warn("🍃 Leaflet was loaded asynchronously."),window.L=e,t.next=9;break;case 8:Yt.warn("🍃 Leaflet is already loaded.");case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Yt.warn=function(){var t;Kt()&&(t=console).warn.apply(t,arguments)},Yt.error=function(){var t;Kt()&&(t=console).error.apply(t,arguments)},Yt.info=function(){var t;Kt()&&(t=console).info.apply(t,arguments)};var le=function(t){var e=t.style.transform.replace(/[^0-9\-.,]/g,"").split(",");return[e[12]||e[4],e[13]||e[5]]},ce=["gallery_id","wplr_collection_id","rml"],se=function(t){return void 0!==t.wplr_collection_id?{id:t.wplr_collection_id,search_slug:"wplr_collection_id"}:void 0!==t.rml?{id:t.rml,search_slug:"rml"}:{id:t.gallery_id,search_slug:"gallery_id"}},ue=function(t,e){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.timeout,l=void 0===a?1e4:a,c=i.checkInterval,s=void 0===c?100:c,u=document.querySelectorAll(".".concat(t));if(u.length>0)return Yt('🔍 Elements with class "'.concat(t,'" found immediately.')),e(u),function(){};var f=!1,d=function(){if(!f){f=!0;var n=document.querySelectorAll(".".concat(t));n.length>0&&(Yt('🔍 Elements with class "'.concat(t,'" detected in DOM.')),e(n)),h()}},h=function(){n&&(n.disconnect(),n=null),r&&(clearInterval(r),r=null),o&&(clearTimeout(o),o=null)};return window.MutationObserver&&(n=new MutationObserver((function(e){var n,r=ee(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if("childList"===o.type){var i,a=ee(o.addedNodes);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(l.nodeType===Node.ELEMENT_NODE){if(l.classList&&l.classList.contains(t))return void d();if(l.querySelectorAll&&l.querySelectorAll(".".concat(t)).length>0)return void d()}}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}}))).observe(document.body,{childList:!0,subtree:!0}),r=setInterval((function(){document.querySelectorAll(".".concat(t)).length>0&&d()}),s),o=setTimeout((function(){Yt.warn('⚠️ Timeout: Elements with class "'.concat(t,'" not found within ').concat(l,"ms.")),h()}),l),h},fe=Qt((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=r,this.message=e,this.code=n,this.body=o,this.debug=i,this.cancelledByUser="USER-ABORTED"===n})),de=function(){var t=ie(Xt().mark((function t(e){var n,r,o,i,a,l,c,s,u,f=arguments;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},i=null,a=null,t.prev=5,(n=n||{}).headers=n.headers?n.headers:{},n.headers.Pragma="no-cache",n.headers["Cache-Control"]="no-cache",t.next=12,fetch("".concat(e),n);case 12:return a=t.sent,t.next=15,a.text();case 15:r=t.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Are you sure the WP REST API is enabled? Check this article: https://meowapps.com/fix-wordpress-rest-api/.",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),i=new fe(c,l,e,r||a)),t.next=26;break;case 20:t.prev=20,t.t0=t.catch(5),s="BROKEN-REPLY",u="The reply sent by the server is broken.","AbortError"===t.t0.name?(s="USER-ABORTED",u="The request was aborted by the user."):a&&a.status&&408===a.status&&(s="REQUEST-TIMEOUT",u="The request generated a timeout."),i=new fe(u,s,e,r||a,t.t0);case 26:return i&&(o.success=!1,o.message=i.message,o.error=i),t.abrupt("return",o);case 28:case"end":return t.stop()}}),t,null,[[5,20]])})));return function(e){return t.apply(this,arguments)}}(),he=function(){var t=ie(Xt().mark((function t(e){var n,r,o,i,a,l,c,s,u,f,d,h,p,m,y,g,v,b,_,w,S=arguments;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(n=S.length>1&&void 0!==S[1]?S[1]:{}).json,o=void 0===r?null:r,i=n.method,a=void 0===i?"GET":i,l=n.signal,c=n.file,s=n.nonce,u=n.bearerToken,"GET"!==a||!o){t.next=4;break}throw new Error("NekoFetch: GET method does not support json argument (".concat(e,")."));case 4:if(f=c?new FormData:null,c)for(f.append("file",c),d=0,h=Object.entries(o);d<h.length;d++)p=Vt(h[d],2),m=p[0],y=p[1],f.append(m,y);return g={},s&&(g["X-WP-Nonce"]=s),u&&(g.Authorization="Bearer ".concat(u)),f||(g["Content-Type"]="application/json"),v={method:a,headers:g,body:f||(o?JSON.stringify(o):null),signal:l},b=null,t.next=14,de(e,v);case 14:if((b=t.sent).success){t.next=17;break}throw new Error(null!==(_=null===(w=b)||void 0===w?void 0:w.message)&&void 0!==_?_:"Unknown error.");case 17:return t.abrupt("return",b);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pe=function(){var t=jn(),e=t.id,n=t.images,r=t.mglMap,o=t.mapZoom;if(!r.defaultEngine)return Yt.error("🍃 Map engine is not defined. Please check the map settings."),document.querySelectorAll(".mgl-ui-map").forEach((function(t){t.innerHTML='<p style="color:red;">Meow Gallery: Map engine is not defined. Please check the map settings.</p>'})),null;var i="map-".concat(e),a=kt((function(t){var e,n,r;if(Yt("🍃 Getting the smallest image available for image ID:",t),0===Object.keys(t.sizes).length)return Yt.warn("🍃 No image sizes found for the pin image. Using the original image."),t.file_full;if(null!==(e=t.sizes)&&void 0!==e&&e.thumbnail)return t.sizes.thumbnail;if(null!==(n=t.sizes)&&void 0!==n&&n.medium)return t.sizes.medium;if(null!==(r=t.sizes)&&void 0!==r&&r.large)return t.sizes.large;var o=Object.keys(t.sizes)[0];return Yt.warn("🍃 No thumbnail, medium or large size found for image. Using the smallest available size:",o,t),t.sizes[o]}),[]),l=kt((function(t,e){if("openstreetmap"==e){L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0,style:"https://openmaptiles.github.io/osm-bright-gl-style/style-cdn.json"}).addTo(t)}if("maptiler"==e){var n="https://api.maptiler.com/maps/basic/{z}/{x}/{y}.png?key=".concat(r.maptiler.apiKey);L.tileLayer(n,{attribution:'© MapTiler © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0}).addTo(t)}if("mapbox"==e){var o,i,a;if(null!==(o=r.mapbox.style)&&void 0!==o&&o.username&&null!==(i=r.mapbox.style)&&void 0!==i&&i.style_id){var l=r.mapbox.style,c=l.username,s=l.style_id;a="https://api.mapbox.com/styles/v1/".concat(c,"/").concat(s,"/tiles/{z}/{x}/{y}?access_token=").concat(r.mapbox.apiKey)}else a="https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=".concat(r.mapbox.apiKey);L.tileLayer(a,{attribution:'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',tileSize:512,maxZoom:18,zoomOffset:-1,id:"mapbox/streets-v12"}).addTo(t)}}),[]),c=kt((function(t,e){function n(t,e,n,r){this.id=t,this.latlng_=e,this.imageSrc=r,this.setMap(n)}n.prototype=new google.maps.OverlayView,n.prototype.draw=function(){var t=this.div_;if(!t){(t=this.div_=document.createElement("div")).className="gmap-image-marker";var e=document.createElement("img");e.className="wp-image-".concat(this.id),e.src=this.imageSrc,t.appendChild(e),this.getPanes().overlayImage.appendChild(t)}var n=this.getProjection().fromLatLngToDivPixel(this.latlng_);n&&(t.style.left=n.x+"px",t.style.top=n.y+"px")},n.prototype.remove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.getPosition=function(){return this.latlng_},e.forEach((function(e){var r=e.data.gps.split(","),o={image:a(e),pos:[r[0],r[1]]};new n(e.id,new google.maps.LatLng(o.pos[0],o.pos[1]),t,o.image)}))}),[a]),s=kt((function(t,e){e.forEach((function(e,n){var o=r.lightboxable?"inline-block":"none",i='\n <div class="image-marker-container" data-image-index="'.concat(n,'">\n <div class="rounded-image">\n ').concat(e.link.href?'<a href="'.concat(e.link.href,'" target="').concat(e.link.target,'" rel="').concat(e.link.rel,'">'):"",'\n <img \n class="wp-image-').concat(e.id,'" \n src="').concat(a(e),'"\n ').concat(e.file_srcset?'srcset="'.concat(e.file_srcset,'"'):"","\n ").concat(e.file_sizes?'sizes="'.concat(e.file_sizes,'"'):"",'\n style="display: ').concat(o,'"\n >\n ').concat(e.link.href?"</a>":"","\n </div>\n </div>\n "),l=L.divIcon({className:"image-marker",iconSize:null,html:i}),c=e.data.gps.split(",");L.marker(c,{icon:l}).addTo(t)}))}),[a]),u=kt((function(t,e){var n=new google.maps.LatLngBounds;e.forEach((function(t){var e=t.data.gps.split(","),r={lat:parseFloat(e[0]),lng:parseFloat(e[1])};n.extend(r)})),t.fitBounds(n)}),[]),f=kt((function(t,e,n){var r=[];e.forEach((function(t){var e=t.data.gps.split(",");r.push(e)}));var o=new L.LatLngBounds(r).getCenter();t.setView(o,n)}),[]),d=kt((function(t){n.length>0&&(c(t,n),u(t,n))}),[n,c,u]),h=kt((function(t,e,r){n.length>0&&(l(t,e),s(t,n),f(t,n,r))}),[n,l,s,f]);return jt((function(){(function(){return ae.apply(this,arguments)})().then((function(){if("googlemaps"===r.tilesProvider)new Bt({apiKey:r.googlemaps.apiKey,version:"weekly"}).load().then((function(){var t=new google.maps.Map(document.getElementById(i),{center:{lat:-34.397,lng:150.644},zoom:o});t.setOptions({styles:r.googlemaps.style}),d(t),document.body.dispatchEvent(new Event("post-load"))}));else if(null!=L.DomUtil.get(i)){L.DomUtil.get(i)._leaflet_id=null;var t=L.map(i).setView(r.center,o);try{Yt("🍃 Leaflet map created. Using ResizeObserver to resize the map."),window.dispatchEvent(new Event("resize"))}catch(t){Yt.warn("🍃 Leaflet map created. ResizeObserver is not supported.")}h(t,r.tilesProvider,o),document.body.dispatchEvent(new Event("post-load"))}window.renderMeowLightbox&&("googlemaps"===r.tilesProvider?(Yt("🔍 Watching for Google Maps markers to appear..."),ue("gmap-image-marker",(function(){Yt("🍃 Google Maps markers detected, re-rendering Meow Lightbox."),window.renderMeowLightboxWithSelector(".mgl-gallery")}),{timeout:15e3})):(Yt("🔍 Watching for Leaflet markers to appear..."),ue("image-marker-container",(function(){Yt("🍃 Leaflet markers detected, re-rendering Meow Lightbox."),window.renderMeowLightboxWithSelector(".mgl-gallery")}),{timeout:15e3})))}))}),[r.tilesProvider,d,h,i]),i};var me=0;Array.isArray;function ye(t,e,n,r,o,i){e||(e={});var a,l,s=e;if("ref"in s)for(l in s={},e)"ref"==l?a=e[l]:s[l]=e[l];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--me,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return c.vnode&&c.vnode(u),u}var ge,ve,be,_e,we,Se,xe,Oe,je,Ee,Ie,ke,Le,Pe,Ne,Te,Ae,Me;function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function De(t){return function(t){if(Array.isArray(t))return Be(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ue(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(){
4 4 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
5 -Ce=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ae(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ae(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function De(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Ge(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){De(i,r,o,a,l,"next",t)}function l(t){De(i,r,o,a,l,"throw",t)}a(void 0)}))}}function ze(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||Re(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(t,e){if(t){if("string"==typeof t)return He(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(t,e):void 0}}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){We(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function We(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ae(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ae(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Be="tiles",Fe="masonry",$e="justified",Ke="square",Ye="cascade",Je="carousel",Ve="map",Xe="horizontal",Ze=function(t){return t===$e},Qe=[Be,Fe,$e,Ke,Ye],tn={high:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii","iooo","oioo","ooio","oooi","iiii","oooo","ioooo","ooioo","ooooi","iiooo","iooio","ooiio","ooioi","oooii","oiioo","oiooi","iiioo","iiooi","iooii","ooiii"],medium:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii"],low:["o","i"]},en={high:{desktop:4,tablet:3,mobile:2},medium:{desktop:3,tablet:2,mobile:2},low:{desktop:1,tablet:1,mobile:1}},nn={o:{box:"a",orientation:"landscape"},i:{box:"a",orientation:"portrait"},oo:{box:"a",orientation:"landscape"},ii:{box:"a",orientation:"portrait"},oi:{box:"a",orientation:"landscape"},io:{box:"a",orientation:"portrait"},ooo:{box:"c",orientation:"landscape"},ioo:{box:"b",orientation:"landscape"},oio:{box:"a",orientation:"landscape"},ooi:{box:"a",orientation:"landscape"},oii:{box:"a",orientation:"landscape"},ioi:{box:"b",orientation:"landscape"},iio:{box:"c",orientation:"landscape"},iii:{box:"a",orientation:"portrait"},"oooo-v0":{box:"c",orientation:"landscape"},"oooo-v1":{box:"a",orientation:"landscape"},"oooo-v2":{box:"a",orientation:"landscape"},oioo:{box:"a",orientation:"landscape"},iooo:{box:"d",orientation:"landscape"},ooio:{box:"d",orientation:"landscape"},oooi:{box:"a",orientation:"landscape"},iiii:{box:"a",orientation:"portrait"},aoooo:{box:"a",orientation:"portrait"},ioooo:{box:"a",orientation:"portrait"},ooioo:{box:"c",orientation:"portrait"},ooooi:{box:"e",orientation:"portrait"},iiooo:{box:"a",orientation:"portrait"},iooio:{box:"a",orientation:"portrait"},ooiio:{box:"e",orientation:"landscape"},ooioi:{box:"c",orientation:"portrait"},oooii:{box:"d",orientation:"portrait"},oiioo:{box:"b",orientation:"portrait"},oiooi:{box:"b",orientation:"portrait"},iiioo:{box:"a",orientation:"portrait"},iiooi:{box:"a",orientation:"portrait"},iooii:{box:"a",orientation:"portrait"},ooiii:{box:"c",orientation:"portrait"}},rn=new Map;ue&&ue.infinite&&"undefined"!=typeof window&&(window.mgl_load_more=function(t){var e,n,r,o,i,a="string"==typeof t?document.getElementById(t):t;!a||null!==(e=a.classList)&&void 0!==e&&e.contains("mgl-gallery")||(a=(null===(n=(r=a).closest)||void 0===n?void 0:n.call(r,".mgl-gallery"))||(null===(o=(i=a).querySelector)||void 0===o?void 0:o.call(i,".mgl-gallery")));var l=rn.get(a);return!(!l||"function"!=typeof l.loadImages||!1===l.canInfiniteScroll||(l.loadImages(),0))});var on=0,an={apiUrl:null,restNonce:null,id:null,images:[],imageIds:[],className:"",containerClassName:"",inlineStyle:{},loadImagesCount:12,canInfiniteScroll:!1,layout:"tiles",captions:"none",animation:!1,imageSize:"srcset",infinite:!1,infiniteBuffer:0,tilesGutter:10,tilesGutterTablet:10,tilesGutterMobile:10,tilesDensity:"high",tilesDensityTablet:"medium",tilesDensityMobile:"low",stylishEnabled:!1,stylishBorderRadius:6,stylishShadowOpacity:.08,stylishShadowOpacityHover:.12,stylishTransitionSpeed:250,masonryGutter:5,masonryColumns:3,justifiedGutter:5,justifiedRowHeight:200,justifiedDensity:"high",justifiedDensityTablet:"medium",justifiedDensityMobile:"low",squareGutter:5,squareColumns:5,cascadeGutter:10,horizontalGutter:5,horizontalImageHeight:500,horizontalHideScrollbar:!1,carouselGutter:5,carouselImageHeight:500,carouselArrowNavEnabled:!0,carouselDotNavEnabled:!0,carouselThumbnailNavEnabled:!1,mapEngine:"",mapHeight:400,googlemapsToken:"",googlemapsStyle:"[]",mapboxToken:"",mapboxStyle:{username:"",style_id:""},maptilerToken:"",rightClick:!1,size:"large",customClass:"",link:null,isPreview:!1,updir:null,classId:null,gutter:5,columns:3,layouts:[],density:{desktop:"high",tablet:"medium",mobile:"low"},imageHeight:500,mglMap:{defaultEngine:"undefined"!=typeof mgl_map&&null!==(he=null===(ye=mgl_map)||void 0===ye?void 0:ye.default_engine)&&void 0!==he?he:"",tilesProvider:"undefined"!=typeof mgl_map&&null!==(ge=null===(ve=mgl_map)||void 0===ve?void 0:ve.default_engine)&&void 0!==ge?ge:"",height:"undefined"!=typeof mgl_map&&null!==(be=null===(_e=mgl_map)||void 0===_e?void 0:_e.height)&&void 0!==be?be:400,googlemaps:{apiKey:"undefined"!=typeof mgl_map&&null!==(we=null===(Se=mgl_map)||void 0===Se||null===(Se=Se.googlemaps)||void 0===Se?void 0:Se.api_key)&&void 0!==we?we:"",style:"undefined"!=typeof mgl_map&&null!==(xe=null===(Oe=mgl_map)||void 0===Oe||null===(Oe=Oe.googlemaps)||void 0===Oe?void 0:Oe.style)&&void 0!==xe?xe:""},mapbox:{apiKey:"undefined"!=typeof mgl_map&&null!==(je=null===(Ee=mgl_map)||void 0===Ee||null===(Ee=Ee.mapbox)||void 0===Ee?void 0:Ee.api_key)&&void 0!==je?je:"",style:"undefined"!=typeof mgl_map&&null!==(Ie=null===(ke=mgl_map)||void 0===ke||null===(ke=ke.mapbox)||void 0===ke?void 0:ke.style)&&void 0!==Ie?Ie:""},maptiler:{apiKey:"undefined"!=typeof mgl_map&&null!==(Le=null===(Pe=mgl_map)||void 0===Pe||null===(Pe=Pe.maptiler)||void 0===Pe?void 0:Pe.api_key)&&void 0!==Le?Le:"",style:"undefined"!=typeof mgl_map&&null!==(Ne=null===(Te=mgl_map)||void 0===Te||null===(Te=Te.maptiler)||void 0===Te?void 0:Te.style)&&void 0!==Ne?Ne:""},center:[51.505,-.09],lightboxable:!0},atts:{}},ln="SET_IMAGES",cn="SET_CLASS_NAMES",sn="SET_CONTAINER_CLASS_NAMES",un="SET_INLINE_STYLES",fn="SET_GUTTER",dn="SET_CULLUMNS",pn="SET_DENSITY",mn="SET_IMAGE_HEIGHT",hn="SET_API_URL",yn="SET_REST_NONCE",gn="SET_CAN_INFINITE_SCROLL",vn="PUSH_BUSY",bn="POP_BUSY",_n=function(t,e){switch(e.type){case"ERROR_UPDATED":var n=e.apiErrors;return qe(qe({},t),{},{apiErrors:n});case ln:var r=e.images;return window.renderMeowLightbox&&setTimeout((function(){console.log("🔄 Rendering Meow Lightbox after SET_IMAGES"),window.renderMeowLightboxWithSelector(".mgl-gallery")}),500),qe(qe({},t),{},{images:r});case vn:var o=e.status,i=void 0===o?"":o;return qe(qe({},t),{},{busy:++on>0,status:i});case bn:var a=e.status,l=void 0===a?"":a;return qe(qe({},t),{},{busy:--on>0,status:l});case cn:var c=e.layout,s=e.customClass,u=e.animation,f=e.captions,d=[];return d.push("mgl-gallery"),d.push("mgl-"+c),s&&d.push(s),u&&(d.push("is-animated"),d.push(u)),f&&d.push("captions-"+f),qe(qe({},t),{},{className:d.join(" ")});case sn:var p=e.layout,m=[];return m.push("mgl-"+p+"-container"),qe(qe({},t),{},{containerClassName:m.join(" ")});case un:var h=e.layout,y=e.justifiedRowHeight,g=Ze(h)?{"--rh":"".concat(y,"px")}:{};return qe(qe({},t),{},{inlineStyle:g});case fn:var v=e.layout,b=e.tilesGutter,_=e.tilesGutterTablet,w=e.tilesGutterMobile,S=e.masonryGutter,x=e.justifiedGutter,O=e.squareGutter,j=e.cascadeGutter,E=e.horizontalGutter,I=e.carouselGutter,k=e.mapGutter,L=We(We(We(We(We(We(We(We({},Be,{desktop:parseInt(b),tablet:parseInt(_),mobile:parseInt(w)}),Fe,parseInt(S)),$e,parseInt(x)),Ke,parseInt(O)),Ye,parseInt(j)),Xe,parseInt(E)),Je,parseInt(I)),Ve,parseInt(k));return qe(qe({},t),{},{gutter:L[v]});case dn:var P=e.layout,N=e.masonryColumns,T=e.squareColumns,A=We(We({},Fe,parseInt(N)),Ke,parseInt(T));return qe(qe({},t),{},{columns:A[P]});case pn:var M=e.tilesDensity,C=e.tilesDensityTablet,D=e.tilesDensityMobile,G={tiles:{desktop:M,tablet:C,mobile:D},justified:{desktop:e.justifiedDensity||"high",tablet:e.justifiedDensityTablet||"medium",mobile:e.justifiedDensityMobile||"low"},desktop:M,tablet:C,mobile:D};return qe(qe({},t),{},{density:G});case mn:var z=e.layout,R=e.horizontalImageHeight,H=e.carouselImageHeight,U=We(We({},Xe,parseInt(R)),Je,parseInt(H));return qe(qe({},t),{},{imageHeight:U[z]});case hn:var q=e.apiUrl;return qe(qe({},t),{},{apiUrl:q});case yn:var W=e.restNonce;return qe(qe({},t),{},{restNonce:W});case gn:var B=e.infinite,F=e.images,$=e.imageIds,K=B&&F.length<$.length;return qe(qe({},t),{},{canInfiniteScroll:K});default:return t}},wn=function(t,e){var n={__c:e="__cC"+g++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,N(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(),Sn=function(t){var e,n=t.options,r=t.galleryOptions,o=t.galleryImages,i=t.atts,a=t.apiUrl,l=t.restNonce,c=t.children,s=Ot(_n,qe(qe({},an),function(t){return{id:t.id,layout:t.layout,captions:t.captions,captionsAlignment:t.captions_alignment,captionsBackground:t.captions_background,loading:t.loading,animation:t.animation,imageSize:t.image_size,galleryShortcodeOverrideDisabled:t.gallery_shortcode_override_disabled,skeletonLoading:t.skeleton_loading,infinite:t.infinite,infiniteBuffer:t.infinite_buffer,tilesGutter:t.tiles_gutter,tilesGutterTablet:t.tiles_gutter_tablet,tilesGutterMobile:t.tiles_gutter_mobile,tilesDensity:t.tiles_density,tilesDensityTablet:t.tiles_density_tablet,tilesDensityMobile:t.tiles_density_mobile,stylishEnabled:t.stylish_enabled,stylishBorderRadius:t.stylish_border_radius,stylishShadowOpacity:t.stylish_shadow_opacity,stylishShadowOpacityHover:t.stylish_shadow_opacity_hover,stylishTransitionSpeed:t.stylish_transition_speed,masonryGutter:t.masonry_gutter,masonryColumns:t.masonry_columns,masonryLeftToRight:t.masonry_left_to_right,justifiedGutter:t.justified_gutter,justifiedRowHeight:t.justified_row_height,justifiedDensity:t.justified_density,justifiedDensityTablet:t.justified_density_tablet,justifiedDensityMobile:t.justified_density_mobile,squareGutter:t.square_gutter,squareColumns:t.square_columns,cascadeGutter:t.cascade_gutter,horizontalGutter:t.horizontal_gutter,horizontalImageHeight:t.horizontal_image_height,horizontalHideScrollbar:t.horizontal_hide_scrollbar,horizontalScrollWarning:t.horizontal_scroll_warning,horizontalNativeScroll:t.horizontal_native_scroll,carouselCompact:t.carousel_compact,carouselImmersive:t.carousel_immersive,carouselGutter:t.carousel_gutter,carouselImageHeight:t.carousel_image_height,carouselArrowNavEnabled:t.carousel_arrow_nav_enabled,carouselDotNavEnabled:t.carousel_dot_nav_enabled,carouselThumbnailNavEnabled:t.carousel_thumbnail_nav_enabled,carouselAspectRatio:t.carousel_aspect_ratio,carouselAutoplay:t.carousel_autoplay,carouselInfinite:t.carousel_infinite,mapEngine:t.map_engine,mapHeight:t.map_height,mapZoom:t.map_zoom,mapGutter:t.map_gutter,googlemapsToken:t.googlemaps_token,googlemapsStyle:t.googlemaps_style,mapboxToken:t.mapbox_token,mapboxStyle:t.mapbox_style,maptilerToken:t.maptiler_token,rightClick:t.right_click,imageIds:t.image_ids,size:t.size,customClass:t.custom_class,link:t.link,isPreview:t.is_preview,updir:t.updir,classId:t.class_id,layouts:t.layouts,images:t.images,atts:t.atts}}(qe(qe(qe({},n),r),{},{images:o,atts:i})))),u=ze(s,2),f=u[0],d=u[1],p=f.layout,m=f.customClass,h=f.animation,y=f.captions,g=f.justifiedRowHeight,v=f.tilesGutter,b=f.tilesGutterMobile,_=f.tilesGutterTablet,w=f.tilesDensity,S=f.tilesDensityMobile,x=f.tilesDensityTablet,O=f.justifiedDensity,j=f.justifiedDensityMobile,E=f.justifiedDensityTablet,I=f.masonryGutter,k=f.justifiedGutter,L=f.squareGutter,P=f.cascadeGutter,N=f.horizontalGutter,T=f.carouselGutter,A=f.masonryColumns,M=f.squareColumns,C=f.horizontalImageHeight,D=f.carouselImageHeight,G=f.mapGutter,z=f.infinite,R=f.images,H=f.imageIds;return jt((function(){d({type:cn,layout:p,customClass:m,animation:h,captions:y})}),[p,m,h,y]),jt((function(){d({type:sn,layout:p})}),[p]),jt((function(){d({type:un,layout:p,justifiedRowHeight:g})}),[p,g]),jt((function(){d({type:fn,layout:p,tilesGutter:v,tilesGutterMobile:b,tilesGutterTablet:_,masonryGutter:I,justifiedGutter:k,squareGutter:L,cascadeGutter:P,horizontalGutter:N,carouselGutter:T,mapGutter:G})}),[p,v,b,_,I,k,L,P,N,T,G]),jt((function(){d({type:dn,layout:p,masonryColumns:A,squareColumns:M})}),[p,A,M]),jt((function(){d({type:pn,tilesDensity:w,tilesDensityMobile:S,tilesDensityTablet:x,justifiedDensity:O,justifiedDensityMobile:j,justifiedDensityTablet:E})}),[w,S,x,O,j,E]),jt((function(){d({type:mn,layout:p,horizontalImageHeight:C,carouselImageHeight:D})}),[p,C,D]),jt((function(){d({type:hn,apiUrl:a})}),[a]),jt((function(){d({type:yn,restNonce:l})}),[l]),jt((function(){d({type:gn,infinite:z,images:R,imageIds:H})}),[z,R.length,null!==(e=null==H?void 0:H.length)&&void 0!==e?e:[]]),me(wn.Provider,{value:[f,d],children:c})};const xn=function(){var t={},e=function(t){var e=st.context[t.__c],n=St(ct++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(st)),e.props.value):t.__}(wn),n=ze(e,2),r=n[0],o=n[1];return t.loadImages=Ge(Ce().mark((function e(){var n,o,i,a,l=arguments;return Ce().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l.length>0&&void 0!==l[0]?l[0]:null,o=r.images.map((function(t){return t.id})),i=r.imageIds.filter((function(t){return!o.includes(t)})),null!=n?(console.log("Loading images up to id:",n),a=i.indexOf(n),i=-1!==a?i.slice(0,a+1):[]):i=i.slice(0,r.loadImagesCount),i.length&&t.fetchImages(i);case 5:case"end":return e.stop()}}),e)}))),t.fetchImages=function(){var t=Ge(Ce().mark((function t(e){var n;return Ce().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o({type:vn}),t.prev=1,t.next=4,le("".concat(fe,"/images/"),{method:"POST",nonce:r.restNonce,json:{imageIds:e,atts:r.atts,layout:r.layout,size:r.size}});case 4:(n=t.sent).success&&o({type:ln,images:[].concat(Me(r.images),Me(n.data))}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),t.t0.message&&alert(t.t0.message);case 11:return t.prev=11,o({type:bn}),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,8,11,14]])})));return function(e){return t.apply(this,arguments)}}(),qe(qe({},r),t)};function On(t){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(t)}var jn,En,In,kn,Ln,Pn;function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(n),!0).forEach((function(e){An(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function An(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=On(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==On(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mn(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Cn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Dn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Gn=lt("figure")(jn||(jn=Dn(["\n position: relative;\n margin: 0;\n"]))),zn=lt("div")(En||(En=Dn(["\n height: inherit;\n"]))),Rn=lt("a")(In||(In=Dn(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.3);\n transition: background-color 0.3s;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n"]))),Hn=lt("div")(kn||(kn=Dn(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n text-align: center;\n border-radius: 8px;\n color: #fff;\n text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);\n display: flex;\n flex-direction: column;\n align-items: center;\n"]))),Un=lt("a")(Ln||(Ln=Dn(["\n color: #fff;\n font-size: 1.5em;\n font-weight: bold;\n text-decoration: none;\n margin-bottom: ",";\n"])),(function(t){return t.hasExcerpt?"5px":"0"})),qn=lt("p")(Pn||(Pn=Dn(["\n color: #fff;\n font-size: 1em;\n margin: 0;\n white-space: normal;\n"]))),Wn=function(t){var e=t.image,n=t.atts,r=xn(),o=(r.isPreview,r.captions),i=r.captionsAlignment,a=r.captionsBackground,l=r.layout,c=r.carouselAspectRatio,s=r.stylishEnabled,u=(r.stylishBorderRadius,r.stylishShadowOpacity,r.stylishShadowOpacityHover,r.stylishTransitionSpeed,e.img_html),f=e.domElement,d=e.link_href,p=e.link_target,m=e.link_rel,h=e.featured_post_title,y=e.featured_post_url,g=e.featured_post_excerpt,v=e.meta,b=e.caption,_=e.attributes,w=e.classNames,S=["mgl-item"].concat(Mn(void 0===w?[]:w));s&&S.push("is-stylish");var x=S.join(" "),O=Et(null),j=It((function(){return"carousel"!==l?"":c||null!=n&&n.keepAspectRatio?"-aspect-ratio":""}),[l,c]);jt((function(){var t=O.current;if(t&&f)return t.appendChild(f),function(){t.removeChild(f)}}),[f]),jt((function(){var t=O.current;if(t){var e=function(e){if("Enter"===e.key){e.preventDefault();var n=t.querySelector('a, button, [role="button"], img');n&&n.click()}if(e.shiftKey&&"End"===e.key){e.preventDefault();var r=t.closest(".mgl-gallery");if(r){var o=r.querySelectorAll(".mgl-img-container"),i=o[o.length-1];i&&i.focus()}}if(e.shiftKey&&"Home"===e.key){e.preventDefault();var a=t.closest(".mgl-gallery");if(a){var l=a.querySelector(".mgl-img-container");l&&l.focus()}}};return t.addEventListener("keydown",e),function(){t.removeEventListener("keydown",e)}}}),[]);var E=It((function(){return Ze(l)?{"--w":v.width,"--h":v.height}:{}}),[l,v]);return me(Gn,Tn(Tn({className:x,style:E},_),{},{children:[me("div",{className:"mgl-icon",children:me("div",{className:"mgl-img-container".concat(j),ref:O,tabIndex:0,children:function(){if(f)return null;var t=d?me("a",{href:d,target:p,rel:m,dangerouslySetInnerHTML:{__html:u}}):me("div",{style:{height:"100%",display:"flex"},dangerouslySetInnerHTML:{__html:u}});return h?me(zn,{children:[me(Rn,{href:y,children:me(Hn,{children:[me(Un,{hasExcerpt:!!g,children:h}),g&&me(qn,{children:g})]})}),t]}):t}()})}),"none"!==o&&b&&"carousel"!==l?me("figcaption",{className:"mgl-caption caption-".concat(i," caption-bg-").concat(a),children:me("p",{dangerouslySetInnerHTML:{__html:b}})}):null]}))};function Bn(t){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(t)}function Fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fn(Object(n),!0).forEach((function(e){Kn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Bn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Jn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Vn,Xn=function(){var t,e=xn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.justifiedGutter,c=Yn(xt(window.innerWidth),2),s=c[0],u=c[1],f=It((function(){return s<=460?"mobile":s<=768?"tablet":"desktop"}),[s]),d=(a.justified||{desktop:"high",tablet:"medium",mobile:"low"})[f],p=(null===(t=en[d])||void 0===t?void 0:t[f])||1,m=(p-i.length%p)%p;jt((function(){var t=function(){u(window.innerWidth)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);var h=$n($n({},o),{},{"--columns":p,"--mgl-gutter":"".concat(l,"px")});return me("div",{id:n,className:"".concat(r).concat(p>1?" mgl-justified-grid":""),style:h,children:[i.map((function(t){return me(Wn,{image:t},t.id)})),Array.from({length:m}).map((function(t,e){return me("div",{className:"mgl-item mgl-empty"},"empty-".concat(e))}))]})};var Zn=lt("div")(Vn||(Vn=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n"])),(function(t){return Ze(t.layout)&&"\n #".concat(t.classId," {\n display: ").concat(t.isPreview?"block":"none",";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n margin: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Fe&&"\n .mgl-masonry {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n column-count: ").concat(t.columns,";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item, figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 800px) {\n #").concat(t.classId," {\n column-count: 2;\n }\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," {\n column-count: 1;\n }\n }\n ")}),(function(t){return t.layout===Ke&&"\n .mgl-square {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n\t\t margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n width: calc(100% / ").concat(t.columns,");\n padding-bottom: calc(100% / ").concat(t.columns,");\n }\n\n ").concat(t.columns>3&&"\n @media screen and (max-width: 768px) {\n #".concat(t.classId," .mgl-item {\n width: 33.33%;\n padding-bottom: 33.33%;\n }\n }\n "),"\n\n ").concat(t.columns>2&&"\n @media screen and (max-width: 460px) {\n #".concat(t.classId," .mgl-item {\n width: 50%;\n padding-bottom: 50%;\n }\n }\n "),"\n\n ").concat(t.columns>1&&"\n @media screen and (max-width: 360px) {\n #".concat(t.classId," .mgl-item {\n width: 100%;\n padding-bottom: 100%;\n }\n }\n "),"\n\n #").concat(t.classId,".custom-gallery-class .mgl-item {\n padding-bottom: calc(100% / ").concat(t.columns," / 1.5) !important;\n }\n\n #").concat(t.classId," .mgl-item .mgl-icon {\n padding: ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ye&&"\n .mgl-cascade {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," figcaption {\n display: none\n }\n }\n ")}),(function(t){return t.layout===Be&&"\n .mgl-tiles {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 768px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n }\n\n @media screen and (max-width: 460px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n }\n ")}),(function(t){return t.layout===Xe&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-prev-btn, #").concat(t.classId," .meow-horizontal-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Je&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-prev-btn, #").concat(t.classId," .meow-carousel-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ve&&"\n #".concat(t.classId," .mgl-item .mgl-icon .mgl-map-container {\n height: ").concat(t.mapHeight,"px;\n }\n ")}),(function(t){return t.stylishEnabled&&"\n #".concat(t.classId," .mgl-item.is-stylish {\n border-radius: ").concat(t.stylishBorderRadius,"px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, ").concat(t.stylishShadowOpacity,");\n transition: all ").concat(t.stylishTransitionSpeed,"ms cubic-bezier(0.4, 0, 0.2, 1) !important;\n }\n\n #").concat(t.classId," .mgl-item.is-stylish:hover {\n box-shadow: 0 8px 16px rgba(0, 0, 0, ").concat(t.stylishShadowOpacityHover,");\n transform: translateY(-2px);\n z-index: 5;\n }\n ")}));function Qn(t){return function(t){if(Array.isArray(t))return nr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||er(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||er(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function er(t,e){if(t){if("string"==typeof t)return nr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nr(t,e):void 0}}function nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var rr=function(){var t=xn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.masonryColumns,a=t.masonryLeftToRight,l=Et(null),c=tr(xt(i),2),s=c[0],u=c[1];return jt((function(){if(a){var t=function(){var t=window.getComputedStyle(l.current),e=parseInt(t["column-count"]);e!==s&&u(e)};l.current.addEventListener("masonry-layout",t);var e=new ResizeObserver((function(){l.current.dispatchEvent(new CustomEvent("masonry-layout"))}));return e.observe(l.current),function(){e.disconnect(),l.current.removeEventListener("masonry-layout",t)}}}),[]),me("div",{ref:l,id:e,className:n,style:r,children:(a?function(t,e){if(!e||1===e)return t;for(var n=[],r=Array.from({length:e},(function(){return[]})),o=0;o<t.length;o++)r[o%e].push(t[o]);for(var i=0,a=r;i<a.length;i++){var l=a[i];n=[].concat(Qn(n),Qn(l))}return n}(o,s):o).map((function(t){return me(Wn,{image:t},t.id)}))})};function or(t){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(t)}function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ar(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ir(Object(n),!0).forEach((function(e){lr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==or(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return sr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ur=function(){var t=xn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=cr(xt(!1),2),a=i[0],l=i[1];return jt((function(){l(!0)}),[]),me("div",{id:e,className:n,style:a?ar({},r):ar(ar({},r),{},{visibility:"hidden",display:"none"}),children:o.map((function(t){return me(Wn,{image:t},t.id)}))})},fr=function(){var t=xn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.layouts,a=kt((function(t){return t.reverse().map((function(t){return t.meta.width>=t.meta.height?"o":"i"})).join("")}),[]),l=kt((function(t,e){if(e<=0)return{result:!1,ideal:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,size:null,currentImages:null};var n=o.slice(t,t+e),r=a(n);return i.includes(r)?{result:!0,ideal:r,size:e,currentImages:n}:l(t,e-1,r)}),[o,i,a]);return me("div",{id:e,className:n,style:r,children:It((function(){for(var t=0,e=o.length-1,n=[];e>=t;){var r=l(t,2),i=r.result,a=r.ideal,c=r.size,s=r.currentImages;n.push({showError:!i,layout:a,images:s}),t+=c}return n}),[o,l]).map((function(t){var e=t.showError,n=t.layout,r=t.images;return e&&me("div",{style:"padding: 20px; background: darkred; color: white;",children:["MEOW GALLERY ERROR. No layout for ",n]}),me("div",{class:"mgl-row mgl-layout-".concat(n.length,"-").concat(n),"data-cascade-layout":n,children:r.map((function(t,e){return me("div",{class:"mgl-box ".concat(String.fromCharCode(97+e)),children:me(Wn,{image:t})},t.id)}))})}))})};function dr(t){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr(t)}function pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(n),!0).forEach((function(e){hr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=dr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var vr=function(){var t=Et(null),e=xn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.tilesStylishStyle,c=yr(xt(window.innerWidth),2),s=c[0],u=c[1],f=yr(xt(!1),2),d=f[0],p=f[1],m=It((function(){return l?"mgl-tiles-stylish":""}),[l]),h=a[It((function(){var t=window.innerWidth;return t<=460?"mobile":t<=768?"tablet":"desktop"}),[s])],y=tn[h],g=It((function(){if(!i.length)return[];var t=[],e="";if(i.forEach((function(n,r){var o=e+n.orientation;y.includes(o)?e=o:(t.push(e),e=n.orientation),r===i.length-1&&t.push(e)})),t.length>=2){var n=t.length-1,r=t.length-2,o=t[n].split(""),a=t[r].split("");if(1===o.length&&a.length>2){var l=a.pop();o.unshift(l)}t[r]=a.join(""),t[n]=o.join("")}return function(t){var e=0;return t.map((function(t){var n="";return"oooo"===t?(3===e&&(e=0),n+=0===e?"".concat(t,"-v0"):"".concat(t,"-v").concat(e),e++):n+=t,{content:t,rowLayout:n}}))}(t)}),[i,y]);jt((function(){var t=function(){u(window.innerWidth),document.body.dispatchEvent(new Event("post-load"))};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),jt((function(){d&&t.current&&g.length&&t.current.querySelectorAll(".mgl-row").forEach((function(t){var e=t.getAttribute("data-row-layout"),n=nn[e],r=function(t,e){var n="three-two";if("landscape"==e){if(0===t)return console.warn("Meow Gallery: Width is zero, returning fallback value"),window.innerWidth/4;switch(n){case"three-two":return 2*t/3;case"five-four":return 4*t/5}}else{if(0===t)return console.warn("Meow Gallery: Width is zero, returning fallback value"),window.innerWidth/3;switch(n){case"three-two":return 3*t/2;case"five-four":return 5*t/4}}}(t.querySelector(".mgl-box.".concat(n.box)).offsetWidth,n.orientation);0===r?setTimeout((function(){t.style.height=r+"px"}),750):t.style.height=r+"px"}))}),[d,g.length]),jt((function(){p(!0)}),[]);var v=d?mr({},o):mr(mr({},o),{},{visibility:"hidden",display:"none"});return me("div",{ref:t,id:n,className:r,style:v,children:g.map((function(t,e){var n=t.content,r=t.rowLayout,o=0===e?0:g.filter((function(t,n){return n<e})).reduce((function(t,e){return t+e.content.length}),0),a=i.slice(o,o+n.length);return me("div",{className:"mgl-row mgl-layout-".concat(n.length,"-").concat(r),"data-row-layout":r,children:a.map((function(t,e){return me("div",{className:"mgl-box ".concat(String.fromCharCode(97+e)),children:me(Wn,{image:mr(mr({},t),{},{classNames:[m]})})},t.id)}))},e)}))})};function br(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var wr=function(){var t=Et(),e=xn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.horizontalHideScrollbar,l=e.horizontalGutter,c=e.horizontalScrollWarning,s=e.canInfiniteScroll,u=e.infiniteBuffer,f=e.horizontalNativeScroll,d=e.busy,p=xn().loadImages,m=br(xt(0),2),h=m[0],y=m[1],g=br(xt(0),2),v=g[0],b=g[1],_=br(xt(!1),2),w=_[0],S=_[1],x=br(xt(!1),2),O=x[0],j=x[1],E=br(xt(!0),2),I=E[0],k=E[1],L=br(xt(!0),2),P=L[0],N=L[1],T=It((function(){var t=[r];return a&&t.push("hide-scrollbar"),t.join(" ")}),[r,a]),A=kt((function(){t.current&&s&&!d&&t.current.scrollLeft>=t.current.scrollLeftMax-u&&p()}),[t,d,s,u,p]),M=kt((function(e){f||t.current&&(e.preventDefault(),t.current.scrollLeft+=e.deltaY,R(),A())}),[t,A]),C=kt((function(e){t.current&&(e.preventDefault(),b(t.current.scrollLeft),y(e.screenX),S(!0))}),[t]),D=kt((function(e){if(t.current){var n=h-e.screenX;w&&(Math.abs(n)>5&&!O?(j(!0),t.current.querySelectorAll("img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")}))):j(!1),O&&(t.current.scrollLeft=v+n,A(),R()))}}),[t,h,w,O,v,A]),G=kt((function(){t.current&&w&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t,w]),z=kt((function(){t.current&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t]),R=kt((function(){t.current&&c&&(t.current.scrollLeftMax=t.current.scrollWidth-t.current.clientWidth,k(t.current.scrollLeft<t.current.scrollLeftMax-300&&P),N(!1))}),[t,P]),H=It((function(){return I&&c?me("div",{className:"meow-horizontal-more-images",children:me("p",{children:" Keep scrolling, more to see ! ⏩ "})}):null}),[I,t]);return jt((function(){if(!P&&c){var e=setTimeout((function(){N(!0),k(t.current.scrollLeft<t.current.scrollLeftMax-300)}),3e3);return function(){return clearTimeout(e)}}}),[P,t,c]),me("div",{id:n,className:T,style:o,"data-mgl-gutter":l,onWheel:M,onMouseDown:C,onMouseMove:D,onMouseOut:G,onMouseUp:z,children:[me("div",{ref:t,className:"meow-horizontal-track",children:i.map((function(t){return me(Wn,{image:t},t.id)}))}),H]})};function Sr(t){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(t)}function xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xr(Object(n),!0).forEach((function(e){jr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Sr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Er(t){return function(t){if(Array.isArray(t))return Lr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||kr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||kr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(t,e){if(t){if("string"==typeof t)return Lr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lr(t,e):void 0}}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Pr=function(){var t,e,n=Et(null),r=Et(null),o=xn(),i=o.classId,a=o.className,l=o.inlineStyle,c=o.images,s=o.carouselGutter,u=o.carouselArrowNavEnabled,f=o.carouselInfinite,d=o.carouselDotNavEnabled,p=o.carouselThumbnailNavEnabled,m=o.carouselCompact,h=o.carouselImmersive,y=o.carouselAutoplay,g=o.captions,v=o.atts,b=xn().loadImages;function _(t,e){return t in v?"true"===v[t]||"1"===v[t]:e}var w=_("arrow",u),S=_("dot",d),x=_("thumbnail",p),O=_("compact",m),j=_("immersive",h),I=_("autoplay",y),k=_("keep-aspect-ratio",!1),L=(null==v?void 0:v.captions)||g;null!=v&&v.hero&&(w=!1,S=!1,x=!1,O=!0,j=!0,I=!0,L="none");var P=Ir(xt([]),2),N=P[0],T=P[1],A=Ir(xt(""),2),M=A[0],C=A[1],D=Ir(xt(0),2),G=D[0],z=D[1],R=Ir(xt([]),2),H=R[0],U=R[1],q=Ir(xt(),2),W=q[0],B=q[1],F=Ir(xt(!1),2),$=F[0],K=F[1],Y=Ir(xt(!1),2),J=Y[0],V=Y[1],X=Ir(xt(0),2),Z=X[0],Q=X[1],tt=Ir(xt(0),2),et=tt[0],nt=tt[1],rt=Ir(xt(0),2),ot=rt[0],it=rt[1],at=Ir(xt(null!==(t=I)&&void 0!==t&&t),2),lt=at[0],ct=at[1],st=Ir(xt(!1),2),ut=st[0],ft=st[1],dt=It((function(){var t=c.length;return 0===t?[]:[Or(Or({},c.at(-2)),{},{classNames:["clone","before-last-item","no-lightbox"]}),Or(Or({},c.at(t>1?-1:0)),{},{classNames:["clone","last-item","no-lightbox"]})].concat(Er(c),[Or(Or({},c.at(0)),{},{classNames:["clone","first-item","no-lightbox"]}),Or(Or({},c.at(t>1?1:0)),{},{classNames:["clone","after-last-item","no-lightbox"]})]).map((function(t,e){var n;return Or(Or({},t),{},{dataIndex:e,classNames:e===W?[].concat(Er(null!==(n=t.classNames)&&void 0!==n?n:[]),["active"]):t.classNames,attributes:Or(Or({},t.attributes),{},{"data-mc-index":e})})}))}),[c,W]),pt=kt((function(t){return dt.find((function(e){return e.dataIndex===t})).classNames.includes("clone")}),[dt]),mt=It((function(){return dt.find((function(t){return t.dataIndex===W}))}),[dt,W]),ht=dt.length,yt=ht-3,gt=kt((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.current&&H.length&&null!=t){var r=parseInt(t);T(e?["no-transition"]:[]);var o,i=H.find((function(t){return t.dataIndex===r})).element,a=-1*((o=i).offsetLeft+o.offsetWidth/2-n.current.offsetWidth/2);C("translate3d(".concat(a,"px, 0, 0)")),e&&setTimeout((function(){T([])})),B(r)}}),[n,H]),vt=kt((function(){var t=W;2===W&&(gt(yt+1,!0),t=yt+1),setTimeout((function(){gt(0===t?ht-1:t-1)}),1)}),[pt,W,mt,ht,gt,lt]),bt=kt((function(){var t=W;W===yt&&(gt(1,!0),t=1),setTimeout((function(){gt(t===ht-1?0:t+1)}),1)}),[pt,W,mt,dt,ht,gt]),_t=function(){if(!n.current||!r.current||!H.length)return!1;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=H[1].element.getBoundingClientRect().left+H[1].element.offsetWidth/2,o=H[H.length-2].element.getBoundingClientRect().left+H[H.length-2].element.offsetWidth/2;return t-e<=0?(gt(yt,!0),nt(parseFloat(ee(r.current)[0])),!0):t-o>=0&&(gt(2,!0),nt(parseFloat(ee(r.current)[0])),!0)},wt=function(){if(!n.current)return null;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=!1,r=0;return H.forEach((function(n,o){var i=n.element.getBoundingClientRect().left+n.element.offsetWidth/2,a=Math.abs(t-i);(!e||a<e)&&(e=a,r=o)})),r},St=kt((function(t){r.current&&(K(!0),"touchstart"===t.type?Q(t.touches[0].pageX):Q(t.clientX),nt(parseFloat(ee(r.current)[0])))}),[r]),Ot=kt((function(t){if($&&r.current)if(r.current.querySelectorAll(".mwl-img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")})),V(!0),r.current.classList.add("no-transition"),_t())Q(t.clientX);else{var e="touchmove"===t.type?Z-t.touches[0].pageX:Z-t.clientX;it(e),r.current.style.transform="translate3d("+(et-e)+"px, 0, 0)"}}),[$,r,_t,Z,et]),Lt=kt((function(){if(r.current){var t=J;if(r.current.classList.remove("no-transition"),V(!1),K(!1),t){setTimeout((function(){document.querySelectorAll(".mwl-img-disabled").forEach((function(t){t.classList.remove("mwl-img-disabled"),t.classList.add("mwl-img")}))}));var e=wt();return e===W&&ot>=80&&bt(),e===W&&ot<=-80&&vt(),gt(e),!1}}}),[r,J,W,ot,bt,vt,wt]),Pt=kt((function(){ct(!lt)}),[lt]),Nt=It((function(){return me("div",{className:"meow-carousel-autoplay-btn",onClick:Pt,children:[lt&&me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[me("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"}),me("path",{d:"M352.5 256L192 352V160z"})]}),!lt&&me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"})})]})}),[Pt,lt]),Tt=It((function(){return me(E,{children:[me("div",{className:"meow-carousel-prev-btn",onClick:vt,children:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"})})}),me("div",{className:"meow-carousel-next-btn",onClick:bt,children:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"})})})]})}),[vt,bt]),At=It((function(){var t=O?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=W-2-5<0?0:W-2-5,r=Math.floor(60*n)+5;return me("div",{className:"meow-carousel-nav-thumbnails-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-thumbnail"];return(t.dataIndex===W||2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),me("div",{className:"".concat(n.join(" ")," no-lightbox"),onClick:function(){return gt(t.dataIndex)},dangerouslySetInnerHTML:{__html:t.img_html}},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W,gt]),Mt=It((function(){var t=O?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=W-2-10<0?0:W-2-10,r=Math.floor(26*n)+5;return me("div",{className:"meow-carousel-nav-dots-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-dot"];return(t.dataIndex===W||2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),me("div",{className:n.join(" "),onClick:function(){return gt(t.dataIndex)},children:me("span",{})},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W,gt]),Ct=It((function(){return me("div",{className:"meow-carousel-caption-container ".concat(O?"meow-inside-bottom-text":""),children:dt.map((function(t){var e;if(void 0===t.caption||""===t.caption)return null;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-caption"];return(t.dataIndex===W&&t.caption||t.caption&&2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),me("div",{className:"".concat(n.join(" ")),children:[j&&me("div",{className:"meow-immersive-caption",style:"background: url('".concat(t.img_html.match(/src="([^"]*)/)[1],"') no-repeat center center; background-size: cover;")}),me("p",{dangerouslySetInnerHTML:{__html:t.caption}})]},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W]);jt((function(){function t(){gt(W,!0)}return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[W,gt]),jt((function(){if(0===G&&r.current&&dt.length>0){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);z(e.reduce((function(t,e){return t+e.offsetWidth}),0)),U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}})))}}),[null===(e=r.current)||void 0===e?void 0:e.children,dt]),jt((function(){if(f&&c.length+4!=H.length){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}}))),gt(W,!1),window.renderMeowLightbox&&window.renderMeowLightboxWithSelector(".mgl-gallery")}}),[c]),jt((function(){f&&(W>0&&W%10==0||W>c.length)&&b()}),[W]),jt((function(){G>0&&setTimeout((function(){gt(2,!0)}),300)}),[G]),jt((function(){if(lt){var t=setInterval((function(){setTimeout((function(){bt()}),10)}),4e3);return function(){return clearInterval(t)}}}),[lt,W]),jt((function(){ft(!0)}),[]);var Dt=ut?Or({},l):Or(Or({},l),{},{visibility:"hidden",display:"none"});return me("div",{ref:n,id:i,className:a,style:Dt,"data-mgl-gutter":s,"data-mgl-arrow_nav":w,"data-mgl-dot_nav":S,"data-mgl-keep_aspect_ratio":k,children:[me("div",{ref:r,className:["meow-carousel-track"].concat(Er(N)).join(" "),style:{width:"".concat(G,"px"),transform:M,opacity:null!=W?1:0},onMouseDown:St,onTouchStart:St,onMouseMove:Ot,onTouchMove:Ot,onMouseUp:Lt,onTouchEnd:Lt,children:dt.map((function(t){return me(Wn,{image:t,atts:{keepAspectRatio:k}},t.dataIndex)}))}),I&&Nt,w&&Tt,"none"!=L&&Ct,x&&At,S&&Mt]})};function Nr(t){return Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(t)}function Tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ar(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tr(Object(n),!0).forEach((function(e){Mr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Nr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cr=function(){var t=xn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.mglMap,i=ce();return me("div",{id:e,className:n,style:Ar(Ar({},r),{},{height:"".concat(o.height,"px")}),children:me("div",{id:i,className:"mgl-ui-map"})})};function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Gr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return zr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}!function(t,e,n,r){Z.p=e,ot=t,it=n,at=r}(O);var Rr=function(){var t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},Hr=function(){var t=xn(),e=t.layout,n=t.containerClassName,r=t.isPreview,o=t.gutter,i=t.columns,a=t.classId,l=t.imageHeight,c=t.rightClick,s=t.mapHeight,u=t.infinite,f=t.loading,d=t.infiniteBuffer,p=t.busy,m=t.canInfiniteScroll,h=t.stylishEnabled,y=t.stylishBorderRadius,g=t.stylishShadowOpacity,v=t.stylishShadowOpacityHover,b=t.stylishTransitionSpeed,_=xn().loadImages,w=function(t){return Qe.includes(t)}(e),S=Et(null),x=Gr(xt(Rr()),2),O=x[0],j=x[1],E=Gr(xt(!1),2),I=E[0],k=E[1];jt((function(){if(u){var t=setTimeout((function(){var t,e,n,r=a?document.getElementById(a):null===(t=S.current)||void 0===t?void 0:t.querySelector(".mgl-gallery");r&&(e=r,n={loadImages:_,canInfiniteScroll:m},rn.set(e,n))}),100);return function(){var e;clearTimeout(t);var n,r=a?document.getElementById(a):null===(e=S.current)||void 0===e?void 0:e.querySelector(".mgl-gallery");r&&(n=r,rn.delete(n))}}}),[_,u,a,m]),jt((function(){var t=function(){j(Rr())};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);var L=It((function(){switch(e){case $e:return me(Xn,{});case Fe:return me(rr,{});case Ke:return me(ur,{});case Ye:return me(fr,{});case Be:return me(vr,{});case Xe:return me(wr,{});case Je:return me(Pr,{});case Ve:return me(Cr,{});default:return me("p",{children:["Sorry, not implemented yet! : ",e]})}}),[e]),P=kt((function(t){c||t.preventDefault()}),[c]),N=kt((function(){_()}),[_]);jt((function(){if(u&&w&&"button-loader"!==f){var t=window.location.hash;if(t){var e=t.split("mwl-")[1];e&&_(e)}}}),[u,w,f]),jt((function(){var t;if(u&&w&&"button-loader"!==f&&m){var e=a?document.getElementById(a):null,n=null==e?void 0:e.nextElementSibling,r=null!=n&&null!==(t=n.classList)&&void 0!==t&&t.contains("mgl-infinite-scroll")?n:null;if(r){var o=new IntersectionObserver((function(t){k(t[0].isIntersecting)}),{rootMargin:"0px 0px ".concat(d,"px 0px")});return o.observe(r),function(){return o.disconnect()}}}else k(!1)}),[u,w,f,m,d,a]),jt((function(){I&&!p&&m&&_()}),[I,p,m,_]);var T=It((function(){return"number"==typeof o?o:"object"===Dr(o)&&null!==o&&"number"==typeof o[O]?o[O]:0}),[o,O]);return me(Zn,{ref:S,className:n,layout:e,isPreview:r,gutter:T,columns:i,classId:a,imageHeight:l,mapHeight:s,stylishEnabled:h,stylishBorderRadius:y,stylishShadowOpacity:g,stylishShadowOpacityHover:v,stylishTransitionSpeed:b,onContextMenu:P,children:[L,m&&w&&("button-loader"===f?me("button",{onClick:N,className:"mgl-button-loader",disabled:p,children:p?"Loading...":"Load more"}):me("div",{className:"mgl-infinite-scroll ".concat("undefined"!==f&&"none"!==f?f:""),children:me("div",{className:"mgl-loading"})}))]})};function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qr(Object(n),!0).forEach((function(e){Br(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Br(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ur(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ur(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fr(t){return function(t){if(Array.isArray(t))return $r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Kr=function(t){var e=t.collectionThumbnail,n=t.attributes,r=void 0===n?{}:n,o=t.setIsLoadingRoot,i=t.index,a=t.isOdd,l=t.isLast,c=e.name,s=e.description,u=(e.media_id,e.img_src),f=e.img_srcset,d=e.missing_image,p=e.classNames,m=a&&l,h=!d&&!!u,y=["mgl-collection-item"].concat(Fr(void 0===p?[]:p),[h?"":"mgl-collection-item-missing"]).filter(Boolean).join(" ").trim(),g=It((function(){return h?'<img class="mgl-collection-thumbnail no-lightbox" src="'.concat(u,'" ').concat(f?'srcset="'.concat(f,'"'):"",' alt="').concat(c,'" loading="lazy" />'):""}),[h,u,f,c]),v=It((function(){if(void 0===i)return{};if(m){var t,e=i-1,n=e%4,r=6*Math.floor(e/4)+1;if(0===n)t="".concat(r," / 1 / ").concat(r+3," / 6");else{if(2!==n)return{gridArea:1===n?"".concat(r," / 3 / ").concat(r+3," / 6"):"".concat(r+3," / 4 / ").concat(r+6," / 6")};t="".concat(r+3," / 1 / ").concat(r+6," / 6")}return{gridArea:t}}var o,a=i-1,l=6*Math.floor(a/4)+1;switch(a%4){case 0:o="".concat(l," / 1 / ").concat(l+3," / 3");break;case 1:o="".concat(l," / 3 / ").concat(l+3," / 6");break;case 2:o="".concat(l+3," / 1 / ").concat(l+6," / 4");break;case 3:o="".concat(l+3," / 4 / ").concat(l+6," / 6")}return{gridArea:o}}),[i,m]);return me("figure",Wr(Wr({className:y},r),{},{onClick:function(){return t=re(e),n=t.id,r=t.search_slug,(i=new URL(window.location.href)).searchParams.set(r,n),window.history.pushState({},"",i),void o(n,r);var t,n,r,i},style:v,children:me("div",{className:"mgl-collection-img-container",children:[me("div",h?{className:"mgl-collection-image-content",dangerouslySetInnerHTML:{__html:g}}:{className:"mgl-collection-image-content mgl-collection-image-missing",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)",color:"#9ca3af"},"aria-label":"Image unavailable",children:me("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40%",height:"40%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",style:{maxWidth:72,maxHeight:72,opacity:.7},children:[me("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),me("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),me("path",{d:"M21 15l-5-5L5 21"}),me("line",{x1:"3",y1:"3",x2:"21",y2:"21"})]})}),me("div",{className:"mgl-collection-overlay"}),me("div",{className:"mgl-collection-info",children:[me("h3",{className:"mgl-collection-title",children:c}),me("p",{className:"mgl-collection-caption",children:s})]})]})}))};function Yr(t){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(t)}function Jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jr(Object(n),!0).forEach((function(e){Xr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Yr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zr=function(t){var e=t.classId,n=t.className,r=void 0===n?"":n,o=t.inlineStyle,i=t.collectionThumbnails,a=t.setIsLoadingRoot,l=(i=i.filter((function(t){return!t.error||(console.error("Meow Gallery: Error loading collection thumbnail",t),!1)}))).length,c=l%2!=0,s=0;if(l>0){var u=l-1,f=u%4,d=6*Math.floor(u/4)+1;s=0===f||1===f?d+2:d+5}var p={gridTemplateColumns:"repeat(5, 1fr)",gridTemplateRows:"repeat(".concat(s,", minmax(50px, 1fr))")};return me("div",{id:e,className:"mgl-collection-bento ".concat(r),style:Vr(Vr({},p),o),children:i.map((function(t,e){return me(Kr,{collectionThumbnail:t,isOdd:c,isLast:e===i.length-1,index:e+1,setIsLoadingRoot:a},t.id)}))})},Qr=function(t){var e=t.classId,n=t.className,r=void 0===n?"":n,o=t.inlineStyle,i=t.collectionThumbnails,a=t.setIsLoadingRoot,l=i.filter((function(t){return!t.error||(console.error("Meow Gallery: Error loading collection thumbnail",t),!1)}));return jt((function(){if(l.length>0){var t=re(l[0]),e=t.id,n=t.search_slug;a(e,n)}}),[]),me("div",{id:e,className:"mgl-collection-menu ".concat(r),style:o,children:me("div",{className:"mgl-collection-menu-loading",children:"Loading gallery..."})})};function to(t){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(t)}function eo(){
5 +Ge=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ce(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?m:h,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ce(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function ze(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function He(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){ze(i,r,o,a,l,"next",t)}function l(t){ze(i,r,o,a,l,"throw",t)}a(void 0)}))}}function Re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||Ue(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(t,e){if(t){if("string"==typeof t)return Be(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(t,e):void 0}}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function We(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?We(Object(n),!0).forEach((function(e){Fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fe(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ce(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ce(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $e="tiles",Ke="masonry",Ye="justified",Je="square",Ve="cascade",Xe="carousel",Ze="map",Qe="horizontal",tn=function(t){return t===Ye},en=[$e,Ke,Ye,Je,Ve],nn={high:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii","iooo","oioo","ooio","oooi","iiii","oooo","ioooo","ooioo","ooooi","iiooo","iooio","ooiio","ooioi","oooii","oiioo","oiooi","iiioo","iiooi","iooii","ooiii"],medium:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii"],low:["o","i"]},rn={high:{desktop:4,tablet:3,mobile:2},medium:{desktop:3,tablet:2,mobile:2},low:{desktop:1,tablet:1,mobile:1}},on={o:{box:"a",orientation:"landscape"},i:{box:"a",orientation:"portrait"},oo:{box:"a",orientation:"landscape"},ii:{box:"a",orientation:"portrait"},oi:{box:"a",orientation:"landscape"},io:{box:"a",orientation:"portrait"},ooo:{box:"c",orientation:"landscape"},ioo:{box:"b",orientation:"landscape"},oio:{box:"a",orientation:"landscape"},ooi:{box:"a",orientation:"landscape"},oii:{box:"a",orientation:"landscape"},ioi:{box:"b",orientation:"landscape"},iio:{box:"c",orientation:"landscape"},iii:{box:"a",orientation:"portrait"},"oooo-v0":{box:"c",orientation:"landscape"},"oooo-v1":{box:"a",orientation:"landscape"},"oooo-v2":{box:"a",orientation:"landscape"},oioo:{box:"a",orientation:"landscape"},iooo:{box:"d",orientation:"landscape"},ooio:{box:"d",orientation:"landscape"},oooi:{box:"a",orientation:"landscape"},iiii:{box:"a",orientation:"portrait"},aoooo:{box:"a",orientation:"portrait"},ioooo:{box:"a",orientation:"portrait"},ooioo:{box:"c",orientation:"portrait"},ooooi:{box:"e",orientation:"portrait"},iiooo:{box:"a",orientation:"portrait"},iooio:{box:"a",orientation:"portrait"},ooiio:{box:"e",orientation:"landscape"},ooioi:{box:"c",orientation:"portrait"},oooii:{box:"d",orientation:"portrait"},oiioo:{box:"b",orientation:"portrait"},oiooi:{box:"b",orientation:"portrait"},iiioo:{box:"a",orientation:"portrait"},iiooi:{box:"a",orientation:"portrait"},iooii:{box:"a",orientation:"portrait"},ooiii:{box:"c",orientation:"portrait"}},an=new Map;qt&&qt.infinite&&"undefined"!=typeof window&&(window.mgl_load_more=function(t){var e,n,r,o,i,a="string"==typeof t?document.getElementById(t):t;!a||null!==(e=a.classList)&&void 0!==e&&e.contains("mgl-gallery")||(a=(null===(n=(r=a).closest)||void 0===n?void 0:n.call(r,".mgl-gallery"))||(null===(o=(i=a).querySelector)||void 0===o?void 0:o.call(i,".mgl-gallery")));var l=an.get(a);return!(!l||"function"!=typeof l.loadImages||!1===l.canInfiniteScroll||(l.loadImages(),0))});var ln=0,cn={apiUrl:null,restNonce:null,id:null,images:[],imageIds:[],className:"",containerClassName:"",inlineStyle:{},loadImagesCount:12,canInfiniteScroll:!1,layout:"tiles",captions:"none",animation:!1,imageSize:"srcset",infinite:!1,infiniteBuffer:0,tilesGutter:10,tilesGutterTablet:10,tilesGutterMobile:10,tilesDensity:"high",tilesDensityTablet:"medium",tilesDensityMobile:"low",stylishEnabled:!1,stylishBorderRadius:6,stylishBorderWidth:0,stylishBorderColor:"#ffffff",stylishShadowOpacity:.08,stylishShadowOpacityHover:.12,stylishHoverLift:2,stylishTransitionSpeed:250,masonryGutter:5,masonryColumns:3,justifiedGutter:5,justifiedRowHeight:200,justifiedDensity:"high",justifiedDensityTablet:"medium",justifiedDensityMobile:"low",squareGutter:5,squareColumns:5,cascadeGutter:10,horizontalGutter:5,horizontalImageHeight:500,horizontalHideScrollbar:!1,carouselGutter:5,carouselImageHeight:500,carouselArrowNavEnabled:!0,carouselDotNavEnabled:!0,carouselThumbnailNavEnabled:!1,mapEngine:"",mapHeight:400,googlemapsToken:"",googlemapsStyle:"[]",mapboxToken:"",mapboxStyle:{username:"",style_id:""},maptilerToken:"",rightClick:!1,size:"large",customClass:"",link:null,isPreview:!1,updir:null,classId:null,gutter:5,columns:3,layouts:[],density:{desktop:"high",tablet:"medium",mobile:"low"},imageHeight:500,mglMap:{defaultEngine:"undefined"!=typeof mgl_map&&null!==(ge=null===(ve=mgl_map)||void 0===ve?void 0:ve.default_engine)&&void 0!==ge?ge:"",tilesProvider:"undefined"!=typeof mgl_map&&null!==(be=null===(_e=mgl_map)||void 0===_e?void 0:_e.default_engine)&&void 0!==be?be:"",height:"undefined"!=typeof mgl_map&&null!==(we=null===(Se=mgl_map)||void 0===Se?void 0:Se.height)&&void 0!==we?we:400,googlemaps:{apiKey:"undefined"!=typeof mgl_map&&null!==(xe=null===(Oe=mgl_map)||void 0===Oe||null===(Oe=Oe.googlemaps)||void 0===Oe?void 0:Oe.api_key)&&void 0!==xe?xe:"",style:"undefined"!=typeof mgl_map&&null!==(je=null===(Ee=mgl_map)||void 0===Ee||null===(Ee=Ee.googlemaps)||void 0===Ee?void 0:Ee.style)&&void 0!==je?je:""},mapbox:{apiKey:"undefined"!=typeof mgl_map&&null!==(Ie=null===(ke=mgl_map)||void 0===ke||null===(ke=ke.mapbox)||void 0===ke?void 0:ke.api_key)&&void 0!==Ie?Ie:"",style:"undefined"!=typeof mgl_map&&null!==(Le=null===(Pe=mgl_map)||void 0===Pe||null===(Pe=Pe.mapbox)||void 0===Pe?void 0:Pe.style)&&void 0!==Le?Le:""},maptiler:{apiKey:"undefined"!=typeof mgl_map&&null!==(Ne=null===(Te=mgl_map)||void 0===Te||null===(Te=Te.maptiler)||void 0===Te?void 0:Te.api_key)&&void 0!==Ne?Ne:"",style:"undefined"!=typeof mgl_map&&null!==(Ae=null===(Me=mgl_map)||void 0===Me||null===(Me=Me.maptiler)||void 0===Me?void 0:Me.style)&&void 0!==Ae?Ae:""},center:[51.505,-.09],lightboxable:!0},atts:{}},sn="SET_IMAGES",un="SET_CLASS_NAMES",fn="SET_CONTAINER_CLASS_NAMES",dn="SET_INLINE_STYLES",hn="SET_GUTTER",pn="SET_CULLUMNS",mn="SET_DENSITY",yn="SET_IMAGE_HEIGHT",gn="SET_API_URL",vn="SET_REST_NONCE",bn="SET_CAN_INFINITE_SCROLL",_n="PUSH_BUSY",wn="POP_BUSY",Sn=function(t,e){switch(e.type){case"ERROR_UPDATED":var n=e.apiErrors;return qe(qe({},t),{},{apiErrors:n});case sn:var r=e.images;return window.renderMeowLightbox&&setTimeout((function(){Yt("🔄 Rendering Meow Lightbox after SET_IMAGES"),window.renderMeowLightboxWithSelector(".mgl-gallery")}),500),qe(qe({},t),{},{images:r});case _n:var o=e.status,i=void 0===o?"":o;return qe(qe({},t),{},{busy:++ln>0,status:i});case wn:var a=e.status,l=void 0===a?"":a;return qe(qe({},t),{},{busy:--ln>0,status:l});case un:var c=e.layout,s=e.customClass,u=e.animation,f=e.captions,d=[];return d.push("mgl-gallery"),d.push("mgl-"+c),s&&d.push(s),u&&(d.push("is-animated"),d.push(u)),f&&d.push("captions-"+f),qe(qe({},t),{},{className:d.join(" ")});case fn:var h=e.layout,p=[];return p.push("mgl-"+h+"-container"),qe(qe({},t),{},{containerClassName:p.join(" ")});case dn:var m=e.layout,y=e.justifiedRowHeight,g=tn(m)?{"--rh":"".concat(y,"px")}:{};return qe(qe({},t),{},{inlineStyle:g});case hn:var v=e.layout,b=e.tilesGutter,_=e.tilesGutterTablet,w=e.tilesGutterMobile,S=e.masonryGutter,x=e.justifiedGutter,O=e.squareGutter,j=e.cascadeGutter,E=e.horizontalGutter,I=e.carouselGutter,k=e.mapGutter,L=Fe(Fe(Fe(Fe(Fe(Fe(Fe(Fe({},$e,{desktop:parseInt(b),tablet:parseInt(_),mobile:parseInt(w)}),Ke,parseInt(S)),Ye,parseInt(x)),Je,parseInt(O)),Ve,parseInt(j)),Qe,parseInt(E)),Xe,parseInt(I)),Ze,parseInt(k));return qe(qe({},t),{},{gutter:L[v]});case pn:var P=e.layout,N=e.masonryColumns,T=e.squareColumns,A=Fe(Fe({},Ke,parseInt(N)),Je,parseInt(T));return qe(qe({},t),{},{columns:A[P]});case mn:var M=e.tilesDensity,C=e.tilesDensityTablet,D=e.tilesDensityMobile,G={tiles:{desktop:M,tablet:C,mobile:D},justified:{desktop:e.justifiedDensity||"high",tablet:e.justifiedDensityTablet||"medium",mobile:e.justifiedDensityMobile||"low"},desktop:M,tablet:C,mobile:D};return qe(qe({},t),{},{density:G});case yn:var z=e.layout,H=e.horizontalImageHeight,R=e.carouselImageHeight,U=Fe(Fe({},Qe,parseInt(H)),Xe,parseInt(R));return qe(qe({},t),{},{imageHeight:U[z]});case gn:var B=e.apiUrl;return qe(qe({},t),{},{apiUrl:B});case vn:var W=e.restNonce;return qe(qe({},t),{},{restNonce:W});case bn:var q=e.infinite,F=e.images,$=e.imageIds,K=q&&F.length<$.length;return qe(qe({},t),{},{canInfiniteScroll:K});default:return t}},xn=function(t,e){var n={__c:e="__cC"+g++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,N(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(),On=function(t){var e,n=t.options,r=t.galleryOptions,o=t.galleryImages,i=t.atts,a=t.apiUrl,l=t.restNonce,c=t.children,s=Ot(Sn,qe(qe({},cn),function(t){return{id:t.id,layout:t.layout,captions:t.captions,captionsAlignment:t.captions_alignment,captionsBackground:t.captions_background,loading:t.loading,animation:t.animation,imageSize:t.image_size,galleryShortcodeOverrideDisabled:t.gallery_shortcode_override_disabled,skeletonLoading:t.skeleton_loading,infinite:t.infinite,infiniteBuffer:t.infinite_buffer,tilesGutter:t.tiles_gutter,tilesGutterTablet:t.tiles_gutter_tablet,tilesGutterMobile:t.tiles_gutter_mobile,tilesDensity:t.tiles_density,tilesDensityTablet:t.tiles_density_tablet,tilesDensityMobile:t.tiles_density_mobile,stylishEnabled:t.stylish_enabled,stylishBorderRadius:t.stylish_border_radius,stylishBorderWidth:t.stylish_border_width,stylishBorderColor:t.stylish_border_color,stylishShadowOpacity:t.stylish_shadow_opacity,stylishShadowOpacityHover:t.stylish_shadow_opacity_hover,stylishHoverLift:t.stylish_hover_lift,stylishTransitionSpeed:t.stylish_transition_speed,masonryGutter:t.masonry_gutter,masonryColumns:t.masonry_columns,masonryLeftToRight:t.masonry_left_to_right,justifiedGutter:t.justified_gutter,justifiedRowHeight:t.justified_row_height,justifiedDensity:t.justified_density,justifiedDensityTablet:t.justified_density_tablet,justifiedDensityMobile:t.justified_density_mobile,squareGutter:t.square_gutter,squareColumns:t.square_columns,cascadeGutter:t.cascade_gutter,horizontalGutter:t.horizontal_gutter,horizontalImageHeight:t.horizontal_image_height,horizontalHideScrollbar:t.horizontal_hide_scrollbar,horizontalScrollWarning:t.horizontal_scroll_warning,horizontalNativeScroll:t.horizontal_native_scroll,carouselCompact:t.carousel_compact,carouselImmersive:t.carousel_immersive,carouselGutter:t.carousel_gutter,carouselImageHeight:t.carousel_image_height,carouselArrowNavEnabled:t.carousel_arrow_nav_enabled,carouselDotNavEnabled:t.carousel_dot_nav_enabled,carouselThumbnailNavEnabled:t.carousel_thumbnail_nav_enabled,carouselAspectRatio:t.carousel_aspect_ratio,carouselAutoplay:t.carousel_autoplay,carouselInfinite:t.carousel_infinite,mapEngine:t.map_engine,mapHeight:t.map_height,mapZoom:t.map_zoom,mapGutter:t.map_gutter,googlemapsToken:t.googlemaps_token,googlemapsStyle:t.googlemaps_style,mapboxToken:t.mapbox_token,mapboxStyle:t.mapbox_style,maptilerToken:t.maptiler_token,rightClick:t.right_click,imageIds:t.image_ids,size:t.size,customClass:t.custom_class,link:t.link,isPreview:t.is_preview,updir:t.updir,classId:t.class_id,layouts:t.layouts,images:t.images,atts:t.atts}}(qe(qe(qe({},n),r),{},{images:o,atts:i})))),u=Re(s,2),f=u[0],d=u[1],h=f.layout,p=f.customClass,m=f.animation,y=f.captions,g=f.justifiedRowHeight,v=f.tilesGutter,b=f.tilesGutterMobile,_=f.tilesGutterTablet,w=f.tilesDensity,S=f.tilesDensityMobile,x=f.tilesDensityTablet,O=f.justifiedDensity,j=f.justifiedDensityMobile,E=f.justifiedDensityTablet,I=f.masonryGutter,k=f.justifiedGutter,L=f.squareGutter,P=f.cascadeGutter,N=f.horizontalGutter,T=f.carouselGutter,A=f.masonryColumns,M=f.squareColumns,C=f.horizontalImageHeight,D=f.carouselImageHeight,G=f.mapGutter,z=f.infinite,H=f.images,R=f.imageIds;return jt((function(){d({type:un,layout:h,customClass:p,animation:m,captions:y})}),[h,p,m,y]),jt((function(){d({type:fn,layout:h})}),[h]),jt((function(){d({type:dn,layout:h,justifiedRowHeight:g})}),[h,g]),jt((function(){d({type:hn,layout:h,tilesGutter:v,tilesGutterMobile:b,tilesGutterTablet:_,masonryGutter:I,justifiedGutter:k,squareGutter:L,cascadeGutter:P,horizontalGutter:N,carouselGutter:T,mapGutter:G})}),[h,v,b,_,I,k,L,P,N,T,G]),jt((function(){d({type:pn,layout:h,masonryColumns:A,squareColumns:M})}),[h,A,M]),jt((function(){d({type:mn,tilesDensity:w,tilesDensityMobile:S,tilesDensityTablet:x,justifiedDensity:O,justifiedDensityMobile:j,justifiedDensityTablet:E})}),[w,S,x,O,j,E]),jt((function(){d({type:yn,layout:h,horizontalImageHeight:C,carouselImageHeight:D})}),[h,C,D]),jt((function(){d({type:gn,apiUrl:a})}),[a]),jt((function(){d({type:vn,restNonce:l})}),[l]),jt((function(){d({type:bn,infinite:z,images:H,imageIds:R})}),[z,H.length,null!==(e=null==R?void 0:R.length)&&void 0!==e?e:[]]),ye(xn.Provider,{value:[f,d],children:c})};const jn=function(){var t={},e=function(t){var e=st.context[t.__c],n=St(ct++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(st)),e.props.value):t.__}(xn),n=Re(e,2),r=n[0],o=n[1];return t.loadImages=He(Ge().mark((function e(){var n,o,i,a,l=arguments;return Ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l.length>0&&void 0!==l[0]?l[0]:null,o=r.images.map((function(t){return t.id})),i=r.imageIds.filter((function(t){return!o.includes(t)})),null!=n?(Yt("Loading images up to id:",n),a=i.indexOf(n),i=-1!==a?i.slice(0,a+1):[]):i=i.slice(0,r.loadImagesCount),i.length&&t.fetchImages(i);case 5:case"end":return e.stop()}}),e)}))),t.fetchImages=function(){var t=He(Ge().mark((function t(e){var n;return Ge().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o({type:_n}),t.prev=1,t.next=4,he("".concat(Ft,"/images/"),{method:"POST",nonce:r.restNonce,json:{imageIds:e,atts:r.atts,layout:r.layout,size:r.size}});case 4:(n=t.sent).success&&o({type:sn,images:[].concat(De(r.images),De(n.data))}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),t.t0.message&&alert(t.t0.message);case 11:return t.prev=11,o({type:wn}),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,8,11,14]])})));return function(e){return t.apply(this,arguments)}}(),qe(qe({},r),t)};function En(t){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(t)}var In,kn,Ln,Pn,Nn,Tn;function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){Cn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=En(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=En(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==En(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dn(t){return function(t){if(Array.isArray(t))return Gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Gn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Hn=lt("figure")(In||(In=zn(["\n position: relative;\n margin: 0;\n"]))),Rn=lt("div")(kn||(kn=zn(["\n height: inherit;\n"]))),Un=lt("a")(Ln||(Ln=zn(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.3);\n transition: background-color 0.3s;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n"]))),Bn=lt("div")(Pn||(Pn=zn(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n text-align: center;\n border-radius: 8px;\n color: #fff;\n text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);\n display: flex;\n flex-direction: column;\n align-items: center;\n"]))),Wn=lt("a")(Nn||(Nn=zn(["\n color: #fff;\n font-size: 1.5em;\n font-weight: bold;\n text-decoration: none;\n margin-bottom: ",";\n"])),(function(t){return t.hasExcerpt?"5px":"0"})),qn=lt("p")(Tn||(Tn=zn(["\n color: #fff;\n font-size: 1em;\n margin: 0;\n white-space: normal;\n"]))),Fn=function(t){var e=t.image,n=t.atts,r=jn(),o=(r.isPreview,r.captions),i=r.captionsAlignment,a=r.captionsBackground,l=r.layout,c=r.carouselAspectRatio,s=r.stylishEnabled,u=(r.stylishBorderRadius,r.stylishShadowOpacity,r.stylishShadowOpacityHover,r.stylishTransitionSpeed,e.img_html),f=e.domElement,d=e.link_href,h=e.link_target,p=e.link_rel,m=e.featured_post_title,y=e.featured_post_url,g=e.featured_post_excerpt,v=e.meta,b=e.caption,_=e.attributes,w=e.classNames,S=["mgl-item"].concat(Dn(void 0===w?[]:w));s&&S.push("is-stylish");var x=S.join(" "),O=Et(null),j=It((function(){return"carousel"!==l?"":c||null!=n&&n.keepAspectRatio?"-aspect-ratio":""}),[l,c]);jt((function(){var t=O.current;if(t&&f)return t.appendChild(f),function(){t.removeChild(f)}}),[f]),jt((function(){var t=O.current;if(t){var e=function(e){if("Enter"===e.key){e.preventDefault();var n=t.querySelector('a, button, [role="button"], img');n&&n.click()}if(e.shiftKey&&"End"===e.key){e.preventDefault();var r=t.closest(".mgl-gallery");if(r){var o=r.querySelectorAll(".mgl-img-container"),i=o[o.length-1];i&&i.focus()}}if(e.shiftKey&&"Home"===e.key){e.preventDefault();var a=t.closest(".mgl-gallery");if(a){var l=a.querySelector(".mgl-img-container");l&&l.focus()}}};return t.addEventListener("keydown",e),function(){t.removeEventListener("keydown",e)}}}),[]);var E=It((function(){return tn(l)?{"--w":v.width,"--h":v.height}:{}}),[l,v]);return ye(Hn,Mn(Mn({className:x,style:E},_),{},{children:[ye("div",{className:"mgl-icon",children:ye("div",{className:"mgl-img-container".concat(j),ref:O,tabIndex:0,children:function(){if(f)return null;var t=d?ye("a",{href:d,target:h,rel:p,dangerouslySetInnerHTML:{__html:u}}):ye("div",{style:{height:"100%",display:"flex"},dangerouslySetInnerHTML:{__html:u}});return m?ye(Rn,{children:[ye(Un,{href:y,children:ye(Bn,{children:[ye(Wn,{hasExcerpt:!!g,children:m}),g&&ye(qn,{children:g})]})}),t]}):t}()})}),"none"!==o&&b&&"carousel"!==l?ye("figcaption",{className:"mgl-caption caption-".concat(i," caption-bg-").concat(a),children:ye("p",{dangerouslySetInnerHTML:{__html:b}})}):null]}))};function $n(t){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(t)}function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(n),!0).forEach((function(e){Jn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=$n(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Zn,Qn=function(){var t,e=jn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.justifiedGutter,c=Vn(xt(window.innerWidth),2),s=c[0],u=c[1],f=It((function(){return s<=460?"mobile":s<=768?"tablet":"desktop"}),[s]),d=(a.justified||{desktop:"high",tablet:"medium",mobile:"low"})[f],h=(null===(t=rn[d])||void 0===t?void 0:t[f])||1,p=(h-i.length%h)%h;jt((function(){var t=function(){u(window.innerWidth)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);var m=Yn(Yn({},o),{},{"--columns":h,"--mgl-gutter":"".concat(l,"px")});return ye("div",{id:n,className:"".concat(r).concat(h>1?" mgl-justified-grid":""),style:m,children:[i.map((function(t){return ye(Fn,{image:t},t.id)})),Array.from({length:p}).map((function(t,e){return ye("div",{className:"mgl-item mgl-empty"},"empty-".concat(e))}))]})};var tr=lt("div")(Zn||(Zn=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n"])),(function(t){return tn(t.layout)&&"\n #".concat(t.classId," {\n display: ").concat(t.isPreview?"block":"none",";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n margin: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ke&&"\n .mgl-masonry {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n column-count: ").concat(t.columns,";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item, figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 800px) {\n #").concat(t.classId," {\n column-count: 2;\n }\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," {\n column-count: 1;\n }\n }\n ")}),(function(t){return t.layout===Je&&"\n .mgl-square {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n\t\t margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n width: calc(100% / ").concat(t.columns,");\n padding-bottom: calc(100% / ").concat(t.columns,");\n }\n\n ").concat(t.columns>3&&"\n @media screen and (max-width: 768px) {\n #".concat(t.classId," .mgl-item {\n width: 33.33%;\n padding-bottom: 33.33%;\n }\n }\n "),"\n\n ").concat(t.columns>2&&"\n @media screen and (max-width: 460px) {\n #".concat(t.classId," .mgl-item {\n width: 50%;\n padding-bottom: 50%;\n }\n }\n "),"\n\n ").concat(t.columns>1&&"\n @media screen and (max-width: 360px) {\n #".concat(t.classId," .mgl-item {\n width: 100%;\n padding-bottom: 100%;\n }\n }\n "),"\n\n #").concat(t.classId,".custom-gallery-class .mgl-item {\n padding-bottom: calc(100% / ").concat(t.columns," / 1.5) !important;\n }\n\n #").concat(t.classId," .mgl-item .mgl-icon {\n padding: ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ve&&"\n .mgl-cascade {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," figcaption {\n display: none\n }\n }\n ")}),(function(t){return t.layout===$e&&"\n .mgl-tiles {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 768px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n }\n\n @media screen and (max-width: 460px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n width: calc(100% + ").concat(t.gutter,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n }\n ")}),(function(t){return t.layout===Qe&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-prev-btn, #").concat(t.classId," .meow-horizontal-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Xe&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-prev-btn, #").concat(t.classId," .meow-carousel-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ze&&"\n #".concat(t.classId," .mgl-item .mgl-icon .mgl-map-container {\n height: ").concat(t.mapHeight,"px;\n }\n ")}),(function(t){return t.stylishEnabled&&"\n #".concat(t.classId," .mgl-item.is-stylish {\n border-radius: ").concat(t.stylishBorderRadius,"px;\n ").concat(t.stylishBorderWidth>0?"border: ".concat(t.stylishBorderWidth,"px solid ").concat(t.stylishBorderColor,";"):"","\n box-shadow: 0 2px 8px rgba(0, 0, 0, ").concat(t.stylishShadowOpacity,");\n transition: all ").concat(t.stylishTransitionSpeed,"ms cubic-bezier(0.4, 0, 0.2, 1) !important;\n }\n\n #").concat(t.classId," .mgl-item.is-stylish:hover {\n box-shadow: 0 8px 16px rgba(0, 0, 0, ").concat(t.stylishShadowOpacityHover,");\n transform: translateY(-").concat(t.stylishHoverLift,"px);\n z-index: 5;\n }\n ")}));function er(t){return function(t){if(Array.isArray(t))return or(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||rr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(t,e){if(t){if("string"==typeof t)return or(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(t,e):void 0}}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ir=function(){var t=jn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.masonryColumns,a=t.masonryLeftToRight,l=Et(null),c=nr(xt(i),2),s=c[0],u=c[1];return jt((function(){if(a){var t=function(){var t=window.getComputedStyle(l.current),e=parseInt(t["column-count"]);e!==s&&u(e)};l.current.addEventListener("masonry-layout",t);var e=new ResizeObserver((function(){l.current.dispatchEvent(new CustomEvent("masonry-layout"))}));return e.observe(l.current),function(){e.disconnect(),l.current.removeEventListener("masonry-layout",t)}}}),[]),ye("div",{ref:l,id:e,className:n,style:r,children:(a?function(t,e){if(!e||1===e)return t;for(var n=[],r=Array.from({length:e},(function(){return[]})),o=0;o<t.length;o++)r[o%e].push(t[o]);for(var i=0,a=r;i<a.length;i++){var l=a[i];n=[].concat(er(n),er(l))}return n}(o,s):o).map((function(t){return ye(Fn,{image:t},t.id)}))})};function ar(t){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(t)}function lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(n),!0).forEach((function(e){sr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ar(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ar(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var dr=function(){var t=jn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=ur(xt(!1),2),a=i[0],l=i[1];return jt((function(){l(!0)}),[]),ye("div",{id:e,className:n,style:a?cr({},r):cr(cr({},r),{},{visibility:"hidden",display:"none"}),children:o.map((function(t){return ye(Fn,{image:t},t.id)}))})},hr=function(){var t=jn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.layouts,a=kt((function(t){return t.reverse().map((function(t){return t.meta.width>=t.meta.height?"o":"i"})).join("")}),[]),l=kt((function(t,e){if(e<=0)return{result:!1,ideal:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,size:null,currentImages:null};var n=o.slice(t,t+e),r=a(n);return i.includes(r)?{result:!0,ideal:r,size:e,currentImages:n}:l(t,e-1,r)}),[o,i,a]);return ye("div",{id:e,className:n,style:r,children:It((function(){for(var t=0,e=o.length-1,n=[];e>=t;){var r=l(t,2),i=r.result,a=r.ideal,c=r.size,s=r.currentImages;n.push({showError:!i,layout:a,images:s}),t+=c}return n}),[o,l]).map((function(t){var e=t.showError,n=t.layout,r=t.images;return e&&ye("div",{style:"padding: 20px; background: darkred; color: white;",children:["MEOW GALLERY ERROR. No layout for ",n]}),ye("div",{class:"mgl-row mgl-layout-".concat(n.length,"-").concat(n),"data-cascade-layout":n,children:r.map((function(t,e){return ye("div",{class:"mgl-box ".concat(String.fromCharCode(97+e)),children:ye(Fn,{image:t})},t.id)}))})}))})};function pr(t){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(t)}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mr(Object(n),!0).forEach((function(e){gr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=pr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return br(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function br(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var _r=function(){var t=Et(null),e=jn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.tilesStylishStyle,c=vr(xt(window.innerWidth),2),s=c[0],u=c[1],f=vr(xt(!1),2),d=f[0],h=f[1],p=It((function(){return l?"mgl-tiles-stylish":""}),[l]),m=a[It((function(){var t=window.innerWidth;return t<=460?"mobile":t<=768?"tablet":"desktop"}),[s])],y=nn[m],g=It((function(){if(!i.length)return[];var t=[],e="";if(i.forEach((function(n,r){var o=e+n.orientation;y.includes(o)?e=o:(t.push(e),e=n.orientation),r===i.length-1&&t.push(e)})),t.length>=2){var n=t.length-1,r=t.length-2,o=t[n].split(""),a=t[r].split("");if(1===o.length&&a.length>2){var l=a.pop();o.unshift(l)}t[r]=a.join(""),t[n]=o.join("")}return function(t){var e=0;return t.map((function(t){var n="";return"oooo"===t?(3===e&&(e=0),n+=0===e?"".concat(t,"-v0"):"".concat(t,"-v").concat(e),e++):n+=t,{content:t,rowLayout:n}}))}(t)}),[i,y]);jt((function(){var t=function(){u(window.innerWidth),document.body.dispatchEvent(new Event("post-load"))};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),jt((function(){d&&t.current&&g.length&&t.current.querySelectorAll(".mgl-row").forEach((function(t){var e=t.getAttribute("data-row-layout"),n=on[e],r=function(t,e){var n="three-two";if("landscape"==e){if(0===t)return Yt.warn("Meow Gallery: Width is zero, returning fallback value"),window.innerWidth/4;switch(n){case"three-two":return 2*t/3;case"five-four":return 4*t/5}}else{if(0===t)return Yt.warn("Meow Gallery: Width is zero, returning fallback value"),window.innerWidth/3;switch(n){case"three-two":return 3*t/2;case"five-four":return 5*t/4}}}(t.querySelector(".mgl-box.".concat(n.box)).offsetWidth,n.orientation);0===r?setTimeout((function(){t.style.height=r+"px"}),750):t.style.height=r+"px"}))}),[d,g.length]),jt((function(){h(!0)}),[]);var v=d?yr({},o):yr(yr({},o),{},{visibility:"hidden",display:"none"});return ye("div",{ref:t,id:n,className:r,style:v,children:g.map((function(t,e){var n=t.content,r=t.rowLayout,o=0===e?0:g.filter((function(t,n){return n<e})).reduce((function(t,e){return t+e.content.length}),0),a=i.slice(o,o+n.length);return ye("div",{className:"mgl-row mgl-layout-".concat(n.length,"-").concat(r),"data-row-layout":r,children:a.map((function(t,e){return ye("div",{className:"mgl-box ".concat(String.fromCharCode(97+e)),children:ye(Fn,{image:yr(yr({},t),{},{classNames:[p]})})},t.id)}))},e)}))})};function wr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Sr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var xr=function(){var t=Et(),e=jn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.horizontalHideScrollbar,l=e.horizontalGutter,c=e.horizontalScrollWarning,s=e.canInfiniteScroll,u=e.infiniteBuffer,f=e.horizontalNativeScroll,d=e.busy,h=jn().loadImages,p=wr(xt(0),2),m=p[0],y=p[1],g=wr(xt(0),2),v=g[0],b=g[1],_=wr(xt(!1),2),w=_[0],S=_[1],x=wr(xt(!1),2),O=x[0],j=x[1],E=wr(xt(!0),2),I=E[0],k=E[1],L=wr(xt(!0),2),P=L[0],N=L[1],T=It((function(){var t=[r];return a&&t.push("hide-scrollbar"),t.join(" ")}),[r,a]),A=kt((function(){t.current&&s&&!d&&t.current.scrollLeft>=t.current.scrollLeftMax-u&&h()}),[t,d,s,u,h]),M=kt((function(e){f||t.current&&(e.preventDefault(),t.current.scrollLeft+=e.deltaY,H(),A())}),[t,A]),C=kt((function(e){t.current&&(e.preventDefault(),b(t.current.scrollLeft),y(e.screenX),S(!0))}),[t]),D=kt((function(e){if(t.current){var n=m-e.screenX;w&&(Math.abs(n)>5&&!O?(j(!0),t.current.querySelectorAll("img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")}))):j(!1),O&&(t.current.scrollLeft=v+n,A(),H()))}}),[t,m,w,O,v,A]),G=kt((function(){t.current&&w&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t,w]),z=kt((function(){t.current&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t]),H=kt((function(){t.current&&c&&(t.current.scrollLeftMax=t.current.scrollWidth-t.current.clientWidth,k(t.current.scrollLeft<t.current.scrollLeftMax-300&&P),N(!1))}),[t,P]),R=It((function(){return I&&c?ye("div",{className:"meow-horizontal-more-images",children:ye("p",{children:" Keep scrolling, more to see ! ⏩ "})}):null}),[I,t]);return jt((function(){if(!P&&c){var e=setTimeout((function(){N(!0),k(t.current.scrollLeft<t.current.scrollLeftMax-300)}),3e3);return function(){return clearTimeout(e)}}}),[P,t,c]),ye("div",{id:n,className:T,style:o,"data-mgl-gutter":l,onWheel:M,onMouseDown:C,onMouseMove:D,onMouseOut:G,onMouseUp:z,children:[ye("div",{ref:t,className:"meow-horizontal-track",children:i.map((function(t){return ye(Fn,{image:t},t.id)}))}),R]})};function Or(t){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(t)}function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(n),!0).forEach((function(e){Ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ir(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Or(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kr(t){return function(t){if(Array.isArray(t))return Nr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Pr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||Pr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(t,e){if(t){if("string"==typeof t)return Nr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(t,e):void 0}}function Nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Tr=function(){var t,e,n=Et(null),r=Et(null),o=jn(),i=o.classId,a=o.className,l=o.inlineStyle,c=o.images,s=o.carouselGutter,u=o.carouselArrowNavEnabled,f=o.carouselInfinite,d=o.carouselDotNavEnabled,h=o.carouselThumbnailNavEnabled,p=o.carouselCompact,m=o.carouselImmersive,y=o.carouselAutoplay,g=o.captions,v=o.atts,b=jn().loadImages;function _(t,e){return t in v?"true"===v[t]||"1"===v[t]:e}var w=_("arrow",u),S=_("dot",d),x=_("thumbnail",h),O=_("compact",p),j=_("immersive",m),I=_("autoplay",y),k=_("keep-aspect-ratio",!1),L=(null==v?void 0:v.captions)||g;null!=v&&v.hero&&(w=!1,S=!1,x=!1,O=!0,j=!0,I=!0,L="none");var P=Lr(xt([]),2),N=P[0],T=P[1],A=Lr(xt(""),2),M=A[0],C=A[1],D=Lr(xt(0),2),G=D[0],z=D[1],H=Lr(xt([]),2),R=H[0],U=H[1],B=Lr(xt(),2),W=B[0],q=B[1],F=Lr(xt(!1),2),$=F[0],K=F[1],Y=Lr(xt(!1),2),J=Y[0],V=Y[1],X=Lr(xt(0),2),Z=X[0],Q=X[1],tt=Lr(xt(0),2),et=tt[0],nt=tt[1],rt=Lr(xt(0),2),ot=rt[0],it=rt[1],at=Lr(xt(null!==(t=I)&&void 0!==t&&t),2),lt=at[0],ct=at[1],st=Lr(xt(!1),2),ut=st[0],ft=st[1],dt=It((function(){var t=c.length;return 0===t?[]:[Er(Er({},c.at(-2)),{},{classNames:["clone","before-last-item","no-lightbox"]}),Er(Er({},c.at(t>1?-1:0)),{},{classNames:["clone","last-item","no-lightbox"]})].concat(kr(c),[Er(Er({},c.at(0)),{},{classNames:["clone","first-item","no-lightbox"]}),Er(Er({},c.at(t>1?1:0)),{},{classNames:["clone","after-last-item","no-lightbox"]})]).map((function(t,e){var n;return Er(Er({},t),{},{dataIndex:e,classNames:e===W?[].concat(kr(null!==(n=t.classNames)&&void 0!==n?n:[]),["active"]):t.classNames,attributes:Er(Er({},t.attributes),{},{"data-mc-index":e})})}))}),[c,W]),ht=kt((function(t){return dt.find((function(e){return e.dataIndex===t})).classNames.includes("clone")}),[dt]),pt=It((function(){return dt.find((function(t){return t.dataIndex===W}))}),[dt,W]),mt=dt.length,yt=mt-3,gt=kt((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.current&&R.length&&null!=t){var r=parseInt(t);T(e?["no-transition"]:[]);var o,i=R.find((function(t){return t.dataIndex===r})).element,a=-1*((o=i).offsetLeft+o.offsetWidth/2-n.current.offsetWidth/2);C("translate3d(".concat(a,"px, 0, 0)")),e&&setTimeout((function(){T([])})),q(r)}}),[n,R]),vt=kt((function(){var t=W;2===W&&(gt(yt+1,!0),t=yt+1),setTimeout((function(){gt(0===t?mt-1:t-1)}),1)}),[ht,W,pt,mt,gt,lt]),bt=kt((function(){var t=W;W===yt&&(gt(1,!0),t=1),setTimeout((function(){gt(t===mt-1?0:t+1)}),1)}),[ht,W,pt,dt,mt,gt]),_t=function(){if(!n.current||!r.current||!R.length)return!1;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=R[1].element.getBoundingClientRect().left+R[1].element.offsetWidth/2,o=R[R.length-2].element.getBoundingClientRect().left+R[R.length-2].element.offsetWidth/2;return t-e<=0?(gt(yt,!0),nt(parseFloat(le(r.current)[0])),!0):t-o>=0&&(gt(2,!0),nt(parseFloat(le(r.current)[0])),!0)},wt=function(){if(!n.current)return null;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=!1,r=0;return R.forEach((function(n,o){var i=n.element.getBoundingClientRect().left+n.element.offsetWidth/2,a=Math.abs(t-i);(!e||a<e)&&(e=a,r=o)})),r},St=kt((function(t){r.current&&(K(!0),"touchstart"===t.type?Q(t.touches[0].pageX):Q(t.clientX),nt(parseFloat(le(r.current)[0])))}),[r]),Ot=kt((function(t){if($&&r.current)if(r.current.querySelectorAll(".mwl-img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")})),V(!0),r.current.classList.add("no-transition"),_t())Q(t.clientX);else{var e="touchmove"===t.type?Z-t.touches[0].pageX:Z-t.clientX;it(e),r.current.style.transform="translate3d("+(et-e)+"px, 0, 0)"}}),[$,r,_t,Z,et]),Lt=kt((function(){if(r.current){var t=J;if(r.current.classList.remove("no-transition"),V(!1),K(!1),t){setTimeout((function(){document.querySelectorAll(".mwl-img-disabled").forEach((function(t){t.classList.remove("mwl-img-disabled"),t.classList.add("mwl-img")}))}));var e=wt();return e===W&&ot>=80&&bt(),e===W&&ot<=-80&&vt(),gt(e),!1}}}),[r,J,W,ot,bt,vt,wt]),Pt=kt((function(){ct(!lt)}),[lt]),Nt=It((function(){return ye("div",{className:"meow-carousel-autoplay-btn",onClick:Pt,children:[lt&&ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[ye("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"}),ye("path",{d:"M352.5 256L192 352V160z"})]}),!lt&&ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"})})]})}),[Pt,lt]),Tt=It((function(){return ye(E,{children:[ye("div",{className:"meow-carousel-prev-btn",onClick:vt,children:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"})})}),ye("div",{className:"meow-carousel-next-btn",onClick:bt,children:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"})})})]})}),[vt,bt]),At=It((function(){var t=O?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=W-2-5<0?0:W-2-5,r=Math.floor(60*n)+5;return ye("div",{className:"meow-carousel-nav-thumbnails-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-thumbnail"];return(t.dataIndex===W||2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),ye("div",{className:"".concat(n.join(" ")," no-lightbox"),onClick:function(){return gt(t.dataIndex)},dangerouslySetInnerHTML:{__html:t.img_html}},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W,gt]),Mt=It((function(){var t=O?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=W-2-10<0?0:W-2-10,r=Math.floor(26*n)+5;return ye("div",{className:"meow-carousel-nav-dots-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-dot"];return(t.dataIndex===W||2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),ye("div",{className:n.join(" "),onClick:function(){return gt(t.dataIndex)},children:ye("span",{})},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W,gt]),Ct=It((function(){return ye("div",{className:"meow-carousel-caption-container ".concat(O?"meow-inside-bottom-text":""),children:dt.map((function(t){var e;if(void 0===t.caption||""===t.caption)return null;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-caption"];return(t.dataIndex===W&&t.caption||t.caption&&2===t.dataIndex&&yt<W||t.dataIndex===yt&&2>W)&&n.push("active"),ye("div",{className:"".concat(n.join(" ")),children:[j&&ye("div",{className:"meow-immersive-caption",style:"background: url('".concat(t.img_html.match(/src="([^"]*)/)[1],"') no-repeat center center; background-size: cover;")}),ye("p",{dangerouslySetInnerHTML:{__html:t.caption}})]},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,W]);jt((function(){function t(){gt(W,!0)}return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[W,gt]),jt((function(){if(0===G&&r.current&&dt.length>0){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);z(e.reduce((function(t,e){return t+e.offsetWidth}),0)),U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}})))}}),[null===(e=r.current)||void 0===e?void 0:e.children,dt]),jt((function(){if(f&&c.length+4!=R.length){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}}))),gt(W,!1),window.renderMeowLightbox&&window.renderMeowLightboxWithSelector(".mgl-gallery")}}),[c]),jt((function(){f&&(W>0&&W%10==0||W>c.length)&&b()}),[W]),jt((function(){G>0&&setTimeout((function(){gt(2,!0)}),300)}),[G]),jt((function(){if(lt){var t=setInterval((function(){setTimeout((function(){bt()}),10)}),4e3);return function(){return clearInterval(t)}}}),[lt,W]),jt((function(){ft(!0)}),[]);var Dt=ut?Er({},l):Er(Er({},l),{},{visibility:"hidden",display:"none"});return ye("div",{ref:n,id:i,className:a,style:Dt,"data-mgl-gutter":s,"data-mgl-arrow_nav":w,"data-mgl-dot_nav":S,"data-mgl-keep_aspect_ratio":k,children:[ye("div",{ref:r,className:["meow-carousel-track"].concat(kr(N)).join(" "),style:{width:"".concat(G,"px"),transform:M,opacity:null!=W?1:0},onMouseDown:St,onTouchStart:St,onMouseMove:Ot,onTouchMove:Ot,onMouseUp:Lt,onTouchEnd:Lt,children:dt.map((function(t){return ye(Fn,{image:t,atts:{keepAspectRatio:k}},t.dataIndex)}))}),I&&Nt,w&&Tt,"none"!=L&&Ct,x&&At,S&&Mt]})};function Ar(t){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(t)}function Mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mr(Object(n),!0).forEach((function(e){Dr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ar(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ar(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gr=function(){var t=jn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.mglMap,i=pe();return ye("div",{id:e,className:n,style:Cr(Cr({},r),{},{height:"".concat(o.height,"px")}),children:ye("div",{id:i,className:"mgl-ui-map"})})};function zr(t){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(t)}function Hr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Rr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}!function(t,e,n,r){Z.p=e,ot=t,it=n,at=r}(O);var Ur=function(){var t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},Br=function(){var t=jn(),e=t.layout,n=t.containerClassName,r=t.isPreview,o=t.gutter,i=t.columns,a=t.classId,l=t.imageHeight,c=t.rightClick,s=t.mapHeight,u=t.infinite,f=t.loading,d=t.infiniteBuffer,h=t.busy,p=t.canInfiniteScroll,m=t.stylishEnabled,y=t.stylishBorderRadius,g=t.stylishBorderWidth,v=t.stylishBorderColor,b=t.stylishShadowOpacity,_=t.stylishShadowOpacityHover,w=t.stylishHoverLift,S=t.stylishTransitionSpeed,x=jn().loadImages,O=function(t){return en.includes(t)}(e),j=Et(null),E=Hr(xt(Ur()),2),I=E[0],k=E[1],L=Hr(xt(!1),2),P=L[0],N=L[1];jt((function(){if(u){var t=setTimeout((function(){var t,e,n,r=a?document.getElementById(a):null===(t=j.current)||void 0===t?void 0:t.querySelector(".mgl-gallery");r&&(e=r,n={loadImages:x,canInfiniteScroll:p},an.set(e,n))}),100);return function(){var e;clearTimeout(t);var n,r=a?document.getElementById(a):null===(e=j.current)||void 0===e?void 0:e.querySelector(".mgl-gallery");r&&(n=r,an.delete(n))}}}),[x,u,a,p]),jt((function(){var t=function(){k(Ur())};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);var T=It((function(){switch(e){case Ye:return ye(Qn,{});case Ke:return ye(ir,{});case Je:return ye(dr,{});case Ve:return ye(hr,{});case $e:return ye(_r,{});case Qe:return ye(xr,{});case Xe:return ye(Tr,{});case Ze:return ye(Gr,{});default:return ye("p",{children:["Sorry, not implemented yet! : ",e]})}}),[e]),A=kt((function(t){c||t.preventDefault()}),[c]),M=kt((function(){x()}),[x]);jt((function(){if(u&&O&&"button-loader"!==f){var t=window.location.hash;if(t){var e=t.split("mwl-")[1];e&&x(e)}}}),[u,O,f]),jt((function(){var t;if(u&&O&&"button-loader"!==f&&p){var e=a?document.getElementById(a):null,n=null==e?void 0:e.nextElementSibling,r=null!=n&&null!==(t=n.classList)&&void 0!==t&&t.contains("mgl-infinite-scroll")?n:null;if(r){var o=new IntersectionObserver((function(t){N(t[0].isIntersecting)}),{rootMargin:"0px 0px ".concat(d,"px 0px")});return o.observe(r),function(){return o.disconnect()}}}else N(!1)}),[u,O,f,p,d,a]),jt((function(){P&&!h&&p&&x()}),[P,h,p,x]);var C=It((function(){return"number"==typeof o?o:"object"===zr(o)&&null!==o&&"number"==typeof o[I]?o[I]:0}),[o,I]);return ye(tr,{ref:j,className:n,layout:e,isPreview:r,gutter:C,columns:i,classId:a,imageHeight:l,mapHeight:s,stylishEnabled:m,stylishBorderRadius:y,stylishBorderWidth:g,stylishBorderColor:v,stylishShadowOpacity:b,stylishShadowOpacityHover:_,stylishHoverLift:w,stylishTransitionSpeed:S,onContextMenu:A,children:[T,p&&O&&("button-loader"===f?ye("button",{onClick:M,className:"mgl-button-loader",disabled:h,children:h?"Loading...":"Load more"}):ye("div",{className:"mgl-infinite-scroll ".concat("undefined"!==f&&"none"!==f?f:""),children:ye("div",{className:"mgl-loading"})}))]})};function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qr(Object(n),!0).forEach((function(e){$r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Wr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kr(t){return function(t){if(Array.isArray(t))return Yr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Jr=function(t){var e=t.collectionThumbnail,n=t.attributes,r=void 0===n?{}:n,o=t.setIsLoadingRoot,i=t.index,a=t.isOdd,l=t.isLast,c=e.name,s=e.description,u=(e.media_id,e.img_src),f=e.img_srcset,d=e.missing_image,h=e.classNames,p=a&&l,m=!d&&!!u,y=["mgl-collection-item"].concat(Kr(void 0===h?[]:h),[m?"":"mgl-collection-item-missing"]).filter(Boolean).join(" ").trim(),g=It((function(){return m?'<img class="mgl-collection-thumbnail no-lightbox" src="'.concat(u,'" ').concat(f?'srcset="'.concat(f,'"'):"",' alt="').concat(c,'" loading="lazy" />'):""}),[m,u,f,c]),v=It((function(){if(void 0===i)return{};if(p){var t,e=i-1,n=e%4,r=6*Math.floor(e/4)+1;if(0===n)t="".concat(r," / 1 / ").concat(r+3," / 6");else{if(2!==n)return{gridArea:1===n?"".concat(r," / 3 / ").concat(r+3," / 6"):"".concat(r+3," / 4 / ").concat(r+6," / 6")};t="".concat(r+3," / 1 / ").concat(r+6," / 6")}return{gridArea:t}}var o,a=i-1,l=6*Math.floor(a/4)+1;switch(a%4){case 0:o="".concat(l," / 1 / ").concat(l+3," / 3");break;case 1:o="".concat(l," / 3 / ").concat(l+3," / 6");break;case 2:o="".concat(l+3," / 1 / ").concat(l+6," / 4");break;case 3:o="".concat(l+3," / 4 / ").concat(l+6," / 6")}return{gridArea:o}}),[i,p]);return ye("figure",Fr(Fr({className:y},r),{},{onClick:function(){return t=se(e),n=t.id,r=t.search_slug,(i=new URL(window.location.href)).searchParams.set(r,n),window.history.pushState({},"",i),void o(n,r);var t,n,r,i},style:v,children:ye("div",{className:"mgl-collection-img-container",children:[ye("div",m?{className:"mgl-collection-image-content",dangerouslySetInnerHTML:{__html:g}}:{className:"mgl-collection-image-content mgl-collection-image-missing",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)",color:"#9ca3af"},"aria-label":"Image unavailable",children:ye("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40%",height:"40%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",style:{maxWidth:72,maxHeight:72,opacity:.7},children:[ye("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),ye("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),ye("path",{d:"M21 15l-5-5L5 21"}),ye("line",{x1:"3",y1:"3",x2:"21",y2:"21"})]})}),ye("div",{className:"mgl-collection-overlay"}),ye("div",{className:"mgl-collection-info",children:[ye("h3",{className:"mgl-collection-title",children:c}),ye("p",{className:"mgl-collection-caption",children:s})]})]})}))};function Vr(t){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(t)}function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(n),!0).forEach((function(e){Qr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Vr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var to=function(t){var e=t.classId,n=t.className,r=void 0===n?"":n,o=t.inlineStyle,i=t.collectionThumbnails,a=t.setIsLoadingRoot,l=(i=i.filter((function(t){return!t.error||(Yt.error("Meow Gallery: Error loading collection thumbnail",t),!1)}))).length,c=l%2!=0,s=0;if(l>0){var u=l-1,f=u%4,d=6*Math.floor(u/4)+1;s=0===f||1===f?d+2:d+5}var h={gridTemplateColumns:"repeat(5, 1fr)",gridTemplateRows:"repeat(".concat(s,", minmax(50px, 1fr))")};return ye("div",{id:e,className:"mgl-collection-bento ".concat(r),style:Zr(Zr({},h),o),children:i.map((function(t,e){return ye(Jr,{collectionThumbnail:t,isOdd:c,isLast:e===i.length-1,index:e+1,setIsLoadingRoot:a},t.id)}))})},eo=function(t){var e=t.classId,n=t.className,r=void 0===n?"":n,o=t.inlineStyle,i=t.collectionThumbnails,a=t.setIsLoadingRoot,l=i.filter((function(t){return!t.error||(Yt.error("Meow Gallery: Error loading collection thumbnail",t),!1)}));return jt((function(){if(l.length>0){var t=se(l[0]),e=t.id,n=t.search_slug;a(e,n)}}),[]),ye("div",{id:e,className:"mgl-collection-menu ".concat(r),style:o,children:ye("div",{className:"mgl-collection-menu-loading",children:"Loading gallery..."})})};function no(t){return no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(t)}function ro(){
6 6 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
7 -eo=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==to(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?h:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(to(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function no(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function ro(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||oo(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oo(t,e){if(t){if("string"==typeof t)return io(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(t,e):void 0}}function io(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ao=function(t){t.options,t.collectionOptions;var e=t.collectionThumbnails,n=t.atts,r=t.apiUrl,o=t.restNonce,i=ro(xt(!1),2),a=i[0],l=i[1],c=ro(xt(null),2),s=c[0],u=c[1],f=ro(xt(null),2),d=f[0],p=f[1],m=ro(xt(null),2),h=m[0],y=m[1],g=Et(null),v=ro(xt(!1),2),b=v[0],_=v[1];jt((function(){var t,e,n,r=new URL(window.location.href),o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=oo(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(ne);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(r.searchParams.has(i)){t=r.searchParams.get(i),e=i;break}}}catch(t){o.e(t)}finally{o.f()}t?w(t,e):_(!0)}),[]);var w=function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){no(i,r,o,a,l,"next",t)}function l(t){no(i,r,o,a,l,"throw",t)}a(void 0)}))}}(eo().mark((function t(i,a){var c,f,d,m,h;return eo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(c=g.current)&&window.destroyFromMeowLightbox&&window.destroyFromMeowLightbox(c),s&&y(s),l(!0),f=e.find((function(t){return t[a]==i})),p(f),d={},Object.keys(n).map((function(t){if(t.includes("gallery_")){var e=n[t],r=t.replace("gallery_","");d[r]=e}})),t.next=10,le("".concat(r,"/load_gallery_collection"),{method:"POST",nonce:o,json:{id:i,search_slug:a,gallery_atts:d}});case 10:if(!(m=t.sent).success){t.next=22;break}return u(m.data),y(null),(h=document.getElementById("mwl-data-script"))&&h.remove(),window.mwl_data=Object.assign({},window.mwl_data,JSON.parse(m.mwl_data)),setTimeout((function(){window.renderMeowGalleries()}),100),setTimeout((function(){var t=g.current;t&&window.renderMeowLightboxWithParentElement&&window.renderMeowLightboxWithParentElement(t)}),400),l(!1),_(!0),t.abrupt("return");case 22:return console.error("Error loading gallery",i,m),t.abrupt("return");case 24:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),S=function(t){var n=t.target.value,r=e.find((function(t){return re(t).id==n}));if(r){var o=re(r),i=o.id,a=o.search_slug,l=new URL(window.location.href);l.searchParams.set(a,i),window.history.pushState({},"",l),w(i,a)}},x=It((function(){var t,r;switch(n.layout){case"bento":return me("div",{className:"mgl-gallery-collection-header",children:[me("button",{className:"mgl-gallery-collection-back",onClick:function(){return function(){u(null);var t=new URL(window.location.href);ne.forEach((function(e){return t.searchParams.delete(e)})),window.history.pushState({},"",t)}()},"aria-label":"Back",children:me("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:me("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M19 12H5M12 19l-7-7 7-7"})})}),me("h2",{className:"mgl-gallery-collection-name",children:null==d?void 0:d.name})]});case"menu":return t=d?re(d).id:void 0,me("div",{className:"mgl-gallery-collection-header mgl-gallery-collection-header-menu",children:me("div",{className:"mgl-collection-menu-select-wrapper",children:[(r=(null==d?void 0:d.img_src)||(null==d?void 0:d.thumbnail)||(null==d?void 0:d.thumb)||"")?me("img",{className:"mgl-collection-menu-thumb no-lightbox",src:r,alt:(null==d?void 0:d.name)||"Gallery"}):null,me("select",{id:"mgl-gallery-select",className:"mgl-collection-menu-select",value:t||"",onChange:S,children:e.map((function(t){var e=re(t).id;return me("option",{value:e,children:t.name},e)}))})]})});default:return console.error("Meow Gallery: Unknown collection layout for header:",n.layout),null}}),[d,n.layout,e]),O=It((function(){switch(n.layout||(n.layout="bento"),n.layout){case"bento":return me(Zr,{collectionThumbnails:e,setIsLoadingRoot:w});case"menu":return me(Qr,{collectionThumbnails:e,setIsLoadingRoot:w});default:return me("p",{children:["Sorry, not implemented yet! : ",n.layout]})}}),[n.layout]),j=s||h;return me("div",{className:"mgl-collection-root","data-collection-id":n.id,children:b&&me(E,{children:me("div",{ref:g,className:"mgl-collection-loading-container ".concat(a?"mgl-collection-loading":""," "),children:[!j&&O,j&&x,j&&me("div",{dangerouslySetInnerHTML:{__html:j}}),a&&me("div",{className:"mgl-collection-loading-overlay",children:me("div",{className:"mgl-collection-loading-spinner",children:me("div",{className:"mgl-collection-loading-spinner-icon"})})})]})})})};function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function so(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?co(Object(n),!0).forEach((function(e){uo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lo(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fo=!1,po=new WeakMap,mo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t||""===t.trim())return console.warn("Meow Gallery: Invalid JSON string provided, returning fallback value.",{jsonString:t,fallback:e}),e;try{return JSON.parse(t)||e}catch(n){return console.error("JSON parsing error:",{errorMessage:n.message,jsonString:t}),e}},ho=function(){var t=document.querySelector("div.block-editor-iframe__scale-container > iframe"),e=(t?t.contentDocument:document).querySelectorAll(".mgl-root");console.log("🖼️ Meow Gallery: Found ".concat(e.length," gallery root(s) in the DOM."),{galleryRoots:e}),e.length&&e.forEach((function(t){var e,n,r;if(!t.dataset.galleryOptions&&po.has(t)){var o=po.get(t);Object.keys(o.dataset).forEach((function(e){t.dataset[e]=o.dataset[e]})),!t.querySelector(".mgl-gallery-images")&&o.imagesContainerHTML&&t.insertAdjacentHTML("beforeend",o.imagesContainerHTML)}var i=t.querySelector(".mgl-gallery-container"),a=t.querySelector(".mgl-gallery-images"),l=mo(null==t||null===(e=t.dataset)||void 0===e?void 0:e.galleryOptions,{}),c=mo(null==t||null===(n=t.dataset)||void 0===n?void 0:n.galleryImages,[]),s=mo(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(i){if(po.has(t)||po.set(t,{dataset:so({},t.dataset),imagesContainerHTML:a?a.outerHTML:null}),!a)if("map"===s.layout)console.warn("Meow Gallery: The map layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s});else{if("carousel"!==s.layout)return void console.error("Meow Gallery: The container for the Meow Gallery images was not found; the code is probably from an old version and needs to be refreshed.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s});console.warn("Meow Gallery: The carousel layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})}var u=a?Array.from(a.querySelectorAll(":scope > img, :scope > a")):[];0===u.length&&(u=a?Array.from(a.querySelectorAll(":scope > picture")):[],console.warn("Meow Gallery: No images found directly under the gallery container, checking for images inside <picture> elements.",{imagesElements:u,galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})),0===u.length||u.length!==c.length?console.warn("Meow Gallery: Mismatch between number of images in the DOM and their data. The elements will be created via JS.",{galleryElement:i,imagesElements:u,galleryImages:c,galleryOptions:l}):c.forEach((function(t,e){t.domElement=u[e]}));var f=t.querySelector(".mgl-gallery-skeleton");if(f){if("1"==i.style["--skeleton"])return;var d={position:i.style.position,top:i.style.top,left:i.style.left,width:i.style.width,height:i.style.height,zIndex:i.style.zIndex};i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.zIndex="1",i.style["--skeleton"]="1",t.style.position="relative",setTimeout((function(){f.style.opacity="0"}),500),setTimeout((function(){f.remove(),Object.keys(d).forEach((function(t){i.style[t]=d[t]?d[t]:""}))}),1e3)}$(me(Sn,{options:ue,galleryOptions:l,galleryImages:c,atts:s,apiUrl:fe,restNonce:de,children:me(Hr,{})}),i),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),a&&a.remove()}else console.error("Gallery error: The container for the gallery was not found.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})}))},yo=function(){var t=document.querySelector("div.block-editor-iframe__scale-container > iframe");if(t)if(console.log("🖼️ Meow Gallery: Guttenberg is using an iframe, injecting CSS from the main document..."),fo)console.log("🖼️ Meow Gallery: The CSS was already injected into the iframe."),ho();else{var e=document.getElementById("mgl-css-css"),n=document.getElementById("mgl-pro-css-css");if(e){console.log("⚙️ Meow Gallery: Cloning the CSS link for the iframe...");var r=e.cloneNode(!0);r.id="mgl-css-css-clone",t.contentDocument.head.appendChild(r)}if(n){console.log("⚙️ Meow Gallery: Cloning the Pro CSS link for the iframe...");var o=n.cloneNode(!0);o.id="mgl-pro-css-css-clone",t.contentDocument.head.appendChild(o)}ho(),fo=!0}else ho()},go=function(){var t=document.querySelectorAll(".mgl-collection-root");t.length&&t.forEach((function(t){var e,n,r,o=t.querySelector(".mgl-collection-container"),i=t.querySelector(".mgl-collection-thumbnails"),a=mo(null==t||null===(e=t.dataset)||void 0===e?void 0:e.collectionOptions,{}),l=mo(null==t||null===(n=t.dataset)||void 0===n?void 0:n.collectionThumbnails,[]),c=mo(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(o){var s=i?Array.from(i.querySelectorAll(":scope > a")):[];0===s.length||s.length!==l.length?console.warn("Meow Gallery: Mismatch between number of collections in the DOM and their data. The elements will be created via JS.",{collectionElement:o,collectionsElements:s,collectionThumbnails:l,collectionOptions:a}):l.forEach((function(t,e){t.domElement=s[e]})),$(me(ao,{options:ue,collectionOptions:a,collectionThumbnails:l,atts:c,apiUrl:fe,restNonce:de}),o),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),i&&i.remove()}else console.error("Meow Gallery: The container for the Meow Collection was not found; the code is probably from an old version and needs to be refreshed.",{collectionRoot:t,collectionElement:o,collectionOptions:a,collectionThumbnails:l,atts:c})}))};window.renderMeowGalleries=yo,window.renderMeowCollections=go,document.addEventListener("DOMContentLoaded",(function(){ue&&fe&&de&&(yo(),go())}))})();
7 +ro=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function b(){}var _={};s(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=b.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==no(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?m:h,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(no(e)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(x),s(x,c,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function oo(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function io(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||ao(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ao(t,e){if(t){if("string"==typeof t)return lo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(t,e):void 0}}function lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var co=function(t){t.options,t.collectionOptions;var e=t.collectionThumbnails,n=t.atts,r=t.apiUrl,o=t.restNonce,i=io(xt(!1),2),a=i[0],l=i[1],c=io(xt(null),2),s=c[0],u=c[1],f=io(xt(null),2),d=f[0],h=f[1],p=io(xt(null),2),m=p[0],y=p[1],g=Et(null),v=io(xt(!1),2),b=v[0],_=v[1];jt((function(){var t,e,n,r=new URL(window.location.href),o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ao(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(ce);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(r.searchParams.has(i)){t=r.searchParams.get(i),e=i;break}}}catch(t){o.e(t)}finally{o.f()}t?w(t,e):_(!0)}),[]);var w=function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){oo(i,r,o,a,l,"next",t)}function l(t){oo(i,r,o,a,l,"throw",t)}a(void 0)}))}}(ro().mark((function t(i,a){var c,f,d,p,m;return ro().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(c=g.current)&&window.destroyFromMeowLightbox&&window.destroyFromMeowLightbox(c),s&&y(s),l(!0),f=e.find((function(t){return t[a]==i})),h(f),d={},Object.keys(n).map((function(t){if(t.includes("gallery_")){var e=n[t],r=t.replace("gallery_","");d[r]=e}})),t.next=10,he("".concat(r,"/load_gallery_collection"),{method:"POST",nonce:o,json:{id:i,search_slug:a,gallery_atts:d}});case 10:if(!(p=t.sent).success){t.next=22;break}return u(p.data),y(null),(m=document.getElementById("mwl-data-script"))&&m.remove(),window.mwl_data=Object.assign({},window.mwl_data,JSON.parse(p.mwl_data)),setTimeout((function(){window.renderMeowGalleries()}),100),setTimeout((function(){var t=g.current;t&&window.renderMeowLightboxWithParentElement&&window.renderMeowLightboxWithParentElement(t)}),400),l(!1),_(!0),t.abrupt("return");case 22:return Yt.error("Error loading gallery",i,p),t.abrupt("return");case 24:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),S=function(t){var n=t.target.value,r=e.find((function(t){return se(t).id==n}));if(r){var o=se(r),i=o.id,a=o.search_slug,l=new URL(window.location.href);l.searchParams.set(a,i),window.history.pushState({},"",l),w(i,a)}},x=It((function(){var t,r;switch(n.layout){case"bento":return ye("div",{className:"mgl-gallery-collection-header",children:[ye("button",{className:"mgl-gallery-collection-back",onClick:function(){return function(){u(null);var t=new URL(window.location.href);ce.forEach((function(e){return t.searchParams.delete(e)})),window.history.pushState({},"",t)}()},"aria-label":"Back",children:ye("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:ye("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M19 12H5M12 19l-7-7 7-7"})})}),ye("h2",{className:"mgl-gallery-collection-name",children:null==d?void 0:d.name})]});case"menu":return t=d?se(d).id:void 0,ye("div",{className:"mgl-gallery-collection-header mgl-gallery-collection-header-menu",children:ye("div",{className:"mgl-collection-menu-select-wrapper",children:[(r=(null==d?void 0:d.img_src)||(null==d?void 0:d.thumbnail)||(null==d?void 0:d.thumb)||"")?ye("img",{className:"mgl-collection-menu-thumb no-lightbox",src:r,alt:(null==d?void 0:d.name)||"Gallery"}):null,ye("select",{id:"mgl-gallery-select",className:"mgl-collection-menu-select",value:t||"",onChange:S,children:e.map((function(t){var e=se(t).id;return ye("option",{value:e,children:t.name},e)}))})]})});default:return Yt.error("Meow Gallery: Unknown collection layout for header:",n.layout),null}}),[d,n.layout,e]),O=It((function(){switch(n.layout||(n.layout="bento"),n.layout){case"bento":return ye(to,{collectionThumbnails:e,setIsLoadingRoot:w});case"menu":return ye(eo,{collectionThumbnails:e,setIsLoadingRoot:w});default:return ye("p",{children:["Sorry, not implemented yet! : ",n.layout]})}}),[n.layout]),j=s||m;return ye("div",{className:"mgl-collection-root","data-collection-id":n.id,children:b&&ye(E,{children:ye("div",{ref:g,className:"mgl-collection-loading-container ".concat(a?"mgl-collection-loading":""," "),children:[!j&&O,j&&x,j&&ye("div",{dangerouslySetInnerHTML:{__html:j}}),a&&ye("div",{className:"mgl-collection-loading-overlay",children:ye("div",{className:"mgl-collection-loading-spinner",children:ye("div",{className:"mgl-collection-loading-spinner-icon"})})})]})})})};function so(t){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(t)}function uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uo(Object(n),!0).forEach((function(e){ho(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ho(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=so(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=so(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==so(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var po=!1,mo=new WeakMap,yo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t||""===t.trim())return Yt.warn("Meow Gallery: Invalid JSON string provided, returning fallback value.",{jsonString:t,fallback:e}),e;try{return JSON.parse(t)||e}catch(n){return Yt.error("JSON parsing error:",{errorMessage:n.message,jsonString:t}),e}},go=function(){var t=document.querySelector("div.block-editor-iframe__scale-container > iframe"),e=(t?t.contentDocument:document).querySelectorAll(".mgl-root");Yt("🖼️ Meow Gallery: Found ".concat(e.length," gallery root(s) in the DOM."),{galleryRoots:e}),e.length&&e.forEach((function(t){var e,n,r;if(!t.dataset.galleryOptions&&mo.has(t)){var o=mo.get(t);Object.keys(o.dataset).forEach((function(e){t.dataset[e]=o.dataset[e]})),!t.querySelector(".mgl-gallery-images")&&o.imagesContainerHTML&&t.insertAdjacentHTML("beforeend",o.imagesContainerHTML)}var i=t.querySelector(".mgl-gallery-container"),a=t.querySelector(".mgl-gallery-images"),l=yo(null==t||null===(e=t.dataset)||void 0===e?void 0:e.galleryOptions,{}),c=yo(null==t||null===(n=t.dataset)||void 0===n?void 0:n.galleryImages,[]),s=yo(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(i){if(mo.has(t)||mo.set(t,{dataset:fo({},t.dataset),imagesContainerHTML:a?a.outerHTML:null}),!a)if("map"===s.layout)Yt.warn("Meow Gallery: The map layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s});else{if("carousel"!==s.layout)return void Yt.error("Meow Gallery: The container for the Meow Gallery images was not found; the code is probably from an old version and needs to be refreshed.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s});Yt.warn("Meow Gallery: The carousel layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})}var u=a?Array.from(a.querySelectorAll(":scope > img, :scope > a")):[];0===u.length&&(u=a?Array.from(a.querySelectorAll(":scope > picture")):[],Yt.warn("Meow Gallery: No images found directly under the gallery container, checking for images inside <picture> elements.",{imagesElements:u,galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})),0===u.length||u.length!==c.length?Yt.warn("Meow Gallery: Mismatch between number of images in the DOM and their data. The elements will be created via JS.",{galleryElement:i,imagesElements:u,galleryImages:c,galleryOptions:l}):c.forEach((function(t,e){t.domElement=u[e]}));var f=t.querySelector(".mgl-gallery-skeleton");if(f){if("1"==i.style["--skeleton"])return;var d={position:i.style.position,top:i.style.top,left:i.style.left,width:i.style.width,height:i.style.height,zIndex:i.style.zIndex};i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.zIndex="1",i.style["--skeleton"]="1",t.style.position="relative",setTimeout((function(){f.style.opacity="0"}),500),setTimeout((function(){f.remove(),Object.keys(d).forEach((function(t){i.style[t]=d[t]?d[t]:""}))}),1e3)}$(ye(On,{options:qt,galleryOptions:l,galleryImages:c,atts:s,apiUrl:Ft,restNonce:$t,children:ye(Br,{})}),i),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),a&&a.remove()}else Yt.error("Gallery error: The container for the gallery was not found.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:s})}))},vo=function(){var t=document.querySelector("div.block-editor-iframe__scale-container > iframe");if(t)if(Yt("🖼️ Meow Gallery: Guttenberg is using an iframe, injecting CSS from the main document..."),po)Yt("🖼️ Meow Gallery: The CSS was already injected into the iframe."),go();else{var e=document.getElementById("mgl-css-css"),n=document.getElementById("mgl-pro-css-css");if(e){Yt("⚙️ Meow Gallery: Cloning the CSS link for the iframe...");var r=e.cloneNode(!0);r.id="mgl-css-css-clone",t.contentDocument.head.appendChild(r)}if(n){Yt("⚙️ Meow Gallery: Cloning the Pro CSS link for the iframe...");var o=n.cloneNode(!0);o.id="mgl-pro-css-css-clone",t.contentDocument.head.appendChild(o)}go(),po=!0}else go()},bo=function(){var t=document.querySelectorAll(".mgl-collection-root");t.length&&t.forEach((function(t){var e,n,r,o=t.querySelector(".mgl-collection-container"),i=t.querySelector(".mgl-collection-thumbnails"),a=yo(null==t||null===(e=t.dataset)||void 0===e?void 0:e.collectionOptions,{}),l=yo(null==t||null===(n=t.dataset)||void 0===n?void 0:n.collectionThumbnails,[]),c=yo(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(o){var s=i?Array.from(i.querySelectorAll(":scope > a")):[];0===s.length||s.length!==l.length?Yt.warn("Meow Gallery: Mismatch between number of collections in the DOM and their data. The elements will be created via JS.",{collectionElement:o,collectionsElements:s,collectionThumbnails:l,collectionOptions:a}):l.forEach((function(t,e){t.domElement=s[e]})),$(ye(co,{options:qt,collectionOptions:a,collectionThumbnails:l,atts:c,apiUrl:Ft,restNonce:$t}),o),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),i&&i.remove()}else Yt.error("Meow Gallery: The container for the Meow Collection was not found; the code is probably from an old version and needs to be refreshed.",{collectionRoot:t,collectionElement:o,collectionOptions:a,collectionThumbnails:l,atts:c})}))};window.renderMeowGalleries=vo,window.renderMeowCollections=bo,document.addEventListener("DOMContentLoaded",(function(){qt&&Ft&&$t&&(vo(),bo())}))})();