PageSourceSearch

https://www.effia.com/sites/default/files/js/js_nJcNmuXoBEBeFHilwy…4f6BKayrwWwUXbcpiIRMpwg2vM43n3DB4yjLExA1aq0

js effia.com collected 2026-09-24 19:05:32 UTC 777,117 bytes, 57 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function main($,Drupal,drupalSettings){var $submitForm=$('.contact-message-contact-effia-form #edit-submit');$(document).on('change','.contact-message-contact-effia-form .form-wrapper  select',function(){$('#main .zurb-foundation-callout.callout.alert .close-button').each(function(){$(this).trigger('click');});if($('.field--type-file .form-item--error-message').length>0)$('.field--type-file .form-item--error-message').remove();activeSubmitForm();});$(document).ready(function(){$('.contact-message-contact-effia-form select').on('change',function(){$('#main .zurb-foundation-callout.callout.alert .close-button').each(function(){$(this).trigger('click');});if($('.field--name-field-status .form-item--error-message').length>0){$('.field--name-field-status .form-item--error-message').remove();$('.field--name-field-status .js-form-type-select').removeClass('form-item--error');$('.field--name-field-status select').removeClass('error');}if($('.field--type-file .form-item--error-message').length>0)$('.field--type-file .form-item--error-message').remove();activeSubmitForm();});});var reloadPage=function reloadPage(){window.location.reload();};$(document).on('input','#edit-field-name-0-value',function(){activeSubmitForm();});$(document).on('input','#edit-field-firstname-0-value',function(){activeSubmitForm();});$(document).on('input','#edit-field-email-0-value',function(){activeSubmitForm();});$(document).on('input','#edit-message-0-value',function(){activeSubmitForm();});$(document).on('change','#parking_field_container',function(){activeSubmitForm();});const activeSubmitForm=function activeSubmitForm(){const $nameField=$('#edit-field-name-0-value');const $firstnameField=$('#edit-field-firstname-0-value');const $messageField=$('#edit-message-0-value');const $objectField=$('*[data-drupal-selector="edit-field-motif-object"]');const $parkingField=$('#parking_field_container');const $mailField=$('#edit-field-email-0-value');const regMail=new RegExp('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$');const parkingDisplay=$objectField.find(':selected').attr('parking');if($nameField.val()&&$firstnameField.val()&&$messageField.val()&&$objectField.val()!=='0'&&(parkingDisplay==='0'||(parkingDisplay==='1'&&$parkingField.val())))$submitForm.removeAttr("disabled");else $submitForm.prop('disabled',true);};Drupal.behaviors.toolsBehavior={attach:function attach(){$(once('toolsBehavior','.ui-dialog')).on('dialogclose',function(){reloadPage();});activeSubmitForm();}};Drupal.behaviors.toolsThemeBehavior={attach:function attach(){$(once('toolsThemeBehavior','.print')).on('click',function(){window.print();});}};}(jQuery,Drupal));;
3function InfoBubble(opt_options){this.extend(InfoBubble,google.maps.OverlayView);this.tabs_=[];this.activeTab_=null;this.baseZIndex_=100;this.isOpen_=false;var options=opt_options||{};if(options['backgroundColor']==undefined)options['backgroundColor']=this.BACKGROUND_COLOR_;if(options['borderColor']==undefined)options['borderColor']=this.BORDER_COLOR_;if(options['borderRadius']==undefined)options['borderRadius']=this.BORDER_RADIUS_;if(options['borderWidth']==undefined)options['borderWidth']=this.BORDER_WIDTH_;if(options['padding']==undefined)options['padding']=this.PADDING_;if(options['arrowPosition']==undefined)options['arrowPosition']=this.ARROW_POSITION_;if(options['disableAutoPan']==undefined)options['disableAutoPan']=false;if(options['disableAnimation']==undefined)options['disableAnimation']=false;if(options['minWidth']==undefined)options['minWidth']=this.MIN_WIDTH_;if(options['shadowStyle']==undefined)options['shadowStyle']=this.SHADOW_STYLE_;if(options['arrowSize']==undefined)options['arrowSize']=this.ARROW_SIZE_;if(options['arrowStyle']==undefined)options['arrowStyle']=this.ARROW_STYLE_;if(options['closeSrc']==undefined)options['closeSrc']=this.CLOSE_SRC_;this.buildDom_();this.setValues(options);}window['InfoBubble']=InfoBubble;InfoBubble.prototype.ARROW_SIZE_=15;InfoBubble.prototype.ARROW_STYLE_=0;InfoBubble.prototype.SHADOW_STYLE_=1;InfoBubble.prototype.MIN_WIDTH_=50;
3InfoBubble.prototype.ARROW_POSITION_=50;InfoBubble.prototype.PADDING_=10;InfoBubble.prototype.BORDER_WIDTH_=1;InfoBubble.prototype.BORDER_COLOR_='#ccc';InfoBubble.prototype.BORDER_RADIUS_=10;InfoBubble.prototype.BACKGROUND_COLOR_='#fff';InfoBubble.prototype.CLOSE_SRC_='https://maps.gstatic.com/intl/en_us/mapfiles/iw_close.gif';InfoBubble.prototype.extend=function(obj1,obj2){return (function(object){for(var property in object.prototype)this.prototype[property]=object.prototype[property];return this;}).apply(obj1,[obj2]);};InfoBubble.prototype.buildDom_=function(){var bubble=this.bubble_=document.createElement('DIV');bubble.style['position']='absolute';bubble.style['zIndex']=this.baseZIndex_;var tabsContainer=this.tabsContainer_=document.createElement('DIV');tabsContainer.style['position']='relative';var close=this.close_=document.createElement('IMG');close.style['position']='absolute';close.style['border']=0;close.style['zIndex']=this.baseZIndex_+1;close.style['cursor']='pointer';close.src=this.get('closeSrc');var that=this;google.maps.event.addDomListener(close,'click',function(){that.close();google.maps.event.trigger(that,'closeclick');});var contentContainer=this.contentContainer_=document.createElement('DIV');contentContainer.style['overflowX']='auto';contentContainer.style['overflowY']='auto';contentContainer.style['cursor']='default';contentContainer.style['clear']='both';contentContainer.style['position']='relative';var content=this.content_=document.createElement('DIV');contentContainer.appendChild(content);var arrow=this.arrow_=document.createElement('DIV');arrow.style['position']='relative';var arrowOuter=this.arrowOuter_=document.createElement('DIV');var arrowInner=this.arrowInner_=document.createElement('DIV');var arrowSize=this.getArrowSize_();arrowOuter.style['position']=arrowInner.style['position']='absolute';arrowOuter.style['left']=arrowInner.style['left']='50%';arrowOuter.style['height']=arrowInner.style['height']='0';arrowOuter.style['width']=arrowInner.style['width']='0';arrowOuter.style['marginLeft']=this.px(-arrowSize);arrowOuter.style['borderWidth']=this.px(arrowSize);arrowOuter.style['borderBottomWidth']=0;var bubbleShadow=this.bubbleShadow_=document.createElement('DIV');bubbleShadow.style['position']='absolute';bubble.style['display']=bubbleShadow.style['display']='none';bubble.appendChild(this.tabsContainer_);bubble.appendChild(close);bubble.appendChild(contentContainer);arrow.appendChild(arrowOuter);arrow.appendChild(arrowInner);bubble.appendChild(arrow);var stylesheet=document.createElement('style');stylesheet.setAttribute('type','text/css');this.animationName_='_ibani_'+Math.round(Math.random()*10000);var css='.'+this.animationName_+'{-webkit-animation-name:'+this.animationName_+';-webkit-animation-duration:0.5s;'+'-webkit-animation-iteration-count:1;}'+'@-webkit-keyframes '+this.animationName_+' {from {'+'-webkit-transform: scale(0)}50% {-webkit-transform: scale(1.2)}90% '+'{-webkit-transform: scale(0.95)}to {-webkit-transform: scale(1)}}';stylesheet.textContent=css;document.getElementsByTagName('head')[0].appendChild(stylesheet);};InfoBubble.prototype.setBackgroundClassName=function(className){this.set('backgroundClassName',className);};InfoBubble.prototype['setBackgroundClassName']=InfoBubble.prototype.setBackgroundClassName;InfoBubble.prototype.backgroundClassName_changed=function(){this.content_.className=this.get('backgroundClassName');};InfoBubble.prototype['backgroundClassName_changed']=InfoBubble.prototype.backgroundClassName_changed;InfoBubble.prototype.setTabClassName=function(className){this.set('tabClassName',className);};InfoBubble.prototype['setTabClassName']=InfoBubble.prototype.setTabClassName;InfoBubble.prototype.tabClassName_changed=function(){this.updateTabStyles_();};InfoBubble.prototype['tabClassName_changed']=InfoBubble.prototype.tabClassName_changed;InfoBubble.prototype.getArrowStyle_=function(){return parseInt(this.get('arrowStyle'),10)||0;};InfoBubble.prototype.setArrowStyle=function(style){this.set('arrowStyle',style);};InfoBubble.prototype['setArrowStyle']=InfoBubble.prototype.setArrowStyle;InfoBubble.prototype.arrowStyle_changed=function(){this.arrowSize_changed();};InfoBubble.prototype['arrowStyle_changed']=InfoBubble.prototype.arrowStyle_changed;InfoBubble.prototype.getArrowSize_=function(){return parseInt(this.get('arrowSize'),10)||0;};InfoBubble.prototype.setArrowSize=function(size){this.set('arrowSize',size);};InfoBubble.prototype['setArrowSize']=InfoBubble.prototype.setArrowSize;InfoBubble.prototype.arrowSize_changed=function(){this.borderWidth_changed();};InfoBubble.prototype['arrowSize_changed']=InfoBubble.prototype.arrowSize_changed;InfoBubble.prototype.setArrowPosition=function(pos){this.set('arrowPosition',pos);};InfoBubble.prototype['setArrowPosition']=InfoBubble.prototype.setArrowPosition;InfoBubble.prototype.getArrowPosition_=function(){return parseInt(this.get('arrowPosition'),10)||0;};InfoBubble.prototype.arrowPosition_changed=function(){var pos=this.getArrowPosition_();this.arrowOuter_.style['left']=this.arrowInner_.style['left']=pos+'%';this.redraw_();};InfoBubble.prototype['arrowPosition_changed']=InfoBubble.prototype.arrowPosition_changed;InfoBubble.prototype.setZIndex=function(zIndex){this.set('zIndex',zIndex);};InfoBubble.prototype['setZIndex']=InfoBubble.prototype.setZIndex;InfoBubble.prototype.getZIndex=function(){return parseInt(this.get('zIndex'),10)||this.baseZIndex_;};InfoBubble.prototype.zIndex_changed=function(){var zIndex=this.getZIndex();this.bubble_.style['zIndex']=this.baseZIndex_=zIndex;this.close_.style['zIndex']=zIndex+1;};InfoBubble.prototype['zIndex_changed']=InfoBubble.prototype.zIndex_changed;InfoBubble.prototype.setShadowStyle=function(shadowStyle){this.set('shadowStyle',shadowStyle);};InfoBubble.prototype['setShadowStyle']=InfoBubble.prototype.setShadowStyle;InfoBubble.prototype.getShadowStyle_=function(){return parseInt(this.get('shadowStyle'),10)||0;};InfoBubble.prototype.shadowStyle_changed=function(){var shadowStyle=this.getShadowStyle_();var display='';var shadow='';var backgroundColor='';switch(shadowStyle){case 0:display='none';break;case 1:shadow='40px 15px 10px rgba(33,33,33,0.3)';backgroundColor='transparent';break;
3case 2:shadow='0 0 2px rgba(33,33,33,0.3)';backgroundColor='rgba(33,33,33,0.35)';break;}this.bubbleShadow_.style['boxShadow']=this.bubbleShadow_.style['webkitBoxShadow']=this.bubbleShadow_.style['MozBoxShadow']=shadow;this.bubbleShadow_.style['backgroundColor']=backgroundColor;if(this.isOpen_){this.bubbleShadow_.style['display']=display;this.draw();}};InfoBubble.prototype['shadowStyle_changed']=InfoBubble.prototype.shadowStyle_changed;InfoBubble.prototype.showCloseButton=function(){this.set('hideCloseButton',false);};InfoBubble.prototype['showCloseButton']=InfoBubble.prototype.showCloseButton;InfoBubble.prototype.hideCloseButton=function(){this.set('hideCloseButton',true);};InfoBubble.prototype['hideCloseButton']=InfoBubble.prototype.hideCloseButton;InfoBubble.prototype.hideCloseButton_changed=function(){this.close_.style['display']=this.get('hideCloseButton')?'none':'';};InfoBubble.prototype['hideCloseButton_changed']=InfoBubble.prototype.hideCloseButton_changed;InfoBubble.prototype.setBackgroundColor=function(color){if(color)this.set('backgroundColor',color);};InfoBubble.prototype['setBackgroundColor']=InfoBubble.prototype.setBackgroundColor;InfoBubble.prototype.backgroundColor_changed=function(){var backgroundColor=this.get('backgroundColor');this.contentContainer_.style['backgroundColor']=backgroundColor;this.arrowInner_.style['borderColor']=backgroundColor+' transparent transparent';this.updateTabStyles_();};InfoBubble.prototype['backgroundColor_changed']=InfoBubble.prototype.backgroundColor_changed;InfoBubble.prototype.setBorderColor=function(color){if(color)this.set('borderColor',color);};InfoBubble.prototype['setBorderColor']=InfoBubble.prototype.setBorderColor;InfoBubble.prototype.borderColor_changed=function(){var borderColor=this.get('borderColor');var contentContainer=this.contentContainer_;var arrowOuter=this.arrowOuter_;contentContainer.style['borderColor']=borderColor;arrowOuter.style['borderColor']=borderColor+' transparent transparent';contentContainer.style['borderStyle']=arrowOuter.style['borderStyle']=this.arrowInner_.style['borderStyle']='solid';this.updateTabStyles_();};InfoBubble.prototype['borderColor_changed']=InfoBubble.prototype.borderColor_changed;InfoBubble.prototype.setBorderRadius=function(radius){this.set('borderRadius',radius);};InfoBubble.prototype['setBorderRadius']=InfoBubble.prototype.setBorderRadius;InfoBubble.prototype.getBorderRadius_=function(){return parseInt(this.get('borderRadius'),10)||0;};InfoBubble.prototype.borderRadius_changed=function(){var borderRadius=this.getBorderRadius_();var borderWidth=this.getBorderWidth_();this.contentContainer_.style['borderRadius']=this.contentContainer_.style['MozBorderRadius']=this.contentContainer_.style['webkitBorderRadius']=this.bubbleShadow_.style['borderRadius']=this.bubbleShadow_.style['MozBorderRadius']=this.bubbleShadow_.style['webkitBorderRadius']=this.px(borderRadius);this.tabsContainer_.style['paddingLeft']=this.tabsContainer_.style['paddingRight']=this.px(borderRadius+borderWidth);this.redraw_();};InfoBubble.prototype['borderRadius_changed']=InfoBubble.prototype.borderRadius_changed;InfoBubble.prototype.getBorderWidth_=function(){return parseInt(this.get('borderWidth'),10)||0;};InfoBubble.prototype.setBorderWidth=function(width){this.set('borderWidth',width);};InfoBubble.prototype['setBorderWidth']=InfoBubble.prototype.setBorderWidth;InfoBubble.prototype.borderWidth_changed=function(){var borderWidth=this.getBorderWidth_();this.contentContainer_.style['borderWidth']=this.px(borderWidth);this.tabsContainer_.style['top']=this.px(borderWidth);this.updateArrowStyle_();this.updateTabStyles_();this.borderRadius_changed();this.redraw_();};InfoBubble.prototype['borderWidth_changed']=InfoBubble.prototype.borderWidth_changed;InfoBubble.prototype.updateArrowStyle_=function(){var borderWidth=this.getBorderWidth_();var arrowSize=this.getArrowSize_();var arrowStyle=this.getArrowStyle_();var arrowOuterSizePx=this.px(arrowSize);var arrowInnerSizePx=this.px(Math.max(0,arrowSize-borderWidth));var outer=this.arrowOuter_;var inner=this.arrowInner_;this.arrow_.style['marginTop']=this.px(-borderWidth);outer.style['borderTopWidth']=arrowOuterSizePx;inner.style['borderTopWidth']=arrowInnerSizePx;if(arrowStyle==0||arrowStyle==1){outer.style['borderLeftWidth']=arrowOuterSizePx;inner.style['borderLeftWidth']=arrowInnerSizePx;}else outer.style['borderLeftWidth']=inner.style['borderLeftWidth']=0;
3if(arrowStyle==0||arrowStyle==2){outer.style['borderRightWidth']=arrowOuterSizePx;inner.style['borderRightWidth']=arrowInnerSizePx;}else outer.style['borderRightWidth']=inner.style['borderRightWidth']=0;if(arrowStyle<2){outer.style['marginLeft']=this.px(-(arrowSize));inner.style['marginLeft']=this.px(-(arrowSize-borderWidth));}else outer.style['marginLeft']=inner.style['marginLeft']=0;if(borderWidth==0)outer.style['display']='none';else outer.style['display']='';};InfoBubble.prototype.setPadding=function(padding){this.set('padding',padding);};InfoBubble.prototype['setPadding']=InfoBubble.prototype.setPadding;InfoBubble.prototype.setCloseSrc=function(src){if(src&&this.close_)this.close_.src=src;};InfoBubble.prototype['setCloseSrc']=InfoBubble.prototype.setCloseSrc;InfoBubble.prototype.getPadding_=function(){return parseInt(this.get('padding'),10)||0;};InfoBubble.prototype.padding_changed=function(){var padding=this.getPadding_();this.contentContainer_.style['padding']=this.px(padding);this.updateTabStyles_();this.redraw_();};InfoBubble.prototype['padding_changed']=InfoBubble.prototype.padding_changed;InfoBubble.prototype.px=function(num){if(num)return num+'px';return num;};InfoBubble.prototype.addEvents_=function(){var events=['mousedown','mousemove','mouseover','mouseout','mouseup','mousewheel','DOMMouseScroll','touchstart','touchend','touchmove','dblclick','contextmenu','click'];var bubble=this.bubble_;this.listeners_=[];for(var i=0,event;event=events[i];i++)this.listeners_.push(google.maps.event.addDomListener(bubble,event,function(e){e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();}));};InfoBubble.prototype.onAdd=function(){if(!this.bubble_)this.buildDom_();this.addEvents_();var panes=this.getPanes();if(panes){panes.floatPane.appendChild(this.bubble_);panes.floatShadow.appendChild(this.bubbleShadow_);}google.maps.event.trigger(this,'domready');};InfoBubble.prototype['onAdd']=InfoBubble.prototype.onAdd;InfoBubble.prototype.draw=function(){var projection=this.getProjection();if(!projection)return;var latLng=(this.get('position'));if(!latLng){this.close();return;}var tabHeight=0;if(this.activeTab_)tabHeight=this.activeTab_.offsetHeight;var anchorHeight=this.getAnchorHeight_();var arrowSize=this.getArrowSize_();var arrowPosition=this.getArrowPosition_();arrowPosition=arrowPosition/100;var pos=projection.fromLatLngToDivPixel(latLng);var width=this.contentContainer_.offsetWidth;var height=this.bubble_.offsetHeight;if(!width)return;var top=pos.y-(height+arrowSize);if(anchorHeight)top-=anchorHeight;var left=pos.x-(width*arrowPosition);this.bubble_.style['top']=this.px(top);this.bubble_.style['left']=this.px(left);var shadowStyle=parseInt(this.get('shadowStyle'),10);switch(shadowStyle){case 1:this.bubbleShadow_.style['top']=this.px(top+tabHeight-1);this.bubbleShadow_.style['left']=this.px(left);this.bubbleShadow_.style['width']=this.px(width);this.bubbleShadow_.style['height']=this.px(this.contentContainer_.offsetHeight-arrowSize);break;case 2:width=width*0.8;if(anchorHeight)this.bubbleShadow_.style['top']=this.px(pos.y);else this.bubbleShadow_.style['top']=this.px(pos.y+arrowSize);this.bubbleShadow_.style['left']=this.px(pos.x-width*arrowPosition);this.bubbleShadow_.style['width']=this.px(width);this.bubbleShadow_.style['height']=this.px(2);break;}};InfoBubble.prototype['draw']=InfoBubble.prototype.draw;InfoBubble.prototype.onRemove=function(){if(this.bubble_&&this.bubble_.parentNode)this.bubble_.parentNode.removeChild(this.bubble_);if(this.bubbleShadow_&&this.bubbleShadow_.parentNode)this.bubbleShadow_.parentNode.removeChild(this.bubbleShadow_);for(var i=0,listener;listener=this.listeners_[i];i++)google.maps.event.removeListener(listener);};InfoBubble.prototype['onRemove']=InfoBubble.prototype.onRemove;InfoBubble.prototype.isOpen=function(){return this.isOpen_;};InfoBubble.prototype['isOpen']=InfoBubble.prototype.isOpen;InfoBubble.prototype.close=function(){if(this.bubble_){this.bubble_.style['display']='none';this.bubble_.className=this.bubble_.className.replace(this.animationName_,'');}if(this.bubbleShadow_){this.bubbleShadow_.style['display']='none';this.bubbleShadow_.className=this.bubbleShadow_.className.replace(this.animationName_,'');}this.isOpen_=false;};InfoBubble.prototype['close']=InfoBubble.prototype.close;InfoBubble.prototype.open=function(opt_map,opt_anchor){var that=this;window.setTimeout(function(){that.open_(opt_map,opt_anchor);},0);};InfoBubble.prototype.open_=function(opt_map,opt_anchor){this.updateContent_();if(opt_map)this.setMap(opt_map);
3if(opt_anchor){this.set('anchor',opt_anchor);this.bindTo('anchorPoint',opt_anchor);this.bindTo('position',opt_anchor);}this.bubble_.style['display']=this.bubbleShadow_.style['display']='';var animation=!this.get('disableAnimation');if(animation){this.bubble_.className+=' '+this.animationName_;this.bubbleShadow_.className+=' '+this.animationName_;}this.redraw_();this.isOpen_=true;var pan=!this.get('disableAutoPan');if(pan){var that=this;window.setTimeout(function(){that.panToView();},200);}};InfoBubble.prototype['open']=InfoBubble.prototype.open;InfoBubble.prototype.setPosition=function(position){if(position)this.set('position',position);};InfoBubble.prototype['setPosition']=InfoBubble.prototype.setPosition;InfoBubble.prototype.getPosition=function(){return (this.get('position'));};InfoBubble.prototype['getPosition']=InfoBubble.prototype.getPosition;InfoBubble.prototype.position_changed=function(){this.draw();};InfoBubble.prototype['position_changed']=InfoBubble.prototype.position_changed;InfoBubble.prototype.panToView=function(){var projection=this.getProjection();if(!projection)return;if(!this.bubble_)return;var anchorHeight=this.getAnchorHeight_();var height=this.bubble_.offsetHeight+anchorHeight;var map=this.get('map');var mapDiv=map.getDiv();var mapHeight=mapDiv.offsetHeight;var latLng=this.getPosition();var centerPos=projection.fromLatLngToContainerPixel(map.getCenter());var pos=projection.fromLatLngToContainerPixel(latLng);var spaceTop=centerPos.y-height;var spaceBottom=mapHeight-centerPos.y;var needsTop=spaceTop<0;var deltaY=0;if(needsTop){spaceTop*=-1;deltaY=(spaceTop+spaceBottom)/2;}pos.y-=deltaY;latLng=projection.fromContainerPixelToLatLng(pos);if(map.getCenter()!=latLng)map.panTo(latLng);};InfoBubble.prototype['panToView']=InfoBubble.prototype.panToView;InfoBubble.prototype.htmlToDocumentFragment_=function(htmlString){htmlString=htmlString.replace(/^\s*([\S\s]*)\b\s*$/,'$1');var tempDiv=document.createElement('DIV');tempDiv.innerHTML=htmlString;if(tempDiv.childNodes.length==1)return (tempDiv.removeChild(tempDiv.firstChild));else{var fragment=document.createDocumentFragment();while(tempDiv.firstChild)fragment.appendChild(tempDiv.firstChild);return fragment;}};InfoBubble.prototype.removeChildren_=function(node){if(!node)return;var child;while(child=node.firstChild)node.removeChild(child);};InfoBubble.prototype.setContent=function(content){this.set('content',content);};InfoBubble.prototype['setContent']=InfoBubble.prototype.setContent;InfoBubble.prototype.getContent=function(){return (this.get('content'));};InfoBubble.prototype['getContent']=InfoBubble.prototype.getContent;InfoBubble.prototype.updateContent_=function(){if(!this.content_)return;this.removeChildren_(this.content_);var content=this.getContent();if(content){if(typeof content=='string')content=this.htmlToDocumentFragment_(content);this.content_.appendChild(content);var that=this;var images=this.content_.getElementsByTagName('IMG');for(var i=0,image;image=images[i];i++)google.maps.event.addDomListener(image,'load',function(){that.imageLoaded_();});}this.redraw_();};InfoBubble.prototype.imageLoaded_=function(){var pan=!this.get('disableAutoPan');this.redraw_();if(pan&&(this.tabs_.length==0||this.activeTab_.index==0))this.panToView();};InfoBubble.prototype.updateTabStyles_=function(){if(this.tabs_&&this.tabs_.length){for(var i=0,tab;tab=this.tabs_[i];i++)this.setTabStyle_(tab.tab);this.activeTab_.style['zIndex']=this.baseZIndex_;var borderWidth=this.getBorderWidth_();var padding=this.getPadding_()/2;this.activeTab_.style['borderBottomWidth']=0;this.activeTab_.style['paddingBottom']=this.px(padding+borderWidth);}};InfoBubble.prototype.setTabStyle_=function(tab){var backgroundColor=this.get('backgroundColor');var borderColor=this.get('borderColor');var borderRadius=this.getBorderRadius_();var borderWidth=this.getBorderWidth_();var padding=this.getPadding_();var marginRight=this.px(-(Math.max(padding,borderRadius)));var borderRadiusPx=this.px(borderRadius);var index=this.baseZIndex_;if(tab.index)index-=tab.index;var styles={'cssFloat':'left','position':'relative','cursor':'pointer','backgroundColor':backgroundColor,'border':this.px(borderWidth)+' solid '+borderColor,'padding':this.px(padding/2)+' '+this.px(padding),'marginRight':marginRight,'whiteSpace':'nowrap','borderRadiusTopLeft':borderRadiusPx,'MozBorderRadiusTopleft':borderRadiusPx,'webkitBorderTopLeftRadius':borderRadiusPx,'borderRadiusTopRight':borderRadiusPx,'MozBorderRadiusTopright':borderRadiusPx,'webkitBorderTopRightRadius':borderRadiusPx,'zIndex':index,'display':'inline'};for(var style in styles)tab.style[style]=styles[style];var className=this.get('tabClassName');if(className!=undefined)tab.className+=' '+className;};InfoBubble.prototype.addTabActions_=function(tab){var that=this;tab.listener_=google.maps.event.addDomListener(tab,'click',function(){that.setTabActive_(this);});};InfoBubble.prototype.setTabActive=function(index){var tab=this.tabs_[index-1];if(tab)this.setTabActive_(tab.tab);};InfoBubble.prototype['setTabActive']=InfoBubble.prototype.setTabActive;InfoBubble.prototype.setTabActive_=function(tab){if(!tab){this.setContent('');this.updateContent_();return;}var padding=this.getPadding_()/2;var borderWidth=this.getBorderWidth_();if(this.activeTab_){var activeTab=this.activeTab_;activeTab.style['zIndex']=this.baseZIndex_-activeTab.index;activeTab.style['paddingBottom']=this.px(padding);activeTab.style['borderBottomWidth']=this.px(borderWidth);}tab.style['zIndex']=this.baseZIndex_;tab.style['borderBottomWidth']=0;tab.style['marginBottomWidth']='-10px';tab.style['paddingBottom']=this.px(padding+borderWidth);this.setContent(this.tabs_[tab.index].content);this.updateContent_();this.activeTab_=tab;this.redraw_();};InfoBubble.prototype.setMaxWidth=function(width){this.set('maxWidth',width);};InfoBubble.prototype['setMaxWidth']=InfoBubble.prototype.setMaxWidth;InfoBubble.prototype.maxWidth_changed=function(){this.redraw_();};InfoBubble.prototype['maxWidth_changed']=InfoBubble.prototype.maxWidth_changed;InfoBubble.prototype.setMaxHeight=function(height){this.set('maxHeight',height);};InfoBubble.prototype['setMaxHeight']=InfoBubble.prototype.setMaxHeight;InfoBubble.prototype.maxHeight_changed=function(){this.redraw_();};InfoBubble.prototype['maxHeight_changed']=InfoBubble.prototype.maxHeight_changed;InfoBubble.prototype.setMinWidth=function(width){this.set('minWidth',width);};InfoBubble.prototype['setMinWidth']=InfoBubble.prototype.setMinWidth;InfoBubble.prototype.minWidth_changed=function(){this.redraw_();};InfoBubble.prototype['minWidth_changed']=InfoBubble.prototype.minWidth_changed;InfoBubble.prototype.setMinHeight=function(height){this.set('minHeight',height);};InfoBubble.prototype['setMinHeight']=InfoBubble.prototype.setMinHeight;InfoBubble.prototype.minHeight_changed=function(){this.redraw_();};InfoBubble.prototype['minHeight_changed']=InfoBubble.prototype.minHeight_changed;InfoBubble.prototype.addTab=function(label,content){var tab=document.createElement('DIV');tab.innerHTML=label;this.setTabStyle_(tab);this.addTabActions_(tab);this.tabsContainer_.appendChild(tab);this.tabs_.push({label,content,tab});tab.index=this.tabs_.length-1;tab.style['zIndex']=this.baseZIndex_-tab.index;if(!this.activeTab_)this.setTabActive_(tab);tab.className=tab.className+' '+this.animationName_;this.redraw_();};InfoBubble.prototype['addTab']=InfoBubble.prototype.addTab;InfoBubble.prototype.updateTab=function(index,opt_label,opt_content){if(!this.tabs_.length||index<0||index>=this.tabs_.length)return;var tab=this.tabs_[index];if(opt_label!=undefined)tab.tab.innerHTML=tab.label=opt_label;if(opt_content!=undefined)tab.content=opt_content;if(this.activeTab_==tab.tab){this.setContent(tab.content);this.updateContent_();}this.redraw_();};InfoBubble.prototype['updateTab']=InfoBubble.prototype.updateTab;
3InfoBubble.prototype.removeTab=function(index){if(!this.tabs_.length||index<0||index>=this.tabs_.length)return;var tab=this.tabs_[index];tab.tab.parentNode.removeChild(tab.tab);google.maps.event.removeListener(tab.tab.listener_);this.tabs_.splice(index,1);delete tab;for(var i=0,t;t=this.tabs_[i];i++)t.tab.index=i;if(tab.tab==this.activeTab_){if(this.tabs_[index])this.activeTab_=this.tabs_[index].tab;else if(this.tabs_[index-1])this.activeTab_=this.tabs_[index-1].tab;else this.activeTab_=undefined;this.setTabActive_(this.activeTab_);}this.redraw_();};InfoBubble.prototype['removeTab']=InfoBubble.prototype.removeTab;InfoBubble.prototype.getElementSize_=function(element,opt_maxWidth,opt_maxHeight){var sizer=document.createElement('DIV');sizer.style['display']='inline';sizer.style['position']='absolute';sizer.style['visibility']='hidden';if(typeof element=='string')sizer.innerHTML=element;else sizer.appendChild(element.cloneNode(true));document.body.appendChild(sizer);var size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);if(opt_maxWidth&&size.width>opt_maxWidth){sizer.style['width']=this.px(opt_maxWidth);size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);}if(opt_maxHeight&&size.height>opt_maxHeight){sizer.style['height']=this.px(opt_maxHeight);size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);}document.body.removeChild(sizer);delete sizer;return size;};InfoBubble.prototype.redraw_=function(){this.figureOutSize_();this.positionCloseButton_();this.draw();};InfoBubble.prototype.figureOutSize_=function(){var map=this.get('map');if(!map)return;var padding=this.getPadding_();var borderWidth=this.getBorderWidth_();var borderRadius=this.getBorderRadius_();var arrowSize=this.getArrowSize_();var mapDiv=map.getDiv();var gutter=arrowSize*2;var mapWidth=mapDiv.offsetWidth-gutter;var mapHeight=mapDiv.offsetHeight-gutter-this.getAnchorHeight_();var tabHeight=0;var width=(this.get('minWidth')||0);var height=(this.get('minHeight')||0);var maxWidth=(this.get('maxWidth')||0);var maxHeight=(this.get('maxHeight')||0);maxWidth=Math.min(mapWidth,maxWidth);maxHeight=Math.min(mapHeight,maxHeight);var tabWidth=0;if(this.tabs_.length)for(var i=0,tab;tab=this.tabs_[i];i++){var tabSize=this.getElementSize_(tab.tab,maxWidth,maxHeight);var contentSize=this.getElementSize_(tab.content,maxWidth,maxHeight);if(width<tabSize.width)width=tabSize.width;tabWidth+=tabSize.width;if(height<tabSize.height)height=tabSize.height;if(tabSize.height>tabHeight)tabHeight=tabSize.height;if(width<contentSize.width)width=contentSize.width;if(height<contentSize.height)height=contentSize.height;}else{var content=(this.get('content'));if(typeof content=='string')content=this.htmlToDocumentFragment_(content);if(content){var contentSize=this.getElementSize_(content,maxWidth,maxHeight);if(width<contentSize.width)width=contentSize.width;if(height<contentSize.height)height=contentSize.height;}}if(maxWidth)width=Math.min(width,maxWidth);if(maxHeight)height=Math.min(height,maxHeight);width=Math.max(width,tabWidth);if(width==tabWidth)width=width+2*padding;arrowSize=arrowSize*2;width=Math.max(width,arrowSize);if(width>mapWidth)width=mapWidth;if(height>mapHeight)height=mapHeight-tabHeight;if(this.tabsContainer_){this.tabHeight_=tabHeight;this.tabsContainer_.style['width']=this.px(tabWidth);}this.contentContainer_.style['width']=this.px(width);this.contentContainer_.style['height']=this.px(height);};InfoBubble.prototype.getAnchorHeight_=function(){var anchor=this.get('anchor');if(anchor){var anchorPoint=(this.get('anchorPoint'));if(anchorPoint)return -1*anchorPoint.y;}return 0;};InfoBubble.prototype.anchorPoint_changed=function(){this.draw();};InfoBubble.prototype['anchorPoint_changed']=InfoBubble.prototype.anchorPoint_changed;InfoBubble.prototype.positionCloseButton_=function(){var br=this.getBorderRadius_();var bw=this.getBorderWidth_();var right=2;var top=2;if(this.tabs_.length&&this.tabHeight_)top+=this.tabHeight_;top+=bw;right+=bw;var c=this.contentContainer_;if(c&&c.clientHeight<c.scrollHeight)right+=15;this.close_.style['right']=this.px(right);this.close_.style['top']=this.px(top);};;
4window.Effia={};(function($,Effia){Effia.getCurrentTab=function(){if(document.getElementById('subscribe')&&document.getElementById('subscribe').offsetParent!==null)return 'subscribe';return 'reserve';};Effia.getUrlParam=function(name){var results=new RegExp('[\?&]'+name+'=([^&#]*)').exec(window.location.href);if(results)return results[1];return 0;};Effia.forfaitMatch=function(forfait){var mininday=1440;var minutes=Number(forfait)*mininday;return minutes;};Effia.getNavisionVehicleCode=function(vehicleType){switch(vehicleType){case 'car':return 'AUTO';case 'moto':return 'MOTO';case 'bicycle':return 'VELO';case 'utility':return 'VEHUT';}return '';};Effia.initialize=function(){var params=this.initializeDates();var forfait=this.getUrlParam('forfait');
4if(forfait!=='')forfait=this.forfaitMatch(forfait);var premium=this.getUrlParam('premium');var electric=this.getUrlParam('electric');if(premium===0&&electric===0){premium='FALSE';electric='FALSE';}var language=window.location.pathname.split('/')[1];if(language!=='en'&&language!=='ru')language='';params.forfait=forfait;params.orderType=this.getUrlParam('orderType')!==0?this.getUrlParam('orderType'):'default';params.premium=premium;params.electric=electric;params.subscriptionType=this.getUrlParam('type');if(!this.getUrlParam('frequency')&&!this.getUrlParam('duration'))params.duration=0;else params.duration=params.orderType==='subscription'?this.getUrlParam('frequency'):this.getUrlParam('duration');params.language=language;return params;};Effia.initializeDates=function(){var currentDate=new Date();var startDate=new Date();var minutes=currentDate.getMinutes();while(60-15>=minutes)minutes=minutes+15;minutes=currentDate.getMinutes()+(60-minutes);currentDate.setMinutes(minutes);var day=currentDate.getDate();if(currentDate.getHours()>=23){var ts=currentDate.setDate(day+1);day=(new Date(ts)).getDate();}var hours=currentDate.getHours();if(hours===23)hours=-1;var defaultDate={bookingYear:currentDate.getFullYear(),bookingMounth:('0'+(currentDate.getMonth()+1)).slice(-2),bookingDay:('0'+day).slice(-2),bookingEntryHour:('0'+(hours+1)).slice(-2),bookingExitHour:('0'+(hours+2)).slice(-2),bookingMinute:('0'+currentDate.getMinutes()).slice(-2)};if(defaultDate.bookingEntryHour==='23'){var exit=(new Date(currentDate.setDate(day+1)));defaultDate.bookingExitDay=('0'+exit.getDate()).slice(-2);defaultDate.bookingExitMonth=('0'+(exit.getMonth()+1)).slice(-2);defaultDate.bookingExitYear=exit.getFullYear();defaultDate.bookingExitHour=('0'+(0)).slice(-2);}var bookingEntryDate=defaultDate.bookingYear+'/'+defaultDate.bookingMounth+'/'+defaultDate.bookingDay;var bookingEntryHour=defaultDate.bookingEntryHour+':'+defaultDate.bookingMinute;var bookingExitDate='';if(defaultDate.bookingExitDay)bookingExitDate=defaultDate.bookingExitYear+'/'+defaultDate.bookingExitMonth+'/'+defaultDate.bookingExitDay;else bookingExitDate=defaultDate.bookingYear+'/'+defaultDate.bookingMounth+'/'+defaultDate.bookingDay;var bookingExitHour=defaultDate.bookingExitHour+':'+defaultDate.bookingMinute;var entryUrl=this.getUrlParam('entry');var exitUrl=this.getUrlParam('exit');
4if(entryUrl!==0)entryUrl=entryUrl.replace('%3A',':');if(exitUrl!==0)exitUrl=exitUrl.replace('%3A',':');var orderTypeUrl=this.getUrlParam('orderType');if(orderTypeUrl!=='subscription')if(exitUrl!==0&&entryUrl!==0){bookingEntryDate=moment(entryUrl).format('YYYY/MM/DD');bookingEntryHour=moment(entryUrl).format('HH:mm');bookingExitDate=moment(exitUrl).format('YYYY/MM/DD');bookingExitHour=moment(exitUrl).format('HH:mm');}else if(exitUrl===0&&entryUrl!==0){bookingEntryDate=moment(entryUrl).format('YYYY/MM/DD');bookingEntryHour=moment(entryUrl).format('HH:mm');startDate=new Date(bookingEntryDate+'T'+bookingEntryHour.replace(/\s/g,''));startDate.setHours(startDate.getHours()+1);bookingExitDate=startDate.getFullYear()+'/'+('0'+(startDate.getMonth()+1)).slice(-2)+'/'+('0'+startDate.getDate()).slice(-2);bookingExitHour=('0'+startDate.getHours()).slice(-2)+':'+('0'+startDate.getMinutes()).slice(-2);}else{if(exitUrl!==0&&entryUrl===0){bookingExitDate=moment(exitUrl).format('YYYY/MM/DD');bookingExitHour=moment(exitUrl).format('HH:mm');startDate=new Date(bookingExitDate+'T'+bookingExitHour.replace(/\s/g,''));startDate.setHours(startDate.getHours()-1);bookingEntryDate=startDate.getFullYear()+'-'+('0'+(startDate.getMonth()+1)).slice(-2)+'-'+('0'+startDate.getDate()).slice(-2);bookingEntryHour=('0'+startDate.getHours()).slice(-2)+':'+('0'+startDate.getMinutes()).slice(-2);}}var subscriptionMonth='';var subscriptionYear='';startDate.setDate(1);if(currentDate.getDate()<15)startDate.setMonth(currentDate.getMonth()+1);else startDate.setMonth(currentDate.getMonth()+2);if(entryUrl!==0&&entryUrl>=moment(startDate).format('YYYY/MM/DD')){subscriptionMonth=moment(entryUrl).format('MM')-1;subscriptionYear=moment(entryUrl).format('YYYY');}else{defaultDate.subscriptionMonth=('0'+startDate.getMonth()).slice(-2);if(defaultDate.subscriptionMonth==='00')defaultDate.subscriptionMonth='01';defaultDate.subscriptionYear=startDate.getFullYear();subscriptionMonth=defaultDate.subscriptionMonth;subscriptionYear=defaultDate.subscriptionYear;}bookingEntryDate=bookingEntryDate+' '+bookingEntryHour;bookingExitDate=bookingExitDate+' '+bookingExitHour;return {bookingEntryDate,bookingEntryHour,bookingExitDate,bookingExitHour,subscriptionEntryDate:subscriptionYear+'-'+subscriptionMonth+'-01'};};Effia.initializeSubscriptionDateSelect=function(parentContainerClass){const parentContainer=$('.'+parentContainerClass);let $selectedYear=parentContainer.find('.year-type input:checked');if($selectedYear.length===0){const $firstYear=parentContainer.find('.year-type input:first');if($firstYear.length>0){$firstYear.click();$selectedYear=$firstYear;}}this.updateSubscriptionDateSelect(parentContainerClass,$selectedYear);};Effia.updateSubscriptionDateSelect=function(parentContainerClass,$input){var parentContainer=$('.'+parentContainerClass);var startDate=Effia.getStartDate();var yearSelected=parseInt($input.val());var monthSelected=parseInt(parentContainer.find('.month-type span.checkbox.checked').prev('input').val());parentContainer.find('.year-type input').each(function(value){if($(this).val()<startDate.getFullYear()){$(this).closest('li').addClass('hide');if(parseInt($(this).val())===yearSelected){var nextYear=parseInt(yearSelected)+1;var $elementYearSelected=parentContainer.find('.year-type input[value="'+nextYear+'"]');if($elementYearSelected.length){$(this).prop('checked',false).closest('li').find('span.checkbox').removeClass('checked');$elementYearSelected.prop('checked',true);parentContainer.find('.year-type a.input-select--selected').text($elementYearSelected.data('label')?$elementYearSelected.data('label'):$elementYearSelected.attr('name'));$elementYearSelected.closest('li').find('span.checkbox').addClass('checked');}}}else $(this).closest('li').removeClass('hide');if($(this).val()>startDate.getFullYear()&&startDate.getMonth()<=9)$(this).closest('li').addClass('hide');});Effia.changeMonthListOptions(parentContainer,startDate);};Effia.getStartDate=function(){var currentDate=new Date();var startDate=new Date();startDate.setDate(1);if(currentDate.getDate()<15)startDate.setMonth(currentDate.getMonth()+1);else startDate.setMonth(currentDate.getMonth()+2);return startDate;};Effia.changeMonthListOptions=function(parentContainer,startDate){var $input=parentContainer.find('.year-type input:checked');var yearSelected=parseInt($input.val());var monthSelected=parseInt(parentContainer.find('.month-type span.checkbox.checked').prev('input').val());parentContainer.find('.month-type input').each(function(value){let monthValue=parseInt($(this).val())+1;let monthIsShown=true;if(monthValue<(startDate.getMonth()+1)&&startDate.getFullYear()===yearSelected){monthIsShown=false;if(monthValue===monthSelected+1)monthSelected=parseInt(monthSelected)+1;}else{if(monthValue>=(startDate.getMonth()+1)&&startDate.getFullYear()!==yearSelected){monthIsShown=false;if(monthValue===monthSelected+1)monthSelected=0;}}if(startDate.getFullYear()===yearSelected){if(monthValue>(startDate.getMonth()+3))monthIsShown=false;}else{if(monthValue>(3-(12-startDate.getMonth())))monthIsShown=false;}$(this).closest('li').toggleClass('hide',!monthIsShown);});var $elementMonthSelected=parentContainer.find('.month-type input[value="'+monthSelected+'"]');parentContainer.find('.month-type input:checked').prop('checked',fal
4se).closest('li').find('span.checkbox').removeClass('checked');$elementMonthSelected.prop('checked',true);parentContainer.find('.month-type a.input-select--selected').text($elementMonthSelected.data('label')?$elementMonthSelected.data('label'):$elementMonthSelected.attr('name'));$elementMonthSelected.closest('li').find('span.checkbox').addClass('checked');};Effia.checkTimeReserveMobile=function(emptyTime){var splitTime=emptyTime.split(':');var hoursTest=parseInt(splitTime[0]);var minutesTest=splitTime[1];if(minutesTest>0&&minutesTest<=15)minutesTest=15;if(minutesTest>15&&minutesTest<=30)minutesTest=30;if(minutesTest>30&&minutesTest<=45)minutesTest=45;if(minutesTest>45)minutesTest=60;var currentDate=new Date();currentDate.setHours(hoursTest);currentDate.setMinutes(minutesTest);return currentDate.toTimeString().substr(0,5).toString();};Effia.checkdateTimeReserve=function(element){var submitBtnState=false;var currentDate=new Date();currentDate.setHours(currentDate.getHours()+1);var $callUs=$('.call-us');var $labelReservationValidForOne=$('.label-reservation-valid-for-one');var $reserve=$('#'+element);if($reserve.length!==0){var entryDate=$reserve.find('#entry-date-picker-input').val();var endDate=$reserve.find('#exit-date-picker-input').val();var selectedDate=Effia.getDate(entryDate);var selectedEndDate=Effia.getDate(endDate);currentDate.setSeconds(0,0);if(currentDate>selectedDate||(selectedEndDate&&selectedDate>=selectedEndDate)){if(currentDate>selectedDate){if($callUs.hasClass('hide')){}$callUs.removeClass('hide');$labelReservationValidForOne.addClass('hide');}else{$callUs.addClass('hide');$labelReservationValidForOne.removeClass('hide');}submitBtnState=false;}else{$callUs.addClass('hide');$labelReservationValidForOne.removeClass('hide');submitBtnState=true;}}return submitBtnState;};Effia.getDate=function(datestring){if(datestring===undefined)return false;var date='';var time='';var dateSplit;if(datestring.split(' ').length===3){dateSplit=datestring.split(' ');date=dateSplit[1];time=dateSplit[2];}else if(datestring.split(' ').length===2){dateSplit=datestring.split(' ');date=dateSplit[0];time=dateSplit[1];}else{if(datestring.split('T').length===2){dateSplit=datestring.split('T');date=dateSplit[0];time=dateSplit[1];}}if(date===''||time==='')return false;var dateComponents=(date.indexOf('-')!==-1)?date.split('-'):date.split('/');var month=dateComponents[1]-1;var timeComponents=time.split(':');return new Date(dateComponents[2],month,dateComponents[0],timeComponents[0],timeComponents[1]);};Effia.prefillSelect=function(parentContainerClass,value,orderType){let input=$('.'+parentContainerClass).find('input[value='+value+']');if(orderType=="subscription"&&(parentContainerClass=="month-type"||parentContainerClass=="year-type")&&!$(input).parents('li').hasClass('hide'))$('.'+parentContainerClass).find('input[value='+value+']').each(function(){$(this).click();});else $('.'+parentContainerClass).find('input:first').each(function(){$(this).click();});};Effia.prefillCheckbox=function(parentContainer){parentContainer.next().addClass('checked');parentContainer.prop('checked',true);};Effia.eventSubmit=function(blockSubmit){var $resumBlockCalculate=$(blockSubmit).find('#resum-block-calculate-sub');var $resumBlockTimeError=$(blockSubmit).find('#resum-block-time-error-sub');var $resumBlockFullError=$(blockSubmit).find('#resum-block-full-error-sub');var $resumBlockSuccess=$(blockSubmit).find('#resum-block-success-sub');var $callUs=$('.call-us');var $carParkResume=$('.label-reservation-valid-for-one.car-park--resum--msg');let $blockSubmit=$(blockSubmit);let $submit=$blockSubmit.find('.submit');$blockSubmit.find('select, input, a.input-select--selected-booking, a.input-select--selected, input[name="abonnement"]').each(function(){var activeInput=$(this);activeInput.on('change',function(){var isFromSubscription=$('#subscribe-label').parent().hasClass('is-active');if(!isFromSubscription&&!Effia.checkdateTimeReserve('reserve')){$submit.trigger('disableSubmit');return;}if($submit.hasClass('error-data')){$submit.hide();$submit.trigger('disableSubmit');}
4else if(!isFromSubscription&&($callUs.length>1||$carParkResume.hasClass('hide')))$submit.trigger('disableSubmit');else{$submit.trigger('enableSubmit');$submit.show();$resumBlockCalculate.removeClass('hide');$resumBlockTimeError.addClass('hide');$resumBlockSuccess.addClass('hide');$resumBlockFullError.addClass('hide');}});activeInput.on('click',function(){if(!$callUs.hasClass('hide')&&!$(this).hasClass('place-input')&&!$(this).hasClass('date-picker--date-display'))$submit.trigger('disableSubmit');});});$submit.on('click',function(){if($(this).is('.enabled')){if($blockSubmit.parent().parent().hasClass('car-park--booking'))$blockSubmit.find('.spinner-container').trigger('displaySpinner');$blockSubmit.find('p.error').hide();}});};Effia.sortResultsByAttribute=function(attribute,orderBy,itemList){var newList=itemList.sort(function(a,b){var resultA=parseFloat($(a).attr(attribute));var resultB=parseFloat($(b).attr(attribute));if((resultA<resultB&&orderBy==='asc')||(resultA>resultB&&orderBy==='desc'))return -1;else{if((resultA>resultB&&orderBy==='asc')||(resultA<resultB&&orderBy==='desc'))return 1;}return 0;});return newList;};Effia.getDayNumber=function(entryDayNumber){var effiaDayNumber=0;switch(entryDayNumber){case 0:effiaDayNumber=7;break;case 1:effiaDayNumber=1;break;case 2:effiaDayNumber=2;break;case 3:effiaDayNumber=3;break;case 4:effiaDayNumber=4;break;case 5:effiaDayNumber=5;break;case 6:effiaDayNumber=6;break;default:effiaDayNumber=0;break;}return effiaDayNumber;};}(jQuery,Effia));;
5(function main(Drupal){Drupal.globalMapStyles=[{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#e6e6e6"},{"visibility":"on"}]},{"featureType":"landscape.natural","elementType":"labels.text.fill","stylers":[{"color":"#e6e6e6"},{"visibility":"on"}]},{"featureType":"poi","elementType":"labels.icon","stylers":[{"color":"#f09800"}]},{"featureType":"poi","elementType":"labels.text.fill","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"poi","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"poi.attraction","elementType":"labels.icon","stylers":[{"color":"#1b374c"}]},{"featureType":"poi.attraction","elementType":"labels.text.fill","stylers":[{"color":"#1b374c"},{"visibility":"on"}]},{"featureType":"poi.business","elementType":"labels.icon","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"visibility":"on"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#e6e6e6"},{"visibility":"on"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit","elementType":"labels.text.fill","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"transit.line","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit.line","elementType":"labels.text.fill","stylers":[{"visibility":"on"}]},{"featureType":"transit.line","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"transit.station","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit.station","elementType":"labels.text.fill","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit.station","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"transit.station.airport","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit.station.airport","elementType":"labels.text.fill","stylers":[{"color":"#1c374b"}]},{"featureType":"transit.station.airport","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"transit.station.bus","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]},{"featureType":"transit.station.rail","elementType":"labels.icon","stylers":[{"color":"#1c374b"},{"visibility":"on"}]}];})(Drupal);;
6(function($,Drupal){Drupal.behaviors.foundationInit={attach:function(context,settings){$(context).foundation();}};})(jQuery,Drupal);;
7(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==='object'&&typeof module==='object')module.exports=factory(require("jquery"));else if(typeof define==='function'&&define.amd)define(["jquery"],factory);else{var a=typeof exports==='object'?factory(require("jquery")):factory(root["jQuery"]);for(var i in a)(typeof exports==='object'?exports:root)[i]=a[i];}})(self,function(__WEBPACK_EXTERNAL_MODULE_jquery__){return (function(){"use strict";var __webpack_modules__=({
vendor: 4,610 bytes, line 7
7"./js/foundation.abide.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Abide:function(){return Abide;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Abide=function(_Plugin){function Abide(){_classCallCheck(this,Abide);return _callSuper(this,Abide,arguments);}_inherits(Abide,_Plugin);return _createClass(Abide,[{key:"_setup",value:function _setup(element){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(true,{},Abide.defaults,this.$element.data(),options);this.isEnabled=true;this.formnovalidate=null;this.className='Abide';this._init();}},{key:"_init",value:function _init(){var _this2=this;this.$inputs=jquery__WEBPACK_IMPORTED_MODULE_0___default().merge(this.$element.find('input').not('[type="submit"]'),this.$element.find('textarea, select'));this.$submits=this.$element.find('[type="submit"]');var $globalErrors=this.$element.find('[data-abide-error]');if(this.options.a11yAttributes){this.$inputs.each(function(i,input){return _this2.addA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(input));});$globalErrors.each(function(i,error){return _this2.addGlobalErrorA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(error));});}this._events();}},{key:"_events",value:function _events(){var _this3=this;this.$element.off('.abide').on('reset.zf.abide',function(){_this3.resetForm();}).on('submit.zf.abide',function(){return _this3.validateForm();});this.$submits.off('click.zf.abide keydown.zf.abide').on('click.zf.abide keydown.zf.abide',function(e){if(!e.ke
7y||e.key===' '||e.key==='Enter'){e.preventDefault();_this3.formnovalidate=e.target.getAttribute('formnovalidate')!==null;_this3.$element.submit();}});if(this.options.validateOn==='fieldChange')this.$inputs.off('change.zf.abide').on('change.zf.abide',function(e){_this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));});if(this.options.liveValidate)this.$inputs.off('input.zf.abide').on('input.zf.abide',function(e){_this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));});if(this.options.validateOnBlur)this.$inputs.off('blur.zf.abide').on('blur.zf.abide',function(e){_this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));});}},{key:"_reflow",value:function _reflow(){this._init();}},{key:"_validationIsDisabled",value:function _validationIsDisabled(){if(this.isEnabled===false)return true;else{if(typeof this.formnovalidate==='boolean')return this.formnovalidate;}return this.$submits.length?this.$submits[0].getAttribute('formnovalidate')!==null:false;}},{key:"enableValidation",value:function enableValidation(){this.isEnabled=true;}},{key:"disableValidation",value:function disableValidation(){this.isEnabled=false;}},{key:"requiredCheck",value:function requiredCheck($el){if(!$el.attr('required'))return true;var isGood=true;switch($el[0].type){case 'checkbox':isGood=$el[0].checked;break;case 'select':case 'select-one':case 'select-multiple':var opt=$el.find('option:selected');if(!opt.length||!opt.val())isGood=false;break;default:if(!$el.val()||!$el.val().length)isGood=false;}return isGood;}},{key:"findFormError",value:function findFormError($el,failedValidators){var _this4=this;var id=$el.length?$el[0].id:'';var $error=$el.siblings(this.options.formErrorSelector);if(!$error.length)$error=$el.parent().find(this.options.formErrorSelector);if(id)$error=$error.add(this.$element.find("[data-form-error-for=\"".concat(id,"\"]")));if(!!failedValidators){$error=$error.not('[data-form-error-on]');failedValidators.forEach(function(v){$error=$error.add($el.siblings("[data-form-error-on=\"".concat(v,"\"]")));$error=$error.add(_this4.$element.find("[data-form-error-for=\"".concat(id,"\"][data-form-error-on=\"").concat(v,"\"]")));});}return $error;}},{key:"findLabel",value:function findLabel($el){var id=$el[0].id;var $label=this.$element.find("label[for=\"".concat(id,"\"]"));if(!$label.length)return $el.closest('label');return $label;}},{key:"findRadioLabels",value:function findRadioLabels($els){var _this5=this;var labels=$els.map(function(i,el){var id=el.id;var $label=_this5.$element.find("label[for=\"".concat(id,"\"]"));if(!$label.length)$label=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).closest('label');return $label[0];});return jquery__WEBPACK_IMPORTED_MODULE_0___default()(labels);}},{key:"findCheckboxLabels",value:function findCheckboxLabels($els){var _this6=this;var labels=$els.map(function(i,el){var id=el.id;var $label=_this6.$element.find("label[for=\"".concat(id,"\"]"));if(!$label.length)$label=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).closest('label');return $label[0];});return jquery__WEBPACK_IMPORTED_MODULE_0___default()(labels);}},{key:"addErrorClasses",value:function addErrorClasses($el,failedValidators){var $label=this.findLabel($el);var $formError=this.findFormError($el,failedValidators);if($label.length)$label.addClass(this.options.labelErrorClass);if($formError.length)$formError.addClass(this.options.formErrorClass);$el.addClass(this.options.inputErrorClass).attr({'data-invalid':'','aria-invalid':true});if($formError.filter(':visible').length)this.addA11yErrorDescribe($el,$formError);}},{key:"addA11yAttributes",value:function addA11yAttributes($el){var $errors=this.findFormError($el);var $labels=$errors.filter('label');if(!$errors.length)return;var $error=$errors.filter(':visible').first();if($error.length)this.addA11yErrorDescribe($el,$error);if($labels.filter('[for]').length<$labels.length){var elemId=$el.attr('id');if(typeof elemId==='undefined'){elemId=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'abide-input');$el.attr('id',elemId);}$labels.each(function(i,label){var $label=jquery__WEBPACK_IMPORTED_MODULE_0___default()(label);if(typeof $label.attr('for')==='undefined')$label.attr('for',elemId);});}$errors.each(function(i,label){var $label=jquery__WEBPACK_IMPORTED_MODULE_0___default()(label);if(typeof $label.attr('role')==='undefined')$label.attr('role','alert');}).end();}},{key:"addA11yErrorDescribe",value:function addA11yErrorDescribe($el,$error){if($el.attr('type')==='hidden')return;if(typeof $el.attr('aria-describedby')!=='undefined')return;var errorId=$error.attr('id');if(typeof errorId==='undefined'){errorId=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'abide-error');$error.attr('id',errorId);}$el.attr('aria-describedby',errorId).data('abide-describedby',true);}},{key:"addGlobalErrorA11yAttributes",value:function addGlobalErrorA11yAttributes($el){if(typeof $el.attr('aria-live')==='undefined')$el.attr('aria-live',this.options.a11yErrorLevel);}},{key:"removeRadioErrorClasses",value:function removeRadioErrorClasses(groupName){var $els=this.$element.find(":radio[name=\"".concat(groupName,"\"]"));var $labels=this.findRadioLabels($els);var $formErrors=this.findFormError($els);if($labels.length)$labels.removeClass(this.options.labelErrorClass);if($formErrors.length)$formErrors.removeClass(this.options.formErrorClass);$els.removeClass(this.options.inputErrorClass).attr({'data-invalid':null,'aria-invalid':null});}},{key:"removeCheckboxErrorClasses",value:function removeCheckboxErrorClasses(groupName){var $els=this.$element.find(":checkbox[name=\"".concat(groupName,"\"]"));var $labels=this.findCheckboxLabels($els);var $formErrors=this.findFormError($els);if($labels.length)$labels.removeClass(this.options.labelErrorClass);if($formErrors.length)$formErrors.removeClass(this.options.formErrorClass);$els.removeClass(this.options.inputErrorClass).attr({'data-invalid':null,'aria-invalid':null});}},{key:"removeErrorClasses",value:function removeErrorClasses($el){if($el[0].type==='radio')return this.removeRadioErrorClasses($el.attr('name'));else{if($el[0].type==='checkbox')return this.removeCheckboxErrorClasses($el.attr('name'));}var $label=this.findLabel($el);var $formError=this.findFormError($el);
7if($label.length)$label.removeClass(this.options.labelErrorClass);if($formError.length)$formError.removeClass(this.options.formErrorClass);$el.removeClass(this.options.inputErrorClass).attr({'data-invalid':null,'aria-invalid':null});if($el.data('abide-describedby'))$el.removeAttr('aria-describedby').removeData('abide-describedby');}},{key:"validateInput",value:function validateInput($el){var _this7=this;var clearRequire=this.requiredCheck($el),validator=$el.attr('data-validator'),failedValidators=[],manageErrorClasses=true;if(this._validationIsDisabled())return true;if($el.is('[data-abide-ignore]')||$el.is('[type="hidden"]')||$el.is('[disabled]'))return true;switch($el[0].type){case 'radio':this.validateRadio($el.attr('name'))||failedValidators.push('required');break;case 'checkbox':this.validateCheckbox($el.attr('name'))||failedValidators.push('required');manageErrorClasses=false;break;case 'select':case 'select-one':case 'select-multiple':clearRequire||failedValidators.push('required');break;default:clearRequire||failedValidators.push('required');this.validateText($el)||failedValidators.push('pattern');}if(validator){var required=$el.attr('required')?true:false;validator.split(' ').forEach(function(v){_this7.options.validators[v]($el,required,$el.parent())||failedValidators.push(v);});}if($el.attr('data-equalto'))this.options.validators.equalTo($el)||failedValidators.push('equalTo');var goodToGo=failedValidators.length===0;var message=(goodToGo?'valid':'invalid')+'.zf.abide';if(goodToGo){var dependentElements=this.$element.find("[data-equalto=\"".concat($el.attr('id'),"\"]"));if(dependentElements.length){var _this=this;dependentElements.each(function(){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val())_this.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));});}}if(manageErrorClasses){this.removeErrorClasses($el);if(!goodToGo)this.addErrorClasses($el,failedValidators);}$el.trigger(message,[$el]);return goodToGo;}},{key:"validateForm",value:function validateForm(){var _this8=this;var acc=[];var _this=this;var checkboxGroupName;if(!this.initialized)this.initialized=true;if(this._validationIsDisabled()){this.formnovalidate=null;return true;}this.$inputs.each(function(){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)[0].type==='checkbox'){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('name')===checkboxGroupName)return true;checkboxGroupName=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('name');}acc.push(_this.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)));});var noError=acc.indexOf(false)===-1;this.$element.find('[data-abide-error]').each(function(i,elem){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem);if(_this8.options.a11yAttributes)_this8.addGlobalErrorA11yAttributes($elem);$elem.css('display',noError?'none':'block');});this.$element.trigger((noError?'formvalid':'forminvalid')+'.zf.abide',[this.$element]);return noError;}},{key:"validateText",value:function validateText($el,pattern){pattern=pattern||$el.attr('data-pattern')||$el.attr('pattern')||$el.attr('type');var inputText=$el.val();var valid=true;if(inputText.length)if(this.options.patterns.hasOwnProperty(pattern))valid=this.options.patterns[pattern].test(inputText);else{if(pattern!==$el.attr('type'))valid=new RegExp(pattern).test(inputText);}return valid;}},{key:"validateRadio",value:function validateRadio(groupName){var $group=this.$element.find(":radio[name=\"".concat(groupName,"\"]"));var valid=false,required=false;$group.each(function(i,e){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('required'))required=true;});if(!required)valid=true;if(!valid)$group.each(function(i,e){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).prop('checked'))valid=true;});return valid;}},{key:"validateCheckbox",value:function validateCheckbox(groupName){var _this9=this;var $group=this.$element.find(":checkbox[name=\"".concat(groupName,"\"]"));var valid=false,required=false,minRequired=1,checked=0;$group.each(function(i,e){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('required'))required=true;});if(!required)valid=true;if(!valid){$group.each(function(i,e){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).prop('checked'))checked++;if(typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('data-min-required')!=='undefined')minRequired=parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('data-min-required'),10);});if(checked>=minRequired)valid=true;}if(this.initialized!==true&&minRequired>1)return true;$group.each(function(i,e){if(!valid)_this9.addErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e),['required']);else _this9.removeErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e));});return valid;}},{key:"matchValidation",value:function matchValidation($el,validators,required){var _this10=this;required=required?true:false;var clear=validators.split(' ').map(function(v){return _this10.options.validators[v]($el,required,$el.parent());});return clear.indexOf(false)===-1;}},{key:"resetForm",value:function resetForm(){var $form=this.$element,opts=this.options;jquery__WEBPACK_IMPORTED_MODULE_0___default()(".".concat(opts.labelErrorClass),$form).not('small').removeClass(opts.labelErrorClass);jquery__WEBPACK_IMPORTED_MODULE_0___default()(".".concat(opts.inputErrorClass),$form).not('small').removeClass(opts.inputErrorClass);jquery__WEBPACK_IMPORTED_MODULE_0___default()("".concat(opts.formErrorSelector,".").concat(opts.formErrorClass)).removeClass(opts.formErrorClass);$form.find('[data-abide-error]').css('display','none');jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input',$form).not(':button, :submit, :reset, :hidden, :radio, :checkbox, [data-abide-ignore]').val('').attr({'data-invalid':null,'aria-invalid':null});jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input:radio',$form).not('[data-abide-ignore]').prop('checked',fal
vendor: 8,804 bytes, line 7
7se).attr({'data-invalid':null,'aria-invalid':null});jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input:checkbox',$form).not('[data-abide-ignore]').prop('checked',false).attr({'data-invalid':null,'aria-invalid':null});$form.trigger('formreset.zf.abide',[$form]);}},{key:"_destroy",value:function _destroy(){var _this=this;this.$element.off('.abide').find('[data-abide-error]').css('display','none');this.$inputs.off('.abide').each(function(){_this.removeErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));});this.$submits.off('.abide');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Abide.defaults={validateOn:'fieldChange',labelErrorClass:'is-invalid-label',inputErrorClass:'is-invalid-input',formErrorSelector:'.form-error',formErrorClass:'is-visible',a11yAttributes:true,a11yErrorLevel:'assertive',liveValidate:false,validateOnBlur:false,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(?:222[1-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^((?:(https?|ftps?|file|ssh|sftp):\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,website:{test:function test(text){return Abide.defaults.patterns.domain.test(text)||Abide.defaults.patterns.url.test(text);}}},validators:{equalTo:function equalTo(el){return jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(el.attr('data-equalto'))).val()===el.val();}}};}),"./js/foundation.accordion.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Accordion:function(){return Accordion;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.keyboard.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Accordion=function(_Plugin){function Accordion(){_classCallCheck(this,Accordion);return _callSuper(this,Accordion,arguments);}_inherits(Accordion,_Plugin);return _createClass(Accordion,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Accordion.defaults,this.$element.data(),options);this.className='Accordion';this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.register('Accordion',{'ENTER':'toggle','SPACE':'toggle','ARROW_DOWN':'next','ARROW_UP':'previous','HOME':'first','END':'last'});}},{key:"_init",value:function _init(){var _this2=this;this._isInitializing=true;this.$tabs=this.$element.children('[data-accordion-item]');this.$tabs.each(function(idx,el){var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el),$content=$el.children('[data-tab-content]'),id=$content[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'accordion'),linkId=el.id?"".concat(el.id,"-label"):"".concat(id,"-label");$el.find('a:first').attr({'aria-controls':id,'id':linkId,'aria-expanded':false});$content.attr({'role':'region','aria-labelledby':linkId,'aria-hidden':true,'id':id});});var $initActive=this.$element.find('.is-active').children('[data-tab-content]');if($initActive.length){this._initialAnchor=$initActive.prev('a').attr('href');this._openSingleTab($initActive);}this._checkDeepLink=function(){var anchor=window.location.hash;if(!anchor.length){if(_this2._isInitializing)return;if(_this2._initialAnchor)anchor=_this2._initialAnchor;}var $anchor=anchor&&jquery__WEBPACK_IMPORTED_MODULE_0___default()(anchor);var $link=anchor&&_this2.$element.find("[href$=\"".concat(anchor,"\"]"));var isOwnAnchor=!!($anchor.length&&$link.length);if(isOwnAnchor){if($anchor&&$link&&$link.length){if(!$link.parent('[data-accordion-item]').hasClass('is-active'))_this2._openSingleTab($anchor);}else _this2._closeAllTabs();if(_this2.options.deepLinkSmudge)(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){var offset=_this2.$element.offset();jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({scrollTop:offset.top-_this2.options.deepLinkSmudgeOffset},_this2.options.deepLinkSmudgeDelay);});_this2.$element.trigger('deeplink.zf.accordion',[$link,$anchor]);}};if(this.options.deepLink)this._checkDeepLink();this._events();this._isInitializing=false;}},{key:"_events",value:function _events(){var _this=this;this.$tabs.each(function(){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);var $tabContent=$elem.children('[data-tab-content]');if($tabContent.length)$elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion',function(e){e.preventDefault();_this.toggle($tabContent);}).on('keydown.zf.accordion',function(e){_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.handleKey(e,'Accordion',{toggle:function toggle(
7){_this.toggle($tabContent);},next:function next(){var $a=$elem.next().find('a').focus();if(!_this.options.multiExpand)$a.trigger('click.zf.accordion');},previous:function previous(){var $a=$elem.prev().find('a').focus();if(!_this.options.multiExpand)$a.trigger('click.zf.accordion');},first:function first(){var $a=_this.$tabs.first().find('.accordion-title').focus();if(!_this.options.multiExpand)$a.trigger('click.zf.accordion');},last:function last(){var $a=_this.$tabs.last().find('.accordion-title').focus();if(!_this.options.multiExpand)$a.trigger('click.zf.accordion');},handled:function handled(){e.preventDefault();}});});});if(this.options.deepLink)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._checkDeepLink);}},{key:"toggle",value:function toggle($target){if($target.closest('[data-accordion]').is('[disabled]')){console.info('Cannot toggle an accordion that is disabled.');return;}if($target.parent().hasClass('is-active'))this.up($target);else this.down($target);if(this.options.deepLink){var anchor=$target.prev('a').attr('href');if(this.options.updateHistory)history.pushState({},'',anchor);else history.replaceState({},'',anchor);}}},{key:"down",value:function down($target){if($target.closest('[data-accordion]').is('[disabled]')){console.info('Cannot call down on an accordion that is disabled.');return;}if(this.options.multiExpand)this._openTab($target);else this._openSingleTab($target);}},{key:"up",value:function up($target){if(this.$element.is('[disabled]')){console.info('Cannot call up on an accordion that is disabled.');return;}var $targetItem=$target.parent();if(!$targetItem.hasClass('is-active'))return;var $othersItems=$targetItem.siblings();if(!this.options.allowAllClosed&&!$othersItems.hasClass('is-active'))return;this._closeTab($target);}},{key:"_openSingleTab",value:function _openSingleTab($target){var $activeContents=this.$element.children('.is-active').children('[data-tab-content]');if($activeContents.length)this._closeTab($activeContents.not($target));this._openTab($target);}},{key:"_openTab",value:function _openTab($target){var _this3=this;var $targetItem=$target.parent();var targetContentId=$target.attr('aria-labelledby');$target.attr('aria-hidden',false);$targetItem.addClass('is-active');jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({'aria-expanded':true});$target.finish().slideDown(this.options.slideSpeed,function(){_this3.$element.trigger('down.zf.accordion',[$target]);});}},{key:"_closeTab",value:function _closeTab($target){var _this4=this;var $targetItem=$target.parent();var targetContentId=$target.attr('aria-labelledby');$target.attr('aria-hidden',true);$targetItem.removeClass('is-active');jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({'aria-expanded':false});$target.finish().slideUp(this.options.slideSpeed,function(){_this4.$element.trigger('up.zf.accordion',[$target]);});}},{key:"_closeAllTabs",value:function _closeAllTabs(){var $activeTabs=this.$element.children('.is-active').children('[data-tab-content]');if($activeTabs.length)this._closeTab($activeTabs);}},{key:"_destroy",value:function _destroy(){this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display','');this.$element.find('a').off('.zf.accordion');if(this.options.deepLink)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._checkDeepLink);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Accordion.defaults={slideSpeed:250,multiExpand:false,allowAllClosed:false,deepLink:false,deepLinkSmudge:false,deepLinkSmudgeDelay:300,deepLinkSmudgeOffset:0,updateHistory:false};}),
vendor: 4,358 bytes, line 7
7"./js/foundation.accordionMenu.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{AccordionMenu:function(){return AccordionMenu;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.nest.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.core.plugin.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var AccordionMenu=function(_Plugin){function AccordionMenu(){_classCallCheck(this,AccordionMenu);return _callSuper(this,AccordionMenu,arguments);}_inherits(AccordionMenu,_Plugin);return _createClass(AccordionMenu,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},AccordionMenu.defaults,this.$element.data(),options);this.className='AccordionMenu';this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('AccordionMenu',{'ENTER':'toggle','SPACE':'toggle','ARROW_RIGHT':'open','ARROW_UP':'up','ARROW_DOWN':'down','ARROW_LEFT':'close','ESCAPE':'closeAll'});}},{key:"_init",value:function _init(){_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Feather(this.$element,'accordion');var _this=this;this.$element.find('[data-submenu]').not('.is-active').slideUp(0);this.$element.attr({'aria-multiselectable':this.options.multiOpe
7n});this.$menuLinks=this.$element.find('.is-accordion-submenu-parent');this.$menuLinks.each(function(){var linkId=this.id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'acc-menu-link'),$elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$sub=$elem.children('[data-submenu]'),subId=$sub[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'acc-menu'),isActive=$sub.hasClass('is-active');if(_this.options.parentLink){var $anchor=$elem.children('a');$anchor.clone().prependTo($sub).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-accordion-submenu-item"></li>');}if(_this.options.submenuToggle){$elem.addClass('has-submenu-toggle');$elem.children('a').after('<button id="'+linkId+'" class="submenu-toggle" aria-controls="'+subId+'" aria-expanded="'+isActive+'" title="'+_this.options.submenuToggleText+'"><span class="submenu-toggle-text">'+_this.options.submenuToggleText+'</span></button>');}else $elem.attr({'aria-controls':subId,'aria-expanded':isActive,'id':linkId});$sub.attr({'aria-labelledby':linkId,'aria-hidden':!isActive,'role':'group','id':subId});});var initPanes=this.$element.find('.is-active');if(initPanes.length)initPanes.each(function(){_this.down(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));});this._events();}},{key:"_events",value:function _events(){var _this=this;this.$element.find('li').each(function(){var $submenu=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('[data-submenu]');if($submenu.length)if(_this.options.submenuToggle)jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('.submenu-toggle').off('click.zf.accordionMenu').on('click.zf.accordionMenu',function(){_this.toggle($submenu);});else jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('a').off('click.zf.accordionMenu').on('click.zf.accordionMenu',function(e){e.preventDefault();_this.toggle($submenu);});}).on('keydown.zf.accordionMenu',function(e){var $element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$elements=$element.parent('ul').children('li'),$prevElement,$nextElement,$target=$element.children('[data-submenu]');$elements.each(function(i){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)){$prevElement=$elements.eq(Math.max(0,i-1)).find('a').first();$nextElement=$elements.eq(Math.min(i+1,$elements.length-1)).find('a').first();if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).children('[data-submenu]:visible').length)$nextElement=$element.find('li:first-child').find('a').first();if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':first-child'))$prevElement=$element.parents('li').first().find('a').first();else{if($prevElement.parents('li').first().children('[data-submenu]:visible').length)$prevElement=$prevElement.parents('li').find('li:last-child').find('a').first();}if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':last-child'))$nextElement=$element.parents('li').first().next('li').find('a').first();return;}});_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e,'AccordionMenu',{open:function open(){if($target.is(':hidden')){_this.down($target);$target.find('li').first().find('a').first().focus();}},close:function close(){if($target.length&&!$target.is(':hidden'))_this.up($target);else{if($element.parent('[data-submenu]').length){_this.up($element.parent('[data-submenu]'));$element.parents('li').first().find('a').first().focus();}}},up:function up(){$prevElement.focus();return true;},down:function down(){$nextElement.focus();return true;},toggle:function toggle(){if(_this.options.submenuToggle)return false;if($element.children('[data-submenu]').length){_this.toggle($element.children('[data-submenu]'));return true;}},closeAll:function closeAll(){_this.hideAll();},handled:function handled(preventDefault){if(preventDefault)e.preventDefault();}});});}},{key:"hideAll",value:function hideAll(){this.up(this.$element.find('[data-submenu]'));}},{key:"showAll",value:function showAll(){this.down(this.$element.find('[data-submenu]'));}},{key:"toggle",value:function toggle($target){if(!$target.is(':animated'))if(!$target.is(':hidden'))this.up($target);else this.down($target);}},{key:"down",value:function down($target){var _this2=this;
vendor: 5,941 bytes, line 7
7if(!this.options.multiOpen){var $targetBranch=$target.parentsUntil(this.$element).add($target).add($target.find('.is-active'));var $othersActiveSubmenus=this.$element.find('.is-active').not($targetBranch);this.up($othersActiveSubmenus);}$target.addClass('is-active').attr({'aria-hidden':false});if(this.options.submenuToggle)$target.prev('.submenu-toggle').attr({'aria-expanded':true});else $target.parent('.is-accordion-submenu-parent').attr({'aria-expanded':true});$target.slideDown(this.options.slideSpeed,function(){_this2.$element.trigger('down.zf.accordionMenu',[$target]);});}},{key:"up",value:function up($target){var _this3=this;var $submenus=$target.find('[data-submenu]');var $allmenus=$target.add($submenus);$submenus.slideUp(0);$allmenus.removeClass('is-active').attr('aria-hidden',true);if(this.options.submenuToggle)$allmenus.prev('.submenu-toggle').attr('aria-expanded',false);else $allmenus.parent('.is-accordion-submenu-parent').attr('aria-expanded',false);$target.slideUp(this.options.slideSpeed,function(){_this3.$element.trigger('up.zf.accordionMenu',[$target]);});}},{key:"_destroy",value:function _destroy(){this.$element.find('[data-submenu]').slideDown(0).css('display','');this.$element.find('a').off('click.zf.accordionMenu');this.$element.find('[data-is-parent-link]').detach();if(this.options.submenuToggle){this.$element.find('.has-submenu-toggle').removeClass('has-submenu-toggle');this.$element.find('.submenu-toggle').remove();}_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Burn(this.$element,'accordion');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__.Plugin);AccordionMenu.defaults={parentLink:false,slideSpeed:250,submenuToggle:false,submenuToggleText:'Toggle menu',multiOpen:true};}),"./js/foundation.core.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Foundation:function(){return Foundation;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.mediaQuery.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var FOUNDATION_VERSION='6.9.0';var Foundation={version:FOUNDATION_VERSION,_plugins:{},_uuids:[],plugin:function plugin(_plugin,name){var className=name||functionName(_plugin);var attrName=hyphenate(className);this._plugins[attrName]=this[className]=_plugin;},registerPlugin:function registerPlugin(plugin,name){var pluginName=name?hyphenate(name):functionName(plugin.constructor).toLowerCase();plugin.uuid=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6,pluginName);if(!plugin.$element.attr("data-".concat(pluginName)))plugin.$element.attr("data-".concat(pluginName),plugin.uuid);if(!plugin.$element.data('zfPlugin'))plugin.$element.data('zfPlugin',plugin);plugin.$element.trigger("init.zf.".concat(pluginName));this._uuids.push(plugin.uuid);return;},unregisterPlugin:function unregisterPlugin(plugin){var pluginName=hyphenate(functionName(plugin.$element.data('zfPlugin').constructor));this._uuids.splice(this._uuids.indexOf(plugin.uuid),1);plugin.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin').trigger("destroyed.zf.".concat(pluginName));for(var prop in plugin)if(typeof plugin[prop]==='function')plugin[prop]=null;return;},reInit:function reInit(plugins){var isJQ=plugins instanceof (jquery__WEBPACK_IMPORTED_MODULE_0___default());try{if(isJQ)plugins.each(function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('zfPlugin')._init();});else{var type=_typeof(plugins),_this=this,fns={'object':function object(plgs){plgs.forEach(function(p){p=hyphenate(p);jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-'+p+']').foundation('_init');});},'string':function string(){plugins=hyphenate(plugins);jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-'+plugins+']').foundation('_init');},'undefined':function undefined(){this.object(Object.keys(_this._plugins));}};fns[type](plugins);}}catch(err){console.error(err);}finally{return plugins;}},reflow:function reflow(elem,plugins){if(typeof plugins==='undefined')plugins=Object.keys(this._plugins);else{if(typeof plugins==='string')plugins=[plugins];}var _this=this;jquery__WEBPACK_IMPORTED_MODULE_0___default().each(plugins,function(i,name){var plugin=_this._plugins[name];var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem).find('[data-'+name+']').addBack('[data-'+name+']').filter(function(){return typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data("zfPlugin")==='undefined';});$elem.each(function(){var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),opts={reflow:true};if($el.attr('data-options'))$el.attr('data-options').split(';').forEach(function(option){var opt=option.split(':').map(function(el){return el.trim();});if(opt[0])opts[opt[0]]=parseValue(opt[1]);});try{$el.data('zfPlugin',new plugin(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),opts));}catch(er){console.error(er);}finally{return;}});});},getFnName:functionName,addToJquery:function addToJquery(){var foundation=function foundation(method){var type=_typeof(method),$noJS=jquery__WEBPACK_IMPORTED_MODULE_0___default()('.no-js');if($noJS.length)$noJS.removeClass('no-js');if(type==='undefined'){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery._init();Foundation.reflow(this);}else if(type==='string'){var args=Array.prototype.slice.call(arguments,1
7);var plugClass=this.data('zfPlugin');if(typeof plugClass!=='undefined'&&typeof plugClass[method]!=='undefined')if(this.length===1)plugClass[method].apply(plugClass,args);else this.each(function(i,el){plugClass[method].apply(jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).data('zfPlugin'),args);});else throw new ReferenceError("We're sorry, '"+method+"' is not an available method for "+(plugClass?functionName(plugClass):'this element')+'.');}else throw new TypeError("We're sorry, ".concat(type," is not a valid parameter. You must use a string representing the method you wish to invoke."));return this;};(jquery__WEBPACK_IMPORTED_MODULE_0___default().fn).foundation=foundation;return (jquery__WEBPACK_IMPORTED_MODULE_0___default());}};Foundation.util={throttle:function throttle(func,delay){var timer=null;return function(){var context=this,args=arguments;if(timer===null)timer=setTimeout(function(){func.apply(context,args);timer=null;},delay);};}};window.Foundation=Foundation;(function(){if(!Date.now||!window.Date.now)window.Date.now=Date.now=function(){return new Date().getTime();};var vendors=['webkit','moz'];for(var i=0;i<vendors.length&&!window.requestAnimationFrame;++i){var vp=vendors[i];window.requestAnimationFrame=window[vp+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vp+'CancelAnimationFrame']||window[vp+'CancelRequestAnimationFrame'];}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(callback){var now=Date.now();var nextTime=Math.max(lastTime+16,now);return setTimeout(function(){callback(lastTime=nextTime);},nextTime-now);};window.cancelAnimationFrame=clearTimeout;}if(!window.performance||!window.performance.now)window.performance={start:Date.now(),now:function now(){return Date.now()-this.start;}};})();if(!Function.prototype.bind)Function.prototype.bind=function(oThis){if(typeof this!=='function')throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');var aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function fNOP(){},fBound=function fBound(){return fToBind.apply(this instanceof fNOP?this:oThis,aArgs.concat(Array.prototype.slice.call(arguments)));};if(this.prototype)fNOP.prototype=this.prototype;fBound.prototype=new fNOP();return fBound;};function functionName(fn){if(typeof Function.prototype.name==='undefined'){var funcNameRegex=/function\s([^(]{1,})\(/;var results=funcNameRegex.exec(fn.toString());return results&&results.length>1?results[1].trim():"";}else if(typeof fn.prototype==='undefined')return fn.constructor.name;else return fn.prototype.constructor.name;}function parseValue(str){if('true'===str)return true;else if('false'===str)return false;else{if(!isNaN(str*1))return parseFloat(str);}return str;}function hyphenate(str){return str.replace(/([a-z])([A-Z])/g,'$1-$2').toLowerCase();}}),
vendor: 2,385 bytes, line 7
7"./js/foundation.core.plugin.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Plugin:function(){return Plugin;}});var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./js/foundation.core.utils.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}var Plugin=function(){function Plugin(element,options){_classCallCheck(this,Plugin);this._setup(element,options);var pluginName=getPluginName(this);this.uuid=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__.GetYoDigits)(6,pluginName);if(!this.$element.attr("data-".concat(pluginName)))this.$element.attr("data-".concat(pluginName),this.uuid);if(!this.$element.data('zfPlugin'))this.$element.data('zfPlugin',this);this.$element.trigger("init.zf.".concat(pluginName));}return _createClass(Plugin,[{key:"destroy",value:function destroy(){this._destroy();var pluginName=getPluginName(this);this.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin').trigger("destroyed.zf.".concat(pluginName));for(var prop in this)if(this.hasOwnProperty(prop))this[prop]=null;}}]);}();function hyphenate(str){return str.replace(/([a-z])([A-Z])/g,'$1-$2').toLowerCase();}function getPluginName(obj){return hyphenate(obj.className);}}),
7"./js/foundation.core.utils.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{GetYoDigits:function(){return GetYoDigits;},RegExpEscape:function(){return RegExpEscape;},ignoreMousedisappear:function(){return ignoreMousedisappear;},onLoad:function(){return onLoad;},rtl:function(){return rtl;},transitionend:function(){return transitionend;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);function rtl(){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').attr('dir')==='rtl';}function GetYoDigits(){var length=arguments.length>0&&arguments[0]!==undefined?arguments[0]:6;var namespace=arguments.length>1?arguments[1]:undefined;var str='';var chars='0123456789abcdefghijklmnopqrstuvwxyz';var charsLength=chars.length;for(var i=0;i<length;i++)str+=chars[Math.floor(Math.random()*charsLength)];return namespace?"".concat(str,"-").concat(namespace):str;}function RegExpEscape(str){return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');}function transitionend($elem){var transitions={'transition':'transitionend','WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'otransitionend'};var elem=document.createElement('div'),end;for(var transition in transitions)if(typeof elem.style[transition]!=='undefined')end=transitions[transition];if(end)return end;else{setTimeout(function(){$elem.triggerHandler('transitionend',[$elem]);},1);return 'transitionend';}}function onLoad($elem,handler){var didLoad=document.readyState==='c
7omplete';var eventType=(didLoad?'_didLoad':'load')+'.zf.util.onLoad';var cb=function cb(){return $elem.triggerHandler(eventType);};if($elem){if(handler)$elem.one(eventType,handler);if(didLoad)setTimeout(cb);else jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).one('load',cb);}return eventType;}function ignoreMousedisappear(handler){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$ignoreLeaveWindo=_ref.ignoreLeaveWindow,ignoreLeaveWindow=_ref$ignoreLeaveWindo===void 0?false:_ref$ignoreLeaveWindo,_ref$ignoreReappear=_ref.ignoreReappear,ignoreReappear=_ref$ignoreReappear===void 0?false:_ref$ignoreReappear;return function leaveEventHandler(eLeave){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];var callback=handler.bind.apply(handler,[this,eLeave].concat(rest));if(eLeave.relatedTarget!==null)return callback();setTimeout(function leaveEventDebouncer(){if(!ignoreLeaveWindow&&document.hasFocus&&!document.hasFocus())return callback();if(!ignoreReappear)jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).one('mouseenter',function reenterEventHandler(eReenter){if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(eLeave.currentTarget).has(eReenter.target).length){eLeave.relatedTarget=eReenter.target;callback();}});},0);};}}),
vendor: 12,220 bytes, line 7
7"./js/foundation.drilldown.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Drilldown:function(){return Drilldown;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.nest.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_box__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.box.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.core.plugin.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Drilldown=function(_Plugin){function Drilldown(){_classCallCheck(this,Drilldown);return _callSuper(this,Drilldown,arguments);}_inherits(Drilldown,_Plugin);return _createClass(Drilldown,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Drilldown.defaults,this.$element.data(),options);this.className='Drilldown';this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Drilldown',{'ENTER':'open','SPACE':'open','ARROW_RIGHT':'next','ARROW_UP':'up','ARROW_DOWN':'down','ARROW_LEFT':'previous','ESCAPE':'close'});}},{key:"_init",value:function _init(){_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Feather(this.$element,'drilldown');if(this.options.autoApplyClass)this.$element.addClass('drilldown');this.$element.attr({'aria-multiselectable':false});this.$submenuAnchors=this.$element.find('li.is-drilldown-submenu-parent').children('a');this.$submenus=this.$submenuAnchors.parent('li').children('[data-submenu]').attr('role','group');this.$menuItems=this.$element.find('li').not('.js-drilldown-back').find('a');this.$currentMenu=this.$element;this.$element.attr('data-mutate',this.$element.attr('data-drilldown')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'drilldown'));this._prepareMenu();this._registerEvents();this._keyboardEvents();}},{key:"_prepareMenu",value:function _prepareMenu(){var _this=this;this.$submenuAnchors.each(function(){var $link=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);var $sub=$link.parent();if(_this.options.parentLink)$link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="none"></li>');$link.data('savedHref',$link.attr('href')).removeAttr('href').attr('tabindex',0);$link.children('[data-submenu]').attr({'aria-hidden':true,'tabindex':0,'role':'group'});_this._events($link);});this.$submenus.each(function(){var $menu=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$back=$menu.find('.js-drilldown-back');if(!$back.length)switch(_this.options.backButtonPosition){case "bottom":$menu.append(_this.options.backButton);break;case "top":$menu.prepend(_this.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+_this.options.backButtonPosition+"'");}_this._back($menu);});this.$submenus.addClass('invisible');if(!this.options.autoHeight)this.$submenus.addClass('drilldown-submenu-cover-previous');if(!this.$element.parent().hasClass('is-drilldown')){this.$wrapper=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.wrapper).addClass('is-drilldown');if(this.options.animateHeight)this.$wrapper.addClass('animate-height');this.$element.wrap(this.$wrapper);}this.$wrapper=this.$element.parent();this.$wrapper.css(this._getMaxDims());}},{key:"_resize",value:function _resize(){this.$wrapper.css({'max-width':'none','min-height':'none'});this.$wrapper.css(this._getMaxDims());}},{key:"_events",value:function _events($elem){var _this=this;$elem.off('click.zf.drilldown').on('click.zf.drilldown',function(e){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).parentsUntil('ul','li').hasClass('is-drilldown-submenu-parent'))e.preventDefault();_this._show($elem.parent('li'));if(_this.options.closeOnClick){var $body=jquery__WEBPACK_IMPORTED_MODULE_0___default()('body');$body.off('.zf.drilldown').on('click.zf.drilldown',function(ev){if(ev.target===_this.$element[0]||jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0],ev.target))return;ev.preventDefault();_this._hideAll();$body.off('.zf.drilldown');});}});}},{key:"_registerEvents",value:function _registerEvents(){if(this.options.scrollTop){this._bindHandler=this._scrollTop.bind(this);this.$element.on('open.zf.drilldown hide.zf.drilldown close.zf.drilldown closed.zf.drilldown',this._bindHandler);}this.$element.on('mutateme.zf.trigger',this._resize.bind(this));}},{key:"_scrollTop",value:function _scrollTop(){var _this=this;var $scrollTopElement=_this.options.scrollTopElement!==''?jquery__WEBPACK_IMPORTED_MODULE_0___default()(_this.options.scrollTopElement):_this.$element,scrollPos=parseInt($scrollTopElement.offset().top+_this.options.scrollTopOffset,10);jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').stop(true).animate({scrollTop:scrollPos},_this.options.animationDuration,_this.options.animationEasing,function(){if(this===jquery__WEBPACK_IMPORTED_MODULE_0___default()('html')[0])_this.$element.trigger('scrollme.zf.drilldown');});}},{key:"_keyboardEvents",value:function _keyboardEvents(){var _this=this;this.$menuItems.add(this.$element.find('.js-drilldown-back > a, .is-submenu-parent-item > a')).on('keydown.zf.drilldown',function(e){var $element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$elements=$element.parent('li').parent('ul').children('li').children('a'),$prevElement,$nextElement;$elements.each(function(i){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)){$prevElement=$elements.eq(Math.max(0,i-1));$nextElement=$elements.eq(Math.min(i+1,$elements.length-1));return;}});_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e,'Drilldown',{next:function next(){if($element.is(_this.$submenuAnchors)){_this._show($element.parent('li'));$element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element),function(){$element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus();});return true;}},previous:function previous(){_this._hide($element.parent('li').parent('ul'));$element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element),function(){setTimeout(function(){$element.parent('li').parent('ul').parent('li').children('a').first().focus();},1);});return true;},up:function up(){$prevElement.focus();return !$element.is(_this.$element.find('> li:first-child > a'));},down:function down(){$nextElement.focus();return !$element.is(_this.$element.find('> li:last-child > a'));},close:function close(){if(!$element.is(_this.$element.find('> li > a'))){_this._hide($element.parent().parent());$element.parent().parent().siblings('a').focus();}},open:function open(){if(_this.options.parentLink&&$element.attr('href'))return false;else if(!$element.is(_this.$menuItems)){_this._hide($element.parent('li').parent('ul'));$element.parent('li').parent('ul').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element),function(){setTimeout(function(){$element.parent('li').parent('ul').parent('li').children('a').first().focus();},1);});return true;}else{if($element.is(_this.$submenuAnchors)){_this._show($element.parent('li'));$element.parent('li').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($element),function(){$element.parent('li').find('ul li a').not('.js-drilldown-back a').first().focus();});return true;}}},handled:function handled(preventDefault){if(preventDefault)e.preventDefault();}});});}},{key:"_hideAll",value:function _hideAll(){var _this2=this;var $elem=this.$element.find('.is-drilldown-submenu.is-active');$elem.addClass('is-closing');$elem.parent().closest('ul').removeClass('invisible');if(this.options.autoHeight){var calcHeight=$elem.parent().closest('ul').data('calcHeight');this.$wrapper.css({height:calcHeight});}this.$element.trigger('close.zf.drilldown');$elem.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem),function(){$elem.removeClass('is-active is-closing');_this2.$element.trigger('closed.zf.drilldown');});}},{key:"_back",value:function _back($elem){var _this=this;$elem.off('click.zf.drilldown');$elem.children('.js-drilldown-back').on('click.zf.drilldown',function(){_this._hide($elem);var parentSubMenu=$elem.parent('li').parent('ul').parent('li');if(parentSubMenu.length)_this._show(parentSubMenu);else _this.$currentMenu=_this.$element;});}},{key:"_menuLinkEvents",value:function _menuLinkEvents(){var _this=this;this.$menuItems.not('.is-drilldown-submenu-parent').off('click.zf.drilldown').on('click.zf.drilldown',function(){setTimeout(function(){_this._hideAll();},0);});}},{key:"_setShowSubMenuClasses",value:function _setShowSubMenuClasses($elem,trigger){$elem.addClass('is-active').removeClass('invisible').attr('aria-hidden',false);$elem.parent('li').attr('aria-expanded',true);if(trigger===true)this.$element.trigger('open.zf.drilldown',[$elem]);}},{key:"_setHideSubMenuClasses",value:function _setHideSubMenuClasses($elem,trigger){$elem.removeClass('is-active').addClass('invisible').attr('aria-hidden',true);$elem.parent('li').attr('aria-expanded',false);
7if(trigger===true)$elem.trigger('hide.zf.drilldown',[$elem]);}},{key:"_showMenu",value:function _showMenu($elem,autoFocus){var _this=this;var $expandedSubmenus=this.$element.find('li[aria-expanded="true"] > ul[data-submenu]');$expandedSubmenus.each(function(){_this._setHideSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));});this.$currentMenu=$elem;if($elem.is('[data-drilldown]')){if(autoFocus===true)$elem.find('li > a').first().focus();if(this.options.autoHeight)this.$wrapper.css('height',$elem.data('calcHeight'));return;}var $submenus=$elem.children().first().parentsUntil('[data-drilldown]','[data-submenu]');$submenus.each(function(index){if(index===0&&_this.options.autoHeight)_this.$wrapper.css('height',jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight'));var isLastChild=index===$submenus.length-1;if(isLastChild===true)jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)),function(){if(autoFocus===true)$elem.find('li > a').first().focus();});_this._setShowSubMenuClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),isLastChild);});}},{key:"_show",value:function _show($elem){var $submenu=$elem.children('[data-submenu]');$elem.attr('aria-expanded',true);this.$currentMenu=$submenu;$elem.parent().closest('ul').addClass('invisible');$submenu.addClass('is-active visible').removeClass('invisible').attr('aria-hidden',false);if(this.options.autoHeight)this.$wrapper.css({height:$submenu.data('calcHeight')});this.$element.trigger('open.zf.drilldown',[$elem]);}},{key:"_hide",value:function _hide($elem){if(this.options.autoHeight)this.$wrapper.css({height:$elem.parent().closest('ul').data('calcHeight')});$elem.parent().closest('ul').removeClass('invisible');$elem.parent('li').attr('aria-expanded',false);$elem.attr('aria-hidden',true);$elem.addClass('is-closing').one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.transitionend)($elem),function(){$elem.removeClass('is-active is-closing visible');$elem.blur().addClass('invisible');});$elem.trigger('hide.zf.drilldown',[$elem]);}},{key:"_getMaxDims",value:function _getMaxDims(){var maxHeight=0,result={},_this=this;this.$submenus.add(this.$element).each(function(){var height=_foundation_util_box__WEBPACK_IMPORTED_MODULE_4__.Box.GetDimensions(this).height;maxHeight=height>maxHeight?height:maxHeight;if(_this.options.autoHeight)jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('calcHeight',height);});if(this.options.autoHeight)result.height=this.$currentMenu.data('calcHeight');else result['min-height']="".concat(maxHeight,"px");result['max-width']="".concat(this.$element[0].getBoundingClientRect().width,"px");return result;}},{key:"_destroy",value:function _destroy(){jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('.zf.drilldown');if(this.options.scrollTop)this.$element.off('.zf.drilldown',this._bindHandler);this._hideAll();this.$element.off('mutateme.zf.trigger');_foundation_util_nest__WEBPACK_IMPORTED_MODULE_2__.Nest.Burn(this.$element,'drilldown');this.$element.unwrap().find('.js-drilldown-back, .is-submenu-parent-item').remove().end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').off('transitionend otransitionend webkitTransitionEnd').end().find('[data-submenu]').removeAttr('aria-hidden tabindex role');this.$submenuAnchors.each(function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off('.zf.drilldown');});this.$element.find('[data-is-parent-link]').detach();this.$submenus.removeClass('drilldown-submenu-cover-previous invisible');this.$element.find('a').each(function(){var $link=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);$link.removeAttr('tabindex');if($link.data('savedHref'))$link.attr('href',$link.data('savedHref')).removeData('savedHref');else return;});}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_5__.Plugin);Drilldown.defaults={autoApplyClass:true,backButton:'<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',backButtonPosition:'top',wrapper:'<div></div>',parentLink:false,closeOnClick:false,autoHeight:false,animateHeight:false,scrollTop:false,scrollTopElement:'',scrollTopOffset:0,animationDuration:500,animationEasing:'swing'};}),
vendor: 9,784 bytes, line 7
7"./js/foundation.dropdown.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Dropdown:function(){return Dropdown;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_positionable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.positionable.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.touch.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _superPropGet(t,e,o,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),e,o);return 2&r&&"function"==typeof p?function(t){return p.apply(o,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Dropdown=function(_Positionable){function Dropdown(){_classCallCheck(this,Dropdown);return _callSuper(this,Dropdown,arguments);}_inherits(Dropdown,_Positionable);return _createClass(Dropdown,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Dropdown.defaults,this.$element.data(),options);this.className='Dropdown';_foundation_util_touch__WEBPACK_IMPORTED_MODULE_5__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Dropdown',{'ENTER':'toggle','SPACE':'toggle','ESCAPE':'close'});}},{key:"_init",value:function _init(){var $id=this.$element.attr('id');this.$anchors=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-toggle=\"".concat($id,"\"]")).length?jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-toggle=\"".concat($id,"\"]")):jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat($id,"\"]"));this.$anchors.attr({'aria-controls':$id,'data-is-focus':false,'data-yeti-box':$id,'aria-haspopup':true,'aria-expanded':false});this._setCurrentAnchor(this.$anchors.first());if(this.options.parentClass)this.$parent=this.$element.parents('.'+this.options.parentClass);else this.$parent=null;if(typeof this.$element.attr('aria-labelledby')==='undefined'){if(typeof this.$currentAnchor.attr('id')==='undefined')this.$currentAnchor.attr('id',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'dd-anchor'));this.$element.attr('aria-labelledby',this.$currentAnchor.attr('id'));}this.$element.attr({'aria-hidden':'true','data-yeti-box':$id,'data-resize':$id});_superPropGet(Dropdown,"_init",this,3)([]);this._events();}},{key:"_getDefaultPosition",value:function _getDefaultPosition(){var position=this.$element[0].className.match(/(top|left|right|bottom)/g);if(position)return position[0];else return 'bottom';}},{key:"_getDefaultAlignment",value:function _getDefaultAlignment(){var horizontalPosition=/float-(\S+)/.exec(this.$currentAnchor.attr('class'));if(horizontalPosition)return horizontalPosition[1];return _superPropGet(Dropdown,"_getDefaultAlignment",this,3)([]);}},{key:"_setPosition",value:function _setPosition(){this.$element.removeClass("has-position-".concat(this.position," has-alignment-").concat(this.alignment));_superPropGet(Dropdown,"_setPosition",this,3)([this.$currentAnchor,this.$element,this.$parent]);this.$element.addClass("has-position-".concat(this.position," has-alignment-").concat(this.alignment));}},{key:"_setCurrentAnchor",value:function _setCurrentAnchor(el){this.$currentAnchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el);}},{key:"_events",value:function _events(){var _this=this,hasTouch='ontouchstart' in window||typeof window.ontouchstart!=='undefined';this.$element.on({'open.zf.trigger':this.open.bind(this),'close.zf.trigger':this.close.bind(this),'toggle.zf.trigger':this.toggle.bind(this),'resizeme.zf.trigger':this._setPosition.bind(this)});this.$anchors.off('click.zf.trigger').on('click.zf.trigger',function(e){_this._setCurrentAnchor(this);if(_this.options.forceFollow===false||hasTouch&&_this.options.hover&&_this.$element.hasClass('is-open')===false)e.preventDefault();});if(this.options.hover){this.$anchors.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown',function(){_this._setCurrentAnchor(this);var bodyData=jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').data();if(typeof bodyData.whatinput==='undefined'||bodyData.whatinput==='mouse'){clearTimeout(_this.timeout);_this.timeout=setTimeout(function(){_this.open();_this.$anchors.data('hover',true);},_this.options.hoverDelay);}}).on('mouseleave.zf.dropdown',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.ignoreMousedisappear)(function(){clearTimeout(_this.timeout);_this.timeout=setTimeout(function(){_this.close();_this.$anchors.data('hover',false);},_this.options.hoverDelay);}));if(this.options.hoverPane)this.$element.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown',function(){clearTimeout(_this.timeout);}).on('mouseleave.zf.dropdown',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.ignoreMousedisappear)(function(){clearTimeout(_this.timeout);_this.timeout=setTimeout(function(){_this.close();_this.$anchors.data('hover',false);},_this.options.hoverDelay);}));}this.$anchors.add(this.$element).on('keydown.zf.dropdown',function(e){var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e,'Dropdown',{open:function open(){if($target.is(_this.$anchors)&&!$target.is('input, textarea')){_this.open();_this.$element.attr('tabindex',-1).focus();e.preventDefault();}},close:function close(){_this.close();_this.$anchors.focus();}});});}},{key:"_addBodyHandler",value:function _addBodyHandler(){var $body=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.body).not(this.$element),_this=this;$body.off('click.zf.dropdown tap.zf.dropdown').on('click.zf.dropdown tap.zf.dropdown',function(e){if(_this.$anchors.is(e.target)||_this.$anchors.find(e.target).length)return;if(_this.$element.is(e.target)||_this.$element.find(e.target).length)return;_this.close();$body.off('click.zf.dropdown tap.zf.dropdown');});}},{key:"open",value:function open(){this.$element.trigger('closeme.zf.dropdown',this.$element.attr('id'));this.$anchors.addClass('hover').attr({'aria-expanded':true});this.$element.addClass('is-opening');this._setPosition();this.$element.removeClass('is-opening').addClass('is-open').attr({'aria-hidden':false});
7if(this.options.autoFocus){var $focusable=_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.findFocusable(this.$element);if($focusable.length)$focusable.eq(0).focus();}if(this.options.closeOnClick)this._addBodyHandler();if(this.options.trapFocus)_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.trapFocus(this.$element);this.$element.trigger('show.zf.dropdown',[this.$element]);}},{key:"close",value:function close(){if(!this.$element.hasClass('is-open'))return false;this.$element.removeClass('is-open').attr({'aria-hidden':true});this.$anchors.removeClass('hover').attr('aria-expanded',false);this.$element.trigger('hide.zf.dropdown',[this.$element]);if(this.options.trapFocus)_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.releaseFocus(this.$element);}},{key:"toggle",value:function toggle(){if(this.$element.hasClass('is-open')){if(this.$anchors.data('hover'))return;this.close();}else this.open();}},{key:"_destroy",value:function _destroy(){this.$element.off('.zf.trigger').hide();this.$anchors.off('.zf.dropdown');jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.body).off('click.zf.dropdown tap.zf.dropdown');}}]);}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_3__.Positionable);Dropdown.defaults={parentClass:null,hoverDelay:250,hover:false,hoverPane:false,vOffset:0,hOffset:0,position:'auto',alignment:'auto',allowOverlap:false,allowBottomOverlap:true,trapFocus:false,autoFocus:false,closeOnClick:false,forceFollow:true};}),
vendor: 5,631 bytes, line 7
7"./js/foundation.dropdownMenu.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{DropdownMenu:function(){return DropdownMenu;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.nest.js");var _foundation_util_box__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.box.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.util.touch.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var DropdownMenu=function(_Plugin){function DropdownMenu(){_classCallCheck(this,DropdownMenu);return _callSuper(this,DropdownMenu,arguments);}_inherits(DropdownMenu,_Plugin);return _createClass(DropdownMenu,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},DropdownMenu.defaults,this.$element.data(),options);this.className='DropdownMenu';_foundation_util_touch__WEBPACK_IMPORTED_MODULE_6__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.register('DropdownMenu',{'ENTER':'open','SPACE':'open','ARROW_RIGHT':'next','ARROW_UP':'up','ARROW_DOWN':'down','ARROW_LEFT':'previous','ESCAPE':'close'});}},{key:"_init",value:function _init(){_foundation_util_nest__WEBPACK_IMPORTED_MODULE_4__.Nest.Feather(this.$element,'dropdown');var subs=this.$element.find('li.is-dropdown-submenu-parent');this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub');this.$menuItems=this.$element.find('li[role="none"]');this.$tabs=this.$element.children('li[role="none"]');this.$tabs.find('ul.is-dropdown-submenu').addClass(this.options.verticalClass);if(this.options.alignment==='auto')if(this.$element.hasClass(this.options.rightClass)||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.rtl)()||this.$element.parents('.top-bar-right').is('*')){this.options.alignment='right';subs.addClass('opens-left');}else{this.options.alignment='left';subs.addClass('opens-right');}else if(this.options.alignment==='right')subs.addClass('opens-left');else subs.addClass('opens-right');this.changed=false;this._events();}},{key:"_isVertical",value:function _isVertical(){return this.$tabs.css('display')==='block'||this.$element.css('flex-direction')==='column';}},{key:"_isRtl",value:function _isRtl(){return this.$element.hasClass('align-right')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.rtl)()&&
7!this.$element.hasClass('align-left');}},{key:"_events",value:function _events(){var _this=this,hasTouch='ontouchstart' in window||typeof window.ontouchstart!=='undefined',parClass='is-dropdown-submenu-parent';var handleClickFn=function handleClickFn(e){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).parentsUntil('ul',".".concat(parClass)),hasSub=$elem.hasClass(parClass),hasClicked=$elem.attr('data-is-click')==='true',$sub=$elem.children('.is-dropdown-submenu');if(hasSub)if(hasClicked){if(!_this.options.closeOnClick||!_this.options.clickOpen&&!hasTouch||_this.options.forceFollow&&hasTouch)return;e.stopImmediatePropagation();e.preventDefault();_this._hide($elem);}else{e.stopImmediatePropagation();e.preventDefault();_this._show($sub);$elem.add($elem.parentsUntil(_this.$element,".".concat(parClass))).attr('data-is-click',true);}};if(this.options.clickOpen||hasTouch)this.$menuItems.on('click.zf.dropdownMenu touchstart.zf.dropdownMenu',handleClickFn);if(_this.options.closeOnClickInside)this.$menuItems.on('click.zf.dropdownMenu',function(){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),hasSub=$elem.hasClass(parClass);if(!hasSub)_this._hide();});if(hasTouch&&this.options.disableHoverOnTouch)this.options.disableHover=true;if(!this.options.disableHover)this.$menuItems.on('mouseenter.zf.dropdownMenu',function(){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),hasSub=$elem.hasClass(parClass);if(hasSub){clearTimeout($elem.data('_delay'));$elem.data('_delay',setTimeout(function(){_this._show($elem.children('.is-dropdown-submenu'));},_this.options.hoverDelay));}}).on('mouseleave.zf.dropdownMenu',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.ignoreMousedisappear)(function(){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),hasSub=$elem.hasClass(parClass);if(hasSub&&_this.options.autoclose){if($elem.attr('data-is-click')==='true'&&_this.options.clickOpen)return false;clearTimeout($elem.data('_delay'));$elem.data('_delay',setTimeout(function(){_this._hide($elem);},_this.options.closingTime));}}));this.$menuItems.on('keydown.zf.dropdownMenu',function(e){var $element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).parentsUntil('ul','[role="none"]'),isTab=_this.$tabs.index($element)>-1,$elements=isTab?_this.$tabs:$element.siblings('li').add($element),$prevElement,$nextElement;$elements.each(function(i){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)){$prevElement=$elements.eq(i-1);$nextElement=$elements.eq(i+1);return;}});var nextSibling=function nextSibling(){$nextElement.children('a:first').focus();e.preventDefault();},prevSibling=function prevSibling(){$prevElement.children('a:first').focus();e.preventDefault();},openSub=function openSub(){var $sub=$element.children('ul.is-dropdown-submenu');if($sub.length){_this._show($sub);$element.find('li > a:first').focus();e.preventDefault();}else return;},closeSub=function closeSub(){var close=$element.parent('ul').parent('li');close.children('a:first').focus();_this._hide(close);e.preventDefault();};var functions={open:openSub,close:function close(){_this._hide(_this.$element);_this.$menuItems.eq(0).children('a').focus();e.preventDefault();}};if(isTab)if(_this._isVertical())if(_this._isRtl())jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{down:nextSibling,up:prevSibling,next:closeSub,previous:openSub});else jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{down:nextSibling,up:prevSibling,next:openSub,previous:closeSub});else if(_this._isRtl())jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{next:prevSibling,previous:nextSibling,down:openSub,up:closeSub});else jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{next:nextSibling,previous:prevSibling,down:openSub,up:closeSub});else if(_this._isRtl())jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{next:closeSub,previous:openSub,down:nextSibling,up:prevSibling});else jquery__WEBPACK_IMPORTED_MODULE_0___default().extend(functions,{next:openSub,previous:closeSub,down:nextSibling,up:prevSibling});_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.handleKey(e,'DropdownMenu',functions);});}},{key:"_addBodyHandler",value:function _addBodyHandler(){var _this2=this;var $body=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.body);this._removeBodyHandler();$body.on('click.zf.dropdownMenu tap.zf.dropdownMenu',function(e){var isItself=!!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).closest(_this2.$element).length;if(isItself)return;_this2._hide();_this2._removeBodyHandler();});}},{key:"_removeBodyHandler",value:function _removeBodyHandler(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.body).off('click.zf.dropdownMenu tap.zf.dropdownMenu');}},{key:"_show",value:function _show($sub){var idx=this.$tabs.index(this.$tabs.filter(function(i,el){return jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).find($sub).length>0;}));var $sibs=$sub.parent('li.is-dropdown-submenu-parent').siblings('li.is-dropdown-submenu-parent');this._hide($sibs,idx);$sub.css('visibility','hidden').addClass('js-dropdown-active').parent('li.is-dropdown-submenu-parent').addClass('is-active');var clear=_foundation_util_box__WEBPACK_IMPORTED_MODULE_5__.Box.ImNotTouchingYou($sub,null,true);if(!clear){var oldClass=this.options.alignment==='left'?'-right':'-left',$parentLi=$sub.parent('.is-dropdown-submenu-parent');$parentLi.removeClass("opens".concat(oldClass)).addClass("opens-".concat(this.options.alignment));clear=_foundation_util_box__WEBPACK_IMPORTED_MODULE_5__.Box.ImNotTouchingYou($sub,null,true);if(!clear)$parentLi.removeClass("opens-".concat(this.options.alignment)).addClass('opens-inner');this.changed=true;}$sub.css('visibility','');if(this.options.closeOnClick)this._addBodyHandler();this.$element.trigger('show.zf.dropdownMenu',[$sub]);}}
vendor: 16,731 bytes, line 7
7,{key:"_hide",value:function _hide($elem,idx){var $toClose;if($elem&&$elem.length)$toClose=$elem;else if(typeof idx!=='undefined')$toClose=this.$tabs.not(function(i){return i===idx;});else $toClose=this.$element;var somethingToClose=$toClose.hasClass('is-active')||$toClose.find('.is-active').length>0;if(somethingToClose){var $activeItem=$toClose.find('li.is-active');$activeItem.add($toClose).attr({'data-is-click':false}).removeClass('is-active');$toClose.find('ul.js-dropdown-active').removeClass('js-dropdown-active');if(this.changed||$toClose.find('opens-inner').length){var oldClass=this.options.alignment==='left'?'right':'left';$toClose.find('li.is-dropdown-submenu-parent').add($toClose).removeClass("opens-inner opens-".concat(this.options.alignment)).addClass("opens-".concat(oldClass));this.changed=false;}clearTimeout($activeItem.data('_delay'));this._removeBodyHandler();this.$element.trigger('hide.zf.dropdownMenu',[$toClose]);}}},{key:"_destroy",value:function _destroy(){this.$menuItems.off('.zf.dropdownMenu').removeAttr('data-is-click').removeClass('is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner');jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.body).off('.zf.dropdownMenu');_foundation_util_nest__WEBPACK_IMPORTED_MODULE_4__.Nest.Burn(this.$element,'dropdown');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);DropdownMenu.defaults={disableHover:false,disableHoverOnTouch:true,autoclose:true,hoverDelay:50,clickOpen:false,closingTime:500,alignment:'auto',closeOnClick:true,closeOnClickInside:true,verticalClass:'vertical',rightClass:'align-right',forceFollow:true};}),"./js/foundation.equalizer.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Equalizer:function(){return Equalizer;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.imageLoader.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.core.plugin.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Equalizer=function(_Plugin){function Equalizer(){_classCallCheck(this,Equalizer);return _callSuper(this,Equalizer,arguments);}_inherits(Equalizer,_Plugin);return _createClass(Equalizer,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Equalizer.defaults,this.$element.data(),options);this.className='Equalizer';this._init();}},{key:"_init",value:function _init(){var eqId=this.$element.attr('data-equalizer')||'';var $watched=this.$element.find("[data-equalizer-watch=\"".concat(eqId,"\"]"));_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();this.$watched=$watched.length?$watched:this.$element.find('[data-equalizer-watch]');this.$element.attr('data-resize',eqId||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'eq'));this.$element.attr('data-mutate',eqId||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'eq'));this.hasNested=this.$element.find('[data-equalizer]').length>0;this.isNested=this.$element.parentsUntil(document.body,'[data-equalizer]').length>0;this.isOn=false;this._bindHandler={onResizeMeBound:this._onResizeMe.bind(this),onPostEqualizedBound:this._onPostEqualized.bind(this)};var imgs=this.$element.find('img');var tooSmall;if(this.options.equalizeOn){tooSmall=this._checkMQ();jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._checkMQ.bind(this));}else this._events();if(typeof tooSmall!=='undefined'&&tooSmall===false||typeof tooSmall==='undefined')if(imgs.length)(0,_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2__.onImagesLoaded)(imgs,this._reflow.bind(this));else this._reflow();}},{key:"_pauseEvents",value:function _pauseEvents(){this.isOn=false;this.$element.off({'.zf.equalizer':this._bindHandler.onPostEqualizedBound,'resizeme.zf.trigger':this._bindHandler.onResizeMeBound,'mutateme.zf.trigger':this._bindHandler.onResizeMeBound});}},{key:"_onResizeMe",value:function _onResizeMe(){this._reflow();}},{key:"_onPostEqualized",value:function _onPostEqualized(e){if(e.target!==this.$element[0])this._reflow();}},{key:"_events",value:function _events(){this._pauseEvents();if(this.hasNested)this.$element.on('postequalized.zf.equalizer',this._bindHandler.onPostEqualizedBound);else{this.$element.on('resizeme.zf.trigger',this._bindHandler.onResizeMeBound);this.$element.on('mutateme.zf.trigger',this._bindHandler.onResizeMeBound);}this.isOn=true;}},{key:"_checkMQ",value:function _checkMQ(){var tooSmall=!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.is(this.options.equalizeOn);if(tooSmall){if(this.isOn){this._pauseEvents();this.$watched.css('height','auto');}}else{if(!this.isOn)this._events();}return tooSmall;}},{key:"_killswitch",value:function _killswitch(){return;}},{key:"_reflow",value:function _reflow(){if(!this.options.equalizeOnStack)if(this._isStacked()){this.$watched.css('height','auto');return false;}if(this.options.equalizeByRow)this.getHeightsByRow(this.applyHeightByRow.bind(this));else this.getHeights(this.applyHeight.bind(this));}},{key:"_isStacked",value:function _isStacked(){if(!this.$watched[0]||!this.$watched[1])return true;return this.$watched[0].getBoundingClientRect().top!==this.$watched[1].getBoundingClientRect().top;}},{key:"getHeights",value:function getHeights(cb){var heights=[];for(var i=0,len=this.$watched.length;i<len;i++){this.$watched[i].style.height='auto';heights.push(this.$watched[i].offsetHeight);}cb(heights);}},{key:"getHeightsByRow",value:function getHeightsByRow(cb){var lastElTopOffset=this.$watched.length?this.$watched.first().offset().top:0,groups=[],group=0;groups[group]=[];for(var i=0,len=this.$watched.length;i<len;i++){this.$watched[i].style.height='auto';var elOffsetTop=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$watched[i]).offset().top;if(elOffsetTop!==lastElTopOffset){group++;groups[group]=[];lastElTopOffset=elOffsetTop;}groups[group].push([this.$watched[i],this.$watched[i].offsetHeight]);}for(var j=0,ln=groups.length;j<ln;j++){var heights=jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[j]).map(function(){return this[1];}).get();var max=Math.max.apply(null,heights);groups[j].push(max);}cb(groups);}},{key:"applyHeight",value:function applyHeight(heights){var max=Math.max.apply(null,heights);this.$element.trigger('preequalized.zf.equalizer');this.$watched.css('height',max);this.$element.trigger('postequalized.zf.equalizer');}},{key:"applyHeightByRow",value:function applyHeightByRow(groups){this.$element.trigger('preequalized.zf.equalizer');for(var i=0,len=groups.length;i<len;i++){var groupsILength=groups[i].length,max=groups[i][groupsILength-1];if(groupsILength<=2){jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[i][0][0]).css({'height':'auto'});continue;}this.$element.trigger('preequalizedrow.zf.equalizer');for(var j=0,lenJ=groupsILength-1;j<lenJ;j++)jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[i][j][0]).css({'height':max});this.$element.trigger('postequalizedrow.zf.equalizer');}this.$element.trigger('postequalized.zf.equalizer');}},{key:"_destroy",value:function _destroy(){this._pauseEvents();this.$watched.css('height','auto');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__.Plugin);Equalizer.defaults={equalizeOnStack:false,equalizeByRow:false,equalizeOn:''};}),"./js/foundation.interchange.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Interchange:function(){return Interchange;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Interchange=function(_Plugin){function Interchange(){_classCallCheck(this,Interchange);return _callSuper(this,Interchange,arguments);}_inherits(Interchange,_Plugin);return _createClass(Interchange,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Interchange.defaults,this.$element.data(),options);this.rules=[];this.currentPath='';this.className='Interchange';_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();this._events();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();var id=this.$element[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'interchange');this.$element.attr({'data-resize':id,'id':id});this._parseOptions();this._addBreakpoints();this._generateRules();this._reflow();}},{key:"_events",value:function _events(){var _this=this;this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger',function(){return _this._reflow();});}},{key:"_reflow",value:function _reflow(){var match;for(var i in this.rules)if(this.rules.hasOwnProperty(i)){var rule=this.rules[i];if(window.matchMedia(rule.query).matches)match=rule;}if(match)this.replace(match.path);}},{key:"_parseOptions",value:function _parseOptions(){var types=['auto','src','background','html'];if(typeof this.options.type==='undefined')this.options.type='auto';else{if(types.indexOf(this.options.type)===-1){console.warn("Warning: invalid value \"".concat(this.options.type,"\" for Interchange option \"type\""));this.options.type='auto';}}}},{key:"_addBreakpoints",value:function _addBreakpoints(){for(var i in _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries)if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries.hasOwnProperty(i)){var query=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.queries[i];Interchange.SPECIAL_QUERIES[query.name]=query.value;}}},{key:"_generateRules",value:function _generateRules(){var rulesList=[];var rules;if(this.options.rules)rules=this.options.rules;else rules=this.$element.data('interchange');rules=typeof rules==='string'?rules.match(/\[.*?, .*?\]/g):rules;for(var i in rules)if(rules.hasOwnProperty(i)){var rule=rules[i].slice(1,-1).split(', ');var path=rule.slice(0,-1).join('');var query=rule[rule.length-1];if(Interchange.SPECIAL_QUERIES[query])query=Interchange.SPECIAL_QUERIES[query];rulesList.push({path,query});}this.rules=rulesList;}},{key:"replace",value:function replace(path){var _this2=this;if(this.currentPath===path)return;var trigger='replaced.zf.interchange';var type=this.options.type;if(type==='auto')if(this.$element[0].nodeName==='IMG')type='src';else if(path.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i))type='background';
7else type='html';if(type==='src')this.$element.attr('src',path).on('load',function(){_this2.currentPath=path;}).trigger(trigger);else if(type==='background'){path=path.replace(/\(/g,'%28').replace(/\)/g,'%29');this.$element.css({'background-image':'url('+path+')'}).trigger(trigger);}else{if(type==='html')jquery__WEBPACK_IMPORTED_MODULE_0___default().get(path,function(response){_this2.$element.html(response).trigger(trigger);jquery__WEBPACK_IMPORTED_MODULE_0___default()(response).foundation();_this2.currentPath=path;});}}},{key:"_destroy",value:function _destroy(){this.$element.off('resizeme.zf.trigger');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.Plugin);Interchange.defaults={rules:null,type:'auto'};Interchange.SPECIAL_QUERIES={'landscape':'screen and (orientation: landscape)','portrait':'screen and (orientation: portrait)','retina':'only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)'};}),
vendor: 4,984 bytes, line 7
7"./js/foundation.magellan.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Magellan:function(){return Magellan;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.smoothScroll.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Magellan=function(_Plugin){function Magellan(){_classCallCheck(this,Magellan);return _callSuper(this,Magellan,arguments);}_inherits(Magellan,_Plugin);return _createClass(Magellan,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Magellan.defaults,this.$element.data(),options);this.className='Magellan';_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();this.calcPoints();}},{key:"_init",value:function _init(){var id=this.$element[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'magellan');this.$targets=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-magellan-target]');this.$links=this.$element.find('a');this.$element.attr({'data-resize':id,'data-scroll':id,'id':id});this.$active=jquery__WEBPACK_IMPORTED_MODULE_0___default()();this.scrollPos=parseInt(window.pageYOffset,10);this._events();}},{key:"calcPoints",value:function calcPoints(){var _this=this,body=document.body,html=document.documentElement;this.points=[];this.winHeight=Math.round(Math.max(window.innerHeight,html.clientHeight));this.docHeight=Math.round(Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight));this.$targets.each(function(){var $tar=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),pt=Math.round($tar.offset().top-_this.options.threshold);$tar.targetPoint=pt;_this.points.push(pt);});}},{key:"_events",value:function _events(){var _this=this;
7jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).one('load',function(){if(_this.options.deepLinking)if(location.hash)_this.scrollToLoc(location.hash);_this.calcPoints();_this._updateActive();});_this.onLoadListener=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){_this.$element.on({'resizeme.zf.trigger':_this.reflow.bind(_this),'scrollme.zf.trigger':_this._updateActive.bind(_this)}).on('click.zf.magellan','a[href^="#"]',function(e){e.preventDefault();var arrival=this.getAttribute('href');_this.scrollToLoc(arrival);});});this._deepLinkScroll=function(){if(_this.options.deepLinking)_this.scrollToLoc(window.location.hash);};jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._deepLinkScroll);}},{key:"scrollToLoc",value:function scrollToLoc(loc){this._inTransition=true;var _this=this;var options={animationEasing:this.options.animationEasing,animationDuration:this.options.animationDuration,threshold:this.options.threshold,offset:this.options.offset};_foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_3__.SmoothScroll.scrollToLoc(loc,options,function(){_this._inTransition=false;});}},{key:"reflow",value:function reflow(){this.calcPoints();this._updateActive();}},{key:"_updateActive",value:function _updateActive(){var _this2=this;if(this._inTransition)return;var newScrollPos=parseInt(window.pageYOffset,10);var isScrollingUp=this.scrollPos>newScrollPos;this.scrollPos=newScrollPos;var activeIdx;if(newScrollPos<this.points[0]-this.options.offset-(isScrollingUp?this.options.threshold:0)){}else if(newScrollPos+this.winHeight===this.docHeight)activeIdx=this.points.length-1;else{var visibleLinks=this.points.filter(function(p){return p-_this2.options.offset-(isScrollingUp?_this2.options.threshold:0)<=newScrollPos;});activeIdx=visibleLinks.length?visibleLinks.length-1:0;}var $oldActive=this.$active;var activeHash='';if(typeof activeIdx!=='undefined'){this.$active=this.$links.filter('[href="#'+this.$targets.eq(activeIdx).data('magellan-target')+'"]');if(this.$active.length)activeHash=this.$active[0].getAttribute('href');}else this.$active=jquery__WEBPACK_IMPORTED_MODULE_0___default()();var isNewActive=!(!this.$active.length&&!$oldActive.length)&&!this.$active.is($oldActive);var isNewHash=activeHash!==window.location.hash;if(isNewActive){$oldActive.removeClass(this.options.activeClass);this.$active.addClass(this.options.activeClass);}if(this.options.deepLinking&&isNewHash)if(window.history.pushState){var url=activeHash?activeHash:window.location.pathname+window.location.search;if(this.options.updateHistory)window.history.pushState({},'',url);else window.history.replaceState({},'',url);}else window.location.hash=activeHash;if(isNewActive)this.$element.trigger('update.zf.magellan',[this.$active]);}},{key:"_destroy",value:function _destroy(){this.$element.off('.zf.trigger .zf.magellan').find(".".concat(this.options.activeClass)).removeClass(this.options.activeClass);if(this.options.deepLinking){var hash=this.$active[0].getAttribute('href');window.location.hash.replace(hash,'');}jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._deepLinkScroll);if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Magellan.defaults={animationDuration:500,animationEasing:'linear',threshold:50,activeClass:'is-active',deepLinking:false,updateHistory:false,offset:0};}),
vendor: 5,115 bytes, line 7
7"./js/foundation.offcanvas.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{OffCanvas:function(){return OffCanvas;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var OffCanvas=function(_Plugin){function OffCanvas(){_classCallCheck(this,OffCanvas);return _callSuper(this,OffCanvas,arguments);}_inherits(OffCanvas,_Plugin);return _createClass(OffCanvas,[{key:"_setup",value:function _setup(element,options){var _this2=this;this.className='OffCanvas';this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},OffCanvas.defaults,this.$element.data(),options);this.contentClasses={base:[],reveal:[]};this.$lastTrigger=jquery__WEBPACK_IMPORTED_MODULE_0___default()();this.$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()();this.position='left';this.$content=jquery__WEBPACK_IMPORTED_MODULE_0___default()();this.nested=!!this.options.nested;this.$sticky=jquery__WEBPACK_IMPORTED_MODULE_0___default()();this.isInCanvas=false;jquery__WEBPACK_IMPORTED_MODULE_0___default()(['push','overlap']).each(function(index,val){_this2.contentClasses.base.push('has-transition-'+val);});jquery__WEBPACK_IMPORTED_MODULE_0___default()(['left','right','top','bottom']).each(function(index,val){_this2.contentClasses.base.push('has-position-'+val);_this2.contentClasses.reveal.push('has-reveal-'+val);});_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_5__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery._init();this._init();this._events();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.register('OffCanvas',{'ESCAPE':'close'});}},{key:"_init",value:function _init(){var id=this.$element.attr('id');this.$element.attr('aria-hidden','true');
7if(this.options.contentId)this.$content=jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+this.options.contentId);else if(this.$element.siblings('[data-off-canvas-content]').length)this.$content=this.$element.siblings('[data-off-canvas-content]').first();else this.$content=this.$element.closest('[data-off-canvas-content]').first();if(!this.options.contentId)this.nested=this.$element.siblings('[data-off-canvas-content]').length===0;else{if(this.options.contentId&&this.options.nested===null)console.warn('Remember to use the nested option if using the content ID option!');}if(this.nested===true){this.options.transition='overlap';this.$element.removeClass('is-transition-push');}this.$element.addClass("is-transition-".concat(this.options.transition," is-closed"));this.$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).find('[data-open="'+id+'"], [data-close="'+id+'"], [data-toggle="'+id+'"]').attr('aria-expanded','false').attr('aria-controls',id);this.position=this.$element.is('.position-left, .position-top, .position-right, .position-bottom')?this.$element.attr('class').match(/position\-(left|top|right|bottom)/)[1]:this.position;if(this.options.contentOverlay===true){var overlay=document.createElement('div');var overlayPosition=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$element).css("position")==='fixed'?'is-overlay-fixed':'is-overlay-absolute';overlay.setAttribute('class','js-off-canvas-overlay '+overlayPosition);this.$overlay=jquery__WEBPACK_IMPORTED_MODULE_0___default()(overlay);if(overlayPosition==='is-overlay-fixed')jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$overlay).insertAfter(this.$element);else this.$content.append(this.$overlay);}var revealOnRegExp=new RegExp((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.RegExpEscape)(this.options.revealClass)+'([^\\s]+)','g');var revealOnClass=revealOnRegExp.exec(this.$element[0].className);if(revealOnClass){this.options.isRevealed=true;this.options.revealOn=this.options.revealOn||revealOnClass[1];}if(this.options.isRevealed===true&&this.options.revealOn){this.$element.first().addClass("".concat(this.options.revealClass).concat(this.options.revealOn));this._setMQChecker();}if(this.options.transitionTime)this.$element.css('transition-duration',this.options.transitionTime);this.$sticky=this.$content.find('[data-off-canvas-sticky]');if(this.$sticky.length>0&&this.options.transition==='push')this.options.contentScroll=false;var inCanvasFor=this.$element.attr('class').match(/\bin-canvas-for-(\w+)/);if(inCanvasFor&&inCanvasFor.length===2)this.options.inCanvasOn=inCanvasFor[1];else{if(this.options.inCanvasOn)this.$element.addClass("in-canvas-for-".concat(this.options.inCanvasOn));}if(this.options.inCanvasOn)this._checkInCanvas();this._removeContentClasses();}},{key:"_events",value:function _events(){var _this3=this;this.$element.off('.zf.trigger .zf.offCanvas').on({'open.zf.trigger':this.open.bind(this),'close.zf.trigger':this.close.bind(this),'toggle.zf.trigger':this.toggle.bind(this),'keydown.zf.offCanvas':this._handleKeyboard.bind(this)});if(this.options.closeOnClick===true){var $target=this.options.contentOverlay?this.$overlay:this.$content;$target.on({'click.zf.offCanvas':this.close.bind(this)});}if(this.options.inCanvasOn)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',function(){_this3._checkInCanvas();});}},{key:"_setMQChecker",value:function _setMQChecker(){var _this=this;this.onLoadListener=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery.atLeast(_this.options.revealOn))_this.reveal(true);});jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',function(){if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery.atLeast(_this.options.revealOn))_this.reveal(true);else _this.reveal(false);});}},{key:"_checkInCanvas",value:function _checkInCanvas(){this.isInCanvas=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery.atLeast(this.options.inCanvasOn);if(this.isInCanvas===true)this.close();}},{key:"_removeContentClasses",value:function _removeContentClasses(hasReveal){if(typeof hasReveal!=='boolean')this.$content.removeClass(this.contentClasses.base.join(' '));else{if(hasReveal===false)this.$content.removeClass("has-reveal-".concat(this.position));}}},{key:"_addContentClasses",value:function _addContentClasses(hasReveal){this._removeContentClasses(hasReveal);if(typeof hasReveal!=='boolean')this.$content.addClass("has-transition-".concat(this.options.transition," has-position-").concat(this.position));else{if(hasReveal===true)this.$content.addClass("has-reveal-".concat(this.position));}}},{key:"_fixStickyElements",value:function _fixStickyElements(){this.$sticky.each(function(_,el){var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el);if($el.css('position')==='fixed'){var topVal=parseInt($el.css('top'),10);$el.data('offCanvasSticky',{top:topVal});var absoluteTopVal=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).scrollTop()+topVal;$el.css({top:"".concat(absoluteTopVal,"px"),width:'100%',transition:'none'});}});}},{key:"_unfixStickyElements",value:function _unfixStickyElements(){this.$sticky.each(function(_,el){var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el);var stickyData=$el.data('offCanvasSticky');if(_typeof(stickyData)==='object'){$el.css({top:"".concat(stickyData.top,"px"),width:'',transition:''});$el.data('offCanvasSticky','');}});}},{key:"reveal",value:function reveal(isRevealed){if(isRevealed){this.close();this.isRevealed=true;this.$element.attr('aria-hidden','false');this.$element.off('open.zf.trigger toggle.zf.trigger');this.$element.removeClass('is-closed');}else{this.isRevealed=false;this.$element.attr('aria-hidden','true');this.$element.off('open.zf.trigger toggle.zf.trigger').on({'open.zf.trigger':this.open.bind(this),'toggle.zf.trigger':this.toggle.bind(this)});this.$element.addClass('is-closed');}this._addContentClasses(isRevealed);}},{key:"_stopScrolling",value:function _stopScrolling(){return false;}},{key:"_recordScrollable",value:function _recordScrollable(event){var elem=this;elem.lastY=event.touches[0].pageY;}},{key:"_preventDefaultAtEdges",value:function _preventDefaultAtEdges(event){var elem=this;var _this=event.data;var delta=elem.lastY-event.touches[0].pageY;elem.lastY=event.touches[0].pageY;if(!_this._canScroll(delta,elem))event.preventDefault();}},{key:"_scrollboxTouchMoved",value:function _scrollboxTouchMoved(event){var elem=this;var _this=event.data;var parent=elem.closest('[data-off-canvas], [data-off-canvas-scrollbox-outer]');var delta=elem.lastY-event.touches[0].pageY;parent.lastY=elem.lastY=event.touches[0].pageY;event.stopPropagation();if(!_this._canScroll(delta,elem))if(!_this._canScroll(delta,parent))event.preventDefault();else parent.scrollTop+=delta;}},{key:"_canScroll",value:function _canScroll(delta,elem){var up=delta<0;var down=delta>0;var allowUp=elem.scrollTop>0;var allowDown=elem.scrollTop<elem.scrollHeight-elem.clientHeight;return up&&allowUp||down&&allowDown;}},{key:"open",value:function open(event,trigger){var _this4=this;if(this.$element.hasClass('is-open')||this.isRevealed||this.isInCanvas)return;var _this=this;if(trigger)this.$lastTrigger=trigger;if(this.options.forceTo==='top')window.scrollTo(0,0);else{if(this.options.forceTo==='bottom')window.scrollTo(0,document.body.scrollHeight);}if(this.options.transitionTime&&this.options.transition!=='overlap')this.$element.siblings('[data-off-canvas-content]').css('transition-duration',this.options.transitionTime);else this.$element.siblings('[data-off-canvas-content]').css('transition-duration','');this.$element.addClass('is-open').removeClass('is-closed');this.$triggers.attr('aria-expanded','true');this.$element.attr('aria-hidden','false');this.$content.addClass('is-open-'+this.position);if(this.options.contentScroll===false){jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').addClass('is-off-canvas-open').on('touchmove',this._stopScrolling);this.$element.on('touchstart',this._recordScrollable);this.$element.on('touchmove',this,this._preventDefaultAtEdges);this.$element.on('touchstart','[data-off-canvas-scrollbox]',this._recordScrollable);this.$element.on('touchmove','[data-off-canvas-scrollbox]',this,this._scrollboxTouchMoved);}if(this.options.contentOverlay===true)this.$overlay.addClass('is-visible');if(this.options.closeOnClick===true&&this.options.contentOverlay===true)this.$overlay.addClass('is-closable');if(this.options.autoFocus===true)this.$element.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.transitionend)(this.$element),function(){if(!_this.$element.hasClass('is-open'))return;var canvasFocus=_this.$element.find('[data-autofocus]');if(canvasFocus.length)canvasFocus.eq(0).focus();else _this.$element.find('a, button').eq(0).focus();});if(this.options.trapFocus===true){this.$content.attr('tabindex','-1');_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.trapFocus(this.$element);}if(this.options.transition==='push')this._fixStickyElements();this._addContentClasses();this.$element.trigger('opened.zf.offCanvas');this.$element.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.transitionend)(this.$element),function(){_this4.$element.trigger('openedEnd.zf.offCanvas');});}},{key:"close",value:function close(){var _this5=this;if(!this.$element.hasClass('is-open')||this.isRevealed)return;this.$element.trigger('close.zf.offCanvas');this.$element.removeClass('is-open');this.$element.attr('aria-hidden','true');this.$content.removeClass('is-open-left is-open-top is-open-right is-open-bottom');if(this.options.contentOverlay===true)this.$overlay.removeClass('is-visible');if(this.options.closeOnClick===true&&this.options.contentOverlay===true)this.$overlay.removeClass('is-closable');this.$triggers.attr('aria-expanded','false');this.$element.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.transitionend)(this.$element),function(){_this5.$element.addClass('is-closed');_this5._removeContentClasses();if(_this5.options.transition==='push')_this5._unfixStickyElements();if(_this5.options.contentScroll===false){jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').removeClass('is-off-canvas-open').off('touchmove',_this5._stopScrolling);_this5.$element.off('touchstart',_this5._recordScrollable);_this5.$element.off('touchmove',_this5._preventDefaultAtEdges);_this5.$element.off('touchstart','[data-off-canvas-scrollbox]',_this5._recordScrollable);_this5.$element.off('touchmove','[data-off-canvas-scrollbox]',_this5._scrollboxTouchMoved);}if(_this5.options.trapFocus===true){_this5.$content.removeAttr('tabindex');_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.releaseFocus(_this5.$element);}_this5.$element.trigger('closed.zf.offCanvas');});}},{key:"toggle",value:function toggle(event,trigger){if(this.$element.hasClass('is-open'))this.close(event,trigger);else this.open(event,trigger);}},{key:"_handleKeyboard",value:function _handleKeyboard(e){var _this6=this;_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.handleKey(e,'OffCanvas',{close:function close(){_this6.close();_this6.$lastTrigger.focus();return true;},handled:function handled(){e.preventDefault();}});}},{key:"_destroy",value:function _destroy(){this.close();this.$element.off('.zf.trigger .zf.offCanvas');this.$overlay.off('.zf.offCanvas');if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);OffCanvas.defaults={closeOnClick:true,contentOverlay:true,contentId:null,nested:null,contentScroll:true,transitionTime:null,transition:'push',forceTo:null,isRevealed:false,revealOn:null,inCanvasOn:null,autoFocus:true,revealClass:'reveal-for-',trapFocus:false};}),
vendor: 6,032 bytes, line 7
7"./js/foundation.orbit.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Orbit:function(){return Orbit;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_util_timer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.timer.js");var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.imageLoader.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./js/foundation.util.touch.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Orbit=function(_Plugin){function Orbit(){_classCallCheck(this,Orbit);return _callSuper(this,Orbit,arguments);}_inherits(Orbit,_Plugin);return _createClass(Orbit,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Orbit.defaults,this.$element.data(),options);this.className='Orbit';_foundation_util_touch__WEBPACK_IMPORTED_MODULE_7__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Orbit',{'ltr':{'ARROW_RIGHT':'next','ARROW_LEFT':'previous'},'rtl':{'ARROW_LEFT':'next','ARROW_RIGHT':'previous'}});}},{key:"_init",value:function _init(){this._reset();this.$wrapper=this.$element.find(".".concat(this.options.containerClass));this.$slides=this.$element.find(".".concat(this.options.slideClass));var $images=this.$element.find('img'),initActive=this.$slides.filter('.is-active'),id=this.$element[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_5__.GetYoDigits)(6,'orbit');this.$element.attr({'data-resize':id,'id':id});if(!initActive.length)this.$slides.eq(0).addClass('is-active');if(!this.options.useMUI)this.$slides.addClass('no-motionui');if($images.length)(0,_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__.onImagesLoaded)($images,this._prepareForOrbit.bind(this));else this._prepareForOrbit();if(this.options.bullets)this._loadBullets();this._events();if(this.options.autoPlay&&this.$slides.length>1)this.geoSync();if(this.options.accessible)this.$wrapper.attr('tabindex',0);}},{key:"_loadBullets",value:function _loadBullets(){this.$bullets=this.$element.find(".".concat(this.options.boxOfBullets)).find('button');}},{key:"geoSync",value:function geoSync(){var _this=this;this.timer=new _foundation_util_timer__WEBPACK_IMPORTED_MODULE_3__.Timer(this.$element,{duration:this.options.timerDelay,infinite:false},function(){_this.changeSlide(true);});this.timer.start();}},{key:"_prepareForOrbit",value:function _prepareForOrbit(){this._setWrapperHeight();}},{key:"_setWrapperHeight",value:function _setWrapperHeight(cb){var max=0,temp,counter=0,_this=this;this.$slides.each(function(){temp=this.getBoundingClientRect().height;jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('data-sli
7de',counter);if(!/mui/g.test(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)[0].className)&&_this.$slides.filter('.is-active')[0]!==_this.$slides.eq(counter)[0])jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).css({'display':'none'});max=temp>max?temp:max;counter++;});if(counter===this.$slides.length){this.$wrapper.css({'height':max});if(cb)cb(max);}}},{key:"_setSlideHeight",value:function _setSlideHeight(height){this.$slides.each(function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).css('max-height',height);});}},{key:"_events",value:function _events(){var _this=this;this.$element.off('.resizeme.zf.trigger').on({'resizeme.zf.trigger':this._prepareForOrbit.bind(this)});if(this.$slides.length>1){if(this.options.swipe)this.$slides.off('swipeleft.zf.orbit swiperight.zf.orbit').on('swipeleft.zf.orbit',function(e){e.preventDefault();_this.changeSlide(true);}).on('swiperight.zf.orbit',function(e){e.preventDefault();_this.changeSlide(false);});if(this.options.autoPlay){this.$slides.on('click.zf.orbit',function(){_this.$element.data('clickedOn',_this.$element.data('clickedOn')?false:true);_this.timer[_this.$element.data('clickedOn')?'pause':'start']();});if(this.options.pauseOnHover)this.$element.on('mouseenter.zf.orbit',function(){_this.timer.pause();}).on('mouseleave.zf.orbit',function(){if(!_this.$element.data('clickedOn'))_this.timer.start();});}if(this.options.navButtons){var $controls=this.$element.find(".".concat(this.options.nextClass,", .").concat(this.options.prevClass));$controls.attr('tabindex',0).on('click.zf.orbit touchend.zf.orbit',function(e){e.preventDefault();_this.changeSlide(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).hasClass(_this.options.nextClass));});}if(this.options.bullets)this.$bullets.on('click.zf.orbit touchend.zf.orbit',function(){if(/is-active/g.test(this.className))return false;var idx=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('slide'),ltr=idx>_this.$slides.filter('.is-active').data('slide'),$slide=_this.$slides.eq(idx);_this.changeSlide(ltr,$slide,idx);});if(this.options.accessible)this.$wrapper.add(this.$bullets).on('keydown.zf.orbit',function(e){_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e,'Orbit',{next:function next(){_this.changeSlide(true);},previous:function previous(){_this.changeSlide(false);},handled:function handled(){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).is(_this.$bullets))_this.$bullets.filter('.is-active').focus();}});});}}},{key:"_reset",value:function _reset(){if(typeof this.$slides==='undefined')return;if(this.$slides.length>1){this.$element.off('.zf.orbit').find('*').off('.zf.orbit');if(this.options.autoPlay)this.timer.restart();this.$slides.each(function(el){jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).removeClass('is-active is-active is-in').removeAttr('aria-live').hide();});this.$slides.first().addClass('is-active').show();this.$element.trigger('slidechange.zf.orbit',[this.$slides.first()]);if(this.options.bullets)this._updateBullets(0);}}},{key:"changeSlide",value:function changeSlide(isLTR,chosenSlide,idx){if(!this.$slides)return;var $curSlide=this.$slides.filter('.is-active').eq(0);if(/mui/g.test($curSlide[0].className))return false;var $firstSlide=this.$slides.first(),$lastSlide=this.$slides.last(),dirIn=isLTR?'Right':'Left',dirOut=isLTR?'Left':'Right',_this=this,$newSlide;if(!chosenSlide)$newSlide=isLTR?this.options.infiniteWrap?$curSlide.next(".".concat(this.options.slideClass)).length?$curSlide.next(".".concat(this.options.slideClass)):$firstSlide:$curSlide.next(".".concat(this.options.slideClass)):this.options.infiniteWrap?$curSlide.prev(".".concat(this.options.slideClass)).length?$curSlide.prev(".".concat(this.options.slideClass)):$lastSlide:$curSlide.prev(".".concat(this.options.slideClass));else $newSlide=chosenSlide;if($newSlide.length){this.$element.trigger('beforeslidechange.zf.orbit',[$curSlide,$newSlide]);if(this.options.bullets){idx=idx||this.$slides.index($newSlide);this._updateBullets(idx);}if(this.options.useMUI&&!this.$element.is(':hidden')){_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateIn($newSlide.addClass('is-active'),this.options["animInFrom".concat(dirIn)],function(){$newSlide.css({'display':'block'}).attr('aria-live','polite');});_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut($curSlide.removeClass('is-active'),this.options["animOutTo".concat(dirOut)],function(){$curSlide.removeAttr('aria-live');if(_this.options.autoPlay&&!_this.timer.isPaused)_this.timer.restart();});}else{$curSlide.removeClass('is-active is-in').removeAttr('aria-live').hide();$newSlide.addClass('is-active is-in').attr('aria-live','polite').show();if(this.options.autoPlay&&!this.timer.isPaused)this.timer.restart();}this.$element.trigger('slidechange.zf.orbit',[$newSlide]);}}},{key:"_updateBullets",value:function _updateBullets(idx){var $oldBullet=this.$bullets.filter('.is-active');var $othersBullets=this.$bullets.not('.is-active');var $newBullet=this.$bullets.eq(idx);$oldBullet.removeClass('is-active').blur();$newBullet.addClass('is-active');
vendor: 14,858 bytes, line 7
7var activeStateDescriptor=$oldBullet.children('[data-slide-active-label]').last();if(!activeStateDescriptor.length){var spans=$oldBullet.children('span');var spanCountInOthersBullets=$othersBullets.toArray().map(function(b){return jquery__WEBPACK_IMPORTED_MODULE_0___default()(b).children('span').length;});if(spanCountInOthersBullets.every(function(count){return count<spans.length;})){activeStateDescriptor=spans.last();activeStateDescriptor.attr('data-slide-active-label','');}}if(activeStateDescriptor.length){activeStateDescriptor.detach();$newBullet.append(activeStateDescriptor);}}},{key:"_destroy",value:function _destroy(){this.$element.off('.zf.orbit').find('*').off('.zf.orbit').end().hide();}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin);Orbit.defaults={bullets:true,navButtons:true,animInFromRight:'slide-in-right',animOutToRight:'slide-out-right',animInFromLeft:'slide-in-left',animOutToLeft:'slide-out-left',autoPlay:true,timerDelay:5000,infiniteWrap:true,swipe:true,pauseOnHover:true,accessible:true,containerClass:'orbit-container',slideClass:'orbit-slide',boxOfBullets:'orbit-bullets',nextClass:'orbit-next',prevClass:'orbit-previous',useMUI:true};}),"./js/foundation.positionable.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Positionable:function(){return Positionable;}});var _foundation_util_box__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./js/foundation.util.box.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var POSITIONS=['left','right','top','bottom'];var VERTICAL_ALIGNMENTS=['top','bottom','center'];var HORIZONTAL_ALIGNMENTS=['left','right','center'];var ALIGNMENTS={'left':VERTICAL_ALIGNMENTS,'right':VERTICAL_ALIGNMENTS,'top':HORIZONTAL_ALIGNMENTS,'bottom':HORIZONTAL_ALIGNMENTS};function nextItem(item,array){var currentIdx=array.indexOf(item);if(currentIdx===array.length-1)return array[0];else return array[currentIdx+1];}var Positionable=function(_Plugin){function Positionable(){_classCallCheck(this,Positionable);return _callSuper(this,Positionable,arguments);}_inherits(Positionable,_Plugin);return _createClass(Positionable,[{key:"_init",value:function _init(){this.triedPositions={};this.position=this.options.position==='auto'?this._getDefaultPosition():this.options.position;this.alignment=this.options.alignment==='auto'?this._getDefaultAlignment():this.options.alignment;this.originalPosition=this.position;this.originalAlignment=this.alignment;}},{key:"_getDefaultPosition",value:function _getDefaultPosition(){return 'bottom';}},{key:"_getDefaultAlignment",value:function _getDefaultAlignment(){switch(this.position){case 'bottom':case 'top':return (0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.rtl)()?'right':'left';case 'left':case 'right':return 'bottom';}}},{key:"_reposition",value:function _reposition(){if(this._alignmentsExhausted(this.position)){this.position=nextItem(this.position,POSITIONS);this.alignment=ALIGNMENTS[this.position][0];}else this._realign();}},{key:"_realign",value:function _realign(){this._addTriedPosition(this.position,this.alignment);this.alignment=nextItem(this.alignment,ALIGNMENTS[this.position]);}},{key:"_addTriedPosition",value:function _addTriedPosition(position,alignment){this.triedPositions[position]=this.triedPositions[position]||[];this.triedPositions[position].push(alignment);}},{key:"_positionsExhausted",value:function _positionsExhausted(){var isExhausted=true;for(var i=0;i<POSITIONS.length;i++)isExhausted=isExhausted&&this._alignmentsExhausted(POSITIONS[i]);return isExhausted;}},{key:"_alignmentsExhausted",value:function _alignmentsExhausted(position){return this.triedPositions[position]&&this.triedPositions[position].length===ALIGNMENTS[position].length;}},{key:"_getVOffset",value:function _getVOffset(){return this.options.vOffset;}},{key:"_getHOffset",value:function _getHOffset(){return this.options.hOffset;}},{key:"_setPosition",value:function _setPosition($anchor,$element,$parent){if($anchor.attr('aria-expanded')==='false')return false;if(!this.options.allowOverlap){this.position=this.originalPosition;this.alignment=this.originalAlignment;}$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));if(!this.options.allowOverlap){var minOverlap=100000000;var minCoordinates={position:this.position,alignment:this.alignment};while(!this._positionsExhausted()){var overlap=_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.OverlapArea($element,$parent,false,false,this.options.allowBottomOverlap);if(overlap===0)return;if(overlap<minOverlap){minOverlap=overlap;minCoordinates={position:this.position,alignment:this.alignment};}this._reposition();$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));}this.position=minCoordinates.position;this.alignment=minCoordinates.alignment;$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__.Box.GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));}}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Positionable.defaults={position:'auto',alignment:'auto',allowOverlap:false,allowBottomOverlap:true,vOffset:0,hOffset:0};}),"./js/foundation.responsiveAccordionTabs.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{ResponsiveAccordionTabs:function(){return ResponsiveAccordionTabs;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_accordion__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.accordion.js");var _foundation_tabs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.tabs.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var MenuPlugins={tabs:{cssClass:'tabs',plugin:_foundation_tabs__WEBPACK_IMPORTED_MODULE_5__.Tabs,open:function open(plugin,target){return plugin.selectTab(target);},close:null,toggle:null},accordion:{cssClass:'accordion',plugin:_foundation_accordion__WEBPACK_IMPORTED_MODULE_4__.Accordion,open:function open(plugin,target){return plugin.down(jquery__WEBPACK_IMPORTED_MODULE_0___default()(target));},close:function close(plugin,target){return plugin.up(jquery__WEBPACK_IMPORTED_MODULE_0___default()(target));},toggle:function toggle(plugin,target){return plugin.toggle(jquery__WEBPACK_IMPORTED_MODULE_0___default()(target));}}};var ResponsiveAccordionTabs=function(_Plugin){function ResponsiveAccordionTabs(element,options){var _this2;_classCallCheck(this,ResponsiveAccordionTabs);_this2=_callSuper(this,ResponsiveAccordionTabs,[element,options]);return _possibleConstructorReturn(_this2,_this2.options.reflow&&_this2.storezfData||_this2);}_inherits(ResponsiveAccordionTabs,_Plugin);return _createClass(ResponsiveAccordionTabs,[{key:"_setup",value:function _setup(element,options){this.$element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(element);this.$element.data('zfPluginBase',this);this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},ResponsiveAccordionTabs.defaults,this.$element.data(),options);this.rules=this.$element.data('responsive-accordion-tabs');this.currentMq=null;this.currentRule=null;this.currentPlugin=null;this.className='ResponsiveAccordionTabs';if(!this.$element.attr('id'))this.$element.attr('id',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'responsiveaccordiontabs'));this._init();this._events();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();if(typeof this.rules==='string'){var rulesTree={};var rules=this.rules.split(' ');for(var i=0;i<rules.length;i++){var rule=rules[i].split('-');var ruleSize=rule.length>1?rule[0]:'small';var rulePlugin=rule.length>1?rule[1]:rule[0];if(MenuPlugins[rulePlugin]!==null)rulesTree[ruleSize]=MenuPlugins[rulePlugin];}this.rules=rulesTree;}this._getAllOptions();if(!jquery__WEBPACK_IMPORTED_MODULE_0___default().isEmptyObject(this.rules))this._checkMediaQueries();}},{key:"_getAllOptions",value:function _getAllOptions(){var _this=this;_this.allOptions={};for(var key in MenuPlugins)if(MenuPlugins.hasOwnProperty(key)){var obj=MenuPlugins[key];try{var dummyPlugin=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<ul></ul>');var tmpPlugin=new obj.plugin(dummyPlugin,_this.options);for(var keyKey in tmpPlugin.options)if(tmpPlugin.options.hasOwnProperty(keyKey)&&keyKey!=='zfPlugin'){var objObj=tmpPlugin.options[keyKey];_this.allOptions[keyKey]=objObj;}tmpPlugin.destroy();}catch(e){console.warn("Warning: Problems getting Accordion/Tab options: ".concat(e));}}}},{key:"_events",value:function _events(){this._changedZfMediaQueryHandler=this._checkMediaQueries.bind(this);jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._changedZfMediaQueryHandler);}},{key:"_checkMediaQueries",value:function _checkMediaQueries(){var matchedMq,_this=this;
7jquery__WEBPACK_IMPORTED_MODULE_0___default().each(this.rules,function(key){if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.atLeast(key))matchedMq=key;});if(!matchedMq)return;if(this.currentPlugin instanceof this.rules[matchedMq].plugin)return;jquery__WEBPACK_IMPORTED_MODULE_0___default().each(MenuPlugins,function(key,value){_this.$element.removeClass(value.cssClass);});this.$element.addClass(this.rules[matchedMq].cssClass);if(this.currentPlugin){if(!this.currentPlugin.$element.data('zfPlugin')&&this.storezfData)this.currentPlugin.$element.data('zfPlugin',this.storezfData);this.currentPlugin.destroy();}this._handleMarkup(this.rules[matchedMq].cssClass);this.currentRule=this.rules[matchedMq];this.currentPlugin=new this.currentRule.plugin(this.$element,this.options);this.storezfData=this.currentPlugin.$element.data('zfPlugin');}},{key:"_handleMarkup",value:function _handleMarkup(toSet){var _this=this,fromString='accordion';var $panels=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-tabs-content='+this.$element.attr('id')+']');if($panels.length)fromString='tabs';if(fromString===toSet)return;var tabsTitle=_this.allOptions.linkClass?_this.allOptions.linkClass:'tabs-title';var tabsPanel=_this.allOptions.panelClass?_this.allOptions.panelClass:'tabs-panel';this.$element.removeAttr('role');var $liHeads=this.$element.children('.'+tabsTitle+',[data-accordion-item]').removeClass(tabsTitle).removeClass('accordion-item').removeAttr('data-accordion-item');var $liHeadsA=$liHeads.children('a').removeClass('accordion-title');if(fromString==='tabs'){$panels=$panels.children('.'+tabsPanel).removeClass(tabsPanel).removeAttr('role').removeAttr('aria-hidden').removeAttr('aria-labelledby');$panels.children('a').removeAttr('role').removeAttr('aria-controls').removeAttr('aria-selected');}else $panels=$liHeads.children('[data-tab-content]').removeClass('accordion-content');$panels.css({display:'',visibility:''});$liHeads.css({display:'',visibility:''});if(toSet==='accordion')$panels.each(function(key,value){jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).appendTo($liHeads.get(key)).addClass('accordion-content').attr('data-tab-content','').removeClass('is-active').css({height:''});jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-tabs-content='+_this.$element.attr('id')+']').after('<div id="tabs-placeholder-'+_this.$element.attr('id')+'"></div>').detach();$liHeads.addClass('accordion-item').attr('data-accordion-item','');$liHeadsA.addClass('accordion-title');});else{if(toSet==='tabs'){var $tabsContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-tabs-content='+_this.$element.attr('id')+']');var $placeholder=jquery__WEBPACK_IMPORTED_MODULE_0___default()('#tabs-placeholder-'+_this.$element.attr('id'));if($placeholder.length){$tabsContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="tabs-content"></div>').insertAfter($placeholder).attr('data-tabs-content',_this.$element.attr('id'));$placeholder.remove();}else $tabsContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="tabs-content"></div>').insertAfter(_this.$element).attr('data-tabs-content',_this.$element.attr('id'));$panels.each(function(key,value){var tempValue=jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).appendTo($tabsContent).addClass(tabsPanel);var hash=$liHeadsA.get(key).hash.slice(1);var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'accordion');if(hash!==id)if(hash!=='')jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id',hash);else{hash=id;jquery__WEBPACK_IMPORTED_MODULE_0___default()(value).attr('id',hash);jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeadsA.get(key)).attr('href',jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeadsA.get(key)).attr('href').replace('#','')+'#'+hash);}var isActive=jquery__WEBPACK_IMPORTED_MODULE_0___default()($liHeads.get(key)).hasClass('is-active');if(isActive)tempValue.addClass('is-active');});$liHeads.addClass(tabsTitle);}};}},{key:"open",value:function open(){if(this.currentRule&&typeof this.currentRule.open==='function'){var _this$currentRule;return (_this$currentRule=this.currentRule).open.apply(_this$currentRule,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)));}}},{key:"close",value:function close(){if(this.currentRule&&typeof this.currentRule.close==='function'){var _this$currentRule2;return (_this$currentRule2=this.currentRule).close.apply(_this$currentRule2,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)));}}}
vendor: 18,872 bytes, line 7
7,{key:"toggle",value:function toggle(){if(this.currentRule&&typeof this.currentRule.toggle==='function'){var _this$currentRule3;return (_this$currentRule3=this.currentRule).toggle.apply(_this$currentRule3,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)));}}},{key:"_destroy",value:function _destroy(){if(this.currentPlugin)this.currentPlugin.destroy();jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery',this._changedZfMediaQueryHandler);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__.Plugin);ResponsiveAccordionTabs.defaults={};}),"./js/foundation.responsiveMenu.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{ResponsiveMenu:function(){return ResponsiveMenu;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_dropdownMenu__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.dropdownMenu.js");var _foundation_drilldown__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.drilldown.js");var _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.accordionMenu.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var MenuPlugins={dropdown:{cssClass:'dropdown',plugin:_foundation_dropdownMenu__WEBPACK_IMPORTED_MODULE_4__.DropdownMenu},drilldown:{cssClass:'drilldown',plugin:_foundation_drilldown__WEBPACK_IMPORTED_MODULE_5__.Drilldown},accordion:{cssClass:'accordion-menu',plugin:_foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_6__.AccordionMenu}};var ResponsiveMenu=function(_Plugin){function ResponsiveMenu(){_classCallCheck(this,ResponsiveMenu);return _callSuper(this,ResponsiveMenu,arguments);}_inherits(ResponsiveMenu,_Plugin);return _createClass(ResponsiveMenu,[{key:"_setup",value:function _setup(element){this.$element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(element);this.rules=this.$element.data('responsive-menu');this.currentMq=null;this.currentPlugin=null;this.className='ResponsiveMenu';this._init();this._events();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();if(typeof this.rules==='string'){var rulesTree={};var rules=this.rules.split(' ');for(var i=0;i<rules.length;i++){var rule=rules[i].split('-');var ruleSize=rule.length>1?rule[0]:'small';var rulePlugin=rule.length>1?rule[1]:rule[0];if(MenuPlugins[rulePlugin]!==null)rulesTree[ruleSize]=MenuPlugins[rulePlugin];}this.rules=rulesTree;}if(!jquery__WEBPACK_IMPORTED_MODULE_0___default().isEmptyObject(this.rules))this._checkMediaQueries();this.$element.attr('data-mutate',this.$element.attr('data-mutate')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'responsive-menu'));}},{key:"_events",value:function _events(){var _this=this;jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',function(){_this._checkMediaQueries();});}},{key:"_checkMediaQueries",value:function _checkMediaQueries(){var matchedMq,_this=this;jquery__WEBPACK_IMPORTED_MODULE_0___default().each(this.rules,function(key){if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.atLeast(key))matchedMq=key;});if(!matchedMq)return;if(this.currentPlugin instanceof this.rules[matchedMq].plugin)return;jquery__WEBPACK_IMPORTED_MODULE_0___default().each(MenuPlugins,function(key,value){_this.$element.removeClass(value.cssClass);});this.$element.addClass(this.rules[matchedMq].cssClass);if(this.currentPlugin)this.currentPlugin.destroy();this.currentPlugin=new this.rules[matchedMq].plugin(this.$element,{});}},{key:"_destroy",value:function _destroy(){this.currentPlugin.destroy();jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('.zf.ResponsiveMenu');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__.Plugin);ResponsiveMenu.defaults={};}),"./js/foundation.responsiveToggle.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{ResponsiveToggle:function(){return ResponsiveToggle;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.plugin.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var ResponsiveToggle=function(_Plugin){function ResponsiveToggle(){_classCallCheck(this,ResponsiveToggle);return _callSuper(this,ResponsiveToggle,arguments);}_inherits(ResponsiveToggle,_Plugin);return _createClass(ResponsiveToggle,[{key:"_setup",value:function _setup(element,options){this.$element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(element);this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},ResponsiveToggle.defaults,this.$element.data(),options);this.className='ResponsiveToggle';this._init();this._events();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery._init();var targetID=this.$element.data('responsive-toggle');if(!targetID)console.error('Your tab bar needs an ID of a Menu as the value of data-tab-bar.');this.$targetMenu=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetID));this.$toggler=this.$element.find('[data-toggle]').filter(function(){var target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');return target===targetID||target==="";});this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},this.options,this.$targetMenu.data());if(this.options.animate){var input=this.options.animate.split(' ');this.animationIn=input[0];this.animationOut=input[1]||null;}this._update();}},{key:"_events",value:function _events(){this._updateMqHandler=this._update.bind(this);jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._updateMqHandler);this.$toggler.on('click.zf.responsiveToggle',this.toggleMenu.bind(this));}},{key:"_update",value:function _update(){if(!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.atLeast(this.options.hideFor)){this.$element.show();this.$targetMenu.hide();}else{this.$element.hide();this.$targetMenu.show();}}},{key:"toggleMenu",value:function toggleMenu(){var _this=this;if(!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__.MediaQuery.atLeast(this.options.hideFor))if(this.options.animate)if(this.$targetMenu.is(':hidden'))_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateIn(this.$targetMenu,this.animationIn,function(){_this.$element.trigger('toggled.zf.responsiveToggle');_this.$targetMenu.find('[data-mutate]').triggerHandler('mutateme.zf.trigger');});else _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(this.$targetMenu,this.animationOut,function(){_this.$element.trigger('toggled.zf.responsiveToggle');});else{this.$targetMenu.toggle(0);this.$targetMenu.find('[data-mutate]').trigger('mutateme.zf.trigger');this.$element.trigger('toggled.zf.responsiveToggle');}}},{key:"_destroy",value:function _destroy(){this.$element.off('.zf.responsiveToggle');this.$toggler.off('.zf.responsiveToggle');jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery',this._updateMqHandler);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_3__.Plugin);ResponsiveToggle.defaults={hideFor:'medium',animate:false};}),"./js/foundation.reveal.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Reveal:function(){return Reveal;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.util.triggers.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./js/foundation.util.touch.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Reveal=function(_Plugin){function Reveal(){_classCallCheck(this,Reveal);return _callSuper(this,Reveal,arguments);}_inherits(Reveal,_Plugin);return _createClass(Reveal,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Reveal.defaults,this.$element.data(),options);this.className='Reveal';this._init();_foundation_util_touch__WEBPACK_IMPORTED_MODULE_7__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_6__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.register('Reveal',{'ESCAPE':'close'});}},{key:"_init",value:function _init(){var _this2=this;_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery._init();this.id=this.$element.attr('id');this.isActive=false;this.cached={mq:_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_4__.MediaQuery.current};this.$anchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(this.id,"\"]")).length?jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(this.id,"\"]")):jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-toggle=\"".concat(this.id,"\"]"));this.$anchor.attr({'aria-controls':this.id,'aria-haspopup':'dialog','tabindex':0});if(this.options.fullScreen||this.$element.hasClass('full')){this.options.fullScreen=true;this.options.overlay=false;}if(this.options.overlay&&!this.$overlay)this.$overlay=this._makeOverlay(this.id);this.$element.attr({'role':'dialog','aria-hidden':true,'data-yeti-box':this.id,'data-resize':this.id});if(this.$overlay)this.$element.detach().appendTo(this.$overlay);else{this.$element.detach().appendTo(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.appendTo));this.$element.addClass('without-overlay');}this._events();if(this.options.deepLink&&window.location.hash==="#".concat(this.id
7))this.onLoadListener=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){return _this2.open();});}},{key:"_makeOverlay",value:function _makeOverlay(){var additionalOverlayClasses='';if(this.options.additionalOverlayClasses)additionalOverlayClasses=' '+this.options.additionalOverlayClasses;return jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div></div>').addClass('reveal-overlay'+additionalOverlayClasses).appendTo(this.options.appendTo);}},{key:"_updatePosition",value:function _updatePosition(){var width=this.$element.outerWidth();var outerWidth=jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).width();var height=this.$element.outerHeight();var outerHeight=jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height();var left,top=null;if(this.options.hOffset==='auto')left=parseInt((outerWidth-width)/2,10);else left=parseInt(this.options.hOffset,10);if(this.options.vOffset==='auto')if(height>outerHeight)top=parseInt(Math.min(100,outerHeight/10),10);else top=parseInt((outerHeight-height)/4,10);else{if(this.options.vOffset!==null)top=parseInt(this.options.vOffset,10);}if(top!==null)this.$element.css({top:top+'px'});if(!this.$overlay||this.options.hOffset!=='auto'){this.$element.css({left:left+'px'});this.$element.css({margin:'0px'});}}},{key:"_events",value:function _events(){var _this3=this;var _this=this;this.$element.on({'open.zf.trigger':this.open.bind(this),'close.zf.trigger':function closeZfTrigger(event,$element){if(event.target===_this.$element[0]||jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).parents('[data-closable]')[0]===$element)return _this3.close.apply(_this3);},'toggle.zf.trigger':this.toggle.bind(this),'resizeme.zf.trigger':function resizemeZfTrigger(){_this._updatePosition();}});if(this.options.closeOnClick&&this.options.overlay)this.$overlay.off('.zf.reveal').on('click.zf.dropdown tap.zf.dropdown',function(e){if(e.target===_this.$element[0]||jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0],e.target)||!jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(document,e.target))return;_this.close();});if(this.options.deepLink)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on("hashchange.zf.reveal:".concat(this.id),this._handleState.bind(this));}},{key:"_handleState",value:function _handleState(){if(window.location.hash==='#'+this.id&&!this.isActive)this.open();else this.close();}},{key:"_disableScroll",value:function _disableScroll(scrollTop){scrollTop=scrollTop||jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop();if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height()>jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height())jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top",-scrollTop);}},{key:"_enableScroll",value:function _enableScroll(scrollTop){scrollTop=scrollTop||parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"),10);if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height()>jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height()){jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top","");jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop(-scrollTop);}}},{key:"open",value:function open(){var _this4=this;var hash="#".concat(this.id);if(this.options.deepLink&&window.location.hash!==hash)if(window.history.pushState)if(this.options.updateHistory)window.history.pushState({},'',hash);else window.history.replaceState({},'',hash);else window.location.hash=hash;this.$activeAnchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.activeElement).is(this.$anchor)?jquery__WEBPACK_IMPORTED_MODULE_0___default()(document.activeElement):this.$anchor;this.isActive=true;this.$element.css({'visibility':'hidden'}).show().scrollTop(0);if(this.options.overlay)this.$overlay.css({'visibility':'hidden'}).show();this._updatePosition();this.$element.hide().css({'visibility':''});if(this.$overlay){this.$overlay.css({'visibility':''}).hide();if(this.$element.hasClass('fast'))this.$overlay.addClass('fast');else{if(this.$element.hasClass('slow'))this.$overlay.addClass('slow');}}if(!this.options.multipleOpened)this.$element.trigger('closeme.zf.reveal',this.id);if(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length===0)this._disableScroll();var _this=this;if(this.options.animationIn){var afterAnimation=function afterAnimation(){_this.$element.attr({'aria-hidden':false,'tabindex':-1}).focus();_this._addGlobalClasses();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.trapFocus(_this.$element);};
7if(this.options.overlay)_foundation_util_motion__WEBPACK_IMPORTED_MODULE_5__.Motion.animateIn(this.$overlay,'fade-in');_foundation_util_motion__WEBPACK_IMPORTED_MODULE_5__.Motion.animateIn(this.$element,this.options.animationIn,function(){if(_this4.$element){_this4.focusableElements=_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.findFocusable(_this4.$element);afterAnimation();}});}else{if(this.options.overlay)this.$overlay.show(0);this.$element.show(this.options.showDelay);}this.$element.attr({'aria-hidden':false,'tabindex':-1}).focus();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.trapFocus(this.$element);this._addGlobalClasses();this._addGlobalListeners();this.$element.trigger('open.zf.reveal');}},{key:"_addGlobalClasses",value:function _addGlobalClasses(){var updateScrollbarClass=function updateScrollbarClass(){jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').toggleClass('zf-has-scroll',!!(jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).height()>jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).height()));};this.$element.on('resizeme.zf.trigger.revealScrollbarListener',function(){return updateScrollbarClass();});updateScrollbarClass();jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').addClass('is-reveal-open');}},{key:"_removeGlobalClasses",value:function _removeGlobalClasses(){this.$element.off('resizeme.zf.trigger.revealScrollbarListener');jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').removeClass('is-reveal-open');jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').removeClass('zf-has-scroll');}},{key:"_addGlobalListeners",value:function _addGlobalListeners(){var _this=this;if(!this.$element)return;this.focusableElements=_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.findFocusable(this.$element);if(!this.options.overlay&&this.options.closeOnClick&&!this.options.fullScreen)jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click.zf.dropdown tap.zf.dropdown',function(e){if(e.target===_this.$element[0]||jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(_this.$element[0],e.target)||!jquery__WEBPACK_IMPORTED_MODULE_0___default().contains(document,e.target))return;_this.close();});if(this.options.closeOnEsc)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('keydown.zf.reveal',function(e){_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.handleKey(e,'Reveal',{close:function close(){if(_this.options.closeOnEsc)_this.close();}});});}},{key:"close",value:function close(){if(!this.isActive||!this.$element.is(':visible'))return false;var _this=this;if(this.options.animationOut){if(this.options.overlay)_foundation_util_motion__WEBPACK_IMPORTED_MODULE_5__.Motion.animateOut(this.$overlay,'fade-out');_foundation_util_motion__WEBPACK_IMPORTED_MODULE_5__.Motion.animateOut(this.$element,this.options.animationOut,finishUp);}else{this.$element.hide(this.options.hideDelay);if(this.options.overlay)this.$overlay.hide(0,finishUp);else finishUp();}if(this.options.closeOnEsc)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('keydown.zf.reveal');if(!this.options.overlay&&this.options.closeOnClick)jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('click.zf.dropdown tap.zf.dropdown');this.$element.off('keydown.zf.reveal');function finishUp(){var scrollTop=parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()("html").css("top"),10);if(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length===0)_this._removeGlobalClasses();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.releaseFocus(_this.$element);_this.$element.attr('aria-hidden',true);if(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length===0)_this._enableScroll(scrollTop);_this.$element.trigger('closed.zf.reveal');}if(this.options.resetOnClose)this.$element.html(this.$element.html());this.isActive=false;if(_this.options.deepLink&&window.location.hash==="#".concat(this.id))if(window.history.replaceState){var urlWithoutHash=window.location.pathname+window.location.search;if(this.options.updateHistory)window.history.pushState({},'',urlWithoutHash);else window.history.replaceState('',document.title,urlWithoutHash);}else window.location.hash='';this.$activeAnchor.focus();}}
7,{key:"toggle",value:function toggle(){if(this.isActive)this.close();else this.open();}},{key:"_destroy",value:function _destroy(){if(this.options.overlay){this.$element.appendTo(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.appendTo));this.$overlay.hide().off().remove();}this.$element.hide().off();this.$anchor.off('.zf');jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(".zf.reveal:".concat(this.id));if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);if(jquery__WEBPACK_IMPORTED_MODULE_0___default()('.reveal:visible').length===0)this._removeGlobalClasses();}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Reveal.defaults={animationIn:'',animationOut:'',showDelay:0,hideDelay:0,closeOnClick:true,closeOnEsc:true,multipleOpened:false,vOffset:'auto',hOffset:'auto',fullScreen:false,overlay:true,resetOnClose:false,deepLink:false,updateHistory:false,appendTo:"body",additionalOverlayClasses:''};}),
vendor: 10,361 bytes, line 7
7"./js/foundation.slider.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Slider:function(){return Slider;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.touch.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Slider=function(_Plugin){function Slider(){_classCallCheck(this,Slider);return _callSuper(this,Slider,arguments);}_inherits(Slider,_Plugin);return _createClass(Slider,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Slider.defaults,this.$element.data(),options);this.className='Slider';this.initialized=false;_foundation_util_touch__WEBPACK_IMPORTED_MODULE_5__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_6__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.register('Slider',{'ltr':{'ARROW_RIGHT':'increase','ARROW_UP':'increase','ARROW_DOWN':'decrease','ARROW_LEFT':'decrease','SHIFT_ARROW_RIGHT':'increaseFast','SHIFT_ARROW_UP':'increaseFast','SHIFT_ARROW_DOWN':'decreaseFast','SHIFT_ARROW_LEFT':'decreaseFast','HOME':'min','END':'max'},'rtl':{'ARROW_LEFT':'increase','ARROW_RIGHT':'decrease','SHIFT_ARROW_LEFT':'increaseFast','SHIFT_ARROW_RIGHT':'decreaseFast'}});}},{key:"_init",value:function _init(){this.inputs=this.$element.find('input');this.handles=this.$element.find('[data-slider-handle]');this.$handle=this.handles.eq(0);this.$input=this.inputs.length?this.inputs.eq(0):jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(this.$handle.attr('aria-controls')));this.$fill=this.$element.find('[data-slider-fill]').css(this.options.vertical?'height':'width',0);if(this.options.disabled||this.$element.hasClass(this.options.disabledClass)){this.options.disabled=true;this.$element.addClass(this.options.disabledClass);}if(!this.inputs.length){this.inputs=jquery__WEBPACK_IMPORTED_MODULE_0___default()().add(this.$input);this.options.binding=true;}this._setInitAttr(0);if(this.handles[1]){this.options.doubleSided=true;this.$handle2=this.handles.eq(1);this.$input2=this.inputs.length>1?this.inputs.eq(1):jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(this.$handle2.attr('aria-controls')));if(!this.inputs[1])this.inputs=this.inputs.add(this.$input2);this._setInitAttr(1);}this.setHandles();this._events();this.initialized=true;}},{key:"setHandles",value:function setHandles(){var _this2=this;if(this.handles[1])this._setHandlePos(this.$handle,this.inputs.eq(0).val(),function(){_this2._setHandlePos(_this2.$handle2,_this2.inputs.eq(1).val());});else this._setHandlePos(this.$handle,this.inputs.eq(0).val());}},{key:"_reflow",value:function _reflow(){this.setHandles();}},{key:"_pctOfBar",value:function _pctOfBar(value){var pctOfBar=percent(value-this.options.start,this.options.end-this.options.start);switch(this.options.positionValueFunction){case "pow":pctOfBar=this._logTransform(pctOfBar);break;case "log":pctOfBar=this._powTransform(pctOfBar);break;}return pctOfBar.toFixed(2);}},{key:"_value",value:function _value(pctOfBar){switch(this.options.positionValueFunction){case "pow":pctOfBar=this._powTransform(pctOfBar);break;case "log":pctOfBar=this._logTransform(pctOfBar);break;}var value;if(this.options.vertical)value=parseFloat(this.options.end)+pctOfBar*(this.options.start-this.options.end);else value=(this.options.end-this.options.start)*pctOfBar+parseFloat(this.options.start);return value;}},{key:"_logTransform",value:function _logTransform(value){return baseLog(this.options.nonLinearBase,value*(this.options.nonLinearBase-1)+1);}},{key:"_powTransform",value:function _powTransform(value){return (Math.pow(this.options.nonLinearBase,value)-1)/(this.options.nonLinearBase-1);}},{key:"_setHandlePos",value:function _setHandlePos($hndl,location,cb){if(this.$element.hasClass(this.options.disabledClass))return;location=parseFloat(location);if(location<this.options.start)location=this.options.start;else{if(location>this.options.end)location=this.options.end;}var isDbl=this.options.doubleSided;if(isDbl)if(this.handles.index($hndl)===0){var h2Val=parseFloat(this.$handle2.attr('aria-valuenow'));location=location>=h2Val?h2Val-this.options.step:location;}else{var h1Val=parseFloat(this.$handle.attr('aria-valuenow'));location=location<=h1Val?h1Val+this.options.step:location;}var _this=this,vert=this.options.vertical,hOrW=vert?'height':'width',lOrT=vert?'top':'left',handleDim=$hndl[0].getBoundingClientRect()[hOrW],elemDim=this.$element[0].getBoundingClientRect()[hOrW],pctOfBar=this._pctOfBar(location),pxToMove=(elemDim-handleDim)*pctOfBar,movement=(percent(pxToMove,elemDim)*100).toFixed(this.options.decimal);location=parseFloat(location.toFixed(this.options.decimal));var css={};this._setValues($hndl,location);if(isDbl){var isLeftHndl=this.handles.index($hndl)===0,dim,handlePct=Math.floor(percent(handleDim,elemDim)*100);if(isLeftHndl){css[lOrT]="".concat(movement,"%");dim=parseFloat(this.$handle2[0].style[lOrT])-movement+handlePct;if(cb&&typeof cb==='function')cb();}else{var handlePos=parseFloat(this.$handle[0].style[lOrT]);dim=movement-(isNaN(handlePos)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):handlePos)+handlePct;}css["min-".concat(hOrW)]="".concat(dim,"%");}var moveTime=this.$element.data('dragging')?1000/60:this.options.moveTime;(0,_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Move)(moveTime,$hndl,function(){if(isNaN(movement))$hndl.css(lOrT,"".concat(pctOfBar*100,"%"));else $hndl.css(lOrT,"".concat(movement,"%"));if(!_this.options.doubleSided)_this.$fill.css(hOrW,"".concat(pctOfBar*100,"%"));else _this.$fill.css(css);});if(this.initialized){this.$element.one('finished.zf.animate',function(){_this.$element.trigger('moved.zf.slider',[$hndl]);});clearTimeout(_this.timeout);_this.timeout=setTimeout(function(){_this.$element.trigger('changed.zf.slider',[$hndl]);},_this.options.changedDelay);}}},{key:"_setInitAttr",value:function _setInitAttr(idx){var initVal=idx===0?this.options.initialStart:this.options.initialEnd;var id=this.inputs.eq(idx).attr('id')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.GetYoDigits)(6,'slider');this.inputs.eq(idx).attr({'id':id,'max':this.options.end,'min':this.options.start,'step':this.options.step});this.inputs.eq(idx).val(initVal);this.handles.eq(idx).attr({'role':'slider','aria-controls':id,'aria-valuemax':this.options.end,'aria-valuemin':this.options.start,'aria-valuenow':initVal,'aria-orientation':this.options.vertical?'vertical':'horizontal','tabindex':0});}},{key:"_setValues",value:function _setValues($handle,val){var idx=this.options.doubleSided?this.handles.index($handle):0;this.inputs.eq(idx).val(val);$handle.attr('aria-valuenow',val);}},{key:"_handleEvent",value:function _handleEvent(e,$handle,val){var value;if(!val){e.preventDefault();var _this=this,vertical=this.options.vertical,param=vertical?'he
7ight':'width',direction=vertical?'top':'left',eventOffset=vertical?e.pageY:e.pageX,barDim=this.$element[0].getBoundingClientRect()[param],windowScroll=vertical?jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollTop():jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).scrollLeft();var elemOffset=this.$element.offset()[direction];if(e.clientY===e.pageY)eventOffset=eventOffset+windowScroll;var eventFromBar=eventOffset-elemOffset;var barXY;if(eventFromBar<0)barXY=0;else if(eventFromBar>barDim)barXY=barDim;else barXY=eventFromBar;var offsetPct=percent(barXY,barDim);value=this._value(offsetPct);if((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.rtl)()&&!this.options.vertical)value=this.options.end-value;value=_this._adjustValue(null,value);if(!$handle){var firstHndlPos=absPosition(this.$handle,direction,barXY,param),secndHndlPos=absPosition(this.$handle2,direction,barXY,param);$handle=firstHndlPos<=secndHndlPos?this.$handle:this.$handle2;}}else value=this._adjustValue(null,val);this._setHandlePos($handle,value);}},{key:"_adjustValue",value:function _adjustValue($handle,value){var val,step=this.options.step,div=parseFloat(step/2),left,previousVal,nextVal;if(!!$handle)val=parseFloat($handle.attr('aria-valuenow'));else val=value;if(val>=0)left=val%step;else left=step+val%step;previousVal=val-left;nextVal=previousVal+step;if(left===0)return val;val=val>=previousVal+div?nextVal:previousVal;return val;}},{key:"_events",value:function _events(){this._eventsForHandle(this.$handle);if(this.handles[1])this._eventsForHandle(this.$handle2);}},{key:"_eventsForHandle",value:function _eventsForHandle($handle){var _this=this,curHandle;var handleChangeEvent=function handleChangeEvent(e){var idx=_this.inputs.index(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));_this._handleEvent(e,_this.handles.eq(idx),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val());};this.inputs.off('keyup.zf.slider').on('keyup.zf.slider',function(e){if(e.keyCode===13)handleChangeEvent.call(this,e);});this.inputs.off('change.zf.slider').on('change.zf.slider',handleChangeEvent);if(this.options.clickSelect)this.$element.off('click.zf.slider').on('click.zf.slider',function(e){if(_this.$element.data('dragging'))return false;if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target).is('[data-slider-handle]'))if(_this.options.doubleSided)_this._handleEvent(e);else _this._handleEvent(e,_this.$handle);});if(this.options.draggable){this.handles.addTouch();var $body=jquery__WEBPACK_IMPORTED_MODULE_0___default()('body');$handle.off('mousedown.zf.slider').on('mousedown.zf.slider',function(e){$handle.addClass('is-dragging');_this.$fill.addClass('is-dragging');_this.$element.data('dragging',true);curHandle=jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget);$body.on('mousemove.zf.slider',function(ev){ev.preventDefault();_this._handleEvent(ev,curHandle);}).on('mouseup.zf.slider',function(ev){_this._handleEvent(ev,curHandle);$handle.removeClass('is-dragging');_this.$fill.removeClass('is-dragging');_this.$element.data('dragging',false);$body.off('mousemove.zf.slider mouseup.zf.slider');});}).on('selectstart.zf.slider touchmove.zf.slider',function(e){e.preventDefault();});}$handle.off('keydown.zf.slider').on('keydown.zf.slider',function(e){var _$handle=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),idx=_this.options.doubleSided?_this.handles.index(_$handle):0,oldValue=parseFloat($handle.attr('aria-valuenow')),newValue;_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__.Keyboard.handleKey(e,'Slider',{decrease:function decrease(){newValue=oldValue-_this.options.step;},increase:function increase(){newValue=oldValue+_this.options.step;},decreaseFast:function decreaseFast(){newValue=oldValue-_this.options.step*10;},increaseFast:function increaseFast(){newValue=oldValue+_this.options.step*10;},min:function min(){newValue=_this.options.start;},max:function max(){newValue=_this.options.end;},handled:function handled(){e.preventDefault();_this._setHandlePos(_$handle,newValue);}});});}},{key:"_destroy",value:function _destroy(){this.handles.off('.zf.slider');this.inputs.off('.zf.slider');this.$element.off('.zf.slider');clearTimeout(this.timeout);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_4__.Plugin);Slider.defaults={start:0,end:100,step:1,initialStart:0,initialEnd:100,binding:false,clickSelect:true,vertical:false,draggable:true,disabled:false,doubleSided:false,decimal:2,moveTime:200,disabledClass:'disabled',invertVertical:false,changedDelay:500,nonLinearBase:5,positionValueFunction:'linear'};function percent(frac,num){return frac/num;}function absPosition($handle,dir,clickPos,param){return Math.abs($handle.position()[dir]+$handle[param]()/2-clickPos);}function baseLog(base,value){return Math.log(value)/Math.log(base);}}),
vendor: 12,261 bytes, line 7
7"./js/foundation.smoothScroll.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{SmoothScroll:function(){return SmoothScroll;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.plugin.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var SmoothScroll=function(_Plugin){function SmoothScroll(){_classCallCheck(this,SmoothScroll);return _callSuper(this,SmoothScroll,arguments);}_inherits(SmoothScroll,_Plugin);return _createClass(SmoothScroll,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},SmoothScroll.defaults,this.$element.data(),options);this.className='SmoothScroll';this._init();}},{key:"_init",value:function _init(){var id=this.$element[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6,'smooth-scroll');this.$element.attr({id});this._events();}},{key:"_events",value:function _events(){this._linkClickListener=this._handleLinkClick.bind(this);this.$element.on('click.zf.smoothScroll',this._linkClickListener);this.$element.on('click.zf.smoothScroll','a[href^="#"]',this._linkClickListener);}},{key:"_handleLinkClick",value:function _handleLinkClick(e){var _this=this;if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget).is('a[href^="#"]'))return;var arrival=e.currentTarget.getAttribute('href');this._inTransition=true;SmoothScroll.scrollToLoc(arrival,this.options,function(){_this._inTransition=false;});e.preventDefault();}},{key:"_destroy",value:function _destroy(){this.$element.off('click.zf.smoothScroll',this._linkClickListener);this.$element.off('click.zf.smoothScroll','a[href^="#"]',this._linkClickListener);}}],[{key:"scrollToLoc",value:function scrollToLoc(loc){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:SmoothScroll.defaults;var callback=arguments.length>2?arguments[2]:undefined;var $loc=jquery__WEBPACK_IMPORTED_MODULE_0___default()(loc);if(!$loc.length)return false;var scrollPos=Math.round($loc.offset().top-options.threshold/2-options.offset);jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').stop(true).animate({scrollTop:scrollPos},options.animationDuration,options.animationEasing,function(){if(typeof callback==='function')callback();});}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.Plugin);SmoothScroll.defaults={animationDuration:500,animationEasing:'linear',threshold:50,offset:0};}),"./js/foundation.sticky.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Sticky:function(){return Sticky;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Sticky=function(_Plugin){function Sticky(){_classCallCheck(this,Sticky);return _callSuper(this,Sticky,arguments);}_inherits(Sticky,_Plugin);return _createClass(Sticky,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Sticky.defaults,this.$element.data(),options);this.className='Sticky';_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__.MediaQuery._init();var $parent=this.$element.parent('[data-sticky-container]'),id=this.$element[0].id||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits)(6,'sticky'),_this=this;if($parent.length)this.$container=$parent;else{this.wasWrapped=true;this.$element.wrap(this.options.container);this.$container=this.$element.parent();}this.$container.addClass(this.options.containerClass);this.$element.addClass(this.options.stickyClass).attr({'data-resize':id,'data-mutate':id});if(this.options.anchor!=='')jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+_this.options.anchor).attr({'data-mutate':id});this.scrollCount=this.options.checkEvery;this.isStuck=false;this.onLoadListener=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){_this.containerHeight=_this.$element.css("display")==="none"?0:_this.$element[0].getBoundingClientRect().height;_this.$container.css('height',_this.containerHeight);_this.elemHeight=_this.containerHeight;if(_this.options.anchor!=='')_this.$anchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+_this.options.anchor);else _this._parsePoints();_this._setSizes(function(){var scroll=window.pageYOffset;_this._calc(false,scroll);if(!_this.isStuck)_this._removeSticky(scroll>=_this.topPoint?false:true);});_this._events(id.split('-').reverse().join('-'));});}},{key:"_parsePoints",value:function _parsePoints(){var top=this.options.topAnchor===""?1:this.options.topAnchor,btm=this.options.btmAnchor===""?document.documentElement.scrollHeight:this.options.btmAnchor,pts=[top,btm],breaks={};for(var i=0,len=pts.length;i<len&&pts[i];i++){var pt;if(typeof pts[i]==='number')pt=pts[i];else{var place=pts[i].split(':'),anchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(place[0]));pt=anchor.offset().top;if(place[1]&&place[1].toLowerCase()==='bottom')pt+=anchor[0].getBoundingClientRect().height;}breaks[i]=pt;}this.points=breaks;return;}},{key:"_events",value:function _events(id){var _this=this,scrollListener=this.scrollListener="scroll.zf.".concat(id);if(this.isOn)return;if(this.canStick){this.isOn=true;jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener).on(scrollListener,function(){if(_this.scrollCount===0){_this.scrollCount=_this.options.checkEvery;_this._setSizes(function(){_this._calc(false,window.pageYOffset);});}else{_this.scrollCount--;_this._calc(false,window.pageYOffset);}});}this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger',function(){_this._eventsHandler(id);});this.$element.on('mutateme.zf.trigger',function(){_this._eventsHandler(id);});if(this.$anchor)this.$anchor.on('mutateme.zf.trigger',function(){_this._eventsHandler(id);});}},{key:"_eventsHandler",value:function _eventsHandler(id){var _this=this,scrollListener=this.scrollListener="scroll.zf.".concat(id);_this._setSizes(function(){_this._calc(false);
7if(_this.canStick){if(!_this.isOn)_this._events(id);}else{if(_this.isOn)_this._pauseListeners(scrollListener);}});}},{key:"_pauseListeners",value:function _pauseListeners(scrollListener){this.isOn=false;jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener);this.$element.trigger('pause.zf.sticky');}},{key:"_calc",value:function _calc(checkSizes,scroll){if(checkSizes)this._setSizes();if(!this.canStick){if(this.isStuck)this._removeSticky(true);return false;}if(!scroll)scroll=window.pageYOffset;if(scroll>=this.topPoint)if(scroll<=this.bottomPoint){if(!this.isStuck)this._setSticky();}else{if(this.isStuck)this._removeSticky(false);}else{if(this.isStuck)this._removeSticky(true);}}},{key:"_setSticky",value:function _setSticky(){var _this=this,stickTo=this.options.stickTo,mrgn=stickTo==='top'?'marginTop':'marginBottom',notStuckTo=stickTo==='top'?'bottom':'top',css={};css[mrgn]="".concat(this.options[mrgn],"em");css[stickTo]=0;css[notStuckTo]='auto';this.isStuck=true;this.$element.removeClass("is-anchored is-at-".concat(notStuckTo)).addClass("is-stuck is-at-".concat(stickTo)).css(css).trigger("sticky.zf.stuckto:".concat(stickTo));this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){_this._setSizes();});}},{key:"_removeSticky",value:function _removeSticky(isTop){var stickTo=this.options.stickTo,stickToTop=stickTo==='top',css={},anchorPt=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,mrgn=stickToTop?'marginTop':'marginBottom',topOrBottom=isTop?'top':'bottom';css[mrgn]=0;css.bottom='auto';if(isTop)css.top=0;else css.top=anchorPt;this.isStuck=false;this.$element.removeClass("is-stuck is-at-".concat(stickTo)).addClass("is-anchored is-at-".concat(topOrBottom)).css(css).trigger("sticky.zf.unstuckfrom:".concat(topOrBottom));}},{key:"_setSizes",value:function _setSizes(cb){this.canStick=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__.MediaQuery.is(this.options.stickyOn);if(!this.canStick)if(cb&&typeof cb==='function')cb();var newElemWidth=this.$container[0].getBoundingClientRect().width,comp=window.getComputedStyle(this.$container[0]),pdngl=parseInt(comp['padding-left'],10),pdngr=parseInt(comp['padding-right'],10);if(this.$anchor&&this.$anchor.length)this.anchorHeight=this.$anchor[0].getBoundingClientRect().height;else this._parsePoints();this.$element.css({'max-width':"".concat(newElemWidth-pdngl-pdngr,"px")});if(this.options.dynamicHeight||!this.containerHeight){var newContainerHeight=this.$element[0].getBoundingClientRect().height||this.containerHeight;newContainerHeight=this.$element.css("display")==="none"?0:newContainerHeight;this.$container.css('height',newContainerHeight);this.containerHeight=newContainerHeight;}this.elemHeight=this.containerHeight;if(!this.isStuck)if(this.$element.hasClass('is-at-bottom')){var anchorPt=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight;this.$element.css('top',anchorPt);}this._setBreakPoints(this.containerHeight,function(){if(cb&&typeof cb==='function')cb();});}},{key:"_setBreakPoints",value:function _setBreakPoints(elemHeight,cb){if(!this.canStick)if(cb&&typeof cb==='function')cb();else return false;var mTop=emCalc(this.options.marginTop),mBtm=emCalc(this.options.marginBottom),topPoint=this.points?this.points[0]:this.$anchor.offset().top,bottomPoint=this.points?this.points[1]:topPoint+this.anchorHeight,winHeight=window.innerHeight;if(this.options.stickTo==='top'){topPoint-=mTop;bottomPoint-=elemHeight+mTop;}else if(this.options.stickTo==='bottom'){topPoint-=winHeight-(elemHeight+mBtm);bottomPoint-=winHeight-mBtm;}else{}this.topPoint=topPoint;this.bottomPoint=bottomPoint;if(cb&&typeof cb==='function')cb();}},{key:"_destroy",value:function _destroy(){this._removeSticky(true);this.$element.removeClass("".concat(this.options.stickyClass," is-anchored is-at-top")).css({height:'',top:'',bottom:'','max-width':''}).off('resizeme.zf.trigger').off('mutateme.zf.trigger');if(this.$anchor&&this.$anchor.length)this.$anchor.off('change.zf.sticky');if(this.scrollListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.scrollListener);if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);if(this.wasWrapped)this.$element.unwrap();else this.$container.removeClass(this.options.containerClass).css({height:''});}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Sticky.defaults={container:'<div data-sticky-container></div>',stickTo:'top',anchor:'',topAnchor:'',btmAnchor:'',marginTop:1,marginBottom:1,stickyOn:'medium',stickyClass:'sticky',containerClass:'sticky-container',dynamicHeight:true,checkEvery:-1};function emCalc(em){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*em;}}),
vendor: 25,922 bytes, line 7
7"./js/foundation.tabs.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Tabs:function(){return Tabs;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.imageLoader.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Tabs=function(_Plugin){function Tabs(){_classCallCheck(this,Tabs);return _callSuper(this,Tabs,arguments);}_inherits(Tabs,_Plugin);return _createClass(Tabs,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Tabs.defaults,this.$element.data(),options);this.className='Tabs';this._init();_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.register('Tabs',{'ENTER':'open','SPACE':'open','ARROW_RIGHT':'next','ARROW_UP':'previous','ARROW_DOWN':'next','ARROW_LEFT':'previous'});}},{key:"_init",value:function _init(){var _this2=this;var _this=this;this._isInitializing=true;this.$element.attr({'role':'tablist'});this.$tabTitles=this.$element.find(".".concat(this.options.linkClass));this.$tabContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-tabs-content=\"".concat(this.$element[0].id,"\"]"));this.$tabTitles.each(function(){var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$link=$elem.find('a'),isActive=$elem.hasClass("".concat(_this.options.linkActiveClass)),hash=$link.attr('data-tabs-target')||$link[0].hash.slice(1),linkId=$link[0].id?$link[0].id:"".concat(hash,"-label"),$tabContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(hash));$elem.attr({'role':'presentation'});$link.attr({'role':'tab','aria-controls':hash,'aria-selected':isActive,'id':linkId,'tabindex':isActive?'0':'-1'});$tabContent.attr({'role':'tabpanel','aria-labelledby':linkId});if(isActive)_this._initialAnchor="#".concat(hash);if(!isActive)$tabContent.attr('aria-hidden','true');if(isActive&&_this.options.autoFocus)_this.onLoadListener=(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({scrollTop:$elem.offset().top},_this.options.deepLinkSmudgeDelay,function(){$link.focus();});});});if(this.options.matchHeight){var $images=this.$tabContent.find('img');if($images.length)(0,_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__.onImagesLoaded)($images,this._setHeight.bind(this));else this._setHeight();}this._checkDeepLink=function(){var anchor=window.location.hash;if(!anchor.length){if(_this2._isInitializing)return;if(_this2._initialAnchor)anchor=_this2._initialAnchor;}var anchorNoHash=anchor.indexOf('#')>=0?anchor.slice(1):anchor;var $anchor=anchorNoHash&&jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(anchorNoHash));var $link=anchor&&_this2.$element.find("[href$=\"".concat(anchor,"\"],[data-tabs-target=\"").concat(anchorNoHash,"\"]")).first();var isOwnAnchor=!!($anchor.length&&$link.length);if(isOwnAnchor){if($anchor&&$anchor.length&&$link&&$link.length)_this2.selectTab($anchor,true);else _this2._collapse();if(_this2.options.deepLinkSmudge){var offset=_this2.$element.offset();jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({scrollTop:offset.top-_this2.options.deepLinkSmudgeOffset},_this2.options.deepLinkSmudgeDelay);}_this2.$element.trigger('deeplink.zf.tabs',[$link,$anchor]);}};if(this.options.deepLink)this._checkDeepLink();this._events();this._isInitializing=false;}},{key:"_events",value:function _events(){this._addKeyHandler();this._addClickHandler();this._setHeightMqHandler=null;if(this.options.matchHeight){this._setHeightMqHandler=this._setHeight.bind(this);jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._setHeightMqHandler);}if(this.options.deepLink)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._checkDeepLink);}},{key:"_addClickHandler",value:function _addClickHandler(){var _this=this;this.$element.off('click.zf.tabs').on('click.zf.tabs',".".concat(this.options.linkClass),function(e){e.preventDefault();_this._handleTabChange(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));});}},{key:"_addKeyHandler",value:function _addKeyHandler(){var _this=this;this.$tabTitles.off('keydown.zf.tabs').on('keydown.zf.tabs',function(e){if(e.which===9)return;var $element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$elements=$element.parent('ul').children('li'),$prevElement,$nextElement;$elements.each(function(i){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)){if(_this.options.wrapOnKeys){$prevElement=i===0?$elements.last():$elements.eq(i-1);$nextElement=i===$elements.length-1?$elements.first():$elements.eq(i+1);}else{$prevElement=$elements.eq(Math.max(0,i-1));$nextElement=$elements.eq(Math.min(i+1,$elements.length-1));}return;}});_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_3__.Keyboard.handleKey(e,'Tabs',{open:function open(){$element.find('[role="tab"]').focus();_this._handleTabChange($element);},previous:function previous(){$prevElement.find('[role="tab"]').focus();_this._handleTabChange($prevElement);},next:function next(){$nextElement.find('[role="tab"]').focus();_this._handleTabChange($nextElement);},handled:function handled(){e.preventDefault();}});});}},{key:"_handleTabChange",value:function _handleTabChange($target,historyHandled){if($target.hasClass("".concat(this.options.linkActiveClass))){if(this.options.activeCollapse)this._collapse();return;}var $oldTab=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass)),$tabLink=$target.find('[role="tab"]'),target=$tabLink.attr('data-tabs-target'),anchor=target&&target.length?"#".concat(target):$tabLink[0].hash,$targetContent=this.$tabContent.find(anchor);this._collapseTab($oldTab);this._openTab($target);if(this.options.deepLink&&!historyHandled)if(this.options.updateHistory)history.pushState({},'',location.pathname+location.search+anchor);else history.replaceState({},'',location.pathname+location.search+anchor);this.$element.trigger('change.zf.tabs',[$target,$targetContent]);$targetContent.find("[data-mutate]").trigger("mutateme.zf.trigger");}},{key:"_openTab",value:function _openTab($target){var $tabLink=$target.find('[role="tab"]'),hash=$tabLink.attr('data-tabs-target')||$tabLink[0].hash.slice(1),$targetContent=this.$tabContent.find("#".concat(hash));$target.addClass("".concat(this.options.linkActiveClass));$tabLink.attr({'aria-selected':'true','tabindex':'0'});$targetContent.addClass("".concat(this.options.panelActiveClass)).removeAttr('aria-hidden');}},{key:"_collapseTab",value:function _collapseTab($target){var $targetAnchor=$target.removeClass("".concat(this.options.linkActiveClass)).find('[role="tab"]').attr({'aria-selected':'false','tabindex':-1});jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat($targetAnchor.attr('aria-controls'))).removeClass("".concat(this.options.panelActiveClass)).attr({'aria-hidden':'true'});}},{key:"_collapse",value:function _collapse(){var $activeTab=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass));if($activeTab.length){this._collapseTab($activeTab);this.$element.trigger('collapse.zf.tabs',[$activeTab]);}}},{key:"selectTab",value:function selectTab(elem,historyHandled){var idStr,hashIdStr;if(_typeof(elem)==='object')idStr=elem[0].id;else idStr=elem;if(idStr.indexOf('#')<0)hashIdStr="#".concat(idStr);else{hashIdStr=idStr;idStr=idStr.slice(1);}var $target=this.$tabTitles.has("[href$=\"".concat(hashIdStr,"\"],[data-tabs-target=\"").concat(idStr,"\"]")).first();this._handleTabChange($target,historyHandled);}},{key:"_setHeight",value:function _setHeight(){var max=0,_this=this;if(!this.$tabContent)return;this.$tabContent.find(".".concat(this.options.panelClass)).css('min-height','').each(function(){var panel=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),isActive=panel.hasClass("".concat(_this.options.panelActiveClass));if(!isActive)panel.css({'visibility':'hidden','display':'block'});var temp=this.getBoundingClientRect().height;if(!isActive)panel.css({'visibility':'','display':''});max=temp>max?temp:max;}).css('min-height',"".concat(max,"px"));}},{key:"_destroy",value:function _destroy(){this.$element.find(".".concat(this.options.linkClass)).off('.zf.tabs').hide().end().find(".".concat(this.options.panelClass)).hide();if(this.options.matchHeight)if(this._setHeightMqHandler!=null)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery',this._setHeightMqHandler);if(this.options.deepLink)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._checkDeepLink);if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__.Plugin);Tabs.defaults={deepLink:false,deepLinkSmudge:false,deepLinkSmudgeDelay:300,deepLinkSmudgeOffset:0,updateHistory:false,autoFocus:false,wrapOnKeys:true,matchHeight:false,activeCollapse:false,linkClass:'tabs-title',linkActiveClass:'is-active',panelClass:'tabs-panel',panelActiveClass:'is-active'};}),"./js/foundation.toggler.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Toggler:function(){return Toggler;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.plugin.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Toggler=function(_Plugin){function Toggler(){_classCallCheck(this,Toggler);return _callSuper(this,Toggler,arguments);}_inherits(Toggler,_Plugin);return _createClass(Toggler,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Toggler.defaults,element.data(),options);this.className='';this.className='Toggler';_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();this._events();}},{key:"_init",value:function _init(){var id=this.$element[0].id,$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open~=\"".concat(id,"\"], [data-close~=\"").concat(id,"\"], [data-toggle~=\"").concat(id,"\"]"));var input;if(this.options.animate){input=this.options.animate.split(' ');this.animationIn=input[0];this.animationOut=input[1]||null;$triggers.attr('aria-expanded',!this.$element.is(':hidden'));}else{input=this.options.toggler;if(typeof input!=='string'||!input.length)throw new Error("The 'toggler' option containing the target class is required, got \"".concat(input,"\""));this.className=input[0]==='.'?input.slice(1):input;$triggers.attr('aria-expanded',this.$element.hasClass(this.className));}$triggers.each(function(index,trigger){var $trigger=jquery__WEBPACK_IMPORTED_MODULE_0___default()(trigger);var controls=$trigger.attr('aria-controls')||'';var containsId=new RegExp("\\b".concat((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__.RegExpEscape)(id),"\\b")).test(controls);if(!containsId)$trigger.attr('aria-controls',controls?"".concat(controls," ").concat(id):id);});}},{key:"_events",value:function _events(){this.$element.off('toggle.zf.trigger').on('toggle.zf.trigger',this.toggle.bind(this));}},{key:"toggle",value:function toggle(){this[this.options.animate?'_toggleAnimate':'_toggleClass']();}},{key:"_toggleClass",value:function _toggleClass(){this.$element.toggleClass(this.className);var isOn=this.$element.hasClass(this.className);if(isOn)this.$element.trigger('on.zf.toggler');else this.$element.trigger('off.zf.toggler');this._updateARIA(isOn);this.$element.find('[data-mutate]').trigger('mutateme.zf.trigger');}},{key:"_toggleAnimate",value:function _toggleAnimate(){var _this=this;if(this.$element.is(':hidden'))_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__.Motion.animateIn(this.$element,this.animationIn,function(){_this._updateARIA(true);this.trigger('on.zf.toggler');this.find('[data-mutate]').trigger('mutateme.zf.trigger');});else _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__.Motion.animateOut(this.$element,this.animationOut,function(){_this._updateARIA(false);this.trigger('off.zf.toggler');this.find('[data-mutate]').trigger('mutateme.zf.trigger');});}},{key:"_updateARIA",value:function _updateARIA(isOn){var id=this.$element[0].id;jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(id,"\"], [data-close=\"").concat(id,"\"], [data-toggle=\"").concat(id,"\"]")).attr({'aria-expanded':isOn?true:false});}},{key:"_destroy",value:function _destroy(){this.$element.off('.zf.toggler');}}]);}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__.Plugin);Toggler.defaults={toggler:undefined,animate:false};}),"./js/foundation.tooltip.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Tooltip:function(){return Tooltip;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.triggers.js");var _foundation_positionable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.positionable.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return (_isNativeReflectConstruct=function _isNativeReflectConstruct(){return !!t;})();}function _superPropGet(t,e,o,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),e,o);return 2&r&&"function"==typeof p?function(t){return p.apply(o,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}var Tooltip=function(_Positionable){function Tooltip(){_classCallCheck(this,Tooltip);return _callSuper(this,Tooltip,arguments);}_inherits(Tooltip,_Positionable);return _createClass(Tooltip,[{key:"_setup",value:function _setup(element,options){this.$element=element;this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},Tooltip.defaults,this.$element.data(),options);this.className='Tooltip';this.isActive=false;this.isClick=false;_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));this._init();}},{key:"_init",value:function _init(){_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery._init();var elemId=this.$element.attr('aria-describedby')||(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.GetYoDigits)(6,'tooltip');this.options.tipText=this.options.tipText||this.$element.attr('title');this.template=this.options.template?jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.template):this._buildTemplate(elemId);if(this.options.allowHtml)this.template.appendTo(document.body).html(this.options.tipText).hide();else this.template.appendTo(document.body).text(this.options.tipText).hide();this.$element.attr({'title':'','aria-describedby':elemId,'data-yeti-box':elemId,'data-toggle':elemId,'data-resize':elemId}).addClass(this.options.triggerClass);_superPropGet(Tooltip,"_init",this,3)([]);this._events();}},{key:"_getDefaultPosition",value:function _getDefaultPosition(){var elementClassName=this.$element[0].className;if(this.$element[0] instanceof SVGElement)elementClassName=elementClassName.baseVal;var position=elementClassName.match(/\b(top|left|right|bottom)\b/g);return position?position[0]:'top';}},{key:"_getDefaultAlignment",value:function _getDefaultAlignment(){return 'center';}},{key:"_getHOffset",value:function _getHOffset(){if(this.position==='left'||this.position==='right')return this.options.hOffset+this.options.tooltipWidth;else return this.options.hOffset;}},{key:"_getVOffset",value:function _getVOffset(){if(this.position==='top'||this.position==='bottom')return this.options.vOffset+this.options.tooltipHeight;else return this.options.vOffset;}},{key:"_buildTemplate",value:function _buildTemplate(id){var templateClasses="".concat(this.options.tooltipClass," ").concat(this.options.templateClasses).trim();var $template=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div></div>').addClass(templateClasses).attr({'role':'tooltip','aria-hidden':true,'data-is-active':false,'data-is-focus':false,'id':id});return $template;}},{key:"_setPosition",value:function _setPosition(){_superPropGet(Tooltip,"_setPosition",this,3)([this.$element,this.template]);}},{key:"show",value:function show(){if(this.options.showOn!=='all'&&!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__.MediaQuery.is(this.options.showOn))return false;var _this=this;this.template.css('visibility','hidden').show();this._setPosition();this.template.removeClass('top bottom left right').addClass(this.position);this.template.removeClass('align-top align-bottom align-left align-right al
7ign-center').addClass('align-'+this.alignment);this.$element.trigger('closeme.zf.tooltip',this.template.attr('id'));this.template.attr({'data-is-active':true,'aria-hidden':false});_this.isActive=true;this.template.stop().hide().css('visibility','').fadeIn(this.options.fadeInDuration,function(){});this.$element.trigger('show.zf.tooltip');}},{key:"hide",value:function hide(){var _this=this;this.template.stop().attr({'aria-hidden':true,'data-is-active':false}).fadeOut(this.options.fadeOutDuration,function(){_this.isActive=false;_this.isClick=false;});this.$element.trigger('hide.zf.tooltip');}},{key:"_events",value:function _events(){var _this=this;var hasTouch='ontouchstart' in window||typeof window.ontouchstart!=='undefined';var isFocus=false;if(hasTouch&&this.options.disableForTouch)return;if(!this.options.disableHover)this.$element.on('mouseenter.zf.tooltip',function(){if(!_this.isActive)_this.timeout=setTimeout(function(){_this.show();},_this.options.hoverDelay);}).on('mouseleave.zf.tooltip',(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.ignoreMousedisappear)(function(){clearTimeout(_this.timeout);if(!isFocus||_this.isClick&&!_this.options.clickOpen)_this.hide();}));if(hasTouch)this.$element.on('tap.zf.tooltip touchend.zf.tooltip',function(){_this.isActive?_this.hide():_this.show();});if(this.options.clickOpen)this.$element.on('mousedown.zf.tooltip',function(){if(_this.isClick){}else{_this.isClick=true;if((_this.options.disableHover||!_this.$element.attr('tabindex'))&&!_this.isActive)_this.show();}});else this.$element.on('mousedown.zf.tooltip',function(){_this.isClick=true;});this.$element.on({'close.zf.trigger':this.hide.bind(this)});this.$element.on('focus.zf.tooltip',function(){isFocus=true;if(_this.isClick){if(!_this.options.clickOpen)isFocus=false;return false;}else _this.show();}).on('focusout.zf.tooltip',function(){isFocus=false;_this.isClick=false;_this.hide();}).on('resizeme.zf.trigger',function(){if(_this.isActive)_this._setPosition();});}},{key:"toggle",value:function toggle(){if(this.isActive)this.hide();else this.show();}},{key:"_destroy",value:function _destroy(){this.$element.attr('title',this.template.text()).off('.zf.trigger .zf.tooltip').removeClass(this.options.triggerClass).removeClass('top right left bottom').removeAttr('aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box');this.template.remove();}}]);}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__.Positionable);Tooltip.defaults={hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:false,disableForTouch:false,templateClasses:'',tooltipClass:'tooltip',triggerClass:'has-tip',showOn:'small',template:'',tipText:'',touchCloseText:'Tap to close.',clickOpen:true,position:'auto',alignment:'auto',allowOverlap:false,allowBottomOverlap:false,vOffset:0,hOffset:0,tooltipHeight:14,tooltipWidth:12,allowHtml:false};}),
vendor: 4,305 bytes, line 7
7"./js/foundation.util.box.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Box:function(){return Box;}});var Box={ImNotTouchingYou,OverlapArea,GetDimensions,GetExplicitOffsets};function ImNotTouchingYou(element,parent,lrOnly,tbOnly,ignoreBottom){return OverlapArea(element,parent,lrOnly,tbOnly,ignoreBottom)===0;}function OverlapArea(element,parent,lrOnly,tbOnly,ignoreBottom){var eleDims=GetDimensions(element),topOver,bottomOver,leftOver,rightOver;if(parent){var parDims=GetDimensions(parent);bottomOver=parDims.height+parDims.offset.top-(eleDims.offset.top+eleDims.height);topOver=eleDims.offset.top-parDims.offset.top;leftOver=eleDims.offset.left-parDims.offset.left;rightOver=parDims.width+parDims.offset.left-(eleDims.offset.left+eleDims.width);}else{bottomOver=eleDims.windowDims.height+eleDims.windowDims.offset.top-(eleDims.offset.top+eleDims.height);topOver=eleDims.offset.top-eleDims.windowDims.offset.top;leftOver=eleDims.offset.left-eleDims.windowDims.offset.left;rightOver=eleDims.windowDims.width-(eleDims.offset.left+eleDims.width);}bottomOver=ignoreBottom?0:Math.min(bottomOver,0);topOver=Math.min(topOver,0);leftOver=Math.min(leftOver,0);rightOver=Math.min(rightOver,0);if(lrOnly)return leftOver+rightOver;if(tbOnly)return topOver+bottomOver;return Math.sqrt(topOver*topOver+bottomOver*bottomOver+leftOver*leftOver+rightOver*rightOver);}function GetDimensions(elem){elem=elem.length?elem[0]:elem;if(elem===window||elem===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var rect=elem.getBoundingClientRect(),parRect=elem.parentNode.getBoundingClientRect(),winRect=document.body.getBoundingClientRect(),winY=window.pageYOffset,winX=window.pageXOffset;return {width:rect.width,height:rect.height,offset:{top:rect.top+winY,left:rect.left+winX},parentDims:{width:parRect.width,height:parRect.height,offset:{top:parRect.top+winY,left:parRect.left+winX}},windowDims:{width:winRect.width,height:winRect.height,offset:{top:winY,left:winX}}};}function GetExplicitOffsets(element,anchor,position,alignment,vOffset,hOffset,isOverflow){var $eleDims=GetDimensions(element),$anchorDims=anchor?GetDimensions(anchor):null;var topVal,leftVal;if($anchorDims!==null){switch(position){case 'top':topVal=$anchorDims.offset.top-($eleDims.height+vOffset);break;case 'bottom':topVal=$anchorDims.offset.top+$anchorDims.height+vOffset;break;case 'left':leftVal=$anchorDims.offset.left-($eleDims.width+hOffset);break;case 'right':leftVal=$anchorDims.offset.left+$anchorDims.width+hOffset;break;}switch(position){case 'top':case 'bottom':switch(alignment){case 'left':leftVal=$anchorDims.offset.left+hOffset;break;case 'right':leftVal=$anchorDims.offset.left-$eleDims.width+$anchorDims.width-hOffset;break;case 'center':leftVal=isOverflow?hOffset:$anchorDims.offset.left+$anchorDims.width/2-$eleDims.width/2+hOffset;break;}break;case 'right':case 'left':switch(alignment){case 'bottom':topVal=$anchorDims.offset.top-vOffset+$anchorDims.height-$eleDims.height;break;case 'top':topVal=$anchorDims.offset.top+vOffset;break;case 'center':topVal=$anchorDims.offset.top+vOffset+$anchorDims.height/2-$eleDims.height/2;break;}break;}}return {top:topVal,left:leftVal};}}),"./js/foundation.util.imageLoader.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{onImagesLoaded:function(){return onImagesLoaded;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);function onImagesLoaded(images,callback){var unloaded=images.length;if(unloaded===0)callback();images.each(function(){if(this.complete&&typeof this.naturalWidth!=='undefined')singleImageLoaded();else{var image=new Image();var events="load.zf.images error.zf.images";jquery__WEBPACK_IMPORTED_MODULE_0___default()(image).one(events,function me(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off(events,me);singleImageLoaded();});image.src=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('src');}});function singleImageLoaded(){unloaded--;if(unloaded===0)callback();}}}),
7"./js/foundation.util.keyboard.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Keyboard:function(){return Keyboard;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var keyCodes={9:'TAB',13:'ENTER',27:'ESCAPE',32:'SPACE',35:'END',36:'HOME',37:'ARROW_LEFT',38:'ARROW_UP',39:'ARROW_RIGHT',40:'ARROW_DOWN'};var commands={};function findFocusable($element){if(!$element)return false;return $element.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]').filter(function(){if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':visible')||jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('tabindex')<0)return false;return true;}).sort(function(a,b){if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(a).attr('tabindex')===jquery__WEBPACK_IMPORTED_MODULE_0___default()(b).attr('tabindex'))return 0;var aTabIndex=parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()(a).attr('tabindex'),10),bTabIndex=parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()(b).attr('tabindex'),10);if(typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(a).attr('tabindex')==='undefined'&&bTabIndex>0)return 1;if(typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(b).attr('tabindex')==='undefined'&&aTabIndex>0)return -1;if(aTabIndex===0&&bTabIndex>0)return 1;if(bTabIndex===0&&aTabIndex>0)return -1;if(aTabIndex<bTabIndex)return -1;if(aTabIndex>bTabIndex)return 1;});}function parseKey(event){var key=keyCodes[event.which||event.keyCode]||String.fromCharCode(event.which).toUpperCase();key=key.replace(/\W+/,'');if(event.shiftKey)key="SHIFT_".concat(key);if(event.ctrlKey)key="CTRL_".concat(key);if(event.altKey)key="ALT_".concat(key);key=key.replace(/_$/,'');return key;}var Keyboard={keys:getKeyCodes(keyCodes),parseKey,handleKey:function handleKey(event,component,functions){var commandList=commands[component],keyCode=this.parseKey(event),cmds,command,fn;if(!commandList)return console.warn('Component not defined!');if(event.zfIsKeyHandled===true)return;if(typeof commandList.ltr==='undefined')cmds=commandList;else if((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.rtl)())cmds=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},commandList.ltr,commandList.rtl);else cmds=jquery__WEBPACK_IMPORTED_MODULE_0___default().extend({},commandList.rtl,commandList.ltr);command=cmds[keyCode];fn=functions[command];if(fn&&typeof fn==='function'){var returnValue=fn.apply();event.zfIsKeyHandled=true;if(functions.handled||typeof functions.handled==='function')functions.handled(returnValue);}else{if(functions.unhandled||typeof functions.unhandled==='function')functions.unhandled();}},findFocusable,register:function register(componentName,cmds){commands[componentName]=cmds;},trapFocus:function trapFocus($element){var $focusable=findFocusable($element),$firstFocusable=$focusable.eq(0),$lastFocusable=$focusable.eq(-1);$element.on('keydown.zf.trapfocus',function(event){if(event.target===$lastFocusable[0]&&parseKey(event)==='TAB'){event.preventDefault();$firstFocusable.focus();}else{if(event.target===$firstFocusable[0]&&parseKey(event)==='SHIFT_TAB'){event.preventDefault();$lastFocusable.focus();}}});},releaseFocus:function releaseFocus($element){$element.off('keydown.zf.trapfocus');}};function getKeyCodes(kcs){var k={};for(var kc in kcs)if(kcs.hasOwnProperty(kc))k[kcs[kc]]=kcs[kc];return k;}}),
7"./js/foundation.util.mediaQuery.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{MediaQuery:function(){return MediaQuery;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return "Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=window.styleMedia||window.media;if(!styleMedia){var style=document.createElement('style'),script=document.getElementsByTagName('script')[0],info=null;style.type='text/css';style.id='matchmediajs-test';if(!script)document.head.appendChild(style);else script.parentNode.insertBefore(style,script);info='getComputedStyle' in window&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function matchMedium(media){var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';if(style.styleSheet)style.styleSheet.cssText=text;else style.textContent=text;return info.width==='1px';}};}return function(media){return {matches:styleMedia.matchMedium(media||'all'),media:media||'all'};};}());var MediaQuery={queries:[],current:'',_init:function _init(){if(this.isInitialized===true)return this;else this.isInitialized=true;var self=this;var $meta=jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq');if(!$meta.length)jquery__WEBPACK_IMPORTED_MODULE_0___default()('<meta class="foundation-mq" name="foundation-mq" content>').appendTo(document.head);var extractedStyles=jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family');var namedQueries;namedQueries=parseStyleToObject(extractedStyles);self.queries=[];for(var key in namedQueries)if(namedQueries.hasOwnProperty(key))self.queries.push({name:key,value:"only screen and (min-width: ".concat(namedQueries[key],")")});this.current=this._getCurrentSize();this._watcher();},_reInit:function _reInit(){this.isInitialized=false;this._init();},atLeast:function atLeast(size){var query=this.get(size);if(query)return window.matchMedia(query).matches;return false;},only:function only(size){return size===this._getCurrentSize();},upTo:function upTo(size){var nextSize=this.next(size);if(nextSize)return !this.atLeast(nextSize);return true;},is:function is(size){var parts=size.trim().split(' ').filter(function(p){return !!p.length;});var _parts=_slicedToArray(parts,2),bpSize=_parts[0],_parts$=_parts[1],bpModifier=_parts$===void 0?'':_parts$;if(bpModifier==='only')return this.only(bpSize);if(!bpModifier||bpModifier==='up')return this.atLeast(bpSize);if(bpModifier==='down')return this.upTo(bpSize);throw new Error("\n      Invalid breakpoint passed to MediaQuery.is().\n      Expected a breakpoint name formatted like \"<size> <modifier>\", got \"".concat(size,"\".\n    "));},get:function get(size){for(var i in this.queries)if(this.queries.hasOwnProperty(i)){var query=this.queries[i];if(size===query.name)return query.value;}return null;},next:function next(size){var _this=this;var queryIndex=this.queries.findIndex(function(q){return _this._getQueryName(q)===size;});if(queryIndex===-1)throw new Error("\n        Unknown breakpoint \"".concat(size,"\" passed to MediaQuery.next().\n        Ensure it is present in your Sass \"$breakpoints\" setting.\n      "));var nextQuery=this.queries[queryIndex+1];return nextQuery?nextQuery.name:null;},_getQueryName:function _getQueryName(value){if(typeof value==='string')return value;if(_typeof(value)==='object')return value.name;throw new TypeError("\n      Invalid value passed to MediaQuery._getQueryName().\n      Expected a breakpoint name (String) or a breakpoint query (Object), got \"".concat(value,"\" (").concat(_typeof(value),")\n    "));},_getCurrentSize:function _getCurrentSize(){var matched;for(var i=0;i<this.queries.length;i++){var query=this.queries[i];if(window.matchMedia(query.value).matches)matched=query;}return matched&&this._getQueryName(matched);},_watcher:function _watcher(){var _this2=this;jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('resize.zf.trigger',function(){var newSize=_this2._getCurrentSize(),currentSize=_this2.current;
7if(newSize!==currentSize){_this2.current=newSize;jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery',[newSize,currentSize]);}});}};function parseStyleToObject(str){var styleObject={};if(typeof str!=='string')return styleObject;str=str.trim().slice(1,-1);if(!str)return styleObject;styleObject=str.split('&').reduce(function(ret,param){var parts=param.replace(/\+/g,' ').split('=');var key=parts[0];var val=parts[1];key=decodeURIComponent(key);val=typeof val==='undefined'?null:decodeURIComponent(val);if(!ret.hasOwnProperty(key))ret[key]=val;else if(Array.isArray(ret[key]))ret[key].push(val);else ret[key]=[ret[key],val];return ret;},{});return styleObject;}}),
vendor: 9,409 bytes, line 7
7"./js/foundation.util.motion.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Motion:function(){return Motion;},Move:function(){return Move;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var initClasses=['mui-enter','mui-leave'];var activeClasses=['mui-enter-active','mui-leave-active'];var Motion={animateIn:function animateIn(element,animation,cb){animate(true,element,animation,cb);},animateOut:function animateOut(element,animation,cb){animate(false,element,animation,cb);}};function Move(duration,elem,fn){var anim,prog,start=null;if(duration===0){fn.apply(elem);elem.trigger('finished.zf.animate',[elem]).triggerHandler('finished.zf.animate',[elem]);return;}function move(ts){if(!start)start=ts;prog=ts-start;fn.apply(elem);if(prog<duration)anim=window.requestAnimationFrame(move,elem);else{window.cancelAnimationFrame(anim);elem.trigger('finished.zf.animate',[elem]).triggerHandler('finished.zf.animate',[elem]);}}anim=window.requestAnimationFrame(move);}function animate(isIn,element,animation,cb){element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(element).eq(0);if(!element.length)return;var initClass=isIn?initClasses[0]:initClasses[1];var activeClass=isIn?activeClasses[0]:activeClasses[1];reset();element.addClass(animation).css('transition','none');requestAnimationFrame(function(){element.addClass(initClass);if(isIn)element.show();});requestAnimationFrame(function(){element[0].offsetWidth;element.css('transition','').addClass(activeClass);});element.one((0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.transitionend)(element),finish);function finish(){if(!isIn)element.hide();reset();if(cb)cb.apply(element);}function reset(){element[0].style.transitionDuration=0;element.removeClass("".concat(initClass," ").concat(activeClass," ").concat(animation));}}}),"./js/foundation.util.nest.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Nest:function(){return Nest;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var Nest={Feather:function Feather(menu){var type=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'zf';menu.attr('role','menubar');menu.find('a').attr({'role':'menuitem'});var items=menu.find('li').attr({'role':'none'}),subMenuClass="is-".concat(type,"-submenu"),subItemClass="".concat(subMenuClass,"-item"),hasSubClass="is-".concat(type,"-submenu-parent"),applyAria=type!=='accordion';items.each(function(){var $item=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),$sub=$item.children('ul');if($sub.length){$item.addClass(hasSubClass);if(applyAria){var firstItem=$item.children('a:first');firstItem.attr({'aria-haspopup':true,'aria-label':firstItem.attr('aria-label')||firstItem.text()});if(type==='drilldown')$item.attr({'aria-expanded':false});}$sub.addClass("submenu ".concat(subMenuClass)).attr({'data-submenu':'','role':'menubar'});if(type==='drilldown')$sub.attr({'aria-hidden':true});}if($item.parent('[data-submenu]').length)$item.addClass("is-submenu-item ".concat(subItemClass));});return;},Burn:function Burn(menu,type){var subMenuClass="is-".concat(type,"-submenu"),subItemClass="".concat(subMenuClass,"-item"),hasSubClass="is-".concat(type,"-submenu-parent");menu.find('>li, > li > ul, .menu, .menu > li, [data-submenu] > li').removeClass("".concat(subMenuClass," ").concat(subItemClass," ").concat(hasSubClass," is-submenu-item submenu is-active")).removeAttr('data-submenu').css('display','');}};}),"./js/foundation.util.timer.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Timer:function(){return Timer;}});function Timer(elem,options,cb){var _this=this,duration=options.duration,nameSpace=Object.keys(elem.data())[0]||'timer',remain=-1,start,timer;this.isPaused=false;this.restart=function(){remain=-1;clearTimeout(timer);this.start();};this.start=function(){this.isPaused=false;clearTimeout(timer);remain=remain<=0?duration:remain;elem.data('paused',false);start=Date.now();timer=setTimeout(function(){if(options.infinite)_this.restart();if(cb&&typeof cb==='function')cb();},remain);elem.trigger("timerstart.zf.".concat(nameSpace));};this.pause=function(){this.isPaused=true;clearTimeout(timer);elem.data('paused',true);var end=Date.now();remain=remain-(end-start);elem.trigger("timerpaused.zf.".concat(nameSpace));};}}),"./js/foundation.util.touch.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Touch:function(){return Touch;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return "symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string"===r?String:Number)(t);}var Touch={};var startPosX,startTime,elapsedTime,startEvent,isMoving=false,didMoved=false;function onTouchEnd(e){this.removeEventListener('touchmove',onTouchMove);this.removeEventListener('touchend',onTouchEnd);if(!didMoved){var tapEvent=jquery__WEBPACK_IMPORTED_MODULE_0___default().Event('tap',startEvent||e);jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger(tapEvent);}startEvent=null;isMoving=false;didMoved=false;}function onTouchMove(e){if(true===(jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe).preventDefault)e.preventDefault();if(isMoving){var x=e.touches[0].pageX;var dx=startPosX-x;var dir;didMoved=true;elapsedTime=new Date().getTime()-startTime;if(Math.abs(dx)>=(jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe).moveThreshold&&elapsedTime<=(jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe).timeThreshold)dir=dx>0?'left':'right';if(dir){e.preventDefault();onTouchEnd.apply(this,arguments);jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger(jquery__WEBPACK_IMPORTED_MODULE_0___default().Event('swipe',Object.assign({},e)),dir).trigger(jquery__WEBPACK_IMPORTED_MODULE_0___default().Event("swipe".concat(dir),Object.assign({},e)));}}}function onTouchStart(e){if(e.touches.length===1){startPosX=e.touches[0].pageX;startEvent=e;isMoving=true;didMoved=false;startTime=new Date().getTime();this.addEventListener('touchmove',onTouchMove,{passive:true===(jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe).preventDefault});this.addEventListener('touchend',onTouchEnd,false);}}function init(){this.addEventListener&&this.addEventListener('touchstart',onTouchStart,{passive:true});}var SpotSwipe=function(){function SpotSwipe(){_classCallCheck(this,SpotSwipe);this.version='1.0.0';this.enabled='ontouchstart' in document.documentElement;this.preventDefault=false;this.moveThreshold=75;this.timeThreshold=200;this._init();}return _createClass(SpotSwipe,[{key:"_init",value:function _init(){(jquery__WEBPACK_IMPORTED_MODULE_0___default().event).special.swipe={setup:init};(jquery__WEBPACK_IMPORTED_MODULE_0___default().event).special.tap={setup:init};jquery__WEBPACK_IMPORTED_MODULE_0___default().each(['left','up','down','right'],function(){(jquery__WEBPACK_IMPORTED_MODULE_0___default().event).special["swipe".concat(this)]={setup:function setup(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).on('swipe',(jquery__WEBPACK_IMPORTED_MODULE_0___default().noop));}};});}}]);}();Touch.setupSpotSwipe=function(){(jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe)=new SpotSwipe((jquery__WEBPACK_IMPORTED_MODULE_0___default()));};Touch.setupTouchHandler=function(){(jquery__WEBPACK_IMPORTED_MODULE_0___default().fn).addTouch=function(){this.each(function(i,el){jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).bind('touchstart touchmove touchend touchcancel',function(event){handleTouch(event);});});var handleTouch=function handleTouch(event){var touches=event.changedTouches,first=touches[0],eventTypes={touchstart:'mou
7sedown',touchmove:'mousemove',touchend:'mouseup'},type=eventTypes[event.type],simulatedEvent;if('MouseEvent' in window&&typeof window.MouseEvent==='function')simulatedEvent=new window.MouseEvent(type,{'bubbles':true,'cancelable':true,'screenX':first.screenX,'screenY':first.screenY,'clientX':first.clientX,'clientY':first.clientY});else{simulatedEvent=document.createEvent('MouseEvent');simulatedEvent.initMouseEvent(type,true,true,window,1,first.screenX,first.screenY,first.clientX,first.clientY,false,false,false,false,0,null);}first.target.dispatchEvent(simulatedEvent);};};};Touch.init=function(){if(typeof (jquery__WEBPACK_IMPORTED_MODULE_0___default().spotSwipe)==='undefined'){Touch.setupSpotSwipe((jquery__WEBPACK_IMPORTED_MODULE_0___default()));Touch.setupTouchHandler((jquery__WEBPACK_IMPORTED_MODULE_0___default()));}};}),
vendor: 4,867 bytes, line 7
7"./js/foundation.util.triggers.js":(function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Triggers:function(){return Triggers;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.motion.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var MutationObserver=function(){var prefixes=['WebKit','Moz','O','Ms',''];for(var i=0;i<prefixes.length;i++)if("".concat(prefixes[i],"MutationObserver") in window)return window["".concat(prefixes[i],"MutationObserver")];return false;}();var triggers=function triggers(el,type){el.data(type).split(' ').forEach(function(id){jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);});};var Triggers={Listeners:{Basic:{},Global:{}},Initializers:{}};Triggers.Listeners.Basic={openListener:function openListener(){triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');},closeListener:function closeListener(){var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');if(id)triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');else jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');},toggleListener:function toggleListener(){var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');if(id)triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');else jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');},closeableListener:function closeableListener(e){var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');e.stopPropagation();if(animation!=='')_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__.Motion.animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');});else jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');},toggleFocusListener:function toggleFocusListener(){var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);}};Triggers.Initializers.addOpenListener=function($elem){$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);};Triggers.Initializers.addCloseListener=function($elem){$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);};Triggers.Initializers.addToggleListener=function($elem){$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);};Triggers.Initializers.addCloseableListener=function($elem){$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);};Triggers.Initializers.addToggleFocusListener=function($elem){$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);};Triggers.Listeners.Global={resizeListener:function resizeListener($nodes){if(!MutationObserver)$nodes.each(function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');});$nodes.attr('data-events',"resize");},scrollListener:function scrollListener($nodes){if(!MutationObserver)$nodes.each(function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');});$nodes.attr('data-events',"scroll");},closeMeListener:function closeMeListener(e,pluginId){var plugin=e.namespace.split('.')[0];var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));plugins.each(function(){var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);_this.triggerHandler('close.zf.trigger',[_this]);});}};
7Triggers.Initializers.addClosemeListener=function(pluginName){var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),plugNames=['dropdown','tooltip','reveal'];if(pluginName)if(typeof pluginName==='string')plugNames.push(pluginName);else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string')plugNames=plugNames.concat(pluginName);else console.error('Plugin names must be strings');if(yetiBoxes.length){var listeners=plugNames.map(function(name){return "closeme.zf.".concat(name);}).join(' ');jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);}};function debounceGlobalListener(debounce,trigger,listener){var timer,args=Array.prototype.slice.call(arguments,3);jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on(trigger,function(){if(timer)clearTimeout(timer);timer=setTimeout(function(){listener.apply(null,args);},debounce||10);});}Triggers.Initializers.addResizeListener=function(debounce){var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');if($nodes.length)debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);};Triggers.Initializers.addScrollListener=function(debounce){var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');if($nodes.length)debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);};Triggers.Initializers.addMutationEventsListener=function($elem){if(!MutationObserver)return false;var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);switch(mutationRecordsList[0].type){case "attributes":if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events")$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events")$target.triggerHandler('resizeme.zf.trigger',[$target]);if(mutationRecordsList[0].attributeName==="style"){$target.closest("[data-mutate]").attr("data-events","mutate");$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);}break;case "childList":$target.closest("[data-mutate]").attr("data-events","mutate");$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);break;default:return false;}};if($nodes.length)for(var i=0;i<=$nodes.length-1;i++){var elementObserver=new MutationObserver(listeningElementsMutation);elementObserver.observe($nodes[i],{attributes:true,childList:true,characterData:false,subtree:true,attributeFilter:["data-events","style"]});}};Triggers.Initializers.addSimpleListeners=function(){var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);Triggers.Initializers.addOpenListener($document);Triggers.Initializers.addCloseListener($document);Triggers.Initializers.addToggleListener($document);Triggers.Initializers.addCloseableListener($document);Triggers.Initializers.addToggleFocusListener($document);};Triggers.Initializers.addGlobalListeners=function(){var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);Triggers.Initializers.addMutationEventsListener($document);Triggers.Initializers.addResizeListener(250);Triggers.Initializers.addScrollListener();Triggers.Initializers.addClosemeListener();};Triggers.init=function(__,Foundation){(0,_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__.onLoad)(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){if((jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized)!==true){Triggers.Initializers.addSimpleListeners();Triggers.Initializers.addGlobalListeners();(jquery__WEBPACK_IMPORTED_MODULE_0___default().triggersInitialized)=true;}});if(Foundation){Foundation.Triggers=Triggers;Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;}};})
vendor: 9,069 bytes, line 7
7,"jquery":(function(module){module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;})});var __webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==undefined)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};__webpack_modules__[moduleId](module,module.exports,__webpack_require__);return module.exports;}!function(){__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module['default'];}:function(){return module;};__webpack_require__.d(getter,{a:getter});return getter;};}();!function(){__webpack_require__.d=function(exports,definition){for(var key in definition)if(__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key))Object.defineProperty(exports,key,{enumerable:true,get:definition[key]});};}();!function(){__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);};}();!function(){__webpack_require__.r=function(exports){if(typeof Symbol!=='undefined'&&Symbol.toStringTag)Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});Object.defineProperty(exports,'__esModule',{value:true});};}();var __webpack_exports__={};!function(){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{Abide:function(){return _foundation_abide__WEBPACK_IMPORTED_MODULE_12__.Abide;},Accordion:function(){return _foundation_accordion__WEBPACK_IMPORTED_MODULE_13__.Accordion;},AccordionMenu:function(){return _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_14__.AccordionMenu;},Box:function(){return _foundation_util_box__WEBPACK_IMPORTED_MODULE_3__.Box;},CoreUtils:function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__;},Drilldown:function(){return _foundation_drilldown__WEBPACK_IMPORTED_MODULE_15__.Drilldown;},Dropdown:function(){return _foundation_dropdown__WEBPACK_IMPORTED_MODULE_16__.Dropdown;},DropdownMenu:function(){return _foundation_dropdownMenu__WEBPACK_IMPORTED_MODULE_17__.DropdownMenu;},Equalizer:function(){return _foundation_equalizer__WEBPACK_IMPORTED_MODULE_18__.Equalizer;},Foundation:function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation;},Interchange:function(){return _foundation_interchange__WEBPACK_IMPORTED_MODULE_19__.Interchange;},Keyboard:function(){return _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_5__.Keyboard;},Magellan:function(){return _foundation_magellan__WEBPACK_IMPORTED_MODULE_20__.Magellan;},MediaQuery:function(){return _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_6__.MediaQuery;},Motion:function(){return _foundation_util_motion__WEBPACK_IMPORTED_MODULE_7__.Motion;},Nest:function(){return _foundation_util_nest__WEBPACK_IMPORTED_MODULE_8__.Nest;},OffCanvas:function(){return _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_21__.OffCanvas;},Orbit:function(){return _foundation_orbit__WEBPACK_IMPORTED_MODULE_22__.Orbit;},ResponsiveAccordionTabs:function(){return _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_32__.ResponsiveAccordionTabs;},ResponsiveMenu:function(){return _foundation_responsiveMenu__WEBPACK_IMPORTED_MODULE_23__.ResponsiveMenu;},ResponsiveToggle:function(){return _foundation_responsiveToggle__WEBPACK_IMPORTED_MODULE_24__.ResponsiveToggle;},Reveal:function(){return _foundation_reveal__WEBPACK_IMPORTED_MODULE_25__.Reveal;},Slider:function(){return _foundation_slider__WEBPACK_IMPORTED_MODULE_26__.Slider;},SmoothScroll:function(){return _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_27__.SmoothScroll;},Sticky:function(){return _foundation_sticky__WEBPACK_IMPORTED_MODULE_28__.Sticky;},Tabs:function(){return _foundation_tabs__WEBPACK_IMPORTED_MODULE_29__.Tabs;},Timer:function(){return _foundation_util_timer__WEBPACK_IMPORTED_MODULE_9__.Timer;},Toggler:function(){return _foundation_toggler__WEBPACK_IMPORTED_MODULE_30__.Toggler;},Tooltip:function(){return _foundation_tooltip__WEBPACK_IMPORTED_MODULE_31__.Tooltip;},Touch:function(){return _foundation_util_touch__WEBPACK_IMPORTED_MODULE_10__.Touch;},Triggers:function(){return _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_11__.Triggers;},onImagesLoaded:function(){return _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__.onImagesLoaded;}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);var _foundation_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.js");var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.utils.js");var _foundation_util_box__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.box.js");var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.imageLoader.js");var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./js/foundation.util.keyboard.js");var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./js/foundation.util.mediaQuery.js");var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./js/foundation.util.motion.js");var _foundation_util_nest__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./js/foundation.util.nest.js");var _foundation_util_timer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./js/foundation.util.timer.js");var _foundation_util_touch__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./js/foundation.util.touch.js");var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./js/foundation.util.triggers.js");var _foundation_abide__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./js/foundation.abide.js");var _foundation_accordion__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./js/foundation.accordion.js");var _foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./js/foundation.accordionMenu.js");var _foundation_drilldown__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./js/foundation.drilldown.js");var _foundation_dropdown__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./js/foundation.dropdown.js");var _foundation_dropdownMenu__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./js/foundation.dropdownMenu.js");var _foundation_equalizer__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./js/foundation.equalizer.js");var _foundation_interchange__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./js/foundation.interchange.js");var _foundation_magellan__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./js/foundation.magellan.js");var _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./js/foundation.offcanvas.js");var _foundation_orbit__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./js/foundation.orbit.js");var _foundation_responsiveMenu__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./js/foundation.responsiveMenu.js");var _foundation_responsiveToggle__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./js/foundation.responsiveToggle.js");var _foundation_reveal__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./js/foundation.reveal.js");var _foundation_slider__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./js/foundation.slider.js");var _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./js/foundation.smoothScroll.js");var _foundation_sticky__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./js/foundation.sticky.js");var _foundation_tabs__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./js/foundation.tabs.js");var _foundation_toggler__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./js/foundation.toggler.js");var _foundation_tooltip__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./js/foundation.tooltip.js");var _foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./js/foundation.responsiveAccordionTabs.js");_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.addToJquery((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.rtl=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.rtl;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.GetYoDigits=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.GetYoDigits;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.transitionend=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.transitionend;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.RegExpEscape=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.RegExpEscape;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.onLoad=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_2__.onLoad;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Box=_foundation_util_box__WEBPACK_IMPORTED_MODULE_3__.Box;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.onImagesLoaded=_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_4__.onImagesLoaded;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Keyboard=_foun
7dation_util_keyboard__WEBPACK_IMPORTED_MODULE_5__.Keyboard;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.MediaQuery=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_6__.MediaQuery;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Motion=_foundation_util_motion__WEBPACK_IMPORTED_MODULE_7__.Motion;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Move=_foundation_util_motion__WEBPACK_IMPORTED_MODULE_7__.Move;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Nest=_foundation_util_nest__WEBPACK_IMPORTED_MODULE_8__.Nest;_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.Timer=_foundation_util_timer__WEBPACK_IMPORTED_MODULE_9__.Timer;_foundation_util_touch__WEBPACK_IMPORTED_MODULE_10__.Touch.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()));_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_11__.Triggers.init((jquery__WEBPACK_IMPORTED_MODULE_0___default()),_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation);_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_6__.MediaQuery._init();_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_abide__WEBPACK_IMPORTED_MODULE_12__.Abide,'Abide');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_accordion__WEBPACK_IMPORTED_MODULE_13__.Accordion,'Accordion');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_accordionMenu__WEBPACK_IMPORTED_MODULE_14__.AccordionMenu,'AccordionMenu');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_drilldown__WEBPACK_IMPORTED_MODULE_15__.Drilldown,'Drilldown');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_dropdown__WEBPACK_IMPORTED_MODULE_16__.Dropdown,'Dropdown');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_dropdownMenu__WEBPACK_IMPORTED_MODULE_17__.DropdownMenu,'DropdownMenu');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_equalizer__WEBPACK_IMPORTED_MODULE_18__.Equalizer,'Equalizer');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_interchange__WEBPACK_IMPORTED_MODULE_19__.Interchange,'Interchange');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_magellan__WEBPACK_IMPORTED_MODULE_20__.Magellan,'Magellan');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_offcanvas__WEBPACK_IMPORTED_MODULE_21__.OffCanvas,'OffCanvas');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_orbit__WEBPACK_IMPORTED_MODULE_22__.Orbit,'Orbit');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_responsiveMenu__WEBPACK_IMPORTED_MODULE_23__.ResponsiveMenu,'ResponsiveMenu');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_responsiveToggle__WEBPACK_IMPORTED_MODULE_24__.ResponsiveToggle,'ResponsiveToggle');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_reveal__WEBPACK_IMPORTED_MODULE_25__.Reveal,'Reveal');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_slider__WEBPACK_IMPORTED_MODULE_26__.Slider,'Slider');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_27__.SmoothScroll,'SmoothScroll');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_sticky__WEBPACK_IMPORTED_MODULE_28__.Sticky,'Sticky');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_tabs__WEBPACK_IMPORTED_MODULE_29__.Tabs,'Tabs');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_toggler__WEBPACK_IMPORTED_MODULE_30__.Toggler,'Toggler');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_tooltip__WEBPACK_IMPORTED_MODULE_31__.Tooltip,'Tooltip');_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation.plugin(_foundation_responsiveAccordionTabs__WEBPACK_IMPORTED_MODULE_32__.ResponsiveAccordionTabs,'ResponsiveAccordionTabs');__webpack_exports__["default"]=(_foundation_core__WEBPACK_IMPORTED_MODULE_1__.Foundation);}();return __webpack_exports__;})();;});;
8;(function(root,factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof exports==='object')module.exports=factory(require('jquery'));else root.MotionUI=factory(root.jQuery);}(this,function($){'use strict';(function(){if(!Date.now)Date.now=function(){return new Date().getTime();};var vendors=['webkit','moz'];for(var i=0;i<vendors.length&&!window.requestAnimationFrame;++i){var vp=vendors[i];window.requestAnimationFrame=window[vp+'RequestAnimationFrame'];window.cancelAnimationFrame=(window[vp+'CancelAnimationFrame']||window[vp+'CancelRequestAnimationFrame']);}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(callback){var now=Date.now();var nextTime=Math.max(lastTime+16,now);return setTimeout(function(){callback(lastTime=nextTime);},nextTime-now);};window.cancelAnimationFrame=clearTimeout;}})();var initClasses=['mui-enter','mui-leave'];var activeClasses=['mui-enter-active','mui-leave-active'];var endEvent=(function(){var transitions={'transition':'transitionend','WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'otransitionend'};var elem=window.document.createElement('div');for(var t in transitions)if(typeof elem.style[t]!=='undefined')return transitions[t];return null;})();function animate(isIn,element,animation,cb){element=$(element).eq(0);if(!element.length)return;if(endEvent===null){isIn?element.show():element.hide();cb();return;}var initClass=isIn?initClasses[0]:initClasses[1];var activeClass=isIn?activeClasses[0]:activeClasses[1];reset();element.addClass(animation);element.css('transition','none');requestAnimationFrame(function(){element.addClass(initClass);if(isIn)element.show();});requestAnimationFrame(function(){element[0].offsetWidth;element.css('transition','');element.addClass(activeClass);});element.one('transitionend',finish);function finish(){if(!isIn)element.hide();reset();if(cb)cb.apply(element);}function reset(){element[0].style.transitionDuration=0;element.removeClass(initClass+' '+activeClass+' '+animation);}}var MotionUI={animateIn:function(element,animation,cb){animate(true,element,animation,cb);},animateOut:function(element,animation,cb){animate(false,element,animation,cb);}};return MotionUI;}));;
9(function($,Drupal,drupalSettings){function waitForGoogleMaps(){return new Promise((resolve)=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary)resolve();else{const checkGoogleMaps=setInterval(()=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary){clearInterval(checkGoogleMaps);resolve();}},100);}});}Drupal.behaviors.initializeMap={attach:async function(){await waitForGoogleMaps();let GoogleMapsLibrary=await google.maps.importLibrary("maps");const GoogleMap=GoogleMapsLibrary.Map;const {AdvancedMarkerElement}=await google.maps.importLibrary("marker");var dom_map=$('#map');var map=dom_map.data('map');const $infoWindowMobile=$('.map-search--info-window');let $itemCloned;if(dom_map.length){var results=[];var markers=[];var lat=parseFloat(drupalSettings.searchLocation.lat);var lng=parseFloat(drupalSettings.searchLocation.lng);var tab=Effia.getCurrentTab();if(!map){map=new GoogleMap(document.getElementById('map'),{zoom:18,minZoom:6,center:new google.maps.LatLng(lat,lng),zoomControl:true,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.BOTTOM_RIGHT},mapTypeControl:false,scaleControl:false,panControl:false,streetViewControl:false,overviewMapControl:false,fullscreenControl:false,mapTypeControlOptions:{mapTypeIds:['styledMap',google.maps.MapTypeId.ROADMAP,google.maps.MapTypeId.TERRAIN]},mapTypeId:'styledMap',mapId:'3e22fcd6e9ffe6d0'});dom_map.data('map',map);map.mapTypes.set('styledMap',new google.maps.StyledMapType(Drupal.globalMapStyles,{name:"Styled Map"}));}$('#'+tab).find('li.result-item').each(function(){if(!$(this).hasClass('hide')){var resultData={};if(typeof ($(this).data()['id'])==='undefined')resultData.id=null;else resultData.id=$(this).data()['id'];if(typeof ($(this).data()['lat'])==='undefined')resultData.lat=null;else resultData.lat=$(this).data()['lat'];if(typeof ($(this).data()['lng'])==='undefined')resultData.lng=null;else resultData.lng=$(this).data()['lng'];if(typeof ($(this).data()['price'])==='undefined')resultData.price=null;else resultData.price=$(this).data()['price'];if(typeof ($(this).data()['oldprice'])==='undefined')resultData.oldPrice=null;else resultData.oldPrice=$(this).data()['oldprice'];if(typeof ($(this).data()['availableOnline'])==='undefined')resultData.available=null;else resultData.available=$(this).data()['availableOnline'];if(typeof ($(this).data()['link'])==='undefined')resultData.link=null;else resultData.link=$(this).data()['link'];if(!($(this).find('.result-item--distance .km-distance').text()+' / '+$(this).find('.result-item--distance .walking-distance').text()).length)resultData.distance=null;else resultData.distance=$(this).find('.result-item--distance .km-distance').text()+' / '+$(this).find('.result-item--distance .walking-distance').text();if(!($(this).find('.result-item--title').text()).length)resultData.title=null;
9else resultData.title=$(this).find('.result-item--title').text();if(!($(this).find('.result-item--address .street').text()+', '+$(this).find('.result-item--address .zipcode-city').text()).length)resultData.address=null;else resultData.address=$(this).find('.result-item--address .street').text()+', '+$(this).find('.result-item--address .zipcode-city').text();resultData.unavailability_reason=null;if(typeof ($(this).find('.result-item--price .places.not-available').text())!=='undefined')if($(this).find('.result-item--price .places.not-available.hide').length===0){resultData.unavailability_reason=$(this).find('.result-item--price .places.not-available').data("reason");if(!resultData.unavailability_reason)resultData.unavailability_reason=$(this).find('.result-item--price .places.not-available').text();}results.push(resultData);}});if(results.length!==0){var infoWindow={infoBubble:new InfoBubble({shadowStyle:0,padding:15,backgroundColor:'#f3f5f6',maxWidth:500,minHeight:190,arrowSize:10,arrowPosition:50,arrowStyle:0,borderWidth:1,borderColor:'#d9d9d9',borderRadius:5,backgroundClassName:'info-window-bubble',closeSrc:'/themes/custom/effia_theme/images/icons/close-info-window.svg'}),marker:null,oldPrice:false,powBase:2,maxMap:21,minShiftLat:0.00002,maxShiftLat:0.00003,getShiftinfoWindow:function(){return (this.oldPrice?this.maxShiftLat:this.minShiftLat)*Math.pow(this.powBase,(this.maxMap-map.getZoom()));}};var bounds=new google.maps.LatLngBounds();var i;google.maps.event.addListener(map,'zoom_changed',function(){if(infoWindow.marker)infoWindow.infoBubble.setPosition(new google.maps.LatLng(infoWindow.marker.position.lat+infoWindow.getShiftinfoWindow(),infoWindow.marker.position.lng));});google.maps.event.addListener(infoWindow.infoBubble,'closeclick',function(){$('.label-content').removeClass('open');$('.result-item--selected').removeClass('result-item--selected');$infoWindowMobile.removeClass('opened');});var old_markers=dom_map.data('markers');if(old_markers){for(i=0;i<old_markers.length;i++){old_markers[i].setMap(null);$('.result-item--selected').removeClass('result-item--selected');$infoWindowMobile.removeClass('opened');}dom_map.data('markers',[]);}var old_infoBubble=dom_map.data('infoBubble');if(old_infoBubble){old_infoBubble.close();old_infoBubble.setMap(null);$('.result-item--selected').removeClass('result-item--selected');$infoWindowMobile.removeClass('opened');}for(i=0;i<results.length;i++){var resultData=results[i];if(resultData.lat&&resultData.lng&&resultData.id){var markerContent='<div class="label-content" data-marker="'+i+'" data-result-item-id="'+resultData.id+'">';if(resultData.available)if(resultData.price)markerContent+='<span>'+resultData.price+' €</span>';else{markerContent+='<span class="not-available">';if(resultData.unavailability_reason===null)markerContent+=resultData.title;else markerContent+=resultData.unavailability_reason;markerContent+='</span>';}else{markerContent+='<span class="not-available">';if(resultData.unavailability_reason===null)markerContent+=resultData.title;else markerContent+=resultData.unavailability_reason;markerContent+='</span>';}markerContent+='</div>';const markerElement=document.createElement('div');markerElement.innerHTML=markerContent;markerElement.dataset.markerIndex=i;markerElement.dataset.markerId=resultData.id;var marker=new AdvancedMarkerElement({position:new google.maps.LatLng(resultData.lat,resultData.lng),map,content:markerElement});google.maps.event.addListener(marker,'mouseover',function(){const markerIndex=this.content.dataset.markerIndex;const markerId=this.content.dataset.markerId;$('.label-content[data-marker="'+markerIndex+'"]').addClass('hover');$('.result-item[data-id='+markerId+']').addClass('hover');});google.maps.event.addListener(marker,'mouseout',function(){const markerIndex=this.content.dataset.markerIndex;const markerId=this.content.dataset.markerId;$('.label-content[data-marker="'+markerIndex+'"]').removeClass('hover');$('.result-item[data-id='+markerId+']').removeClass('hover');});google.maps.event.addListener(marker,'click',function(resultData,markerIndex){return function(){var pagination=document.querySelector('.parking-carousel--pagination.carousel--pagination');if(pagination){var secondChild=pagination.children[Math.floor(markerIndex/2)];if(secondChild){secondChild.click();if(window.innerWidth<1024)$('#zone_map').css('transform','translateX(100%)');}}event.stopPropagation();infoWindow.marker=this;const infoWindowContent=`<div class="result-item--info-window">
10                    <div class="result-item--distance">
11                      <a href="${resultData.link}">${resultData.distance}</a>
12                    </div>
13                    <div class="result-item--title"><a href="${resultData.link}">${resultData.title}</a></div>
14                    <div class="result-item--address">${resultData.address}</div>
15                    </div>`;$('.label-content').removeClass('open');$('.label-content').removeClass('hover');$('.result-item--selected').removeClass('result-item--selected');$infoWindowMobile.removeClass('opened');infoWindow.infoBubble.setPosition(new google.maps.LatLng(this.position.lat+infoWindow.getShiftinfoWindow(),this.position.lng));infoWindow.infoBubble.setContent(infoWindowContent);const windowWidth=$(window).width();map.setZoom(17);map.panTo(this.position);if(windowWidth>=1024)infoWindow.infoBubble.open(map);else map.panBy(0,75);$('.label-content[data-marker="'+markerIndex+'"]').addClass('open');const $item=$('.result-item[data-id='+this.content.dataset.markerId+']:visible');const itemTop=$item.offset().top;const itemHeight=$item.outerHeight();const $list=$item.closest('.results--list');const listTop=$list.offset().top;const listHeight=$list.outerHeight();const listBottom=listTop+listHeight;const headerHeight=$('.top-bar-main:visible').outerHeight();const $parentStickyContainer=$item.closest('.tabs-content');const filtersHeight=$parentStickyContainer.find('.results--filters').outerHeight();const deltaResponsive=windowWidth<640?filtersHeight:0;const sortHeight=$parentStickyContainer.find('.results--sort').outerHeight();const deltaTop=$parentStickyContainer.offset().top-headerHeight+deltaResponsive;const visibleHeight=$('.map-search').outerHeight()-deltaResponsive-sortHeight;const bottomMax=listBottom-visibleHeight-itemHeight-headerHeight;
15const deltaScroll=Math.min(Math.max(0,itemTop-listTop-(visibleHeight-itemHeight-filtersHeight)/2),bottomMax);$infoWindowMobile.find('.result-item--container').remove();window.scrollTo({top:deltaScroll+deltaTop,behavior:'smooth'});if(!!$itemCloned)$itemCloned.remove();$itemCloned=$item.find('.result-item--container').clone(true);$item.addClass('result-item--selected');$infoWindowMobile.addClass('opened');$infoWindowMobile.prepend($itemCloned[0]);};}(resultData,markerElement.dataset.markerIndex));markers.push(marker);bounds.extend(marker.position);}}map.fitBounds(bounds);dom_map.data('markers',markers);dom_map.data('infoBubble',infoWindow.infoBubble);}const $btnShowMap=$('.show-map');if(!!$btnShowMap)$btnShowMap.click(function(){$('body').addClass('search-map--isVisible');});const $btnHideMap=$('.map-search--btn-back');if(!!$btnHideMap)$btnHideMap.click(function(){$('body').removeClass('search-map--isVisible');});$('.map-search--info-window--close').on('click',function(){$('.label-content').removeClass('open');$('.result-item--selected').removeClass('result-item--selected');$infoWindowMobile.removeClass('opened');});}}};Drupal.behaviors.reverseGeocode={attach:async function(){await waitForGoogleMaps();var lat=this.getQueryParam('lat');var lng=this.getQueryParam('lng');var address=localStorage.getItem(lat+','+lng);if(!lat||!lng)return;if(address===null&&typeof google!=='undefined'){var location={lat:parseFloat(lat),lng:parseFloat(lng)};var geocoder=new google.maps.Geocoder();geocoder.geocode({location},function(results,status){if(status==='OK')$(results).each(function(i,result){if(result.types.length===2&&result.types[0]==='locality'&&result.types[1]==='political'){address=result.address_components[0].long_name+', '+result.address_components[3].long_name;localStorage.setItem(lat+','+lng,address);}});});}var currentBreadcrumb=$('.breadcrumbs').find('.current a');if(currentBreadcrumb.is(':empty'))currentBreadcrumb.text(Drupal.t('Search at @city',{'@city':address.split(',')[0]}));},getQueryParam:function(name,url){if(!url)url=window.location.href;name=name.replace(/[\[\]]/g,'\\$&');var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)');var results=regex.exec(url);if(!results)return null;if(!results[2])return '';return decodeURIComponent(results[2].replace(/\+/g,' '));}};Drupal.behaviors.infoWindowBlockHover={attach:function(id,hover){if(hover)$('.label-content[data-result-item-id="'+id+'"]').addClass('block-hover');else $('.label-content').removeClass('block-hover');}};}(jQuery,Drupal,drupalSettings));;
16(function($,Drupal,drupalSettings,google,Effia,Foundation){var endpoints={reserve:'/rest/reservation-search?_format=json',subscribe:'/rest/subscription-search?_format=json'};var resultList=[];var csrfToken;var requestData=[];var parkingMatrixResults;var googleMatrixService;var $reserveSubmit=$('#reserve').find('.submit');var $subscriptionFormSubmit=$('#subscribe-form').find('.submit');Drupal.behaviors.effiaSearchInitializeForm={attach:function(context){var params=Effia.initialize();if(params.language!==''){endpoints.reserve='/'+params.language+endpoints.reserve;endpoints.subscribe='/'+params.language+endpoints.subscribe;}Effia.initializeSubscriptionDateSelect('subscription-date');var year=params.subscriptionEntryDate.split('-')[0];var month=params.subscriptionEntryDate.split('-')[1];if(month.charAt(0)==='0')month=month.substr(1);Effia.prefillSelect('year-type',year,'subscription');Effia.prefillSelect('month-type',month,'subscription');$('input[name='+params.vehicle+']').click();if(Effia.getUrlParam('orderType')==='subscription'){$('#subscribe-label').click();$subscriptionFormSubmit.trigger('enableSubmit');}const areFieldsInitialized=()=>{const $reserve=$('#reserve');
16if($reserve.length===0)return false;const $entryInput=$reserve.find('#entry-date-picker-input');const $exitInput=$reserve.find('#exit-date-picker-input');if($entryInput.length===0||$exitInput.length===0)return false;const entryValue=$entryInput.val();const exitValue=$exitInput.val();return entryValue&&exitValue&&Effia.getDate(entryValue)&&Effia.getDate(exitValue);};const initializeForm=()=>{if(Effia.checkdateTimeReserve('reserve'))$reserveSubmit.trigger('enableSubmit');else $reserveSubmit.trigger('disableSubmit');effiaSearch.updateSearch();Effia.eventSubmit('#reserve');Effia.eventSubmit('#subscribe');};const waitForFields=()=>{if(areFieldsInitialized())initializeForm();else setTimeout(waitForFields,100);};waitForFields();Effia.initializeSubscriptionDateSelect('subscription-date');$(once('searchInitializeForm','.search-result #reserve-form',context)).find('.submit').click(function(){if($(this).is('.enabled'))if(effiaSearch.shouldUpdateSearch($('#reserve-form').get(0)))effiaSearch.updateSearch();});$(once('searchInitializeForm','.search-result #subscribe-form',context)).find('.submit').click(function(){if($(this).is('.enabled'))if(effiaSearch.shouldUpdateSearch($('#subscribe-form').get(0)))effiaSearch.updateSearch();});}};Drupal.behaviors.sortButtons={attach:function(){const sortLinks=$('.results--sort--types a');sortLinks.each(function(){$(this).on('click',function(){var siblings=$(this).siblings();$(this).addClass('sort-active');$(siblings[0]).removeClass('sort-active');effiaSearch.sortResults(Effia.getCurrentTab());const windowWidth=$(window).width();const searchResultContainerTop=$('.search-result-container').offset().top;const $parentStickyContainer=$(this).closest('.tabs-content');const parentStickyContainerTop=$parentStickyContainer.offset().top;const filtersHeight=$parentStickyContainer.find('.results--filters').outerHeight();const scrollTo=parentStickyContainerTop-searchResultContainerTop+(windowWidth<640?filtersHeight:0);window.scrollTo({top:scrollTo,behavior:'smooth'});});});}};Drupal.behaviors.subscriptionDateSelect={attach:function(context){$(once('subscriptionDateSelect','#subscribe-form',context)).find('.year-type input').change(function(){if($(this).is(':checked'))Effia.updateSubscriptionDateSelect('subscription-date',$(this));});}};Drupal.behaviors.reinitPriceOnChangeTab={attach:function(){$('#results-tabs').on('change.zf.tabs',function(){var currentTab=Effia.getCurrentTab();if(!resultList[currentTab])effiaSearch.updateSearch();Drupal.behaviors.initializeMap.attach();$('#'+currentTab+' .result-item').each(function(){if($(this).hasClass('hide'))$('.map .label-content[data-result-item-id='+$(this).data('id')+']').addClass('hide');else $('.map .label-content[data-result-item-id='+$(this).data('id')+']').removeClass('hide');});});}};Drupal.behaviors.checkDateTimeReserve={attach:function(context){$('#reserve-form',context).find('#entry-date-picker-input, #exit-date-picker-input').change(function(){if(Effia.checkdateTimeReserve('reserve'))$reserveSubmit.trigger('enableSubmit');else $reserveSubmit.trigger('disableSubmit');});}};Drupal.behaviors.resultItemHover={attach:function(){var currentTab=Effia.getCurrentTab();$('#'+currentTab).find('li.result-item').on('mouseenter',function(){Drupal.behaviors.infoWindowBlockHover.attach($(this).data('id'),true);}).on('mouseleave',function(){Drupal.behaviors.infoWindowBlockHover.attach(null,false);});}};var effiaSearch={updateSearch:function(){var currentTab=Effia.getCurrentTab();localStorage.removeItem('parkingsList');resultList[currentTab]=$('#'+currentTab).find('ul.results--list').find('.result-item');Drupal.behaviors.customSpinner.attach();$('#'+currentTab+' .submit').trigger('disableSubmit');effiaSearch.disableForm();if(!csrfToken)$.ajax('/session/token',{success:function(data){csrfToken=data;if(resultList[currentTab].length>0)$(resultList[currentTab]).each(function(){effiaSearch.updateParking($(this),currentTab);});else effiaSearch.enableForm();}});else $(resultList[currentTab]).each(function(){effiaSearch.updateParking($(this),currentTab);});},updateParking:function($parking,currentTab){$parking.children('.spinner-container').trigger('displaySpinner');var solrId=parseInt($parking.attr('data-solr-id').replace(/\D/g,''));var formId=$('#'+currentTab+' form').attr('id');var pocheId=$parking.attr('data-poche-id');if(typeof requestData[formId]==='undefined')requestData[formId]=[];var oldData=requestData[formId][pocheId];var newData=effiaSearch.buildData(formId,pocheId,solrId);var dataToSend=newData;newData=JSON.stringify(newData);if($parking.hasClass('hide')||$parking.attr('data-available-online')==='0'||oldData===newData){var $lastParking=$(resultList[currentTab][resultList[currentTab].length-1]);effiaSearch.updateLink($parking,formId);$parking.children('.spinner-container').trigger('hideSpinner');
16if(pocheId===$lastParking.data('poche-id'))effiaSearch.enableForm();$parking.find('.not-available.hide').removeClass('hide');effiaSearch.updateDistances(currentTab);return;}requestData[formId][pocheId]=newData;if(currentTab==='reserve')dataToSend.options.orderType='default';else{if(currentTab==='subscribe')dataToSend.options.orderType='subscription';}var querySearch=new URLSearchParams(window.location.search);dataToSend.options.querySearch=querySearch.get('q');if(window.location.pathname.includes('widget')&&!endpoints[currentTab].includes('widget'))endpoints[currentTab]+='&widget=true';if(Effia.getUrlParam('booking_channel'))dataToSend.options.booking_channel=Effia.getUrlParam('booking_channel');$.ajax({type:'GET',url:endpoints[currentTab],dataType:'json',contentType:'application/json',data:dataToSend,success:function(data){$parking.replaceWith(data);$('.result-item .not-available.hide').removeClass('hide');effiaSearch.updateDistances(currentTab).then(function(){effiaSearch.sortResults(currentTab);Drupal.behaviors.initializeMap.attach();Drupal.behaviors.resultItemHover.attach();});},error:function(_error){$parking.find('.not-available.hide').removeClass('hide');}}).always(function(_data){$parking.children('.spinner-container').trigger('hideSpinner');effiaSearch.enableForm();});},disableForm:function(){$('.results--filters').addClass('disabled');$('.tabs-forms.results-tab').addClass('disabled');},enableForm:function(){if($.active<=1){$('.results--filters').removeClass('disabled');$('.tabs-forms.results-tab').removeClass('disabled');}},updateLink:function($parking,formId){var premiumValue='FALSE';var electricValue='FALSE';var orderType='default';if($('input#services-premium').is(':checked'))premiumValue='TRUE';else{if($('input#vehicule-electrique').is(':checked'))electricValue='TRUE';}if(formId==='subscribe-form')orderType='subscription';$parking.find('.product-link').attr('href',function(i,a){return a.replace(/(premium=)[a-z]+/ig,'$1'+premiumValue).replace(/(electric=)[a-z]+/ig,'$1'+electricValue).replace(/(orderType=)[a-z]+/ig,'$1'+orderType);});},updateDistances:function(currentTab){var dfd=$.Deferred();var lat=Effia.getUrlParam('lat');var lng=Effia.getUrlParam('lng');if(lat!==lng){var origin={lat:parseFloat(lat),lng:parseFloat(lng)};var storedOrigin=localStorage.getObject('origin');if(!storedOrigin||storedOrigin.lat!==origin.lat||storedOrigin.lng!==origin.lng){localStorage.setObject('origin',origin);localStorage.removeItem('allParkings');}var parkingsList=localStorage.getObject('parkingsList');var previousTab=localStorage.getItem('previousTab');
16var parkings=this.getParkings();var shouldCallGoogle=false;var parkingsToQuery=[];if(!parkingsList||JSON.stringify(parkingsList)!==JSON.stringify(parkings)||currentTab!==previousTab){localStorage.setObject('parkingsList',parkings);localStorage.setItem('previousTab',currentTab);let allParkings=localStorage.getObject('allParkings')||[];parkingsToQuery=parkings.filter((parking)=>{return !allParkings.some((existingParking)=>existingParking[0]&&existingParking[0].lat===parking.lat&&existingParking[0].lng===parking.lng);});shouldCallGoogle=parkingsToQuery.length>0;}if(parkings.length){let allParkings=localStorage.getObject('allParkings')||[];if(shouldCallGoogle){if(typeof googleMatrixService==='undefined')googleMatrixService=new google.maps.DistanceMatrixService();googleMatrixService.getDistanceMatrix({origins:[origin],destinations:parkingsToQuery,travelMode:'WALKING',unitSystem:google.maps.UnitSystem.METRIC,avoidHighways:false,avoidTolls:false},function(response,status){if(status!=='OK')console.error(status);else{let results=response.rows[0].elements;let newParkingResults=parkingsToQuery.map((parking,index)=>[parking,results[index]]);let updatedAllParkings=[...allParkings];newParkingResults.forEach((newParking)=>{if(!updatedAllParkings.some((existing)=>existing[0]&&existing[0].lat===newParking[0].lat&&existing[0].lng===newParking[0].lng))updatedAllParkings.push(newParking);});localStorage.setObject('allParkings',updatedAllParkings);effiaSearch.updateDistancesMarkup(parkings,updatedAllParkings);dfd.resolve(updatedAllParkings);}});}else{effiaSearch.updateDistancesMarkup(parkings,allParkings);dfd.resolve(allParkings);}}}return dfd;},updateDistance:function(parking,distance,time){$('.tabs-panel.is-active .result-item[data-lat="'+parking.lat+'"][data-lng="'+parking.lng+'"]').each(function(){$(this).attr('data-distance',distance);$(this).find('span.km-distance').html(Drupal.t('in @km km',{'@km':distance}));$(this).find('span.separator').html('/');$(this).find('span.walking-distance').html(Drupal.t('@min min on foot',{'@min':time}));});},updateDistancesMarkup:function(parkings,allParkings){for(var i=0;i<allParkings.length;i++){var parking=undefined;for(let j=0;j<parkings.length;j++)if(parkings[j].lat===allParkings[i][0].lat&&parkings[j].lng===allParkings[i][0].lng){parking=parkings[j];break;}if(parking!==undefined){var distance=(allParkings[i][1].distance.value/1000).toFixed(2);var time=(allParkings[i][1].duration.value/60).toFixed(0);if(time>59){var timeHour=(time/60).toFixed(0);var timeMinute=time%60;time=timeHour+' h '+timeMinute;}effiaSearch.updateDistance(parking,distance,time);}}},sortResults:function(currentTab){var tab;if(currentTab==='undefined')tab=Effia.getCurrentTab();else tab=currentTab;var currentList=$('#'+tab);var itemList=currentList.find('.result-item');if(currentList.find('.button.prix').hasClass('sort-active'))itemList=Effia.sortResultsByAttribute('data-price','asc',itemList);else itemList=Effia.sortResultsByAttribute('data-distance','asc',itemList);itemList=Effia.sortResultsByAttribute('data-available','desc',itemList);itemList=Effia.sortResultsByAttribute('data-available-online','desc',itemList);currentList.find('.results--list').empty().append(itemList);},getParkings:function(){var parkings=[];$('.tabs-panel.is-active').each(function(){$(this).find('li.result-item').each(function(){if(typeof $(this).data()['lat']!=='undefined'&&typeof $(this).data()['lng']!=='undefined')parkings.push({lat:parseFloat($(this).data()['lat']),lng:parseFloat($(this).data()['lng'])});});});return parkings;},buildData:function(formId,pocheId,solrId){var options={id:pocheId,solr_id:solrId};if(formId==='reserve-form'||formId==='widget-booking--form--bookplace'){options.entry=effiaSearch.momentGetTimestamp($('#entry-date-picker-input').val());options.exit=effiaSearch.momentGetTimestamp($('#exit-date-picker-input').val());}else{if(formId==='subscribe-form'){options.year=$('.year-type .year-dropdown span.checkbox.checked').prev('input').val();var $month=$('.month-type .month-dropdown span.checkbox.checked').prev('input');var targetedMonth=parseInt($month.val())+1;options.month=(targetedMonth<10?'0':'')+targetedMonth;}}return {options};},momentGetTimestamp:function(date){var dateSplit=date.split(' ');var parsedTime=dateSplit[2].split(':');var parsedDate=dateSplit[1].split('/');var newDate=new Date(parsedDate[2],parsedDate[1]-1,parsedDate[0],parsedTime[0],parsedTime[1]);return Math.floor(newDate.getTime()/1000);},shouldUpdateSearch:function(form){var formData=effiaSearch.buildData(form.id,null,null);var newData=JSON.stringify(formData);if((JSON.stringify(form.data)!==JSON.stringify(newData))){form.data=newData;var currentDate=new Date();if(form.id==='reserve-form'&&!window.drupalSettings.path.currentPath.includes('widget')){var startDate=Effi
16a.getDate(moment.unix(formData.options.entry).format('DD-MM-YYYY HH:mm'));var endDate=Effia.getDate(moment.unix(formData.options.exit).format('DD-MM-YYYY HH:mm'));if(startDate instanceof Date&&!isNaN(startDate.getTime())&&endDate instanceof Date&&!isNaN(endDate.getTime()))if(currentDate<startDate&&startDate<endDate)return true;}else{if(form.id==='subscribe-form'){var subscribeStartDate=Effia.getDate('01-'+moment().month(formData.options.month-1).format('MM')+'-'+formData.options.year+'T00:00');if(subscribeStartDate instanceof Date&&!isNaN(subscribeStartDate.getTime()))if(currentDate<subscribeStartDate)return true;}}}return false;}};Storage.prototype.setObject=function(key,value){this.setItem(key,JSON.stringify(value));};Storage.prototype.getObject=function(key){var value=this.getItem(key);return value&&JSON.parse(value);};Drupal.behaviors.revealExtraFilters={attach:function(_context){$('span.reveal-options').on('click',function(){$('.extra-option').toggleClass('is-visible');});}};}(jQuery,Drupal,drupalSettings,google,Effia,Foundation));;
17(function($,Drupal,drupalSettings){function waitForGoogleMaps(){return new Promise((resolve)=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary)resolve();else{const checkGoogleMaps=setInterval(()=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary){clearInterval(checkGoogleMaps);resolve();}},100);}});}Drupal.behaviors.effiaSearchAutocomplete={attach:async function(context){await waitForGoogleMaps();const {Autocomplete}=await google.maps.importLibrary("places");var $mobileOpenSearchDropdown=$(context).find('.mobile-header--open-search-dropdown');var $mobileDropdown=$(context).find('.mobile-header--search .is-dropdown-submenu-parent');var openMobileSearchDropdown=function(form){if($mobileOpenSearchDropdown.length)if(!$mobileDropdown.hasClass('is-active')){$mobileDropdown.addClass('is-active');if(form)redirectToSearchPage(form);}};var redirectToSearchPage=function(form){var geocoder=new google.maps.Geocoder();var address=$(form).find('.effia-search-form-input').val().replace(/\b(?:sncf|SNCF|Sncf)\b/gm,'');if(address==="")address=addressDesktop=$('.desktop-header').find('.effia-search-form-input').val().replace(/\b(?:sncf|SNCF|Sncf)\b/gm,'');geocoder.geocode({address},function(results,status){if(status===google.maps.GeocoderStatus.OK){var address=results[0]['address_components'];var city='';for(var i=0;i<address.length;i++)if($.inArray("locality",address[i]['types'])!==-1||$.inArray("train_station",address[i]['types'])!==-1){city=address[i].long_name;break;}var lat=results[0].geometry.location.lat();var lng=results[0].geometry.location.lng();var searchPath='search?lat='+lat.toFixed(4)+'&lng='+lng.toFixed(5)+'&q='+city.toLowerCase();var orderType=getUrlParam('orderType');if(orderType!=="0")searchPath+='&orderType='+orderType;var baseUrl='/'+drupalSettings.path.pathPrefix;document.location.href=baseUrl+searchPath;}else{$(form).addClass('has-error');$(form).find('.search-error-message').html(Drupal.t('Please enter a valid location.'));openMobileSearchDropdown(null);}});};var getUrlParam=function(name){var results=new RegExp('[\?&]'+name+'=([^&#]*)').exec(window.location.href);if(results)return results[1];return 0;};$(once('effiaSearchForm','form[id*="effia-search-form"]',context)).each(function(){var form=this;$(this).submit(function(event){if(event.isTrigger)redirectToSearchPage(form);return false;});var $effiaSearchFormInput=$(this).find('.effia-search-form-input');if(typeof $effiaSearchFormInput[0]!=='undefined'){var options={componentRestrictions:{country:'FR'}};var autocomplete=new Autocomplete($effiaSearchFormInput[0],options);autocomplete.setFields(['address_components','formatted_address','geometry','name','place_id']);google.maps.event.addListener(autocomplete,'place_changed',function(){openMobileSearchDropdown(form);setTimeout(function(){$(form).submit();},500);});var $cleaSearch=$('<span class="clear-search"></span>').on('click',function(){$effiaSearchFormInput.val('');});$effiaSearchFormInput.after($cleaSearch);}$effiaSearchFormInput.on('change',function(){if($(this)[0].value!==''){$(this).parents('form').removeClass('has-error');$(this).parents('form').find('.search-error-message').html('');}});});}};}(jQuery,Drupal,drupalSettings));;
18(function($,Drupal,drupalSettings,google,Effia){function waitForGoogleMaps(){return new Promise((resolve)=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary)resolve();else{const checkGoogleMaps=setInterval(()=>{if(typeof google!=='undefined'&&google.maps&&google.maps.importLibrary){clearInterval(checkGoogleMaps);resolve();}},100);}});}Drupal.behaviors.effiaHomepageSearchAutocomplete={attach:async function(context){await waitForGoogleMaps();var $submitDesktop=$(context).find('[id^="home-booking"]').find('.submit');var $submitMobile=$(context).find('[id^="home-booking-mobile"]').find('.submit');const {Autocomplete}=await google.maps.importLibrary("places");var redirectToSearchPage=function(form){if($(form).is(":visible")){var geocoder=new google.maps.Geocoder();var address=$(form).find('.place-input').val().replace(/\b(?:sncf|SNCF|Sncf)\b/gm,'');geocoder.geocode({address},function(results,status){if(status===google.maps.GeocoderStatus.OK){var address=results[0]['address_components'];var city='';for(var i=0;i<address.length;i++)if($.inArray("locality",address[i]['types'])!==-1||$.inArray("train_station",address[i]['types'])!==-1){city=address[i].long_name;break;}var params={lat:results[0].geometry.location.lat().toFixed(4),lng:results[0].geometry.location.lng().toFixed(5),q:city.toLowerCase(),orderType:'subscription'};
18if($(form)[0].id==='home-booking--form--bookplace'){params['orderType']='default';var entryDate=$(form).find('input#entry-date-picker-input').val();if(typeof entryDate!=='undefined'&&entryDate!==''){var entry=moment(Effia.getDate(entryDate));params['entry']=entry.format('YYYY-MM-DD\THH:mm');}var exitDate=$(form).find('input#exit-date-picker-input').val();if(typeof exitDate!=='undefined'&&exitDate!==''){var exit=moment(Effia.getDate(exitDate));if(typeof entryDate!=='undefined'&&entryDate!==''&&moment(Effia.getDate(entryDate))>exitDate)exitDate=moment(Effia.getDate(entryDate)).add(1,'hours');params['exit']=exit.format('YYYY-MM-DD\THH:mm');}}var url='/'+drupalSettings.path.pathPrefix+'search?';$.each(params,function(index,value){if(url.slice(-1)==='?')url+=index+'='+value;else url+='&'+index+'='+value;});document.location.href=url;}else{$(form).addClass('has-error');$(form).find('.search-error-message').html(Drupal.t('Please enter a valid location.'));}});}};$(once('effiaSearchForm',context===document?'html':context)).each(function(){$(once('checkDateTimeReserveDesktop',$(this).find('[id^="home-booking"]').find('.date-picker input'))).change(function(){var result=Effia.checkdateTimeReserve('reserve');
18if(result)$submitDesktop.trigger('enableSubmit');else $submitDesktop.trigger('disableSubmit');});$(once('checkDateTimeReserveMobile',$(this).find('[id^="home-booking-mobile"]').find('.date-picker input'))).change(function(){var result=Effia.checkdateTimeReserve('reserve-mobile');if(result)$submitMobile.trigger('enableSubmit');else $submitMobile.trigger('disableSubmit');});$(context).find('form[id^="home-booking--form--"]').submit(function(){if($(context).find('.submit.disabled').length<=1)redirectToSearchPage(this);return false;});$(once('searchAutocompleteInput',$(this).find('.place-input'))).each(function(){if(typeof $(this)[0]!=='undefined'&&typeof google!=='undefined'){var options={componentRestrictions:{country:'FR'}};var autocomplete=new Autocomplete($(this)[0],options);autocomplete.setFields(['address_components','formatted_address','geometry','name','place_id']);}});$(once('setUpGeolocation',$(this).find('.geoloc'))).on('click',function(){if(navigator.geolocation)navigator.geolocation.getCurrentPosition(setCurrentPosition);});});var setCurrentPosition=function(position){var geocoder=new google.maps.Geocoder();geocoder.geocode({location:new google.maps.LatLng(position.coords.latitude,position.coords.longitude)},function(results,status){if(status===google.maps.GeocoderStatus.OK){$(context).find('form[id^="home-booking--form--"]').find('input.place-input').val(results[0].formatted_address);$submitDesktop.trigger('enableSubmit');}});};}};}(jQuery,Drupal,drupalSettings,google,Effia));;
19!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t;}:n(jQuery);}(function(t){var e,n,s,p,r,o,h,f,g,m,y,v,i,a,_,s=((u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?n=u:u={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,a=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),r=i[0],t=t[1];return e=i[1],r&&(n=x(r=l(r,t))),r?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s);})):l(e,t):(r=(i=c(e=l(e,t)))[0],e=i[1],r&&(n=x(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n};},f={require:function(e){return w(e);},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={};},module:function(e){return {id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{};})};var t;}},r=function(e,t,n,s){var i,r,o,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(r=(o=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===r)c[a]=f.exports(e),l=!0;else if("module"===r)i=c[a]=f.module(e);else if(b(g,r)||b(m,r)||b(v,r))c[a]=x(r);else{if(!o.p)throw new Error(e+" missing "+r);o.p.load(o.n,w(s,!0),function(t){return function(e){g[t]=e;};}(r),{}),c[a]=g[r];}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u));}else e&&(g[e]=n);},e=n=o=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((y=e).deps&&o(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p;}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?r(p,e,t,n):setTimeout(function(){r(p,e,t,n);},4),o;},o.config=function(e){return o(e);},e._defined=g,(s=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n]);}).amd={jQuery:!0},u.requirejs=e,u.require=n,u.define=s),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e;}),u.define("select2/utils",["jquery"],function(r){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s;}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e;}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i(),e.__super__=t.prototype,e;},s.Decorate=function(s,i){var e=c(i),t=c(s);function r(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments);}i.displayName=s.displayName,r.prototype=new function(){this.constructor=r;}();for(var n=0;n<t.length;n++){var o=t[n];r.prototype[o]=s.prototype[o];}for(var a=0;a<e.length;a++){var l=e[a];r.prototype[l]=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments);};}(l);}return r;};function e(){this.listeners={};}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t];},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
19);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e) in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*" in this.listeners&&this.invoke(this.listeners["*"],arguments);},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t);},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t;},s.bind=function(e,t){return function(){e.apply(t,arguments);};},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1)) in s||(s[r]={}),i==n.length-1&&(s[r]=e[t]),s=s[r];}delete e[t];}}return e;},s.hasScroll=function(e,t){var n=r(t),s=t.style.overflowX,i=t.style.overflowY;return (s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth));},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return "string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e];});},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t;},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n;},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:r(e).data(t):s.__cache[n];},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id");},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-");}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-");}),t=n.concat(t);e.setAttribute("class",t.join(" "));},s;}),u.define("select2/results",["jquery","./utils"],function(d,p){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this);}return p.Extend(s,p.Observable),s.prototype.render=function(){var e=d('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e;},s.prototype.clear=function(){this.$results.empty();},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n);},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove();},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],s=this.option(s);t.push(s);}this.$results.append(t);}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});},s.prototype.position=function(e,t){t.find(".select2-results").append(e);},s.prototype.sort=function(e){return this.options.get("sorter")(e);},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible();},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString();});t.$results.find(".select2-results__option--selectable").each(function(){var e=d(this),t=p.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"));});});},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e);},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove();},s.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n,s={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(n in (null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),s){var r=s[n];t.setAttribute(n,r);}if(e.children){var o=d(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],u=this.option(u);l.push(u);}i=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});i.append(l),o.append(a),o.append(i);}else this.template(e,t);return p.StoreData(t,"data",e),t;},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem());}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses();}),t.on("query",function(e){i.hideMessages(),i.showLoading(e);}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem());}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem());}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible();}
19),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant");}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup");}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=p.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}));}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(e=s-1,0===t.length&&(e=0),(s=n.eq(e)).trigger("mouseenter"),t=i.$results.offset().top,n=s.offset().top,s=i.$results.scrollTop()+(n-t),0===e?i.$results.scrollTop(0):n-t<0&&i.$results.scrollTop(s));}),t.on("results:next",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t)+1;s>=n.length||((e=n.eq(s)).trigger("mouseenter"),t=i.$results.offset().top+i.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=i.$results.scrollTop()+n-t,0===s?i.$results.scrollTop(0):t<n&&i.$results.scrollTop(e));}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true");}),t.on("results:message",function(e){i.displayMessage(e);}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation());}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=d(this),n=p.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{}):i.trigger("select",{originalEvent:e,data:n});}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=p.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:d(this)});});},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted");},s.prototype.destroy=function(){this.$results.remove();},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),s=this.$results.offset().top,t=i.offset().top,n=this.$results.scrollTop()+(t-s),s=t-s,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n));},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),e=n(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=s(e):d(t).append(e);},s;}),u.define("select2/keys",[],function(){return {BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this);}return s.Extend(r,s.Observable),r.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e;},r.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e);}),this.$selection.on("blur",function(e){n._handleBlur(e);}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault();}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId);}),e.on("selection:update",function(e){n.update(e.data);}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e);}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
19se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e);}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false");}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true");});},r.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e);},1);},r.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close");});});},r.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id);},r.prototype.position=function(e,t){t.find(".selection").append(e);},r.prototype.destroy=function(){this._detachCloseHandler(this.container);},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.");},r.prototype.isEnabled=function(){return !this.isDisabled();},r.prototype.isDisabled=function(){return this.options.get("disabled");},r;}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments);}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e;},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e});}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus");});},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title");},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t));},i.prototype.selectionContainer=function(){return e("<span></span>");},i.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear();},i;}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function r(e,t){r.__super__.constructor.apply(this,arguments);}return c.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e;},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var s=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e});}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}));}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation();});},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title");},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t));},r.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>');},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],r=this.selectionContainer(),o=this.display(i,r),a=n+c.generateChars(4)+"-";
19i.id?a+=i.id:a+=c.generateChars(4),r.find(".select2-selection__choice__display").append(o).attr("id",a);var l=i.title||i.text;l&&r.attr("title",l);o=this.options.get("translations").get("removeItem"),l=r.find(".select2-selection__choice__remove");l.attr("title",o()),l.attr("aria-label",o()),l.attr("aria-describedby",a),c.StoreData(r[0],"data",i),t.push(r);}this.$selection.find(".select2-selection__rendered").append(t);}},r;}),u.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n);}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t;},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");t=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",t),n;},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();t=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(t);},e;}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e);}),t.on("keypress",function(e){s._handleKeyboardClear(e,t);});},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var r={data:s};if(this.trigger("clear",r),r.prevented)this.$element.val(i);else{for(var o=0;o<s.length;o++)if(r={data:s[o]},this.trigger("unselect",r),r.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{});}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t);},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(n=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),(e=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",s()),e.attr("aria-label",s()),e.attr("aria-describedby",n),a.StoreData(e[0],"data",t),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"));},e;}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n);}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t());e=e.call(this);return this._transferTabIndex(),e.append(this.$searchContainer),e;},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",r=t.id+"-container";e.call(this,t,n),s.$search.attr("aria-describedby",r),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus");}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus");}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex();}),t.on("disable",function(){s.$search.prop("disabled",!0);}),t.on("focus",function(e){s.$search.trigger("focus");}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant");}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e);}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e);}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;
19e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which!==l.BACKSPACE||""!==s.$search.val()||0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault());}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation();});var t=document.documentMode,o=t&&t<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){o?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search");}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;o&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e);});},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1");},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text);},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus");},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1;},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch();},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e);},e;}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return -1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t;},e;}),u.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(t=t||{},n=o.Event("select2:"+e,{params:t}),s.$element.trigger(n),-1!==r.indexOf(e)&&(t.prevented=n.isDefaultPrevented()));});},e;}),u.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{};}return s.prototype.all=function(){return this.dict;},s.prototype.get=function(e){return this.dict[e];},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict);},s._cache={},s.loadPath=function(e){var t;
19return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e]);},s;}),u.define("select2/diacritics",[],function(){return {"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"
19c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"};}),u.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this);}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.");},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.");},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e;},s;}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this);}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e));}));},n.prototype.select=function(i){var e,r=this;if(i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s);}r.$element.val(t),r.$element.trigger("input").trigger("change");}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"));},n.prototype.unselect=function(i){var r=this;if(this.$element.prop("multiple")){if(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s);}r.$element.val(t),r.$element.trigger("input").trigger("change");});}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data);}),e.on("unselect",function(e){n.unselect(e.data);});},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this);});},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e));}),e({results:n});},n.prototype.addOptions=function(e){this.$element.append(e);},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t);},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else{if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var s=e.children("option"),i=[],r=0;r<s.length;r++){var o=l(s[r]),o=this.item(o);i.push(o);}t.children=i;}}return (t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t;},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e);},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t);},n;}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t);}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert));},s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString();});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n);},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id;}).get(),i=[];for(var r=0;r<e.length;r++){var o,a,l=this._normalizeItem(e[r]);0<=s.indexOf(l.id)?(o=n.filter(function(e){return function(){return c(this).val()==e.id;};}(l)),a=this.item(o),a=c.extend(!0,{},l,a),a=this.option(a),o.replaceWith(a)):(a=this.option(l),l.children&&(l=this.convertToOptions(l.children),a.append(l)),i.push(a));}return i;},s;}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t);}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term});},transport:function(e,t,n){e=r.ajax(e);return e.then(t),e.fail(n),e;}};return r.extend({},t,e,!0);},n.prototype.processResults=function(e){return e;},n.prototype.query=function(t,n){var s=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var i=r.extend({type:"GET"},this.ajaxOptions);function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e);},function(){"status" in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"});});s._request=e;}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e();},n;}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);i=n.get("insertTag");if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var r=0;r<s.length;r++){var o=s[r],o=this._normalizeItem(o),o=this.option(o);this.$element.append(o);}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var r=s[i],o=null!=r.children&&!e({results:r.children},!0);if((r.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return !n&&(t.data=s,void u(t));}if(n)return !0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t);}):e.call(this,c,u);},e.prototype.createTag=function(e,t){if(null==t.term)return null;t=t.term.trim();return ""===t?null:{id:t,text:t};},e.prototype.insertTag=function(e,t,n){t.unshift(n);},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove();});},e;}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n);}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field");},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===n.id;}).length||((t=s.option(n)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([t])),t=n,s.trigger("select",{data:t});});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n);},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],r=t.term,o=0,a=this.createTag||function(e){return {id:e.term,text:e.term};};o<r.length;){var l=r[o];-1!==i.indexOf(l)?(l=r.substr(0,o),null!=(l=a(c.extend({},t,{term:l})))?(s(l),r=r.substr(o+1)||"",o=0):o++):o++;}return {term:r};},e;}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n);}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n);},e;}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n);}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n);},e;}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n);}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected();});},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n);});},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t();});},e;}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this);}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e;},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove();},n;}),u.define("select2/dropdown/search",["jquery"],function(r){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("translations").get("search"),e=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t.prepend(e),t;},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._
19keyUpPrevented=e.isDefaultPrevented();}),this.$search.on("input",function(e){r(this).off("keyup");}),this.$search.on("keyup input",function(e){s.handleSearch(e);}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus");},0);}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur");}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus");}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"));}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant");});},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1;},e.prototype.showSearch=function(e,t){return !0;},e;}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s);}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t);},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t;},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1);}return n;},e;}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1;}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded());},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0;}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0;}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this));},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore());},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e);},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more;},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e;},e;}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,o){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n);}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t);}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t);}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation();});},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove();},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n;},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t;},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach();},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown();}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown();}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown();}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown();}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown();}),this._containerResultsHandlersBound=!0);},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.
19select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id,t=this.$container.parents().filter(o.hasScroll);t.each(function(){o.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()});}),t.on(s,function(e){var t=o.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y);}),u(window).on(s+" "+i+" "+r,function(e){n._positionDropdown(),n._resizeDropdown();});},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(o.hasScroll).off(n),u(window).off(n+" "+s+" "+t);},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=i.top,r.bottom=i.top+r.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-o,e=l>i.bottom+o,a={left:i.left,top:r.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());i={top:0,left:0};(u.contains(document.body,l[0])||l[0].isConnected)&&(i=l.offset()),a.top-=i.top,a.left-=i.left,t||n||(s="below"),e||!c||t?!c&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(a.top=r.top-i.top-o),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(a);},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e);},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown();},e;}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s);}return e.prototype.showSearch=function(e,t){return !(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++;}return n;}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t);},e;}),u.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e);});},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return;}n=this.getHighlightedResults();n.length<1||(null!=(n=s.GetData(n[0],"data")).element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n}));},e;}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e);}),t.on("unselect",function(e){s._selectTriggered(e);});},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t});},e;}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return -1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t;},e;}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var n=t.first(),t=s.GetData(n[0],"data").element;if(t&&t.getAttribute&&"true"===t.getAttribute("data-select2-tag"))return void n.trigger("mouseenter");}e.call(this);},e;}),u.define("select2/i18n/en",[],function(){return {errorLoading:function(){return "The results could not be loaded.";},inputTooLong:function(e){var t=e.input.length-e.maximum,e="Please delete "+t+" character";return 1!=t&&(e+="s"),e;},inputTooShort:function(e){return "Please enter "+(e.minimum-e.input.length)+" or more characters";},loadingMore:function(){return "Loading more results…";},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t;},noResults:function(){return "No results found";},searching:function(){return "Searching…";},removeAllItems:function(){return "Remove all items";},removeItem:function(){return "Remove item";},search:function(){return "Search";}};}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,r,o,a,c,u,d,p,h,f,g,t,m,y,v,_,b,$,w,x,A,D,S,E,O,C,L,T,q,I,e){function n(){this.reset();}return n.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=r,
vendor: 1,371 bytes, line 19
19null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),e.tags&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=o,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i);}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e;},n.prototype.reset=function(){function a(e){return e.replace(/[^\u
190000-\u007E]/g,function(e){return t[e]||e;});}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s);}var r=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return -1<r.indexOf(o)?n:null;},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e;},templateResult:function(e){return e.text;},templateSelection:function(e){return e.text;},theme:"default",width:"resolve"};},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=t,e;},n.prototype._resolveLanguage=function(e){if(!e)return [];if(l.isEmptyObject(e))return [];if(l.isPlainObject(e))return [e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s;},n.prototype._processTranslations=function(e,t){for(var n=new g(),s=0;s<e.length;s++){var i=new g(),r=e[s];if("string"==typeof r)try{i=g.loadPath(r);}catch(e){try{r=this.defaults.amdLanguageBase+r,i=g.loadPath(r);}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.');}}else i=l.isPlainObject(r)?new g(r):r;n.extend(i);}return n;},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;n=f._convertData(n);l.extend(!0,this.defaults,n);},new n();}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options);}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl")));var n={};function s(e,t){return t.toUpperCase();}for(var i=0;i<e[0].attributes.length;i++){var r=e[0].attributes[i].name,o="data-";r.substr(0,o.length)==o&&(r=r.substring(o.length),o=u.GetData(e[0],r),n[r.replace(/-([a-z])/g,s)]=o);}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this;},e.prototype.get=function(e){return this.options[e];},e.prototype.set=function(e,t){this.options[e]=t;},e;}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,r,s){var o=function(e,t){null!=r.GetData(e[0],"select2")&&r.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new i(t,e),o.__super__.constructor.call(this);var n=e.attr("tabindex")||0;r.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");t=this.options.get("dataAdapter");this.dataAdapter=new t(e,this.options);n=this.render();this._placeContainer(n);t=this.options.get("selectionAdapter");this.selection=new t(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,n);t=this.options.get("dropdownAdapter");this.dropdown=new t(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,n);n=this.options.get("resultsAdapter");this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var s=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e});}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),r.StoreData(e[0],"select2",this),e.data("select2",this);};return r.Extend(o,r.Observable),o.prototype._generateId=function(e){return "select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+r.generateChars(2):r.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"");},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t);},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element");}if("element"==t){s=e.outerWidth(!1);return s<=0?"auto":s+"px";}if("style"!=t)return "computedstyle"!=t?t:window.getComputedStyle(e[0]).width;e=e.attr("style");if("string"!=typeof e)return null;for(var i=e.split(";"),r=0,o=i.length;r<o;r+=1){var a=i[r].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1];}return null;},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container);},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e});});}),this.$element.on("focus.select2",function(e){t.trigger("focus",e);}),this._syncA=r.bind(this._syncAttributes,this),this._syncS=r.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e);}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1});},o.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t);});},o.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown();}),this.selection.on("focus",function(e){n.focus(e);}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t);});},o.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t);});},o.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t);});},o.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open");}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open");}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled");}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled");}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus");}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t});});}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t});});}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault());});},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{});},o.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return !0;}else{if(e.removedNodes&&0<e.removedNodes.length)return !0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e);});}return !1;},o.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e});});},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i=s[e],s={prevented:!1,name:e,args:t};if(n.call(this,i,s),s.prevented)return void (t.prevented=!0);}n.call(this,e,t);},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open());},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{});},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e});},o.prototype.isEnabled=function(){return !this.isDisabled();},o.prototype.isDisabled=function(){return this.options.get("disabled");},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open");},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus");}
19,o.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}));},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null==e||0===e.length?[!0]:e)[0];this.$element.prop("disabled",e);},o.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e;}),t;},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString();})),this.$element.val(e).trigger("input").trigger("change");},o.prototype.destroy=function(){r.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",r.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),r.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null;},o.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),r.StoreData(e[0],"element",this.$element),e;},o;}),u.define("jquery-mousewheel",["jquery"],function(e){return e;}),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,r,t,o){var a;return null==i.fn.select2&&(a=["open","close","destroy"],i.fn.select2=function(t){if("object"==typeof (t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new r(i(this),e);}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s);}),-1<a.indexOf(t)?this:n;}),null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),r;}),{define:u.define,require:u.require});function b(e,t){return i.call(e,t);}function l(e,t){var n,s,i,r,o,a,l,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."===d&&(0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2));e=e.join("/");}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(s=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(i=h[p.slice(0,u).join("/")],i=i&&i[s]){r=i,o=c;break;}if(r)break;!a&&f&&f[s]&&(a=f[s],l=c);}!r&&a&&(r=a,o=l),r&&(n.splice(0,o,r),e=n.join("/"));}return e;}function w(t,n){return function(){var e=a.call(arguments,0);return "string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(p,e.concat([t,n]));};}function x(e){var t;if(b(m,e)&&(t=m[e],delete m[e],v[e]=!0,r.apply(p,t)),!b(g,e)&&!b(v,e))throw new Error("No "+e);return g[e];}function c(e){var t,n=e?e.indexOf("!"):-1;return -1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e];}function A(e){return e?c(e):[];}var u=s.require("jquery.select2");return t.fn.select2.amd=s,u;});;
20!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return {errorLoading:function(){return "Les résultats ne peuvent pas être chargés.";},inputTooLong:function(e){var n=e.input.length-e.maximum;return "Supprimez "+n+" caractère"+(n>1?"s":"");},inputTooShort:function(e){var n=e.minimum-e.input.length;return "Saisissez au moins "+n+" caractère"+(n>1?"s":"");},loadingMore:function(){return "Chargement de résultats supplémentaires…";},maximumSelected:function(e){return "Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"");},noResults:function(){return "Aucun résultat trouvé";},searching:function(){return "Recherche en cours…";},removeAllItems:function(){return "Supprimer tous les éléments";},removeItem:function(){return "Supprimer l'élément";}};}),e.define,e.require;}();;
21!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return {errorLoading:function(){return "The results could not be loaded.";},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r;},inputTooShort:function(e){return "Please enter "+(e.minimum-e.input.length)+" or more characters";},loadingMore:function(){return "Loading more results…";},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n;},noResults:function(){return "No results found";},searching:function(){return "Searching…";},removeAllItems:function(){return "Remove all items";},removeItem:function(){return "Remove item";},search:function(){return "Search";}};}),e.define,e.require;}();;
22!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u;}return {errorLoading:function(){return "Невозможно загрузить результаты";},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше";},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов");},loadingMore:function(){return "Загрузка данных…";},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов");},noResults:function(){return "Совпадений не найдено";},searching:function(){return "Поиск…";},removeAllItems:function(){return "Удалить все элементы";}};}),n.define,n.require;}();;
23(function($,Drupal,drupalSettings){Drupal.behaviors.customSelectDriverSearch={attach:function(context,settings){const select2Options={theme:'',dropdownCssClass:'form-element-wrapper',language:drupalSettings.language};$('.js-driver-information-select2').select2(select2Options);}};})(jQuery,Drupal,drupalSettings);;
24;(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):global.moment=factory();}(this,(function(){'use strict';var hookCallback;function hooks(){return hookCallback.apply(null,arguments);}function setHookCallback(callback){hookCallback=callback;}function isArray(input){return (input instanceof Array||Object.prototype.toString.call(input)==='[object Array]');}function isObject(input){return (input!=null&&Object.prototype.toString.call(input)==='[object Object]');}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b);}
24function isObjectEmpty(obj){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(obj).length===0;else{var k;for(k in obj)if(hasOwnProp(obj,k))return false;return true;}}function isUndefined(input){return input===void 0;}function isNumber(input){return (typeof input==='number'||Object.prototype.toString.call(input)==='[object Number]');}function isDate(input){return (input instanceof Date||Object.prototype.toString.call(input)==='[object Date]');}function map(arr,fn){var res=[],i,arrLen=arr.length;for(i=0;i<arrLen;++i)res.push(fn(arr[i],i));return res;}function extend(a,b){for(var i in b)if(hasOwnProp(b,i))a[i]=b[i];if(hasOwnProp(b,'toString'))a.toString=b.toString;if(hasOwnProp(b,'valueOf'))a.valueOf=b.valueOf;return a;}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,true).utc();}function defaultParsingFlags(){return {empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false};}function getParsingFlags(m){if(m._pf==null)m._pf=defaultParsingFlags();return m._pf;}var some;if(Array.prototype.some)some=Array.prototype.some;else some=function(fun){var t=Object(this),len=t.length>>>0,i;for(i=0;i<len;i++)if(i in t&&fun.call(this,t[i],i,t))return true;return false;};function isValid(m){var flags=null,parsedParts=false,isNowValid=m._d&&!isNaN(m._d.getTime());if(isNowValid){flags=getParsingFlags(m);parsedParts=some.call(flags.parsedDateParts,function(i){return i!=null;});isNowValid=flags.overflow<0&&!flags.empty&&!flags.invalidEra&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||(flags.meridiem&&parsedParts));if(m._strict)isNowValid=isNowValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined;}if(Object.isFrozen==null||!Object.isFrozen(m))m._isValid=isNowValid;else return isNowValid;return m._isValid;}function createInvalid(flags){var m=createUTC(NaN);if(flags!=null)extend(getParsingFlags(m),flags);else getParsingFlags(m).userInvalidated=true;return m;}var momentProperties=(hooks.momentProperties=[]),updateInProgress=false;function copyConfig(to,from){var i,prop,val,momentPropertiesLen=momentProperties.length;if(!isUndefined(from._isAMomentObject))to._isAMomentObject=from._isAMomentObject;if(!isUndefined(from._i))to._i=from._i;if(!isUndefined(from._f))to._f=from._f;if(!isUndefined(from._l))to._l=from._l;if(!isUndefined(from._strict))to._strict=from._strict;if(!isUndefined(from._tzm))to._tzm=from._tzm;if(!isUndefined(from._isUTC))to._isUTC=from._isUTC;if(!isUndefined(from._offset))to._offset=from._offset;if(!isUndefined(from._pf))to._pf=getParsingFlags(from);if(!isUndefined(from._locale))to._locale=from._locale;if(momentPropertiesLen>0)for(i=0;i<momentPropertiesLen;i++){prop=momentProperties[i];val=from[prop];if(!isUndefined(val))to[prop]=val;}return to;}function Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if(updateInProgress===false){updateInProgress=true;hooks.updateOffset(this);updateInProgress=false;}}function isMoment(obj){return (obj instanceof Moment||(obj!=null&&obj._isAMomentObject!=null));}function warn(msg){if(hooks.suppressDeprecationWarnings===false&&typeof console!=='undefined'&&console.warn)console.warn('Deprecation warning: '+msg);}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(hooks.deprecationHandler!=null)hooks.deprecationHandler(null,msg);if(firstTime){var args=[],arg,i,key,argLen=arguments.length;for(i=0;i<argLen;i++){arg='';if(typeof arguments[i]==='object'){arg+='\n['+i+'] ';for(key in arguments[0])if(hasOwnProp(arguments[0],key))arg+=key+': '+arguments[0][key]+', ';arg=arg.slice(0,-2);}else arg=arguments[i];args.push(arg);}warn(msg+'\nArguments: '+Array.prototype.slice.call(args).join('')+'\n'+new Error().stack);firstTime=false;}return fn.apply(this,arguments);},fn);}var deprecations={};function deprecateSimple(name,msg){if(hooks.deprecationHandler!=null)hooks.deprecationHandler(name,msg);if(!deprecations[name]){warn(msg);deprecations[name]=true;}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(input){return ((typeof Function!=='undefined'&&input instanceof Function)||Object.prototype.toString.call(input)==='[object Function]');}function set(config){var prop,i;for(i in config)if(hasOwnProp(config,i)){prop=config[i];if(isFunction(prop))this[i]=prop;else this['_'+i]=prop;}this._config=config;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source);}function mergeConfigs(parentConfig,childConfig){var res=extend({},parentConfig),prop;for(prop in childConfig)if(hasOwnProp(childConfig,prop))if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){res[prop]={};extend(res[prop],parentConfig[prop]);extend(res[prop],childConfig[prop]);}else if(childConfig[prop]!=null)res[prop]=childConfig[prop];else delete res[prop];for(prop in parentConfig)if(hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop]))res[prop]=extend({},res[prop]);return res;}function Locale(config){if(config!=null)this.set(config);}var keys;if(Object.keys)keys=Object.keys;else keys=function(obj){var i,res=[];for(i in obj)if(hasOwnProp(obj,i))res.push(i);return res;};var defaultCalendar={sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'};function calendar(key,mom,now){var output=this._calendar[key]||this._calendar['sameElse'];return isFunction(output)?output.call(mom,now):output;}function zeroFill(number,targetLength,forceSign){var absNumber=''+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return ((sign?(forceSign?'+':''):'-')+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber);}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
24|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback==='string')func=function(){return this[callback]();};if(token)formatTokenFunctions[token]=func;if(padded)formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2]);};if(ordinal)formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token);};}function removeFormattingTokens(input){if(input.match(/\[[\s\S]/))return input.replace(/^\[|\]$/g,'');return input.replace(/\\/g,'');}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i<length;i++)if(formatTokenFunctions[array[i]])array[i]=formatTokenFunctions[array[i]];else array[i]=removeFormattingTokens(array[i]);return function(mom){var output='',i;for(i=0;i<length;i++)output+=isFunction(array[i])?array[i].call(mom,format):array[i];return output;};}function formatMoment(m,format){if(!m.isValid())return m.localeData().invalidDate();format=expandFormat(format,m.localeData());formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format);return formatFunctions[format](m);}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input;}localFormattingTokens.lastIndex=0;while(i>=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1;}return format;}var defaultLongDateFormat={LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper)return format;this._longDateFormat[key]=formatUpper.match(formattingTokens).map(function(tok){if(tok==='MMMM'||tok==='MM'||tok==='DD'||tok==='dddd')return tok.slice(1);return tok;}).join('');return this._longDateFormat[key];}var defaultInvalidDate='Invalid date';
24function invalidDate(){return this._invalidDate;}var defaultOrdinal='%d',defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(number){return this._ordinal.replace('%d',number);}var defaultRelativeTime={future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',w:'a week',ww:'%d weeks',M:'a month',MM:'%d months',y:'a year',yy:'%d years'};function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number);}function pastFuture(diff,output){var format=this._relativeTime[diff>0?'future':'past'];return isFunction(format)?format(output):format.replace(/%s/i,output);}var aliases={D:'date',dates:'date',date:'date',d:'day',days:'day',day:'day',e:'weekday',weekdays:'weekday',weekday:'weekday',E:'isoWeekday',isoweekdays:'isoWeekday',isoweekday:'isoWeekday',DDD:'dayOfYear',dayofyears:'dayOfYear',dayofyear:'dayOfYear',h:'hour',hours:'hour',hour:'hour',ms:'millisecond',milliseconds:'millisecond',millisecond:'millisecond',m:'minute',minutes:'minute',minute:'minute',M:'month',months:'month',month:'month',Q:'quarter',quarters:'quarter',quarter:'quarter',s:'second',seconds:'second',second:'second',gg:'weekYear',weekyears:'weekYear',weekyear:'weekYear',GG:'isoWeekYear',isoweekyears:'isoWeekYear',isoweekyear:'isoWeekYear',w:'week',weeks:'week',week:'week',W:'isoWeek',isoweeks:'isoWeek',isoweek:'isoWeek',y:'year',years:'year',year:'year'};function normalizeUnits(units){return typeof units==='string'?aliases[units]||aliases[units.toLowerCase()]:undefined;}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject)if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp)normalizedInput[normalizedProp]=inputObject[prop];}return normalizedInput;}var priorities={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(unitsObj){var units=[],u;for(u in unitsObj)if(hasOwnProp(unitsObj,u))units.push({unit:u,priority:priorities[u]});units.sort(function(a,b){return a.priority-b.priority;});return units;}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex;};}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token))return new RegExp(unescapeFormat(token));return regexes[token](config._strict,config._locale);}function unescapeFormat(s){return regexEscape(s.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4;}));}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&');}function absFloor(number){if(number<0)return Math.ceil(number)||0;else return Math.floor(number);}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber))value=absFloor(coercedNumber);return value;}var tokens={};function addParseToken(token,callback){var i,func=callback,tokenLen;if(typeof token==='string')token=[token];if(isNumber(callback))func=function(input,array){array[callback]=toInt(input);};tokenLen=token.length;for(i=0;i<tokenLen;i++)tokens[token[i]]=func;}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{};callback(input,config._w,config,token);});}function addTimeToArrayFromToken(token,input,config){if(input!=null&&hasOwnProp(tokens,token))tokens[token](input,config._a,config,token);}function isLeapYear(year){return (year%4===0&&year%100!==0)||year%400===0;}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;addFormatToken('Y',0,0,function(){var y=this.year();return y<=9999?zeroFill(y,4):'+'+y;});addFormatToken(0,['YY',2],0,function(){return this.year()%100;});addFormatToken(0,['YYYY',4],0,'year');addFormatToken(0,['YYYYY',5],0,'year');addFormatToken(0,['YYYYYY',6,true],0,'year');addRegexToken('Y',matchSigned);addRegexToken('YY',match1to2,match2);addRegexToken('YYYY',match1to4,match4);addRegexToken('YYYYY',match1to6,match6);addRegexToken('YYYYYY',match1to6,match6);addParseToken(['YYYYY','YYYYYY'],YEAR);addParseToken('YYYY',function(input,array){array[YEAR]=input.length===2?hooks.parseTwoDigitYear(input):toInt(input);});addParseToken('YY',function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input);});addParseToken('Y',function(input,array){array[YEAR]=parseInt(input,10);});function daysInYear(year){return isLeapYear(year)?366:365;}hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2000);};var getSetYear=makeGetSet('FullYear',true);function getIsLeapYear(){return isLeapYear(this.year());}function makeGetSet(unit,keepTime){return function(value){if(value!=null){set$1(this,unit,value);hooks.updateOffset(this,keepTime);return this;}else return get(this,unit);};}function get(mom,unit){if(!mom.isValid())return NaN;var d=mom._d,isUTC=mom._isUTC;switch(unit){case 'Milliseconds':return isUTC?d.getUTCMilliseconds():d.getMilliseconds();case 'Seconds':return isUTC?d.getUTCSeconds():d.getSeconds();case 'Minutes':return isUTC?d.getUTCMinutes():d.getMinutes();case 'Hours':return isUTC?d.getUTCHours():d.getHours();case 'Date':return isUTC?d.getUTCDate():d.getDate();case 'Day':return isUTC?d.getUTCDay():d.getDay();case 'Month':return isUTC?d.getUTCMonth():d.getMonth();case 'FullYear':return isUTC?d.getUTCFullYear():d.getFullYear();default:return NaN;}}function set$1(mom,unit,value){var d,isUTC,year,month,date;if(!mom.isValid()||isNaN(value))return;d=mom._d;isUTC=mom._isUTC;switch(unit){case 'Milliseconds':return void (isUTC?d.setUTCMilliseconds(value):d.setMilliseconds(value));case 'Seconds':return void (isUTC?d.setUTCSeconds(value):d.setSeconds(value));case 'Minutes':return void (isUTC?d.setUTCMinutes(value):d.setMinutes(value));case 'Hours':return void (isUTC?d.setUTCHours(value):d.setHours(value));case 'Date':return void (isUTC?d.setUTCDate(value):d.setDate(value));case 'FullYear':break;default:return;}year=value;month=mom.month();date=mom.date();date=date===29&&month===1&&!isLeapYear(year)?28:date;void (isUTC?d.setUTCFullYear(year,month,date):d.setFullYear(year,month,date));}function stringGet(units){units=normalizeUnits(units);if(isFunction(this[units]))return this[units]();return this;}function stringSet(units,value){if(typeof units==='object'){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units),i,prioritizedLen=prioritized.length;for(i=0;i<prioritizedLen;i++)this[prioritized[i].unit](units[prioritized[i].unit]);}else{units=normalizeUnits(units);if(isFunction(this[units]))return this[units](value);}return this;}function mod(n,x){return ((n%x)+x)%x;}var indexOf;if(Array.prototype.indexOf)indexOf=Array.prototype.indexOf;else indexOf=function(o){var i;for(i=0;i<this.length;++i)if(this[i]===o)return i;return -1;};function daysInMonth(year,month){if(isNaN(year)||isNaN(month))return NaN;var modMonth=mod(month,12);year+=(month-modMonth)/12;return modMonth===1?isLeapYear(year)?29:28:31-((modMonth%7)%2);}addFormatToken('M',['MM',2],'Mo',function(){return this.month()+1;});addFormatToken('MMM',0,0,function(format){return this.localeData().monthsShort(this,format);});addFormatToken('MMMM',0,0,function(format){return this.localeData().months(this,format);});addRegexToken('M',match1to2,match1to2NoLeadingZero);addRegexToken('MM',match1to2,match2);addRegexToken('MMM',function(isStrict,locale){return locale.monthsShortRegex(isStrict);});addRegexToken('MMMM',function(isStrict,locale){return locale.monthsRegex(isStrict);});addParseToken(['M','MM'],function(input,array){array[MONTH]=toInt(input)-1;});addParseToken(['MMM','MMMM'],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);if(month!=null)array[MONTH]=month;else getParsingFlags(config).invalidMonth=input;});var defaultLocaleMonths='January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),defaultLocaleMonthsShort='Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(m,format){if(!m)return isArray(this._months)?this._months:this._months['standalone'];return isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?'format':'standalone'][m.month()];}function localeMonthsShort(m,format){if(!m)return isArray(this._monthsShort)?this._monthsShort:this._monthsShort['standalone'];return isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?'format':'standalone'][m.month()];}function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){mom=createUTC([2000,i]);this._shortMonthsParse[i]=this.monthsShort(mom,'').toLocaleLowerCase();this._longMonthsParse[i]=this.months(mom,'').toLocaleLowerCase();}}
24if(strict)if(format==='MMM'){ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null;}else if(format==='MMM'){ii=indexOf.call(this._shortMonthsParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._longMonthsParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null;}}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format,strict);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];}for(i=0;i<12;i++){mom=createUTC([2000,i]);if(strict&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp('^'+this.months(mom,'').replace('.','')+'$','i');this._shortMonthsParse[i]=new RegExp('^'+this.monthsShort(mom,'').replace('.','')+'$','i');}if(!strict&&!this._monthsParse[i]){regex='^'+this.months(mom,'')+'|^'+this.monthsShort(mom,'');this._monthsParse[i]=new RegExp(regex.replace('.',''),'i');}
vendor: 5,718 bytes, line 24
24if(strict&&format==='MMMM'&&this._longMonthsParse[i].test(monthName))return i;else if(strict&&format==='MMM'&&this._shortMonthsParse[i].test(monthName))return i;else{if(!strict&&this._monthsParse[i].test(monthName))return i;}}}function setMonth(mom,value){if(!mom.isValid())return mom;if(typeof value==='string')if(/^\d+$/.test(value))value=toInt(value);else{value=mom.localeData().monthsParse(value);if(!isNumber(value))return mom;}var month=value,date=mom.date();date=date<29?date:Math.min(date,daysInMonth(mom.year(),month));void (mom._isUTC?mom._d.setUTCMonth(month,date):mom._d.setMonth(month,date));return mom;}function getSetMonth(value){if(value!=null){setMonth(this,value);hooks.updateOffset(this,true);return this;}else return get(this,'Month');}function getDaysInMonth(){return daysInMonth(this.year(),this.month());}function monthsShortRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,'_monthsRegex'))computeMonthsParse.call(this);if(isStrict)return this._monthsShortStrictRegex;else return this._monthsShortRegex;}else{if(!hasOwnProp(this,'_monthsShortRegex'))this._monthsShortRegex=defaultMonthsShortRegex;return this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex;}}function monthsRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,'_monthsRegex'))computeMonthsParse.call(this);if(isStrict)return this._monthsStrictRegex;else return this._monthsRegex;}else{if(!hasOwnProp(this,'_monthsRegex'))this._monthsRegex=defaultMonthsRegex;return this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex;}}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length;}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom,shortP,longP;for(i=0;i<12;i++){mom=createUTC([2000,i]);shortP=regexEscape(this.monthsShort(mom,''));longP=regexEscape(this.months(mom,''));shortPieces.push(shortP);longPieces.push(longP);mixedPieces.push(longP);mixedPieces.push(shortP);}shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);this._monthsRegex=new RegExp('^('+mixedPieces.join('|')+')','i');this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp('^('+longPieces.join('|')+')','i');this._monthsShortStrictRegex=new RegExp('^('+shortPieces.join('|')+')','i');}function createDate(y,m,d,h,M,s,ms){var date;if(y<100&&y>=0){date=new Date(y+400,m,d,h,M,s,ms);if(isFinite(date.getFullYear()))date.setFullYear(y);}else date=new Date(y,m,d,h,M,s,ms);return date;}function createUTCDate(y){var date,args;if(y<100&&y>=0){args=Array.prototype.slice.call(arguments);args[0]=y+400;date=new Date(Date.UTC.apply(null,args));if(isFinite(date.getUTCFullYear()))date.setUTCFullYear(y);}else date=new Date(Date.UTC.apply(null,arguments));return date;}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy,fwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return -fwdlw+fwd-1;}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;if(dayOfYear<=0){resYear=year-1;resDayOfYear=daysInYear(resYear)+dayOfYear;}else if(dayOfYear>daysInYear(year)){resYear=year+1;resDayOfYear=dayOfYear-daysInYear(year);}else{resYear=year;resDayOfYear=dayOfYear;}return {year:resYear,dayOfYear:resDayOfYear};}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;if(week<1){resYear=mom.year()-1;resWeek=week+weeksInYear(resYear,dow,doy);}else if(week>weeksInYear(mom.year(),dow,doy)){resWeek=week-weeksInYear(mom.year(),dow,doy);resYear=mom.year()+1;}else{resYear=mom.year();resWeek=week;}return {week:resWeek,year:resYear};}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return (daysInYear(year)-weekOffset+weekOffsetNext)/7;}addFormatToken('w',['ww',2],'wo','week');addFormatToken('W',['WW',2],'Wo','isoWeek');addRegexToken('w',match1to2,match1to2NoLeadingZero);addRegexToken('ww',match1to2,match2);addRegexToken('W',match1to2,match1to2NoLeadingZero);addRegexToken('WW',match1to2,match2);addWeekParseToken(['w','ww','W','WW'],function(input,week,config,token){week[token.substr(0,1)]=toInt(input);});function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week;}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow;}function localeFirstDayOfYear(){return this._week.doy;}function getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,'d');}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,'d');}addFormatToken('d',0,'do','day');addFormatToken('dd',0,0,function(format){return this.localeData().weekdaysMin(this,format);});addFormatToken('ddd',0,0,function(format){return this.localeData().weekdaysShort(this,format);});addFormatToken('dddd',0,0,function(format){return this.localeData().weekdays(this,format);});addFormatToken('e',0,0,'weekday');addFormatToken('E',0,0,'isoWeekday');addRegexToken('d',match1to2);addRegexToken('e',match1to2);addRegexToken('E',match1to2);addRegexToken('dd',function(isStrict,locale){return locale.weekdaysMinRegex(isStrict);});addRegexToken('ddd',function(isStrict,locale){return locale.weekdaysShortRegex(isStrict);});addRegexToken('dddd',function(isStrict,locale){return locale.weekdaysRegex(isStrict);});addWeekParseToken(['dd','ddd','dddd'],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);if(weekday!=null)week.d=weekday;
24else getParsingFlags(config).invalidWeekday=input;});addWeekParseToken(['d','e','E'],function(input,week,config,token){week[token]=toInt(input);});function parseWeekday(input,locale){if(typeof input!=='string')return input;if(!isNaN(input))return parseInt(input,10);input=locale.weekdaysParse(input);if(typeof input==='number')return input;return null;}function parseIsoWeekday(input,locale){if(typeof input==='string')return locale.weekdaysParse(input)%7||7;return isNaN(input)?null:input;}function shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n));}var defaultLocaleWeekdays='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),defaultLocaleWeekdaysShort='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),defaultLocaleWeekdaysMin='Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(m,format){var weekdays=isArray(this._weekdays)?this._weekdays:this._weekdays[m&&m!==true&&this._weekdays.isFormat.test(format)?'format':'standalone'];return m===true?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays;}function localeWeekdaysShort(m){return m===true?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort;}function localeWeekdaysMin(m){return m===true?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin;}function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){mom=createUTC([2000,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(mom,'').toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(mom,'').toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(mom,'').toLocaleLowerCase();}}if(strict)if(format==='dddd'){ii=indexOf.call(this._weekdaysParse,llc);return ii!==-1?ii:null;}else if(format==='ddd'){ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}else if(format==='dddd'){ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}else if(format==='ddd'){ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._minWeekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1)return ii;ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null;}}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format,strict);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[];}for(i=0;i<7;i++){mom=createUTC([2000,1]).day(i);if(strict&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp('^'+this.weekdays(mom,'').replace('.','\\.?')+'$','i');this._shortWeekdaysParse[i]=new RegExp('^'+this.weekdaysShort(mom,'').replace('.','\\.?')+'$','i');this._minWeekdaysParse[i]=new RegExp('^'+this.weekdaysMin(mom,'').replace('.','\\.?')+'$','i');}if(!this._weekdaysParse[i]){regex='^'+this.weekdays(mom,'')+'|^'+this.weekdaysShort(mom,'')+'|^'+this.weekdaysMin(mom,'');this._weekdaysParse[i]=new RegExp(regex.replace('.',''),'i');}if(strict&&format==='dddd'&&this._fullWeekdaysParse[i].test(weekdayName))return i;else if(strict&&format==='ddd'&&this._shortWeekdaysParse[i].test(weekdayName))return i;else if(strict&&format==='dd'&&this._minWeekdaysParse[i].test(weekdayName))return i;else{if(!strict&&this._weekdaysParse[i].test(weekdayName))return i;}}}function getSetDayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;var day=get(this,'Day');if(input!=null){input=parseWeekday(input,this.localeData());return this.add(input-day,'d');}else return day;}function getSetLocaleDayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,'d');}function getSetISODayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;if(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7);}else return this.day()||7;}function weekdaysRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex'))computeWeekdaysParse.call(this);if(isStrict)return this._weekdaysStrictRegex;else return this._weekdaysRegex;}else{if(!hasOwnProp(this,'_weekdaysRegex'))this._weekdaysRegex=defaultWeekdaysRegex;return this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex;}}function weekdaysShortRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex'))computeWeekdaysParse.call(this);if(isStrict)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex;}else{if(!hasOwnProp(this,'_weekdaysShortRegex'))this._weekdaysShortRegex=defaultWeekdaysShortRegex;return this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex;}}function weekdaysMinRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex'))computeWeekdaysParse.call(this);if(isStrict)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex;}else{if(!hasOwnProp(this,'_weekdaysMinRegex'))this._weekdaysMinRegex=defaultWeekdaysMinRegex;return this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex;}}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length;}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++){mom=createUTC([2000,1]).day(i);minp=regexEscape(this.weekdaysMin(mom,''));shortp=regexEscape(this.weekdaysShort(mom,''));longp=regexEscape(this.weekdays(mom,''));minPieces.push(minp);shortPieces.push(shortp);longPieces.push(longp);mixedPieces.push(minp);mixedPieces.push(shortp);mixedPieces.push(longp);}minPieces.sort(cmpLenRev);shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);this._weekdaysRegex=new RegExp('^('+mixedPieces.join('|')+')','i');this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp('^('+longPieces.join('|')+')','i');this._weekdaysShortStrictRegex=new RegExp('^('+shortPieces.join('|')+')','i');this._weekdaysMinStrictRegex=new RegExp('^('+minPieces.join('|')+')','i');}function hFormat(){return this.hours()%12||12;}function kFormat(){return this.hours()||24;}addFormatToken('H',['HH',2],0,'hour');addFormatToken('h',['hh',2],0,hFormat);addFormatToken('k',['kk',2],0,kFormat);addFormatToken('hmm',0,0,function(){return ''+hFormat.apply(this)+zeroFill(this.minutes(),2);});addFormatToken('hmmss',0,0,function(){return (''+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2));});addFormatToken('Hmm',0,0,function(){return ''+this.hours()+zeroFill(this.minutes(),2);});addFormatToken('Hmmss',0,0,function(){return (''+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2));});function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase);});}
24meridiem('a',true);meridiem('A',false);function matchMeridiem(isStrict,locale){return locale._meridiemParse;}addRegexToken('a',matchMeridiem);addRegexToken('A',matchMeridiem);addRegexToken('H',match1to2,match1to2HasZero);addRegexToken('h',match1to2,match1to2NoLeadingZero);addRegexToken('k',match1to2,match1to2NoLeadingZero);addRegexToken('HH',match1to2,match2);addRegexToken('hh',match1to2,match2);addRegexToken('kk',match1to2,match2);addRegexToken('hmm',match3to4);addRegexToken('hmmss',match5to6);addRegexToken('Hmm',match3to4);addRegexToken('Hmmss',match5to6);addParseToken(['H','HH'],HOUR);addParseToken(['k','kk'],function(input,array,config){var kInput=toInt(input);array[HOUR]=kInput===24?0:kInput;});addParseToken(['a','A'],function(input,array,config){config._isPm=config._locale.isPM(input);config._meridiem=input;});addParseToken(['h','hh'],function(input,array,config){array[HOUR]=toInt(input);getParsingFlags(config).bigHour=true;});addParseToken('hmm',function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));getParsingFlags(config).bigHour=true;});addParseToken('hmmss',function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));getParsingFlags(config).bigHour=true;});addParseToken('Hmm',function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));});addParseToken('Hmmss',function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));});function localeIsPM(input){return (input+'').toLowerCase().charAt(0)==='p';}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet('Hours',true);function localeMeridiem(hours,minutes,isLower){if(hours>11)return isLower?'pm':'PM';else return isLower?'am':'AM';}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse};var locales={},localeFamilies={},globalLocale;function commonPrefix(arr1,arr2){var i,minl=Math.min(arr1.length,arr2.length);for(i=0;i<minl;i+=1)if(arr1[i]!==arr2[i])return i;return minl;}function normalizeLocale(key){return key?key.toLowerCase().replace('_','-'):key;}function chooseLocale(names){var i=0,j,next,locale,split;while(i<names.length){split=normalizeLocale(names[i]).split('-');j=split.length;next=normalizeLocale(names[i+1]);next=next?next.split('-'):null;while(j>0){locale=loadLocale(split.slice(0,j).join('-'));if(locale)return locale;if(next&&next.length>=j&&commonPrefix(split,next)>=j-1)break;j--;}i++;}return globalLocale;}function isLocaleNameSane(name){return !!(name&&name.match('^[^/\\\\]*$'));}function loadLocale(name){var oldLocale=null,aliasedRequire;if(locales[name]===undefined&&typeof module!=='undefined'&&module&&module.exports&&isLocaleNameSane(name))try{oldLocale=globalLocale._abbr;aliasedRequire=require;aliasedRequire('./locale/'+name);getSetGlobalLocale(oldLocale);}catch(e){locales[name]=null;}return locales[name];}function getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values))data=getLocale(key);else data=defineLocale(key,values);if(data)globalLocale=data;else{if(typeof console!=='undefined'&&console.warn)console.warn('Locale '+key+' not found. Did you forget to load it?');}}return globalLocale._abbr;}function defineLocale(name,config){if(config!==null){var locale,parentConfig=baseConfig;config.abbr=name;if(locales[name]!=null){deprecateSimple('defineLocaleOverride','use moment.updateLocale(localeName, config) to change '+'an existing locale. moment.defineLocale(localeName, '+'config) should only be used for creating a new locale '+'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');parentConfig=locales[name]._config;}else{if(config.parentLocale!=null)if(locales[config.parentLocale]!=null)parentConfig=locales[config.parentLocale]._config;else{locale=loadLocale(config.parentLocale);if(locale!=null)parentConfig=locale._config;else{if(!localeFamilies[config.parentLocale])localeFamilies[config.parentLocale]=[];localeFamilies[config.parentLocale].push({name,config});return null;}}}locales[name]=new Locale(mergeConfigs(parentConfig,config));if(localeFamilies[name])localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config);});getSetGlobalLocale(name);return locales[name];}else{delete locales[name];return null;}}function updateLocale(name,config){if(config!=null){var locale,tmpLocale,parentConfig=baseConfig;if(locales[name]!=null&&locales[name].parentLocale!=null)locales[name].set(mergeConfigs(locales[name]._config,config));else{tmpLocale=loadLocale(name);if(tmpLocale!=null)parentConfig=tmpLocale._config;config=mergeConfigs(parentConfig,config);if(tmpLocale==null)config.abbr=name;locale=new Locale(config);locale.parentLocale=locales[name];locales[name]=locale;}getSetGlobalLocale(name);}else{if(locales[name]!=null)if(locales[name].parentLocale!=null){locales[name]=locales[name].parentLocale;if(name===getSetGlobalLocale())getSetGlobalLocale(name);}else{if(locales[name]!=null)delete locales[name];}}return locales[name];}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr)key=key._locale._abbr;if(!key)return globalLocale;if(!isArray(key)){locale=loadLocale(key);if(locale)return locale;key=[key];}return chooseLocale(key);}function listLocales(){return keys(locales);}function checkOverflow(m){var overflow,a=m._a;if(a&&getParsingFlags(m).overflow===-2){overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||(a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0))?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE))overflow=DATE;if(getParsingFlags(m)._overflowWeeks&&overflow===-1)overflow=WEEK;if(getParsingFlags(m)._overflowWeekday&&overflow===-1)overflow=WEEKDAY;getParsingFlags(m).overflow=overflow;}return m;}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,false],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,false],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,false],['YYYYDDD',/\d{7}/],['YYYYMM',/\d{6}/,false],['YYYY',/\d{4}/,false]],isoTimes=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,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{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat,isoDatesLen=isoDates.length,isoTimesLen=isoTimes.length;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDatesLen;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break;}if(dateFormat==null){config._isValid=false;return;}if(match[3]){for(i=0,l=isoTimesLen;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||' ')+isoTimes[i][0];break;}if(timeFormat==null){config._isValid=false;return;}}if(!allowTime&&timeFormat!=null){config._isValid=false;return;}if(match[4])if(tzRegex.exec(match[4]))tzFormat='Z';else{config._isValid=false;return;}config._f=dateFormat+(timeFormat||'')+(tzFormat||'');configFromStringAndFormat(config);}else config._isValid=false;}function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];if(secondStr)result.push(parseInt(secondStr,10));return result;}function untruncateYear(yearStr){var year=parseInt(yearStr,10);if(year<=49)return 2000+year;else{if(year<=999)return 1900+year;}return year;}function preprocessRFC2822(s){return s.replace(/\([^()]*\)|[\n\t]/g,' ').replace(/(\s\s+)/g,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');}function checkWeekday(weekdayStr,parsedInput,config){if(weekdayStr){var weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr),weekdayActual=new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay();if(weekdayProvided!==weekdayActual){getParsingFlags(config).weekdayMismatch=true;config._isValid=false;return false;}}return true;}function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset)return obsOffsets[obsOffset];else if(militaryOffset)return 0;else{var hm=parseInt(numOffset,10),m=hm%100,h=(hm-m)/100;return h*60+m;}}function configFromRFC2822(config){var match=rfc2822.exec(preprocessRFC2822(config._i)),parsedArray;if(match){parsedArray=extractFromRFC2822Strings(match[4],match[3],match[2],match[5],match[6],match[7]);if(!checkWeekday(match[1],parsedArray,config))return;config._a=parsedArray;config._tzm=calculateOffset(match[8],match[9],match[10]);config._d=createUTCDate.apply(null,config._a);config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);getParsingFlags(config).rfc2822=true;}else config._isValid=false;}function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(matched!==null){config._d=new Date(+matched[1]);return;}configFromISO(config);if(config._isValid===false)delete config._isValid;else return;configFromRFC2822(config);if(config._isValid===false)delete config._isValid;else return;if(config._strict)config._isValid=false;else hooks.createFromInputFallback(config);}hooks.createFromInputFallback=deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), '+'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are '+'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',function(config){config._d=new Date(config._i+(config._useUTC?' UTC':''));});function defaults(a,b,c){if(a!=null)return a;
24if(b!=null)return b;return c;}function currentDateArray(config){var nowValue=new Date(hooks.now());if(config._useUTC)return [nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()];return [nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()];}function configFromArray(config){var i,date,input=[],currentDate,expectedWeekday,yearToUse;if(config._d)return;currentDate=currentDateArray(config);if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null)dayOfYearFromWeekInfo(config);if(config._dayOfYear!=null){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)||config._dayOfYear===0)getParsingFlags(config)._overflowDayOfYear=true;date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate();}for(i=0;i<3&&config._a[i]==null;++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=config._a[i]==null?(i===2?1:0):config._a[i];if(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0;}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);expectedWeekday=config._useUTC?config._d.getUTCDay():config._d.getDay();if(config._tzm!=null)config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);if(config._nextDay)config._a[HOUR]=24;if(config._w&&typeof config._w.d!=='undefined'&&config._w.d!==expectedWeekday)getParsingFlags(config).weekdayMismatch=true;}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow,curWeek;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1);if(weekday<1||weekday>7)weekdayOverflow=true;}else{dow=config._locale._week.dow;doy=config._locale._week.doy;curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year);week=defaults(w.w,curWeek.week);if(w.d!=null){weekday=w.d;if(weekday<0||weekday>6)weekdayOverflow=true;}else if(w.e!=null){weekday=w.e+dow;if(w.e<0||w.e>6)weekdayOverflow=true;}else weekday=dow;}if(week<1||week>weeksInYear(weekYear,dow,doy))getParsingFlags(config)._overflowWeeks=true;else if(weekdayOverflow!=null)getParsingFlags(config)._overflowWeekday=true;else{temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy);config._a[YEAR]=temp.year;config._dayOfYear=temp.dayOfYear;}}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(config){if(config._f===hooks.ISO_8601){configFromISO(config);return;}if(config._f===hooks.RFC_2822){configFromRFC2822(config);return;}config._a=[];getParsingFlags(config).empty=true;var string=''+config._i,i,parsedInput,tokens,token,skipped,stringLength=string.length,totalParsedInputLength=0,era,tokenLen;tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[];tokenLen=tokens.length;for(i=0;i<tokenLen;i++){token=tokens[i];parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0];if(parsedInput){skipped=string.substr(0,string.indexOf(parsedInput));if(skipped.length>0)getParsingFlags(config).unusedInput.push(skipped);string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length;}if(formatTokenFunctions[token]){if(parsedInput)getParsingFlags(config).empty=false;else getParsingFlags(config).unusedTokens.push(token);addTimeToArrayFromToken(token,parsedInput,config);}else{if(config._strict&&!parsedInput)getParsingFlags(config).unusedTokens.push(token);}}getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0)getParsingFlags(config).unusedInput.push(string);if(config._a[HOUR]<=12&&getParsingFlags(config).bigHour===true&&config._a[HOUR]>0)getParsingFlags(config).bigHour=undefined;getParsingFlags(config).parsedDateParts=config._a.slice(0);getParsingFlags(config).meridiem=config._meridiem;config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);era=getParsingFlags(config).era;if(era!==null)config._a[YEAR]=config._locale.erasConvertYear(era,config._a[YEAR]);configFromArray(config);checkOverflow(config);}
24function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null)return hour;if(locale.meridiemHour!=null)return locale.meridiemHour(hour,meridiem);else if(locale.isPM!=null){isPm=locale.isPM(meridiem);if(isPm&&hour<12)hour+=12;if(!isPm&&hour===12)hour=0;return hour;}else return hour;}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore,validFormatFound,bestFormatIsValid=false,configfLen=config._f.length;if(configfLen===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return;}for(i=0;i<configfLen;i++){currentScore=0;validFormatFound=false;tempConfig=copyConfig({},config);if(config._useUTC!=null)tempConfig._useUTC=config._useUTC;tempConfig._f=config._f[i];configFromStringAndFormat(tempConfig);if(isValid(tempConfig))validFormatFound=true;currentScore+=getParsingFlags(tempConfig).charsLeftOver;currentScore+=getParsingFlags(tempConfig).unusedTokens.length*10;getParsingFlags(tempConfig).score=currentScore;if(!bestFormatIsValid){if(scoreToBeat==null||currentScore<scoreToBeat||validFormatFound){scoreToBeat=currentScore;bestMoment=tempConfig;if(validFormatFound)bestFormatIsValid=true;}}else{if(currentScore<scoreToBeat){scoreToBeat=currentScore;bestMoment=tempConfig;}}}extend(config,bestMoment||tempConfig);}function configFromObject(config){if(config._d)return;var i=normalizeObjectUnits(config._i),dayOrDate=i.day===undefined?i.date:i.day;config._a=map([i.year,i.month,dayOrDate,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10);});configFromArray(config);}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));if(res._nextDay){res.add(1,'d');res._nextDay=undefined;}return res;}function prepareConfig(config){var input=config._i,format=config._f;config._locale=config._locale||getLocale(config._l);if(input===null||(format===undefined&&input===''))return createInvalid({nullInput:true});if(typeof input==='string')config._i=input=config._locale.preparse(input);if(isMoment(input))return new Moment(checkOverflow(input));else if(isDate(input))config._d=input;else if(isArray(format))configFromStringAndArray(config);else if(format)configFromStringAndFormat(config);else configFromInput(config);if(!isValid(config))config._d=null;return config;}function configFromInput(config){var input=config._i;if(isUndefined(input))config._d=new Date(hooks.now());else if(isDate(input))config._d=new Date(input.valueOf());else if(typeof input==='string')configFromString(config);else if(isArray(input)){config._a=map(input.slice(0),function(obj){return parseInt(obj,10);});configFromArray(config);}else if(isObject(input))configFromObject(config);else if(isNumber(input))config._d=new Date(input);else hooks.createFromInputFallback(config);}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};if(format===true||format===false){strict=format;format=undefined;}if(locale===true||locale===false){strict=locale;locale=undefined;}if((isObject(input)&&isObjectEmpty(input))||(isArray(input)&&input.length===0))input=undefined;c._isAMomentObject=true;c._useUTC=c._isUTC=isUTC;c._l=locale;c._i=input;c._f=format;c._strict=strict;return createFromConfig(c);}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,false);}var prototypeMin=deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid())return other<this?this:other;else return createInvalid();}),prototypeMax=deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid())return other>this?this:other;else return createInvalid();});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0]))moments=moments[0];if(!moments.length)return createLocal();res=moments[0];for(i=1;i<moments.length;++i)if(!moments[i].isValid()||moments[i][fn](res))res=moments[i];return res;}function min(){var args=[].slice.call(arguments,0);return pickBy('isBefore',args);}function max(){var args=[].slice.call(arguments,0);return pickBy('isAfter',args);}var now=function(){return Date.now?Date.now():+new Date();};var ordering=['year','quarter','month','week','day','hour','minute','second','millisecond'];function isDurationValid(m){var key,unitHasDecimal=false,i,orderLen=ordering.length;for(key in m)if(hasOwnProp(m,key)&&!(indexOf.call(ordering,key)!==-1&&(m[key]==null||!isNaN(m[key]))))return false;for(i=0;i<orderLen;++i)if(m[ordering[i]]){if(unitHasDecimal)return false;if(parseFloat(m[ordering[i]])!==toInt(m[ordering[i]]))unitHasDecimal=true;}return true;}function isValid$1(){return this._isValid;}
24function createInvalid$1(){return createDuration(NaN);}function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||normalizedInput.isoWeek||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput);this._milliseconds=+milliseconds+seconds*1e3+minutes*6e4+hours*1000*60*60;this._days=+days+weeks*7;this._months=+months+quarters*3+years*12;this._data={};this._locale=getLocale();this._bubble();}function isDuration(obj){return obj instanceof Duration;}function absRound(number){if(number<0)return Math.round(-1*number)*-1;else return Math.round(number);}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++)if((dontConvert&&array1[i]!==array2[i])||(!dontConvert&&toInt(array1[i])!==toInt(array2[i])))diffs++;return diffs+lengthDiff;}function offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset(),sign='+';if(offset<0){offset=-offset;sign='-';}return (sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2));});}offset('Z',':');offset('ZZ','');addRegexToken('Z',matchShortOffset);addRegexToken('ZZ',matchShortOffset);addParseToken(['Z','ZZ'],function(input,array,config){config._useUTC=true;config._tzm=offsetFromString(matchShortOffset,input);});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(matcher,string){var matches=(string||'').match(matcher),chunk,parts,minutes;if(matches===null)return null;chunk=matches[matches.length-1]||[];parts=(chunk+'').match(chunkOffset)||['-',0,0];minutes=+(parts[1]*60)+toInt(parts[2]);return minutes===0?0:parts[0]==='+'?minutes:-minutes;}function cloneWithOffset(input,model){var res,diff;if(model._isUTC){res=model.clone();diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf();res._d.setTime(res._d.valueOf()+diff);hooks.updateOffset(res,false);return res;}else return createLocal(input).local();}function getDateOffset(m){return -Math.round(m._d.getTimezoneOffset());}hooks.updateOffset=function(){};function getSetOffset(input,keepLocalTime,keepMinutes){var offset=this._offset||0,localAdjust;if(!this.isValid())return input!=null?this:NaN;if(input!=null){if(typeof input==='string'){input=offsetFromString(matchShortOffset,input);if(input===null)return this;}else{if(Math.abs(input)<16&&!keepMinutes)input=input*60;}if(!this._isUTC&&keepLocalTime)localAdjust=getDateOffset(this);this._offset=input;this._isUTC=true;if(localAdjust!=null)this.add(localAdjust,'m');if(offset!==input)if(!keepLocalTime||this._changeInProgress)addSubtract(this,createDuration(input-offset,'m'),1,false);else{if(!this._changeInProgress){this._changeInProgress=true;hooks.updateOffset(this,true);this._changeInProgress=null;}}return this;}else return this._isUTC?offset:getDateOffset(this);}function getSetZone(input,keepLocalTime){if(input!=null){if(typeof input!=='string')input=-input;this.utcOffset(input,keepLocalTime);return this;}else return -this.utcOffset();}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime);}function setOffsetToLocal(keepLocalTime){if(this._isUTC){this.utcOffset(0,keepLocalTime);this._isUTC=false;if(keepLocalTime)this.subtract(getDateOffset(this),'m');}return this;}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else{if(typeof this._i==='string'){var tZone=offsetFromString(matchOffset,this._i);if(tZone!=null)this.utcOffset(tZone);else this.utcOffset(0,true);}}return this;}function hasAlignedHourOffset(input){if(!this.isValid())return false;input=input?createLocal(input).utcOffset():0;return (this.utcOffset()-input)%60===0;}function isDaylightSavingTime(){return (this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset());}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var c={},other;copyConfig(c,this);c=prepareConfig(c);if(c._a){other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0;}else this._isDSTShifted=false;return this._isDSTShifted;}function isLocal(){return this.isValid()?!this._isUTC:false;}function isUtcOffset(){return this.isValid()?this._isUTC:false;}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false;}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var duration=input,match=null,sign,ret,diffRes;if(isDuration(input))duration={ms:input._milliseconds,d:input._days,M:in
24put._months};else if(isNumber(input)||!isNaN(+input)){duration={};if(key)duration[key]=+input;else duration.milliseconds=+input;}else if((match=aspNetRegex.exec(input))){sign=match[1]==='-'?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(match[MILLISECOND]*1000))*sign};}else if((match=isoRegex.exec(input))){sign=match[1]==='-'?-1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)};}else if(duration==null)duration={};else{if(typeof duration==='object'&&('from' in duration||'to' in duration)){diffRes=momentsDifference(createLocal(duration.from),createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months;}}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,'_locale'))ret._locale=input._locale;if(isDuration(input)&&hasOwnProp(input,'_isValid'))ret._isValid=input._isValid;return ret;}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(',','.'));return (isNaN(res)?0:res)*sign;}function positiveMomentsDifference(base,other){var res={};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,'M').isAfter(other))--res.months;res.milliseconds=+other-+base.clone().add(res.months,'M');return res;}function momentsDifference(base,other){var res;if(!(base.isValid()&&other.isValid()))return {milliseconds:0,months:0};other=cloneWithOffset(other,base);if(base.isBefore(other))res=positiveMomentsDifference(base,other);else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months;}return res;}function createAdder(direction,name){return function(val,period){var dur,tmp;if(period!==null&&!isNaN(+period)){deprecateSimple(name,'moment().'+name+'(period, number) is deprecated. Please use moment().'+name+'(number, period). '+'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');tmp=val;val=period;period=tmp;}dur=createDuration(val,period);addSubtract(this,dur,direction);return this;};}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);if(!mom.isValid())return;updateOffset=updateOffset==null?true:updateOffset;if(months)setMonth(mom,get(mom,'Month')+months*isAdding);if(days)set$1(mom,'Date',get(mom,'Date')+days*isAdding);if(milliseconds)mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding);if(updateOffset)hooks.updateOffset(mom,days||months);}var add=createAdder(1,'add'),subtract=createAdder(-1,'subtract');function isString(input){return typeof input==='string'||input instanceof String;}function isMomentInput(input){return (isMoment(input)||isDate(input)||isString(input)||isNumber(input)||isNumberOrStringArray(input)||isMomentInputObject(input)||input===null||input===undefined);}function isMomentInputObject(input){var objectTest=isObject(input)&&!isObjectEmpty(input),propertyTest=false,properties=['years','year','y','months','month','M','days','day','d','dates','date','D','hours','hour','h','minutes','minute','m','seconds','second','s','milliseconds','millisecond','ms'],i,property,propertyLen=properties.length;for(i=0;i<propertyLen;i+=1){property=properties[i];propertyTest=propertyTest||hasOwnProp(input,property);}return objectTest&&propertyTest;}function isNumberOrStringArray(input){var arrayTest=isArray(input),dataTypeTest=false;if(arrayTest)dataTypeTest=input.filter(function(item){return !isNumber(item)&&isString(input);}).length===0;return arrayTest&&dataTypeTest;}function isCalendarSpec(input){var objectTest=isObject(input)&&!isObjectEmpty(input),propertyTest=false,properties=['sameDay','nextDay','lastDay','nextWeek','lastWeek','sameElse'],i,property;for(i=0;i<properties.length;i+=1){property=properties[i];propertyTest=propertyTest||hasOwnProp(input,property);}return objectTest&&propertyTest;}function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,'days',true);return diff<-6?'sameElse':diff<-1?'lastWeek':diff<0?'lastDay':diff<1?'sameDay':diff<2?'nextDay':diff<7?'nextWeek':'sameElse';}function calendar$1(time,formats){if(arguments.length===1)if(!arguments[0]){time=undefined;formats=undefined;}else if(isMomentInput(arguments[0])){time=arguments[0];formats=undefined;}else{if(isCalendarSpec(arguments[0])){formats=arguments[0];time=undefined;}}var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf('day'),format=hooks.calendarFormat(this,sod)||'sameElse',output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);
24return this.format(output||this.localeData().calendar(format,this,createLocal(now)));}function clone(){return new Moment(this);}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid()))return false;units=normalizeUnits(units)||'millisecond';if(units==='millisecond')return this.valueOf()>localInput.valueOf();else return localInput.valueOf()<this.clone().startOf(units).valueOf();}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid()))return false;units=normalizeUnits(units)||'millisecond';if(units==='millisecond')return this.valueOf()<localInput.valueOf();else return this.clone().endOf(units).valueOf()<localInput.valueOf();}function isBetween(from,to,units,inclusivity){var localFrom=isMoment(from)?from:createLocal(from),localTo=isMoment(to)?to:createLocal(to);if(!(this.isValid()&&localFrom.isValid()&&localTo.isValid()))return false;inclusivity=inclusivity||'()';return ((inclusivity[0]==='('?this.isAfter(localFrom,units):!this.isBefore(localFrom,units))&&(inclusivity[1]===')'?this.isBefore(localTo,units):!this.isAfter(localTo,units)));}function isSame(input,units){var localInput=isMoment(input)?input:createLocal(input),inputMs;if(!(this.isValid()&&localInput.isValid()))return false;units=normalizeUnits(units)||'millisecond';if(units==='millisecond')return this.valueOf()===localInput.valueOf();else{inputMs=localInput.valueOf();return (this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf());}}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units);}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units);}function diff(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid())return NaN;that=cloneWithOffset(input,this);if(!that.isValid())return NaN;zoneDelta=(that.utcOffset()-this.utcOffset())*6e4;units=normalizeUnits(units);switch(units){case 'year':output=monthDiff(this,that)/12;break;case 'month':output=monthDiff(this,that);break;case 'quarter':output=monthDiff(this,that)/3;break;case 'second':output=(this-that)/1e3;break;case 'minute':output=(this-that)/6e4;break;case 'hour':output=(this-that)/36e5;break;case 'day':output=(this-that-zoneDelta)/864e5;break;case 'week':output=(this-that-zoneDelta)/6048e5;break;default:output=this-that;}return asFloat?output:absFloor(output);}function monthDiff(a,b){if(a.date()<b.date())return -monthDiff(b,a);var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,'months'),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,'months');adjust=(b-anchor)/(anchor-anchor2);}else{anchor2=a.clone().add(wholeMonthDiff+1,'months');adjust=(b-anchor)/(anchor2-anchor);}return -(wholeMonthDiff+adjust)||0;}hooks.defaultFormat='YYYY-MM-DDTHH:mm:ssZ';hooks.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]';function toString(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');}function toISOString(keepOffset){if(!this.isValid())return null;var utc=keepOffset!==true,m=utc?this.clone().utc():this;if(m.year()<0||m.year()>9999)return formatMoment(m,utc?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');if(isFunction(Date.prototype.toISOString))if(utc)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1000).toISOString().replace('Z',formatMoment(m,'Z'));return formatMoment(m,utc?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ');}function inspect(){if(!this.isValid())return 'moment.invalid(/* '+this._i+' */)';var func='moment',zone='',prefix,year,datetime,suffix;if(!this.isLocal()){func=this.utcOffset()===0?'moment.utc':'moment.parseZone';zone='Z';}prefix='['+func+'("]';year=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY';datetime='-MM-DD[T]HH:mm:ss.SSS';suffix=zone+'[")]';return this.format(prefix+year+datetime+suffix);}function format(inputString){if(!inputString)inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat;var output=formatMoment(this,inputString);
24return this.localeData().postformat(output);}function from(time,withoutSuffix){if(this.isValid()&&((isMoment(time)&&time.isValid())||createLocal(time).isValid()))return createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix);else return this.localeData().invalidDate();}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix);}function to(time,withoutSuffix){if(this.isValid()&&((isMoment(time)&&time.isValid())||createLocal(time).isValid()))return createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix);else return this.localeData().invalidDate();}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix);}function locale(key){var newLocaleData;if(key===undefined)return this._locale._abbr;else{newLocaleData=getLocale(key);if(newLocaleData!=null)this._locale=newLocaleData;return this;}}var lang=deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',function(key){if(key===undefined)return this.localeData();else return this.locale(key);});function localeData(){return this._locale;}var MS_PER_SECOND=1000,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(dividend,divisor){return ((dividend%divisor)+divisor)%divisor;}function localStartOfDate(y,m,d){if(y<100&&y>=0)return new Date(y+400,m,d)-MS_PER_400_YEARS;else return new Date(y,m,d).valueOf();}function utcStartOfDate(y,m,d){if(y<100&&y>=0)return Date.UTC(y+400,m,d)-MS_PER_400_YEARS;else return Date.UTC(y,m,d);}function startOf(units){var time,startOfDate;units=normalizeUnits(units);if(units===undefined||units==='millisecond'||!this.isValid())return this;startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case 'year':time=startOfDate(this.year(),0,1);break;case 'quarter':time=startOfDate(this.year(),this.month()-(this.month()%3),1);break;case 'month':time=startOfDate(this.year(),this.month(),1);break;case 'week':time=startOfDate(this.year(),this.month(),this.date()-this.weekday());break;case 'isoWeek':time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case 'day':case 'date':time=startOfDate(this.year(),this.month(),this.date());break;case 'hour':time=this._d.valueOf();time-=mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case 'minute':time=this._d.valueOf();time-=mod$1(time,MS_PER_MINUTE);break;case 'second':time=this._d.valueOf();time-=mod$1(time,MS_PER_SECOND);break;}this._d.setTime(time);hooks.updateOffset(this,true);return this;}function endOf(units){var time,startOfDate;units=normalizeUnits(units);if(units===undefined||units==='millisecond'||!this.isValid())return this;startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case 'year':time=startOfDate(this.year()+1,0,1)-1;break;case 'quarter':time=startOfDate(this.year(),this.month()-(this.month()%3)+3,1)-1;break;case 'month':time=startOfDate(this.year(),this.month()+1,1)-1;break;case 'week':time=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case 'isoWeek':time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case 'day':case 'date':time=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case 'hour':time=this._d.valueOf();time+=MS_PER_HOUR-mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case 'minute':time=this._d.valueOf();time+=MS_PER_MINUTE-mod$1(time,MS_PER_MINUTE)-1;break;case 'second':time=this._d.valueOf();time+=MS_PER_SECOND-mod$1(time,MS_PER_SECOND)-1;break;}this._d.setTime(time);hooks.updateOffset(this,true);return this;}function valueOf(){return this._d.valueOf()-(this._offset||0)*60000;}function unix(){return Math.floor(this.valueOf()/1000);}function toDate(){return new Date(this.valueOf());}function toArray(){var m=this;return [m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()];}function toObject(){var m=this;return {years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()};}function toJSON(){return this.isValid()?this.toISOString():null;}function isValid$2(){return isValid(this);}function parsingFlags(){return extend({},getParsingFlags(this));}
vendor: 8,567 bytes, line 24
24function invalidAt(){return getParsingFlags(this).overflow;}function creationData(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};}addFormatToken('N',0,0,'eraAbbr');addFormatToken('NN',0,0,'eraAbbr');addFormatToken('NNN',0,0,'eraAbbr');addFormatToken('NNNN',0,0,'eraName');addFormatToken('NNNNN',0,0,'eraNarrow');addFormatToken('y',['y',1],'yo','eraYear');addFormatToken('y',['yy',2],0,'eraYear');addFormatToken('y',['yyy',3],0,'eraYear');addFormatToken('y',['yyyy',4],0,'eraYear');addRegexToken('N',matchEraAbbr);addRegexToken('NN',matchEraAbbr);addRegexToken('NNN',matchEraAbbr);addRegexToken('NNNN',matchEraName);addRegexToken('NNNNN',matchEraNarrow);addParseToken(['N','NN','NNN','NNNN','NNNNN'],function(input,array,config,token){var era=config._locale.erasParse(input,token,config._strict);if(era)getParsingFlags(config).era=era;else getParsingFlags(config).invalidEra=input;});addRegexToken('y',matchUnsigned);addRegexToken('yy',matchUnsigned);addRegexToken('yyy',matchUnsigned);addRegexToken('yyyy',matchUnsigned);addRegexToken('yo',matchEraYearOrdinal);addParseToken(['y','yy','yyy','yyyy'],YEAR);addParseToken(['yo'],function(input,array,config,token){var match;if(config._locale._eraYearOrdinalRegex)match=input.match(config._locale._eraYearOrdinalRegex);if(config._locale.eraYearOrdinalParse)array[YEAR]=config._locale.eraYearOrdinalParse(input,match);else array[YEAR]=parseInt(input,10);});function localeEras(m,format){var i,l,date,eras=this._eras||getLocale('en')._eras;for(i=0,l=eras.length;i<l;++i){switch(typeof eras[i].since){case 'string':date=hooks(eras[i].since).startOf('day');eras[i].since=date.valueOf();break;}switch(typeof eras[i].until){case 'undefined':eras[i].until=+Infinity;break;case 'string':date=hooks(eras[i].until).startOf('day').valueOf();eras[i].until=date.valueOf();break;}}return eras;}function localeErasParse(eraName,format,strict){var i,l,eras=this.eras(),name,abbr,narrow;eraName=eraName.toUpperCase();for(i=0,l=eras.length;i<l;++i){name=eras[i].name.toUpperCase();abbr=eras[i].abbr.toUpperCase();narrow=eras[i].narrow.toUpperCase();if(strict)switch(format){case 'N':case 'NN':case 'NNN':if(abbr===eraName)return eras[i];break;case 'NNNN':if(name===eraName)return eras[i];break;case 'NNNNN':if(narrow===eraName)return eras[i];break;}else{if([name,abbr,narrow].indexOf(eraName)>=0)return eras[i];}}}function localeErasConvertYear(era,year){var dir=era.since<=era.until?+1:-1;if(year===undefined)return hooks(era.since).year();else return hooks(era.since).year()+(year-era.offset)*dir;}function getEraName(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){val=this.clone().startOf('day').valueOf();if(eras[i].since<=val&&val<=eras[i].until)return eras[i].name;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].name;}return '';}function getEraNarrow(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){val=this.clone().startOf('day').valueOf();if(eras[i].since<=val&&val<=eras[i].until)return eras[i].narrow;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].narrow;}return '';}function getEraAbbr(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){val=this.clone().startOf('day').valueOf();if(eras[i].since<=val&&val<=eras[i].until)return eras[i].abbr;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].abbr;}return '';}function getEraYear(){var i,l,dir,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){dir=eras[i].since<=eras[i].until?+1:-1;val=this.clone().startOf('day').valueOf();if((eras[i].since<=val&&val<=eras[i].until)||(eras[i].until<=val&&val<=eras[i].since))return ((this.year()-hooks(eras[i].since).year())*dir+eras[i].offset);}return this.year();}function erasNameRegex(isStrict){if(!hasOwnProp(this,'_erasNameRegex'))computeErasParse.call(this);return isStrict?this._erasNameRegex:this._erasRegex;}function erasAbbrRegex(isStrict){if(!hasOwnProp(this,'_erasAbbrRegex'))computeErasParse.call(this);return isStrict?this._erasAbbrRegex:this._erasRegex;}function erasNarrowRegex(isStrict){if(!hasOwnProp(this,'_erasNarrowRegex'))computeErasParse.call(this);return isStrict?this._erasNarrowRegex:this._erasRegex;}function matchEraAbbr(isStrict,locale){return locale.erasAbbrRegex(isStrict);}function matchEraName(isStrict,locale){return locale.erasNameRegex(isStrict);}function matchEraNarrow(isStrict,locale){return locale.erasNarrowRegex(isStrict);}function matchEraYearOrdinal(isStrict,locale){return locale._eraYearOrdinalRegex||matchUnsigned;}function computeErasParse(){var abbrPieces=[],namePieces=[],narrowPieces=[],mixedPieces=[],i,l,erasName,erasAbbr,erasNarrow,eras=this.eras();for(i=0,l=eras.length;i<l;++i){erasName=regexEscape(eras[i].name);erasAbbr=regexEscape(eras[i].abbr);erasNarrow=regexEscape(eras[i].narrow);namePieces.push(erasName);abbrPieces.push(erasAbbr);narrowPieces.push(erasNarrow);mixedPieces.push(erasName);mixedPieces.push(erasAbbr);mixedPieces.push(erasNarrow);}this._erasRegex=new RegExp('^('+mixedPieces.join('|')+')','i');this._erasNameRegex=new RegExp('^('+namePieces.join('|')+')','i');this._erasAbbrRegex=new RegExp('^('+abbrPieces.join('|')+')','i');this._erasNarrowRegex=new RegExp('^('+narrowPieces.join('|')+')','i');}addFormatToken(0,['gg',2],0,function(){return this.weekYear()%100;});addFormatToken(0,['GG',2],0,function(){return this.isoWeekYear()%100;});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter);}addWeekYearFormatToken('gggg','weekYear');addWeekYearFormatToken('ggggg','weekYear');addWeekYearFormatToken('GGGG','isoWeekYear');addWeekYearFormatToken('GGGGG','isoWeekYear');addRegexToken('G',matchSigned);addRegexToken('g',matchSigned);addRegexToken('GG',match1to2,match2);addRegexToken('gg',match1to2,match2);addRegexToken('GGGG',match1to4,match4);addRegexToken('gggg',match1to4,match4);addRegexToken('GGGGG',match1to6,match6);addRegexToken('ggggg',match1to6,match6);addWeekParseToken(['gggg','ggggg','GGGG','GGGGG'],function(input,week,config,token){week[token.substr(0,2)]=toInt(input);});addWeekParseToken(['gg','GG'],function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input);});function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy);}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4);}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4);}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4);}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy);}function getWeeksInWeekYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.weekYear(),weekInfo.dow,weekInfo.doy);}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;if(input==null)return weekOfYear(this,dow,doy).year;else{weeksTarget=weeksInYear(input,dow,doy);if(week>weeksTarget)week=weeksTarget;return setWeekAll.call(this,input,week,weekday,dow,doy);}}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);this.year(date.getUTCFullYear());this.month(date.getUTCMonth());this.date(date.getUTCDate());return this;}addFormatToken('Q',0,'Qo','quarter');addRegexToken('Q',match1);addParseToken('Q',function(input,array){array[MONTH]=(toInt(input)-1)*3;});function getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+(this.month()%3));}addFormatToken('D',['DD',2],'Do','date');addRegexToken('D',match1to2,match1to2NoLeadingZero);addRegexToken('DD',match1to2,match2);addRegexToken('Do',function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient;});addParseToken(['D','DD'],DATE);addParseToken('Do',function(input,array){array[DATE]=toInt(input.match(match1to2)[0]);});var getSetDayOfMonth=makeGetSet('Date',true);addFormatToken('DDD',['DDDD',3],'DDDo','dayOfYear');addRegexToken('DDD',match1to3);addRegexToken('DDDD',match3);addParseToken(['DDD','DDDD'],function(input,array,config){config._dayOfYear=toInt(input);});function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,'d');}
vendor: 5,940 bytes, line 24
24addFormatToken('m',['mm',2],0,'minute');addRegexToken('m',match1to2,match1to2HasZero);addRegexToken('mm',match1to2,match2);addParseToken(['m','mm'],MINUTE);var getSetMinute=makeGetSet('Minutes',false);addFormatToken('s',['ss',2],0,'second');addRegexToken('s',match1to2,match1to2HasZero);addRegexToken('ss',match1to2,match2);addParseToken(['s','ss'],SECOND);var getSetSecond=makeGetSet('Seconds',false);addFormatToken('S',0,0,function(){return ~~(this.millisecond()/100);});addFormatToken(0,['SS',2],0,function(){return ~~(this.millisecond()/10);});addFormatToken(0,['SSS',3],0,'millisecond');addFormatToken(0,['SSSS',4],0,function(){return this.millisecond()*10;});addFormatToken(0,['SSSSS',5],0,function(){return this.millisecond()*100;});addFormatToken(0,['SSSSSS',6],0,function(){return this.millisecond()*1000;});addFormatToken(0,['SSSSSSS',7],0,function(){return this.millisecond()*10000;});addFormatToken(0,['SSSSSSSS',8],0,function(){return this.millisecond()*100000;});addFormatToken(0,['SSSSSSSSS',9],0,function(){return this.millisecond()*1000000;});addRegexToken('S',match1to3,match1);addRegexToken('SS',match1to3,match2);addRegexToken('SSS',match1to3,match3);var token,getSetMillisecond;for(token='SSSS';token.length<=9;token+='S')addRegexToken(token,matchUnsigned);function parseMs(input,array){array[MILLISECOND]=toInt(('0.'+input)*1000);}for(token='S';token.length<=9;token+='S')addParseToken(token,parseMs);getSetMillisecond=makeGetSet('Milliseconds',false);addFormatToken('z',0,0,'zoneAbbr');addFormatToken('zz',0,0,'zoneName');function getZoneAbbr(){return this._isUTC?'UTC':'';}function getZoneName(){return this._isUTC?'Coordinated Universal Time':'';}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;if(typeof Symbol!=='undefined'&&Symbol.for!=null)proto[Symbol.for('nodejs.util.inspect.custom')]=function(){return 'Moment<'+this.format()+'>';};proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate('dates accessor is deprecated. Use date instead.',getSetDayOfMonth);proto.months=deprecate('months accessor is deprecated. Use month instead',getSetMonth);proto.years=deprecate('years accessor is deprecated. Use year instead',getSetYear);proto.zone=deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',getSetZone);proto.isDSTShifted=deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',isDaylightSavingTimeShifted);function createUnix(input){return createLocal(input*1000);}function createInZone(){return createLocal.apply(null,arguments).parseZone();}function preParsePostFormat(string){return string;}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(format,index,field,setter){var locale=getLocale(),utc=createUTC().set(setter,index);
vendor: 4,411 bytes, line 24
24return locale[field](utc,format);}function listMonthsImpl(format,index,field){if(isNumber(format)){index=format;format=undefined;}format=format||'';if(index!=null)return get$1(format,index,field,'month');var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format,i,field,'month');return out;}function listWeekdaysImpl(localeSorted,format,index,field){if(typeof localeSorted==='boolean'){if(isNumber(format)){index=format;format=undefined;}format=format||'';}else{format=localeSorted;index=format;localeSorted=false;if(isNumber(format)){index=format;format=undefined;}format=format||'';}var locale=getLocale(),shift=localeSorted?locale._week.dow:0,i,out=[];if(index!=null)return get$1(format,(index+shift)%7,field,'day');for(i=0;i<7;i++)out[i]=get$1(format,(i+shift)%7,field,'day');return out;}function listMonths(format,index){return listMonthsImpl(format,index,'months');}function listMonthsShort(format,index){return listMonthsImpl(format,index,'monthsShort');}function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdays');}function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdaysShort');}function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdaysMin');}getSetGlobalLocale('en',{eras:[{since:'0001-01-01',until:+Infinity,offset:1,name:'Anno Domini',narrow:'AD',abbr:'AD'},{since:'0000-12-31',until:-Infinity,offset:1,name:'Before Christ',narrow:'BC',abbr:'BC'}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10,output=toInt((number%100)/10)===1?'th':b===1?'st':b===2?'nd':b===3?'rd':'th';return number+output;}});hooks.lang=deprecate('moment.lang is deprecated. Use moment.locale instead.',getSetGlobalLocale);hooks.langData=deprecate('moment.langData is deprecated. Use moment.localeData instead.',getLocale);var mathAbs=Math.abs;function abs(){var data=this._data;this._milliseconds=mathAbs(this._milliseconds);this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);return this;}function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;return duration._bubble();}function add$1(input,value){return addSubtract$1(this,input,value,1);}function subtract$1(input,value){return addSubtract$1(this,input,value,-1);}function absCeil(number){if(number<0)return Math.floor(number);else return Math.ceil(number);}function bubble(){var milliseconds=this._milliseconds,days=this._days,months=this._months,data=this._data,seconds,minutes,hours,years,monthsFromDays;if(!((milliseconds>=0&&days>=0&&months>=0)||(milliseconds<=0&&days<=0&&months<=0))){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0;}data.milliseconds=milliseconds%1000;seconds=absFloor(milliseconds/1000);data.seconds=seconds%60;minutes=absFloor(seconds/60);data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this;}function daysToMonths(days){return (days*4800)/146097;}function monthsToDays(months){return (months*146097)/4800;}function as(units){if(!this.isValid())return NaN;var days,months,milliseconds=this._milliseconds;units=normalizeUnits(units);if(units==='month'||units==='quarter'||units==='year'){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);switch(units){case 'month':return months;case 'quarter':return months/3;case 'year':return months/12;}}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case 'week':return days/7+milliseconds/6048e5;case 'day':return days+milliseconds/864e5;case 'hour':return days*24+milliseconds/36e5;case 'minute':return days*1440+milliseconds/6e4;case 'second':return days*86400+milliseconds/1000;case 'millisecond':return Math.floor(days*864e5)+milliseconds;default:throw new Error('Unknown unit '+units);}}
24}function makeAs(alias){return function(){return this.as(alias);};}var asMilliseconds=makeAs('ms'),asSeconds=makeAs('s'),asMinutes=makeAs('m'),asHours=makeAs('h'),asDays=makeAs('d'),asWeeks=makeAs('w'),asMonths=makeAs('M'),asQuarters=makeAs('Q'),asYears=makeAs('y'),valueOf$1=asMilliseconds;function clone$1(){return createDuration(this);}function get$2(units){units=normalizeUnits(units);return this.isValid()?this[units+'s']():NaN;}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN;};}var milliseconds=makeGetter('milliseconds'),seconds=makeGetter('seconds'),minutes=makeGetter('minutes'),hours=makeGetter('hours'),days=makeGetter('days'),months=makeGetter('months'),years=makeGetter('years');function weeks(){return absFloor(this.days()/7);}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture);}function relativeTime$1(posNegDuration,withoutSuffix,thresholds,locale){var duration=createDuration(posNegDuration).abs(),seconds=round(duration.as('s')),minutes=round(duration.as('m')),hours=round(duration.as('h')),days=round(duration.as('d')),months=round(duration.as('M')),weeks=round(duration.as('w')),years=round(duration.as('y')),a=(seconds<=thresholds.ss&&['s',seconds])||(seconds<thresholds.s&&['ss',seconds])||(minutes<=1&&['m'])||(minutes<thresholds.m&&['mm',minutes])||(hours<=1&&['h'])||(hours<thresholds.h&&['hh',hours])||(days<=1&&['d'])||(days<thresholds.d&&['dd',days]);if(thresholds.w!=null)a=a||(weeks<=1&&['w'])||(weeks<thresholds.w&&['ww',weeks]);a=a||(months<=1&&['M'])||(months<thresholds.M&&['MM',months])||(years<=1&&['y'])||['yy',years];a[2]=withoutSuffix;a[3]=+posNegDuration>0;a[4]=locale;return substituteTimeAgo.apply(null,a);}function getSetRelativeTimeRounding(roundingFunction){if(roundingFunction===undefined)return round;if(typeof roundingFunction==='function'){round=roundingFunction;return true;}return false;}function getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined)return false;if(limit===undefined)return thresholds[threshold];thresholds[threshold]=limit;if(threshold==='s')thresholds.ss=limit-1;return true;}function humanize(argWithSuffix,argThresholds){if(!this.isValid())return this.localeData().invalidDate();var withSuffix=false,th=thresholds,locale,output;if(typeof argWithSuffix==='object'){argThresholds=argWithSuffix;argWithSuffix=false;}if(typeof argWithSuffix==='boolean')withSuffix=argWithSuffix;if(typeof argThresholds==='object'){th=Object.assign({},thresholds,argThresholds);if(argThresholds.s!=null&&argThresholds.ss==null)th.ss=argThresholds.s-1;}locale=this.localeData();output=relativeTime$1(this,!withSuffix,th,locale);if(withSuffix)output=locale.pastFuture(+this,output);return locale.postformat(output);}var abs$1=Math.abs;function sign(x){return (x>0)-(x<0)||+x;}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var seconds=abs$1(this._milliseconds)/1000,days=abs$1(this._days),months=abs$1(this._months),minutes,hours,years,s,total=this.asSeconds(),totalSign,ymSign,daysSign,hmsSign;if(!total)return 'P0D';minutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;years=absFloor(months/12);months%=12;s=seconds?seconds.toFixed(3).replace(/\.?0+$/,''):'';totalSign=total<0?'-':'';ymSign=sign(this._months)!==sign(total)?'-':'';daysSign=sign(this._days)!==sign(total)?'-':'';hmsSign=sign(this._milliseconds)!==sign(total)?'-':'';return (totalSign+'P'+(years?ymSign+years+'Y':'')+(months?ymSign+months+'M':'')+(days?daysSign+days+'D':'')+(hours||minutes||seconds?'T':'')+(hours?hmsSign+hours+'H':'')+(minutes?hmsSign+minutes+'M':'')+(seconds?hmsSign+s+'S':''));}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',toISOString$1);proto$2.lang=lang;addFormatToken('X',0,0,'unix');addFormatToken('x',0,0,'valueOf');addRegexToken('x',matchSigned);addRegexToken('X',matchTimestamp);addParseToken('X',function(input,array,config){config._d=new Date(parseFloat(input)*1000);});addParseToken('x',function(input,array,config){config._d=new Date(toInt(input));});hooks.version='2.30.1';setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'GGGG-[W]WW',MONTH:'YYYY-MM'};return hooks;})));;
25!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={});}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window;}return e;}function n(e){return e instanceof t(e).Element||e instanceof Element;}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement;}function o(e){return "undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot);}var i=Math.max,a=Math.min,s=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version;})).join(" "):navigator.userAgent;}function c(){return !/^((?!chrome|android).)*safari/i.test(f());}function p(e,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),f=1,p=1;o&&r(e)&&(f=e.offsetWidth>0&&s(a.width)/e.offsetWidth||1,p=e.offsetHeight>0&&s(a.height)/e.offsetHeight||1);
25var u=(n(e)?t(e):window).visualViewport,l=!c()&&i,d=(a.left+(l&&u?u.offsetLeft:0))/f,h=(a.top+(l&&u?u.offsetTop:0))/p,m=a.width/f,v=a.height/p;return {width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h};}function u(e){var n=t(e);return {scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset};}function l(e){return e?(e.nodeName||"").toLowerCase():null;}function d(e){return ((n(e)?e.ownerDocument:e.document)||window.document).documentElement;}function h(e){return p(d(e)).left+u(e).scrollLeft;}function m(e){return t(e).getComputedStyle(e);}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return /auto|scroll|overlay|hidden/.test(n+o+r);}function y(e,n,o){void 0===o&&(o=!1);var i,a,f=r(n),c=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r;}(n),m=d(n),y=p(e,c,o),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return (f||!f&&!o)&&(("body"!==l(n)||v(m))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:u(i)),r(n)?((b=p(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=h(m))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height};}function g(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r};}function b(e){return "html"===l(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||d(e);}function x(e){return ["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&v(e)?e:x(b(e));}function w(e,n){var r;void 0===n&&(n=[]);var o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],v(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(w(b(s)));}function O(e){return ["table","td","th"].indexOf(l(e))>=0;}function j(e){return r(e)&&"fixed"!==m(e).position?e.offsetParent:null;}function E(e){for(var n=t(e),i=j(e);i&&O(i)&&"static"===m(i).position;)i=j(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===m(i).position)?n:i||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&r(e)&&"fixed"===m(e).position)return null;var n=b(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(l(n))<0;){var i=m(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode;}return null;}(e)||n;}var D="top",A="bottom",L="right",P="left",M="auto",k=[D,A,L,P],W="start",B="end",H="viewport",T="popper",R=k.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B]);}),[]),S=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B]);}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map(),n=new Set(),r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r);}})),r.push(e);}return e.forEach((function(e){t.set(e.name,e);})),e.forEach((function(e){n.has(e.name)||o(e);})),r;}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return !0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return !0;r=r.parentNode||r.host;}while(r);}return !1;}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height});}function I(e,r,o){return r===H?N(function(e,n){var r=t(e),o=d(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,p=0;if(i){a=i.width,s=i.height;var u=c();(u||!u&&"fixed"===n)&&(f=i.offsetLeft,p=i.offsetTop);}return {width:a,height:s,x:f+h(e),y:p};}(e,o)):n(r)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n;}(r,o):N(function(e){var t,n=d(e),r=u(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+h(e),c=-r.scrollTop;return "rtl"===m(o||n).direction&&(f+=i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:f,y:c};}(d(e)));}function _(e,t,o,s){var f="clippingParents"===t?function(e){var t=w(b(e)),o=["absolute","fixed"].indexOf(m(e).position)>=0&&r(e)?E(e):e;return n(o)?t.filter((function(e){return n(e)&&C(e,o)&&"body"!==l(e);})):[];}(e):[].concat(t),c=[].concat(f,[o]),p=c[0],u=c.reduce((function(t,n){var r=I(e,n,s);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t;}),I(e,p,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u;}function F(e){return e.split("-")[0];}function U(e){return e.split("-")[1];}function z(e){return ["top","bottom"].indexOf(e)>=0?"x":"y";}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?F(o):null,a=o?U(o):null,
25s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case D:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:f};break;case P:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y};}var c=i?z(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case W:t[c]=t[c]-(n[p]/2-r[p]/2);break;case B:t[c]=t[c]+(n[p]/2-r[p]/2);}}return t;}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e);}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t;}),{});}function J(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.strategy,s=void 0===a?e.strategy:a,f=r.boundary,c=void 0===f?"clippingParents":f,u=r.rootBoundary,l=void 0===u?H:u,h=r.elementContext,m=void 0===h?T:h,v=r.altBoundary,y=void 0!==v&&v,g=r.padding,b=void 0===g?0:g,x=Y("number"!=typeof b?b:G(b,k)),w=m===T?"reference":T,O=e.rects.popper,j=e.elements[y?w:m],E=_(n(j)?j:j.contextElement||d(e.elements.popper),c,l,s),P=p(e.elements.reference),M=X({reference:P,element:O,strategy:"absolute",placement:i}),W=N(Object.assign({},O,M)),B=m===T?W:P,R={top:E.top-B.top+x.top,bottom:B.bottom-E.bottom+x.bottom,left:E.left-B.left+x.left,right:B.right-E.right+x.right},S=e.modifiersData.offset;if(m===T&&S){var V=S[i];Object.keys(R).forEach((function(e){var t=[L,A].indexOf(e)>=0?1:-1,n=[D,A].indexOf(e)>=0?"y":"x";R[e]+=V[n]*t;}));}return R;}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return !t.some((function(e){return !(e&&"function"==typeof e.getBoundingClientRect);}));}function Z(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?K:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,p,d=function(e){var t=q(e);return V.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n;})));}),[]);}((s=[].concat(o,f.options.modifiers),p=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e;}),{}),Object.keys(p).map((function(e){return p[e];}))));return f.orderedModifiers=d.filter((function(e){return e.enabled;})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a);}})),u.update();},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(Q(t,n)){f.rects={reference:y(t,E(n),"fixed"===f.options.strategy),popper:g(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data);}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f);}else f.reset=!1,r=-1;}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f);}));},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i());}));}))),s;}),destroy:function(){l(),p=!0;}};if(!Q(e,t))return u;function l(){c.forEach((function(e){return e();})),c=[];}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e);})),u;};}var $={passive:!0};var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,$);})),f&&c.addEventListener("resize",r.update,$),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,$);})),f&&c.removeEventListener("resize",r.update,$);};},data:{}};var te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement});},data:{}},ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};
vendor: 2,814 bytes, line 25
25function re(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,b=void 0===g?0:g,x="function"==typeof l?l({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var w=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),j=P,M=D,k=window;if(u){var W=E(r),H="clientHeight",T="clientWidth";if(W===t(r)&&"static"!==m(W=d(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),W=W,i===D||(i===P||i===L)&&a===B)M=A,b-=(h&&W===k&&k.visualViewport?k.visualViewport.height:W[H])-o.height,b*=p?1:-1;if(i===P||(i===D||i===A)&&a===B)j=L,y-=(h&&W===k&&k.visualViewport?k.visualViewport.width:W[T])-o.width,y*=p?1:-1;}var R,S=Object.assign({position:c},u&&ne),V=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return {x:s(n*o)/o||0,y:s(r*o)/o||0};}({x:y,y:b},t(r)):{x:y,y:b};return y=V.x,b=V.y,p?Object.assign({},S,((R={})[M]=O?"0":"",R[j]=w?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=O?b+"px":"",n[j]=w?y+"px":"",n.transform="",n));}var oe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:F(t.placement),variation:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}};var ie={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t);})));}));},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e;}),{});
25r(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e);})));}));};},requires:["computeStyles"]};var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=S.reduce((function(e,n){return e[n]=function(e,t,n){var r=F(e),o=[P,D].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s};}(n,t.rects,i),e;}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a;}},se={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e];}));}var ce={start:"end",end:"start"};function pe(e){return e.replace(/start|end/g,(function(e){return ce[e];}));}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?S:f,p=U(r),u=p?s?R:R.filter((function(e){return U(e)===p;})):k,l=u.filter((function(e){return c.indexOf(e)>=0;}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=J(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[F(n)],t;}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t];}));}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=F(v),g=f||(y===v||!h?[fe(v)]:function(e){if(F(e)===M)return [];var t=fe(e);return [pe(e),t,pe(t)];}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(F(n)===M?ue(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n);}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map(),j=!0,E=b[0],k=0;k<b.length;k++){var B=b[k],H=F(B),T=U(B)===W,R=[D,A].indexOf(H)>=0,S=R?"width":"height",V=J(t,{placement:B,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),q=R?T?L:P:T?A:D;x[S]>w[S]&&(q=fe(q));var C=fe(q),N=[];if(i&&N.push(V[H]<=0),s&&N.push(V[q]<=0,V[C]<=0),N.every((function(e){return e;}))){E=B,j=!1;break;}O.set(B,N);}if(j)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e;}));}));if(t)return E=t,"break";},_=h?3:1;_>0;_--)if("break"===I(_))break;t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,n){return i(e,a(t,n));}var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,y=void 0===v?0:v,b=J(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),x=F(t.placement),w=U(t.placement),O=!w,j=z(x),M="x"===j?"y":"x",k=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,R="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(s){var q,C="y"===j?D:P,N="y"===j?A:L,I="y"===j?"height":"width",_=k[j],X=_+b[C],Y=_-b[N],G=m?-H[I]/2:0,K=w===W?B[I]:H[I],Q=w===W?-H[I]:-B[I],Z=t.elements.arrow,$=m&&Z?g(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[C],ne=ee[N],re=de(0,B[I],$[I]),oe=O?B[I]/2-G-re-te-R.mainAxis:K-re-te-R.mainAxis,ie=O?-B[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===j?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(q=null==S?void 0:S[j])?q:0,ce=_+ie-fe,pe=de(m?a(X,_+oe-fe-se):X,_,m?i(Y,ce):Y);k[j]=pe,V[j]=pe-_;}if(c){var ue,le="x"===j?D:P,he="x"===j?A:L,me=k[M],ve="y"===M?"height":"width",ye=me+b[le],ge=me-b[he],be=-1!==[D,P].indexOf(x),xe=null!=(ue=null==S?void 0:S[M])?ue:0,we=be?ye:me-B[ve]-H[ve]-xe+R.altAxis,Oe=be?me+B[ve]+H[ve]-xe-R.altAxis:ge,je=m&&be?function(e,t,n){var r=de(e,t,n);return r>n?n:r;}(we,me,Oe):de(m?we:ye,me,m?Oe:ge);k[M]=je,V[M]=je-me;}t.modifiersData[r]=V;}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=F(n.placement),f=z(s),c=[P,L].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return Y("number"!=typeof (e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,k));}(o.padding,n),u=g(i),l="y"===f?D:P,d="y"===f?A:L,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=E(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],O=y/2-u[c]/2+b,j=de(x,O,w),M=f;n.modifiersData[r]=((t={})[M]=j,t.centerOffset=j-O,t);}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x};}function ye(e){return [D,L,A,P].some((function(t){return e[t]>=0;}));}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
25cts.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),f=ve(a,r),c=ve(s,o,i),p=ye(f),u=ye(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u});}},be=Z({defaultModifiers:[ee,te,oe,ie]}),xe=[ee,te,oe,ie,ae,le,he,me,ge],we=Z({defaultModifiers:xe});e.applyStyles=ie,e.arrow=me,e.computeStyles=oe,e.createPopper=we,e.createPopperLite=be,e.defaultModifiers=xe,e.detectOverflow=J,e.eventListeners=ee,e.flip=le,e.hide=ge,e.offset=ae,e.popperGenerator=Z,e.popperOffsets=te,e.preventOverflow=he,Object.defineProperty(e,"__esModule",{value:!0});}));;
26(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(exports):typeof define==='function'&&define.amd?define(['exports'],factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,factory(global.tempusDominus={}));})(this,(function(exports){'use strict';class TdError extends Error{}class ErrorMessages{constructor(){this.base='TD:';this.failedToSetInvalidDate='Failed to set invalid date';this.failedToParseInput='Failed parse input field';}unexpectedOption(optionName){const error=new TdError(`${this.base} Unexpected option: ${optionName} does not match a known option.`);error.code=1;throw error;}unexpectedOptions(optionName){const error=new TdError(`${this.base}: ${optionName.join(', ')}`);error.code=1;throw error;}unexpectedOptionValue(optionName,badValue,validOptions){const error=new TdError(`${this.base} Unexpected option value: ${optionName} does not accept a value of "${badValue}". Valid values are: ${validOptions.join(', ')}`);error.code=2;throw error;}typeMismatch(optionName,badType,expectedType){const error=new TdError(`${this.base} Mismatch types: ${optionName} has a type of ${badType} instead of the required ${expectedType}`);error.code=3;throw error;}numbersOutOfRange(optionName,lower,upper){const error=new TdError(`${this.base} ${optionName} expected an array of number between ${lower} and ${upper}.`);error.code=4;throw error;}failedToParseDate(optionName,date,soft=false){const error=new TdError(`${this.base} Could not correctly parse "${date}" to a date for ${optionName}.`);error.code=5;if(!soft)throw error;console.warn(error);}mustProvideElement(){const error=new TdError(`${this.base} No element was provided.`);error.code=6;throw error;}subscribeMismatch(){const error=new TdError(`${this.base} The subscribed events does not match the number of callbacks`);error.code=7;throw error;}conflictingConfiguration(message){const error=new TdError(`${this.base} A configuration value conflicts with another rule. ${message}`);error.code=8;throw error;}customDateFormatError(message){const error=new TdError(`${this.base} Custom Date Format: ${message}`);error.code=9;throw error;}dateString(){console.warn(`${this.base} Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.`);}deprecatedWarning(message,remediation){console.warn(`${this.base} Warning ${message} is deprecated and will be removed in a future version. ${remediation}`);}throwError(message){const error=new TdError(`${this.base} ${message}`);error.code=9;throw error;}}const NAME='tempus-dominus',dataKey='td';class Events{constructor(){this.key=`.${dataKey}`;this.change=`change${this.key}`;this.update=`update${this.key}`;this.error=`error${this.key}`;this.show=`show${this.key}`;this.hide=`hide${this.key}`;this.blur=`blur${this.key}`;this.focus=`focus${this.key}`;this.keyup=`keyup${this.key}`;this.keydown=`keydown${this.key}`;}}class Css{constructor(){this.widget=`${NAME}-widget`;this.calendarHeader='calendar-header';this.switch='picker-switch';this.toolbar='toolbar';this.noHighlight='no-highlight';this.sideBySide='timepicker-sbs';this.previous='previous';this.next='next';this.disabled='disabled';this.old='old';this.new='new';this.active='active';this.dateContainer='date-container';this.decadesContainer=`${this.dateContainer}-decades`;this.decade='decade';this.yearsContainer=`${this.dateContainer}-years`;this.year='year';this.monthsContainer=`${this.dateContainer}-months`;this.month='month';this.daysContainer=`${this.dateContainer}-days`;this.day='day';this.calendarWeeks='cw';this.dayOfTheWeek='dow';this.today='today';this.weekend='weekend';this.rangeIn='range-in';this.rangeStart='range-start';this.rangeEnd='range-end';this.timeContainer='time-container';this.separator='separator';this.clockContainer=`${this.timeContainer}-clock`;this.hourContainer=`${this.timeContainer}-hour`;this.minuteContainer=`${this.timeContainer}-minute`;this.secondContainer=`${this.timeContainer}-second`;this.hour='hour';this.minute='minute';this.second='second';this.toggleMeridiem='toggleMeridiem';this.show='show';this.collapsing='td-collapsing';this.collapse='td-collapse';this.inline='inline';this.lightTheme='light';this.darkTheme='dark';this.isDarkPreferredQuery='(prefers-color-scheme: dark)';}}class Namespace{}Namespace.NAME=NAME;Namespace.dataKey=dataKey;Namespace.events=new Events();Namespace.css=new Css();Namespace.errorMessages=new ErrorMessages();const DefaultFormatLocalization={dateFormats:{LTS:'h:mm:ss T',LT:'h:mm T',L:'MM/dd/yyyy',
26LL:'MMMM d, yyyy',LLL:'MMMM d, yyyy h:mm T',LLLL:'dddd, MMMM d, yyyy h:mm T'},format:'L LT',locale:'default',hourCycle:undefined,ordinal:(n)=>{const s=['th','st','nd','rd'];const v=n%100;return `[${n}${s[(v-20)%10]||s[v]||s[0]}]`;}};var DefaultFormatLocalization$1={...DefaultFormatLocalization};exports.Unit=void 0;(function(Unit){Unit["seconds"]="seconds";Unit["minutes"]="minutes";Unit["hours"]="hours";Unit["date"]="date";Unit["month"]="month";Unit["year"]="year";})(exports.Unit||(exports.Unit={}));const twoDigitTemplate={month:'2-digit',day:'2-digit',year:'numeric',hour:'2-digit',minute:'2-digit',second:'2-digit'};const getFormatByUnit=(unit)=>{switch(unit){case 'date':return {dateStyle:'short'};case 'month':return {month:'numeric',year:'numeric'};case 'year':return {year:'numeric'};}};const guessHourCycle=(locale)=>{if(!locale)return 'h12';const template={hour:'2-digit',minute:'2-digit',numberingSystem:'latn'};const dt=new DateTime().setLocalization({locale});dt.hours=0;const start=dt.parts(undefined,template).hour;if(start==='12')return 'h12';if(start==='24')return 'h24';dt.hours=23;const end=dt.parts(undefined,template).hour;if(start==='00'&&end==='11')return 'h11';if(start==='00'&&end==='23')return 'h23';console.warn(`couldn't determine hour cycle for ${locale}. start: ${start}. end: ${end}`);return undefined;};class DateTime extends Date{constructor(){super(...arguments);this.localization=DefaultFormatLocalization$1;this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334];this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];this.dateTimeRegex=/(\[[^[\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g;this.formattingTokens=/(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?d?d?|hh?|HH?|mm?|ss?)/g;this.match2=/\d\d/;this.match3=/\d{3}/;this.match4=/\d{4}/;this.match1to2=/\d\d?/;this.matchSigned=/[+-]?\d+/;this.matchOffset=/[+-]\d\d:?(\d\d)?|Z/;this.matchWord=/[^\d_:/,\-()\s]+/;this.zoneExpressions=[this.matchOffset,(obj,input)=>{obj.offset=this.offsetFromString(input);}];this.expressions={t:{pattern:undefined,parser:(obj,input)=>{obj.afternoon=this.meridiemMatch(input);}},T:{pattern:undefined,parser:(obj,input)=>{obj.afternoon=this.meridiemMatch(input);}},fff:{pattern:this.match3,parser:(obj,input)=>{obj.milliseconds=+input;}},s:{pattern:this.match1to2,parser:this.addInput('seconds')},ss:{pattern:this.match1to2,parser:this.addInput('seconds')},m:{pattern:this.match1to2,parser:this.addInput('minutes')},mm:{pattern:this.match1to2,parser:this.addInput('minutes')},H:{pattern:this.match1to2,parser:this.addInput('hours')},h:{pattern:this.match1to2,parser:this.addInput('hours')},HH:{pattern:this.match1to2,parser:this.addInput('hours')},hh:{pattern:this.match1to2,parser:this.addInput('hours')},d:{pattern:this.match1to2,parser:this.addInput('day')},dd:{pattern:this.match2,parser:this.addInput('day')},Do:{pattern:this.matchWord,parser:(obj,input)=>{obj.day=+(input.match(/\d+/)[0]||1);if(!this.localization.ordinal)return;for(let i=1;i<=31;i+=1)if(this.localization.ordinal(i).replace(/[[\]]/g,'')===input)obj.day=i;}},M:{pattern:this.match1to2,parser:this.addInput('month')},MM:{pattern:this.match2,parser:this.addInput('month')},MMM:{pattern:this.matchWord,parser:(obj,input)=>{const months=this.getAllMonths();const monthsShort=this.getAllMonths('short');const matchIndex=(monthsShort||months.map((_)=>_.slice(0,3))).indexOf(input)+1;if(matchIndex<1)throw new Error();obj.month=matchIndex%12||matchIndex;}},MMMM:{pattern:this.matchWord,parser:(obj,input)=>{const months=this.getAllMonths();const matchIndex=months.indexOf(input)+1;if(matchIndex<1)throw new Error();obj.month=matchIndex%12||matchIndex;}},y:{pattern:this.matchSigned,parser:this.addInput('year')},yy:{pattern:this.match2,parser:(obj,input)=>{obj.year=this.parseTwoDigitYear(+input);}},yyyy:{pattern:this.match4,parser:this.addInput('year')}};}setLocale(value){if(!this.localization){this.localization=DefaultFormatLocalization$1;this.localization.locale=value;}return this;}setLocalization(value){this.localization=value;return this;}static convert(date,locale='default',formatLocalization=undefined){if(!date)throw new Error(`A date is required`);if(!formatLocalization){formatLocalization=DefaultFormatLocalization$1;formatLocalization.locale=locale;}return new DateTime(date.getFullYear(),date.getMonth(),date.getDate(),date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds()).set
vendor: 4,061 bytes, line 26
26Localization(formatLocalization);}get clone(){return new DateTime(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization);}static isValid(d){if(d===undefined||JSON.stringify(d)==='null')return false;if(d.constructor.name===DateTime.name)return true;return false;}startOf(unit,startOfTheWeek=0){if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);switch(unit){case 'seconds':this.setMilliseconds(0);break;case 'minutes':this.setSeconds(0,0);break;case 'hours':this.setMinutes(0,0,0);break;case 'date':this.setHours(0,0,0,0);break;case 'weekDay':{this.startOf(exports.Unit.date);if(this.weekDay===startOfTheWeek)break;const goBack=(this.weekDay-startOfTheWeek+7)%7;this.manipulate(goBack*-1,exports.Unit.date);break;}case 'month':this.startOf(exports.Unit.date);this.setDate(1);break;case 'year':this.startOf(exports.Unit.date);this.setMonth(0,1);break;}return this;}endOf(unit,startOfTheWeek=0){if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);switch(unit){case 'seconds':this.setMilliseconds(999);break;case 'minutes':this.setSeconds(59,999);break;case 'hours':this.setMinutes(59,59,999);break;case 'date':this.setHours(23,59,59,999);break;case 'weekDay':{this.endOf(exports.Unit.date);const endOfWeek=6+startOfTheWeek;if(this.weekDay===endOfWeek)break;this.manipulate(endOfWeek-this.weekDay,exports.Unit.date);break;}case 'month':this.endOf(exports.Unit.date);this.manipulate(1,exports.Unit.month);this.setDate(0);break;case 'year':this.endOf(exports.Unit.date);this.setMonth(11,31);break;}return this;}manipulate(value,unit){if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);this[unit]+=value;return this;}isBefore(compare,unit){if(!DateTime.isValid(compare))return false;if(!unit)return this.valueOf()<compare.valueOf();if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);return (this.clone.startOf(unit).valueOf()<compare.clone.startOf(unit).valueOf());}isAfter(compare,unit){if(!DateTime.isValid(compare))return false;if(!unit)return this.valueOf()>compare.valueOf();if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);return (this.clone.startOf(unit).valueOf()>compare.clone.startOf(unit).valueOf());}isSame(compare,unit){if(!DateTime.isValid(compare))return false;if(!unit)return this.valueOf()===compare.valueOf();if(this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);compare=DateTime.convert(compare);return (this.clone.startOf(unit).valueOf()===compare.startOf(unit).valueOf());}isBetween(left,right,unit,inclusivity='()'){if(!DateTime.isValid(left)||!DateTime.isValid(right))return false;if(unit&&this[unit]===undefined)throw new Error(`Unit '${unit}' is not valid`);const leftInclusivity=inclusivity[0]==='(';const rightInclusivity=inclusivity[1]===')';const isLeftInRange=leftInclusivity?this.isAfter(left,unit):!this.isBefore(left,unit);const isRightInRange=rightInclusivity?this.isBefore(right,unit):!this.isAfter(right,unit);return isLeftInRange&&isRightInRange;}parts(locale=this.localization.locale,template={dateStyle:'full',timeStyle:'long'}){const parts={};new Intl.DateTimeFormat(locale,template).formatToParts(this).filter((x)=>x.type!=='literal').forEach((x)=>(parts[x.type]=x.value));return parts;}get seconds(){return this.getSeconds();}set seconds(value){this.setSeconds(value);}get secondsFormatted(){return this.parts(undefined,twoDigitTemplate).second;}get minutes(){return this.getMinutes();}set minutes(value){this.setMinutes(value);}get minutesFormatted(){return this.parts(undefined,twoDigitTemplate).minute;}get hours(){return this.getHours();}set hours(value){this.setHours(value);}getHoursFormatted(hourCycle='h12'){return this.parts(undefined,{...twoDigitTemplate,hourCycle}).hour;}meridiem(locale=this.localization.locale){return new Intl.DateTimeFormat(locale,{hour:'numeric',hour12:true}).formatToParts(this).find((p)=>p.type==='dayPeriod')?.value;}get date(){return this.getDate();}set date(value){this.setDate(value);}
26get dateFormatted(){return this.parts(undefined,twoDigitTemplate).day;}get weekDay(){return this.getDay();}get month(){return this.getMonth();}set month(value){const targetMonth=new Date(this.year,value+1);targetMonth.setDate(0);const endOfMonth=targetMonth.getDate();if(this.date>endOfMonth)this.date=endOfMonth;this.setMonth(value);}get monthFormatted(){return this.parts(undefined,twoDigitTemplate).month;}get year(){return this.getFullYear();}set year(value){this.setFullYear(value);}get week(){const ordinal=this.computeOrdinal(),weekday=this.getUTCDay();let weekNumber=Math.floor((ordinal-weekday+10)/7);if(weekNumber<1)weekNumber=this.weeksInWeekYear();else{if(weekNumber>this.weeksInWeekYear())weekNumber=1;}return weekNumber;}weeksInWeekYear(){const p1=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,last=this.year-1,p2=(last+Math.floor(last/4)-Math.floor(last/100)+Math.floor(last/400))%7;return p1===4||p2===3?53:52;}get isLeapYear(){return (this.year%4===0&&(this.year%100!==0||this.year%400===0));}computeOrdinal(){return (this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]);}getAllMonths(format='long'){const applyFormat=new Intl.DateTimeFormat(this.localization.locale,{month:format}).format;return [...Array(12).keys()].map((m)=>applyFormat(new Date(2021,m)));}replaceTokens(formatStr,formats){return formatStr.replace(/(\[[^[\]]*])|(LTS?|l{1,4}|L{1,4})/g,(_,a,b)=>{const B=b&&b.toUpperCase();return a||formats[B]||DefaultFormatLocalization$1.dateFormats[B];});}parseTwoDigitYear(input){return input+(input>68?1900:2000);}offsetFromString(input){if(!input)return 0;if(input==='Z')return 0;const [first,second,third]=input.match(/([+-]|\d\d)/g);const minutes=+second*60+(+third||0);const signed=first==='+'?-minutes:minutes;return minutes===0?0:signed;}zoneInformation(date,style){let name=date.parts(this.localization.locale,{timeZoneName:'longOffset'}).timeZoneName.replace('GMT','').replace(':','');const negative=name.includes('-');name=name.replace('-','');if(style==='z')name=name.substring(1,2);else{if(style==='zz')name=name.substring(0,2);}return `${negative?'-':''}${name}`;}addInput(property){return (obj,input)=>{obj[property]=+input;};}getLocaleAfternoon(){return new Intl.DateTimeFormat(this.localization.locale,{hour:'numeric',hour12:true}).formatToParts(new Date(2022,3,4,13)).find((p)=>p.type==='dayPeriod')?.value?.replace(/\s+/g,' ');}meridiemMatch(input){return input.toLowerCase()===this.getLocaleAfternoon().toLowerCase();}correctHours(time){const {afternoon}=time;if(afternoon!==undefined){const {hours}=time;if(afternoon){if(hours<12)time.hours+=12;}else{if(hours===12)time.hours=0;}delete time.afternoon;}}makeParser(format){format=this.replaceTokens(format,this.localization.dateFormats);const matchArray=format.match(this.formattingTokens);const {length}=matchArray;const expressionArray=[];for(let i=0;i<length;i+=1){const token=matchArray[i];const expression=this.expressions[token];if(expression?.parser)expressionArray[i]=expression;else expressionArray[i]=token.replace(/^\[[^[\]]*]$/g,'');}return (input)=>{const time={hours:0,minutes:0,seconds:0,milliseconds:0};for(let i=0,start=0;i<length;i+=1){const token=expressionArray[i];if(typeof token==='string')start+=token.length;else{const part=input.slice(start);let value=part;if(token.pattern){const match=token.pattern.exec(part);value=match[0];}token.parser.call(this,time,value);input=input.replace(value,'');}}this.correctHours(time);return time;};}static fromString(input,localization){if(!localization?.format)Namespace.errorMessages.customDateFormatError('No format was provided');try{const dt=new DateTime();dt.setLocalization(localization);if(['x','X'].indexOf(localization.format)>-1)return new DateTime((localization.format==='X'?1000:1)*+input);input=input.replace(/\s+/g,' ');const parser=dt.makeParser(localization.format);const {year,month,day,hours,minutes,seconds,milliseconds,zone}=parser(input);const d=day||(!year&&!month?dt.getDate():1);const y=year||dt.getFullYear();let M=0;if(!(year&&!month))M=month>0?month-1:dt.getMonth();if(zone)return new DateTime(Date.UTC(y,M,d,hours,minutes,seconds,milliseconds+zone.offset*60*1000));return new DateTime(y,M,d,hours,minutes,seconds,milliseconds);}catch(e){Namespace.errorMessages.customDateFormatError(`Unable to parse provided input: ${input}, format: ${localization.format}`);}}format(template,locale=this.localization.locale){if(template&&typeof template==='object')return new Intl.DateTimeFormat(locale,template).format(this);const formatString=this.replaceTokens(template||this.localization.format||`${DefaultFormatLocalization$1.dateFormats.L}, ${DefaultFormatLocalization$1.dateFormats.LT}`,this.localization.dateFormats);const formatter=(template)=>new Intl.DateTimeFormat(this.localization.locale,template).format(this);if(!this.localization.hourCycle)this.localization.hourCycle=guessHourCycle(this.localization.locale);const HHCycle=this.localization.hourCycle.startsWith('h1')?'h24':this.localization.hourCycle;
vendor: 5,684 bytes, line 26
26const hhCycle=this.localization.hourCycle.startsWith('h2')?'h12':this.localization.hourCycle;const matches={y:this.year,yy:formatter({year:'2-digit'}),yyyy:this.year,M:formatter({month:'numeric'}),MM:this.monthFormatted,MMM:this.getAllMonths('short')[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:formatter({weekday:'short'}),dddd:formatter({weekday:'long'}),H:this.getHours(),HH:this.getHoursFormatted(HHCycle),h:this.hours>12?this.hours-12:this.hours,hh:this.getHoursFormatted(hhCycle),t:this.meridiem(),T:this.meridiem().toUpperCase(),m:this.minutes,mm:this.minutesFormatted,s:this.seconds,ss:this.secondsFormatted,fff:this.getMilliseconds()};return formatString.replace(this.dateTimeRegex,(match,$1)=>{return $1||matches[match];}).replace(/\[/g,'').replace(/]/g,'');}}class ServiceLocator{constructor(){this.cache=new Map();}locate(identifier){const service=this.cache.get(identifier);if(service)return service;const value=new identifier();this.cache.set(identifier,value);return value;}}const setupServiceLocator=()=>{serviceLocator=new ServiceLocator();};let serviceLocator;const CalendarModes=[{name:'calendar',className:Namespace.css.daysContainer,unit:exports.Unit.month,step:1},{name:'months',className:Namespace.css.monthsContainer,unit:exports.Unit.year,step:1},{name:'years',className:Namespace.css.yearsContainer,unit:exports.Unit.year,step:10},{name:'decades',className:Namespace.css.decadesContainer,unit:exports.Unit.year,step:100}];class OptionsStore{constructor(){this._currentCalendarViewMode=0;this._viewDate=new DateTime();this.minimumCalendarViewMode=0;this.currentView='calendar';}get currentCalendarViewMode(){return this._currentCalendarViewMode;}set currentCalendarViewMode(value){this._currentCalendarViewMode=value;this.currentView=CalendarModes[value].name;}get viewDate(){return this._viewDate;}set viewDate(v){this._viewDate=v;if(this.options)this.options.viewDate=v;}refreshCurrentView(){this.currentView=CalendarModes[this.currentCalendarViewMode].name;}get isTwelveHour(){return ['h12','h11'].includes(this.options.localization.hourCycle);}}class Validation{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);}isValid(targetDate,granularity){if(!this._enabledDisabledDatesIsValid(granularity,targetDate))return false;if(granularity!==exports.Unit.month&&granularity!==exports.Unit.year&&this.optionsStore.options.restrictions.daysOfWeekDisabled?.length>0&&this.optionsStore.options.restrictions.daysOfWeekDisabled.indexOf(targetDate.weekDay)!==-1)return false;if(!this._minMaxIsValid(granularity,targetDate))return false;if(granularity===exports.Unit.hours||granularity===exports.Unit.minutes||granularity===exports.Unit.seconds){if(!this._enabledDisabledHoursIsValid(targetDate))return false;if(this.optionsStore.options.restrictions.disabledTimeIntervals?.filter((internal)=>targetDate.isBetween(internal.from,internal.to)).length!==0)return false;}return true;}_enabledDisabledDatesIsValid(granularity,targetDate){if(granularity!==exports.Unit.date)return true;if(this.optionsStore.options.restrictions.disabledDates.length>0&&this._isInDisabledDates(targetDate))return false;if(this.optionsStore.options.restrictions.enabledDates.length>0&&!this._isInEnabledDates(targetDate))return false;return true;}_isInDisabledDates(testDate){if(!this.optionsStore.options.restrictions.disabledDates||this.optionsStore.options.restrictions.disabledDates.length===0)return false;return !!this.optionsStore.options.restrictions.disabledDates.find((x)=>x.isSame(testDate,exports.Unit.date));}_isInEnabledDates(testDate){if(!this.optionsStore.options.restrictions.enabledDates||this.optionsStore.options.restrictions.enabledDates.length===0)return true;return !!this.optionsStore.options.restrictions.enabledDates.find((x)=>x.isSame(testDate,exports.Unit.date));}_minMaxIsValid(granularity,targetDate){if(this.optionsStore.options.restrictions.minDate&&targetDate.isBefore(this.optionsStore.options.restrictions.minDate,granularity))return false;if(this.optionsStore.options.restrictions.maxDate&&targetDate.isAfter(this.optionsStore.options.restrictions.maxDate,granularity))return false;return true;}_enabledDisabledHoursIsValid(targetDate){if(this.optionsStore.options.restrictions.disabledHours.length>0&&this._isInDisabledHours(targetDate))return false;if(this.optionsStore.options.restrictions.enabledHours.length>0&&!this._isInEnabledHours(targetDate))return false;return true;}_isInDisabledHours(testDate){if(!this.optionsStore.options.restrictions.disabledHours||this.optionsStore.options.restrictions.disabledHours.length===0)return false;const formattedDate=testDate.hours;return this.optionsStore.options.restrictions.disabledHours.includes(formattedDate);}_isInEnabledHours(testDate){if(!this.optionsStore.options.restrictions.enabledHours||this.optionsStore.options.restrictions.enabledHours.length===0)return true;const formattedDate=testDate.hours;return this.optionsStore.options.restrictions.enabledHours.includes(formattedDate);}dateRangeIsValid(dates,index,target){if(!this.optionsStore.options.dateRange)return true;if(dates.length!==2&&index!==1)return true;const start=dates[0].clone;if(start.isSame(target,exports.Unit.date))return true;start.manipulate(1,exports.Unit.date);while(!start.isSame(target,exports.Unit.date)){const valid=this.isValid(start,exports.Unit.date);if(!valid)return false;start.manipulate(1,exports.Unit.date);}return true;}}class EventEmitter{constructor(){this.subscribers=[];}subscribe(callback){this.subscribers.push(callback);return this.unsubscribe.bind(this,this.subscribers.length-1);}unsubscribe(index){this.subscribers.splice(index,1);}
26emit(value){this.subscribers.forEach((callback)=>{callback(value);});}destroy(){this.subscribers=null;this.subscribers=[];}}class EventEmitters{constructor(){this.triggerEvent=new EventEmitter();this.viewUpdate=new EventEmitter();this.updateDisplay=new EventEmitter();this.action=new EventEmitter();this.updateViewDate=new EventEmitter();}destroy(){this.triggerEvent.destroy();this.viewUpdate.destroy();this.updateDisplay.destroy();this.action.destroy();this.updateViewDate.destroy();}}const defaultEnLocalization={clear:'Clear selection',close:'Close the picker',dateFormats:DefaultFormatLocalization$1.dateFormats,dayViewHeaderFormat:{month:'long',year:'2-digit'},decrementHour:'Decrement Hour',decrementMinute:'Decrement Minute',decrementSecond:'Decrement Second',format:DefaultFormatLocalization$1.format,hourCycle:DefaultFormatLocalization$1.hourCycle,incrementHour:'Increment Hour',incrementMinute:'Increment Minute',incrementSecond:'Increment Second',locale:DefaultFormatLocalization$1.locale,maxWeekdayLength:0,nextCentury:'Next Century',nextDecade:'Next Decade',nextMonth:'Next Month',nextYear:'Next Year',ordinal:DefaultFormatLocalization$1.ordinal,pickHour:'Pick Hour',pickMinute:'Pick Minute',pickSecond:'Pick Second',previousCentury:'Previous Century',previousDecade:'Previous Decade',previousMonth:'Previous Month',previousYear:'Previous Year',selectDate:'Select Date',selectDecade:'Select Decade',selectMonth:'Select Month',selectTime:'Select Time',selectYear:'Select Year',startOfTheWeek:0,today:'Go to today',toggleMeridiem:'Toggle Meridiem'};const DefaultOptions={allowInputToggle:false,container:undefined,dateRange:false,debug:false,defaultDate:undefined,display:{icons:{type:'icons',time:'fa-solid fa-clock',date:'fa-solid fa-calendar',up:'fa-solid fa-arrow-up',down:'fa-solid fa-arrow-down',previous:'fa-solid fa-chevron-left',next:'fa-solid fa-chevron-right',today:'fa-solid fa-calendar-check',clear:'fa-solid fa-trash',close:'fa-solid fa-xmark'},sideBySide:false,calendarWeeks:false,viewMode:'calendar',toolbarPlacement:'bottom',keepOpen:false,buttons:{today:false,clear:false,close:false},components:{calendar:true,date:true,month:true,year:true,decades:true,clock:true,hours:true,minutes:true,seconds:false,useTwentyfourHour:undefined},inline:false,theme:'auto',placement:'bottom'},keepInvalid:false,localization:defaultEnLocalization,meta:{},multipleDates:false,multipleDatesSeparator:'; ',promptTimeOnDateChange:false,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:undefined,maxDate:undefined,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:true,viewDate:new DateTime()};const DefaultEnLocalization={...defaultEnLocalization};function tryConvertToDateTime(d,localization){if(!d)return null;if(d.constructor.name===DateTime.name)return d;if(d.constructor.name===Date.name)return DateTime.convert(d);if(typeof d===typeof ''){const dateTime=DateTime.fromString(d,localization);if(JSON.stringify(dateTime)==='null')return null;return dateTime;}return null;}function convertToDateTime(d,optionName,localization){if(typeof d===typeof ''&&optionName!=='input')Namespace.errorMessages.dateString();const converted=tryConvertToDateTime(d,localization);if(!converted)Namespace.errorMessages.failedToParseDate(optionName,d,optionName==='input');return converted;}function typeCheckDateArray(optionName,value,providedType,localization=DefaultFormatLocalization$1){if(!Array.isArray(value))Namespace.errorMessages.typeMismatch(optionName,providedType,'array of DateTime or Date');for(let i=0;i<value.length;i++){const d=value[i];const dateTime=convertToDateTime(d,optionName,localization);dateTime.setLocalization(localization);value[i]=dateTime;}}function typeCheckNumberArray(optionName,value,providedType){if(!Array.isArray(value)||value.some((x)=>typeof x!==typeof 0))Namespace.errorMessages.typeMismatch(optionName,providedType,'array of numbers');}function mandatoryDate(key){return ({value,providedType,localization})=>{const dateTime=convertToDateTime(value,key,localization);if(dateTime!==undefined){dateTime.setLocalization(localization);return dateTime;}};}function optionalDate(key){const mandatory=mandatoryDate(key);return (args)=>{if(args.value===undefined)return args.value;return mandatory(args);};}function numbersInRange(key,lower,upper){return ({value,providedType})=>
26{if(value===undefined)return [];typeCheckNumberArray(key,value,providedType);if(value.some((x)=>x<lower||x>upper))Namespace.errorMessages.numbersOutOfRange(key,lower,upper);return value;};}function validHourRange(key){return numbersInRange(key,0,23);}function validDateArray(key){return ({value,providedType,localization})=>{if(value===undefined)return [];typeCheckDateArray(key,value,providedType,localization);return value;};}function validKeyOption(keyOptions){return ({value,path})=>{if(!keyOptions.includes(value))Namespace.errorMessages.unexpectedOptionValue(path.substring(1),value,keyOptions);return value;};}const optionProcessors=Object.freeze({defaultDate:mandatoryDate('defaultDate'),viewDate:mandatoryDate('viewDate'),minDate:optionalDate('restrictions.minDate'),maxDate:optionalDate('restrictions.maxDate'),disabledHours:validHourRange('restrictions.disabledHours'),enabledHours:validHourRange('restrictions.enabledHours'),disabledDates:validDateArray('restrictions.disabledDates'),enabledDates:validDateArray('restrictions.enabledDates'),daysOfWeekDisabled:numbersInRange('restrictions.daysOfWeekDisabled',0,6),disabledTimeIntervals:({key,value,providedType,localization})=>{if(value===undefined)return [];if(!Array.isArray(value))Namespace.errorMessages.typeMismatch(key,providedType,'array of { from: DateTime|Date, to: DateTime|Date }');const valueObject=value;for(let i=0;i<valueObject.length;i++)Object.keys(valueObject[i]).forEach((vk)=>{const subOptionName=`${key}[${i}].${vk}`;const d=valueObject[i][vk];const dateTime=convertToDateTime(d,subOptionName,localization);dateTime.setLocalization(localization);valueObject[i][vk]=dateTime;});return valueObject;},toolbarPlacement:validKeyOption(['top','bottom','default']),type:validKeyOption(['icons','sprites']),viewMode:validKeyOption(['clock','calendar','months','years','decades']),theme:validKeyOption(['light','dark','auto']),placement:validKeyOption(['top','bottom']),meta:({value})=>value,dayViewHeaderFormat:({value})=>value,container:({value,path})=>{if(value&&!(value instanceof HTMLElement||value instanceof Element||value?.appendChild))Namespace.errorMessages.typeMismatch(path.substring(1),typeof value,'HTMLElement');return value;},useTwentyfourHour:({value,path,providedType,defaultType})=>{Namespace.errorMessages.deprecatedWarning('useTwentyfourHour','Please use "options.localization.hourCycle" instead');if(value===undefined||providedType==='boolean')return value;Namespace.errorMessages.typeMismatch(path,providedType,defaultType);},hourCycle:validKeyOption(['h11','h12','h23','h24'])});const defaultProcessor=({value,defaultType,providedType,path})=>{switch(defaultType){case 'boolean':return value==='true'||value===true;case 'number':return +value;case 'string':return value.toString();case 'object':return {};case 'function':return value;default:Namespace.errorMessages.typeMismatch(path,providedType,defaultType);}};function processKey(args){return (optionProcessors[args.key]||defaultProcessor)(args);}class OptionConverter{static deepCopy(input){const o={};Object.keys(input).forEach((key)=>{const inputElement=input[key];if(inputElement instanceof DateTime){o[key]=inputElement.clone;return;}else{if(inputElement instanceof Date){o[key]=new Date(inputElement.valueOf());return;}}o[key]=inputElement;if(typeof inputElement!=='object'||inputElement instanceof HTMLElement||inputElement instanceof Element)return;if(!Array.isArray(inputElement))o[key]=OptionConverter.deepCopy(inputElement);});return o;}static objectPath(paths,obj){if(paths.charAt(0)==='.')paths=paths.slice(1);if(!paths)return obj;return paths.split('.').reduce((value,key)=>OptionConverter.isValue(value)||OptionConverter.isValue(value[key])?value[key]:undefined,obj);}static spread(provided,copyTo,localization,path=''){const defaultOptions=OptionConverter.objectPath(path,DefaultOptions);const unsupportedOptions=Object.keys(provided).filter((x)=>!Object.keys(defaultOptions).includes(x));if(unsupportedOptions.length>0){const flattenedOptions=OptionConverter.getFlattenDefaultOptions();const errors=unsupportedOptions.map((x)=>{let error=`"${path}.${x}" in not a known option.`;const didYouMean=flattenedOptions.find((y)=>y.includes(x));if(didYouMean)error+=` Did you mean "${didYouMean}"?`;return error;});
26Namespace.errorMessages.unexpectedOptions(errors);}Object.keys(provided).filter((key)=>key!=='__proto__'&&key!=='constructor').forEach((key)=>{path+=`.${key}`;if(path.charAt(0)==='.')path=path.slice(1);const defaultOptionValue=defaultOptions[key];const providedType=typeof provided[key];const defaultType=typeof defaultOptionValue;const value=provided[key];if(value===undefined||value===null){copyTo[key]=value;path=path.substring(0,path.lastIndexOf(`.${key}`));return;}if(typeof defaultOptionValue==='object'&&!Array.isArray(provided[key])&&!(defaultOptionValue instanceof Date||OptionConverter.ignoreProperties.includes(key)))OptionConverter.spread(provided[key],copyTo[key],localization,path);else copyTo[key]=OptionConverter.processKey(key,value,providedType,defaultType,path,localization);path=path.substring(0,path.lastIndexOf(`.${key}`));});}static processKey(key,value,providedType,defaultType,path,localization){return processKey({key,value,providedType,defaultType,path,localization});}static _mergeOptions(providedOptions,mergeTo){const newConfig=OptionConverter.deepCopy(mergeTo);const localization=mergeTo.localization?.locale!=='default'?mergeTo.localization:providedOptions?.localization||DefaultOptions.localization;OptionConverter.spread(providedOptions,newConfig,localization,'');return newConfig;}static _dataToOptions(element,options){const eData=JSON.parse(JSON.stringify(element.dataset));if(eData?.tdTargetInput)delete eData.tdTargetInput;if(eData?.tdTargetToggle)delete eData.tdTargetToggle;if(!eData||Object.keys(eData).length===0)return options;const dataOptions={};const objectToNormalized=(object)=>{const lowered={};Object.keys(object).forEach((x)=>{lowered[x.toLowerCase()]=x;});return lowered;};const normalizeObject=this.normalizeObject(objectToNormalized);const optionsLower=objectToNormalized(options);Object.keys(eData).filter((x)=>x.startsWith(Namespace.dataKey)).map((x)=>x.substring(2)).forEach((key)=>{let keyOption=optionsLower[key.toLowerCase()];if(key.includes('_')){const split=key.split('_');keyOption=optionsLower[split[0].toLowerCase()];if(keyOption!==undefined&&options[keyOption].constructor===Object)dataOptions[keyOption]=normalizeObject(split,1,options[keyOption],eData[`td${key}`]);}else{if(keyOption!==undefined)dataOptions[keyOption]=eData[`td${key}`];}});return this._mergeOptions(dataOptions,options);}static normalizeObject(objectToNormalized){const normalizeObject=(split,index,optionSubgroup,value)=>{const normalizedOptions=objectToNormalized(optionSubgroup);const keyOption=normalizedOptions[split[index].toLowerCase()];const internalObject={};if(keyOption===undefined)return internalObject;if(optionSubgroup[keyOption]?.constructor===Object){index++;internalObject[keyOption]=normalizeObject(split,index,optionSubgroup[keyOption],value);}else internalObject[keyOption]=value;return internalObject;};return normalizeObject;}static _dateTypeCheck(d,localization){return tryConvertToDateTime(d,localization);}static _typeCheckDateArray(optionName,value,providedType,localization){return typeCheckDateArray(optionName,value,providedType,localization);}static _typeCheckNumberArray(optionName,value,providedType){return typeCheckNumberArray(optionName,value,providedType);}static dateConversion(d,optionName,localization){return convertToDateTime(d,optionName,localization);}static getFlattenDefaultOptions(){if(this._flattenDefaults)return this._flattenDefaults;const deepKeys=(t,pre=[])=>{if(Array.isArray(t))return [];if(Object(t)===t)return Object.entries(t).flatMap(([k,v])=>deepKeys(v,[...pre,k]));else return pre.join('.');};this._flattenDefaults=deepKeys(DefaultOptions);return this._flattenDefaults;}static _validateConflicts(config){if(config.display.sideBySide&&(!config.display.components.clock||!(config.display.components.hours||config.display.components.minutes||config.display.components.seconds)))Namespace.errorMessages.conflictingConfiguration('Cannot use side by side mode without the clock components');if(config.restrictions.minDate&&config.restrictions.maxDate){if(config.restrictions.minDate.isAfter(config.restrictions.maxDate))Namespace.errorMessages.conflictingConfiguration('minDate is after maxDate');
vendor: 29,804 bytes, line 26
26if(config.restrictions.maxDate.isBefore(config.restrictions.minDate))Namespace.errorMessages.conflictingConfiguration('maxDate is before minDate');}if(config.multipleDates&&config.dateRange)Namespace.errorMessages.conflictingConfiguration('Cannot uss option "multipleDates" with "dateRange"');}}OptionConverter.ignoreProperties=['meta','dayViewHeaderFormat','container','dateForms','ordinal'];OptionConverter.isValue=(a)=>a!=null;class Dates{constructor(){this._dates=[];this.optionsStore=serviceLocator.locate(OptionsStore);this.validation=serviceLocator.locate(Validation);this._eventEmitters=serviceLocator.locate(EventEmitters);}get picked(){return [...this._dates];}get lastPicked(){return this._dates[this.lastPickedIndex]?.clone;}get lastPickedIndex(){if(this._dates.length===0)return 0;return this._dates.length-1;}formatInput(date){if(!date)return '';date.localization=this.optionsStore.options.localization;return date.format();}parseInput(value){try{return OptionConverter.dateConversion(value,'input',this.optionsStore.options.localization);}catch(e){this._eventEmitters.triggerEvent.emit({type:Namespace.events.error,reason:Namespace.errorMessages.failedToParseInput,format:this.optionsStore.options.localization.format,value});return undefined;}}setFromInput(value,index){if(!value){this.setValue(undefined,index);return;}const converted=this.parseInput(value);if(converted){converted.setLocalization(this.optionsStore.options.localization);this.setValue(converted,index);}}add(date){this._dates.push(date);}isPicked(targetDate,unit){if(!DateTime.isValid(targetDate))return false;if(!unit)return this._dates.find((x)=>x.isSame(targetDate))!==undefined;const format=getFormatByUnit(unit);const innerDateFormatted=targetDate.format(format);return (this._dates.map((x)=>x.format(format)).find((x)=>x===innerDateFormatted)!==undefined);}pickedIndex(targetDate,unit){if(!DateTime.isValid(targetDate))return -1;if(!unit)return this._dates.map((x)=>x.valueOf()).indexOf(targetDate.valueOf());const format=getFormatByUnit(unit);const innerDateFormatted=targetDate.format(format);return this._dates.map((x)=>x.format(format)).indexOf(innerDateFormatted);}clear(){this.optionsStore.unset=true;this._eventEmitters.triggerEvent.emit({type:Namespace.events.change,date:undefined,oldDate:this.lastPicked,isClear:true,isValid:true});this._dates=[];if(this.optionsStore.input)this.optionsStore.input.value='';this._eventEmitters.updateDisplay.emit('all');}static getStartEndYear(factor,year){const step=factor/10,startYear=Math.floor(year/factor)*factor,endYear=startYear+step*9,focusValue=Math.floor(year/step)*step;return [startYear,endYear,focusValue];}updateInput(target){if(!this.optionsStore.input)return;let newValue=this.formatInput(target);if(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)newValue=this._dates.map((d)=>this.formatInput(d)).join(this.optionsStore.options.multipleDatesSeparator);if(this.optionsStore.input.value!=newValue)this.optionsStore.input.value=newValue;}setValue(target,index){const noIndex=typeof index==='undefined',isClear=!target&&noIndex;let oldDate=this.optionsStore.unset?null:this._dates[index]?.clone;if(!oldDate&&!this.optionsStore.unset&&noIndex&&isClear)oldDate=this.lastPicked;if(target&&oldDate?.isSame(target)){this.updateInput(target);return;}if(!target){this._setValueNull(isClear,index,oldDate);return;}index=index||0;target=target.clone;if(this.optionsStore.options.stepping!==1){target.minutes=Math.round(target.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping;target.startOf(exports.Unit.minutes);}const onUpdate=(isValid)=>{this._dates[index]=target;this._eventEmitters.updateViewDate.emit(target.clone);this.updateInput(target);this.optionsStore.unset=false;this._eventEmitters.updateDisplay.emit('all');this._eventEmitters.triggerEvent.emit({type:Namespace.events.change,date:target,oldDate,isClear,isValid});};if(this.validation.isValid(target)&&this.validation.dateRangeIsValid(this.picked,index,target)){onUpdate(true);return;}if(this.optionsStore.options.keepInvalid)onUpdate(false);this._eventEmitters.triggerEvent.emit({type:Namespace.events.error,reason:Namespace.errorMessages.failedToSetInvalidDate,date:target,oldDate});}_setValueNull(isClear,index,oldDate){if(!this.optionsStore.options.multipleDates||this._dates.length===1||isClear){this.optionsStore.unset=true;this._dates=[];}else this._dates.splice(index,1);this.updateInput();this._eventEmitters.triggerEvent.emit({type:Namespace.events.change,date:undefined,oldDate,isClear,isValid:true});this._eventEmitters.updateDisplay.emit('all');}}var ActionTypes;(function(ActionTypes){ActionTypes["next"]="next";ActionTypes["previous"]="previous";ActionTypes["changeCalendarView"]="changeCalendarView";ActionTypes["selectMonth"]="selectMonth";ActionTypes["selectYear"]="selectYear";ActionTypes["selectDecade"]="selectDecade";ActionTypes["selectDay"]="selectDay";ActionTypes["selectHour"]="selectHour";ActionTypes["selectMinute"]="selectMinute";ActionTypes["selectSecond"]="selectSecond";ActionTypes["incrementHours"]="incrementHours";ActionTypes["incrementMinutes"]="incrementMinutes";ActionTypes["incrementSeconds"]="incrementSeconds";ActionTypes["decrementHours"]="decrementHours";ActionTypes["decrementMinutes"]="decrementMinutes";ActionTypes["decrementSeconds"]="decrementSeconds";ActionTypes["toggleMeridiem"]="toggleMeridiem";ActionTypes["togglePicker"]="togglePicker";ActionTypes["showClock"]="showClock";ActionTypes["showHours"]="showHours";ActionTypes["showMinutes"]="showMinutes";ActionTypes["showSeconds"]="showSeconds";ActionTypes["clear"]="clear";ActionTypes["close"]="close";ActionTypes["today"]="today";})(ActionTypes||(ActionTypes={}));var ActionTypes$1=ActionTypes;class DateDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.daysContainer);container.append(...this._daysOfTheWeek());if(this.optionsStore.options.display.calendarWeeks){const div=document.createElement('div');div.classList.add(Namespace.css.calendarWeeks,Namespace.css.noHighlight);container.appendChild(div);}const {rangeHoverEvent,rangeHoverOutEvent}=this.handleMouseEvents(container);for(let i=0;i<42;i++){if(i!==0&&i%7===0)if(this.optionsStore.options.display.calendarWeeks){const div=document.createElement('div');div.classList.add(Namespace.css.calendarWeeks,Namespace.css.noHighlight);container.appendChild(div);}const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectDay);container.appendChild(div);if(matchMedia('(hover: hover)').matches&&this.optionsStore.options.dateRange){div.addEventListener('mouseover',rangeHoverEvent);div.addEventListener('mouseout',rangeHoverOutEvent);}}return container;}_update(widget,paint){const container=widget.getElementsByClassName(Namespace.css.daysContainer)[0];this._updateCalendarView(container);const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.month).startOf('weekDay',this.optionsStore.options.localization.startOfTheWeek).manipulate(12,exports.Unit.hours);this._handleCalendarWeeks(container,innerDate.clone);container.querySelectorAll(`[data-action="${ActionTypes$1.selectDay}"]`).forEach((element)=>{const classes=[];classes.push(Namespace.css.day);if(innerDate.isBefore(this.optionsStore.viewDate,exports.Unit.month))classes.push(Namespace.css.old);if(innerDate.isAfter(this.optionsStore.viewDate,exports.Unit.month))classes.push(Namespace.css.new);if(!this.optionsStore.unset&&!this.optionsStore.options.dateRange&&this.dates.isPicked(innerDate,exports.Unit.date))classes.push(Namespace.css.active);if(!this.validation.isValid(innerDate,exports.Unit.date))classes.push(Namespace.css.disabled);if(innerDate.isSame(new DateTime(),exports.Unit.date))classes.push(Namespace.css.today);if(innerDate.weekDay===0||innerDate.weekDay===6)classes.push(Namespace.css.weekend);this._handleDateRange(innerDate,classes);paint(exports.Unit.date,innerDate,classes,element);element.classList.remove(...element.classList);element.classList.add(...classes);element.setAttribute('data-value',this._dateToDataValue(innerDate));element.setAttribute('data-day',`${innerDate.date}`);element.innerText=innerDate.parts(undefined,{day:'numeric'}).day;innerDate.manipulate(1,exports.Unit.date);});}_dateToDataValue(date){if(!DateTime.isValid(date))return '';return `${date.year}-${date.month.toString().padStart(2,'0')}-${date.date.toString().padStart(2,'0')}`;}_handleDateRange(innerDate,classes){const rangeStart=this.dates.picked[0];const rangeEnd=this.dates.picked[1];if(this.optionsStore.options.dateRange){if(innerDate.isBetween(rangeStart,rangeEnd,exports.Unit.date))classes.push(Namespace.css.rangeIn);if(innerDate.isSame(rangeStart,exports.Unit.date))classes.push(Namespace.css.rangeStart);if(innerDate.isSame(rangeEnd,exports.Unit.date))classes.push(Namespace.css.rangeEnd);}}handleMouseEvents(container){const rangeHoverEvent=(e)=>{const currentTarget=e?.currentTarget;if(this.dates.picked.length!==1||currentTarget.classList.contains(Namespace.css.disabled))return;const allDays=[...container.querySelectorAll('.day')];const attributeValue=currentTarget.getAttribute('data-value');const innerDate=DateTime.fromString(attributeValue,{format:'yyyy-MM-dd'});const dayIndex=allDays.findIndex((e)=>e.getAttribute('data-value')===attributeValue);const rangeStart=this.dates.picked[0];const rangeEnd=this.dates.picked[1];const rangeStartFormatted=this._dateToDataValue(rangeStart);const rangeStartIndex=allDays.findIndex((e)=>e.getAttribute('data-value')===rangeStartFormatted);const rangeStartElement=allDays[rangeStartIndex];if(!innerDate.isSame(rangeStart,exports.Unit.date))currentTarget.classList.remove(Namespace.css.rangeStart);if(!innerDate.isSame(rangeEnd,exports.Unit.date))currentTarget.classList.remove(Namespace.css.rangeEnd);let lambda;if(innerDate.isBefore(rangeStart)){currentTarget.classList.add(Namespace.css.rangeStart);rangeStartElement?.classList.remove(Namespace.css.rangeStart);rangeStartElement?.classList.add(Namespace.css.rangeEnd);lambda=(_,index)=>index>dayIndex&&index<rangeStartIndex;}else{currentTarget.classList.add(Namespace.css.rangeEnd);rangeStartElement?.classList.remove(Namespace.css.rangeEnd);rangeStartElement?.classList.add(Namespace.css.rangeStart);lambda=(_,index)=>index<dayIndex&&index>rangeStartIndex;}allDays.filter(lambda).forEach((e)=>{e.classList.add(Namespace.css.rangeIn);});};const rangeHoverOutEvent=(e)=>{const allDays=[...container.querySelectorAll('.day')];if(this.dates.picked.length===1)allDays.forEach((e)=>e.classList.remove(Namespace.css.rangeIn));if(this.dates.picked.length!==1)return;const currentTarget=e?.currentTarget;const innerDate=new DateTime(currentTarget.getAttribute('data-value'));if(!innerDate.isSame(this.dates.picked[0],exports.Unit.date))currentTarget.classList.remove(Namespace.css.rangeStart);if(!innerDate.isSame(this.dates.picked[1],exports.Unit.date))currentTarget.classList.remove(Namespace.css.rangeEnd);};return {rangeHoverEvent,rangeHoverOutEvent};}_updateCalendarView(container){if(this.optionsStore.currentView!=='calendar')return;const [previous,switcher,next]=container.parentElement.getElementsByClassName(Namespace.css.calendarHeader)[0].getElementsByTagName('div');switcher.setAttribute(Namespace.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat));this.optionsStore.options.display.components.month?switcher.classList.remove(Namespace.css.disabled):switcher.classList.add(Namespace.css.disabled);this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.month),exports.Unit.month)?previous.classList.remove(Namespace.css.disabled):previous.classList.add(Namespace.css.disabled);this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,exports.Unit.month),exports.Unit.month)?next.classList.remove(Namespace.css.disabled):next.classList.add(Namespace.css.disabled);}_daysOfTheWeek(){const innerDate=this.optionsStore.viewDate.clone.startOf('weekDay',this.optionsStore.options.localization.startOfTheWeek).startOf(exports.Unit.date);const row=[];document.createElement('div');if(this.optionsStore.options.display.calendarWeeks){const htmlDivElement=document.createElement('div');htmlDivElement.classList.add(Namespace.css.calendarWeeks,Namespace.css.noHighlight);htmlDivElement.innerText='#';row.push(htmlDivElement);}for(let i=0;i<7;i++){const htmlDivElement=document.createElement('div');htmlDivElement.classList.add(Namespace.css.dayOfTheWeek,Namespace.css.noHighlight);let weekDay=innerDate.format({weekday:'short'});if(this.optionsStore.options.localization.maxWeekdayLength>0)weekDay=weekDay.substring(0,this.optionsStore.options.localization.maxWeekdayLength);htmlDivElement.innerText=weekDay;innerDate.manipulate(1,exports.Unit.date);row.push(htmlDivElement);}return row;}_handleCalendarWeeks(container,innerDate){[...container.querySelectorAll(`.${Namespace.css.calendarWeeks}`)].filter((e)=>e.innerText!=='#').forEach((element)=>{element.innerText=`${innerDate.week}`;innerDate.manipulate(7,exports.Unit.date);});}}class MonthDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.monthsContainer);for(let i=0;i<12;i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectMonth);container.appendChild(div);}return container;}_update(widget,paint){const container=widget.getElementsByClassName(Namespace.css.monthsContainer)[0];if(this.optionsStore.currentView==='months'){const [previous,switcher,next]=container.parentElement.getElementsByClassName(Namespace.css.calendarHeader)[0].getElementsByTagName('div');switcher.setAttribute(Namespace.css.monthsContainer,this.optionsStore.viewDate.format({year:'numeric'}));this.optionsStore.options.display.components.year?switcher.classList.remove(Namespace.css.disabled):switcher.classList.add(Namespace.css.disabled);this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.year),exports.Unit.year)?previous.classList.remove(Namespace.css.disabled):previous.classList.add(Namespace.css.disabled);this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,exports.Unit.year),exports.Unit.year)?next.classList.remove(Namespace.css.disabled):next.classList.add(Namespace.css.disabled);}const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.year);container.querySelectorAll(`[data-action="${ActionTypes$1.selectMonth}"]`).forEach((containerClone,index)=>{const classes=[];classes.push(Namespace.css.month);if(!this.optionsStore.unset&&this.dates.isPicked(innerDate,exports.Unit.month))classes.push(Namespace.css.active);if(!this.validation.isValid(innerDate,exports.Unit.month))classes.push(Namespace.css.disabled);paint(exports.Unit.month,innerDate,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${index}`);containerClone.innerText=`${innerDate.format({month:'short'})}`;innerDate.manipulate(1,exports.Unit.month);});}}class YearDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.yearsContainer);for(let i=0;i<12;i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectYear);container.appendChild(div);}return container;}_update(widget,paint){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.year);this._endYear=this.optionsStore.viewDate.clone.manipulate(10,exports.Unit.year);const container=widget.getElementsByClassName(Namespace.css.yearsContainer)[0];if(this.optionsStore.currentView==='years'){const [previous,switcher,next]=container.parentElement.getElementsByClassName(Namespace.css.calendarHeader)[0].getElementsByTagName('div');switcher.setAttribute(Namespace.css.yearsContainer,`${this._startYear.format({year:'numeric'})}-${this._endYear.format({year:'numeric'})}`);this.optionsStore.options.display.components.decades?switcher.classList.remove(Namespace.css.disabled):switcher.classList.add(Namespace.css.disabled);this.validation.isValid(this._startYear,exports.Unit.year)?previous.classList.remove(Namespace.css.disabled):previous.classList.add(Namespace.css.disabled);this.validation.isValid(this._endYear,exports.Unit.year)?next.classList.remove(Namespace.css.disabled):next.classList.add(Namespace.css.disabled);}const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.year).manipulate(-1,exports.Unit.year);container.querySelectorAll(`[data-action="${ActionTypes$1.selectYear}"]`).forEach((containerClone)=>{const classes=[];classes.push(Namespace.css.year);if(!this.optionsStore.unset&&this.dates.isPicked(innerDate,exports.Unit.year))classes.push(Namespace.css.active);if(!this.validation.isValid(innerDate,exports.Unit.year))classes.push(Namespace.css.disabled);paint(exports.Unit.year,innerDate,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${innerDate.year}`);containerClone.innerText=innerDate.format({year:'numeric'});innerDate.manipulate(1,exports.Unit.year);});}}class DecadeDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.decadesContainer);for(let i=0;i<12;i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectDecade);container.appendChild(div);}return container;}_update(widget,paint){const [start,end]=Dates.getStartEndYear(100,this.optionsStore.viewDate.year);this._startDecade=this.optionsStore.viewDate.clone.startOf(exports.Unit.year);this._startDecade.year=start;this._endDecade=this.optionsStore.viewDate.clone.startOf(exports.Unit.year);this._endDecade.year=end;const container=widget.getElementsByClassName(Namespace.css.decadesContainer)[0];const [previous,switcher,next]=container.parentElement.getElementsByClassName(Namespace.css.calendarHeader)[0].getElementsByTagName('div');if(this.optionsStore.currentView==='decades'){switcher.setAttribute(Namespace.css.decadesContainer,`${this._startDecade.format({year:'numeric'})}-${this._endDecade.format({year:'numeric'})}`);this.validation.isValid(this._startDecade,exports.Unit.year)?previous.classList.remove(Namespace.css.disabled):previous.classList.add(Namespace.css.disabled);this.validation.isValid(this._endDecade,exports.Unit.year)?next.classList.remove(Namespace.css.disabled):next.classList.add(Namespace.css.disabled);}const pickedYears=this.dates.picked.map((x)=>x.year);container.querySelectorAll(`[data-action="${ActionTypes$1.selectDecade}"]`).forEach((containerClone,index)=>{if(index===0){containerClone.classList.add(Namespace.css.old);if(this._startDecade.year-10<0){containerClone.textContent=' ';previous.classList.add(Namespace.css.disabled);containerClone.classList.add(Namespace.css.disabled);containerClone.setAttribute('data-value','');return;}else{containerClone.innerText=this._startDecade.clone.manipulate(-10,exports.Unit.year).format({year:'numeric'});containerClone.setAttribute('data-value',`${this._startDecade.year}`);return;}}const classes=[];classes.push(Namespace.css.decade);const startDecadeYear=this._startDecade.year;const endDecadeYear=this._startDecade.year+9;if(!this.optionsStore.unset&&pickedYears.filter((x)=>x>=startDecadeYear&&x<=endDecadeYear).length>0)classes.push(Namespace.css.active);if(!this.validation.isValid(this._startDecade,exports.Unit.year)&&!this.validation.isValid(this._startDecade.clone.manipulate(10,exports.Unit.year),exports.Unit.year))classes.push(Namespace.css.disabled);paint('decade',this._startDecade,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${this._startDecade.year}`);containerClone.innerText=`${this._startDecade.format({year:'numeric'})}`;this._startDecade.manipulate(10,exports.Unit.year);});}}class TimeDisplay{constructor(){this._gridColumns='';this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);}getPicker(iconTag){const container=document.createElement('div');container.classList.add(Namespace.css.clockContainer);container.append(...this._grid(iconTag));return container;}_update(widget){const timesDiv=(widget.getElementsByClassName(Namespace.css.clockContainer)[0]);let lastPicked=this.dates.lastPicked?.clone;if(!lastPicked&&this.optionsStore.options.useCurrent)lastPicked=this.optionsStore.viewDate.clone;timesDiv.querySelectorAll('.disabled').forEach((element)=>element.classList.remove(Namespace.css.disabled));if(this.optionsStore.options.display.components.hours){if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,exports.Unit.hours),exports.Unit.hours))timesDiv.querySelector(`[data-action=${ActionTypes$1.incrementHours}]`).classList.add(Namespace.css.disabled);if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.hours),exports.Unit.hours))timesDiv.querySelector(`[data-action=${ActionTypes$1.decrementHours}]`).classList.add(Namespace.css.disabled);timesDiv.querySelector(`[data-time-component=${exports.Unit.hours}]`).innerText=lastPicked?lastPicked.getHoursFormatted(this.optionsStore.options.localization.hourCycle):'--';}if(this.optionsStore.options.display.components.minutes){if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,exports.Unit.minutes),exports.Unit.minutes))timesDiv.querySelector(`[data-action=${ActionTypes$1.incrementMinutes}]`).classList.add(Namespace.css.disabled);if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.minutes),exports.Unit.minutes))timesDiv.querySelector(`[data-action=${ActionTypes$1.decrementMinutes}]`).classList.add(Namespace.css.disabled);timesDiv.querySelector(`[data-time-component=${exports.Unit.minutes}]`).innerText=lastPicked?lastPicked.minutesFormatted:'--';}if(this.optionsStore.options.display.components.seconds){if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,exports.Unit.seconds),exports.Unit.seconds))timesDiv.querySelector(`[data-action=${ActionTypes$1.incrementSeconds}]`).classList.add(Namespace.css.disabled);if(!this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,exports.Unit.seconds),exports.Unit.seconds))timesDiv.querySelector(`[data-action=${ActionTypes$1.decrementSeconds}]`).classList.add(Namespace.css.disabled);timesDiv.querySelector(`[data-time-component=${exports.Unit.seconds}]`).innerText=lastPicked?lastPicked.secondsFormatted:'--';}if(this.optionsStore.isTwelveHour){const toggle=timesDiv.querySelector(`[data-action=${ActionTypes$1.toggleMeridiem}]`);const meridiemDate=(lastPicked||this.optionsStore.viewDate).clone;toggle.innerText=meridiemDate.meridiem();if(!this.validation.isValid(meridiemDate.manipulate(meridiemDate.hours>=12?-12:12,exports.Unit.hours)))toggle.classList.add(Namespace.css.disabled);else toggle.classList.remove(Namespace.css.disabled);}timesDiv.style.gridTemplateAreas=`"${this._gridColumns}"`;}_grid(iconTag){this._gridColumns='';const top=[],middle=[],bottom=[],separator=document.createElement('div'),upIcon=iconTag(this.optionsStore.options.display.icons.up),downIcon=iconTag(this.optionsStore.options.display.icons.down);separator.classList.add(Namespace.css.separator,Namespace.css.noHighlight);const separatorColon=separator.cloneNode(true);separatorColon.innerHTML=':';const getSeparator=(colon=false)=>{return colon?separatorColon.cloneNode(true):separator.cloneNode(true);};if(this.optionsStore.options.display.components.hours){let divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.incrementHour);divElement.setAttribute('data-action',ActionTypes$1.incrementHours);divElement.appendChild(upIcon.cloneNode(true));top.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.pickHour);divElement.setAttribute('data-action',ActionTypes$1.showHours);divElement.setAttribute('data-time-component',exports.Unit.hours);middle.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.decrementHour);divElement.setAttribute('data-action',ActionTypes$1.decrementHours);divElement.appendChild(downIcon.cloneNode(true));bottom.push(divElement);this._gridColumns+='a';}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=' a';if(this.optionsStore.options.display.components.hours){top.push(getSeparator());middle.push(getSeparator(true));bottom.push(getSeparator());this._gridColumns+=' a';}let divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.incrementMinute);divElement.setAttribute('data-action',ActionTypes$1.incrementMinutes);divElement.appendChild(upIcon.cloneNode(true));top.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.pickMinute);divElement.setAttribute('data-action',ActionTypes$1.showMinutes);divElement.setAttribute('data-time-component',exports.Unit.minutes);middle.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.decrementMinute);divElement.setAttribute('data-action',ActionTypes$1.decrementMinutes);divElement.appendChild(downIcon.cloneNode(true));bottom.push(divElement);}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=' a';if(this.optionsStore.options.display.components.minutes){top.push(getSeparator());middle.push(getSeparator(true));bottom.push(getSeparator());this._gridColumns+=' a';}let divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.incrementSecond);divElement.setAttribute('data-action',ActionTypes$1.incrementSeconds);divElement.appendChild(upIcon.cloneNode(true));top.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.pickSecond);divElement.setAttribute('data-action',ActionTypes$1.showSeconds);divElement.setAttribute('data-time-component',exports.Unit.seconds);middle.push(divElement);divElement=document.createElement('div');divElement.setAttribute('title',this.optionsStore.options.localization.decrementSecond);divElement.setAttribute('data-action',ActionTypes$1.decrementSeconds);divElement.appendChild(downIcon.cloneNode(true));bottom.push(divElement);}if(this.optionsStore.isTwelveHour){this._gridColumns+=' a';let divElement=getSeparator();top.push(divElement);const button=document.createElement('button');button.setAttribute('type','button');button.setAttribute('title',this.optionsStore.options.localization.toggleMeridiem);button.setAttribute('data-action',ActionTypes$1.toggleMeridiem);button.setAttribute('tabindex','-1');if(Namespace.css.toggleMeridiem.includes(','))button.classList.add(...Namespace.css.toggleMeridiem.split(','));else button.classList.add(Namespace.css.toggleMeridiem);divElement=document.createElement('div');divElement.classList.add(Namespace.css.noHighlight);divElement.appendChild(button);middle.push(divElement);divElement=getSeparator();bottom.push(divElement);}this._gridColumns=this._gridColumns.trim();return [...top,...middle,...bottom];}}class HourDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.hourContainer);for(let i=0;i<(this.optionsStore.isTwelveHour?12:24);i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectHour);container.appendChild(div);}return container;}_update(widget,paint){const container=widget.getElementsByClassName(Namespace.css.hourContainer)[0];const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.date);container.querySelectorAll(`[data-action="${ActionTypes$1.selectHour}"]`).forEach((containerClone)=>{const classes=[];classes.push(Namespace.css.hour);if(!this.validation.isValid(innerDate,exports.Unit.hours))classes.push(Namespace.css.disabled);paint(exports.Unit.hours,innerDate,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${innerDate.hours}`);containerClone.innerText=innerDate.getHoursFormatted(this.optionsStore.options.localization.hourCycle);innerDate.manipulate(1,exports.Unit.hours);});}}class MinuteDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.minuteContainer);const step=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;
26for(let i=0;i<60/step;i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectMinute);container.appendChild(div);}return container;}_update(widget,paint){const container=widget.getElementsByClassName(Namespace.css.minuteContainer)[0];const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.hours);const step=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;container.querySelectorAll(`[data-action="${ActionTypes$1.selectMinute}"]`).forEach((containerClone)=>{const classes=[];classes.push(Namespace.css.minute);if(!this.validation.isValid(innerDate,exports.Unit.minutes))classes.push(Namespace.css.disabled);paint(exports.Unit.minutes,innerDate,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${innerDate.minutes}`);containerClone.innerText=innerDate.minutesFormatted;innerDate.manipulate(step,exports.Unit.minutes);});}}class secondDisplay{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.validation=serviceLocator.locate(Validation);}getPicker(){const container=document.createElement('div');container.classList.add(Namespace.css.secondContainer);for(let i=0;i<12;i++){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.selectSecond);container.appendChild(div);}return container;}_update(widget,paint){const container=widget.getElementsByClassName(Namespace.css.secondContainer)[0];const innerDate=this.optionsStore.viewDate.clone.startOf(exports.Unit.minutes);container.querySelectorAll(`[data-action="${ActionTypes$1.selectSecond}"]`).forEach((containerClone)=>{const classes=[];classes.push(Namespace.css.second);if(!this.validation.isValid(innerDate,exports.Unit.seconds))classes.push(Namespace.css.disabled);paint(exports.Unit.seconds,innerDate,classes,containerClone);containerClone.classList.remove(...containerClone.classList);containerClone.classList.add(...classes);containerClone.setAttribute('data-value',`${innerDate.seconds}`);containerClone.innerText=innerDate.secondsFormatted;innerDate.manipulate(5,exports.Unit.seconds);});}}class Collapse{static toggle(target){if(target.classList.contains(Namespace.css.show))this.hide(target);else this.show(target);}static showImmediately(target){target.classList.remove(Namespace.css.collapsing);target.classList.add(Namespace.css.collapse,Namespace.css.show);target.style.height='';}static show(target){if(target.classList.contains(Namespace.css.collapsing)||target.classList.contains(Namespace.css.show))return;const complete=()=>{Collapse.showImmediately(target);};target.style.height='0';target.classList.remove(Namespace.css.collapse);target.classList.add(Namespace.css.collapsing);setTimeout(complete,this.getTransitionDurationFromElement(target));target.style.height=`${target.scrollHeight}px`;}static hideImmediately(target){if(!target)return;target.classList.remove(Namespace.css.collapsing,Namespace.css.show);target.classList.add(Namespace.css.collapse);}static hide(target){if(target.classList.contains(Namespace.css.collapsing)||!target.classList.contains(Namespace.css.show))return;const complete=()=>{Collapse.hideImmediately(target);};target.style.height=`${target.getBoundingClientRect()['height']}px`;const reflow=(element)=>element.offsetHeight;reflow(target);target.classList.remove(Namespace.css.collapse,Namespace.css.show);target.classList.add(Namespace.css.collapsing);target.style.height='';setTimeout(complete,this.getTransitionDurationFromElement(target));}}Collapse.getTransitionDurationFromElement=(element)=>{if(!element)return 0;let {transitionDuration,transitionDelay}=window.getComputedStyle(element);const floatTransitionDuration=Number.parseFloat(transitionDuration);const floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay)return 0;transitionDuration=transitionDuration.split(',')[0];transitionDelay=transitionDelay.split(',')[0];return ((Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*1000);};class Display{constructor(){this._isVisible=false;this._documentClickEvent=(e)=>{if(this.optionsStore.options.debug||window.debug)return;if(this._isVisible&&!e.composedPath().includes(this.widget)&&!e.composedPath()?.includes(this.optionsStore.element))this.hide();};this._actionsClickEvent=(e)=>{this._eventEmitters.action.emit({e});};this.optionsStore=serviceLocator.locate(OptionsStore);this.validation=serviceLocator.locate(Validation);this.dates=serviceLocator.locate(Dates);this.dateDisplay=serviceLocator.locate(DateDisplay);this.monthDisplay=serviceLocator.locate(MonthDisplay);this.yearDisplay=serviceLocator.locate(YearDisplay);this.decadeDisplay=serviceLocator.locate(DecadeDisplay);this.timeDisplay=serviceLocator.locate(TimeDisplay);this.hourDisplay=serviceLocator.locate(HourDisplay);this.minuteDisplay=serviceLocator.locate(MinuteDisplay);this.secondDisplay=serviceLocator.locate(secondDisplay);this._eventEmitters=serviceLocator.locate(EventEmitters);this._widget=undefined;this._eventEmitters.updateDisplay.subscribe((result)=>{this._update(result);});}get widget(){return this._widget;}get dateContainer(){return this.widget?.querySelector(`div.${Namespace.css.dateContainer}`);}get timeContainer(){return this.widget?.querySelector(`div.${Namespace.css.timeContainer}`);}get isVisible(){return this._isVisible;}_update(unit){if(!this.widget)return;switch(unit){case exports.Unit.seconds:this.secondDisplay._update(this.widget,this.paint);break;case exports.Unit.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case exports.Unit.hours:this.hourDisplay._update(this.widget,this.paint);break;case exports.Unit.date:this.dateDisplay._update(this.widget,this.paint);break;case exports.Unit.month:this.monthDisplay._update(this.widget,this.paint);break;case exports.Unit.year:this.yearDisplay._update(this.widget,this.paint);break;case 'decade':this.decadeDisplay._update(this.widget,this.paint);break;case 'clock':if(!this._hasTime)break;this.timeDisplay._update(this.widget);this._update(exports.Unit.hours);this._update(exports.Unit.minutes);this._update(exports.Unit.seconds);break;case 'calendar':this._update(exports.Unit.date);this._update(exports.Unit.year);this._update(exports.Unit.month);this.decadeDisplay._update(this.widget,this.paint);this._updateCalendarHeader();break;case 'all':if(this._hasTime)this._update('clock');if(this._hasDate)this._update('calendar');}}paint(_unit,_date,_classes,_element){}show(){if(this.widget==undefined){this._showSetDefaultIfNeeded();this._buildWidget();this._updateTheme();this._showSetupViewMode();if(!this.optionsStore.options.display.inline){const container=this.optionsStore.options?.container||document.body;const placement=this.optionsStore.options?.display?.placement||'bottom';container.appendChild(this.widget);this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:'eventListeners',enabled:true}],placement:document.documentElement.dir==='rtl'?`${placement}-end`:`${placement}-start`}).then();}else this.optionsStore.element.appendChild(this.widget);if(this.optionsStore.options.display.viewMode=='clock')this._eventEmitters.action.emit({e:null,action:ActionTypes$1.showClock});this.widget.querySelectorAll('[data-action]').forEach((element)=>element.addEventListener('click',this._actionsClickEvent));if(this._hasTime&&this.optionsStore.options.display.sideBySide){this.timeDisplay._update(this.widget);this.widget.getElementsByClassName(Namespace.css.clockContainer)[0].style.display='grid';}}this.widget.classList.add(Namespace.css.show);if(!this.optionsStore.options.display.inline){this.updatePopup();document.addEventListener('click',this._documentClickEvent);}this._eventEmitters.triggerEvent.emit({type:Namespace.events.show});this._isVisible=true;}_showSetupViewMode(){const onlyClock=this._hasTime&&!this._hasDate;if(onlyClock){this.optionsStore.currentView='clock';this._eventEmitters.action.emit({e:null,action:ActionTypes$1.showClock});}else{if(!this.optionsStore.currentCalendarViewMode)this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode;}if(!onlyClock&&this.optionsStore.options.display.viewMode!=='clock'){if(this._hasTime)if(!this.optionsStore.options.display.sideBySide)Collapse.hideImmediately(this.timeContainer);else Collapse.show(this.timeContainer);Collapse.show(this.dateContainer);}if(this._hasDate)this._showMode();}_showSetDefaultIfNeeded(){if(this.dates.picked.length!=0)return;if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){const date=new DateTime().setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let tries=0;let direction=1;if(this.optionsStore.options.restrictions.maxDate?.isBefore(date))direction=-1;while(!this.validation.isValid(date)&&tries>31){date.manipulate(direction,exports.Unit.date);tries++;}}this.dates.setValue(date);}if(this.optionsStore.options.defaultDate)this.dates.setValue(this.optionsStore.options.defaultDate);}async createPopup(element,widget,options){let createPopperFunction;if(window?.Popper)createPopperFunction=window?.Popper?.createPopper;else{const {createPopper}=await import('@popperjs/core');createPopperFunction=createPopper;}if(createPopperFunction)this._popperInstance=createPopperFunction(element,widget,options);}
vendor: 5,851 bytes, line 26
26updatePopup(){this._popperInstance?.update();}_showMode(direction){if(!this.widget)return;if(direction){const max=Math.max(this.optionsStore.minimumCalendarViewMode,Math.min(3,this.optionsStore.currentCalendarViewMode+direction));if(this.optionsStore.currentCalendarViewMode==max)return;this.optionsStore.currentCalendarViewMode=max;}this.widget.querySelectorAll(`.${Namespace.css.dateContainer} > div:not(.${Namespace.css.calendarHeader}), .${Namespace.css.timeContainer} > div:not(.${Namespace.css.clockContainer})`).forEach((e)=>(e.style.display='none'));const datePickerMode=CalendarModes[this.optionsStore.currentCalendarViewMode];const picker=this.widget.querySelector(`.${datePickerMode.className}`);switch(datePickerMode.className){case Namespace.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case Namespace.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case Namespace.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case Namespace.css.daysContainer:this.dateDisplay._update(this.widget,this.paint);break;}picker.style.display='grid';if(this.optionsStore.options.display.sideBySide)(this.widget.querySelectorAll(`.${Namespace.css.clockContainer}`)[0]).style.display='grid';this._updateCalendarHeader();this._eventEmitters.viewUpdate.emit();}_updateTheme(theme){if(!this.widget)return;if(theme){if(this.optionsStore.options.display.theme===theme)return;this.optionsStore.options.display.theme=theme;}this.widget.classList.remove('light','dark');this.widget.classList.add(this._getThemeClass());if(this.optionsStore.options.display.theme==='auto')window.matchMedia(Namespace.css.isDarkPreferredQuery).addEventListener('change',()=>this._updateTheme());else window.matchMedia(Namespace.css.isDarkPreferredQuery).removeEventListener('change',()=>this._updateTheme());}_getThemeClass(){const currentTheme=this.optionsStore.options.display.theme||'auto';const isDarkMode=window.matchMedia&&window.matchMedia(Namespace.css.isDarkPreferredQuery).matches;switch(currentTheme){case 'light':return Namespace.css.lightTheme;case 'dark':return Namespace.css.darkTheme;case 'auto':return isDarkMode?Namespace.css.darkTheme:Namespace.css.lightTheme;}}_updateCalendarHeader(){if(!this._hasDate)return;const showing=[...this.widget.querySelector(`.${Namespace.css.dateContainer} div[style*="display: grid"]`).classList].find((x)=>x.startsWith(Namespace.css.dateContainer));const [previous,switcher,next]=this.widget.getElementsByClassName(Namespace.css.calendarHeader)[0].getElementsByTagName('div');switch(showing){case Namespace.css.decadesContainer:previous.setAttribute('title',this.optionsStore.options.localization.previousCentury);switcher.setAttribute('title','');next.setAttribute('title',this.optionsStore.options.localization.nextCentury);break;case Namespace.css.yearsContainer:previous.setAttribute('title',this.optionsStore.options.localization.previousDecade);switcher.setAttribute('title',this.optionsStore.options.localization.selectDecade);next.setAttribute('title',this.optionsStore.options.localization.nextDecade);break;case Namespace.css.monthsContainer:previous.setAttribute('title',this.optionsStore.options.localization.previousYear);switcher.setAttribute('title',this.optionsStore.options.localization.selectYear);next.setAttribute('title',this.optionsStore.options.localization.nextYear);break;case Namespace.css.daysContainer:previous.setAttribute('title',this.optionsStore.options.localization.previousMonth);switcher.setAttribute('title',this.optionsStore.options.localization.selectMonth);next.setAttribute('title',this.optionsStore.options.localization.nextMonth);switcher.setAttribute(showing,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat));break;}switcher.innerText=switcher.getAttribute(showing);}hide(){if(!this.widget||!this._isVisible)return;this.widget.classList.remove(Namespace.css.show);if(this._isVisible){this._eventEmitters.triggerEvent.emit({type:Namespace.events.hide,date:this.optionsStore.unset?null:this.dates.lastPicked?.clone});this._isVisible=false;}document.removeEventListener('click',this._documentClickEvent);}toggle(){return this._isVisible?this.hide():this.show();}_dispose(){document.removeEventListener('click',this._documentClickEvent);if(!this.widget)return;this.widget.querySelectorAll('[data-action]').forEach((element)=>element.removeEventListener('click',this._actionsClickEvent));this.widget.parentNode.removeChild(this.widget);this._widget=undefined;}_buildWidget(){const template=document.createElement('div');template.classList.add(Namespace.css.widget);const dateView=document.createElement('div');dateView.classList.add(Namespace.css.dateContainer);dateView.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker());const timeView=document.createElement('div');timeView.classList.add(Namespace.css.timeContainer);timeView.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this)));timeView.appendChild(this.hourDisplay.getPicker());timeView.appendChild(this.minuteDisplay.getPicker());timeView.appendChild(this.secondDisplay.getPicker());const toolbar=document.createElement('div');toolbar.classList.add(Namespace.css.toolbar);toolbar.append(...this.getToolbarElements());if(this.optionsStore.options.display.inline)template.classList.add(Namespace.css.inline);if(this.optionsStore.options.display.calendarWeeks)template.classList.add('calendarWeeks');if(this.optionsStore.options.display.sideBySide&&this._hasDateAndTime){this._buildWidgetSideBySide(template,dateView,timeView,toolbar);return;}if(this.optionsStore.options.display.toolbarPlacement==='top')template.appendChild(toolbar);const setupComponentView=(hasFirst,hasSecond,element,shouldShow)=>
vendor: 12,769 bytes, line 26
26{if(!hasFirst)return;if(hasSecond){element.classList.add(Namespace.css.collapse);if(shouldShow)element.classList.add(Namespace.css.show);}template.appendChild(element);};setupComponentView(this._hasDate,this._hasTime,dateView,this.optionsStore.options.display.viewMode!=='clock');setupComponentView(this._hasTime,this._hasDate,timeView,this.optionsStore.options.display.viewMode==='clock');if(this.optionsStore.options.display.toolbarPlacement==='bottom')template.appendChild(toolbar);const arrow=document.createElement('div');arrow.classList.add('arrow');arrow.setAttribute('data-popper-arrow','');template.appendChild(arrow);this._widget=template;}_buildWidgetSideBySide(template,dateView,timeView,toolbar){template.classList.add(Namespace.css.sideBySide);if(this.optionsStore.options.display.toolbarPlacement==='top')template.appendChild(toolbar);const row=document.createElement('div');row.classList.add('td-row');dateView.classList.add('td-half');timeView.classList.add('td-half');row.appendChild(dateView);row.appendChild(timeView);template.appendChild(row);if(this.optionsStore.options.display.toolbarPlacement==='bottom')template.appendChild(toolbar);this._widget=template;}get _hasTime(){return (this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds));}get _hasDate(){return (this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date));}get _hasDateAndTime(){return this._hasDate&&this._hasTime;}getToolbarElements(){const toolbar=[];if(this.optionsStore.options.display.buttons.today){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.today);div.setAttribute('title',this.optionsStore.options.localization.today);div.appendChild(this._iconTag(this.optionsStore.options.display.icons.today));toolbar.push(div);}if(!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let title,icon;if(this.optionsStore.options.display.viewMode==='clock'){title=this.optionsStore.options.localization.selectDate;icon=this.optionsStore.options.display.icons.date;}else{title=this.optionsStore.options.localization.selectTime;icon=this.optionsStore.options.display.icons.time;}const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.togglePicker);div.setAttribute('title',title);div.appendChild(this._iconTag(icon));toolbar.push(div);}if(this.optionsStore.options.display.buttons.clear){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.clear);div.setAttribute('title',this.optionsStore.options.localization.clear);div.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear));toolbar.push(div);}if(this.optionsStore.options.display.buttons.close){const div=document.createElement('div');div.setAttribute('data-action',ActionTypes$1.close);div.setAttribute('title',this.optionsStore.options.localization.close);div.appendChild(this._iconTag(this.optionsStore.options.display.icons.close));toolbar.push(div);}return toolbar;}getHeadTemplate(){const calendarHeader=document.createElement('div');calendarHeader.classList.add(Namespace.css.calendarHeader);const previous=document.createElement('div');previous.classList.add(Namespace.css.previous);previous.setAttribute('data-action',ActionTypes$1.previous);previous.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous));const switcher=document.createElement('div');switcher.classList.add(Namespace.css.switch);switcher.setAttribute('data-action',ActionTypes$1.changeCalendarView);const next=document.createElement('div');next.classList.add(Namespace.css.next);next.setAttribute('data-action',ActionTypes$1.next);next.appendChild(this._iconTag(this.optionsStore.options.display.icons.next));calendarHeader.append(previous,switcher,next);return calendarHeader;}_iconTag(iconClass){if(this.optionsStore.options.display.icons.type==='sprites'){const svg=document.createElementNS('http://www.w3.org/2000/svg','svg');const icon=document.createElementNS('http://www.w3.org/2000/svg','use');icon.setAttribute('xlink:href',iconClass);icon.setAttribute('href',iconClass);svg.appendChild(icon);return svg;}const icon=document.createElement('i');icon.classList.add(...iconClass.split(' '));return icon;}_rebuild(){const wasVisible=this._isVisible;this._dispose();if(wasVisible)this.show();}refreshCurrentView(){if(!this._isVisible)this._dispose();switch(this.optionsStore.currentView){case 'clock':this._update('clock');break;case 'calendar':this._update(exports.Unit.date);break;case 'months':this._update(exports.Unit.month);break;case 'years':this._update(exports.Unit.year);break;case 'decades':this._update('decade');break;}}}class Actions{constructor(){this.optionsStore=serviceLocator.locate(OptionsStore);this.dates=serviceLocator.locate(Dates);this.validation=serviceLocator.locate(Validation);this.display=serviceLocator.locate(Display);this._eventEmitters=serviceLocator.locate(EventEmitters);this._eventEmitters.action.subscribe((result)=>{this.do(result.e,result.action);});}do(e,action){const currentTarget=e?.currentTarget;if(currentTarget?.classList?.contains(Namespace.css.disabled))return;action=action||currentTarget?.dataset?.action;const lastPicked=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(action){case ActionTypes$1.next:case ActionTypes$1.previous:this.handleNextPrevious(action);break;case ActionTypes$1.changeCalendarView:this.display._showMode(1);this.display._updateCalendarHeader();break;case ActionTypes$1.selectMonth:case ActionTypes$1.selectYear:case ActionTypes$1.selectDecade:this.handleSelectCalendarMode(action,currentTarget);break;case ActionTypes$1.selectDay:this.handleSelectDay(currentTarget);break;case ActionTypes$1.selectHour:{let hour=+currentTarget.dataset.value;if(lastPicked.hours>=12&&this.optionsStore.isTwelveHour)hour+=12;lastPicked.hours=hour;this.dates.setValue(lastPicked,this.dates.lastPickedIndex);this.hideOrClock(e);break;}case ActionTypes$1.selectMinute:lastPicked.minutes=+currentTarget.dataset.value;this.dates.setValue(lastPicked,this.dates.lastPickedIndex);this.hideOrClock(e);break;case ActionTypes$1.selectSecond:lastPicked.seconds=+currentTarget.dataset.value;this.dates.setValue(lastPicked,this.dates.lastPickedIndex);this.hideOrClock(e);break;case ActionTypes$1.incrementHours:this.manipulateAndSet(lastPicked,exports.Unit.hours);break;case ActionTypes$1.incrementMinutes:this.manipulateAndSet(lastPicked,exports.Unit.minutes,this.optionsStore.options.stepping);break;case ActionTypes$1.incrementSeconds:this.manipulateAndSet(lastPicked,exports.Unit.seconds);break;case ActionTypes$1.decrementHours:this.manipulateAndSet(lastPicked,exports.Unit.hours,-1);break;case ActionTypes$1.decrementMinutes:this.manipulateAndSet(lastPicked,exports.Unit.minutes,this.optionsStore.options.stepping*-1);break;case ActionTypes$1.decrementSeconds:this.manipulateAndSet(lastPicked,exports.Unit.seconds,-1);break;case ActionTypes$1.toggleMeridiem:this.manipulateAndSet(lastPicked,exports.Unit.hours,this.dates.lastPicked.hours>=12?-12:12);break;case ActionTypes$1.togglePicker:this.handleToggle(currentTarget);break;case ActionTypes$1.showClock:case ActionTypes$1.showHours:case ActionTypes$1.showMinutes:case ActionTypes$1.showSeconds:if(!this.optionsStore.options.display.sideBySide&&this.optionsStore.currentView!=='clock'){Collapse.hideImmediately(this.display.dateContainer);Collapse.showImmediately(this.display.timeContainer);}this.handleShowClockContainers(action);break;case ActionTypes$1.clear:this.dates.setValue(null);this.display._updateCalendarHeader();break;case ActionTypes$1.close:this.display.hide();break;case ActionTypes$1.today:{const today=new DateTime().setLocalization(this.optionsStore.options.localization);this._eventEmitters.updateViewDate.emit(today);if(this.validation.isValid(today,exports.Unit.date))this.dates.setValue(today,this.dates.lastPickedIndex);break;}}}handleShowClockContainers(action){if(!this.display._hasTime){Namespace.errorMessages.throwError('Cannot show clock containers when time is disabled.');return;}this.optionsStore.currentView='clock';this.display.widget.querySelectorAll(`.${Namespace.css.timeContainer} > div`).forEach((htmlElement)=>(htmlElement.style.display='none'));let classToUse='';switch(action){case ActionTypes$1.showClock:classToUse=Namespace.css.clockContainer;this.display._update('clock');break;case ActionTypes$1.showHours:classToUse=Namespace.css.hourContainer;this.display._update(exports.Unit.hours);break;case ActionTypes$1.showMinutes:classToUse=Namespace.css.minuteContainer;this.display._update(exports.Unit.minutes);break;case ActionTypes$1.showSeconds:classToUse=Namespace.css.secondContainer;this.display._update(exports.Unit.seconds);break;}(this.display.widget.getElementsByClassName(classToUse)[0]).style.display='grid';}handleNextPrevious(action){const {unit,step}=CalendarModes[this.optionsStore.currentCalendarViewMode];if(action===ActionTypes$1.next)this.optionsStore.viewDate.manipulate(step,unit);else this.optionsStore.viewDate.manipulate(step*-1,unit);this._eventEmitters.viewUpdate.emit();this.display._showMode();}hideOrClock(e){if(!this.optionsStore.isTwelveHour&&!this.optionsStore.options.display.components.minutes&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline)this.display.hide();else this.do(e,ActionTypes$1.showClock);}manipulateAndSet(lastPicked,unit,value=1){const newDate=lastPicked.manipulate(value,unit);if(this.validation.isValid(newDate,unit))this.dates.setValue(newDate,this.dates.lastPickedIndex);}handleSelectCalendarMode(action,currentTarget){const value=+currentTarget.dataset.value;switch(action){case ActionTypes$1.selectMonth:this.optionsStore.viewDate.month=value;break;case ActionTypes$1.selectYear:case ActionTypes$1.selectDecade:this.optionsStore.viewDate.year=value;break;}if(this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode){this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex);if(!this.optionsStore.options.display.inline)this.display.hide();}else this.display._showMode(-1);}handleToggle(currentTarget){if(currentTarget.getAttribute('title')===this.optionsStore.options.localization.selectDate){currentTarget.setAttribute('title',this.optionsStore.options.localization.selectTime);currentTarget.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML;this.display._updateCalendarHeader();this.optionsStore.refreshCurrentView();}else{currentTarget.setAttribute('title',this.optionsStore.options.localization.selectDate);currentTarget.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML;if(this.display._hasTime){this.handleShowClockContainers(ActionTypes$1.showClock);this.display._update('clock');}}this.display.widget.querySelectorAll(`.${Namespace.css.dateContainer}, .${Namespace.css.timeContainer}`).forEach((htmlElement)=>Collapse.toggle(htmlElement));this._eventEmitters.viewUpdate.emit();}handleSelectDay(currentTarget){const day=this.optionsStore.viewDate.clone;if(currentTarget.classList.contains(Namespace.css.old))day.manipulate(-1,exports.Unit.month);if(currentTarget.classList.contains(Namespace.css.new))day.manipulate(1,exports.Unit.month);day.date=+currentTarget.dataset.day;if(this.optionsStore.options.dateRange)this.handleDateRange(day);else if(this.optionsStore.options.multipleDates)this.handleMultiDate(day);else this.dates.setValue(day,this.dates.lastPickedIndex);if(!this.display._hasTime&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline&&!this.optionsStore.options.multipleDates&&!this.optionsStore.options.dateRange)this.display.hide();}handleMultiDate(day){let index=this.dates.pickedIndex(day,exports.Unit.date);console.log(index);if(index!==-1)this.dates.setValue(null,index);else{index=this.dates.lastPickedIndex+1;if(this.dates.picked.length===0)index=0;this.dates.setValue(day,index);}}handleDateRange(day){switch(this.dates.picked.length){case 2:this.dates.clear();break;case 1:{const other=this.dates.picked[0];if(day.getTime()===other.getTime()){this.dates.clear();break;}if(day.isBefore(other)){this.dates.setValue(day,0);this.dates.setValue(other,1);return;}else{this.dates.setValue(day,1);return;}}}this.dates.setValue(day,0);}}class TempusDominus{constructor(element,options={}){this._subscribers={};this._isDisabled=false;this._inputChangeEvent=(event)=>{const internallyTriggered=event?.detail;if(internallyTriggered)return;
26const setViewDate=()=>{if(this.dates.lastPicked)this.optionsStore.viewDate=this.dates.lastPicked.clone;};const value=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)try{const valueSplit=value.split(this.optionsStore.options.multipleDatesSeparator);for(let i=0;i<valueSplit.length;i++)this.dates.setFromInput(valueSplit[i],i);setViewDate();}catch{console.warn('TD: Something went wrong trying to set the multipleDates values from the input field.');}else{this.dates.setFromInput(value,0);setViewDate();}};this._toggleClickEvent=()=>{if(this.optionsStore.element?.disabled||this.optionsStore.input?.disabled||(this._toggle.nodeName==='INPUT'&&this._toggle?.type==='text'&&this.optionsStore.options.allowInputToggle))return;this.toggle();};this._openClickEvent=()=>{if(this.optionsStore.element?.disabled||this.optionsStore.input?.disabled)return;if(!this.display.isVisible)this.show();};setupServiceLocator();this._eventEmitters=serviceLocator.locate(EventEmitters);this.optionsStore=serviceLocator.locate(OptionsStore);this.display=serviceLocator.locate(Display);this.dates=serviceLocator.locate(Dates);this.actions=serviceLocator.locate(Actions);if(!element)Namespace.errorMessages.mustProvideElement();this.optionsStore.element=element;this._initializeOptions(options,DefaultOptions,true);this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization);this.optionsStore.unset=true;this._initializeInput();this._initializeToggle();if(this.optionsStore.options.display.inline)this.display.show();this._eventEmitters.triggerEvent.subscribe((e)=>{this._triggerEvent(e);});this._eventEmitters.viewUpdate.subscribe(()=>{this._viewUpdate();});this._eventEmitters.updateViewDate.subscribe((dateTime)=>{this.viewDate=dateTime;});}get viewDate(){return this.optionsStore.viewDate;}set viewDate(value){this.optionsStore.viewDate=value;this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization);this.display._update(this.optionsStore.currentView==='clock'?'clock':'calendar');}updateOptions(options,reset=false){if(reset)this._initializeOptions(options,DefaultOptions);else this._initializeOptions(options,this.optionsStore.options);this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization);this.display.refreshCurrentView();}toggle(){if(this._isDisabled)return;this.display.toggle();}show(){if(this._isDisabled)return;this.display.show();}hide(){this.display.hide();}disable(){this._isDisabled=true;this.optionsStore.input?.setAttribute('disabled','disabled');this.display.hide();}enable(){this._isDisabled=false;this.optionsStore.input?.removeAttribute('disabled');}clear(){this.optionsStore.input.value='';this.dates.clear();}subscribe(eventTypes,callbacks){if(typeof eventTypes==='string')eventTypes=[eventTypes];let callBackArray;if(!Array.isArray(callbacks))callBackArray=[callbacks];else callBackArray=callbacks;if(eventTypes.length!==callBackArray.length)Namespace.errorMessages.subscribeMismatch();const returnArray=[];for(let i=0;i<eventTypes.length;i++){const eventType=eventTypes[i];if(!Array.isArray(this._subscribers[eventType]))this._subscribers[eventType]=[];this._subscribers[eventType].push(callBackArray[i]);returnArray.push({unsubscribe:this._unsubscribe.bind(this,eventType,this._subscribers[eventType].length-1)});if(eventTypes.length===1)return returnArray[0];}return returnArray;}dispose(){this.display.hide();this.display._dispose();this._eventEmitters.destroy();this.optionsStore.input?.removeEventListener('change',this._inputChangeEvent);if(this.optionsStore.options.allowInputToggle){this.optionsStore.input?.removeEventListener('click',this._openClickEvent);this.optionsStore.input?.removeEventListener('focus',this._openClickEvent);}this._toggle?.removeEventListener('click',this._toggleClickEvent);this._subscribers={};}locale(language){const asked=loadedLocales[language];if(!asked)return;this.updateOptions({localization:asked});}_triggerEvent(event){event.viewMode=this.optionsStore.currentView;const isChangeEvent=event.type===Namespace.events.change;if(isChangeEvent){const {date,oldDate,isClear}=event;if((date&&oldDate&&date.isSame(oldDate))||(!isClear&&!date&&!oldDate))return;this._handleAfterChangeEvent(event);this.optionsStore.input?.dispatchEvent(new CustomEvent('change',{detail:event}));}this.optionsStore.element.dispatchEvent(new CustomEvent(event.type,{detail:event}));if(window.jQuery){const $=window.jQuery;if(isChangeEvent&&this.optionsStore.input)$(this.optionsStore.input).trigger(event);else $(this.optionsStore.element).trigger(event);}this._publish(event);}_publish(event){if(!Array.isArray(this._subscribers[event.type]))return;this._subscribers[event.type].forEach((callback)=>{callback(event);});}_viewUpdate(){this._triggerEvent({type:Namespace.events.update,viewDate:this.optionsStore.viewDate.clone});}_unsubscribe(eventName,index){this._subscribers[eventName].splice(index,1);}_initializeOptions(config,mergeTo,includeDataset=false){let newConfig=OptionConverter.deepCopy(config);newConfig=OptionConverter._mergeOptions(newConfig,mergeTo);if(includeDataset)newConfig=OptionConverter._dataToOptions(this.optionsStore.element,newConfig);OptionConverter._validateConflicts(newConfig);newConfig.viewDate=newConfig.viewDate.setLocalization(newConfig.localization);if(!this.optionsStore.viewDate.isSame(newConfig.viewDate))this.optionsStore.viewDate=newConfig.viewDate;if(newConfig.display.components.year)this.optionsStore.minimumCalendarViewMode=2;if(newConfig.display.components.month)this.optionsStore.minimumCalendarViewMode=1;if(newConfig.display.components.date)this.optionsStore.minimumCalendarViewMode=0;this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode);
26if(CalendarModes[this.optionsStore.currentCalendarViewMode].name!==newConfig.display.viewMode)this.optionsStore.currentCalendarViewMode=Math.max(CalendarModes.findIndex((x)=>x.name===newConfig.display.viewMode),this.optionsStore.minimumCalendarViewMode);if(this.display?.isVisible)this.display._update('all');if(newConfig.display.components.useTwentyfourHour&&newConfig.localization.hourCycle===undefined)newConfig.localization.hourCycle='h24';else{if(newConfig.localization.hourCycle===undefined)newConfig.localization.hourCycle=guessHourCycle(newConfig.localization.locale);}this.optionsStore.options=newConfig;if(newConfig.restrictions.maxDate&&this.viewDate.isAfter(newConfig.restrictions.maxDate))this.viewDate=newConfig.restrictions.maxDate.clone;if(newConfig.restrictions.minDate&&this.viewDate.isBefore(newConfig.restrictions.minDate))this.viewDate=newConfig.restrictions.minDate.clone;}_initializeInput(){if(this.optionsStore.element.tagName=='INPUT')this.optionsStore.input=this.optionsStore.element;else{const query=this.optionsStore.element.dataset.tdTargetInput;if(query==undefined||query=='nearest')this.optionsStore.input=this.optionsStore.element.querySelector('input');else this.optionsStore.input=this.optionsStore.element.querySelector(query);}if(!this.optionsStore.input)return;if(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate)this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate);this.optionsStore.input.addEventListener('change',this._inputChangeEvent);if(this.optionsStore.options.allowInputToggle){this.optionsStore.input.addEventListener('click',this._openClickEvent);this.optionsStore.input.addEventListener('focus',this._openClickEvent);}if(this.optionsStore.input.value)this._inputChangeEvent();}_initializeToggle(){if(this.optionsStore.options.display.inline)return;let query=this.optionsStore.element.dataset.tdTargetToggle;if(query=='nearest')query='[data-td-toggle="datetimepicker"]';this._toggle=query==undefined?this.optionsStore.element:this.optionsStore.element.querySelector(query);this._toggle.addEventListener('click',this._toggleClickEvent);}_handleAfterChangeEvent(e){if(!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||this.display.widget?.getElementsByClassName(Namespace.css.show)[0].classList.contains(Namespace.css.timeContainer))return;if((!e.oldDate&&this.optionsStore.options.useCurrent)||(e.oldDate&&e.date?.isSame(e.oldDate)))return;clearTimeout(this._currentPromptTimeTimeout);this._currentPromptTimeTimeout=setTimeout(()=>{if(this.display.widget)this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector('[data-action="togglePicker"]')},action:ActionTypes$1.togglePicker});},this.optionsStore.options.promptTimeOnDateChangeTransitionDelay);}}const loadedLocales={};const loadLocale=(l)=>{if(loadedLocales[l.name])return;loadedLocales[l.name]=l.localization;};const locale=(l)=>{const asked=loadedLocales[l];if(!asked)return;DefaultOptions.localization=asked;};const extend=function(plugin,option=undefined){if(!plugin)return tempusDominus;if(!plugin.installed){plugin(option,{TempusDominus,Dates,Display,DateTime,Namespace},tempusDominus);plugin.installed=true;}return tempusDominus;};const version='6.9.4';const tempusDominus={TempusDominus,extend,loadLocale,locale,Namespace,DefaultOptions,DateTime,Unit:exports.Unit,version,DefaultEnLocalization};exports.DateTime=DateTime;exports.DefaultEnLocalization=DefaultEnLocalization;exports.DefaultOptions=DefaultOptions;exports.Namespace=Namespace;exports.TempusDominus=TempusDominus;exports.extend=extend;exports.loadLocale=loadLocale;exports.locale=locale;exports.version=version;Object.defineProperty(exports,'__esModule',{value:true});}));;
27(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?module.exports=f():typeof define==='function'&&define.amd?define(f):(g=typeof globalThis!=='undefined'?globalThis:g||self,(g.tempusDominus=g.tempusDominus||{},g.tempusDominus.plugins=g.tempusDominus.plugins||{},g.tempusDominus.plugins.customDateFormat=f()));})(this,(function(){'use strict';var index=()=>{console.warn('This plugin has been merged with the main picker and is now longer required');};return index;}));;
28(function($,Drupal,moment,Foundation,Effia){const months={'en':['January','February','March','April','May','June','July','August','September','October','November','December'],'fr':["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],'ru':['январь','февраль','март','апрель','май','июнь','июль','август','сентябрь','октябрь','ноябрь','декабрь']};
28const reformatContainer=function(drupalText){const calendar=document.querySelector('.tempus-dominus-widget.show');const div=document.createElement('div');const days=calendar.querySelectorAll('.dow');calendar.classList.add('date-picker--container');days.forEach((day)=>{day.textContent=day.textContent.substring(0,2);});div.appendChild(document.createTextNode(drupalText));div.classList.add('tempus-dominus-widget--header');calendar.prepend(div);};const sleep=function(ms){return new Promise((resolve)=>setTimeout(resolve,ms));};const getFormattedDate=function(dateTime){if(dateTime===undefined)dateTime=new Date();const year=dateTime.getFullYear();const day=dateTime.getDate()<10?'0'+dateTime.getDate():dateTime.getDate();let month=dateTime.getMonth()+1;month=month<10?'0'+month:month;return year+'-'+month+'-'+day;};const toggleDesktopSubmitHomepage=function(entryDateValue,exitDateValue,entryHourValue,exitHourValue){const submitDesktopHomepage=document.querySelector('.ga-submit-search-booking');if(submitDesktopHomepage===null)return;const minDate=new tempusDominus.DateTime().manipulate(+1,'hours');const formattedMinDate=getFormattedDate(minDate);const minHour=getHoursAndMinutes(minDate);if((entryDateValue===formattedMinDate&&entryHourValue<minHour)||(entryDateValue===exitDateValue&&entryHourValue>=exitHourValue)){submitDesktopHomepage.classList.add('disabled');submitDesktopHomepage.setAttribute('aria-disabled','true');submitDesktopHomepage.disabled=true;}else{if(submitDesktopHomepage.classList.contains('disabled')){submitDesktopHomepage.classList.remove('disabled');submitDesktopHomepage.removeAttribute('aria-disabled');submitDesktopHomepage.disabled=false;}}};const getHoursAndMinutes=function(dateTime){let hours=dateTime.getHours()<10?'0'+dateTime.getHours():dateTime.getHours();let minutes=dateTime.getMinutes()<10?'0'+dateTime.getMinutes():dateTime.getMinutes();return hours+':'+minutes;};const roundedTime=function(hourTime){const hourTimeArray=hourTime.split(":");let minutes=parseInt(hourTimeArray[1]);let hours=parseInt(hourTimeArray[0]);if(minutes>0&&minutes<=15)minutes='15';else if(minutes>15&&minutes<=30)minutes='30';else if(minutes>30&&minutes<=45)minutes='45';else{minutes='00';hours+=1;hours=hours<10?'0'+hours.toString():hours.toString();}return hours+':'+minutes;};Drupal.behaviors.customEventScrollForm={attach:function(context,settings){var delay=0;var offset=150;document.addEventListener('invalid',function(e){$(e.target).addClass('invalid').closest('.form-element').addClass('form-item--error');$('html, body').animate({scrollTop:$($('.invalid')[0]).offset().top-offset},delay);},true);document.addEventListener('change',function(e){$(e.target).removeClass('invalid').closest('.form-element').removeClass('form-item--error');},true);}};Drupal.behaviors.customEventFormElement={attach:function(context,settings){var inputFormElement=$('.form-element').find('input, select');inputFormElement.on('focus',function(){$(this).closest('.form-element').addClass('form-item--focus');}).on('focusout',function(){$(this).closest('.form-element').removeClass('form-item--focus');});}};Drupal.behaviors.customDatePickers={attach:function(context,settings){const params=Effia.initializeDates();const orderType=Effia.getUrlParam('orderType');let startDate;let endDate;const date=moment();const currentDate=date.format('YYYY/MM/DD');const i18n={startOfTheWeek:1,locale:drupalSettings.langcode,format:'ddd dd/MM/yyyy HH:mm',hourCycle:'h23'};const initCustomDatePicker=function(startField,endField){endField=endField||'undefined';const reserveEntryDateInputs=Array.from(document.getElementsByName('reserve-entry-date'));const reserveExitDateInputs=Array.from(document.getElementsByName('reserve-exit-date'));let defaultEntryDate=new tempusDominus.DateTime(params.bookingEntryDate);let defaultExitDate=new tempusDominus.DateTime(params.bookingExitDate);if(startField instanceof Element)startDate=new tempusDominus.TempusDominus(startField,{display:{sideBySide:true,components:{decades:false},theme:'light'},localization:i18n,defaultDate:defaultEntryDate,restrictions:{minDate:new tempusDominus.DateTime(moment(new Date()).startOf('day'))},stepping:15});if(endField instanceof Element)endDate=new tempusDominus.TempusDominus(endField,{display:{sideBySide:true,components:{decades:false},theme:'light'},localization:i18n,defaultDate:defaultExitDate,restrictions:{minDate:new tempusDominus.DateTime(moment(new Date()).startOf('day'))},stepping:15});const enabledPreviousMonth=function(){sleep(1).then(()=>{const previous=document.querySelector('.tempus-dominus-widget.show .previous');const today=document.querySelector('.tempus-dominus-widget.show .today');if(previous&&today==null)previous.classList.remove('disabled');});};const disablePreviousDay=function(){sleep(1).then(()=>{const today=document.querySelector('.tempus-dominus-widget.show .today');if(today)today.previousSibling.classList.add('disabled');});};const togglePickerClick=function(){const picker=document.querySelector('.tempus-dominus-widget.show .picker-switch');if(picker!==null)if(picker.getAttribute('title')==='Select Year')picker.style="pointer-events: none";else picker.removeAttribute("style");};
28let firstTimeOpeningEntryDatePicker=true;const reserveEntryHourInputs=Array.from(document.getElementsByName('reserve-entry-hour'));const reserveExitHourInputs=Array.from(document.getElementsByName('reserve-exit-hour'));if(startDate!==undefined){startDate.subscribe('show.td',()=>{if(firstTimeOpeningEntryDatePicker){sleep(1).then(()=>{reformatContainer(Drupal.t('Entry date and hour'));});firstTimeOpeningEntryDatePicker=false;}enabledPreviousMonth();disablePreviousDay();});startDate.subscribe('update.td',()=>{disablePreviousDay();togglePickerClick();});['change.td','hide.td'].forEach((event)=>{startDate.subscribe(event,()=>{reserveEntryDateInputs.forEach((input)=>{input.value=getFormattedDate(startDate.dates.lastPicked);input.dispatchEvent(new Event('change'));});if(endDate!==undefined&&(endDate.dates.lastPicked!==undefined&&startDate.dates.lastPicked>=endDate.dates.lastPicked)){let newEndDate=startDate.dates.lastPicked;newEndDate=newEndDate.setTime(startDate.dates.lastPicked.getTime()+3600000);let newEndDateObject=tempusDominus.DateTime.convert(new Date(newEndDate));endDate.dates.setValue(newEndDateObject);reserveExitDateInputs.forEach((input)=>{input.value=getFormattedDate(newEndDateObject);input.dispatchEvent(new Event('change'));});}if(reserveExitHourInputs.length>0)toggleDesktopSubmitHomepage(reserveEntryDateInputs[0].value,reserveExitDateInputs[0].value,reserveEntryHourInputs[0].value,reserveExitHourInputs[0].value);});});}if(endDate!==undefined){let firstTimeOpeningExitDatePicker=true;endDate.subscribe('show.td',()=>{if(firstTimeOpeningExitDatePicker){sleep(1).then(()=>{reformatContainer(Drupal.t('Exit date and hour'));});firstTimeOpeningExitDatePicker=false;}enabledPreviousMonth();disablePreviousDay();});endDate.subscribe('update.td',()=>{disablePreviousDay();togglePickerClick();});['change.td','hide.td'].forEach((event)=>{endDate.subscribe(event,()=>{reserveExitDateInputs.forEach((input)=>{input.value=getFormattedDate(endDate.dates.lastPicked);input.dispatchEvent(new Event('change'));});if(startDate.dates.lastPicked!==undefined&&startDate.dates.lastPicked>endDate.dates.lastPicked){startDate.dates.setValue(endDate.dates.lastPicked);reserveEntryDateInputs.forEach((input)=>{input.value=getFormattedDate(endDate.dates.lastPicked);input.dispatchEvent(new Event('change'));});}if(reserveExitHourInputs.length>0)toggleDesktopSubmitHomepage(reserveEntryDateInputs[0].value,reserveExitDateInputs[0].value,reserveEntryHourInputs[0].value,reserveExitHourInputs[0].value);});});}};const addDatePickers=function(){const datePickerContainer=$('.date-picker',context);if(datePickerContainer.length){const startDatePickerTrigger=document.getElementById('entry-date-picker');const endDatePickerTrigger=document.getElementById('exit-date-picker');if(startDatePickerTrigger instanceof Element)if(endDatePickerTrigger instanceof Element)initCustomDatePicker(startDatePickerTrigger,endDatePickerTrigger);else initCustomDatePicker(startDatePickerTrigger,null);};};addDatePickers();let defaultEntryDate=params.bookingEntryDate;let defaultExitDate=params.bookingExitDate;if(orderType==='subscription'){defaultEntryDate=getFormattedDate(new tempusDominus.DateTime().manipulate(1,'hours'));defaultExitDate=getFormattedDate(new tempusDominus.DateTime().manipulate(2,'hours'));entryHourTime=roundedTime(getHoursAndMinutes(new tempusDominus.DateTime().manipulate(1,'hours')));exitHourTime=roundedTime(getHoursAndMinutes(new tempusDominus.DateTime().manipulate(2,'hours')));}$('[name="reserve-entry-date"]').val(defaultEntryDate).trigger('change');$('[name="reserve-exit-date"]').val(defaultExitDate).trigger('change');var dateInput=$('.date-picker--date-trigger');var timeInput=$('.date-picker--time');if(Foundation.MediaQuery.is('medium')){dateInput.prop('type','text');timeInput.prop('type','text');}}};Drupal.behaviors.customSelect={attach:function(context,settings){var $select=$('.custom-select');$select.find('input').on('click',function(event){var inputSelected=$(this);var action=inputSelected.attr('id').split('-')[0];var $container=$(this).closest('.custom-select');
28if(!$container.hasClass('custom-select-multiple'))$container.find('input').each(function(i,input){if(input.id!==inputSelected.attr('id')&&action===input.id.split('-')[0]){input.checked=false;$('#'+input.id).next().removeClass('checked');}else{if(input.id===inputSelected.attr('id')&&action===input.id.split('-')[0]){input.checked=true;$('#'+input.id).next().addClass('checked');if(typeof $(input).data('label')!=='undefined'){var title=$(input).data('label').toString();$container.find('.input-select--selected').html(title.charAt(0).toUpperCase()+title.slice(1));}}}});});}};Drupal.behaviors.customCheckbox={attach:function(context,settings){var checkbox=$(".custom-checkbox input[type='checkbox']");var resetInput=$(".results--filters--reinitialise input[type='reset']");checkbox.on('change',function(){if($(this).is(':checked'))$(this).nextAll('.checkbox').addClass('checked');else $(this).nextAll('.checkbox').removeClass('checked');});checkbox.on('disableCheckbox',function(event){$(this).prop('disabled',true);$(this).prop('checked',false);$(this).next().removeClass('checked');$(this).parent().parent().parent().addClass('checkbox--is-disabled');});checkbox.on('enableCheckbox',function(event){$(this).prop('disabled',false);$(this).parent().parent().parent().removeClass('checkbox--is-disabled');});checkbox.on('forceCheck',function(event){$(this).prop('disabled',true);$(this).prop('checked',true);$(this).next().addClass('checked');$(this).parent().parent().parent().removeClass('checkbox--is-disabled');});checkbox.on('checkCheckbox',function(event){$(this).prop('checked',true);$(this).next().addClass('checked');});checkbox.on('uncheckCheckbox',function(event){$(this).prop('checked',false);$(this).next().removeClass('checked');});resetInput.on('click',function(){$(this).parents('form').find(checkbox).next('.checkbox').removeClass('checked');});}};Drupal.behaviors.customRadioBox={attach:function(context,settings){var $radioBox=$('.radio-box');$radioBox.find('input[type="radio"]:checked').closest('.radio-box').addClass('is-active');$radioBox.find('input[type="radio"]').on('change',function(){$('input[type="radio"][name="'+$(this).attr('name')+'"]').closest('.radio-box').removeClass('is-active');$(this).closest('.radio-box').addClass('is-active');});}};Drupal.behaviors.customSpinner={attach:function(context,settings){$('.spinner-container').on('displaySpinner',function(event){$(this).addClass('active');});$('.spinner-container').on('hideSpinner',function(event){$(this).delay(500).removeClass('active');});}};Drupal.behaviors.toogleDropdownMenu={attach:function(context,settings){$('ul.dropdown').on('closeMenu',function(event){$(this).removeClass('is-open');$(this).addClass('is-close');});$('ul.dropdown').on('openMenu',function(event){$(this).removeClass('is-close');$(this).addClass('is-open');});}};Drupal.behaviors.customSubmitButton={attach:function(context,settings){$('.submit').on('disableSubmit',function(event){$(this).addClass('disabled');$(this).removeClass('enabled');$(this).attr('aria-disabled',true);});$('.submit').on('enableSubmit',function(event){$(this).addClass('enabled');$(this).removeClass('disabled');$(this).attr('aria-disabled',false);});}};Drupal.behaviors.customExtraCheckboxes={attach:function(context,settings){$('.custom-extra-checkbox').on('click',function(event){var selectedInput=$(this).find('input');if(selectedInput.prop('disabled')===false)$('.custom-extra-checkbox').each(function(){var input=$(this).find('input');if(input.prop('disabled')===false)if(input.attr('name')===selectedInput.attr('name')&&!input.is(':checked'))input.trigger('checkCheckbox');else input.trigger('uncheckCheckbox');});});}};Drupal.behaviors.customNumberInput={attach:function(context,settings){$("[data-quantity='plus']").click(function(e){e.preventDefault();var fieldName=$(this).attr('data-field');var numberInput=$(this).parents('form').find('input[name='+fieldName+']');var currentVal=parseInt(numberInput.val());if(!isNaN(currentVal)){currentVal++;numberInput.val(currentVal);numberInput.attr('value',currentVal);numberInput.change();if(currentVal===1)$(this).parents('.plus-minus-input').find("[data-quantity='minus']").removeClass('minimum');}});$("[data-quantity='minus']").click(function(e){e.preventDefault();var fieldName=$(this).attr('data-field');var numberInput=$(this).parents('form').find('input[name='+fieldName+']');var currentVal=parseInt(numberInput.val());if(!isNaN(currentVal)&&currentVal>0){currentVal--;numberInput.val(currentVal);numberInput.attr('value',currentVal);numberInput.change();if(currentVal===0)$(this).addClass('minimum');}});var resetInput=$(".results--filters--reinitialise input[type='reset']");resetInput.on('click',function(){$(this).parents('form').find("[data-quantity='minus']").addClass('minimum');});}};
28Drupal.behaviors.validateNumberDropDown={attach:function(context,settings){var cancel=$('.in-row-form--input.number .cancel');var valid=$('.in-row-form--input.number .valid');cancel.on('click',function(event){var t=$(event.target);t.closest('.in-row-form--input').find("input[type='number']").val('0');t.closest('.in-row-form--input').find("[data-quantity='minus']").addClass('minimum');});valid.on('click',function(event){var t=$(event.target);t.closest('.menu').removeClass('js-dropdown-active');t.closest('.is-dropdown-submenu-parent').removeClass('is-active').attr('data-is-click','false');});}};Drupal.behaviors.modalAnimateLabelOnInputFocus={attach:function(context,settings){$(context).find('.modal-form').one('modalAnimateLabel').each(function(){var $input=$(this).find('input, textarea');$input.each(function(){if($(this).val()!=='')$(this).parents('.in-row-form--input').find('label').addClass('input-is-focused');});$input.on('focus',function(){$(this).parents('.in-row-form--input').find('label').addClass('input-is-focused');});$input.on('blur',function(){if($(this).val()==='')$(this).parents('.in-row-form--input').find('label').removeClass('input-is-focused');});$(this).off('open.zf.reveal').on('open.zf.reveal',function(){var prefilled=$(this).find('input, textarea');prefilled.each(function(){if($(this).val()!=='')$(this).parents('.in-row-form--input').find('label').addClass('input-is-focused');});});});}};Drupal.behaviors.openMobileModal={attach:function(context,settings){var isMobile=($(context).find('.hide-for-small-only').first().css('display')==='none');var url=window.location.href;var anchor=url.split('#')[1];if(isMobile&&(anchor==='subscribe'||anchor==='booking')){$('#bookingModal').foundation('open');if(anchor==='subscribe')$('#mobile-home-booking').foundation('selectTab',$('#subscribe-mobile'));}}};Drupal.behaviors.focusToSearchFieldOnAndroid={attach:function(context,settings){var ua=navigator.userAgent.toLowerCase();var isAndroid=ua.indexOf('android')>-1;var inputs=$('#bookingModal .place-input');if(isAndroid)$(inputs).each(function(){$(this).focus(function(){$('#bookingModal').animate({scrollTop:$(this).position().top-20},1000);});});}};Drupal.behaviors.openLoginModal={attach:function(context,settings){var pathname=window.location.pathname;var anchor=pathname.split('/');$('.reveal-overlay').unbind('click');}};Drupal.behaviors.updateSubscriptionModal={attach:function(context,settings){var ua=navigator.userAgent.toLowerCase();var isAndroid=ua.indexOf('android')>-1;var field=$('.effia-update-subscription-form textarea');if(isAndroid)$(field).focus(function(){setTimeout(function(){$('#drupal-modal').animate({scrollTop:field.position().top},1000);},1000);});}};Drupal.behaviors.closeDropdownMenu={attach:function(context,settings){$('.dropdown.menu.custom-select li:first-child a.input-select--selected').on('click',function(event){var dropdownMenu=$(this).parents('ul.dropdown');if(dropdownMenu.hasClass('is-open'))dropdownMenu.trigger('closeMenu');else dropdownMenu.trigger('openMenu');});$(window).on('scroll',function(){closeAllOpenDropdownMenu();});$('body').on('click touchmove',function(e){if(!$('.custom-select').is(e.target)&&$('.custom-select').has(e.target).length===0&&e.originalEvent!==undefined)closeAllOpenDropdownMenu();});function closeAllOpenDropdownMenu(){var dropdownMenus=$('.dropdown.menu.custom-select');dropdownMenus.each(function(){if($(this).hasClass('is-open'))$(this).trigger('closeMenu');});}}};})(jQuery,Drupal,moment,Foundation,Effia);;
29(function($,Drupal,moment,Effia){Drupal.behaviors.datePickerForm={attach:function(context,settings){const i18n={startOfTheWeek:1,locale:drupalSettings.langcode,format:'ddd dd/MM/yyyy HH:mm',hourCycle:'h23'};const addDatePickerBirthdate=function(){const simpleDateFields=context.querySelectorAll('.date-picker--simple-date');simpleDateFields.forEach((simpleDateField)=>{const simpleDateWrapper=simpleDateField.closest('.form-item');simpleDateField.addEventListener('input',function(event){const inputValue=event.target.value;const dateFormatRegex=/^\d{2}\/\d{2}\/\d{4}$/;if(inputValue&&!dateFormatRegex.test(inputValue)){let cleanValue=inputValue.replace(/[^\d]/g,'');if(cleanValue.length>8)cleanValue=cleanValue.substring(0,8);if(cleanValue.length>=2)cleanValue=cleanValue.substring(0,2)+'/'+cleanValue.substring(2);if(cleanValue.length>=5)cleanValue=cleanValue.substring(0,5)+'/'+cleanValue.substring(5);event.target.value=cleanValue;}});const minDate=simpleDateField.dataset.minDate?moment(simpleDateField.dataset.minDate).endOf('day').toDate():undefined;const maxDate=simpleDateField.dataset.maxDate?moment(simpleDateField.dataset.maxDate).endOf('day').toDate():undefined;new tempusDominus.TempusDominus(simpleDateWrapper,{display:{viewM
29ode:'years',theme:'light',components:{clock:false}},restrictions:{minDate,maxDate},localization:{...i18n,...{format:'dd/MM/yyyy'}}});});};addDatePickerBirthdate();}};})(jQuery,Drupal,moment,Effia);;
30((Drupal)=>{'use strict';const htmlElement=document.documentElement;const allowedFocusableElements=`
31    a[href]:not([disabled]),
32    area[href],
33    input:not([disabled]):not([type="hidden"]),
34    select:not([disabled]),
35    textarea:not([disabled]),
36    button:not([disabled]),
37    iframe,
38    object,
39    embed,
40    *[tabindex],
41    *[contenteditable]`;class Dialog{constructor(dialog){this.dialog=dialog;this.inner=dialog.firstElementChild;this.dialogId=dialog.getAttribute('id');this.openers=document.querySelectorAll(`.js-dialog-open-button[data-dialog-target="${this.dialogId}"]`);this.closeButton=dialog.querySelector('.js-dialog-close-button');this.template=dialog.querySelector('template');this.templateBuilded=false;this.openEvent=new CustomEvent('dialogOpen');this.closeEvent=new CustomEvent('dialogClose');this.originalParent=null;this.originalNextSibling=null;this.initFocusableElements=this.initFocusableElements.bind(this);this.tabLoopHelperHandle=this.tabLoopHelperHandle.bind(this);this.openers.forEach((cta)=>{if(!cta.dataset.dialogInitialized){cta.dataset.dialogInitialized='true';cta.addEventListener('click',()=>{this.toggleState(true);});}});dialog.addEventListener('click',(event)=>{if(event.target===this.dialog)this.toggleState(false);},false);this.inner.addEventListener('click',(event)=>{event.stopPropagation();},false);if(this.closeButton)this.closeButton.addEventListener('click',(event)=>{event.stopPropagation();this.toggleState(false);});dialog.addEventListener('close',()=>{this.removeFocusTrap();this.restoreToOriginalParent();});}initFocusableElements(){this.focusableElements=this.dialog.querySelectorAll(allowedFocusableElements);this.firstFocusableElement=this.focusableElements[0];this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1];}tabLoopHelperHandle(){this.beforeTabLoopHelper=document.createElement('button');this.beforeTabLoopHelper.classList.add('js-dialog_before_tab-loop-helper');this.beforeTabLoopHelper.setAttribute('type','button');this.dialog.insertBefore(this.beforeTabLoopHelper,this.dialog.firstChild);this.afterTabLoopHelper=document.createElement('button');this.afterTabLoopHelper.classList.add('js-dialog_after_tab-loop-helper');this.afterTabLoopHelper.setAttribute('type','button');this.dialog.appendChild(this.afterTabLoopHelper);this.beforeTabLoopHelper.addEventListener('focus',()=>{this.lastFocusableElement.focus();});this.afterTabLoopHelper.addEventListener('focus',()=>{this.firstFocusableElement.focus();});}removeFocusTrap(){if(this.beforeTabLoopHelper&&this.beforeTabLoopHelper.parentNode)this.beforeTabLoopHelper.remove();if(this.afterTabLoopHelper&&this.afterTabLoopHelper.parentNode)this.afterTabLoopHelper.remove();}moveToBody(){if(this.dialog.parentElement===document.body)return;this.originalParent=this.dialog.parentElement;this.originalNextSibling=this.dialog.nextSibling;document.body.appendChild(this.dialog);}restoreToOriginalParent(){if(!this.originalParent)return;if(this.originalNextSibling)this.originalParent.insertBefore(this.dialog,this.originalNextSibling);else this.originalParent.appendChild(this.dialog);this.originalParent=null;this.originalNextSibling=null;}toggleState(state){htmlElement.classList.toggle('-is-expanded',state);const animationEnd=()=>
41{if(state){this.dialog.classList.remove('-is-opening');this.dialog.dispatchEvent(this.openEvent);}else{this.dialog.close();this.dialog.classList.remove('-is-closing');this.removeFocusTrap();this.restoreToOriginalParent();this.dialog.dispatchEvent(this.closeEvent);}this.dialog.removeEventListener('animationend',animationEnd);};if(state){this.moveToBody();this.dialog.showModal();if(!this.templateBuilded&&this.template){const parent=this.template.parentElement;const clone=document.importNode(this.template.content,true);parent.append(clone);this.templateBuilded=true;}this.dialog.classList.add('-is-opening');this.initFocusableElements();this.tabLoopHelperHandle();}else this.dialog.classList.add('-is-closing');this.dialog.addEventListener('animationend',animationEnd);}}function init(elements){const initializedIds=new Set();elements.forEach((element)=>{if('initDialog' in element.dataset)return;const dialogId=element.getAttribute('id');if(dialogId&&initializedIds.has(dialogId))return;element.dataset.initDialog='true';if(dialogId)initializedIds.add(dialogId);try{new Dialog(element);}catch(e){console.error('Dialog initialization failed for element',element,e);}});}Drupal.behaviors.htmlDialog={attach:()=>{const elements=document.querySelectorAll('.js-dialog');if(elements.length!==0)init(elements);}};})(window.Drupal);;
42(function($,Drupal,Foundation){Drupal.behaviors.effiaReadMoreLink={attach:function(context,settings){$(once('effia-read-more','.field-commerce-product--body',context)).each(function(){var htmllongtext=$(this).find('.longtext').html();var htmlshorttext=$(this).find('.shorttext').html();if(htmlshorttext===htmllongtext)$(this).find('.read-more.link').removeClass('is-active');else $(this).find('.read-more.link').addClass('is-active');$(this).find('.read-more.link').click(function(){$(this).parent().find('.longtext').addClass('is-active');$(this).parent().find('.read-less').addClass('is-active');$(this).parent().find('.shorttext').removeClass('is-active');$(this).removeClass('is-active');});$(this).find('.read-less.link').click(function(){$(this).parent().find('.longtext').removeClass('is-active');$(this).parent().find('.read-more').addClass('is-active');$(this).parent().find('.shorttext').addClass('is-active');$(this).removeClass('is-active');});});}};Drupal.behaviors.checkTypeOfDevice={attach:function(context){var classNames=[];var html=document.getElementsByTagName('html')[0];if(navigator.userAgent.match(/(iPad|iPhone|iPod)/i))classNames.push('device-ios');if(navigator.userAgent.match(/android/i))classNames.push('device-android');if(classNames.length)classNames.push('on-device');if(html.classList)html.classList.add.apply(html.classList,classNames);}};Drupal.behaviors.effiaOffCanvasOverlay={attach:function(context){const $offCanvasOverlay=$(context).find('.js-off-canvas-overlay');const $body=$('body');$(once('effia-off-canvas-overlay','.js-off-canvas-overlay',context)).each(function(){const $div=$(this);const observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if($(mutation.target).hasClass('is-visible'))$body.addClass('off-canvas-overlay--isVisible');else $body.removeClass('off-canvas-overlay--isVisible');});});observer.observe($div[0],{attributes:true,attributeFilter:['class']});});}};Drupal.behaviors.effiaMobileHeaderSearch={attach:function(context){const $mobileDropdown=$(context).find('.mobile-header--search .is-dropdown-submenu-parent');const $body=$('body');$(context).find('.mobile-header--open-search').click(function(event){event.stopPropagation();$mobileDropdown.toggleClass('is-active');$body.toggleClass('search-is-active');if($mobileDropdown.hasClass('is-active'))$mobileDropdown.find('.effia-search-form-input').trigger('focus');});$(window).click(function(event){const $target=$(event.target);const $closestParent=$target.closest('.is-dropdown-submenu-parent');if($closestParent.length===0&&$mobileDropdown.hasClass('is-active')){$mobileDropdown.removeClass('is-active');$body.removeClass('search-is-active');}});}};Drupal.behaviors.effiaMobileHeaderUserAccount={attach:function(context){var $openUserAccount=$(context).find('.mobile-header--user-account .to
42p-bar-main--nav');$(once('openMobileUserAccount','.mobile-header--user-account .top-bar-main--nav',context)).each(function(){if($(this).hasClass('dropdown')){$(this).foundation('destroy');var options={disableHover:true,clickOpen:true,closeOnClickInside:false};new Foundation.DropdownMenu($openUserAccount,options);}});$(once('openMobileUser','.mobile-header--open-user',context)).click(function(){var $loggedIn=$openUserAccount.find('.menu-user > a');var $loggedOut=$openUserAccount.find('.button');if($loggedIn.length)$loggedIn.click();else{if($loggedOut.length)$loggedOut.click();}});}};Drupal.behaviors.effiaMobileHeaderLanguageSwitch={attach:function(context){$(once('mobileLanguageSwitch','.left-off-canvas-menu .language-switcher-language-url .dropdown',context)).each(function(){$(this).foundation('destroy');var options={disableHover:true,clickOpen:true,closeOnClickInside:false};new Foundation.DropdownMenu($(this),options);});}};Drupal.behaviors.effiaMobileDateEffect={attach:function(context){$('.home-booking-mobile input').each(function(){$(this).on('blur',function(){$(this).parent().addClass('focus');}).on('focus',function(){$(this).parent().addClass('focus');});});}};Drupal.behaviors.effiaZurbRevealClass={attach:function(context){$('.reveal .close-button').on('click',function(){$('body').removeClass('is-reveal-open');});if($('#bookingModal').length>0)$(window).resize(function(event){if($('#bookingModal').is(":hidden"))$('body').removeClass('is-reveal-open');else $('body').addClass('is-reveal-open');});}};Drupal.behaviors.selectedClassOninput={attach:function(context,settings){$('input.date-picker--date-display').each(function(){var $this=$(this);if(!$this.val()===0){$this.addClass('selected');$this.parent().find('label').addClass('selected');}else $this.on('click change focus',function(){$this.addClass('selected');$this.parent().find('label').addClass('selected');});});$('input.date-picker--time').each(function(){var $this=$(this);if(!$this.val()===0){$this.addClass('selected');$this.parent().find('label').addClass('selected');}else $this.on('click change focus',function(){$this.addClass('selected');$this.parent().find('label').addClass('selected');});});}};Drupal.behaviors.backgroundImagesEdito={attach:function(context){var previous_random_number=0;if($('.background_URIs').length){var backgrounds=$('.background_URIs').find('.background_URI');var background_URIs=[];$.each(backgrounds,function(){background_URIs.push($(this).text());});if(background_URIs.length>1){getRandomImage(background_URIs);$('ul.home-booking--buttons li a').click(function(){getRandomImage(background_URIs);});}else applyBackground(background_URIs[0]);}function getRandomImage(images,previous_index){var random_number=Math.floor(Math.random()*Math.floor(images.length));do{random_number=Math.floor(Math.random()*Math.floor(images.length));if(random_number!==previous_random_number)applyBackground(images[random_number]);}while(random_number===previous_random_number);previous_random_number=random_number;}function applyBackground(uri){$('.background_handler').css('background-image','url("'+uri+'")');}}};Drupal.behaviors.showMenuAfterPageIsLoaded={attach:function(context){$(document).ready(function(){$('.top-bar-main--navigation').removeClass('hide');$('.vertical.menu').removeClass('hide');let menuItems=$('.ga-user-menu').parent('.menu-item--expanded');for(let menuItem=0;menuItem<menuItems.length;menuItem++)if($(menuItems[menuItem]).children('ul').length==0)$(menuItems[menuItem]).hide();const userMenu=$('.menu-user');const dropDownMenuAccount=$('#block-user-account-menu li.menu-item--expanded');const subMenuItemsAccount=dropDownMenuAccount.find('ul.menu.is-dropdown-submenu');if(window.location.pathname.indexOf('user/bills')>-1){subMenuItemsAccount.addClass('showSubMenu');dropDownMenuAccount.addClass('upArrow menu-item--active-trail');}});}};Drupal.behaviors.scrollToTitle={attach:function(context){const $title=$('#menu-sticky-anchor');if($('.path-product').length&&$title.length){const headerHeight=$('.top-bar-main:visible').outerHeight();const titleTop=$title.offset().top;window.scrollTo({top:titleTop-headerHeight-16});}}};Drupal.behaviors.dropDownMenu={attach:function(context){let dropDownMenu=$("#block-sidebar-user-account li.menu-item--expanded");let dropDownMenuTitle=dropDownMenu.find('span.ga-user-menu');let subMenuItems=dropDownMenu.find('ul.menu');dropDownMenuTitle.click(function(){dropDownMenu.toggleClass('is-active');subMenuItems.toggleClass('showSubMenu');});if(dropDownMenu.hasClass('menu-item--active-trail')&&!subMenuItems.hasClass('showSubMenu')&&!
42dropDownMenu.hasClass('is-active')){subMenuItems.addClass('showSubMenu');dropDownMenu.addClass('is-active');}}};Drupal.behaviors.isInViewport=function(el){if(typeof jQuery==="function"&&el instanceof jQuery)el=el[0];const rect=el.getBoundingClientRect();return (rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth));};Drupal.behaviors.tempusDominusArrow={attach:function(context,settings){$(once('entryDatePickerClick','#entry-date-picker-input',context)).on('click',function(){const parentDiv=$(this).closest('.in-row-form--input');if(parentDiv.length)parentDiv.toggleClass('rotate-180');});$(once('exitDatePickerClick','#exit-date-picker-input',context)).on('click',function(){const parentDiv=$(this).closest('.in-row-form--input');if(parentDiv.length)parentDiv.toggleClass('rotate-180');});$(once('documentClick',context===document?'html':context)).on('click',function(event){if(!$(event.target).closest('#entry-date-picker-input, #exit-date-picker-input').length)$('.in-row-form--input').removeClass('rotate-180');});}};Drupal.behaviors.hideTempusDominusOnClick={attach:function(context,settings){var triggerElement=$(once('close-all-tempus-dominus','a[href="#subscribe"]',context));if(triggerElement.length)triggerElement.on('click',function(event){event.preventDefault();var tempusWidgets=document.querySelectorAll('.tempus-dominus-widget');tempusWidgets.forEach(function(widget){widget.classList.remove('show');});});}};Drupal.behaviors.moveTempusDominusPopin={attach:function(context,settings){$('#entry-date-picker-input').on('click',function(){$('.tempus-dominus-widget').addClass('open-tempus');});$('#exit-date-picker-input').on('click',function(){$('.tempus-dominus-widget').addClass('open-tempus');});}};Drupal.behaviors.previousPage={attach:function(context,settings){function storePreviousPage(){const currentOrigin=window.location.origin;const currentUrl=currentOrigin+window.location.pathname;const currentUrlFull=window.location.href;const storedReferrer=sessionStorage.getItem('storedReferrer');const storedReferrerFull=sessionStorage.getItem('storedReferrerFull')??'/';if(currentUrl!==storedReferrer){sessionStorage.setItem('previousPage',storedReferrerFull);sessionStorage.setItem('storedReferrer',currentUrl);sessionStorage.setItem('storedReferrerFull',currentUrlFull);}const triggerElement=$('.js-go-back-to-previous-page',context);if(triggerElement.length)triggerElement.attr('href',sessionStorage.getItem('previousPage'));}$(once('effia-previous-page','body',document)).each(function(){storePreviousPage();});}};})(jQuery,Drupal,Foundation);;
43!function(t){"use strict";var i=t.jCarousel={};i.version="0.3.9";var s=/^([+\-]=)?(.+)$/;i.parseTarget=function(t){var i=!1,e="object"!=typeof t?s.exec(t):null;return e?(t=parseInt(e[2],10)||0,e[1]&&(i=!0,"-="===e[1]&&(t*=-1))):"object"!=typeof t&&(t=parseInt(t,10)||0),{target:t,relative:i};},i.detectCarousel=function(t){for(var i;t.length>0;){if((i=t.filter("[data-jcarousel]")).length>0)return i;if((i=t.find("[data-jcarousel]")).length>0)return i;t=t.parent();}return null;},i.base=function(s){return {version:i.version,_options:{},_element:null,_carousel:null,_init:t.noop,_create:t.noop,_destroy:t.noop,_reload:t.noop,create:function(){return this._element.attr("data-"+s.toLowerCase(),!0).data(s,this),!1===this._trigger("create")?this:(this._create(),this._trigger("createend"),this);},destroy:function(){return !1===this._trigger("destroy")?this:(this._destroy(),this._trigger("destroyend"),this._element.removeData(s).removeAttr("data-"+s.toLowerCase()),this);},reload:function(t){return !1===this._trigger("reload")?this:(t&&this.options(t),this._reload(),this._trigger("reloadend"),this);},element:function(){return this._element;},options:function(i,s){if(0===arguments.length)return t.extend({},this._options);if("string"==typeof i){if(void 0===s)return void 0===this._options[i]?null:this._options[i];this._options[i]=s;}else this._options=t.extend({},this._options,i);return this;},carousel:function(){return this._carousel||(this._carousel=i.detectCarousel(this.options("carousel")||this._element),this._carousel||t.error('Could not detect carousel for plugin "'+s+'"')),this._carousel;},_trigger:function(i,e,r){var n,o=!1;return r=[this].concat(r||[]),(e||this._element).each(function(){n=t.Event((s+":"+i).toLowerCase()),t(this).trigger(n,r),n.isDefaultPrevented()&&(o=!0);}),!o;}};},i.plugin=function(s,e){var r=t[s]=function(i,s){this._element=t(i),this.options(s),this._init(),this.create();};return r.fn=r.prototype=t.extend({},i.base(s),e),t.fn[s]=function(i){var e=Array.prototype.slice.call(arguments,1
43),n=this;return "string"==typeof i?this.each(function(){var r=t(this).data(s);if(!r)return t.error("Cannot call methods on "+s+' prior to initialization; attempted to call method "'+i+'"');if(!t.isFunction(r[i])||"_"===i.charAt(0))return t.error('No such method "'+i+'" for '+s+" instance");var o=r[i].apply(r,e);return o!==r&&void 0!==o?(n=o,!1):void 0;}):this.each(function(){var e=t(this).data(s);e instanceof r?e.reload(i):new r(this,i);}),n;},r;};}(jQuery),function(t,i){"use strict";var s=t(i),e=function(t){return parseFloat(t)||0;};t.jCarousel.plugin("jcarousel",{animating:!1,tail:0,inTail:!1,resizeState:null,resizeTimer:null,lt:null,vertical:!1,rtl:!1,circular:!1,underflow:!1,relative:!1,_options:{list:function(){return this.element().children().eq(0);},items:function(){return this.list().children();},animation:400,transitions:!1,wrap:null,vertical:null,rtl:null,center:!1},_list:null,_items:null,_target:t(),_first:t(),_last:t(),_visible:t(),_fullyvisible:t(),_init:function(){var t=this;return t.resizeState=s.width()+"x"+s.height(),this.onWindowResize=function(){t.resizeTimer&&clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(function(){var i=s.width()+"x"+s.height();i!==t.resizeState&&(t.resizeState=i,t.reload());},100);},this;},_create:function(){this._reload(),s.on("resize.jcarousel",this.onWindowResize);},_destroy:function(){s.off("resize.jcarousel",this.onWindowResize);},_reload:function(){this.vertical=this.options("vertical"),null==this.vertical&&(this.vertical=e(this.list().height())>e(this.list().width())),this.rtl=this.options("rtl"),null==this.rtl&&(this.rtl=function(i){if("rtl"===(""+i.attr("dir")).toLowerCase())return !0;var s=!1;return i.parents("[dir]").each(function(){if(/rtl/i.test(t(this).attr("dir")))return s=!0,!1;}),s;}(this._element)),this.lt=this.vertical?"top":"left",this.relative="relative"===this.list().css("position"),this._list=null,this._items=null;var i=this.index(this._target)>=0?this._target:this.closest();this.circular="circular"===this.options("wrap"),this.underflow=!1;var s={left:0,top:0};return i.length>0&&(this._prepare(i),this.list().find("[data-jcarousel-clone]").remove(),this._items=null,this.underflow=this._fullyvisible.length>=this.items().length,this.circular=this.circular&&!this.underflow,s[this.lt]=this._position(i)+"px"),this.move(s),this;},list:function(){if(null===this._list){var i=this.options("list");this._list=t.isFunction(i)?i.call(this):this._element.find(i);}return this._list;},items:function(){if(null===this._items){var i=this.options("items");this._items=(t.isFunction(i)?i.call(this):this.list().find(i)).not("[data-jcarousel-clone]");}return this._items;},index:function(t){return this.items().index(t);},closest:function(){var i,s=this,r=this.list().position()[this.lt],n=t(),o=!1,l=this.vertical?"bottom":this.rtl&&!this.relative?"left":"right";return this.rtl&&this.relative&&!this.vertical&&(r+=e(this.list().width())-this.clipping()),this.items().each(function(){if(n=t(this),o)return !1;var a=s.dimension(n);if((r+=a)>=0){if(i=a-e(n.css("margin-"+l)),!(Math.abs(r)-a+i/2<=0))return !1;o=!0;}}),n;},target:function(){return this._target;},first:function(){return this._first;},last:function(){return this._last;},visible:function(){return this._visible;},fullyvisible:function(){return this._fullyvisible;},hasNext:function(){if(!1===this._trigger("hasnext"))return !0;var t=this.options("wrap"),i=this.items().length-1,s=this.options("center")?this._target:this._last;return !!(i>=0&&!this.underflow&&(t&&"first"!==t||this.index(s)<i||this.tail&&!this.inTail));},hasPrev:function(){if(!1===this._trigger("hasprev"))return !0;var t=this.options("wrap");return !!(this.items().length>0&&!this.underflow&&(t&&"last"!==t||this.index(this._first)>0||this.tail&&this.inTail));},clipping:function(){return e(this._element["inner"+(this.vertical?"Height":"Width")]());},dimension:function(t){return e(t["outer"+(this.vertical?"Height":"Width")](!0));},scroll:function(i,s,e){if(this.animating)return this;if(!1===this._trigger("scroll",null,[i,s]))return this;t.isFunction(s)&&(e=s,s=!0);var r=t.jCarousel.parseTarget(i);if(r.relative){var n,o,l,a,h,u,c,f,d=this.items().length-1,_=Math.abs(r.target),p=this.options("wrap");if(r.target>0){var g=this.index(this._last);if(g>=d&&this.tail)this.inTail?"both"===p||"last"===p?this._scroll(0,s,e):t.isFunction(e)&&e.call(this,!1):this._scrollTail(s,e);else if(n=this.index(this._target),this.underflow&&n===d&&("circular"===p||"both"===p||"last"===p)||!this.underflow&&g===d&&("both"===p||"last"===p))this._scroll(0,s,e);else if(l=n+_,this.circular&&l>d){for(f=d,h=this.items().get(-1);f++<l;)h=this.items().eq(0),(u=this._visible.index(h)>=0)&&h.after(h.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(h),u||((c={})[this.lt]=this.dimension(h),this.moveBy(c)),this._items=null;this._scroll(h,s,e);}else this._scroll(Math.min(l,d),s,e);}else if(this.inTail)this._scroll(Math.max(this.index(this._first)-_+1,0),s,e);else if(o=this.index(this._first),n=this.index(this._target),l=(a=this.underflow?n:o)-_,a<=0&&(this.underflow&&"circular"===p||"both"===p||"first"===p))this._scroll(d,s,e);else if(this.circular&&l<0){for(f=l,h=this.items().get(0);f++<0;){h=this.items().eq(-1),(u=this._visible.index(h)>=0)&&h.after(h.clone(!0).attr("data-jcarousel-clone",!0)),this.list().prepend(h),this._items=null;var m=this.dimension(h);(c={})[this.lt]=-m,this.moveBy(c);}this._scroll(h,s,e);}else this._scroll(Math.max(l,0),s,e);}else this._scroll(r.target,s,e);return this._trigger("scrollend"),this;},moveBy:function(t,i){var s=this.list().position(),r=1,n=0;return this.rtl&&!this.vertical&&(r=-1,this.relative&&(n=e(this.list().width())-this.clipping())),t.left&&(t.left=e(s.left)+n+e(t.left)*r+"px"),t.top&&(t.top=e(s.top)+n+e(t.top)*r+"px"),this.move(t,i);},move:function(i,s){s=s||{};var e=this.options("transitions"),r=!!e,n=!!e.transforms,o=!!e.transforms3d,l=s.duration||0,a=this.list();if(!r&&l>0)a.animate(i,s);else{var h=s.complete||t.noop,u={};if(r){var c={transitionDuration:a.css("transitionDuration"),transitionTimingFunction:a.css("transitionTimingFunction"),transitionProperty:a.css("transitionProperty")},f=h;h=function(){t(this).css(c),f.call(this);},u={transitionDuration:(l>0?l/1e3:0)+"s",transitionTimingFunction:e.easing||s.easing,transitionProperty:l>
430?n||o?"all":i.left?"left":"top":"none",transform:"none"};}o?u.transform="translate3d("+(i.left||0)+","+(i.top||0)+",0)":n?u.transform="translate("+(i.left||0)+","+(i.top||0)+")":t.extend(u,i),r&&l>0&&a.one("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",h),a.css(u),l<=0&&a.each(function(){h.call(this);});}},_scroll:function(i,s,r){if(this.animating)return t.isFunction(r)&&r.call(this,!1),this;if("object"!=typeof i?i=this.items().eq(i):void 0===i.jquery&&(i=t(i)),0===i.length)return t.isFunction(r)&&r.call(this,!1),this;this.inTail=!1,this._prepare(i);var n=this._position(i);if(n===e(this.list().position()[this.lt]))return t.isFunction(r)&&r.call(this,!1),this;var o={};return o[this.lt]=n+"px",this._animate(o,s,r),this;},_scrollTail:function(i,s){if(this.animating||!this.tail)return t.isFunction(s)&&s.call(this,!1),this;var r=this.list().position()[this.lt];this.rtl&&this.relative&&!this.vertical&&(r+=e(this.list().width())-this.clipping()),this.rtl&&!this.vertical?r+=this.tail:r-=this.tail,this.inTail=!0;var n={};return n[this.lt]=r+"px",this._update({target:this._target.next(),fullyvisible:this._fullyvisible.slice(1).add(this._visible.last())}),this._animate(n,i,s),this;},_animate:function(i,s,e){if(e=e||t.noop,!1===this._trigger("animate"))return e.call(this,!1),this;this.animating=!0;var r=this.options("animation"),n=t.proxy(function(){this.animating=!1;var t=this.list().find("[data-jcarousel-clone]");t.length>0&&(t.remove(),this._reload()),this._trigger("animateend"),e.call(this,!0);},this),o="object"==typeof r?t.extend({},r):{duration:r},l=o.complete||t.noop;return !1===s?o.duration=0:void 0!==t.fx.speeds[o.duration]&&(o.duration=t.fx.speeds[o.duration]),o.complete=function(){n(),l.call(this);},this.move(i,o),this;},_prepare:function(i){var s,r,n,o=this.index(i),l=o,a=this.dimension(i),h=this.clipping(),u=this.vertical?"bottom":this.rtl?"left":"right",c=this.options("center"),f={target:i,first:i,last:i,visible:i,fullyvisible:a<=h?i:t()};if(c&&(a/=2,h/=2),a<h)for(;;){if(0===(s=this.items().eq(++l)).length){if(!this.circular)break;if(s=this.items().eq(0),i.get(0)===s.get(0))break;if((r=this._visible.index(s)>=0)&&s.after(s.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(s),!r){var d={};d[this.lt]=this.dimension(s),this.moveBy(d);}this._items=null;}if(0===(n=this.dimension(s)))break;if(a+=n,f.last=s,f.visible=f.visible.add(s),a-e(s.css("margin-"+u))<=h&&(f.fullyvisible=f.fullyvisible.add(s)),a>=h)break;}if(!this.circular&&!c&&a<h)for(l=o;!(--l<0||0===(s=this.items().eq(l)).length||0===(n=this.dimension(s))||(a+=n,f.first=s,f.visible=f.visible.add(s),a-e(s.css("margin-"+u))<=h&&(f.fullyvisible=f.fullyvisible.add(s)),a>=h)););return this._update(f),this.tail=0,c||"circular"===this.options("wrap")||"custom"===this.options("wrap")||this.index(f.last)!==this.items().length-1||(a-=e(f.last.css("margin-"+u)))>h&&(this.tail=a-h),this;},_position:function(t){var i=this._first,s=e(i.position()[this.lt]),r=this.options("center"),n=r?this.clipping()/2-this.dimension(i)/2:0;return this.rtl&&!this.vertical?(this.relative?s-=e(this.list().width())-this.dimension(i):s-=this.clipping()-this.dimension(i),s+=n):s-=n,!r&&(this.index(t)>this.index(i)||this.inTail)&&this.tail?(s=this.rtl&&!this.vertical?s-this.tail:s+this.tail,this.inTail=!0):this.inTail=!1,-s;},_update:function(i){var s,e=this,r={target:this._target,first:this._first,last:this._last,visible:this._visible,fullyvisible:this._fullyvisible},n=this.index(i.first||r.first)<this.index(r.first),o=function(s){var o=[],l=[];i[s].each(function(){r[s].index(this)<0&&o.push(this);}),r[s].each(function(){i[s].index(this)<0&&l.push(this);}),n?o=o.reverse():l=l.reverse(),e._trigger(s+"in",t(o)),e._trigger(s+"out",t(l)),e["_"+s]=i[s];};for(s in i)o(s);return this;}});}(jQuery,window),function(t){"use strict";t.jcarousel.fn.scrollIntoView=function(i,s,e){var r,n=t.jCarousel.parseTarget(i),o=this.index(this._fullyvisible.first()),l=this.index(this._fullyvisible.last());if((r=n.relative?n.target<0?Math.max(0,o+n.target):l+n.target:"object"!=typeof n.target?n.target:this.index(n.target))<o)return this.scroll(r,s,e);if(r>=o&&r<=l)return t.isFunction(e)&&e.call(this,!1),this;for(var a,h=this.items(),u=this.clipping(),c=this.vertical?"bottom":this.rtl?"left":"right",f=0;0!==(a=h.eq(r)).length;){if((f+=this.dimension(a))>=u){f-(parseFloat(a.css("margin-"+c))||0)!==u&&r++;break;}if(r<=0)break;r--;}return this.scroll(r,s,e);};}(jQuery),function(t){"use strict";
43t.jCarousel.plugin("jcarouselControl",{_options:{target:"+=1",event:"click",method:"scroll"},_active:null,_init:function(){this.onDestroy=t.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",t.proxy(this._create,this));},this),this.onReload=t.proxy(this._reload,this),this.onEvent=t.proxy(function(i){i.preventDefault();var s=this.options("method");t.isFunction(s)?s.call(this):this.carousel().jcarousel(this.options("method"),this.options("target"));},this);},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy).on("jcarousel:reloadend jcarousel:scrollend",this.onReload),this._element.on(this.options("event")+".jcarouselcontrol",this.onEvent),this._reload();},_destroy:function(){this._element.off(".jcarouselcontrol",this.onEvent),this.carousel().off("jcarousel:destroy",this.onDestroy).off("jcarousel:reloadend jcarousel:scrollend",this.onReload);},_reload:function(){var i,s=t.jCarousel.parseTarget(this.options("target")),e=this.carousel();if(s.relative)i=e.jcarousel(s.target>0?"hasNext":"hasPrev");else{var r="object"!=typeof s.target?e.jcarousel("items").eq(s.target):s.target;i=e.jcarousel("target").index(r)>=0;}return this._active!==i&&(this._trigger(i?"active":"inactive"),this._active=i),this;}});}(jQuery),function(t){"use strict";t.jCarousel.plugin("jcarouselPagination",{_options:{perPage:null,item:function(t){return '<a href="#'+t+'">'+t+"</a>";},event:"click",method:"scroll"},_carouselItems:null,_pages:{},_items:{},_currentPage:null,_init:function(){this.onDestroy=t.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",t.proxy(this._create,this));},this),this.onReload=t.proxy(this._reload,this),this.onScroll=t.proxy(this._update,this);},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy).on("jcarou
43sel:reloadend",this.onReload).on("jcarousel:scrollend",this.onScroll),this._reload();},_destroy:function(){this._clear(),this.carousel().off("jcarousel:destroy",this.onDestroy).off("jcarousel:reloadend",this.onReload).off("jcarousel:scrollend",this.onScroll),this._carouselItems=null;},_reload:function(){var i=this.options("perPage");if(this._pages={},this._items={},t.isFunction(i)&&(i=i.call(this)),null==i)this._pages=this._calculatePages();else for(var s,e=parseInt(i,10)||0,r=this._getCarouselItems(),n=1,o=0;0!==(s=r.eq(o++)).length;)this._pages[n]?this._pages[n]=this._pages[n].add(s):this._pages[n]=s,o%e==0&&n++;this._clear();var l=this,a=this.carousel().data("jcarousel"),h=this._element,u=this.options("item"),c=this._getCarouselItems().length;t.each(this._pages,function(i,s){var e=l._items[i]=t(u.call(l,i,s));e.on(l.options("event")+".jcarouselpagination",t.proxy(function(){var t=s.eq(0);if(a.circular){var e=a.index(a.target()),r=a.index(t);parseFloat(i)>parseFloat(l._currentPage)?r<e&&(t="+="+(c-e+r)):r>e&&(t="-="+(e+(c-r)));}a[this.options("method")](t);},l)),h.append(e);}),this._update();},_update:function(){var i,s=this.carousel().jcarousel("target");t.each(this._pages,function(t,e){if(e.each(function(){if(s.is(this))return i=t,!1;}),i)return !1;}),this._currentPage!==i&&(this._trigger("inactive",this._items[this._currentPage]),this._trigger("active",this._items[i])),this._currentPage=i;},items:function(){return this._items;},reloadCarouselItems:function(){return this._carouselItems=null,this;},_clear:function(){this._element.empty(),this._currentPage=null;},_calculatePages:function(){for(var t,i,s=this.carousel().data("jcarousel"),e=this._getCarouselItems(),r=s.clipping(),n=0,o=0,l=1,a={};0!==(t=e.eq(o++)).length;)n+(i=s.dimension(t))>r&&(l++,n=0),n+=i,a[l]?a[l]=a[l].add(t):a[l]=t;return a;},_getCarouselItems:function(){return this._carouselItems||(this._carouselItems=this.carousel().jcarousel("items")),this._carouselItems;}});}(jQuery),function(t,i){"use strict";var s,e;t.each({hidden:"visibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",webkitHidden:"webkitvisibilitychange"},function(t,r){if(void 0!==i[t])return s=t,e=r,!1;}),t.jCarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0,method:"scroll"},_timer:null,_started:!1,_init:function(){this.onDestroy=t.proxy(function(){this._destroy(),this.carousel().one("jcarousel:createend",t.proxy(this._create,this));},this),this.onAnimateEnd=t.proxy(this._start,this),this.onVisibilityChange=t.proxy(function(){i[s]?this._stop():this._start();},this);},_create:function(){this.carousel().one("jcarousel:destroy",this.onDestroy),t(i).on(e,this.onVisibilityChange),this.options("autostart")&&this.start();},_destroy:function(){this._stop(),this.carousel().off("jcarousel:destroy",this.onDestroy),t(i).off(e,this.onVisibilityChange);},_start:function(){if(this._stop(),this._started)return this.carousel().one("jcarousel:animateend",this.onAnimateEnd),this._timer=setTimeout(t.proxy(function(){this.carousel().jcarousel(this.options("method"),this.options("target"));},this),this.options("interval")),this;},_stop:function(){return this._timer&&(this._timer=clearTimeout(this._timer)),this.carousel().off("jcarousel:animateend",this.onAnimateEnd),this;},start:function(){return this._started=!0,this._start(),this;},stop:function(){return this._started=!1,this._stop(),this;}});}(jQuery,document);;
44!function(t){"use strict";t.jCarousel.plugin("jcarouselSwipe",{_options:{perSwipe:1,draggable:!0,method:"scroll"},_init:function(){var t=this;
44this.carousel().on("jcarousel:reloadend",function(){t._reload();});},_create:function(){this._instance=this.carousel().data("jcarousel"),this._instance._element.css("touch-action",this._instance.vertical?"pan-x":"pan-y"),this._carouselOffset=this.carousel().offset()[this._instance.lt]+parseInt(this.carousel().css(this._instance.vertical?"border-top-width":"border-left-width"))+parseInt(this.carousel().css(this._instance.vertical?"padding-top":"padding-left")),this._slidesCount=this._instance.items().length,this.carousel().find("img, a").attr("draggable",!1).css("user-select","none").on("dragstart",function(t){t.preventDefault();}),this._destroy(),this._instance.items().length>this._instance.fullyvisible().length&&this._initGestures();},_initGestures:function(){function e(e){var i,o,p;e=e.originalEvent||e||window.event,l=n(e);var f=Math.abs(r[u]-l[u]),d=Math.abs(r[_]-l[_]);h&&e.preventDefault(),d>10&&d>f&&!h?t(document).off("touchmove.jcarouselSwipe mousemove.jcarouselSwipe"):(!c._instance.animating&&f>10||h)&&(i=r[u]-l[u],h||(h=!0,c._addClones(),c._currentLT=c._getListPosition(),p=c._instance.options("items"),a=(t.isFunction(p)?p.call(c._instance):c._instance.list().find(p)).last(),s=c._instance.rtl&&!c._instance.vertical?c._instance.dimension(c._instance.list())-a.position()[c._instance.lt]-c._instance.clipping():-1*(a.position()[c._instance.lt]+c._instance.dimension(a)-c._instance.clipping())),o="circular"===c._instance._options.wrap?c._currentLT-i:c._instance.rtl&&!c._instance.vertical?Math.max(0,Math.min(c._currentLT-i,s)):Math.min(0,Math.max(c._currentLT-i,s)),c._setListPosition(o+"px"));}function i(e){e=e.originalEvent||e||window.event,l=n(e);var i=Math.abs(r[u]-l[u]),s=Math.abs(r[_]-l[_]);if(h||!c._options.draggable&&i>10&&i>s){var a=c._getNewTarget(r[u]-l[u]>0);a="circular"===c._instance._options.wrap?a.relative:a.static,o===e.target&&t(e.target).on("click.disable",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t(e.target).off("click.disable");}),"circular"===c._instance._options.wrap&&(c._removeClones(),c._instance._items=null),h=!1,c._instance[c._options.method](a,function(){"circular"!==c._instance._options.wrap&&(c._removeClones(),c._instance._items=null);});}t(document).off("touchmove.jcarouselSwipe mousemove.jcarouselSwipe"),t(document).off("touchend.jcarouselSwipe touchcancel.jcarouselSwipe mouseup.jcarouselSwipe");}function n(t){return void 0!==t.touches&&t.touches.length>0?{x:t.touches[0].pageX,y:t.touches[0].pageY}:void 0!==t.changedTouches&&t.changedTouches.length>0?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:void 0!==t.pageX?{x:t.pageX,y:t.pageY}:{x:t.clientX,y:t.clientY};}var s,a,o,c=this,r={},l={},h=!1,u=this._instance.vertical?"y":"x",_=this._instance.vertical?"x":"y";this._element.on("touchstart.jcarouselSwipe mousedown.jcarouselSwipe",function(s){s=s.originalEvent||s||window.event,r=n(s),o=s.target||s.srcElement,c._options.draggable&&!c._instance.animating&&t(document).on("touchmove.jcarouselSwipe mousemove.jcarouselSwipe",e),t(document).on("touchend.jcarouselSwipe touchcancel.jcarouselSwipe mouseup.jcarouselSwipe",i);});},_getNewTarget:function(t){var e,i=this._instance.target(),n=this._instance.index(i),s=0,a=this._instance.rtl&&!this._instance.vertical?!t:t;if(this._options.draggable)for(;;){if(e=this._instance.rtl&&!this._instance.vertical?i.offset()[this._instance.lt]+this._instance.dimension(i)-(this._carouselOffset+this._instance.clipping()):i.offset()[this._instance.lt]-this._carouselOffset,!i.length||t&&e>=0||!t&&e<=0)break;if(a){if(!(i=i.next()).length)break;n+=1;}else{if(!(i=i.prev()).length)break;n-=1;}s++;}else n=a?n+1:n-1,s=1;return a?n+=Math.abs(s-this._options.perSwipe*Math.ceil(s/this._options.perSwipe)):n-=Math.abs(s-this._options.perSwipe*Math.ceil(s/this._options.perSwipe)),"first"===this._instance._options.wrap?n=Math.min(this._slidesCount-1,n):"last"===this._instance._options.wrap?n=Math.max(0,n):this._instance._options.wrap||(n=Math.max(0,Math.min(this._slidesCount-1,n))),n%=this._slidesCount,s=this._options.perSwipe*Math.ceil(s/this._options.perSwipe),{static:n,relative:(a?"+":"-")+"="+s};},_getListPosition:function(){var t=this._instance.list(),e=t.position();return this._instance.rtl&&(e.left=t.width()+e.left-this._carousel.width()),e[this._instance.lt];},_setListPosition:function(t){var e=this._instance.options("transitions"),i=!!e.transforms,n=!!e.transforms3d,s={},a="left"===this._instance.lt;
44t=t||0,n?s.transform="translate3d("+(a?t:0)+","+(a?0:t)+",0)":i?s.transform="translate("+(a?t:0)+","+(a?0:t)+")":s[this._instance.lt]=t,this._instance.list().css(s);},_addClones:function(){var e,i,n,s=this,a=this._instance,o=a.items(),c=a.first(),r=a.last(),l=a.dimension(t(window)),h=[],u=[],_=s._getListPosition(),p={};if(!a._options.wrap)return !1;if("last"!==a._options.wrap){for(i=0,n=0,e=c;i<l;)0===(e=e.prev()).length?(n=--n<-o.length?-1:n,i+=a.dimension(o.eq(n)),h.push(o.eq(n).clone().attr("data-jcarousel-clone",!0))):i+=a.dimension(e);_=(a.rtl?Math.max(_,i):Math.min(_,-i))+"px",a._items.first().before(h.reverse()),p[a.lt]=_,a.move(p);}if("first"!==a._options.wrap){for(i=0,n=-1,e=r;i<l;)0===(e=e.next()).length?(n=++n>o.length-1?0:n,i+=a.dimension(o.eq(n)),u.push(o.eq(n).clone().attr("data-jcarousel-clone",!0))):i+=a.dimension(e);a._items.last().after(u);}},_removeClones:function(){var t,e=this._instance.first().position()[this._instance.lt],i={};this._instance.list().find("[data-jcarousel-clone]").remove(),(t=e-this._instance.first().position()[this._instance.lt])&&(i[this._instance.lt]=this._getListPosition()+t+"px",this._instance.move(i));},_destroy:function(){this._element.off("touchstart.jcarouselSwipe mousedown.jcarouselSwipe"),t(document).off("touchmove.jcarouselSwipe mousemove.jcarouselSwipe touchend.jcarouselSwipe touchcancel.jcarouselSwipe mouseup.jcarouselSwipe");},_reload:function(){this._create();}});}(jQuery);;
45(function($,Drupal){Drupal.behaviors.interviewsCarousel={attach:function(context,settings){var initCarouselWrapper=function($carousel,currentIndex){var $carouselWrapper=$carousel.parent();var list=$carousel.find('ul.interview-ul > li');if(list.length>1){if(list.length>2){var previous=currentIndex===0?list.length-1:currentIndex-1;var previousElement=$carousel.find('li.interview-ul[data-index='+previous+']').first();$carouselWrapper.find('.prev-title-span').text(previousElement.find('.interview-title').text());$carouselWrapper.find('.prev-subtitle-span').text(previousElement.find('.interview-subtitle').text());}else{$carouselWrapper.find('.interview-control-prev, .interview-title-left, .interview-separator').hide();$carouselWrapper.find('.interview-title-right').parent().addClass('small-offset-7');}var next=currentIndex===(list.length-1)?0:currentIndex+1;var nextElement=$carousel.find('li.interview-ul[data-index='+next+']').first();$carouselWrapper.find('.next-title-span').text(nextElement.find('.interview-title').text());$carouselWrapper.find('.next-subtitle-span').text(nextElement.find('.interview-subtitle').text());}else $carouselWrapper.find('.interview-row').hide();};$(once('interviews-carousel','.interview-showline',context)).on('jcarousel:create jcarousel:reload',function(){var $carousel=$(this);$carousel.jcarousel('items').css('width',Math.ceil($carousel.innerWidth())+'px');initCarouselWrapper($carousel,0);}).jcarousel({wrap:'circular',visible:1,vertical:false});$('.interview-control-prev').jcarouselControl({target:'-=1'});$('.interview-control-next').jcarouselControl({target:'+=1'});$('.interview-showline').on('jcarousel:targetin','li',function(event,carousel){initCarouselWrapper($(carousel._element),parseInt($(this).attr('data-index')));});}};})(jQuery,Drupal);;
46(function($,Drupal){Drupal.behaviors.leadersCarousel={attach:function(context,settings){$(once('leaders-carousel','.leadership-carousel--showline, .keyfigures-carousel--showline',context)).on('jcarousel:reload jcarousel:create',function(){var $carousel=$(this);var width=$carousel.innerWidth();if(width>=800)width=width/4;else{if(width>=425)width=width/2.2;}$carousel.jcarousel('items').css('width',Math.ceil(width)+'px');}).jcarousel({wrap:'circular',vertical:false}).jcarouselSwipe();$('.leadership-carousel--showline, .keyfigures-carousel--showline').jcarouselAutoscroll({interval:4000,target:'+=1',autostart:true});$('.leadership-carousel--control-prev, .keyfigures-carousel--control-prev').jcarouselControl({target:'-=1'});$('.leadership-carousel--control-next, .keyfigures-carousel--control-next').jcarouselControl({target:'+=1'});}};})(jQuery,Drupal);;
47(function(Drupal){if(typeof ABTastyClickTracking!='function')window.ABTastyClickTracking=function(){};document.querySelector('#home-booking .tab_reservation').addEventListener('mousedown',function(){document.querySelector('#home-booking .home-booking--bookplace > a').click();document.querySelector('#home-booking .block_tabs .active').classList.remove('active');document.querySelector('#home-booking .block_tabs .tab_reservation').classList.add('active');ABTastyClickTracking('Click CTA Réservation');});document.querySelector('#home-booking .tab_abonnement').addEventListener('mousedown',function(){document.querySelector('#home-booking .home-booking--subscribe > a').click();document.querySelector('#home-booking .block_tabs .active').classList.remove('active');document.querySelector('#home-booking .block_tabs .tab_abonnement').classList.add('active');ABTastyClickTracking('Click CTA Abonnement');});if(window.location.hash.substring(1)==='subscribe')document.querySelector('#home-booking .tab_abonnement').dispatchEvent(new Event('mousedown'));})(Drupal);;
48(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,483 bytes, lines 48-50
48" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
49/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
50loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
50for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
51/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
52Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
53(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
54((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
55(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
55once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
55$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
55d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
55$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
55if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){const offset=$(response.selector).offset();let scrollTarget=response.selector;while($(scrollTarget).scrollTop()===0&&$(scrollTarget).parent())scrollTarget=$(scrollTarget).parent();if(offset.top-10<$(scrollTarget).scrollTop())scrollTarget.get(0).scrollTo({top:offset.top-10,behavior:'smooth'});}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
56(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
57(function($,Drupal){Drupal.behaviors.foundationTopBarActive={attach:function(context,settings){var $active_links=$(context).find('.top-bar .menu-item > a.is-active');if($active_links.length)$(once('foundationTopBarActive',$active_links)).each(function(){$(this).parent().addClass('active');});}};})(jQuery,Drupal);;

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.