/*! For license information please see index.js.LICENSE.txt */ (()=>{var t={187:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t,e,n,o,i,a,l,c,u={},s=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function d(t,e){for(var r in e)t[r]=e[r];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function h(e,r,n){var o,i,a,l={};for(a in r)"key"==a?o=r[a]:"ref"==a?i=r[a]:l[a]=r[a];if(arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return m(e,l,o,i,null)}function m(t,r,o,i,a){var l={type:t,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=e.vnode&&e.vnode(l),l}function y(t){return t.children}function g(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__i+1):null;for(var r;er&&o.sort(l));x.__r=0}function S(t,e,r,n,o,i,a,l,c,f,_){var d,p,h,m,y,g=n&&n.__k||s,v=e.length;for(r.__d=c,O(r,e,g),c=r.__d,d=0;d0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,l=N(o,r,a=n+f,s),o.__i=l,i=null,-1!==l&&(s--,(i=r[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?s>c-a?f+=l-a:f--:f=l(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||l=0){if((c=e[a])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l=n.__.length&&n.__.push({__V:q}),n.__[t]}function Q(t){return W=1,K(st,t)}function K(t,e,r){var n=X(G++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):st(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=R,!R.u)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);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&&n.__c.props===t)&&(!i||i.call(this,t,e,r))};R.u=!0;var i=R.shouldComponentUpdate,a=R.componentWillUpdate;R.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}a&&a.call(this,t,e,r)},R.shouldComponentUpdate=o}return n.__N||n.__}function tt(t,r){var n=X(G++,3);!e.__s&&ut(n.__H,r)&&(n.__=t,n.i=r,R.__H.__h.push(n))}function et(t){return W=5,rt((function(){return{current:t}}),[])}function rt(t,e){var r=X(G++,7);return ut(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function nt(t,e){return W=8,rt((function(){return t}),e)}function ot(){for(var t;t=B.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(lt),t.__H.__h.forEach(ct),t.__H.__h=[]}catch(r){t.__H.__h=[],e.__e(r,t.__v)}}e.__b=function(t){R=null,Z&&Z(t)},e.__r=function(t){z&&z(t),G=0;var e=(R=t.__c).__H;e&&(H===R?(e.__h=[],R.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=q,t.__N=t.i=void 0}))):(e.__h.forEach(lt),e.__h.forEach(ct),e.__h=[],G=0)),H=R},e.diffed=function(t){Y&&Y(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==B.push(r)&&V===e.requestAnimationFrame||((V=e.requestAnimationFrame)||at)(ot)),r.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==q&&(t.__=t.__V),t.i=void 0,t.__V=q}))),H=R=null},e.__c=function(t,r){r.some((function(t){try{t.__h.forEach(lt),t.__h=t.__h.filter((function(t){return!t.__||ct(t)}))}catch(n){r.some((function(t){t.__h&&(t.__h=[])})),r=[],e.__e(n,t.__v)}})),$&&$(t,r)},e.unmount=function(t){J&&J(t);var r,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{lt(t)}catch(t){r=t}})),n.__H=void 0,r&&e.__e(r,n.__v))};var it="function"==typeof requestAnimationFrame;function at(t){var e,r=function(){clearTimeout(n),it&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);it&&(e=requestAnimationFrame(r))}function lt(t){var e=R,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),R=e}function ct(t){var e=R;t.__c=t.__(),R=e}function ut(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function st(t,e){return"function"==typeof e?e(t):e}function ft(t){return ft="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},ft(t)}function _t(){_t=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),l=new I(n||[]);return o(a,"_invoke",{value:k(t,r,l)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var _="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function y(){}function g(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=v.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==ft(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=_;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var c=N(l,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===_)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function dt(t,e,r,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}function pt(t){return ht.apply(this,arguments)}function ht(){return t=_t().mark((function t(e){var r,n,o;return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.url,n=e.data,o=e.method,r){t.next=3;break}throw new Error("Empty url: ".concat(r));case 3:return t.next=5,fetch(r,{body:JSON.stringify(n),method:o}).then((function(t){return t.json()})).then((function(t){if(t.code)throw new Error("".concat(t.code,": ").concat((null==t?void 0:t.message)||"Unknown"));return t})).catch((function(t){throw new Error(t)}));case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})),ht=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){dt(i,n,o,a,l,"next",t)}function l(t){dt(i,n,o,a,l,"throw",t)}a(void 0)}))},ht.apply(this,arguments);var t}function mt(t){return mt="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},mt(t)}function yt(){yt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),l=new I(n||[]);return o(a,"_invoke",{value:k(t,r,l)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var _="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function y(){}function g(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(P([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=v.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==mt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=_;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var c=N(l,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===_)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function gt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(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 vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Mt(t){return function(t){if(Array.isArray(t))return Ut(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dt(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 Tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||Dt(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 Dt(t,e){if(t){if("string"==typeof t)return Ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ut(t,e):void 0}}function Ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==c[1]?c[1]:"",o=c.length>2&&void 0!==c[2]?c[2]:0,i=e.source,a=null===(r=window)||void 0===r||null===(r=r.qligg_frontend)||void 0===r||null===(r=r.restRoutePaths)||void 0===r?void 0:r[i]){t.next=6;break}throw new Error("Unknown source: ".concat(i));case 6:return t.next=8,pt({url:a,method:"POST",data:{feedSettings:e,after:n,pagination:o}});case 8:return l=t.sent,t.abrupt("return",l);case 10:case"end":return t.stop()}}),t)}))),Ht.apply(this,arguments)}Lt.Consumer;var Vt=r(187),Wt=r.n(Vt);const Bt=function(t){var e=t.href,r=t.className,n=t.children,o=t.onClick,i=t.disabled;return h("a",{href:e,target:"blank",onClick:o,className:Wt()("instagram-gallery__button",r,i&&"instagram-gallery__button--disabled")},n)};function qt(t,e){var r=t.tag,n=t.source,o=e.username;switch(n){case"username":return"https://www.instagram.com/".concat(o);case"tag":return"https://www.instagram.com/explore/tags/".concat(r);default:return"https://www.instagram.com"}}const Zt=(zt=function(t){var e,r,n=t.userProfile,o=t.feedSettings,i=t.onClick,a=t.after,l=!(null==o||null===(e=o.button)||void 0===e||!e.display),c=!(null==o||null===(r=o.button_load)||void 0===r||!r.display);return h("div",{className:"instagram-gallery__actions"},l&&h(Bt,{feedSettings:o,href:qt(o,n),target:"blank",className:"instagram-gallery__button--follow"},h("i",{className:"qligg-icon-instagram "}),o.button.text),c&&h(Bt,{feedSettings:o,className:"instagram-gallery__button--load",disabled:""===a,onClick:i},o.button_load.text))},function(t){var e=t.feedSettings,r=!!e.button.display,n=!!e.button_load.display;return h(y,null,h("style",null,r&&"\n #instagram-gallery-feed-".concat(e.id," .instagram-gallery__actions .instagram-gallery__button--follow {\n color: ").concat(e.button.text_color,";\n }\n\n #instagram-gallery-feed-").concat(e.id," .instagram-gallery__actions .instagram-gallery__button--follow {\n background-color: ").concat(e.button.background,";\n }\n\n #instagram-gallery-feed-").concat(e.id," .instagram-gallery__actions .instagram-gallery__button--follow:hover {\n background-color: ").concat(e.button.background_hover,";\n }\n "),n&&"\n #instagram-gallery-feed-".concat(e.id," .instagram-gallery__actions .instagram-gallery__button--load {\n color: ").concat(e.button_load.text_color,";\n }\n\n #instagram-gallery-feed-").concat(e.id," .instagram-gallery__actions .instagram-gallery__button--load {\n background-color: ").concat(e.button_load.background,";\n }\n\n #instagram-gallery-feed-").concat(e.id," .instagram-gallery__actions .instagram-gallery__button--load:hover {\n background-color: ").concat(e.button_load.background_hover,";\n }\n ")),h(zt,t))});var zt;const Yt=function(){var t,e=null===(t=window)||void 0===t||null===(t=t.qligg_frontend)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.spinner_image_url;return h("div",{className:"instagram-gallery__spinner",style:e?{backgroundImage:"url(".concat(e,")")}:{}})},$t=function(t){var e=t.errorUserProfile,r=t.errorUserMediaList;return h("div",{className:"instagram-gallery__alert"},h("ul",null,e&&h("li",null,h("b",null,e.error),h("p",null,e.message)),r&&h("li",null,h("b",null,r.error),h("p",null,r.message))))};function Jt(t,e){for(var r in e)t[r]=e[r];return t}function Xt(t,e){for(var r in t)if("__source"!==r&&!(r in e))return!0;for(var n in e)if("__source"!==n&&t[n]!==e[n])return!0;return!1}function Qt(t){this.props=t}function Kt(t,e){function r(t){var r=this.props.ref,n=r==t.ref;return!n&&r&&(r.call?r(null):r.current=null),e?!e(this.props,t)||!n:Xt(this.props,t)}function n(e){return this.shouldComponentUpdate=r,h(t,e)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Qt.prototype=new g).isPureReactComponent=!0,Qt.prototype.shouldComponentUpdate=function(t,e){return Xt(this.props,t)||Xt(this.state,e)};var te=e.__b;e.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),te&&te(t)};var ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var re=e.__e;e.__e=function(t,e,r,n){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e);re(t,e,r,n)};var ne=e.unmount;function oe(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=Jt({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return oe(t,e,r)}))),t}function ie(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return ie(t,e,r)})),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function ae(){this.__u=0,this.t=null,this.__b=null}function le(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function ce(){this.u=null,this.o=null}e.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),ne&&ne(t)},(ae.prototype=new g).__c=function(t,e){var r=e.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var o=le(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(l):l())};r.__R=a;var l=function(){if(! --n.__u){if(n.state.__a){var t=n.state.__a;n.__v.__k[0]=ie(t,t.__c.__P,t.__c.__O)}var e;for(n.setState({__a:n.__b=null});e=n.t.pop();)e.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(a,a)},ae.prototype.componentWillUnmount=function(){this.t=[]},ae.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=oe(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__a&&h(y,null,t.fallback);return o&&(o.__u&=-33),[h(y,null,e.__a?null:t.children),o]};var ue=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),e.i.removeChild(t)}}),F(h(se,{context:e.context},t.__v),e.l)}(ce.prototype=new g).__a=function(t){var e=this,r=le(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),ue(e,t,n)):o()};r?r(i):i()}},ce.prototype.render=function(t){this.u=null,this.o=new Map;var e=k(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},ce.prototype.componentDidUpdate=ce.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,r){ue(t,r,e)}))};var _e="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,de=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,pe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,he=/[A-Z0-9]/g,me="undefined"!=typeof document,ye=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(g.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ge=e.event;function ve(){}function be(){return this.cancelBubble}function we(){return this.defaultPrevented}e.event=function(t){return ge&&(t=ge(t)),t.persist=ve,t.isPropagationStopped=be,t.isDefaultPrevented=we,t.nativeEvent=t};var xe={enumerable:!1,configurable:!0,get:function(){return this.class}},Se=e.vnode;e.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,r=t.type,n={};for(var o in e){var i=e[o];if(!("value"===o&&"defaultValue"in e&&null==i||me&&"children"===o&&"noscript"===r||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==r&&"textarea"!==r||ye(e.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":pe.test(o)?o=a:-1===r.indexOf("-")&&de.test(o)?o=o.replace(he,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&n[o=a]&&(o="oninputCapture"),n[o]=i}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=k(e.children).forEach((function(t){t.props.selected=-1!=n.value.indexOf(t.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=k(e.children).forEach((function(t){t.props.selected=n.multiple?-1!=n.defaultValue.indexOf(t.props.value):n.defaultValue==t.props.value}))),e.class&&!e.className?(n.class=e.class,Object.defineProperty(n,"className",xe)):(e.className&&!e.class||e.class&&e.className)&&(n.class=n.className=e.className),t.props=n}(t),t.$$typeof=_e,Se&&Se(t)};var Oe=e.__r;e.__r=function(t){Oe&&Oe(t),t.__c};var Ee=e.diffed;function ke(t){return ke="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},ke(t)}function Ne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e]+>/g,"");return(r=t.match("[぀-ヿ㐀-䶿一-鿿豈-﫿ヲ-゚]")?n.split("",e).join(""):n.split(" ",e).join(" ")).length0){var t=n.current.children.length-1,e=n.current.children[t];n.current.insertBefore(e,n.current.firstChild),n.current.style.transition="none";var r=n.current.children[0].offsetWidth;n.current.style.transform="translateX(-".concat(r,"px)"),setTimeout((function(){n.current.style.transition="200ms ease-out all",n.current.style.transform="translateX(0)"}),30)}},className:"insta-gallery-slider__button insta-gallery-slider__button--left qligg-icon-prev"}),h("span",{onClick:function(){if(n.current.children.length>0){var t=n.current.children[0];n.current.style.transition="300ms ease-out all";var e=n.current.children[0].offsetWidth;n.current.style.transform="translateX(-".concat(e,"px)"),n.current.addEventListener("transitionend",(function e(){n.current.style.transition="none",n.current.style.transform="translateX(0)",n.current.appendChild(t),n.current.removeEventListener("transitionend",e)}))}},className:"insta-gallery-slider__button insta-gallery-slider__button--right qligg-icon-next"})))},Ge=Kt((function(t){var e=t.currentFeedItem,r=t.feedSettings,n=null===e.media.url;if(null===(null==e?void 0:e.media.url)&&"CAROUSEL_ALBUM"!==(null==e?void 0:e.media_type))return h("section",{className:"instagram-gallery-modal__media-container"},h("img",{className:"instagram-gallery-modal__media",src:r.copyright.placeholder?r.copyright.placeholder:e.media.thumbnail}),"VIDEO"===e.media_type&&n&&h("img",{alt:"thumbnail",src:Ue,className:"instagram-gallery-item__icon qligg-icon-video instagram-gallery-item__icon--views"}));switch(e.media_type){case"CAROUSEL_ALBUM":return h(Fe,{feedSettings:r,currentFeedItem:e});case"VIDEO":return h("section",{className:"instagram-gallery-modal__media-container"},h("video",{poster:e.media.thumbnail,controls:!0,className:"instagram-gallery-modal__media",src:e.media.url}));default:return h("section",{className:"instagram-gallery-modal__media-container"},!!e.media.url&&h("img",{className:"instagram-gallery-modal__media",src:e.media.url}))}}));function Re(){return Re=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function sr(t,e,r,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}function fr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){sr(i,n,o,a,l,"next",t)}function l(t){sr(i,n,o,a,l,"throw",t)}a(void 0)}))}}fr(ur().mark((function t(){var e;return ur().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.querySelectorAll(".instagram-gallery-feed"),Array.from(e).forEach(function(){var t=fr(ur().mark((function t(e){var r;return ur().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=JSON.parse(e.dataset.feed)||{},F(h(y,null,h(Pt,null,h(lr,{target:e,feedSettings:r}))),e);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()})()})();