PageSourceSearch

https://cliburn.org/themes/custom/idfive_accelerator/idfive-component-library/public/js/bundle.min.js?v=1.0.12

js cliburn.org collected 2026-10-02 05:44:29 UTC 320,925 bytes, 32 lines download raw bytes

1var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__copyProps=(e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of __getOwnPropNames(t))__hasOwnProp.call(e,r)||r===n||__defProp(e,r,{get:()=>t[r],enumerable:!(i=__getOwnPropDesc(t,r))||i.enumerable});return e},__toESM=(e,t,n)=>(n=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?n:__defProp(n,"default",{value:e,enumerable:!0}),e)),require_accordion_min=__commonJS({"node_modules/accordion-js/dist/accordion.min.js"(e,t){var n,i,r;n=window,i=0,r=function e(t,n){var r=this,s=this,a=!1;if(Array.isArray(t))return!!t.length&&t.map(function(t){return new e(t,n)});var o={init:function(){this.options=Object.assign({duration:600,ariaEnabled:!0,collapse:!0,showMultiple:!1,onlyChildNodes:!0,openOnInit:[],elementClass:"ac",triggerClass:"ac-trigger",panelClass:"ac-panel",activeClass:"is-active",beforeOpen:function(){},onOpen:function(){},beforeClose:function(){},onClose:function(){}},n);var e="string"==typeof t;this.container=e?document.querySelector(t):t,this.createDefinitions(),s.attachEvents()},createDefinitions:function(){var e=this,t=this.options,n=t.elementClass,r=t.openOn
1Init,s=t.onlyChildNodes?this.container.childNodes:this.container.querySelectorAll(d(n));this.elements=Array.from(s).filter(function(e){return e.classList&&e.classList.contains(n)}),this.firstElement=this.elements[0],this.lastElement=this.elements[this.elements.length-1],this.elements.filter(function(e){return!e.classList.contains("js-enabled")}).forEach(function(t){t.classList.add("js-enabled"),e.generateIDs(t),e.setARIA(t),e.setTransition(t);var n=e.elements.indexOf(t);i++,r.includes(n)?e.showElement(t,!1):e.closeElement(t,!1)})},setTransition:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.options,i=n.duration,r=n.panelClass,s=e.querySelector(d(r)),a=l("transitionDuration");s.style[a]=t?null:"".concat(i,"ms")},generateIDs:function(e){var t=this.options,n=t.triggerClass,r=t.panelClass,s=e.querySelector(d(n)),a=e.querySelector(d(r));e.setAttribute("id",e.id||"ac-".concat(i)),s.setAttribute("id",s.id||"ac-trigger-".concat(i)),a.setAttribute("id",a.id||"ac-panel-".concat(i))},removeIDs:function(e){var t=this.options,n=t.triggerClass,i=t.panelClass,r=e.querySelector(d(n)),s=e.querySelector(d(i));e.id.startsWith("ac-")&&e.removeAttribute("id"),r.id.startsWith("ac-")&&r.removeAttribute("id"),s.id.startsWith("ac-")&&s.removeAttribute("id")},setARIA:function(e){var t=this.options,n=t.ariaEnabled,i=t.triggerClass,r=t.panelClass;if(n){var s=e.querySelector(d(i)),a=e.querySelector(d(r));s.setAttribute("role","button"),s.setAttribute("aria-controls",a.id),s.setAttribute("aria-disabled",!1),s.setAttribute("aria-expanded",!1),a.setAttribute("role","region"),a.setAttribute("aria-labelledby",s.id)}},updateARIA:function(e,t){var n=t.ariaExpanded,i=t.ariaDisabled,r=this.options,s=r.ariaEnabled,a=r.triggerClass;if(s){var o=e.querySelector(d(a));o.setAttribute("aria-expanded",n),o.setAttribute("aria-disabled",i)}},removeARIA:function(e){var t=this.options,n=t.ariaEnabled,i=t.triggerClass,r=t.panelClass;if(n){var s=e.querySelector(d(i)),a=e.querySelector(d(r));s.removeAttribute("role"),s.removeAttribute("aria-controls"),s.removeAttribute("aria-disabled"),s.removeAttribute("aria-expanded"),a.removeAttribute("role"),a.removeAttribute("aria-labelledby")}},focus:function(e,t){e.preventDefault();var n=this.options.triggerClass;t.querySelector(d(n)).focus()},focusFirstElement:function(e){this.focus(e,this.firstElement),this.currFocusedIdx=0},focusLastElement:function(e){this.focus(e,this.lastElement),this.currFocusedIdx=this.elements.length-1},focusNextElement:function(e){var t=this.currFocusedIdx+1;if(t>this.elements.length-1)return this.focusFirstElement(e);this.focus(e,this.elements[t]),this.currFocusedIdx=t},focusPrevElement:function(e){var t=this.currFocusedIdx-1;if(t<0)return this.focusLastElement(e);this.focus(e,this.elements[t]),this.currFocusedIdx=t},showElement:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.options,i=n.panelClass,r=n.activeClass,s=n.collapse,a=n.beforeOpen;t&&a(e);var o=e.querySelector(d(i)),l=o.scrollHeight;e.classList.add(r),requestAnimationFrame(function(){requestAnimationFrame(function(){o.style.height=t?"".concat(l,"px"):"auto"})}),this.updateARIA(e,{ariaExpanded:!0,ariaDisabled:!s})},closeElement:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.options,i=n.panelClass,r=n.activeClass,s=n.beforeClose,a=e.querySelector(d(i)),o=a.scrollHeight;e.classList.remove(r),t?(s(e),requestAnimationFrame(function(){a.style.height="".concat(o,"px"),requestAnimationFrame(function(){a.style.height=0})})):a.style.height=0,this.updateARIA(e,{ariaExpanded:!1,ariaDisabled:!1})},toggleElement:function(e){var t=this.options,n=t.activeClass,i=t.collapse,r=e.classList.contains(n);if(!r||i)return r?this.closeElement(e):this.showElement(e)},closeElements:function(){var e=this,t=this.options,n=t.activeClass;t.showMultiple||this.elements.forEach(function(t,i){t.classList.contains(n)&&i!==e.currFocusedIdx&&e.closeElement(t)})},handleClick:function(e){var t=this,n=e.currentTarget;this.elements.forEach(function(i,r){i.contains(n)&&"A"!==e.target.nodeName&&(t.currFocusedIdx=r,t.closeElements(),t.focus(e,i),t.toggleElement(i))})},handleKeydown:function(e){switch(e.key){case"ArrowUp":return this.focusPrevElement(e);case"ArrowDown":return this.focusNextElement(e);case"Home":return this.focusFirstElement(e);case"End":return this.focusLastElement(e);default:return null}},handleFocus:function(e){var t=e.currentTarget,n=this.elements.find(function(e){return e.contains(t)});this.currFocusedIdx=this.elements.indexOf(n)},handleTransitionEnd:function(e){if(e.stopPropagation(),"height"===e.propertyName){var t=this.options,n=t.onOpen,i=t.onClose,r=e.currentTarget,s=parseInt(r.style.height),a=this.elements.find(function(e){return e.contains(r)});s>0?(r.style.height="auto",n(a)):i(a)}}};this.attachEvents=function(){if(!a){var e=o.options,t=e.triggerClass,n=e.panelClass;o.handleClick=o.handleClick.bind(o),o.handleKeydown=o.handleKeydown.bind(o),o.handleFocus=o.handleFocus.bind(o),o.handleTransitionEnd=o.handleTransitionEnd.bind(o),o.elements.forEac
1h(function(e){var i=e.querySelector(d(t)),r=e.querySelector(d(n));i.addEventListener("click",o.handleClick),i.addEventListener("keydown",o.handleKeydown),i.addEventListener("focus",o.handleFocus),r.addEventListener("webkitTransitionEnd",o.handleTransitionEnd),r.addEventListener("transitionend",o.handleTransitionEnd)}),a=!0}},this.detachEvents=function(){if(a){var e=o.options,t=e.triggerClass,n=e.panelClass;o.elements.forEach(function(e){var i=e.querySelector(d(t)),r=e.querySelector(d(n));i.removeEventListener("click",o.handleClick),i.removeEventListener("keydown",o.handleKeydown),i.removeEventListener("focus",o.handleFocus),r.removeEventListener("webkitTransitionEnd",o.handleTransitionEnd),r.removeEventListener("transitionend",o.handleTransitionEnd)}),a=!1}},this.toggle=function(e){var t=o.elements[e];t&&o.toggleElement(t)},this.open=function(e){var t=o.elements[e];t&&o.showElement(t)},this.openAll=function(){var e=o.options,t=e.activeClass,n=e.onOpen;o.elements.forEach(function(e){e.classList.contains(t)||(o.showElement(e,!1),n(e))})},this.close=function(e){var t=o.elements[e];t&&o.closeElement(t)},this.closeAll=function(){var e=o.options,t=e.activeClass,n=e.onClose;o.elements.forEach(function(e){e.classList.contains(t)&&(o.closeElement(e,!1),n(e))})},this.destroy=function(){r.detachEvents(),r.openAll(),o.elements.forEach(function(e){o.removeIDs(e),o.removeARIA(e),o.setTransition(e,!0)}),a=!0},this.update=function(){o.createDefinitions(),r.detachEvents(),r.attachEvents()};var l=function(e){return"string"==typeof document.documentElement.style[e]?e:(e=c(e),e="webkit".concat(e))},c=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},d=function(e){return".".concat(CSS.escape(e))};o.init()},void 0!==t&&void 0!==t.exports?t.exports=r:n.Accordion=r}}),require_headroom=__commonJS({"node_modules/headroom.js/dist/headroom.js"(e,t){var n,i;n=e,i=function(){"use strict";function e(){return"undefined"!=typeof window}function t(e){return(s=e)&&s.document&&function(e){return 9===e.nodeType}(s.document)?(n=(t=e).document,i=n.body,r=n.documentElement,{scrollHeight:function(){return Math.max(i.scrollHeight,r.scrollHeight,i.offsetHeight,r.offsetHeight,i.clientHeight,r.clientHeight)},height:function(){return t.innerHeight||r.clientHeight||i.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(r||i.parentNode||i).scrollTop}}):function(e){return{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}}}(e);var t,n,i,r,s}function n(e,n,i){var r,s=function(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}(),a=!1,o=t(e),l=o.scrollY(),c={};function d(){var e=Math.round(o.scrollY()),t=o.height(),r=o.scrollHeight();c.scrollY=e,c.lastScrollY=l,c.direction=e>l?"down":"up",c.distance=Math.abs(e-l),c.isOutOfBounds=e<0||e+t>r,c.top=e<=n.offset[c.direction],c.bottom=e+t>=r,c.toleranceExceeded=c.distance>n.tolerance[c.direction],i(c),l=e,a=!1}function u(){a||(a=!0,r=requestAnimationFrame(d))}var h=!!s&&{passive:!0,capture:!1};return e.addEventListener("scroll",u,h),d(),{destroy:function(){cancelAnimationFrame(r),e.removeEventListener("scroll",u,h)}}}function i(e){return e===Object(e)?e:{down:e,up:e}}function r(e,t){t=t||{},Object.assign(this,r.options,t),this.classes=Object.assign({},r.options.classes,t.classes),this.elem=e,this.tolerance=i(this.tolerance),this.offset=i(this.offset),this.initialised=!1,this.frozen=!1}return r.prototype={constructor:r,init:function(){return r.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(e){e.scrollTracker=n(e.scroller,{offset:e.offset,tolerance:e.tolerance},e.update.bind(e))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(e){return"down"===e.direction&&!e.top&&e.toleranceExceeded},shouldPin:function(e){return"up"===e.direction&&e.toleranceExceeded||e.top},addClass:function(e){this.elem.classList.add.apply(this.elem.classList,this.classes[e].split(" "))},removeClass:function(e){this.elem.classList.remove.apply(this.elem.classList,this.classes[e].split(" "))},hasClass:function(e){return this.classes[e].split(" ").every(function(e){return this.classList.contains(e)},this.elem)},update:function(e){e.isOutOfBounds||!0!==this.frozen&&(e.top?this.top():this.notTop(),e.bottom?this.bottom():this.notBottom(),this.shouldUnpin(e)?this.unpin():this.shouldPin(e)&&this.pin())}},r.options={tolerance:{up:0,down:0},offset:0,scroller:e()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},r.cutsTheMustard=!!(e()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),r},"object"==typeof e&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(n=n||self).Headroom=i()}}),require_sister=__commonJS({"node_modules/sister/src/sister.js"(e,t){"use strict";var n;n=function(){var e={},t={};return e.on=function(e,n){var i={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(i),i},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,n){var i,r=t[e];if(r)for(i=r.length;i--;)r[i].handler(n)},e},t.exports=n}}),require_ms=__commonJS({"node_modules/youtube-player/node_modules/ms/index.js"(e,t){var n=1e3,i=6e4,r=60*i,s=24*r,a=7*s,o=365.25*s;function l(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}t.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var l=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*s;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=s)return l(e,t,s,"day");if(t>=r)return l(e,t,r,"hour");if(t>=i)return l(e,t,i,"minute");
vendor: 4,475 bytes, line 1
1if(t>=n)return l(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=s)return Math.round(e/s)+"d";if(t>=r)return Math.round(e/r)+"h";if(t>=i)return Math.round(e/i)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}),require_common=__commonJS({"node_modules/youtube-player/node_modules/debug/src/common.js"(e,t){t.exports=function(e){function t(e){let i,r,s,a=null;function o(...e){if(!o.enabled)return;const n=o,r=Number(new Date),s=r-(i||r);n.diff=s,n.prev=i,n.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(i,r)=>{if("%%"===i)return"%";a++;const s=t.formatters[r];if("function"==typeof s){const t=e[a];i=s.call(n,t),e.splice(a,1),a--}return i}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,t){let n=0,i=0,r=-1,s=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(r=i,s=n,i++):(n++,i++);else{if(-1===r)return!1;i=r+1,s++,n=s}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=require_ms(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}}}),require_browser=__commonJS({"node_modules/youtube-player/node_modules/debug/src/browser.js"(e,t){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(e){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(e){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(e){}}(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=require_common()(e);var{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}}),require_PlayerStates=__commonJS({"node_modules/youtube-player/dist/constants/PlayerStates.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=e.default}}),require_FunctionStateMap=__commonJS({"node_modules/youtube-player/dist/FunctionStateMap.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=require_PlayerStates(),r=(n=i)&&n.__esModule?n:{default:n};e.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=e.default}}),require_eventNames=__commonJS({"node_modules/youtube-player/dist/eventNames.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=e.default}}),require_functionNames=__commonJS({"node_modules/youtube-player/dist/functionNames.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
1setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],t.exports=e.default}}),require_YouTubePlayer=__commonJS({"node_modules/youtube-player/dist/YouTubePlayer.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(require_browser()),i=a(require_FunctionStateMap()),r=a(require_eventNames()),s=a(require_functionNames());function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("youtube-player"),l={proxyEvents:e=>{const t={};for(const n of r.default){const i="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[i]=t=>{o('event "%s"',i,t),e.trigger(n,t)}}return t},promisifyPlayer:(e,t=!1)=>{const n={};for(const r of s.default)t&&i.default[r]?n[r]=(...t)=>e.then(e=>{const n=i.default[r],s=e.getPlayerState(),a=e[r].apply(e,t);return n.stateChangeRequired||Array.isArray(n.acceptableStates)&&!n.acceptableStates.includes(s)?new Promise(t=>{const i=()=>{const r=e.getPlayerState();let s;"number"==typeof n.timeout&&(s=setTimeout(()=>{e.removeEventListener("onStateChange",i),t()},n.timeout)),Array.isArray(n.acceptableStates)&&n.acceptableStates.includes(r)&&(e.removeEventListener("onStateChange",i),clearTimeout(s),t())};e.addEventListener("onStateChange",i)}).then(()=>a):a}):n[r]=(...t)=>e.then(e=>e[r].apply(e,t));return n}};e.default=l,t.exports=e.default}}),require_load_script=__commonJS({"node_modules/load-script/index.js"(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function i(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}t.exports=function(e,t,r){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,t.attrs),t.text&&(a.text=""+t.text),("onload"in a?n:i)(a,r),a.onload||n(a,r),s.appendChild(a)}}}),require_loadYouTubeIframeApi=__commonJS({"node_modules/youtube-player/dist/loadYouTubeIframeApi.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=require_load_script(),r=(n=i)&&n.__esModule?n:{default:n};e.default=e=>new Promise(t=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);{const t="http:"===window.location.protocol?"http:":"https:";(0,r.default)(t+"//www.youtube.com/iframe_api",t=>{t&&e.trigger("error",t)})}const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{n&&n(),t(window.YT)}}),t.exports=e.default}}),require_dist=__commonJS({"node_modules/youtube-player/dist/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=a(require_sister()),r=a(require_YouTubePlayer()),s=a(require_loadYouTubeIframeApi());function a(e){return e&&e.__esModule?e:{default:e}}e.default=(e,t={},a=!1)=>{const o=(0,i.default)();if(n||(n=(0,s.default)(o)),t.events)throw new Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw new Error('Element "'+e+'" does not exist.');t.events=r.default.proxyEvents(o);const l=new Promise(i=>{if("object"==typeof e&&e.playVideo instanceof Function){i(e)}else n.then(n=>{const r=new n.Player(e,t);return o.on("ready",()=>{i(r)}),null})}),c=r.default.promisifyPlayer(l,a);return c.on=o.on,c.off=o.off,c},t.exports=e.default}}),require_player=__commonJS({"node_modules/@vimeo/player/dist/player.js"(e,t){var n,i;n=e,i=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
vendor: 4,243 bytes, line 1
1n%2?e(Object(i),!0).forEach(function(e){l(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(){n=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var s=t&&t.prototype instanceof m?t:m,a=Object.create(s.prototype),o=new C(i||[]);return r(a,"_invoke",{value:S(e,n,o)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function m(){}function f(){}function p(){}var g={};c(g,a,function(){return this});var y=Object.getPrototypeOf,v=y&&y(y(M([])));v&&v!==t&&i.call(v,a)&&(g=v);var b=p.prototype=m.prototype=Object.create(g);function w(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){function n(r,s,a,o){var l=u(e[r],e,s);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&i.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,o)},function(e){n("throw",e,a,o)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,o)})}o(l.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return s=s?s.then(r,r):r()}})}function S(e,t,n){var i="suspendedStart";return function(r,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw s;return{value:void 0,done:!0}}for(n.method=r,n.arg=s;;){var a=n.delegate;if(a){var o=E(a,n);if(o){if(o===h)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var s=r.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function M(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=p,r(b,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(T.prototype),c(T.prototype,o,function(){return this}),e.AsyncIterator=T,e.async=function(t,n,i,r,s){void 0===s&&(s=Prom
1ise);var a=new T(d(t,n,i,r),s);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},w(b),c(b,l,"Generator"),c(b,a,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=M,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var o=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(o&&l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function i(e,t,n,i,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var a=e.apply(t,n);function o(e){i(a,r,s,o,l,"next",e)}function l(e){i(a,r,s,o,l,"throw",e)}o(void 0)})}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(){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}}function h(e,t,n){return(h=u()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&d(r,n.prototype),r}).apply(null,arguments)}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return h(e,arguments,c(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)},m(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){var t=u();return function(){var n,i=c(e);if(t){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,n)}}function g(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var y="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function v(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function b(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function w(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function T(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,i=t.url,r=n||i;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(e=r,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/".concat(r);if(b(r))return r.replace("http:","https:");if(n)throw new TypeError("\u201c".concat(n,"\u201d is not a valid video id."));throw new TypeError("\u201c".concat(r,"\u201d is not a vimeo.com url."))}var S=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",s="string"==typeof t?[t]:t;
1return s.forEach(function(t){e[i](t,n)}),{cancel:function(){return s.forEach(function(t){return e[r](t,n)})}}},E=void 0!==Array.prototype.indexOf,k="undefined"!=typeof window&&void 0!==window.postMessage;if(!(y||E&&k))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),i=function(e,t,i){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:i}):e[t]=i};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap_"+s()+"."+s()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!r(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function s(){return Math.random().toString().substring(2)}return i(e.prototype,"delete",function(e){if(n(this,"delete"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e||(delete e[this._id],0))}),i(e.prototype,"get",function(e){if(n(this,"get"),r(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),i(e.prototype,"has",function(e){if(n(this,"has"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),i(e.prototype,"set",function(e,t){if(n(this,"set"),!r(e))throw new TypeError("Invalid value used as weak map key");var s=e[this._id];return s&&s[0]===e?(s[1]=t,this):(i(e,this._id,[e,t]),this)}),i(e,"_polyfill",!0),e}()}function r(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:x);var C,M,O=(C=function(e){var t,n,i;i=function(){var e,t,n,i=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function s(e,i){n.add(e,i),t||(t=r(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function o(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var i,r;try{!1===t?n.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=a(i))?r.call(i,n.resolve,n.reject):n.resolve(i)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?s(function(){var i=new h(n);try{t.call(e,function(){c.apply(i,arguments)},function(){d.apply(i,arguments)})}catch(e){d.call(i,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&s(o,n))}catch(e){d.call(new h(n),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&s(o,t))}function u(e,t,n,i){for(var r=0;r<t.length;r++)(function(r){e.resolve(t[r]).then(function(e){n(r,e)},i)})(r)}function h(e){this.def=e,this.triggered=!1}function m(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new m(this);this.then=function(e,n){var i={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&s(o,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){d.call(t,e)})}catch(e){d.call(t,e)}}n=function(){var e,n,i;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,s){i=new r(t,s),n?n.next=i:e=i,n=i,i=void 0},drain:function(){var i=e;for(e=n=t=void 0;i;)i.fn.call(i.self),i=i.next}}}();var p=e({},"constructor",f,!1);return f.prototype=p,e(p,"__NPO__",0,!1),e(f,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,i){if
1("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var r=e.length,s=Array(r),a=0;u(t,e,function(e,t){s[e]=t,++a===r&&n(s)},i)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t(function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");u(t,e,function(e,t){n(t)},i)})}),f},(n=x)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])},C(M={exports:{}},M.exports),M.exports),I=new WeakMap;function _(e,t,n){var i=I.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),I.set(e.element,i)}function L(e,t){return(I.get(e.element)||{})[t]||[]}function A(e,t,n){var i=I.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],I.set(e.element,i),!0;var r=i[t].indexOf(n);return-1!==r&&i[t].splice(r,1),I.set(e.element,i),i[t]&&0===i[t].length}function D(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function P(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var i={method:t};void 0!==n&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),e.element.contentWindow.postMessage(i,e.origin)}}function N(e,t){var n,i=[];if((t=D(t)).event)"error"===t.event&&L(e,t.data.method).forEach(function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),A(e,t.data.method,n)}),i=L(e,"event:".concat(t.event)),n=t.data;else if(t.method){var r=function(e,t){var n=L(e,t);if(n.length<1)return!1;var i=n.shift();return A(e,t,i),i}(e,t.method);r&&(i.push(r),n=t.value)}i.forEach(function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}var F=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return F.reduce(function(t,n){var i=e.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(t[n]=""===i?1:i),t},t)}function V(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(i,r){if(!b(e))throw new TypeError("\u201c".concat(e,"\u201d is not a vimeo.com url."));var s=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),i=0,r=[".videoji.hk",".vimeo.work",".videoji.cn"];i<r.length;i++){var s=r[i];if(n.endsWith(s))return n}return"vimeo.com"}(e),a="https://".concat(s,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var o in t)t.hasOwnProperty(o)&&(a+="&".concat(o,"=").concat(encodeURIComponent(t[o])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",a,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var t=JSON.parse(l.responseText);if(403===t.domain_status_code)return V(t,n),void r(new Error("\u201c".concat(e,"\u201d is not embeddable.")));i(t)}catch(e){r(e)}else r(new Error("\u201c".concat(e,"\u201d is not embeddable.")));else r(new Error("\u201c".concat(e,"\u201d was not found.")))},l.onerror=function(){var e=l.status?" (".concat(l.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},l.send()})}var W={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},j=function(e){!function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(h,e);var i,a,c,u=p(h);function h(e,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;return s(this,h),l(f(a=u.call(this)),"logger",void 0),l(f(a),"speedAdjustment",0),l(f(a),"adjustSpeed",function(){var e=r(n().mark(function e(t,i){var r;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.speedAdjustment!==i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=a.speedAdjustment,e.t2=e.t0-e.t1,e.t3=i,r=e.t2+e.t3,a.log("New playbackRate:  ".concat(r)),e.next=12,t.setPlaybackRate(r);case 12:a.speedAdjustment=i;case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),a.logger=c,a.init(i,e,t(t({},W),o)),a}return o(h,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(c=r(n().mark(function e(t,i,r){var s,a,o,l=this;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,i,r);case 5:s=S(t,"change",function(){return l.updatePlayer(t,i,r)}),a=this.maintainPlaybackPosition(t,i,r),this.addEventListener("disconnect",function(){a.cancel(),s.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,i);case 12:o=S(i,["seeked","play","pause","ratechange"],function(){return l.updateTimingObject(t,i)},"on","off"),this.addEventListener("disconnect",function(){return o.cancel()});case 14:case"end":return e.stop()}},e,this)})),function(e,t,n){return c.apply(this,arguments)})},{key:"updateTimingObject",value:(a=r(n().mark(function e(t,i){return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,i.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,i.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,i.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}},e)})),function(e,t){return a.apply(this,arguments)})},{key:"updatePlayer",value:(i=r(n().mark(function e(t,i,s){var a,o,l;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.query(),o=a.position,l=a.velocity,"number"==typeof o&&i.setCurrentTime(o),"number"!=typeof l){e.next=25;break}if(0!==l){e.next=11;break}return e.next=6,i.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}i.pause();case 9:e.next=25;break;case 11:if(!(l>
10)){e.next=25;break}return e.next=14,i.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,i.play().catch(function(){var e=r(n().mark(function e(t){return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!s.autoPlayMuted){e.next=5;break}return e.next=3,i.setMuted(!0);case 3:return e.next=5,i.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,i,s);case 19:return e.next=21,i.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=l,e.t2===e.t3){e.next=25;break}i.setPlaybackRate(l);case 25:case"end":return e.stop()}},e,this)})),function(e,t,n){return i.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,i){var s=this,a=i.allowedDrift,o=i.maxAllowedDrift,l=i.minCheckInterval,c=i.maxRateAdjustment,d=i.maxTimeToCatchUp,u=1e3*Math.min(d,Math.max(l,o)),h=function(){var i=r(n().mark(function i(){var r,l,u,h,m;return n().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,r=n.t2-n.t3,l=Math.abs(r),s.log("Drift: ".concat(r)),!(l>o)){n.next=22;break}return n.next=18,s.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),s.log("Resync by currentTime"),n.next=29;break;case 22:if(!(l>a)){n.next=29;break}return m=(u=l/d)<(h=c)?(h-u)/2:h,n.next=28,s.adjustSpeed(t,m*Math.sign(r));case 28:s.log("Resync by playbackRate");case 29:case"end":return n.stop()}},i)}));return function(){return i.apply(this,arguments)}}(),m=setInterval(function(){return h()},u);return{cancel:function(){return clearInterval(m)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise(function(n){!function i(){e.readyState===t?n():e.addEventListener("readystatechange",i,{once:!0})}()})}}]),h}(m(EventTarget)),z=new WeakMap,H=new WeakMap,$={},U=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var r=t.querySelector("iframe");r&&(t=r)}if("IFRAME"===t.nodeName&&!b(t.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(z.has(t))return z.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var a=new O(function(e,r){if(n._onMessage=function(t){if(b(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var i=D(t.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var s=new Error(i.data.message);return s.name=i.data.name,void r(s)}var a=i&&"ready"===i.event,o=i&&"ping"===i.method;if(a||o)return n.element.setAttribute("data-ready","true"),void e();N(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var s=q(t,i);R(T(s),s,t).then(function(e){var i,r,s,a=V(e,t);return n.element=a,n._originalElement=t,i=t,r=a,s=I.get(i),I.set(r,s),I.delete(i),z.set(n.element,n),e}).catch(r)}});if(H.set(this,a),z.set(this.element,this),"IFRAME"===this.element.nodeName&&P(this,"ping"),$.isEnabled){var o=function(){return $.exit()};this.fullscreenchangeHandler=function(){$.isFullscreen?_(n,"event:exitFullscreen",o):A(n,"event:exitFullscreen",o),n.ready().then(function(){P(n,"fullscreenchange",$.isFullscreen)})},$.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return o(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new O(function(i,r){return t.ready().then(function(){_(t,e,{resolve:i,reject:r}),P(t,e,n)}).catch(r)})}},{key:"get",value:function(e){var t=this;return new O(function(n,i){return e=v(e,"get"),t.ready().then(function(){_(t,e,{resolve:n,reject:i}),P(t,e)}).catch(i)})}},{key:"set",value:function(e,t){var n=this;return new O(function(i,r){if(e=v(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then(function(){_(n,e,{resolve:i,reject:r}),P(n,e,t)}).catch(r)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");
1if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===L(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),_(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");A(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=H.get(this)||new O(function(e,t){t(new Error("Unknown player. Probably unloaded."))});return O.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return $.isEnabled?$.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return $.isEnabled?$.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return $.isEnabled?O.resolve($.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new O(function(t){if(H.delete(e),z.delete(e.element),e._originalElement&&(z.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),$.isEnabled&&$.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return O.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new O(function(e,t){return t(new TypeError("Argument must be an array."))});var t=new O(function(e){return e(null)}),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return O.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
1},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=r(n().mark(function e(t,i){var r,s=this;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new j(this,t,i),P(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",function(){return P(s,"notifyTimingObjectDisconnect")}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})}]),e}();return y||($=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=t.length,r={};n<i;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)r[t[0][n]]=e[n];return r}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise(function(i,r){var s=function e(){n.off("fullscreenchange",e),i()};n.on("fullscreenchange",s);var a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(s).catch(r)})},exit:function(){return new Promise(function(t,i){if(n.isFullscreen){var r=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",r);var s=document[e.exitFullscreen]();s instanceof Promise&&s.then(r).catch(i)}else t()})},on:function(e,n){var i=t[e];i&&document.addEventListener(i,n)},off:function(e,n){var i=t[e];i&&document.removeEventListener(i,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=q(e);R(T(t),t,e).then(function(t){return V(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(b(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===t.source){n[i].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}
1))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(b(t.origin)){var n=D(t.data);if(n&&"ready"===n.event)for(var i=e.querySelectorAll("iframe"),r=0;r<i.length;r++){var s=i[r],a=s.contentWindow===t.source;w(s.src)&&a&&new U(s).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(n){if(b(n.origin)){var i=D(n.data);if(i&&"ready"===i.event)for(var r=e.querySelectorAll("iframe"),s=function(){var e=r[a],i=e.contentWindow===n.source;if(w(e.src)&&i){var s=new U(e);s.getVideoId().then(function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);s.setCurrentTime(n)}}).catch(t)}},a=0;a<r.length;a++)s()}})}}()),U},"object"==typeof e&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):((n="undefined"!=typeof globalThis?globalThis:n||self).Vimeo=n.Vimeo||{},n.Vimeo.Player=i())}}),require_micromodal=__commonJS({"node_modules/micromodal/dist/micromodal.js"(e,t){var n,i;n=e,i=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var i,r,s,a,o,l=(i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],r=function(){function n(e){var i=e.targetModal,r=e.triggers,s=void 0===r?[]:r,a=e.onShow,o=void 0===a?function(){}:a,l=e.onClose,c=void 0===l?function(){}:l,d=e.openTrigger,u=void 0===d?"data-micromodal-trigger":d,h=e.closeTrigger,m=void 0===h?"data-micromodal-close":h,f=e.openClass,p=void 0===f?"is-open":f,g=e.disableScroll,y=void 0!==g&&g,v=e.disableFocus,b=void 0!==v&&v,w=e.awaitCloseAnimation,T=void 0!==w&&w,S=e.awaitOpenAnimation,E=void 0!==S&&S,k=e.debugMode,x=void 0!==k&&k;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.modal=document.getElementById(i),this.config={debugMode:x,disableScroll:y,openTrigger:u,closeTrigger:m,openClass:p,onShow:o,onClose:c,awaitCloseAnimation:T,awaitOpenAnimation:E,disableFocus:b},s.length>0&&this.registerTriggers.apply(this,t(s)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var r,s;return r=n,(s=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n.filter(Boolean).forEach(function(t){t.addEventListener("click",function(t){return e.showModal(t)})})}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation?this.modal.addEventListener("animationend",function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",function e(){t.classList.remove(n),t.removeEventListener("animationend",e,!1)},!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}}
1,{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(i);return Array.apply(void 0,t(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var n=t.filter(function(t){return!t.hasAttribute(e.config.closeTrigger)});n.length>0&&n[0].focus(),0===n.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter(function(e){return null!==e.offsetParent}),this.modal.contains(document.activeElement)){var n=t.indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&e(r.prototype,s),n}(),s=null,a=function(e){if(!document.getElementById(e))return console.warn("MicroModal: \u2757Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},o=function(e,t){if(e.length<=0&&(console.warn("MicroModal: \u2757Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>')),!t)return!0;for(var n in t)a(n);return!0},{init:function(e){var n,i,a,l=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),c=t(document.querySelectorAll("[".concat(l.openTrigger,"]"))),d=(n=c,i=l.openTrigger,a=[],n.forEach(function(e){var t=e.attributes[i].value;void 0===a[t]&&(a[t]=[]),a[t].push(e)}),a);if(!0!==l.debugMode||!1!==o(c,d))for(var u in d){var h=d[u];l.targetModal=u,l.triggers=t(h),s=new r(l)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===a(e)||(s&&s.removeEventListeners(),(s=new r(n)).showModal())},close:function(e){e?s.closeModalById(e):s.closeModal()}});return"undefined"!=typeof window&&(window.MicroModal=l),l},"object"==typeof e&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(n="undefined"!=typeof globalThis?globalThis:n||self).MicroModal=i()}}),require_js_cookie=__commonJS({"node_modules/js-cookie/dist/js.cookie.js"(e,t){var n,i,r,s;n=e,i=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var t=function t(n,i){function r(t,r,s){if("undefined"!=typeof document){"number"==typeof(s=e({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var o in s)s[o]&&(a+="; "+o,!0!==s[o]&&(a+="="+s[o].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},r=0;r<t.length;r++){var s=t[r].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(i[o]=n.read(a,o),e===o)break}catch(e){}}return e?i[e]:i}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t},"object"==typeof e&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n.Cookies,(s=n.Cookies=i()).noConflict=function(){return n.Cookies=r,s})}}),require_lodash=__commonJS({"node_modules/lodash.debounce/index.js"(e,t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,o="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,c=o||l||Function("return this")(),d=Object.prototype.toString,u=Math.max,h=Math.min,m=function(){return c.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var o=r.test(e);return o||s.test(e)?a(e.slice(2),o?2:8):i.test(e)?NaN:+e}t.exports=function(e,t,n){var i,r,s,a,o,l,c=0,d=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,s=r;return i=r=void 0,c=t,a=e.apply(s,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=s}function w(){var e=m();if(b(e))return T(e);o=setTimeout(w,function(e){var n=t-(e-l);return g?h(n,s-(e-c)):n}(e))}function T(e){return o=void 0,y&&i?v(e):(i=r=void 0,a)}function S(){var e=m(),n=b(e);if(i=arguments,r=this,l=e,n){if(void 0===o)return function(e){return c=e,o=setTimeout(w,t),d?v(e):a}(l);if(g)return o=setTimeout(w,t),v(l)}return void 0===o&&(o=setTimeout(w,t)),a}return t=p(t)||0,f(n)&&(d=!!n.leading,s=(g="maxWait"in n)?u(p(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==o&&clearTimeout(o),c=0,i=l=r=o=void 0},S.flush=function(){return void 0===o?a:T(m())},S}}}),AccessibilityUtilities=class{static get focusableChildSelector(){return"a[href], button, input, textarea, select, details, video, iframe, table, [tabindex]:not
1([tabindex=\"-1\"]), [role='button'], .swiper-pagination .swiper-pagination-bullet"}static init(){this.disableTabbingWithinHiddenElements()}static convertAnchorToButton(e){if(e){const t=document.createElement("BUTTON");for(let n=0;n<e.attributes.length;n++){const i=e.attributes[n];if("href"!==i.name){if("role"===i.name&&"button"===i.value)continue;t.setAttribute(i.name,i.value)}}for(let n=0;n<e.childNodes.length;n++)t.appendChild(e.childNodes[n].cloneNode(!0));return e.parentElement.replaceChild(t,e),t}}static disableTabbingWithinHiddenElements(){new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&["aria-hidden","hidden"].includes(e.attributeName)&&e.target.nodeType===Node.ELEMENT_NODE){const t=e.target,n="hidden"===e.attributeName&&t.hasAttribute("hidden")||"aria-hidden"===e.attributeName&&"true"===t.getAttribute("aria-hidden");if(t.querySelectorAll(this.focusableChildSelector).forEach(e=>{e.closest("[aria-hidden]")===t&&setTimeout(()=>{e.tabIndex=n?-1:0},100)}),n){t.querySelectorAll("[aria-hidden='false']").forEach(e=>{e.setAttribute("data-original-aria-hidden","false"),e.setAttribute("aria-hidden","true")})}else{t.querySelectorAll("[data-original-aria-hidden]").forEach(e=>{const t=e.getAttribute("data-original-aria-hidden");e.setAttribute("aria-hidden",t||"true"),e.removeAttribute("data-original-aria-hidden")})}}})}).observe(document.body,{subtree:!0,attributes:!0,attributeOldValue:!0})}},defaultOptions={clickable:!0,titleClass:"card__title",ctaClass:"card__link"},Card=class{constructor(e,t=defaultOptions){this.clickable=!1,e&&(this.element=e,this.options={...defaultOptions,...t},this.titleLink=this.element.querySelector(`.${this.options.titleClass} a`),this.cta=this.element.querySelector(`.${this.options.ctaClass}`),this.clickable=this.options.clickable&&"false"!==this.element.dataset.clickable&&(!!this.cta||!!this.titleLink),this.init())}get href(){return this.titleLink?this.titleLink.href:this.cta?this.cta.href:""}get target(){return this.element.dataset.target?this.element.dataset.target:this.titleLink?this.titleLink.target:this.cta?this.cta.target:""}init(){this.clickable&&this.makeEntireCardClickable()}makeEntireCardClickable(){this.element.classList.add("card--clickable"),this.element.addEventListener("click",e=>{if("A"!==e.target.tagName)if("_blank"===this.target){window.open().location.href=this.href}else window.location.href=this.href})}};function cardsInit(){const e=document.querySelectorAll(".card");for(let t=0;t<e.length;t++)new Card(e[t])}var NewsFeed=class extends Card{constructor(e,t){super(e,t)}};function newsFeedInit(){const e=document.querySelectorAll(".news-feed__card");for(let t=0;t<e.length;t++)new NewsFeed(e[t],{clickable:!0,ctaClass:"news-feed__card-link"})}var Accordion=require_accordion_min(),AccordionJS=class{constructor(e){e&&(this.element=e,this.init())}init(){new Accordion(this.element,{duration:100,elementClass:"accordion__accordion",triggerClass:"accordion__trigger",panelClass:"accordion__content",showMultiple:!0,ariaEnabled:!0})}};function accordionInit(){const e=document.querySelectorAll(".accordion");for(let t=0;t<e.length;t++)new AccordionJS(e[t])}function isObject(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function extend(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:isObject(t[n])&&isObject(e[n])&&Object.keys(t[n]).length>0&&extend(e[n],t[n])})}var ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const e="undefined"!=typeof document?document:{};return extend(e,ssrDocument),e}var support,deviceCached,browser,ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
1,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function getWindow(){const e="undefined"!=typeof window?window:{};return extend(e,ssrWindow),e}function classesToTokens(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function deleteProps(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}function nextTick(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle2(e){const t=getWindow();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function getTranslate(e,t){void 0===t&&(t="x");const n=getWindow();let i,r,s;const a=getComputedStyle2(e);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix("none"===r?"":r)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function isObject2(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function isNode(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function extend2(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!isNode(i)){const n=Object.keys(Object(i)).filter(e=>t.indexOf(e)<0);for(let t=0,r=n.length;t<r;t+=1){const r=n[t],s=Object.getOwnPropertyDescriptor(i,r);void 0!==s&&s.enumerable&&(isObject2(e[r])&&isObject2(i[r])?i[r].__swiper__?e[r]=i[r]:extend2(e[r],i[r]):!isObject2(e[r])&&isObject2(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:extend2(e[r],i[r])):e[r]=i[r])}}}return e}function setCSSProperty(e,t,n){e.style.setProperty(t,n)}function animateCSSModeScroll(e){let{swiper:t,targetPosition:n,side:i}=e;const r=getWindow(),s=-t.translate;let a,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=n>s?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{a=(new Date).getTime(),null===o&&(o=a);const e=Math.max(Math.min((a-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let h=s+c*(n-s);if(d(h,n)&&(h=n),t.wrapperEl.scrollTo({[i]:h}),d(h,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:h})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(u)};u()}function elementChildren(e,t){void 0===t&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function elementIsChildOf(e,t){const n=t.contains(e);if(!n&&t instanceof HTMLSlotElement){return[...t.assignedElements()].includes(e)}return n}function showWarning(e){try{return void console.warn(e)}catch(e){}}function createElement(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:classesToTokens(t)),n}function elementOffset(e){const t=getWindow(),n=getDocument(),i=e.getBoundingClientRect(),r=n.body,s=e.clientTop||r.clientTop||0,a=e.clientLeft||r.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+o-s,left:i.left+l-a}}function elementPrevAll(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function elementNextAll(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function elementStyle(e,t){return getWindow().getComputedStyle(e,null).getPropertyValue(t)}function elementIndex(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function elementParents(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function elementOuterSize(e,t,n){const i=getWindow();
1return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function makeElementsArray(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function calcSupport(){const e=getWindow(),t=getDocument();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}function calcDevice(e){let{userAgent:t}=void 0===e?{}:e;const n=getSupport(),i=getWindow(),r=i.navigator.platform,s=t||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===r;let f="MacIntel"===r;return!d&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!m&&(a.os="android",a.android=!0),(d||h||u)&&(a.os="ios",a.ios=!0),a}function getDevice(e){return void 0===e&&(e={}),deviceCached||(deviceCached=calcDevice(e)),deviceCached}function calcBrowser(){const e=getWindow(),t=getDevice();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=i();return{isSafari:n||s,needPerspectiveFix:n,need3dFix:s||r&&t.ios,isWebView:r}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(e){let{swiper:t,on:n,emit:i}=e;const r=getWindow();let s=null,a=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver(e=>{a=r.requestAnimationFrame(()=>{const{width:n,height:i}=t;let r=n,s=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,s=i?i.height:(n[0]||n).blockSize)}),r===n&&s===i||o()})}),s.observe(t.el)):(r.addEventListener("resize",o),r.addEventListener("orientationchange",l))}),n("destroy",()=>{a&&r.cancelAnimationFrame(a),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",l)})}function Observer(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const s=[],a=getWindow(),o=function(e,n){void 0===n&&(n={});const i=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const n=function(){r("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),s.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=elementParents(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}}),i("destroy",()=>{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}var eventsEmitter={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];t.apply(i,s)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e
vendor: 4,844 bytes, line 1
1=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];"string"==typeof s[0]||Array.isArray(s[0])?(t=s[0],n=s.slice(1,s.length),i=e):(t=s[0].events,n=s[0].data,i=s[0].context||e),n.unshift(i);return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(i,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(i,n)})}),e}};function updateSize(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(elementStyle(i,"padding-left")||0,10)-parseInt(elementStyle(i,"padding-right")||0,10),n=n-parseInt(elementStyle(i,"padding-top")||0,10)-parseInt(elementStyle(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function updateSlides(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=elementChildren(r,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const m=[],f=[];let p=n.slidesOffsetBefore;"function"==typeof p&&(p=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let b=n.spaceBetween,w=-p,T=0,S=0;if(void 0===s)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*s:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b,d.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(setCSSProperty(i,"--swiper-centered-offset-before",""),setCSSProperty(i,"--swiper-centered-offset-after",""));const E=n.grid&&n.grid.rows>1&&e.grid;let k;E?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const x="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<u;i+=1){let r;if(k=0,d[i]&&(r=d[i]),E&&e.grid.updateSlide(i,r,d),!d[i]||"none"!==elementStyle(r,"display")){if("auto"===n.slidesPerView){x&&(d[i].style[e.getDirectionLabel("width")]="");const s=getComputedStyle(r),a=r.style.transform,o=r.style.webkitTransform;if(a&&(r.style.transform="none"),o&&(r.style.webkitTransform="none"),n.roundLengths)k=e.isHorizontal()?elementOuterSize(r,"width",!0):elementOuterSize(r,"height",!0);else{const e=t(s,"width"),n=t(s,"padding-left"),i=t(s,"padding-right"),a=t(s,"margin-left"),o=t(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+a+o;else{const{clientWidth:t,offsetWidth:s}=r;k=e+n+i+a+o+(s-t)}}a&&(r.style.transform=a),o&&(r.style.webkitTransform=o),n.roundLengths&&(k=Math.floor(k))}else k=(s-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),d[i]&&(d[i].style[e.getDirectionLabel("width")]=`${k}px`);d[i]&&(d[i].swiperSlideSize=k),f.push(k),n.centeredSlides?(w=w+k/2+T/2+b,0===T&&0!==i&&(w=w-s/2-b),0===i&&(w=w-s/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup===0&&h.push(w),m.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&h.push(w),m.push(w),w=w+k+b),e.virtualSize+=k+b,T=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,a&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),E&&e.grid.updateWrapperSize(k,h),!n.centeredSlides){const t=[];for(let i=0;i<h.length;i+=1){let r=h[i];n.roundLengths&&(r=Math.floor(r)),h[i]<=e.virtualSize-s&&t.push(r)}h=t,Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-s)}if(l&&n.loop){const t=f[0]+b;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)h.push(h[h.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&h.push(h[h.length-1]+t),m.push(m[m.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==b){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>
vendor: 4,179 bytes, line 1
1!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>s?e-s:0;h=h.map(e=>e<=0?-p:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;f.forEach(t=>{e+=t+(b||0)}),e-=b;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<s){const n=(s-e-t)/2;h.forEach((e,t)=>{h[t]=e-n}),m.forEach((e,t)=>{m[t]=e+n})}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:m,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){setCSSProperty(i,"--swiper-centered-offset-before",-h[0]+"px"),setCSSProperty(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit("slidesLengthChange"),h.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}}function updateAutoHeight(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;s=e>s?e:s}(s||0===s)&&(t.wrapperEl.style.height=`${s}px`)}function updateSlidesOffset(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()}var toggleSlideClasses$1=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function updateSlidesProgress(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:s}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;r&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),u=(a-s[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),h=-(a-c),m=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e],p=h>=0&&h<t.size-1||m>1&&m<=t.size||h<=0&&m>=t.size;p&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),toggleSlideClasses$1(l,p,n.slideVisibleClass),toggleSlideClasses$1(l,f,n.slideFullyVisibleClass),l.progress=r?-d:d,l.originalProgress=r?-u:u}}function updateProgress(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:a,progressLoop:o}=t;const l=s,c=a;if(0===i)r=0,s=!0,a=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;s=n||r<=0,a=o||r>=1,n&&(r=0),o&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],s=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=r?(l-r)/a:(l+a-s)/a,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||
1c&&!a)&&t.emit("fromEdge"),t.emit("progress",r)}var toggleSlideClasses=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function updateSlidesClasses(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,s=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,o=e=>elementChildren(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(s)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else a?(l=t.filter(e=>e.column===r)[0],d=t.filter(e=>e.column===r+1)[0],c=t.filter(e=>e.column===r-1)[0]):l=t[r];l&&(a||(d=elementNextAll(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=elementPrevAll(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{toggleSlideClasses(e,e===l,n.slideActiveClass),toggleSlideClasses(e,e===d,n.slideNextClass),toggleSlideClasses(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()}var processLazyPreloader=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},unlazy=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},preload=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,s=[n-t];return s.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{s.includes(t.column)&&unlazy(e,n)})}const s=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=s+t;i+=1){const t=(i%n+n)%n;(t<r||t>s)&&unlazy(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(s+t,n-1);i+=1)i!==r&&(i>s||i<r)&&unlazy(e,i)};function getActiveIndexByTranslate(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}function updateActiveIndex(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:s,realIndex:a,snapIndex:o}=t;let l,c=e;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=getActiveIndexByTranslate(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===s&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&r.grid&&r.grid.rows>1;let h;if(t.virtual&&r.virtual.enabled&&r.loop)h=d(c);else if(u){const e=t.slides.filter(e=>e.column===c)[0];let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:h,previousIndex:s,activeIndex:c}),t.initialized&&preload(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))}function updateClickedSlide(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>
11&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let s,a=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){a=!0,s=e;break}if(!r||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var update={updateSize:updateSize,updateSlides:updateSlides,updateAutoHeight:updateAutoHeight,updateSlidesOffset:updateSlidesOffset,updateSlidesProgress:updateSlidesProgress,updateProgress:updateProgress,updateSlidesClasses:updateSlidesClasses,updateActiveIndex:updateActiveIndex,updateClickedSlide:updateClickedSlide};function getSwiperTranslate(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let s=getTranslate(r,e);return s+=this.cssOverflowAdjustment(),n&&(s=-s),s||0}function setTranslate(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:s,progress:a}=n;let o=0,l=0;let c;n.isHorizontal()?o=i?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:l,r.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-l:r.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${l}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();c=0===d?0:(e-n.minTranslate())/d,c!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,s.updateProgress(d),a.cssMode){const e=s.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return animateCSSModeScroll({swiper:s,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(s.setTransition(0),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate:setTranslate,minTranslate:minTranslate,maxTranslate:maxTranslate,translateTo:translateTo};function setTransition(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)}function transitionEmit(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:s,previousIndex:a}=t;let o=i;if(o||(o=s>a?"next":s<a?"prev":"reset"),t.emit(`transition${r}`),n&&s!==a){if("reset"===o)return void t.emit(`slideResetTransition${r}`);t.emit(`slideChangeTransition${r}`),"next"===o?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`)}}function transitionStart(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),transitionEmit({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function transitionEnd(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),transitionEmit({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var transition={setTransition:setTransition,transitionStart:transitionStart,transitionEnd:transitionEnd};function slideTo(e,t,n,i,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:m,enabled:f}=s;if(!f&&!i&&!r||s.destroyed||s.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=s.params.speed);const p=Math.min(s.params.slidesPerGroupSkip,a);let g=p+Math.floor((a-p)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*y),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(s.initialized&&a!==u){if(!s.allowSlideNext&&(h?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate()))return!1;if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(u||0)!==a)return!1}let v;a!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y),v=a>u?"next":a<u?"prev":"reset";const b=s.virtual&&s.params.virtual.enabled;if(!(b&&r)&&(h&&-y===s.translate||!h&&y===s.translate))return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(y),"reset"!==v&&(s.transitionStart(n,v),s.transitionEnd(n,v)),!1;if(o.cssMode){const e=s.isHorizontal(),n=h?y:-y;if(0===t)b&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),b&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=n})):m[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return animateCSSModeScroll({swiper:s,targetPosition:n,side:e?"left"
1:"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,v),0===t?s.transitionEnd(n,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,v))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(e,t,n,i){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let e;if(s){const t=a*r.params.grid.rows;e=r.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=r.getSlideIndexByData(a);const t=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n}=r.params;let o=r.params.slidesPerView;"auto"===o?o=r.slidesPerViewDynamic():(o=Math.ceil(parseFloat(r.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),i&&n&&"auto"!==r.params.slidesPerView&&!s&&(l=!1),l){const i=n?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(s){const e=a*r.params.grid.rows;a=r.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,t,n,i)}),r}function slideNext(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:r,params:s,animating:a}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let o=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<s.slidesPerGroupSkip?1:o,c=i.virtual&&s.virtual.enabled;if(s.loop){if(a&&!c&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)}function slidePrev(e,t,n){void 0===t&&(t=!0);const i=this,{params:r,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?i.translate:-i.translate),m=s.map(e=>u(e));let f=s[m.indexOf(h)-1];if(void 0===f&&r.cssMode){let e;
1s.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(f=s[e>0?e-1:e])}let p=0;if(void 0!==f&&(p=a.indexOf(f),p<0&&(p=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(p=p-i.slidesPerViewDynamic("previous",!0)+1,p=Math.max(p,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(p,e,t,n)}),!0):i.slideTo(p,e,t,n)}function slideReset(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)}function slideToClosest(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*i&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,n)}function slideToClickedSlide(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-i/2||s>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),s=e.getSlideIndex(elementChildren(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),nextTick(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-i?(e.loopFix(),s=e.getSlideIndex(elementChildren(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),nextTick(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var slide={slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide};function loopCreate(e){const t=this,{params:n,slidesEl:i}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const r=()=>{elementChildren(i,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},s=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),o=t.slides.length%a!==0,l=s&&t.slides.length%n.grid.rows!==0,c=e=>{for(let i=0;i<e;i+=1){const e=t.isElement?createElement("swiper-slide",[n.slideBlankClass]):createElement("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};if(o){if(n.loopAddBlankSlides){c(a-t.slides.length%a),t.recalcSlides(),t.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(l){if(n.loopAddBlankSlides){c(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()}else showWarning("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function loopFix(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:r,activeSlideIndex:s,byController:a,byMousewheel:o}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:m}=l,{centeredSlides:f}=m;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&m.virtual.enabled)return n&&(m.centeredSlides||0!==l.snapIndex?m.centeredSlides&&l.snapIndex<m.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let p=m.slidesPerView;"auto"===p?p=l.slidesPerViewDynamic():(p=Math.ceil(parseFloat(m.slidesPerView,10)),f&&p%2==0&&(p+=1));const g=m.slidesPerGroupAuto?p:m.slidesPerGroup;let y=g;y%g!==0&&(y+=g-y%g),y+=m.loopAdditionalSlides,l.loopedSlides=y;const v=l.grid&&m.grid&&m.grid.rows>1;c.length<p+y?showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):v&&"row"===m.grid.fill&&showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],w=[];let T=l.activeIndex;void 0===s?s=l.getSlideIndex(c.filter(e=>e.classList.contains(m.slideActiveClass))[0]):T=s;const S="next"===i||!i,E="prev"===i||!i;let k=0,x=0;const C=v?Math.ceil(c.length/m.grid.rows):c.length,M=(v?c[s].column:s)+(f&&void 0===r?-p/2+.5:0);if(M<y){k=Math.max(y-M,g);for(let e=0;e<y-M;e+=1){const t=e-Math.floor(e/C)*C;if(v){const e=C-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&b.push(t)}else b.push(C-t-1)}}else if(M+p>C-y){x=Math.max(M-(C-2*y),g);for(let e=0;e<x;e+=1){const t=e-Math.floor(e/C)*C;
vendor: 6,190 bytes, line 1
1v?c.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),E&&b.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),S&&w.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===m.slidesPerView?l.updateSlides():v&&(b.length>0&&E||w.length>0&&S)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),m.watchSlidesProgress&&l.updateSlidesOffset(),n)if(b.length>0&&E){if(void 0===t){const e=l.slidesGrid[T],t=l.slidesGrid[T+k]-e;o?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(k),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=v?b.length/m.grid.rows:b.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&S)if(void 0===t){const e=l.slidesGrid[T],t=l.slidesGrid[T-x]-e;o?l.setTranslate(l.translate-t):(l.slideTo(T-x,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=v?w.length/m.grid.rows:w.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:i,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===m.slidesPerView&&n})}l.emit("loopFix")}function loopDestroy(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var loop={loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy};function setGrabCursor(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function unsetGrabCursor(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var grabCursor={setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor};function closestElement(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===getDocument()||n===getWindow())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}function preventEdgeSwipe(e,t,n){const i=getWindow(),{params:r}=e,s=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return!s||!(n<=a||n>=i.innerWidth-a)||"prevent"===s&&(t.preventDefault(),!0)}function onTouchStart(e){const t=this,n=getDocument();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void preventEdgeSwipe(t,i,i.targetTouches[0].pageX);const{params:s,touches:a,enabled:o}=t;if(!o)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=i.target;if("wrapper"===s.touchEventsTarget&&!elementIsChildOf(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!i.target||!i.target.shadowRoot);if(s.noSwiping&&(h?closestElement(u,l):l.closest(u)))return void(t.allowClick=!0);if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const m=a.currentX,f=a.currentY;if(!preventEdgeSwipe(t,i,m))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=f,r.touchStartTime=now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let p=!0;l.matches(r.focusableElements)&&(p=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const g=p&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!g||l.isContentEditable||i.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function onTouchMove(e){const t=getDocument(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:a,enabled:o}=n;if(!o)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].filter(e=>e.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);
vendor: 4,415 bytes, line 1
1if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=now()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(u<s.startY&&n.translate<=n.maxTranslate()||u>s.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,m=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(h**2+m**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(h))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=n.isHorizontal()?h:m,p=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),p=Math.abs(p)*(a?1:-1)),s.diff=f,f*=r.touchRatio,a&&(f=-f,p=-p);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=p>0?"prev":"next";const y=n.params.loop&&!r.cssMode,v="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(y&&v&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),i.isMoved&&i.allowThresholdMove&&g!==n.touchesDirection&&y&&v&&Math.abs(f)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),f>0?(y&&v&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**w))):f<0&&(y&&v&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**w))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 4,941 bytes, line 1
1if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function onTouchEnd(e){const t=this,n=t.touchEventsData;let i,r=e;r.originalEvent&&(r=r.originalEvent);if("touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].filter(e=>e.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)){if(!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:s,touches:a,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c)return;if(!s.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=now(),u=d-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=now(),nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=s.followFinger?o?t.translate:-t.translate:-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const m=h>=-t.maxTranslate()&&!t.params.loop;let f=0,p=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[e+t]?(m||h>=l[e]&&h<l[e+t])&&(f=e,p=l[e+t]-l[e]):(m||h>=l[e])&&(f=e,p=l[l.length-1]-l[l.length-2])}let g=null,y=null;s.rewind&&(t.isBeginning?y=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(h-l[f])/p,b=f<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(f+b):null!==y&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(y):t.slideTo(f))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:f))}}function onResize(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function onClick(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function onScroll(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();r=0===s?0:(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function onLoad(e){const t=this;processLazyPreloader(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 3,756 bytes, line 1
1)}function onDocumentTouchStart(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var events=(e,t)=>{const n=getDocument(),{params:i,el:r,wrapperEl:s,device:a}=e,o=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&s[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):e[c]("observerUpdate",onResize,!0),r[l]("load",e.onLoad,{capture:!0}))};function attachEvents(){const e=this,{params:t}=e;e.onTouchStart=onTouchStart.bind(e),e.onTouchMove=onTouchMove.bind(e),e.onTouchEnd=onTouchEnd.bind(e),e.onDocumentTouchStart=onDocumentTouchStart.bind(e),t.cssMode&&(e.onScroll=onScroll.bind(e)),e.onClick=onClick.bind(e),e.onLoad=onLoad.bind(e),events(e,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents:attachEvents,detachEvents:detachEvents},isGridEnabled=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function setBreakpoint(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const a=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const o=(a in s?s[a]:void 0)||e.originalParams,l=isGridEnabled(e,i),c=isGridEnabled(e,o),d=e.params.grabCursor,u=o.grabCursor,h=i.enabled;l&&!c?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(r.classList.add(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!u?e.unsetGrabCursor():!d&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===o[t])return;const n=i[t]&&i[t].enabled,r=o[t]&&o[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const m=o.direction&&o.direction!==i.direction,f=i.loop&&(o.slidesPerView!==i.slidesPerView||m),p=i.loop;m&&n&&e.changeDirection(),extend2(e.params,o);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!g?e.disable():!h&&g&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",o),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!p&&y?(e.loopCreate(t),e.updateSlides()):p&&!y&&e.loopDestroy()),e.emit("breakpoint",o)}function getBreakpoint(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=getWindow(),s="window"===t?r.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:s,value:o}=a[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}
1var breakpoints={setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint};function prepareClasses(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}function addClasses(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:s}=e,a=prepareClasses(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()}function removeClasses(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}var classes={addClasses:addClasses,removeClasses:removeClasses};function checkOverflow(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow:checkOverflow},defaults={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),extend2(t,n)):extend2(t,n)):extend2(t,n)}}var prototypes={eventsEmitter:eventsEmitter,update:update,translate:translate,transition:transition,slide:slide,loop:loop,grabCursor:grabCursor,events:events$1,breakpoints:breakpoints,checkOverflow:checkOverflow$1,classes:classes},extendedDefaults={},Swiper=class e{constructor(){let t,n;for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?n=r[0]:[t,n]=r,n||(n={}),n=extend2({},n),t&&!n.el&&(n.el=t);const a=getDocument();if(n.el&&"string"==typeof n.el&&a.querySelectorAll(n.el).length>1){const t=[];return a.querySelectorAll(n.el).forEach(i=>
vendor: 8,926 bytes, line 1
1{const r=extend2({},n,{el:i});t.push(new e(r))}),t}const o=this;o.__swiper__=!0,o.support=getSupport(),o.device=getDevice({userAgent:n.userAgent}),o.browser=getBrowser(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach(e=>{e({params:n,swiper:o,extendParams:moduleExtendParams(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=extend2({},defaults,l);return o.params=extend2({},c,extendedDefaults,n),o.originalParams=extend2({},o.params),o.passedParams=extend2({},n),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=elementIndex(elementChildren(t,`.${n.slideClass}, swiper-slide`)[0]);return elementIndex(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=elementChildren(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[o]?Math.ceil(i[o].swiperSlideSize):0;for(let n=o+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<i.length;e+=1){(t?r[e]+s[e]-r[o]<a:r[e]-r[o]<a)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){r[o]-r[e]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&processLazyPreloader(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(i())}return elementChildren(n,i())[0]})();return!r&&t.params.createElements&&(r=createElement("div",t.params.wrapperClass),n.append(r),elementChildren(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===elementStyle(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===elementStyle(n,"direction")),wrongRTL:"-webkit-box"===elementStyle(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?processLazyPreloader(t,e):e.addEventListener("load",e=>{processLazyPreloader(t,e.target)})}),preload(t),t.initialized=!0,preload(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:r,wrapperEl:s,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),s&&s.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),deleteProps(n)),n.destroyed=!0),null}static extendDefaults(e){extend2(extendedDefaults,e)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};function Keyboard(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const s=getDocument(),a=getWindow();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);
vendor: 1,807 bytes, line 1
1const o=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,m=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&h||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&m||c))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||s.activeElement&&s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||u||h||m||f)){let e=!1;if(elementParents(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===elementParents(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,r=i.clientWidth,s=i.clientHeight,o=a.innerWidth,l=a.innerHeight,c=elementOffset(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+s],[c.left+r,c.top+s]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((d||h)&&!n||(c||u)&&n)&&t.slideNext(),((c||u)&&!n||(d||h)&&n)&&t.slidePrev()):((c||d||m||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(d||f)&&t.slideNext(),(c||m)&&t.slidePrev()),r("keyPress",o)}}function l(){t.keyboard.enabled||(s.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(s.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{t.params.keyboard.enabled&&l()}),i("destroy",()=>{t.keyboard.enabled&&c()}),Object.assign(t.keyboard,{enable:l,disable:c})}function createElementIfNotDefined(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
vendor: 1,539 bytes, line 1
1h(r=>{if(!n[r]&&!0===n.auto){let s=elementChildren(e.el,`.${i[r]}`)[0];s||(s=createElement("div",i[r]),s.className=i[r],e.el.append(s)),n[r]=s,t[r]=s}}),n}function Navigation(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;function s(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const i=t.params.navigation;(e=makeElementsArray(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))})}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=createElementIfNotDefined(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=s(e.nextEl),i=s(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}
1),n=makeElementsArray(n),i=makeElementsArray(i);const r=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function u(){let{nextEl:e,prevEl:n}=t.navigation;e=makeElementsArray(e),n=makeElementsArray(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",()=>{!1===t.params.navigation.enabled?h():(d(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{u()}),i("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=makeElementsArray(e),n=makeElementsArray(n),t.enabled?o():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),i("click",(e,n)=>{let{nextEl:i,prevEl:s}=t.navigation;i=makeElementsArray(i),s=makeElementsArray(s);const a=n.target;let o=s.includes(a)||i.includes(a);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find(e=>i.includes(e)||s.includes(e)))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...i,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})}function classesToSelector(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const s="swiper-pagination";let a;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function d(e){const n=e.target.closest(classesToSelector(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=elementIndex(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(r=t.realIndex,s=i,a=t.slides.length,(s%=a)===1+(r%=a)?"next":s===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var r,s,a}function u(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,s,d=t.pagination.el;d=makeElementsArray(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;
1if(t.params.loop?(s=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,s=t.previousSnapIndex):(s=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,u,h;if(n.dynamicBullets&&(a=elementOuterSize(r[0],t.isHorizontal()?"width":"height",!0),d.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=a*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==s&&(o+=i-(s||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(i-o,0),u=l+(Math.min(r.length,n.dynamicMainBullets)-1),h=(u+l)/2),r.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)r.forEach(e=>{const r=elementIndex(e);r===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(r>=l&&r<=u&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===l&&c(e,"prev"),r===u&&c(e,"next"))});else{const e=r[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[l],t=r[u];for(let e=l;e<=u;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),s=(a*i-a)/2-h*a,o=e?"right":"left";r.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=`${s}px`})}}d.forEach((e,s)=>{if("fraction"===n.type&&(e.querySelectorAll(classesToSelector(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),e.querySelectorAll(classesToSelector(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(h)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(i+1)/h;let a=1,o=1;"horizontal"===r?a=s:o=s,e.querySelectorAll(classesToSelector(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,i+1,h),0===s&&r("paginationRender",e)):(0===s&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function h(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=makeElementsArray(i);let s="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?s+=e.renderBullet.call(t,n,e.bulletClass):s+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach(n=>{"custom"!==e.type&&(n.innerHTML=s||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(classesToSelector(e.bulletClass)))}),"custom"!==e.type&&r("paginationRender",i[0])}function m(){t.params.pagination=createElementIfNotDefined(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.filter(e=>elementParents(e,".swiper")[0]===t.el)[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}
1),n=makeElementsArray(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",d),t.enabled||n.classList.add(e.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=makeElementsArray(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
1n=makeElementsArray(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.pagination.enabled?p():(m(),h(),u())}),i("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),i("snapIndexChange",()=>{u()}),i("snapGridLengthChange",()=>{h(),u()}),i("destroy",()=>{f()}),i("enable disable",()=>{let{el:e}=t.pagination;e&&(e=makeElementsArray(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{u()}),i("click",(e,n)=>{const i=n.target,s=makeElementsArray(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=s[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),s.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const p=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=makeElementsArray(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=makeElementsArray(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),m(),h(),u()},disable:p,render:h,update:u,init:m,destroy:f})}function A11y(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,s,a=null,o=(new Date).getTime();function l(e){const t=a;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function m(e,t){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function p(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(classesToSelector(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=makeElementsArray(t.navigation.prevEl);makeElementsArray(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&i.matches(classesToSelector(t.params.pagination.bulletClass))&&i.click()}}function y(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function v(){return y()&&t.params.pagination.clickable}const b=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),m(e,n),function(e,t){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},w=e=>{s&&s!==e.target&&!s.contains(e.target)&&(r=!0),t.a11y.clicked=!0},T=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},S=e=>{o=(new Date).getTime()},E=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;s=n;const i=t.slides.indexOf(n)===t.activeIndex,a=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{r||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),r=!1)}))},k=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const n=t.slides.length;
1e.slideLabelMessage&&t.slides.forEach((i,r)=>{const s=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;m(i,e.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,n))})},x=()=>{const e=t.params.a11y;t.el.append(a);const n=t.el;e.containerRoleDescriptionMessage&&h(n,e.containerRoleDescriptionMessage),e.containerMessage&&m(n,e.containerMessage),e.containerRole&&u(n,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${s=16,void 0===s&&(s=16),"x".repeat(s).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var s;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=r,makeElementsArray(i).forEach(e=>{e.setAttribute("id",l)}),function(e,t){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(i,o),k();let{nextEl:c,prevEl:d}=t.navigation?t.navigation:{};if(c=makeElementsArray(c),d=makeElementsArray(d),c&&c.forEach(t=>b(t,r,e.nextSlideMessage)),d&&d.forEach(t=>b(t,r,e.prevSlideMessage)),v()){makeElementsArray(t.pagination.el).forEach(e=>{e.addEventListener("keydown",g)})}getDocument().addEventListener("visibilitychange",S),t.el.addEventListener("focus",E,!0),t.el.addEventListener("focus",E,!0),t.el.addEventListener("pointerdown",w,!0),t.el.addEventListener("pointerup",T,!0)};i("beforeInit",()=>{a=createElement("span",t.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),i("afterInit",()=>{t.params.a11y.enabled&&x()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&k()}),i("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),d(n)):(p(n),c(n))),e&&(t.isEnd?(f(e),d(e)):(p(e),c(e)))}()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;y()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(u(n,"button"),m(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(n)+1)))),n.matches(classesToSelector(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){a&&a.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=makeElementsArray(e),n=makeElementsArray(n),e&&e.forEach(e=>e.removeEventListener("keydown",g)),n&&n.forEach(e=>e.removeEventListener("keydown",g)),v()&&makeElementsArray(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)});getDocument().removeEventListener("visibilitychange",S),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",E,!0),t.el.removeEventListener("pointerdown",w,!0),t.el.removeEventListener("pointerup",T,!0))}()})}function Autoplay(e){let t,n,{swiper:i,extendParams:r,on:s,emit:a,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,d,u,h,m,f,p,g=o&&o.autoplay?o.autoplay.delay:3e3,y=o&&o.autoplay?o.autoplay.delay:3e3,v=(new Date).getTime();function b(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",b),p||e.detail&&e.detail.bySwiperTouchMove||x())}const w=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(y=l,c=!1);const e=i.autoplay.paused?l:v+y-(new Date).getTime();i.autoplay.timeLeft=e,a("autoplayTimeLeft",e,e/g),n=requestAnimationFrame(()=>{w()})},T=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(n),w();let r=void 0===e?i.params.autoplay.delay:e;g=i.params.autoplay.delay,y=i.params.autoplay.delay;const s=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(s)&&s>0&&void 0===e&&(r=s,g=s,y=s),l=r;const o=i.params.speed,c=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(o,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,o,!0,!0),a("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(o,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,o,!0,!0),a("autoplay")),i.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{T()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{c()},r)):requestAnimationFrame(()=>{c()}),r},S=()=>{v=(new Date).getTime(),i.autoplay.running=!0,T(),a("autoplayStart")},E=()=>
1{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),a("autoplayStop")},k=(e,n)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const r=()=>{a("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",b):x()};if(i.autoplay.paused=!0,n)return m&&(l=i.params.autoplay.delay),m=!1,void r();const s=l||i.params.autoplay.delay;l=s-((new Date).getTime()-v),i.isEnd&&l<0&&!i.params.loop||(l<0&&(l=0),r())},x=()=>{i.isEnd&&l<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(v=(new Date).getTime(),f?(f=!1,T(l)):T(),i.autoplay.paused=!1,a("autoplayResume"))},C=()=>{if(i.destroyed||!i.autoplay.running)return;const e=getDocument();"hidden"===e.visibilityState&&(f=!0,k(!0)),"visible"===e.visibilityState&&x()},M=e=>{"mouse"===e.pointerType&&(f=!0,p=!0,i.animating||i.autoplay.paused||k(!0))},O=e=>{"mouse"===e.pointerType&&(p=!1,i.autoplay.paused&&x())};s("init",()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",M),i.el.addEventListener("pointerleave",O)),getDocument().addEventListener("visibilitychange",C),S())}),s("destroy",()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",M),i.el.removeEventListener("pointerleave",O)),getDocument().removeEventListener("visibilitychange",C),i.autoplay.running&&E()}),s("_freeModeStaticRelease",()=>{(u||f)&&x()}),s("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?E():k(!0,!0)}),s("beforeTransitionStart",(e,t,n)=>{!i.destroyed&&i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?k(!0,!0):E())}),s("sliderFirstMove",()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?E():(d=!0,u=!1,f=!1,h=setTimeout(()=>{f=!0,u=!0,k(!0)},200)))}),s("touchEnd",()=>{if(!i.destroyed&&i.autoplay.running&&d){if(clearTimeout(h),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&i.params.cssMode&&x(),u=!1,d=!1}}),s("slideChange",()=>{!i.destroyed&&i.autoplay.running&&(m=!0)}),Object.assign(i.autoplay,{start:S,stop:E,pause:k,resume:x})}Object.keys(prototypes).forEach(e=>{Object.keys(prototypes[e]).forEach(t=>{Swiper.prototype[t]=prototypes[e][t]})}),Swiper.use([Resize,Observer]);var Carousel=class{constructor(e){e&&(this.element=e,this.init())}init(){const e={autoHeight:!0,slidesPerView:"auto",spaceBetween:0,centeredSlides:!0,loop:!0,modules:[Navigation,A11y,Keyboard],a11y:{enabled:!0,nextSlideMessage:"Next",prevSlideMessage:"Previous"},keyboard:{enabled:!0},navigation:{nextEl:".swiper__prev-next--next",prevEl:".swiper__prev-next--prev"}};new Swiper(this.element,e)}};function carouselInit(){const e=document.querySelectorAll(".carousel");for(let t=0;t<e.length;t++)new Carousel(e[t])}var Headroom=require_headroom(),mobileMQ=window.matchMedia("(max-width: 1199px)"),SiteHeader=class{constructor(e){this.visible=!1,this.searchVisible=!1,this.selectedMainNavSectionIndex=null,this.audienceMenuVisible=!1,e&&(this.element=e,this.openButton=AccessibilityUtilities.convertAnchorToButton(document.querySelector(`[aria-controls="${this.element.id}"]`)),this.parentNavItems=this.element.querySelectorAll(".site-header__mega-menu-main-nav > ul > li"),this.subNavs=this.element.querySelectorAll(".site-header__mega-menu-main-nav-subnav"),this.subnavToggleLinks=this.element.querySelectorAll(".site-header__mega-menu-main-nav > ul > li > a"),this.searchTrigger=AccessibilityUtilities.convertAnchorToButton(document.querySelector(".site-header__search-toggle")),this.searchForm=document.querySelector(".site-header__search-form"),this.formInput=document.querySelector(".site-header__search-form #search"),this.mobileSubnavBackButtons=this.element.querySelectorAll(".site-header__mega-menu-main-nav-subnav-back"),this.secondaryMenu=this.element.querySelector(".site-header__mega-menu-secondary"),this.skipLink=document.querySelector(".skip-link"),this.mainPageContent=document.querySelector("main"),this.audienceMenuTriggerDesktop=AccessibilityUtilities.convertAnchorToButton(document.querySelector(".site-header__audience-trigger")),this.audienceMenu=document.querySelector(".site-header__top .site-header__audience-inner"),this.isHybridVariant=document.querySelector(".site-header").classList.contains("site-header--hybrid"),this.isHamburgerVariant=document.querySelector(".site-header").classList.contains("site-header--hamburger"),this.init())}init(){this.initialState(),this.handleResize(),this.handleEsc(),this.handleOpenButtonClick(),this.handleTransitionEnd(),this.handleSubnavToggleClicks(),this.handleMobileSubnavBackButtons(),this.handleOutsideClick(),this.handleSkipLinkClick(),this.handleSearch(),this.closeSearchEscape(),this.closeSearchOutsideClick(),this.searchTabPast(),this.handleAudienceMenu()}handleResize(){const e=()=>{this.handleStates(),this.initStickyNav()};mobileMQ.addEventListener("change",e),e()}initialState(){this.openButton.setAttribute("aria-expanded","fal
1se"),this.subNavs.forEach(e=>{e.setAttribute("aria-hidden","true")})}handleStates(){mobileMQ.matches||this.visible||this.isHamburgerVariant||this.isHybridVariant?!mobileMQ.matches||this.visible||this.isHamburgerVariant||this.isHybridVariant||this.element.setAttribute("aria-hidden","true"):this.element.setAttribute("aria-hidden","false"),mobileMQ.matches||!this.visible||this.isHamburgerVariant||this.isHybridVariant||(this.toggleHamburgerVisibility(),this.element.setAttribute("aria-hidden","false")),this.subNavs.forEach(e=>{mobileMQ.matches&&!this.visible&&"false"===e.getAttribute("aria-hidden")&&(this.toggleSubnavSections(this.selectedMainNavSectionIndex,!0,null),this.selectedMainNavSectionIndex=null)}),!mobileMQ.matches&&this.visible&&this.secondaryMenu.setAttribute("aria-hidden","false")}toggleHamburgerVisibility(){!this.visible&&this.searchVisible&&this.toggleSearch(),this.visible=!this.visible,this.openButton.setAttribute("aria-expanded",`${this.visible}`),this.element.setAttribute("aria-hidden",`${!this.visible}`),this.secondaryMenu.setAttribute("aria-hidden",`${!this.visible}`),this.element.classList.add("transitioning"),mobileMQ.matches||(this.visible?document.body.classList.add("body--scroll-lock"):document.body.classList.remove("body--scroll-lock")),mobileMQ.matches&&this.bodyScrollLock(this.visible),this.visible?this.mainPageContent.setAttribute("inert",""):this.mainPageContent.removeAttribute("inert"),this.visible||this.subNavs.forEach(e=>{"false"===e.getAttribute("aria-hidden")&&(e.setAttribute("aria-hidden","true"),e.parentElement.querySelector(".site-header__mega-menu-main-top-link").setAttribute("aria-expanded","false"))})}handleOpenButtonClick(){this.openButton.addEventListener("click",()=>{this.toggleHamburgerVisibility()})}handleEsc(){document.addEventListener("keydown",e=>{const t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||this.visible&&this.toggleHamburgerVisibility()})}handleTransitionEnd(){this.element.addEventListener("transitionend",e=>{e.target===e.currentTarget&&this.element.classList.contains("transitioning")&&this.element.classList.remove("transitioning")})}bodyScrollLock(e){const t=document.documentElement;if(e){const e=window.scrollY;document.body.style.top=-e+"px",document.body.classList.add("body--scroll-lock"),t.style.scrollBehavior="initial"}else{const e=Math.abs(parseInt(document.body.style.top||"0",10));document.body.classList.remove("body--scroll-lock"),document.body.style.removeProperty("top"),window.scrollTo(0,e||0),t.style.removeProperty("scroll-behavior")}}handleSubnavToggleClicks(){this.subnavToggleLinks.forEach((e,t)=>{if(!e.nextElementSibling)return;const n=AccessibilityUtilities.convertAnchorToButton(e);n.setAttribute("aria-expanded","false"),n.addEventListener("click",e=>{const i=e.currentTarget;this.searchVisible&&this.toggleSearch();const r="true"===n.getAttribute("aria-expanded");this.toggleSubnavSections(this.selectedMainNavSectionIndex,r,i),r||mobileMQ.matches||this.handleDesktopLastTabClose(),this.selectedMainNavSectionIndex=r?null:t})})}handleMobileSubnavBackButtons(){this.mobileSubnavBackButtons.forEach(e=>{e.addEventListener("click",t=>{const n=e.closest(".site-header__mega-menu-main-nav-subnav"),i=n.previousElementSibling;n.setAttribute("aria-hidden","true"),i.setAttribute("aria-expanded","false"),this.selectedMainNavSectionIndex=null,this.openButton.focus(),this.secondaryMenu.setAttribute("aria-hidden","false")})})}toggleSubnavSections(e,t,n){if(!(n&&n instanceof Element))return;const i=Array.from(this.element.querySelectorAll(".site-header__mega-menu-main-top-link")),r=(e,t,n)=>{e.setAttribute("aria-expanded",`${n}`),t.setAttribute("aria-hidden",`${!n}`)};if(null!==e){const s=this.parentNavItems[e],a=s.querySelector("button, a"),o=s.querySelector(".site-header__mega-menu-main-nav-subnav");if(!a||!o)return;if(r(a,o,!t),n!==a&&n.classList.contains("site-header__mega-menu-main-top-link")){const e=n.nextElementSibling;r(a,o,!1),r(n,e,!0),this.selectedMainNavSectionIndex=i.indexOf(n)}}else if(n.classList.contains("site-header__mega-menu-main-top-link")){r(n,n.nextElementSibling,!0),this.selectedMainNavSectionIndex=i.indexOf(n),mobileMQ.matches&&this.secondaryMenu.setAttribute("aria-hidden",`${!t}`)}}handleOutsideClick(){document.body.addEventListener("click",e=>{const t=e.target;Array.from(this.subNavs).some(e=>
1e.contains(t))||t.closest(".site-header__mega-menu-main-top-link")||mobileMQ.matches||(this.toggleSubnavSections(this.selectedMainNavSectionIndex,!0,t),this.selectedMainNavSectionIndex=null)})}handleDesktopLastTabClose(){this.subNavs.forEach(e=>{if(!mobileMQ.matches&&"false"===e.getAttribute("aria-hidden")){e.querySelector("li:last-child").querySelector(".site-header__mega-menu-main-sub-link").addEventListener("keydown",e=>{e.key||e.keyCode;"Tab"!==e.key||e.shiftKey||(this.toggleSubnavSections(this.selectedMainNavSectionIndex,!0,e.target),this.selectedMainNavSectionIndex=null)})}})}initStickyNav(){const e=document.querySelector(".site-header");setTimeout(()=>{document.querySelector(".site-header");this.headroom=new Headroom(e,{tolerance:0,offset:0}),this.headroom.init()},300)}toggleSearch(){this.visible&&!this.searchVisible&&this.toggleHamburgerVisibility(),this.searchVisible=!this.searchVisible,this.searchVisible?document.body.classList.add("body--scroll-lock-search"):document.body.classList.remove("body--scroll-lock-search"),this.searchVisible?this.searchTrigger.setAttribute("aria-expanded","true"):this.searchTrigger.setAttribute("aria-expanded","false"),this.searchVisible?this.searchForm.setAttribute("aria-hidden","false"):this.searchForm.setAttribute("aria-hidden","true"),this.searchVisible&&setTimeout(()=>{this.formInput.focus()},300),this.bodyScrollLock(this.searchVisible)}handleSearch(){this.searchTrigger&&(this.searchForm.setAttribute("aria-hidden","true"),this.searchTrigger.setAttribute("aria-expanded","false"),this.searchTrigger.addEventListener("click",()=>{this.toggleSearch()}))}closeSearchEscape(){document.addEventListener("keydown",e=>{const t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||this.searchVisible&&this.toggleSearch()})}searchTabPast(){const e=this.searchForm.querySelector(".site-header__search-form-field-wrap button[type='submit']");e&&e.addEventListener("keydown",e=>{e.key||e.keyCode;"Tab"!==e.key||e.shiftKey||this.searchVisible&&this.toggleSearch()})}closeSearchOutsideClick(){document.body.addEventListener("click",e=>{const t=e.target;this.searchVisible&&!t.closest(".site-header")&&this.toggleSearch()})}handleSkipLinkClick(){this.skipLink.addEventListener("click",()=>{this.visible&&this.toggleHamburgerVisibility(),this.searchVisible&&this.toggleSearch()})}handleAudienceMenu(){if(this.audienceMenu){this.audienceMenu.setAttribute("aria-hidden","true"),this.audienceMenuTriggerDesktop.setAttribute("aria-expanded","false");const e=()=>{this.audienceMenuVisible=!this.audienceMenuVisible,this.searchVisible&&this.audienceMenuVisible&&this.toggleSearch(),this.audienceMenuVisible?this.audienceMenu.setAttribute("aria-hidden","false"):this.audienceMenu.setAttribute("aria-hidden","true"),this.audienceMenuVisible?this.audienceMenuTriggerDesktop.setAttribute("aria-expanded","true"):this.audienceMenuTriggerDesktop.setAttribute("aria-expanded","false")};this.audienceMenuTriggerDesktop.addEventListener("click",()=>{e()}),document.addEventListener("keydown",t=>{const n=t.key||t.keyCode;"Escape"!==n&&"Esc"!==n&&27!==n||this.audienceMenuVisible&&e()});this.audienceMenu.querySelector(".site-header__audience-inner ul li:last-child a").addEventListener("keydown",t=>{t.key||t.keyCode;"Tab"!==t.key||t.shiftKey||this.audienceMenuVisible&&e()}),document.body.addEventListener("click",t=>{const n=t.target;this.audienceMenuVisible&&(n.closest(".site-header__audience-inner")||n.closest(".site-header__audience-trigger")||e())})}}},SiteHeaderHybridHamburger=class{constructor(e){e&&(this.element=e,this.priorityLinkNav=document.querySelector(".site-header__priority-links"),this.init())}init(){this.detectOverlayOpen()}detectOverlayOpen(){var e=this.element,t=e.getAttribute("aria-hidden");new MutationObserver(e=>{e.forEach(e=>{if("aria-hidden"===e.attributeName){var n=e.target.getAttribute("aria-hidden");t!==n&&(t=n,this.handleOverlayToggle(n))}})}).observe(e,{attributes:!0,attributeFilter:["aria-hidden"]})}handleOverlayToggle(e){"true"===e?this.priorityLinkNav.setAttribute("aria-hidden","false"):this.priorityLinkNav.setAttribute("aria-hidden","true")}};function siteHeaderInit(){const e=document.querySelector(".site-header__mega-menu");new SiteHeader(e);const t=document.querySelectorAll(".site-header--hybrid .site-header__mega-menu, .site-header--hamburger .site-header__mega-menu");for(let e=0;e<t.length;e++)new SiteHeaderHybridHamburger(t[e])}var import_youtube_player=__toESM(require_dist(),1),VimeoPlayer=require_player(),mobileMQ2=window.matchMedia("(max-width: 1199px)"),VideoEmbed=class{constructor(e){this.localCDNMediaWallpaperCreated=!1,this.eventDataSent=!1,e&&(this.element=e,this.videoSource=this.element.getAttribute("data-video-source"),this.media=this.element.querySelector(".video-embed__media-wrap"),this.youtubeMedia=this.element.querySelector(".video-embed__video--yt"),this.vimeoMedia=this.element.querySelector(".video-embed__video--vimeo"),this.localCDNMedia=this.element.querySelector(".video-embed__video--local-cdn"),this.playButton=this.element.querySelector(".video-embed__button"),this.dataLayer=window.dataLayer||[],this.init())}init(){this.handleResize(),this.pauseVideoWhenAriaHidden()}handleResize(){const e=()=>{"youtube"===this.videoSource?this.handleYouTube():"vimeo"===this.videoSource?this.handleVimeo():this.handleVideoTag()};mobileMQ2.addEventListener("change",e),e()}createYouTubePlayer(){const e=this.youtubeMedia.dataset.vid;this.youTubePlayer=(0,import_youtube_player.default)(this.youtubeMedia,{videoId:e,playerVars:{rel:0,enablejsapi:1}}),this.youTubePlayer.on("stateChange",e=>{1==e.data&&this.eventTracking(this.youTubePlayer)})}handleYouTube(){this.youTubePlayer&&this.youTubePlayer.destroy(),mobileMQ2.matches?this.createYouTubePlayer():this.playButton.addEventListener("click",()=>{this.createYouTubePlayer(),this.youTubePlayer.on("ready",()=>{this.youTubePlayer.playVideo()}),this.youTubePlayer.on("stateChange",e=>{0==e.data&&this.youTubePlayer.destroy()})},{once:!0})}createVimeoPlayer(){const e=this.vimeoMedia.dataset.vimeoVideoId;this.vimeoplayer=new VimeoPlayer(this.vimeoMedia,{id:e,api:1,player_id:e}),this.vimeoplayer.on("playing",()=>{this.eventTracking(this.vimeoplayer)})}handleVimeo(){this.vimeoplayer&&this.vimeoplayer.destroy(),mobileMQ2.matches?this.createVimeoPlayer():this.playButton.addEventListener("click",()=>{this.createVimeoPlayer(),this.vimeoplayer.play(),this.vimeoplayer.on("ended",()=>{this.vimeoplayer.destroy()})})}handleVideoTag(){this.localCDNMedia.classList.contains("video-embed__video--local-cdn--no-wallpaper")&&!this.localCDNMediaWallpaperCreated&&this.createWallpaperForVideo(),mobileMQ2.matches?(this.localCDNMedia.removeAttribute("tabindex"),this.localCDNMedia.removeAttribute("aria-hidden")):(this.localCDNMedia.setAttribute("tabindex","-1"),this.localCDNMedia.setAttribute("aria-hidden","true"),this.playButton.addEventListener("click",()=>{this.localCDNMedia.removeAttribute("tabindex"),this.localCDNMedia.removeAttribute("aria-hidden"),this.localCDNMedia.play(),this.localCDNMedia.addEventListener("play",()=>{this.media.classList.add("video-playing")}),this.localCDNMedia.addEventListener("ended",()=>{this.media.classList.remove("video-playing"),this.localCDNMedia.setAttribute("tabindex","-1"),this.localCDNMedia.setAttribute("aria-hidden","true")})})),this.localCDNMedia.addEventListener("play",()=>{this.eventTracking(this.localCDNMedia)})}createWallpaperForVideo(){const e=document.createElement("canvas"),t=e.getContext("2d");e.width=this.localCDNMedia.videoWidth,e.height=this.localCDNMedia.videoHeight,this.localCDNMedia.currentTime=1,t.drawImage(this.localCDNMedia,0,0,e.width,e.height);const n=e.toDataURL("image/png"),i=document.createElement("img");i.src=n;const r=this.localCDNMedia.getAttribute("title");i.alt=r,this.media.insertBefore(i,this.localCDNMedia),this.localCDNMediaWallpaperCreated=!0}pauseVideoWhenAriaHidden(){new MutationObserver(e=>{for(const t of e)"attributes"!==t.type||"aria-hidden"!==t.attributeName&&"hidden"
1!==t.attributeName||this.element?.closest('[aria-hidden="true"], [hidden]')&&(this.youTubePlayer&&this.youTubePlayer.pauseVideo(),this.vimeoplayer&&this.vimeoplayer.pause(),this.localCDNMedia&&this.localCDNMedia.pause())}).observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["aria-hidden","hidden"]})}eventTracking(e){e!==this.youTubePlayer||this.eventDataSent||window.dataLayer.push({event:"video_start",video_url:"https://www.youtube.com/embed/"+this.youtubeMedia.dataset.vid,video_title:this.youtubeMedia.title,video_provider:"youtube"}),e!==this.vimeoplayer||this.eventDataSent||window.dataLayer.push({event:"video_start",video_url:"https://player.vimeo.com/video/"+this.vimeoMedia.dataset.vimeoVideoId,video_title:this.vimeoMedia.title,video_provider:"vimeo"}),e!==this.localCDNMedia||this.eventDataSent||window.dataLayer.push({event:"video_start",video_url:this.localCDNMedia.currentSrc,video_title:"Your Video Title Here",video_provider:"local"}),this.eventDataSent=!0}};function videoEmbedInit(){const e=document.querySelectorAll(".video-embed");for(let t=0;t<e.length;t++)new VideoEmbed(e[t])}var MicroModal=require_micromodal(),Modal=class{constructor(e){e&&(this.element=e,this.modalId=this.element.id,this.triggers=document.querySelectorAll(`[data-micromodal-trigger="${this.modalId}"]`),this.closers=this.element.querySelectorAll("[data-micromodal-close]"),this.micromodalOptions={onShow:e=>{document.body.style.overflow="hidden"},onClose:e=>{document.body.style.removeProperty("overflow");const t=this.element.querySelector("iframe");t&&(t.src=t.src)},openClass:"is-open",disableScroll:!1,awaitOpenAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,awaitCloseAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,disableFocus:!0},this.init())}init(){this.convertAnchorsToButtons(),this.initializeModals(),this.moveModalToBottomOfBody(),this.disableInnerLinkTabbing(),this.mutationObserveAriaHidden(),this.openIfURLParameters()}convertAnchorsToButtons(){const e=this.element.querySelectorAll("a[data-micromodal-close]"),t=[...Array.from(this.triggers),...Array.from(e)];for(let e=0;e<t.length;e++)AccessibilityUtilities.convertAnchorToButton(t[e])}initializeModals(){MicroModal.init(this.micromodalOptions)}moveModalToBottomOfBody(){document.body.appendChild(this.element)}appendURLParameter(){const e=new URL(window.location.href),t=this.element.id;e.searchParams.get("content")||(e.searchParams.append("content",t),window.history.replaceState(null,"",e.toString()))}removeURLParameter(){const e=new URL(window.location.href);e.searchParams.delete("content"),window.history.replaceState(null,"",e.toString())}openIfURLParameters(){const e=new URLSearchParams(window.location.search);if(e.has("content")){const t=e.get("content");MicroModal.show(t,this.micromodalOptions)}}disableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.setAttribute("tabindex","-1")})}enableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.removeAttribute("tabindex")})}mutationObserveAriaHidden(){var e=this.element,t=e.getAttribute("aria-hidden");new MutationObserver(e=>{e.forEach(e=>{if("aria-hidden"===e.attributeName){var n=e.target.getAttribute("aria-hidden");t!==n&&(t=n,"true"===n?(this.disableInnerLinkTabbing(),this.removeURLParameter()):(this.enableInnerLinkTabbing(),this.appendURLParameter()))}})}).observe(e,{attributes:!0,attributeFilter:["aria-hidden"]})}};function modalInit(){const e=document.querySelectorAll(".modal__lightbox");for(let t=0;t<e.length;t++)new Modal(e[t])}var Modal2=class{constructor(e){this.dialog=null,this.dialogClose=null,e&&(this.element=e,this.dialog=document.querySelector(`#${this.element.dataset.dialog}`),this.dialogClose=this.dialog?this.dialog.querySelector(".closeDialog"):null,this.init())}init(){this.handleEvents(),this.handleUnsupportedBrowsersBackdropClose()}handleEvents(){this.element.addEventListener("click",()=>{this.dialog?.showModal()}),this.dialogClose?.addEventListener("click",()=>this.handleDialogClose())}handleUnsupportedBrowsersBackdropClose(){CSS.supports("interpolate-size","allow-keywords")||this.dialog?.addEventListener("click",e=>{if(this.dialog){const t=this.dialog.getBoundingClientRect(),n=e.clientX,i=e.clientY;(n<t.left||n>
1t.right||i<t.top||i>t.bottom)&&this.handleDialogClose()}})}handleDialogClose(){if(CSS.supports("interpolate-size","allow-keywords"))this.dialog?.close();else{this.dialog?.classList.add("dialog--closing");const e=getComputedStyle(document.documentElement).getPropertyValue("--transition-duration").trim(),t=1e3*parseFloat(e.replace("s",""));setTimeout(()=>{this.dialog?.classList.remove("dialog--closing"),this.dialog?.close()},t)}}};function calendarFilterModalInit(){const e=document.querySelectorAll("button[data-dialog]");for(let t=0;t<e.length;t++)new Modal2(e[t])}var mobileMQ3=window.matchMedia("(max-width: 1199px)"),LandingPageSubnav=class{constructor(e){this.expanded=!1,e&&(this.element=e,this.toggle=this.element.querySelector(".subnav__toggle"),this.list=this.element.querySelector(".landing-page__subnav-inner"),this.innerLinks=this.list.querySelectorAll("a"),this.init())}init(){this.handleResize(),this.handleToggleClick(),this.handleListTransition()}handleResize(){const e=()=>{mobileMQ3.matches?(this.toggle.setAttribute("aria-expanded",`${this.expanded}`),this.list.setAttribute("aria-hidden",`${!this.expanded}`)):(this.list.style.height=null,this.list.removeAttribute("aria-hidden")),this.handleEscKey(),this.handleTabbingPast(),this.closeOnOutsideClick()};mobileMQ3.addEventListener("change",e),e()}handleListTransition(){this.list.addEventListener("transitionend",e=>{"height"===e.propertyName&&(this.list.style.height=null)})}handleToggleClick(){this.toggle.addEventListener("click",()=>{this.expanded=!this.expanded,this.toggleVisibility()})}toggleVisibility(){this.toggle.setAttribute("aria-expanded",`${this.expanded}`),this.list.setAttribute("aria-hidden",`${!this.expanded}`)}handleEscKey(){mobileMQ3.matches&&document.addEventListener("keydown",e=>{const t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||"false"===this.list.getAttribute("aria-hidden")&&(this.expanded=!this.expanded,this.toggleVisibility())})}handleTabbingPast(){this.innerLinks[this.innerLinks.length-1].addEventListener("keydown",e=>{e.key||e.keyCode;"Tab"!==e.key||e.shiftKey||mobileMQ3.matches&&(this.expanded=!this.expanded,this.toggleVisibility())})}closeOnOutsideClick(){document.body.addEventListener("click",e=>{const t=e.target;"false"===this.list.getAttribute("aria-hidden")&&!this.element.contains(t)&&mobileMQ3.matches&&(this.expanded=!this.expanded,this.toggleVisibility())})}};function landingPageSubnavInit(){new LandingPageSubnav(document.querySelector(".landing-page__subnav"))}var Cookies=require_js_cookie(),cookieBar=class{constructor(e){e&&(this.element=e,this.accept=this.element.querySelector(".privacy-consent__accept"),this.init())}init(){void 0===Cookies.get("__id5_cookie_privacy")?this.element.removeAttribute("hidden"):this.element.remove(),this.accept.addEventListener("click",()=>{this.element.classList.add("fade-out"),Cookies.set("__id5_cookie_privacy",!0),setTimeout(()=>{this.element.remove()},300)})}};function cookieBarInit(){const e=document.querySelectorAll(".privacy-consent");if(e.length>0)for(let t=0;t<e.length;t++)new cookieBar(e[t])}var Countdown=class{constructor(e){e&&(this.element=e,this.countdownDays=this.element.querySelector(".countdown-days"),this.countdownHours=this.element.querySelector(".countdown-hours"),this.countdownMins=this.element.querySelector(".countdown-mins"),this.countdownSecs=this.element.querySelector(".countdown-secs"),this.countdownTime=this.element.getAttribute("data-enddate"),this.init())}init(){new Date(this.countdownTime);let e=new Date(this.countdownTime).getTime();const t=setInterval(()=>{let n=(new Date).getTime(),i=e-n,r=Math.floor(i/864e5),s=Math.floor(i%864e5/36e5),a=Math.floor(i%36e5/6e4),o=Math.floor(i%6e4/1e3);this.countdownDays.innerHTML=r.toString(),this.countdownHours.innerHTML=s.toString(),this.countdownMins.innerHTML=a.toString(),this.countdownSecs.innerHTML=o.toString(),i<0&&(clearInterval(t),this.countdownDays.innerHTML="0",this.countdownHours.innerHTML="0",this.countdownMins.innerHTML="0",this.countdownSecs.innerHTML="0")},1e3)}};function countdownInit(){const e=document.querySelectorAll(".countdown__countdown");for(let t=0;t<e.length;t++)new Countdown(e[t])}var VimeoPlayer2=require_player(),mobileMQ4=window.matchMedia("(max-width: 768px)"),HomeHeroVideo=class{constructor(e){this.videoIsMuted=!0,this.videoEnded=!1,this.handlePlayPause=()=>{this.videoIsPaused=!this.videoIsPaused,this.vimeoPlayer[this.videoIsPaused?"pause":"play"]()},this.handleMuteUmute=()=>{this.videoIsMuted?(this.vimeoPlayer.setVolume(1),this.videoIsMuted=!1,this.muteUmuteButton.classList.add("home-hero__video-controls-mute-unmute--unmuted"),this.muteUmuteButtonLabel.innerText="Mute"):(this.vimeoPlayer.setMuted(!0),this.videoIsMuted=!0,this.muteUmuteButton.classList.remove("home-hero__video-controls-mute-unmute--unmuted"),this.muteUmuteButtonLabel.innerText="Unmute")},e&&(this.element=e,this.media=this.element.querySelector(".home-hero__media"),this.playPauseButton=this.element.querySelector(".home-hero__video-controls-play-pause"),this.muteUmuteButton=this.element.querySelector(".home-hero__video-controls-mute-unmute"),this.muteUmuteButtonLabel=this.muteUmuteButton.querySelector(".home-hero__video-controls-mute-unmute-label"),this.videoIsPaused=window.matchMedia("(prefers-reduced-motion)").matches,this.init())}init(){this.handleResize(),this.muteVideoOnPerformanceFeedPlay(),this.scrollPageToTopOnReload()}scrollPageToTopOnReload(){window.matchMedia("(prefers-reduced-motion)").matches||("scrollRestoration"in history&&(history.scrollRestoration="manual"),window.scrollTo(0,0))}handleResize(){const e=()=>{this.initVimeoPlayer(),this.resizePlayerToFit()};mobileMQ4.addEventListener("change",e),e()}initVimeoPlayer(){const e=this.media.dataset.mobileVimeoId,t=this.media.dataset.desktopVimeoId;let n=mobileMQ4.matches?e:t,i=!window.matchMedia("(prefers-reduced-motion)").matches&&!this.videoIsPaused;const r=()=>{if(console.log("Creating Vimeo player with ID:",n),console.log("Mobile ID:",e,"Desktop ID:",t),console.log("Mobile media query matches:",mobileMQ4.matches),n)try{this.vimeoPlayer=new VimeoPlayer2(this.media,{id:n,api:1,controls:!1,loop:!0,muted:!0,autoplay:i}),this.handlePlayPauseButton(),this.handleMuteUmuteButton(),this.vimeoPlayer.on("play",()=>{this.media.classList.contains("video-playing")||(this.media.classList.add("video-playing"),this.media.classList.remove("video-ended"),this.videoEnded=!1),this.resizePlayerToFit(),this.videoIsPaused=!1}),this.vimeoPlayer.on("pause",()=>{this.media.classList.remove("video-playing"),this.videoIsPaused=!0}),this.vimeoPlayer.on("ended",()=>{this.media.classList.remove("video-playing"),this.media.classList.add("video-ended"),this.videoIsPaused=!0,this.videoEnded=!0}),this.vimeoPlayer.on("error",e=>{console.error("Vimeo player error:",e)}),console.log("Vimeo player created successfully")}catch(e){console.error("Failed to create Vimeo player:",e)}else console.error("No Vimeo ID provided for player creation")};(()=>{this.vimeoPlayer?(this.vimeoPlayer.destroy().then(()=>{r()}).catch(e=>{console.error(e)}),window.matchMedia("(prefers-reduced-motion)").matches&&(this.videoIsPaused=!0,this.media.classList.remove("video-playing")),this.removePlayPauseButton(),this.removeMuteUmuteButton(),this.videoIsMuted=!0,this.muteUmuteButton.classList.remove("home-hero__video-controls-mute-unmute--unmuted"),this.muteUmuteButtonLabel.innerText="Unmute"):r()})()}handlePlayPauseButton(){this.playPauseButton.addEventListener("click",this.handlePlayPause)}removePlayPauseButton(){this.playPauseButton.removeEventListener("click",this.handlePlayPause)}muteVideoOnPerformanceFeedPlay(){document.querySelectorAll(".performance-feature, .home-archetypes-events__archetypes section .primary-link").forEach(e
1=>{e.addEventListener("click",()=>{this.videoIsMuted||(this.vimeoPlayer.setMuted(!0),this.videoIsMuted=!0,this.muteUmuteButton.classList.remove("home-hero__video-controls-mute-unmute--unmuted"),this.muteUmuteButtonLabel.innerText="Unmute")})})}handleMuteUmuteButton(){this.muteUmuteButton.addEventListener("click",this.handleMuteUmute)}removeMuteUmuteButton(){this.muteUmuteButton.removeEventListener("click",this.handleMuteUmute)}resizePlayerToFit(){const e=()=>{const e=document.querySelector(".home-hero__media iframe");if(e){let t=mobileMQ4.matches?.7:1.8;const n=window.innerWidth,i=window.innerHeight,r=n/i>t?n/(t*i):i*t/n;e.style.transform=`scale(${r})`}};this.vimeoPlayer.on("loaded",()=>{e(),window.addEventListener("resize",e)})}},HomeHeroEntranceAnimation=class{constructor(e){e&&(this.element=e,this.init())}init(){this.onlyAnimateOncePerSession()}onlyAnimateOncePerSession(){sessionStorage.getItem("animationPlayed")||((()=>{const e=document.querySelector(".home-hero");e.classList.add("home-hero--animated"),e.addEventListener("animationend",()=>{e.classList.remove("home-hero--animated")},{once:!0})})(),this.lockBodyScrollUntilAnimationEnd(),sessionStorage.setItem("animationPlayed","true"))}lockBodyScrollUntilAnimationEnd(){window.matchMedia("(prefers-reduced-motion)").matches||(document.body.style.overflowY="hidden",this.element.addEventListener("animationend",e=>{document.body.style.removeProperty("overflow-y")}))}};function homeHeroInit(){const e=document.querySelector(".home-hero");new HomeHeroVideo(e);const t=document.querySelector(".home-hero__animation-bars");new HomeHeroEntranceAnimation(t)}var HomeArchetypes=class{constructor(e){e&&(this.element=e,this.init())}init(){this.handleTabs()}handleTabs(){document.querySelector(".home-archetypes-events__archetypes");const e=this.element.querySelector("ul"),t=e.querySelectorAll("a"),n=this.element.querySelectorAll("[id^='home-archetypes-events__archetypes-tab']"),i=(e,i)=>{i.focus(),i.removeAttribute("tabindex"),i.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");let r=Array.prototype.indexOf.call(t,i),s=Array.prototype.indexOf.call(t,e);n[s].hidden=!0,n[r].hidden=!1};e.setAttribute("role","tablist"),Array.prototype.forEach.call(t,(r,s)=>{r.setAttribute("role","tab"),r.setAttribute("id","tab"+(s+1)),r.setAttribute("tabindex","-1"),r.parentNode.setAttribute("role","presentation"),r.addEventListener("click",t=>{t.preventDefault();let n=e.querySelector("[aria-selected]");t.currentTarget!==n&&i(n,t.currentTarget)}),r.addEventListener("keydown",e=>{let r=Array.prototype.indexOf.call(t,e.currentTarget),a=37===e.which?r-1:39===e.which?r+1:40===e.which?"down":null;null!==a&&(e.preventDefault(),"down"===a?n[s].focus():t[a]&&i(e.currentTarget,t[a]))})}),Array.prototype.forEach.call(n,(e,n)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1");e.getAttribute("id");e.setAttribute("aria-labelledby",t[n].id),e.hidden=!0}),t[0].removeAttribute("tabindex"),t[0].setAttribute("aria-selected","true"),n[0].hidden=!1}};function homeArchetypesInit(){const e=document.querySelector(".home-archetypes-events");new HomeArchetypes(e)}var HomeMedalWinners=class extends Card{constructor(e,t){super(e,t)}};function homeMedalWinnersInit(){const e=document.querySelectorAll(".home-medal-winners__card");for(let t=0;t<e.length;t++)new HomeMedalWinners(e[t],{clickable:!0,ctaClass:"home-medal-winners__card-name-link"})}var import_lodash=__toESM(require_lodash(),1),mobileMQ5=window.matchMedia("(min-width: 1024px)"),HomeQuoteSlides=class{constructor(e){this.swiper=null,e&&(this.element=e,this.slidesWrapper=this.element.querySelector(".home-quote-slides__slides"),this.slides=this.element.querySelectorAll(".featured-quote"),this.slideIndicatorsWrap=this.element.querySelector(".home-quote-slides__indicators"),this.slideIndicators=this.slideIndicatorsWrap.querySelectorAll(".home-quote-slides__indicators-indicator"),this.init())}init(){this.handleResize()}handleResize(){const e=()=>{this.handleStickyPosition(),this.handleMobileCarousel(),this.handleStickySlideIndicators()};window.addEventListener("resize",(0,import_lodash.default)(e,100)),e()}handleStickyPosition(){if(mobileMQ5.matches){const e=window.innerHeight;let t=0;
1this.slides.forEach((n,i)=>{Math.ceil(n.clientHeight/2),Math.ceil(window.innerHeight/2);const r=n.offsetHeight;r>t&&(t=r+275),t<e?this.element.classList.add("home-quote-slides--sticky-enabled"):this.element.classList.remove("home-quote-slides--sticky-enabled")})}else this.element.classList.contains("home-quote-slides--sticky-enabled")&&this.element.classList.remove("home-quote-slides--sticky-enabled")}handleStickySlideIndicators(){if(mobileMQ5.matches){let e=0;this.slides.forEach(t=>{const n=t.offsetHeight;n>e&&(e=n)}),this.slideIndicatorsWrap.style.height=`${e}px`,this.slides.forEach(t=>{t.style.height=`${e}px`});let t=0,n=!1;window.addEventListener("scroll",e=>{t=window.scrollY,n||(window.requestAnimationFrame(()=>{const e=(window.innerHeight||document.documentElement.clientHeight)/2;this.slides.forEach((t,n)=>{const i=t.getBoundingClientRect();if(i.top<e&&i.bottom>e){this.slideIndicatorsWrap.querySelectorAll(".home-quote-slides__indicators-indicator");this.slideIndicators[n].classList.add("home-quote-slides__indicators-indicator--active")}else this.slideIndicators[n].classList.remove("home-quote-slides__indicators-indicator--active")}),n=!1}),n=!0)},!0)}else this.slides.forEach(e=>{e.style.removeProperty("height"),this.slideIndicatorsWrap.style.removeProperty("height"),this.slideIndicatorsWrap.style.removeProperty("margin-bottom")})}handleMobileCarousel(){if(this.swiper&&mobileMQ5.matches)return this.swiper.destroy(!0,!0),this.swiper=null,this.element.classList.remove("swiper"),this.slidesWrapper.classList.remove("swiper-wrapper"),void this.slides.forEach(e=>{e.classList.remove("swiper-slide")});if(!mobileMQ5.matches&&!this.swiper){const e={slidesPerView:1,autoHeight:!0,spaceBetween:50,loop:!0,modules:[Navigation,Pagination,A11y,Keyboard],a11y:{enabled:!0,nextSlideMessage:"Next",prevSlideMessage:"Previous"},keyboard:{enabled:!0},navigation:{nextEl:".swiper__prev-next--next",prevEl:".swiper__prev-next--prev"}};this.element.classList.add("swiper"),this.slidesWrapper.classList.add("swiper-wrapper"),this.slides.forEach(e=>{e.classList.add("swiper-slide")}),this.swiper=new Swiper(this.element,e)}}};function homeQuoteSlidesInit(){const e=document.querySelectorAll(".home-quote-slides");for(let t=0;t<e.length;t++)new HomeQuoteSlides(e[t])}var PerformanceCarousel=class{constructor(e){e&&(this.element=e,this.init())}init(){const e={slidesPerView:1,autoHeight:!0,spaceBetween:18,loop:!1,modules:[Navigation,A11y,Keyboard],a11y:{enabled:!0,nextSlideMessage:"Next",prevSlideMessage:"Previous"},keyboard:{enabled:!0},navigation:{nextEl:".swiper__prev-next--next",prevEl:".swiper__prev-next--prev"},breakpoints:{1023:{slidesPerView:2}}};new Swiper(this.element,e)}};function performanceCarouselInit(){const e=document.querySelectorAll(".performance-feed__carousel");for(let t=0;t<e.length;t++)new PerformanceCarousel(e[t])}var EventFeedCard=class extends Card{constructor(e,t){super(e,t)}};function eventFeedCardInit(){const e=document.querySelectorAll(".event-feed-card");for(let t=0;t<e.length;t++)new EventFeedCard(e[t],{clickable:!0,ctaClass:"event-feed-card__link"})}var import_youtube_player2=__toESM(require_dist(),1),PerformanceModal=require_micromodal(),mobileMQ6=window.matchMedia("(max-width: 1199px)"),PerformanceDrawer=class{constructor(e){this.eventDataSent=!1,this.sentVideos=new Set,e&&(this.element=e,this.modalId=this.element.id,this.openers=document.querySelectorAll("[data-performance-id]"),this.closer=this.element.querySelector(".performance-drawer__close"),this.performanceVideoPlayButton=this.element.querySelector(".performance__video-embed-play-button"),this.performanceTitle=this.element.querySelector(".performance__title"),this.performanceDescription=this.element.querySelector(".performance__description"),this.performanceVideoWrap=this.element.querySelector(".performance__video-embed__media-wrap"),this.performanceVideoElement=this.element.querySelector(".performance__video-embed__video"),this.performanceWysiwygRegion=this.element.querySelector(".paragraph-widget--text-html .text-content"),this.performanceTagList=this.element.querySelector(".tag-list"),this.performancePersonFeature=this.element.querySelector(".person-feature"),this.micromodalOptions={onShow:e=>{document.body.style.overflow="hidden",this.element.scrollTop=0},onClose:e=>{document.body.style.removeProperty("overflow");const t=new URLSearchParams(window.location.search).get("performance"),n=document.querySelector(`[data-
1performance-id='${t}']`);n&&n.focus();this.element.querySelector(".performance-drawer__inner").addEventListener("animationend",e=>{this.destroyContent()},{once:!0}),this.youTubePlayer&&this.youTubePlayer.pauseVideo()},openClass:"is-open",disableScroll:!1,awaitOpenAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,awaitCloseAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,disableFocus:!0},this.init())}init(){this.initializeModal(),this.handleCloseButton(),this.handleOpeners(),this.openIfURLParameters(),this.moveModalToBottomOfBody(),this.disableInnerLinkTabbing(),this.mutationObserveAriaHidden()}initializeModal(){PerformanceModal.init(this.micromodalOptions)}handleYouTubeOnResize(e,t){const n=()=>{this.handleYouTube(e,t)};mobileMQ6.addEventListener("change",n),n()}async getData(e){(new Date).toISOString();if(window.location.href.startsWith("http://127.0.0.1:3000")||window.location.href.startsWith("https://dev-cliburn.pantheonsite.io/themes/custom/idfive_accelerator/idfive-component-library/"))try{const e=await fetch("../../js/json/performance-drawer-mock-data.json");if(!e.ok)throw new Error("Failed to fetch data");return await e.json()}catch(e){console.error("Error fetching data:",e)}else try{const t=(new Date).toISOString().replace(/[-:T.]/g,"").slice(0,12),n=await fetch(`/api/idfive_base/performances/${e}?time=${t}`);if(!n.ok)throw new Error(`Failed to fetch data for performance ID: ${e}`);return await n.json()}catch(e){return null}}handleOpeners(){this.openers.forEach(e=>{const t=e.closest(".performance-feature");t&&t.addEventListener("click",t=>{t.preventDefault(),e.click()}),e.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),PerformanceModal.show("performance-drawer",this.micromodalOptions),this.appendURLParameter(e)})})}moveModalToBottomOfBody(){document.body.appendChild(this.element)}appendURLParameter(e){const t=new URL(window.location.href),n=e.getAttribute("data-performance-id"),i=t.searchParams.get("performance");this.currentPerformanceID=n,n&&this.getData(n).then(e=>{e?this.populateContent(e):console.error(`No data found for performance ID: ${n}`)}).catch(e=>{console.error(e)}),i||(t.searchParams.append("performance",n),window.history.replaceState(null,"",t.toString()))}removeURLParameter(){const e=new URL(window.location.href);e.searchParams.delete("performance"),window.history.replaceState(null,"",e.toString())}openIfURLParameters(){const e=new URLSearchParams(window.location.search);if(e.has("performance")){const t=e.get("performance");this.currentPerformanceID=t,t&&this.getData(t).then(e=>{e?(this.populateContent(e),PerformanceModal.show("performance-drawer",this.micromodalOptions),document.body.style.overflow="hidden"):console.error(`No data found for performance ID: ${t}`)}).catch(e=>{console.error(e)})}}disableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.setAttribute("tabindex","-1")})}enableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.removeAttribute("tabindex")})}mutationObserveAriaHidden(){var e=this.element,t=e.getAttribute("aria-hidden");new MutationObserver(e=>{e.forEach(e=>{if("aria-hidden"===e.attributeName){var n=e.target.getAttribute("aria-hidden");t!==n&&(t=n,"true"===n?(this.disableInnerLinkTabbing(),this.removeURLParameter()):this.enableInnerLinkTabbing())}})}).observe(e,{attributes:!0,attributeFilter:["aria-hidden"]})}populateContent(e){const t=e;if(!t)return void console.error("Performance not found.");this.performanceTitle.innerHTML=t.content.performance__title||null,this.performanceDescription.innerHTML=t.content.performance__description||null,this.performanceVideoWallpaper&&this.performanceVideoWallpaper.remove(),this.performanceVideoWallpaper=document.createElement("img"),t.content.video_embed.wallpaper?this.performanceVideoWallpaper.src=t.content.video_embed.wallpaper:this.performanceVideoWallpaper.src=`https://img.youtube.com/vi/${t.content.video_embed.video_id}/maxresdefault.jpg`,this.performanceVideoWallpaper.alt=t.content.video_embed.video_name,this.performanceVideoWallpaper.loading="lazy",this.performanceVideoWallpaper.width=1016,this.performanceVideoWallpaper.height=602,this.performanceVideoWrap.insertBefore(this.performanceVideoWallpaper,this.performanceVideoWrap.firstChild);const n=t.content.video_embed.video_id,i=t.content.video_embed.video_name;this.handleYouTubeOnResize(n,i),this.performanceWysiwygRegion.innerHTML=t.content.wysiwyg||null,t.content.taglist&&t.content.taglist.length>0?(this.performanceTagList.style.removeProperty("display"),this.performanceTagList.innerHTML=`\n      <h3>Discover More Like This</h3>\n      <ul>\n       ${t.content.taglist.map(e=>`<li><a class="tag" href="${e.url}">${e.text}</a></li>`).join("")}\n      </ul>\n    `):this.performanceTagList.style.display="none",t.content.person_list_item.name?(this.performancePersonFeature.style.removeProperty("display"),this.performancePersonFeature.innerHTML=`\n     <h2 class="person-feature__title">About The Artist</h2>\n      <div class="person-feature__items">\n        <div class="person-list-item">\n          <a class="person-list-item__media-link" href="${t.content.person_list_item.url}" \n   ${t.content.person_list_item.image.src?"":"style=\"background-image: url('../../images/placeholders/placeholder-image-person.png');\""}>\n  ${t.content.person_list_item.image.src?`<img src="${t.content.person_list_item.image.src}" \n             alt="${t.content.person_list_item.name||"Placeholder Name"}
1" \n             loading="lazy" \n             width="384" \n             height="390">`:`<span class="visible-for-screen-readers">${t.content.person_list_item.name||"Placeholder Name"}</span>`}\n</a>\n          <div class="person-list-item__content">\n            <h3 class="person-list-item__name">\n              <a href="${t.content.person_list_item.url}">${t.content.person_list_item.name}</a>\n            </h3>\n            <p class="person-list-item__distinction">${t.content.person_list_item.distinction}</p>\n            <p class="person-list-item__competition">${t.content.person_list_item.competition}</p>\n          </div>\n        </div>\n      </div>\n    `):this.performancePersonFeature.style.display="none"}handleCloseButton(){this.closer.addEventListener("click",()=>{PerformanceModal.close("performance-drawer",this.micromodalOptions)})}destroyContent(){this.performanceTitle.innerHTML="",this.performanceDescription.innerHTML="",this.performanceVideoWallpaper.remove();this.element.querySelector("iframe.performance__video-embed__media-wrap");this.youTubePlayer&&this.youTubePlayer.destroy(),this.performanceWysiwygRegion.replaceChildren(),this.currentPerformanceID=null}createYouTubePlayer(e){this.youTubePlayer&&this.youTubePlayer.destroy(),this.youTubePlayer=(0,import_youtube_player2.default)(this.performanceVideoElement,{videoId:e,playerVars:{rel:0,enablejsapi:1}})}handleYouTube(e,t){const n=e;mobileMQ6.matches?this.createYouTubePlayer(n):this.performanceVideoPlayButton.addEventListener("click",()=>{this.createYouTubePlayer(n),this.youTubePlayer.on("ready",()=>{this.youTubePlayer.playVideo()}),this.youTubePlayer.on("stateChange",e=>{1==e.data&&this.eventTracking(n,t),0==e.data&&this.youTubePlayer.destroy()})},{once:!0})}eventTracking(e,t){const n=`${e}::${t}`;this.sentVideos.has(n)||(window.dataLayer.push({event:"video_start",video_url:`https://www.youtube.com/embed/${e}`,video_title:t,video_provider:"youtube"}),this.sentVideos.add(n))}};function performanceDrawerInit(){const e=document.querySelector(".performance-drawer");new PerformanceDrawer(e)}var NewsFeatureGridMainStory=class extends Card{constructor(e,t){super(e,t)}};function newsFeatureGridMainStoryInit(){const e=document.querySelectorAll(".news-feature-grid__main-story");for(let t=0;t<e.length;t++)new NewsFeatureGridMainStory(e[t],{clickable:!0,ctaClass:"news-feature-grid__main-story-title a"})}var WinnersTourFeed=class extends Card{constructor(e,t){super(e,t)}};function winnersTourFeedInit(){const e=document.querySelectorAll(".winners-tour-feed-feed__event");for(let t=0;t<e.length;t++)new WinnersTourFeed(e[t],{clickable:!0,ctaClass:"winners-tour-feed-feed__link"})}var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super("Zone is an abstract class")}},n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l},Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}},singleton=null,SystemZone=class e extends Zone{static get instance(){return null===singleton&&(singleton=new e),singleton}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}},dtfCache={};function makeDTF(e){return dtfCache[e]||(dtfCache[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,
1year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),dtfCache[e]}var typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,s,a,o,l,c,d]=i;return[a,r,s,o,l,c,d]}function partsOffset(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:r}=n[e],s=typeToPos[t];"era"===t?i[s]=r:isUndefined(s)||(i[s]=parseInt(r,10))}return i}var ianaZoneCache={},IANAZone=class e extends Zone{static create(t){return ianaZoneCache[t]||(ianaZoneCache[t]=new e(t)),ianaZoneCache[t]}static resetCache(){ianaZoneCache={},dtfCache={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n,this.name)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=makeDTF(this.name);let[i,r,s,a,o,l,c]=n.formatToParts?partsOffset(n,t):hackyOffset(n,t);"BC"===a&&(i=1-Math.abs(i));let d=+t;const u=d%1e3;return d-=u>=0?u:1e3+u,(objToLocalTS({year:i,month:r,day:s,hour:24===o?0:o,minute:l,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}},intlLFCache={};function getCachedLF(e,t={}){const n=JSON.stringify([e,t]);let i=intlLFCache[n];return i||(i=new Intl.ListFormat(e,t),intlLFCache[n]=i),i}var intlDTCache={};function getCachedDTF(e,t={}){const n=JSON.stringify([e,t]);let i=intlDTCache[n];return i||(i=new Intl.DateTimeFormat(e,t),intlDTCache[n]=i),i}var intlNumCache={};function getCachedINF(e,t={}){const n=JSON.stringify([e,t]);let i=intlNumCache[n];return i||(i=new Intl.NumberFormat(e,t),intlNumCache[n]=i),i}var intlRelCache={};function getCachedRTF(e,t={}){const{base:n,...i}=t,r=JSON.stringify([e,i]);let s=intlRelCache[r];return s||(s=new Intl.RelativeTimeFormat(e,t),intlRelCache[r]=s),s}var sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=(new Intl.DateTimeFormat).resolvedOptions().locale)}var weekInfoCache={};function getCachedWeekInfo(e){let t=weekInfoCache[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,weekInfoCache[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=getCachedDTF(e).resolvedOptions(),i=e}catch(r){const s=e.substring(0,n);t=getCachedDTF(s).resolvedOptions(),i=s}const{numberingSystem:r,calendar:s}=t;return[i,r,s]}}function intlConfigString(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function mapMonths(e){const t=[];for(let n=1;n<=12;n++){const i=DateTime.utc(2009,n,1);t.push(e(i))}return t}function mapWeekdays(e){const t=[];for(let n=1;n<=7;n++){const i=DateTime.utc(2016,11,13+n);t.push(e(i))}return t}function listStuff(e,t,n,i){const r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var PolyNumberFormatter=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:r,...s}=n;if(!t||Object.keys(s).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)}},PolyDateFormatter=class{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&IANAZone.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=getCachedDTF(t,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&hasRelative()&&(this.rtf=getCachedRTF(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):formatRelativeTime(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]},Locale=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,i,r,s=!1){const a=t||Settings.defaultLocale,o=a||(s?"en-US":systemLocale()),l=n||Settings.defaultNumberingSystem,c=i||Settings.defaultOutputCalendar,d=validateWeekSettings(r)||Settings.defaultWeekSettings;return new e(o,l,c,d,a)}
1static resetCache(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:i,weekSettings:r}={}){return e.create(t,n,i,r)}constructor(e,t,n,i,r){const[s,a,o]=parseLocaleString(e);this.locale=s,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.weekSettings=i,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,validateWeekSettings(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return listStuff(this,e,months,()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=mapMonths(e=>this.extract(e,n,"month"))),this.monthsCache[i][e]})}weekdays(e,t=!1){return listStuff(this,e,weekdays,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=mapWeekdays(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return listStuff(this,e,eras,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},singleton2=null,FixedOffsetZone=class e extends Zone{static get utcInstance(){return null===singleton2&&(singleton2=new e(0)),singleton2}static instance(t){return 0===t?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(signedOffset(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone(e,t){if(isUndefined(e)||null===e)return t;if(e instanceof Zone)return e;if(isString(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?SystemZone.instance:"utc"===n||"gmt"===n?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(n)||IANAZone.create(e)}return isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new InvalidZone(e)}var numberingSystems={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(numberingSystems.hanidec))t+=hanidecChars.indexOf(e[n]);else for(const e in numberingSystemsUTF16){const[n,r]=numberingSystemsUTF16[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}return t}var digitRegexCache={};function resetDigitRegexCache(){digitRegexCache={}}function digitRegex({numberingSystem:e},t=""){const n=e||"latn";return digitRegexCache[n]||(digitRegexCache[n]={}),digitRegexCache[n][t]||(digitRegexCache[n][t]=new RegExp(`${numberingSystems[n]}${t}`)),digitRegexCache[n][t]}
1var throwOnInvalid,now2=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,defaultWeekSettings=null,Settings=class{static get now(){return now2}static set now(e){now2=e}static set defaultZone(e){defaultZone=e}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(e){defaultLocale=e}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(e){defaultNumberingSystem=e}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(e){defaultOutputCalendar=e}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(e){defaultWeekSettings=validateWeekSettings(e)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(e){twoDigitCutoffYear=e%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(e){throwOnInvalid=e}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return 0===r?7:r}function computeOrdinal(e,t,n){return n+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){const n=isLeapYear(e)?leapLadder:nonLeapLadder,i=n.findIndex(e=>e<t);return{month:i+1,day:t-n[i]}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,n=1){const{year:i,month:r,day:s}=e,a=computeOrdinal(i,r,s),o=isoWeekdayToLocal(dayOfWeek(i,r,s),n);let l,c=Math.floor((a-o+14-t)/7);return c<1?(l=i-1,c=weeksInWeekYear(l,t,n)):c>weeksInWeekYear(i,t,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:o,...timeObject(e)}}function weekToGregorian(e,t=4,n=1){const{weekYear:i,weekNumber:r,weekday:s}=e,a=isoWeekdayToLocal(dayOfWeek(i,1,t),n),o=daysInYear(i);let l,c=7*r+s-a-7+t;c<1?(l=i-1,c+=daysInYear(l)):c>o?(l=i+1,c-=daysInYear(i)):l=i;const{month:d,day:u}=uncomputeOrdinal(l,c);return{year:l,month:d,day:u,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:computeOrdinal(t,n,i),...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:n}=e,{month:i,day:r}=uncomputeOrdinal(t,n);return{year:t,month:i,day:r,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear)){if(!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(e,t=4,n=1){const i=isInteger(e.weekYear),r=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,n)),s=integerBetween(e.weekday,1,7);return i?r?!s&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.weekNumber):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){const t=isInteger(e.year),n=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!n&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){const t=isInteger(e.year),n=integerBetween(e.month,1,12),i=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?n?!i&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){const{hour:t,minute:n,second:i,millisecond:r}=e,s=integerBetween(t,0,23)||24===t&&0===n&&0===i&&0===r,a=integerBetween(n,0,59),o=integerBetween(i,0,59),l=integerBetween(r,0,999);return s?a?o?!l&&unitOutOfRange("millisecond",r):unitOutOfRange("second",i):unitOutOfRange("minute",n):unitOutOfRange("hour",t)}function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function isString(e){return"string"==typeof e}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function hasLocaleWeekInfo(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,n){if(0!==e.length)return e.reduce((e,i)=>{const r=[t(i),i];return e&&n(e[0],r[0])===e[0]?e:r},null)[1]}function pick(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(null==e)return null;if("object"!=typeof e)throw new InvalidArgumentError("Week settings must be an object");
1if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!integerBetween(e,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween(e,t,n){return isInteger(e)&&e>=t&&e<=n}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function parseInteger(e){return isUndefined(e)||null===e||""===e?void 0:parseInt(e,10)}function parseFloating(e){return isUndefined(e)||null===e||""===e?void 0:parseFloat(e)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function roundTo(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const n=floorMod(t-1,12)+1;return 2===n?isLeapYear(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,n){return-isoWeekdayToLocal(dayOfWeek(e,1,t),n)+t-1}function weeksInWeekYear(e,t=4,n=1){const i=firstWeekOffset(e,t,n),r=firstWeekOffset(e+1,t,n);return(daysInYear(e)-i+r)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,n,i=null){const r=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const a={timeZoneName:t,...s},o=new Intl.DateTimeFormat(n,a).formatToParts(r).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function signedOffset(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function asNumber(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const n={};for(const i in e)if(hasOwnProperty(e,i)){const r=e[i];if(null==r)continue;n[t(i)]=asNumber(r)}return n}function formatOffset(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${padStart(n,2)}:${padStart(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${padStart(n,2)}${padStart(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}var monthsLong=["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"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}
vendor: 5,306 bytes, line 1
1function formatRelativeTime(e,t,n="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case-1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,c=r[e],d=i?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return a?`${o} ${d} ago`:`in ${o} ${d}`}function stringifyTokens(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}var macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS},Formatter=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n="",i=!1;const r=[];for(let s=0;s<e.length;s++){const a=e.charAt(s);"'"===a?(n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||a===t?n+=a:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(e){return macroTokenToFormatOpts[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return padStart(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(t,n){const i="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",o=(e,n)=>i?monthForDateTime(t,e):s(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?weekdayForDateTime(t,e):s(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=n=>{const i=e.macroTokenToFormatOpts(n);return i?this.formatWithSystemDefault(t,i):n},d=e=>i?eraForDateTime(t,e):s({era:e},"era");return stringifyTokens(e.parseFormat(n),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return i?meridiemForDateTime(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);
1case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}})}formatDurationFromString(t,n){const i=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=e.parseFormat(n),s=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return stringifyTokens(r,(e=>t=>{const n=i(t);return n?this.num(e.get(n),t.length):t})(t.shiftTo(...s.map(i).filter(e=>e))))}},ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce(([e,n,i],r)=>{const[s,a,o]=r(t,i);return[{...e,...s},a||n,o]},[{},null,1]).slice(0,2)}function parse(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function simpleParse(...e){return(t,n)=>{const i={};let r;for(r=0;r<e.length;r++)i[e[r]]=parseInteger(t[n+r]);return[i,null,n+r]}}var offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(e,t,n){const i=e[t];return isUndefined(i)?n:parseInteger(i)}function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){const n=!e[t]&&!e[t+1],i=signedOffset(e[t+1],e[t+2]);return[{},n?null:FixedOffsetZone.instance(i),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}var isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,n,i,r,s,a,o,l,c]=e,d="-"===t[0],u=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&d)?-e:e;return[{years:h(parseFloating(n)),months:h(parseFloating(i)),weeks:h(parseFloating(r)),days:h(parseFloating(s)),hours:h(parseFloating(a)),minutes:h(parseFloating(o)),seconds:h(parseFloating(l),"-0"===l),milliseconds:h(parseMillis(c),u)}]}var obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,n,i,r,s,a){const o={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(n)+1,day:parseInteger(i),hour:parseInteger(r),minute:parseInteger(s)};return a&&(o.second=parseInteger(a)),e&&(o.weekday=e.length>3?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),o}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,n,i,r,s,a,o,l,c,d,u]=e,h=fromStrings(t,r,i,n,s,a,o);let m;return m=l?obsOffsets[l]:c?0:signedOffset(d,u),[h,new FixedOffsetZone(m)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Frid
1ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,n,i,r,s,a,o]=e;return[fromStrings(t,r,i,n,s,a,o),FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,n,i,r,s,a,o]=e;return[fromStrings(t,o,n,i,r,s,a),FixedOffsetZone.utcInstance]}var isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}var extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}var sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}var INVALID="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...lowOrderMatrix},daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3},...lowOrderMatrix},orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits.slice(0).reverse();function clone(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(i)}function durationToMillis(e,t){let n=t.milliseconds??0;for(const i of reverseUnits.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function normalizeValues(e,t){const n=durationToMillis(e,t)<0?-1:1;orderedUnits.reduceRight((i,r)=>{if(isUndefined(t[r]))return i;if(i){const s=t[i]*n,a=e[r][i],o=Math.floor(s/a);t[r]+=o*n,t[i]-=o*a*n}return r},null),orderedUnits.reduce((n,i)=>{if(isUndefined(t[i]))return n;if(n){const r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i},null)}function removeZeroes(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}var Duration=class e{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?accurateMatrix:casualMatrix;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(null==t||"object"!=typeof t)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:normalizeObject(t,e.normalizeUnit),loc:Locale.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(isNumber(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new InvalidArgumentError(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[i]=parseISODuration(t);return i?e.fromObject(i,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[i]=parseISOTimeOnly(t);return i?e.fromObject(i,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}
vendor: 12,313 bytes, line 1
1static invalid(t,n=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const i=t instanceof Invalid?t:new Invalid(t,n);if(Settings.throwOnInvalid)throw new InvalidDurationError(i);return new e({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Formatter.create(this.loc,n).formatDurationFromString(this,e):INVALID}toHuman(e={}){if(!this.isValid)return INVALID;const t=orderedUnits.map(t=>{const n=this.values[t];return isUndefined(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return DateTime.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t),i={};for(const e of orderedUnits)(hasOwnProperty(n.values,e)||hasOwnProperty(this.values,e))&&(i[e]=n.get(e)+this.get(e));return clone(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=asNumber(e(this.values[n],n));return clone(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return clone(this,{values:{...this.values,...normalizeObject(t,e.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return clone(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return normalizeValues(this.matrix,e),clone(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return clone(this,{values:removeZeroes(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(t=>e.normalizeUnit(t));const n={},i={},r=this.toObject();let s;for(const e of orderedUnits)if(t.indexOf(e)>=0){s=e;let t=0;for(const n in i)t+=this.matrix[n][e]*i[n],i[n]=0;isNumber(r[e])&&(t+=r[e]);const a=Math.trunc(t);n[e]=a,i[e]=(1e3*t-1e3*a)/1e3}else isNumber(r[e])&&(i[e]=r[e]);for(const e in i)0!==i[e]&&(n[s]+=e===s?i[e]:i[e]/this.matrix[s][e]);return normalizeValues(this.matrix,n),clone(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return clone(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of orderedUnits)if(!t(this.values[n],e.values[n]))return!1;return!0}},INVALID2="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}var Interval=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const i=t instanceof Invalid?t:new Invalid(t,n);if(Settings.throwOnInvalid)throw new InvalidIntervalError(i);return new e({invalid:i})}static fromDateTimes(t,n){const i=friendlyDateTime(t),r=friendlyDateTime(n),s=validateStartEnd(i,r);return null==s?new e({start:i,end:r}):s}static after(t,n){const i=Duration.fromDurationLike(n),r=friendlyDateTime(t);return e.fromDateTimes(r,r.plus(i))}static before(t,n){const i=Duration.fromDurationLike(n),r=friendlyDateTime(t);return e.fromDateTimes(r.minus(i),r)}static fromISO(t,n){const[i,r]=(t||"").split("/",2);if(i&&r){let t,s,a,o;try{t=DateTime.fromISO(i,n),s=t.isValid}catch(e){s=!1}try{a=DateTime.fromISO(r,n),o=a.isValid}catch(e){o=!1}if(s&&o)return e.fromDateTimes(t,a);if(s){const i=Duration.fromISO(r,n);if(i.isValid)return e.after(t,i)}else if(o){const t=Duration.fromISO(i,n);if(t.isValid)return e.before(a,t)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(friendlyDateTime).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),i=[];let{s:r}=this,s=0;for(;r<this.e;){const t=n[s]||this.e,a=+t>+this.e?this.e:t;i.push(e.fromDateTimes(r,a)),r=a,s+=1}return i}splitBy(t){const n=Duration.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];let i,{s:r}=this,s=1;const a=[];for(;r<this.e;){const t=this.start.plus(n.mapUnits(e=>e*s));i=+t>+this.e?this.e:t,a.push(e.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return n>=i?null:e.fromDateTimes(n,i)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,i)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,i=0;const r=[],s=t.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),a=Array.prototype.concat(...s).sort((e,t)=>e.time-t.time);for(const t of a)i+="s"===t.type?1:-1,1===i?n=t.time:(n&&+n!==+t.time&&r.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:INVALID2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=DATE_SHORT,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):INVALID2}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:INVALID2}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID2}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:INVALID2}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:INVALID2}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},Info=class{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Locale.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Locale.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Locale.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Locale.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Duration.fromMillis(i).as("days"))}function highOrderDiffs(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=dayDiff(e,t);
1return(n-n%7)/7}],["days",dayDiff]],r={},s=e;let a,o;for(const[l,c]of i)n.indexOf(l)>=0&&(a=l,r[l]=c(e,t),o=s.plus(r),o>t?(r[l]--,(e=s.plus(r))>t&&(o=e,r[l]--,e=s.plus(r))):e=o);return[e,r,o,a]}function diff_default(e,t,n,i){let[r,s,a,o]=highOrderDiffs(e,t,n);const l=t-r,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=r.plus({[o]:1})),a!==r&&(s[o]=(s[o]||0)+l/(a-r)));const d=Duration.fromObject(s,i);return c.length>0?Duration.fromMillis(l,i).shiftTo(...c).plus(d):d}var MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}var NBSP=String.fromCharCode(160),spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(e,t){return null===e?null:{regex:RegExp(e.map(fixListRegex).join("|")),deser:([n])=>e.findIndex(e=>stripInsensitivities(n)===stripInsensitivities(e))+t}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}
1function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const n=digitRegex(t),i=digitRegex(t,"{2}"),r=digitRegex(t,"{3}"),s=digitRegex(t,"{4}"),a=digitRegex(t,"{6}"),o=digitRegex(t,"{1,2}"),l=digitRegex(t,"{1,3}"),c=digitRegex(t,"{1,6}"),d=digitRegex(t,"{1,9}"),u=digitRegex(t,"{2,4}"),h=digitRegex(t,"{4,6}"),m=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(c);case"yy":case"kk":return intUnit(u,untruncateYear);case"yyyy":case"kkkk":return intUnit(s);case"yyyyy":return intUnit(h);case"yyyyyy":return intUnit(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return intUnit(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return intUnit(i);case"MMM":return oneOf(t.months("short",!0),1);case"MMMM":return oneOf(t.months("long",!0),1);case"LLL":return oneOf(t.months("short",!1),1);case"LLLL":return oneOf(t.months("long",!1),1);case"o":case"S":return intUnit(l);case"ooo":case"SSS":return intUnit(r);case"u":return simple(d);case"uu":return simple(o);case"uuu":case"E":case"c":return intUnit(n);
1case"a":return oneOf(t.meridiems(),0);case"EEE":return oneOf(t.weekdays("short",!1),1);case"EEEE":return oneOf(t.weekdays("long",!1),1);case"ccc":return oneOf(t.weekdays("short",!0),1);case"cccc":return oneOf(t.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${o.source})(?::(${i.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${o.source})(${i.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:MISSING_FTP};return f.token=e,f}var partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,n){const{type:i,value:r}=e;if("literal"===i){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const s=t[i];let a=i;"hour"===i&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=partTypeStyleToTokenVal[a];if("object"==typeof o&&(o=o[s]),o)return{literal:!1,val:o}}function buildRegex(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}function match(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const r in n)if(hasOwnProperty(n,r)){const s=n[r],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(i.slice(t,t+a))),t+=a}return[i,e]}return[i,{}]}function dateTimeFromMatches(e){let t,n=null;isUndefined(e.z)||(n=IANAZone.create(e.z)),isUndefined(e.Z)||(n||(n=new FixedOffsetZone(e.Z)),t=e.Z),isUndefined(e.q)||(e.M=3*(e.q-1)+1),isUndefined(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),isUndefined(e.u)||(e.S=parseMillis(e.u));return[Object.keys(e).reduce((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t},{}),n,t]}var dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(e,t){if(e.literal)return e;const n=formatOptsToTokens(Formatter.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map(e=>maybeExpandMacroToken(e,t)))}var TokenParser=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=expandMacroTokens(Formatter.parseFormat(t),e),this.units=this.tokens.map(t=>unitForToken(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=buildRegex(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=match(e,this.regex,this.handlers),[i,r,s]=n?dateTimeFromMatches(n):[null,null,void 0];if(hasOwnProperty(n,"a")&&hasOwnProperty(n,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:r,specificOffset:s}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
vendor: 3,222 bytes, line 1
1dReason:null}};function explainFromTokens(e,t,n){return new TokenParser(e,n).explainFromTokens(t)}function parseFromTokens(e,t,n){const{result:i,zone:r,specificOffset:s,invalidReason:a}=explainFromTokens(e,t,n);return[i,r,s,a]}function formatOptsToTokens(e,t){if(!e)return null;const n=Formatter.create(t,e).dtFormatter(getDummyDateTime()),i=n.formatToParts(),r=n.resolvedOptions();return i.map(t=>tokenForPart(t,e,r))}var INVALID3="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return null===e.localWeekData&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone2(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...n,...t,old:n})}function fixOffset(e,t,n){let i=e-60*t*1e3;const r=n.offset(i);if(t===r)return[i,t];i-=60*(r-t)*1e3;const s=n.offset(i);return r===s?[i,r]:[e-60*Math.min(r,s)*1e3,Math.max(r,s)]}function tsToObj(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function objToTS(e,t,n){return fixOffset(objToLocalTS(e),t,n)}function adjustTime(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:i,month:r,day:Math.min(e.c.day,daysInMonth(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=objToLocalTS(s);let[l,c]=fixOffset(o,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function parseDataToDateTime(e,t,n,i,r,s){const{setZone:a,zone:o}=n;if(e&&0!==Object.keys(e).length||t){const i=t||o,r=DateTime.fromObject(e,{...n,zone:i,specificOffset:s});return a?r:r.setZone(o)}return DateTime.invalid(new Invalid("unparsable",`the input "${r}" can't be parsed as ${i}`))}function toTechFormat(e,t,n=!0){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=padStart(e.c.year,n?6:4),t?(i+="-",i+=padStart(e.c.month),i+="-",i+=padStart(e.c.day)):(i+=padStart(e.c.month),i+=padStart(e.c.day)),i}function toISOTime(e,t,n,i,r,s){let a=padStart(e.c.hour);return t?(a+=":",a+=padStart(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=padStart(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=padStart(e.c.second),0===e.c.millisecond&&i||(a+=".",a+=padStart(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!s?a+="Z":e.o<0?(a+="-",a+=padStart(Math.trunc(-e.o/60)),a+=":",a+=padStart(Math.trunc(-e.o%60))):(a+="+",a+=pa
1dStart(Math.trunc(e.o/60)),a+=":",a+=padStart(Math.trunc(e.o%60)))),s&&(a+="["+e.zone.ianaName+"]"),a}var zoneOffsetTs,defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits2=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function guessOffsetForZone(e){return zoneOffsetGuessCache[e]||(void 0===zoneOffsetTs&&(zoneOffsetTs=Settings.now()),zoneOffsetGuessCache[e]=e.offset(zoneOffsetTs)),zoneOffsetGuessCache[e]}function quickDT(e,t){const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid)return DateTime.invalid(unsupportedZone(n));const i=Locale.fromObject(t);let r,s;if(isUndefined(e.year))r=Settings.now();else{for(const t of orderedUnits2)isUndefined(e[t])&&(e[t]=defaultUnitValues[t]);const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t)return DateTime.invalid(t);const i=guessOffsetForZone(n);[r,s]=objToTS(e,i,n)}return new DateTime({ts:r,zone:n,loc:i,o:s})}function diffRelative(e,t,n){const i=!!isUndefined(n.round)||n.round,r=(e,r)=>{e=roundTo(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,r)},s=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(s(n.unit),n.unit);for(const e of n.units){const t=s(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,n.units[n.units.length-1])}function lastOpts(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var zoneOffsetGuessCache={},DateTime=class e{constructor(e){const t=e.zone||Settings.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(t.isValid?null:unsupportedZone(t));this.ts=isUndefined(e.ts)?Settings.now():e.ts;let i=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{const s=isNumber(e.o)&&!e.old?e.o:t.offset(this.ts);i=tsToObj(this.ts,s),n=Number.isNaN(i.year)?new Invalid("invalid input"):null,i=n?null:i,r=n?null:s}}this._zone=t,this.loc=e.loc||Locale.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){const[e,t]=lastOpts(arguments),[n,i,r,s,a,o,l]=t;return quickDT({year:n,month:i,day:r,hour:s,minute:a,second:o,millisecond:l},e)}static utc(){const[e,t]=lastOpts(arguments),[n,i,r,s,a,o,l]=t;return e.zone=FixedOffsetZone.utcInstance,quickDT({year:n,month:i,day:r,hour:s,minute:a,second:o,millisecond:l},e)}static fromJSDate(t,n={}){const i=isDate(t)?t.valueOf():NaN;if(Number.isNaN(i))return e.invalid("invalid input");const r=normalizeZone(n.zone,Settings.defaultZone);return r.isValid?new e({ts:i,zone:r,loc:Locale.fromObject(n)}):e.invalid(unsupportedZone(r))}static fromMillis(t,n={}){if(isNumber(t))return t<-MAX_DATE||t>MAX_DATE?e.invalid("Timestamp out of range"):new e({ts:t,zone:normalizeZone(n.zone,Settings.defaultZone),loc:Locale.fromObject(n)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(isNumber(t))return new e({ts:1e3*t,zone:normalizeZone(n.zone,Settings.defaultZone),loc:Locale.fromObject(n)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const i=normalizeZone(n.zone,Settings.defaultZone);
vendor: 2,393 bytes, line 1
1if(!i.isValid)return e.invalid(unsupportedZone(i));const r=Locale.fromObject(n),s=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:a,startOfWeek:o}=usesLocalWeekValues(s,r),l=Settings.now(),c=isUndefined(n.specificOffset)?i.offset(l):n.specificOffset,d=!isUndefined(s.ordinal),u=!isUndefined(s.year),h=!isUndefined(s.month)||!isUndefined(s.day),m=u||h,f=s.weekYear||s.weekNumber;if((m||d)&&f)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const p=f||s.weekday&&!m;let g,y,v=tsToObj(l,c);p?(g=orderedWeekUnits,y=defaultWeekUnitValues,v=gregorianToWeek(v,a,o)):d?(g=orderedOrdinalUnits,y=defaultOrdinalUnitValues,v=gregorianToOrdinal(v)):(g=orderedUnits2,y=defaultUnitValues);let b=!1;for(const e of g){isUndefined(s[e])?s[e]=b?y[e]:v[e]:b=!0}const w=(p?hasInvalidWeekData(s,a,o):d?hasInvalidOrdinalData(s):hasInvalidGregorianData(s))||hasInvalidTimeData(s);if(w)return e.invalid(w);const T=p?weekToGregorian(s,a,o):d?ordinalToGregorian(s):s,[S,E]=objToTS(T,c,i),k=new e({ts:S,zone:i,o:E,loc:r});return s.weekday&&m&&t.weekday!==k.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${k.toISO()}`):k.isValid?k:e.invalid(k.invalid)}static fromISO(e,t={}){const[n,i]=parseISODate(e);return parseDataToDateTime(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=parseRFC2822Date(e);return parseDataToDateTime(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=parseHTTPDate(e);return parseDataToDateTime(n,i,t,"HTTP",t)}static fromFormat(t,n,i={}){if(isUndefined(t)||isUndefined(n))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=i,a=Locale.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[o,l,c,d]=parseFromTokens(a,t,n);return d?e.invalid(d):parseDataToDateTime(o,l,i,`format ${n}`,t,c)}static fromString(t,n,i={}){return e.fromFormat(t,n,i)}static fromSQL(e,t={}){const[n,i]=parseSQL(e);return parseDataToDateTime(n,i,t,"SQL",e)}static invalid(t,n=null){if(!t)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const i=t instanceof Invalid?t:new Invalid(t,n);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(i);return new e({invalid:i}
vendor: 4,174 bytes, line 1
1)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=formatOptsToTokens(e,Locale.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t)).map(e=>e.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=objToLocalTS(this.c),i=this.zone.offset(n-e),r=this.zone.offset(n+e),s=this.zone.offset(n-i*t),a=this.zone.offset(n-r*t);if(s===a)return[this];const o=n-s*t,l=n-a*t,c=tsToObj(o,s),d=tsToObj(l,a);return c.hour===d.hour&&c.minute===d.minute&&c.second===d.second&&c.millisecond===d.millisecond?[clone2(this,{ts:o}),clone2(this,{ts:l})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if((t=normalizeZone(t,Settings.defaultZone)).equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||i){const n=t.offset(this.ts),i=this.toObject();[e]=objToTS(i,n,t)}return clone2(this,{ts:e,zone:t})}
vendor: 4,226 bytes, line 1
1return e.invalid(unsupportedZone(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return clone2(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:n,startOfWeek:i}=usesLocalWeekValues(t,this.loc),r=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),s=!isUndefined(t.ordinal),a=!isUndefined(t.year),o=!isUndefined(t.month)||!isUndefined(t.day),l=a||o,c=t.weekYear||t.weekNumber;if((l||s)&&c)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&s)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let d;r?d=weekToGregorian({...gregorianToWeek(this.c,n,i),...t},n,i):isUndefined(t.ordinal)?(d={...this.toObject(),...t},isUndefined(t.day)&&(d.day=Math.min(daysInMonth(d.year,d.month),d.day))):d=ordinalToGregorian({...gregorianToOrdinal(this.c),...t});const[u,h]=objToTS(d,this.o,this.zone);return clone2(this,{ts:u,o:h})}plus(e){if(!this.isValid)return this;return clone2(this,adjustTime(this,Duration.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return clone2(this,adjustTime(this,Duration.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=Duration.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):INVALID3}toLocaleString(e=DATE_SHORT,t={}){return this.isValid?Formatter.create(this.loc.clone(t),e).formatDateTime(this):INVALID3}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s="extended"===e;let a=toISODate(this,s);return a+="T",a+=toISOTime(this,s,t,n,i,r),a}toISODate({format:e="extended"}={}){return this.isValid?toISODate(this,"extended"===e):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+toISOTime(this,"extended"===s,t,e,n,r)}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),toTechFormat(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():INVALID3}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Duration.invalid("created by diffing an invali
1d DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=maybeArray(t).map(Duration.normalizeUnit),s=e.valueOf()>this.valueOf(),a=diff_default(s?this:e,s?e:this,r,i);return s?a.negate():a}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,n)<=i&&i<=r.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||e.fromObject({},{zone:this.zone}),i=t.padding?this<n?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),diffRelative(n,this.plus(i),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?diffRelative(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:r=null}=n;return explainFromTokens(Locale.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(t,n,i={}){return e.fromFormatExplain(t,n,i)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,r=Locale.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new TokenParser(r,e)}static fromFormatParser(t,n,i={}){if(isUndefined(t)||isUndefined(n))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=i,a=Locale.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!a.equals(n.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):parseDataToDateTime(o,l,i,`format ${n.format}`,t,c)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var import_youtube_player3=__toESM(require_dist(),1),CompetitionModal=require_micromodal(),Accordion2=require_accordion_min(),CompetitionDrawer=class{constructor(e){this.blockIsLive=!1,e&&(this.element=e,this.currentTime=
1DateTime.now().setZone("America/Chicago"),this.modalOpener=document.querySelector(".competition-lp-hero__watch-button"),this.modalCloser=this.element.querySelector(".competition-drawer__close"),this.backupContentHolder=this.element.querySelector(".competition-drawer-backup-content-holder"),this.micromodalOptions={onShow:e=>{document.body.style.overflow="hidden",this.element.scrollTop=0,this.youTubePlayer&&setTimeout(()=>{this.youTubePlayer.playVideo()},500)},onClose:e=>{document.body.style.removeProperty("overflow"),this.youTubePlayer&&this.youTubePlayer.pauseVideo()},openClass:"is-open",disableScroll:!1,awaitOpenAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,awaitCloseAnimation:!window.matchMedia("(prefers-reduced-motion)").matches,disableFocus:!0},this.getData().then(e=>{this.competitionModalData=e,this.handleHeroLiveFlag(),this.populateContent(),this.incrementRepopulate(),this.populateSponsorCarousel(),this.populateAccordions(),this.mutationObserveAriaHidden(),setTimeout(()=>{this.disableInnerLinkTabbing()},2e3)}
1).catch(e=>{console.log(e)}),this.init())}init(){this.debug(),this.initializeModal(),this.moveModalToBottomOfBody(),this.handleTabs(),this.handleOpener(),this.handleCloser()}handleHeroLiveFlag(){this.blockIsLive=this.competitionModalData.competition.rounds.some(e=>e.days.some(e=>e.blocks.some(e=>"concert"===e.type&&e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO())));const e=document.querySelector(".competition-lp-hero__live-flag");e&&(this.blockIsLive?e.style.removeProperty("display"):e.style.display="none")}debug(){const e=this.element.querySelector(".dev-test"),t=this.element.querySelector(".dev-test__time");setInterval(()=>{this.currentTime=this.currentTime.plus({seconds:1}),n()},1e3);const n=()=>{t.innerHTML=this.currentTime.toFormat("MMM d, yyyy hh:mm:ss a")},i=()=>{this.competitionModalData.competition.general.override_youtube=!1,setTimeout(()=>{this.populateContent()},500)};e.querySelector(".toggle").addEventListener("click",()=>{e.classList.toggle("dev-test__collapse")});const r=this.element.querySelectorAll(".debug-button"),s=()=>{r.forEach(e=>{e.style.opacity="0.25",e.style.pointerEvents="none",setTimeout(()=>{e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events")},1e3)})},a=this.element.querySelector("#oneMonth"),o=a.querySelector(".plus"),l=a.querySelector(".minus"),c=this.element.querySelector("#oneWeek"),d=c.querySelector(".plus"),u=c.querySelector(".minus"),h=this.element.querySelector("#oneDay"),m=h.querySelector(".plus"),f=h.querySelector(".minus"),p=this.element.querySelector("#oneHour"),g=p.querySelector(".plus"),y=p.querySelector(".minus"),v=this.element.querySelector("#oneMinute"),b=v.querySelector(".plus"),w=v.querySelector(".minus"),T=this.element.querySelector("#fortyMinute"),S=T.querySelector(".plus"),E=T.querySelector(".minus");o.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({months:1}),n(),i(),s()}),l.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({months:1}),n(),i(),s()}),d.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({weeks:1}),n(),i(),s()}),u.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({weeks:1}),n(),i(),s()}),m.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({days:1}),n(),i(),s()}),f.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({days:1}),n(),i(),s()}),g.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({hours:1}),n(),i(),s()}),y.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({hours:1}),n(),i(),s()}),b.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({minutes:1}),n(),i(),s()}),w.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({minutes:1}),n(),i(),s()}),S.addEventListener("click",()=>{this.currentTime=this.currentTime.plus({minutes:40}),n(),i(),s()}),E.addEventListener("click",()=>{this.currentTime=this.currentTime.minus({minutes:40}),n(),i(),s()});document.querySelector("#ytbackup").addEventListener("click",()=>{this.competitionModalData.competition.general.override_youtube=!0,s(),setTimeout(()=>{this.populateContent()},500)})}initializeModal(){CompetitionModal.init(this.micromodalOptions)}incrementRepopulate(){let e=this.populateContentTime();setInterval(()=>{this.currentTime.toISO()>e&&(this.populateContent(),e=this.populateContentTime())},1e3)}handleOpener(){this.modalOpener.addEventListener("click",e=>{CompetitionModal.show("competition-drawer",this.micromodalOptions)})}handleCloser(){this.modalCloser.addEventListener("click",e=>{CompetitionModal.close("competition-drawer",this.micromodalOptions)})}moveModalToBottomOfBody(){document.body.appendChild(this.element)}async getData(){(new Date).toISOString();if(window.location.href.startsWith("http://127.0.0.1:3000")||window.location.href.startsWith("https://dev-cliburn.pantheonsite.io/themes/custom/idfive_accelerator/idfive-component-library/"))try{const e=await fetch("../../js/json/competition-mock-data.json");if(!e.ok)throw new Error("Failed to fetch data");return await e.json()}catch(e){console.error("Error fetching data:",e)}else try{(new Date).toISOString().replace(/[-:T.]/g,"").slice(0,12);const e=await fetch("/api/idfive_base/competition");if(!e.ok)throw new Error("Failed to fetch data");return await e.json()}catch(e){return null}}handleTabs(){document.querySelector(".competition-drawer__tabs");const e=this.element.querySelector("ul"),t=e.querySelectorAll("a"),n=this.element.querySelectorAll("[id^='competition-drawer__tabs--']"),i=(e,i)=>{i.focus(),i.removeAttribute("tabindex"),i.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");let r=Array.prototype.indexOf.call(t,i),s=Array.prototype.indexOf.call(t,e);n[s].hidden=!0,n[r].hidden=!1};e.setAttribute("role","tablist"),Array.prototype.forEach.call(t,(r,s)=>{r.setAttribute("role","tab"),r.setAttribute("id","tab"+(s+1)),r.setAttribute("tabindex","-1"),r.parentNode.setAttribute("role","presentation"),r.addEventListener("click",t=>{t.preventDefault();let n=e.querySelector("[aria-selected]");t.currentTarget!==n&&i(n,t.currentTarget)}),r.addEventListener("keydown",e=>{let r=Array.prototype.indexOf.call(t,e.currentTarget),a=37===e.which?r-1:39===e.which?r+1:40===e.which?"down":null;null!==a&&(e.preventDefault(),"down"===a?n[s].focus():t[a]&&i(e.currentTarget,t[a]))})}),Array.prototype.forEach.call(n,(e,n)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1");e.getAttribute("id");e.setAttribute("aria-labelledby",t[n].id),e.hidden=!0}),t[0].removeAttribute("tabindex"),t[0].setAttribute("aria-selected","true"),n[0].hidden=!1}populateContentTime(){const e=this.competitionModalData.competition.rounds;let t="";
1return e.forEach(e=>{if(this.currentTime.toISO()>=e.start&&this.currentTime.toISO()<=e.end){e.days.forEach(e=>{e.blocks.forEach(e=>{if(e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO()&&(t=e.end,"concert"===e.type)){const n=e.performances;n&&n.forEach((e,n)=>{e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO()&&(t=e.end)})}})})}}),t}populateContent(){this.populateGetInvolvedSection(),this.handleHeroLiveFlag();const e=this.element.querySelector(".competition-drawer-schedule__round-name");this.competitionModalData.competition.rounds.forEach(t=>{if(this.currentTime.toISO()>=t.start&&this.currentTime.toISO()<=t.end){e.innerText=`${t.name}`;t.days.forEach(e=>{const n=e.blocks;this.populateVideo(n),this.outputVideoStageLinks(n),this.populateLiveStats(t),n.forEach(e=>{this.populateTextContent(e),this.populateArtist(e)})})}})}populateAccordions(){const e=this.element.querySelector(".competition-drawer-schedule__accordion-wrap");this.competitionModalData.competition.rounds.forEach(t=>{if(this.currentTime.toISO()>=t.start&&this.currentTime.toISO()<=t.end){e.innerHTML="";t.days.forEach(t=>{const n=this.currentTime.setZone("America/Chicago").toFormat("yyyy-MM-dd"),i=t.date===n,r=DateTime.fromISO(t.date),s=`\n              <div class="accordion__accordion" ${i?'data-current-day="true"':""}>\n                <h2 class="accordion__title">\n                  <button type="button" class="accordion__trigger">\n                    ${r.weekdayLong}, ${r.monthLong} ${r.day}\n                    <span class="accordion__trigger-icon" aria-hidden="true"></span>\n                  </button>\n                </h2>\n                <div class="accordion__content">\n                  <div class="accordion__content-wrap text-content">\n                  ${t.blocks.filter(e=>"concert"===e.type).map(e=>e.performances.map(e=>{const t=e.artist;return`\n                          <div class="accordion__content-artist">\n                            <div class="accordion__content-artist-info">\n                              <a href="${t.url}" class="accordion__content-artist-name">${t.name}\n                              </a>\n                              <span class="accordion__content-artist-country">${t.country}</span>\n                              <span class="accordion__content-artist-age">${t.age}</span>\n                            </div>\n                            <div class="accordion__content-artist-time">${DateTime.fromISO(e.start).setZone("America/Chicago").toFormat("hh:mm a ZZZZ")}</div>\n                          </div>`}).join("")).join("")}\n                </div>\n              </div>\n            </div>\n          `;e.insertAdjacentHTML("beforeend",s)})}});const t=document.querySelector("[data-current-day='true']"),n=Array.from(document.querySelectorAll(".competition-drawer-schedule__accordion-wrap .accordion__accordion")).findIndex(e=>e===t);new Accordion2(e,{duration:100,elementClass:"accordion__accordion",triggerClass:"accordion__trigger",panelClass:"accordion__content",showMultiple:!1,ariaEnabled:!0,openOnInit:[n]})}populateVideo(e){const t=this.competitionModalData.competition.general,n=this.element.querySelector(".competition-drawer-livestream-video-wrap"),i=this.element.querySelector(".competition-drawer-livestream-video");t.override_youtube?(this.youTubePlayer&&this.youTubePlayer.mute(),n.style.display="none",this.backupContentHolder.style.display="block",this.backupContentHolder.innerHTML=`${t.override_markup}`):(this.backupContentHolder.style.removeProperty("display"),this.backupContentHolder.innerHTML="",n.style.removeProperty("display"),e.forEach(e=>{if(e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO()){const t=e.youtube_streams[0].id;if(this.youTubePlayer){if(this.youTubePlayer.isMuted()&&this.youTubePlayer.unMute(),i){const e=i.src.replace(/\/embed\/([^?]+)/,`/embed/${t}`);i.src!==e&&(i.src=e,setTimeout(()=>{this.youTubePlayer.playVideo()},500))}}else this.youTubePlayer=(0,import_youtube_player3.default)(i,{videoId:t,playerVars:{rel:0,enablejsapi:1}})}}));setTimeout(()=>{(()=>{const e=document.querySelector(".competition-drawer-livestream-video"),t=document.createElement("div");e&&"div"===e.tagName.toLowerCase()&&!e.querySelector(".youtube-error")?(t.className="youtube-error",t.innerHTML='<p>Unable to load the livestream. Cookies are required in order to view the live competition. Please accept all cookies, and the competition should display here.<p>\n        <p>Optionally, you can view the competition on <a href="https://www.youtube.com/@TheCliburn">youtube</a>.</p>',e.appendChild(t)):t.remove()})()},1500)}async outputVideoStageLinks(e){const t=this.competitionModalData.competition.general,n=this.element.querySelector(".competition-drawer-livestream-video-info"),i=this.element.querySelector(".competition-drawer-livestream-video-info-watching-link-holder");if(i.innerHTML="",t.override_youtube)n.style.display="none";else{n.style.removeProperty("display");const t=e.map(e=>{if(e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO())return Promise.all(e.youtube_streams.map((e,t)=>new Promise(n=>{this.youTubePlayer.getVideoUrl().then(r=>{const s=0===t?"disabled":"",a=`<button\n                    class="competition-drawer-livestream-video-info-watching-link"\n                    data-competition-drawer-livestream-youtube-id="${e.
1id}"\n                    ${s}\n                  >\n                    ${e.name}\n                  </button>`;i.insertAdjacentHTML("beforeend",a),n()})})))});await Promise.all(t),this.handleStageViewButtons()}}handleStageViewButtons(){const e=this.element.querySelector(".competition-drawer-livestream-video"),t=document.querySelectorAll("button[data-competition-drawer-livestream-youtube-id]");t.forEach(n=>{n.addEventListener("click",n=>{const i=n.target;t.forEach(e=>e.disabled=!1),i.disabled=!0;const r=i.getAttribute("data-competition-drawer-livestream-youtube-id"),s=e.src.replace(/\/embed\/([^?]+)/,`/embed/${r}`);e.src=s,setTimeout(()=>{this.youTubePlayer.playVideo()},500)})})}populateArtist(e){const t=this.element.querySelector(".competition-drawer-on-stage"),n=this.element.querySelector(".competition-drawer-on-stage__info-card-image img"),i=this.element.querySelector(".competition-drawer-on-stage__info-card-name"),r=this.element.querySelector(".competition-drawer-on-stage__info-card-country"),s=this.element.querySelector(".competition-drawer-on-stage__info-card-age"),a=this.element.querySelector(".competition-drawer-on-stage__info-card-repertoire-label span"),o=this.element.querySelector(".competition-drawer-on-stage__info-card-repertoire ul"),l=this.element.querySelector(".competition-drawer-on-stage__bio-toggle"),c=this.element.querySelector(".competition-drawer-on-stage__bio-toggle-text");let d=!1;const u=this.element.querySelector(".competition-drawer-on-stage__bio-outer"),h=this.element.querySelector(".competition-drawer-on-stage__bio-text"),m=this.element.querySelector(".competition-drawer-on-stage__bio-link"),f=this.element.querySelector(".competition-drawer-on-stage__label");if(e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO())if("concert"===e.type){t.style.removeProperty("display");const p=e.performances;p&&p.forEach((e,t)=>{const g=e.artist;let y=null;if(e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO()?y=!1:t>0&&p[t-1].end<this.currentTime.toISO()&&e.start>this.currentTime.toISO()&&(y=!0),g&&null!==y){n.src=g.image.src,n.alt=g.image.alt,i.innerText=g.name,r.innerText=g.country,s.innerText=g.age;const e=this.competitionModalData.competition.rounds;f.innerText=!0===y?"Upcoming":"On Stage",e.forEach(e=>{this.currentTime.toISO()>=e.start&&this.currentTime.toISO()<=e.end&&(a.innerText=e.name)}),o.innerHTML="",g.repertoire.forEach(e=>{const t=`<li>${e}</li>`;o.insertAdjacentHTML("beforeend",t)}),h.innerHTML=g.bio,m.href=g.url,l.setAttribute("aria-expanded",`${d}`),u.setAttribute("aria-hidden",`${!d}`),l.addEventListener("click",()=>{l.setAttribute("aria-expanded",`${!d}`),u.setAttribute("aria-hidden",`${d}`),c.innerText=d?"Show Bio":"Hide Bio",d=!d})}})}else"break"===e.type&&(t.style.display="none")}populateTextContent(e){const t=this.element.querySelector("#competition-drawer-title"),n=this.element.querySelector(".competition-drawer-live-look__label"),i=this.element.querySelector(".competition-drawer-live-look__round-name-text"),r=this.element.querySelector(".competition-drawer-live-look__round-description");if(t.innerText=this.competitionModalData.competition.general.title,e.start<=this.currentTime.toISO()&&e.end>=this.currentTime.toISO()){n.innerText=e.live_look_label,i.innerText=e.label,r.innerText=e.description;(()=>{const t=this.competitionModalData.competition.general.did_you_know;let n="";t?.label&&t?.body&&(n=`\n          <div class="competition-drawer-live-look-did-you-know">\n            <h3 class="competition-drawer-live-look-did-you-know__label">\n            <svg aria-hidden="true" width="18" height="18">\n                <use xlink:href="#icon-info"></use>\n            </svg>\n            ${t.label}</h3>\n            <div class="competition-drawer-live-look-did-you-know__body">${t.body}</div>\n          </div>\n        `);let i="";if(t?.primary_link.title&&(i=`\n            <a href="${t.primary_link.url}" class="primary-link">${t.primary_link.title}\n              <span class="primary-link__arrow">\n                <svg aria-hidden="true" width="42" height="24">\n                  <use xlink:href="#icon-arrow-primary-link"></use>\n                </svg>\n              </span>\n            </a>\n          `),"break"===e.type)r.insertAdjacentHTML("beforeend",n),r.insertAdjacentHTML("beforeend",i);else{const e=this.element.querySelector(".competition-drawer-live-look-did-you-know");e&&e.remove()}})()}}populateLiveStats(e){const t=this.element.querySelector(".competition-drawer-live-look__round-stats");this.blockIsLive?t.style.removeProperty("display"):t.style.display="none"}
1populateSponsorCarousel(){const e=this.element.querySelector(".competition-drawer-live-look-sponsor-carousel"),t=e.querySelector(".swiper-wrapper");this.competitionModalData.competition.sponsors.forEach(e=>{const n=`\n        <div class="swiper-slide">\n          <img src="${e.src}" alt="${e.alt}" loading="lazy" width="278" height="200">\n        </div>`;t.insertAdjacentHTML("beforeend",n)});new Swiper(e,{autoHeight:!0,slidesPerView:1,spaceBetween:0,centeredSlides:!0,loop:!0,modules:[A11y,Keyboard,Autoplay],autoplay:{delay:7e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},speed:800,a11y:{enabled:!0,nextSlideMessage:"Next",prevSlideMessage:"Previous"},keyboard:{enabled:!0}})}populateGetInvolvedSection(){const e=this.element.querySelector(".competition-drawer-get-involved"),t=e.querySelector(".card_set__section-title"),n=e.querySelector(".card-set ul"),i=e.querySelector(".competition-drawer-subscription-link"),r=this.competitionModalData.competition.get_involved,s=n.querySelectorAll("li");for(let e=0;e<s.length;e++)e!==s.length-1&&s[e].remove();i.innerHTML="",t.innerText=r.card_label,r.cards.forEach(e=>{const t=`\n      <li>\n        <div class="card">\n          <div class="card__content">\n            <h2 class="card__title">\n              <a class="card__link" href="${e.url}">${e.title}</a>\n            </h2>\n          </div>\n        </div>\n      </li>\n    `;n.insertAdjacentHTML("afterbegin",t)});const a=`\n      <span class="competition-drawer-subscription-link-intro">${r.subscription_link.description}</span>\n      <a href="${r.subscription_link.primary_link.url}" class="primary-link">${r.subscription_link.primary_link.title}\n        <span class="primary-link__arrow">\n          <svg aria-hidden="true" width="42" height="24">\n            <use xlink:href="#icon-arrow-primary-link"></use>\n          </svg>\n        </span>\n      </a>\n    `;i.insertAdjacentHTML("beforeend",a)}disableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), iframe, button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.setAttribute("tabindex","-1")})}enableInnerLinkTabbing(){this.element.querySelectorAll("a[href]:not(.skip-link), iframe, button, input, textarea, select, form, details, audio, video, iframe, table").forEach(e=>{e.removeAttribute("tabindex")})}mutationObserveAriaHidden(){var e=this.element,t=e.getAttribute("aria-hidden");new MutationObserver(e=>{e.forEach(e=>{if("aria-hidden"===e.attributeName){var n=e.target.getAttribute("aria-hidden");t!==n&&(t=n,"true"===n?this.disableInnerLinkTabbing():this.enableInnerLinkTabbing())}})}).observe(e,{attributes:!0,attributeFilter:["aria-hidden"]})}};function competitionDrawerInit(){const e=document.querySelector(".competition-drawer");new CompetitionDrawer(e)}document.addEventListener("DOMContentLoaded",()=>{AccessibilityUtilities.init(),cardsInit(),newsFeedInit(),accordionInit(),carouselInit(),modalInit(),calendarFilterModalInit(),landingPageSubnavInit(),videoEmbedInit(),siteHeaderInit(),cookieBarInit(),countdownInit(),homeHeroInit(),homeArchetypesInit(),homeMedalWinnersInit(),homeQuoteSlidesInit(),performanceCarouselInit(),eventFeedCardInit(),performanceDrawerInit(),newsFeatureGridMainStoryInit(),winnersTourFeedInit(),competitionDrawerInit()});
2/*! Bundled license information:
3
4headroom.js/dist/headroom.js:
5  (*!
6   * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it
7   * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
8   * License: MIT
9   *)
10
11sister/src/sister.js:
12  (**
13  * @link https://github.com/gajus/sister for the canonical source repository
14  * @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
15  *)
16
17@vimeo/player/dist/player.js:
18  (*! @vimeo/player v2.25.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js *)
19  (*!
20   * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
21   * https://github.com/polygonplanet/weakmap-polyfill
22   * Copyright (c) 2015-2021 polygonplanet <[email protected]>
23   * @license MIT
24   *)
25  (*! Native Promise Only
26      v0.8.1 (c) Kyle Simpson
27      MIT License: http://getify.mit-license.org
28  *)
29
30js-cookie/dist/js.cookie.js:
31  (*! js-cookie v3.0.5 | MIT *)
32*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.