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

1 line
35 KiB
JavaScript

!function(){var e={999:function(e,t,n){var r={"./bg.png":139,"./logo.png":502,"./logo.svg":287,"./original.png":621,"./original2.png":747,"./photo1.png":659,"./photo2.jpg":137,"./photo3.svg":617,"app/client/src/img/bg.png":139,"app/client/src/img/logo.png":502,"app/client/src/img/logo.svg":287,"app/client/src/img/original.png":621,"app/client/src/img/original2.png":747,"app/client/src/img/photo1.png":659,"app/client/src/img/photo2.jpg":137,"app/client/src/img/photo3.svg":617,"bg.png":139,"img/bg.png":139,"img/logo.png":502,"img/logo.svg":287,"img/original.png":621,"img/original2.png":747,"img/photo1.png":659,"img/photo2.jpg":137,"img/photo3.svg":617,"logo.png":502,"logo.svg":287,"original.png":621,"original2.png":747,"photo1.png":659,"photo2.jpg":137,"photo3.svg":617};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=999},139:function(e){e.exports="../img/bg.png"},502:function(e){e.exports="../img/logo.png"},287:function(e){e.exports="../img/logo.svg"},621:function(e){e.exports="../img/original.png"},747:function(e){e.exports="../img/original2.png"},659:function(e){e.exports="../img/photo1.png"},137:function(e){e.exports="../img/photo2.jpg"},617:function(e){e.exports="../img/photo3.svg"},429:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=429,e.exports=webpackEmptyContext}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e={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",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"},t={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(t){var n="_main.visibility",r=document,o=r.body;r.addEventListener("visibilitychange",(function(){"hidden"===r.visibilityState?(console.log("".concat(n,": Tab: hidden")),o.classList.add("is-hidden"),o.classList.remove("is-focused"),t.dispatchEvent(new Event(e.TABHIDDEN))):(console.log("".concat(n,": Tab: focused")),o.classList.add("is-focused"),o.classList.remove("is-hidden"),t.dispatchEvent(new Event(e.TABFOCUSED)))}))})(window),function(t){var n,r,o="_main.touch",i=document,a=i.body,c=function SET_TOUCH_SCREEN(i,c){r||c===n||(i?(console.log("".concat(o,": Touch screen enabled")),a.classList.add("is-touch"),a.classList.remove("is-mouse"),t.dispatchEvent(new Event(e.TOUCHENABLE))):(console.log("".concat(o,": Touch screen disabled")),a.classList.add("is-mouse"),a.classList.remove("is-touch"),t.dispatchEvent(new Event(e.TOUCHDISABLED))),n=c,r||(r=setTimeout((function(){clearTimeout(r),r=null}),500)))};c("ontouchstart"in t||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||t.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(n){var r=document,o=r.body,i=function detectCSSScreenSize(){var e,i=r.createElement("div");i.className="env-test",o.appendChild(i);var a=_toConsumableArray(t.ENVS).reverse(),c=a.shift();(e=o.classList).remove.apply(e,_toConsumableArray(a));for(var s=0;s<a.length;++s){var l=a[s];if(i.classList.add("d-".concat(l,"-none")),"none"===n.getComputedStyle(i).display){c=l,o.classList.add("".concat(c));break}}var u=!0;return n.innerWidth>n.innerHeight?(o.classList.add("landscape"),o.classList.remove("portrait")):(u=!1,o.classList.add("portrait"),o.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(c," | landscape ").concat(u)),o.removeChild(i),c};n.addEventListener("".concat(e.LOADED),i),n.addEventListener("".concat(e.RESIZE),i)}(window);function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var n="_main.loading-spinner",r=document,o=(r.body,r.getElementById("PageLoading")),i=function(){function SpinnerUI(){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(n,": show")),o.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(n,": hide")),o.classList.add("d-none")}}]),SpinnerUI}();function _main_defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(n){var r=document,o=r.body;console.info("%cUI Kit ".concat("ss-webpack-boilerplate"," ").concat("2.0.2"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-react"," ").concat("3.1.4"),"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(e).forEach((function(t){console.info("".concat(t,": ").concat(e[t]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(t).forEach((function(e){console.info("".concat(e,": ").concat(t[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var a=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){n.history.replaceState({landing:n.location.href},r.title,n.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();n.addEventListener("".concat(e.LOADED),(function(){a.init(),o.classList.add("loaded"),i.hide(),console.groupEnd("init"),console.timeEnd("init"),n.dispatchEvent(new Event(e.LODEDANDREADY))})),n.addEventListener("".concat(e.AJAX),(function(){a.loaded()})),n.MainUI=a}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selector_engine_arrayLikeToArray(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a={find:function find(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c="transitionend",s=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},l=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),i=Number.parseFloat(r);return o||i?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},u=function triggerTransitionEnd(e){e.dispatchEvent(new Event(c))},f=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},d=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},p=[],v=function isRTL(){return"rtl"===document.documentElement.dir},m=function execute(e){"function"===typeof e&&e()},g=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=l(t)+r,i=!1,a=function handler(n){n.target===t&&(i=!0,t.removeEventListener(c,handler),m(e))};t.addEventListener(c,a),setTimeout((function(){i||u(t)}),o)}else m(e)};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){c=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=/[^.]*(?=\..*)\.|.*/,y=/\..*/,_=/::\d+$/,b={},E=1,A={mouseenter:"mouseover",mouseleave:"mouseout"},w=/^(mouseenter|mouseleave)/i,O=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(e,t){return t&&"".concat(t,"::").concat(E++)||e.uidEvent||E++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,b[t]=b[t]||{},b[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,i=r.length;o<i;o++){var a=e[r[o]];if(a.originalHandler===t&&a.delegationSelector===n)return a}return null}function normalizeParams(e,t,n){var r="string"===typeof t,o=r?n:t,i=getTypeEvent(e);return O.has(i)||(i=e),[r,o,i]}function addHandler(e,t,n,r,o){if("string"===typeof t&&e){if(n||(n=r,r=null),w.test(t)){var i=function wrapFn(e){return function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}};r?r=i(r):n=i(n)}var a=_slicedToArray(normalizeParams(t,n,r),3),c=a[0],s=a[1],l=a[2],u=getEvent(e),f=u[l]||(u[l]={}),d=findHandler(f,s,c?n:null);if(d)d.oneOff=d.oneOff&&o;else{var p=getUidEvent(s,t.replace(h,"")),v=c?function bootstrapDelegationHandler(e,t,n){return function handler(r){for(var o=e.querySelectorAll(t),i=r.target;i&&i!==this;i=i.parentNode)for(var a=o.length;a--;)if(o[a]===i)return r.delegateTarget=i,handler.oneOff&&S.off(e,r.type,t,n),n.apply(i,[r]);return null}}(e,n,r):function bootstrapHandler(e,t){return function handler(n){return n.delegateTarget=e,handler.oneOff&&S.off(e,n.type,t),t.apply(e,[n])}}(e,n);v.delegationSelector=c?n:null,v.originalHandler=s,v.oneOff=o,v.uidEvent=p,f[p]=v,e.addEventListener(l,v,c)}}}function removeHandler(e,t,n,r,o){var i=findHandler(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function getTypeEvent(e){return e=e.replace(y,""),A[e]||e}var S={on:function on(e,t,n,r){addHandler(e,t,n,r,!1)},one:function one(e,t,n,r){addHandler(e,t,n,r,!0)},off:function off(e,t,n,r){if("string"===typeof t&&e){var o=_slicedToArray(normalizeParams(t,n,r),3),i=o[0],a=o[1],c=o[2],s=c!==t,l=getEvent(e),u=t.startsWith(".");if("undefined"===typeof a){u&&Object.keys(l).forEach((function(n){!function removeNamespacedHandlers(e,t,n,r){var o=t[n]||{};Object.keys(o).forEach((function(i){if(i.includes(r)){var a=o[i];removeHandler(e,t,n,a.originalHandler,a.delegationSelector)}}))}(e,l,n,t.slice(1))}));var f=l[c]||{};Object.keys(f).forEach((function(n){var r=n.replace(_,"");if(!s||t.includes(r)){var o=f[n];removeHandler(e,l,c,o.originalHandler,o.delegationSelector)}}))}else{if(!l||!l[c])return;removeHandler(e,l,c,a,i?n:null)}}},trigger:function trigger(e,t,n){if("string"!==typeof t||!e)return null;var r,$=d(),o=getTypeEvent(t),i=t!==o,a=O.has(o),c=!0,s=!0,l=!1,u=null;return i&&$&&(r=$.Event(t,n),$(e).trigger(r),c=!r.isPropagationStopped(),s=!r.isImmediatePropagationStopped(),l=r.isDefaultPrevented()),a?(u=document.createEvent("HTMLEvents")).initEvent(o,c,!0):u=new CustomEvent(t,{bubbles:c,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((function(e){Object.defineProperty(u,e,{get:function get(){return n[e]}})})),l&&u.preventDefault(),s&&e.dispatchEvent(u),u.defaultPrevented&&"undefined"!==typeof r&&r.preventDefault(),u}},T=S;function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}var k={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(normalizeDataKey(t)))},getDataAttributes:function getDataAttributes(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return normalizeData(e.getAttribute("data-bs-".concat(normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},L=new Map,I=function set(e,t,n){L.has(e)||L.set(e,new Map);var r=L.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},C=function get(e,t){return L.has(e)&&L.get(e).get(t)||null},D=function remove(e,t){if(L.has(e)){var n=L.get(e);n.delete(t),0===n.size&&L.delete(e)}};function base_component_typeof(e){return(base_component_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function base_component_defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var x,P=function(){function BaseComponent(e){!function base_component_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,BaseComponent),(e=function getElement(e){return f(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?a.findOne(e):null}(e))&&(this._element=e,I(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(e,t,n){return t&&base_component_defineProperties(e.prototype,t),n&&base_component_defineProperties(e,n),e}(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;D(this._element,this.constructor.DATA_KEY),T.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function _queueCallback(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return C(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{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}();function carousel_typeof(e){return(carousel_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function carousel_defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=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(e){return!1}}();return function _createSuperInternal(){var n,r=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!==carousel_typeof(t)&&"function"!==typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j="carousel",N=".".concat("bs.carousel"),R=".data-api",M={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},H={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},U="next",B="prev",F="left",z="right",q=(_defineProperty(x={},"ArrowLeft",z),_defineProperty(x,"ArrowRight",F),x),K="slide".concat(N),X="slid".concat(N),W="keydown".concat(N),Y="mouseenter".concat(N),V="mouseleave".concat(N),Q="touchstart".concat(N),G="touchmove".concat(N),J="touchend".concat(N),Z="pointerdown".concat(N),ee="pointerup".concat(N),te="dragstart".concat(N),ne="load".concat(N).concat(R),re="click".concat(N).concat(R),oe="active",ie=".active.carousel-item",ae="touch",ce=function(e){!function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Carousel,e);var t=_createSuper(Carousel);function Carousel(e,n){var r;return function carousel_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=a.findOne(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(U)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!f(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(B)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),a.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(u(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(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(e){var t=this;this._activeElement=a.findOne(ie,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)T.one(this._element,X,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?U:B;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},M),k.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=t[r],a=i&&f(i)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(i);if(!new RegExp(o).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(o,'".'))}))}(j,e,H),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?z:F)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&T.on(this._element,W,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(T.on(this._element,Y,(function(t){return e.pause(t)})),T.on(this._element,V,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ae?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ae||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};a.find(".carousel-item img",this._element).forEach((function(e){T.on(e,te,(function(e){return e.preventDefault()}))})),this._pointerEvent?(T.on(this._element,Z,(function(e){return t(e)})),T.on(this._element,ee,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(T.on(this._element,Q,(function(e){return t(e)})),T.on(this._element,G,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),T.on(this._element,J,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=q[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?a.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===U;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var i=e.length;return o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(a.findOne(ie,this._element));return T.trigger(this._element,K,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=a.findOne(".active",this._indicatorsElement);t.classList.remove(oe),t.removeAttribute("aria-current");for(var n=a.find("[data-bs-target]",this._indicatorsElement),r=0;r<n.length;r++)if(Number.parseInt(n[r].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[r].classList.add(oe),n[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var e=this._activeElement||a.findOne(ie,this._element);if(e){var t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function _slide(e,t){var n=this,r=this._directionToOrder(e),o=a.findOne(ie,this._element),i=this._getItemIndex(o),c=t||this._getItemByOrder(r,o),s=this._getItemIndex(c),l=Boolean(this._interval),u=r===U,f=u?"carousel-item-start":"carousel-item-end",d=u?"carousel-item-next":"carousel-item-prev",p=this._orderToDirection(r);if(c&&c.classList.contains(oe))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(c,p).defaultPrevented&&o&&c){this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var v=function triggerSlidEvent(){T.trigger(n._element,X,{relatedTarget:c,direction:p,from:i,to:s})};if(this._element.classList.contains("slide")){c.classList.add(d),function reflow(e){e.offsetHeight}(c),o.classList.add(f),c.classList.add(f);this._queueCallback((function completeCallBack(){c.classList.remove(f,d),c.classList.add(oe),o.classList.remove(oe,d,f),n._isSliding=!1,setTimeout(v,0)}),o,!0)}else o.classList.remove(oe),c.classList.add(oe),this._isSliding=!1,v();l&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(e){return[z,F].includes(e)?v()?e===F?B:U:e===F?U:B:e}},{key:"_orderToDirection",value:function _orderToDirection(e){return[U,B].includes(e)?v()?e===B?F:z:e===B?z:F:e}}],[{key:"Default",get:function get(){return M}},{key:"NAME",get:function get(){return j}},{key:"carouselInterface",value:function carouselInterface(e,t){var n=Carousel.getOrCreateInstance(e,t),r=n._config;"object"===carousel_typeof(t)&&(r=_objectSpread(_objectSpread({},r),t));var o="string"===typeof t?t:r.slide;if("number"===typeof t)n.to(t);else if("string"===typeof o){if("undefined"===typeof n[o])throw new TypeError('No method named "'.concat(o,'"'));n[o]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){Carousel.carouselInterface(this,e)}))}},{key:"dataApiClickHandler",value:function dataApiClickHandler(e){var t=function getElementFromSelector(e){var t=s(e);return t?document.querySelector(t):null}(this);if(t&&t.classList.contains("carousel")){var n=_objectSpread(_objectSpread({},k.getDataAttributes(t)),k.getDataAttributes(this)),r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),Carousel.carouselInterface(t,n),r&&Carousel.getInstance(t).to(r),e.preventDefault()}}}]),Carousel}(P);T.on(document,re,"[data-bs-slide], [data-bs-slide-to]",ce.dataApiClickHandler),T.on(window,ne,(function(){for(var e=a.find('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)ce.carouselInterface(e[t],ce.getInstance(e[t]))})),function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(function(){p.forEach((function(e){return e()}))})),p.push(e)):e()}((function(){var $=d();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))}(ce);var se=ce;(function(t){var n="js-carousel",r=function init(){console.log("".concat(n,": init")),document.querySelectorAll(".".concat(n)).forEach((function(e,t){var r=new se(e);if(e.dataset.bsArrows){var o=document.createElement("button");o.classList.add("carousel-control-next"),o.setAttribute("type","button"),o.setAttribute("data-bs-target",e.getAttribute("id")),o.setAttribute("data-bs-slide","next"),o.addEventListener("click",(function(e){r.next()})),o.innerHTML='<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',e.appendChild(o);var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("carousel-control-prev"),i.setAttribute("data-bs-target",e.getAttribute("id")),i.setAttribute("data-bs-slide","prev"),i.addEventListener("click",(function(e){r.prev()})),i.innerHTML='<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',e.appendChild(i)}e.dataset.bsIndicators&&function(){var t=document.createElement("div");t.classList.add("carousel-indicators");for(var n=e.querySelectorAll(".carousel-item"),o=0;o<n.length;){var i=document.createElement("button");i.setAttribute("type","button"),0==o&&i.classList.add("active"),i.setAttribute("data-bs-target",e.getAttribute("id")),i.setAttribute("data-bs-slide-to",o),i.addEventListener("click",(function(e){var n=e.target;r.to(n.getAttribute("data-bs-slide-to")),t.querySelectorAll(".active").forEach((function(e){e.classList.remove("active")})),n.classList.add("active")})),t.appendChild(i),o++}e.appendChild(t),e.addEventListener("slide.bs.carousel",(function(t){e.querySelectorAll(".carousel-indicators .active").forEach((function(e){e.classList.remove("active")})),e.querySelectorAll('.carousel-indicators [data-bs-slide-to="'.concat(t.to,'"]')).forEach((function(e){e.classList.add("active")}))}))}(),e.classList.add("".concat(n,"-active"))}))};t.addEventListener("".concat(e.LODEDANDREADY),r),t.addEventListener("".concat(e.AJAX),r)})(window),function(t){var n="_layout",r=document;r.body;t.addEventListener("".concat(e.LOADED),(function(){!function init_fonts(){console.log("".concat(n,": init_fonts"));var e=r.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",r.getElementsByTagName("head")[0].appendChild(e)}()}))}(window);if("serviceWorker"in navigator){var le=(document.getElementsByTagName("base")[0]||{}).href,ue=(document.querySelector('meta[name="swversion"]')||{}).content;le&&navigator.serviceWorker.register("".concat(le,"sw.js?v=").concat(ue)).then((function(){console.log("Service Worker Registered")}))}function importAll(e){return e.keys().map(e)}importAll(__webpack_require__(999)),importAll(__webpack_require__(429))}()}();