mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
1 line
135 KiB
JavaScript
1 line
135 KiB
JavaScript
!function(){var e={6779:function(e,t,n){var r={"./bg.png":711,"./logo.png":5557,"./logo.svg":5920,"./original.png":127,"./original2.png":3644,"./photo1.png":3732,"./photo2.jpg":6680,"./photo3.svg":8939,"app/client/src/img/bg.png":711,"app/client/src/img/logo.png":5557,"app/client/src/img/logo.svg":5920,"app/client/src/img/original.png":127,"app/client/src/img/original2.png":3644,"app/client/src/img/photo1.png":3732,"app/client/src/img/photo2.jpg":6680,"app/client/src/img/photo3.svg":8939,"bg.png":711,"img/bg.png":711,"img/logo.png":5557,"img/logo.svg":5920,"img/original.png":127,"img/original2.png":3644,"img/photo1.png":3732,"img/photo2.jpg":6680,"img/photo3.svg":8939,"logo.png":5557,"logo.svg":5920,"original.png":127,"original2.png":3644,"photo1.png":3732,"photo2.jpg":6680,"photo3.svg":8939};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=6779},6017:function(e,t,n){e.exports=n(4640)},675:function(e,t,n){"use strict";var r=n(7426),o=n(3494),i=n(1066),a=n(6795),s=n(8209),c=n(8096),l=n(5766),u=n(3336),f=n(4513),p=n(6582);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var h,g=e.data,v=e.headers,b=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(g)&&delete v["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+k)}var E=s(e.baseURL,e.url);function onloadend(){if(w){var r="getAllResponseHeaders"in w?c(w.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};o((function _resolve(e){t(e),done()}),(function _reject(e){n(e),done()}),i),w=null}}if(w.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=onloadend:w.onreadystatechange=function handleLoad(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(onloadend)},w.onabort=function handleAbort(){w&&(n(u("Request aborted",e,"ECONNABORTED",w)),w=null)},w.onerror=function handleError(){n(u("Network Error",e,null,w)),w=null},w.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||l(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;A&&(v[e.xsrfHeaderName]=A)}"setRequestHeader"in w&&r.forEach(v,(function setRequestHeader(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:w.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),b&&"json"!==b&&(w.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function onCanceled(e){w&&(n(!e||e&&e.type?new p("canceled"):e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),g||(g=null),w.send(g)}))}},4640:function(e,t,n){"use strict";var r=n(7426),o=n(6564),i=n(8384),a=n(2220);var s=function createInstance(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n.create=function create(t){return createInstance(a(e,t))},n}(n(4513));s.Axios=i,s.Cancel=n(6582),s.CancelToken=n(5061),s.isCancel=n(6769),s.VERSION=n(9557).version,s.all=function all(e){return Promise.all(e)},s.spread=n(2314),s.isAxiosError=n(2193),e.exports=s,e.exports.default=s},6582:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},5061:function(e,t,n){"use strict";var r=n(6582);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function reject(){n.unsubscribe(t)},r},e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},CancelToken.prototype.unsubscribe=function unsubscribe(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},6769:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},8384:function(e,t,n){"use strict";var r=n(7426),o=n(6795),i=n(3410),a=n(4575),s=n(2220),c=n(4155),l=c.validators;function Axios(e){this.defaults=e,this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function unshiftRequestInterceptors(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function pushResponseInterceptors(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var f=e;n.length;){var p=n.shift(),h=n.shift();try{f=p(f)}catch(g){h(g);break}}try{o=a(f)}catch(g){return Promise.reject(g)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},3410:function(e,t,n){"use strict";var r=n(7426);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},8209:function(e,t,n){"use strict";var r=n(2864),o=n(6805);e.exports=function buildFullPath(e,t){return e&&!r(t)?o(e,t):t}},3336:function(e,t,n){"use strict";var r=n(4390);e.exports=function createError(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},4575:function(e,t,n){"use strict";var r=n(7426),o=n(1099),i=n(6769),a=n(4513),s=n(6582);function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return i(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4390:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},2220:function(e,t,n){"use strict";var r=n(7426);e.exports=function mergeConfig(e,t){t=t||{};var n={};function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:getMergedValue(void 0,e[n]):getMergedValue(e[n],t[n])}function valueFromConfig2(e){if(!r.isUndefined(t[e]))return getMergedValue(void 0,t[e])}function defaultToConfig2(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:getMergedValue(void 0,e[n]):getMergedValue(void 0,t[n])}function mergeDirectKeys(n){return n in t?getMergedValue(e[n],t[n]):n in e?getMergedValue(void 0,e[n]):void 0}var o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(e){var t=o[e]||mergeDeepProperties,i=t(e);r.isUndefined(i)&&t!==mergeDirectKeys||(n[e]=i)})),n}},3494:function(e,t,n){"use strict";var r=n(3336);e.exports=function settle(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},1099:function(e,t,n){"use strict";var r=n(7426),o=n(4513);e.exports=function transformData(e,t,n){var i=this||o;return r.forEach(n,(function transform(n){e=n.call(i,e,t)})),e}},4513:function(e,t,n){"use strict";var r=n(7426),o=n(1196),i=n(4390),a={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(675)),e}(),transformRequest:[function transformRequest(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(setContentTypeIfUnset(t,"application/json"),function stringifySafely(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){var t=this.transitional||s.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(c){if(a){if("SyntaxError"===c.name)throw i(c,this,"E_JSON_PARSE");throw c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){s.headers[e]=r.merge(a)})),e.exports=s},9557:function(e){e.exports={version:"0.24.0"}},6564:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},6795:function(e,t,n){"use strict";var r=n(7426);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function serialize(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function parseValue(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(encode(t)+"="+encode(e))})))})),o=i.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},6805:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1066:function(e,t,n){"use strict";var r=n(7426);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},2864:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},2193:function(e){"use strict";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},_typeof(e)}e.exports=function isAxiosError(e){return"object"===_typeof(e)&&!0===e.isAxiosError}},5766:function(e,t,n){"use strict";var r=n(7426);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function resolveURL(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var n=r.isString(t)?resolveURL(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function isURLSameOrigin(){return!0}},1196:function(e,t,n){"use strict";var r=n(7426);e.exports=function normalizeHeaderName(e,t){r.forEach(e,(function processHeader(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8096:function(e,t,n){"use strict";var r=n(7426),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function parser(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},2314:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},4155:function(e,t,n){"use strict";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},_typeof(e)}var r=n(9557).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(n){return _typeof(n)===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(formatMessage(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(formatMessage(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function assertOptions(e,t,n){if("object"!==_typeof(e))throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},7426:function(e,t,n){"use strict";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},_typeof(e)}var r=n(6564),o=Object.prototype.toString;function isArray(e){return"[object Array]"===o.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===o.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:isArray,isArrayBuffer:function isArrayBuffer(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function isFormData(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function isArrayBufferView(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function isString(e){return"string"===typeof e},isNumber:function isNumber(e){return"number"===typeof e},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function isDate(e){return"[object Date]"===o.call(e)},isFile:function isFile(e){return"[object File]"===o.call(e)},isBlob:function isBlob(e){return"[object Blob]"===o.call(e)},isFunction:isFunction,isStream:function isStream(e){return isObject(e)&&isFunction(e.pipe)},isURLSearchParams:function isURLSearchParams(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:forEach,merge:function merge(){var e={};function assignValue(t,n){isPlainObject(e[n])&&isPlainObject(t)?e[n]=merge(e[n],t):isPlainObject(t)?e[n]=merge({},t):isArray(t)?e[n]=t.slice():e[n]=t}for(var t=0,n=arguments.length;t<n;t++)forEach(arguments[t],assignValue);return e},extend:function extend(e,t,n){return forEach(t,(function assignValue(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function stripBOM(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},8321:function(e){"use strict";e.exports=function makeYoutubeEmbed(e){if("string"===typeof e){var t=function getId(e){var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(t&&11==t[2].length)return t[2]}(e);return t?"//www.youtube.com/embed/"+t:void 0}}},711:function(e){e.exports="../img/bg.png"},5557:function(e){e.exports="../img/logo.png"},5920:function(e){e.exports="../img/logo.svg"},127:function(e){e.exports="../img/original.png"},3644:function(e){e.exports="../img/original2.png"},3732:function(e){e.exports="../img/photo1.png"},6680:function(e){e.exports="../img/photo2.jpg"},8939:function(e){e.exports="../img/photo3.svg"},3429: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=3429,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=(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,s=function SET_TOUCH_SCREEN(i,s){r||s===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=s,r||(r=setTimeout((function(){clearTimeout(r),r=null}),500)))};s("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),s(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")}))}(window),{ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]});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(),s=a.shift();(e=o.classList).remove.apply(e,_toConsumableArray(a));for(var c=0;c<a.length;++c){var l=a[c];if(i.classList.add("d-".concat(l,"-none")),"none"===n.getComputedStyle(i).display){s=l,o.classList.add("".concat(s));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(s," | landscape ").concat(u)),o.removeChild(i),s};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("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.3.9"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-js"," ").concat("4.1.2"),"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);var a="ajax-load",s="load";function window_toConsumableArray(e){return function window_arrayWithoutHoles(e){if(Array.isArray(e))return window_arrayLikeToArray(e)}(e)||function window_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function window_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return window_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 window_arrayLikeToArray(e,t)}(e)||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(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 window_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function window_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 _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 c=window,l=__webpack_require__(6017),u=function(){function MetaWindow(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shown:!1},n=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}),_defineProperty(this,"show",(function(){var t=e;console.log("".concat(t.name,": show")),t.setState({shown:!0}),c.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var t=e;console.log("".concat(t.name,": hide")),t.setState({shown:!1}),c.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var t=e,n=t.state.current.getAttribute("data-gallery"),r=t._currIndex();r<t.state.collections[n].length-1?r++:r=0,t.state.collections[n][r].click(),console.log("".concat(t.name,": next")),c.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){var t=e,n=t.state.current.getAttribute("data-gallery"),r=t._currIndex();r>0?r--:r=t.state.collections[n].length-1,t.state.collections[n][r].click(),console.log("".concat(t.name,": prev")),c.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){e.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(t){var n=e,r=n.axios;n.reset(),n.setState({loading:!0}),n.show(),r.get(t,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.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":n.setContent('<img src="data:'.concat(e.headers["content-type"],";base64,").concat(n._imageEncode(e.data),'" />'),"meta-".concat(n.name,"--image"));break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),["meta-".concat(n.name,"--text"),"meta-".concat(n.name,"--html"),"meta-".concat(n.name,"--json")]);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":n.setContent(n._abToString(e.data),["meta-".concat(n.name,"--text"),"meta-".concat(n.name,"--html"),"meta-".concat(n.name,"--pajax")]);break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}c.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),c.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var t=e,n=t.state.current,r=n.getAttribute("data-gallery");return t.state.collections[r].indexOf(n)})),_defineProperty(this,"embed",(function(t){var n=e;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:t,loading:!1,type:["meta-".concat(n.name,"--embed"),"meta-".concat(n.name,"--video")]}),n.show()})),_defineProperty(this,"setCaption",(function(t){var n=e;console.log("".concat(n.name,": setCaption")),n.state.caption=t})),_defineProperty(this,"getCaption",(function(){return e.state.caption})),_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(this,"setContent",(function(t,n){var r=e;console.log("".concat(r.name,": setContent"));var o=n||["meta-".concat(r.name,"--html"),"meta-".concat(r.name,"--text")];Array.isArray(o)||(o=n.split(" ")),r.setState({content:t,type:o})})),_defineProperty(this,"getHtml",(function(){var t=e;if(t.state.embed){var n=__webpack_require__(8321)(t.state.embed);t.state.content='<iframe width="600" height="380" src="'.concat(n,'" frameborder="0"></iframe>')}return t.state.content}));var r=this;switch(r.name=r.constructor.name,console.log("".concat(r.name,": init")),r.axios=l,r.setState(t),n){case"show":case"hide":r.hide()}c.dispatchEvent(new Event("{ui.name}.init"))}return function window_createClass(e,t,n){return t&&window_defineProperties(e.prototype,t),n&&window_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(){var e=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),o=n.getAttribute("data-embed");e.state.current=n,o?e.embed(r):e.load(r);var i=n.getAttribute("data-title");i&&e.setCaption(i)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e,t=this,n=t.name,r=t.state.current;t.state.target.innerHTML="";var o=document.createElement("div");o.classList.add("meta-".concat(n)),(e=o.classList).add.apply(e,window_toConsumableArray(t.state.type)),t.state.target.append(o);var i=document.createElement("div");i.classList.add("meta-".concat(n,"-overlay")),t.state.shown&&i.classList.add("meta-".concat(n,"-overlay--open")),t.state.loading&&i.classList.add("meta-".concat(n,"-overlay--loading")),t.state.error&&i.classList.add("meta-".concat(n,"-overlay--error")),o.append(i);var a=document.createElement("div");a.classList.add("meta-content"),i.append(a);var s=document.createElement("button");if(s.classList.add("meta-nav","meta-close","a"),s.innerHTML='<i class="icon fa fas fa-times"></i> <span class="visually-hidden">Close</span>',s.addEventListener("click",(function(e){e.preventDefault(),t.hide()})),a.append(s),r){var c=r.getAttribute("data-gallery");if(c&&t.state.collections[c].length>1){var l=document.createElement("nav");l.classList.add("meta-navs");var u=document.createElement("button");u.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),u.innerHTML='<i class="icon fa fas fa-chevron-left"></i> <span class="visually-hidden">Previous</span>',u.addEventListener("click",(function(e){e.preventDefault(),t.prev()})),l.append(u);var f=document.createElement("button");f.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),f.innerHTML='<i class="icon fa fas fa-chevron-right"></i> <span class="visually-hidden">Next</span>',f.addEventListener("click",(function(e){e.preventDefault(),t.next()})),l.append(f),a.append(l)}}var p=document.createElement("section");if(p.classList.add("meta-wrap","typography"),p.innerHTML=t.getHtml(),a.append(p),t.state.error){var h=document.createElement("div");h.classList.add("meta-error"),h.innerHTML=t.state.error,a.append(h)}else if(t.state.caption){var g=document.createElement("div");g.classList.add("meta-caption"),g.innerHTML=t.getCaption(),a.append(g)}return t}}]),MetaWindow}(),f=u,p=document.getElementById("MetaLightboxApp");p||console.log("MetaWindow: missing container #MetaLightboxApp");var h=new f({target:p}),g=function init(){h.init()};window.addEventListener("".concat(s),g),window.addEventListener("".concat(a),g),window.addEventListener("MetaWindow.initLinks",g),window.MetaWindow=h;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},_typeof(e)}var v="transitionend",b=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},w=function getSelectorFromElement(e){var t=b(e);return t&&document.querySelector(t)?t:null},_=function getElementFromSelector(e){var t=b(e);return t?document.querySelector(t):null},k=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},E=function triggerTransitionEnd(e){e.dispatchEvent(new Event(v))},A=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},O=function getElement(e){return A(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?document.querySelector(e):null},S=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=t[r],a=i&&A(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,'".'))}))},C=function isVisible(e){return!(!A(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},T=function reflow(e){e.offsetHeight},L=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},P=[],x=function isRTL(){return"rtl"===document.documentElement.dir},V=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 $=L();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}}}))},I=function execute(e){"function"===typeof e&&e()},j=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=k(t)+r,i=!1,a=function handler(n){n.target===t&&(i=!0,t.removeEventListener(v,handler),I(e))};t.addEventListener(v,a),setTimeout((function(){i||E(t)}),o)}else I(e)},N=new Map,R=function set(e,t,n){N.has(e)||N.set(e,new Map);var r=N.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],"."))},B=function get(e,t){return N.has(e)&&N.get(e).get(t)||null},F=function remove(e,t){if(N.has(e)){var n=N.get(e);n.delete(t),0===n.size&&N.delete(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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)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 Y=/[^.]*(?=\..*)\.|.*/,U=/\..*/,H=/::\d+$/,W={},q=1,z={mouseenter:"mouseover",mouseleave:"mouseout"},K=/^(mouseenter|mouseleave)/i,X=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(q++)||e.uidEvent||q++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,W[t]=W[t]||{},W[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 X.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),K.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),s=a[0],c=a[1],l=a[2],u=getEvent(e),f=u[l]||(u[l]={}),p=findHandler(f,c,s?n:null);if(p)p.oneOff=p.oneOff&&o;else{var h=getUidEvent(c,t.replace(Y,"")),g=s?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&&J.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&&J.off(e,n.type,t),t.apply(e,[n])}}(e,n);g.delegationSelector=s?n:null,g.originalHandler=c,g.oneOff=o,g.uidEvent=h,f[h]=g,e.addEventListener(l,g,s)}}}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(U,""),z[e]||e}var J={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],s=o[2],c=s!==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[s]||{};Object.keys(f).forEach((function(n){var r=n.replace(H,"");if(!c||t.includes(r)){var o=f[n];removeHandler(e,l,s,o.originalHandler,o.delegationSelector)}}))}else{if(!l||!l[s])return;removeHandler(e,l,s,a,i?n:null)}}},trigger:function trigger(e,t,n){if("string"!==typeof t||!e)return null;var r,$=L(),o=getTypeEvent(t),i=t!==o,a=X.has(o),s=!0,c=!0,l=!1,u=null;return i&&$&&(r=$.Event(t,n),$(e).trigger(r),s=!r.isPropagationStopped(),c=!r.isImmediatePropagationStopped(),l=r.isDefaultPrevented()),a?(u=document.createEvent("HTMLEvents")).initEvent(o,s,!0):u=new CustomEvent(t,{bubbles:s,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((function(e){Object.defineProperty(u,e,{get:function get(){return n[e]}})})),l&&u.preventDefault(),c&&e.dispatchEvent(u),u.defaultPrevented&&"undefined"!==typeof r&&r.preventDefault(),u}},Z=J;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 G={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+window.pageYOffset,left:t.left+window.pageXOffset}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}};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 Q={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[]},focusableChildren:function focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(", ");return this.find(t,e).filter((function(e){return!function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))}(e)&&C(e)}))}},ee=Q;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},base_component_typeof(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 te=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=O(e))&&(this._element=e,R(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;F(this._element,this.constructor.DATA_KEY),Z.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];j(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return B(O(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.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}(),ne=te;function collapse_typeof(e){return collapse_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},collapse_typeof(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){collapse_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 collapse_defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function collapse_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},_setPrototypeOf(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){if(t&&("object"===collapse_typeof(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}var re="collapse",oe="bs.collapse",ie=".".concat(oe),ae={toggle:!0,parent:null},se={toggle:"boolean",parent:"(null|element)"},ce="show".concat(ie),le="shown".concat(ie),ue="hide".concat(ie),de="hidden".concat(ie),fe="click".concat(ie).concat(".data-api"),pe="show",he="collapse",ye="collapsing",me="collapsed",ge=":scope .".concat(he," .").concat(he),ve='[data-bs-toggle="collapse"]',be=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)}(Collapse,e);var t=_createSuper(Collapse);function Collapse(e,n){var r;!function collapse_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Collapse),(r=t.call(this,e))._isTransitioning=!1,r._config=r._getConfig(n),r._triggerArray=[];for(var o=ee.find(ve),i=0,a=o.length;i<a;i++){var s=o[i],c=w(s),l=ee.find(c).filter((function(e){return e===r._element}));null!==c&&l.length&&(r._selector=c,r._triggerArray.push(s))}return r._initializeChildren(),r._config.parent||r._addAriaAndCollapsedClass(r._triggerArray,r._isShown()),r._config.toggle&&r.toggle(),r}return function collapse_createClass(e,t,n){return t&&collapse_defineProperties(e.prototype,t),n&&collapse_defineProperties(e,n),e}(Collapse,[{key:"toggle",value:function toggle(){this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){var e=this;if(!this._isTransitioning&&!this._isShown()){var t,n=[];if(this._config.parent){var r=ee.find(ge,this._config.parent);n=ee.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((function(e){return!r.includes(e)}))}var o=ee.findOne(this._selector);if(n.length){var i=n.find((function(e){return o!==e}));if((t=i?Collapse.getInstance(i):null)&&t._isTransitioning)return}if(!Z.trigger(this._element,ce).defaultPrevented){n.forEach((function(e){o!==e&&Collapse.getOrCreateInstance(e,{toggle:!1}).hide(),t||R(e,oe,null)}));var a=this._getDimension();this._element.classList.remove(he),this._element.classList.add(ye),this._element.style[a]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var s=a[0].toUpperCase()+a.slice(1),c="scroll".concat(s);this._queueCallback((function complete(){e._isTransitioning=!1,e._element.classList.remove(ye),e._element.classList.add(he,pe),e._element.style[a]="",Z.trigger(e._element,le)}),this._element,!0),this._element.style[a]="".concat(this._element[c],"px")}}}},{key:"hide",value:function hide(){var e=this;if(!this._isTransitioning&&this._isShown()&&!Z.trigger(this._element,ue).defaultPrevented){var t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),T(this._element),this._element.classList.add(ye),this._element.classList.remove(he,pe);for(var n=this._triggerArray.length,r=0;r<n;r++){var o=this._triggerArray[r],i=_(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((function complete(){e._isTransitioning=!1,e._element.classList.remove(ye),e._element.classList.add(he),Z.trigger(e._element,de)}),this._element,!0)}}},{key:"_isShown",value:function _isShown(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(pe)}},{key:"_getConfig",value:function _getConfig(e){return(e=_objectSpread(_objectSpread(_objectSpread({},ae),G.getDataAttributes(this._element)),e)).toggle=Boolean(e.toggle),e.parent=O(e.parent),S(re,e,se),e}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var e=this;if(this._config.parent){var t=ee.find(ge,this._config.parent);ee.find(ve,this._config.parent).filter((function(e){return!t.includes(e)})).forEach((function(t){var n=_(t);n&&e._addAriaAndCollapsedClass([t],e._isShown(n))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(e,t){e.length&&e.forEach((function(e){t?e.classList.remove(me):e.classList.add(me),e.setAttribute("aria-expanded",t)}))}}],[{key:"Default",get:function get(){return ae}},{key:"NAME",get:function get(){return re}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t={};"string"===typeof e&&/show|hide/.test(e)&&(t.toggle=!1);var n=Collapse.getOrCreateInstance(this,t);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}]),Collapse}(ne);Z.on(document,fe,ve,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=w(this);ee.find(t).forEach((function(e){be.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),V(be);var we;!function(t){var n="js-dropdown",r=function Show(e){e.currentTarget.querySelector(".dropdown-menu").classList.add("show")},o=function Hide(e){e.currentTarget.querySelector(".dropdown-menu").classList.remove("show")},i=function init(){console.log("".concat(n,": init"));document.querySelectorAll('[data-bs-toggle="hover"]').forEach((function(e,t){!function attachHoverEvents(e){e.addEventListener("mouseover",r,!1),e.addEventListener("mouseout",o,!1),e.classList.add("".concat(n,"-active"))}(e.closest(".dropdown"))})),document.querySelectorAll(".".concat(n,',[data-bs-toggle="dropdown"]')).forEach((function(e,t){!function attachClickEvents(e){e.addEventListener("click",(function(e){e.preventDefault(),function Toggle(e){e.querySelector(".dropdown-menu").classList.toggle("show")}(e.currentTarget.closest(".dropdown"))})),e.classList.add("".concat(n,"-active"))}(e)}))};t.addEventListener("".concat(e.LODEDANDREADY),i),t.addEventListener("".concat(e.AJAX),i)}(window);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},carousel_typeof(e)}function carousel_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 carousel_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?carousel_ownKeys(Object(n),!0).forEach((function(t){carousel_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):carousel_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 carousel_setPrototypeOf(e,t){return carousel_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},carousel_setPrototypeOf(e,t)}function carousel_createSuper(e){var t=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(e){return!1}}();return function _createSuperInternal(){var n,r=carousel_getPrototypeOf(e);if(t){var o=carousel_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return carousel_possibleConstructorReturn(this,n)}}function carousel_possibleConstructorReturn(e,t){if(t&&("object"===carousel_typeof(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function carousel_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function carousel_getPrototypeOf(e){return carousel_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},carousel_getPrototypeOf(e)}function carousel_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 _e="carousel",ke=".".concat("bs.carousel"),Ee=".data-api",De={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ae={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Oe="next",Se="prev",Ce="left",Te="right",Le=(carousel_defineProperty(we={},"ArrowLeft",Te),carousel_defineProperty(we,"ArrowRight",Ce),we),Pe="slide".concat(ke),xe="slid".concat(ke),Ve="keydown".concat(ke),Me="mouseenter".concat(ke),Ie="mouseleave".concat(ke),je="touchstart".concat(ke),Ne="touchmove".concat(ke),Re="touchend".concat(ke),Be="pointerdown".concat(ke),Fe="pointerup".concat(ke),Ye="dragstart".concat(ke),Ue="load".concat(ke).concat(Ee),He="click".concat(ke).concat(Ee),We="active",qe=".active.carousel-item",ze=function(e){!function carousel_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&&carousel_setPrototypeOf(e,t)}(Carousel,e);var t=carousel_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=ee.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(Oe)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&C(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(Se)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),ee.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(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=ee.findOne(qe,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Z.one(this._element,xe,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?Oe:Se;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread(carousel_objectSpread({},De),G.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),S(_e,e,Ae),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?Te:Ce)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Z.on(this._element,Ve,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Z.on(this._element,Me,(function(t){return e.pause(t)})),Z.on(this._element,Ie,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function hasPointerPenTouch(t){return e._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType)},n=function start(n){t(n)?e.touchStartX=n.clientX:e._pointerEvent||(e.touchStartX=n.touches[0].clientX)},r=function end(n){t(n)&&(e.touchDeltaX=n.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))};ee.find(".carousel-item img",this._element).forEach((function(e){Z.on(e,Ye,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Z.on(this._element,Be,(function(e){return n(e)})),Z.on(this._element,Fe,(function(e){return r(e)})),this._element.classList.add("pointer-event")):(Z.on(this._element,je,(function(e){return n(e)})),Z.on(this._element,Ne,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Z.on(this._element,Re,(function(e){return r(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=Le[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?ee.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===Oe;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(ee.findOne(qe,this._element));return Z.trigger(this._element,Pe,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=ee.findOne(".active",this._indicatorsElement);t.classList.remove(We),t.removeAttribute("aria-current");for(var n=ee.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(We),n[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var e=this._activeElement||ee.findOne(qe,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=ee.findOne(qe,this._element),i=this._getItemIndex(o),a=t||this._getItemByOrder(r,o),s=this._getItemIndex(a),c=Boolean(this._interval),l=r===Oe,u=l?"carousel-item-start":"carousel-item-end",f=l?"carousel-item-next":"carousel-item-prev",p=this._orderToDirection(r);if(a&&a.classList.contains(We))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(a,p).defaultPrevented&&o&&a){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;var h=function triggerSlidEvent(){Z.trigger(n._element,xe,{relatedTarget:a,direction:p,from:i,to:s})};if(this._element.classList.contains("slide")){a.classList.add(f),T(a),o.classList.add(u),a.classList.add(u);this._queueCallback((function completeCallBack(){a.classList.remove(u,f),a.classList.add(We),o.classList.remove(We,f,u),n._isSliding=!1,setTimeout(h,0)}),o,!0)}else o.classList.remove(We),a.classList.add(We),this._isSliding=!1,h();c&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(e){return[Te,Ce].includes(e)?x()?e===Ce?Se:Oe:e===Ce?Oe:Se:e}},{key:"_orderToDirection",value:function _orderToDirection(e){return[Oe,Se].includes(e)?x()?e===Se?Ce:Te:e===Se?Te:Ce:e}}],[{key:"Default",get:function get(){return De}},{key:"NAME",get:function get(){return _e}},{key:"carouselInterface",value:function carouselInterface(e,t){var n=Carousel.getOrCreateInstance(e,t),r=n._config;"object"===carousel_typeof(t)&&(r=carousel_objectSpread(carousel_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=_(this);if(t&&t.classList.contains("carousel")){var n=carousel_objectSpread(carousel_objectSpread({},G.getDataAttributes(t)),G.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}(ne);Z.on(document,He,"[data-bs-slide], [data-bs-slide-to]",ze.dataApiClickHandler),Z.on(window,Ue,(function(){for(var e=ee.find('[data-bs-ride="carousel"]'),t=0,n=e.length;t<n;t++)ze.carouselInterface(e[t],ze.getInstance(e[t]))})),V(ze);var Ke=ze;!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 Ke(e,{interval:!!e.dataset.bsInterval&&parseInt(e.dataset.bsInterval)});if(e.ui=r,e.dataset.bsArrows){var o=document.createElement("button");o.classList.add("carousel-control-next"),o.setAttribute("type","button"),o.setAttribute("aria-label","Next Slide"),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.setAttribute("aria-label","Previous Slide"),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)}if(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"),i.setAttribute("aria-label","Slide to #".concat(o+1)),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.contains("carousel-multislide")){var a=new ResizeObserver((function(e){var t=e[0],n=t.target,r=t.contentRect,o=r.width,i=(r.height,n.dataset.length),a=o/i;n.dataset.itemWidth=a,n.dataset.numToDisplay=i;var s=n.querySelectorAll(".carousel-item");n.querySelector(".carousel-inner").style.width="".concat(s.length*a,"px"),s.forEach((function(e,t){e.style.width="".concat(a,"px")}))}));a.observe(e),e.addEventListener("slide.bs.carousel",(function(t){var n=e.querySelector(".carousel-inner");switch(t.direction){case"left":case"right":n.style.left="".concat(-t.to*e.dataset.itemWidth,"px")}})),e.classList.add("".concat(n,"-multislide-active"))}e.classList.add("".concat(n,"-active"))}))};t.addEventListener("".concat(e.LODEDANDREADY),r),t.addEventListener("".concat(e.AJAX),r)}(window);function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lastItemOf(e){return e[e.length-1]}function pushUnique(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){e.includes(t)||e.push(t)})),e}function stringToArray(e,t){return e?e.split(t):[]}function isInRange(e,t,n){return(void 0===t||e>=t)&&(void 0===n||e<=n)}function limitToRange(e,t,n){return e<t?t:e>n?n:e}function createTagRepeat(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=Object.keys(n).reduce((function(e,t){var o=n[t];return"function"===typeof o&&(o=o(r)),"".concat(e," ").concat(t,'="').concat(o,'"')}),e);o+="<".concat(i,"></").concat(e,">");var a=r+1;return a<t?createTagRepeat(e,t,n,a,o):o}function optimizeTemplateHTML(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function stripTime(e){return new Date(e).setHours(0,0,0,0)}function today(){return(new Date).setHours(0,0,0,0)}function dateValue(){switch(arguments.length){case 0:return today();case 1:return stripTime(arguments.length<=0?void 0:arguments[0])}var e=new Date(0);return e.setFullYear.apply(e,arguments),e.setHours(0,0,0,0)}function addDays(e,t){var n=new Date(e);return n.setDate(n.getDate()+t)}function addMonths(e,t){var n=new Date(e),r=n.getMonth()+t,o=r%12;o<0&&(o+=12);var i=n.setMonth(r);return n.getMonth()!==o?n.setDate(0):i}function addYears(e,t){var n=new Date(e),r=n.getMonth(),o=n.setFullYear(n.getFullYear()+t);return 1===r&&2===n.getMonth()?n.setDate(0):o}function dayDiff(e,t){return(e-t+7)%7}function dayOfTheWeekOf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=new Date(e).getDay();return addDays(e,dayDiff(t,n)-dayDiff(r,n))}function startOfYearPeriod(e,t){var n=new Date(e).getFullYear();return Math.floor(n/t)*t}var Xe=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,Je=/[\s!-/:-@[-`{-~\u5e74\u6708\u65e5]+/,$e={},Ze={y:function y(e,t){return new Date(e).setFullYear(parseInt(t,10))},m:function m(e,t,n){var r=new Date(e),o=parseInt(t,10)-1;if(isNaN(o)){if(!t)return NaN;var i=t.toLowerCase(),a=function compareNames(e){return e.toLowerCase().startsWith(i)};if((o=n.monthsShort.findIndex(a))<0&&(o=n.months.findIndex(a)),o<0)return NaN}return r.setMonth(o),r.getMonth()!==normalizeMonth(o)?r.setDate(0):r.getTime()},d:function d(e,t){return new Date(e).setDate(parseInt(t,10))}},Ge={d:function d(e){return e.getDate()},dd:function dd(e){return padZero(e.getDate(),2)},D:function D(e,t){return t.daysShort[e.getDay()]},DD:function DD(e,t){return t.days[e.getDay()]},m:function m(e){return e.getMonth()+1},mm:function mm(e){return padZero(e.getMonth()+1,2)},M:function M(e,t){return t.monthsShort[e.getMonth()]},MM:function MM(e,t){return t.months[e.getMonth()]},y:function y(e){return e.getFullYear()},yy:function yy(e){return padZero(e.getFullYear(),2).slice(-2)},yyyy:function yyyy(e){return padZero(e.getFullYear(),4)}};function normalizeMonth(e){return e>-1?e%12:normalizeMonth(e+12)}function padZero(e,t){return e.toString().padStart(t,"0")}function parseFormatString(e){if("string"!==typeof e)throw new Error("Invalid date format.");if(e in $e)return $e[e];var t=e.split(Xe),n=e.match(new RegExp(Xe,"g"));if(0===t.length||!n)throw new Error("Invalid date format.");var r=n.map((function(e){return Ge[e]})),o=Object.keys(Ze).reduce((function(e,t){return n.find((function(e){return"D"!==e[0]&&e[0].toLowerCase()===t}))&&e.push(t),e}),[]);return $e[e]={parser:function parser(e,t){var r=e.split(Je).reduce((function(e,t,r){if(t.length>0&&n[r]){var o=n[r][0];"M"===o?e.m=t:"D"!==o&&(e[o]=t)}return e}),{});return o.reduce((function(e,n){var o=Ze[n](e,r[n],t);return isNaN(o)?e:o}),today())},formatter:function formatter(e,n){return r.reduce((function(r,o,i){return r+"".concat(t[i]).concat(o(e,n))}),"")+lastItemOf(t)}}}function date_format_parseDate(e,t,n){if(e instanceof Date||"number"===typeof e){var r=stripTime(e);return isNaN(r)?void 0:r}if(e){if("today"===e)return today();if(t&&t.toValue){var o=t.toValue(e,t,n);return isNaN(o)?void 0:stripTime(o)}return parseFormatString(t).parser(e,n)}}function date_format_formatDate(e,t,n){if(isNaN(e)||!e&&0!==e)return"";var r="number"===typeof e?new Date(e):e;return t.toDisplay?t.toDisplay(r,t,n):parseFormatString(t).formatter(r,n)}function event_toConsumableArray(e){return function event_arrayWithoutHoles(e){if(Array.isArray(e))return event_arrayLikeToArray(e)}(e)||function event_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function event_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_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_arrayLikeToArray(e,t)}(e)||function event_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 event_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 Qe=new WeakMap,et=EventTarget.prototype,tt=et.addEventListener,nt=et.removeEventListener;function registerListeners(e,t){var n=Qe.get(e);n||(n=[],Qe.set(e,n)),t.forEach((function(e){tt.call.apply(tt,event_toConsumableArray(e)),n.push(e)}))}if(!Event.prototype.composedPath){var rt=function getComposedPath(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(e),e.parentNode?t=e.parentNode:e.host?t=e.host:e.defaultView&&(t=e.defaultView),t?getComposedPath(t,n):n};Event.prototype.composedPath=function(){return rt(this.target)}}function findFromPath(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e[r];return t(o)?o:o!==n&&o.parentElement?findFromPath(e,t,n,r+1):void 0}function findElementInEventPath(e,t){var n="function"===typeof t?t:function(e){return e.matches(t)};return findFromPath(e.composedPath(),n,e.currentTarget)}var ot={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},it={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"\xbb",orientation:"auto",pickLevel:0,prevArrow:"\xab",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},at=document.createRange();function parseHTML(e){return at.createContextualFragment(e)}function hideElement(e){"none"!==e.style.display&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function showElement(e){"none"===e.style.display&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function emptyChildNodes(e){e.firstChild&&(e.removeChild(e.firstChild),emptyChildNodes(e))}var st=it.language,ct=it.format,lt=it.weekStart;function sanitizeDOW(e,t){return e.length<6&&t>=0&&t<7?pushUnique(e,t):e}function calcEndOfWeek(e){return(e+6)%7}function validateDate(e,t,n,r){var o=date_format_parseDate(e,t,n);return void 0!==o?o:r}function validateViewId(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=parseInt(e,10);return r>=0&&r<=n?r:t}function processOptions(e,t){var n,r=Object.assign({},e),o={},i=t.constructor.locales,a=t.config||{},s=a.format,c=a.language,l=a.locale,u=a.maxDate,f=a.maxView,p=a.minDate,h=a.pickLevel,g=a.startView,v=a.weekStart;if(r.language&&(r.language!==c&&(i[r.language]?n=r.language:void 0===i[n=r.language.split("-")[0]]&&(n=!1)),delete r.language,n)){c=o.language=n;var b=l||i[st];l=Object.assign({format:ct,weekStart:lt},i[st]),c!==st&&Object.assign(l,i[c]),o.locale=l,s===b.format&&(s=o.format=l.format),v===b.weekStart&&(v=o.weekStart=l.weekStart,o.weekEnd=calcEndOfWeek(l.weekStart))}if(r.format){var w="function"===typeof r.format.toDisplay,_="function"===typeof r.format.toValue,k=Xe.test(r.format);(w&&_||k)&&(s=o.format=r.format),delete r.format}var E=p,A=u;if(void 0!==r.minDate&&(E=null===r.minDate?dateValue(0,0,1):validateDate(r.minDate,s,l,E),delete r.minDate),void 0!==r.maxDate&&(A=null===r.maxDate?void 0:validateDate(r.maxDate,s,l,A),delete r.maxDate),A<E?(p=o.minDate=A,u=o.maxDate=E):(p!==E&&(p=o.minDate=E),u!==A&&(u=o.maxDate=A)),r.datesDisabled&&(o.datesDisabled=r.datesDisabled.reduce((function(e,t){var n=date_format_parseDate(t,s,l);return void 0!==n?pushUnique(e,n):e}),[]),delete r.datesDisabled),void 0!==r.defaultViewDate){var O=date_format_parseDate(r.defaultViewDate,s,l);void 0!==O&&(o.defaultViewDate=O),delete r.defaultViewDate}if(void 0!==r.weekStart){var S=Number(r.weekStart)%7;isNaN(S)||(v=o.weekStart=S,o.weekEnd=calcEndOfWeek(S)),delete r.weekStart}if(r.daysOfWeekDisabled&&(o.daysOfWeekDisabled=r.daysOfWeekDisabled.reduce(sanitizeDOW,[]),delete r.daysOfWeekDisabled),r.daysOfWeekHighlighted&&(o.daysOfWeekHighlighted=r.daysOfWeekHighlighted.reduce(sanitizeDOW,[]),delete r.daysOfWeekHighlighted),void 0!==r.maxNumberOfDates){var C=parseInt(r.maxNumberOfDates,10);C>=0&&(o.maxNumberOfDates=C,o.multidate=1!==C),delete r.maxNumberOfDates}r.dateDelimiter&&(o.dateDelimiter=String(r.dateDelimiter),delete r.dateDelimiter);var T=h;void 0!==r.pickLevel&&(T=validateViewId(r.pickLevel,2),delete r.pickLevel),T!==h&&(h=o.pickLevel=T);var L=f;void 0!==r.maxView&&(L=validateViewId(r.maxView,f),delete r.maxView),(L=h>L?h:L)!==f&&(f=o.maxView=L);var P=g;if(void 0!==r.startView&&(P=validateViewId(r.startView,P),delete r.startView),P<h?P=h:P>f&&(P=f),P!==g&&(o.startView=P),r.prevArrow){var x=parseHTML(r.prevArrow);x.childNodes.length>0&&(o.prevArrow=x.childNodes),delete r.prevArrow}if(r.nextArrow){var V=parseHTML(r.nextArrow);V.childNodes.length>0&&(o.nextArrow=V.childNodes),delete r.nextArrow}if(void 0!==r.disableTouchKeyboard&&(o.disableTouchKeyboard="ontouchstart"in document&&!!r.disableTouchKeyboard,delete r.disableTouchKeyboard),r.orientation){var I=r.orientation.toLowerCase().split(/\s+/g);o.orientation={x:I.find((function(e){return"left"===e||"right"===e}))||"auto",y:I.find((function(e){return"top"===e||"bottom"===e}))||"auto"},delete r.orientation}if(void 0!==r.todayBtnMode){switch(r.todayBtnMode){case 0:case 1:o.todayBtnMode=r.todayBtnMode}delete r.todayBtnMode}return Object.keys(r).forEach((function(e){void 0!==r[e]&&hasProperty(it,e)&&(o[e]=r[e])})),o}var ut=optimizeTemplateHTML('<div class="datepicker">\n <div class="datepicker-picker">\n <div class="datepicker-header">\n <div class="datepicker-title"></div>\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% prev-btn"></button>\n <button type="button" class="%buttonClass% view-switch"></button>\n <button type="button" class="%buttonClass% next-btn"></button>\n </div>\n </div>\n <div class="datepicker-main"></div>\n <div class="datepicker-footer">\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% today-btn"></button>\n <button type="button" class="%buttonClass% clear-btn"></button>\n </div>\n </div>\n </div>\n</div>'),dt=optimizeTemplateHTML('<div class="days">\n <div class="days-of-week">'.concat(createTagRepeat("span",7,{class:"dow"}),'</div>\n <div class="datepicker-grid">').concat(createTagRepeat("span",42),"</div>\n</div>")),ft=optimizeTemplateHTML('<div class="calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">'.concat(createTagRepeat("span",6,{class:"week"}),"</div>\n</div>"));function View_toConsumableArray(e){return function View_arrayWithoutHoles(e){if(Array.isArray(e))return View_arrayLikeToArray(e)}(e)||function View_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function View_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return View_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 View_arrayLikeToArray(e,t)}(e)||function View_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 View_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 View_typeof(e){return View_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},View_typeof(e)}function View_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 pt=function(){function View(e,t){!function View_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,View),Object.assign(this,t,{picker:e,element:parseHTML('<div class="datepicker-view"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}return function View_createClass(e,t,n){return t&&View_defineProperties(e.prototype,t),n&&View_defineProperties(e,n),e}(View,[{key:"init",value:function init(e){void 0!==e.pickLevel&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}},{key:"performBeforeHook",value:function performBeforeHook(e,t,n){var r=this.beforeShow(new Date(n));switch(View_typeof(r)){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){if(!1===r.enabled&&(e.classList.add("disabled"),pushUnique(this.disabled,t)),r.classes){var o,i=r.classes.split(/\s+/);(o=e.classList).add.apply(o,View_toConsumableArray(i)),i.includes("disabled")&&pushUnique(this.disabled,t)}r.content&&function replaceChildNodes(e,t){emptyChildNodes(e),t instanceof DocumentFragment?e.appendChild(t):"string"===typeof t?e.appendChild(parseHTML(t)):"function"===typeof t.forEach&&t.forEach((function(t){e.appendChild(t)}))}(e,r.content)}}}]),View}();function DaysView_typeof(e){return DaysView_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},DaysView_typeof(e)}function DaysView_slicedToArray(e,t){return function DaysView_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function DaysView_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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||DaysView_unsupportedIterableToArray(e,t)||function DaysView_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 DaysView_toConsumableArray(e){return function DaysView_arrayWithoutHoles(e){if(Array.isArray(e))return DaysView_arrayLikeToArray(e)}(e)||function DaysView_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||DaysView_unsupportedIterableToArray(e)||function DaysView_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 DaysView_unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return DaysView_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DaysView_arrayLikeToArray(e,t):void 0}}function DaysView_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 DaysView_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 _get(e,t,n){return _get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=DaysView_getPrototypeOf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},_get(e,t,n||e)}function DaysView_setPrototypeOf(e,t){return DaysView_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},DaysView_setPrototypeOf(e,t)}function DaysView_createSuper(e){var t=function DaysView_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=DaysView_getPrototypeOf(e);if(t){var o=DaysView_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return DaysView_possibleConstructorReturn(this,n)}}function DaysView_possibleConstructorReturn(e,t){if(t&&("object"===DaysView_typeof(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function DaysView_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function DaysView_getPrototypeOf(e){return DaysView_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},DaysView_getPrototypeOf(e)}var ht=function(e){!function DaysView_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&&DaysView_setPrototypeOf(e,t)}(DaysView,e);var t=DaysView_createSuper(DaysView);function DaysView(e){return function DaysView_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,DaysView),t.call(this,e,{id:0,name:"days",cellClass:"day"})}return function DaysView_createClass(e,t,n){return t&&DaysView_defineProperties(e.prototype,t),n&&DaysView_defineProperties(e,n),e}(DaysView,[{key:"init",value:function init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t){var n=parseHTML(dt).firstChild;this.dow=n.firstChild,this.grid=n.lastChild,this.element.appendChild(n)}_get(DaysView_getPrototypeOf(DaysView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){var t,n=this;if(hasProperty(e,"minDate")&&(this.minDate=e.minDate),hasProperty(e,"maxDate")&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),void 0!==e.todayHighlight&&(this.todayHighlight=e.todayHighlight),void 0!==e.weekStart&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){var r=this.locale=e.locale;this.dayNames=r.daysMin,this.switchLabelFormat=r.titleFormat,t=!0}if(void 0!==e.beforeShowDay&&(this.beforeShow="function"===typeof e.beforeShowDay?e.beforeShowDay:void 0),void 0!==e.calendarWeeks)if(e.calendarWeeks&&!this.calendarWeeks){var o=parseHTML(ft).firstChild;this.calendarWeeks={element:o,dow:o.firstChild,weeks:o.lastChild},this.element.insertBefore(o,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);void 0!==e.showDaysOfWeek&&(e.showDaysOfWeek?(showElement(this.dow),this.calendarWeeks&&showElement(this.calendarWeeks.dow)):(hideElement(this.dow),this.calendarWeeks&&hideElement(this.calendarWeeks.dow))),t&&Array.from(this.dow.children).forEach((function(e,t){var r=(n.weekStart+t)%7;e.textContent=n.dayNames[r],e.className=n.daysOfWeekDisabled.includes(r)?"dow disabled":"dow"}))}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate),t=e.getFullYear(),n=e.getMonth(),r=dateValue(t,n,1),o=dayOfTheWeekOf(r,this.weekStart,this.weekStart);this.first=r,this.last=dateValue(t,n+1,0),this.start=o,this.focused=this.picker.viewDate}},{key:"updateSelection",value:function updateSelection(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t,n&&(this.range=n.dates)}},{key:"render",value:function render(){var e=this;this.today=this.todayHighlight?today():void 0,this.disabled=DaysView_toConsumableArray(this.datesDisabled);var t=date_format_formatDate(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){var n=dayOfTheWeekOf(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach((function(e,t){e.textContent=function getWeek(e){var t=dayOfTheWeekOf(e,4,1),n=dayOfTheWeekOf(new Date(t).setMonth(0,4),4,1);return Math.round((t-n)/6048e5)+1}(function addWeeks(e,t){return addDays(e,7*t)}(n,t))}))}Array.from(this.grid.children).forEach((function(t,n){var r=t.classList,o=addDays(e.start,n),i=new Date(o),a=i.getDay();if(t.className="datepicker-cell ".concat(e.cellClass),t.dataset.date=o,t.textContent=i.getDate(),o<e.first?r.add("prev"):o>e.last&&r.add("next"),e.today===o&&r.add("today"),(o<e.minDate||o>e.maxDate||e.disabled.includes(o))&&r.add("disabled"),e.daysOfWeekDisabled.includes(a)&&(r.add("disabled"),pushUnique(e.disabled,o)),e.daysOfWeekHighlighted.includes(a)&&r.add("highlighted"),e.range){var s=DaysView_slicedToArray(e.range,2),c=s[0],l=s[1];o>c&&o<l&&r.add("range"),o===c&&r.add("range-start"),o===l&&r.add("range-end")}e.selected.includes(o)&&r.add("selected"),o===e.focused&&r.add("focused"),e.beforeShow&&e.performBeforeHook(t,o,o)}))}},{key:"refresh",value:function refresh(){var e=this,t=DaysView_slicedToArray(this.range||[],2),n=t[0],r=t[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((function(e){e.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((function(t){var o=Number(t.dataset.date),i=t.classList;o>n&&o<r&&i.add("range"),o===n&&i.add("range-start"),o===r&&i.add("range-end"),e.selected.includes(o)&&i.add("selected"),o===e.focused&&i.add("focused")}))}},{key:"refreshFocus",value:function refreshFocus(){var e=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(".focused").forEach((function(e){e.classList.remove("focused")})),this.grid.children[e].classList.add("focused")}}]),DaysView}(pt);function MonthsView_typeof(e){return MonthsView_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},MonthsView_typeof(e)}function MonthsView_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 MonthsView_get(e,t,n){return MonthsView_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=function MonthsView_superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=MonthsView_getPrototypeOf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},MonthsView_get(e,t,n||e)}function MonthsView_setPrototypeOf(e,t){return MonthsView_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},MonthsView_setPrototypeOf(e,t)}function MonthsView_createSuper(e){var t=function MonthsView_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=MonthsView_getPrototypeOf(e);if(t){var o=MonthsView_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MonthsView_possibleConstructorReturn(this,n)}}function MonthsView_possibleConstructorReturn(e,t){if(t&&("object"===MonthsView_typeof(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function MonthsView_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function MonthsView_getPrototypeOf(e){return MonthsView_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},MonthsView_getPrototypeOf(e)}function MonthsView_slicedToArray(e,t){return function MonthsView_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function MonthsView_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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function MonthsView_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return MonthsView_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 MonthsView_arrayLikeToArray(e,t)}(e,t)||function MonthsView_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 MonthsView_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 computeMonthRange(e,t){if(e&&e[0]&&e[1]){var n=MonthsView_slicedToArray(e,2),r=MonthsView_slicedToArray(n[0],2),o=r[0],i=r[1],a=MonthsView_slicedToArray(n[1],2),s=a[0],c=a[1];if(!(o>t||s<t))return[o===t?i:-1,s===t?c:12]}}var yt=function(e){!function MonthsView_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&&MonthsView_setPrototypeOf(e,t)}(MonthsView,e);var t=MonthsView_createSuper(MonthsView);function MonthsView(e){return function MonthsView_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MonthsView),t.call(this,e,{id:1,name:"months",cellClass:"month"})}return function MonthsView_createClass(e,t,n){return t&&MonthsView_defineProperties(e.prototype,t),n&&MonthsView_defineProperties(e,n),e}(MonthsView,[{key:"init",value:function init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(parseHTML(createTagRepeat("span",12,{"data-month":function dataMonth(e){return e}})))),MonthsView_get(MonthsView_getPrototypeOf(MonthsView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),hasProperty(e,"minDate"))if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{var t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if(hasProperty(e,"maxDate"))if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{var n=new Date(e.maxDate);this.maxYear=n.getFullYear(),this.maxMonth=n.getMonth(),this.maxDate=dateValue(this.maxYear,this.maxMonth+1,0)}void 0!==e.beforeShowMonth&&(this.beforeShow="function"===typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}},{key:"updateSelection",value:function updateSelection(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t.reduce((function(e,t){var n=new Date(t),r=n.getFullYear(),o=n.getMonth();return void 0===e[r]?e[r]=[o]:pushUnique(e[r],o),e}),{}),n&&n.dates&&(this.range=n.dates.map((function(e){var t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]})))}},{key:"render",value:function render(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);var t=this.selected[this.year]||[],n=this.year<this.minYear||this.year>this.maxYear,r=this.year===this.minYear,o=this.year===this.maxYear,i=computeMonthRange(this.range,this.year);Array.from(this.grid.children).forEach((function(a,s){var c=a.classList,l=dateValue(e.year,s,1);if(a.className="datepicker-cell ".concat(e.cellClass),e.isMinView&&(a.dataset.date=l),a.textContent=e.monthNames[s],(n||r&&s<e.minMonth||o&&s>e.maxMonth)&&c.add("disabled"),i){var u=MonthsView_slicedToArray(i,2),f=u[0],p=u[1];s>f&&s<p&&c.add("range"),s===f&&c.add("range-start"),s===p&&c.add("range-end")}t.includes(s)&&c.add("selected"),s===e.focused&&c.add("focused"),e.beforeShow&&e.performBeforeHook(a,s,l)}))}},{key:"refresh",value:function refresh(){var e=this,t=this.selected[this.year]||[],n=MonthsView_slicedToArray(computeMonthRange(this.range,this.year)||[],2),r=n[0],o=n[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((function(e){e.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((function(n,i){var a=n.classList;i>r&&i<o&&a.add("range"),i===r&&a.add("range-start"),i===o&&a.add("range-end"),t.includes(i)&&a.add("selected"),i===e.focused&&a.add("focused")}))}},{key:"refreshFocus",value:function refreshFocus(){this.grid.querySelectorAll(".focused").forEach((function(e){e.classList.remove("focused")})),this.grid.children[this.focused].classList.add("focused")}}]),MonthsView}(pt);function YearsView_typeof(e){return YearsView_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},YearsView_typeof(e)}function YearsView_slicedToArray(e,t){return function YearsView_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function YearsView_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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||YearsView_unsupportedIterableToArray(e,t)||function YearsView_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 YearsView_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 YearsView_get(e,t,n){return YearsView_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,n){var r=function YearsView_superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=YearsView_getPrototypeOf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},YearsView_get(e,t,n||e)}function YearsView_setPrototypeOf(e,t){return YearsView_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},YearsView_setPrototypeOf(e,t)}function YearsView_createSuper(e){var t=function YearsView_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=YearsView_getPrototypeOf(e);if(t){var o=YearsView_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return YearsView_possibleConstructorReturn(this,n)}}function YearsView_possibleConstructorReturn(e,t){if(t&&("object"===YearsView_typeof(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function YearsView_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function YearsView_getPrototypeOf(e){return YearsView_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},YearsView_getPrototypeOf(e)}function YearsView_toConsumableArray(e){return function YearsView_arrayWithoutHoles(e){if(Array.isArray(e))return YearsView_arrayLikeToArray(e)}(e)||function YearsView_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YearsView_unsupportedIterableToArray(e)||function YearsView_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 YearsView_unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return YearsView_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YearsView_arrayLikeToArray(e,t):void 0}}function YearsView_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 toTitleCase(e){return YearsView_toConsumableArray(e).reduce((function(e,t,n){return e+(n?t:t.toUpperCase())}),"")}var mt=function(e){!function YearsView_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&&YearsView_setPrototypeOf(e,t)}(YearsView,e);var t=YearsView_createSuper(YearsView);function YearsView(e,n){return function YearsView_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,YearsView),t.call(this,e,n)}return function YearsView_createClass(e,t,n){return t&&YearsView_defineProperties(e.prototype,t),n&&YearsView_defineProperties(e,n),e}(YearsView,[{key:"init",value:function init(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(this.navStep=10*this.step,this.beforeShowOption="beforeShow".concat(toTitleCase(this.cellClass)),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(parseHTML(createTagRepeat("span",12)))),YearsView_get(YearsView_getPrototypeOf(YearsView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){if(hasProperty(e,"minDate")&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=startOfYearPeriod(e.minDate,this.step),this.minDate=dateValue(this.minYear,0,1))),hasProperty(e,"maxDate")&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=startOfYearPeriod(e.maxDate,this.step),this.maxDate=dateValue(this.maxYear,11,31))),void 0!==e[this.beforeShowOption]){var t=e[this.beforeShowOption];this.beforeShow="function"===typeof t?t:void 0}}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate),t=startOfYearPeriod(e,this.navStep),n=t+9*this.step;this.first=t,this.last=n,this.start=t-this.step,this.focused=startOfYearPeriod(e,this.step)}},{key:"updateSelection",value:function updateSelection(){var e=this,t=this.picker.datepicker,n=t.dates,r=t.rangepicker;this.selected=n.reduce((function(t,n){return pushUnique(t,startOfYearPeriod(n,e.step))}),[]),r&&r.dates&&(this.range=r.dates.map((function(t){if(void 0!==t)return startOfYearPeriod(t,e.step)})))}},{key:"render",value:function render(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel("".concat(this.first,"-").concat(this.last)),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach((function(t,n){var r=t.classList,o=e.start+n*e.step,i=dateValue(o,0,1);if(t.className="datepicker-cell ".concat(e.cellClass),e.isMinView&&(t.dataset.date=i),t.textContent=t.dataset.year=o,0===n?r.add("prev"):11===n&&r.add("next"),(o<e.minYear||o>e.maxYear)&&r.add("disabled"),e.range){var a=YearsView_slicedToArray(e.range,2),s=a[0],c=a[1];o>s&&o<c&&r.add("range"),o===s&&r.add("range-start"),o===c&&r.add("range-end")}e.selected.includes(o)&&r.add("selected"),o===e.focused&&r.add("focused"),e.beforeShow&&e.performBeforeHook(t,o,i)}))}},{key:"refresh",value:function refresh(){var e=this,t=YearsView_slicedToArray(this.range||[],2),n=t[0],r=t[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((function(e){e.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((function(t){var o=Number(t.textContent),i=t.classList;o>n&&o<r&&i.add("range"),o===n&&i.add("range-start"),o===r&&i.add("range-end"),e.selected.includes(o)&&i.add("selected"),o===e.focused&&i.add("focused")}))}},{key:"refreshFocus",value:function refreshFocus(){var e=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach((function(e){e.classList.remove("focused")})),this.grid.children[e].classList.add("focused")}}]),YearsView}(pt);function triggerDatepickerEvent(e,t){var n={date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e};e.element.dispatchEvent(new CustomEvent(t,{detail:n}))}function goToPrevOrNext(e,t){var n,r=e.config,o=r.minDate,i=r.maxDate,a=e.picker,s=a.currentView,c=a.viewDate;switch(s.id){case 0:n=addMonths(c,t);break;case 1:n=addYears(c,t);break;default:n=addYears(c,t*s.navStep)}n=limitToRange(n,o,i),e.picker.changeFocus(n).render()}function switchView(e){var t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function unfocus(e){e.config.updateOnBlur?e.update({autohide:!0}):(e.refresh("input"),e.hide())}function goToSelectedMonthOrYear(e,t){var n=e.picker,r=new Date(n.viewDate),o=n.currentView.id,i=1===o?addMonths(r,t-r.getMonth()):addYears(r,t-r.getFullYear());n.changeFocus(i).changeView(o-1).render()}function onClickTodayBtn(e){var t=e.picker,n=today();if(1===e.config.todayBtnMode){if(e.config.autohide)return void e.setDate(n);e.setDate(n,{render:!1}),t.update()}t.viewDate!==n&&t.changeFocus(n),t.changeView(0).render()}function onClickClearBtn(e){e.setDate({clear:!0})}function onClickViewSwitch(e){switchView(e)}function onClickPrevBtn(e){goToPrevOrNext(e,-1)}function onClickNextBtn(e){goToPrevOrNext(e,1)}function onClickView(e,t){var n=findElementInEventPath(t,".datepicker-cell");if(n&&!n.classList.contains("disabled")){var r=e.picker.currentView,o=r.id;r.isMinView?e.setDate(Number(n.dataset.date)):goToSelectedMonthOrYear(e,Number(1===o?n.dataset.month:n.dataset.year))}}function onClickPicker(e){e.inline||e.config.disableTouchKeyboard||e.inputField.focus()}function Picker_slicedToArray(e,t){return function Picker_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function Picker_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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function Picker_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return Picker_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 Picker_arrayLikeToArray(e,t)}(e,t)||function Picker_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 Picker_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 Picker_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 processPickerOptions(e,t){if(void 0!==t.title&&(t.title?(e.controls.title.textContent=t.title,showElement(e.controls.title)):(e.controls.title.textContent="",hideElement(e.controls.title))),t.prevArrow){var n=e.controls.prevBtn;emptyChildNodes(n),t.prevArrow.forEach((function(e){n.appendChild(e.cloneNode(!0))}))}if(t.nextArrow){var r=e.controls.nextBtn;emptyChildNodes(r),t.nextArrow.forEach((function(e){r.appendChild(e.cloneNode(!0))}))}if(t.locale&&(e.controls.todayBtn.textContent=t.locale.today,e.controls.clearBtn.textContent=t.locale.clear),void 0!==t.todayBtn&&(t.todayBtn?showElement(e.controls.todayBtn):hideElement(e.controls.todayBtn)),hasProperty(t,"minDate")||hasProperty(t,"maxDate")){var o=e.datepicker.config,i=o.minDate,a=o.maxDate;e.controls.todayBtn.disabled=!isInRange(today(),i,a)}void 0!==t.clearBtn&&(t.clearBtn?showElement(e.controls.clearBtn):hideElement(e.controls.clearBtn))}function computeResetViewDate(e){var t=e.dates,n=e.config;return limitToRange(t.length>0?lastItemOf(t):n.defaultViewDate,n.minDate,n.maxDate)}function setViewDate(e,t){var n=new Date(e.viewDate),r=new Date(t),o=e.currentView,i=o.id,a=o.year,s=o.first,c=o.last,l=r.getFullYear();switch(e.viewDate=t,l!==n.getFullYear()&&triggerDatepickerEvent(e.datepicker,"changeYear"),r.getMonth()!==n.getMonth()&&triggerDatepickerEvent(e.datepicker,"changeMonth"),i){case 0:return t<s||t>c;case 1:return l!==a;default:return l<s||l>c}}function getTextDirection(e){return window.getComputedStyle(e).direction}var gt=function(){function Picker(e){!function Picker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Picker),this.datepicker=e;var t=ut.replace(/%buttonClass%/g,e.config.buttonClass),n=this.element=parseHTML(t).firstChild,r=Picker_slicedToArray(n.firstChild.children,3),o=r[0],i=r[1],a=r[2],s=o.firstElementChild,c=Picker_slicedToArray(o.lastElementChild.children,3),l=c[0],u=c[1],f=c[2],p=Picker_slicedToArray(a.firstChild.children,2),h={title:s,prevBtn:l,viewSwitch:u,nextBtn:f,todayBtn:p[0],clearBtn:p[1]};this.main=i,this.controls=h;var g=e.inline?"inline":"dropdown";n.classList.add("datepicker-".concat(g)),processPickerOptions(this,e.config),this.viewDate=computeResetViewDate(e),registerListeners(e,[[n,"click",onClickPicker.bind(null,e),{capture:!0}],[i,"click",onClickView.bind(null,e)],[h.viewSwitch,"click",onClickViewSwitch.bind(null,e)],[h.prevBtn,"click",onClickPrevBtn.bind(null,e)],[h.nextBtn,"click",onClickNextBtn.bind(null,e)],[h.todayBtn,"click",onClickTodayBtn.bind(null,e)],[h.clearBtn,"click",onClickClearBtn.bind(null,e)]]),this.views=[new ht(this),new yt(this),new mt(this,{id:2,name:"years",cellClass:"year",step:1}),new mt(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[e.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),e.config.container.appendChild(this.element)}return function Picker_createClass(e,t,n){return t&&Picker_defineProperties(e.prototype,t),n&&Picker_defineProperties(e,n),e}(Picker,[{key:"setOptions",value:function setOptions(e){processPickerOptions(this,e),this.views.forEach((function(t){t.init(e,!1)})),this.currentView.render()}},{key:"detach",value:function detach(){this.datepicker.config.container.removeChild(this.element)}},{key:"show",value:function show(){if(!this.active){this.element.classList.add("active"),this.active=!0;var e=this.datepicker;if(!e.inline){var t=getTextDirection(e.inputField);t!==getTextDirection(e.config.container)?this.element.dir=t:this.element.dir&&this.element.removeAttribute("dir"),this.place(),e.config.disableTouchKeyboard&&e.inputField.blur()}triggerDatepickerEvent(e,"show")}}},{key:"hide",value:function hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,triggerDatepickerEvent(this.datepicker,"hide"))}},{key:"place",value:function place(){var e,t,n,r=this.element,o=r.classList,i=r.style,a=this.datepicker,s=a.config,c=a.inputField,l=s.container,u=this.element.getBoundingClientRect(),f=u.width,p=u.height,h=l.getBoundingClientRect(),g=h.left,v=h.top,b=h.width,w=c.getBoundingClientRect(),_=w.left,k=w.top,E=w.width,A=w.height,O=s.orientation,S=O.x,C=O.y;l===document.body?(e=window.scrollY,t=_+window.scrollX,n=k+e):(t=_-g,n=k-v+(e=l.scrollTop)),"auto"===S&&(t<0?(S="left",t=10):S=t+f>b||"rtl"===getTextDirection(c)?"right":"left"),"right"===S&&(t-=f-E),"auto"===C&&(C=n-p<e?"bottom":"top"),"top"===C?n-=p:n+=A,o.remove("datepicker-orient-top","datepicker-orient-bottom","datepicker-orient-right","datepicker-orient-left"),o.add("datepicker-orient-".concat(C),"datepicker-orient-".concat(S)),i.top=n?"".concat(n,"px"):n,i.left=t?"".concat(t,"px"):t}},{key:"setViewSwitchLabel",value:function setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}},{key:"setPrevBtnDisabled",value:function setPrevBtnDisabled(e){this.controls.prevBtn.disabled=e}},{key:"setNextBtnDisabled",value:function setNextBtnDisabled(e){this.controls.nextBtn.disabled=e}},{key:"changeView",value:function changeView(e){var t=this.currentView,n=this.views[e];return n.id!==t.id&&(this.currentView=n,this._renderMethod="render",triggerDatepickerEvent(this.datepicker,"changeView"),this.main.replaceChild(n.element,t.element)),this}},{key:"changeFocus",value:function changeFocus(e){return this._renderMethod=setViewDate(this,e)?"render":"refreshFocus",this.views.forEach((function(e){e.updateFocus()})),this}},{key:"update",value:function update(){var e=computeResetViewDate(this.datepicker);return this._renderMethod=setViewDate(this,e)?"render":"refresh",this.views.forEach((function(e){e.updateFocus(),e.updateSelection()})),this}},{key:"render",value:function render(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this._renderMethod||"render";delete this._renderMethod,this.currentView[t]()}}]),Picker}();function findNextAvailableOne(e,t,n,r,o,i){if(isInRange(e,o,i))return r(e)?findNextAvailableOne(t(e,n),t,n,r,o,i):e}function moveByArrowKey(e,t,n,r){var o,i,a=e.picker,s=a.currentView,c=s.step||1,l=a.viewDate;switch(s.id){case 0:l=r?addDays(l,7*n):t.ctrlKey||t.metaKey?addYears(l,n):addDays(l,n),o=addDays,i=function testFn(e){return s.disabled.includes(e)};break;case 1:l=addMonths(l,r?4*n:n),o=addMonths,i=function testFn(e){var t=new Date(e),n=s.year,r=s.disabled;return t.getFullYear()===n&&r.includes(t.getMonth())};break;default:l=addYears(l,n*(r?4:1)*c),o=addYears,i=function testFn(e){return s.disabled.includes(startOfYearPeriod(e,c))}}void 0!==(l=findNextAvailableOne(l,o,n<0?-c:c,i,s.minDate,s.maxDate))&&a.changeFocus(l).render()}function onKeydown(e,t){if("Tab"!==t.key){var n=e.picker,r=n.currentView,o=r.id,i=r.isMinView;if(n.active)if(e.editMode)switch(t.key){case"Escape":n.hide();break;case"Enter":e.exitEditMode({update:!0,autohide:e.config.autohide});break;default:return}else switch(t.key){case"Escape":n.hide();break;case"ArrowLeft":if(t.ctrlKey||t.metaKey)goToPrevOrNext(e,-1);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,-1,!1)}break;case"ArrowRight":if(t.ctrlKey||t.metaKey)goToPrevOrNext(e,1);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,1,!1)}break;case"ArrowUp":if(t.ctrlKey||t.metaKey)switchView(e);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,-1,!0)}break;case"ArrowDown":if(t.shiftKey&&!t.ctrlKey&&!t.metaKey)return void e.enterEditMode();moveByArrowKey(e,t,1,!0);break;case"Enter":i?e.setDate(n.viewDate):n.changeView(o-1).render();break;case"Backspace":case"Delete":return void e.enterEditMode();default:return void(1!==t.key.length||t.ctrlKey||t.metaKey||e.enterEditMode())}else switch(t.key){case"ArrowDown":case"Escape":n.show();break;case"Enter":e.update();break;default:return}t.preventDefault(),t.stopPropagation()}else unfocus(e)}function onFocus(e){e.config.showOnFocus&&!e._showing&&e.show()}function onMousedown(e,t){var n=t.target;(e.picker.active||e.config.showOnClick)&&(n._active=n===document.activeElement,n._clicking=setTimeout((function(){delete n._active,delete n._clicking}),2e3))}function onClickInput(e,t){var n=t.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function onPaste(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function onClickOutside(e,t){var n=e.element;if(n===document.activeElement){var r=e.picker.element;findElementInEventPath(t,(function(e){return e===n||e===r}))||unfocus(e)}}function Datepicker_typeof(e){return Datepicker_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},Datepicker_typeof(e)}function Datepicker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Datepicker_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 stringifyDates(e,t){return e.map((function(e){return date_format_formatDate(e,t.format,t.locale)})).join(t.dateDelimiter)}function processInputDates(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.config,o=e.dates,i=e.rangepicker;if(0===t.length)return n?[]:void 0;var a=i&&e===i.datepickers[1],s=t.reduce((function(e,t){var n=date_format_parseDate(t,r.format,r.locale);if(void 0===n)return e;if(r.pickLevel>0){var o=new Date(n);n=1===r.pickLevel?a?o.setMonth(o.getMonth()+1,0):o.setDate(1):a?o.setFullYear(o.getFullYear()+1,0,0):o.setMonth(0,1)}return!isInRange(n,r.minDate,r.maxDate)||e.includes(n)||r.datesDisabled.includes(n)||r.daysOfWeekDisabled.includes(new Date(n).getDay())||e.push(n),e}),[]);return 0!==s.length?(r.multidate&&!n&&(s=s.reduce((function(e,t){return o.includes(t)||e.push(t),e}),o.filter((function(e){return!s.includes(e)})))),r.maxNumberOfDates&&s.length>r.maxNumberOfDates?s.slice(-1*r.maxNumberOfDates):s):void 0}function refreshUI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.config,o=e.picker,i=e.inputField;if(2&t){var a=o.active?r.pickLevel:r.startView;o.update().changeView(a).render(n)}1&t&&i&&(i.value=stringifyDates(e.dates,r))}function _setDate(e,t,n){var r=n.clear,o=n.render,i=n.autohide;void 0===o&&(o=!0),o?void 0===i&&(i=e.config.autohide):i=!1;var a=processInputDates(e,t,r);a&&(a.toString()!==e.dates.toString()?(e.dates=a,refreshUI(e,o?3:1),triggerDatepickerEvent(e,"changeDate")):refreshUI(e,1),i&&e.hide())}var vt=function(){function Datepicker(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;Datepicker_classCallCheck(this,Datepicker),e.datepicker=this,this.element=e;var r=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:document.body,defaultViewDate:today(),maxDate:void 0,minDate:void 0},processOptions(it,this));this._options=t,Object.assign(r,processOptions(t,this));var o,i,a=this.inline="INPUT"!==e.tagName;if(a)r.container=e,i=stringToArray(e.dataset.date,r.dateDelimiter),delete e.dataset.date;else{var s=t.container?document.querySelector(t.container):null;s&&(r.container=s),(o=this.inputField=e).classList.add("datepicker-input"),i=stringToArray(o.value,r.dateDelimiter)}if(n){var c=n.inputs.indexOf(o),l=n.datepickers;if(c<0||c>1||!Array.isArray(l))throw Error("Invalid rangepicker object.");l[c]=this,Object.defineProperty(this,"rangepicker",{get:function get(){return n}})}this.dates=[];var u=processInputDates(this,i);u&&u.length>0&&(this.dates=u),o&&(o.value=stringifyDates(this.dates,r));var f=this.picker=new gt(this);if(a)this.show();else{var p=onClickOutside.bind(null,this),h=[[o,"keydown",onKeydown.bind(null,this)],[o,"focus",onFocus.bind(null,this)],[o,"mousedown",onMousedown.bind(null,this)],[o,"click",onClickInput.bind(null,this)],[o,"paste",onPaste.bind(null,this)],[document,"mousedown",p],[document,"touchstart",p],[window,"resize",f.place.bind(f)]];registerListeners(this,h)}}return function Datepicker_createClass(e,t,n){return t&&Datepicker_defineProperties(e.prototype,t),n&&Datepicker_defineProperties(e,n),e}(Datepicker,[{key:"active",get:function get(){return!(!this.picker||!this.picker.active)}},{key:"pickerElement",get:function get(){return this.picker?this.picker.element:void 0}},{key:"setOptions",value:function setOptions(e){var t=this.picker,n=processOptions(e,this);Object.assign(this._options,e),Object.assign(this.config,n),t.setOptions(n),refreshUI(this,3)}},{key:"show",value:function show(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}},{key:"hide",value:function hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}},{key:"destroy",value:function destroy(){return this.hide(),function unregisterListeners(e){var t=Qe.get(e);t&&(t.forEach((function(e){nt.call.apply(nt,event_toConsumableArray(e))})),Qe.delete(e))}(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}},{key:"getDate",value:function getDate(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=t?function(n){return date_format_formatDate(n,t,e.config.locale)}:function(e){return new Date(e)};return this.config.multidate?this.dates.map(n):this.dates.length>0?n(this.dates[0]):void 0}},{key:"setDate",value:function setDate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),o={},i=lastItemOf(t);"object"!==Datepicker_typeof(i)||Array.isArray(i)||i instanceof Date||!i||Object.assign(o,r.pop());var a=Array.isArray(r[0])?r[0]:r;_setDate(this,a,o)}},{key:"update",value:function update(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!this.inline){var t={clear:!0,autohide:!(!e||!e.autohide)},n=stringToArray(this.inputField.value,this.config.dateDelimiter);_setDate(this,n,t)}}},{key:"refresh",value:function refresh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e&&"string"!==typeof e&&(t=e,e=void 0),refreshUI(this,"picker"===e?2:"input"===e?1:3,!t)}},{key:"enterEditMode",value:function enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit"))}},{key:"exitEditMode",value:function exitEditMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!this.inline&&this.editMode){var t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}}],[{key:"formatDate",value:function formatDate(e,t,n){return date_format_formatDate(e,t,n&&ot[n]||ot.en)}},{key:"parseDate",value:function parseDate(e,t,n){return date_format_parseDate(e,t,n&&ot[n]||ot.en)}},{key:"locales",get:function get(){return ot}}]),Datepicker}(),bt=function init(){document.querySelectorAll(".js-datepicker").forEach((function(e,t){var n=new vt(e);e.ui=n}))};window.addEventListener("".concat(e.LODEDANDREADY),bt),window.addEventListener("".concat(e.AJAX),bt);var wt=__webpack_require__(6017);!function(t){var n,r="main.online",o=document,i=o.body,a=o.querySelector('meta[name="ping"]'),s=!1,c=function UPDATE_ONLINE_STATUS(o){s||(s=!0,o?(i.classList.contains("is-offline")?(console.log("".concat(r,": back Online")),t.dispatchEvent(new Event(e.BACKONLINE))):(console.log("".concat(r,": Online")),t.dispatchEvent(new Event(e.ONLINE))),i.classList.add("is-online"),i.classList.remove("is-offline"),a&&!n&&(console.log("".concat(r,": SESSION_PING is active")),n=setInterval(u,3e5))):(console.log("".concat(r,": Offline")),i.classList.add("is-offline"),i.classList.remove("is-online"),clearInterval(n),n=null,t.dispatchEvent(new Event(e.OFFLINE))),s=!1)},l=!1,u=function SESSION_PING(){if(!l&&!i.classList.contains("is-offline")){var e=a.getAttribute("content");console.log("".concat(r,": session ping")),l=!0,wt.post(e,{}).then((function(e){l=!1,c(!0)})).catch((function(e){console.error(e),console.warn("".concat(r,": SESSION_PING failed")),l=!1,c(!1)}))}},f=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?c(!0):c(!1))};t.addEventListener("".concat(e.OFFLINE),(function(){c(!1)})),t.addEventListener("".concat(e.ONLINE),(function(){c(!0)})),t.addEventListener("".concat(e.LOADED),f),t.addEventListener("".concat(e.AJAX),f)}(window);function image_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 _t=__webpack_require__(6017),kt="ajax.models.image",Et=document.querySelector('meta[name="api_static_domain"]'),Dt=Et?Et.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(kt," [static url]: ").concat(Dt));var At=function(){function ImageObject(){!function image_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,ImageObject)}return function image_createClass(e,t,n){return t&&image_defineProperties(e.prototype,t),n&&image_defineProperties(e,n),e}(ImageObject,[{key:"load",value:function load(e,t){var n=e.startsWith("http")?e:Dt+e;return t&&(t.classList.add("loading"),t.classList.remove("loading__network-error")),new Promise((function(e,r){_t.get(n,{responseType:"blob"}).then((function(n){var r=new FileReader;r.readAsDataURL(n.data),r.onload=function(){var n=r.result;t&&(t.classList.remove("loading"),t.classList.add("loading__success")),e(n)}})).catch((function(e){if(e.response){switch(e.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(kt," [").concat(n,"]: ").concat(msg))}else e.request?(msg="No response received",console.error("".concat(kt," [").concat(n,"]: ").concat(msg))):console.error("".concat(kt," [").concat(n,"]: ").concat(e.message));t&&(t.classList.remove("loading"),t.classList.add("loading__network-error"),t.classList.add("empty")),r()}))}))}}]),ImageObject}();(function(t){var n=document,r=(n.body,function loadLazyImages(){console.log("".concat("main.lazy-images",": Load lazy images")),n.querySelectorAll("[data-lazy-src]").forEach((function(e){e.classList.remove("empty"),(new At).load(e.getAttribute("data-lazy-src"),e).then((function(t){e.setAttribute("src",t)})).catch((function(){e.classList.add("empty")}))})),n.querySelectorAll("[data-lazy-bg]").forEach((function(e){e.classList.remove("empty"),(new At).load(e.getAttribute("data-lazy-bg"),e).then((function(t){e.style.backgroundImage="url(".concat(t,")")})).catch((function(){e.classList.add("empty")}))}))});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);function importAll(e){return e.keys().map(e)}importAll(__webpack_require__(6779)),importAll(__webpack_require__(3429));if("serviceWorker"in navigator){var Ot=(document.getElementsByTagName("base")[0]||{}).href,St=(document.querySelector('meta[name="swversion"]')||{}).content;Ot&&navigator.serviceWorker.register("".concat(Ot,"sw.js?v=").concat(St)).then((function(){console.log("Service Worker Registered")}))}}()}(); |