vendor: 11,462 bytes, lines 1-98
1; 2/*! 3 * jQuery blockUI plugin 4 * Version 2.71.0-2020.12.08 5 * Requires jQuery v1.12 or later 6 * 7 * Examples at: http://malsup.com/jquery/block/ 8 * Copyright (c) 2007-2013 M. Alsup 9 * Dual licensed under the MIT and GPL licenses: 10 * http://www.opensource.org/licenses/mit-license.php 11 * http://www.gnu.org/licenses/gpl.html 12 * 13 * Thanks to Amir-Hossein Sobhi for some excellent contributions! 14 */ 15(function(){"use strict";function setup($){var migrateDeduplicateWarnings=jQuery.migrateDeduplicateWarnings||false;jQuery.migrateDeduplicateWarnings=false;$.fn._fadeIn=$.fn.fadeIn;var noOp=$.noop||function(){};var msie=/MSIE/.test(navigator.userAgent);var ie6=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent);var mode=document.documentMode||0;var setExpr="function"===typeof document.createElement('div').style.setExpression;$.blockUI=function(opts){install(window,opts);};$.unblockUI=function(opts){remove(window,opts);};$.growlUI=function(title,message,timeout,onClose){var $m=$('<div class="growlUI"></div>');if(title)$m.append('<h1>'+title+'</h1>');if(message)$m.append('<h2>'+message+'</h2>');if(timeout===undefined)timeout=3000;var callBlock=function(opts){opts=opts||{};$.blockUI({message:$m,fadeIn:typeof opts.fadeIn!=='undefined'?opts.fadeIn:700,fadeOut:typeof opts.fadeOut!=='undefined'?opts.fadeOut:1000,timeout:typeof opts.timeout!=='undefined'?opts.timeout:timeout,centerY:false,showOverlay:false,onUnblock:onClose,css:$.blockUI.defaults.growlCSS});};callBlock();var nonmousedOpacity=$m.css('opacity');$m.on('mouseover',function(){callBlock({fadeIn:0,timeout:30000});var displayBlock=$('.blockMsg');displayBlock.stop();displayBlock.fadeTo(300,1);}).on('mouseout',function(){$('.blockMsg').fadeOut(1000);});};$.fn.block=function(opts){if(this[0]===window){$.blockUI(opts);return this;} 16var fullOpts=$.extend({},$.blockUI.defaults,opts||{});this.each(function(){var $el=$(this);if(fullOpts.ignoreIfBlocked&&$el.data('blockUI.isBlocked')) 17return;$el.unblock({fadeOut:0});});return this.each(function(){if($.css(this,'position')=='static'){this.style.position='relative';$(this).data('blockUI.static',true);} 18this.style.zoom=1;install(this,opts);});};$.fn.unblock=function(opts){if(this[0]===window){$.unblockUI(opts);return this;} 19return this.each(function(){remove(this,opts);});};$.blockUI.version=2.70;$.blockUI.defaults={message:'<h1>Please wait...</h1>',title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:'30%',top:'40%',left:'35%',textAlign:'center',color:'#000',border:'3px solid #aaa',backgroundColor:'#fff',cursor:'wait'},themedCSS:{width:'30%',top:'40%',left:'35%'},overlayCSS:{backgroundColor:'#000',opacity:0.6,cursor:'wait'},cursorReset:'default',growlCSS:{width:'350px',top:'10px',left:'',right:'10px',border:'none',padding:'5px',opacity:0.6,cursor:'default',color:'#fff',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px','border-radius':'10px'},iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank',forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,focusableElements:':input:enabled:visible',onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:'blockMsg',ignoreIfBlocked:false};var pageBlock=null;var pageBlockEls=[];function install(el,opts){var css,themedCSS;var full=(el==window);var msg=(opts&&opts.message!==undefined?opts.message:undefined);opts=$.extend({},$.blockUI.defaults,opts||{});if(opts.ignoreIfBlocked&&$(el).data('blockUI.isBlocked')) 20return;opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});css=$.extend({},$.blockUI.defaults.css,opts.css||{});if(opts.onOverlayClick) 21opts.overlayCSS.cursor='pointer';themedCSS=$.extend({},$.blockUI.defaults.themedCSS,opts.themedCSS||{});msg=msg===undefined?opts.message:msg;if(full&&pageBlock) 22remove(window,{fadeOut:0});if(msg&&typeof msg!='string'&&(msg.parentNode||msg.jquery)){var node=msg.jquery?msg[0]:msg;var data={};$(el).data('blockUI.history',data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;if(data.parent) 23data.parent.removeChild(node);} 24$(el).data('blockUI.onUnblock',opts.onUnblock);var z=opts.baseZ;var lyr1,lyr2,lyr3,s;if(msie||opts.forceIframe) 25lyr1=$('<iframe class="blockUI" style="z-index:'+(z++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');else 26lyr1=$('<div class="blockUI" style="display:none"></div>');if(opts.theme) 27lyr2=$('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(z++)+';display:none"></div>');else 28lyr2=$('<div class="blockUI blockOverlay" style="z-index:'+(z++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');if(opts.theme&&full){s='<div class="blockUI '+opts.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';if(opts.title){s+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title||' ')+'</div>';} 29s+='<div class="ui-widget-content ui-dialog-content"></div>';s+='</div>';} 30else if(opts.theme){s='<div class="blockUI '+opts.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';if(opts.title){s+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title||' ')+'</div>';} 31s+='<div class="ui-widget-content ui-dialog-content"></div>';s+='</div>';} 32else if(full){s='<div class="blockUI '+opts.blockMsgClass+' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';} 33else{s='<div class="blockUI '+opts.blockMsgClass+' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';} 34lyr3=$(s);if(msg){if(opts.theme){lyr3.css(themedCSS);lyr3.addClass('ui-widget-content');} 35else 36lyr3.css(css);} 37if(!opts.theme) 38lyr2.css(opts.overlayCSS);lyr2.css('position',full?'fixed':'absolute');if(msie||opts.forceIframe) 39lyr1.css('opacity',0.0);var layers=[lyr1,lyr2,lyr3],$par=full?$('body'):$(el);$.each(layers,function(){this.appendTo($par);});if(opts.theme&&opts.draggable&&$.fn.draggable){lyr3.draggable({handle:'.ui-dialog-titlebar',cancel:'li'});} 40var expr=setExpr&&("CSS1Compat"!==document.compatMode||$('object,embed',full?null:el).length>0);if(ie6||expr){if(full&&opts.allowBodyStretch&&"CSS1Compat"===document.compatMode) 41$('html,body').css('height','100%');if((ie6||"CSS1Compat"!==document.compatMode)&&!full){var t=sz(el,'borderTopWidth'),l=sz(el,'borderLeftWidth');var fixT=t?'(0 - '+t+')':0;var fixL=l?'(0 - '+l+')':0;} 42$.each(layers,function(i,o){var s=o[0].style;s.position='absolute';if(i<2){if(full) 43s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - ("CSS1Compat" === document.compatMode?0:'+opts.quirksmodeOffsetHack+') + "px"');else 44s.setExpression('height','this.parentNode.offsetHeight + "px"');if(full) 45s.setExpression('width','"CSS1Compat" === document.compatMode && document.documentElement.clientWidth || document.body.clientWidth + "px"');else 46s.setExpression('width','this.parentNode.offsetWidth + "px"');if(fixL)s.setExpression('left',fixL);if(fixT)s.setExpression('top',fixT);} 47else if(opts.centerY){if(full)s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');s.marginTop=0;} 48else if(!opts.centerY&&full){var top=(opts.css&&opts.css.top)?parseInt(opts.css.top,10):0;var expression='((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';s.setExpression('top',expression);}});} 49if(msg){if(opts.theme) 50lyr3.find('.ui-widget-content').append(msg);else 51lyr3.append(msg);if(msg.jquery||msg.nodeType) 52$(msg).show();} 53if((msie||opts.forceIframe)&&opts.showOverlay) 54lyr1.show();if(opts.fadeIn){var cb=opts.onBlock?opts.onBlock:noOp;var cb1=(opts.showOverlay&&!msg)?cb:noOp;var cb2=msg?cb:noOp;if(opts.showOverlay) 55lyr2._fadeIn(opts.fadeIn,cb1);if(msg) 56lyr3._fadeIn(opts.fadeIn,cb2);} 57else{if(opts.showOverlay) 58lyr2.show();if(msg) 59lyr3.show();if(opts.onBlock) 60opts.onBlock.bind(lyr3)();} 61bind(1,el,opts);if(full){pageBlock=lyr3[0];pageBlockEls=$(opts.focusableElements,pageBlock);if(opts.focusInput) 62setTimeout(focus,20);} 63else 64center(lyr3[0],opts.centerX,opts.centerY);if(opts.timeout){var to=setTimeout(function(){if(full) 65$.unblockUI(opts);else 66$(el).unblock(opts);},opts.timeout);$(el).data('blockUI.timeout',to);}} 67function remove(el,opts){var count;var full=(el==window);var $el=$(el);var data=$el.data('blockUI.history');var to=$el.data('blockUI.timeout');if(to){clearTimeout(to);$el.removeData('blockUI.timeout');} 68opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);if(opts.onUnblock===null){opts.onUnblock=$el.data('blockUI.onUnblock');$el.removeData('blockUI.onUnblock');} 69var els;if(full) 70els=$('body').children().filter('.blockUI').add('body > .blockUI');else 71els=$el.find('>.blockUI');if(opts.cursorReset){if(els.length>1) 72els[1].style.cursor=opts.cursorReset;if(els.length>2) 73els[2].style.cursor=opts.cursorReset;} 74if(full) 75pageBlock=pageBlockEls=null;if(opts.fadeOut){count=els.length;els.stop().fadeOut(opts.fadeOut,function(){if(--count===0) 76reset(els,data,opts,el);});} 77else 78reset(els,data,opts,el);} 79function reset(els,data,opts,el){var $el=$(el);if($el.data('blockUI.isBlocked')) 80return;els.each(function(i,o){if(this.parentNode) 81this.parentNode.removeChild(this);});if(data&&data.el){data.el.style.display=data.display;data.el.style.position=data.position;data.el.style.cursor='default';if(data.parent) 82data.parent.appendChild(data.el);$el.removeData('blockUI.history');} 83if($el.data('blockUI.static')){$el.css('position','static');} 84if(typeof opts.onUnblock=='function') 85opts.onUnblock(el,opts);var body=$(document.body),w=body.width(),cssW=body[0].style.width;body.width(w-1).width(w);body[0].style.width=cssW;} 86function bind(b,el,opts){var full=el==window,$el=$(el);if(!b&&(full&&!pageBlock||!full&&!$el.data('blockUI.isBlocked'))) 87return;$el.data('blockUI.isBlocked',b);if(!full||!opts.bindEvents||(b&&!opts.showOverlay)) 88return;var events='mousedown mouseup keydown keypress keyup touchstart touchend touchmove';if(b) 89$(document).on(events,opts,handler);else 90$(document).off(events,handler);} 91function handler(e){if(e.type==='keydown'&&e.keyCode&&e.keyCode==9){if(pageBlock&&e.data.constrainTabKey){var els=pageBlockEls;var fwd=!e.shiftKey&&e.target===els[els.length-1];var back=e.shiftKey&&e.target===els[0];if(fwd||back){setTimeout(function(){focus(back);},10);return false;}}} 92var opts=e.data;var target=$(e.target);if(target.hasClass('blockOverlay')&&opts.onOverlayClick) 93opts.onOverlayClick(e);if(target.parents('div.'+opts.blockMsgClass).length>0) 94return true;return target.parents().children().filter('div.blockUI').length===0;} 95function focus(back){if(!pageBlockEls) 96return;var e=pageBlockEls[back===true?pageBlockEls.length-1:0];if(e) 97e.focus();} 98function center(el,x,y){var p=el.parentNode,s=el.style;var l=((p.offsetWidth-el.offsetWidth)/2)-sz(p,'borderLeftWidth');var t=((p.offsetHeight-el.offsetHeight)/2)-sz(p,'borderTopWidth');
98if(x)s.left=l>0?(l+'px'):'0';if(y)s.top=t>0?(t+'px'):'0';} 99function sz(el,p){return parseInt($.css(el,p),10)||0;} 100jQuery.migrateDeduplicateWarnings=migrateDeduplicateWarnings;} 101if(typeof define==='function'&&define.amd&&define.amd.jQuery){define(['jquery'],setup);}else{setup(jQuery);}})();;$(()=>{Object.assign($.blockUI.defaults,{baseZ:1,ignoreIfBlocked:true,message:'',overlayCSS:{backgroundColor:'rgba(255, 255, 255, 0.5)'},});});; 102/*! 103 * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+ 104 * http://cherne.net/brian/resources/jquery.hoverIntent.html 105 * 106 * You may use hoverIntent under the terms of the MIT license. 107 * Copyright 2007, 2013 Brian Cherne 108 */ 109(function(e){e.fn.hoverIntent=function(t,n,r){var i={interval:100,sensitivity:7,timeout:0};if(typeof t==="object"){i=e.extend(i,t)}else if(e.isFunction(n)){i=e.extend(i,{over:t,out:n,selector:r})}else{i=e.extend(i,{over:t,out:t,selector:n})}var s,o,u,a;var f=function(e){s=e.pageX;o=e.pageY};var l=function(t,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(u-s)+Math.abs(a-o)<i.sensitivity){e(n).off("mousemove.hoverIntent",f);n.hoverIntent_s=1;return i.over.apply(n,[t])}else{u=s;a=o;n.hoverIntent_t=setTimeout(function(){l(t,n)},i.interval)}};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);t.hoverIntent_s=0;return i.out.apply(t,[e])};var h=function(t){var n=jQuery.extend({},t);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(t.type=="mouseenter"){u=n.pageX;a=n.pageY;e(r).on("mousemove.hoverIntent",f);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){l(n,r)},i.interval)}}else{e(r).off("mousemove.hoverIntent",f);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){c(n,r)},i.timeout)}}};return this.on({"mouseenter.hoverIntent":h,"mouseleave.hoverIntent":h},i.selector)}})(jQuery);(function(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return false;this.each(function(){var t=false;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=true,i=e(n.target).parents();for(var s=0;s<i.length;s++)if(i[s]==t[0])r=false;if(r)t=false})});return this}})(jQuery,window,document); 110;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&module.exports){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(function($){var slice=Array.prototype.slice;var splice=Array.prototype.splice;var defaults={topSpacing:0,bottomSpacing:0,className:'is-sticky',wrapperClassName:'sticky-wrapper',center:!1,getWidthFrom:'',widthFromWrapper:!0,responsiveWidth:!1,zIndex:'inherit'},$window=$(window),$document=$(document),sticked=[],windowHeight=$window.height(),scroller=function(){var scrollTop=$window.scrollTop(),documentHeight=$document.height(),dwh=documentHeight-windowHeight,extra=(scrollTop>dwh)?dwh-scrollTop:0;for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i],elementTop=s.stickyWrapper.offset().top,etse=elementTop-s.topSpacing-extra;s.stickyWrapper.css('height',s.stickyElement.outerHeight());if(scrollTop<=etse){if(s.currentTop!==null){s.stickyElement.css({'width':'','position':'','top':'','z-index':''});s.stickyElement.parent().removeClass(s.className);s.stickyElement.trigger('sticky-end',[s]);s.currentTop=null}} 111else{var newTop=documentHeight-s.stickyElement.outerHeight()-s.topSpacing-s.bottomSpacing-scrollTop-extra;if(newTop<0){newTop=newTop+s.topSpacing}else{newTop=s.topSpacing} 112if(s.currentTop!==newTop){var newWidth;if(s.getWidthFrom){padding=s.stickyElement.innerWidth()-s.stickyElement.width();newWidth=$(s.getWidthFrom).width()-padding||null}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width()} 113if(newWidth==null){newWidth=s.stickyElement.width()} 114s.stickyElement.css('width',newWidth).css('position','fixed').css('top',newTop).css('z-index',s.zIndex);s.stickyElement.parent().addClass(s.className);if(s.currentTop===null){s.stickyElement.trigger('sticky-start',[s])}else{s.stickyElement.trigger('sticky-update',[s])} 115if(s.currentTop===s.topSpacing&&s.currentTop>newTop||s.currentTop===null&&newTop<s.topSpacing){s.stickyElement.trigger('sticky-bottom-reached',[s])}else if(s.currentTop!==null&&newTop===s.topSpacing&&s.currentTop<newTop){s.stickyElement.trigger('sticky-bottom-unreached',[s])} 116s.currentTop=newTop} 117var stickyWrapperContainer=s.stickyWrapper.parent();var unstick=(s.stickyElement.offset().top+s.stickyElement.outerHeight()>=stickyWrapperContainer.offset().top+stickyWrapperContainer.outerHeight())&&
117(s.stickyElement.offset().top<=s.topSpacing);if(unstick){s.stickyElement.css('position','absolute').css('top','').css('bottom',0).css('z-index','')}else{s.stickyElement.css('position','fixed').css('top',newTop).css('bottom','').css('z-index',s.zIndex)}}}},resizer=function(){windowHeight=$window.height();for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i];var newWidth=null;if(s.getWidthFrom){if(s.responsiveWidth){newWidth=$(s.getWidthFrom).width()}}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width()} 118if(newWidth!=null){s.stickyElement.css('width',newWidth)}}},methods={init:function(options){return this.each(function(){var o=$.extend({},defaults,options);var stickyElement=$(this);var stickyId=stickyElement.attr('id');var wrapperId=stickyId?stickyId+'-'+defaults.wrapperClassName:defaults.wrapperClassName;var wrapper=$('<div></div>').attr('id',wrapperId).addClass(o.wrapperClassName);stickyElement.wrapAll(function(){if($(this).parent("#"+wrapperId).length==0){return wrapper}});var stickyWrapper=stickyElement.parent();if(o.center){stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"})} 119if(stickyElement.css("float")==="right"){stickyElement.css({"float":"none"}).parent().css({"float":"right"})} 120o.stickyElement=stickyElement;o.stickyWrapper=stickyWrapper;o.currentTop=null;sticked.push(o);methods.setWrapperHeight(this);methods.setupChangeListeners(this)})},setWrapperHeight:function(stickyElement){var element=$(stickyElement);var stickyWrapper=element.parent();if(stickyWrapper){stickyWrapper.css('height',element.outerHeight())}},setupChangeListeners:function(stickyElement){if(window.MutationObserver){var mutationObserver=new window.MutationObserver(function(mutations){if(mutations[0].addedNodes.length||mutations[0].removedNodes.length){methods.setWrapperHeight(stickyElement)}});mutationObserver.observe(stickyElement,{subtree:!0,childList:!0})}else{if(window.addEventListener){stickyElement.addEventListener('DOMNodeInserted',function(){methods.setWrapperHeight(stickyElement)},!1);stickyElement.addEventListener('DOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement)},!1)}else if(window.attachEvent){stickyElement.attachEvent('onDOMNodeInserted',function(){methods.setWrapperHeight(stickyElement)});stickyElement.attachEvent('onDOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement)})}}},update:scroller,unstick:function(options){return this.each(function(){var that=this;var unstickyElement=$(that);var removeIdx=-1;var i=sticked.length;while(i-->0){if(sticked[i].stickyElement.get(0)===that){splice.call(sticked,i,1);removeIdx=i}} 121if(removeIdx!==-1){unstickyElement.unwrap();unstickyElement.css({'width':'','position':'','top':'','float':'','z-index':''})}})}};if(window.addEventListener){window.addEventListener('scroll',scroller,!1);window.addEventListener('resize',resizer,!1)}else if(window.attachEvent){window.attachEvent('onscroll',scroller);window.attachEvent('onresize',resizer)} 122$.fn.sticky=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.sticky')}};$.fn.unstick=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.unstick.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.sticky')}};$(function(){setTimeout(scroller,0)})})) 123 124/** 125 * sticky-sidebar - A JavaScript plugin for making smart and high performance. 126 * @version v3.3.1 127 * @link https://github.com/abouolia/sticky-sidebar 128 * @author Ahmed Bouhuolia 129 * @license The MIT License (MIT) 130**/ 131!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.StickySidebar=e()}(this,function(){"use strict";"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,e){return t(e={exports:{}},e.exports),e.exports}var i=e(function(t,e){(function(t){Object.defineProperty(t,"__esMo
131dule",{value:!0});var l,n,e=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),i=(l=".stickySidebar",n={topSpacing:0,bottomSpacing:0,containerSelector:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1},function(){function c(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.options=c.extend(n,i),this.sidebar="string"==typeof t?document.querySelector(t):t,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(function(t){e[t]=e[t].bind(e)}),this.initialize()}return e(c,[{key:"initialize",value:function(){var i=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var t=document.createElement("div");for(t.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(t);this.sidebar.firstChild!=t;)t.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){var e=document.querySelectorAll(this.options.containerSelector);
131if((e=Array.prototype.slice.call(e)).forEach(function(t,e){t.contains(i.sidebar)&&(i.container=t)}),!e.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+l,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}},{key:"handleEvent",value:function(t){this.updateSticky(t)}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var t=this.dimensions;t.containerTop=c.offsetRelative(this.container).top,t.containerHeight=this.container.clientHeight,t.containerBottom=t.containerTop+t.containerHeight,t.sidebarHeight=this.sidebarInner.offsetHeight,t.sidebarWidth=this.sidebarInner.offsetWidth,t.viewportHeight=window.innerHeight,t.maxTranslateY=t.containerHeight-t.sidebarHeight,this._calcDimensionsWithScroll()}}},{key:"_calcDimensionsWithScroll",value:function(){var t=this.dimensions;t.sidebarLeft=c.offsetRelative(this.sidebar).left,t.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,t.viewportBottom=t.viewportTop+t.viewportHeight,t.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,t.topSpacing=this.options.topSpacing,t.bottomSpacing=this.options.bottomSpacing,"function"==typeof t.topSpacing&&(t.topSpacing=parseInt(t.topSpacing(this.sidebar))||0),"function"==typeof t.bottomSpacing&&(t.bottomSpacing=parseInt(t.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?t.topSpacing<t.lastTopSpacing&&(t.translateY+=t.lastTopSpacing-t.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&t.bottomSpacing<t.lastBottomSpacing&&(t.translateY+=t.lastBottomSpacing-t.bottomSpacing,this._reStyle=!0),t.lastTopSpacing=t.topSpacing,t.lastBottomSpacing=t.bottomSpacing}},{key:"isSidebarFitsViewport",value:function(){var t=this.dimensions,e="down"===this.scrollDirection?t.lastBottomSpacing:t.lastTopSpacing;return this.dimensions.sidebarHeight+e<this.dimensions.viewportHeight}},{key:"observeScrollDir",value:function(){var t=this.dimensions;if(t.lastViewportTop!==t.viewportTop){var e="down"===this.direction?Math.min:Math.max;t.viewportTop===e(t.viewportTop,t.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}},{key:"getAffixType",value:function(){this._calcDimensionsWithScroll();var t=this.dimensions,e=t.viewportTop+t.topSpacing,i=this.affixedType;return e<=t.containerTop||t.containerHeight<=t.sidebarHeight?(t.translateY=0,i="STATIC"):i="up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.translateY=Math.round(t.translateY),t.lastViewportTop=t.viewportTop,i}},{key:"_getAffixTypeScrollingDown",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,n=t.viewportBottom-t.bottomSpacing,o=this.affixedType;return this.isSidebarFitsViewport()?t.sidebarHeight+i>=t.containerBottom?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):i>=t.containerTop&&(t.translateY=i-t.containerTop,o="VIEWPORT-TOP"):t.containerBottom<=n?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):e+t.translateY<=n?(t.translateY=n-e,o="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(o="VIEWPORT-UNBOTTOM"),o}},{key:"_getAffixTypeScrollingUp",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,n=t.viewportBottom-t.bottomSpacing,o=this.affixedType;return i<=t.translateY+t.containerTop?(t.translateY=i-t.containerTop,o="VIEWPORT-TOP"):t.containerBottom<=n?(t.translateY=t.containerBottom-e,o="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||t.containerTop<=i&&0!==t.translateY&&t.maxTranslateY
131!==t.translateY&&(o="VIEWPORT-UNBOTTOM"),o}},{key:"_getStyle",value:function(t){if(void 0!==t){var e={inner:{},outer:{}},i=this.dimensions;switch(t){case"VIEWPORT-TOP":e.inner={position:"fixed",top:i.topSpacing,left:i.sidebarLeft-i.viewportLeft,width:i.sidebarWidth};break;case"VIEWPORT-BOTTOM":e.inner={position:"fixed",top:"auto",left:i.sidebarLeft,bottom:i.bottomSpacing,width:i.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":var n=this._getTranslate(0,i.translateY+"px");e.inner=n?{transform:n}:{position:"absolute",top:i.translateY,width:i.sidebarWidth}}switch(t){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":e.outer={height:i.sidebarHeight,position:"relative"}}return e.outer=c.extend({height:"",position:""},e.outer),e.inner=c.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},e.inner),e}}},{key:"stickyPosition",value:function(t){if(!this._breakpoint){t=this._reStyle||t||!1,this.options.topSpacing,this.options.bottomSpacing;var e=this.getAffixType(),i=this._getStyle(e);if((this.affixedType!=e||t)&&e){var n="affix."+e.toLowerCase().replace("viewport-","")+l;for(var o in c.eventTrigger(this.sidebar,n),"STATIC"===e?c.removeClass(this.sidebar,this.options.stickyClass):c.addClass(this.sidebar,this.options.stickyClass),i.outer){var s="number"==typeof i.outer[o]?"px":"";this.sidebar.style[o]=i.outer[o]+s}for(var r in i.inner){var a="number"==typeof i.inner[r]?"px":"";this.sidebarInner.style[r]=i.inner[r]+a}var p="affixed."+e.toLowerCase().replace("viewport-","")+l;c.eventTrigger(this.sidebar,p)}else this._initialized&&(this.sidebarInner.style.left=i.inner.left);this.affixedType=e}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),c.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}},{key:"updateSticky",value:function(){var t,e=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,t=i.type,requestAnimationFrame(function(){switch(t){case"scroll":e._calcDimensionsWithScroll(),e.observeScrollDir(),e.stickyPosition();break;case"resize":default:e._widthBreakpoint(),e.calcDimensions(),e.stickyPosition(!0)}e._running=!1}))}},{key:"_setSupportFeatures",value:function(){var t=this.support;t.transform=c.supportTransform(),t.transform3d=c.supportTransform(!0)}},{key:"_getTranslate",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+t+", "+e+", "+i+")":!!this.support.translate&&"translate("+t+", "+e+")"}},{key:"destroy",value:function(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+l,this);var t={inner:{},outer:{}};for(var e in t.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},t.outer={height:"",position:""},t.outer)this.sidebar.style[e]=t.outer[e];for(var i in t.inner)this.sidebarInner.style[i]=t.inner[i];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}}],[{key:"supportTransform",value:function(t){var i=!1,e=t?"perspective":"transform",n=e.charAt(0).toUpperCase()+e.slice(1),o=document.createElement("support").style;return(e+" "+["Webkit","Moz","O","ms"].join(n+" ")+n).split(" ").forEach(function(t,e){if(void 0!==o[t])return i=t,!1}),i}},{key:"eventTrigger",value:function(t,e,i){try{var n=new CustomEvent(e,{detail:i})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}t.dispatchEvent(n)}},{key:"extend",value:function(t,e){var i={};for(var n in t)void 0!==e[n]?i[n]=e[n]:i[n]=t[n];return i}},{key:"offsetRelative",value:function(t){var e={left:0,top:0};do{var i=t.offsetTop,n=t.offsetLeft;isNaN(i)||(e.top+=i),isNaN(n)||(e.left+=n),t="BODY"===t.tagName?t.parentElement:t.offsetParent}while(t);return e}},{key:"addClass",value:function(t,e){c.hasClass(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)}},{key:"removeClass",value:function(t,e){c.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}},{key:"defaults",get:function(){return n}}]),c}());t.default=i,window.StickySidebar=i})(e)});return t(i),t(e(function(t,e){(function(t){var e,s=(e=t)&&e.__esMo
131dule?e:{default:e};!function(){if("undefined"!=typeof window){var n=window.$||window.jQuery||window.Zepto,o="stickySidebar";if(n){n.fn.stickySidebar=function(i){return this.each(function(){var t=n(this),e=n(this).data(o);if(e||(e=new s.default(this,"object"==typeof i&&i),t.data(o,e)),"string"==typeof i){if(void 0===e[i]&&-1===["destroy","updateSticky"].indexOf(i))throw new Error('No method named "'+i+'"');e[i]()}})},n.fn.stickySidebar.Constructor=s.default;var t=n.fn.stickySidebar;n.fn.stickySidebar.noConflict=function(){return n.fn.stickySidebar=t,this}}}}()})(i)}))}); 132;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function _(){return H.apply(null,arguments)}function y(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function g(e){return void 0===e}function w(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Wt(e,t,n,s,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){var t,n,s=e._d&&!isNaN(e._d.getTime());return s&&(t=p(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function I(e){var t=l(NaN);return null!=e?E(p(t),e):p(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=_.momentProperties=[],z=!1;function q(e,t){var n,s,i,r=Z.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=p(t)),g(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)g(i=t[s=Z[n]])||(e[s]=i);return e}function $(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,_.updateOffset(this),z=!1)}function k(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function B(e){!1===_.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=_.deprecationHandler&&_.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=_.deprecationHandler&&_.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function a(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([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}
vendor: 50,280 bytes, line 132
132|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=a(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,s),ne.lastIndex=0,--n;return e}var oe={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 o(e){return"string"==typeof e?oe[e]||oe[e.toLowerCase()]:void 0}function ue(e){var t,n,s={};for(n in e)c(e,n)&&(t=o(n))&&(s[t]=e[n]);return s}var le={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};var de=/\d/,t=/\d\d/,he=/\d{3}/,ce=/\d{4}/,fe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,we=/[+-]?\d{1,6}/,pe=/\d+/,ke=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,i=/[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,u=/^[1-9]\d?/,d=/^([1-9]\d|\d)/;function h(e,n,s){Ye[e]=a(n)?n:function(e,t){return e&&s?s:n}}function De(e,t){return c(Ye,e)?Ye[e](t._strict,t._locale):new RegExp(f(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function f(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t}var Ye={},Se={};function v(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),w(n)&&(i=function(e,t){t[n]=M(e)}),s=e.length,t=0;t<s;t++)Se[e[t]]=i}function Oe(e,i){v(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}function be(e){return e%4==0&&e%100!=0||e%400==0}var D=0,Y=1,S=2,O=3,b=4,T=5,Te=6,xe=7,Ne=8;function We(e){return be(e)?366:365}s("Y",0,0,function(){var e=this.year();return e<=9999?r(e,4):"+"+e}),s(0,["YY",2],0,function(){return this.year()%100}),s(0,["YYYY",4],0,"year"),s(0,["YYYYY",5],0,"year"),s(0,["YYYYYY",6,!0],0,"year"),h("Y",ke),h("YY",n,t),h("YYYY",ge,ce),h("YYYYY",we,fe),h("YYYYYY",we,fe),v(["YYYYY","YYYYYY"],D),v("YYYY",function(e,t){t[D]=2===e.length?_.parseTwoDigitYear(e):M(e)}),v("YY",function(e,t){t[D]=_.parseTwoDigitYear(e)}),v("Y",function(e,t){t[D]=parseInt(e,10)}),_.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3)};var x,Pe=Re("FullYear",!0);function Re(t,n){return function(e){return null!=e?(Ue(this,t,e),_.updateOffset(this,n),this):Ce(this,t)}}function Ce(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ue(e,t,n){var s,i,r;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return i?s.setUTCMilliseconds(n):s.setMilliseconds(n);case"Seconds":return i?s.setUTCSeconds(n):s.setSeconds(n);case"Minutes":return i?s.setUTCMinutes(n):s.setMinutes(n);case"Hours":return i?s.setUTCHours(n):s.setHours(n);case"Date":return i?s.setUTCDate(n):s.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||be(t)?e:28,i?s.setUTCFullYear(t,r,e):s.setFullYear(t,r,e)}}function He(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?be(e)?29:28:31-n%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},s("M",["MM",2],"Mo",function(){return this.month()+1}),s("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),s("MMMM",0,0,function(e){return this.localeData().months(this,e)}),h("M",n,u),h("MM",n,t),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),v(["M","MM"],function(e,t){t[Y]=M(e)-1}),v(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[Y]=s:p(n).invalidMonth=e});var Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ge=i,Ee=i;function Ae(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(!w(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,He(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Ie(e){return null!=e?(Ae(this,e),_.updateOffset(this,!0),this):Ce(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n,s=[],i=[],r=[],a=0;a<12;a++)n=l([2e3,a]),t=f(this.monthsShort(n,"")),n=f(this.months(n,"")),s.push(t),i.push(n),r.push(n),r.push(t);s.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1}function $e(e,t,n,s,i){var r,t=1+7*(t-1)+(7+n-s)%7+qe(e,s,i),n=t<=0?We(r=e-1)+t:t>We(e)?(r=e+1,t-We(e)):(r=e,t);return{year:r,dayOfYear:n}}function Be(e,t,n){var s,i,r=qe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+N(i=e.year()-1,t,n):r>N(e.year(),t,n)?(s=r-N(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function N(e,t,n){var s=qe(e,t,n),t=qe(e+1,t,n);return(We(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),h("w",n,u),h("ww",n,t),h("W",n,u),h("WW",n,t),Oe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e)});function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),h("d",n),h("e",n),h("E",n),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,n,s){t[s]=M(e)});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=i,tt=i,nt=i;function st(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=f(this.weekdaysMin(s,"")),n=f(this.weekdaysShort(s,"")),s=f(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,it),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),rt("a",!0),rt("A",!1),h("a",at),h("A",at),h("H",n,d),h("h",n,u),h("k",n,u),h("HH",n,t),h("hh",n,t),h("kk",n,t),h("hmm",me),h("hmmss",_e),h("Hmm",me),h("Hmmss",_e),v(["H","HH"],O),v(["k","kk"],function(e,t,n){e=M(e);t[O]=24===e?0:e}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),v(["h","hh"],function(e,t,n){t[O]=M(e),p(n).bigHour=!0}),v("hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s)),p(n).bigHour=!0}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i)),p(n).bigHour=!0}),v("Hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s))}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i))});i=Re("Hours",!0);var ot,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},W={},lt={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=dt(e[r]).split("-")).length,n=(n=dt(e[r+1]))?n.split("-"):null;0<t;){if(s=ct(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return ot}function ct(t){var e,n;if(void 0===W[t]&&"undefined"!=typeof module&&module&&module.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ot._abbr,require("./locale/"+t),ft(e)}catch(e){W[t]=null}return W[t]}function ft(e,t){return e&&((t=g(t)?P(e):mt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function mt(e,t){if(null===t)return delete W[e],null;var n,s=ut;if(t.abbr=e,null!=W[e])Q("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."),s=W[e]._config;else if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return W[e]=new K(X(s,t)),lt[e]&<[e].forEach(function(e){mt(e.name,e.config)}),ft(e),W[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!y(e)){if(t=ct(e))return t;e=[e]}return ht(e)}function _t(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[Y]<0||11<t[Y]?Y:t[S]<1||t[S]>He(t[D],t[Y])?S:t[O]<0||24<t[O]||24===t[O]&&(0!==t[b]||0!==t[T]||0!==t[Te])?O:t[b]<0||59<t[b]?b:t[T]<0||59<t[T]?T:t[Te]<0||999<t[Te]?Te:-1,p(e)._overflowDayOfYear&&(t<D||S<t)&&(t=S),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Ne),p(e).overflow=t),e}var yt=/^\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)?)?$/,gt=/^\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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["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/]],Mt=/^\/?Date\((-?\d+)/i,vt=/^(?:(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}))$/,Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yt(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o),o=pt.length,l=kt.length;if(u){for(p(e).iso=!0,t=0,n=o;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],s=!1!==pt[t][2];break}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){r=(u[2]||" ")+kt[t][0];break}if(null==r)return void(e._isValid=!1)}if(s||null==r){if(u[4]){if(!wt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),xt(e)}else e._isValid=!1}}else e._isValid=!1}function St(e,t,n,s,i,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Le.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e}function Ot(e){var t,n,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=St(s[4],s[3],s[2],s[5],s[6],s[7]),function(e,t,n){if(!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1}(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],n=s[9],s=s[10],t?Dt[t]:n?0:60*(((t=parseInt(s,10))-(n=t%100))/100)+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,s,i,r,a,o,u,l,d,h,c=[];if(!e._d){for(s=e,i=new Date(_.now()),n=s._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[S]&&null==e._a[Y]&&(null!=(i=(s=e)._w).GG||null!=i.W||null!=i.E?(u=1,l=4,r=bt(i.GG,s._a[D],Be(R(),1,4).year),a=bt(i.W,1),((o=bt(i.E,1))<1||7<o)&&(d=!0)):(u=s._locale._week.dow,l=s._locale._week.doy,h=Be(R(),u,l),r=bt(i.gg,s._a[D],h.year),a=bt(i.w,h.week),null!=i.d?((o=i.d)<0||6<o)&&(d=!0):null!=i.e?(o=i.e+u,(i.e<0||6<i.e)&&(d=!0)):o=u),a<1||a>N(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=$e(r,a,o,u,l),s._a[D]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[D],n[D]),(e._dayOfYear>We(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=ze(i,0,e._dayOfYear),e._a[Y]=d.getUTCMonth(),e._a[S]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[b]&&0===e._a[T]&&0===e._a[Te]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ze:Ze).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function xt(e){if(e._f===_.ISO_8601)Yt(e);else if(e._f===_.RFC_2822)Ot(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],d=l.length,h=0;h<d;h++)n=l[h],(t=(a.match(De(n,e))||[])[0])&&(0<(s=a.substr(0,a.indexOf(t))).length&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(t)+t.length),u+=t.length),ie[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(Se,s)&&Se[s](i,r._a,r,s)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=o-u,0<a.length&&p(e).unusedInput.push(a),e._a[O]<=12&&!0===p(e).bigHour&&0<e._a[O]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[O]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[O],e._meridiem),null!==(o=p(e).era)&&(e._a[D]=e._locale.erasConvertYear(o,e._a[D])),Tt(e),_t(e)}}function Nt(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||P(e._l),null===i||void 0===r&&""===i)return I({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),k(i))return new $(_t(i));if(V(i))e._d=i;else if(y(r)){var a,o,u,l,d,h,c=e,f=!1,m=c._f.length;if(0===m)p(c).invalidFormat=!0,c._d=new Date(NaN);else{for(l=0;l<m;l++)d=0,h=!1,a=q({},c),null!=c._useUTC&&(a._useUTC=c._useUTC),a._f=c._f[l],xt(a),A(a)&&(h=!0),d=(d+=p(a).charsLeftOver)+10*p(a).unusedTokens.length,p(a).score=d,f?d<u&&(u=d,o=a):(null==u||d<u||h)&&(u=d,o=a,h)&&(f=!0);E(c,o||a)}}else if(r)xt(e);else if(g(r=(i=e)._i))i._d=new Date(_.now());else V(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null!==(t=Mt.exec(n._i))?n._d=new Date(+t[1]):(Yt(n),!1===n._isValid&&(delete n._isValid,Ot(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:_.createFromInputFallback(n)))):y(r)?(i._a=G(r.slice(0),function(e){return parseInt(e,10)}),Tt(i)):F(r)?(t=i)._d||(s=void 0===(n=ue(t._i)).day?n.date:n.day,t._a=G([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Tt(t)):w(r)?i._d=new Date(r):_.createFromInputFallback(i);return A(e)||(e._d=null),e}function Wt(e,t,n,s,i){var r={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(F(e)&&L(e)||y(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(i=new $(_t(Nt(i=r))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function R(e,t,n,s){return Wt(e,t,n,s,!1)}_.createFromInputFallback=e("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I()}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:I()});function Pt(e,t){var n,s;if(!(t=1===t.length&&y(t[0])?t[0]:t).length)return R();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var e=ue(e),t=e.year||0,n=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Rt.length;for(t in e)if(c(e,t)&&(-1===x.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Rt[n]]){if(s)return!1;parseFloat(e[Rt[n]])!==M(e[Rt[n]])&&(s=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*o+1e3*a*60*60,this._days=+r+7*i,this._months=+s+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){s(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),h("Z",ve),h("ZZ",ve),v(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(ve,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+M(e[2]))?0:"+"===e[0]?t:-t}function Gt(e,t){var n;return t._isUTC?(t=t.clone(),n=(k(e)||V(e)?e:R(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),_.updateOffset(t,!1),t):R(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&this._isUTC&&0===this._offset}_.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var n,s=e;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(t=It.exec(e))?(n="-"===t[1]?-1:1,s={y:0,d:M(t[S])*n,h:M(t[O])*n,m:M(t[b])*n,s:M(t[T])*n,ms:M(Ht(1e3*t[Te]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,s={y:Zt(t[2],n),M:Zt(t[3],n),w:Zt(t[4],n),d:Zt(t[5],n),h:Zt(t[6],n),m:Zt(t[7],n),s:Zt(t[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(R(s.from),R(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new Ct(s),Ut(e)&&c(e,"_locale")&&(n._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n}function Zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),$t(this,C(e,t),s),this}}function $t(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ae(e,Ce(e,"Month")+t*n),r&&Ue(e,"Date",Ce(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s)&&_.updateOffset(e,r||t)}C.fn=Ct.prototype,C.invalid=function(){return C(NaN)};Fe=qt(1,"add"),Qe=qt(-1,"subtract");function Bt(e){return"string"==typeof e||e instanceof String}function Jt(e){return k(e)||V(e)||Bt(e)||w(e)||function(t){var e=y(t),n=!1;e&&(n=0===t.filter(function(e){return!w(e)&&Bt(t)}).length);return e&&n}(e)||function(e){var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i}(e)||null==e}function Qt(e,t){var n,s;return e.date()<t.date()?-Qt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(s=e.clone().add(n,"months"))<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Ke=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Kt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function an(){for(var e,t,n,s=[],i=[],r=[],a=[],o=this.eras(),u=0,l=o.length;u<l;++u)e=f(o[u].name),t=f(o[u].abbr),n=f(o[u].narrow),i.push(e),s.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function on(e,t){s(0,[e,e.length],0,t)}function un(e,t,n,s,i){var r;return null==e?Be(this,s,i).year:(r=N(e,s,i),function(e,t,n,s,i){e=$e(e,t,n,s,i),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,s,i))}s("N",0,0,"eraAbbr"),s("NN",0,0,"eraAbbr"),s("NNN",0,0,"eraAbbr"),s("NNNN",0,0,"eraName"),s("NNNNN",0,0,"eraNarrow"),s("y",["y",1],"yo","eraYear"),s("y",["yy",2],0,"eraYear"),s("y",["yyy",3],0,"eraYear"),s("y",["yyyy",4],0,"eraYear"),h("N",rn),h("NN",rn),h("NNN",rn),h("NNNN",function(e,t){return t.erasNameRegex(e)}),h("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?p(n).era=s:p(n).invalidEra=e}),h("y",pe),h("yy",pe),h("yyy",pe),h("yyyy",pe),h("yo",function(e,t){return t._eraYearOrdinalRegex||pe}),v(["y","yy","yyy","yyyy"],D),v(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[D]=n._locale.eraYearOrdinalParse(e,i):t[D]=parseInt(e,10)}),s(0,["gg",2],0,function(){return this.weekYear()%100}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),h("G",ke),h("g",ke),h("GG",n,t),h("gg",n,t),h("GGGG",ge,ce),h("gggg",ge,ce),h("GGGGG",we,fe),h("ggggg",we,fe),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=M(e)}),Oe(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e)}),s("Q",0,"Qo","quarter"),h("Q",de),v("Q",function(e,t){t[Y]=3*(M(e)-1)}),s("D",["DD",2],"Do","date"),h("D",n,u),h("DD",n,t),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],S),v("Do",function(e,t){t[S]=M(e.match(n)[0])});ge=Re("Date",!0);s("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",ye),h("DDDD",he),v(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),s("m",["mm",2],0,"minute"),h("m",n,d),h("mm",n,t),v(["m","mm"],b);var ln,ce=Re("Minutes",!1),we=(s("s",["ss",2],0,"second"),h("s",n,d),h("ss",n,t),v(["s","ss"],T),Re("Seconds",!1));for(s("S",0,0,function(){return~~(this.millisecond()/100)}),s(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond()}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),h("S",ye,de),h("SS",ye,t),h("SSS",ye,he),ln="SSSS";ln.length<=9;ln+="S")h(ln,pe);function dn(e,t){t[Te]=M(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")v(ln,dn);fe=Re("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName");u=$.prototype;function hn(e){return e}u.add=Fe,u.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||R(),n=Gt(e,this).startOf("day"),n=_.calendarFormat(this,n)||"sameElse",t=t&&(a(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,R(e)))},u.clone=function(){return new $(this)},u.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=o(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:m(r)},u.endOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1;break}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.format=function(e){return e=e||(this.isUtc()?_.defaultFormatUtc:_.defaultFormat),e=re(this,e),this.localeData().postformat(e)},u.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.fromNow=function(e){return this.from(R(),e)},u.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.toNow=function(e){return this.to(R(),e)},u.get=function(e){return a(this[e=o(e)])?this[e]():this},u.invalidAt=function(){return p(this).overflow},u.isAfter=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},u.isBefore=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},u.isBetween=function(e,t,n,s){return e=k(e)?e:R(e),t=k(t)?t:R(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))},u.isSame=function(e,t){var e=k(e)?e:R(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},u.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},u.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},u.isValid=function(){return A(this)},u.lang=Ke,u.locale=Xt,u.localeData=Kt,u.max=_e,u.min=me,u.parsingFlags=function(){return E({},p(this))},u.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:le[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else if(a(this[e=o(e)]))return this[e](t);return this},u.startOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3);break}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.subtract=Qe,u.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},u.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},u.toDate=function(){return new Date(this.valueOf())},u.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):a(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},u.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},u.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},u.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},u.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},u.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},u.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-_(n[s].since).year())*e+n[s].offset;return this.year()},u.year=Pe,u.isLeapYear=function(){return be(this.year())},u.weekYear=function(e){return un.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},u.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},u.quarter=u.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},u.month=Ie,u.daysInMonth=function(){return He(this.year(),this.month())},u.week=u.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},u.isoWeek=u.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},u.weeksInYear=function(){var e=this.localeData()._week;return N(this.year(),e.dow,e.doy)},u.weeksInWeekYear=function(){var e=this.localeData()._week;return N(this.weekYear(),e.dow,e.doy)},u.isoWeeksInYear=function(){return N(this.year(),1,4)},u.isoWeeksInISOWeekYear=function(){return N(this.isoWeekYear(),1,4)},u.date=ge,u.day=u.days=function(e){var t,n,s;return this.isValid()?(t=Ce(this,"Day"),null!=e?(n=e,s=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=s.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},u.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},u.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},u.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},u.hour=u.hours=i,u.minute=u.minutes=ce,u.second=u.seconds=we,u.millisecond=u.milliseconds=fe,u.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?$t(this,C(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},u.utc=function(e){return this.utcOffset(0,e)},u.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Et(this),"m"),this},u.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},u.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?R(e).utcOffset():0,(this.utcOffset()-e)%60==0)},u.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},u.isLocal=function(){return!!this.isValid()&&!this._isUTC},u.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},u.isUtc=At,u.isUTC=At,u.zoneAbbr=function(){return this._isUTC?"UTC":""},u.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},u.dates=e("dates accessor is deprecated. Use date instead.",ge),u.months=e("months accessor is deprecated. Use month instead",Ie),u.years=e("years accessor is deprecated. Use year instead",Pe),u.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),u.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return g(this._isDSTShifted)&&(q(e={},this),(e=Nt(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&M(e[a])!==M(t[a]))&&r++;return r+i}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});d=K.prototype;function cn(e,t,n,s){var i=P(),s=l().set(s,t);return i[n](s,e)}function fn(e,t,n){if(w(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=cn(e,i,n,"month");return s}function mn(e,t,n,s){t=("boolean"==typeof e?w(t)&&(n=t,t=void 0):(t=e,e=!1,w(n=t)&&(n=t,t=void 0)),t||"");var i,r=P(),a=e?r._week.dow:0,o=[];if(null!=n)return cn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o}d.calendar=function(e,t,n){return a(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},d.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},d.invalidDate=function(){return this._invalidDate},d.ordinal=function(e){return this._ordinal.replace("%d",e)},d.preparse=hn,d.postformat=hn,d.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return a(i)?i(e,t,n,s):i.replace(/%d/i,e)},d.pastFuture=function(e,t){return a(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},d.set=function(e){var t,n;for(n in e)c(e,n)&&(a(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},d.eras=function(e,t){for(var n,s=this._eras||P("en")._eras,i=0,r=s.length;i<r;++i){switch(typeof s[i].since){case"string":n=_(s[i].since).startOf("day"),s[i].since=n.valueOf();break}switch(typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=_(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf();break}}return s},d.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s];break}else if(0<=[r,a,o].indexOf(e))return u[s]},d.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?_(e.since).year():_(e.since).year()+(t-e.offset)*n},d.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},d.erasNameRegex=function(e){return c(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},d.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},d.months=function(e,t){return e?(y(this._months)?this._months:this._months[(this._months.isFormat||Ve).test(t)?"format":"standalone"])[e.month()]:y(this._months)?this._months:this._months.standalone},d.monthsShort=function(e,t){return e?(y(this._monthsShort)?this._monthsShort:this._monthsShort[Ve.test(t)?"format":"standalone"])[e.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},d.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},d.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},d.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},d.week=function(e){return Be(e,this._week.dow,this._week.doy).week},d.firstDayOfYear=function(){return this._week.doy},d.firstDayOfWeek=function(){return this._week.dow},d.weekdays=function(e,t){return t=y(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Je(t,this._week.dow):e?t[e.day()]:t},d.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},d.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},d.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},d.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},d.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},d.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},d.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},d.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),_.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),_.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var _n=Math.abs;function yn(e,t,n,s){t=C(t,n);return e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function pn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}de=kn("ms"),t=kn("s"),ye=kn("m"),he=kn("h"),Fe=kn("d"),_e=kn("w"),me=kn("M"),Qe=kn("Q"),i=kn("y"),ce=de;function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var we=Mn("milliseconds"),fe=Mn("seconds"),ge=Mn("minutes"),Pe=Mn("hours"),d=Mn("days"),vn=Mn("months"),Dn=Mn("years");var Yn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function On(e,t,n,s){var i=C(e).abs(),r=Yn(i.as("s")),a=Yn(i.as("m")),o=Yn(i.as("h")),u=Yn(i.as("d")),l=Yn(i.as("M")),d=Yn(i.as("w")),i=Yn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(o<=1?["h"]:o<n.h&&["hh",o])||(u<=1?["d"]:u<n.d&&["dd",u]);return(r=(r=null!=n.w?r||(d<=1?["w"]:d<n.w&&["ww",d]):r)||(l<=1?["M"]:l<n.M&&["MM",l])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,r)}var bn=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function xn(){var e,t,n,s,i,r,a,o,u,l,d;return this.isValid()?(e=bn(this._milliseconds)/1e3,t=bn(this._days),n=bn(this._months),(o=this.asSeconds())?(s=m(e/60),i=m(s/60),e%=60,s%=60,r=m(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=Tn(this._months)!==Tn(o)?"-":"",l=Tn(this._days)!==Tn(o)?"-":"",d=Tn(this._mil
132liseconds)!==Tn(o)?"-":"",(o<0?"-":"")+"P"+(r?u+r+"Y":"")+(n?u+n+"M":"")+(t?l+t+"D":"")+(i||s||e?"T":"")+(i?d+i+"H":"")+(s?d+s+"M":"")+(e?d+a+"S":"")):"P0D"):this.localeData().invalidDate()}var U=Ct.prototype;return U.isValid=function(){return this._isValid},U.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},U.add=function(e,t){return yn(this,e,t,1)},U.subtract=function(e,t){return yn(this,e,t,-1)},U.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=o(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},U.asMilliseconds=de,U.asSeconds=t,U.asMinutes=ye,U.asHours=he,U.asDays=Fe,U.asWeeks=_e,U.asMonths=me,U.asQuarters=Qe,U.asYears=i,U.valueOf=ce,U._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(pn(n)+t),n=t=0),s.milliseconds=e%1e3,e=m(e/1e3),s.seconds=e%60,e=m(e/60),s.minutes=e%60,e=m(e/60),s.hours=e%24,t+=m(e/24),n+=e=m(wn(t)),t-=gn(pn(e)),e=m(n/12),n%=12,s.days=t,s.months=n,s.years=e,this},U.clone=function(){return C(this)},U.get=function(e){return e=o(e),this.isValid()?this[e+"s"]():NaN},U.milliseconds=we,U.seconds=fe,U.minutes=ge,U.hours=Pe,U.days=d,U.weeks=function(){return m(this.days()/7)},U.months=vn,U.years=Dn,U.humanize=function(e,t){var n,s;return this.isValid()?(n=!1,s=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(s.ss=t.s-1),e=this.localeData(),t=On(this,!n,s,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},U.toISOString=xn,U.toString=xn,U.toJSON=xn,U.locale=Xt,U.localeData=Kt,U.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),U.lang=Ke,s("X",0,0,"unix"),s("x",0,0,"valueOf"),h("x",ke),h("X",/[+-]?\d+(\.\d{1,3})?/),v("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),v("x",function(e,t,n){n._d=new Date(M(e))}),_.version="2.30.1",H=R,_.fn=u,_.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},_.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=l,_.unix=function(e){return R(1e3*e)},_.months=function(e,t){return fn(e,t,"months")},_.isDate=V,_.locale=ft,_.invalid=I,_.duration=C,_.isMoment=k,_.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},_.parseZone=function(){return R.apply(null,arguments).parseZone()},_.localeData=P,_.isDuration=Ut,_.monthsShort=function(e,t){return fn(e,t,"monthsShort")},_.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},_.defineLocale=mt,_.updateLocale=function(e,t){var n,s;return null!=t?(s=ut,null!=W[e]&&null!=W[e].parentLocale?W[e].set(X(W[e]._config,t)):(t=X(s=null!=(n=ct(e))?n._config:s,t),null==n&&(t.abbr=e),(s=new K(t)).parentLocale=W[e],W[e]=s),ft(e)):null!=W[e]&&(null!=W[e].parentLocale?(W[e]=W[e].parentLocale,e===ft()&&ft(e)):null!=W[e]&&delete W[e]),W[e]},_.locales=function(){return ee(W)},_.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},_.normalizeUnits=o,_.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},_.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},_.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},_.prototype=u,_.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"},_}); 133//# sourceMappingURL=moment.min.js.map 134;/*! 135 * Bootstrap v5.3.3 (https://getbootstrap.com/) 136 * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 137 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 138 */ 139!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),s=t=>{t.dispatchEvent(new Event(i))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},h=()=>{},d=t=>{t.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=u();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()}
vendor: 8,259 bytes, line 139
139)),f.push(e)):e()},g=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,_=(t,e,n=!0)=>{if(!n)return void g(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{r||s(e)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function x(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function k(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function L(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=I(t);return C.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=L(e,i,n);if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return P(s,{delegateTarget:r}),n.oneOff&&N.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return P(n,{delegateTarget:t}),i.oneOff&&N.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function D(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function $(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&D(t,e,i,r.callable,r.delegationSelector)}function I(t){return t=t.replace(y,""),T[t]||t}const N={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=L(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))$(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(w,"");a&&!e.includes(s)||D(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;D(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=u();let s=null,o=!0,r=!0,a=!1;e!==I(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=P(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function P(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function j(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function M(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const F={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${M(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${M(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=j(t.dataset[n])}return e},getDataAttribute:(t,e)=>j(t.getAttribute(`data-bs-${M(e)}`))};class H{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=o(e)?F.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?F.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],r=o(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}var i}}class W extends H{constructor(t,i){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(i),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){_(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const B=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map((t=>n(t))).join(","):null},z={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))},getSelectorFromElement(t){const e=B(t);return e&&z.findOne(e)?e:null},getElementFromSelector(t){const e=B(t);return e?z.findOne(e):null},getMultipleElementsFromSelector(t){const e=B(t);return e?z.find(e):[]}},R=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;N.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const s=z.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},q=".bs.alert",V=`close${q}`,K=`closed${q}`;class Q extends W{static get NAME(){return"alert"}close(){if(N.trigger(this._element,V).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),N.trigger(this._element,K),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Q.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
139amed "${t}"`);e[t](this)}}))}}R(Q,"close"),m(Q);const X='[data-bs-toggle="button"]';class Y extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=Y.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}N.on(document,"click.bs.button.data-api",X,(t=>{t.preventDefault();const e=t.target.closest(X);Y.getOrCreateInstance(e).toggle()})),m(Y);const U=".bs.swipe",G=`touchstart${U}`,J=`touchmove${U}`,Z=`touchend${U}`,tt=`pointerdown${U}`,et=`pointerup${U}`,it={endCallback:null,leftCallback:null,rightCallback:null},nt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class st extends H{constructor(t,e){super(),this._element=t,t&&st.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return it}static get DefaultType(){return nt}static get NAME(){return"swipe"}dispose(){N.off(this._element,U)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,tt,(t=>this._start(t))),N.on(this._element,et,(t=>this._end(t))),this._element.classList.add("pointer-event")):(N.on(this._element,G,(t=>this._start(t))),N.on(this._element,J,(t=>this._move(t))),N.on(this._element,Z,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ot=".bs.carousel",rt=".data-api",at="next",lt="prev",ct="left",ht="right",dt=`slide${ot}`,ut=`slid${ot}`,ft=`keydown${ot}`,pt=`mouseenter${ot}`,mt=`mouseleave${ot}`,gt=`dragstart${ot}`,_t=`load${ot}${rt}`,bt=`click${ot}${rt}`,vt="carousel",yt="active",wt=".active",At=".carousel-item",Et=wt+At,Tt={ArrowLeft:ht,ArrowRight:ct},Ct={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ot={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class xt extends W{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===vt&&this.cycle()}static get Default(){return Ct}static get DefaultType(){return Ot}static get NAME(){return"carousel"}next(){this._slide(at)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(lt)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,ut,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void N.one(this._element,ut,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?at:lt;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&N.on(this._element,ft,(t=>this._keydown(t))),"hover"===this._config.pause&&(N.on(this._element,pt,(()=>this.pause())),N.on(this._element,mt,(()=>this._maybeEnableCycle()))),this._config.touch&&st.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of z.find(".carousel-item img",this._element))N.on(t,gt,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(ct)),rightCallback:()=>this._slide(this._directionToOrder(ht)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new st(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Tt[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=z.findOne(wt,this._indicatorsElement);e.classList.remove(yt),e.removeAttribute("aria-current");const i=z.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(yt),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===at,s=e||b(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>N.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(dt).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),d(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(yt),i.classList.remove(yt,c,l),this._isSliding=!1,r(ut)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(Et,this._element)}_getItems(){return z.find(At,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return p()?t===ct?lt:at:t===ct?at:lt}_orderToDirection(t){return p()?t===lt?ct:ht:t===lt?ht:ct}static jQueryInterface(t){return this.each((function(){const e=xt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
139amed "${t}"`);e[t]()}}else e.to(t)}))}}N.on(document,bt,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=z.getElementFromSelector(this);if(!e||!e.classList.contains(vt))return;t.preventDefault();const i=xt.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===F.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),N.on(window,_t,(()=>{const t=z.find('[data-bs-ride="carousel"]');for(const e of t)xt.getOrCreateInstance(e)})),m(xt);const kt=".bs.collapse",Lt=`show${kt}`,St=`shown${kt}`,Dt=`hide${kt}`,$t=`hidden${kt}`,It=`click${kt}.data-api`,Nt="show",Pt="collapse",jt="collapsing",Mt=`:scope .${Pt} .${Pt}`,Ft='[data-bs-toggle="collapse"]',Ht={parent:null,toggle:!0},Wt={parent:"(null|element)",toggle:"boolean"};class Bt extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=z.find(Ft);for(const t of i){const e=z.getSelectorFromElement(t),i=z.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ht}static get DefaultType(){return Wt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Bt.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(N.trigger(this._element,Lt).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Pt),this._element.classList.add(jt),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(jt),this._element.classList.add(Pt,Nt),this._element.style[e]="",N.trigger(this._element,St)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,Dt).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,d(this._element),this._element.classList.add(jt),this._element.classList.remove(Pt,Nt);for(const t of this._triggerArray){const e=z.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(jt),this._element.classList.add(Pt),N.trigger(this._element,$t)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(Nt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ft);for(const e of t){const t=z.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=z.find(Mt,this._config.parent);return z.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=Bt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}N.on(document,It,Ft,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of z.getMultipleElementsFromSelector(this))Bt.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(Bt);var zt="top",Rt="bottom",qt="right",Vt="left",Kt="auto",Qt=[zt,Rt,qt,Vt],Xt="start",Yt="end",Ut="clippingParents",Gt="viewport",Jt="popper",Zt="reference",te=Qt.reduce((function(t,e){return t.concat([e+"-"+Xt,e+"-"+Yt])}),[]),ee=[].concat(Qt,[Kt]).reduce((function(t,e){return t.concat([e,e+"-"+Xt,e+"-"+Yt])}),[]),ie="beforeRead",ne="read",se="afterRead",oe="beforeMain",re="main",ae="afterMain",le="beforeWrite",ce="write",he="afterWrite",de=[ie,ne,se,oe,re,ae,le,ce,he];
vendor: 4,718 bytes, line 139
139function ue(t){return t?(t.nodeName||"").toLowerCase():null}function fe(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function pe(t){return t instanceof fe(t).Element||t instanceof Element}function me(t){return t instanceof fe(t).HTMLElement||t instanceof HTMLElement}function ge(t){return"undefined"!=typeof ShadowRoot&&(t instanceof fe(t).ShadowRoot||t instanceof ShadowRoot)}const _e={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];me(s)&&ue(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});me(n)&&ue(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function be(t){return t.split("-")[0]}var ve=Math.max,ye=Math.min,we=Math.round;function Ae(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Ee(){return!/^((?!chrome|android).)*safari/i.test(Ae())}function Te(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&me(t)&&(s=t.offsetWidth>0&&we(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&we(n.height)/t.offsetHeight||1);var r=(pe(t)?fe(t):window).visualViewport,a=!Ee()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function Ce(t){var e=Te(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Oe(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&ge(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xe(t){return fe(t).getComputedStyle(t)}function ke(t){return["table","td","th"].indexOf(ue(t))>=0}function Le(t){return((pe(t)?t.ownerDocument:t.document)||window.document).documentElement}function Se(t){return"html"===ue(t)?t:t.assignedSlot||t.parentNode||(ge(t)?t.host:null)||Le(t)}function De(t){return me(t)&&"fixed"!==xe(t).position?t.offsetParent:null}function $e(t){for(var e=fe(t),i=De(t);i&&ke(i)&&"static"===xe(i).position;)i=De(i);return i&&("html"===ue(i)||"body"===ue(i)&&"static"===xe(i).position)?e:i||function(t){var e=/firefox/i.test(Ae());if(/Trident/i.test(Ae())&&me(t)&&"fixed"===xe(t).position)return null;var i=Se(t);for(ge(i)&&(i=i.host);me(i)&&["html","body"].indexOf(ue(i))<0;){var n=xe(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Ie(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ne(t,e,i){return ve(t,ye(e,i))}function Pe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function je(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const Me={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=be(i.placement),l=Ie(a),c=[Vt,qt].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return Pe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:je(t,Qt))}(s.padding,i),d=Ce(o),u="y"===l?zt:Vt,f="y"===l?Rt:qt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=$e(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,A=Ne(v,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Oe(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(t){return t.split("-")[1]}
vendor: 4,497 bytes, line 139
139var He={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=Vt,y=zt,w=window;if(c){var A=$e(i),E="clientHeight",T="clientWidth";A===fe(i)&&"static"!==xe(A=Le(i)).position&&"absolute"===a&&(E="scrollHeight",T="scrollWidth"),(s===zt||(s===Vt||s===qt)&&o===Yt)&&(y=Rt,m-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1),s!==Vt&&(s!==zt&&s!==Rt||o!==Yt)||(v=qt,f-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[T])-n.width,f*=l?1:-1)}var C,O=Object.assign({position:a},c&&He),x=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:we(i*s)/s||0,y:we(n*s)/s||0}}({x:f,y:m},fe(i)):{x:f,y:m};return f=x.x,m=x.y,l?Object.assign({},O,((C={})[y]=b?"0":"",C[v]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((e={})[y]=b?m+"px":"",e[v]=_?f+"px":"",e.transform="",e))}const Be={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:be(e.placement),variation:Fe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,We(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,We(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ze={passive:!0};const Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=fe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,ze)})),a&&l.addEventListener("resize",i.update,ze),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ze)})),a&&l.removeEventListener("resize",i.update,ze)}},data:{}};var qe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ve(t){return t.replace(/left|right|bottom|top/g,(function(t){return qe[t]}))}var Ke={start:"end",end:"start"};function Qe(t){return t.replace(/start|end/g,(function(t){return Ke[t]}))}function Xe(t){var e=fe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ye(t){return Te(Le(t)).left+Xe(t).scrollLeft}function Ue(t){var e=xe(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ge(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:me(t)&&Ue(t)?t:Ge(Se(t))}function Je(t,e){var i;void 0===e&&(e=[]);var n=Ge(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=fe(n),r=s?[o].concat(o.visualViewport||[],Ue(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Je(Se(r)))}function Ze(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ti(t,e,i){return e===Gt?Ze(function(t,e){var i=fe(t),n=Le(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ee();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ye(t),y:l}}(t,i)):pe(e)?function(t,e){var i=Te(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ze(function(t){var e,i=Le(t),n=Xe(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=ve(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ve(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ye(t),l=-n.scrollTop;return"rtl"===xe(s||i).direction&&(a+=ve(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Le(t)))}function ei(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?be
vendor: 4,529 bytes, line 139
139(s):null,r=s?Fe(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case zt:e={x:a,y:i.y-n.height};break;case Rt:e={x:a,y:i.y+i.height};break;case qt:e={x:i.x+i.width,y:l};break;case Vt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?Ie(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case Xt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Yt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function ii(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?Ut:a,c=i.rootBoundary,h=void 0===c?Gt:c,d=i.elementContext,u=void 0===d?Jt:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=Pe("number"!=typeof g?g:je(g,Qt)),b=u===Jt?Zt:Jt,v=t.rects.popper,y=t.elements[p?b:u],w=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=Je(Se(t)),i=["absolute","fixed"].indexOf(xe(t).position)>=0&&me(t)?$e(t):t;return pe(i)?e.filter((function(t){return pe(t)&&Oe(t,i)&&"body"!==ue(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=ti(t,i,n);return e.top=ve(s.top,e.top),e.right=ye(s.right,e.right),e.bottom=ye(s.bottom,e.bottom),e.left=ve(s.left,e.left),e}),ti(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(pe(y)?y:y.contextElement||Le(t.elements.popper),l,h,r),A=Te(t.elements.reference),E=ei({reference:A,element:v,strategy:"absolute",placement:s}),T=Ze(Object.assign({},v,E)),C=u===Jt?T:A,O={top:w.top-C.top+_.top,bottom:C.bottom-w.bottom+_.bottom,left:w.left-C.left+_.left,right:C.right-w.right+_.right},x=t.modifiersData.offset;if(u===Jt&&x){var k=x[s];Object.keys(O).forEach((function(t){var e=[qt,Rt].indexOf(t)>=0?1:-1,i=[zt,Rt].indexOf(t)>=0?"y":"x";O[t]+=k[i]*e}))}return O}function ni(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ee:l,h=Fe(n),d=h?a?te:te.filter((function(t){return Fe(t)===h})):Qt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=ii(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[be(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const si={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=be(g),b=l||(_!==g&&p?function(t){if(be(t)===Kt)return[];var e=Ve(t);return[Qe(t),e,Qe(e)]}(g):[Ve(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat(be(i)===Kt?ni(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,T=v[0],C=0;C<v.length;C++){var O=v[C],x=be(O),k=Fe(O)===Xt,L=[zt,Rt].indexOf(x)>=0,S=L?"width":"height",D=ii(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),$=L?k?qt:Vt:k?Rt:zt;y[S]>w[S]&&($=Ve($));var I=Ve($),N=[];if(o&&N.push(D[x]<=0),a&&N.push(D[$]<=0,D[I]<=0),N.every((function(t){return t}))){T=O,E=!1;break}A.set(O,N)}if(E)for(var P=function(t){var e=v.find((function(e){var i=A.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},j=p?3:1;j>0&&"break"!==P(j);j--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function oi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ri(t){return[zt,qt,Rt,Vt].some((function(e){return t[e]>=0}))}const ai={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=ii(e,{elementContext:"reference"}),a=ii(e,{altBoundary:!0}),l=oi(r,n),c=oi(a,s,o),h=ri(l),d=ri(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},li={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=ee.reduce((function(t,i){return t[i]=function(t,e,
vendor: 4,389 bytes, line 139
139i){var n=be(t),s=[Vt,zt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Vt,qt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},ci={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ei({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},hi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ii(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=be(e.placement),b=Fe(e.placement),v=!b,y=Ie(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(o){var L,S="y"===y?zt:Vt,D="y"===y?Rt:qt,$="y"===y?"height":"width",I=A[y],N=I+g[S],P=I-g[D],j=f?-T[$]/2:0,M=b===Xt?E[$]:T[$],F=b===Xt?-T[$]:-E[$],H=e.elements.arrow,W=f&&H?Ce(H):{width:0,height:0},B=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[S],R=B[D],q=Ne(0,E[$],W[$]),V=v?E[$]/2-j-q-z-O.mainAxis:M-q-z-O.mainAxis,K=v?-E[$]/2+j+q+R+O.mainAxis:F+q+R+O.mainAxis,Q=e.elements.arrow&&$e(e.elements.arrow),X=Q?"y"===y?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(L=null==x?void 0:x[y])?L:0,U=I+K-Y,G=Ne(f?ye(N,I+V-Y-X):N,I,f?ve(P,U):P);A[y]=G,k[y]=G-I}if(a){var J,Z="x"===y?zt:Vt,tt="x"===y?Rt:qt,et=A[w],it="y"===w?"height":"width",nt=et+g[Z],st=et-g[tt],ot=-1!==[zt,Vt].indexOf(_),rt=null!=(J=null==x?void 0:x[w])?J:0,at=ot?nt:et-E[it]-T[it]-rt+O.altAxis,lt=ot?et+E[it]+T[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=Ne(t,e,i);return n>i?i:n}(at,et,lt):Ne(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function di(t,e,i){void 0===i&&(i=!1);var n,s,o=me(e),r=me(e)&&function(t){var e=t.getBoundingClientRect(),i=we(e.width)/t.offsetWidth||1,n=we(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Le(e),l=Te(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==ue(e)||Ue(a))&&(c=(n=e)!==fe(n)&&me(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Xe(n)),me(e)?((h=Te(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Ye(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function ui(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var fi={placement:"bottom",modifiers:[],strategy:"absolute"};function pi(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function mi(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?fi:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},fi,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:pe(t)?Je(t):t.contextElement?Je(t.contextElement):[],popper:Je(e)};var r,c,u=function(t){var e=ui(t);return de.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled}
139)),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(pi(e,i)){a.rects={reference:di(e,$e(i),"fixed"===a.options.strategy),popper:Ce(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!pi(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var gi=mi(),_i=mi({defaultModifiers:[Re,ci,Be,_e]}),bi=mi({defaultModifiers:[Re,ci,Be,_e,li,si,hi,Me,ai]});const vi=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ae,afterRead:se,afterWrite:he,applyStyles:_e,arrow:Me,auto:Kt,basePlacements:Qt,beforeMain:oe,beforeRead:ie,beforeWrite:le,bottom:Rt,clippingParents:Ut,computeStyles:Be,createPopper:bi,createPopperBase:gi,createPopperLite:_i,detectOverflow:ii,end:Yt,eventListeners:Re,flip:si,hide:ai,left:Vt,main:re,modifierPhases:de,offset:li,placements:ee,popper:Jt,popperGenerator:mi,popperOffsets:ci,preventOverflow:hi,read:ne,reference:Zt,right:qt,start:Xt,top:zt,variationPlacements:te,viewport:Gt,write:ce},Symbol.toStringTag,{value:"Module"})),yi="dropdown",wi=".bs.dropdown",Ai=".data-api",Ei="ArrowUp",Ti="ArrowDown",Ci=`hide${wi}`,Oi=`hidden${wi}`,xi=`show${wi}`,ki=`shown${wi}`,Li=`click${wi}${Ai}`,Si=`keydown${wi}${Ai}`,Di=`keyup${wi}${Ai}`,$i="show",Ii='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ni=`${Ii}.${$i}`,Pi=".dropdown-menu",ji=p()?"top-end":"top-start",Mi=p()?"top-start":"top-end",Fi=p()?"bottom-end":"bottom-start",Hi=p()?"bottom-start":"bottom-end",Wi=p()?"left-start":"right-start",Bi=p()?"right-start":"left-start",zi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ri={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class qi extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,Pi)[0]||z.prev(this._element,Pi)[0]||z.findOne(Pi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zi}static get DefaultType(){return Ri}static get NAME(){return yi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!N.trigger(this._element,xi,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
139navbar-nav"))for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),N.trigger(this._element,ki,t)}}hide(){if(l(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!N.trigger(this._element,Ci,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,Oi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${yi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===vi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=bi(t,this._menu,e)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Wi;if(t.classList.contains("dropstart"))return Bi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Mi:ji:e?Hi:Fi}
vendor: 5,989 bytes, line 139
139_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...g(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&b(i,e,t===Ti,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=qi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=z.find(Ni);for(const i of e){const e=qi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ei,Ti].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Ii)?this:z.prev(this,Ii)[0]||z.next(this,Ii)[0]||z.findOne(Ii,t.delegateTarget.parentNode),o=qi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}N.on(document,Si,Ii,qi.dataApiKeydownHandler),N.on(document,Si,Pi,qi.dataApiKeydownHandler),N.on(document,Li,qi.clearMenus),N.on(document,Di,qi.clearMenus),N.on(document,Li,Ii,(function(t){t.preventDefault(),qi.getOrCreateInstance(this).toggle()})),m(qi);const Vi="backdrop",Ki="show",Qi=`mousedown.bs.${Vi}`,Xi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Yi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ui extends H{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xi}static get DefaultType(){return Yi}static get NAME(){return Vi}show(t){if(!this._config.isVisible)return void g(t);this._append();const e=this._getElement();this._config.isAnimated&&d(e),e.classList.add(Ki),this._emulateAnimation((()=>{g(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ki),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}dispose(){this._isAppended&&(N.off(this._element,Qi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=r(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),N.on(t,Qi,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){_(t,this._getElement(),this._config.isAnimated)}}const Gi=".bs.focustrap",Ji=`focusin${Gi}`,Zi=`keydown.tab${Gi}`,tn="backward",en={autofocus:!0,trapElement:null},nn={autofocus:"boolean",trapElement:"element"};class sn extends H{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return en}static get DefaultType(){return nn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,Gi),N.on(document,Ji,(t=>this._handleFocusin(t))),N.on(document,Zi,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Gi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=z.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===tn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?tn:"forward")}}const on=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rn=".sticky-top",an="padding-right",ln="margin-right";class cn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,an,(e=>e+t)),this._setElementAttributes(on,an,(e=>e+t)),this._setElementAttributes(rn,ln,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,an),this._resetElementAttributes(on,an),this._resetElementAttributes(rn,ln)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&F.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=F.getDataAttribute(t,e);null!==i?(F.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}
139_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of z.find(t,this._element))e(i)}}const hn=".bs.modal",dn=`hide${hn}`,un=`hidePrevented${hn}`,fn=`hidden${hn}`,pn=`show${hn}`,mn=`shown${hn}`,gn=`resize${hn}`,_n=`click.dismiss${hn}`,bn=`mousedown.dismiss${hn}`,vn=`keydown.dismiss${hn}`,yn=`click${hn}.data-api`,wn="modal-open",An="show",En="modal-static",Tn={backdrop:!0,focus:!0,keyboard:!0},Cn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class On extends W{constructor(t,e){super(t,e),this._dialog=z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new cn,this._addEventListeners()}static get Default(){return Tn}static get DefaultType(){return Cn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||N.trigger(this._element,pn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(wn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,dn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(An),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){N.off(window,hn),N.off(this._dialog,hn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new sn({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=z.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),d(this._element),this._element.classList.add(An),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,mn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,vn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),N.on(window,gn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),N.on(this._element,bn,(t=>{N.one(this._element,_n,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(wn),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,fn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,un).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(En)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(En),this._queueCallback((()=>{this._element.classList.remove(En),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=p()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=p()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=On.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
139amed "${t}"`);i[t](e)}}))}}N.on(document,yn,'[data-bs-toggle="modal"]',(function(t){const e=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),N.one(e,pn,(t=>{t.defaultPrevented||N.one(e,fn,(()=>{a(this)&&this.focus()}))}));const i=z.findOne(".modal.show");i&&On.getInstance(i).hide(),On.getOrCreateInstance(e).toggle(this)})),R(On),m(On);const xn=".bs.offcanvas",kn=".data-api",Ln=`load${xn}${kn}`,Sn="show",Dn="showing",$n="hiding",In=".offcanvas.show",Nn=`show${xn}`,Pn=`shown${xn}`,jn=`hide${xn}`,Mn=`hidePrevented${xn}`,Fn=`hidden${xn}`,Hn=`resize${xn}`,Wn=`click${xn}${kn}`,Bn=`keydown.dismiss${xn}`,zn={backdrop:!0,keyboard:!0,scroll:!1},Rn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qn extends W{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return zn}static get DefaultType(){return Rn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||N.trigger(this._element,Nn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new cn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Dn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Sn),this._element.classList.remove(Dn),N.trigger(this._element,Pn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,jn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($n),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Sn,$n),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new cn).reset(),N.trigger(this._element,Fn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Ui({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,Mn)}:null})}_initializeFocusTrap(){return new sn({trapElement:this._element})}_addEventListeners(){N.on(this._element,Bn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():N.trigger(this._element,Mn))}))}static jQueryInterface(t){return this.each((function(){const e=qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}N.on(document,Wn,'[data-bs-toggle="offcanvas"]',(function(t){const e=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this))return;N.one(e,Fn,(()=>{a(this)&&this.focus()}));const i=z.findOne(In);i&&i!==e&&qn.getInstance(i).hide(),qn.getOrCreateInstance(e).toggle(this)})),N.on(window,Ln,(()=>{for(const t of z.find(In))qn.getOrCreateInstance(t).show()})),N.on(window,Hn,(()=>{for(const t of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&qn.getOrCreateInstance(t).hide()})),R(qn),m(qn);const Vn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Kn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Xn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Kn.has(i)||Boolean(Qn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Yn={allowList:Vn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Un={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Gn={entry:"(string|element|function|null)",selector:"(string|element)"};class Jn extends H{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Yn}static get DefaultType(){return Un}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>
vendor: 10,003 bytes, line 139
139this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Gn)}_setContent(t,e,i){const n=z.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(r(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Xn(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return g(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Zn=new Set(["sanitize","allowList","sanitizeFn"]),ts="fade",es="show",is=".modal",ns="hide.bs.modal",ss="hover",os="focus",rs={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},as={allowList:Vn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ls={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class cs extends W{constructor(t,e){if(void 0===vi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return as}static get DefaultType(){return ls}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(is),ns,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=N.trigger(this._element,this.constructor.eventName("show")),e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(es),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._queueCallback((()=>{N.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(es),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger[os]=!1,this._activeTrigger[ss]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ts,es),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ts),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Jn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ts)}_isShown(){return this.tip&&this.tip.classList.contains(es)}_createPopper(t){const e=g(this._config.placement,[this,t,this._element]),i=rs[e.toUpperCase()];return bi(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return g(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...g(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)N.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ss?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ss?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");N.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?os:ss]=!0,e._enter()})),N.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?os:ss]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(is),ns,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=F.getDataAttributes(this._element);for(const t of Object.keys(e))Zn.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
139amed "${t}"`);e[t]()}}))}}m(cs);const hs={...cs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ds={...cs.DefaultType,content:"(null|string|element|function)"};class us extends cs{static get Default(){return hs}static get DefaultType(){return ds}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=us.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(us);const fs=".bs.scrollspy",ps=`activate${fs}`,ms=`click${fs}`,gs=`load${fs}.data-api`,_s="active",bs="[href]",vs=".nav-link",ys=`${vs}, .nav-item > ${vs}, .list-group-item`,ws={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},As={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Es extends W{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ws}static get DefaultType(){return As}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=r(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,ms),N.on(this._config.target,ms,bs,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=z.find(bs,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=z.findOne(decodeURI(e.hash),this._element);a(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(_s),this._activateParents(t),N.trigger(this._element,ps,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(_s);else for(const e of z.parents(t,".nav, .list-group"))for(const t of z.prev(e,ys))t.classList.add(_s)}_clearActiveClass(t){t.classList.remove(_s);const e=z.find(`${bs}.${_s}`,t);for(const t of e)t.classList.remove(_s)}static jQueryInterface(t){return this.each((function(){const e=Es.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
139amed "${t}"`);e[t]()}}))}}N.on(window,gs,(()=>{for(const t of z.find('[data-bs-spy="scroll"]'))Es.getOrCreateInstance(t)})),m(Es);const Ts=".bs.tab",Cs=`hide${Ts}`,Os=`hidden${Ts}`,xs=`show${Ts}`,ks=`shown${Ts}`,Ls=`click${Ts}`,Ss=`keydown${Ts}`,Ds=`load${Ts}`,$s="ArrowLeft",Is="ArrowRight",Ns="ArrowUp",Ps="ArrowDown",js="Home",Ms="End",Fs="active",Hs="fade",Ws="show",Bs=".dropdown-toggle",zs=`:not(${Bs})`,Rs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qs=`.nav-link${zs}, .list-group-item${zs}, [role="tab"]${zs}, ${Rs}`,Vs=`.${Fs}[data-bs-toggle="tab"], .${Fs}[data-bs-toggle="pill"], .${Fs}[data-bs-toggle="list"]`;class Ks extends W{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,Ss,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?N.trigger(e,Cs,{relatedTarget:t}):null;N.trigger(t,xs,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Fs),this._activate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),N.trigger(t,ks,{relatedTarget:e})):t.classList.add(Ws)}),t,t.classList.contains(Hs)))}_deactivate(t,e){t&&(t.classList.remove(Fs),t.blur(),this._deactivate(z.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),N.trigger(t,Os,{relatedTarget:e})):t.classList.remove(Ws)}),t,t.classList.contains(Hs)))}_keydown(t){if(![$s,Is,Ns,Ps,js,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!l(t)));let i;if([js,Ms].includes(t.key))i=e[t.key===js?0:e.length-1];else{const n=[Is,Ps].includes(t.key);i=b(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Ks.getOrCreateInstance(i).show())}_getChildren(){return z.find(qs,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=z.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=z.findOne(t,i);s&&s.classList.toggle(n,e)};n(Bs,Fs),n(".dropdown-menu",Ws),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Fs)}_getInnerElement(t){return t.matches(qs)?t:z.findOne(qs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ks.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}N.on(document,Ls,Rs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||Ks.getOrCreateInstance(this).show()})),N.on(window,Ds,(()=>{for(const t of z.find(Vs))Ks.getOrCreateInstance(t)})),m(Ks);const Qs=".bs.toast",Xs=`mouseover${Qs}`,Ys=`mouseout${Qs}`,Us=`focusin${Qs}`,Gs=`focusout${Qs}`,Js=`hide${Qs}`,Zs=`hidden${Qs}`,to=`show${Qs}`,eo=`shown${Qs}`,io="hide",no="show",so="showing",oo={animation:"boolean",autohide:"boolean",delay:"number"},ro={animation:!0,autohide:!0,delay:5e3};class ao extends W{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ro}static get DefaultType(){return oo}static get NAME(){return"toast"}show(){N.trigger(this._element,to).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(io),d(this._element),this._element.classList.add(no,so),this._queueCallback((()=>{this._element.classList.remove(so),N.trigger(this._element,eo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,Js).defaultPrevented||(this._element.classList.add(so),this._queueCallback((()=>{this._element.classList.add(io),this._element.classList.remove(so,no),N.trigger(this._element,Zs)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(no),super.dispose()}isShown(){return this._element.classList.contains(no)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,Xs,(t=>this._onInteraction(t,!0))),N.on(this._element,Ys,(t=>this._onInteraction(t,!1))),N.on(this._element,Us,(t=>this._onInteraction(t,!0))),N.on(this._element,Gs,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ao.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
139amed "${t}"`);e[t](this)}}))}}return R(ao),m(ao),{Alert:Q,Button:Y,Carousel:xt,Collapse:Bt,Dropdown:qi,Modal:On,Offcanvas:qn,Popover:us,ScrollSpy:Es,Tab:Ks,Toast:ao,Tooltip:cs}})); 140//# sourceMappingURL=bootstrap.bundle.min.js.map 141;
vendor: 8,327 bytes, lines 141-159
141// jQuery Mask Plugin v1.14.16 142// github.com/igorescobar/jQuery-Mask-Plugin 143var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;k<p;k++){var b=a[k];if(n.call(f,b,k,a))return{i:k,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; 144$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,f){a!=Array.prototype&&a!=Object.prototype&&(a[n]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this); 145$jscomp.polyfill=function(a,n,f,p){if(n){f=$jscomp.global;a=a.split(".");for(p=0;p<a.length-1;p++){var k=a[p];k in f||(f[k]={});f=f[k]}a=a[a.length-1];p=f[a];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:n})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6","es3"); 146(function(a,n,f){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports&&"undefined"===typeof Meteor?module.exports=a(require("jquery")):a(n||f)})(function(a){var n=function(b,d,e){var c={invalid:[],getCaret:function(){try{var a=0,r=b.get(0),h=document.selection,d=r.selectionStart;if(h&&-1===navigator.appVersion.indexOf("MSIE 10")){var e=h.createRange();e.moveStart("character",-c.val().length);a=e.text.length}else if(d||"0"===d)a=d;return a}catch(C){}},setCaret:function(a){try{if(b.is(":focus")){var c= 147b.get(0);if(c.setSelectionRange)c.setSelectionRange(a,a);else{var g=c.createTextRange();g.collapse(!0);g.moveEnd("character",a);g.moveStart("character",a);g.select()}}}catch(B){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val());b.data("mask-previus-caret-pos",c.getCaret());c.maskDigitPosMapOld=c.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()}, 148100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){f===c.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){f=c.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!k.test(c.val())&&c.val("")})},getRegexMask:function(){for(var a=[],b,c,e,t,f=0;f<d.length;f++)(b=l.translation[d.charAt(f)])?(c=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional, 149(b=b.recursive)?(a.push(d.charAt(f)),t={digit:d.charAt(f),pattern:c}):a.push(e||b?c+"?":c)):a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");t&&(a=a.replace(new RegExp("("+t.digit+"(.*"+t.digit+")?)"),"($1)?").replace(new RegExp(t.digit,"g"),t.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var c=b.is("input")?"val":"text";if(0<arguments.length){if(b[c]()!==a)b[c](a); 150c=b}else c=b[c]();return c},calculateCaretPosition:function(a){var d=c.getMasked(),h=c.getCaret();if(a!==d){var e=b.data("mask-previus-caret-pos")||0;d=d.length;var g=a.length,f=a=0,l=0,k=0,m;for(m=h;m<d&&c.maskDigitPosMap[m];m++)f++;for(m=h-1;0<=m&&c.maskDigitPosMap[m];m--)a++;for(m=h-1;0<=m;m--)c.maskDigitPosMap[m]&&l++;for(m=e-1;0<=m;m--)c.maskDigitPosMapOld[m]&&k++;h>g?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d= 151d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1< 152g&&-1<n}}else x=k-1,A=function(){return g<k&&n<p};for(var z;A();){var y=d.charAt(g),v=f.charAt(n),q=l.translation[y];if(q)v.match(q.pattern)?(h[r](v),q.recursive&&(-1===u?u=g:g===x&&g!==u&&(g=u-m),x===u&&(g-=m)),g+=m):v===z?(w--,z=void 0):q.optional?(g+=m,n-=m):q.fallback?(h[r](q.fallback),g+=m,n-=m):c.invalid.push({p:n,v:v,e:q.pattern}),n+=m;else{if(!a)h[r](y);v===y?(b.push(n),n+=m):(z=y,b.push(n+w),w++);g+=m}}a=d.charAt(x);k!==p+1||l.translation[a]||h.push(a);h=h.join("");c.mapMaskdigitPositions(h, 153b,p);return h},mapMaskdigitPositions:function(a,b,d){a=e.reverse?a.length-d:0;c.maskDigitPosMap={};for(d=0;d<b.length;d++)c.maskDigitPosMap[b[d]+a]=1},callbacks:function(a){var g=c.val(),h=g!==f,k=[g,a,b,e],l=function(a,b,c){"function"===typeof e[a]&&b&&e[a].apply(this,c)};l("onChange",!0===h,k);l("onKeyPress",!0===h,k);l("onComplete",g.length===d.length,k);l("onInvalid",0<c.invalid.length,[g,a,b,c.invalid,e])}};b=a(b);var l=this,f=c.val(),k;d="function"===typeof d?d(c.val(),void 0,b,e):d;l.mask= 154d;l.options=e;l.remove=function(){var a=c.getCaret();l.options.placeholder&&b.removeAttr("placeholder");b.data("mask-maxlength")&&b.removeAttr("maxlength");c.destroyEvents();c.val(l.getCleanVal());c.setCaret(a);return b};l.getCleanVal=function(){return c.getMasked(!0)};l.getMaskedVal=function(a){return c.getMasked(!1,a)};l.init=function(g){g=g||!1;e=e||{};l.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;l.byPassKeys=a.jMaskGlobals.byPassKeys;l.translation=a.extend({},a.jMaskGlobals.translation,e.translation); 155l=a.extend(!0,{},l,e);k=c.getRegexMask();if(g)c.events(),c.val(c.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");g=0;for(var f=!0;g<d.length;g++){var h=l.translation[d.charAt(g)];if(h&&h.recursive){f=!1;break}}f&&b.attr("maxlength",d.length).data("mask-maxlength",!0);c.destroyEvents();c.events();g=c.getCaret();c.val(c.getMasked());c.setCaret(g)}};l.init(!b.is("input"))};a.maskWatchers={};var f=function(){var b=a(this),d={},e=b.attr("data-mask"); 156b.attr("data-mask-reverse")&&(d.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(d.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(d.selectOnFocus=!0);if(p(b,e,d))return b.data("mask",new n(this,e,d))},p=function(b,d,e){e=e||{};var c=a(b).data("mask"),f=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof d&&(d=d(b)),"object"!==typeof c||f(c.options)!==f(e)||c.mask!==d}catch(w){}},k=function(a){var b=document.createElement("div");a="on"+a;var e=a in b;e||(b.setAttribute(a, 157"return;"),e="function"===typeof b[a]);return e};a.fn.mask=function(b,d){d=d||{};var e=this.selector,c=a.jMaskGlobals,f=c.watchInterval;c=d.watchInputs||c.watchInputs;var k=function(){if(p(this,b,d))return a(this).data("mask",new n(this,b,d))};a(this).each(k);e&&""!==e&&c&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(k)},f));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]); 158delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f)};k={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&& 159k("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};a.jMaskGlobals=a.jMaskGlobals||{};k=a.jMaskGlobals=a.extend(!0,{},k,a.jMaskGlobals);k.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},k.watchInterval)},window.jQuery,window.Zepto);
160 161;(()=>{if(!window.app){window.app={};} 162const app=window.app;$(document).on('click','[data-custom-popover]',function(e){if($(this).is('a')&&$(this).attr('data-bs-trigger')!=='hover'){e.preventDefault();}});$(document).on('show.bs.popover','[data-custom-popover]',function(){if(this.hasAttribute('aria-expanded')){this.setAttribute('aria-expanded','true');}});$(document).on('hidden.bs.popover','[data-custom-popover]',function(){if(this.hasAttribute('aria-expanded')){this.setAttribute('aria-expanded','false');} 163if(document.activeElement===document.body||document.activeElement===null){this.focus();}});$(document).on('shown.bs.popover','[data-custom-popover]',function(){if(($(this).attr('data-bs-trigger')||'').includes('hover')){return;} 164const popover=getPopoverElement(this);if(!popover){return;} 165if(!popover.hasAttribute('tabindex')){popover.setAttribute('tabindex','-1');} 166popover.focus({preventScroll:true});});$(document).on('keydown','.popover',function(e){if(e.key!=='Tab'){return;} 167const focusable=getFocusable(this);const first=focusable[0]||this;const last=focusable[focusable.length-1]||this;const target=e.shiftKey?(document.activeElement===first||document.activeElement===this)&&last:document.activeElement===last&&first;if(target){e.preventDefault();target.focus();}});$(document).on('keydown',function(e){if(e.key!=='Escape'){return;} 168$('[data-custom-popover]').each(function(){const popover=bootstrap.Popover.getInstance(this);if(popover&&getPopoverElement(this)){popover.hide();this.focus();}});});app.popover={init(){$('[data-custom-popover]').each(function(){const customTemplateSelector=$(this).attr('data-custom-template');$(this).popover({container:$(this).attr('data-bs-container')||'body',title:'',html:true,sanitize:false,content:()=>getTemplateHtml($(this).attr('data-custom-popover')),...(customTemplateSelector?{template:getTemplateHtml(customTemplateSelector)}:{}),});$(this).attr('title',$(this).attr('data-add-title-after-popover'));});},hideAll(){$('[data-custom-popover]').each(function(){const popover=bootstrap.Popover.getInstance(this);if(popover)popover.hide();});},};function getPopoverElement(trigger){const id=trigger.getAttribute('aria-describedby');return id?document.getElementById(id):null;} 169function getFocusable(element){return $(element).find('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])').filter(':visible').toArray();} 170function getTemplateHtml(selector){const $element=$(selector);if(!$element.is('template')){const tagName=$element.prop('tagName');console.warn(`${selector}should point to a<template>element,but ${tagName?`a<${tagName.toLowerCase()}>`:'no element'}was found`);return $element.prop('outerHTML');} 171return $element.html();}})();;function LTrim(str){if(str==null){return null;}for(var i=0;str.charAt(i)==" ";i++);return str.substring(i,str.length);} 172function RTrim(str){if(str==null){return null;}for(var i=str.length-1;str.charAt(i)==" ";i--);return str.substring(0,i+1);} 173function Trim(str){return LTrim(RTrim(str));} 174function LTrimAll(str){if(str==null){return str;}for(var i=0;str.charAt(i)==" "||str.charAt(i)=="\n"||str.charAt(i)=="\t";i++);return str.substring(i,str.length);} 175function RTrimAll(str){if(str==null){return str;}for(var i=str.length-1;str.charAt(i)==" "||str.charAt(i)=="\n"||str.charAt(i)=="\t";i--);return str.substring(0,i+1);} 176function TrimAll(str){return LTrimAll(RTrimAll(str));} 177function isNull(val){return(val==null);} 178function isBlank(val){if(val==null){return true;}for(var i=0;i<val.length;i++){if((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}}return true;} 179function isInteger(val){if(isBlank(val)){return false;}for(var i=0;i<val.length;i++){if(!isDigit(val.charAt(i))){return false;}}return true;} 180function isNumeric(val){return(parseFloat(val,10)==(val*1));} 181function isArray(obj){return(typeof(obj.length)=="undefined")?false:true;} 182function isDigit(num){if(num.length>1){return false;}var string="1234567890";if(string.indexOf(num)!=-1){return true;}return false;} 183function isMoney(str){var s=str;var moneyPattern=/^\$*\d+\.*\d\d$/;return moneyPattern.test(s);} 184function isPercentage(str){var s=str;var moneyPattern=/^\d+\.*\d*%$/;return moneyPattern.test(s);} 185function isPhone(str){var s=str;var phonePattern=/^\(?\d\d\d\)?[\s\-]?\d\d\d-\d\d\d\d$/;return phonePattern.test(s);} 186function isDate(str){var s=str;var datePattern=/^\d\d\d\d-\d\d-\d\d$/;return datePattern.test(s);} 187function isEmail(str){var s=str;var emailPattern=/^.*@{1}.*\.(net|com|org|gov|us|biz|mil|name|info|edu|uk)$/;return emailPattern.test(s);} 188function isURL(str){var s=str;var urlPattern=/^http:\/\/.*$/;return urlPattern.test(s);} 189function isNoBlankSingleAlphaToken(str){var s=str;var urlPattern=/^\w*$/;return urlPattern.test(s);}
190function findAncestor(el,sel){while((el=el.parentElement)&&!((el.matches||el.matchesSelector).call(el,sel)));return el;} 191function scrollToElement(elemSelector,offset=0){if($(elemSelector).length){let elemPosition=$(elemSelector).offset().top-50 192if(elemPosition<$(document).scrollTop()){$("html, body").animate({scrollTop:elemPosition},500);}}} 193function validateEmail(email){const re=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test(String(email).toLowerCase());} 194let defaultAjaxLoadingMarkup='<div class="ajax-loading"><img src="/web/images/default/spinning_wheel.gif" alt="Please Wait" /><div class="ajax-loading__text">Please wait...</div></div>';Number.prototype.formatMoney=function(c,d,t){var n=this,c=isNaN(c=Math.abs(c))?2:c,d=d==undefined?".":d,t=t==undefined?",":t,s=n<0?"-":"",i=parseInt(n=Math.abs(+n||0).toFixed(c))+"",j=(j=i.length)>3?j%3:0;return s+(j?i.substr(0,j)+t:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+t)+(c?d+Math.abs(n-i).toFixed(c).slice(2):"");};let maxQtyPerMenuItemPerOrder=100;let previousUrl=window.location.href;window.addEventListener('popstate',function(event){const url=window.location.href;if(url!==previousUrl){previousUrl=url;window.location=document.location;}});jQuery.fn.scrollTo=function(elem,speed){$(this).animate({scrollTop:$(this).scrollTop()-$(this).offset().top+$(elem,$(this)).offset().top},speed==undefined?500:speed);return this;};var timeslotSlideIndex=0;var timeslotSliderLocked=false;var savingMenuItem=false;$(function(){$('body').on('click','.customer-info-edit',function(e){$('.customer-info-section').show();$('.customer-info-section-edit').hide();$(this).closest('.customer-info-section').hide();$('.'+$(this).attr('relatedsection')).show();e.preventDefault();});$('body').on('click','.customer-info-save',function(e){let updatefield=$(this).attr('updatefield');let editsection=$(this).closest('.customer-info-section-edit');let fieldsvalue='';let fieldstext='';let proceed=true;let inpt=this;if(updatefield=="email"){proceed=!editsection.find('#checkout_email').hasClass('input-error');if(proceed){fieldsvalue='&email='+encodeURIComponent(editsection.find('#checkout_email').val());fieldstext=editsection.find('#checkout_email').val();}}else{if(updatefield=="fullname"){proceed=!editsection.find('#checkout_first_name').hasClass('input-error')&&!editsection.find('#checkout_last_name').hasClass('input-error');if(proceed){fieldsvalue=('&firstname='+editsection.find('#checkout_first_name').val());fieldsvalue=fieldsvalue+('&lastname='+editsection.find('#checkout_last_name').val());fieldstext=editsection.find('#checkout_first_name').val()+' '+editsection.find('#checkout_last_name').val();}}else if(updatefield=="phonenumber"){proceed=!editsection.find('#pickup-telephone').hasClass('input-error');if(proceed){fieldsvalue='&phonenumber='+editsection.find('#pickup-telephone').val();fieldstext=editsection.find('#pickup-telephone').val();}}} 195if(proceed){$.ajax({url:'/'+UrlTag+'/?form=updatecustomer&updatefield='+updatefield+fieldsvalue,success:function(data){data=JSON.parse(data);if(data.success){if(updatefield=="email"){$('#email-text').text(fieldstext);}else{if(updatefield=="fullname"){$('#fullname-text').text(fieldstext);}else if(updatefield=="phonenumber"){$('#phonenumber-text').text(fieldstext);}} 196$(inpt).closest('.customer-info-section-edit').hide();$('.'+$(inpt).attr('relatedsection')).show();editsection.find('.error').hide();}else{if(data.message){editsection.find('.error').html(data.message).show();} 197if(updatefield=="email"){editsection.find('#checkout_email').addClass('input-error');}else{if(updatefield=="phonenumber"){editsection.find('#pickup-telephone').addClass('input-error');}}}}});} 198e.preventDefault();});$('body').on('mouseenter','[data-show-on-hover]',function(e){var $target=$($(this).data('show-on-hover'));$target.show();});$('body').on('mouseout','[data-show-on-hover]',function(e){var $target=$($(this).data('show-on-hover'));$target.hide();});$('body').on('mouseenter','[data-show-popover-box]',function(e){var $target=$($(this).data('show-popover-box'));var left=e.clientX-25+"px";var top=e.clientY+"px";$target.show().css('top',top).css('left',left);});$('body').on('mouseout','[data-show-popover-box]',function(e){var $target=$($(this).data('show-popover-box'));$target.hide();});
198$('body').on('click','[data-show-on-click]',function(e){var $target=$($(this).data('show-on-click'));$target.show();});$('body').on('click','[data-hide-on-click]',function(e){var $target=$($(this).data('hide-on-click'));$target.hide();});$('body').on('click','[data-show-selected]',function(e){var $hide=$($(this).data('show-selected'));$hide.hide();var $show=$($(this).data('show-selected')+'-'+$(this).val());$show.show();});$('[data-show-selected]').each(function(e){var $hide=$($(this).data('show-selected'));$hide.hide();var $show=$($(this).data('show-selected')+'-'+$(this).val());$show.show();});$('body').on('change','[data-required-field]',function(e){var $target=$(this);$target.removeClass('input-success, input-error');if($target.hasClass('input-email')){$target.addClass(validateEmail($target.val())?'input-success':'input-error');if(validateEmail($target.val())){$target.closest(".form-group").find(".invalid-feedback:first").remove();} 199return;} 200if($target.hasClass('input-first-name')||$target.hasClass('input-last-name')){$target.addClass(($target.val().length>28||$target.val().length<1)?'input-error':'input-success');return;} 201$target.addClass($target.val().length?'input-success':'input-error');if($target.val().length){$target.closest(".form-group").find(".invalid-feedback:first").remove();} 202if(isCheckout()){if($(this).parents('.deliveryAddressContainer').length){validateAddAddressForm();}}});$('body').on('click','[data-change-url-on-click]',function(e){const url=$(this).attr('data-change-url-on-click');const group=$(this).attr('data-change-url-group');const previousGroup=history.state&&history.state.group||$(`[data-change-url-on-click="${window.location.href}"]`).attr('data-change-url-group');if(group&&previousGroup&&group===previousGroup){history.replaceState({group},'',url);}else{history.pushState({group},'',url);} 203previousUrl=url;});$(`[data-change-url-on-click="${window.location.href}"]`).each(function(){const url=$(this).attr('data-change-url-on-click');const parentUrl=$(this).attr('data-parent-url');if(url&&parentUrl){const group=$(this).attr('data-change-url-group');history.replaceState({},'',parentUrl);history.pushState({group},'',url);previousUrl=url;return false;}});$('body').on('click','[data-ajax-modal-url]',function(){var $modal=$($(this).data('target'));if(!$modal.data('loaded')||$modal.data('load-everytime')){initAjaxLoader($modal.find('.ajax-modal-content'));$modal.find('.ajax-modal-content').load($(this).data('ajax-modal-url'));$modal.data('loaded',true);}});initPopovers();initCountdowns();initJqueryMask();updatePaymentChoices() 204$('body').on('click','.popover .close, .popover [data-close-popover]',function(e){e.preventDefault();var $this=$(this);if($this[0]&&$this[0].hasAttribute('data-select-later-date')){if(!validateRequiredFields($('.popover.show'))){return false;} 205var timeSlot=false;if($('.popover.show .timepicker-slots').length){if(!validateTimeSlot($('.popover.show'))){return false;} 206if($('.popover.show [data-timeslot-month]').hasClass('selected')){var date=new Date($('.popover.show [data-datetimepicker]').datepicker('getDate'));var dateString=date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();}else{var $selectedTimeSlotDay=$('.popover.show .roll_day.selected');var dateString=$selectedTimeSlotDay.data('select-day');} 207timeSlot=$('.popover.show .rad-ready_at_time:checked').data('time-slot-id');}else{var date=new Date($('.popover.show [data-datetimepicker]').datepicker('getDate'));var dateString=date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();} 208updateLaterLabel(dateString+' '+$('.popover .rad-ready_at_time:checked').val(),timeSlot,true);} 209hidePopover($this.parents('.popover'));});$('body').on('click','[data-close-a-popover]',function(e){let $popover=$($(this).data('close-a-popover'));if($popover&&$popover.length){if($popover.parents('.popover').length){hidePopover($popover.parents('.popover'));}}});$('body').on('click','[data-switch-to-pickup]',function(e){if($('#order-type-pickup-1').length){$('#order-type-pickup-1').trigger('click');}else{$('.orderTypeOption[data-base="PICKUP"]').trigger('click');}});$('body').on('click','[data-close-modal]',function(e){e.preventDefault();let $this=$(this);$this.parents('.modal').modal('hide');});$(document).on('hidden.bs.modal',function(event){if($('.modal:visible').length){$('body').addClass('modal-open');}});$('body').on('change','[data-order-type-on-change]',function(){if(isCheckout()){saveorderDetailsModal(this);} 210toggleOrderTypeDeliveryAddress(this);});function toggleOrderTypeDeliveryAddress(element){const baseType=element.dataset.base||element.value 211let addressNotRequired=!!element.dataset.noAddress 212if(baseType!="DELIVERY"||addressNotRequired){$('.checkout_address.deliveryAddressContainer').hide();
212$('.deliveryAddress').prop('checked',false) 213$('.show-for-order-type-DELIVERY').hide();}else{$('.show-for-order-type-DELIVERY').show();$('.checkout_address.deliveryAddressContainer').show();}} 214function saveorderDetailsModal(element){const baseType=element.dataset.base||element.value;var categoryUrl=$('#hid-category-id').length?('&cid='+$('#hid-category-id').val()):'';var checkoutUrl='&checkout='+(isCheckout()?1:0);updateFields('/'+UrlTag+'/?form=updateordertype&v=3&t='+escape(element.value)+categoryUrl+checkoutUrl,'type').done(()=>app.event.emit('order_type_updated',{order_type:element.value}));let $orderTypeOption=$(element);$('.pickupContainer').toggle(baseType==='PICKUP');toggleOrderTypeDeliveryAddress(element);var dataConstant=$(element).attr('data-constant') 215$('.paymentOptionLi').show();updatePaymentChoices(dataConstant);$('.payAtDescription').hide();$('.payAtOption').hide();updatePayAt(baseType,element);showOrHideOrderNotifications(baseType);showOrHideByOrderType(baseType);updateCreditCards(undefined,baseType);updateMobileOType($orderTypeOption.parents('.order-options').first());updateOrderTypeLabel($orderTypeOption.data('name'));} 216$('[data-saveotype-modal]').on('click',function(e){if(!validateRequiredFields($('.modal.show'))){e.preventDefault();return false;} 217var selectedOtype=document.querySelectorAll('.selectedCheckbox[data-order-type-on-change]');updateMobileOType($("#modal-order-options"));if(selectedOtype.length>0){saveorderDetailsModal(selectedOtype[0]);}});$('[data-order-type-on-change]').on('change',function(){$('[data-order-type-on-change]').removeClass('selectedCheckbox');$(this).addClass('selectedCheckbox');});function updatePayAt(baseType,option){if(baseType==undefined){let options=$('[data-order-type-on-change]:checked');if(options.length){option=options[0];baseType=option.dataset.base||option.value;}} 218if(option){let $payAtOrderType=$('.payAt'+baseType+' .orderType');if(option.dataset.base){$payAtOrderType.html(option.dataset.name);}else{$payAtOrderType.html($payAtOrderType.data('default'));} 219$('.payAt'+baseType).show();}} 220updatePayAt();showOrHideOrderNotifications($('.checkout_steps [data-order-type-on-change]:checked').val());showOrHideByOrderType($('.checkout_steps [data-order-type-on-change]:checked').val());$('.extra_menuoption ul li .css-label').on('click',function(){$this=$(this);var inputcheck=$this.prev('input');$(inputcheck).on('change',function(){if($(this).is(":checked")){$this.parent('li').addClass('selected')}else{$this.parent('li').removeClass('selected')}});});$('body').on('click','.increment_qty',function(){var oldVal=$(this).parent().find("input").val();if(parseFloat(oldVal)>=1){var newVal=parseFloat(oldVal)+1;$(this).parent().find("input").val(newVal);calculateMenuItemPriceTotal();scheduleSaveItemPreview();}});$('body').on('click','.decrement_qty',function(){var oldVal=$(this).parent().find("input").val();if(parseFloat(oldVal)>=2){var newVal=parseFloat(oldVal)-1;$(this).parent().find("input").val(newVal);calculateMenuItemPriceTotal();scheduleSaveItemPreview();}});$('body').on('keyup','input.qty_input',function(){calculateMenuItemPriceTotal();}) 221$('body').on('change','.extra_menuoption input[type="checkbox"]',function(){calculateMenuItemPriceTotal();});$('body').on('change','select.optionChoice',function(){calculateMenuItemPriceTotal();});$('body').on('click','.showcheck_parent .css-label, .timepicker-slots .time_slot label',function(e){$this=$(this);var inputcheck=$this.prev('input').length?$this.prev('input'):$this.find('input');$(inputcheck).on('change',function(){if($(this).is(":checked")){$this.parent().addClass('selected');$this.parent().siblings().removeClass('selected');}else{$this.parent().removeClass('selected');}});e.stopPropagation();});$('body').on('click',function(){$('.when li').removeClass('selected');});$('body').on('click','.checkout_orderbox .add_tip_wrapper .add_tip',function(e){$(this).parents('.add_tip_wrapper').toggleClass('selected');e.stopPropagation();return false;});initTips();initTimePickers();showDelivery();$('body').on('change','.orderTypeOption',showDelivery);$('[data-toggle-mdrop]').on('click',function(){if($(this).hasClass('open')){$(this).parents('.what').find('[data-mdrop-ul]').addClass('mdrop-closed').removeClass('mdrop-open');}else{$(this).parents('.what').find('[data-mdrop-ul]').removeClass('mdrop-closed').addClass('mdrop-open');} 222$(this).toggleClass('open');});$('.what [data-update-mdrop-on-click]').on('click',function(){updateOrderTypeLabel($(this).text());});$('[data-toggle="tooltip"]').tooltip();$('.modal').on('hidden.bs.modal',function(){if($(this).is('#add_menu_item')){$(this).find('#menu-item-errors-alert').hide();}});$('[data-go-to-url-on-change]').on('change',(e)=>{const url=e.currentTarget.value;window.location.assign(url);});$('[data-go-to-url-on-click]').on('click',(e)=>{const checkboxSelector=e.currentTarget.getAttribute('data-go-to-url-on-click');const url=document.querySelector(checkboxSelector).value;window.location.assign(url);});$('body').on('click','[data-close-ui-dialog]',function(e){$('#coupon-error-dialog').dialog("close");});$('body').on('click','[data-apply-tip-on-click]',function(e){e.preventDefault();tip_save($(this),$(this).parents('.apply-tip-container').find('label[data-tip-on-click].active'));});$('body').on('keyup','.input-cart-custom-tip',function(){$('#hid-cart-tip').val($(this).val().replace('$','').replace('-','')-0);$(this).parents('.apply-tip-container').find('[data-tip-on-click].active').removeClass('active');$(this).parents('.apply-tip-container').find('label[data-tip-on-click="custom"]').addClass('active');if($(this).val()){$('[data-apply-tip-on-click]').removeClass('disabled')}else{$('[data-apply-tip-on-click]').addClass('disabled')}});$('body').on('click','[data-tip-on-click]',function(e){e.preventDefault();$('.tip-pay-with-cash').hide();let value=$(this).data('tip-on-click');$('[data-tip-on-click]').removeClass('active');$('[data-tip-on-click="'+value+'"]').addClass('active');let calculatedTip=$(this).data('tip-value').replace('$','');let $container=$(this).parents('.apply-tip-container');$container.find('.input-cart-custom-tip').val(calculatedTip);$container.find('.input-tip-container').show();$('[data-apply-tip-on-click]').removeClass('disabled');$('#hid-cart-tip').val(value);$('#hid-cart-tip-choice').val(value);if(value=='at_pickup'){$('.tip-pay-with-cash').show();$container.find('.input-tip-container').hide();} 223if(value=='custom'){$('.popover .input-cart-custom-tip').val('').trigger('focus');} 224$('[data-tip-on-click]').removeClass('active');$(this).addClass('active');});$('body').on('click','.apply-fee-option-container input',function(e){let $container=$(this).parents('.apply-fee-option-container').first();let $label=$(this).parents('label.btn').first();$container.find('label.btn').removeClass('active');$label.addClass('active');});function tip_save(_this,$tipAmount){let $container=$(_this).parents('.apply-tip-container');let tip=$container.find('.input-cart-custom-tip').val().replace('-','');let $cartTip=$('#hid-cart-tip');let tipAmountVal=$tipAmount.data('tip-on-click');
224let $popover=$container.parents('.popover');if($popover&&$popover.length){hidePopover($popover);} 225$('.add_tip_wrapper').find('.loadable-content').addClass('loading');saveFormStateAndReloadCart(['param_tip_s_n_10='+escape($cartTip.val()),'param_tip~amount_s_r_100='+escape(tipAmountVal)],null,true);$cartTip.val(tip);$('#hid-cart-saved-tip').val(tip);switch(tipAmountVal){case'at_pickup':$('#cart-tip').html('Cash');break;case'no_tip':$('#cart-tip').html('$0.00');break;default:$('#cart-tip').html('$'+(Math.round(tip*100)/100).toFixed(2));break;} 226$('.add_tip').addClass('has_tip');$('#cart-add-tip-wrapper').toggleClass('selected');calculateCartTotal();} 227$('body').on('click','[data-apply-bag-on-click]',function(e){e.preventDefault();var $container=$(this).parents('.apply-bag-type-container');var $bagType=$('#hid-bag-type');var $selectedBagType=$('.popover [name="param_bag~types_i_n_11"]:checked');$bagType.val($selectedBagType.val());saveFormStateAndReloadCart($bagType.attr('name'),$selectedBagType.val(),true);var $popover=$container.parents('.popover');if($popover&&$popover.length){hidePopover($popover);}});$('body').on('click','[data-open-coupon-modal]',function(e){e.preventDefault();let $couponModal=$($(this).attr('data-bs-target'));let $couponModalContent=$($(this).attr('data-bs-target')+' .modal
227-content');$couponModalContent.load('/'+UrlTag+'/?form=coupondescription',function(){setTimeout(function(){$couponModal.find("#coupon_code").trigger('focus')},400)});$couponModal.modal('show');}) 228$('body').on('click','[data-apply-fee-option-on-click]',function(e){e.preventDefault();var $container=$(this).parents('.apply-fee-option-container');var $feeOption=$('#hid-fee-option-'+$container.data('fee-id'));var $selectedOption=$('.popover [name="param_fee~option_i_n_11"]:checked');$feeOption.val($selectedOption.val());saveFormStateAndReloadCart($feeOption.attr('name'),$selectedOption.val(),true);var $popover=$container.parents('.popover');if($popover&&$popover.length){hidePopover($popover);}});$('body').on('click','[data-apply-coupon-on-click]',function(e){e.preventDefault();let $container=$(this).parents('.apply-coupon-container');let couponCode=$container.find('.input-cart-coupon-code').val();let $menuItemErrorsAlert=$('#add-coupon-errors-alert'),$menuItemErrors=$('#add-coupon-errors');$menuItemErrorsAlert.hide();const form=document.querySelector('.needs-validation');if(!form.checkValidity()){e.preventDefault() 229e.stopPropagation()} 230form.classList.add('was-validated') 231if(couponCode&&couponCode.length){var formData={'addCoupon':couponCode,'g-recaptcha-response':$container.find('[name="g-recaptcha-response"]').val()};$.post('/'+UrlTag+'/?form=updateordertype&v=3&',formData,function(data){if(data.success){hideCouponModal($container);reloadCart();}else{$menuItemErrorsAlert.show();$menuItemErrors.html(data.error);if(data.recaptcha){grecaptcha.render('coupon-recaptcha') 232$('.recaptcha-wrapper').show();}else{$('.recaptcha-wrapper').hide();} 233form.classList.remove('was-validated') 234return false}},'json').error(function(){$menuItemErrorsAlert.show();$menuItemErrors.html('An error occurred processing the coupon.');});}});$('body').on('click','[data-cart-remove-coupon]',function(e){e.preventDefault();app.popover.hideAll();if(confirm('Are you sure you want to remove the coupon from your order?')){$.get('/'+UrlTag+'/?form=updateordertype&v=3&removeCoupon=1',function(data){reloadCart();$(e.target).parents('.modal-content').load('/'+UrlTag+'/?form=coupondescription');return true;})}});$('body').on('shown.bs.modal','#modal-order-options',function(){if($('.time_slots').length){var readyAtDate=getReadyAtDate();updateTimeSlotDayAndMonth();reloadAvailableTimes(readyAtDate);} 235if(typeof initAjaxDatePickersBySelector=='function'){initAjaxDatePickersBySelector('#modal-order-options');}});$('body').on('shown.bs.modal','#modal-view-delivery-zone',function(){let $iframe=$("#iframe-view-delivery-area");if(!$iframe.prop('src')){$iframe.prop('src',$iframe.data('src'));}});$('body').on('shown.bs.modal','#modal-order-time',function(){let timeTypeValue=$('[name="param_order~time~type_i_n_1"]:checked').val();if(timeTypeValue==1){if(typeof initAjaxDatePickersBySelector=='function'){initAjaxDatePickersBySelector('.select-time-container');checkSelectedTimeInModal();showAsapOrLaterInModal();}} 236showAsapOrLaterInModal();});$('body').on('change','.orderTimeTypeOption',function(){var later=$(this).hasClass('timeswitch');$('#laterContent').toggleClass('d-none',!later);$('#asapContent').toggleClass('d-none',later);});$('body').on('click','[data-save-time-modal]',function(e){e.preventDefault();let $this=$(this);let $timeTypeValue=$('[name="param_order~time~type_i_n_1"]:checked').val();let $hourValue=$('[name="param_ready~at~time_s_n_15"]:checked').val();let isLater=$('.modal.show [name="param_order~time~type_i_n_1"]:checked').val()==1||$timeTypeValue==1;let timeSlot=false;if(isLater&&!$hourValue&&$('.modal.show .rad-ready_at_time').length){let $firstSlot=$('.modal.show .rad-ready_at_time').first();$firstSlot.prop('checked',true).trigger('change');$hourValue=$firstSlot.val();timeSlot=$firstSlot.data('time-slot-id')||false;} 237if(isLater&&$this[0]){if(!validateRequiredFields($('.modal.show'))){$('#modal-order-options').animate({scrollTop:$(document).height()},1500);return false;} 238let dateString='';if($('.modal.show .timepicker-slots').length){if(!validateTimeSlot($('.modal.show'))){return false;} 239if($('.modal.show [data-timeslot-month]').hasClass('selected')){let date=new Date($('.modal.show [data-datetimepicker]').datepicker('getDate'));dateString=date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();}else{let $selectedTimeSlotDay=$('.modal.show .roll_day.selected');dateString=$selectedTimeSlotDay.data('select-day');} 240timeSlot=$('.modal.show .rad-ready_at_time:checked').data('time-slot-id');}else{let date=new Date($('.modal.show [data-datetimepicker]').datepicker('getDate'));dateString=date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();} 241let selectedTime=$('.modal.show .rad-ready_at_time:checked').val()||'';if(!selectedTime&&$('.modal.show .rad-ready_at_time').length){let $firstSlot=$('.modal.show .rad-ready_at_time').first();$firstSlot.prop('checked',true);selectedTime=$firstSlot.val();timeSlot=$firstSlot.data('time-slot-id')||false;} 242if(selectedTime){$('.hid-ready-at').val(dateString+' '+selectedTime);}
243updateLaterLabel(dateString+' '+selectedTime,timeSlot,false);}else if(!isLater){$('#order_time_type_0-1').trigger('click');$('[data-change-label-to-later-date]').removeClass('highlighted');$('[data-otype-time-day]').html('ASAP');$('[data-otype-time-break]').addClass('hidden');$('[data-otype-time]').addClass('hidden');} 244let readyAtData=['param_order~time~type_i_n_1'+'='+$timeTypeValue,'param_ready~at_s_n_50'+'='+escape($('.hid-ready-at').val()),'param_ready~at~time~slot_i_n_15'+'='+escape(timeSlot?timeSlot:''),'param_ready~at~time_s_n_15'+'='+escape(timeSlot?'':($hourValue?$hourValue:''))];saveFormStateAndReloadCart(readyAtData,null,true);$('#modal-order-time #hid-order-time-type').val($timeTypeValue);$this.parents('.modal').modal('hide');});$('body').on('click','[data-change-label-to-later-date]',function(){if($('.time_slots').length){var readyAtDate=getReadyAtDate();updateTimeSlotDayAndMonth();reloadAvailableTimes(readyAtDate);} 245if(typeof initAjaxDatePickersBySelector=='function'){initAjaxDatePickersBySelector('.select-time-container');checkSelectedTimeInModal();}});$('body').on('hide.bs.modal','#add_menu_item',function(){saveItemPreview();});$('body').on('dp.hide',function(e){$('[data-datetimepicker]').replaceWith('<div data-datetimepicker></div>');});$('#add_address_modal .input-street-address, #add-address-city, #add-address-state, #add-address-zip').on('input',function(e){let code=e.keyCode||e.which 246if(code!='9'){$('#add-address-latitude').val('') 247$('#add-address-longitude').val('')} 248if($('#add_address_modal .input-street-address').val()&&$('#add-address-city').val()&&$('#add-address-state').val()&&$('#add-address-zip').val()){let $deliveryAddressContainer=$(this).parents('.deliveryAddressContainer').first();validateAddress($deliveryAddressContainer,2000);}else{$('#btn-add-address').attr('disabled','1');}});$('#address-telephone').on('input',function(e){let $selector=$('#add_address_modal');validateRequiredFields($selector);validateAddAddressForm();});$('[data-clean-fields-before-submit]').on('submit',function(){if($('.checkout_content [data-order-type-on-change]:checked').data('base')!='DELIVERY'){$('[data-remove-on-non-delivery-orders]').remove();}else{}});$('#checkout-form').on('submit',function(){if($('#hid-use-spreedly').length){if(readyForSubmit){if(this.dataset.submitted=='yes'){return false;}else{this.dataset.submitted='yes';} 249return true;}else{doRecache();return false;}}else{if(this.dataset.submitted=='yes'){return false;}else{this.dataset.submitted='yes';} 250return true;}});$('[data-set-address-on-click]').on('click',function(e){e.preventDefault();$('.where_search').addClass('searching');$('#top-menu-address').focus();});$(function(){$(document).on('keyup',function(e){switch(e.keyCode){case 37:if($('#add_menu_item').hasClass('show')){$('.sideNavItemLeft').click();} 251break;case 39:if($('#add_menu_item').hasClass('show')){$('.sideNavItemRight').click();} 252break;}});});$('body').on('click','[data-load-menu-item]',function(e){let id=$(this).data('load-menu-item');let priceId=$(this).data('price-id');let cartUid=$(this).data('cart-uid');let menuId=$(this).data('menu-id');let categoryId=$(this).data('category-id');saveItemPreview();loadMenuItem(id,priceId,cartUid,menuId,categoryId);});$('body').on('click','a[data-load-menu-item]',function(e){e.preventDefault();});$(document).on('click',"[data-edit-credit-card-modal]",function(e){e.preventDefault();if($('#hid-checkout').length){createCustomerAjax(true);}
252else{$('#modal-add-new-card').modal('show');$('#modal-add-new-card .ajax-creditcards').load('?form=creditcards&edit=-1&checkout=0');}});$(document).on('change',"[data-create-customer-on-change]",function(e){if($('#hid-checkout').length){createCustomerAjax(false);}});$('body').on('input','#add-credit-card-number',function(){let cardNumber=$(this).val();let type='unknown';switch(cardNumber.charAt(0)){case 3:type='amex';break;case 4:type='visa';break;case 5:type='mc';break;case 6:type='disc';break;}});$(document).on("shown.bs.popover",'[data-custom-popover]',function(){$(this).attr('popovershown','1');});$(document).on("hidden.bs.popover",'[data-custom-popover]',function(){$(this).attr('popovershown','0');});$(document).on('mousedown',function(e){$('[data-custom-popover]').each(function(){if(!$(this).is(e.target)&&$(this).has(e.target).length===0&&$('.popover.show').has(e.target).length===0&&!$(e.target).is('.ui-icon, .ui-datepicker-next, .ui-datepicker-prev')){if($(this).attr('popovershown')=="1"){bootstrap.Popover.getInstance($(this)).hide();}}});});$('body').on('change','.addon-extra .pizzaoption',function(){addonId=$(this).attr('data-addon-id');pizzaChoice=$(this).val();priceId=$('.itemPrice:checked').val();updateExtraPrice(addonId,pizzaChoice,priceId);});$('body').on('change','.addon-option .pizzaoption',function(){addonId=$(this).attr('data-addon-id');pizzaChoice=$(this).val();priceId=$('.itemPrice:checked').val();selectedChoice=$('#option_'+addonId+'_0').val();var $multiplicityContainer=$(this).parents('[data-multiplicity-type="1"]');if($multiplicityContainer.length){selectedChoice=$(this).parents('.addon-option').first().find('[data-multiplicity-checkbox]').val();updateOptionPriceByMultiplicity(addonId,pizzaChoice,priceId,selectedChoice,1);}else{updateOptionPrice(addonId,pizzaChoice,priceId,selectedChoice);}});$('body').on('click','[data-multiplicity-checkbox]',function(e){var $multiplicityContainer=$(this).parents('[data-multiplicity-type="1"]').first();var multiplicity=$multiplicityContainer.data('multiplicity').toString();var $multiplicityChecked=$multiplicityContainer.find('[data-multiplicity-checkbox]:checked');var max=multiplicity;if(multiplicity.indexOf('-')!=-1){var multiplicityArray=multiplicity.split('-');max=multiplicityArray.pop();}else if(multiplicity.indexOf(',')!=-1){var multiplicityArray=multiplicity.split(',');max=multiplicityArray.pop();}else if(multiplicity==='0'){max=999999;} 253if($multiplicityChecked.length>max){e.preventDefault();$(this).prop('checked',false).attr('checked',false);} 254updateMultiplicityLabels();});$('body').on('change','[data-validate-address-on-change]',function(e){if(isCheckout()){$('.checkout_content #add-address-latitude').val('');$('.checkout_content #add-address-longitude').val('');validateAddress($(this).parents('.deliveryAddressContainer').first(),0);}});setOriginalSelect();updateCreditCards();$('.input-current-phone').mask('(000) 000-0000');$('body').on('click','[data-fill-login-email]',function(e){e.preventDefault();$('#login-modal [name="email"]').val($('#checkout_email').val());});$(document).on('click','[data-confirm-payment-switch]',function(e){var paymentOption=$(this).data('confirm-payment-switch');changePaymentOption(paymentOption);});$(document).on('click','[data-confirm-no-number-address]',function(e){noNumberAddressConfirmed=true;if($noNumberAddressContainer&&$noNumberAddressContainer.length&&$noNumberAddressForm&&$noNumberAddressForm.length){proceedWithValidateAddress($noNumberAddressContainer,$noNumberAddressForm);}});$(document).on('click','[data-cancel-no-number-address]',function(e){if($noNumberAddressContainer&&$noNumberAddressContainer.length){$noNumberAddressContainer.find('.input-validate-address').val('').trigger('focus');if($noNumberAddressContainer.hasClass('top_menu_address')){scheduleFormStateSave('param_full~address_s_n_255','');}}});$('body').on('click','[data-select-day]',function(e){e.preventDefault();var date=$(this).data('select-day');$('.roll_days .roll_day').removeClass('selected');$('[data-select-day="'+date+'"]').addClass('selected');reloadAvailableTimes(date);});$('body').on('click','[data-timeslot-next-slide]',function(e){e.preventDefault();if(timeslotSliderLocked){return;} 255var $slides=$('.show .slides_content');timeslotSliderLocked=true;var slideWidth=$('.show .slides').css('width').replace('px','')-0;$slides.animate({'left':$slides.css('left').replace('px','')-slideWidth+'px'},400,'swing',function(){timeslotSliderLocked=false;updateTimeSlotMonth();});timeslotSlideIndex++;loadMoreTimeslots();$('.show .roll_days .angle-left').removeClass('disabled');});$('body').on('click','[data-timeslot-prev-slide]',function(e){e.preventDefault();if(timeslotSliderLocked){return;} 256var $slides=$('.show .slides_content');var slideWidth=$('.show .slides').css('width').replace('px','')-0;var oldLeft=$slides.css('left').replace('px','')-0;var left=oldLeft+slideWidth>0?0:(oldLeft+slideWidth);timeslotSliderLocked=true;$slides.animate({'left':left+'px'},400,'swing',function(){timeslotSliderLocked=false;updateTimeSlotMonth();});if(left=='0'){$('.show .roll_days .angle-left').addClass('disabled');} 257timeslotSlideIndex--;});$('body').on('click','[data-timeslot-week]',function(e){e.preventDefault();$('.select-time-header .tabs .tab').removeClass('selected');$('.select-time-header .tabs [data-timeslot-week]').addClass('selected');$('.select-time-content .roll_days').show();$('.select-time-content .datepicker').hide();});$('body').on('click','[data-timeslot-month]',function(e){e.preventDefault();$('.select-time-header .tabs .tab').removeClass('selected');$('.select-time-header .tabs [data-timeslot-month]').addClass('selected');initAjaxDatePickersBySelector('.popover');$('.select-time-content .roll_days').hide();$('.select-time-content .datepicker').show();});});
257function showAsapOrLaterInModal(){const later=$('#modal-order-time #hid-order-time-type').val()==1;$(later?'#order_time_type_1-1':'#order_time_type_0-1').prop('checked',true).trigger('change');} 258function updatePaymentChoices(dataConstant){let orderValue=$('#hid-cart-total').val()-0;if(orderValue==0){$('#payment-container').hide();return;} 259if(dataConstant==undefined){dataConstant=$('[data-order-type-on-change]:checked').attr('data-constant')} 260let minAmountCondition=$('#cart-right-side').find('#hid-min-amount-condition');let hideNonCcOptions=minAmountCondition.length&&minAmountCondition.val() 261if(hideNonCcOptions){$(".noCCOptions").hide().removeClass("selected") 262$(".noCCOptions").prop('checked',false);}else{$(".noCCOptions").show();} 263if(!($('#option_payWith_2').attr('data-types')&dataConstant)){$('#payment_type_credit').prop('checked',false) 264$('#option_payWith_2').hide().removeClass("selected")}else{$('#option_payWith_2').show()} 265$('[data-types]').each(function(){if(!($(this).attr('data-types')&dataConstant)||(hideNonCcOptions&&$(this).hasClass('noCCOptions'))){$(this).find('input').prop('checked',false) 266$(this).hide().removeClass("selected") 267$(this).find('.cc_image').hide()}else{$(this).show() 268$(this).find('.cc_image').show()}})} 269function loadMenuItem(id,priceId,cartUid,menuId,categoryId) 270{if(id||cartUid){if($('#overlay').length==0){let overlay=jQuery('<div id="overlay"> </div>');overlay.appendTo(document.body);}else{$('#overlay').show();} 271let url='/'+UrlTag+'/?form=menuitem&id='+id;if(cartUid){url='/'+UrlTag+'/?form=menuitem&cartuid='+cartUid;} 272if(priceId){url+='&option='+priceId;scheduleSaveItemPreview();} 273if(menuId){url+='&mid='+menuId;} 274if(categoryId){url+='&cid='+categoryId;} 275let itemsId=$('#items-id').val();if(itemsId){url+='&itemsid='+itemsId;} 276if(window.UNAVAILABLE_MENU_IDS){url+='&unavailableitemids='+window.UNAVAILABLE_MENU_IDS;} 277let container='.menu-item-container';let $container=$(container);var $menuItemContainer=$('.menu-item-container');const itsTheSameMenuItem=cartUid?$menuItemContainer.attr('data-cart-uid')==cartUid:$menuItemContainer.attr('data-menu-item-id')==id;if(!$('#add_menu_item').hasClass('show')&&!itsTheSameMenuItem){const hasImage=$(`[data-load-menu-item="${id}"]`).closest('li').find('figure').length>0;const itemName=$(`[data-load-menu-item="${id}"]`).first().text().trim();$('#add_menu_item').find('.modal-dialog').toggleClass('modal-xl',hasImage);$menuItemContainer.toggleClass('add_menu_with_image',hasImage).toggleClass('add_menu_without_image',!hasImage).html('<button class="close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>'+'<h2 id="item_name" class="sr-only"></h2>'+'<div class="addmenu_wrapper pb-0">'+ 278(hasImage?'<figure class="menu_pic bg-light"></figure>':'')+'</div>');$menuItemContainer.find('#item_name').text(itemName||'Menu item');}else if($('#add_menu_item').hasClass('show')){$menuItemContainer.find('.loadable-content').addClass('loading');$menuItemContainer.block({message:"",overlayCSS:{backgroundColor:'transparent'}});} 279$container.load(url,function(response,status,xhr){$(container).replaceWith($(response));$('#overlay').hide();initJqueryMask();updateMultiplicityLabels();$('.modal.add_menu [data-toggle="tooltip"]').tooltip();$('#add_menu_item').find('[data-toggle-conditional-addon]').each(function(){toggleConditionalAddon($('#option_'+$(this).data('toggle-conditional-addon')+'_'+$(this).data('toggle-conditional-addon-index'))[0],$(this).data('toggle-conditional-addon'),$(this).data('toggle-conditional-addon-index'),$(this).data('toggle-conditional-addon-item'),$(this).data('toggle-conditional-addon-edit'),$(this).data('toggle-conditional-addon-cartuid'));});if($(container).hasClass('menu-item-with-image-container')){$('#add_menu_item').find('.modal-dialog').addClass('modal-xl');} 280else{$('#add_menu_item').find('.modal-dialog').removeClass('modal-xl');} 281calculateMenuItemPriceTotal();});}} 282function initTimePickers() 283{$("[data-datepicker]").each(function(){let datepickerInput=this;let datePickerOptions={'dateFormat':"mm/dd/yy",'changeYear':true,'changeMonth':true,'yearRange':"1900:-5"} 284if(this.hasAttribute('data-save-on-change')){datePickerOptions.onSelect=function(e){scheduleFormStateSave(datepickerInput.name,datepickerInput.value);};} 285$(this).datepicker(datePickerOptions);});} 286let last_selected_date=null;let force_reload_dates=false;let dtp_selected_date=new Date();let availableDates=null;let last_order_type=null;function initAjaxDatePickers() 287{initAjaxDatePickersBySelector('');} 288function initAjaxDatePickersBySelector(selector) 289{if(selector){selector=selector+' ';} 290$(selector+'[data-datetimepicker]').each(function(){const $el=$(this);if($el.hasClass('hasDatepicker')){$el.datepicker('destroy').empty();$el.removeClass('hasDatepicker').removeAttr('id');}else{$el.empty();}});$(selector+'[data-datetimepicker]').each(function(){let input,picker,token,timetowait;token=null;input=$(this);timetowait=300;function loadDatesAjax(c_token){if(c_token!==token){return;} 291picker.attr('data-state','loading');$.ajax({url:'/'+UrlTag+'/?form=getavailabledates',data:{date:formatDateToYmd(dtp_selected_date)},dataType:'json',success:function(data){last_order_type=$('.orderTypeOption:checked').length?$('.orderTypeOption:checked').attr('data-base'):null 292picker.attr('data-state','loaded');availableDates=data;$(selector+'[data-datetimepicker]').datepicker('refresh');}});} 293function loadDates(){if(picker===undefined){picker=$(input);picker.attr('data-state','');} 294let order_type=$('.orderTypeOption:checked').length?$('.orderTypeOption:checked').attr('data-base'):null;if(!force_reload_dates&&last_selected_date&&dtp_selected_date&&last_selected_date.getFullYear()==dtp_selected_date.getFullYear()&&last_selected_date.getMonth()==dtp_selected_date.getMonth()&&last_selected_date.getDate()==dtp_selected_date.getDate()&&last_order_type==order_type){return;} 295force_reload_dates=false 296last_selected_date=dtp_selected_date?new Date(dtp_selected_date.getTime()):null;var new_token=new Date();token=new_token;setTimeout(function(){loadDatesAjax(new_token);},timetowait);} 297let firstDay=input.data('datepicker-first-day')?input.data('datepicker-first-day'):null;let minDate=input.data('datepicker-min-date')?input.data('datepicker-min-date'):null;const minDateObj=minDate?$.datepicker.parseDate('yy-mm-dd',minDate):null;input.datepicker({format:'yyyy-mm-dd',updateViewDate:false,minDate:minDateObj?minDateObj:0,onChangeMonthYear:function(year,month,inst){dtp_selected_date=new Date(year,month-1,1);let currentYear=new Date().getFullYear() 298if(year>currentYear+1||year<currentYear-1){dtp_selected_date=new Date();input.datepicker('setDate',formatDateTomdY(dtp_selected_date))} 299loadDates();},beforeShowDay:function(date){let val=Array.isArray(availableDates)&&$.inArray(formatDateToYmd(date),availableDates)>=0?true:false;return[val,""];},onSelect:function(date){reloadAvailableTimes(date);},onClose:function(){reloadAvailableTimes();},firstDay:firstDay});var readyAtDate=getReadyAtDate();input.datepicker('setDate',readyAtDate);loadDates();reloadAvailableTimes(readyAtDate);});} 300function getReadyAtDate() 301{let defaultDate=false;let defaultDateObj=null;if($('.hid-ready-at').val()){defaultDate=$('.hid-ready-at').val();defaultDateObj=moment(defaultDate).toDate();}else if($('.hid-eot').val()){defaultDateObj=moment($('.hid-eot').val()).toDate();} 302if(Array.isArray(availableDates)&&$.inArray(formatDateToYmd(defaultDateObj),availableDates)==-1&&$('.hid-eot').val()){defaultDateObj=moment($('.hid-eot').val()).toDate()} 303dtp_selected_date=defaultDateObj?new Date(defaultDateObj.getTime()):new Date();let preview=formatDateTomdY(dtp_selected_date);let valid=true;if(moment(preview,'MM/DD/YYYY',true).isValid()===false){valid=false;}
303else{let test=new Date(preview);if(test.getFullYear()<2020){valid=false;}} 304if(valid){return preview;}else{return moment().format('MM/DD/YYYY');}} 305function initPopovers(){app.popover.init();} 306function initJqueryMask() 307{$('[data-jquery-mask]').each(function(){let mask=$(this).data('jquery-mask');$(this).mask(mask);});} 308function ajaxLoad($container,url,data,complete){initAjaxLoader($container);$container.load(url,data,complete);} 309function calculateMenuItemPriceTotal() 310{let $menuItemContainer=$('.menu-item-container');let total=0;$menuItemContainer.find('.extra_menuoption input[type="checkbox"]:checked').each(function(){let $price=$(this).siblings('label').find('.price');if($price.length){let price=parseFloat($price.html().replace(/[^0-9.]/g,""));total+=price;}});$menuItemContainer.find('select.optionChoice').each(function(){let $option=$(this).find(":selected");if($option.length&&$option.data('price')){let price=parseFloat($option.data('price'));if($(this).hasClass('conditional_addon_select')){if($(this).parents('.conditional_addon.selected').length){let parentSelectId=$(this).attr('conditional_parent_id');let checkboxId=parentSelectId.replace("option_","extra_");let $checkbox=$('#'+checkboxId);if($checkbox.length&&$checkbox.attr('type')==='checkbox'){if($checkbox.prop('checked')){total+=price;}}else{total+=price;}}}else{total+=price;}}});let itemPrice=parseFloat($menuItemContainer.find('.menu-item-price :checked').siblings('label').find('.price').html().replace('$',''));total+=itemPrice;let qty=parseInt($menuItemContainer.find('#menu-item-quantity').val());$menuItemContainer.find('.add-to-cart-price-total').html('$'+(total*(qty?qty:1)).toFixed(2));} 311function showAjaxDialog(title,url,width,height){width=(typeof width!=='undefined')?width:($(window).width()>600?600:$(window).width()-20);height=(typeof height!=='undefined')?height:($(window).width()>400?400:$(window).height()-20);$('#ajaxdialog').remove();var tag=$("<div id='ajaxdialog'></div>");$.ajax({url:url,success:function(data){tag.html(data).dialog({modal:false,minWidth:width,minHeight:height,title:title}).dialog('open');}});return false;} 312function showDelivery(){if($('.checkout_content').length){if($('.checkout_content [data-order-type-on-change]:checked').hasClass('deliveryswitch')){$('.checkout_address.deliveryAddressContainer').show();$('.user-address-field').each(function(index){if($(this).hasClass('r-required')){$(this).attr('name',$(this).attr('name').replace('_n_','_r_'));}});}else{$('.user-address-field').each(function(index){if($(this).hasClass('r-required')){$(this).attr('name',$(this).attr('name').replace('_r_','_n_'));}});$('.checkout_address.deliveryAddressContainer').hide();}}} 313function errFunc(xmlObj,status,error){showAlert('Connection error',"We're having some issues with this operation. Could you try again later, or get in touch with us?");console.error('AJAX failure',xmlObj,status,error)} 314function showAlert(title,description,closeBtnText){$('#modal-alert .modal-title').html(title?title:'Error');$('#modal-alert .modal-body').html(description);$('#modal-alert .btn-close-modal').html(closeBtnText?closeBtnText:'Close');$('#modal-alert').modal('show');} 315function toggleConditionalAddon(elem,option,child,item_id,edit_mode,cartuid){if(elem){if(elem.type=='checkbox'){var targetElem=$('#conditional_addon_'+option+'_'+child);if(targetElem){if(elem.checked==true){targetElem.show().addClass('selected');}else{try{var v=targetElem.firstChild.nextSibling.firstChild.firstChild.nextSibling.nextSibling;if(v.tagName=='SELECT'){v.selectedIndex=0;}}catch(ex){try{var v=targetElem.firstChild.firstChild.firstChild;if(v.tagName=='INPUT'&&v.type=='checkbox'){v.checked=false;}}catch(ex2){}} 316targetElem.hide().removeClass('selected');} 317calculateMenuItemPriceTotal();}}else if(elem.tagName=='SELECT'){let $targetElem=$('#conditional_addon_'+option+'_'+child);if($targetElem.length>0){if(elem.selectedIndex==0){$targetElem.hide().removeClass('selected');calculateMenuItemPriceTotal();}else{var parent_id=option+'_'+child;$targetElem.load('?form=getchildaddon&v=3&ocid='+escape(elem.options[elem.selectedIndex].value)+'&item_id='+escape(item_id)+'&edit_mode='+escape(edit_mode)+'&parent_id='+escape(parent_id)+(cartuid?('&cartuid='+escape(cartuid)):''),function(response){if(response!=""){$targetElem.show().addClass('selected');}else{$targetElem.hide().removeClass('selected');} 318calculateMenuItemPriceTotal();});}}}}} 319function removeCartItem(uuid){return new Promise((resolve,reject)=>{if(!confirm('Are you sure you want to remove this item from your cart?')){reject();return;} 320const page=formname==='viewcart'?'&formname=viewcart':'';const isCheckout=$('#hid-checkout').length>0?'true':'false';$.ajax({url:'/'+UrlTag+'/?form=ajaxcart&v=3&cartaction=remove&checkout='+isCheckout+'&item='+escape(uuid)+page,success(data,textStatus,jqXHR){successCartAction(data,textStatus,jqXHR,'remove');resolve(data);},error:errFunc});});} 321function reloadCart(options={}){const page=formname==='viewcart'?'&formname=viewcart':'';const isCheckout=$('#hid-checkout').length?'true':'false';$.ajax({url:'/'+UrlTag+'/?form=ajaxcart&v=3&checkout='+isCheckout+page,success:successCartAction,error:errFunc,...options,});initTooltips();} 322function reloadReadyAt(){var $readyAtContainer=$('#readyAtContainer .cs_box_inner');$readyAtContainer.find('.loadable-content').addClass('loading');$readyAtContainer.block({message:"",overlayCSS:{backgroundColor:'transparent'}});$readyAtContainer.load('/'+UrlTag+'/?form=getcheckoutreadyat',function(){showTime();initPopovers();initAjaxDatePickers('#readyAtContainer');$('.timeswitch').on('change',showTime);$('.beforetimeswitch').on('change',showTime);});var $orderTimeTypes=$('.ordertimetypes');$orderTimeTypes.block({message:"",overlayCSS:{backgroundColor:'transparent'}});$.get('/'+UrlTag+'/?form=getordertimetypes'+'&checkout='+isCheckout(),function(data){let $data=$('<div>'+data+'</div>');$('.header .ordertimetypes').replaceWith($data.find('.ordertimetypes'));$('.order-options.modal .ordertimetypes .selecttime').replaceWith($data.find('.selecttime'));$orderTimeTypes.unblock();
322$('#modal-order-time .modal-content').replaceWith($data.find('#modal-order-time .modal-content'));initAjaxDatePickersBySelector('#modal-order-time');});} 323function successCartAction(data,textStatus,jqXHR,cartaction=null){if(textStatus=="success"){var removeCheckoutBtn=function($cart){if($cart.text().indexOf('cannot checkout')>=0){$('a[role=checkout]').addClass('btn-link').removeClass('btn-danger','btn-warning','btn-success','btn-info').attr({disabled:true,href:'javascript:void(0)'})}} 324try{removeAlerts('cart');$('#add_menu_item').modal('hide');const $cart=$('#cart-right-side, .your_order_cart');const $response=$(data);const $toast=$response.filter('[data-async-swap-oob="append"], [id^="announcement-"]');$cart.replaceWith($response.not($toast));removeCheckoutBtn($cart) 325initPopovers();force_reload_dates=true 326reloadReadyAt();result=$(data).find('.o_qty');updateMenuItemCartCount(result) 327updatePaymentChoices() 328setTimeout(()=>{if(cartaction&&(!document.activeElement||document.activeElement===document.body)){$('#cart-heading').focus();} 329if($toast.length)app.async.swapOutOfBand($toast);},500);if($('.cart_upsell').length>0){$.get('/'+UrlTag+'/?form=getupsellsupdatedcart&cartaction=add',function(upsellData,textStatus,jqXHR){if(textStatus=="success"){$('.cart_upsell').hide().html(upsellData).fadeIn(250,function(){});}})} 330return;} 331catch(ex){errFunc(jqXHR,textStatus,ex)}}else{errFunc(jqXHR,textStatus)}} 332function updateMenuItemCartCount(result){var itemObj={};$(result).each(function(index){var qty=$(this).text();var menuItemId=$(this).data('menuitemid');if((itemObj[menuItemId]!==undefined)){itemObj[menuItemId]=parseInt(itemObj[menuItemId])+parseInt(qty);}else{itemObj[menuItemId]=qty;}});if($.isEmptyObject(itemObj)){let li=$('#nav-tabContent .menucat_list li');li.find('.menu-item-count').fadeOut(200,function(){$(this).remove()});li.removeClass('cart-product');} 333$.each(itemObj,function(key,value){let mi=$('#nav-tabContent .menucat_list li.menuItem_'+key);if(mi.find('.menu-item-count').length){}else{mi.append('<span class="menu-item-count"></span>');mi.addClass('cart-product');} 334mi.find('.menu-item-count').html(value);});$('#nav-tabContent .menucat_list li').each(function(index){var flg=true;var itemid=$(this).find('a').data('loadMenuItem');$.each(itemObj,function(key1){if(itemid==key1){flg=false;}});if(flg){let mi=$('#nav-tabContent .menucat_list li.menuItem_'+itemid);mi.find('.menu-item-count').fadeOut(200,function(){$(this).remove()});mi.removeClass('cart-product');}});} 335function addOrUpdateItemToCart(item_id,item_unique_id){var errMsg=[];var d=document.getElementById('min_type');var e=document.getElementById('min_required');var ma=document.getElementById('max_available');var q=document.getElementById('menu-item-quantity');var itemName=document.getElementById('item_name').textContent;let $menuItemErrorsAlert=$('#menu-item-errors-alert');$menuItemErrorsAlert.hide();$('#add_menu_item').find('.input-error').removeClass('input-error');if(!isInteger(q.value)){q.focus();errMsg.push('Quantity must be a valid number');}else{if(q.value>maxQtyPerMenuItemPerOrder){errMsg.push('You cannot order more than 100 units of one item.');} 336if(d&&d.value==1&&e&&(q.value*1)<(e.value*1)){errMsg.push('You must order at least '+e.value+' '+itemName+'.');} 337if(ma&&ma.value>0&&q&&(q.value*1)>(ma.value*1)){errMsg.push('We are sorry, the maximum available to order is '+ma.value+'. Please adjust the quantity.');}} 338if(item_id){try{var prices=$('.itemPrice');var selectedPrice;if(prices&&prices.length){for(i=0;i<prices.length;i++){if(prices[i].checked==true){selectedPrice=prices[i].id.replace(/MENU_ITEM_PRICE_/,'');break;}}} 339if(!isInteger(selectedPrice)){var pElem=document.getElementById('hidden_price_value');if(pElem){selectedPrice=pElem.value;}} 340if(!isInteger(selectedPrice))errMsg.push('You must select a price!');var optionChoices=$('.optionChoice');var optionsOK=true;if(optionChoices&&optionChoices.length){for(i=0;i<optionChoices.length;i++){let conditional_addon=findAncestor(optionChoices[i],'.conditional_addon');if(optionChoices[i].selectedIndex==0&&(!conditional_addon||conditional_addon.style.display!='none')){optionChoices[i].classList+=' input-error';optionsOK=false;break;}}} 341$('[data-multiplicity-type="1"]').each(function(){var multiplicity=$(this).data('multiplicity').toString();var $multiplicityChecked=$(this).find('[data-multiplicity-checkbox]:checked');var max=multiplicity;var min=multiplicity;var valid=false;if(multiplicity.indexOf('-')!=-1){var multiplicityArray=multiplicity.split('-');max=multiplicityArray.pop();min=multiplicityArray[0];if($multiplicityChecked.length>=min&&$multiplicityChecked.length<=max){valid=true;}}else if(multiplicity.indexOf(',')!=-1){var multiplicityArray=multiplicity.split(',');for(var i=0;i<multiplicityArray.length;i++){if($multiplicityChecked.length==multiplicityArray[i]){valid=true;}}}else if(multiplicity==='0'){valid=true;}else{if($multiplicityChecked.length==multiplicity){valid=true;}} 342if(!valid){$(this).find('[data-multiplicity-label]').addClass('input-error');optionsOK=false;}});let $inputWithErrors=$('#add_menu_item').find('.input-error');if($inputWithErrors.length){const container=$inputWithErrors.parents('li, h5')[0];container&&(container.scrollIntoViewIfNeeded||container.scrollIntoView).c
342all(container);} 343if(errMsg.length==0&&optionsOK){var $inputs=$('#menuItemForm :input').filter(function(index){return!$(this).parents('.addons').length||$(this).is(':visible');});var serializedForm=$inputs.serialize();if(!item_unique_id&&typeof ga!=='undefined'){ga('tracking.send','pageview',{'page':'/addToCart','dimension1':UrlTag,'dimension2':'item='+escape(item_id)});} 344let isCheckout=$('#hid-checkout').length?'true':'false';let itemUrl=item_unique_id?('&iid='+escape(item_id)+'&item='+escape(item_unique_id)):('&item='+escape(item_id));const page=formname==='viewcart'?'&formname=viewcart':'';$.ajax({url:'/'+UrlTag+'/?form=ajaxcart&v=3&cartaction='+(item_unique_id?'update':'add') 345+'&checkout='+isCheckout+page+itemUrl+'&'+serializedForm,success:function(data,textStatus,jqXHR){successCartAction(data,textStatus,jqXHR,item_unique_id?'update':'add');if(!item_unique_id&&$('#getDisallowMultipleMenus').length>0)$('#getDisallowMultipleMenus').hide();},error:function(xmlObj,status,error){let json=null;let body=xmlObj.responseText;let errors=[];let errorDefault="We're having some issues with this operation. Could you try again later, or get in touch with us?";try{json=JSON.parse(body);}catch(e){errors.push(errorDefault);console.error("JSON parse failure",body);} 346if(json&&json.errors&&json.errors.length>0){try{let messages=JSON.parse(json.errors.shift().message);messages.forEach(function(row){errors.push(row);});}catch(e){errors.push(errorDefault);console.error("JSON parse failure",json.errors);}} 347if(errors.length===0){errors.push(errorDefault);errFunc(xmlObj,status,error);} 348addMenuItemErrors(errors);}});savingMenuItem=true;}else if(errMsg.length){addMenuItemErrors(errMsg);}}catch(ex){showAlert('Could not update cart',ex.message);}} 349initTooltips();} 350function initTooltips(){$('body').tooltip({selector:'[data-toggle="tooltip"]'});} 351function scrollToAndFocusAfterPanelsClose(element){element.focus({preventScroll:true});function scrollToAndFocus(){element.scrollIntoView({behavior:Math.abs(element.getBoundingClientRect().top)>2*window.innerHeight?'instant':'auto',});if(document.activeElement!==element){element.focus({preventScroll:true});}} 352const panel=document.querySelector('.offcanvas.show, .modal.show');if(!panel){app.nextTick(scrollToAndFocus);return;} 353const eventName=panel.classList.contains('modal')?'hidden.bs.modal':'hidden.bs.offcanvas';panel.addEventListener(eventName,()=>app.nextTick(scrollToAndFocus),{once:true});} 354function addMenuItemErrors(errMsg=[]){let $menuItemErrorsAlert=$('#menu-item-errors-alert');let $menuItemErrors=$('#menu-item-errors');$menuItemErrorsAlert.show();let errMsgHtml=[];for(let i=0;i<errMsg.length;i++){errMsgHtml.push('<li>'+errMsg[i]+'</li>');} 355$menuItemErrors.html(errMsg.length==1?errMsg[0]:('<ul>'+errMsgHtml.join()+'</ul>'));$menuItemErrors.removeClass('on-one-line');if($menuItemErrors.html().length<35){$menuItemErrors.addClass('on-one-line');}} 356function initTips(){if($('#hid-cart-tip').length&&$('#hid-cart-tip').val()!='custom'){$('.input-cart-custom-tip').val($('#hid-cart-tip').val()?$('#hid-cart-tip').val().toString().replace('$',''):'');} 357if($('#hid-cart-tip-choice').length){$('.apply-tip-container label').removeClass('active');$('.apply-tip-container label[data-tip-on-click="'+$('#hid-cart-tip-choice').val()+'"]').addClass('active');if($('#hid-cart-tip-choice').val()=='custom'){$('.tip-custom-ctnr').show();} 358if($('[data-tip-on-click].active').data('tip-on-click')=='at_pickup'){$('.tip-pay-with-cash').show();$('.input-tip-container').hide();}else{$('.tip-pay-with-cash').hide();$('.input-tip-container').show();}}} 359function togglePizzaOptions(box,id){if($(box).is(':checked')){$('#'+id).show();}else{$('#'+id).hide();addonId=$(box).attr('data-id');if($('#pizza_option_'+addonId+'-1_W').length>0){$('#pizza_option_'+addonId+'-1_L').prop('checked',false);$('#pizza_option_'+addonId+'-1_R').prop('checked',false);$('#pizza_option_'+addonId+'-1_W').prop('checked',true);updateExtraPrice(addonId,'W',$('.itemPrice:checked').val());}}} 360function updateExtraPrice(addonId,pizzaChoice,priceId){$.ajax({url:'/'+UrlTag+'/?form=getaddonprice',type:'POST',data:{add
360onId:addonId,pizzaChoice:pizzaChoice,priceId:priceId},success:function(result){$('.price_for_extra_'+addonId).text(result);calculateMenuItemPriceTotal();}});} 361function updateOptionPrice(addonId,pizzaChoice,priceId,selectedChoice){updateOptionPriceByMultiplicity(addonId,pizzaChoice,priceId,selectedChoice,0);} 362function updateOptionPriceByMultiplicity(addonId,pizzaChoice,priceId,selectedChoice,multiplicityType){$.ajax({url:'/'+UrlTag+'/?form=getaddonprice',type:'POST',data:{addonId:addonId,pizzaChoice:pizzaChoice,priceId:priceId,selectedChoice:selectedChoice,multiplicityType:multiplicityType},success:function(result){if(multiplicityType==1){$('.price_for_extra_'+addonId+'_'+selectedChoice).text(result);}else{$('#option_'+addonId+'_0').html(result);} 363calculateMenuItemPriceTotal();}});} 364function calculateCartTotal() 365{let tip=$('#hid-cart-tip').val()-0;let totalWithoutTips=$('#hid-cart-total-no-tips').val()-0;let total=totalWithoutTips+tip;$('#cart-total').html('$'+total.toFixed(2));} 366function showTime(){if($('.timeswitch').is(':checked')){$('.selecttime').show();}else{$('.selecttime').hide();}} 367function saveFormState(n,v=null,skipMobile=false){if(skipMobile&&Math.min(window.screen.width,window.screen.height)<768){return;} 368saveFormStateAndReloadCart(n,v,false);} 369var formStateTimer=null;function scheduleFormStateSave(n,v,skipMobile=false){if(skipMobile&&Math.min(window.screen.width,window.screen.height)<768){return;} 370window.clearTimeout(formStateTimer);formStateTimer=window.setTimeout(saveFormState,400,n,v);} 371function saveFormStateAndReloadCart(name,value,doReload){return $.ajax({url:`/${UrlTag}/?form=saveformfields&${Array.isArray(name)?name.join('&'):`${name}=${escape(value)}`}`,success(){if(doReload){reloadCart();}}});} 372function addDeliveryAddressCallback(data) 373{$('#add_address_modal').modal('hide');$('.deliveryAddressContainer .select_address').replaceWith(data);if(document.querySelectorAll('.checkout_address .input-driver-notes').length){document.querySelectorAll('.checkout_address .input-driver-notes')[0].value=document.querySelectorAll('#form-modal-add-delivery-address .input-driver-notes')[0].value} 374updateCreditCards();} 375function validateRequiredFields($selector) 376{let valid=true;if(!$selector){$selector=$('body');} 377$selector.find('[data-required-field]:visible').each(function(){var $target=$(this);$target.removeClass('input-success, input-error');valid=true;if(!$target.val()||!$target.val().length){valid=false;} 378if($selector.find('[name="'+$target.prop('name')+'"]:checked').length>0){valid=true;} 379$target.addClass(!valid?'input-error':'input-success');});return valid;} 380var validateAddressTimer=null;var noNumberAddressConfirmed=false;var $noNumberAddressContainer=null;var $noNumberAddressForm=null;function validateAddress($deliveryAddressContainer,timer) 381{clearTimeout(validateAddressTimer);validateAddressTimer=setTimeout(function(){$('.your_order .loadable-content').addClass('loading');$('.your_order').block({message:"",overlayCSS:{backgroundColor:'transparent'}});var $form=$deliveryAddressContainer.parents('form').first();if(!$form||!$form.length){$form=$deliveryAddressContainer.find('form');} 382let addressNotRequired=!!$('[data-order-type-on-change]:checked').data('no-address') 383if(!$('[data-order-type-on-change][data-base="DELIVERY"]:checked').length||addressNotRequired){$('.your_order .loadable-content').removeClass('loading');$('.your_order').unblock();return;} 384var address=$deliveryAddressContainer.find('.input-validate-address').val() 385var isFirstCharANum=address.match(new RegExp(/^\d/))!==null;var addressArray=address.split(' ');var isFirstWordAStreet=addressArray.length&&addressArray[0].match(new RegExp(/^\d{1,4}(?:st|nd|rd|th)/))!==null;let skipNoNumberAddressAlert=(noNumberAddressConfirmed||address.length==0);if(!skipNoNumberAddressAlert&&(!isFirstCharANum||isFirstWordAStreet)){$('#modal-confirm-no-number-address').modal({backdrop:'static',keyboard:false}).modal('show');$noNumberAddressContainer=$deliveryAddressContainer;$noNumberAddressForm=$form;$('.your_order .loadable-content').removeClass('loading');$('.your_order').unblock();return;} 386proceedWithValidateAddress($deliveryAddressContainer,$form);},timer);} 387function proceedWithValidateAddress($deliveryAddressContainer,$form){$.ajax({url:'/'+UrlTag+'/?form=adddeliveryaddress&validate=1',data:$form.serialize(),method:'post',success:function(data){data=JSON.parse(data);var validated=0;$('[data-delivery-address-error]').hide();if(data.success){reloadCart();validated=1;}else{$('.your_order .loadable-content').removeClass('loading');$('.your_order').unblock();if($deliveryAddressContainer.hasClass('top_menu_address')){$('#modal
387-invalid-address').modal('show');}else if($deliveryAddressContainer.hasClass('add_address_modal')){$('[data-delivery-address-error]').show().find('strong').html(data.message);}} 388$deliveryAddressContainer.data('valid',validated);validateRequiredFields($deliveryAddressContainer);validateAddAddressForm();var iframeSrc=$deliveryAddressContainer.find('.iframe-deliveryzone').data('src')+'/validated/'+validated+'/lat/'+data.latitude+'/long/'+data.longitude;$deliveryAddressContainer.find('.iframe-deliveryzone').prop('src',iframeSrc);}});} 389function validateAddAddressForm() 390{let $addAddress=$('#add_address_modal');if($addAddress.data('valid')&&!$addAddress.find('.input-error').length){$('#btn-add-address').removeAttr('disabled');}else{$('#btn-add-address').attr('disabled','1');}} 391function validateTimeSlot($container) 392{$container.find('.errorable').removeClass('error');var timeSlotError=false;if($container.find('[data-timeslot-week].selected').length&&!$container.find('.roll_day.selected').length){$container.find('.slides.errorable').addClass('error');timeSlotError=true;} 393if(!$container.find('[data-timeslot-week].selected').length&&!$container.find('.ui-datepicker-current-day').length){$container.find('.slides.errorable').addClass('error');timeSlotError=true;} 394if(!$container.find('.time_slot.selected').length){$container.find('.ready-at-time .errorable').addClass('error');timeSlotError=true;} 395return!timeSlotError;} 396function showOrHideOrderNotifications(orderType){let isCheckout=$('#hid-checkout').length?true:false;if(isCheckout){$('.sms-order-notifications').hide();if($('.sms-order-notifications-for-'+encodeURI(orderType).toLowerCase()).val()==1){$('.sms-order-notifications').show();}}} 397function showOrHideByOrderType(orderType){let isCheckout=$('#hid-checkout').length?true:false;if(isCheckout){$('[data-hide-for-type]').show();$('[data-hide-for-type="'+encodeURI(orderType).toLowerCase()+'"]').hide();}} 398function updateFields(url,type){return $.get(url,function(data){let success=true 399removeAlerts('order-type') 400if(data!=""){$('.checkout_content').prepend(data);if($('#noticeMsgs').length){scrollToElement('#noticeMsgs',0);}else{showAlert($(data).length?$(data).data('error-title'):null,data,"Ok");} 401if(type=='type'&&data.indexOf('data-error-rollback-order-type')!=-1){$('[data-order-type-on-change]').prop('checked',false) 402$('.checkout_address.deliveryAddressContainer').hide()} 403$('.deliveryAddress').prop('checked',false) 404success=false}else{success=true} 405reloadCart();if($('.menu_tabs_container').length){$('.menu_tabs_container').load('/'+UrlTag+'/?form=menutabs&mid='+$('.menu_tabs .tab-pane.active').attr('data-menu-id'));} 406return success;});} 407function removeAlerts(name){$('.alert [data-error-for-'+name+']').each(function(){let $alert=$(this).parents('.alert').first();$(this).parents('li').first().remove();if(!$alert.find('li').length){$alert.remove();}});} 408function updateCreditCards(deliveryAddressId,baseOrderType){currentSelect=$('#credit_card_select').val();let isCheckout=$('#hid-checkout').length?true:false;if(!isCheckout){return true;} 409restoreOptions() 410baseOrderType=(typeof baseOrderType!=='undefined')?baseOrderType:$('[data-order-type-on-change]:checked').data('base') 411let $creditCardOptions=$('#credit_card_select option') 412if(baseOrderType=='DELIVERY'){if(typeof deliveryAddressId==='undefined'){deliveryAddressId=$('#sel-delivery-address option:selected').val()} 413if(deliveryAddressId!=0&&deliveryAddressId!=undefined){removeOptions($creditCardOptions.not('[data-address-id="'+deliveryAddressId+'"]'))}} 414$creditCardOptions=$($('#credit_card_select option').get().reverse()) 415let creditCardsShown=new Set() 416let creditCardsToHide=$() 417$creditCardOptions.each(function(){$option=$(this) 418var optionHTML=$option.html() 419if(creditCardsShown.has(optionHTML)){creditCardsToHide=creditCardsToHide.add($option)}else{creditCardsShown.add(optionHTML)}}) 420removeOptions(creditCardsToHide) 421if($('#credit_card_select option').length==0){$('.add_cc_none').removeClass('d-none') 422$('.select_creditcard').addClass('d-none')}else{$('.add_cc_none').addClass('d-none') 423$('.select_creditcard').removeClass('d-none') 424if(typeof updateCVV==="function"){updateCVV()}} 425let btnDelete=document.getElementById('btn-credit_card_delete') 426let selectCreditCard=document.getElementById('credit_card_select') 427if(btnDelete){btnDelete.value=selectCreditCard.value} 428if(selectCreditCard&&selectCreditCard.value>0&&document.getElementById('option_payWith_2').classList.contains('selected')){saveFormStateAndReloadCart(selectCreditCard.name,selectCreditCard.value,true)}} 429function refreshDriverNotes(){let selectElement=document.getElementById("sel-delivery-address") 430let txtDriverNotes=document.querySelectorAll('.checkout_address .input-driver-notes') 431if(txtDriverNotes.length&&!txtDriverNotes[0].dataset.cartDriverNotes&&selectElement){txtDriverNotes[0].value=selectElement.options[selectElement.selectedIndex].dataset.driverNotes}} 432function resizeDriverNotes(element){element.style.height='90px';element.style.height=(element.scrollHeight)+"px";} 433function driverNotesChanged(element){resizeDriverNotes(element) 434if(isCheckout()){scheduleFormStateSave(element.name,element.value) 435element.dataset.cartDriverNotes=element.value}} 436let $select 437function setOriginalSelect(){$select=$('#credit_card_select') 438if($select.data('originalHTML')==undefined){$select.data('originalHTML',$select.html())}} 439function removeOptions($options){setOriginalSelect($select) 440$options.remove()} 441function restoreOptions(){var ogHTML=$select.data('originalHTML') 442if(ogHTML!=undefined){$select.html(ogHTML)}} 443function isCheckout(){return!!$('#hid-checkout').length;} 444function updateMobileOType($orderOptions){let $orderType=$orderOptions.find('[data-order-type-on-change]:checked');let orderTypeLabel=$orderType.siblings('label').html();$('[data-order-type-label]').html(orderTypeLabel);let baseType=$orderType.data('base');let addressNotRequired=!!$orderType.data('no-address') 445if(baseType=='DELIVERY'&&!addressNotRequired){$('[data-show-delivery-address]').show();var addressString='';
445if($('#modal-order-options #sel-delivery-address').length){saveFormState('param_delivery~address_i_n_15',$('#modal-order-options #sel-delivery-address').val(),true);addressString=$('#modal-order-options #sel-delivery-address :selected').text();}else{saveFormState('param_full~address_s_n_255',$('#modal-order-options .input-street-address').val(),true);addressString=$('#modal-order-options .input-street-address').val();} 446$('.otype-address-label').html(addressString).removeClass('hidden');$('.otype-address-break').removeClass('hidden');}else{$('[data-show-delivery-address]').hide();$('.otype-address-label').addClass('hidden');$('.otype-address-break').addClass('hidden');}} 447function initCountdowns() 448{$('[data-order-countdown]').each(function(){let $countdown=$(this);let $minutes=$countdown.find('.countdown-minutes');let $seconds=$countdown.find('.countdown-seconds');let countdownTimer=setInterval(function(){let seconds=$seconds.html()-0;let minutes=$minutes.html()-0;if(seconds||minutes){$seconds.html(seconds==0?'59':((seconds-1)>9?(seconds-1):'0'+(seconds-1)));if(seconds==0){$minutes.html(((minutes-1)>9?(minutes-1):'0'+(minutes-1)));}}else{clearInterval(countdownTimer);}},1000);});} 449let reloadAvailableTimesLastDate=null 450function reloadAvailableTimes(date){if(!date){let date=$('.hid-ready-at-date').val();} 451$('.hid-ready-at-date').val(date);if(reloadAvailableTimesLastDate==date){if($('.time_slots').length){var selectedTimeSlotVal=$('.popover-template .rad-ready_at_time:checked').val();$('.time_slot').removeClass('selected') 452$('.rad-ready_at_time[value="'+selectedTimeSlotVal+'"]').prop('checked',true).parents('.time_slot').addClass('selected');} 453return;} 454reloadAvailableTimesLastDate=date;$('.ready-at-time').replaceWith('<div class="ready-at-time">'+defaultAjaxLoadingMarkup+'</div>');$.ajax({url:'/'+UrlTag+'/?form=getavailabletimes',data:{date:date},dataType:'html',success:function(data){$('.ready-at-time').replaceWith($(data));checkSelectedTimeInModal();},failure:function(data){$('.ready-at-time').replaceWith('Error loading the available times, please try to refresh the page.');}});} 455function updateTimeSlotMonth(){if($('.time_slots').length){var $visibleDays=getVisibleElements($('.show .roll_day'),$('.show .slides'));var $firstDay=$visibleDays.first();momentObj=moment($firstDay.data('select-day'),'YYYY-MM-DD h:m:s A');var monthName=momentObj.format('MMMM');$('.show [data-time-slot-month]').html(monthName);}} 456function updateTimeSlotDay(){if($('.time_slots').length){var $selectedDay=$('.show .time_slots a.roll_day.selected');if($selectedDay.length){var $prevSlides=$selectedDay.parent('.slide').prevAll('.slide');var prevSlidesWidth=$prevSlides.width()*$prevSlides.length;var $prevDays=$selectedDay.prevAll('.roll_day') 457var prevDaysWidth=$prevDays.width()*$prevDays.length;$('.show .slides_content').css('left',0-prevSlidesWidth-prevDaysWidth+'px');timeslotSlideIndex=$prevSlides.length;loadMoreTimeslots();if(0-prevSlidesWidth-prevDaysWidth<0){$('.show [data-timeslot-prev-slide]').removeClass('disabled');}}}} 458function updateTimeSlotDayAndMonth(){updateTimeSlotDay();updateTimeSlotMonth();} 459function loadMoreTimeslots(){var $slides=$('.show .slides_content');if($slides.find('.slide').length-timeslotSlideIndex<4){var $lastSlide=$slides.find('.slide:last');var slideDate=$lastSlide.data('slide-date');$.ajax({url:'/'+UrlTag+'/?form=load_time_slots',data:{lastSlideDate:slideDate},dataType:'html',success:function(data){$slides.append(data);}});}} 460function getVisibleElements($elements,$container){return $elements.filter(function(i,e){var $e=$(e);return($e.offset().left>=$container.offset().left)&&($e.offset().left+$e.width()<=$container.offset().left+$container.width());});} 461function checkSelectedTimeInModal(){if($('.hid-ready-at').val()){$('.show .rad-ready_at_time').prop('checked',false).attr('checked',false);$('.show ul.ready-at-time li').removeClass('selected');var selectedTime=new Date($('.hid-ready-at').val());var $selectedTime=$('.show .rad-ready_at_time[value^="'+formatAMPM(selectedTime)+'"]');$selectedTime.prop('checked',true).attr('checked',true);$selectedTime.parents('li').first().addClass('selected');}} 462function updateOrderTypeLabel(text){let $mDropBtn=$('.mdropbtn');$mDropBtn.find('[data-order-type-label]').text(text);$mDropBtn.removeClass('open');$('.what').find('[data-mdrop-ul]').addClass('mdrop-closed').removeClass('mdrop-open');} 463function formatDateToYmd(date){return formatDateToStr(date,'Y-m-d');}
464function formatDateTomdY(date){return formatDateToStr(date,'m/d/Y');} 465function formatDateToStr(date,format){var d=new Date(date),month=''+(d.getMonth()+1),day=''+d.getDate(),year=d.getFullYear();if(month.length<2) 466month='0'+month;if(day.length<2) 467day='0'+day;if(format=='m/d/Y'){return[month,day,year].join('/');}else if(format=='Y/m/d'){return[year,month,day].join('/');} 468return[year,month,day].join('-');} 469function formatAMPM(date){let hours=date.getHours();let minutes=date.getMinutes();let ampm=hours>=12?'PM':'AM';hours=hours%12;hours=hours?hours:12;minutes=minutes<10?'0'+minutes:minutes;return hours+':'+minutes+' '+ampm;} 470function formatHi(date){let hours=date.getHours();let minutes=date.getMinutes();return hours+':'+minutes;} 471$('.header-opensign .close').on('click',function(el){$(this).parent().hide();}) 472function updateLaterLabel(dateTimeString,timeSlot,doSave){let momentObj=moment(dateTimeString,'YYYY-MM-DD h:m:s A');dateTimeString=momentObj.format('YYYY-MM-DD HH:mm:ss');$('.hid-ready-at').each(function(){$(this).val(dateTimeString);});$('.hid-ready-at-time-slot').each(function(){$(this).val(timeSlot?timeSlot:'');});if(doSave){saveFormStateAndReloadCart(['param_ready~at_s_n_50'+'='+escape($('.hid-ready-at').val()),'param_ready~at~time~slot_i_n_15'+'='+escape(timeSlot?timeSlot:'')],null,true);} 473$('#order_time_type_1-1').trigger('click');let date=momentObj.toDate();let dateYmd=date.getFullYear()+'-'+date.getMonth()+'-'+date.getDate();let dateNow=new Date();let dateNowYmd=dateNow.getFullYear()+'-'+dateNow.getMonth()+'-'+dateNow.getDate();let shortDate=date.toLocaleString('default',{weekday:'short'})+', '+date.toLocaleString('default',{month:'short'})+' '+date.getDate();let longDate=date.toLocaleString('default',{weekday:'long'})+', '+date.toLocaleString('default',{month:'long'})+' '+date.getDate();let day=dateYmd==dateNowYmd?'Today':'<span aria-hidden="true">'+shortDate+'</span><span class="visually-hidden">'+longDate+'</span>';let time=date.toLocaleTimeString([],{hour:'numeric',minute:'2-digit',hour12:true});if(timeSlot){time=$('.rad-ready_at_time[data-time-slot-id="'+timeSlot+'"]').data('time-slot');} 474$('[data-change-label-to-later-date]').addClass('highlighted');$('[data-otype-time-day]').html(day);$('[data-otype-time-break]').removeClass('hidden');$('[data-otype-time]').removeClass('hidden').html('<span class="visually-hidden">at</span> '+time);$('.rad-ready_at_time').prop('checked',false).attr('checked',false);$('ul.ready-at-time li').removeClass('selected');var selectedTime=new Date($('.hid-ready-at').val());var $selectedTime=$('.rad-ready_at_time[value^="'+formatAMPM(selectedTime)+'"]');$selectedTime.prop('checked',true).attr('checked',true);$selectedTime.parents('li').first().addClass('selected');} 475function updateMultiplicityLabels(){$('[data-multiplicity-type="1"]').each(function(){var multiplicity=$(this).data('multiplicity').toString();var $multiplicityChecked=$(this).find('[data-multiplicity-checkbox]:checked');var maxMultiplicity=multiplicity;if(multiplicity.indexOf('-')!=-1){var multiplicityArray=multiplicity.split('-');var str='Select '+multiplicityArray[0]+' to '+multiplicityArray[1];maxMultiplicity=multiplicityArray[1];}else if(multiplicity.indexOf(',')!=-1){var multiplicityArray=multiplicity.split(',');var str='Select '+multiplicityArray.slice(0,-1).join(', ')+' or '+multiplicityArray.slice(-1);;maxMultiplicity=multiplicityArray.pop();}else if(multiplicity==='0'){var str='';maxMultiplicity=999999;}else{var str='Select '+multiplicity+'. ('+$multiplicityChecked.length+'/'+multiplicity+')';} 476var $multiplicityCheckboxes=$(this).find('[data-multiplicity-checkbox]');$multiplicityCheckboxes.prop('disabled',false).attr('disabled',false);$('.addon-option .title-and-price .css-label').attr('title','').attr('data-original-title','').tooltip() 477if($multiplicityChecked.length==maxMultiplicity){$multiplicityCheckboxes.each(function(){if(!$(this).prop('checked')){$(this).prop('disabled',true).attr('disabled',true);$(this).parents('.title-and-price').first().find('.css-label').attr('data-original-title','Please uncheck one of the other options to select this one').tooltip();}});} 478$(this).find('[data-multiplicity-label]').html(str);});} 479function setAnnouncementSession(text){$.ajax({url:'/'+UrlTag+'/?form=setannouncementsession',data:{announcement_text:text},dataType:'html'});} 480function highlightGuestLoginError(){if($('.alert-guest-disabled').length){$([document.documentElement,document.body]).animate({scrollTop:$('.alert-guest-disabled').offset().top-(isMobile()?160:100)},250,function(){$('.alert-guest-disabled').addClass('shadowPulseAnimation')});}} 481function showConfirmPaymentMethod(newPaymentMethodName){const $pn=$('[data-confirm-payment-name]').html(newPaymentMethodName);$pn.find('img').remove();
481$('#modal-payment-change').modal('show');} 482function isMobile(){return document.body.clientWidth<768;} 483var itemPreviewChanged=false;function scheduleSaveItemPreview(){itemPreviewChanged=true;} 484function saveItemPreview(){if(!savingMenuItem&&itemPreviewChanged){var $inputs=$('#menuItemForm :input');var serializedForm=$inputs.serialize();var isCheckout=$('#hid-checkout').length?'true':'false';var item_id=$('#add_menu_item [data-menu-item-id]').attr('data-menu-item-id');var item_unique_id=$('#add_menu_item [data-cart-uid]').attr('data-cart-uid');var itemUrl='&uid='+escape(item_unique_id)+'&iid='+escape(item_id);$.ajax({url:'/'+UrlTag+'/?form=ajaxcart&v=3&cartaction=saveoptions' 485+'&checkout='+isCheckout+itemUrl+'&'+serializedForm,success:function(data,textStatus,jqXHR){},error:errFunc});} 486itemPreviewChanged=false;savingMenuItem=false;} 487function hidePopover($popover){var popoverId=$popover.prop('id');bootstrap.Popover.getInstance($('[aria-describedby="'+popoverId+'"]')).hide();} 488function hideCouponModal($container){let $popover=$
488container.parents('.popover');if($popover&&$popover.length){hidePopover($popover);} 489let $modal=$container.parents('.modal');if($modal&&$modal.length){$modal.modal('hide');}} 490function createCustomerAjax(showCreditCards){if($('#hid-loggedin').length&&$('#hid-loggedin').val()>0){if(showCreditCards){$('#modal-add-new-card').modal('show');$('#modal-add-new-card .ajax-creditcards').load('?form=creditcards&edit=-1&checkout=1');} 491return false;} 492let $checkoutEmail=$('#checkout_email');let email=$checkoutEmail.val();$checkoutEmail.data('show-credit-cards',showCreditCards) 493if(!validateEmail(email)){if(showCreditCards){if($checkoutEmail.length){$([document.documentElement,document.body]).animate({scrollTop:$checkoutEmail.offset().top-50},250,function(){$checkoutEmail.focus();$checkoutEmail.parents('.row-email').first().addClass('shadowPulseAnimation');});} 494highlightGuestLoginError();} 495return true;} 496grecaptcha.execute(checkoutRecaptcha)} 497function doCreateCustomer(recaptchaToken){grecaptcha.reset(checkoutRecaptcha) 498let $checkoutEmail=$('#checkout_email');let email=$checkoutEmail.val();if(!email){$checkoutEmail.addClass('input-error');scrollToElement($checkoutEmail,0);return;} 499let firstName=$('#checkout_first_name').val();let lastName=$('#checkout_last_name').val();let pickupTelephone=$('#pickup-telephone').val();let pickupExtension=$('#pickup-extension').val();let showCreditCards=$checkoutEmail.data('show-credit-cards') 500$('#email-error-message').hide();$.ajax({url:'/'+UrlTag+'/?form=createcustomer',method:'post',data:{'param_first~name_s_r_125':firstName,'param_last~name_s_r_125':lastName,'param_email_s_r_125':email,'param_current~phone_p_r_28':pickupTelephone,'param_current~extension_i_n_28':pickupExtension,'g-recaptcha-response':recaptchaToken},dataType:'json',success:function(response){$checkoutEmail.removeClass('input-error');if(response.error){$checkoutEmail.removeClass('input-success').addClass('input-error');scrollToElement($checkoutEmail,0);$('#email-error-message').html(response.error).show();}else{if(showCreditCards){$('#modal-add-new-card').modal('show');$('#modal-add-new-card .ajax-creditcards').load('?form=creditcards&edit=-1&checkout=1');}}}});return true;} 501function getQueryParam(name){const urlParams=new URLSearchParams(window.location.search);return urlParams.get(name);};(()=>{if(!window.app){window.app={};} 502const app=window.app;let recaptchaElement=null;let recaptchaDone=false;const requestsInFlight=new Map();app.nextTick=(window.requestAnimationFrame||window.setTimeout).bind(window);app.cancelTick=(window.cancelAnimationFrame||window.clearTimeout).bind(window);app.throttle=(fn)=>{let tickId;return(...args)=>{app.cancelTick(tickId);tickId=app.nextTick(()=>fn(...args));};};app.debounce=(fn,delay=0)=>{let timeoutId;return(...args)=>{clearTimeout(timeoutId);timeoutId=setTimeout(()=>fn(...args),delay);};};const eventHandlers={};app.event={emit(type,data){const handlers=[...(eventHandlers[type]||[]),...(eventHandlers['*']||[])];return handlers.flatMap((handler)=>handler(data,type));},on(type,handler){if(!eventHandlers[type]){eventHandlers[type]=[];} 503eventHandlers[type].push(handler);},once(type,handler){function wrapper(data,eventType){app.event.off(type,wrapper);handler(data,eventType);} 504app.event.on(type,wrapper);},off(type,handler){const index=(eventHandlers[type]||[]).indexOf(handler);if(index!==-1){eventHandlers[type].splice(index,1);}},clear(type){delete eventHandlers[type];},};app.event.on('*',(data,type)=>dispatchEventAttr(`data-event-on:${type}`,data));app.event.on('*',(data,type)=>dispatchEventAttr(`data-event-once:${type}`,data,{once:true}));function dispatchEventAttr(attr,data,{once=false}={}){const elements=[...document.querySelectorAll(`[${escapeCssSelector(attr)}]`)];return elements.map((element)=>{const handler=element.getAttribute(attr);if(once){element.removeAttribute(attr);} 505return runHandler(handler,element,data);});} 506const escapeCssSelector=CSS.escape||((selector)=>selector.replace(/:/g,'\\:'));$(document.body).on('change','[data-async-on-change]',function(event){makeAsyncRequest(this,null,event);});
506$(document.body).on('click','[data-async-on-click]',function(event){makeAsyncRequest(this,null,event);});$(document.body).on('submit','[data-async-on-submit]',function(event){makeAsyncRequest(this,null,event);});app.event.on('*',(data,type)=>{const selector=[`[data-async-on-event="${type}"]`,`[data-async-on-event^="${type},"]`,`[data-async-on-event^="${type} "]`,`[data-async-on-event*=",${type},"]`,`[data-async-on-event*=",${type} "]`,`[data-async-on-event*=" ${type},"]`,`[data-async-on-event*=" ${type} "]`,`[data-async-on-event$=",${type}"]`,`[data-async-on-event$=" ${type}"]`,].join(', ');app.nextTick(()=>{document.querySelectorAll(selector).forEach((element)=>makeAsyncRequest(element,data));});});$(()=>app.event.emit('document_ready'));const options={before:'data-async-before',block:'data-async-block',method:'data-async-method',action:'data-async-action',form:'data-async-form',redirect:'data-async-redirect-on-empty-response',select:'data-async-select',target:'data-async-target',swap:'data-async-swap',swapOutOfBand:'data-async-swap-oob',oobAfterSwap:'data-async-oob-after-swap',preserve:'data-async-preserve',then:'data-async-then',catch:'data-async-catch',finally:'data-async-finally',recaptcha:'data-async-recaptcha',};function makeAsyncRequest(element,data=null,event=null){const beforeCondition=element.getAttribute(options.before);if(beforeCondition&&runHandler(beforeCondition,element,data)===false){event&&event.preventDefault();return false;} 507const form=(element.hasAttribute(options.form)?(element.getAttribute(options.form)?document.querySelector(element.getAttribute(options.form)):null):(element.form||element.closest('form')))||element;const blockSelector=getBlockSelector(element,form);if(element.getAttribute(options.recaptcha)!==null){recaptchaElement=element;if(!recaptchaDone){grecaptcha.execute(asyncRecaptcha);recaptchaDone=true;if(blockSelector){$(blockSelector).block();} 508event&&event.preventDefault();return false;} 509recaptchaDone=false;grecaptcha.reset(asyncRecaptcha);} 510if(blockSelector){app.loading.block(blockSelector);} 511const getElement=()=>(element.id&&document.getElementById(element.id))||element;const requestKey=element.id||element;const previousXhr=requestsInFlight.get(requestKey);if(previousXhr){previousXhr.superseded=previousXhr.blockSelector===blockSelector;previousXhr.abort();} 512const xhr=$.ajax({method:element.getAttribute(options.method)||form.getAttribute(options.method)||form.method||'GET',url:element.getAttribute(options.action)||form.getAttribute(options.action)||form.action||window.location.href,data:[...$(form).serializeArray(),...Object.entries($.isPlainObject(data)?data:{}).filter(([name,value])=>{if(!$.isPlainObject(value))return true;console.warn(`Async request data"${name}"is an object and cannot be sent-flatten it or send JSON.`,value);return false;}).map(([name,value])=>({name,value})),],});xhr.blockSelector=blockSelector;requestsInFlight.set(requestKey,xhr);xhr.done((response,_textStatus,_jqxhr)=>{try{const redirectOnEmptyResponse=element.getAttribute(options.redirect)||form.getAttribute(options.redirect);if(!response&&redirectOnEmptyResponse){window.location=redirectOnEmptyResponse;return;} 513morph(element,response);const live=getElement();runHandler(live.getAttribute(options.then),live,data);}catch(error){console.error(error);const live=getElement();runHandler(live.getAttribute(options.catch),live,data,error);}}).fail((jqxhr,textStatus,error)=>{if(textStatus==='abort')return;console.error(error);morph(element,jqxhr.responseText);const live=getElement();runHandler(live.getAttribute(options.catch),live,data,error);}).always(()=>{if(xhr.superseded){app.loading.release(blockSelector);return;} 514requestsInFlight.delete(requestKey);const live=getElement();runHandler(live.getAttribute(options.finally),live,data);app.loading.unblock(blockSelector);});const eventWasTriggeredByForm=element.nodeName==='FORM';if(eventWasTriggeredByForm){event&&event.preventDefault();return false;}} 515function getBlockSelector(element,form){const option=element.getAttribute(options.block)||form.getAttribute(options.block);switch(option){case null:return element.getAttribute(options.target)||form;case'this':return element;case'':case'none':return null;default:return option;}} 516function morph(element,response){const $response=$(response);swapOutOfBand($response);const targetSelector=element.getAttribute(options.target);const targetElement=targetSelector?document.querySelector(target
516Selector):element;const select=element.getAttribute(options.select);const swapProperty=element.getAttribute(options.swap);const $selectElements=$response.not(`[${options.swapOutOfBand}],[${options.preserve}]`);switch(swapProperty){case null:case'innerHTML':{$(targetElement).html(select?findFragmentElements($selectElements,select):$selectElements);maybeAutofocusInputInElement(targetElement);break;} 517case'outerHTML':{const $newElement=select?findFragmentElements($selectElements,select):$selectElements;$(targetElement).replaceWith($newElement);maybeAutofocusInputInElement($newElement[0]);break;} 518case'before':{$(targetElement).before(select?findFragmentElements($selectElements,select):$selectElements);maybeAutofocusInputInElement(targetElement);break;} 519case'after':{$(targetElement).after(select?findFragmentElements($selectElements,select):$selectElements);maybeAutofocusInputInElement(targetElement);break;} 520case'prepend':{$(targetElement).prepend(select?findFragmentElements($selectElements,select):$selectElements);maybeAutofocusInputInElement(targetElement);break;} 521case'append':{$(targetElement).append(select?findFragmentElements($selectElements,select):$selectElements);maybeAutofocusInputInElement(targetElement);break;}}} 522function swapOutOfBand($response){const $oobElements=$response.filter(`[${options.swapOutOfBand}]`).add($response.find(`[${options.swapOutOfBand}]`));const afterSwaps=[];const oobSwapModes=['append','prepend','before','after'];$oobElements.each((_index,oobElement)=>{const oobSwapMode=oobElement.getAttribute(options.swapOutOfBand);if(oobSwapModes.includes(oobSwapMode)){const oobTarget=document.querySelector(oobElement.getAttribute(options.target));if(oobTarget){$(oobTarget)[oobSwapMode](oobElement);const afterSwap=oobElement.getAttribute(options.oobAfterSwap);if(afterSwap){afterSwaps.push([afterSwap,oobElement]);} 523return;} 524console.warn(`Out-of-band ${oobSwapMode}target"${oobElement.getAttribute(options.target)}"is not in the page.`,oobElement);} 525const existing=document.getElementById(oobElement.id);if(existing===oobElement){console.warn(`Out-of-band element#${oobElement.id}is nested inside another one-keep them siblings.`,oobElement);}else if(existing){const sameImage=existing.tagName==='IMG'&&oobElement.tagName==='IMG'&&existing.src===oobElement.src;const sameHtml=existing.outerHTML===oobElement.outerHTML;if(!sameImage&&!sameHtml){$(existing).replaceWith(oobElement);const afterSwap=oobElement.getAttribute(options.oobAfterSwap);if(afterSwap){afterSwaps.push([afterSwap,oobElement]);}}}else{oobElement.removeAttribute(options.swapOutOfBand);}});afterSwaps.forEach(([afterSwap,oobElement])=>runHandler(afterSwap,oobElement));} 526app.async={swapOutOfBand,};function findFragmentElements($element,selector){return $element.is(selector)?$element.filter(selector):$element.find(selector);} 527function maybeAutofocusInputInElement(element){if(!element)return;const autofocusInput=element.getAttribute('autofocus')?element:element.querySelector('[autofocus]');if(autofocusInput){autofocusInput.focus();}} 528function runHandler(handler,element,data=undefined,...args){if(!handler)return;const fn=new Function('$data',`return ${handler}`);const result=fn.call(element,data);if(typeof result==='function'){return result.call(element,data,...args);} 529return result;} 530$(document).on('ajaxComplete',(_event,jqxhr)=>{const redirectUrl=jqxhr.getResponseHeader('X-Async-Redirect');if(redirectUrl){window.location=redirectUrl;}});app.loading={timeoutId:null,pending:[],block(selector){if(selector){$(selector).block();} 531this.pending.push(selector);if(this.timeoutId){return;} 532const pageBlockDelayInMs=750;this.timeoutId=setTimeout(()=>{this.pending.forEach((pendingSelector)=>pendingSelector&&$(pendingSelector).unblock());$.blockUI({overlayCSS:{backdropFilter:'blur(10px)',},css:{top:'50%',transform:'translateY(-50%)',border:'0',backgroundColor:'transparent',},message:'<div class="d-flex flex-column align-items-center gap-2 text-muted eds-copy-text-l-regular"><div class="spinner-border" style="--bs-spinner-width: 3rem; --bs-spinner-height: 3rem" role="status"></div>Loading...</div>',});},pageBlockDelayInMs);},unblock(selector){if(selector){$(selector).unblock();} 533this.release(selector);}
533,release(selector){const index=this.pending.indexOf(selector);if(index!==-1){this.pending.splice(index,1);} 534if(this.pending.length){return;} 535clearTimeout(this.timeoutId);this.timeoutId=null;$.unblockUI();},};app.event.on('document_ready',()=>app.loading.unblock());window.recaptchaAsyncCallback=function(recaptchaToken){const data=recaptchaToken!==undefined?{'g-recaptcha-response':recaptchaToken}:{};makeAsyncRequest(recaptchaElement,data);};})();;(()=>{['show.bs.offcanvas','hidden.bs.offcanvas'].forEach((eventName)=>{document.addEventListener(eventName,(event)=>{const isExpanded=eventName==='show.bs.offcanvas';document.querySelectorAll('[data-bs-toggle="offcanvas"]').forEach((toggle)=>{if(getTarget(toggle)===event.target)toggle.setAttribute('aria-expanded',isExpanded);});});});function getTarget(toggle){let selector=toggle.getAttribute('data-bs-target');if(!selector||selector==='#'){const href=toggle.getAttribute('href');if(!href||!(href.startsWith('#')||href.startsWith('.')))return null;selector=href.trim();} 536try{return document.querySelector(selector);}catch(error){return null;}}})();;(function(){var params=new URLSearchParams(window.location.search);var providers=['google','apple'];var cleanUrl='';providers.forEach(function(provider){var ssoParam=provider+'_sso';var errorParam=provider+'_sso_error';if(params.has(ssoParam)){params.delete(ssoParam);cleanUrl=window.location.pathname+(params.toString()?'?'+params.toString():'');window.history.replaceState(null,'',cleanUrl);var config=window.__ssoConfig&&window.__ssoConfig[provider];if(config){showAfterSSOModal(config);}} 537if(params.has(errorParam)){params.delete(errorParam);cleanUrl=window.location.pathname+(params.toString()?'?'+params.toString():'');window.history.replaceState(null,'',cleanUrl);}});async function showAfterSSOModal(config){try{const response=await fetch(config.pendingUrl,{headers:{'X-Requested-With':'XMLHttpRequest'}});if(!response.ok)throw new Error(`HTTP ${response.status}`);const html=await response.text();const modalId=html.includes('complete-registration')?config.registerModalId:config.loginModalId;const modal=document.getElementById(modalId);if(modal){const body=modal.querySelector('.eds_dialog-body');if(body)body.innerHTML=html;modal.dispatchEvent(new CustomEvent('eds.show'));}}catch(err){console.error('Request failed:',err);}}})();;let ajaxForm;let animationDone=[];let ajaxDone=[];let ajaxResult=[];function submitAjaxForm(recaptchaToken){$form=ajaxForm;if($form.data('recaptcha')!==undefined){grecaptcha.reset(ajaxRecaptcha)} 538let ajaxID=$form.data('ajax-id') 539ajaxDone[ajaxID]=false;var action=$form.attr('action');var method=$form.attr('method');var ajaxSuccess=$form.data('ajax-success');var ajaxReplaceForm=$form.data('ajax-replace-form');var replace=$form.data('ajax-replace');var animation=$form.data('ajax-animation');let data=new FormData($form[0]);if(recaptchaToken!==undefined){data.set('g-recaptcha-response',recaptchaToken)} 540$.ajax({url:action,type:method,data,contentType:false,cache:false,processData:false,success:function(data){$form.find('.form__ajax-loading').hide();$form.find('[data-show-after-submit]').show();$form.find('[data-hide-after-submit]').hide();ajaxDone[ajaxID]=true;ajaxResult[ajaxID]=data;ajaxOnClickCallback(ajaxID,null,replace,animation);if(ajaxReplaceForm){$form.html(data);} 541if(ajaxSuccess){window[ajaxSuccess](data);}},error:function(){alert('There was an error processing the request. Please refresh and try again.')}});} 542function ajaxOnClickCallback(ajaxID,container,replace,animation){if(!animation||(animationDone[ajaxID]&&ajaxDone[ajaxID])){if(container){$(container).html(ajaxResult[ajaxID]);if(animation=='fade'){$(container).fadeIn();}} 543if(replace){var $result=$(ajaxResult[ajaxID]);var replaceSelectors=replace.split(',');for(var i=0;i<replaceSelectors.length;i++){var replaceSelector=replaceSelectors[i];let $replace=$(replaceSelector);let toReplace=$result.filter(replaceSelector);$replace.replaceWith(toReplace);} 544if(animation=='fade'){$(replace).fadeIn();}}}} 545$(document).ready(function(){$('body').on('change','[data-show-section-on-change]',function(){showSectionOnChange($(this));});let ajaxID=0;$('body').on('click','[data-ajax-on-click]',function(e){e.preventDefault();let $objClicked=$(this);let url=$objClicked.data('ajax-on-click');let data=$objClicked.data('ajax-data');let ajaxSuccess=$objClicked.data('ajax-success');let container=$objClicked.data('ajax-container');let $container=$(container);let replace=$objClicked.data('ajax-replace');let animation=$objClicked.data('ajax-animation');let stopPropagation=$objClicked.data('ajax-stop-propagation');let once=$objClicked.data('ajax-once');if(once){if(once!=$objClicked.data('ajax-once-loaded')){$objClicked.data('ajax-once-loaded',once);}else{return true;}} 546if(stopPropagation){e.stopPropagation();} 547var confirmMsg=$(this).data('ajax-confirm');
547if(!confirmMsg||confirm(confirmMsg)==true){if(container){initAjaxLoader($(container));} 548ajaxID++;if(replace&&animation){if(animation=='fade'){animationDone[ajaxID]=false;$(replace).fadeOut(400,function(){animationDone[ajaxID]=true;ajaxOnClickCallback(ajaxID,container,replace,animation);});}} 549ajaxDone[ajaxID]=false;$.ajax(url,{data:data,method:'post'}).done(function(result){ajaxDone[ajaxID]=true;ajaxResult[ajaxID]=result;ajaxOnClickCallback(ajaxID,container,replace,animation);if(ajaxSuccess){window[ajaxSuccess]();}});}});$("body").on('submit','[data-ajax-form]',function(e){e.preventDefault();var $form=$(this);var recaptcha=$form.data('recaptcha')!==undefined;var replace=$form.data('ajax-replace');var animation=$form.data('ajax-animation');$form.find('.form__ajax-loading').show();$form.find('[data-show-on-submit]').show();$form.find('[data-hide-on-submit]').hide();ajaxID++;$form.data('ajax-id',ajaxID) 550if(replace&&animation){if(animation=='fade'){animationDone[ajaxID]=false;$(replace).fadeOut(400,function(){animationDone[ajaxID]=true;ajaxOnClickCallback(ajaxID,null,replace,animation);});}} 551ajaxForm=$form;if(recaptcha){grecaptcha.execute(ajaxRecaptcha)}else{submitAjaxForm()}});});function showSectionOnChange($element){var sectionSelector=$element.data('show-section-on-change');var $sectionGroup=$(sectionSelector);if($sectionGroup.length){$sectionGroup.hide();} 552var selected=$element.val();if(isValidSelector(sectionSelector+'__'+selected)){var $selectedSection=$(sectionSelector+'__'+selected);if($selectedSection.length){$selectedSection.show();}}} 553function isValidSelector(selector){if(typeof(selector)!=='string'){return false;} 554try{var $element=$(selector);}catch(error){return false;} 555return true;} 556function initAjaxLoader($container) 557{$container.addClass('loading-ajax-container');$container.html('<div class="loading-ajax-spinner"><i class="fa fa-spin fa-spinner fa-3x "></i></div>');}
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.