silverstripe-webpack/app/client/dist/js/app.js

1 line
62 KiB
JavaScript

!function(){var t={103:function(t,o,a){var i={"./bg.png":63,"./logo.png":371,"./logo.svg":253,"./original.png":972,"./original2.png":351,"./photo1.png":460,"./photo2.jpg":863,"./photo3.svg":430,"app/client/src/img/bg.png":63,"app/client/src/img/logo.png":371,"app/client/src/img/logo.svg":253,"app/client/src/img/original.png":972,"app/client/src/img/original2.png":351,"app/client/src/img/photo1.png":460,"app/client/src/img/photo2.jpg":863,"app/client/src/img/photo3.svg":430,"bg.png":63,"img/bg.png":63,"img/logo.png":371,"img/logo.svg":253,"img/original.png":972,"img/original2.png":351,"img/photo1.png":460,"img/photo2.jpg":863,"img/photo3.svg":430,"logo.png":371,"logo.svg":253,"original.png":972,"original2.png":351,"photo1.png":460,"photo2.jpg":863,"photo3.svg":430};function webpackContext(t){var o=webpackContextResolve(t);return a(o)}function webpackContextResolve(t){if(!a.o(i,t)){var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}return i[t]}webpackContext.keys=function webpackContextKeys(){return Object.keys(i)},webpackContext.resolve=webpackContextResolve,t.exports=webpackContext,webpackContext.id=103},758:function(t){"use strict";t.exports=function makeYoutubeEmbed(t){if("string"===typeof t){var o=function getId(t){var o=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(o&&11==o[2].length)return o[2]}(t);return o?"//www.youtube.com/embed/"+o:void 0}}},63:function(t){t.exports="../img/bg.png"},371:function(t){t.exports="../img/logo.png"},253:function(t){t.exports="../img/logo.svg"},972:function(t){t.exports="../img/original.png"},351:function(t){t.exports="../img/original2.png"},460:function(t){t.exports="../img/photo1.png"},863:function(t){t.exports="../img/photo2.jpg"},430:function(t){t.exports="../img/photo3.svg"},499:function(t){function webpackEmptyContext(t){var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=499,t.exports=webpackEmptyContext}},o={};function __webpack_require__(a){var i=o[a];if(void 0!==i)return i.exports;var c=o[a]={exports:{}};return t[a](c,c.exports,__webpack_require__),c.exports}__webpack_require__.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},function(){"use strict";var t={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",DOMLOADED:"DOMContentLoaded",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},o=(function(o){var a="_main.visibility",i=document,c=i.body;i.addEventListener("visibilitychange",(function(){"hidden"===i.visibilityState?(console.log("".concat(a,": Tab: hidden")),c.classList.add("is-hidden"),c.classList.remove("is-focused"),o.dispatchEvent(new Event(t.TABHIDDEN))):(console.log("".concat(a,": Tab: focused")),c.classList.add("is-focused"),c.classList.remove("is-hidden"),o.dispatchEvent(new Event(t.TABFOCUSED)))}))}(window),function(o){var a,i,c="_main.touch",s=document,l=s.body,u=function SET_TOUCH_SCREEN(s,u){i||u===a||(s?(console.log("".concat(c,": Touch screen enabled")),l.classList.add("is-touch"),l.classList.remove("is-mouse"),o.dispatchEvent(new Event(t.TOUCHENABLE))):(console.log("".concat(c,": Touch screen disabled")),l.classList.add("is-mouse"),l.classList.remove("is-touch"),o.dispatchEvent(new Event(t.TOUCHDISABLED))),a=u,i||(i=setTimeout((function(){clearTimeout(i),i=null}),500)))};u("ontouchstart"in o||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||o.matchMedia("(hover: none)").matches,"init"),s.addEventListener("touchend",(function(t){var o=!1;"click"!==t.type&&(o=!0),u(o,"click-touchend")})),s.addEventListener("click",(function(t){var o=!1;"click"!==t.type&&(o=!0),u(o,"click-touchend")}))}(window),{ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]});function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function _unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return _arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,o)}(t)||function _nonIterableSpread(){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 _arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}!function(a){var i=document,c=i.body,s=function detectCSSScreenSize(){var t,s=i.createElement("div");s.className="env-test",c.appendChild(s);var l=_toConsumableArray(o.ENVS).reverse(),u=l.shift();(t=c.classList).remove.apply(t,_toConsumableArray(l));for(var d=0;d<l.length;++d){var f=l[d];if(s.classList.add("d-".concat(f,"-none")),"none"===a.getComputedStyle(s).display){u=f,c.classList.add("".concat(u));break}}var p=!0;return a.innerWidth>a.innerHeight?(c.classList.add("landscape"),c.classList.remove("portrait")):(p=!1,c.classList.add("portrait"),c.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(u," | landscape ").concat(p)),c.removeChild(s),u};a.addEventListener("".concat(t.LOADED),s),a.addEventListener("".concat(t.RESIZE),s)}(window);function _defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a="_main.loading-spinner",i=document,c=(i.body,i.getElementById("PageLoading")),s=function(){function SpinnerUI(){!function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function _createClass(t,o,a){return o&&_defineProperties(t.prototype,o),a&&_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(a,": show")),c.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(a,": hide")),c.classList.add("d-none")}}]),SpinnerUI}();function main_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(a){var i=document.body;console.info("%cUI Kit ".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.5.3"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-js"," ").concat("4.2.0"),"color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by ".concat("Tony Air <tony@twma.pro>"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(t).forEach((function(o){console.info("".concat(o,": ").concat(t[o]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(o).forEach((function(t){console.info("".concat(t,": ").concat(o[t]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var c=function(){function MainUI(){!function main_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(t,o,a){return o&&main_defineProperties(t.prototype,o),a&&main_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(MainUI,null,[{key:"init",value:function init(){a.history.replaceState({landing:a.location.href},document.title,a.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}(),l=function documentInit(){c.init(),i.classList.add("loaded"),s.hide(),console.groupEnd("init"),console.timeEnd("init"),a.addEventListener("".concat(t.LOADED),(function(o){a.dispatchEvent(new Event(t.LODEDANDREADY))}))};"loading"===document.readyState?document.addEventListener("".concat(t.DOMLOADED),l):l(),a.addEventListener("".concat(t.AJAX),(function(){c.loaded()})),a.MainUI=c}(window);var l="ajax-load",u="load-ready";function _typeof(t){return _typeof="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},_typeof(t)}var d=function e(t){function r(t,o,a){var i,c={};if(Array.isArray(t))return t.concat(o);for(i in t)c[a?i.toLowerCase():i]=t[i];for(i in o){var s=a?i.toLowerCase():i,l=o[i];c[s]=s in c&&"object"==_typeof(l)?r(c[s],l,"headers"===s):l}return c}function n(o,a,i,c){"string"!=typeof o&&(o=(a=o).url);var s={config:a},l=r(t,a),u={},d=c||l.data;(l.transformRequest||[]).map((function(t){d=t(d,l.headers)||d})),d&&"object"==_typeof(d)&&"function"!=typeof d.append&&(d=JSON.stringify(d),u["content-type"]="application/json");var f="undefined"!=typeof document&&document.cookie.match(RegExp("(^|; )"+l.xsrfCookieName+"=([^;]*)"));if(f&&(u[l.xsrfHeaderName]=f[2]),l.auth&&(u.authorization=l.auth),l.baseURL&&(o=o.replace(/^(?!.*\/\/)\/?(.*)$/,l.baseURL+"/$1")),l.params){var p=~o.indexOf("?")?"&":"?";o+=p+(l.paramsSerializer?l.paramsSerializer(l.params):new URLSearchParams(l.params))}return(l.fetch||fetch)(o,{method:i||l.method,body:d,headers:r(l.headers,u,!0),credentials:l.withCredentials?"include":"same-origin"}).then((function(t){for(var o in t)"function"!=typeof t[o]&&(s[o]=t[o]);var a=l.validateStatus?l.validateStatus(t.status):t.ok;return"stream"==l.responseType?(s.data=t.body,s):t[l.responseType||"text"]().then((function(t){s.data=t,s.data=JSON.parse(t)})).catch(Object).then((function(){return a?s:Promise.reject(s)}))}))}return t=t||{},n.request=n,n.get=function(t,o){return n(t,o,"get")},n.delete=function(t,o){return n(t,o,"delete")},n.head=function(t,o){return n(t,o,"head")},n.options=function(t,o){return n(t,o,"options")},n.post=function(t,o,a){return n(t,a,"post",o)},n.put=function(t,o,a){return n(t,a,"put",o)},n.patch=function(t,o,a){return n(t,a,"patch",o)},n.all=Promise.all.bind(Promise),n.spread=function(t){return function(o){return t.apply(this,o)}},n.CancelToken="function"==typeof AbortController?AbortController:Object,n.defaults=t,n.create=e,n}();function window_toConsumableArray(t){return function window_arrayWithoutHoles(t){if(Array.isArray(t))return window_arrayLikeToArray(t)}(t)||function window_iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function window_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return window_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return window_arrayLikeToArray(t,o)}(t)||function window_nonIterableSpread(){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 window_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}function window_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function window_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}var f=window,p=function(){function MetaWindow(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shown:!1},a=arguments.length>1?arguments[1]:void 0;window_classCallCheck(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null,extraClass:null}),_defineProperty(this,"show",(function(){var o=t;console.log("".concat(o.name,": show")),o.setState({shown:!0}),f.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var o=t;console.log("".concat(o.name,": hide")),o.setState({shown:!1}),f.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var o=t,a=o.state.current.getAttribute("data-gallery"),i=o._currIndex();i<o.state.collections[a].length-1?i++:i=0,o.state.collections[a][i].click(),console.log("".concat(o.name,": next")),f.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){var o=t,a=o.state.current.getAttribute("data-gallery"),i=o._currIndex();i>0?i--:i=o.state.collections[a].length-1,o.state.collections[a][i].click(),console.log("".concat(o.name,": prev")),f.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){t.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(o){var a=t,i=a.axios;a.reset(),a.setState({loading:!0}),a.show(),i.get(o,{responseType:"arraybuffer"}).then((function(t){console.log("".concat(a.name,": response content-type: ").concat(t.headers["content-type"]));switch(t.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":a.setContent('<img src="data:'.concat(t.headers["content-type"],";base64,").concat(a._imageEncode(t.data),'" />'),"meta-".concat(a.name,"--image"));break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":a.setContent("".concat((!1).Content),["meta-".concat(a.name,"--text"),"meta-".concat(a.name,"--html"),"meta-".concat(a.name,"--json")]);break;case"video/mp4":a.setContent('<video controls autoplay><source src="'.concat(o,'" type="video/mp4">Your browser does not support the video tag.</video>'),["meta-".concat(a.name,"--image"),"meta-".concat(a.name,"--video")]);break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":a.setContent(a._abToString(t.data),["meta-".concat(a.name,"--text"),"meta-".concat(a.name,"--html"),"meta-".concat(a.name,"--pajax")]);break;default:console.warn("".concat(a.name,": Unknown response content-type!"))}f.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(t){console.error(t);var o="";if(t.response)switch(t.response.status){case 404:o="Not Found.";break;case 500:o="Server issue, please try again latter.";break;default:o="Something went wrong."}else t.request?o="No response received":console.warn("Error",t.message);a.setState({error:o}),f.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){a.setState({loading:!1}),setTimeout((function(){a.state.current.classList.remove("loading")}),3e3)}))})),_defineProperty(this,"_currIndex",(function(){var o=t,a=o.state.current,i=a.getAttribute("data-gallery");return o.state.collections[i].indexOf(a)})),_defineProperty(this,"embed",(function(o){var a=t;console.log("".concat(a.name,": embed")),a.reset(),a.setState({embed:o,loading:!1,type:["meta-".concat(a.name,"--embed"),"meta-".concat(a.name,"--video")]}),a.show()})),_defineProperty(this,"setCaption",(function(o){var a=t;console.log("".concat(a.name,": setCaption")),a.state.caption=o})),_defineProperty(this,"addExtraClass",(function(o){var a=t;o.length&&(console.log("".concat(a.name,": addExtraClass(").concat(o,")")),a.state.extraClass=o)})),_defineProperty(this,"getCaption",(function(){return t.state.caption})),_defineProperty(this,"_abToString",(function(t){return String.fromCharCode.apply(null,new Uint8Array(t))})),_defineProperty(this,"_imageEncode",(function(t){new Uint8Array(t);return btoa([].reduce.call(new Uint8Array(t),(function(t,o){return t+String.fromCharCode(o)}),""))})),_defineProperty(this,"setContent",(function(o,a){var i=t;console.log("".concat(i.name,": setContent"));var c=a||["meta-".concat(i.name,"--html"),"meta-".concat(i.name,"--text")];Array.isArray(c)||(c=a.split(" ")),i.setState({content:o,type:c})})),_defineProperty(this,"getHtml",(function(){var o=t;if(o.state.embed){var a=__webpack_require__(758)(o.state.embed);o.state.content='<iframe width="600" height="380" src="'.concat(a,'" frameborder="0"></iframe>')}return o.state.content}));var i=this;switch(i.name=i.constructor.name,console.log("".concat(i.name,": init")),i.axios=d,i.setState(o),a){case"show":case"hide":i.hide()}f.dispatchEvent(new Event("{ui.name}.init"))}return function window_createClass(t,o,a){return o&&window_defineProperties(t.prototype,o),a&&window_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(MetaWindow,[{key:"init",value:function init(){var t=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(o){var a=o.getAttribute("data-gallery");a&&(t.state.collections[a]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(a,'"]')).forEach((function(o){t.state.collections[a].push(o)}))),o.addEventListener("click",(function(o){o.preventDefault(),console.log("MetaWindow: [link] click");var a=o.currentTarget,i=a.getAttribute("href")||a.getAttribute("data-href"),c=a.getAttribute("data-embed");a.classList.add("loading"),t.state.current=a,c?t.embed(i):t.load(i);var s=a.getAttribute("data-title");s&&t.setCaption(s),t.addExtraClass(a.getAttribute("data-lightbox-class"))}))}))}},{key:"setState",value:function setState(t){var o=this;o.state=Object.assign({},o.state,t),o.render()}},{key:"render",value:function render(){var t,o=this,a=o.name,i=o.state.current;o.state.target.innerHTML="";var c=document.createElement("div");c.classList.add("meta-".concat(a)),(t=c.classList).add.apply(t,window_toConsumableArray(o.state.type)),o.state.target.append(c);var s=document.createElement("div");s.classList.add("meta-".concat(a,"-overlay")),o.state.shown&&s.classList.add("meta-".concat(a,"-overlay--open")),o.state.loading&&s.classList.add("meta-".concat(a,"-overlay--loading")),o.state.error&&s.classList.add("meta-".concat(a,"-overlay--error")),c.append(s);var l=document.createElement("div");l.classList.add("meta-content"),s.append(l);var u=document.createElement("button");if(u.classList.add("meta-nav","meta-close","a"),u.innerHTML='<i class="icon fa fas fa-times"></i> <span class="visually-hidden">Close</span>',u.addEventListener("click",(function(t){t.preventDefault(),o.hide()})),l.append(u),i){var d=i.getAttribute("data-gallery");if(d&&o.state.collections[d].length>1){var f=document.createElement("nav");f.classList.add("meta-navs");var p=document.createElement("button");p.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),p.innerHTML='<i class="icon fa fas fa-chevron-left"></i> <span class="visually-hidden">Previous</span>',p.addEventListener("click",(function(t){t.preventDefault(),o.prev()})),f.append(p);var m=document.createElement("button");m.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),m.innerHTML='<i class="icon fa fas fa-chevron-right"></i> <span class="visually-hidden">Next</span>',m.addEventListener("click",(function(t){t.preventDefault(),o.next()})),f.append(m),l.append(f)}}var g=document.createElement("section");if(g.classList.add("meta-wrap","typography"),o.state.extraClass&&g.classList.add(o.state.extraClass),g.innerHTML=o.getHtml(),l.append(g),o.state.error){var h=document.createElement("div");h.classList.add("meta-error"),h.innerHTML=o.state.error,l.append(h)}else if(o.state.caption){var y=document.createElement("div");y.classList.add("meta-caption"),y.innerHTML=o.getCaption(),l.append(y)}return"undefined"!==typeof window.FontAwesome&&window.FontAwesome.dom.i2svg(),o}}]),MetaWindow}(),m=p,g=document.getElementById("MetaLightboxApp");g||console.log("MetaWindow: missing container #MetaLightboxApp");var h=function init(){var t=window.MetaWindow;"undefined"===typeof t&&(t=new m({target:g}),window.MetaWindow=t),t.init()};window.addEventListener("".concat(u),h),window.addEventListener("".concat(l),h),window.addEventListener("MetaWindow.initLinks",h);function util_typeof(t){return util_typeof="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},util_typeof(t)}var y="transitionend",v=function getSelector(t){var o=t.getAttribute("data-bs-target");if(!o||"#"===o){var a=t.getAttribute("href");if(!a||!a.includes("#")&&!a.startsWith("."))return null;a.includes("#")&&!a.startsWith("#")&&(a="#".concat(a.split("#")[1])),o=a&&"#"!==a?a.trim():null}return o},b=function getSelectorFromElement(t){var o=v(t);return o&&document.querySelector(o)?o:null},_=function getElementFromSelector(t){var o=v(t);return o?document.querySelector(o):null},w=function getTransitionDurationFromElement(t){if(!t)return 0;var o=window.getComputedStyle(t),a=o.transitionDuration,i=o.transitionDelay,c=Number.parseFloat(a),s=Number.parseFloat(i);return c||s?(a=a.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(i))):0},E=function triggerTransitionEnd(t){t.dispatchEvent(new Event(y))},A=function isElement(t){return!(!t||"object"!==util_typeof(t))&&("undefined"!==typeof t.jquery&&(t=t[0]),"undefined"!==typeof t.nodeType)},L=function getElement(t){return A(t)?t.jquery?t[0]:t:"string"===typeof t&&t.length>0?document.querySelector(t):null},S=function typeCheckConfig(t,o,a){Object.keys(a).forEach((function(i){var c=a[i],s=o[i],l=s&&A(s)?"element":function toType(t){return null===t||void 0===t?"".concat(t):{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}(s);if(!new RegExp(c).test(l))throw new TypeError("".concat(t.toUpperCase(),': Option "').concat(i,'" provided type "').concat(l,'" but expected type "').concat(c,'".'))}))},O=function isVisible(t){return!(!A(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility")},C=function reflow(t){t.offsetHeight},k=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},T=[],P=function isRTL(){return"rtl"===document.documentElement.dir},I=function defineJQueryPlugin(t){!function onDOMContentLoaded(t){"loading"===document.readyState?(T.length||document.addEventListener("DOMContentLoaded",(function(){T.forEach((function(t){return t()}))})),T.push(t)):t()}((function(){var $=k();if($){var o=t.NAME,a=$.fn[o];$.fn[o]=t.jQueryInterface,$.fn[o].Constructor=t,$.fn[o].noConflict=function(){return $.fn[o]=a,t.jQueryInterface}}}))},x=function execute(t){"function"===typeof t&&t()},D=function executeAfterTransition(t,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(a){var i=5,c=w(o)+i,s=!1,l=function handler(a){a.target===o&&(s=!0,o.removeEventListener(y,handler),x(t))};o.addEventListener(y,l),setTimeout((function(){s||E(o)}),c)}else x(t)},j=new Map,N=function set(t,o,a){j.has(t)||j.set(t,new Map);var i=j.get(t);i.has(o)||0===i.size?i.set(o,a):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},R=function get(t,o){return j.has(t)&&j.get(t).get(o)||null},M=function remove(t,o){if(j.has(t)){var a=j.get(t);a.delete(o),0===a.size&&j.delete(t)}};function _slicedToArray(t,o){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,o){var a=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var i,c,s=[],l=!0,u=!1;try{for(a=a.call(t);!(l=(i=a.next()).done)&&(s.push(i.value),!o||s.length!==o);l=!0);}catch(d){u=!0,c=d}finally{try{l||null==a.return||a.return()}finally{if(u)throw c}}return s}(t,o)||function event_handler_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return event_handler_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return event_handler_arrayLikeToArray(t,o)}(t,o)||function _nonIterableRest(){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 event_handler_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}var H=/[^.]*(?=\..*)\.|.*/,U=/\..*/,q=/::\d+$/,F={},z=1,B={mouseenter:"mouseover",mouseleave:"mouseout"},W=/^(mouseenter|mouseleave)/i,K=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(t,o){return o&&"".concat(o,"::").concat(z++)||t.uidEvent||z++}function getEvent(t){var o=getUidEvent(t);return t.uidEvent=o,F[o]=F[o]||{},F[o]}function findHandler(t,o){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=Object.keys(t),c=0,s=i.length;c<s;c++){var l=t[i[c]];if(l.originalHandler===o&&l.delegationSelector===a)return l}return null}function normalizeParams(t,o,a){var i="string"===typeof o,c=i?a:o,s=getTypeEvent(t);return K.has(s)||(s=t),[i,c,s]}function addHandler(t,o,a,i,c){if("string"===typeof o&&t){if(a||(a=i,i=null),W.test(o)){var s=function wrapFn(t){return function(o){if(!o.relatedTarget||o.relatedTarget!==o.delegateTarget&&!o.delegateTarget.contains(o.relatedTarget))return t.call(this,o)}};i?i=s(i):a=s(a)}var l=_slicedToArray(normalizeParams(o,a,i),3),u=l[0],d=l[1],f=l[2],p=getEvent(t),m=p[f]||(p[f]={}),g=findHandler(m,d,u?a:null);if(g)g.oneOff=g.oneOff&&c;else{var h=getUidEvent(d,o.replace(H,"")),y=u?function bootstrapDelegationHandler(t,o,a){return function handler(i){for(var c=t.querySelectorAll(o),s=i.target;s&&s!==this;s=s.parentNode)for(var l=c.length;l--;)if(c[l]===s)return i.delegateTarget=s,handler.oneOff&&X.off(t,i.type,o,a),a.apply(s,[i]);return null}}(t,a,i):function bootstrapHandler(t,o){return function handler(a){return a.delegateTarget=t,handler.oneOff&&X.off(t,a.type,o),o.apply(t,[a])}}(t,a);y.delegationSelector=u?a:null,y.originalHandler=d,y.oneOff=c,y.uidEvent=h,m[h]=y,t.addEventListener(f,y,u)}}}function removeHandler(t,o,a,i,c){var s=findHandler(o[a],i,c);s&&(t.removeEventListener(a,s,Boolean(c)),delete o[a][s.uidEvent])}function getTypeEvent(t){return t=t.replace(U,""),B[t]||t}var X={on:function on(t,o,a,i){addHandler(t,o,a,i,!1)},one:function one(t,o,a,i){addHandler(t,o,a,i,!0)},off:function off(t,o,a,i){if("string"===typeof o&&t){var c=_slicedToArray(normalizeParams(o,a,i),3),s=c[0],l=c[1],u=c[2],d=u!==o,f=getEvent(t),p=o.startsWith(".");if("undefined"===typeof l){p&&Object.keys(f).forEach((function(a){!function removeNamespacedHandlers(t,o,a,i){var c=o[a]||{};Object.keys(c).forEach((function(s){if(s.includes(i)){var l=c[s];removeHandler(t,o,a,l.originalHandler,l.delegationSelector)}}))}(t,f,a,o.slice(1))}));var m=f[u]||{};Object.keys(m).forEach((function(a){var i=a.replace(q,"");if(!d||o.includes(i)){var c=m[a];removeHandler(t,f,u,c.originalHandler,c.delegationSelector)}}))}else{if(!f||!f[u])return;removeHandler(t,f,u,l,s?a:null)}}},trigger:function trigger(t,o,a){if("string"!==typeof o||!t)return null;var i,$=k(),c=getTypeEvent(o),s=o!==c,l=K.has(c),u=!0,d=!0,f=!1,p=null;return s&&$&&(i=$.Event(o,a),$(t).trigger(i),u=!i.isPropagationStopped(),d=!i.isImmediatePropagationStopped(),f=i.isDefaultPrevented()),l?(p=document.createEvent("HTMLEvents")).initEvent(c,u,!0):p=new CustomEvent(o,{bubbles:u,cancelable:!0}),"undefined"!==typeof a&&Object.keys(a).forEach((function(t){Object.defineProperty(p,t,{get:function get(){return a[t]}})})),f&&p.preventDefault(),d&&t.dispatchEvent(p),p.defaultPrevented&&"undefined"!==typeof i&&i.preventDefault(),p}},Y=X;function normalizeData(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function normalizeDataKey(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}var V={setDataAttribute:function setDataAttribute(t,o,a){t.setAttribute("data-bs-".concat(normalizeDataKey(o)),a)},removeDataAttribute:function removeDataAttribute(t,o){t.removeAttribute("data-bs-".concat(normalizeDataKey(o)))},getDataAttributes:function getDataAttributes(t){if(!t)return{};var o={};return Object.keys(t.dataset).filter((function(t){return t.startsWith("bs")})).forEach((function(a){var i=a.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),o[i]=normalizeData(t.dataset[a])})),o},getDataAttribute:function getDataAttribute(t,o){return normalizeData(t.getAttribute("data-bs-".concat(normalizeDataKey(o))))},offset:function offset(t){var o=t.getBoundingClientRect();return{top:o.top+window.pageYOffset,left:o.left+window.pageXOffset}},position:function position(t){return{top:t.offsetTop,left:t.offsetLeft}}};function selector_engine_toConsumableArray(t){return function selector_engine_arrayWithoutHoles(t){if(Array.isArray(t))return selector_engine_arrayLikeToArray(t)}(t)||function selector_engine_iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function selector_engine_unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return selector_engine_arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return selector_engine_arrayLikeToArray(t,o)}(t)||function selector_engine_nonIterableSpread(){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 selector_engine_arrayLikeToArray(t,o){(null==o||o>t.length)&&(o=t.length);for(var a=0,i=new Array(o);a<o;a++)i[a]=t[a];return i}var J={find:function find(t){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(o=[]).concat.apply(o,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(a,t)))},findOne:function findOne(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(o,t)},children:function children(t,o){var a;return(a=[]).concat.apply(a,selector_engine_toConsumableArray(t.children)).filter((function(t){return t.matches(o)}))},parents:function parents(t,o){for(var parents=[],a=t.parentNode;a&&a.nodeType===Node.ELEMENT_NODE&&3!==a.nodeType;)a.matches(o)&&parents.push(a),a=a.parentNode;return parents},prev:function prev(t,o){for(var a=t.previousElementSibling;a;){if(a.matches(o))return[a];a=a.previousElementSibling}return[]},next:function next(t,o){for(var next=t.nextElementSibling;next;){if(next.matches(o))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(t){var o=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(t){return"".concat(t,':not([tabindex^="-"])')})).join(", ");return this.find(o,t).filter((function(t){return!function isDisabled(t){return!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||("undefined"!==typeof t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))}(t)&&O(t)}))}},Q=J;function base_component_typeof(t){return base_component_typeof="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},base_component_typeof(t)}function base_component_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var G=function(){function BaseComponent(t){!function base_component_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,BaseComponent),(t=L(t))&&(this._element=t,N(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(t,o,a){return o&&base_component_defineProperties(t.prototype,o),a&&base_component_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(BaseComponent,[{key:"dispose",value:function dispose(){var t=this;M(this._element,this.constructor.DATA_KEY),Y.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(o){t[o]=null}))}},{key:"_queueCallback",value:function _queueCallback(t,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];D(t,o,a)}}],[{key:"getInstance",value:function getInstance(t){return R(L(t),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"===base_component_typeof(o)?o:null)}},{key:"VERSION",get:function get(){return"5.1.3"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),Z=G;function collapse_typeof(t){return collapse_typeof="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},collapse_typeof(t)}function ownKeys(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(t){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(a),!0).forEach((function(o){collapse_defineProperty(t,o,a[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))}))}return t}function collapse_defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function collapse_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _setPrototypeOf(t,o){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,o){return t.__proto__=o,t},_setPrototypeOf(t,o)}function _createSuper(t){var o=function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(o){var c=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,o){if(o&&("object"===collapse_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}var ee="collapse",te="bs.collapse",ne=".".concat(te),oe={toggle:!0,parent:null},re={toggle:"boolean",parent:"(null|element)"},ae="show".concat(ne),ie="shown".concat(ne),ce="hide".concat(ne),se="hidden".concat(ne),le="click".concat(ne).concat(".data-api"),ue="show",de="collapse",fe="collapsing",pe="collapsed",me=":scope .".concat(de," .").concat(de),ge='[data-bs-toggle="collapse"]',he=function(t){!function _inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&_setPrototypeOf(t,o)}(Collapse,t);var o=_createSuper(Collapse);function Collapse(t,a){var i;!function collapse_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Collapse),(i=o.call(this,t))._isTransitioning=!1,i._config=i._getConfig(a),i._triggerArray=[];for(var c=Q.find(ge),s=0,l=c.length;s<l;s++){var u=c[s],d=b(u),f=Q.find(d).filter((function(t){return t===i._element}));null!==d&&f.length&&(i._selector=d,i._triggerArray.push(u))}return i._initializeChildren(),i._config.parent||i._addAriaAndCollapsedClass(i._triggerArray,i._isShown()),i._config.toggle&&i.toggle(),i}return function collapse_createClass(t,o,a){return o&&collapse_defineProperties(t.prototype,o),a&&collapse_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Collapse,[{key:"toggle",value:function toggle(){this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){var t=this;if(!this._isTransitioning&&!this._isShown()){var o,a=[];if(this._config.parent){var i=Q.find(me,this._config.parent);a=Q.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((function(t){return!i.includes(t)}))}var c=Q.findOne(this._selector);if(a.length){var s=a.find((function(t){return c!==t}));if((o=s?Collapse.getInstance(s):null)&&o._isTransitioning)return}if(!Y.trigger(this._element,ae).defaultPrevented){a.forEach((function(t){c!==t&&Collapse.getOrCreateInstance(t,{toggle:!1}).hide(),o||N(t,te,null)}));var l=this._getDimension();this._element.classList.remove(de),this._element.classList.add(fe),this._element.style[l]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var u=l[0].toUpperCase()+l.slice(1),d="scroll".concat(u);this._queueCallback((function complete(){t._isTransitioning=!1,t._element.classList.remove(fe),t._element.classList.add(de,ue),t._element.style[l]="",Y.trigger(t._element,ie)}),this._element,!0),this._element.style[l]="".concat(this._element[d],"px")}}}},{key:"hide",value:function hide(){var t=this;if(!this._isTransitioning&&this._isShown()&&!Y.trigger(this._element,ce).defaultPrevented){var o=this._getDimension();this._element.style[o]="".concat(this._element.getBoundingClientRect()[o],"px"),C(this._element),this._element.classList.add(fe),this._element.classList.remove(de,ue);for(var a=this._triggerArray.length,i=0;i<a;i++){var c=this._triggerArray[i],s=_(c);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([c],!1)}this._isTransitioning=!0;this._element.style[o]="",this._queueCallback((function complete(){t._isTransitioning=!1,t._element.classList.remove(fe),t._element.classList.add(de),Y.trigger(t._element,se)}),this._element,!0)}}},{key:"_isShown",value:function _isShown(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return t.classList.contains(ue)}},{key:"_getConfig",value:function _getConfig(t){return(t=_objectSpread(_objectSpread(_objectSpread({},oe),V.getDataAttributes(this._element)),t)).toggle=Boolean(t.toggle),t.parent=L(t.parent),S(ee,t,re),t}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var t=this;if(this._config.parent){var o=Q.find(me,this._config.parent);Q.find(ge,this._config.parent).filter((function(t){return!o.includes(t)})).forEach((function(o){var a=_(o);a&&t._addAriaAndCollapsedClass([o],t._isShown(a))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(t,o){t.length&&t.forEach((function(t){o?t.classList.remove(pe):t.classList.add(pe),t.setAttribute("aria-expanded",o)}))}}],[{key:"Default",get:function get(){return oe}},{key:"NAME",get:function get(){return ee}},{key:"jQueryInterface",value:function jQueryInterface(t){return this.each((function(){var o={};"string"===typeof t&&/show|hide/.test(t)&&(o.toggle=!1);var a=Collapse.getOrCreateInstance(this,o);if("string"===typeof t){if("undefined"===typeof a[t])throw new TypeError('No method named "'.concat(t,'"'));a[t]()}}))}}]),Collapse}(Z);Y.on(document,le,ge,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();var o=b(this);Q.find(o).forEach((function(t){he.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),I(he);var ye;!function(o){var a="js-dropdown",i=function HideAll(){document.querySelectorAll(".dropdown-menu").forEach((function(t,o){t.classList.remove("show")}))},c=function Show(t){t.currentTarget.querySelector(".dropdown-menu").classList.add("show")},s=function Hide(t){t.currentTarget.querySelector(".dropdown-menu").classList.remove("show")},l=function init(){console.log("".concat(a,": init"));var t=document.querySelectorAll(".".concat(a,',[data-bs-toggle="dropdown"]')),o=document.querySelectorAll('[data-bs-toggle="hover"]'),l=function attachClickEvents(t){t.addEventListener("click",(function(t){t.preventDefault(),function Toggle(t){i(),t.querySelector(".dropdown-menu").classList.toggle("show")}(t.currentTarget.closest(".dropdown"))})),t.classList.add("".concat(a,"-active"))};document.addEventListener("click",(function(t){var o=!1,a=t.path||t.composedPath&&t.composedPath();a||console.warn("Browser does not provide event path to hide dropdowns on outside click"),a.forEach((function(t,a){o||(t===document&&i(),t.classList&&t.classList.contains("dropdown-toggle")&&(o=!0))}))})),o.forEach((function(t,o){!function attachHoverEvents(t){t.addEventListener("mouseover",c,!1),t.addEventListener("mouseout",s,!1),t.classList.add("".concat(a,"-active"))}(t.closest(".dropdown"))})),t.forEach((function(t,o){l(t)}))};o.addEventListener("".concat(t.LODEDANDREADY),l),o.addEventListener("".concat(t.AJAX),l)}(window);function carousel_typeof(t){return carousel_typeof="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},carousel_typeof(t)}function carousel_ownKeys(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),a.push.apply(a,i)}return a}function carousel_objectSpread(t){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?carousel_ownKeys(Object(a),!0).forEach((function(o){carousel_defineProperty(t,o,a[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):carousel_ownKeys(Object(a)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))}))}return t}function carousel_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function carousel_setPrototypeOf(t,o){return carousel_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,o){return t.__proto__=o,t},carousel_setPrototypeOf(t,o)}function carousel_createSuper(t){var o=function carousel_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=carousel_getPrototypeOf(t);if(o){var c=carousel_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,c)}else a=i.apply(this,arguments);return carousel_possibleConstructorReturn(this,a)}}function carousel_possibleConstructorReturn(t,o){if(o&&("object"===carousel_typeof(o)||"function"===typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return function carousel_assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function carousel_getPrototypeOf(t){return carousel_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},carousel_getPrototypeOf(t)}function carousel_defineProperty(t,o,a){return o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}var ve="carousel",be=".".concat("bs.carousel"),_e=".data-api",we={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ee={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ae="next",Le="prev",Se="left",Oe="right",Ce=(carousel_defineProperty(ye={},"ArrowLeft",Oe),carousel_defineProperty(ye,"ArrowRight",Se),ye),ke="slide".concat(be),Te="slid".concat(be),Pe="keydown".concat(be),Ie="mouseenter".concat(be),xe="mouseleave".concat(be),De="touchstart".concat(be),je="touchmove".concat(be),Ne="touchend".concat(be),Re="pointerdown".concat(be),Me="pointerup".concat(be),He="dragstart".concat(be),Ue="load".concat(be).concat(_e),qe="click".concat(be).concat(_e),Fe="active",ze=".active.carousel-item",Be=function(t){!function carousel_inherits(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&carousel_setPrototypeOf(t,o)}(Carousel,t);var o=carousel_createSuper(Carousel);function Carousel(t,a){var i;return function carousel_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Carousel),(i=o.call(this,t))._items=null,i._interval=null,i._activeElement=null,i._isPaused=!1,i._isSliding=!1,i.touchTimeout=null,i.touchStartX=0,i.touchDeltaX=0,i._config=i._getConfig(a),i._indicatorsElement=Q.findOne(".carousel-indicators",i._element),i._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,i._pointerEvent=Boolean(window.PointerEvent),i._addEventListeners(),i}return function carousel_createClass(t,o,a){return o&&carousel_defineProperties(t.prototype,o),a&&carousel_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Carousel,[{key:"next",value:function next(){this._slide(Ae)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&O(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(Le)}},{key:"pause",value:function pause(t){t||(this._isPaused=!0),Q.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(E(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(t){var o=this;this._activeElement=Q.findOne(ze,this._element);var a=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)Y.one(this._element,Te,(function(){return o.to(t)}));else{if(a===t)return this.pause(),void this.cycle();var i=t>a?Ae:Le;this._slide(i,this._items[t])}}},{key:"_getConfig",value:function _getConfig(t){return t=carousel_objectSpread(carousel_objectSpread(carousel_objectSpread({},we),V.getDataAttributes(this._element)),"object"===carousel_typeof(t)?t:{}),S(ve,t,Ee),t}},{key:"_handleSwipe",value:function _handleSwipe(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var o=t/this.touchDeltaX;this.touchDeltaX=0,o&&this._slide(o>0?Oe:Se)}}},{key:"_addEventListeners",value:function _addEventListeners(){var t=this;this._config.keyboard&&Y.on(this._element,Pe,(function(o){return t._keydown(o)})),"hover"===this._config.pause&&(Y.on(this._element,Ie,(function(o){return t.pause(o)})),Y.on(this._element,xe,(function(o){return t.cycle(o)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var t=this,o=function hasPointerPenTouch(o){return t._pointerEvent&&("pen"===o.pointerType||"touch"===o.pointerType)},a=function start(a){o(a)?t.touchStartX=a.clientX:t._pointerEvent||(t.touchStartX=a.touches[0].clientX)},i=function end(a){o(a)&&(t.touchDeltaX=a.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(o){return t.cycle(o)}),500+t._config.interval))};Q.find(".carousel-item img",this._element).forEach((function(t){Y.on(t,He,(function(t){return t.preventDefault()}))})),this._pointerEvent?(Y.on(this._element,Re,(function(t){return a(t)})),Y.on(this._element,Me,(function(t){return i(t)})),this._element.classList.add("pointer-event")):(Y.on(this._element,De,(function(t){return a(t)})),Y.on(this._element,je,(function(o){return function move(o){t.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-t.touchStartX}(o)})),Y.on(this._element,Ne,(function(t){return i(t)})))}},{key:"_keydown",value:function _keydown(t){if(!/input|textarea/i.test(t.target.tagName)){var o=Ce[t.key];o&&(t.preventDefault(),this._slide(o))}}},{key:"_getItemIndex",value:function _getItemIndex(t){return this._items=t&&t.parentNode?Q.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}},{key:"_getItemByOrder",value:function _getItemByOrder(t,o){var a=t===Ae;return function getNextActiveElement(t,o,a,i){var c=t.indexOf(o);if(-1===c)return t[!a&&i?t.length-1:0];var s=t.length;return c+=a?1:-1,i&&(c=(c+s)%s),t[Math.max(0,Math.min(c,s-1))]}(this._items,o,a,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(t,o){var a=this._getItemIndex(t),i=this._getItemIndex(Q.findOne(ze,this._element));return Y.trigger(this._element,ke,{relatedTarget:t,direction:o,from:i,to:a})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(t){if(this._indicatorsElement){var o=Q.findOne(".active",this._indicatorsElement);o.classList.remove(Fe),o.removeAttribute("aria-current");for(var a=Q.find("[data-bs-target]",this._indicatorsElement),i=0;i<a.length;i++)if(Number.parseInt(a[i].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){a[i].classList.add(Fe),a[i].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var t=this._activeElement||Q.findOne(ze,this._element);if(t){var o=Number.parseInt(t.getAttribute("data-bs-interval"),10);o?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=o):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function _slide(t,o){var a=this,i=this._directionToOrder(t),c=Q.findOne(ze,this._element),s=this._getItemIndex(c),l=o||this._getItemByOrder(i,c),u=this._getItemIndex(l),d=Boolean(this._interval),f=i===Ae,p=f?"carousel-item-start":"carousel-item-end",m=f?"carousel-item-next":"carousel-item-prev",g=this._orderToDirection(i);if(l&&l.classList.contains(Fe))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(l,g).defaultPrevented&&c&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var h=function triggerSlidEvent(){Y.trigger(a._element,Te,{relatedTarget:l,direction:g,from:s,to:u})};if(this._element.classList.contains("slide")){l.classList.add(m),C(l),c.classList.add(p),l.classList.add(p);this._queueCallback((function completeCallBack(){l.classList.remove(p,m),l.classList.add(Fe),c.classList.remove(Fe,m,p),a._isSliding=!1,setTimeout(h,0)}),c,!0)}else c.classList.remove(Fe),l.classList.add(Fe),this._isSliding=!1,h();d&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(t){return[Oe,Se].includes(t)?P()?t===Se?Le:Ae:t===Se?Ae:Le:t}},{key:"_orderToDirection",value:function _orderToDirection(t){return[Ae,Le].includes(t)?P()?t===Le?Se:Oe:t===Le?Oe:Se:t}}],[{key:"Default",get:function get(){return we}},{key:"NAME",get:function get(){return ve}},{key:"carouselInterface",value:function carouselInterface(t,o){var a=Carousel.getOrCreateInstance(t,o),i=a._config;"object"===carousel_typeof(o)&&(i=carousel_objectSpread(carousel_objectSpread({},i),o));var c="string"===typeof o?o:i.slide;if("number"===typeof o)a.to(o);else if("string"===typeof c){if("undefined"===typeof a[c])throw new TypeError('No method named "'.concat(c,'"'));a[c]()}else i.interval&&i.ride&&(a.pause(),a.cycle())}},{key:"jQueryInterface",value:function jQueryInterface(t){return this.each((function(){Carousel.carouselInterface(this,t)}))}},{key:"dataApiClickHandler",value:function dataApiClickHandler(t){var o=_(this);if(o&&o.classList.contains("carousel")){var a=carousel_objectSpread(carousel_objectSpread({},V.getDataAttributes(o)),V.getDataAttributes(this)),i=this.getAttribute("data-bs-slide-to");i&&(a.interval=!1),Carousel.carouselInterface(o,a),i&&Carousel.getInstance(o).to(i),t.preventDefault()}}}]),Carousel}(Z);Y.on(document,qe,"[data-bs-slide], [data-bs-slide-to]",Be.dataApiClickHandler),Y.on(window,Ue,(function(){for(var t=Q.find('[data-bs-ride="carousel"]'),o=0,a=t.length;o<a;o++)Be.carouselInterface(t[o],Be.getInstance(t[o]))})),I(Be);var We=Be;(function(o){var a="js-carousel",i=function init(){console.log("".concat(a,": init")),document.querySelectorAll(".".concat(a)).forEach((function(t,o){var i=new We(t,{interval:!!t.dataset.bsInterval&&parseInt(t.dataset.bsInterval)});if(t.ui=i,t.dataset.bsArrows){var c=document.createElement("button");c.classList.add("carousel-control-next"),c.setAttribute("type","button"),c.setAttribute("aria-label","Next Slide"),c.setAttribute("data-bs-target",t.getAttribute("id")),c.setAttribute("data-bs-slide","next"),c.addEventListener("click",(function(t){i.next()})),c.innerHTML='<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',t.appendChild(c);var s=document.createElement("button");s.setAttribute("type","button"),s.setAttribute("aria-label","Previous Slide"),s.classList.add("carousel-control-prev"),s.setAttribute("data-bs-target",t.getAttribute("id")),s.setAttribute("data-bs-slide","prev"),s.addEventListener("click",(function(t){i.prev()})),s.innerHTML='<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',t.appendChild(s)}if(t.dataset.bsIndicators&&function(){var o=document.createElement("div");o.classList.add("carousel-indicators");for(var a=t.querySelectorAll(".carousel-item"),c=0;c<a.length;){var s=document.createElement("button");s.setAttribute("type","button"),s.setAttribute("aria-label","Slide to #".concat(c+1)),0==c&&s.classList.add("active"),s.setAttribute("data-bs-target",t.getAttribute("id")),s.setAttribute("data-bs-slide-to",c),s.addEventListener("click",(function(t){var a=t.target;i.to(a.getAttribute("data-bs-slide-to")),o.querySelectorAll(".active").forEach((function(t){t.classList.remove("active")})),a.classList.add("active")})),o.appendChild(s),c++}t.appendChild(o),t.addEventListener("slide.bs.carousel",(function(o){t.querySelectorAll(".carousel-indicators .active").forEach((function(t){t.classList.remove("active")})),t.querySelectorAll('.carousel-indicators [data-bs-slide-to="'.concat(o.to,'"]')).forEach((function(t){t.classList.add("active")}))}))}(),t.classList.contains("carousel-multislide")){var l=new ResizeObserver((function(t){var o=t[0],a=o.target,i=o.contentRect,c=i.width,s=(i.height,a.dataset.length),l=c/s;a.dataset.itemWidth=l,a.dataset.numToDisplay=s;var u=a.querySelectorAll(".carousel-item");a.querySelector(".carousel-inner").style.width="".concat(u.length*l,"px"),u.forEach((function(t,o){t.style.width="".concat(l,"px")}))}));l.observe(t),t.addEventListener("slide.bs.carousel",(function(o){var a=t.querySelector(".carousel-inner");switch(o.direction){case"left":case"right":a.style.left="".concat(-o.to*t.dataset.itemWidth,"px")}})),t.classList.add("".concat(a,"-multislide-active"))}t.classList.add("".concat(a,"-active"))}))};o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)})(window),function(o){var a,i="main.online",c=document,s=c.body,l=c.querySelector('meta[name="ping"]'),u=!1,f=function UPDATE_ONLINE_STATUS(c){u||(u=!0,c?(s.classList.contains("is-offline")?(console.log("".concat(i,": back Online")),o.dispatchEvent(new Event(t.BACKONLINE))):(console.log("".concat(i,": Online")),o.dispatchEvent(new Event(t.ONLINE))),s.classList.add("is-online"),s.classList.remove("is-offline"),l&&!a&&(console.log("".concat(i,": SESSION_PING is active")),a=setInterval(m,3e5))):(console.log("".concat(i,": Offline")),s.classList.add("is-offline"),s.classList.remove("is-online"),clearInterval(a),a=null,o.dispatchEvent(new Event(t.OFFLINE))),u=!1)},p=!1,m=function SESSION_PING(){if(!p&&!s.classList.contains("is-offline")){var t=l.getAttribute("content");console.log("".concat(i,": session ping")),p=!0,d.post(t,{}).then((function(t){p=!1,f(!0)})).catch((function(t){console.error(t),console.warn("".concat(i,": SESSION_PING failed")),p=!1,f(!1)}))}},g=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?f(!0):f(!1))};o.addEventListener("".concat(t.OFFLINE),(function(){f(!1)})),o.addEventListener("".concat(t.ONLINE),(function(){f(!0)})),o.addEventListener("".concat(t.LOADED),g),o.addEventListener("".concat(t.AJAX),g)}(window);function image_defineProperties(t,o){for(var a=0;a<o.length;a++){var i=o[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Ke="ajax.models.image",Xe=document.querySelector('meta[name="api_static_domain"]'),Ye=Xe?Xe.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(Ke," [static url]: ").concat(Ye));var Ve=function(){function ImageObject(){!function image_classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,ImageObject)}return function image_createClass(t,o,a){return o&&image_defineProperties(t.prototype,o),a&&image_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(ImageObject,[{key:"load",value:function load(t,o){var a=t.startsWith("http")?t:Ye+t;return o&&(o.classList.add("loading"),o.classList.remove("loading__network-error")),new Promise((function(t,i){d.get(a,{responseType:"blob"}).then((function(a){var i=new FileReader;i.readAsDataURL(a.data),i.onload=function(){var a=i.result;o&&(o.classList.remove("loading"),o.classList.add("loading__success")),t(a)}})).catch((function(t){if(console.warn(t),t.response){switch(t.response.status){case 404:msg="Not Found.";break;case 500:msg="Server issue, please try again latter.";break;default:msg="Something went wrong."}console.error("".concat(Ke," [").concat(a,"]: ").concat(msg))}else t.request?(msg="No response received",console.error("".concat(Ke," [").concat(a,"]: ").concat(msg))):console.error("".concat(Ke," [").concat(a,"]: ").concat(t.message));o&&(o.classList.remove("loading"),o.classList.add("loading__network-error"),o.classList.add("empty")),i(t)}))}))}}]),ImageObject}();(function(o){var a=document,i=(a.body,function loadLazyImages(){console.log("".concat("main.lazy-images",": Load lazy images")),a.querySelectorAll("[data-lazy-src]").forEach((function(t){t.classList.remove("empty"),(new Ve).load(t.getAttribute("data-lazy-src"),t).then((function(o){t.setAttribute("src",o)})).catch((function(){t.classList.add("empty")}))})),a.querySelectorAll("[data-lazy-bg]").forEach((function(t){t.classList.remove("empty"),(new Ve).load(t.getAttribute("data-lazy-bg"),t).then((function(o){t.style.backgroundImage="url(".concat(o,")")})).catch((function(o){t.classList.add("empty")}))}))});o.addEventListener("".concat(t.LODEDANDREADY),i),o.addEventListener("".concat(t.AJAX),i)})(window),function(o){var a="_layout",i=document;i.body;o.addEventListener("".concat(t.LODEDANDREADY),(function(){!function init_fonts(){console.log("".concat(a,": init_fonts"));var t=i.createElement("link");t.rel="stylesheet",t.type="text/css",t.media="all",t.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",i.getElementsByTagName("head")[0].appendChild(t)}()}))}(window);function importAll(t){return t.keys().map(t)}importAll(__webpack_require__(103)),importAll(__webpack_require__(499));if("serviceWorker"in navigator){var Je=(document.getElementsByTagName("base")[0]||{}).href,Qe=(document.querySelector('meta[name="swversion"]')||{}).content;Je&&navigator.serviceWorker.register("".concat(Je,"sw.js?v=").concat(Qe)).then((function(){console.log("Service Worker Registered")}))}}()}();