@limetech/lime-elements 36.0.0-next.2 → 36.0.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{dateFormatter-05d80b12.js → dateFormatter-d7a8d40d.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +32 -16
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -3
- package/dist/cjs/limel-code-editor.cjs.entry.js +1588 -2
- package/dist/cjs/{limel-color-picker-palette_2.cjs.entry.js → limel-color-picker-palette.cjs.entry.js} +0 -112
- package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/limel-dock-button.cjs.entry.js +86 -0
- package/dist/cjs/limel-dock.cjs.entry.js +104 -0
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +5 -11
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +2 -35
- package/dist/cjs/limel-input-field.cjs.entry.js +13 -6
- package/dist/cjs/{limel-list_3.cjs.entry.js → limel-list_2.cjs.entry.js} +0 -2018
- package/dist/cjs/limel-popover_4.cjs.entry.js +239 -0
- package/dist/cjs/limel-portal.cjs.entry.js +2024 -0
- package/dist/cjs/limel-select.cjs.entry.js +4 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{moment-5cfac5cd.js → moment-d1e35cdc.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/button/button.css +40 -4
- package/dist/collection/components/button/button.js +56 -20
- package/dist/collection/components/chip-set/chip-set.js +1 -3
- package/dist/collection/components/code-editor/code-editor.css +153 -1
- package/dist/collection/components/code-editor/code-editor.js +82 -2
- package/dist/collection/components/date-picker/date-picker.js +18 -1
- package/dist/collection/components/date-picker/pickers/MonthPicker.js +1 -3
- package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
- package/dist/collection/components/date-picker/pickers/YearPicker.js +1 -3
- package/dist/collection/components/dock/dock-button/dock-button.css +72 -0
- package/dist/collection/components/dock/dock-button/dock-button.js +204 -0
- package/dist/collection/components/dock/dock.css +107 -0
- package/dist/collection/components/dock/dock.js +300 -0
- package/dist/collection/components/dock/dock.types.js +1 -0
- package/dist/collection/components/icon-button/icon-button.css +21 -20
- package/dist/collection/components/icon-button/icon-button.js +2 -52
- package/dist/collection/components/input-field/input-field.js +32 -7
- package/dist/collection/components/select/select.css +8 -10
- package/dist/collection/components/select/select.template.js +3 -4
- package/dist/collection/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/esm/{dateFormatter-2cad0292.js → dateFormatter-784c3334.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-button.entry.js +33 -17
- package/dist/esm/limel-chip-set.entry.js +1 -3
- package/dist/esm/limel-code-editor.entry.js +1588 -2
- package/dist/esm/{limel-color-picker-palette_2.entry.js → limel-color-picker-palette.entry.js} +2 -113
- package/dist/esm/limel-date-picker.entry.js +3 -3
- package/dist/esm/limel-dock-button.entry.js +82 -0
- package/dist/esm/limel-dock.entry.js +100 -0
- package/dist/esm/limel-flatpickr-adapter.entry.js +5 -11
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +2 -35
- package/dist/esm/limel-input-field.entry.js +13 -6
- package/dist/esm/{limel-list_3.entry.js → limel-list_2.entry.js} +1 -2018
- package/dist/esm/limel-popover_4.entry.js +232 -0
- package/dist/esm/limel-portal.entry.js +2020 -0
- package/dist/esm/limel-select.entry.js +4 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{moment-367e51c5.js → moment-faa8a4a8.js} +2 -2
- package/dist/lime-elements/lime-elements.css +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-009de50e.entry.js +1 -0
- package/dist/lime-elements/p-0aedee4b.entry.js +1 -0
- package/dist/lime-elements/{p-7e571ec6.entry.js → p-0ba0c38a.entry.js} +1 -1
- package/dist/lime-elements/{p-08251941.entry.js → p-19f72dab.entry.js} +1 -1
- package/dist/lime-elements/p-1dfccbc5.entry.js +1 -0
- package/dist/lime-elements/p-212895da.entry.js +1 -0
- package/dist/lime-elements/p-457cf741.entry.js +37 -0
- package/dist/lime-elements/p-6b1bc80f.entry.js +1 -0
- package/dist/lime-elements/{p-d76f896d.js → p-73df4d83.js} +1 -1
- package/dist/lime-elements/p-93cd2268.entry.js +1 -0
- package/dist/lime-elements/p-93f42a32.entry.js +1 -0
- package/dist/lime-elements/p-945afca2.js +3 -0
- package/dist/lime-elements/p-aaa11eb2.entry.js +1 -0
- package/dist/lime-elements/p-bd098a11.entry.js +1 -0
- package/dist/lime-elements/{p-af0ec482.entry.js → p-c544c05b.entry.js} +1 -1
- package/dist/lime-elements/p-f41567a1.entry.js +1 -0
- package/dist/lime-elements/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/types/components/button/button.d.ts +10 -3
- package/dist/types/components/code-editor/code-editor.d.ts +14 -0
- package/dist/types/components/date-picker/date-picker.d.ts +4 -0
- package/dist/types/components/dock/dock-button/dock-button.d.ts +48 -0
- package/dist/types/components/dock/dock.d.ts +83 -0
- package/dist/types/components/dock/dock.types.d.ts +53 -0
- package/dist/types/components/icon-button/icon-button.d.ts +0 -11
- package/dist/types/components/input-field/input-field.d.ts +6 -0
- package/dist/types/components.d.ts +167 -4
- package/dist/types/interface.d.ts +1 -0
- package/package.json +5 -5
- package/dist/cjs/limel-popover-surface.cjs.entry.js +0 -32
- package/dist/cjs/limel-tooltip_2.cjs.entry.js +0 -102
- package/dist/esm/limel-popover-surface.entry.js +0 -28
- package/dist/esm/limel-tooltip_2.entry.js +0 -97
- package/dist/lime-elements/p-22569fb6.entry.js +0 -1
- package/dist/lime-elements/p-3af5f9ad.js +0 -3
- package/dist/lime-elements/p-404e1465.entry.js +0 -1
- package/dist/lime-elements/p-6966b5df.entry.js +0 -1
- package/dist/lime-elements/p-705334c1.entry.js +0 -1
- package/dist/lime-elements/p-75152d89.entry.js +0 -1
- package/dist/lime-elements/p-7ee4b825.entry.js +0 -1
- package/dist/lime-elements/p-87453b45.entry.js +0 -1
- package/dist/lime-elements/p-bd8c9384.entry.js +0 -1
- package/dist/lime-elements/p-d1ee4501.entry.js +0 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as o,g as i}from"./p-e9a95b8f.js";import{c as r}from"./p-6c094f3f.js";import{b as s}from"./p-216ffe20.js";import{z as l}from"./p-7cda574b.js";import"./p-b28128d2.js";import"./p-5fdb83c9.js";import"./p-4c3358cb.js";import"./p-eda23c05.js";import"./p-c93050d6.js";function a(t,e){var o;if(t.contains(e)||(null===(o=t.shadowRoot)||void 0===o?void 0:o.contains(e)))return!0;const i=function(t){const e=t.closest(".limel-portal--container");return e?e.portalSource:t.getRootNode().host}(e);return!!i&&a(t,i)}const n=class{constructor(o){t(this,o),this.close=e(this,"close",7),this.open=!1,this.handleGlobalKeyPress=t=>{t.key===s&&(t.stopPropagation(),t.preventDefault(),this.close.emit())},this.portalId=r(),this.globalClickListener=this.globalClickListener.bind(this)}watchOpen(){this.setupGlobalHandlers()}componentWillLoad(){this.setupGlobalHandlers()}setupGlobalHandlers(){this.open?(document.addEventListener("click",this.globalClickListener,{capture:!0}),document.addEventListener("keyup",this.handleGlobalKeyPress)):(document.removeEventListener("click",this.globalClickListener),document.removeEventListener("keyup",this.handleGlobalKeyPress))}render(){const t=this.getCssProperties(),e=getComputedStyle(this.host).getPropertyValue("--popover-z-index");return o("div",{class:"trigger-anchor"},o("slot",{name:"trigger"}),o("limel-portal",{visible:this.open,containerId:this.portalId,containerStyle:{"z-index":e},openDirection:this.openDirection},o("limel-popover-surface",{contentCollection:this.host.children,style:t})))}globalClickListener(t){const e=a(this.host,t.target);this.open&&!e&&(t.stopPropagation(),t.preventDefault(),this.close.emit())}getCssProperties(){const t=["--popover-surface-width","--popover-body-background-color","--popover-border-radius"],e=getComputedStyle(this.host),o=t.map((t=>e.getPropertyValue(t)));return l(t,o)}get host(){return i(this)}static get watchers(){return{open:["watchOpen"]}}};n.style=".trigger-anchor{display:inline-block;position:relative}";const c=class{constructor(e){t(this,e)}componentDidLoad(){this.appendElement()}render(){return o("div",{class:"limel-popover-surface",tabindex:"0"})}appendElement(){const t=this.host.shadowRoot.querySelector(".limel-popover-surface");Array.from(this.contentCollection).forEach((e=>{"trigger"!==e.slot&&t.appendChild(e)}))}get host(){return i(this)}};c.style='.limel-popover-surface{position:relative;display:flex;flex-direction:column;width:var(--popover-surface-width, auto);max-height:calc(100vh - 2rem);max-width:calc(100vw - 2rem);margin:0 0.25rem;border-radius:var(--popover-border-radius, 0.75rem);box-shadow:var(--shadow-depth-16);backdrop-filter:blur(0.3125rem);-webkit-backdrop-filter:blur(0.3125rem)}.limel-popover-surface:after{transition:opacity 0.4s ease;pointer-events:none;content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;opacity:0.75;border-radius:var(--popover-border-radius, 0.75rem);background-color:var(--popover-body-background-color, rgb(var(--contrast-100)))}.limel-popover-surface:focus,.limel-popover-surface:focus-within{outline:none}.limel-popover-surface:focus:after,.limel-popover-surface:focus-within:after{opacity:1}.limel-popover-surface:focus-visible{box-shadow:var(--shadow-depth-16-focused)}';const h=class{constructor(e){t(this,e),this.maxlength=50,this.showTooltip=()=>{this.showTooltipTimeoutHandle=window.setTimeout((()=>{this.open=!0}),500)},this.hideTooltip=()=>{clearTimeout(this.showTooltipTimeoutHandle),this.open=!1},this.portalId=r(),this.tooltipId=r()}connectedCallback(){this.setOwnerAriaLabel(),this.addListeners()}disconnectedCallback(){this.removeListeners()}render(){const t=getComputedStyle(this.host).getPropertyValue("--tooltip-z-index");return o("div",{class:"trigger-anchor"},o("limel-portal",{openDirection:"bottom-start",visible:this.open,containerId:this.portalId,containerStyle:{"z-index":t,"pointer-events":"none"}},o("limel-tooltip-content",{label:this.label,helperLabel:this.helperLabel,maxlength:this.maxlength,role:"tooltip","aria-hidden":!this.open,id:this.tooltipId})))}setOwnerAriaLabel(){const t=this.getOwnerElement();null==t||t.setAttribute("aria-describedby",this.tooltipId)}addListeners(){const t=this.getOwnerElement();null==t||t.addEventListener("mouseover",this.showTooltip),null==t||t.addEventListener("mouseout",this.hideTooltip),null==t||t.addEventListener("click",this.hideTooltip)}removeListeners(){const t=this.getOwnerElement();null==t||t.removeEventListener("mouseover",this.showTooltip),null==t||t.removeEventListener("mouseout",this.hideTooltip),null==t||t.removeEventListener("click",this.hideTooltip)}getOwnerElement(){var t;let e=this.host;do{e=e.parentNode}while(e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE);return null===(t=e)||void 0===t?void 0:t.getElementById(this.elementId)}get host(){return i(this)}};h.style=".trigger-anchor{position:relative}";const p=class{constructor(e){t(this,e)}render(){let t=!1;this.helperLabel&&this.maxlength&&(t=this.label.length+this.helperLabel.length>this.maxlength);const e={};return this.maxlength&&(e.style={"--tooltip-max-width-of-text":`${this.maxlength}ch`}),[o("text",Object.assign({class:{"has-column-layout":t}},e),o("div",{class:"label"},this.label),o("div",{class:"helper-label"},this.helperLabel))]}};p.style=":host{animation:display-tooltip 0.2s ease;display:flex;border-radius:0.25rem;padding:0.25rem 0.5rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}text{font-size:0.875rem;line-height:1.25;display:flex;column-gap:1rem}text.has-column-layout{display:table-cell;width:fit-content;max-width:min(var(--tooltip-max-width-of-text), 80vw)}text.has-column-layout .label{padding-bottom:0.5rem}text.has-column-layout .helper-label{padding-bottom:0.25rem}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800))}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";export{n as limel_popover,c as limel_popover_surface,h as limel_tooltip,p as limel_tooltip_content}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-d76f896d.js";import{m as l}from"./p-3af5f9ad.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{b as u,a as p}from"./p-9acf7b5d.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},x={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),0,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),0,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),0,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){var r=e.target===t._input,n=t._input.value.trimEnd()!==ye();!r||!n||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){var r=e||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map((function(e){return t.formatDate(e,r)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=q);const B=o(a((function(e,r){!function(e){
|
|
1
|
+
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-73df4d83.js";import{m as l}from"./p-945afca2.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{b as u,a as p}from"./p-9acf7b5d.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},x={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),0,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),0,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),0,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){var r=e.target===t._input,n=t._input.value.trimEnd()!==ye();!r||!n||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){var r=e||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map((function(e){return t.formatDate(e,r)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=q);const B=o(a((function(e,r){!function(e){
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{c as h}from"./p-6c094f3f.js";import{i as a,a as n}from"./p-cc9ebbef.js";import{D as o}from"./p-73df4d83.js";import{M as l}from"./p-1c284626.js";import"./p-eab67c09.js";import"./p-945afca2.js";import"./p-48d4ef20.js";import"./p-cbc43682.js";import"./p-dcc97cc2.js";import"./p-d0a7de87.js";const r={date:"date",time:"time",week:a()?"date":"week",month:"month",quarter:"date",year:"date",datetime:"datetime-local",default:"datetime-local"},d={date:"Y-MM-DD",time:"HH:mm",week:"GGGG-[W]WW",month:"Y-MM","datetime-local":"Y-MM-DD[T]HH:mm"},m=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.type="datetime",this.language="en",this.showPortal=!1,this.portalId=`date-picker-calendar-${h()}`,this.documentClickListener=t=>{"keydown"===t.type&&"Tab"!==t.key||document.querySelector(`#${this.portalId}`).contains(t.target)||this.hideCalendar()},this.handleCalendarChange=this.handleCalendarChange.bind(this),this.handleInputElementChange=this.handleInputElementChange.bind(this),this.showCalendar=this.showCalendar.bind(this),this.dateFormatter=new o(this.language),this.clearValue=this.clearValue.bind(this),this.hideCalendar=this.hideCalendar.bind(this),this.onInputClick=this.onInputClick.bind(this),this.nativeChangeHandler=this.nativeChangeHandler.bind(this),this.preventBlurFromCalendarContainer=this.preventBlurFromCalendarContainer.bind(this)}componentWillLoad(){this.useNative=!this.readonly&&(a()||n()),this.updateInternalFormatAndType(),this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat)}componentWillUpdate(){this.updateInternalFormatAndType()}render(){const t={onAction:this.clearValue};if(this.value&&!this.readonly&&(t.trailingIcon="clear_symbol"),this.useNative)return s("limel-input-field",{disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,type:this.nativeType,onChange:this.nativeChangeHandler});const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return[s("limel-input-field",Object.assign({disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,placeholder:this.placeholder,helperText:this.helperText,required:this.required,value:this.formattedValue,onFocus:this.showCalendar,onBlur:this.hideCalendar,onClick:this.onInputClick,onChange:this.handleInputElementChange,ref:t=>this.textField=t},t)),s("limel-portal",{containerId:this.portalId,visible:this.showPortal,containerStyle:{"z-index":i}},s("limel-flatpickr-adapter",{format:this.internalFormat,language:this.language,type:this.type,value:this.value,ref:t=>this.datePickerCalendar=t,isOpen:this.showPortal,onChange:this.handleCalendarChange}))]}onValueChange(t,i){t!==i&&t!==this.formattedValue&&(this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat))}updateInternalFormatAndType(){this.nativeType=r[this.type||"default"],this.nativeFormat=d[this.nativeType],this.internalFormat=this.useNative?this.nativeFormat:this.format?this.format:this.dateFormatter.getDateFormat(this.type)}nativeChangeHandler(t){t.stopPropagation();const i=this.dateFormatter.parseDate(t.detail,this.internalFormat);this.formattedValue=t.detail,this.change.emit(i)}showCalendar(t){this.showPortal=!0;const i=this.textField.shadowRoot.querySelector("input");setTimeout((()=>{this.datePickerCalendar.inputElement=i})),t.stopPropagation(),document.addEventListener("mousedown",this.documentClickListener,{passive:!0}),document.addEventListener("keydown",this.documentClickListener,{passive:!0}),document.addEventListener("blur",this.preventBlurFromCalendarContainer,{capture:!0})}preventBlurFromCalendarContainer(t){t.relatedTarget===this.datePickerCalendar&&t.stopPropagation()}hideCalendar(){setTimeout((()=>{this.showPortal=!1})),document.removeEventListener("mousedown",this.documentClickListener),document.removeEventListener("keydown",this.documentClickListener),document.removeEventListener("blur",this.preventBlurFromCalendarContainer),this.pickerIsAutoClosing()||this.fixFlatpickrFocusBug()}fixFlatpickrFocusBug(){new l(this.textField.shadowRoot.querySelector(".mdc-text-field")).getDefaultFoundation().deactivateFocus()}handleCalendarChange(t){const i=t.detail;this.formattedValue=this.dateFormatter.formatDate(i,this.internalFormat),t.stopPropagation(),this.pickerIsAutoClosing()&&this.hideCalendar(),this.change.emit(i)}onInputClick(t){this.disabled||this.readonly||this.showPortal||this.showCalendar(t)}handleInputElementChange(t){""===t.detail&&this.clearValue(),t.stopPropagation()}pickerIsAutoClosing(){return"datetime"!==this.type&&"time"!==this.type}clearValue(){this.formattedValue="",this.change.emit(null)}get host(){return e(this)}static get watchers(){return{value:["onValueChange"]}}};m.style=":host(limel-date-picker){position:relative}limel-input-field[disabled],limel-input-field[readonly]{pointer-events:none}";export{m as limel_date_picker}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.CodeMirror-lint-tooltip.cm-s-lime {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: var(--tooltip-z-index, var(--dropdown-z-index, 130));
|
|
4
|
+
transition: opacity 0.4s ease 0s;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
|
|
7
|
+
color: var(--mdc-theme-text-primary-on-background);
|
|
8
|
+
background-color: var(--mdc-theme-on-primary);
|
|
9
|
+
|
|
10
|
+
font-family: monospace;
|
|
11
|
+
font-size: 0.875rem; // 14px, like the default code editor's font size
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
// overflow: hidden; // Why `hidden`?
|
|
14
|
+
|
|
15
|
+
padding: 0.25rem 0.5rem;
|
|
16
|
+
border-radius: 0.5rem;
|
|
17
|
+
max-width: 40rem;
|
|
18
|
+
box-shadow: var(--shadow-depth-64);
|
|
19
|
+
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @exampleComponent limel-example-button-outlined
|
|
7
7
|
* @exampleComponent limel-example-button-primary
|
|
8
8
|
* @exampleComponent limel-example-button-composite
|
|
9
|
-
* @exampleComponent limel-example-button-click
|
|
9
|
+
* @exampleComponent limel-example-button-click-success
|
|
10
|
+
* @exampleComponent limel-example-button-click-fail
|
|
10
11
|
* @exampleComponent limel-example-button-reduce-presence
|
|
11
12
|
* @exampleComponent limel-example-button-colors
|
|
12
13
|
*/
|
|
@@ -38,9 +39,15 @@ export declare class Button {
|
|
|
38
39
|
* `disabled` property should be set to `true` as well.
|
|
39
40
|
*/
|
|
40
41
|
loading: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Set to `true` to indicate failure instead of success when the button is
|
|
44
|
+
* no longer in the `loading` state.
|
|
45
|
+
*/
|
|
46
|
+
loadingFailed: boolean;
|
|
47
|
+
private justLoaded;
|
|
48
|
+
private justLoadedTimeout?;
|
|
43
49
|
render(): any;
|
|
44
50
|
protected loadingWatcher(newValue: boolean, oldValue: boolean): void;
|
|
51
|
+
private renderLoadingIcons;
|
|
45
52
|
private renderIcon;
|
|
46
53
|
}
|
|
@@ -3,12 +3,17 @@ import { ColorScheme, Language } from './code-editor.types';
|
|
|
3
3
|
import 'codemirror/mode/javascript/javascript';
|
|
4
4
|
import 'codemirror/addon/selection/active-line';
|
|
5
5
|
import 'codemirror/addon/edit/matchbrackets';
|
|
6
|
+
import 'codemirror/addon/lint/lint';
|
|
7
|
+
import 'codemirror/addon/lint/json-lint';
|
|
8
|
+
import 'codemirror/addon/fold/foldgutter';
|
|
9
|
+
import 'codemirror/addon/fold/brace-fold';
|
|
6
10
|
/**
|
|
7
11
|
* Currently this component support syntax highlighting for `javascript`,
|
|
8
12
|
`json` and `typescript` formats.
|
|
9
13
|
*
|
|
10
14
|
* @exampleComponent limel-example-code-editor
|
|
11
15
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
16
|
+
* @exampleComponent limel-example-code-editor-fold-lint
|
|
12
17
|
*/
|
|
13
18
|
export declare class CodeEditor {
|
|
14
19
|
/**
|
|
@@ -27,6 +32,14 @@ export declare class CodeEditor {
|
|
|
27
32
|
* Displays line numbers in the editor
|
|
28
33
|
*/
|
|
29
34
|
lineNumbers: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Allows the user to fold code
|
|
37
|
+
*/
|
|
38
|
+
fold: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Enables linting of JSON content
|
|
41
|
+
*/
|
|
42
|
+
lint: boolean;
|
|
30
43
|
/**
|
|
31
44
|
* Select color scheme for the editor
|
|
32
45
|
*/
|
|
@@ -47,6 +60,7 @@ export declare class CodeEditor {
|
|
|
47
60
|
connectedCallback(): void;
|
|
48
61
|
disconnectedCallback(): void;
|
|
49
62
|
componentDidRender(): void;
|
|
63
|
+
protected watchValue(newValue: string): void;
|
|
50
64
|
private handleChangeDarkMode;
|
|
51
65
|
private handleChange;
|
|
52
66
|
private handleResize;
|
|
@@ -34,6 +34,10 @@ export declare class DatePicker {
|
|
|
34
34
|
* Text to display next to the date picker
|
|
35
35
|
*/
|
|
36
36
|
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* The placeholder text shown inside the input field, when the field is focused and empty
|
|
39
|
+
*/
|
|
40
|
+
placeholder: string;
|
|
37
41
|
/**
|
|
38
42
|
* Optional helper text to display below the input field when it has focus
|
|
39
43
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { DockItem } from '../dock.types';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare class DockButton {
|
|
7
|
+
/**
|
|
8
|
+
* Item that is placed in the dock.
|
|
9
|
+
*/
|
|
10
|
+
item: DockItem;
|
|
11
|
+
/**
|
|
12
|
+
* When the dock is expanded or collapsed, dock items
|
|
13
|
+
* show labels and tooltips as suitable for the layout.
|
|
14
|
+
*/
|
|
15
|
+
expanded?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When dock is using mobile layout, dock items
|
|
18
|
+
* show labels and tooltips as suitable for the layout.
|
|
19
|
+
*/
|
|
20
|
+
useMobileLayout?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Fired when a dock item has been selected from the dock.
|
|
23
|
+
*/
|
|
24
|
+
itemSelected: EventEmitter<DockItem>;
|
|
25
|
+
/**
|
|
26
|
+
* Fired when a dock menu is opened.
|
|
27
|
+
*/
|
|
28
|
+
menuOpen: EventEmitter<DockItem>;
|
|
29
|
+
/**
|
|
30
|
+
* Indicated whether the popover that renders a component is open.
|
|
31
|
+
*/
|
|
32
|
+
private isOpen;
|
|
33
|
+
/**
|
|
34
|
+
* Fired when the popover is closed.
|
|
35
|
+
*/
|
|
36
|
+
close: EventEmitter<void>;
|
|
37
|
+
private tooltipId;
|
|
38
|
+
constructor();
|
|
39
|
+
render(): any;
|
|
40
|
+
private renderPopover;
|
|
41
|
+
private renderButton;
|
|
42
|
+
private openPopover;
|
|
43
|
+
private onPopoverClose;
|
|
44
|
+
private handleClick;
|
|
45
|
+
private renderIcon;
|
|
46
|
+
private renderLabel;
|
|
47
|
+
private renderTooltip;
|
|
48
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { DockItem } from './dock.types';
|
|
3
|
+
/**
|
|
4
|
+
* @exampleComponent limel-example-dock-basic
|
|
5
|
+
* @exampleComponent limel-example-dock-custom-component
|
|
6
|
+
* @exampleComponent limel-example-dock-mobile
|
|
7
|
+
* @exampleComponent limel-example-dock-expanded
|
|
8
|
+
* @exampleComponent limel-example-dock-colors-css
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare class Dock {
|
|
12
|
+
/**
|
|
13
|
+
* Items that are placed in the dock.
|
|
14
|
+
*/
|
|
15
|
+
dockItems: DockItem[];
|
|
16
|
+
/**
|
|
17
|
+
* Items that are placed at the bottom of the dock. (Or at the end in mobile
|
|
18
|
+
* layout.)
|
|
19
|
+
*/
|
|
20
|
+
dockFooterItems?: DockItem[];
|
|
21
|
+
/**
|
|
22
|
+
* A label used to describe the purpose of the navigation element to users
|
|
23
|
+
* of assistive technologies, like screen readers. Especially useful when
|
|
24
|
+
* there are multiple navigation elements in the user interface.
|
|
25
|
+
* Example value: "Primary navigation"
|
|
26
|
+
*/
|
|
27
|
+
accessibleLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the width of the component, when it loads.
|
|
30
|
+
* - `true`: shows both icons and labels of the Dock items.
|
|
31
|
+
* - `false`: only shows icons of the doc items, and displays
|
|
32
|
+
* their labels as tooltip.
|
|
33
|
+
*
|
|
34
|
+
* Note: when `useMobileLayout` is `true`, labels will always
|
|
35
|
+
* be shown as tooltips. Read more below…
|
|
36
|
+
*/
|
|
37
|
+
expanded?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Set to `false` if you do not want to allow end-users
|
|
40
|
+
* to exapnd or shrink the Dock. This will hide the
|
|
41
|
+
* expand/shrink button, and the only things that defines
|
|
42
|
+
* the layout will be the `expanded` property, and
|
|
43
|
+
* the `mobileBreakPoint`.
|
|
44
|
+
*/
|
|
45
|
+
allowResize?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Defines the breakpoint in pixles, at which the component will be rendered
|
|
48
|
+
* in a hoizontal layout. Default breakpoint is `700` pixels, which means
|
|
49
|
+
* when the screen size is smaller than `700px`, the component will automatically
|
|
50
|
+
* switch to a horizontal layout.
|
|
51
|
+
*/
|
|
52
|
+
mobileBreakPoint?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Fired when a dock item has been selected from the dock.
|
|
55
|
+
*/
|
|
56
|
+
itemSelected: EventEmitter<DockItem>;
|
|
57
|
+
/**
|
|
58
|
+
* Fired when a dock menu is opened.
|
|
59
|
+
*/
|
|
60
|
+
menuOpen: EventEmitter<DockItem>;
|
|
61
|
+
/**
|
|
62
|
+
* Fired when the popover is closed.
|
|
63
|
+
*/
|
|
64
|
+
close: EventEmitter<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Fired when a Dock is expanded or collapsed.
|
|
67
|
+
*/
|
|
68
|
+
private dockExpanded;
|
|
69
|
+
/**
|
|
70
|
+
* Is used to render the component horizontally, and place
|
|
71
|
+
* the Dock items in a row.
|
|
72
|
+
*/
|
|
73
|
+
private useMobileLayout;
|
|
74
|
+
private resizeObserver;
|
|
75
|
+
componentDidLoad(): void;
|
|
76
|
+
disconnectedCallback(): void;
|
|
77
|
+
render(): any;
|
|
78
|
+
private renderSeparator;
|
|
79
|
+
private renderDockItem;
|
|
80
|
+
private handleResize;
|
|
81
|
+
private renderExpandShrinkToggle;
|
|
82
|
+
private toggleDockWidth;
|
|
83
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface DockItem {
|
|
2
|
+
/**
|
|
3
|
+
* A non-changing value to uniquely identify each item.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Text to display for the item.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the icon to use.
|
|
12
|
+
*/
|
|
13
|
+
icon: string;
|
|
14
|
+
/**
|
|
15
|
+
* Additional helper text for the dock item.
|
|
16
|
+
* Example usage can be a keyboard shortcut to activate the dock item.
|
|
17
|
+
*/
|
|
18
|
+
helperLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the dock item should indicate it is selected.
|
|
21
|
+
* These dock items normally take the user to a top-level location within
|
|
22
|
+
* the navigation tree; for example "Home", "Search" or "My Account".
|
|
23
|
+
* Set `selected` to `true`, when:
|
|
24
|
+
* - the user interface is showing the same top-level location as the dock
|
|
25
|
+
* item is pointing at, or
|
|
26
|
+
* - the user interface is showing a page which is a sub-location of the
|
|
27
|
+
* top-level location. For example, when user is at
|
|
28
|
+
* _My Account > Notification Settings_, the dock item of _My Account_
|
|
29
|
+
* should have the `selected` state.
|
|
30
|
+
*/
|
|
31
|
+
selected?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Used to specify a custom component to render as a menu for the dock item.
|
|
34
|
+
*/
|
|
35
|
+
dockMenu?: DockMenu;
|
|
36
|
+
}
|
|
37
|
+
export interface DockMenu {
|
|
38
|
+
/**
|
|
39
|
+
* The tag name of a custom component to be displayed in a popover when
|
|
40
|
+
* clicking on the dock item this menu belongs to.
|
|
41
|
+
*/
|
|
42
|
+
componentName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the menu is open.
|
|
45
|
+
*/
|
|
46
|
+
menuOpen?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Any properties that should be set on the custom component.
|
|
49
|
+
*/
|
|
50
|
+
props?: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @exampleComponent limel-example-icon-button-composite
|
|
7
7
|
*/
|
|
8
8
|
export declare class IconButton {
|
|
9
|
-
constructor();
|
|
10
9
|
/**
|
|
11
10
|
* The icon to display.
|
|
12
11
|
*/
|
|
@@ -25,18 +24,8 @@ export declare class IconButton {
|
|
|
25
24
|
*/
|
|
26
25
|
disabled: boolean;
|
|
27
26
|
private host;
|
|
28
|
-
private mdcIconButtonRipple;
|
|
29
|
-
/**
|
|
30
|
-
* If the button is hidden or inside another element that is animating
|
|
31
|
-
* while the button is instantiated, the hover-highlight may become
|
|
32
|
-
* misaligned. If so, calling this method will make the button re-layout
|
|
33
|
-
* the highlight.
|
|
34
|
-
*/
|
|
35
|
-
relayout(): Promise<void>;
|
|
36
|
-
private removeFocusedStyleOnClick;
|
|
37
27
|
connectedCallback(): void;
|
|
38
28
|
componentDidLoad(): void;
|
|
39
29
|
private initialize;
|
|
40
|
-
disconnectedCallback(): void;
|
|
41
30
|
render(): any;
|
|
42
31
|
}
|